All Controls
Change the Scale on the Axes
This page describes how to manually set the scale on the axes of the charts. The x-axis of the charts is of the following type:
And the y-axis of the charts is of the following type:
The first step is to include the necessary namespaces
for the controls and add a new chart.
Manually Change the Scale on the Y-Axis
Below, we will change the scale on the y-axis of an Individuals chart (named indChart in the examples below). The process is similar for the x-axis and the other charts:
[Visual Basic]
' Turn off auto-scale
indChart.YAxis.AutoScale = False
' Set the maximum and minimum manually
indChart.YAxis.Max = 2.0
indChart.YAxis.Min = -0.5
' Set the units in between the tick marks
indChart.YAxis.MajorUnit = 0.5
[Visual C#]
// Turn off auto-scale
indChart.YAxis.AutoScale = false;
// Set the maximum and minimum manually
indChart.YAxis.Max = 2.0;
indChart.YAxis.Min = -0.5;
// Set the units in between the tick marks
indChart.YAxis.MajorUnit = 0.5;
The resulting
chart should look similar to the following: