SciChart iOS v2.x API > ChartModifier API > Zooming and Panning > SCIZoomExtentsModifier
SCIZoomExtentsModifier

The SCIZoomExtentsModifier provides the ability to zoom-to-fit the entire chart via touch interaction.

Examples for the ZoomExtentsModifier can be found in the SciChart iOS Examples Suite.

Adding a ZoomExtentsModifier in Code

SCIZoomExtentsModifier * zem = [[SCIZoomExtentsModifier alloc] init];
 [surface.chartModifiers add:zem];
let extendZoomModifier = SCIZoomExtentsModifier()        
 surface.chartModifiers.add(extendZoomModifier)

You can also run ZoomExtents functionality programmatically without adding this modifier. SciChartSurface supports the following methods which you can call whenever you need to zoom the chart to fit:

  • SCIChartSurface.zoomExtents
  • SCIChartSurface.zoomExtentsX
  • SCIChartSurface.zoomExtentsY
See Also