This topic explains how to invert an axis in the XamScatterSurface3D™ control.
The following topics are prerequisites to understanding this topic:
Use the SurfaceChartAxis IsInverted property to invert the specific axis in the xamScatterSurface3D control.
The following table maps the desired configuration to the property settings that manage it.
The screenshot below demonstrates how the axis looks as a result of the following settings:
Following is the code that implements this example.
In XAML:
<ig:XamScatterSurface3D Name="SurfaceChart"
ItemsSource="{Binding Path=DataCollection}"
XMemberPath="X" YMemberPath="Y" ZMemberPath="Z">
<ig:XamScatterSurface3D.ZAxis>
<ig:LinearAxis Title="Z Axis" IsInverted="True" />
</ig:XamScatterSurface3D.ZAxis>
</ig:XamScatterSurface3D>
In C#:
…
var linearAxis = new LinearAxis();
linearAxis.Title = "Z Axis";
linearAxis.IsInverted = true;
SurfaceChart.ZAxis = linearAxis;
In Visual Basic:
…
Dim linearAxis = New LinearAxis()
linearAxis.Title = "Z Axis"
linearAxis.IsInverted = True
SurfaceChart.ZAxis = linearAxis
The following topics provide additional information related to this topic.