Series.XAxisType 属性

定义

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

public:
 property System::Web::UI::DataVisualization::Charting::AxisType XAxisType { 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 XAxisType { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.XAxisType : System.Web.UI.DataVisualization.Charting.AxisType with get, set
Public Property XAxisType As AxisType

属性值

AxisType

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

属性

注解

对于除水平方向的图表(如条形图和堆积条形图)和形状图(如饼图、圆环图、漏斗图和棱锥图)以外的所有图表类型,主 X 轴始终为下轴,辅助轴为上部轴。For all chart types except horizontally oriented charts such as bar and stacked bar charts, and shape charts such as pie, doughnut, funnel and pyramid charts, the primary X-axis is always the lower axis and the secondary axis is the upper axis. 对于条形图和堆积条形图,主 X 轴为左轴,辅助 X 轴为右轴。For bar and stacked bar charts, the primary X-axis is the left axis, and the secondary X-axis is the right axis.

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

适用于