Series.XAxisType 属性


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

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