Series.YAxisType Property

.NET Framework (current version)
 

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

Namespace:   System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

[BindableAttribute(true)]
public AxisType YAxisType { get; set; }

Property Value

Type: System.Web.UI.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
Show: