erossini / BlazorChartjs

Creates beautiful charts in Blazor using Chart.js. Library for NET6, NET7 and NET8. Source code and demo available.
https://www.puresourcecode.com/dotnet/blazor/blazor-component-for-chartjs/
MIT License
120 stars 44 forks source link

Reset Zoom #42

Open scout208 opened 1 year ago

scout208 commented 1 year ago

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 commented 1 year ago

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

erossini commented 6 months ago

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

Let me know if it is better. Enrico