WPF Charting Documentation - SciChart WPF Charts SDK v5.x
Creating your first SciChart3DSurface
NOTE: The following features of SciChart WPF 3D are available in the SciChart WPF 3D Professional, SciChart WPF SDK Professional and SciChart WPF SDK Enterprise products. They are not available in the SciChart WPF 2D Professional / SciChart WPF 2D Enterprise products.

SciChart3DSurface

The root 3D Chart control is called the SciChart3DSurface. This is the WPF Control you will be adding to your applications wherever you need a 3D chart. You can add more than one SciChart3DSurface, you can configure them independently, you can link them together.

Let’s start by declaring one:

Declaring a SciChart3DSurface Instance

After Referencing the SciChart3D DLLs from NuGet (package=SciChart3D), from local DLL files (referencing DLLs SciChart.Charting3D, SciChart.Charting, SciChart.Drawing, SciChart.Data, SciChart.Core) or the SciChart3D Source from Github, a SciChart3DSurface instance can be declared as follows:

<!-- where xmlns:s3D="http://schemas.abtsoftware.co.uk/scichart3D" -->
 <s3D:SciChart3DSurface ShowLicensingWarnings="False"
                        IsFpsCounterVisible="True"
                         IsAxisCubeVisible="True"
                         IsXyzGizmoVisible="True">

     <!-- Create the XAxis -->
     <s3D:SciChart3DSurface.XAxis>
         <s3D:NumericAxis3D/>
     </s3D:SciChart3DSurface.XAxis>
    <!-- Create the YAxis -->
     <s3D:SciChart3DSurface.YAxis>
         <s3D:NumericAxis3D/>
    </s3D:SciChart3DSurface.YAxis>
    <!-- Create the ZAxis -->
     <s3D:SciChart3DSurface.ZAxis>
         <s3D:NumericAxis3D/>
     </s3D:SciChart3DSurface.ZAxis>
           
     <!-- Create Interactivity Modifiers for rotating camera -->
     <s3D:SciChart3DSurface.ChartModifier>
         <s3D:ModifierGroup3D>
             <s3D:OrbitModifier3D/>
             <s3D:ZoomExtentsModifier3D/>
         </s3D:ModifierGroup3D>
     </s3D:SciChart3DSurface.ChartModifier>
 </s3D:SciChart3DSurface>
// Create the SciChart3DSurface
// Requires
//   using SciChart.Charting3D
//   using SciChart.Charting3D.Axis
//   using SciChart.Charting3D.Modifiers
var sciChart3DSurface = new SciChart3DSurface()
{
    IsAxisCubeVisible = true,
    IsFpsCounterVisible = true,
    IsXyzGizmoVisible = true
};
// Create the X,Y,Z Axis
sciChart3DSurface.XAxis = new NumericAxis3D();
sciChart3DSurface.YAxis = new NumericAxis3D();
sciChart3DSurface.ZAxis = new NumericAxis3D();
// Specify Interactivity Modifiers
sciChart3DSurface.ChartModifier = new ModifierGroup3D(
         new OrbitModifier3D(),
         new ZoomExtentsModifier3D());

 

The above code declares a SciChart3DSurface, adds a (numeric) X,Y and Z Axis and adds two zoom behaviours. If you declared it in XAML, you should be able to see it in the WPF Designer.

 

 

Congratulations! You have just declared your first SciChart3DSurface!

 

See Also

 

 


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

Email us to give feedback!