Version

Configuring Axis Range

Purpose

This topic explains how to configure the axis range by setting the MinimumValue and MaximumValue properties in the XamScatterSurface3D™ control.

Required background

The following topics are prerequisites to understanding this topic:

Topic Purpose

This topic provides detailed instructions to help you get up and running as soon as possible with the xamScatterSurface3D™ control.

This topic explains the features supported by the control from developer perspective.

This topic provides an overview of the visual elements of the control.

In this topic

This topic contains the following sections:

Configuring Axis Range

Overview

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.

Property settings

The following table maps the desired configuration to the property settings that manage it.

In order to: Use this property: And set it to:

Configure the minimum axis value

double

Configure the maximum axis value

double

Example

The screenshot below demonstrates how the xamScatterSurface3D control looks as a result of the following code:

Configuring Axis Range 1.png

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

Related Content

Topics

The following topics provide additional information related to this topic.

Topic Purpose

This topic explains how to configure the brush and thickness of the grid lines in the xamScatterSurface3D control.

This topic explains how to configure the axis interval in the xamScatterSurface3D control.

The topics in this group explain how to configure different aspects of the visual representation of the axis label in the xamScatterSurface3D control.

This topic explains how to configure the axes lines in the xamScatterSurface3D control.

This topic explains the axis types available in the xamScatterSurface3D control.

This topic explains how to configure the axis tick marks range in the xamScatterSurface3D control.

The topics in this group explain how to configure different aspects of the visual representation of the axis title in the xamScatterSurface3D control.

This topic explains how to invert an axis in the xamScatterSurface3D control.