Lasso Zoom
RadChartView provides lasso zoom (zoom to selection) functionality by selecting a rectangle on the surface of the control and then zoom in automatically based on the selected Cartesian area.
First let’s start by adding some data points to the RadChartView and LassoZoomController:
Add Controller
Figure 1: Initial Chart
Now, let’s select some area:
Figure 2: Lasso Selection
And the chart will automatically zoom to the selected area:
Figure 3: Zoom to Selection
LassoZoomController supports zoom and pan functionality programmatically via the ZoomAndPan method, which allows specifying the exact from and to percentage. The following code will zoom the first half of the chart:
Zoom and Pan
Figure 4: Zoom and Pan
Using this approach you can zoom any area in the chart using the 0-100 percentage scale.
The controllers added in RadChartView are invoked in the order at which they have been added. In case a LassoZoomController is to be used together with a LassoSelectionController, the selection controller needs to be added first.