Series.YAxisType Property

.NET Framework (current version)

Gets or sets the Y-axis type of a series.

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

public AxisType YAxisType { get; set; }

Property Value

Type: System.Windows.Forms.DataVisualization.Charting.AxisType

An AxisType enumeration value that determines if a series uses the primary or secondary Y-axis.

The YAxisType property determines if a series is plotted using the primary or secondary Y-axis.

For all chart types except pie, doughnut, range bar, bar and stacked bar charts, the primary Y-axis is the left vertical axis, and the secondary axis is the right vertical axis. For bar and stacked bar charts, the primary axis is the lower horizontal axis, and the secondary Y-axis is the upper horizontal axis.

When data is plotted using the secondary Y-axis, you must use the AxisY2 property to set axis properties, and not the AxisY property.

.NET Framework
Available since 4.0
Return to top