Interface: DoughnutControllerDatasetOptions

    Properties

    animation: false | AnimationSpec<"doughnut"> & { onComplete?: (event: ) => void ; onProgress?: (event: AnimationEvent) => void }

    Inherited from: AnimationOptions.animation

    Defined in:


    animations

    animations: <"doughnut">

    Inherited from: AnimationOptions.animations

    Defined in: index.esm.d.ts:1543DoughnutControllerDatasetOptions - 图2 (opens new window)


    backgroundColor

    backgroundColor: ScriptableAndArray<, ScriptableContext<"doughnut">>

    Inherited from: ScriptableAndArrayOptions.backgroundColor

    Defined in:


    borderAlign

    borderAlign: < | "inner", ScriptableContext<"doughnut">>

    Arc stroke alignment.

    Inherited from: ScriptableAndArrayOptions.borderAlign

    Defined in:


    borderColor

    borderColor: <Color, <"doughnut">>

    Inherited from: ScriptableAndArrayOptions.borderColor

    Defined in: index.esm.d.ts:1587 (opens new window)


    borderRadius

    borderRadius: ScriptableAndArray<number | , ScriptableContext<"doughnut">>

    Sets the border radius for arcs

    default 0

    Inherited from: ScriptableAndArrayOptions.borderRadius

    Defined in:


    borderWidth

    borderWidth: <number, ScriptableContext<"doughnut">>

    Inherited from: ScriptableAndArrayOptions.borderWidth

    Defined in:


    circumference

    circumference: number

    Sweep to allow arcs to cover.

    Defined in:


    clip: number | ChartArea

    How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}

    Inherited from: .clip

    Defined in:


    hidden

    hidden: boolean

    Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.

    default false

    Inherited from: .hidden

    Defined in:


    hoverBackgroundColor

    hoverBackgroundColor: <Color, <"doughnut">>

    Inherited from: ScriptableAndArrayOptions.hoverBackgroundColor

    Defined in: index.esm.d.ts:1594 (opens new window)


    hoverBorderColor

    hoverBorderColor: ScriptableAndArray<, ScriptableContext<>>

    Inherited from: ScriptableAndArrayOptions.hoverBorderColor

    Defined in:


    hoverBorderWidth

    hoverBorderWidth: <number, ScriptableContext<"doughnut">>

    Inherited from: ScriptableAndArrayOptions.hoverBorderWidth

    Defined in:


    hoverOffset

    hoverOffset: <number, ScriptableContext<"doughnut">>

    Inherited from: ScriptableAndArrayOptions.hoverOffset

    Defined in:


    indexAxis

    indexAxis: "x" | "y"

    The base axis of the chart. ‘x’ for vertical charts and ‘y’ for horizontal charts.

    default ‘x’

    Inherited from: .indexAxis

    Defined in:


    label

    label: string

    The label for the dataset which appears in the legend and tooltips.

    Inherited from: .label


    normalized: boolean

    Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.

    Inherited from: .normalized

    Defined in:


    offset

    offset: <number, ScriptableContext<"doughnut">>

    Arc offset (in pixels).

    Inherited from: ScriptableAndArrayOptions.offset

    Defined in:


    order

    order: number

    The drawing order of dataset. Also affects order for stacking, tooltip and legend.

    Inherited from: .order

    Defined in:


    parsing

    parsing: false | { [key: string]: string; }

    How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.

    Inherited from: .parsing

    Defined in:


    rotation

    rotation: number

    Starting angle to draw this dataset from.

    default 0

    Defined in:


    stack

    stack: string

    The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).

    Inherited from: .stack

    Defined in:


    transitions

    transitions: <"doughnut">

    Inherited from: AnimationOptions.transitions

    Defined in: index.esm.d.ts:1544DoughnutControllerDatasetOptions - 图23 (opens new window)


    weight

    weight: number

    The relative thickness of the dataset. Providing a value for weight will cause the pie or doughnut dataset to be drawn with a thickness relative to the sum of all the dataset weight values.

    1