iOS Charting Documentation - SciChart
SCIYAxisDragModifier

The SCIYAxisDragModifier allows you to add Y-Axis scaling or panning on touch-drag.

Declaring a SCIYAxisDragModifier in Code

Objective C:

SCIYAxisDragModifier * yDragModifier = [SCIYAxisDragModifier new];
yDragModifier.axisId = @"yAxis";
yDragModifier.dragMode = SCIAxisDragMode_Pan;
[yDragModifier setModifierName:@"YAxis DragModifier"];
[surface.chartModifiers add: yDragModifier];

Swift:

let yAxisDragmodifier = SCIYAxisDragModifier()
yAxisDragmodifier.modifierName = "yAxisDragModifierName"
yAxisDragmodifier.axisId = "yAxis"
yAxisDragmodifier.dragMode = .Pan
chartSurface.chartModifiers.add(yAxisDragmodifier)

Switching from YAxis Drag to Pan Mode

The property SCIYAxisDragModifier.DragMode allows you to switch between Panning and Scaling on drag of an axis.

Objective C:

yDragModifier.dragMode = SCIAxisDragMode_Pan;
yDragModifier.dragMode = SCIAxisDragMode_Scale;

Swift:

yAxisDragmodifier.dragMode = .Pan
yAxisDragmodifier.dragMode = .Scale

See Also

ChartModifier API