Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Incorrect ticks on datetime axis type while using global.timezone #7432
Ticks on xAxis should be created basing on processed points values.
There are ticks of the day before real point datetime on xAxis.
Live demo with steps to reproduce
That is not how the datetime axis works - it is designed to look at the min and max range and then lay out time ticks according to
Nevertheless, there seems to be a bug here since the datetime axis lays out the ticks on 23:00 instead of midnight: http://jsfiddle.net/highcharts/1h1tc8o2/1/
I came to the same conclusion, I did a lot of testing:
I came up with this fix:
Maybe the issue is related to the DST-change when using global "timezone" and "getTimezoneOffset".
I found the bug, it seems to happen only when the data min and the computed (extended) axis min falls on different sides of the DST crossover. Demo with the fix applied: http://jsfiddle.net/highcharts/1h1tc8o2/3/
@DamianoPantani I suspect your case is different because you set