You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @option the background color applied to the chart
15
+
* @default "#FFFFFF"
16
+
*/
13
17
backgroundColor?: string
18
+
/**
19
+
* @option pass any strings separated by a space to generate class names. Example: "my-class1 my-class2"
20
+
*/
14
21
className?: string
22
+
/**
23
+
* @option display data labels as divs inside a foreignObject, to get more control on the styling (line breaks, etc). If false, displays the data labels as a svg text element, with no control over line breaks.
24
+
* @default false
25
+
*/
15
26
dataLabelsAsDivs?: boolean
27
+
/**
28
+
* @option the text color of data labels
29
+
* @default "#000000"
30
+
*/
16
31
dataLabelsColor?: string
32
+
/**
33
+
* @option the font size of data labels
34
+
* @default 12
35
+
*/
17
36
dataLabelsFontSize?: number
37
+
/**
38
+
* @option the rounding of the percentage displayed in data labels
39
+
* @default 0
40
+
*/
18
41
dataLabelsRoundingPercentage?: number
42
+
/**
43
+
* @option the rounding of the value displayed in data labels
44
+
* @default 0
45
+
*/
19
46
dataLabelsRoundingValue?: number
47
+
/**
48
+
* @option the offset of data labels from the arcs
49
+
* @default 40
50
+
*/
20
51
dataLabelsOffset?: number
52
+
/**
53
+
* @option the offset of the data labels line markers
54
+
* @default 20
55
+
*/
21
56
dataLabelsLineOffset?: number
57
+
/**
58
+
* @option the border width of the donut arcs
59
+
* @default 1
60
+
*/
22
61
donutBorderWidth?: number
62
+
/**
63
+
* @option the size ratio of the overall donut radius
64
+
* @default 1
65
+
* @example 0.8 will make it smaller
66
+
*/
23
67
donutRadiusRatio?: number
68
+
/**
69
+
* @option the thickness of donut arcs
70
+
* @default 48
71
+
*/
24
72
donutThickness?: number
73
+
/**
74
+
* @option font family for all text elements
75
+
* @default "inherit"
76
+
*/
25
77
fontFamily?: string
78
+
/**
79
+
* @option values under this threshold will be displayed in smaller font and stacked to the top of the chart
80
+
* @default 3
81
+
*/
26
82
hideLabelUnderPercentage?: number
83
+
/**
84
+
* @option the id of the svg. Defaults to a random uid
85
+
*/
27
86
id?: string
87
+
/**
88
+
* @option activates user interactions (tooltip)
89
+
* @default true
90
+
*/
28
91
interactive?: boolean
92
+
/**
93
+
* @option the text color of legend elements
94
+
* @default "#000000"
95
+
*/
29
96
legendColor?: string
97
+
/**
98
+
* @option the font size of legend elements
99
+
* @default 10
100
+
*/
30
101
legendFontSize?: number
102
+
/**
103
+
* @option the vertical offset of the legend foreignObject container
104
+
* @default 40
105
+
*/
31
106
legendOffsetY?: number
32
107
paddingBottom?: number
33
108
paddingLeft?: number
34
109
paddingRight?: number
35
110
paddingTop?: number
111
+
/**
112
+
* @option standard svg rendering
113
+
* @default "auto"
114
+
*/
36
115
"shape-rendering"?: ShapeRendering
116
+
/**
117
+
* @option show or hide data labels
118
+
* @default true
119
+
*/
37
120
showDataLabels?: boolean
121
+
/**
122
+
* @option show or hide legend
123
+
* @default true
124
+
*/
38
125
showLegend?: boolean
126
+
/**
127
+
* @option show or hide total displayed inside the donut's hollow
128
+
* @default true
129
+
*/
39
130
showTotal?: boolean,
131
+
/**
132
+
* @option the text content of the title element
133
+
* @default ""
134
+
*/
40
135
title?: string;
136
+
/**
137
+
* @option the text color of the title element
138
+
* @default "#000000"
139
+
*/
41
140
titleColor?: string
141
+
/**
142
+
* @option the font size of the title element
143
+
* @default 18
144
+
*/
42
145
titleFontSize?: number
146
+
/**
147
+
* @option the horizontal position (text-anchor) of the title element
148
+
* @default "middle"
149
+
*/
43
150
titlePosition?: TextAnchor
151
+
/**
152
+
* @option the background color of the tooltip container
153
+
* @default "#FFFFFF"
154
+
*/
44
155
tooltipBackgroundColor?: string
156
+
/**
157
+
* @option the text color of the tooltip content
158
+
* @default "#000000"
159
+
*/
45
160
tooltipColor?: string
161
+
/**
162
+
* @option the text content of the total label inside the donut's hollow
163
+
* @default "Total"
164
+
*/
46
165
totalLabel?: string
166
+
/**
167
+
* @option the text color of the total label inside the donut's hollow
168
+
* @default "#000000"
169
+
*/
47
170
totalLabelColor?: string
171
+
/**
172
+
* @option the font size of the total label inside the donut's hollow
173
+
* @default 20
174
+
*/
48
175
totalLabelFontSize?: number
176
+
/**
177
+
* @option the font size of the total value inside the donut's hollow
178
+
* @default 20
179
+
*/
49
180
totalValueFontSize?: number
181
+
/**
182
+
* @option the rounding of the total value inside the donut's hollow
183
+
* @default 0
184
+
*/
50
185
totalValueRounding?: number
186
+
/**
187
+
* @option the viewBox dimensions of the chart's svg
0 commit comments