@yamada-ui/charts 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 (175) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +28 -0
  3. package/dist/area-chart-gradient.d.mts +11 -0
  4. package/dist/area-chart-gradient.d.ts +11 -0
  5. package/dist/area-chart-gradient.js +47 -0
  6. package/dist/area-chart-gradient.js.map +1 -0
  7. package/dist/area-chart-gradient.mjs +8 -0
  8. package/dist/area-chart-gradient.mjs.map +1 -0
  9. package/dist/area-chart-split.d.mts +10 -0
  10. package/dist/area-chart-split.d.ts +10 -0
  11. package/dist/area-chart-split.js +52 -0
  12. package/dist/area-chart-split.js.map +1 -0
  13. package/dist/area-chart-split.mjs +8 -0
  14. package/dist/area-chart-split.mjs.map +1 -0
  15. package/dist/area-chart.d.mts +36 -0
  16. package/dist/area-chart.d.ts +36 -0
  17. package/dist/area-chart.js +1249 -0
  18. package/dist/area-chart.js.map +1 -0
  19. package/dist/area-chart.mjs +21 -0
  20. package/dist/area-chart.mjs.map +1 -0
  21. package/dist/bar-chart.d.mts +33 -0
  22. package/dist/bar-chart.d.ts +33 -0
  23. package/dist/bar-chart.js +1053 -0
  24. package/dist/bar-chart.js.map +1 -0
  25. package/dist/bar-chart.mjs +19 -0
  26. package/dist/bar-chart.mjs.map +1 -0
  27. package/dist/chart-legend.d.mts +12 -0
  28. package/dist/chart-legend.d.ts +12 -0
  29. package/dist/chart-legend.js +87 -0
  30. package/dist/chart-legend.js.map +1 -0
  31. package/dist/chart-legend.mjs +11 -0
  32. package/dist/chart-legend.mjs.map +1 -0
  33. package/dist/chart-tooltip.d.mts +12 -0
  34. package/dist/chart-tooltip.d.ts +12 -0
  35. package/dist/chart-tooltip.js +120 -0
  36. package/dist/chart-tooltip.js.map +1 -0
  37. package/dist/chart-tooltip.mjs +11 -0
  38. package/dist/chart-tooltip.mjs.map +1 -0
  39. package/dist/chart-utils.d.mts +9 -0
  40. package/dist/chart-utils.d.ts +9 -0
  41. package/dist/chart-utils.js +45 -0
  42. package/dist/chart-utils.js.map +1 -0
  43. package/dist/chart-utils.mjs +10 -0
  44. package/dist/chart-utils.mjs.map +1 -0
  45. package/dist/chart.types.d.mts +65 -0
  46. package/dist/chart.types.d.ts +65 -0
  47. package/dist/chart.types.js +20 -0
  48. package/dist/chart.types.js.map +1 -0
  49. package/dist/chart.types.mjs +2 -0
  50. package/dist/chart.types.mjs.map +1 -0
  51. package/dist/chunk-32BO2QEP.mjs +83 -0
  52. package/dist/chunk-32BO2QEP.mjs.map +1 -0
  53. package/dist/chunk-3CY3IFRN.mjs +42 -0
  54. package/dist/chunk-3CY3IFRN.mjs.map +1 -0
  55. package/dist/chunk-3IBGJT6F.mjs +341 -0
  56. package/dist/chunk-3IBGJT6F.mjs.map +1 -0
  57. package/dist/chunk-5QCKM3B3.mjs +438 -0
  58. package/dist/chunk-5QCKM3B3.mjs.map +1 -0
  59. package/dist/chunk-AURFFNDQ.mjs +114 -0
  60. package/dist/chunk-AURFFNDQ.mjs.map +1 -0
  61. package/dist/chunk-FGDWJUA3.mjs +56 -0
  62. package/dist/chunk-FGDWJUA3.mjs.map +1 -0
  63. package/dist/chunk-GZLE5XDS.mjs +227 -0
  64. package/dist/chunk-GZLE5XDS.mjs.map +1 -0
  65. package/dist/chunk-HE6SM47L.mjs +234 -0
  66. package/dist/chunk-HE6SM47L.mjs.map +1 -0
  67. package/dist/chunk-LXZCGIND.mjs +33 -0
  68. package/dist/chunk-LXZCGIND.mjs.map +1 -0
  69. package/dist/chunk-MSIOYYWR.mjs +24 -0
  70. package/dist/chunk-MSIOYYWR.mjs.map +1 -0
  71. package/dist/chunk-PNE3JG54.mjs +29 -0
  72. package/dist/chunk-PNE3JG54.mjs.map +1 -0
  73. package/dist/chunk-QL3DB7OJ.mjs +21 -0
  74. package/dist/chunk-QL3DB7OJ.mjs.map +1 -0
  75. package/dist/chunk-RG5JQJXE.mjs +249 -0
  76. package/dist/chunk-RG5JQJXE.mjs.map +1 -0
  77. package/dist/chunk-RTTZPOUT.mjs +50 -0
  78. package/dist/chunk-RTTZPOUT.mjs.map +1 -0
  79. package/dist/chunk-RXWD2EJ2.mjs +56 -0
  80. package/dist/chunk-RXWD2EJ2.mjs.map +1 -0
  81. package/dist/chunk-TKLHZBVY.mjs +206 -0
  82. package/dist/chunk-TKLHZBVY.mjs.map +1 -0
  83. package/dist/chunk-WDSR6B47.mjs +324 -0
  84. package/dist/chunk-WDSR6B47.mjs.map +1 -0
  85. package/dist/chunk-WF3BD34Y.mjs +74 -0
  86. package/dist/chunk-WF3BD34Y.mjs.map +1 -0
  87. package/dist/chunk-YBAGOHS5.mjs +204 -0
  88. package/dist/chunk-YBAGOHS5.mjs.map +1 -0
  89. package/dist/chunk-YRY7MUCR.mjs +258 -0
  90. package/dist/chunk-YRY7MUCR.mjs.map +1 -0
  91. package/dist/index.d.mts +23 -0
  92. package/dist/index.d.ts +23 -0
  93. package/dist/index.js +2725 -0
  94. package/dist/index.js.map +1 -0
  95. package/dist/index.mjs +36 -0
  96. package/dist/index.mjs.map +1 -0
  97. package/dist/line-chart.d.mts +33 -0
  98. package/dist/line-chart.d.ts +33 -0
  99. package/dist/line-chart.js +1114 -0
  100. package/dist/line-chart.js.map +1 -0
  101. package/dist/line-chart.mjs +19 -0
  102. package/dist/line-chart.mjs.map +1 -0
  103. package/dist/radar-chart.d.mts +52 -0
  104. package/dist/radar-chart.d.ts +52 -0
  105. package/dist/radar-chart.js +940 -0
  106. package/dist/radar-chart.js.map +1 -0
  107. package/dist/radar-chart.mjs +16 -0
  108. package/dist/radar-chart.mjs.map +1 -0
  109. package/dist/rechart-properties.d.mts +24 -0
  110. package/dist/rechart-properties.d.ts +24 -0
  111. package/dist/rechart-properties.js +479 -0
  112. package/dist/rechart-properties.js.map +1 -0
  113. package/dist/rechart-properties.mjs +44 -0
  114. package/dist/rechart-properties.mjs.map +1 -0
  115. package/dist/use-area-chart.d.mts +118 -0
  116. package/dist/use-area-chart.d.ts +118 -0
  117. package/dist/use-area-chart.js +418 -0
  118. package/dist/use-area-chart.js.map +1 -0
  119. package/dist/use-area-chart.mjs +10 -0
  120. package/dist/use-area-chart.mjs.map +1 -0
  121. package/dist/use-bar-chart.d.mts +68 -0
  122. package/dist/use-bar-chart.d.ts +68 -0
  123. package/dist/use-bar-chart.js +288 -0
  124. package/dist/use-bar-chart.js.map +1 -0
  125. package/dist/use-bar-chart.mjs +10 -0
  126. package/dist/use-bar-chart.mjs.map +1 -0
  127. package/dist/use-chart-axis.d.mts +73 -0
  128. package/dist/use-chart-axis.d.ts +73 -0
  129. package/dist/use-chart-axis.js +227 -0
  130. package/dist/use-chart-axis.js.map +1 -0
  131. package/dist/use-chart-axis.mjs +10 -0
  132. package/dist/use-chart-axis.mjs.map +1 -0
  133. package/dist/use-chart-grid.d.mts +32 -0
  134. package/dist/use-chart-grid.d.ts +32 -0
  135. package/dist/use-chart-grid.js +92 -0
  136. package/dist/use-chart-grid.js.map +1 -0
  137. package/dist/use-chart-grid.mjs +10 -0
  138. package/dist/use-chart-grid.mjs.map +1 -0
  139. package/dist/use-chart-legend.d.mts +18 -0
  140. package/dist/use-chart-legend.d.ts +18 -0
  141. package/dist/use-chart-legend.js +81 -0
  142. package/dist/use-chart-legend.js.map +1 -0
  143. package/dist/use-chart-legend.mjs +9 -0
  144. package/dist/use-chart-legend.mjs.map +1 -0
  145. package/dist/use-chart-reference-line.d.mts +22 -0
  146. package/dist/use-chart-reference-line.d.ts +22 -0
  147. package/dist/use-chart-reference-line.js +105 -0
  148. package/dist/use-chart-reference-line.js.map +1 -0
  149. package/dist/use-chart-reference-line.mjs +10 -0
  150. package/dist/use-chart-reference-line.mjs.map +1 -0
  151. package/dist/use-chart-tooltip.d.mts +35 -0
  152. package/dist/use-chart-tooltip.d.ts +35 -0
  153. package/dist/use-chart-tooltip.js +121 -0
  154. package/dist/use-chart-tooltip.js.map +1 -0
  155. package/dist/use-chart-tooltip.mjs +9 -0
  156. package/dist/use-chart-tooltip.mjs.map +1 -0
  157. package/dist/use-chart.d.mts +33 -0
  158. package/dist/use-chart.d.ts +33 -0
  159. package/dist/use-chart.js +104 -0
  160. package/dist/use-chart.js.map +1 -0
  161. package/dist/use-chart.mjs +18 -0
  162. package/dist/use-chart.mjs.map +1 -0
  163. package/dist/use-line-chart.d.mts +92 -0
  164. package/dist/use-line-chart.d.ts +92 -0
  165. package/dist/use-line-chart.js +342 -0
  166. package/dist/use-line-chart.js.map +1 -0
  167. package/dist/use-line-chart.mjs +10 -0
  168. package/dist/use-line-chart.mjs.map +1 -0
  169. package/dist/use-radar-chart.d.mts +93 -0
  170. package/dist/use-radar-chart.d.ts +93 -0
  171. package/dist/use-radar-chart.js +471 -0
  172. package/dist/use-radar-chart.js.map +1 -0
  173. package/dist/use-radar-chart.mjs +10 -0
  174. package/dist/use-radar-chart.mjs.map +1 -0
  175. package/package.json +84 -0
@@ -0,0 +1,1053 @@
1
+ "use client"
2
+ "use strict";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/bar-chart.tsx
22
+ var bar_chart_exports = {};
23
+ __export(bar_chart_exports, {
24
+ BarChart: () => BarChart
25
+ });
26
+ module.exports = __toCommonJS(bar_chart_exports);
27
+ var import_core9 = require("@yamada-ui/core");
28
+ var import_utils11 = require("@yamada-ui/utils");
29
+ var import_react8 = require("react");
30
+ var import_recharts = require("recharts");
31
+
32
+ // src/chart-legend.tsx
33
+ var import_core3 = require("@yamada-ui/core");
34
+ var import_utils3 = require("@yamada-ui/utils");
35
+
36
+ // src/use-chart.ts
37
+ var import_core2 = require("@yamada-ui/core");
38
+ var import_utils2 = require("@yamada-ui/utils");
39
+ var import_react = require("react");
40
+
41
+ // src/chart-utils.ts
42
+ var import_core = require("@yamada-ui/core");
43
+ var import_utils = require("@yamada-ui/utils");
44
+ var getClassName = (...styles) => (theme) => (0, import_utils.cx)(
45
+ ...styles.map(
46
+ (style) => (0, import_utils.isString)(style) ? style : (0, import_core.getCSS)(style)(theme)
47
+ )
48
+ );
49
+ var getComponentProps = ([obj, keys], ...props) => (theme, isContain) => {
50
+ const [pickedProps, omittedProps] = (0, import_utils.splitObject)(obj, keys);
51
+ const className = getClassName(...props, omittedProps)(theme);
52
+ return !isContain ? [pickedProps, className] : { ...pickedProps, className };
53
+ };
54
+
55
+ // src/rechart-properties.ts
56
+ var barChartProperties = [
57
+ "layout",
58
+ "syncId",
59
+ "syncMethod",
60
+ "width",
61
+ "height",
62
+ "data",
63
+ "margin",
64
+ "barCategoryGap",
65
+ "barGap",
66
+ "barSize",
67
+ "maxBarSize",
68
+ "stackOffset",
69
+ "reverseStackOrder",
70
+ "onClick",
71
+ "onMouseEnter",
72
+ "onMouseMove",
73
+ "onMouseLeave"
74
+ ];
75
+ var referenceLineProperties = [
76
+ "xAxisId",
77
+ "yAxisId",
78
+ "x",
79
+ "y",
80
+ "ifOverflow",
81
+ "viewBox",
82
+ "xAxis",
83
+ "yAxis",
84
+ "label",
85
+ "isFront",
86
+ "strokeWidth",
87
+ "segment"
88
+ ];
89
+ var containerProperties = [
90
+ "aspect",
91
+ "width",
92
+ "height",
93
+ "minWidth",
94
+ "minHeight",
95
+ "debounce",
96
+ "onResize"
97
+ ];
98
+ var gridProperties = [
99
+ "x",
100
+ "y",
101
+ "width",
102
+ "height",
103
+ "horizontal",
104
+ "vertical",
105
+ "horizontalPoints",
106
+ "horizontalCoordinatesGenerator",
107
+ "verticalPoints",
108
+ "verticalCoordinatesGenerator",
109
+ "fill",
110
+ "fillOpacity",
111
+ "strokeDasharray"
112
+ ];
113
+ var xAxisProperties = [
114
+ "hide",
115
+ "dataKey",
116
+ "xAxisId",
117
+ "width",
118
+ "height",
119
+ "orientation",
120
+ "type",
121
+ "allowDecimals",
122
+ "allowDataOverflow",
123
+ "allowDuplicatedCategory",
124
+ "angle",
125
+ "tickCount",
126
+ "domain",
127
+ "includeHidden",
128
+ "interval",
129
+ "padding",
130
+ "minTickGap",
131
+ "axisLine",
132
+ "tickLine",
133
+ "tickSize",
134
+ "tickFormatter",
135
+ "ticks",
136
+ "tick",
137
+ "mirror",
138
+ "reversed",
139
+ "label",
140
+ "scale",
141
+ "unit",
142
+ "name",
143
+ "onClick",
144
+ "onMouseDown",
145
+ "onMouseUp",
146
+ "onMouseMove",
147
+ "onMouseOver",
148
+ "onMouseOut",
149
+ "onMouseEnter",
150
+ "onMouseLeave",
151
+ "tickMargin"
152
+ ];
153
+ var yAxisProperties = [
154
+ "hide",
155
+ "dataKey",
156
+ "yAxisId",
157
+ "width",
158
+ "height",
159
+ "orientation",
160
+ "type",
161
+ "tickCount",
162
+ "domain",
163
+ "includeHidden",
164
+ "interval",
165
+ "padding",
166
+ "minTickGap",
167
+ "allowDecimals",
168
+ "allowDataOverflow",
169
+ "allowDuplicatedCategory",
170
+ "axisLine",
171
+ "tickLine",
172
+ "tickSize",
173
+ "tickFormatter",
174
+ "ticks",
175
+ "tick",
176
+ "mirror",
177
+ "reversed",
178
+ "label",
179
+ "scale",
180
+ "unit",
181
+ "name",
182
+ "onClick",
183
+ "onMouseDown",
184
+ "onMouseUp",
185
+ "onMouseMove",
186
+ "onMouseOver",
187
+ "onMouseOut",
188
+ "onMouseEnter",
189
+ "onMouseLeave",
190
+ "tickMargin"
191
+ ];
192
+ var legendProperties = [
193
+ "width",
194
+ "height",
195
+ "layout",
196
+ "align",
197
+ "verticalAlign",
198
+ "iconSize",
199
+ "iconType",
200
+ "payload",
201
+ "chartWidth",
202
+ "chartHeight",
203
+ "margin",
204
+ "content",
205
+ "formatter",
206
+ "wrapperStyle",
207
+ "onClick",
208
+ "onMouseDown",
209
+ "onMouseUp",
210
+ "onMouseMove",
211
+ "onMouseOver",
212
+ "onMouseOut",
213
+ "onMouseEnter",
214
+ "onMouseLeave"
215
+ ];
216
+ var tooltipProperties = [
217
+ "offset",
218
+ "filterNull",
219
+ "itemStyle",
220
+ "wrapperStyle",
221
+ "contentStyle",
222
+ "labelStyle",
223
+ "cursor",
224
+ "viewBox",
225
+ "allowEscapeViewBox",
226
+ "active",
227
+ "position",
228
+ "coordinate",
229
+ "payload",
230
+ "label",
231
+ "content",
232
+ "formatter",
233
+ "labelFormatter",
234
+ "itemSorter",
235
+ "isAnimationActive",
236
+ "animationDuration",
237
+ "animationEasing"
238
+ ];
239
+ var barProperties = [
240
+ "layout",
241
+ "dataKey",
242
+ "xAxisId",
243
+ "yAxisId",
244
+ "legendType",
245
+ "label",
246
+ "data",
247
+ "barSize",
248
+ "maxBarSize",
249
+ "minPointSize",
250
+ "background",
251
+ "shape",
252
+ "activeBar",
253
+ "stackId",
254
+ "unit",
255
+ "name",
256
+ "isAnimationActive",
257
+ "animationBegin",
258
+ "animationDuration",
259
+ "animationEasing",
260
+ "id",
261
+ "onAnimationStart",
262
+ "onAnimationEnd",
263
+ "onClick",
264
+ "onMouseDown",
265
+ "onMouseUp",
266
+ "onMouseMove",
267
+ "onMouseOver",
268
+ "onMouseOut",
269
+ "onMouseEnter",
270
+ "onMouseLeave",
271
+ "radius"
272
+ ];
273
+
274
+ // src/use-chart.ts
275
+ var [ChartProvider, useChartContext] = (0, import_utils2.createContext)({
276
+ name: "ChartContext",
277
+ errorMessage: `useChartContext returned is 'undefined'. Seems you forgot to wrap the components in "<LineChart />" or "<BarChart />" etc.`
278
+ });
279
+ var useChart = ({ containerProps = {} }) => {
280
+ const { theme } = (0, import_core2.useTheme)();
281
+ const [reChartsProps, propClassName] = getComponentProps([
282
+ containerProps,
283
+ containerProperties
284
+ ])(theme);
285
+ const getContainerProps = (0, import_react.useCallback)(
286
+ ({ className, ...props } = {}, ref = null) => ({
287
+ ref,
288
+ className: (0, import_utils2.cx)("ui-chart__container", className, propClassName),
289
+ ...props,
290
+ ...reChartsProps
291
+ }),
292
+ [propClassName, reChartsProps]
293
+ );
294
+ return {
295
+ getContainerProps
296
+ };
297
+ };
298
+ var useLegend = ({} = {}) => {
299
+ const { styles } = useChartContext();
300
+ return {
301
+ styles
302
+ };
303
+ };
304
+ var useTooltip = ({} = {}) => {
305
+ const { styles } = useChartContext();
306
+ return {
307
+ styles
308
+ };
309
+ };
310
+
311
+ // src/chart-legend.tsx
312
+ var import_jsx_runtime = require("react/jsx-runtime");
313
+ var ChartLegend = (0, import_core3.forwardRef)(
314
+ ({ className, payload = [], onHighlight, ...rest }, ref) => {
315
+ const { styles } = useLegend();
316
+ const items = payload.map(({ dataKey, color }, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
317
+ import_core3.ui.div,
318
+ {
319
+ className: "ui-chart__legend-item",
320
+ onMouseEnter: () => onHighlight(dataKey),
321
+ onMouseLeave: () => onHighlight(null),
322
+ __css: styles.legendItem,
323
+ children: [
324
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
325
+ import_core3.ui.div,
326
+ {
327
+ className: "ui-chart__legend-swatch",
328
+ background: color,
329
+ __css: styles.legendSwatch
330
+ }
331
+ ),
332
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core3.ui.span, { className: "ui-chart__legend-label", children: dataKey })
333
+ ]
334
+ },
335
+ `legend-${index}`
336
+ ));
337
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
338
+ import_core3.ui.div,
339
+ {
340
+ ref,
341
+ className: (0, import_utils3.cx)("ui-chart__legend", className),
342
+ __css: styles.legend,
343
+ ...rest,
344
+ children: items
345
+ }
346
+ );
347
+ }
348
+ );
349
+
350
+ // src/chart-tooltip.tsx
351
+ var import_core4 = require("@yamada-ui/core");
352
+ var import_utils4 = require("@yamada-ui/utils");
353
+ var import_jsx_runtime2 = require("react/jsx-runtime");
354
+ var ChartTooltip = (0, import_core4.forwardRef)(
355
+ ({ label, className, payload = [], valueFormatter, unit, ...rest }, ref) => {
356
+ const { styles } = useTooltip();
357
+ const items = payload.map(
358
+ ({ color, name, value: valueProp } = {}, index) => {
359
+ var _a;
360
+ let value;
361
+ if ((0, import_utils4.isArray)(valueProp)) {
362
+ value = valueProp.map((value2) => {
363
+ var _a2;
364
+ return `${(_a2 = valueFormatter == null ? void 0 : valueFormatter(value2)) != null ? _a2 : value2}`;
365
+ }).join(" - ");
366
+ } else {
367
+ value = (_a = valueFormatter == null ? void 0 : valueFormatter(valueProp)) != null ? _a : valueProp;
368
+ }
369
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
370
+ import_core4.ui.div,
371
+ {
372
+ className: "ui-chart__tooltip-item",
373
+ __css: styles.tooltipItem,
374
+ children: [
375
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
376
+ import_core4.ui.div,
377
+ {
378
+ className: "ui-chart__tooltip-swatch",
379
+ background: color,
380
+ __css: styles.tooltipSwatch
381
+ }
382
+ ),
383
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
384
+ import_core4.ui.span,
385
+ {
386
+ className: "ui-chart__tooltip-label",
387
+ __css: styles.tooltipLabel,
388
+ children: name
389
+ }
390
+ ),
391
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
392
+ import_core4.ui.span,
393
+ {
394
+ className: "ui-chart__tooltip-value",
395
+ __css: styles.tooltipValue,
396
+ children: [
397
+ value,
398
+ unit ? unit : ""
399
+ ]
400
+ }
401
+ )
402
+ ]
403
+ },
404
+ `tooltip-payload-${index}`
405
+ );
406
+ }
407
+ );
408
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
409
+ import_core4.ui.div,
410
+ {
411
+ ref,
412
+ className: (0, import_utils4.cx)("ui-chart__tooltip", className),
413
+ __css: styles.tooltip,
414
+ ...rest,
415
+ children: [
416
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_core4.ui.p, { className: "ui-chart__tooltip-title", __css: styles.tooltipTitle, children: label }),
417
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_core4.ui.div, { className: "ui-chart__tooltip-list", __css: styles.tooltipList, children: items })
418
+ ]
419
+ }
420
+ );
421
+ }
422
+ );
423
+
424
+ // src/use-bar-chart.ts
425
+ var import_core5 = require("@yamada-ui/core");
426
+ var import_utils5 = require("@yamada-ui/utils");
427
+ var import_react2 = require("react");
428
+ var useBarChart = ({
429
+ data,
430
+ series,
431
+ type = "default",
432
+ layoutType = "horizontal",
433
+ referenceLineProps = [],
434
+ fillOpacity = 1,
435
+ styles,
436
+ ...rest
437
+ }) => {
438
+ var _a;
439
+ const uuid = (0, import_react2.useId)();
440
+ const { theme } = (0, import_core5.useTheme)();
441
+ const [highlightedArea, setHighlightedArea] = (0, import_react2.useState)(null);
442
+ const stacked = type === "stacked" || type === "percent";
443
+ const shouldHighlight = highlightedArea !== null;
444
+ const {
445
+ activeBar = {},
446
+ background = {},
447
+ dimBar,
448
+ ...computedBarProps
449
+ } = (_a = rest.barProps) != null ? _a : {};
450
+ const barColors = (0, import_react2.useMemo)(
451
+ () => series.map(({ color }, index) => ({
452
+ __prefix: "ui",
453
+ name: `bar-${index}`,
454
+ token: "colors",
455
+ value: color != null ? color : "transparent"
456
+ })),
457
+ [series]
458
+ );
459
+ const referenceLineColors = (0, import_react2.useMemo)(
460
+ () => referenceLineProps.map(({ color }, index) => ({
461
+ __prefix: "ui",
462
+ name: `reference-line-${index}`,
463
+ token: "colors",
464
+ value: color != null ? color : "transparent"
465
+ })),
466
+ [referenceLineProps]
467
+ );
468
+ const barVars = (0, import_react2.useMemo)(() => {
469
+ return [
470
+ ...barColors,
471
+ ...referenceLineColors,
472
+ { __prefix: "ui", name: "fill-opacity", value: fillOpacity }
473
+ ];
474
+ }, [barColors, fillOpacity, referenceLineColors]);
475
+ const [barChartProps, barChartClassName] = (0, import_react2.useMemo)(() => {
476
+ const resolvedBarChartProps = { barGap: 8, ...rest.barChartProps };
477
+ return getComponentProps(
478
+ [resolvedBarChartProps, barChartProperties],
479
+ styles.chart
480
+ )(theme);
481
+ }, [rest.barChartProps, styles.chart, theme]);
482
+ const [barProps, barClassName] = (0, import_react2.useMemo)(() => {
483
+ const resolvedBarProps = {
484
+ fillOpacity: "var(--ui-fill-opacity)",
485
+ strokeOpacity: 1,
486
+ ...computedBarProps
487
+ };
488
+ return getComponentProps(
489
+ [resolvedBarProps, barProperties],
490
+ styles.bar
491
+ )(theme);
492
+ }, [computedBarProps, styles.bar, theme]);
493
+ const [dimBarProps, dimBarClassName] = (0, import_react2.useMemo)(() => {
494
+ const resolvedDimBar = { fillOpacity: 0.3, strokeOpacity: 0, ...dimBar };
495
+ return getComponentProps([resolvedDimBar, barProperties])(
496
+ theme
497
+ );
498
+ }, [dimBar, theme]);
499
+ const [activeBarProps, activeBarClassName] = (0, import_react2.useMemo)(
500
+ () => getComponentProps(
501
+ [activeBar, barProperties],
502
+ styles.activeBar
503
+ )(theme),
504
+ [activeBar, styles.activeBar, theme]
505
+ );
506
+ const [backgroundProps, backgroundClassName] = (0, import_react2.useMemo)(
507
+ () => getComponentProps(
508
+ [background, barProperties],
509
+ styles.background
510
+ )(theme),
511
+ [background, styles.background, theme]
512
+ );
513
+ const barPropsList = (0, import_react2.useMemo)(
514
+ () => series.map((props, index) => {
515
+ const {
516
+ dataKey,
517
+ activeBar: activeBar2 = {},
518
+ background: background2 = {},
519
+ dimBar: dimBar2 = {},
520
+ ...computedProps
521
+ } = props;
522
+ const id = `${uuid}-${dataKey}`;
523
+ const color = `var(--ui-bar-${index})`;
524
+ const dimmed = shouldHighlight && highlightedArea !== dataKey;
525
+ const computedDimBar = { ...dimBarProps, ...dimBar2 };
526
+ const resolvedProps = {
527
+ ...barProps,
528
+ ...computedProps,
529
+ ...dimmed ? computedDimBar : {}
530
+ };
531
+ const rest2 = getComponentProps(
532
+ [resolvedProps, barProperties],
533
+ barClassName,
534
+ dimmed ? dimBarClassName : void 0
535
+ )(theme, true);
536
+ const computedActiveBar = { ...activeBarProps, ...activeBar2 };
537
+ const resolvedActiveBar = getComponentProps(
538
+ [computedActiveBar, barProperties],
539
+ activeBarClassName
540
+ )(theme, true);
541
+ const computedBackground = { ...backgroundProps, ...background2 };
542
+ const resolvedBackground = getComponentProps(
543
+ [computedBackground, barProperties],
544
+ backgroundClassName
545
+ )(theme, true);
546
+ return {
547
+ ...rest2,
548
+ id,
549
+ activeBar: resolvedActiveBar,
550
+ background: resolvedBackground,
551
+ color,
552
+ dataKey
553
+ };
554
+ }),
555
+ [
556
+ activeBarClassName,
557
+ activeBarProps,
558
+ backgroundClassName,
559
+ backgroundProps,
560
+ barClassName,
561
+ barProps,
562
+ dimBarClassName,
563
+ dimBarProps,
564
+ highlightedArea,
565
+ series,
566
+ shouldHighlight,
567
+ theme,
568
+ uuid
569
+ ]
570
+ );
571
+ const getBarProps = (0, import_react2.useCallback)(
572
+ ({ index, className: classNameProp, ...props }, ref = null) => {
573
+ const { id, className, activeBar: activeBar2, background: background2, color, dataKey, ...rest2 } = barPropsList[index];
574
+ return {
575
+ ref,
576
+ className: (0, import_utils5.cx)(classNameProp, className),
577
+ activeBar: activeBar2,
578
+ background: background2,
579
+ id,
580
+ name: dataKey,
581
+ dataKey,
582
+ fill: color,
583
+ stroke: color,
584
+ isAnimationActive: false,
585
+ stackId: stacked ? "stack" : void 0,
586
+ ...props,
587
+ ...rest2
588
+ };
589
+ },
590
+ [barPropsList, stacked]
591
+ );
592
+ const getBarChartProps = (0, import_react2.useCallback)(
593
+ ({ className, ...props } = {}, ref = null) => ({
594
+ ref,
595
+ className: (0, import_utils5.cx)(className, barChartClassName),
596
+ data,
597
+ stackOffset: type === "percent" ? "expand" : void 0,
598
+ layout: layoutType,
599
+ ...props,
600
+ ...barChartProps
601
+ }),
602
+ [barChartClassName, barChartProps, data, layoutType, type]
603
+ );
604
+ return {
605
+ barVars,
606
+ getBarProps,
607
+ getBarChartProps,
608
+ setHighlightedArea
609
+ };
610
+ };
611
+
612
+ // src/use-chart-axis.ts
613
+ var import_core6 = require("@yamada-ui/core");
614
+ var import_utils6 = require("@yamada-ui/utils");
615
+ var import_react3 = require("react");
616
+ var useChartAxis = ({
617
+ dataKey,
618
+ type,
619
+ layoutType = "horizontal",
620
+ tickLine = "y",
621
+ gridAxis = "x",
622
+ withXAxis = true,
623
+ withYAxis = true,
624
+ xAxisProps: _xAxisProps = {},
625
+ yAxisProps: _yAxisProps = {},
626
+ unit,
627
+ valueFormatter,
628
+ styles
629
+ }) => {
630
+ const { theme } = (0, import_core6.useTheme)();
631
+ const xAxisKey = (0, import_react3.useMemo)(
632
+ () => layoutType === "vertical" ? { type: "number" } : { dataKey },
633
+ [dataKey, layoutType]
634
+ );
635
+ const yAxisKey = (0, import_react3.useMemo)(
636
+ () => layoutType === "vertical" ? { dataKey, type: "category" } : { type: "number" },
637
+ [dataKey, layoutType]
638
+ );
639
+ const withXTickLine = gridAxis !== "none" && (tickLine === "x" || tickLine === "xy");
640
+ const withYTickLine = gridAxis !== "none" && (tickLine === "y" || tickLine === "xy");
641
+ const getTickLine = (withTickLine) => withTickLine ? { stroke: "currentColor" } : false;
642
+ const xTickLine = getTickLine(withXTickLine);
643
+ const yTickLine = getTickLine(withYTickLine);
644
+ const yAxisTickFormatter = type === "percent" && layoutType !== "vertical" ? valueToPercent : valueFormatter;
645
+ const xAxisTickFormatter = type === "percent" && layoutType === "vertical" ? valueToPercent : valueFormatter;
646
+ const [xAxisReChartsProps, xAxisClassName] = getComponentProps(
647
+ [_xAxisProps, xAxisProperties],
648
+ styles.xAxis
649
+ )(theme);
650
+ const [yAxisReChartsProps, yAxisClassName] = getComponentProps(
651
+ [_yAxisProps, yAxisProperties],
652
+ styles.yAxis
653
+ )(theme);
654
+ const getXAxisProps = (0, import_react3.useCallback)(
655
+ ({ className, ...props } = {}) => ({
656
+ className: (0, import_utils6.cx)(className, xAxisClassName),
657
+ hide: !withXAxis,
658
+ ...xAxisKey,
659
+ tick: {
660
+ transform: "translate(0, 10)",
661
+ fill: "currentColor"
662
+ },
663
+ stroke: "",
664
+ interval: "preserveStartEnd",
665
+ tickLine: xTickLine,
666
+ minTickGap: 5,
667
+ tickFormatter: xAxisTickFormatter,
668
+ ...props,
669
+ ...xAxisReChartsProps
670
+ }),
671
+ [
672
+ xAxisClassName,
673
+ withXAxis,
674
+ xAxisKey,
675
+ xTickLine,
676
+ xAxisTickFormatter,
677
+ xAxisReChartsProps
678
+ ]
679
+ );
680
+ const getYAxisProps = (0, import_react3.useCallback)(
681
+ ({ className, ...props } = {}) => ({
682
+ className: (0, import_utils6.cx)(className, yAxisClassName),
683
+ hide: !withYAxis,
684
+ axisLine: false,
685
+ ...yAxisKey,
686
+ tickLine: yTickLine,
687
+ tick: {
688
+ transform: "translate(-10, 0)",
689
+ fill: "currentColor"
690
+ },
691
+ allowDecimals: true,
692
+ unit,
693
+ tickFormatter: yAxisTickFormatter,
694
+ ...props,
695
+ ...yAxisReChartsProps
696
+ }),
697
+ [
698
+ yAxisClassName,
699
+ withYAxis,
700
+ yAxisKey,
701
+ yTickLine,
702
+ unit,
703
+ yAxisTickFormatter,
704
+ yAxisReChartsProps
705
+ ]
706
+ );
707
+ return { getXAxisProps, getYAxisProps };
708
+ };
709
+ var valueToPercent = (value) => {
710
+ return `${(value * 100).toFixed(0)}%`;
711
+ };
712
+
713
+ // src/use-chart-grid.ts
714
+ var import_core7 = require("@yamada-ui/core");
715
+ var import_utils7 = require("@yamada-ui/utils");
716
+ var import_react4 = require("react");
717
+ var useChartGrid = ({
718
+ gridProps = {},
719
+ gridAxis = "x",
720
+ strokeDasharray = "5 5",
721
+ styles
722
+ }) => {
723
+ const { theme } = (0, import_core7.useTheme)();
724
+ const [reChartsProps, propClassName] = getComponentProps(
725
+ [gridProps, gridProperties],
726
+ styles.grid
727
+ )(theme);
728
+ const getGridProps = (0, import_react4.useCallback)(
729
+ ({ className, ...props } = {}, ref = null) => ({
730
+ ref,
731
+ className: (0, import_utils7.cx)("ui-chart__grid", className, propClassName),
732
+ strokeDasharray,
733
+ vertical: gridAxis === "y" || gridAxis === "xy",
734
+ horizontal: gridAxis === "x" || gridAxis === "xy",
735
+ ...props,
736
+ ...reChartsProps
737
+ }),
738
+ [propClassName, strokeDasharray, gridAxis, reChartsProps]
739
+ );
740
+ return { getGridProps };
741
+ };
742
+
743
+ // src/use-chart-legend.ts
744
+ var import_utils8 = require("@yamada-ui/utils");
745
+ var import_react5 = require("react");
746
+ var useChartLegend = ({
747
+ legendProps: _legendProps = {}
748
+ }) => {
749
+ const [rest, legendProps] = (0, import_utils8.splitObject)(
750
+ _legendProps,
751
+ legendProperties
752
+ );
753
+ const getLegendProps = (0, import_react5.useCallback)(
754
+ (props, ref = null) => {
755
+ return {
756
+ ref,
757
+ verticalAlign: "top",
758
+ ...props,
759
+ ...rest
760
+ };
761
+ },
762
+ [rest]
763
+ );
764
+ return { legendProps, getLegendProps };
765
+ };
766
+
767
+ // src/use-chart-reference-line.ts
768
+ var import_core8 = require("@yamada-ui/core");
769
+ var import_utils9 = require("@yamada-ui/utils");
770
+ var import_react6 = require("react");
771
+ var useChartReferenceLine = ({
772
+ referenceLineProps = [],
773
+ styles
774
+ }) => {
775
+ const { theme } = (0, import_core8.useTheme)();
776
+ const styleClassName = (0, import_core8.getCSS)(styles.referenceLine)(theme);
777
+ const propList = (0, import_react6.useMemo)(
778
+ () => referenceLineProps.map((props, index) => {
779
+ const [{ label: labelProp, ...rest }, propClassName] = getComponentProps(
780
+ [props, referenceLineProperties],
781
+ styleClassName
782
+ )(theme);
783
+ const color = `var(--ui-reference-line-${index})`;
784
+ const label = {
785
+ value: labelProp,
786
+ fill: color,
787
+ position: "insideBottomLeft",
788
+ ...(0, import_utils9.isObject)(labelProp) ? labelProp : {}
789
+ };
790
+ return { propClassName, color, label, ...rest };
791
+ }),
792
+ [referenceLineProps, styleClassName, theme]
793
+ );
794
+ const getReferenceLineProps = (0, import_react6.useCallback)(
795
+ ({ index, className, ...props }, ref = null) => {
796
+ const { propClassName, color, label, ...rest } = propList[index];
797
+ return {
798
+ ref,
799
+ className: (0, import_utils9.cx)(className, propClassName),
800
+ stroke: color,
801
+ label,
802
+ ...props,
803
+ ...rest
804
+ };
805
+ },
806
+ [propList]
807
+ );
808
+ return { getReferenceLineProps };
809
+ };
810
+
811
+ // src/use-chart-tooltip.ts
812
+ var import_utils10 = require("@yamada-ui/utils");
813
+ var import_react7 = require("react");
814
+ var useChartTooltip = ({
815
+ tooltipProps: _tooltipProps = {},
816
+ tooltipAnimationDuration = 0,
817
+ styles
818
+ }) => {
819
+ const { cursor, ...rest } = _tooltipProps;
820
+ const resolvedCursor = (0, import_react7.useMemo)(
821
+ () => ({ ...styles.cursor, ...cursor }),
822
+ [cursor, styles]
823
+ );
824
+ const tooltipVars = (0, import_react7.useMemo)(
825
+ () => [
826
+ {
827
+ __prefix: "ui",
828
+ name: "cursor-fill",
829
+ token: "colors",
830
+ value: resolvedCursor.fill
831
+ },
832
+ {
833
+ __prefix: "ui",
834
+ name: "cursor-stroke",
835
+ token: "colors",
836
+ value: resolvedCursor.stroke
837
+ },
838
+ {
839
+ __prefix: "ui",
840
+ name: "cursor-stroke-width",
841
+ token: "colors",
842
+ value: resolvedCursor.strokeWidth
843
+ },
844
+ {
845
+ __prefix: "ui",
846
+ name: "cursor-stroke-dasharray",
847
+ token: "colors",
848
+ value: resolvedCursor.strokeDasharray
849
+ }
850
+ ],
851
+ [resolvedCursor]
852
+ );
853
+ const [tooltipProps, tooltipUIProps] = (0, import_utils10.splitObject)(
854
+ rest,
855
+ tooltipProperties
856
+ );
857
+ const getTooltipProps = (0, import_react7.useCallback)(
858
+ (props, ref = null) => ({
859
+ ref,
860
+ animationDuration: tooltipAnimationDuration,
861
+ isAnimationActive: (tooltipAnimationDuration || 0) > 0,
862
+ cursor: {
863
+ fill: "var(--ui-cursor-fill)",
864
+ stroke: "var(--ui-cursor-stroke)",
865
+ strokeWidth: "var(--ui-cursor-stroke-width)",
866
+ strokeDasharray: "var(--ui-cursor-stroke-dasharray)"
867
+ },
868
+ ...props,
869
+ ...tooltipProps
870
+ }),
871
+ [tooltipAnimationDuration, tooltipProps]
872
+ );
873
+ return { tooltipProps: tooltipUIProps, getTooltipProps, tooltipVars };
874
+ };
875
+
876
+ // src/bar-chart.tsx
877
+ var import_jsx_runtime3 = require("react/jsx-runtime");
878
+ var BarChart = (0, import_core9.forwardRef)((props, ref) => {
879
+ const [styles, mergedProps] = (0, import_core9.useMultiComponentStyle)("BarChart", props);
880
+ const {
881
+ className,
882
+ series,
883
+ dataKey,
884
+ layoutType,
885
+ tickLine,
886
+ gridAxis,
887
+ withXAxis,
888
+ withYAxis,
889
+ barProps,
890
+ xAxisProps,
891
+ yAxisProps,
892
+ type = "default",
893
+ withTooltip = true,
894
+ withLegend = false,
895
+ containerProps,
896
+ unit,
897
+ valueFormatter,
898
+ tooltipProps,
899
+ tooltipAnimationDuration,
900
+ legendProps,
901
+ data,
902
+ referenceLineProps = [],
903
+ gridProps,
904
+ strokeDasharray,
905
+ fillOpacity,
906
+ barChartProps,
907
+ ...rest
908
+ } = (0, import_core9.omitThemeProps)(mergedProps);
909
+ const { getBarChartProps, getBarProps, barVars, setHighlightedArea } = useBarChart({
910
+ data,
911
+ series,
912
+ type,
913
+ layoutType,
914
+ barChartProps,
915
+ barProps,
916
+ referenceLineProps,
917
+ fillOpacity,
918
+ styles
919
+ });
920
+ const { getContainerProps } = useChart({ containerProps });
921
+ const { getXAxisProps, getYAxisProps } = useChartAxis({
922
+ dataKey,
923
+ type,
924
+ layoutType,
925
+ tickLine,
926
+ gridAxis,
927
+ withXAxis,
928
+ withYAxis,
929
+ xAxisProps,
930
+ yAxisProps,
931
+ unit,
932
+ valueFormatter,
933
+ styles
934
+ });
935
+ const { getReferenceLineProps } = useChartReferenceLine({
936
+ referenceLineProps,
937
+ styles
938
+ });
939
+ const { getGridProps } = useChartGrid({
940
+ gridProps,
941
+ gridAxis,
942
+ strokeDasharray,
943
+ styles
944
+ });
945
+ const {
946
+ tooltipProps: computedTooltipProps,
947
+ getTooltipProps,
948
+ tooltipVars
949
+ } = useChartTooltip({
950
+ tooltipProps,
951
+ tooltipAnimationDuration,
952
+ styles
953
+ });
954
+ const { legendProps: computedLegendProps, getLegendProps } = useChartLegend({
955
+ legendProps
956
+ });
957
+ const bars = (0, import_react8.useMemo)(
958
+ () => series.map(({ dataKey: dataKey2 }, index) => {
959
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
960
+ import_recharts.Bar,
961
+ {
962
+ ...getBarProps({ index, className: "ui-bar-chart__bar" })
963
+ },
964
+ `bar-${dataKey2}`
965
+ );
966
+ }),
967
+ [getBarProps, series]
968
+ );
969
+ const referenceLinesItems = (0, import_react8.useMemo)(
970
+ () => referenceLineProps.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
971
+ import_recharts.ReferenceLine,
972
+ {
973
+ ...getReferenceLineProps({
974
+ index,
975
+ className: "ui-bar-chart__reference-line"
976
+ })
977
+ },
978
+ `referenceLine-${index}`
979
+ )),
980
+ [getReferenceLineProps, referenceLineProps]
981
+ );
982
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ChartProvider, { value: { styles }, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
983
+ import_core9.ui.div,
984
+ {
985
+ ref,
986
+ className: (0, import_utils11.cx)("ui-bar-chart", className),
987
+ var: [...barVars, ...tooltipVars],
988
+ __css: { maxW: "full", ...styles.container },
989
+ ...rest,
990
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
991
+ import_recharts.ResponsiveContainer,
992
+ {
993
+ ...getContainerProps({ className: "ui-bar-chart__container" }),
994
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
995
+ import_recharts.BarChart,
996
+ {
997
+ ...getBarChartProps({ className: "ui-bar-chart__chart" }),
998
+ children: [
999
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1000
+ import_recharts.CartesianGrid,
1001
+ {
1002
+ ...getGridProps({ className: "ui-area-chart__grid" })
1003
+ }
1004
+ ),
1005
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_recharts.XAxis, { ...getXAxisProps({ className: "ui-bar-chart__x-axis" }) }),
1006
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_recharts.YAxis, { ...getYAxisProps({ className: "ui-bar-chart__y-axis" }) }),
1007
+ withLegend ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1008
+ import_recharts.Legend,
1009
+ {
1010
+ content: ({ payload }) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1011
+ ChartLegend,
1012
+ {
1013
+ className: "ui-bar-chart__legend",
1014
+ payload,
1015
+ onHighlight: setHighlightedArea,
1016
+ ...computedLegendProps
1017
+ }
1018
+ ),
1019
+ ...getLegendProps()
1020
+ }
1021
+ ) : null,
1022
+ withTooltip ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1023
+ import_recharts.Tooltip,
1024
+ {
1025
+ content: ({ label, payload }) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1026
+ ChartTooltip,
1027
+ {
1028
+ className: "ui-bar-chart__tooltip",
1029
+ label,
1030
+ payload,
1031
+ valueFormatter,
1032
+ unit,
1033
+ ...computedTooltipProps
1034
+ }
1035
+ ),
1036
+ ...getTooltipProps()
1037
+ }
1038
+ ) : null,
1039
+ bars,
1040
+ referenceLinesItems
1041
+ ]
1042
+ }
1043
+ )
1044
+ }
1045
+ )
1046
+ }
1047
+ ) });
1048
+ });
1049
+ // Annotate the CommonJS export names for ESM import in node:
1050
+ 0 && (module.exports = {
1051
+ BarChart
1052
+ });
1053
+ //# sourceMappingURL=bar-chart.js.map