-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Inconsistent tick alignment #14216
Comments
Bisected to commit 57ce06e PS: I'm not sure if this is really a bug. Just a standard use-case where initial |
It's not a bug. Highcharts approximates the tick pixel interval between redraws, so it may not be exactly the same on initial load and after a redraw. |
@TorsteinHonsi but this is only from version 8.1.1 - before it's works great! |
Actually since v9.0 it works again like it did in v8.1.0: https://jsfiddle.net/BlackLabel/jazvkhcm/ |
@TorsteinHonsi can you advive? |
@ori007a |
The inner yAxis starts with max as Tested on Windows 10 with
@ori007a You could try changing the height of the chart by a few pixels until the problem will show - that is how I recreated it. What's your OS and browser? |
@KacperMadej can you solve this? |
Right, sorry about the delay.
I am unable to resolve the problem through v8.1.1 - are you, @ori007a ? It looks like when there is no need then the axis scale is not changed. If the used small size is closer to the initial width then the problem is not recreated. This might be so because the demo doesn't recreate your problem fully. If there are chart widths that you need to support differently you could use |
Expected behaviour
Tick alignment and amount should be persistent on a certain container width.
Actual behaviour
After resizing the container to the smaller width, and then resizing it back to the initial value the tick amount/positions will be different than on the initial width.
Note: it is not working correctly since the 8.1.1 version
Live demo with steps to reproduce
Steps:
0/ Remember the actual tick positions/amount
1/ Click on the "275" button
2/ Click on the "900" button
3/ Note that ticks are different than before resizing
Live demo:
https://jsfiddle.net/BlackLabel/jazvkhcm/
Product version
8.1.1 and above
Affected browser(s)
All
The text was updated successfully, but these errors were encountered: