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

xAxis datetime labels issue for specific range #84

Open
emailnikola opened this issue Aug 18, 2023 · 1 comment
Open

xAxis datetime labels issue for specific range #84

emailnikola opened this issue Aug 18, 2023 · 1 comment

Comments

@emailnikola
Copy link

emailnikola commented Aug 18, 2023

Specifically for range which starts at midnight of the current day there is an issue with injecting DAY label on xAxis. DAY label pushes all other labels to the right causing all xAxis labels (but first one) to miss one tick.

It appears that the issue is visible only when first HOUR label is midnight followed by the DAY label.

image

Changing the xAxis label datetimeFormatter for the DAY from 'dd MMM' to 'dd MMM -> HH:mm' shows issue more clearly.

image

It's clear that there are two mignight labels instad of one.

Looks like the DAY label replaces HOUR label properly except if HOUR label that needs to be replaced is the first label on xAxis.
In this situation the DAY label instead of replacing HOUR label -> it gets added after it.

Also: by moving the startDate by only 10-20 minutes left/right this issue disapears.

@emailnikola
Copy link
Author

Still open? Anyone?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant