AxisName Enumeration

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Specifies the name of an axis.

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

public enum AxisName

Member nameDescription
X

Primary X-axis.

X2

Secondary X-axis.

Y

Primary Y-axis.

Y2

Secondary Y-axis.

The AxisName enumeration represents the four different axes that can be used for a chart.

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.

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

Axis Type

Description

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
Available since 4.0
Return to top
Show: