iOS Charting Documentation - SciChart
SCIZoomExtentsModifier

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

Adding a ZoomExtentsModifier in Code

Objective C:

Adding ZoomExtents modifier
Copy Code
SCIZoomExtentsModifier * zem = [[SCIZoomExtentsModifier alloc] init];
[surface.chartModifiers add:zem];

Swift:

Adding ZoomExtents modifier
Copy Code
let extendZoomModifier = SCIZoomExtentsModifier()        
surface.chartModifiers.add(extendZoomModifier)

You can also run ZoomExtents functionality without adding this modifier. SciChartSurface supports following methods you can call whenever you need it:

- zoomExtents
- zoomExtentsX
- zoomExtentsY

See Also

ChartModifier API