DevExtreme React - Zooming and Scrolling
Zooming and scrolling is an efficient way to navigate a chart that contains many series points. A user can zoom and scroll the chart using mouse commands or touch gestures, the scrollbar, or the RangeSelector widget. Each of these cases are detailed in this topic.
Using Mouse Commands or Touch Gestures
Users can zoom the chart by rotating the mouse wheel and scroll it by dragging its plot. On touch-enabled devices, users can zoom the chart using the spread and pinch gestures and scroll the chart using the drag gesture.
Zooming and scrolling are configured separately as well as their support for mouse commands and touch gestures. Use the zoomingMode and scrollingMode options to specify whether a user can zoom and scroll the chart using mouse commands, touch gestures, or both.
See Also
Using the RangeSelector Widget
The Chart can be zoomed and scrolled using the RangeSelector widget. The following code shows how to bind these widgets. Note that the Chart and RangeSelector have a common data source and may have the same series configuration if the RangeSelector should display the Chart in the background.
See Also
If you need to fix the zoom window and allow users to only move it along the scale, set the scale object's minRange and maxRange options to a single value defining the zoom window's length. Make sure to specify the initial zoom using the value option.
See Also
Set the Initial Zoom
To zoom a standalone Chart initially, call its zoomArgument(startValue, endValue) method after the Chart is created.
If the Chart is bound to the RangeSelector, specify the Chart's initial zoom by setting the RangeSelector's value option.
If you have technical questions, please create a support ticket in the DevExpress Support Center.