# Interface: DoughnutControllerDatasetOptions
# Hierarchy
ScriptableAndArrayOptions
<ArcOptions
,ScriptableContext
<"doughnut"
>>ScriptableAndArrayOptions
<ArcHoverOptions
,ScriptableContext
<"doughnut"
>>AnimationOptions
<"doughnut"
>↳
DoughnutControllerDatasetOptions
# Properties
# animation
• animation: false
| AnimationSpec
<"doughnut"
> & { onComplete?
: (this
: Chart
<keyof ChartTypeRegistry
, (number
| [number
, number
] | Point
| BubbleDataPoint
)[], unknown
>, event
: AnimationEvent
) => void
; onProgress?
: (this
: Chart
<keyof ChartTypeRegistry
, (number
| [number
, number
] | Point
| BubbleDataPoint
)[], unknown
>, event
: AnimationEvent
) => void
}
# Inherited from
AnimationOptions.animation
# Defined in
types/index.d.ts:1747
# animations
• animations: AnimationsSpec
<"doughnut"
>
# Inherited from
AnimationOptions.animations
# Defined in
types/index.d.ts:1757
# backgroundColor
• backgroundColor: ScriptableAndArray
<Color
, ScriptableContext
<"doughnut"
>>
# Inherited from
ScriptableAndArrayOptions.backgroundColor
# Defined in
types/index.d.ts:1807
# borderAlign
• borderAlign: ScriptableAndArray
<"center"
| "inner"
, ScriptableContext
<"doughnut"
>>
Arc stroke alignment.
# Inherited from
ScriptableAndArrayOptions.borderAlign
# Defined in
types/index.d.ts:1833
# borderColor
• borderColor: ScriptableAndArray
<Color
, ScriptableContext
<"doughnut"
>>
# Inherited from
ScriptableAndArrayOptions.borderColor
# Defined in
types/index.d.ts:1806
# borderDash
• borderDash: ScriptableAndArray
<number
[], ScriptableContext
<"doughnut"
>>
Line dash. See MDN.
Default
[]
# Inherited from
ScriptableAndArrayOptions.borderDash
# Defined in
types/index.d.ts:1838
# borderDashOffset
• borderDashOffset: ScriptableAndArray
<number
, ScriptableContext
<"doughnut"
>>
Line dash offset. See MDN.
Default
0.0
# Inherited from
ScriptableAndArrayOptions.borderDashOffset
# Defined in
types/index.d.ts:1843
# borderJoinStyle
• borderJoinStyle: ScriptableAndArray
<CanvasLineJoin
, ScriptableContext
<"doughnut"
>>
Line join style. See MDN. Default is 'round' when borderAlign
is 'inner', else 'bevel'.
# Inherited from
ScriptableAndArrayOptions.borderJoinStyle
# Defined in
types/index.d.ts:1847
# borderRadius
• borderRadius: ScriptableAndArray
<number
| ArcBorderRadius
, ScriptableContext
<"doughnut"
>>
Sets the border radius for arcs
Default
0
# Inherited from
ScriptableAndArrayOptions.borderRadius
# Defined in
types/index.d.ts:1853
# borderWidth
• borderWidth: ScriptableAndArray
<number
, ScriptableContext
<"doughnut"
>>
# Inherited from
ScriptableAndArrayOptions.borderWidth
# Defined in
types/index.d.ts:1805
# circular
• circular: ScriptableAndArray
<boolean
, ScriptableContext
<"doughnut"
>>
If false, Arc will be flat.
Default
true
# Inherited from
ScriptableAndArrayOptions.circular
# Defined in
types/index.d.ts:1864
# circumference
• circumference: number
Sweep to allow arcs to cover.
Default
360
# Defined in
types/index.d.ts:257
# clip
• clip: number
| false
| 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
# Defined in
types/index.d.ts:75
# 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
types/index.d.ts:93
# hoverBackgroundColor
• hoverBackgroundColor: ScriptableAndArray
<Color
, ScriptableContext
<"doughnut"
>>
# Inherited from
ScriptableAndArrayOptions.hoverBackgroundColor
# Defined in
types/index.d.ts:1813
# hoverBorderColor
• hoverBorderColor: ScriptableAndArray
<Color
, ScriptableContext
<"doughnut"
>>
# Inherited from
ScriptableAndArrayOptions.hoverBorderColor
# Defined in
types/index.d.ts:1812
# hoverBorderDash
• hoverBorderDash: ScriptableAndArray
<number
[], ScriptableContext
<"doughnut"
>>
# Inherited from
ScriptableAndArrayOptions.hoverBorderDash
# Defined in
types/index.d.ts:1873
# hoverBorderDashOffset
• hoverBorderDashOffset: ScriptableAndArray
<number
, ScriptableContext
<"doughnut"
>>
# Inherited from
ScriptableAndArrayOptions.hoverBorderDashOffset
# Defined in
types/index.d.ts:1874
# hoverBorderWidth
• hoverBorderWidth: ScriptableAndArray
<number
, ScriptableContext
<"doughnut"
>>
# Inherited from
ScriptableAndArrayOptions.hoverBorderWidth
# Defined in
types/index.d.ts:1811
# hoverOffset
• hoverOffset: ScriptableAndArray
<number
, ScriptableContext
<"doughnut"
>>
# Inherited from
ScriptableAndArrayOptions.hoverOffset
# Defined in
types/index.d.ts:1875
# 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
types/index.d.ts:71
# label
• label: string
The label for the dataset which appears in the legend and tooltips.
# Inherited from
ControllerDatasetOptions.label
# Defined in
types/index.d.ts:79
# 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
types/index.d.ts:63
# offset
• offset: number
| number
[]
Arc offset (in pixels).
# Overrides
ScriptableAndArrayOptions.offset
# Defined in
types/index.d.ts:262
# order
• order: number
The drawing order of dataset. Also affects order for stacking, tooltip and legend.
# Inherited from
ControllerDatasetOptions.order
# Defined in
types/index.d.ts:83
# 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
types/index.d.ts:54
# rotation
• rotation: number
Starting angle to draw this dataset from.
Default
0
# Defined in
types/index.d.ts:268
# 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
# Overrides
ScriptableAndArrayOptions.spacing
# Defined in
types/index.d.ts:281
# 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
types/index.d.ts:88
# transitions
• transitions: TransitionsSpec
<"doughnut"
>
# Inherited from
AnimationOptions.transitions
# Defined in
types/index.d.ts:1758
# 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
types/index.d.ts:274