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

Reset Zoom #42

Open
scout208 opened this issue Apr 24, 2023 · 2 comments
Open

Reset Zoom #42

scout208 opened this issue Apr 24, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@scout208
Copy link

Is your feature request related to a problem? Please describe.
The JavaScript chart-js-plugin-zoom library has a 'resetZoom' function that can be called on the chart to reset it to the defaults that were used before any zooming or panning occurred. It would be really helpful if the same function existed in this library.

Describe the solution you'd like
Provide a function that can be called on the chart reference to reset the zoom.

Describe alternatives you've considered
I thought about setting limits to the x and y axes instead of adding a reset zoom button however it also seems like the limits functionality is not fully defined (the class is empty).

@erossini erossini self-assigned this Apr 25, 2023
@erossini erossini added the enhancement New feature or request label Apr 25, 2023
@erossini
Copy link
Owner

HI @scout208,
I'll add it to the enhancement list.

@erossini
Copy link
Owner

Hey,
with the new version of the component, there are some functionalities for the zoom.

Let me know if it is better.
Enrico

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants