Datetime line brush displays wrong 1:00AM instead of midnight
See original GitHub issueBug report
Codepen
I have modified the brush chart codepen. The only things I changed are: the interval of the datapoints (from 86400 to 600), the start date is set to 2020-03-31T22:00:00+02:00
, and the tooltip format has ben changed to display hours instead of dates.
https://codepen.io/fracz/pen/jOPJLoO
Explanation
When you open the codepen, the midnight date is displayed correctly as a 1 Apr
.
Then, if you move the brush selection slightly to the right the midnight label is being set to 1:00
.
If you keep moving the selection and pass the next hour, the label is getting back to 0:00
(but not 1 Apr
) in the codepen:
The tooltip always shows the correct data even when the x-label are messed up.
Not a big deal, hovever in my application the labels are not fixed when moving right, so all of the labels are shifted by one hour, and it is much bigger problem. Could not reproduce such behavior in the codepen, though.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top GitHub Comments
Have you been able to look at this? We also experience this using only 24H time it skips 00:00 when zoomed in. 😃
Yeah, I can see the bug in your modified codepen. I will take a look soon, thanks for reporting.