
iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
The SCIZoomExtentsModifier
SciChart iOS provides the ability to zoom-to-fit the entire chart double-tapping it via the SCIZoomExtentsModifier
, available out of the box.
Besides common features which are inherited from the SCIChartModifierBase
class,
the SCIZoomExtentsModifier
allows to control its specific features via the following properties:
SCIZoomExtentsModifier.direction
- allows to restrict zooming to the horizontal or vertical direction only if needed.SCIZoomExtentsModifier.isAnimated
- allows to switch on/off the animation on zoom out.SCIZoomExtentsModifier.executeOn
- allows to specify the trigger action for the modifier via theSCIExecuteOn
enumeration.
NOTE: There are several modes defined by the
SCIExecuteOn
enumeration, such as Single Tap, Double Tap, Long Press, and Fling.
Adding a SCIZoomExtentsModifier to a Chart
Any Chart Modifier can be added to a SCIChartSurface
via the ISCIChartSurface.chartModifiers
property and SCIZoomExtentsModifier
with no difference:
NOTE: To learn more about features available, please visit the Chart Modifier APIs article.
Programmatically Zoom to Extents
You can also run Zoom to Extents functionality programmatically without adding SCIZoomExtentsModifier
.
SCIChartSurface
supports the following methods which you can call whenever you need to zoom the chart to fit: