WPF Charting Documentation - SciChart WPF Charts SDK v5.x
The MouseWheelZoomModifier3D

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 MouseWheelZoomModifier3D performs movement the camera forwards/backwards giving the appearance of zooming the 3D world.
 

 

Declaring a MouseWheelZoomModifier3D in XAML

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

 

<s3D:SciChart3DSurface x:Name="scs" >
   
    <!-- XAxis, YAxis, RenderableSeries omitted for brevity -->       
   
    <s3D:SciChart3DSurface.ChartModifier>
        <s3D:ModifierGroup3D>
            <!-- Add the MouseWheelZoomModifier3D to the chart. Optional. add other modifiers -->
            <s3D:MouseWheelZoomModifier3D MouseWheelSensitivity="20"/>           
        </s3D:ModifierGroup3D>
    </s3D:SciChart3DSurface.ChartModifier>
   
</s3D:SciChart3DSurface>
var sciChart3DSurface = new SciChart3DSurface();
// XAxis, YAxis, RenderableSeries omitted for brevity
var modifierGroup = new ModifierGroup3D();
modifierGroup.ChildModifiers.Add(new MouseWheelZoomModifier3D () {
    IsEnabled = true,
    MouseWheelSensitivity = 20f,
});
sciChart3DSurface.ChartModifier = modifierGroup;

 

 

 

 


SCICHART ® is a Registered Trademark in the UK, US and EU. Copyright SciChart Ltd 2011-2018.

Email us to give feedback!