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

Feature: Zoom each scale separately #399

Merged
merged 1 commit into from
Mar 12, 2021
Merged

Conversation

lirik90
Copy link
Contributor

@lirik90 lirik90 commented Nov 10, 2020

Added the overScaleMode option so that you can use zoom and pan separately for each scale when the mouse is over the scale.
Try it: https://codepen.io/lirik90/pen/rNLqMVg
Or watch what is it: https://youtu.be/u3HlB3YX_fs

Copy link
Member

@kurkle kurkle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a rebase + added some comments

src/plugin.js Outdated Show resolved Hide resolved
src/plugin.js Outdated Show resolved Hide resolved
src/plugin.js Outdated Show resolved Hide resolved
src/plugin.js Outdated Show resolved Hide resolved
@lirik90 lirik90 force-pushed the master branch 2 times, most recently from 62fde44 to b9646dc Compare March 12, 2021 05:59
@lirik90
Copy link
Contributor Author

lirik90 commented Mar 12, 2021

Hi, @kurkle . I tried to add a comment, please see it.

@kurkle
Copy link
Member

kurkle commented Mar 12, 2021

Thanks, the code looks good to me now. Would you be able to create a test for it?

@kurkle kurkle linked an issue Mar 12, 2021 that may be closed by this pull request
Added the overScaleMode option so that you can use zoom and pan separately for each scale when the mouse is over the scale.
@lirik90
Copy link
Contributor Author

lirik90 commented Mar 12, 2021

I added two small tests. Are they enough?

@kurkle kurkle merged commit 2f72a1e into chartjs:master Mar 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature request : zoom on click scale
2 participants