How to reset zooming in WPF Chart (SfChart)?
This article explains how to zoom and pan the chart area by using ChartZoomPanBehavior in WPF Chart (SfChart). Zooming and panning operations can be enabled with properties such as EnableMouseWheelZooming, EnablePanning, EnableSelectionZooming, and EnablePinchZooming. After zooming in on the chart area, the ResetOnDoubleTap property allows you to reset the zoom level. A double click on the zoomed chart area will disable the zoom.
XAML
<Syncfusion:SfChart.Behaviors> <!--By setting ResetOnDoubleTap property to True the Zooming can be reset by DoubleTap--> <Syncfusion:ChartZoomPanBehavior EnableMouseWheelZooming="True" EnablePanning="True" EnableSelectionZooming="True" ResetOnDoubleTap="True"> </Syncfusion:ChartZoomPanBehavior> </Syncfusion:SfChart.Behaviors>
Conclusion
I hope you enjoyed learning about how to reset zooming in WPF Chart(SfChart).
You can refer to our WPF Chart’s feature tour page to know about its other groundbreaking feature representations. You can also explore our WPF Chart documentation to understand how to present and manipulate data.
For current customers, you can check out our WPF components from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to check out our WPF Chart and other WPF components.
If you have any queries or require clarifications, please let us know in comments below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!