@cloudscape-design/chart-components 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (246) hide show
  1. package/LICENSE +175 -0
  2. package/NOTICE +1 -0
  3. package/README.md +25 -0
  4. package/cartesian-chart/chart-cartesian-internal.d.ts +10 -0
  5. package/cartesian-chart/chart-cartesian-internal.js +99 -0
  6. package/cartesian-chart/chart-cartesian-internal.js.map +1 -0
  7. package/cartesian-chart/chart-series-cartesian.d.ts +7 -0
  8. package/cartesian-chart/chart-series-cartesian.js +95 -0
  9. package/cartesian-chart/chart-series-cartesian.js.map +1 -0
  10. package/cartesian-chart/index.d.ts +5 -0
  11. package/cartesian-chart/index.js +133 -0
  12. package/cartesian-chart/index.js.map +1 -0
  13. package/cartesian-chart/interfaces.d.ts +166 -0
  14. package/cartesian-chart/interfaces.js +4 -0
  15. package/cartesian-chart/interfaces.js.map +1 -0
  16. package/cartesian-chart/test-classes/styles.css.js +6 -0
  17. package/cartesian-chart/test-classes/styles.scoped.css +7 -0
  18. package/cartesian-chart/test-classes/styles.selectors.js +7 -0
  19. package/core/chart-api/chart-extra-axis-titles.d.ts +10 -0
  20. package/core/chart-api/chart-extra-axis-titles.js +42 -0
  21. package/core/chart-api/chart-extra-axis-titles.js.map +1 -0
  22. package/core/chart-api/chart-extra-context.d.ts +41 -0
  23. package/core/chart-api/chart-extra-context.js +93 -0
  24. package/core/chart-api/chart-extra-context.js.map +1 -0
  25. package/core/chart-api/chart-extra-highlight.d.ts +20 -0
  26. package/core/chart-api/chart-extra-highlight.js +205 -0
  27. package/core/chart-api/chart-extra-highlight.js.map +1 -0
  28. package/core/chart-api/chart-extra-legend.d.ts +27 -0
  29. package/core/chart-api/chart-extra-legend.js +118 -0
  30. package/core/chart-api/chart-extra-legend.js.map +1 -0
  31. package/core/chart-api/chart-extra-navigation.d.ts +84 -0
  32. package/core/chart-api/chart-extra-navigation.js +470 -0
  33. package/core/chart-api/chart-extra-navigation.js.map +1 -0
  34. package/core/chart-api/chart-extra-nodata.d.ts +15 -0
  35. package/core/chart-api/chart-extra-nodata.js +45 -0
  36. package/core/chart-api/chart-extra-nodata.js.map +1 -0
  37. package/core/chart-api/chart-extra-pointer.d.ts +33 -0
  38. package/core/chart-api/chart-extra-pointer.js +173 -0
  39. package/core/chart-api/chart-extra-pointer.js.map +1 -0
  40. package/core/chart-api/chart-extra-tooltip.d.ts +33 -0
  41. package/core/chart-api/chart-extra-tooltip.js +209 -0
  42. package/core/chart-api/chart-extra-tooltip.js.map +1 -0
  43. package/core/chart-api/index.d.ts +75 -0
  44. package/core/chart-api/index.js +383 -0
  45. package/core/chart-api/index.js.map +1 -0
  46. package/core/chart-container.d.ts +20 -0
  47. package/core/chart-container.js +55 -0
  48. package/core/chart-container.js.map +1 -0
  49. package/core/chart-core.d.ts +7 -0
  50. package/core/chart-core.js +287 -0
  51. package/core/chart-core.js.map +1 -0
  52. package/core/components/core-application.d.ts +6 -0
  53. package/core/components/core-application.js +16 -0
  54. package/core/components/core-application.js.map +1 -0
  55. package/core/components/core-filters.d.ts +9 -0
  56. package/core/components/core-filters.js +22 -0
  57. package/core/components/core-filters.js.map +1 -0
  58. package/core/components/core-legend.d.ts +13 -0
  59. package/core/components/core-legend.js +27 -0
  60. package/core/components/core-legend.js.map +1 -0
  61. package/core/components/core-no-data.d.ts +6 -0
  62. package/core/components/core-no-data.js +48 -0
  63. package/core/components/core-no-data.js.map +1 -0
  64. package/core/components/core-slots.d.ts +7 -0
  65. package/core/components/core-slots.js +11 -0
  66. package/core/components/core-slots.js.map +1 -0
  67. package/core/components/core-tooltip.d.ts +7 -0
  68. package/core/components/core-tooltip.js +183 -0
  69. package/core/components/core-tooltip.js.map +1 -0
  70. package/core/components/core-vertical-axis-title.d.ts +5 -0
  71. package/core/components/core-vertical-axis-title.js +15 -0
  72. package/core/components/core-vertical-axis-title.js.map +1 -0
  73. package/core/formatters.d.ts +2 -0
  74. package/core/formatters.js +113 -0
  75. package/core/formatters.js.map +1 -0
  76. package/core/i18n-utils.d.ts +21 -0
  77. package/core/i18n-utils.js +18 -0
  78. package/core/i18n-utils.js.map +1 -0
  79. package/core/interfaces.d.ts +436 -0
  80. package/core/interfaces.js +4 -0
  81. package/core/interfaces.js.map +1 -0
  82. package/core/styles.css.js +25 -0
  83. package/core/styles.scoped.css +115 -0
  84. package/core/styles.selectors.js +26 -0
  85. package/core/test-classes/styles.css.js +33 -0
  86. package/core/test-classes/styles.scoped.css +34 -0
  87. package/core/test-classes/styles.selectors.js +34 -0
  88. package/core/utils.d.ts +45 -0
  89. package/core/utils.js +262 -0
  90. package/core/utils.js.map +1 -0
  91. package/index.d.ts +4 -0
  92. package/index.js +5 -0
  93. package/index.js.map +1 -0
  94. package/internal/api-docs/components/cartesian-chart.js +571 -0
  95. package/internal/api-docs/components/index.d.ts +3 -0
  96. package/internal/api-docs/components/index.js +4 -0
  97. package/internal/api-docs/components/interfaces.d.ts +81 -0
  98. package/internal/api-docs/components/pie-chart.js +430 -0
  99. package/internal/api-docs/test-utils-doc/dom.js +4 -0
  100. package/internal/api-docs/test-utils-doc/selectors.js +4 -0
  101. package/internal/base-component/get-data-attributes.d.ts +1 -0
  102. package/internal/base-component/get-data-attributes.js +12 -0
  103. package/internal/base-component/get-data-attributes.js.map +1 -0
  104. package/internal/base-component/use-base-component.d.ts +13 -0
  105. package/internal/base-component/use-base-component.js +18 -0
  106. package/internal/base-component/use-base-component.js.map +1 -0
  107. package/internal/base-component/use-telemetry.d.ts +2 -0
  108. package/internal/base-component/use-telemetry.js +8 -0
  109. package/internal/base-component/use-telemetry.js.map +1 -0
  110. package/internal/chart-styles.d.ts +88 -0
  111. package/internal/chart-styles.js +145 -0
  112. package/internal/chart-styles.js.map +1 -0
  113. package/internal/components/chart-legend/index.d.ts +14 -0
  114. package/internal/components/chart-legend/index.js +245 -0
  115. package/internal/components/chart-legend/index.js.map +1 -0
  116. package/internal/components/chart-legend/styles.css.js +22 -0
  117. package/internal/components/chart-legend/styles.scoped.css +233 -0
  118. package/internal/components/chart-legend/styles.selectors.js +23 -0
  119. package/internal/components/chart-legend/test-classes/styles.css.js +11 -0
  120. package/internal/components/chart-legend/test-classes/styles.scoped.css +12 -0
  121. package/internal/components/chart-legend/test-classes/styles.selectors.js +12 -0
  122. package/internal/components/chart-series-filter/index.d.ts +17 -0
  123. package/internal/components/chart-series-filter/index.js +14 -0
  124. package/internal/components/chart-series-filter/index.js.map +1 -0
  125. package/internal/components/interfaces.d.ts +17 -0
  126. package/internal/components/interfaces.js +4 -0
  127. package/internal/components/interfaces.js.map +1 -0
  128. package/internal/components/series-details/index.d.ts +23 -0
  129. package/internal/components/series-details/index.js +45 -0
  130. package/internal/components/series-details/index.js.map +1 -0
  131. package/internal/components/series-details/styles.css.js +22 -0
  132. package/internal/components/series-details/styles.scoped.css +150 -0
  133. package/internal/components/series-details/styles.selectors.js +23 -0
  134. package/internal/components/series-details/test-classes/styles.css.js +10 -0
  135. package/internal/components/series-details/test-classes/styles.scoped.css +11 -0
  136. package/internal/components/series-details/test-classes/styles.selectors.js +11 -0
  137. package/internal/components/series-marker/index.d.ts +8 -0
  138. package/internal/components/series-marker/index.js +45 -0
  139. package/internal/components/series-marker/index.js.map +1 -0
  140. package/internal/components/series-marker/interfaces.d.ts +1 -0
  141. package/internal/components/series-marker/interfaces.js +4 -0
  142. package/internal/components/series-marker/interfaces.js.map +1 -0
  143. package/internal/components/series-marker/render-marker.d.ts +3 -0
  144. package/internal/components/series-marker/render-marker.js +74 -0
  145. package/internal/components/series-marker/render-marker.js.map +1 -0
  146. package/internal/components/series-marker/styles.css.js +7 -0
  147. package/internal/components/series-marker/styles.scoped.css +55 -0
  148. package/internal/components/series-marker/styles.selectors.js +8 -0
  149. package/internal/environment.d.ts +4 -0
  150. package/internal/environment.js +5 -0
  151. package/internal/environment.json +7 -0
  152. package/internal/events/index.d.ts +23 -0
  153. package/internal/events/index.js +41 -0
  154. package/internal/events/index.js.map +1 -0
  155. package/internal/generated/styles/tokens.d.ts +756 -0
  156. package/internal/generated/styles/tokens.js +756 -0
  157. package/internal/generated/theming/index.cjs +12584 -0
  158. package/internal/generated/theming/index.cjs.d.ts +2399 -0
  159. package/internal/generated/theming/index.d.ts +2399 -0
  160. package/internal/generated/theming/index.js +12584 -0
  161. package/internal/manifest.json +3 -0
  162. package/internal/styles.css.js +6 -0
  163. package/internal/styles.scoped.css +13 -0
  164. package/internal/styles.selectors.js +7 -0
  165. package/internal/utils/apply-display-name.d.ts +1 -0
  166. package/internal/utils/apply-display-name.js +6 -0
  167. package/internal/utils/apply-display-name.js.map +1 -0
  168. package/internal/utils/async-store.d.ts +19 -0
  169. package/internal/utils/async-store.js +58 -0
  170. package/internal/utils/async-store.js.map +1 -0
  171. package/internal/utils/chart-series.d.ts +8 -0
  172. package/internal/utils/chart-series.js +11 -0
  173. package/internal/utils/chart-series.js.map +1 -0
  174. package/internal/utils/renderer-utils.d.ts +17 -0
  175. package/internal/utils/renderer-utils.js +95 -0
  176. package/internal/utils/renderer-utils.js.map +1 -0
  177. package/internal/utils/series-data.d.ts +2 -0
  178. package/internal/utils/series-data.js +8 -0
  179. package/internal/utils/series-data.js.map +1 -0
  180. package/internal/utils/test-i18n-provider.d.ts +8 -0
  181. package/internal/utils/test-i18n-provider.js +8 -0
  182. package/internal/utils/test-i18n-provider.js.map +1 -0
  183. package/internal/utils/use-previous.d.ts +4 -0
  184. package/internal/utils/use-previous.js +14 -0
  185. package/internal/utils/use-previous.js.map +1 -0
  186. package/internal/utils/utils.d.ts +16 -0
  187. package/internal/utils/utils.js +49 -0
  188. package/internal/utils/utils.js.map +1 -0
  189. package/internal-do-not-use/core-chart/index.d.ts +4 -0
  190. package/internal-do-not-use/core-chart/index.js +13 -0
  191. package/internal-do-not-use/core-chart/index.js.map +1 -0
  192. package/internal-do-not-use/core-legend/index.d.ts +2 -0
  193. package/internal-do-not-use/core-legend/index.js +11 -0
  194. package/internal-do-not-use/core-legend/index.js.map +1 -0
  195. package/package.json +106 -0
  196. package/pie-chart/chart-inner-area.d.ts +10 -0
  197. package/pie-chart/chart-inner-area.js +63 -0
  198. package/pie-chart/chart-inner-area.js.map +1 -0
  199. package/pie-chart/chart-pie-internal.d.ts +11 -0
  200. package/pie-chart/chart-pie-internal.js +103 -0
  201. package/pie-chart/chart-pie-internal.js.map +1 -0
  202. package/pie-chart/index.d.ts +5 -0
  203. package/pie-chart/index.js +48 -0
  204. package/pie-chart/index.js.map +1 -0
  205. package/pie-chart/interfaces.d.ts +101 -0
  206. package/pie-chart/interfaces.js +4 -0
  207. package/pie-chart/interfaces.js.map +1 -0
  208. package/pie-chart/test-classes/styles.css.js +8 -0
  209. package/pie-chart/test-classes/styles.scoped.css +9 -0
  210. package/pie-chart/test-classes/styles.selectors.js +9 -0
  211. package/test-utils/dom/cartesian-chart/index.d.ts +14 -0
  212. package/test-utils/dom/cartesian-chart/index.js +24 -0
  213. package/test-utils/dom/cartesian-chart/index.js.map +1 -0
  214. package/test-utils/dom/cartesian-chart/tooltip.d.ts +28 -0
  215. package/test-utils/dom/cartesian-chart/tooltip.js +48 -0
  216. package/test-utils/dom/cartesian-chart/tooltip.js.map +1 -0
  217. package/test-utils/dom/index.d.ts +46 -0
  218. package/test-utils/dom/index.js +35 -0
  219. package/test-utils/dom/index.js.map +1 -0
  220. package/test-utils/dom/internal/base.d.ts +93 -0
  221. package/test-utils/dom/internal/base.js +146 -0
  222. package/test-utils/dom/internal/base.js.map +1 -0
  223. package/test-utils/dom/internal/core.d.ts +14 -0
  224. package/test-utils/dom/internal/core.js +37 -0
  225. package/test-utils/dom/internal/core.js.map +1 -0
  226. package/test-utils/dom/pie-chart/index.d.ts +17 -0
  227. package/test-utils/dom/pie-chart/index.js +29 -0
  228. package/test-utils/dom/pie-chart/index.js.map +1 -0
  229. package/test-utils/selectors/cartesian-chart/index.d.ts +14 -0
  230. package/test-utils/selectors/cartesian-chart/index.js +24 -0
  231. package/test-utils/selectors/cartesian-chart/index.js.map +1 -0
  232. package/test-utils/selectors/cartesian-chart/tooltip.d.ts +28 -0
  233. package/test-utils/selectors/cartesian-chart/tooltip.js +48 -0
  234. package/test-utils/selectors/cartesian-chart/tooltip.js.map +1 -0
  235. package/test-utils/selectors/index.d.ts +46 -0
  236. package/test-utils/selectors/index.js +32 -0
  237. package/test-utils/selectors/index.js.map +1 -0
  238. package/test-utils/selectors/internal/base.d.ts +93 -0
  239. package/test-utils/selectors/internal/base.js +146 -0
  240. package/test-utils/selectors/internal/base.js.map +1 -0
  241. package/test-utils/selectors/internal/core.d.ts +14 -0
  242. package/test-utils/selectors/internal/core.js +37 -0
  243. package/test-utils/selectors/internal/core.js.map +1 -0
  244. package/test-utils/selectors/pie-chart/index.d.ts +17 -0
  245. package/test-utils/selectors/pie-chart/index.js +29 -0
  246. package/test-utils/selectors/pie-chart/index.js.map +1 -0
@@ -0,0 +1,430 @@
1
+ module.exports = {
2
+ "name": "PieChart",
3
+ "dashCaseName": "pie-chart",
4
+ "releaseStatus": "stable",
5
+ "regions": [
6
+ {
7
+ "name": "fallback",
8
+ "description": "Custom content that renders when `highcharts=null`. It renders a spinner if not defined.",
9
+ "isDefault": false
10
+ }
11
+ ],
12
+ "functions": [
13
+ {
14
+ "name": "setVisibleSegments",
15
+ "description": "Controls segments visibility and works with both controlled and uncontrolled visibility modes.",
16
+ "returnType": "void",
17
+ "parameters": [
18
+ {
19
+ "name": "visibleSegments",
20
+ "type": "ReadonlyArray<string>"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "showAllSegments",
26
+ "description": "Functions similarly to `setVisibleSeries`, but applies to all series and doesn't require series IDs as input.\nUse this when implementing clear-filter actions in no-match states.",
27
+ "returnType": "void",
28
+ "parameters": []
29
+ }
30
+ ],
31
+ "properties": [
32
+ {
33
+ "name": "ariaDescription",
34
+ "type": "string",
35
+ "optional": true,
36
+ "description": "Defines the ARIA description of the chart container.\nThis property corresponds to [accessibility.description](https://api.highcharts.com/highcharts/accessibility.description),\nand requires the [accessibility module](https://www.highcharts.com/docs/accessibility/accessibility-module)."
37
+ },
38
+ {
39
+ "name": "ariaLabel",
40
+ "type": "string",
41
+ "optional": true,
42
+ "description": "Defines the ARIA label for the chart container.\nThis property corresponds to [lang.chartContainerLabel](https://api.highcharts.com/highcharts/lang.accessibility.chartContainerLabel),\nand requires the [accessibility module](https://www.highcharts.com/docs/accessibility/accessibility-module)."
43
+ },
44
+ {
45
+ "name": "chartHeight",
46
+ "type": "number",
47
+ "optional": true,
48
+ "description": "The height of the chart plot in pixels. It does not include legend and filter."
49
+ },
50
+ {
51
+ "name": "chartMinHeight",
52
+ "type": "number",
53
+ "optional": true,
54
+ "description": "Defines the minimum allowed height of the chart plot. Use this when `fitHeight=true` to\nprevent the chart plot from becoming too small to display its content. When the parent\ncontainer is shorter than the minimum height, a vertical scrollbar appears automatically."
55
+ },
56
+ {
57
+ "name": "chartMinWidth",
58
+ "type": "number",
59
+ "optional": true,
60
+ "description": "Defines the minimum allowed width of the chart plot. When the parent container is narrower than the\nminimum width, the horizontal scrollbar is automatically added."
61
+ },
62
+ {
63
+ "name": "filter",
64
+ "type": "BaseFilterOptions",
65
+ "inlineType": {
66
+ "name": "BaseFilterOptions",
67
+ "type": "object",
68
+ "properties": [
69
+ {
70
+ "name": "additionalFilters",
71
+ "optional": true,
72
+ "type": "React.ReactNode"
73
+ },
74
+ {
75
+ "name": "seriesFilter",
76
+ "optional": true,
77
+ "type": "boolean"
78
+ }
79
+ ]
80
+ },
81
+ "optional": true,
82
+ "description": "Defines options for filtering in the chart, including:\n* `seriesFilter` (optional, boolean) - Displays default series filter at the top of the chart.\n* `additionalFilters` (optional, slot) - A slot for custom chart filters at the top of the chart."
83
+ },
84
+ {
85
+ "name": "fitHeight",
86
+ "type": "boolean",
87
+ "optional": true,
88
+ "description": "The chart automatically adjusts its height to fill the parent container when this property is set.",
89
+ "defaultValue": "false"
90
+ },
91
+ {
92
+ "name": "highcharts",
93
+ "type": "object | null",
94
+ "optional": false,
95
+ "description": "The Highcharts instance, which can be obtained using `import Highcharts from \"highcharts\"`.\nSupported Highcharts versions: 12."
96
+ },
97
+ {
98
+ "name": "i18nStrings",
99
+ "type": "PieI18nStrings",
100
+ "inlineType": {
101
+ "name": "PieI18nStrings",
102
+ "type": "object",
103
+ "properties": [
104
+ {
105
+ "name": "chartRoleDescription",
106
+ "optional": true,
107
+ "type": "string"
108
+ },
109
+ {
110
+ "name": "detailPopoverDismissAriaLabel",
111
+ "optional": true,
112
+ "type": "string"
113
+ },
114
+ {
115
+ "name": "errorText",
116
+ "optional": true,
117
+ "type": "string"
118
+ },
119
+ {
120
+ "name": "legendAriaLabel",
121
+ "optional": true,
122
+ "type": "string"
123
+ },
124
+ {
125
+ "name": "loadingText",
126
+ "optional": true,
127
+ "type": "string"
128
+ },
129
+ {
130
+ "name": "recoveryText",
131
+ "optional": true,
132
+ "type": "string"
133
+ },
134
+ {
135
+ "name": "segmentRoleDescription",
136
+ "optional": true,
137
+ "type": "string"
138
+ },
139
+ {
140
+ "name": "seriesFilterLabel",
141
+ "optional": true,
142
+ "type": "string"
143
+ },
144
+ {
145
+ "name": "seriesFilterPlaceholder",
146
+ "optional": true,
147
+ "type": "string"
148
+ },
149
+ {
150
+ "name": "seriesFilterSelectedAriaLabel",
151
+ "optional": true,
152
+ "type": "string"
153
+ }
154
+ ]
155
+ },
156
+ "optional": true,
157
+ "description": "An object that contains all of the localized strings required by the component.",
158
+ "i18nTag": true
159
+ },
160
+ {
161
+ "name": "innerAreaDescription",
162
+ "type": "string",
163
+ "optional": true,
164
+ "description": "Description text displayed in the donut chart's inner area."
165
+ },
166
+ {
167
+ "name": "innerAreaTitle",
168
+ "type": "string",
169
+ "optional": true,
170
+ "description": "Title displayed in the donut chart's inner area."
171
+ },
172
+ {
173
+ "name": "legend",
174
+ "type": "BaseLegendOptions",
175
+ "inlineType": {
176
+ "name": "BaseLegendOptions",
177
+ "type": "object",
178
+ "properties": [
179
+ {
180
+ "name": "actions",
181
+ "optional": true,
182
+ "type": "React.ReactNode"
183
+ },
184
+ {
185
+ "name": "enabled",
186
+ "optional": true,
187
+ "type": "boolean"
188
+ },
189
+ {
190
+ "name": "title",
191
+ "optional": true,
192
+ "type": "string"
193
+ }
194
+ ]
195
+ },
196
+ "optional": true,
197
+ "description": "Defines chart legend options, including:\n* `enabled` (optional, boolean) - Hides legend when set to `false`.\n* `title` (optional, string) - Visible label, shown above the legend.\n* `actions` (optional, slot) - A slot before the legend that can be used to render custom actions."
198
+ },
199
+ {
200
+ "name": "noData",
201
+ "type": "BaseNoDataOptions",
202
+ "inlineType": {
203
+ "name": "BaseNoDataOptions",
204
+ "type": "object",
205
+ "properties": [
206
+ {
207
+ "name": "empty",
208
+ "optional": true,
209
+ "type": "React.ReactNode"
210
+ },
211
+ {
212
+ "name": "error",
213
+ "optional": true,
214
+ "type": "React.ReactNode"
215
+ },
216
+ {
217
+ "name": "loading",
218
+ "optional": true,
219
+ "type": "React.ReactNode"
220
+ },
221
+ {
222
+ "name": "noMatch",
223
+ "optional": true,
224
+ "type": "React.ReactNode"
225
+ },
226
+ {
227
+ "name": "onRecoveryClick",
228
+ "optional": true,
229
+ "type": "NonCancelableEventHandler<{}>",
230
+ "inlineType": {
231
+ "name": "NonCancelableEventHandler<{}>",
232
+ "type": "function",
233
+ "returnType": "void",
234
+ "parameters": [
235
+ {
236
+ "name": "event",
237
+ "type": "NonCancelableCustomEvent<Detail>"
238
+ }
239
+ ]
240
+ }
241
+ },
242
+ {
243
+ "name": "statusType",
244
+ "optional": true,
245
+ "type": "string",
246
+ "inlineType": {
247
+ "name": "\"finished\" | \"loading\" | \"error\"",
248
+ "type": "union",
249
+ "values": [
250
+ "finished",
251
+ "loading",
252
+ "error"
253
+ ]
254
+ }
255
+ }
256
+ ]
257
+ },
258
+ "optional": true,
259
+ "description": "Defines options to represent empty, no-match, loading, and error state of the chart, including:\n* `statusType` (optional, \"finished\" | \"loading\" | \"error\") - Specifies the current status of loading data.\n* `empty` (optional, ReactNode) - Content displayed when the chart data is empty.\n* `noMatch` (optional, ReactNode) - Content displayed when there is no data to display due to the built-in filtering.\n* `loading` (optional, ReactNode) - Content displayed when `statusType=\"loading\"`. If omitted, the default loading state\nis shown, using `i18n.loadingText` or built-in i18n.\n* `error` (optional, ReactNode) - Content displayed when `statusType=\"error\"`. If omitted, the default error state\nis shown, using `i18n.errorText` and `i18n.recoveryText` (when `onRecoveryClick` is provided), or built-in i18n.\n* `onRecoveryClick` (optional, function) - Called when the user clicks the recovery button that appears when using default error\nstate, and only if `onRecoveryClick` is provided. Use this to enable the user to retry a failed request or provide another option\nfor the user to recover from the error."
260
+ },
261
+ {
262
+ "name": "segmentDescription",
263
+ "type": "((props: PieChartProps.SegmentDescriptionRenderProps) => string)",
264
+ "inlineType": {
265
+ "name": "(props: PieChartProps.SegmentDescriptionRenderProps) => string",
266
+ "type": "function",
267
+ "returnType": "string",
268
+ "parameters": [
269
+ {
270
+ "name": "props",
271
+ "type": "PieChartProps.SegmentDescriptionRenderProps"
272
+ }
273
+ ]
274
+ },
275
+ "optional": true,
276
+ "description": "A function determining the segment description displayed on the chart below the segment title."
277
+ },
278
+ {
279
+ "name": "segmentTitle",
280
+ "type": "((props: PieChartProps.SegmentDescriptionRenderProps) => string)",
281
+ "inlineType": {
282
+ "name": "(props: PieChartProps.SegmentDescriptionRenderProps) => string",
283
+ "type": "function",
284
+ "returnType": "string",
285
+ "parameters": [
286
+ {
287
+ "name": "props",
288
+ "type": "PieChartProps.SegmentDescriptionRenderProps"
289
+ }
290
+ ]
291
+ },
292
+ "optional": true,
293
+ "description": "A function that determines the title of a segment displayed on the chart. The title appears above the segment\ndescription defined by `segmentDescription`. By default, it displays the segment name. You can hide the title\nby returning an empty string from the function."
294
+ },
295
+ {
296
+ "name": "series",
297
+ "type": "PieChartProps.SeriesOptions",
298
+ "inlineType": {
299
+ "name": "PieChartProps.SeriesOptions",
300
+ "type": "union",
301
+ "values": [
302
+ "PieSeriesOptions",
303
+ "DonutSeriesOptions"
304
+ ]
305
+ },
306
+ "optional": false,
307
+ "description": "Defines series options of the chart.\nThis property corresponds to [series](https://api.highcharts.com/highcharts/series), and extends it\nwith an additional \"donut\" series type.\n\nSupported series types:\n* [pie](https://api.highcharts.com/highcharts/series.pie).\n* donut - the pie series with predefined inner radius."
308
+ },
309
+ {
310
+ "name": "tooltip",
311
+ "type": "PieChartProps.TooltipOptions",
312
+ "inlineType": {
313
+ "name": "PieChartProps.TooltipOptions",
314
+ "type": "object",
315
+ "properties": [
316
+ {
317
+ "name": "body",
318
+ "optional": true,
319
+ "type": "((props: TooltipSlotRenderProps) => React.ReactNode)",
320
+ "inlineType": {
321
+ "name": "(props: TooltipSlotRenderProps) => React.ReactNode",
322
+ "type": "function",
323
+ "returnType": "React.ReactNode",
324
+ "parameters": [
325
+ {
326
+ "name": "props",
327
+ "type": "TooltipSlotRenderProps"
328
+ }
329
+ ]
330
+ }
331
+ },
332
+ {
333
+ "name": "details",
334
+ "optional": true,
335
+ "type": "((props: TooltipSlotRenderProps) => ReadonlyArray<BaseTooltipDetail>)",
336
+ "inlineType": {
337
+ "name": "(props: TooltipSlotRenderProps) => ReadonlyArray<BaseTooltipDetail>",
338
+ "type": "function",
339
+ "returnType": "ReadonlyArray<BaseTooltipDetail>",
340
+ "parameters": [
341
+ {
342
+ "name": "props",
343
+ "type": "TooltipSlotRenderProps"
344
+ }
345
+ ]
346
+ }
347
+ },
348
+ {
349
+ "name": "enabled",
350
+ "optional": true,
351
+ "type": "boolean"
352
+ },
353
+ {
354
+ "name": "footer",
355
+ "optional": true,
356
+ "type": "((props: TooltipSlotRenderProps) => React.ReactNode)",
357
+ "inlineType": {
358
+ "name": "(props: TooltipSlotRenderProps) => React.ReactNode",
359
+ "type": "function",
360
+ "returnType": "React.ReactNode",
361
+ "parameters": [
362
+ {
363
+ "name": "props",
364
+ "type": "TooltipSlotRenderProps"
365
+ }
366
+ ]
367
+ }
368
+ },
369
+ {
370
+ "name": "header",
371
+ "optional": true,
372
+ "type": "((props: TooltipSlotRenderProps) => React.ReactNode)",
373
+ "inlineType": {
374
+ "name": "(props: TooltipSlotRenderProps) => React.ReactNode",
375
+ "type": "function",
376
+ "returnType": "React.ReactNode",
377
+ "parameters": [
378
+ {
379
+ "name": "props",
380
+ "type": "TooltipSlotRenderProps"
381
+ }
382
+ ]
383
+ }
384
+ },
385
+ {
386
+ "name": "size",
387
+ "optional": true,
388
+ "type": "string",
389
+ "inlineType": {
390
+ "name": "\"small\" | \"medium\" | \"large\"",
391
+ "type": "union",
392
+ "values": [
393
+ "small",
394
+ "medium",
395
+ "large"
396
+ ]
397
+ }
398
+ }
399
+ ]
400
+ },
401
+ "optional": true,
402
+ "description": "Defines tooltip options of the chart, including:\n* `enabled` - (optional, boolean) - Hides the tooltip when set to false.\n* `size` - (optional, \"small\" | \"medium\" | \"large\") - Specifies max tooltip size.\n* `details` - (optional, function) - Provides a list of key-value pairs as tooltip's body.\n* `header` - (optional, function) - Renders a custom tooltip header.\n* `body` - (optional, function) - Renders a custom tooltip body.\n* `footer` - (optional, function) - Renders a custom tooltip footer."
403
+ },
404
+ {
405
+ "name": "visibleSegments",
406
+ "type": "ReadonlyArray<string>",
407
+ "optional": true,
408
+ "description": "Specifies which segments to show using their IDs. By default, all segments are visible and managed by the component.\nIf a segment doesn't have an ID, its name is used. When using this property, manage state updates with `onVisibleSegmentsChange`."
409
+ }
410
+ ],
411
+ "events": [
412
+ {
413
+ "name": "onVisibleSegmentsChange",
414
+ "description": "A callback function, triggered when segments visibility changes as a result of user interaction with the legend or filter.",
415
+ "cancelable": false,
416
+ "detailType": "{ visibleSegments: Array<string>; }",
417
+ "detailInlineType": {
418
+ "name": "{ visibleSegments: Array<string>; }",
419
+ "type": "object",
420
+ "properties": [
421
+ {
422
+ "name": "visibleSegments",
423
+ "optional": false,
424
+ "type": "Array<string>"
425
+ }
426
+ ]
427
+ }
428
+ }
429
+ ]
430
+ };