All Controls


Show/Hide Axis

This page describes how to show or hide 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.

Hide the Axes

Below, we will hide the axes of an Individuals chart (named indChart in the examples below). The process is similar for the other charts:

[Visual Basic]
' Hide the axes
indChart.XAxis.Show = False
indChart.YAxis.Show = False

[Visual C#]
// Hide the axes
indChart.XAxis.Show = false;
indChart.YAxis.Show = false;

The resulting chart should look similar to the following:

Individuals chart with axes hidden

Show the Axes

Below, we will show the axes of an Individuals chart (named indChart in the examples below). The process is similar for the other charts:

[Visual Basic]
' Show the axes
indChart.XAxis.Show = True
indChart.YAxis.Show = True

[Visual C#]
// Show the axes
indChart.XAxis.Show = true;
indChart.YAxis.Show = true;

The resulting chart should look similar to the following:

Individuals chart with axes shown