Axis

The Axis is a reference line from which distances or angles are measured in a coordinate system. Each PlotArea will have one default XAxis and one default YAxis. One PlotArea can have multiple Axes. Since each series will have a specific type of axis, the axes will be created by default, and will not be created by the user. For example DateTimeAreaSeries means it contains the DateTimeXAxis and the NumericYAxis. When adding series to the SeriesList, the Axis is created. Maximum or minimum values and intervals for the Axis do not need to be set, as it is calculated based on the given data. In order to get the Axis, the PlotArea or Series is used. Through the series, a specific type of Axis can be obtained. Axes are categorized into two types.

XAxis

The XAxis is the horizontal axis of a two-dimensional Cartesian coordinate system. XAxisAnchorType enumeration changes the position of the XAxis which is at the bottom of the Plot Area by default.

To get the specific type of x-axis from the series the following code can be used:

NumericXAxis axis = barSeries.XAxis;        
Dim MyAxis As NumericXAxis = MyBarSeries.XAxis   

Note: The default XAxis can be retrieved from the PlotArea or Series only after adding the Series to SeriesList.

NumericXAxis

It uses numeric data and NumericXAxisLabels. The following series will use the NumericXAxis:

Date Time Bar Series

Indexed Bar Series

Date Time Stacked Bar Series

Indexed Stacked Bar Series

XYScatter Series

DateTimeXAxis

It uses date and time data and DateTimeXAxisLabels. The following series will use the DateTimeXAxis:

Date Time Line Series

Date Time Area Series

Date Time Column Series

Date Time 100% Stacked Column Series

Date Time 100% Stacked Area Series

Date Time 100% Stacked Line Series

Date Time Stacked Column Series

Date Time Stacked Area Series

Date Time Stacked Line Series

PercentageXAxis

It uses numeric data in percentage format and PercentageXAxisLabels. The following series will use the PercentageXAxis:

Date Time 100% Stacked Bar Series

Indexed 100% Stacked Bar Series

IndexedXAxis

It contains non numeric data and IndexedXAxisLabels. The following series will use the IndexedXAxis:

Indexed Line Series

Indexed Area Series

Indexed Column Series

Indexed 100% Stacked Column Series

Indexed 100% Stacked Area Series

Indexed 100% Stacked Line Series

Indexed Stacked Column Series

Indexed Stacked Area Series

Indexed Stacked Line Series

XYScatter Series

YAxis

The YAxis is the vertical axis of a two-dimensional Cartesian coordinate system. YAxisAnchorType enumeration changes the position of the YAxis, which is to the left of the PlotArea by default.

To get the specific type of y-axis from the series the following code can be used:

IndexedYAxis axis = barSeries.YAxis;        
Dim MyAxis As IndexedYAxis = MyBarSeries.YAxis  

Note: The default YAxis retrieved from the PlotArea or Series, only after adding the Series to SeriesList.

NumericYAxis

It uses NumericYAxisLabels. The following series will use the NumericYAxis:

Date Time Area Series

Date Time Line Series

Date Time Column Series

Date Time Stacked Area Series

Date Time Stacked Line Series

DateTime Stacked Column Series

Indexed Stacked Line Series

Indexed Stacked Area Series

Indexed Stacked Column Series

Indexed Line Series

Indexed Area Series

Indexed Column Series

DateTimeYAxis

It uses DateTimeYAxisLabels. The following series will use the DateTimeYAxis:

Date Time Bar Series

Date Time Stacked Bar Series

Date Time 100% Stacked Bar Series

PercentageYAxis

It uses PercentageYAxisLabels. The following series will use the PercentageYAxis:

Date Time 100% Stacked Area Series

Date Time 100% Stacked Column Series

Date Time 100% Stacked Line Series

Indexed 100% Stacked Area Series

Indexed 100% Stacked Column Series

Indexed 100% Stacked Line Series

IndexedYAxis

It uses IndexedYAxisLabels. The following series will use the IndexedYAxis:

Indexed Bar Series

Indexed Stacked Bar Series

Indexed 100% Stacked Bar Series

In this topic