Excel.Interfaces.ChartSeriesData interface

一个描述通过调用 chartSeries.toJSON()返回的数据的接口。

注解

使用方

属性

chartType

表示系列的图表类型。 有关详细信息,请参阅 Excel.ChartType。

doughnutHoleSize

表示图表系列的圆环孔大小。 仅对圆环图和圆环分解图有效。 在无效图表上引发 InvalidArgument 错误。

filtered

指定是否筛选序列。 不适用于曲面图。

format

表示图表系列的格式,包括填充和线条格式。

gapWidth

表示图表系列的间隙宽度。 仅对条形图和柱形图以及特定类别的折线图和饼图有效。 在无效图表上引发无效参数异常。

hasDataLabels

指定系列是否具有数据标签。

markerBackgroundColor

指定图表系列的标记背景色。

markerForegroundColor

指定图表系列的标记前景色。

markerSize

指定一系列图表的标记大小。 支持的大小范围为 2 到 72。 如果设置的大小超出支持范围,则此方法将返回 InvalidArgument 错误。

markerStyle

指定图表系列的标记样式。 有关详细信息,请参阅 Excel.ChartMarkerStyle。

name

指定图表中一系列的名称。 名称的长度不应超过 255 个字符。

plotOrder

指定图表组中图表系列的绘图顺序。

points

返回系列中所有点的集合。

showShadow

指定序列是否具有阴影。

smooth

指定序列是否平滑。 仅适用于折线图和散点图。

trendlines

系列中趋势线的集合。

属性详细信息

chartType

表示系列的图表类型。 有关详细信息,请参阅 Excel.ChartType。

chartType?: Excel.ChartType | "Invalid" | "ColumnClustered" | "ColumnStacked" | "ColumnStacked100" | "3DColumnClustered" | "3DColumnStacked" | "3DColumnStacked100" | "BarClustered" | "BarStacked" | "BarStacked100" | "3DBarClustered" | "3DBarStacked" | "3DBarStacked100" | "LineStacked" | "LineStacked100" | "LineMarkers" | "LineMarkersStacked" | "LineMarkersStacked100" | "PieOfPie" | "PieExploded" | "3DPieExploded" | "BarOfPie" | "XYScatterSmooth" | "XYScatterSmoothNoMarkers" | "XYScatterLines" | "XYScatterLinesNoMarkers" | "AreaStacked" | "AreaStacked100" | "3DAreaStacked" | "3DAreaStacked100" | "DoughnutExploded" | "RadarMarkers" | "RadarFilled" | "Surface" | "SurfaceWireframe" | "SurfaceTopView" | "SurfaceTopViewWireframe" | "Bubble" | "Bubble3DEffect" | "StockHLC" | "StockOHLC" | "StockVHLC" | "StockVOHLC" | "CylinderColClustered" | "CylinderColStacked" | "CylinderColStacked100" | "CylinderBarClustered" | "CylinderBarStacked" | "CylinderBarStacked100" | "CylinderCol" | "ConeColClustered" | "ConeColStacked" | "ConeColStacked100" | "ConeBarClustered" | "ConeBarStacked" | "ConeBarStacked100" | "ConeCol" | "PyramidColClustered" | "PyramidColStacked" | "PyramidColStacked100" | "PyramidBarClustered" | "PyramidBarStacked" | "PyramidBarStacked100" | "PyramidCol" | "3DColumn" | "Line" | "3DLine" | "3DPie" | "Pie" | "XYScatter" | "3DArea" | "Area" | "Doughnut" | "Radar" | "Histogram" | "Boxwhisker" | "Pareto" | "RegionMap" | "Treemap" | "Waterfall" | "Sunburst" | "Funnel";

属性值

Excel.ChartType | "Invalid" | "ColumnClustered" | "ColumnStacked" | "ColumnStacked100" | "3DColumnClustered" | "3DColumnStacked" | "3DColumnStacked100" | "BarClustered" | "BarStacked" | "BarStacked100" | "3DBarClustered" | "3DBarStacked" | "3DBarStacked100" | "LineStacked" | "LineStacked100" | "LineMarkers" | "LineMarkersStacked" | "LineMarkersStacked100" | "PieOfPie" | "PieExploded" | "3DPieExploded" | "BarOfPie" | "XYScatterSmooth" | "XYScatterSmoothNoMarkers" | "XYScatterLines" | "XYScatterLinesNoMarkers" | "AreaStacked" | "AreaStacked100" | "3DAreaStacked" | "3DAreaStacked100" | "DoughnutExploded" | "RadarMarkers" | "RadarFilled" | "Surface" | "SurfaceWireframe" | "SurfaceTopView" | "SurfaceTopViewWireframe" | "Bubble" | "Bubble3DEffect" | "StockHLC" | "StockOHLC" | "StockVHLC" | "StockVOHLC" | "CylinderColClustered" | "CylinderColStacked" | "CylinderColStacked100" | "CylinderBarClustered" | "CylinderBarStacked" | "CylinderBarStacked100" | "CylinderCol" | "ConeColClustered" | "ConeColStacked" | "ConeColStacked100" | "ConeBarClustered" | "ConeBarStacked" | "ConeBarStacked100" | "ConeCol" | "PyramidColClustered" | "PyramidColStacked" | "PyramidColStacked100" | "PyramidBarClustered" | "PyramidBarStacked" | "PyramidBarStacked100" | "PyramidCol" | "3DColumn" | "Line" | "3DLine" | "3DPie" | "Pie" | "XYScatter" | "3DArea" | "Area" | "Doughnut" | "Radar" | "Histogram" | "Boxwhisker" | "Pareto" | "RegionMap" | "Treemap" | "Waterfall" | "Sunburst" | "Funnel"

注解

API 集:ExcelApi 1.7

doughnutHoleSize

表示图表系列的圆环孔大小。 仅对圆环图和圆环分解图有效。 在无效图表上引发 InvalidArgument 错误。

doughnutHoleSize?: number;

属性值

number

注解

API 集:ExcelApi 1.7

filtered

指定是否筛选序列。 不适用于曲面图。

filtered?: boolean;

属性值

boolean

注解

API 集:ExcelApi 1.7

format

表示图表系列的格式,包括填充和线条格式。

format?: Excel.Interfaces.ChartSeriesFormatData;

属性值

注解

API 集:ExcelApi 1.1

gapWidth

表示图表系列的间隙宽度。 仅对条形图和柱形图以及特定类别的折线图和饼图有效。 在无效图表上引发无效参数异常。

gapWidth?: number;

属性值

number

注解

API 集:ExcelApi 1.7

hasDataLabels

指定系列是否具有数据标签。

hasDataLabels?: boolean;

属性值

boolean

注解

API 集:ExcelApi 1.7

markerBackgroundColor

指定图表系列的标记背景色。

markerBackgroundColor?: string;

属性值

string

注解

API 集:ExcelApi 1.7

markerForegroundColor

指定图表系列的标记前景色。

markerForegroundColor?: string;

属性值

string

注解

API 集:ExcelApi 1.7

markerSize

指定一系列图表的标记大小。 支持的大小范围为 2 到 72。 如果设置的大小超出支持范围,则此方法将返回 InvalidArgument 错误。

markerSize?: number;

属性值

number

注解

API 集:ExcelApi 1.7

markerStyle

指定图表系列的标记样式。 有关详细信息,请参阅 Excel.ChartMarkerStyle。

markerStyle?: Excel.ChartMarkerStyle | "Invalid" | "Automatic" | "None" | "Square" | "Diamond" | "Triangle" | "X" | "Star" | "Dot" | "Dash" | "Circle" | "Plus" | "Picture";

属性值

Excel.ChartMarkerStyle | "Invalid" | "Automatic" | "None" | "Square" | "Diamond" | "Triangle" | "X" | "Star" | "Dot" | "Dash" | "Circle" | "Plus" | "Picture"

注解

API 集:ExcelApi 1.7

name

指定图表中一系列的名称。 名称的长度不应超过 255 个字符。

name?: string;

属性值

string

注解

API 集:ExcelApi 1.1

plotOrder

指定图表组中图表系列的绘图顺序。

plotOrder?: number;

属性值

number

注解

API 集:ExcelApi 1.7

points

返回系列中所有点的集合。

points?: Excel.Interfaces.ChartPointData[];

属性值

注解

API 集:ExcelApi 1.1

showShadow

指定序列是否具有阴影。

showShadow?: boolean;

属性值

boolean

注解

API 集:ExcelApi 1.7

smooth

指定序列是否平滑。 仅适用于折线图和散点图。

smooth?: boolean;

属性值

boolean

注解

API 集:ExcelApi 1.7

trendlines

系列中趋势线的集合。

trendlines?: Excel.Interfaces.ChartTrendlineData[];

属性值

注解

API 集:ExcelApi 1.7