@yamada-ui/charts 2.0.0-next-20240729113003 → 2.0.0-next-20240820160301

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. package/dist/area-chart.d.mts +1 -0
  2. package/dist/area-chart.d.ts +1 -0
  3. package/dist/area-chart.js +23 -10
  4. package/dist/area-chart.js.map +1 -1
  5. package/dist/area-chart.mjs +4 -4
  6. package/dist/bar-chart.d.mts +2 -0
  7. package/dist/bar-chart.d.ts +2 -0
  8. package/dist/bar-chart.js +84 -45
  9. package/dist/bar-chart.js.map +1 -1
  10. package/dist/bar-chart.mjs +5 -5
  11. package/dist/chart-tooltip.d.mts +2 -1
  12. package/dist/chart-tooltip.d.ts +2 -1
  13. package/dist/chart-tooltip.js +15 -6
  14. package/dist/chart-tooltip.js.map +1 -1
  15. package/dist/chart-tooltip.mjs +1 -1
  16. package/dist/chart.types.d.mts +7 -5
  17. package/dist/chart.types.d.ts +7 -5
  18. package/dist/chart.types.js.map +1 -1
  19. package/dist/{chunk-J2HFHUKE.mjs → chunk-4MW4FB2T.mjs} +4 -4
  20. package/dist/{chunk-J2HFHUKE.mjs.map → chunk-4MW4FB2T.mjs.map} +1 -1
  21. package/dist/{chunk-IOVOXWUL.mjs → chunk-AODYT4HF.mjs} +14 -20
  22. package/dist/chunk-AODYT4HF.mjs.map +1 -0
  23. package/dist/{chunk-UK6B6KJ7.mjs → chunk-AOGTJ4EN.mjs} +1 -1
  24. package/dist/chunk-AOGTJ4EN.mjs.map +1 -0
  25. package/dist/{chunk-FTAFXLVL.mjs → chunk-BGMNYKQY.mjs} +5 -5
  26. package/dist/chunk-BGMNYKQY.mjs.map +1 -0
  27. package/dist/{chunk-OOWHC7AF.mjs → chunk-FALZDKAW.mjs} +6 -5
  28. package/dist/chunk-FALZDKAW.mjs.map +1 -0
  29. package/dist/{chunk-X7MOM6U4.mjs → chunk-FCMP6QEZ.mjs} +10 -5
  30. package/dist/chunk-FCMP6QEZ.mjs.map +1 -0
  31. package/dist/{chunk-KPKLW25H.mjs → chunk-KBBHISBO.mjs} +10 -5
  32. package/dist/chunk-KBBHISBO.mjs.map +1 -0
  33. package/dist/{chunk-CIRGC4FT.mjs → chunk-MOFNE6PO.mjs} +7 -6
  34. package/dist/chunk-MOFNE6PO.mjs.map +1 -0
  35. package/dist/{chunk-PSJKBKOF.mjs → chunk-MT5JI4OR.mjs} +16 -7
  36. package/dist/chunk-MT5JI4OR.mjs.map +1 -0
  37. package/dist/{chunk-MVKJVXAK.mjs → chunk-S5NKKKV5.mjs} +40 -9
  38. package/dist/chunk-S5NKKKV5.mjs.map +1 -0
  39. package/dist/{chunk-CCFQC3T6.mjs → chunk-UHQ6WE5D.mjs} +8 -5
  40. package/dist/chunk-UHQ6WE5D.mjs.map +1 -0
  41. package/dist/{chunk-XHDDK4ZU.mjs → chunk-VK4VQQYY.mjs} +3 -4
  42. package/dist/chunk-VK4VQQYY.mjs.map +1 -0
  43. package/dist/{chunk-TSAITPYC.mjs → chunk-XUAAKVRL.mjs} +6 -5
  44. package/dist/chunk-XUAAKVRL.mjs.map +1 -0
  45. package/dist/donut-chart.d.mts +1 -0
  46. package/dist/donut-chart.d.ts +1 -0
  47. package/dist/donut-chart.js +23 -13
  48. package/dist/donut-chart.js.map +1 -1
  49. package/dist/donut-chart.mjs +5 -5
  50. package/dist/index.d.mts +5 -4
  51. package/dist/index.d.ts +5 -4
  52. package/dist/index.js +213 -153
  53. package/dist/index.js.map +1 -1
  54. package/dist/index.mjs +17 -13
  55. package/dist/index.mjs.map +1 -1
  56. package/dist/line-chart.d.mts +1 -0
  57. package/dist/line-chart.d.ts +1 -0
  58. package/dist/line-chart.js +23 -10
  59. package/dist/line-chart.js.map +1 -1
  60. package/dist/line-chart.mjs +4 -4
  61. package/dist/pie-chart-label.d.mts +1 -1
  62. package/dist/pie-chart-label.d.ts +1 -1
  63. package/dist/pie-chart-label.js +3 -3
  64. package/dist/pie-chart-label.js.map +1 -1
  65. package/dist/pie-chart-label.mjs +1 -1
  66. package/dist/pie-chart.d.mts +2 -5
  67. package/dist/pie-chart.d.ts +2 -5
  68. package/dist/pie-chart.js +23 -13
  69. package/dist/pie-chart.js.map +1 -1
  70. package/dist/pie-chart.mjs +5 -5
  71. package/dist/radar-chart.d.mts +2 -1
  72. package/dist/radar-chart.d.ts +2 -1
  73. package/dist/radar-chart.js +25 -12
  74. package/dist/radar-chart.js.map +1 -1
  75. package/dist/radar-chart.mjs +4 -4
  76. package/dist/use-area-chart.d.mts +1 -0
  77. package/dist/use-area-chart.d.ts +1 -0
  78. package/dist/use-bar-chart.d.mts +16 -2
  79. package/dist/use-bar-chart.d.ts +16 -2
  80. package/dist/use-bar-chart.js +38 -2
  81. package/dist/use-bar-chart.js.map +1 -1
  82. package/dist/use-bar-chart.mjs +1 -1
  83. package/dist/use-chart-axis.d.mts +8 -3
  84. package/dist/use-chart-axis.d.ts +8 -3
  85. package/dist/use-chart-axis.js +2 -3
  86. package/dist/use-chart-axis.js.map +1 -1
  87. package/dist/use-chart-axis.mjs +1 -1
  88. package/dist/use-chart-grid.d.mts +1 -0
  89. package/dist/use-chart-grid.d.ts +1 -0
  90. package/dist/use-chart-legend.d.mts +1 -0
  91. package/dist/use-chart-legend.d.ts +1 -0
  92. package/dist/use-chart-reference-line.d.mts +1 -0
  93. package/dist/use-chart-reference-line.d.ts +1 -0
  94. package/dist/use-chart-tooltip.d.mts +9 -0
  95. package/dist/use-chart-tooltip.d.ts +9 -0
  96. package/dist/use-chart-tooltip.js.map +1 -1
  97. package/dist/use-chart-tooltip.mjs +1 -1
  98. package/dist/use-chart.d.mts +1 -0
  99. package/dist/use-chart.d.ts +1 -0
  100. package/dist/use-line-chart.d.mts +1 -0
  101. package/dist/use-line-chart.d.ts +1 -0
  102. package/dist/use-pie-chart.d.mts +4 -3
  103. package/dist/use-pie-chart.d.ts +4 -3
  104. package/dist/use-pie-chart.js +6 -6
  105. package/dist/use-pie-chart.js.map +1 -1
  106. package/dist/use-pie-chart.mjs +2 -2
  107. package/dist/use-radar-chart.d.mts +8 -3
  108. package/dist/use-radar-chart.d.ts +8 -3
  109. package/dist/use-radar-chart.js +6 -5
  110. package/dist/use-radar-chart.js.map +1 -1
  111. package/dist/use-radar-chart.mjs +1 -1
  112. package/package.json +3 -3
  113. package/dist/chunk-CCFQC3T6.mjs.map +0 -1
  114. package/dist/chunk-CIRGC4FT.mjs.map +0 -1
  115. package/dist/chunk-FTAFXLVL.mjs.map +0 -1
  116. package/dist/chunk-IOVOXWUL.mjs.map +0 -1
  117. package/dist/chunk-KPKLW25H.mjs.map +0 -1
  118. package/dist/chunk-MVKJVXAK.mjs.map +0 -1
  119. package/dist/chunk-OOWHC7AF.mjs.map +0 -1
  120. package/dist/chunk-PSJKBKOF.mjs.map +0 -1
  121. package/dist/chunk-TSAITPYC.mjs.map +0 -1
  122. package/dist/chunk-UK6B6KJ7.mjs.map +0 -1
  123. package/dist/chunk-X7MOM6U4.mjs.map +0 -1
  124. package/dist/chunk-XHDDK4ZU.mjs.map +0 -1
package/dist/bar-chart.js CHANGED
@@ -27,7 +27,7 @@ module.exports = __toCommonJS(bar_chart_exports);
27
27
  var import_core10 = require("@yamada-ui/core");
28
28
  var import_utils11 = require("@yamada-ui/utils");
29
29
  var import_react8 = require("react");
30
- var import_recharts = require("recharts");
30
+ var import_recharts2 = require("recharts");
31
31
 
32
32
  // src/chart-legend.tsx
33
33
  var import_core3 = require("@yamada-ui/core");
@@ -365,20 +365,29 @@ var import_core4 = require("@yamada-ui/core");
365
365
  var import_utils4 = require("@yamada-ui/utils");
366
366
  var import_jsx_runtime2 = require("react/jsx-runtime");
367
367
  var ChartTooltip = (0, import_core4.forwardRef)(
368
- ({ label, className, payload = [], valueFormatter, unit, ...rest }, ref) => {
368
+ ({
369
+ label,
370
+ className,
371
+ payload = [],
372
+ valueFormatter,
373
+ labelFormatter,
374
+ unit,
375
+ ...rest
376
+ }, ref) => {
377
+ var _a;
369
378
  const { styles } = useTooltip();
370
379
  const items = payload.map(
371
380
  ({ color: colorProp, name, value: valueProp, payload: payload2 } = {}, index) => {
372
- var _a;
381
+ var _a2;
373
382
  const color = colorProp != null ? colorProp : payload2 == null ? void 0 : payload2.color;
374
383
  let value;
375
384
  if ((0, import_utils4.isArray)(valueProp)) {
376
385
  value = valueProp.map((value2) => {
377
- var _a2;
378
- return `${(_a2 = valueFormatter == null ? void 0 : valueFormatter(value2)) != null ? _a2 : value2}`;
386
+ var _a3;
387
+ return `${(_a3 = valueFormatter == null ? void 0 : valueFormatter(value2)) != null ? _a3 : value2}`;
379
388
  }).join(" - ");
380
389
  } else {
381
- value = (_a = valueFormatter == null ? void 0 : valueFormatter(valueProp)) != null ? _a : valueProp;
390
+ value = (_a2 = valueFormatter == null ? void 0 : valueFormatter(valueProp)) != null ? _a2 : valueProp;
382
391
  }
383
392
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
384
393
  import_core4.ui.div,
@@ -427,7 +436,7 @@ var ChartTooltip = (0, import_core4.forwardRef)(
427
436
  __css: styles.tooltip,
428
437
  ...rest,
429
438
  children: [
430
- label ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_core4.ui.p, { className: "ui-chart__tooltip-title", __css: styles.tooltipTitle, children: label }) : null,
439
+ label ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_core4.ui.p, { className: "ui-chart__tooltip-title", __css: styles.tooltipTitle, children: (_a = labelFormatter == null ? void 0 : labelFormatter(label)) != null ? _a : label }) : null,
431
440
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_core4.ui.div, { className: "ui-chart__tooltip-list", __css: styles.tooltipList, children: items })
432
441
  ]
433
442
  }
@@ -435,10 +444,12 @@ var ChartTooltip = (0, import_core4.forwardRef)(
435
444
  }
436
445
  );
437
446
 
438
- // src/use-bar-chart.ts
447
+ // src/use-bar-chart.tsx
439
448
  var import_core5 = require("@yamada-ui/core");
440
449
  var import_utils5 = require("@yamada-ui/utils");
441
450
  var import_react2 = require("react");
451
+ var import_recharts = require("recharts");
452
+ var import_jsx_runtime3 = require("react/jsx-runtime");
442
453
  var useBarChart = ({
443
454
  data,
444
455
  series,
@@ -450,6 +461,7 @@ var useBarChart = ({
450
461
  xAxisLabel,
451
462
  yAxisLabel,
452
463
  styles,
464
+ cell = defaultBarCell,
453
465
  ...rest
454
466
  }) => {
455
467
  var _a;
@@ -606,6 +618,22 @@ var useBarChart = ({
606
618
  },
607
619
  [barPropsList, stacked]
608
620
  );
621
+ const bars = (0, import_react2.useMemo)(() => {
622
+ const hasStack = series.some((entry) => entry.stackId);
623
+ return series.map((series2, index) => {
624
+ const { dataKey } = series2;
625
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
626
+ import_recharts.Bar,
627
+ {
628
+ ...getBarProps({ index, className: "ui-bar-chart__bar" }),
629
+ children: data.map(
630
+ (data2, index2) => (0, import_utils5.runIfFunc)(cell, { series: series2, data: data2, index: index2, hasStack })
631
+ )
632
+ },
633
+ `bar-${dataKey}`
634
+ );
635
+ });
636
+ }, [series, getBarProps, cell, data]);
609
637
  const getBarChartProps = (0, import_react2.useCallback)(
610
638
  ({ className, ...props } = {}, ref = null) => ({
611
639
  ref,
@@ -634,12 +662,29 @@ var useBarChart = ({
634
662
  ]
635
663
  );
636
664
  return {
665
+ bars,
637
666
  barVars,
638
667
  getBarProps,
639
668
  getBarChartProps,
640
669
  setHighlightedArea
641
670
  };
642
671
  };
672
+ var defaultBarCell = ({
673
+ hasStack,
674
+ series,
675
+ data,
676
+ index
677
+ }) => {
678
+ const { dataKey } = series;
679
+ const key = `cell-${dataKey}-${index}`;
680
+ if (!hasStack) return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_recharts.Cell, {}, key);
681
+ const keys = Object.keys(data);
682
+ const values = Object.values(data);
683
+ const currentIndex = keys.findIndex((key2) => key2 === dataKey);
684
+ const lastIndex = values.findLastIndex((value) => value !== 0);
685
+ if (currentIndex === lastIndex) return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_recharts.Cell, {}, key);
686
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_recharts.Cell, { radius: 0 }, key);
687
+ };
643
688
 
644
689
  // src/use-chart-axis.ts
645
690
  var import_core6 = require("@yamada-ui/core");
@@ -656,7 +701,8 @@ var useChartAxis = ({
656
701
  xAxisLabel: xAxisLabelProp,
657
702
  yAxisLabel: yAxisLabelProp,
658
703
  unit,
659
- valueFormatter,
704
+ yAxisTickFormatter = type === "percent" && layoutType === "horizontal" ? valueToPercent : void 0,
705
+ xAxisTickFormatter = type === "percent" && layoutType === "vertical" ? valueToPercent : void 0,
660
706
  styles,
661
707
  ...rest
662
708
  }) => {
@@ -675,8 +721,6 @@ var useChartAxis = ({
675
721
  const getTickLine = (withTickLine) => withTickLine ? { stroke: "currentColor" } : false;
676
722
  const xTickLine = getTickLine(withXTickLine);
677
723
  const yTickLine = getTickLine(withYTickLine);
678
- const yAxisTickFormatter = type === "percent" && layoutType !== "vertical" ? valueToPercent : valueFormatter;
679
- const xAxisTickFormatter = type === "percent" && layoutType === "vertical" ? valueToPercent : valueFormatter;
680
724
  const xAxisLabel = layoutType === "vertical" ? yAxisLabelProp : xAxisLabelProp;
681
725
  const yAxisLabel = layoutType === "vertical" ? xAxisLabelProp : yAxisLabelProp;
682
726
  const [xAxisProps, xAxisClassName] = getComponentProps(
@@ -917,7 +961,7 @@ var useChartTooltip = ({
917
961
  };
918
962
 
919
963
  // src/bar-chart.tsx
920
- var import_jsx_runtime3 = require("react/jsx-runtime");
964
+ var import_jsx_runtime4 = require("react/jsx-runtime");
921
965
  var BarChart = (0, import_core10.forwardRef)((props, ref) => {
922
966
  const [styles, mergedProps] = (0, import_core10.useMultiComponentStyle)("BarChart", props);
923
967
  const {
@@ -941,7 +985,10 @@ var BarChart = (0, import_core10.forwardRef)((props, ref) => {
941
985
  withLegend = false,
942
986
  containerProps,
943
987
  unit,
988
+ yAxisTickFormatter,
989
+ xAxisTickFormatter,
944
990
  valueFormatter,
991
+ labelFormatter,
945
992
  tooltipProps,
946
993
  tooltipAnimationDuration,
947
994
  legendProps,
@@ -952,11 +999,13 @@ var BarChart = (0, import_core10.forwardRef)((props, ref) => {
952
999
  fillOpacity,
953
1000
  chartProps,
954
1001
  syncId,
1002
+ cell,
955
1003
  ...rest
956
1004
  } = (0, import_core10.omitThemeProps)(mergedProps);
957
- const { getBarChartProps, getBarProps, barVars, setHighlightedArea } = useBarChart({
1005
+ const { bars, barVars, getBarChartProps, setHighlightedArea } = useBarChart({
958
1006
  data,
959
1007
  series,
1008
+ cell,
960
1009
  type,
961
1010
  layoutType,
962
1011
  chartProps,
@@ -989,7 +1038,8 @@ var BarChart = (0, import_core10.forwardRef)((props, ref) => {
989
1038
  xAxisLabelProps,
990
1039
  yAxisLabelProps,
991
1040
  unit,
992
- valueFormatter,
1041
+ yAxisTickFormatter,
1042
+ xAxisTickFormatter,
993
1043
  styles
994
1044
  });
995
1045
  const { getReferenceLineProps } = useChartReferenceLine({
@@ -1010,21 +1060,9 @@ var BarChart = (0, import_core10.forwardRef)((props, ref) => {
1010
1060
  const { legendProps: computedLegendProps, getLegendProps } = useChartLegend({
1011
1061
  legendProps
1012
1062
  });
1013
- const bars = (0, import_react8.useMemo)(
1014
- () => series.map(({ dataKey: dataKey2 }, index) => {
1015
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1016
- import_recharts.Bar,
1017
- {
1018
- ...getBarProps({ index, className: "ui-bar-chart__bar" })
1019
- },
1020
- `bar-${dataKey2}`
1021
- );
1022
- }),
1023
- [getBarProps, series]
1024
- );
1025
1063
  const referenceLinesItems = (0, import_react8.useMemo)(
1026
- () => referenceLineProps.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1027
- import_recharts.ReferenceLine,
1064
+ () => referenceLineProps.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1065
+ import_recharts2.ReferenceLine,
1028
1066
  {
1029
1067
  ...getReferenceLineProps({
1030
1068
  index,
@@ -1035,7 +1073,7 @@ var BarChart = (0, import_core10.forwardRef)((props, ref) => {
1035
1073
  )),
1036
1074
  [getReferenceLineProps, referenceLineProps]
1037
1075
  );
1038
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ChartProvider, { value: { styles }, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1076
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ChartProvider, { value: { styles }, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1039
1077
  import_core10.ui.div,
1040
1078
  {
1041
1079
  ref,
@@ -1043,41 +1081,41 @@ var BarChart = (0, import_core10.forwardRef)((props, ref) => {
1043
1081
  var: barVars,
1044
1082
  __css: { ...styles.container },
1045
1083
  ...rest,
1046
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1047
- import_recharts.ResponsiveContainer,
1084
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1085
+ import_recharts2.ResponsiveContainer,
1048
1086
  {
1049
1087
  ...getContainerProps({ className: "ui-bar-chart__container" }),
1050
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
1051
- import_recharts.BarChart,
1088
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
1089
+ import_recharts2.BarChart,
1052
1090
  {
1053
1091
  ...getBarChartProps({ className: "ui-bar-chart__chart" }),
1054
1092
  children: [
1055
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1056
- import_recharts.CartesianGrid,
1093
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1094
+ import_recharts2.CartesianGrid,
1057
1095
  {
1058
1096
  ...getGridProps({ className: "ui-bar-chart__grid" })
1059
1097
  }
1060
1098
  ),
1061
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_recharts.XAxis, { ...getXAxisProps({ className: "ui-bar-chart__x-axis" }), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1062
- import_recharts.Label,
1099
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_recharts2.XAxis, { ...getXAxisProps({ className: "ui-bar-chart__x-axis" }), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1100
+ import_recharts2.Label,
1063
1101
  {
1064
1102
  ...getXAxisLabelProps({
1065
1103
  className: "ui-bar-chart__x-axis-label"
1066
1104
  })
1067
1105
  }
1068
1106
  ) }),
1069
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_recharts.YAxis, { ...getYAxisProps({ className: "ui-bar-chart__y-axis" }), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1070
- import_recharts.Label,
1107
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_recharts2.YAxis, { ...getYAxisProps({ className: "ui-bar-chart__y-axis" }), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1108
+ import_recharts2.Label,
1071
1109
  {
1072
1110
  ...getYAxisLabelProps({
1073
1111
  className: "ui-bar-chart__y-axis-label"
1074
1112
  })
1075
1113
  }
1076
1114
  ) }),
1077
- withLegend ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1078
- import_recharts.Legend,
1115
+ withLegend ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1116
+ import_recharts2.Legend,
1079
1117
  {
1080
- content: ({ payload }) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1118
+ content: ({ payload }) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1081
1119
  ChartLegend,
1082
1120
  {
1083
1121
  className: "ui-bar-chart__legend",
@@ -1089,16 +1127,17 @@ var BarChart = (0, import_core10.forwardRef)((props, ref) => {
1089
1127
  ...getLegendProps()
1090
1128
  }
1091
1129
  ) : null,
1092
- withTooltip ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1093
- import_recharts.Tooltip,
1130
+ withTooltip ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1131
+ import_recharts2.Tooltip,
1094
1132
  {
1095
- content: ({ label, payload }) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1133
+ content: ({ label, payload }) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1096
1134
  ChartTooltip,
1097
1135
  {
1098
1136
  className: "ui-bar-chart__tooltip",
1099
1137
  label,
1100
1138
  payload,
1101
1139
  valueFormatter,
1140
+ labelFormatter,
1102
1141
  unit,
1103
1142
  ...computedTooltipProps
1104
1143
  }