Series.YAxisType Property

Definition

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

public:
 property System::Windows::Forms::DataVisualization::Charting::AxisType YAxisType { System::Windows::Forms::DataVisualization::Charting::AxisType get(); void set(System::Windows::Forms::DataVisualization::Charting::AxisType value); };
[System.ComponentModel.Bindable(true)]
public System.Windows.Forms.DataVisualization.Charting.AxisType YAxisType { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.YAxisType : System.Windows.Forms.DataVisualization.Charting.AxisType with get, set
Public Property YAxisType As AxisType

Property Value

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

Attributes

Remarks

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.

Applies to