docx
    Preparing search index...

    Type Alias ChartSeries

    A series of a column, bar, line or area chart: one value for each category.

    markers, smooth and line are for series drawn as lines, and colors for series drawn as bars.

    type ChartSeries = {
        axis?: ChartAxisGroup;
        color?: string | ThemeColor;
        colors?: readonly (string | ThemeColor | undefined)[];
        dataLabels?: false | ChartDataLabels;
        errorBars?: ChartErrorBars;
        line?: ChartLine;
        markers?: boolean | ChartMarker;
        name: string;
        pointLabels?: readonly (false | ChartPointLabel | undefined)[];
        smooth?: boolean;
        trendlines?: readonly ChartTrendline[];
        type?: ComboChartSeriesType;
        values: readonly (number | null)[];
    }
    Index

    Draws the series against the secondary value axis, on the right. Default is "primary"

    color?: string | ThemeColor

    The colour of the series' bars, line or area: a 6-digit hex colour such as "4472C4", or a colour of the document's theme such as { theme: "accent2" }. Default is the next of the theme's accent colours

    colors?: readonly (string | ThemeColor | undefined)[]

    One colour for each bar, in the order of the categories. A bar without one, or with undefined, takes the series' colour. Only for series drawn as bars

    dataLabels?: false | ChartDataLabels

    The series' own labels, instead of the chart's dataLabels, or false for none

    errorBars?: ChartErrorBars

    Error bars along the values: up and down from columns, lines and areas, or left and right from a bar chart's bars

    line?: ChartLine

    The line's colour, width and dashes. Only for lines

    markers?: boolean | ChartMarker

    Draws a marker at each point, or markers of a shape and size. Default is the chart's markers. Only for lines

    name: string

    The series' name, shown in the legend

    pointLabels?: readonly (false | ChartPointLabel | undefined)[]

    Labels of single bars or points, in the order of the categories: a label of its own, false for none, or undefined for the series' own

    smooth?: boolean

    Draws the line as a smooth curve. Default is the chart's smooth. Only for lines

    trendlines?: readonly ChartTrendline[]

    Lines fitted to the values. Not for stacked series

    Draws the series as columns, a line or an area, whatever the chart's type, as Word's "Combo" charts do. Default is the chart's type. A bar chart's series are all bars

    values: readonly (number | null)[]

    One value for each category, in order. null leaves a gap. A series can have fewer values than there are categories