iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x

The SCIYAxisDragModifier

SciChart iOS provides scale or pan an Y Axis via the SCIYAxisDragModifier, available out of the box.

Besides common features which are inherited from the SCIChartModifierBase class, the SCIYAxisDragModifier allows to control its specific features via the following properties:

Adding a SCIYAxisDragModifier to a Chart

Any Chart Modifier can be added to a SCIChartSurface via the ISCIChartSurface.chartModifiers property and SCIYAxisDragModifier is no difference:

// Assume a surface has been created and configured somewhere id<ISCIChartSurface> surface; // Create a Modifier SCIYAxisDragModifier *yAxisDragModifier = [SCIYAxisDragModifier new]; yAxisDragModifier.dragMode = SCIAxisDragMode_Pan; // Add the modifier to the surface [self.surface.chartModifiers add:yAxisDragModifier];
// Assume a surface has been created and configured somewhere let surface: ISCIChartSurface // Create a Modifier let yAxisDragModifier = SCIYAxisDragModifier() yAxisDragModifier.dragMode = .pan // Add the modifier to the surface self.surface.chartModifiers.add(yAxisDragModifier)
// Assume a surface has been created and configured somewhere IISCIChartSurface surface; // Create a Modifier var yAxisDragModifier = new SCIYAxisDragModifier(); yAxisDragModifier.dragMode = SCIAxisDragMode.Pan; // Add the modifier to the surface Surface.ChartModifiers.Add(yAxisDragModifier);

NOTE: To learn more about features available, please visit the Chart Modifier APIs article.