Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Total data label not centered when using a stacked bar chart #4474

Closed
zeux00 opened this issue May 17, 2024 · 1 comment · Fixed by #4482
Closed

Total data label not centered when using a stacked bar chart #4474

zeux00 opened this issue May 17, 2024 · 1 comment · Fixed by #4482
Labels
bug Something isn't working

Comments

@zeux00
Copy link

zeux00 commented May 17, 2024

Description

With version 3.49.1, when displaying a vertical stacked bar chart, the label for total is not correctly centered. Meanwhile, the data label are centered.

Using version 3.49.0, this issue was not present.

Steps to Reproduce

  1. Create a chart with chart type 'bar' and 'stacked = true'
  2. Add 'plotOptions.bar.dataLabels.total.enabled = true' and 'plotOptions.bar.dataLabels.position = center' options
  3. Render the chart

Expected Behavior

The total data label should be centered

Actual Behavior

The total data label appears on the right of the bar

Screenshots

image

Reproduction Link

https://codepen.io/zeux00/pen/VwOvVoR

@zeux00 zeux00 added the bug Something isn't working label May 17, 2024
@rosco54
Copy link
Contributor

rosco54 commented May 17, 2024

@junedchhipa I will look at this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants