This sample shows the following zooming and panning behaviors.
Chart component supports four types of zooming which can be set using enableSelectionZooming
, enablePinchZooming
, enableMouseWheelZooming
, enableDeferredZooming
property.
Chart supports two mode of zooming which can be set using
mode
property.
XY
- Zoom the chart with respect to both the axis.X
- Zoom the chart with respect to horizontal axis.Y
- Zoom the chart with respect to vertical axis.Injecting Module
Chart component features are segregated into individual feature-wise modules. To use zooming, we need to inject
Zoom
module into services
.
More information on the Zooming can be found in this documentation section.