All Controls


Add Axis Labels

This page describes how to add labels to 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.

Add Labels to the Axes

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

[Visual Basic]
' Add labels to the axes
indChart.XAxis.AxisLabel.Text = "X Axis"
indChart.YAxis.AxisLabel.Text = "Y Axis"

[Visual C#]
// Add labels to the axes
indChart.XAxis.AxisLabel.Text = "X Axis";
indChart.YAxis.AxisLabel.Text = "Y Axis";

The resulting chart should look similar to the following:

Individuals chart with axis labels