Series.YAxisType 属性

定义

获取或设置序列的 Y 轴类型。Gets or sets the Y-axis type of a series.

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

属性值

一个 AxisType 枚举值,决定系列使用主 Y 轴还是辅助 Y 轴。An AxisType enumeration value that determines if a series uses the primary or secondary Y-axis.

属性

注解

YAxisType属性确定是使用主 Y 轴还是辅助 Y 轴绘制序列。The YAxisType property determines if a series is plotted using the primary or secondary Y-axis.

对于除饼图、圆环图、范围条形图、条形图和堆积条形图之外的所有图表类型, 主 Y 轴是左垂直轴, 辅助轴是右垂直轴。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. 对于条形图和堆积条形图, 主轴是水平轴, 辅助 Y 轴是水平轴。For bar and stacked bar charts, the primary axis is the lower horizontal axis, and the secondary Y-axis is the upper horizontal axis.

使用辅助 Y 轴绘制数据时, 必须使用AxisY2属性来设置轴属性, 而AxisY不是属性。When data is plotted using the secondary Y-axis, you must use the AxisY2 property to set axis properties, and not the AxisY property.

适用于