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

Orbit Modifier 3D

SciChart iOS 3D provides a panning behavior via the SCIOrbitModifier3D, available out of the box.

The SCIOrbitModifier3D performs orbital motion of the camera giving the appearance of rotating the 3D world.

Besides common features which are inherited from the SCIChartModifier3DBase class, the SCIOrbitModifier3D also allows you to control panning sensitivity which allows you to change the orbit speed. It’s accessible via the SCIOrbitModifier3D.degreesPerPixelSensitivity property.

Adding a SCIOrbitModifier3D to a Chart

Any Chart Modifier 3D can be added to a SCIChartSurface3D via the ISCIChartSurface3D.chartModifiers property and SCIOrbitModifier3D with no difference:

// Assume a surface has been created and configured somewhere id<ISCIChartSurface3D> surface; // Create a Modifier SCIOrbitModifier3D *orbitModifier3D = [SCIOrbitModifier3D new]; orbitModifier3D.degreesPerPixelSensitivity = 0.4; // Add the modifier to the surface [self.surface.chartModifiers add:orbitModifier3D];
// Assume a surface has been created and configured somewhere let surface: ISCIChartSurface3D // Create a Modifier let orbitModifier3D = SCIOrbitModifier3D() orbitModifier3D.degreesPerPixelSensitivity = 0.4 // Add the modifier to the surface self.surface.chartModifiers.add(orbitModifier3D)
// Assume a surface has been created and configured somewhere IISCIChartSurface3D surface; // Create a Modifier var orbitModifier3D = new SCIOrbitModifier3D(); orbitModifier3D.degreesPerPixelSensitivity = 0.4; // Add the modifier to the surface Surface.ChartModifiers.Add(orbitModifier3D);

NOTE: To learn more about features available, please read on the Chart Modifier 3D APIs article.