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

New zoom mode that scales horizontally and vertically on mouse movement #781

Open
kangalio opened this issue Sep 16, 2023 · 0 comments
Open

Comments

@kangalio
Copy link

kangalio commented Sep 16, 2023

I'm considering porting an Python pyqtgraph application to JavaScript using Chart.js. Pyqtgraph supports not just panning with the left mouse button and zooming with the mouse wheel, but also scaling horizontally and vertically with the right mouse button (link). This turns out to be really intuitive and fast for exploring the data in my application.

Could this feature be added to Chart.js's zoom plugin too?

Instead of right-click dragging, we'd probably have left-click + modifier key dragging, since Hammer.js apparently doesn't support right-click dragging, and also since it fits in better with the existing mouse interactions in this plugin.

The options entry could be called scale

Would such a PR be accepted?

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