-
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
getPixelForTick is confusing and possibly inconsistent #6715
Comments
I can't seem to find where its used akin to I'd keep the data separated from scale interface - so scale does not need to know how data is input, parsed or stored internally by the controllers. If data: { Jan: {o: 10, h: 11, c: 9, l: 8}, Feb: ...} |
I think |
The main reason I'm confused is that when we Chart.js/src/core/core.scale.js Line 1014 in a3392e0
|
That may be because for the longest time, the auto skip was just not drawing the ticks. Now that we reduce the tick array into the smaller to draw array, I think we should pass the index in that array |
It looks to me like sometimes it's doing
getPixelForTick
and sometimes it's doing something more akin togetPixelForIndex
. This gets especially confusing in certain cases like whenautoSkip
is enabled or you have auto tick generation on the time scale where ticks and indexes don't map 1:1.The text was updated successfully, but these errors were encountered: