-
Notifications
You must be signed in to change notification settings - Fork 329
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
Fix category scale Zoom/Pan proportion problems #151
Labels
Comments
subogero
added a commit
to subogero/chartjs-plugin-zoom
that referenced
this issue
May 31, 2018
Plus stop zooming on indexScale when panning.
Also reported in #190 |
Pending PR: #152 |
etimberg
changed the title
Fix indexScale Zoom/Pan proportion problems
Fix category scale Zoom/Pan proportion problems
Apr 25, 2021
Merged
I believe this was fixed in #476 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Plus panning on indexScale when zoomed in also causes zoom.
Zoom: the
zoom
parameter is a proportion. On linearScale it does work like that, but on the indexScale it's adding/removing 1 label at a time. Totally broken with large datasets. Make it work like linearScale.Pan: calculate
dIndex
first, limit if0 .. lastLabelIndex
range would be exceeded, then modifyminIndex
,maxIndex
with the exact samedIndex
.Pan on indexScale currently unusable with large datasets. Make pan distance proportional to mouse/touch gesture size.
Probably fixes some other related issues.
Pull request coming immediately.
The text was updated successfully, but these errors were encountered: