Interface: DoughnutControllerDatasetOptions
<ArcHoverOptions, <
"doughnut"
>>AnimationOptions<
"doughnut"
>↳
DoughnutControllerDatasetOptions
↳↳
Properties
• animation: false
| <"doughnut"
> & { onComplete?
: (event
: AnimationEvent) => void
; onProgress?
: (event
: ) => void
}
Inherited from
AnimationOptions.animation
Defined in
index.esm.d.ts:1599 (opens new window)
animations
• animations: AnimationsSpec<"doughnut"
>
Inherited from
AnimationOptions.animations
Defined in
backgroundColor
• backgroundColor: <Color, <"doughnut"
>>
Inherited from
ScriptableAndArrayOptions.backgroundColor
Defined in
index.esm.d.ts:1654 (opens new window)
borderAlign
• borderAlign: ScriptableAndArray<"center"
| "inner"
, <"doughnut"
>>
Arc stroke alignment.
Inherited from
ScriptableAndArrayOptions.borderAlign
Defined in
index.esm.d.ts:1690 (opens new window)
borderColor
• borderColor: ScriptableAndArray<, ScriptableContext<>>
Inherited from
ScriptableAndArrayOptions.borderColor
Defined in
borderRadius
• borderRadius: <number
| ArcBorderRadius, <"doughnut"
>>
Sets the border radius for arcs
default
0
Inherited from
ScriptableAndArrayOptions.borderRadius
Defined in
index.esm.d.ts:1699 (opens new window)
borderWidth
• borderWidth: ScriptableAndArray<number
, <"doughnut"
>>
Inherited from
ScriptableAndArrayOptions.borderWidth
Defined in
index.esm.d.ts:1652 (opens new window)
circumference
• circumference: number
Sweep to allow arcs to cover.
default
360
Defined in
• clip: number
|
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
index.esm.d.ts:67 (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
Defined in
index.esm.d.ts:85 (opens new window)
hoverBackgroundColor
• hoverBackgroundColor: ScriptableAndArray<, ScriptableContext<"doughnut"
>>
Inherited from
ScriptableAndArrayOptions.hoverBackgroundColor
Defined in
hoverBorderColor
• hoverBorderColor: <Color, <"doughnut"
>>
Inherited from
ScriptableAndArrayOptions.hoverBorderColor
Defined in
index.esm.d.ts:1659 (opens new window)
hoverBorderWidth
• hoverBorderWidth: ScriptableAndArray<number
, <"doughnut"
>>
Inherited from
ScriptableAndArrayOptions.hoverBorderWidth
Defined in
index.esm.d.ts:1658 (opens new window)
hoverOffset
• hoverOffset: ScriptableAndArray<number
, <"doughnut"
>>
Inherited from
ScriptableAndArrayOptions.hoverOffset
Defined in
index.esm.d.ts:1703 (opens new window)
indexAxis
• indexAxis: | "y"
The base axis of the chart. ‘x’ for vertical charts and ‘y’ for horizontal charts.
default
‘x’
Inherited from
Defined in
index.esm.d.ts:63 (opens new window)
label
• label: string
The label for the dataset which appears in the legend and tooltips.
Inherited from
Defined in
index.esm.d.ts:71 (opens new window)
• 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
Defined in
offset
• offset: number
Arc offset (in pixels).
Overrides
ScriptableAndArrayOptions.offset
Defined in
order
• order: number
The drawing order of dataset. Also affects order for stacking, tooltip and legend.
Inherited from
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
Defined in
rotation
• rotation: number
Starting angle to draw this dataset from.
default
0
Defined in
index.esm.d.ts:256 (opens new window)
spacing
• spacing: number
Similar to the offset
option, but applies to all arcs. This can be used to to add spaces between arcs
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
Defined in
transitions
• transitions: <"doughnut"
>
Inherited from
AnimationOptions.transitions
Defined in
index.esm.d.ts:1610 (opens new window)
• 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