@yamada-ui/charts 1.5.4-dev-20241005224505 → 1.5.4-dev-20241006000212
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/area-chart-gradient.d.mts +1 -1
- package/dist/area-chart-gradient.d.ts +1 -1
- package/dist/area-chart-gradient.js +5 -5
- package/dist/area-chart-gradient.js.map +1 -1
- package/dist/area-chart-gradient.mjs +1 -1
- package/dist/area-chart-split.d.mts +1 -1
- package/dist/area-chart-split.d.ts +1 -1
- package/dist/area-chart-split.js +2 -2
- package/dist/area-chart-split.js.map +1 -1
- package/dist/area-chart-split.mjs +1 -1
- package/dist/area-chart.d.mts +8 -8
- package/dist/area-chart.d.ts +8 -8
- package/dist/area-chart.js +180 -175
- package/dist/area-chart.js.map +1 -1
- package/dist/area-chart.mjs +13 -13
- package/dist/bar-chart.d.mts +8 -8
- package/dist/bar-chart.d.ts +8 -8
- package/dist/bar-chart.js +137 -127
- package/dist/bar-chart.js.map +1 -1
- package/dist/bar-chart.mjs +11 -11
- package/dist/chart-legend.d.mts +1 -1
- package/dist/chart-legend.d.ts +1 -1
- package/dist/chart-legend.js +2 -2
- package/dist/chart-legend.js.map +1 -1
- package/dist/chart-legend.mjs +3 -3
- package/dist/chart-tooltip.d.mts +4 -4
- package/dist/chart-tooltip.d.ts +4 -4
- package/dist/chart-tooltip.js +7 -7
- package/dist/chart-tooltip.js.map +1 -1
- package/dist/chart-tooltip.mjs +3 -3
- package/dist/chart-utils.js.map +1 -1
- package/dist/chart-utils.mjs +1 -1
- package/dist/chart.types.d.mts +14 -14
- package/dist/chart.types.d.ts +14 -14
- package/dist/chart.types.js.map +1 -1
- package/dist/{chunk-YSPGYMRF.mjs → chunk-5VLSGWQD.mjs} +8 -8
- package/dist/{chunk-YSPGYMRF.mjs.map → chunk-5VLSGWQD.mjs.map} +1 -1
- package/dist/{chunk-XYUYAHJX.mjs → chunk-6JRMEI6J.mjs} +2 -2
- package/dist/chunk-6JRMEI6J.mjs.map +1 -0
- package/dist/{chunk-VKBRU4Z4.mjs → chunk-AYVTBRCS.mjs} +29 -28
- package/dist/chunk-AYVTBRCS.mjs.map +1 -0
- package/dist/{chunk-6O5G3WYP.mjs → chunk-EZG52466.mjs} +29 -21
- package/dist/chunk-EZG52466.mjs.map +1 -0
- package/dist/{chunk-VEFEKDMH.mjs → chunk-FDALM73K.mjs} +15 -14
- package/dist/chunk-FDALM73K.mjs.map +1 -0
- package/dist/{chunk-2GQHI23M.mjs → chunk-GU4SGNWX.mjs} +5 -5
- package/dist/chunk-GU4SGNWX.mjs.map +1 -0
- package/dist/{chunk-MVRWZTQ5.mjs → chunk-NLXYCM5J.mjs} +2 -2
- package/dist/chunk-NLXYCM5J.mjs.map +1 -0
- package/dist/{chunk-54WAXZP7.mjs → chunk-NMPNNSBN.mjs} +74 -74
- package/dist/chunk-NMPNNSBN.mjs.map +1 -0
- package/dist/{chunk-OEM3VCHN.mjs → chunk-NQPC5LPY.mjs} +82 -82
- package/dist/chunk-NQPC5LPY.mjs.map +1 -0
- package/dist/{chunk-AYVZF37W.mjs → chunk-OG5CVPPV.mjs} +3 -3
- package/dist/chunk-OG5CVPPV.mjs.map +1 -0
- package/dist/{chunk-X6CD7LHX.mjs → chunk-OUIKA4AX.mjs} +3 -3
- package/dist/{chunk-X6CD7LHX.mjs.map → chunk-OUIKA4AX.mjs.map} +1 -1
- package/dist/{chunk-3EHZJFIA.mjs → chunk-PKQB4BFG.mjs} +28 -28
- package/dist/chunk-PKQB4BFG.mjs.map +1 -0
- package/dist/{chunk-C3ZYUDXE.mjs → chunk-QPMW56KA.mjs} +52 -48
- package/dist/chunk-QPMW56KA.mjs.map +1 -0
- package/dist/{chunk-IJRYXT4V.mjs → chunk-R2LOTDR3.mjs} +2 -2
- package/dist/{chunk-IJRYXT4V.mjs.map → chunk-R2LOTDR3.mjs.map} +1 -1
- package/dist/{chunk-6OYWQ3NO.mjs → chunk-SCY5V45W.mjs} +56 -56
- package/dist/chunk-SCY5V45W.mjs.map +1 -0
- package/dist/{chunk-CQTRL3BW.mjs → chunk-SYBJTMPL.mjs} +90 -90
- package/dist/chunk-SYBJTMPL.mjs.map +1 -0
- package/dist/{chunk-XKVM7WUW.mjs → chunk-TA7YJAW4.mjs} +47 -47
- package/dist/{chunk-XKVM7WUW.mjs.map → chunk-TA7YJAW4.mjs.map} +1 -1
- package/dist/{chunk-O3LMKYXK.mjs → chunk-TU6MKMMV.mjs} +29 -28
- package/dist/chunk-TU6MKMMV.mjs.map +1 -0
- package/dist/{chunk-QL3DB7OJ.mjs → chunk-TXNC7GLT.mjs} +1 -1
- package/dist/{chunk-QL3DB7OJ.mjs.map → chunk-TXNC7GLT.mjs.map} +1 -1
- package/dist/{chunk-EE6KEX6V.mjs → chunk-U325CYNR.mjs} +6 -6
- package/dist/chunk-U325CYNR.mjs.map +1 -0
- package/dist/{chunk-OPPMMNGP.mjs → chunk-UER5GW4M.mjs} +33 -24
- package/dist/chunk-UER5GW4M.mjs.map +1 -0
- package/dist/{chunk-FYAC4RRZ.mjs → chunk-UTD4XZDM.mjs} +11 -10
- package/dist/chunk-UTD4XZDM.mjs.map +1 -0
- package/dist/{chunk-A3IWA366.mjs → chunk-VK65X6Q2.mjs} +4 -4
- package/dist/chunk-VK65X6Q2.mjs.map +1 -0
- package/dist/{chunk-OJ2MLZZ7.mjs → chunk-X6PIY2M3.mjs} +7 -7
- package/dist/chunk-X6PIY2M3.mjs.map +1 -0
- package/dist/{chunk-MSG3WFBO.mjs → chunk-YIAK5DIM.mjs} +7 -6
- package/dist/chunk-YIAK5DIM.mjs.map +1 -0
- package/dist/{chunk-NETTMC2D.mjs → chunk-YTUEG4IY.mjs} +45 -45
- package/dist/chunk-YTUEG4IY.mjs.map +1 -0
- package/dist/{chunk-VUTCH2CU.mjs → chunk-YX23LEQ7.mjs} +13 -13
- package/dist/chunk-YX23LEQ7.mjs.map +1 -0
- package/dist/{chunk-DZL5KQOJ.mjs → chunk-ZRV4LO67.mjs} +42 -42
- package/dist/chunk-ZRV4LO67.mjs.map +1 -0
- package/dist/donut-chart.js +91 -89
- package/dist/donut-chart.js.map +1 -1
- package/dist/donut-chart.mjs +10 -10
- package/dist/index.d.mts +14 -14
- package/dist/index.d.ts +14 -14
- package/dist/index.js +2069 -2043
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +28 -28
- package/dist/index.mjs.map +1 -1
- package/dist/line-chart.d.mts +7 -7
- package/dist/line-chart.d.ts +7 -7
- package/dist/line-chart.js +140 -138
- package/dist/line-chart.js.map +1 -1
- package/dist/line-chart.mjs +11 -11
- package/dist/pie-chart-label.d.mts +9 -9
- package/dist/pie-chart-label.d.ts +9 -9
- package/dist/pie-chart-label.js +14 -13
- package/dist/pie-chart-label.js.map +1 -1
- package/dist/pie-chart-label.mjs +1 -1
- package/dist/pie-chart.d.mts +11 -11
- package/dist/pie-chart.d.ts +11 -11
- package/dist/pie-chart.js +89 -87
- package/dist/pie-chart.js.map +1 -1
- package/dist/pie-chart.mjs +9 -9
- package/dist/radar-chart.d.mts +11 -11
- package/dist/radar-chart.d.ts +11 -11
- package/dist/radar-chart.js +81 -73
- package/dist/radar-chart.js.map +1 -1
- package/dist/radar-chart.mjs +9 -9
- package/dist/radial-chart.d.mts +10 -10
- package/dist/radial-chart.d.ts +10 -10
- package/dist/radial-chart.js +63 -62
- package/dist/radial-chart.js.map +1 -1
- package/dist/radial-chart.mjs +10 -10
- package/dist/use-area-chart.d.mts +53 -53
- package/dist/use-area-chart.d.ts +53 -53
- package/dist/use-area-chart.js +50 -46
- package/dist/use-area-chart.js.map +1 -1
- package/dist/use-area-chart.mjs +2 -2
- package/dist/use-bar-chart.d.mts +32 -32
- package/dist/use-bar-chart.d.ts +32 -32
- package/dist/use-bar-chart.js +30 -21
- package/dist/use-bar-chart.js.map +1 -1
- package/dist/use-bar-chart.mjs +2 -2
- package/dist/use-chart-axis.d.mts +27 -27
- package/dist/use-chart-axis.d.ts +27 -27
- package/dist/use-chart-axis.js +26 -26
- package/dist/use-chart-axis.js.map +1 -1
- package/dist/use-chart-axis.mjs +2 -2
- package/dist/use-chart-grid.d.mts +8 -8
- package/dist/use-chart-grid.d.ts +8 -8
- package/dist/use-chart-grid.js +3 -3
- package/dist/use-chart-grid.js.map +1 -1
- package/dist/use-chart-grid.mjs +2 -2
- package/dist/use-chart-label-list.d.mts +4 -4
- package/dist/use-chart-label-list.d.ts +4 -4
- package/dist/use-chart-label-list.js +5 -4
- package/dist/use-chart-label-list.js.map +1 -1
- package/dist/use-chart-label-list.mjs +2 -2
- package/dist/use-chart-label.d.mts +1 -1
- package/dist/use-chart-label.d.ts +1 -1
- package/dist/use-chart-label.js.map +1 -1
- package/dist/use-chart-label.mjs +2 -2
- package/dist/use-chart-legend.d.mts +1 -1
- package/dist/use-chart-legend.d.ts +1 -1
- package/dist/use-chart-legend.js +1 -1
- package/dist/use-chart-legend.js.map +1 -1
- package/dist/use-chart-legend.mjs +1 -1
- package/dist/use-chart-reference-line.d.mts +4 -4
- package/dist/use-chart-reference-line.d.ts +4 -4
- package/dist/use-chart-reference-line.js +8 -7
- package/dist/use-chart-reference-line.js.map +1 -1
- package/dist/use-chart-reference-line.mjs +2 -2
- package/dist/use-chart-tooltip.d.mts +7 -7
- package/dist/use-chart-tooltip.d.ts +7 -7
- package/dist/use-chart-tooltip.js +4 -4
- package/dist/use-chart-tooltip.js.map +1 -1
- package/dist/use-chart-tooltip.mjs +2 -2
- package/dist/use-chart.d.mts +6 -10
- package/dist/use-chart.d.ts +6 -10
- package/dist/use-chart.js +2 -2
- package/dist/use-chart.js.map +1 -1
- package/dist/use-chart.mjs +2 -2
- package/dist/use-line-chart.d.mts +43 -43
- package/dist/use-line-chart.d.ts +43 -43
- package/dist/use-line-chart.js +26 -25
- package/dist/use-line-chart.js.map +1 -1
- package/dist/use-line-chart.mjs +2 -2
- package/dist/use-pie-chart.d.mts +47 -47
- package/dist/use-pie-chart.d.ts +47 -47
- package/dist/use-pie-chart.js +40 -38
- package/dist/use-pie-chart.js.map +1 -1
- package/dist/use-pie-chart.mjs +3 -3
- package/dist/use-polar-grid.d.mts +5 -5
- package/dist/use-polar-grid.d.ts +5 -5
- package/dist/use-polar-grid.js.map +1 -1
- package/dist/use-polar-grid.mjs +2 -2
- package/dist/use-radar-chart.d.mts +41 -41
- package/dist/use-radar-chart.d.ts +41 -41
- package/dist/use-radar-chart.js +27 -19
- package/dist/use-radar-chart.js.map +1 -1
- package/dist/use-radar-chart.mjs +2 -2
- package/dist/use-radial-chart.d.mts +17 -17
- package/dist/use-radial-chart.d.ts +17 -17
- package/dist/use-radial-chart.js +11 -11
- package/dist/use-radial-chart.js.map +1 -1
- package/dist/use-radial-chart.mjs +2 -2
- package/package.json +3 -3
- package/dist/chunk-2GQHI23M.mjs.map +0 -1
- package/dist/chunk-3EHZJFIA.mjs.map +0 -1
- package/dist/chunk-54WAXZP7.mjs.map +0 -1
- package/dist/chunk-6O5G3WYP.mjs.map +0 -1
- package/dist/chunk-6OYWQ3NO.mjs.map +0 -1
- package/dist/chunk-A3IWA366.mjs.map +0 -1
- package/dist/chunk-AYVZF37W.mjs.map +0 -1
- package/dist/chunk-C3ZYUDXE.mjs.map +0 -1
- package/dist/chunk-CQTRL3BW.mjs.map +0 -1
- package/dist/chunk-DZL5KQOJ.mjs.map +0 -1
- package/dist/chunk-EE6KEX6V.mjs.map +0 -1
- package/dist/chunk-FYAC4RRZ.mjs.map +0 -1
- package/dist/chunk-MSG3WFBO.mjs.map +0 -1
- package/dist/chunk-MVRWZTQ5.mjs.map +0 -1
- package/dist/chunk-NETTMC2D.mjs.map +0 -1
- package/dist/chunk-O3LMKYXK.mjs.map +0 -1
- package/dist/chunk-OEM3VCHN.mjs.map +0 -1
- package/dist/chunk-OJ2MLZZ7.mjs.map +0 -1
- package/dist/chunk-OPPMMNGP.mjs.map +0 -1
- package/dist/chunk-VEFEKDMH.mjs.map +0 -1
- package/dist/chunk-VKBRU4Z4.mjs.map +0 -1
- package/dist/chunk-VUTCH2CU.mjs.map +0 -1
- package/dist/chunk-XYUYAHJX.mjs.map +0 -1
package/dist/area-chart.js
CHANGED
@@ -32,18 +32,18 @@ var import_recharts = require("recharts");
|
|
32
32
|
// src/area-chart-gradient.tsx
|
33
33
|
var import_jsx_runtime = require("react/jsx-runtime");
|
34
34
|
var AreaGradient = ({
|
35
|
-
color,
|
36
35
|
id,
|
37
|
-
|
38
|
-
fillOpacity
|
36
|
+
color,
|
37
|
+
fillOpacity,
|
38
|
+
withGradient
|
39
39
|
}) => {
|
40
40
|
if (withGradient) {
|
41
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("linearGradient", { id, x1: "0",
|
41
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("linearGradient", { id, x1: "0", x2: "0", y1: "0", y2: "1", children: [
|
42
42
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: "0%", stopColor: color, stopOpacity: fillOpacity }),
|
43
43
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: "100%", stopColor: color, stopOpacity: 0.01 })
|
44
44
|
] });
|
45
45
|
} else {
|
46
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("linearGradient", { id, x1: "0",
|
46
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("linearGradient", { id, x1: "0", x2: "0", y1: "0", y2: "1", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { stopColor: color, stopOpacity: fillOpacity }) });
|
47
47
|
}
|
48
48
|
};
|
49
49
|
AreaGradient.displayName = "AreaGradient";
|
@@ -52,9 +52,9 @@ AreaGradient.__ui__ = "AreaGradient";
|
|
52
52
|
// src/area-chart-split.tsx
|
53
53
|
var import_core = require("@yamada-ui/core");
|
54
54
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
55
|
-
var AreaSplit = ({
|
55
|
+
var AreaSplit = ({ id, fillOpacity, offset }) => {
|
56
56
|
const { theme } = (0, import_core.useTheme)();
|
57
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("linearGradient", { id, x1: "0",
|
57
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("linearGradient", { id, x1: "0", x2: "0", y1: "0", y2: "1", children: [
|
58
58
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
59
59
|
"stop",
|
60
60
|
{
|
@@ -360,13 +360,13 @@ var useChart = ({ containerProps = {} }) => {
|
|
360
360
|
getContainerProps
|
361
361
|
};
|
362
362
|
};
|
363
|
-
var useLegend = (
|
363
|
+
var useLegend = () => {
|
364
364
|
const { styles } = useChartContext();
|
365
365
|
return {
|
366
366
|
styles
|
367
367
|
};
|
368
368
|
};
|
369
|
-
var useTooltip = (
|
369
|
+
var useTooltip = () => {
|
370
370
|
const { styles } = useChartContext();
|
371
371
|
return {
|
372
372
|
styles
|
@@ -378,7 +378,7 @@ var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
378
378
|
var ChartLegend = (0, import_core4.forwardRef)(
|
379
379
|
({ className, payload = [], onHighlight, ...rest }, ref) => {
|
380
380
|
const { styles } = useLegend();
|
381
|
-
const items = payload.map(({ dataKey, value: valueProp
|
381
|
+
const items = payload.map(({ color, dataKey, value: valueProp }, index) => {
|
382
382
|
const value = dataKey != null ? dataKey : valueProp;
|
383
383
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
384
384
|
import_core4.ui.div,
|
@@ -423,22 +423,22 @@ var import_utils4 = require("@yamada-ui/utils");
|
|
423
423
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
424
424
|
var ChartTooltip = (0, import_core5.forwardRef)(
|
425
425
|
({
|
426
|
-
label,
|
427
|
-
dataKey = "value",
|
428
426
|
className,
|
429
|
-
|
430
|
-
|
427
|
+
dataKey = "value",
|
428
|
+
isRadialChart,
|
429
|
+
label,
|
431
430
|
labelFormatter,
|
431
|
+
payload = [],
|
432
432
|
unit,
|
433
|
-
|
433
|
+
valueFormatter,
|
434
434
|
...rest
|
435
435
|
}, ref) => {
|
436
436
|
var _a;
|
437
437
|
const { styles } = useTooltip();
|
438
438
|
const items = payload.map(
|
439
439
|
({
|
440
|
-
color: colorProp,
|
441
440
|
name: nameProp,
|
441
|
+
color: colorProp,
|
442
442
|
[dataKey]: valueProp,
|
443
443
|
payload: payload2
|
444
444
|
} = {}, index) => {
|
@@ -516,24 +516,24 @@ var import_core6 = require("@yamada-ui/core");
|
|
516
516
|
var import_utils5 = require("@yamada-ui/utils");
|
517
517
|
var import_react2 = require("react");
|
518
518
|
var useAreaChart = ({
|
519
|
-
data,
|
520
|
-
series,
|
521
519
|
type,
|
522
|
-
layoutType = "horizontal",
|
523
|
-
withGradient: withGradientProp,
|
524
|
-
withDots = true,
|
525
|
-
withActiveDots = true,
|
526
|
-
curveType = "monotone",
|
527
|
-
strokeWidth = 2,
|
528
520
|
connectNulls = true,
|
521
|
+
curveType = "monotone",
|
522
|
+
data,
|
529
523
|
fillOpacity = 0.4,
|
524
|
+
layoutType = "horizontal",
|
525
|
+
series,
|
530
526
|
splitColors = ["#ee6a5d", "#5fce7d"],
|
531
527
|
splitOffset,
|
532
|
-
|
528
|
+
strokeWidth = 2,
|
529
|
+
styles,
|
533
530
|
syncId,
|
531
|
+
withActiveDots = true,
|
532
|
+
withDots = true,
|
533
|
+
withGradient: withGradientProp,
|
534
534
|
xAxisLabel,
|
535
535
|
yAxisLabel,
|
536
|
-
|
536
|
+
referenceLineProps,
|
537
537
|
...rest
|
538
538
|
}) => {
|
539
539
|
var _a;
|
@@ -545,10 +545,10 @@ var useAreaChart = ({
|
|
545
545
|
const withGradient = typeof withGradientProp === "boolean" ? withGradientProp : type === "default";
|
546
546
|
const shouldHighlight = highlightedArea !== null;
|
547
547
|
const {
|
548
|
-
dot = {},
|
549
548
|
activeDot = {},
|
550
|
-
dimDot,
|
551
549
|
dimArea,
|
550
|
+
dimDot,
|
551
|
+
dot = {},
|
552
552
|
...computedAreaProps
|
553
553
|
} = (_a = rest.areaProps) != null ? _a : {};
|
554
554
|
const areaColors = (0, import_react2.useMemo)(
|
@@ -563,7 +563,7 @@ var useAreaChart = ({
|
|
563
563
|
() => splitColors.map((color, index) => ({
|
564
564
|
name: `area-split-${index}`,
|
565
565
|
token: "colors",
|
566
|
-
value: color
|
566
|
+
value: color || "transparent"
|
567
567
|
})),
|
568
568
|
[splitColors]
|
569
569
|
);
|
@@ -636,24 +636,27 @@ var useAreaChart = ({
|
|
636
636
|
);
|
637
637
|
}, [dimDot, theme]);
|
638
638
|
const defaultSplitOffset = (0, import_react2.useMemo)(() => {
|
639
|
+
var _a2;
|
639
640
|
if (series.length === 1) {
|
640
|
-
const dataKey = series[0].dataKey;
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
641
|
+
const dataKey = (_a2 = series[0]) == null ? void 0 : _a2.dataKey;
|
642
|
+
if (dataKey) {
|
643
|
+
const dataMax = Math.max(...data.map((item) => item[dataKey]));
|
644
|
+
const dataMin = Math.min(...data.map((item) => item[dataKey]));
|
645
|
+
if (dataMax <= 0) return 0;
|
646
|
+
if (dataMin >= 0) return 1;
|
647
|
+
return dataMax / (dataMax - dataMin);
|
648
|
+
}
|
646
649
|
}
|
647
650
|
return 0.5;
|
648
651
|
}, [data, series]);
|
649
652
|
const areaPropsList = (0, import_react2.useMemo)(
|
650
653
|
() => series.map((props, index) => {
|
651
654
|
const {
|
652
|
-
dataKey,
|
653
|
-
dot: dot2 = {},
|
654
655
|
activeDot: activeDot2 = {},
|
655
|
-
|
656
|
+
dataKey,
|
656
657
|
dimArea: dimArea2 = {},
|
658
|
+
dimDot: dimDot2 = {},
|
659
|
+
dot: dot2 = {},
|
657
660
|
strokeDasharray,
|
658
661
|
...computedProps
|
659
662
|
} = props;
|
@@ -680,8 +683,8 @@ var useAreaChart = ({
|
|
680
683
|
)(theme);
|
681
684
|
resolvedActiveDot = {
|
682
685
|
className: (0, import_utils5.cx)("ui-area-chart__active-dot", className),
|
683
|
-
stroke: color,
|
684
686
|
r: 4,
|
687
|
+
stroke: color,
|
685
688
|
...rest3
|
686
689
|
};
|
687
690
|
} else {
|
@@ -712,11 +715,11 @@ var useAreaChart = ({
|
|
712
715
|
return {
|
713
716
|
...rest2,
|
714
717
|
id,
|
718
|
+
activeDot: resolvedActiveDot,
|
715
719
|
color,
|
716
|
-
strokeDasharray,
|
717
720
|
dataKey,
|
718
|
-
|
719
|
-
|
721
|
+
dot: resolvedDot,
|
722
|
+
strokeDasharray
|
720
723
|
};
|
721
724
|
}),
|
722
725
|
[
|
@@ -744,14 +747,14 @@ var useAreaChart = ({
|
|
744
747
|
ref,
|
745
748
|
className: (0, import_utils5.cx)(className, areaChartClassName),
|
746
749
|
data,
|
747
|
-
stackOffset: type === "percent" ? "expand" : void 0,
|
748
750
|
layout: layoutType,
|
749
|
-
syncId,
|
750
751
|
margin: {
|
751
752
|
bottom: xAxisLabel ? 30 : void 0,
|
752
753
|
left: yAxisLabel ? 10 : void 0,
|
753
754
|
right: yAxisLabel ? 5 : void 0
|
754
755
|
},
|
756
|
+
stackOffset: type === "percent" ? "expand" : void 0,
|
757
|
+
syncId,
|
755
758
|
...props,
|
756
759
|
...chartProps
|
757
760
|
}),
|
@@ -769,40 +772,41 @@ var useAreaChart = ({
|
|
769
772
|
const getAreaSplitProps = (0, import_react2.useCallback)(
|
770
773
|
(props = {}) => ({
|
771
774
|
id: splitId,
|
772
|
-
offset: splitOffset != null ? splitOffset : defaultSplitOffset,
|
773
775
|
fillOpacity: fillOpacityVar,
|
776
|
+
offset: splitOffset != null ? splitOffset : defaultSplitOffset,
|
774
777
|
...props
|
775
778
|
}),
|
776
779
|
[defaultSplitOffset, splitId, splitOffset, fillOpacityVar]
|
777
780
|
);
|
778
781
|
const getAreaProps = (0, import_react2.useCallback)(
|
779
|
-
({
|
782
|
+
({ className: classNameProp, index, ...props }, ref = null) => {
|
783
|
+
var _a2;
|
780
784
|
const {
|
781
785
|
id,
|
782
|
-
color,
|
783
786
|
className,
|
784
|
-
dataKey,
|
785
|
-
strokeDasharray,
|
786
787
|
activeDot: activeDot2,
|
788
|
+
color,
|
789
|
+
dataKey = "",
|
787
790
|
dot: dot2,
|
791
|
+
strokeDasharray,
|
788
792
|
...rest2
|
789
|
-
} = areaPropsList[index];
|
793
|
+
} = (_a2 = areaPropsList[index]) != null ? _a2 : {};
|
790
794
|
return {
|
795
|
+
id,
|
791
796
|
ref,
|
797
|
+
type: curveType,
|
798
|
+
name: dataKey,
|
792
799
|
className: (0, import_utils5.cx)(classNameProp, className),
|
793
|
-
id,
|
794
800
|
activeDot: activeDot2,
|
795
|
-
|
796
|
-
name: dataKey,
|
797
|
-
type: curveType,
|
801
|
+
connectNulls,
|
798
802
|
dataKey,
|
803
|
+
dot: dot2,
|
799
804
|
fill: type === "split" ? `url(#${splitId})` : `url(#${id})`,
|
800
|
-
strokeWidth,
|
801
|
-
stroke: color,
|
802
805
|
isAnimationActive: false,
|
803
|
-
connectNulls,
|
804
806
|
stackId: stacked ? "stack" : void 0,
|
807
|
+
stroke: color,
|
805
808
|
strokeDasharray,
|
809
|
+
strokeWidth,
|
806
810
|
...props,
|
807
811
|
...rest2
|
808
812
|
};
|
@@ -819,19 +823,19 @@ var useAreaChart = ({
|
|
819
823
|
);
|
820
824
|
const getAreaGradientProps = (0, import_react2.useCallback)(
|
821
825
|
(props = {}) => ({
|
822
|
-
withGradient,
|
823
826
|
fillOpacity: fillOpacityVar,
|
827
|
+
withGradient,
|
824
828
|
...props
|
825
829
|
}),
|
826
830
|
[withGradient, fillOpacityVar]
|
827
831
|
);
|
828
832
|
return {
|
833
|
+
areaVars,
|
834
|
+
setHighlightedArea,
|
829
835
|
getAreaChartProps,
|
830
|
-
getAreaSplitProps,
|
831
|
-
getAreaProps,
|
832
836
|
getAreaGradientProps,
|
833
|
-
|
834
|
-
|
837
|
+
getAreaProps,
|
838
|
+
getAreaSplitProps
|
835
839
|
};
|
836
840
|
};
|
837
841
|
|
@@ -840,19 +844,19 @@ var import_core7 = require("@yamada-ui/core");
|
|
840
844
|
var import_utils6 = require("@yamada-ui/utils");
|
841
845
|
var import_react3 = require("react");
|
842
846
|
var useChartAxis = ({
|
843
|
-
dataKey,
|
844
847
|
type,
|
848
|
+
dataKey,
|
849
|
+
gridAxis = "x",
|
845
850
|
layoutType = "horizontal",
|
851
|
+
styles,
|
846
852
|
tickLine = "y",
|
847
|
-
|
853
|
+
unit,
|
848
854
|
withXAxis = true,
|
849
855
|
withYAxis = true,
|
850
856
|
xAxisLabel: xAxisLabelProp,
|
857
|
+
xAxisTickFormatter = type === "percent" && layoutType === "vertical" ? valueToPercent : void 0,
|
851
858
|
yAxisLabel: yAxisLabelProp,
|
852
|
-
unit,
|
853
859
|
yAxisTickFormatter = type === "percent" && layoutType === "horizontal" ? valueToPercent : void 0,
|
854
|
-
xAxisTickFormatter = type === "percent" && layoutType === "vertical" ? valueToPercent : void 0,
|
855
|
-
styles,
|
856
860
|
...rest
|
857
861
|
}) => {
|
858
862
|
var _a, _b, _c, _d;
|
@@ -862,7 +866,7 @@ var useChartAxis = ({
|
|
862
866
|
[dataKey, layoutType]
|
863
867
|
);
|
864
868
|
const yAxisKey = (0, import_react3.useMemo)(
|
865
|
-
() => layoutType === "vertical" ? {
|
869
|
+
() => layoutType === "vertical" ? { type: "category", dataKey } : { type: "number" },
|
866
870
|
[dataKey, layoutType]
|
867
871
|
);
|
868
872
|
const withXTickLine = gridAxis !== "none" && (tickLine === "x" || tickLine === "xy");
|
@@ -893,15 +897,15 @@ var useChartAxis = ({
|
|
893
897
|
className: (0, import_utils6.cx)(className, xAxisClassName),
|
894
898
|
hide: !withXAxis,
|
895
899
|
...xAxisKey,
|
896
|
-
tick: {
|
897
|
-
transform: "translate(0, 10)",
|
898
|
-
fill: "currentColor"
|
899
|
-
},
|
900
|
-
stroke: "",
|
901
900
|
interval: "preserveStartEnd",
|
902
|
-
tickLine: xTickLine,
|
903
901
|
minTickGap: 5,
|
902
|
+
stroke: "",
|
903
|
+
tick: {
|
904
|
+
fill: "currentColor",
|
905
|
+
transform: "translate(0, 10)"
|
906
|
+
},
|
904
907
|
tickFormatter: xAxisTickFormatter,
|
908
|
+
tickLine: xTickLine,
|
905
909
|
...props,
|
906
910
|
...xAxisProps
|
907
911
|
}),
|
@@ -917,17 +921,17 @@ var useChartAxis = ({
|
|
917
921
|
const getYAxisProps = (0, import_react3.useCallback)(
|
918
922
|
({ className, ...props } = {}) => ({
|
919
923
|
className: (0, import_utils6.cx)(className, yAxisClassName),
|
920
|
-
hide: !withYAxis,
|
921
924
|
axisLine: false,
|
925
|
+
hide: !withYAxis,
|
922
926
|
...yAxisKey,
|
923
|
-
|
927
|
+
allowDecimals: true,
|
924
928
|
tick: {
|
925
|
-
|
926
|
-
|
929
|
+
fill: "currentColor",
|
930
|
+
transform: "translate(-10, 0)"
|
927
931
|
},
|
928
|
-
allowDecimals: true,
|
929
|
-
unit,
|
930
932
|
tickFormatter: yAxisTickFormatter,
|
933
|
+
tickLine: yTickLine,
|
934
|
+
unit,
|
931
935
|
...props,
|
932
936
|
...yAxisProps
|
933
937
|
}),
|
@@ -944,9 +948,9 @@ var useChartAxis = ({
|
|
944
948
|
const getXAxisLabelProps = (0, import_react3.useCallback)(
|
945
949
|
({ className, ...props } = {}) => ({
|
946
950
|
className: (0, import_utils6.cx)(className, xAxisLabelClassName),
|
947
|
-
value: xAxisLabel,
|
948
|
-
position: "insideBottom",
|
949
951
|
offset: -20,
|
952
|
+
position: "insideBottom",
|
953
|
+
value: xAxisLabel,
|
950
954
|
...props,
|
951
955
|
...xAxisLabelProps
|
952
956
|
}),
|
@@ -955,21 +959,21 @@ var useChartAxis = ({
|
|
955
959
|
const getYAxisLabelProps = (0, import_react3.useCallback)(
|
956
960
|
({ className, ...props } = {}) => ({
|
957
961
|
className: (0, import_utils6.cx)(className, yAxisLabelClassName),
|
958
|
-
value: yAxisLabel,
|
959
|
-
position: "insideLeft",
|
960
962
|
angle: -90,
|
961
|
-
textAnchor: "middle",
|
962
963
|
offset: -5,
|
964
|
+
position: "insideLeft",
|
965
|
+
textAnchor: "middle",
|
966
|
+
value: yAxisLabel,
|
963
967
|
...props,
|
964
968
|
...yAxisLabelProps
|
965
969
|
}),
|
966
970
|
[yAxisLabel, yAxisLabelClassName, yAxisLabelProps]
|
967
971
|
);
|
968
972
|
return {
|
969
|
-
getXAxisProps,
|
970
|
-
getYAxisProps,
|
971
973
|
getXAxisLabelProps,
|
972
|
-
|
974
|
+
getXAxisProps,
|
975
|
+
getYAxisLabelProps,
|
976
|
+
getYAxisProps
|
973
977
|
};
|
974
978
|
};
|
975
979
|
var valueToPercent = (value) => {
|
@@ -981,10 +985,10 @@ var import_core8 = require("@yamada-ui/core");
|
|
981
985
|
var import_utils7 = require("@yamada-ui/utils");
|
982
986
|
var import_react4 = require("react");
|
983
987
|
var useChartGrid = ({
|
984
|
-
gridProps = {},
|
985
988
|
gridAxis = "x",
|
986
989
|
strokeDasharray = "5 5",
|
987
|
-
styles
|
990
|
+
styles,
|
991
|
+
gridProps = {}
|
988
992
|
}) => {
|
989
993
|
const { theme } = (0, import_core8.useTheme)();
|
990
994
|
const [reChartsProps, propClassName] = getComponentProps(
|
@@ -995,9 +999,9 @@ var useChartGrid = ({
|
|
995
999
|
({ className, ...props } = {}, ref = null) => ({
|
996
1000
|
ref,
|
997
1001
|
className: (0, import_utils7.cx)("ui-chart__grid", className, propClassName),
|
1002
|
+
horizontal: gridAxis === "x" || gridAxis === "xy",
|
998
1003
|
strokeDasharray,
|
999
1004
|
vertical: gridAxis === "y" || gridAxis === "xy",
|
1000
|
-
horizontal: gridAxis === "x" || gridAxis === "xy",
|
1001
1005
|
...props,
|
1002
1006
|
...reChartsProps
|
1003
1007
|
}),
|
@@ -1027,7 +1031,7 @@ var useChartLegend = ({
|
|
1027
1031
|
},
|
1028
1032
|
[rest]
|
1029
1033
|
);
|
1030
|
-
return {
|
1034
|
+
return { getLegendProps, legendProps };
|
1031
1035
|
};
|
1032
1036
|
|
1033
1037
|
// src/use-chart-reference-line.ts
|
@@ -1035,8 +1039,8 @@ var import_core9 = require("@yamada-ui/core");
|
|
1035
1039
|
var import_utils9 = require("@yamada-ui/utils");
|
1036
1040
|
var import_react6 = require("react");
|
1037
1041
|
var useChartReferenceLine = ({
|
1038
|
-
|
1039
|
-
|
1042
|
+
styles,
|
1043
|
+
referenceLineProps = []
|
1040
1044
|
}) => {
|
1041
1045
|
const { theme } = (0, import_core9.useTheme)();
|
1042
1046
|
const styleClassName = (0, import_core9.getCSS)(styles.referenceLine)(theme);
|
@@ -1048,23 +1052,24 @@ var useChartReferenceLine = ({
|
|
1048
1052
|
)(theme);
|
1049
1053
|
const color = (0, import_core9.getVar)(`reference-line-${index}`)(theme);
|
1050
1054
|
const label = {
|
1051
|
-
value: labelProp,
|
1052
1055
|
fill: color,
|
1053
1056
|
position: "insideBottomLeft",
|
1057
|
+
value: labelProp,
|
1054
1058
|
...(0, import_utils9.isObject)(labelProp) ? labelProp : {}
|
1055
1059
|
};
|
1056
|
-
return {
|
1060
|
+
return { color, label, propClassName, ...rest };
|
1057
1061
|
}),
|
1058
1062
|
[referenceLineProps, styleClassName, theme]
|
1059
1063
|
);
|
1060
1064
|
const getReferenceLineProps = (0, import_react6.useCallback)(
|
1061
|
-
({
|
1062
|
-
|
1065
|
+
({ className, index, ...props }, ref = null) => {
|
1066
|
+
var _a;
|
1067
|
+
const { color, label, propClassName, ...rest } = (_a = propList[index]) != null ? _a : {};
|
1063
1068
|
return {
|
1064
1069
|
ref,
|
1065
1070
|
className: (0, import_utils9.cx)(className, propClassName),
|
1066
|
-
stroke: color,
|
1067
1071
|
label,
|
1072
|
+
stroke: color,
|
1068
1073
|
...props,
|
1069
1074
|
...rest
|
1070
1075
|
};
|
@@ -1079,9 +1084,9 @@ var import_core10 = require("@yamada-ui/core");
|
|
1079
1084
|
var import_utils10 = require("@yamada-ui/utils");
|
1080
1085
|
var import_react7 = require("react");
|
1081
1086
|
var useChartTooltip = ({
|
1082
|
-
|
1087
|
+
styles,
|
1083
1088
|
tooltipAnimationDuration = 0,
|
1084
|
-
|
1089
|
+
tooltipProps: _tooltipProps = {}
|
1085
1090
|
}) => {
|
1086
1091
|
const { theme } = (0, import_core10.useTheme)();
|
1087
1092
|
const { cursor, ...rest } = _tooltipProps;
|
@@ -1097,16 +1102,16 @@ var useChartTooltip = ({
|
|
1097
1102
|
(props, ref = null) => ({
|
1098
1103
|
ref,
|
1099
1104
|
animationDuration: tooltipAnimationDuration,
|
1100
|
-
isAnimationActive: (tooltipAnimationDuration || 0) > 0,
|
1101
1105
|
cursor: {
|
1102
1106
|
className: (0, import_utils10.cx)("ui-chart__cursor", cursorClassName)
|
1103
1107
|
},
|
1108
|
+
isAnimationActive: (tooltipAnimationDuration || 0) > 0,
|
1104
1109
|
...props,
|
1105
1110
|
...tooltipProps
|
1106
1111
|
}),
|
1107
1112
|
[cursorClassName, tooltipAnimationDuration, tooltipProps]
|
1108
1113
|
);
|
1109
|
-
return { tooltipProps: tooltipUIProps
|
1114
|
+
return { getTooltipProps, tooltipProps: tooltipUIProps };
|
1110
1115
|
};
|
1111
1116
|
|
1112
1117
|
// src/area-chart.tsx
|
@@ -1114,127 +1119,127 @@ var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
1114
1119
|
var AreaChart = (0, import_core11.forwardRef)((props, ref) => {
|
1115
1120
|
const [styles, mergedProps] = (0, import_core11.useComponentMultiStyle)("AreaChart", props);
|
1116
1121
|
const {
|
1122
|
+
type = "default",
|
1117
1123
|
className,
|
1118
|
-
|
1124
|
+
connectNulls,
|
1125
|
+
curveType,
|
1126
|
+
data,
|
1119
1127
|
dataKey,
|
1128
|
+
fillOpacity,
|
1129
|
+
gridAxis,
|
1130
|
+
labelFormatter,
|
1120
1131
|
layoutType,
|
1132
|
+
series,
|
1133
|
+
splitColors,
|
1134
|
+
splitOffset,
|
1135
|
+
strokeDasharray,
|
1136
|
+
strokeWidth,
|
1137
|
+
syncId,
|
1121
1138
|
tickLine,
|
1122
|
-
|
1139
|
+
tooltipAnimationDuration,
|
1140
|
+
unit,
|
1141
|
+
valueFormatter,
|
1142
|
+
withActiveDots,
|
1143
|
+
withDots,
|
1144
|
+
withGradient,
|
1145
|
+
withLegend = false,
|
1146
|
+
withTooltip = true,
|
1123
1147
|
withXAxis,
|
1124
1148
|
withYAxis,
|
1125
|
-
xAxisProps,
|
1126
|
-
yAxisProps,
|
1127
1149
|
xAxisLabel,
|
1150
|
+
xAxisTickFormatter,
|
1128
1151
|
yAxisLabel,
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
withTooltip = true,
|
1133
|
-
withLegend = false,
|
1134
|
-
referenceLineProps = [],
|
1152
|
+
yAxisTickFormatter,
|
1153
|
+
areaProps,
|
1154
|
+
chartProps,
|
1135
1155
|
containerProps,
|
1136
|
-
unit,
|
1137
1156
|
gridProps,
|
1138
|
-
strokeDasharray,
|
1139
|
-
yAxisTickFormatter,
|
1140
|
-
xAxisTickFormatter,
|
1141
|
-
valueFormatter,
|
1142
|
-
labelFormatter,
|
1143
|
-
tooltipProps,
|
1144
|
-
tooltipAnimationDuration,
|
1145
1157
|
legendProps,
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1152
|
-
curveType,
|
1153
|
-
strokeWidth,
|
1154
|
-
connectNulls,
|
1155
|
-
fillOpacity,
|
1156
|
-
splitColors,
|
1157
|
-
splitOffset,
|
1158
|
-
syncId,
|
1158
|
+
referenceLineProps = [],
|
1159
|
+
tooltipProps,
|
1160
|
+
xAxisLabelProps,
|
1161
|
+
xAxisProps,
|
1162
|
+
yAxisLabelProps,
|
1163
|
+
yAxisProps,
|
1159
1164
|
...rest
|
1160
1165
|
} = (0, import_core11.omitThemeProps)(mergedProps);
|
1161
1166
|
const {
|
1167
|
+
areaVars,
|
1168
|
+
setHighlightedArea,
|
1162
1169
|
getAreaChartProps,
|
1163
|
-
getAreaSplitProps,
|
1164
|
-
getAreaProps,
|
1165
1170
|
getAreaGradientProps,
|
1166
|
-
|
1167
|
-
|
1171
|
+
getAreaProps,
|
1172
|
+
getAreaSplitProps
|
1168
1173
|
} = useAreaChart({
|
1169
|
-
layoutType,
|
1170
1174
|
type,
|
1171
|
-
series,
|
1172
|
-
referenceLineProps,
|
1173
|
-
data,
|
1174
|
-
chartProps,
|
1175
|
-
areaProps,
|
1176
|
-
withGradient,
|
1177
|
-
withDots,
|
1178
|
-
withActiveDots,
|
1179
|
-
curveType,
|
1180
|
-
strokeWidth,
|
1181
1175
|
connectNulls,
|
1176
|
+
curveType,
|
1177
|
+
data,
|
1182
1178
|
fillOpacity,
|
1179
|
+
layoutType,
|
1180
|
+
series,
|
1183
1181
|
splitColors,
|
1184
1182
|
splitOffset,
|
1183
|
+
strokeWidth,
|
1184
|
+
styles,
|
1185
1185
|
syncId,
|
1186
|
+
withActiveDots,
|
1187
|
+
withDots,
|
1188
|
+
withGradient,
|
1186
1189
|
xAxisLabel,
|
1187
1190
|
yAxisLabel,
|
1188
|
-
|
1191
|
+
areaProps,
|
1192
|
+
chartProps,
|
1193
|
+
referenceLineProps
|
1189
1194
|
});
|
1190
1195
|
const { getContainerProps } = useChart({ containerProps });
|
1191
1196
|
const {
|
1192
|
-
getXAxisProps,
|
1193
|
-
getYAxisProps,
|
1194
1197
|
getXAxisLabelProps,
|
1195
|
-
|
1198
|
+
getXAxisProps,
|
1199
|
+
getYAxisLabelProps,
|
1200
|
+
getYAxisProps
|
1196
1201
|
} = useChartAxis({
|
1197
|
-
dataKey,
|
1198
1202
|
type,
|
1203
|
+
dataKey,
|
1204
|
+
gridAxis,
|
1199
1205
|
layoutType,
|
1206
|
+
styles,
|
1200
1207
|
tickLine,
|
1201
|
-
|
1208
|
+
unit,
|
1202
1209
|
withXAxis,
|
1203
1210
|
withYAxis,
|
1204
|
-
xAxisProps,
|
1205
|
-
yAxisProps,
|
1206
1211
|
xAxisLabel,
|
1212
|
+
xAxisTickFormatter,
|
1207
1213
|
yAxisLabel,
|
1214
|
+
yAxisTickFormatter,
|
1208
1215
|
xAxisLabelProps,
|
1216
|
+
xAxisProps,
|
1209
1217
|
yAxisLabelProps,
|
1210
|
-
|
1211
|
-
yAxisTickFormatter,
|
1212
|
-
xAxisTickFormatter,
|
1213
|
-
styles
|
1218
|
+
yAxisProps
|
1214
1219
|
});
|
1215
1220
|
const { getReferenceLineProps } = useChartReferenceLine({
|
1216
|
-
|
1217
|
-
|
1221
|
+
styles,
|
1222
|
+
referenceLineProps
|
1218
1223
|
});
|
1219
1224
|
const { getGridProps } = useChartGrid({
|
1220
|
-
gridProps,
|
1221
1225
|
gridAxis,
|
1222
1226
|
strokeDasharray,
|
1223
|
-
styles
|
1227
|
+
styles,
|
1228
|
+
gridProps
|
1224
1229
|
});
|
1225
|
-
const { tooltipProps: computedTooltipProps
|
1226
|
-
|
1230
|
+
const { getTooltipProps, tooltipProps: computedTooltipProps } = useChartTooltip({
|
1231
|
+
styles,
|
1227
1232
|
tooltipAnimationDuration,
|
1228
|
-
|
1233
|
+
tooltipProps
|
1229
1234
|
});
|
1230
|
-
const { legendProps: computedLegendProps
|
1235
|
+
const { getLegendProps, legendProps: computedLegendProps } = useChartLegend({
|
1231
1236
|
legendProps
|
1232
1237
|
});
|
1233
1238
|
const areas = (0, import_react8.useMemo)(
|
1234
1239
|
() => series.map(({ dataKey: dataKey2 }, index) => {
|
1235
1240
|
const { id, stroke, ...rest2 } = getAreaProps({
|
1236
|
-
|
1237
|
-
|
1241
|
+
className: "ui-area-chart__area",
|
1242
|
+
index
|
1238
1243
|
});
|
1239
1244
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_react8.Fragment, { children: [
|
1240
1245
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(AreaGradient, { ...getAreaGradientProps({ id, color: stroke }) }) }),
|
@@ -1248,8 +1253,8 @@ var AreaChart = (0, import_core11.forwardRef)((props, ref) => {
|
|
1248
1253
|
import_recharts.ReferenceLine,
|
1249
1254
|
{
|
1250
1255
|
...getReferenceLineProps({
|
1251
|
-
|
1252
|
-
|
1256
|
+
className: "ui-area-chart__reference-line",
|
1257
|
+
index
|
1253
1258
|
})
|
1254
1259
|
},
|
1255
1260
|
`referenceLine-${index}`
|
@@ -1317,10 +1322,10 @@ var AreaChart = (0, import_core11.forwardRef)((props, ref) => {
|
|
1317
1322
|
{
|
1318
1323
|
className: "ui-area-chart__tooltip",
|
1319
1324
|
label,
|
1320
|
-
payload,
|
1321
|
-
valueFormatter,
|
1322
1325
|
labelFormatter,
|
1326
|
+
payload,
|
1323
1327
|
unit,
|
1328
|
+
valueFormatter,
|
1324
1329
|
...computedTooltipProps
|
1325
1330
|
}
|
1326
1331
|
),
|