All Controls


Change the Scale on the Axes

This page describes how to manually set the scale on the axes of the charts/controls. The horizontal axes supporting manual scales are:

And the vertical axes supporting manual scales are:

The type of axis is dependent on the chart and/or the sorting method for the subgroups/samples. For example, sorting by index or code will automatically use a HorizontalNumericAxis while sorting by date/time will automatically use a HorizontalDateTimeAxis. The vertical axis is dependent upon the type of chart.

The first step is to include the necessary namespace and add a new chart/control.

Manually Change the Scale on the VerticalAxis

Below, we will change the scale on the vertical axis of an Individuals control (named indControl in the examples below). The process is similar for the horizontal axis and the other charts/controls:

[Visual Basic]
' Turn off auto-scale
indControl.VerticalAxis.AutoScale = False
' Set the maximum and minimum manually
indControl.VerticalAxis.Maximum = 1007.0
indControl.VerticalAxis.Minimum = 893.0

[Visual C#]
// Turn off auto-scale
indControl.VerticalAxis.AutoScale = false;
// Set the maximum and minimum manually
indControl.VerticalAxis.Maximum = 1007.0;
indControl.VerticalAxis.Minimum = 893.0;

In the chart below, you can test the code to see what the result will look like:

Get Microsoft Silverlight