-
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
Wrong position ticks in time scale with offsetGridLines #5490
Comments
@alexandre-tobia @simonbrunel thoughts on a way to improve this? |
@etimberg unfortunately yes... so, in this case, the vertical line become totally useless (and meaningless ), maybe an option to avoid values to be automaticaly centered ? |
This was also confusing me. Investigating further... |
Got this working so that at least when I'm using the time scale for years, it splits the years with the grid lines and prints the year label in the middle of the year. Here's an example that has been tested with Chart.js v2.7.3: |
Is this a bug by the way or intended behavior? This was totally confusing to me at first before I found this issue. |
Does not look like an issue in v3 anymore?: https://jsfiddle.net/n5dbt2ue/ |
Hi,
I'm using chartjs latest version (2.7.2).
I'm using
offsetGridLines: true
to center my xAxes label (2016, 2017,...), but since i use this options, my points are not in the right position.For example, this point need to be between the red lines (because it belongs to 2016)
jsfidle: https://jsfiddle.net/mrbmvd19/1/ (look at the 2016-12-01)
Do you know how to do that?
Thanks a lot.
The text was updated successfully, but these errors were encountered: