docx
    Preparing search index...

    Type Alias PieChartSeries

    The series of a pie chart, or a ring of a doughnut chart: one value, a slice, for each category.

    type PieChartSeries = {
        colors?: readonly (string | ThemeColor | undefined)[];
        dataLabels?: false | PieChartDataLabels;
        explosion?: number | readonly (number | undefined)[];
        name: string;
        pointLabels?: readonly (false | PieChartPointLabel | undefined)[];
        values: readonly (number | null)[];
    }
    Index
    colors?: readonly (string | ThemeColor | undefined)[]

    One colour for each slice, as a 6-digit hex colour or a colour of the document's theme. A slice without one, or with undefined, takes the next of the theme's accent colours

    dataLabels?: false | PieChartDataLabels

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

    explosion?: number | readonly (number | undefined)[]

    Pulls the slices out from the centre, by a percentage of the radius from 0 to 400: one amount for every slice, or one for each slice in the order of the categories, where undefined leaves a slice in. Default is 0

    name: string

    The series' name

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

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

    values: readonly (number | null)[]

    One value for each category, in order. null leaves the slice out. Values can't be negative