-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
The stackLabels are misplaced when rotation is set. #15129
Comments
It is a regression. The latest working version is Demo Bisected to commit ed7ea40. |
Meanwhile there is a workaround to this issue? |
You could try to make stack labels as HTML elements and rotate them through inline CSS with |
@gustavoittner |
In the fiddle I'm using version 7.1.2 which is supposed to have the expected behavior, but it still has some problems. https://jsfiddle.net/3r8bp9dq/ In version 7.1.2 the result is not like image bellow (the behavior of the image below is not present in any version of Highcharts): Differently from the fiddle, in the image above:
In the fiddle, for some reason, the second column stack has lost the dataLabel, even thought there is no collision happening. I don't know if it's gonna happen in current Highcharts version after the regression: |
It's (hopefully) not going to happen because you have pointed this out, so thank you. |
The original issue (stack labels with set rotation being horizontally offset, proportionally to the length of the label) is still present in version 10.3.2 |
Thanks for your input @isiemers! We are in process of refactoring this module. Any updates will be posted in the thread, or linked PR's. |
Actual behaviour
The longer text, the bigger is misplace of stackLabels.
Live demo with steps to reproduce
https://jsfiddle.net/BlackLabel/tnv25pzq/
Product version
Highcharts 9.0.0
The text was updated successfully, but these errors were encountered: