The chart component supports four types of zooming, which can be configured using the enableSelectionZooming, enablePinchZooming, enableMouseWheelZooming, and enableDeferredZooming properties. This sample demonstrates the following zooming and panning behaviors:
The chart also supports different zooming modes, which can be configured using the mode property.
The toolbarPosition
property is used to adjust the position of the zoom toolbar. In this example, the toolbar is moved 60 pixels upward from its default position. The draggable
property is used to drag and drop the zoom toolbar to any position within the chart area
Injecting Module
Chart component features are segregated into individual feature-wise modules. To use zooming, we need to inject
Zoom
module using Chart.Inject(Zoom)
method.
More information on the Zooming can be found in this documentation section.