
iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
The SCIZoomPanModifier
SciChart iOS provides an inertial scrolling / panning behavior via the SCIZoomPanModifier
, available out of the box.
Besides common features which are inherited from the SCIChartModifierBase
class,
the SCIZoomPanModifier
allows to control its specific features via the following properties:
SCIZoomPanModifier.direction
- allows to restrict zooming to the horizontal or vertical direction only if needed.SCIZoomPanModifier.zoomExtentsY
- allows to to keep series’ peeks always in viewport.SCIZoomPanModifier.clipModeX
- allows to specify the behavior when scrolling reaches data extents in X direction via theSCIClipMode
enumeration.
There are several modes defined by the SCIClipMode
enumeration:
None
- Means you can pan right off the edge of the data into uncharted space.StretchAtExtents
- Causes a zooming (stretch) action when you reach the edge of the data.ClipAtMin
- Forces the panning operation to stop suddenly at the minimum of the data, but expand at the maximum.ClipAtMax
- Forces the panning operation to stop suddenly at the maximum of the data, but expand at the minimum.ClipAtExtents
- Forces the panning operation to stop suddenly at the extents of the data.
Adding a SCIZoomPanModifier to a Chart
Any Chart Modifier can be added to a SCIChartSurface
via theISCIChartSurface.chartModifiers
property and SCIZoomPanModifier
is no difference:
NOTE: To learn more about features available, please visit the Chart Modifier APIs article.