charturbo - v0.1.0
    Preparing search index...

    Interface PieChartOptions

    interface PieChartOptions {
        animation?: ChartAnimationInput;
        centerLabel?: string | boolean;
        colors?: (ColorInput | null | undefined)[];
        cornerRadius?: number;
        decal?: ChartDecalInput;
        decals?: DecalOverride[];
        description?: string;
        direction?: "clockwise" | "counterclockwise";
        donut?: number;
        endAngle?: number;
        format?: (value: number) => string;
        label?: RichLabelOptions<PieLabelContext>;
        labelMinAngle?: number;
        labels?: PieLabelMode;
        legend?: boolean | ChartLegendOptions;
        maxSlices?: number | false;
        otherColor?: ColorInput;
        otherLabel?: string;
        padAngle?: number;
        padding?: ChartPaddingOptions;
        rose?: PieRoseMode;
        sort?: "none" | "desc";
        startAngle?: number;
        title?: string;
        valueLabel?: string;
    }
    Index

    Enter / update animation of this chart (default: the SDK setting, setAnimation)

    centerLabel?: string | boolean

    Donut center text: the visible total (the hovered slice while hovering). true (default for donuts, not roses) captions it Total (in the chart language), a string replaces the caption, false hides it

    colors?: (ColorInput | null | undefined)[]

    Color per input value (default: theme palette in fixed display order)

    cornerRadius?: number

    Rounds every slice corner by this many CSS px (default 0), shrunk per slice so corners never cross; a pie's center stays sharp

    Pattern fills over the marks (accessibility, ECharts aria.decal): true gives each slice (multi-ring pies: each name) its own automatic pattern; options apply over the automatic patterns (default off). The folded "Other" slice has none

    decals?: DecalOverride[]

    Per-slice decal over decal by input index (false: none); multi-ring pies: the first value of each name decides

    description?: string

    Accessible name of the canvas

    direction?: "clockwise" | "counterclockwise"

    Default 'clockwise'

    donut?: number

    Donut hole radius / outer radius (0 or omitted = pie; up to 0.95)

    endAngle?: number

    Degrees clockwise from 12 o'clock where the last slice ends (default: a full turn), e.g. startAngle: -90, endAngle: 90 for a top half donut. The slices share the sweep along direction; an end at or before the start is a full turn. The chart is framed to the sweep

    format?: (value: number) => string

    Value text of labels, tooltip and center (default: locale number)

    Label text of every shown slice label (outside and inside), e.g. { formatter: (c) => \{name|${c.name}}\n{pct|${c.percent.toFixed(1)}%}`, rich: { name: { fontWeight: 600 } } }` (rich text, see chart-rich-text.ts). Default: name + percent outside, percent inside

    labelMinAngle?: number

    Slices narrower than this many degrees get no label (legend / tooltip only; default 6)

    labels?: PieLabelMode

    Default 'outside'

    legend?: boolean | ChartLegendOptions

    Legend of the displayed slices (default: shown); click toggles a slice, hover emphasizes it

    maxSlices?: number | false

    Displayed slices including "Other" (default 8); smaller ones fold into "Other". 0 / false disables folding

    otherColor?: ColorInput

    Color of the "Other" slice (default: the theme's neutral baseline color)

    otherLabel?: string

    Name of the folded slice (default: 'Other' in the chart language)

    padAngle?: number

    Angular gap between slices in degrees (default 0, at most 45), on top of the 2 px surface gap. Slices narrower than it are not drawn (legend / tooltip / table still list them)

    Nightingale rose chart (default: off, every slice reaches the full radius)

    sort?: "none" | "desc"

    'none' (default): input order; 'desc': largest first. "Other" stays last

    startAngle?: number

    Degrees clockwise from 12 o'clock where the first slice starts (default 0)

    title?: string
    valueLabel?: string

    Tooltip / table name of the values (default: 'Value' in the chart language)