This topic explains how to configure the axis range by setting the MinimumValue and MaximumValue properties in the XamScatterSurface3D™ control.
The following topics are prerequisites to understanding this topic:
Use the LinearAxis or LogarithmicAxis MinimumValue and MaximumValue properties to set the axis range in the xamScatterSurface3D control.
By default, the minimum and maximum values for the axes ranges are automatically calculated based on the lowest and highest data points.
The following table maps the desired configuration to the property settings that manage it.
The screenshot below demonstrates how the xamScatterSurface3D control looks as a result of the following code:
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.XAxis>
<ig:LinearAxis MinimumValue="-40"
MaximumValue="40"
Title="X Axis"/>
</ig:XamScatterSurface3D.XAxis>
<ig:XamScatterSurface3D.YAxis>
<ig:LinearAxis MinimumValue="-40"
MaximumValue="40"
Title="Y Axis" />
</ig:XamScatterSurface3D.YAxis>
<ig:XamScatterSurface3D.ZAxis>
<ig:LinearAxis MinimumValue="-10"
MaximumValue="40"
Title="Z Axis" />
</ig:XamScatterSurface3D.ZAxis>
</ig:XamScatterSurface3D>
In C#:
…
var xLinearAxis = new LinearAxis();
var yLinearAxis = new LinearAxis();
var zLinearAxis = new LinearAxis();
xLinearAxis.Title = "X Axis";
xLinearAxis.MinimumValue = -40;
xLinearAxis.MaximumValue = 40;
yLinearAxis.Title = "Y Axis";
yLinearAxis.MinimumValue = -40;
yLinearAxis.MaximumValue = 40;
zLinearAxis.Title = "Z Axis";
zLinearAxis.MinimumValue = -10;
zLinearAxis.MaximumValue = 40;
SurfaceChart.XAxis = xLinearAxis;
SurfaceChart.YAxis = yLinearAxis;
SurfaceChart.ZAxis = zLinearAxis;
In Visual Basic:
…
Dim xLinearAxis = New LinearAxis()
Dim yLinearAxis = New LinearAxis()
Dim zLinearAxis = New LinearAxis()
xLinearAxis.Title = "X Axis"
xLinearAxis.MinimumValue = -40
xLinearAxis.MaximumValue = 40
yLinearAxis.Title = "Y Axis"
yLinearAxis.MinimumValue = -40
yLinearAxis.MaximumValue = 40
zLinearAxis.Title = "Z Axis"
zLinearAxis.MinimumValue = -10
zLinearAxis.MaximumValue = 40
SurfaceChart.XAxis = xLinearAxis
SurfaceChart.YAxis = yLinearAxis
SurfaceChart.ZAxis = zLinearAxis
The following topics provide additional information related to this topic.