AxisType 枚举


指定 Series 的 X 轴和 Y 轴的轴类型。Specifies the axis type for the X and Y-axes of a Series.

public enum class AxisType
public enum AxisType
type AxisType = 
Public Enum AxisType


Primary 0

指定某个轴为主轴。Designates an axis as the primary axis.

Secondary 1

指定某个轴为辅助轴。Designates an axis as the secondary axis.


枚举表示用于的 X 轴和 Y 轴Series的轴类型。 AxisTypeThe AxisType enumeration represents the axis type used for the X and Y-axes of a Series.

Series使用两个轴绘制, 饼图和圆环图除外。A Series is plotted using two axes, with the exception of pie and doughnut charts. 此枚举与XAxisTypeYAxisType属性结合使用, 以设置用于绘制序列的关联数据点的轴。This enumeration is used in conjunction with the XAxisType and YAxisType properties to set the axes used for plotting the associated data points of the series.

对于除条形图、堆积条形图、饼图和圆环图之外的所有图表, 主要轴和辅助轴如下:For all charts except for bar, stacked bar, pie and doughnut types, the primary and secondary axes are as follows:

轴类型Axis Type 说明Description
主 X 轴Primary X-Axis 底部水平轴。Bottom horizontal axis.
辅助 X 轴Secondary X-Axis 顶部水平轴。Top horizontal axis.
主 Y 轴Primary Y-Axis 左垂直轴。Left vertical axis.
辅助 Y 轴Secondary Y-Axis 右垂直轴。Right vertical axis.

条形图和堆积条形图的轴顺时针旋转了90度。Bar and stacked bar charts have their axes rotated 90 degrees clockwise. 例如, 这两个图表的主 X 轴是左垂直轴。For example, the primary X-axis for these two charts is the left-vertical axis.