Interface: DoughnutControllerDatasetOptions

Hierarchy

Properties

animation

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

Inherited from: void

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


animations

animations: AnimationsSpec<doughnut>

Inherited from: void

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


backgroundColor

backgroundColor: ScriptableAndArray<Color, ScriptableContext<doughnut>>

Inherited from: void

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


borderAlign

borderAlign: ScriptableAndArray<center | inner, ScriptableContext<doughnut>>

Arc stroke alignment.

Inherited from: void

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


borderColor

borderColor: ScriptableAndArray<Color, ScriptableContext<doughnut>>

Inherited from: void

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


borderWidth

borderWidth: ScriptableAndArray<number, ScriptableContext<doughnut>>

Inherited from: void

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


circumference

circumference: number

Sweep to allow arcs to cover.

default 360

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


clip

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: ControllerDatasetOptions.clip

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


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: ControllerDatasetOptions.hidden

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


hoverBackgroundColor

hoverBackgroundColor: ScriptableAndArray<Color, ScriptableContext<doughnut>>

Inherited from: void

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


hoverBorderColor

hoverBorderColor: ScriptableAndArray<Color, ScriptableContext<doughnut>>

Inherited from: void

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


hoverBorderWidth

hoverBorderWidth: ScriptableAndArray<number, ScriptableContext<doughnut>>

Inherited from: void

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


hoverOffset

hoverOffset: ScriptableAndArray<number, ScriptableContext<doughnut>>

Inherited from: void

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


indexAxis

indexAxis: x | y

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

default ‘x’

Inherited from: ControllerDatasetOptions.indexAxis

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


label

label: string

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

Inherited from: ControllerDatasetOptions.label

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


normalized

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: ControllerDatasetOptions.normalized

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


offset

offset: ScriptableAndArray<number, ScriptableContext<doughnut>>

Arc offset (in pixels).

Inherited from: void

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


order

order: number

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

Inherited from: ControllerDatasetOptions.order

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


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: ControllerDatasetOptions.parsing

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


rotation

rotation: number

Starting angle to draw this dataset from.

default 0

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


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: ControllerDatasetOptions.stack

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


transitions

transitions: TransitionsSpec<doughnut>

Inherited from: void

Defined in: index.esm.d.ts:1538DoughnutControllerDatasetOptions - 图22 (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.

default 1

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