-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
No last tick on X time scale. #2560
Comments
@Kopleman I think this is an rounding error in the code. There is some code to determine if the 2nd last and last labels will overlap. If so, the code prioritizes the last label for display. Looks like this is accidentally triggering in this case |
I have the same problem and I created a jsbin for this behaviour: |
This can also happen if you use labels and autoSkip kicks in: |
This and #2964 are the same issue. Its caused due to miscalculation in the
But the value of I tried moving the
The charts come out perfecly though. Any thoughts @etimberg ? |
What do the test failures look like? |
PFA the error log. All other tests in the same script which test for the ticks pass. |
@sibennayak two of those tests look like something being undefined. The third looks like some pixel values changed (which would be kind of worrying) |
@sibennayak I have a PR based on your suggestion in #3064 |
Thank you for this hint! I had this exact issue. My max was being calculated as 95.45. There should have been a tick at 90, but it wasn't displaying at all. I rounded my max to one decimal place (95.5) and boom –– the tick at 90 displayed! |
Hello and thank you for great Chart.js.
I dont know exactly is is a bug or maybe i missed some option but I have a strange behaviour of X time-scale - every chart that i have with huge amount of points/time(thats way i cant create plunker, sorry) have same thing there is no last time tick on X scale
The text was updated successfully, but these errors were encountered: