Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
AxisType Enumeration
Collapse the table of content
Expand the table of content

AxisType Enumeration

.NET Framework 4.6 and 4.5

Specifies the axis type for the X and Y-axes of a Series.

Namespace:  System.Windows.Forms.DataVisualization.Charting
Assembly:  System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)

public enum AxisType

Member nameDescription
PrimaryDesignates an axis as the primary axis.
SecondaryDesignates an axis as the secondary axis.

The AxisType enumeration represents the axis type used for the X and Y-axes of a Series.

A Series is plotted using two axes, with the exception of pie and doughnut charts. This enumeration is used in conjunction with the XAxisType and YAxisType properties to set the axes used for plotting the associated data points of the series.

For all charts except for bar, stacked bar, pie and doughnut types, the primary and secondary axes are as follows:

Axis Type


Primary X-Axis

Bottom horizontal axis.

Secondary X-Axis

Top horizontal axis.

Primary Y-Axis

Left vertical axis.

Secondary Y-Axis

Right vertical axis.

Bar and stacked bar charts have their axes rotated 90 degrees clockwise. For example, the primary X-axis for these two charts is the left-vertical axis.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
© 2015 Microsoft