SciChart Android 3D Charts API > ChartModifier 3D API > Zooming and Panning > Orbit Modifier 3D
Orbit Modifier 3D

Zooming and Panning a Chart in SciChart3D is achieved by moving the SciChart3DSurface.Camera to a new location.

The article "The SciChart3DSurface Camera" goes into detail how this camera class works and how to manipulate it programatically to achieve various views.

If you want to add simple panning of the camera to the chart then you can do so using our ChartModifiers API. The OrbitModifier3D performs orbital motion of the camera giving the appearance of the chart rotating.

Declaring an OrbitModifier3D

Declaring an OrbitModifier3D is as simple as adding one to the SciChart3DSurface.ChartModifiers property. This can be done as a single modifier, or as part of a ModifierGroup3D.

Declaring Modifier
Copy Code
final OrbitModifier3D orbitModifier3D = new OrbitModifier3D();
surface3d.getChartModifiers().add(new ModifierGroup3D(orbitModifier3D));