@yamada-ui/charts 1.1.2 → 1.1.4-dev-20240508155232
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.
- package/dist/area-chart-gradient.d.mts +11 -0
- package/dist/area-chart-gradient.d.ts +11 -0
- package/dist/area-chart-gradient.js +47 -0
- package/dist/area-chart-gradient.js.map +1 -0
- package/dist/area-chart-gradient.mjs +8 -0
- package/dist/area-chart-gradient.mjs.map +1 -0
- package/dist/area-chart-split.d.mts +10 -0
- package/dist/area-chart-split.d.ts +10 -0
- package/dist/area-chart-split.js +52 -0
- package/dist/area-chart-split.js.map +1 -0
- package/dist/area-chart-split.mjs +8 -0
- package/dist/area-chart-split.mjs.map +1 -0
- package/dist/area-chart.d.mts +41 -0
- package/dist/area-chart.d.ts +41 -0
- package/dist/area-chart.js +1223 -0
- package/dist/area-chart.js.map +1 -0
- package/dist/area-chart.mjs +21 -0
- package/dist/area-chart.mjs.map +1 -0
- package/dist/bar-chart.d.mts +38 -0
- package/dist/bar-chart.d.ts +38 -0
- package/dist/bar-chart.js +1027 -0
- package/dist/bar-chart.js.map +1 -0
- package/dist/bar-chart.mjs +19 -0
- package/dist/bar-chart.mjs.map +1 -0
- package/dist/chart-legend.d.mts +12 -0
- package/dist/chart-legend.d.ts +12 -0
- package/dist/chart-legend.js +90 -0
- package/dist/chart-legend.js.map +1 -0
- package/dist/chart-legend.mjs +11 -0
- package/dist/chart-legend.mjs.map +1 -0
- package/dist/chart-tooltip.d.mts +12 -0
- package/dist/chart-tooltip.d.ts +12 -0
- package/dist/chart-tooltip.js +121 -0
- package/dist/chart-tooltip.js.map +1 -0
- package/dist/chart-tooltip.mjs +11 -0
- package/dist/chart-tooltip.mjs.map +1 -0
- package/dist/chart-utils.d.mts +9 -0
- package/dist/chart-utils.d.ts +9 -0
- package/dist/chart-utils.js +45 -0
- package/dist/chart-utils.js.map +1 -0
- package/dist/chart-utils.mjs +10 -0
- package/dist/chart-utils.mjs.map +1 -0
- package/dist/chart.types.d.mts +78 -0
- package/dist/chart.types.d.ts +78 -0
- package/dist/chart.types.js +20 -0
- package/dist/chart.types.js.map +1 -0
- package/dist/chart.types.mjs +2 -0
- package/dist/chart.types.mjs.map +1 -0
- package/dist/chunk-4WX5YS7M.mjs +179 -0
- package/dist/chunk-4WX5YS7M.mjs.map +1 -0
- package/dist/chunk-5TVYPA64.mjs +256 -0
- package/dist/chunk-5TVYPA64.mjs.map +1 -0
- package/dist/chunk-BPR7YL3O.mjs +179 -0
- package/dist/chunk-BPR7YL3O.mjs.map +1 -0
- package/dist/chunk-E2I2XAZ6.mjs +232 -0
- package/dist/chunk-E2I2XAZ6.mjs.map +1 -0
- package/dist/chunk-HDOYOHLA.mjs +326 -0
- package/dist/chunk-HDOYOHLA.mjs.map +1 -0
- package/dist/chunk-KNAADLWO.mjs +225 -0
- package/dist/chunk-KNAADLWO.mjs.map +1 -0
- package/dist/chunk-KT4YOMM4.mjs +344 -0
- package/dist/chunk-KT4YOMM4.mjs.map +1 -0
- package/dist/chunk-LBC2B6UX.mjs +84 -0
- package/dist/chunk-LBC2B6UX.mjs.map +1 -0
- package/dist/chunk-LGMALZCN.mjs +42 -0
- package/dist/chunk-LGMALZCN.mjs.map +1 -0
- package/dist/chunk-LHI57S6P.mjs +215 -0
- package/dist/chunk-LHI57S6P.mjs.map +1 -0
- package/dist/chunk-LM2DQK2P.mjs +33 -0
- package/dist/chunk-LM2DQK2P.mjs.map +1 -0
- package/dist/chunk-MSIOYYWR.mjs +24 -0
- package/dist/chunk-MSIOYYWR.mjs.map +1 -0
- package/dist/chunk-MWPICUEW.mjs +56 -0
- package/dist/chunk-MWPICUEW.mjs.map +1 -0
- package/dist/chunk-NEGDEVRX.mjs +53 -0
- package/dist/chunk-NEGDEVRX.mjs.map +1 -0
- package/dist/chunk-OSNFBRHL.mjs +474 -0
- package/dist/chunk-OSNFBRHL.mjs.map +1 -0
- package/dist/chunk-OW7SOTEF.mjs +206 -0
- package/dist/chunk-OW7SOTEF.mjs.map +1 -0
- package/dist/chunk-P7AFSM5W.mjs +114 -0
- package/dist/chunk-P7AFSM5W.mjs.map +1 -0
- package/dist/chunk-PNE3JG54.mjs +29 -0
- package/dist/chunk-PNE3JG54.mjs.map +1 -0
- package/dist/chunk-QL3DB7OJ.mjs +21 -0
- package/dist/chunk-QL3DB7OJ.mjs.map +1 -0
- package/dist/chunk-QZ5OXZ6Z.mjs +251 -0
- package/dist/chunk-QZ5OXZ6Z.mjs.map +1 -0
- package/dist/chunk-RN6PXJAD.mjs +47 -0
- package/dist/chunk-RN6PXJAD.mjs.map +1 -0
- package/dist/chunk-STBYRLC5.mjs +208 -0
- package/dist/chunk-STBYRLC5.mjs.map +1 -0
- package/dist/chunk-XIFDRM7J.mjs +56 -0
- package/dist/chunk-XIFDRM7J.mjs.map +1 -0
- package/dist/donut-chart.d.mts +31 -0
- package/dist/donut-chart.d.ts +31 -0
- package/dist/donut-chart.js +702 -0
- package/dist/donut-chart.js.map +1 -0
- package/dist/donut-chart.mjs +16 -0
- package/dist/donut-chart.mjs.map +1 -0
- package/dist/index.d.mts +26 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +3228 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +45 -0
- package/dist/index.mjs.map +1 -0
- package/dist/line-chart.d.mts +38 -0
- package/dist/line-chart.d.ts +38 -0
- package/dist/line-chart.js +1088 -0
- package/dist/line-chart.js.map +1 -0
- package/dist/line-chart.mjs +19 -0
- package/dist/line-chart.mjs.map +1 -0
- package/dist/pie-chart.d.mts +49 -0
- package/dist/pie-chart.d.ts +49 -0
- package/dist/pie-chart.js +702 -0
- package/dist/pie-chart.js.map +1 -0
- package/dist/pie-chart.mjs +16 -0
- package/dist/pie-chart.mjs.map +1 -0
- package/dist/radar-chart.d.mts +57 -0
- package/dist/radar-chart.d.ts +57 -0
- package/dist/radar-chart.js +918 -0
- package/dist/radar-chart.js.map +1 -0
- package/dist/radar-chart.mjs +16 -0
- package/dist/radar-chart.mjs.map +1 -0
- package/dist/rechart-properties.d.mts +26 -0
- package/dist/rechart-properties.d.ts +26 -0
- package/dist/rechart-properties.js +517 -0
- package/dist/rechart-properties.js.map +1 -0
- package/dist/rechart-properties.mjs +48 -0
- package/dist/rechart-properties.mjs.map +1 -0
- package/dist/use-area-chart.d.mts +123 -0
- package/dist/use-area-chart.d.ts +123 -0
- package/dist/use-area-chart.js +420 -0
- package/dist/use-area-chart.js.map +1 -0
- package/dist/use-area-chart.mjs +10 -0
- package/dist/use-area-chart.mjs.map +1 -0
- package/dist/use-bar-chart.d.mts +73 -0
- package/dist/use-bar-chart.d.ts +73 -0
- package/dist/use-bar-chart.js +290 -0
- package/dist/use-bar-chart.js.map +1 -0
- package/dist/use-bar-chart.mjs +10 -0
- package/dist/use-bar-chart.mjs.map +1 -0
- package/dist/use-chart-axis.d.mts +73 -0
- package/dist/use-chart-axis.d.ts +73 -0
- package/dist/use-chart-axis.js +227 -0
- package/dist/use-chart-axis.js.map +1 -0
- package/dist/use-chart-axis.mjs +10 -0
- package/dist/use-chart-axis.mjs.map +1 -0
- package/dist/use-chart-grid.d.mts +32 -0
- package/dist/use-chart-grid.d.ts +32 -0
- package/dist/use-chart-grid.js +92 -0
- package/dist/use-chart-grid.js.map +1 -0
- package/dist/use-chart-grid.mjs +10 -0
- package/dist/use-chart-grid.mjs.map +1 -0
- package/dist/use-chart-legend.d.mts +18 -0
- package/dist/use-chart-legend.d.ts +18 -0
- package/dist/use-chart-legend.js +81 -0
- package/dist/use-chart-legend.js.map +1 -0
- package/dist/use-chart-legend.mjs +9 -0
- package/dist/use-chart-legend.mjs.map +1 -0
- package/dist/use-chart-reference-line.d.mts +22 -0
- package/dist/use-chart-reference-line.d.ts +22 -0
- package/dist/use-chart-reference-line.js +105 -0
- package/dist/use-chart-reference-line.js.map +1 -0
- package/dist/use-chart-reference-line.mjs +10 -0
- package/dist/use-chart-reference-line.mjs.map +1 -0
- package/dist/use-chart-tooltip.d.mts +27 -0
- package/dist/use-chart-tooltip.d.ts +27 -0
- package/dist/use-chart-tooltip.js +100 -0
- package/dist/use-chart-tooltip.js.map +1 -0
- package/dist/use-chart-tooltip.mjs +10 -0
- package/dist/use-chart-tooltip.mjs.map +1 -0
- package/dist/use-chart.d.mts +33 -0
- package/dist/use-chart.d.ts +33 -0
- package/dist/use-chart.js +104 -0
- package/dist/use-chart.js.map +1 -0
- package/dist/use-chart.mjs +18 -0
- package/dist/use-chart.mjs.map +1 -0
- package/dist/use-line-chart.d.mts +97 -0
- package/dist/use-line-chart.d.ts +97 -0
- package/dist/use-line-chart.js +344 -0
- package/dist/use-line-chart.js.map +1 -0
- package/dist/use-line-chart.mjs +10 -0
- package/dist/use-line-chart.mjs.map +1 -0
- package/dist/use-pie-chart.d.mts +112 -0
- package/dist/use-pie-chart.d.ts +112 -0
- package/dist/use-pie-chart.js +282 -0
- package/dist/use-pie-chart.js.map +1 -0
- package/dist/use-pie-chart.mjs +10 -0
- package/dist/use-pie-chart.mjs.map +1 -0
- package/dist/use-radar-chart.d.mts +105 -0
- package/dist/use-radar-chart.d.ts +105 -0
- package/dist/use-radar-chart.js +473 -0
- package/dist/use-radar-chart.js.map +1 -0
- package/dist/use-radar-chart.mjs +10 -0
- package/dist/use-radar-chart.mjs.map +1 -0
- package/package.json +2 -5
@@ -0,0 +1,179 @@
|
|
1
|
+
"use client"
|
2
|
+
import {
|
3
|
+
usePieChart
|
4
|
+
} from "./chunk-LHI57S6P.mjs";
|
5
|
+
import {
|
6
|
+
useChartLegend
|
7
|
+
} from "./chunk-LM2DQK2P.mjs";
|
8
|
+
import {
|
9
|
+
useChartTooltip
|
10
|
+
} from "./chunk-RN6PXJAD.mjs";
|
11
|
+
import {
|
12
|
+
ChartLegend
|
13
|
+
} from "./chunk-NEGDEVRX.mjs";
|
14
|
+
import {
|
15
|
+
ChartTooltip
|
16
|
+
} from "./chunk-LBC2B6UX.mjs";
|
17
|
+
import {
|
18
|
+
ChartProvider,
|
19
|
+
useChart
|
20
|
+
} from "./chunk-XIFDRM7J.mjs";
|
21
|
+
|
22
|
+
// src/donut-chart.tsx
|
23
|
+
import {
|
24
|
+
forwardRef,
|
25
|
+
omitThemeProps,
|
26
|
+
ui,
|
27
|
+
useMultiComponentStyle
|
28
|
+
} from "@yamada-ui/core";
|
29
|
+
import { cx } from "@yamada-ui/utils";
|
30
|
+
import { useMemo } from "react";
|
31
|
+
import {
|
32
|
+
Cell,
|
33
|
+
Legend,
|
34
|
+
Pie,
|
35
|
+
PieChart as RechartsPieChart,
|
36
|
+
ResponsiveContainer,
|
37
|
+
Tooltip
|
38
|
+
} from "recharts";
|
39
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
40
|
+
var DonutChart = forwardRef((props, ref) => {
|
41
|
+
const [styles, mergedProps] = useMultiComponentStyle("DonutChart", props);
|
42
|
+
const {
|
43
|
+
className,
|
44
|
+
data,
|
45
|
+
pieProps,
|
46
|
+
chartProps,
|
47
|
+
cellProps,
|
48
|
+
containerProps,
|
49
|
+
withTooltip = true,
|
50
|
+
withLegend = false,
|
51
|
+
tooltipProps,
|
52
|
+
tooltipAnimationDuration,
|
53
|
+
tooltipDataSource = "all",
|
54
|
+
valueFormatter,
|
55
|
+
unit,
|
56
|
+
paddingAngle,
|
57
|
+
startAngle,
|
58
|
+
endAngle,
|
59
|
+
withLabels,
|
60
|
+
withLabelLines,
|
61
|
+
innerRadius = withLabels ? "60%" : "80%",
|
62
|
+
outerRadius,
|
63
|
+
strokeWidth,
|
64
|
+
legendProps,
|
65
|
+
...rest
|
66
|
+
} = omitThemeProps(mergedProps);
|
67
|
+
const {
|
68
|
+
pieVars,
|
69
|
+
getPieProps,
|
70
|
+
getPieChartProps,
|
71
|
+
getCellProps,
|
72
|
+
setHighlightedArea
|
73
|
+
} = usePieChart({
|
74
|
+
data,
|
75
|
+
pieProps,
|
76
|
+
chartProps,
|
77
|
+
cellProps,
|
78
|
+
innerRadius,
|
79
|
+
outerRadius,
|
80
|
+
paddingAngle,
|
81
|
+
startAngle,
|
82
|
+
endAngle,
|
83
|
+
strokeWidth,
|
84
|
+
withLabels,
|
85
|
+
withLabelLines,
|
86
|
+
styles
|
87
|
+
});
|
88
|
+
const { getContainerProps } = useChart({ containerProps });
|
89
|
+
const { tooltipProps: computedTooltipProps, getTooltipProps } = useChartTooltip({
|
90
|
+
tooltipProps,
|
91
|
+
tooltipAnimationDuration,
|
92
|
+
styles
|
93
|
+
});
|
94
|
+
const { legendProps: computedLegendProps, getLegendProps } = useChartLegend({
|
95
|
+
legendProps
|
96
|
+
});
|
97
|
+
const cells = useMemo(
|
98
|
+
() => data.map(({ name }, index) => /* @__PURE__ */ jsx(
|
99
|
+
Cell,
|
100
|
+
{
|
101
|
+
...getCellProps({ index, className: "ui-donut-chart__cell" })
|
102
|
+
},
|
103
|
+
`donut-cell-${name}`
|
104
|
+
)),
|
105
|
+
[data, getCellProps]
|
106
|
+
);
|
107
|
+
return /* @__PURE__ */ jsx(ChartProvider, { value: { styles }, children: /* @__PURE__ */ jsx(
|
108
|
+
ui.div,
|
109
|
+
{
|
110
|
+
ref,
|
111
|
+
className: cx("ui-donut-chart", className),
|
112
|
+
var: pieVars,
|
113
|
+
__css: { maxW: "full", ...styles.container },
|
114
|
+
...rest,
|
115
|
+
children: /* @__PURE__ */ jsx(
|
116
|
+
ResponsiveContainer,
|
117
|
+
{
|
118
|
+
...getContainerProps({ className: "ui-donut-chart__container" }),
|
119
|
+
children: /* @__PURE__ */ jsxs(
|
120
|
+
RechartsPieChart,
|
121
|
+
{
|
122
|
+
...getPieChartProps({ className: "ui-donut-chart__chart" }),
|
123
|
+
children: [
|
124
|
+
/* @__PURE__ */ jsx(
|
125
|
+
Pie,
|
126
|
+
{
|
127
|
+
...getPieProps({
|
128
|
+
className: "ui-donut-chart__donut",
|
129
|
+
labelClassName: "ui-donut-chart__label",
|
130
|
+
labelLineClassName: "ui-donut-chart__label-line"
|
131
|
+
}),
|
132
|
+
children: cells
|
133
|
+
}
|
134
|
+
),
|
135
|
+
withLegend ? /* @__PURE__ */ jsx(
|
136
|
+
Legend,
|
137
|
+
{
|
138
|
+
content: ({ payload }) => /* @__PURE__ */ jsx(
|
139
|
+
ChartLegend,
|
140
|
+
{
|
141
|
+
className: "ui-donut-chart__legend",
|
142
|
+
payload,
|
143
|
+
onHighlight: setHighlightedArea,
|
144
|
+
...computedLegendProps
|
145
|
+
}
|
146
|
+
),
|
147
|
+
...getLegendProps()
|
148
|
+
}
|
149
|
+
) : null,
|
150
|
+
withTooltip ? /* @__PURE__ */ jsx(
|
151
|
+
Tooltip,
|
152
|
+
{
|
153
|
+
content: ({ label, payload }) => /* @__PURE__ */ jsx(
|
154
|
+
ChartTooltip,
|
155
|
+
{
|
156
|
+
className: "ui-donut-chart__tooltip",
|
157
|
+
label,
|
158
|
+
payload: tooltipDataSource === "segment" ? payload : data,
|
159
|
+
valueFormatter,
|
160
|
+
unit,
|
161
|
+
...computedTooltipProps
|
162
|
+
}
|
163
|
+
),
|
164
|
+
...getTooltipProps()
|
165
|
+
}
|
166
|
+
) : null
|
167
|
+
]
|
168
|
+
}
|
169
|
+
)
|
170
|
+
}
|
171
|
+
)
|
172
|
+
}
|
173
|
+
) });
|
174
|
+
});
|
175
|
+
|
176
|
+
export {
|
177
|
+
DonutChart
|
178
|
+
};
|
179
|
+
//# sourceMappingURL=chunk-BPR7YL3O.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/donut-chart.tsx"],"sourcesContent":["import {\n forwardRef,\n omitThemeProps,\n ui,\n useMultiComponentStyle,\n} from \"@yamada-ui/core\"\nimport { cx } from \"@yamada-ui/utils\"\nimport { useMemo } from \"react\"\nimport {\n Cell,\n Legend,\n Pie,\n PieChart as RechartsPieChart,\n ResponsiveContainer,\n Tooltip,\n} from \"recharts\"\nimport { ChartLegend } from \"./chart-legend\"\nimport { ChartTooltip } from \"./chart-tooltip\"\nimport type { PieChartProps } from \"./pie-chart\"\nimport { ChartProvider, useChart } from \"./use-chart\"\nimport { useChartLegend } from \"./use-chart-legend\"\nimport { useChartTooltip } from \"./use-chart-tooltip\"\nimport { usePieChart } from \"./use-pie-chart\"\n\ntype DonutChartOptions = {\n /**\n * Controls innerRadius of the chart segments.\n * If it is a number, it is the width of the radius.\n * For example, `60` means the radius is `60px` and the diameter is `120px`.\n *\n * @default '60%'\n */\n innerRadius?: number | string\n}\n\nexport type DonutChartProps = PieChartProps & DonutChartOptions\n\n/**\n * `DonutChart` is a component for drawing donut charts to compare multiple sets of data.\n *\n * @see Docs https://yamada-ui.com/components/feedback/donut-chart\n */\nexport const DonutChart = forwardRef<DonutChartProps, \"div\">((props, ref) => {\n const [styles, mergedProps] = useMultiComponentStyle(\"DonutChart\", props)\n const {\n className,\n data,\n pieProps,\n chartProps,\n cellProps,\n containerProps,\n withTooltip = true,\n withLegend = false,\n tooltipProps,\n tooltipAnimationDuration,\n tooltipDataSource = \"all\",\n valueFormatter,\n unit,\n paddingAngle,\n startAngle,\n endAngle,\n withLabels,\n withLabelLines,\n innerRadius = withLabels ? \"60%\" : \"80%\",\n outerRadius,\n strokeWidth,\n legendProps,\n ...rest\n } = omitThemeProps(mergedProps)\n\n const {\n pieVars,\n getPieProps,\n getPieChartProps,\n getCellProps,\n setHighlightedArea,\n } = usePieChart({\n data,\n pieProps,\n chartProps,\n cellProps,\n innerRadius,\n outerRadius,\n paddingAngle,\n startAngle,\n endAngle,\n strokeWidth,\n withLabels,\n withLabelLines,\n styles,\n })\n const { getContainerProps } = useChart({ containerProps })\n const { tooltipProps: computedTooltipProps, getTooltipProps } =\n useChartTooltip({\n tooltipProps,\n tooltipAnimationDuration,\n styles,\n })\n const { legendProps: computedLegendProps, getLegendProps } = useChartLegend({\n legendProps,\n })\n\n const cells = useMemo(\n () =>\n data.map(({ name }, index) => (\n <Cell\n key={`donut-cell-${name}`}\n {...getCellProps({ index, className: \"ui-donut-chart__cell\" })}\n />\n )),\n [data, getCellProps],\n )\n\n return (\n <ChartProvider value={{ styles }}>\n <ui.div\n ref={ref}\n className={cx(\"ui-donut-chart\", className)}\n var={pieVars}\n __css={{ maxW: \"full\", ...styles.container }}\n {...rest}\n >\n <ResponsiveContainer\n {...getContainerProps({ className: \"ui-donut-chart__container\" })}\n >\n <RechartsPieChart\n {...getPieChartProps({ className: \"ui-donut-chart__chart\" })}\n >\n <Pie\n {...getPieProps({\n className: \"ui-donut-chart__donut\",\n labelClassName: \"ui-donut-chart__label\",\n labelLineClassName: \"ui-donut-chart__label-line\",\n })}\n >\n {cells}\n </Pie>\n\n {withLegend ? (\n <Legend\n content={({ payload }) => (\n <ChartLegend\n className=\"ui-donut-chart__legend\"\n payload={payload}\n onHighlight={setHighlightedArea}\n {...computedLegendProps}\n />\n )}\n {...getLegendProps()}\n />\n ) : null}\n\n {withTooltip ? (\n <Tooltip\n content={({ label, payload }) => (\n <ChartTooltip\n className=\"ui-donut-chart__tooltip\"\n label={label}\n payload={tooltipDataSource === \"segment\" ? payload : data}\n valueFormatter={valueFormatter}\n unit={unit}\n {...computedTooltipProps}\n />\n )}\n {...getTooltipProps()}\n />\n ) : null}\n </RechartsPieChart>\n </ResponsiveContainer>\n </ui.div>\n </ChartProvider>\n )\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,UAAU;AACnB,SAAS,eAAe;AACxB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA,YAAY;AAAA,EACZ;AAAA,EACA;AAAA,OACK;AA0FC,cAoBE,YApBF;AA/DD,IAAM,aAAa,WAAmC,CAAC,OAAO,QAAQ;AAC3E,QAAM,CAAC,QAAQ,WAAW,IAAI,uBAAuB,cAAc,KAAK;AACxE,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,cAAc;AAAA,IACd,aAAa;AAAA,IACb;AAAA,IACA;AAAA,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;AAAA,UAEhE;AAAA,YAAC;AAAA;AAAA,cACE,GAAG,iBAAiB,EAAE,WAAW,wBAAwB,CAAC;AAAA,cAE3D;AAAA;AAAA,kBAAC;AAAA;AAAA,oBACE,GAAG,YAAY;AAAA,sBACd,WAAW;AAAA,sBACX,gBAAgB;AAAA,sBAChB,oBAAoB;AAAA,oBACtB,CAAC;AAAA,oBAEA;AAAA;AAAA,gBACH;AAAA,gBAEC,aACC;AAAA,kBAAC;AAAA;AAAA,oBACC,SAAS,CAAC,EAAE,QAAQ,MAClB;AAAA,sBAAC;AAAA;AAAA,wBACC,WAAU;AAAA,wBACV;AAAA,wBACA,aAAa;AAAA,wBACZ,GAAG;AAAA;AAAA,oBACN;AAAA,oBAED,GAAG,eAAe;AAAA;AAAA,gBACrB,IACE;AAAA,gBAEH,cACC;AAAA,kBAAC;AAAA;AAAA,oBACC,SAAS,CAAC,EAAE,OAAO,QAAQ,MACzB;AAAA,sBAAC;AAAA;AAAA,wBACC,WAAU;AAAA,wBACV;AAAA,wBACA,SAAS,sBAAsB,YAAY,UAAU;AAAA,wBACrD;AAAA,wBACA;AAAA,wBACC,GAAG;AAAA;AAAA,oBACN;AAAA,oBAED,GAAG,gBAAgB;AAAA;AAAA,gBACtB,IACE;AAAA;AAAA;AAAA,UACN;AAAA;AAAA,MACF;AAAA;AAAA,EACF,GACF;AAEJ,CAAC;","names":[]}
|
@@ -0,0 +1,232 @@
|
|
1
|
+
"use client"
|
2
|
+
import {
|
3
|
+
useLineChart
|
4
|
+
} from "./chunk-QZ5OXZ6Z.mjs";
|
5
|
+
import {
|
6
|
+
useChartAxis
|
7
|
+
} from "./chunk-P7AFSM5W.mjs";
|
8
|
+
import {
|
9
|
+
useChartGrid
|
10
|
+
} from "./chunk-LGMALZCN.mjs";
|
11
|
+
import {
|
12
|
+
useChartReferenceLine
|
13
|
+
} from "./chunk-MWPICUEW.mjs";
|
14
|
+
import {
|
15
|
+
useChartLegend
|
16
|
+
} from "./chunk-LM2DQK2P.mjs";
|
17
|
+
import {
|
18
|
+
useChartTooltip
|
19
|
+
} from "./chunk-RN6PXJAD.mjs";
|
20
|
+
import {
|
21
|
+
ChartLegend
|
22
|
+
} from "./chunk-NEGDEVRX.mjs";
|
23
|
+
import {
|
24
|
+
ChartTooltip
|
25
|
+
} from "./chunk-LBC2B6UX.mjs";
|
26
|
+
import {
|
27
|
+
ChartProvider,
|
28
|
+
useChart
|
29
|
+
} from "./chunk-XIFDRM7J.mjs";
|
30
|
+
|
31
|
+
// src/line-chart.tsx
|
32
|
+
import {
|
33
|
+
ui,
|
34
|
+
forwardRef,
|
35
|
+
useMultiComponentStyle,
|
36
|
+
omitThemeProps
|
37
|
+
} from "@yamada-ui/core";
|
38
|
+
import { cx } from "@yamada-ui/utils";
|
39
|
+
import { useMemo } from "react";
|
40
|
+
import {
|
41
|
+
LineChart as ReChartsLineChart,
|
42
|
+
Legend,
|
43
|
+
CartesianGrid,
|
44
|
+
ResponsiveContainer,
|
45
|
+
Tooltip,
|
46
|
+
XAxis,
|
47
|
+
YAxis,
|
48
|
+
ReferenceLine,
|
49
|
+
Line
|
50
|
+
} from "recharts";
|
51
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
52
|
+
var LineChart = forwardRef((props, ref) => {
|
53
|
+
const [styles, mergedProps] = useMultiComponentStyle("LineChart", props);
|
54
|
+
const {
|
55
|
+
className,
|
56
|
+
containerProps,
|
57
|
+
gridProps,
|
58
|
+
gridAxis,
|
59
|
+
strokeDasharray,
|
60
|
+
dataKey,
|
61
|
+
type,
|
62
|
+
layoutType,
|
63
|
+
tickLine,
|
64
|
+
withXAxis,
|
65
|
+
withYAxis,
|
66
|
+
xAxisProps,
|
67
|
+
yAxisProps,
|
68
|
+
unit,
|
69
|
+
valueFormatter,
|
70
|
+
referenceLineProps,
|
71
|
+
tooltipProps,
|
72
|
+
tooltipAnimationDuration,
|
73
|
+
legendProps,
|
74
|
+
withLegend = false,
|
75
|
+
withTooltip = true,
|
76
|
+
series,
|
77
|
+
data,
|
78
|
+
chartProps,
|
79
|
+
lineProps,
|
80
|
+
withDots,
|
81
|
+
withActiveDots,
|
82
|
+
curveType,
|
83
|
+
strokeWidth,
|
84
|
+
connectNulls,
|
85
|
+
fillOpacity,
|
86
|
+
syncId,
|
87
|
+
...rest
|
88
|
+
} = omitThemeProps(mergedProps);
|
89
|
+
const { getLineProps, getLineChartProps, lineVars, setHighlightedArea } = useLineChart({
|
90
|
+
layoutType,
|
91
|
+
series,
|
92
|
+
referenceLineProps,
|
93
|
+
data,
|
94
|
+
chartProps,
|
95
|
+
lineProps,
|
96
|
+
withDots,
|
97
|
+
withActiveDots,
|
98
|
+
curveType,
|
99
|
+
strokeWidth,
|
100
|
+
connectNulls,
|
101
|
+
fillOpacity,
|
102
|
+
syncId,
|
103
|
+
styles
|
104
|
+
});
|
105
|
+
const { getContainerProps } = useChart({ containerProps });
|
106
|
+
const { getXAxisProps, getYAxisProps } = useChartAxis({
|
107
|
+
dataKey,
|
108
|
+
type,
|
109
|
+
layoutType,
|
110
|
+
tickLine,
|
111
|
+
gridAxis,
|
112
|
+
withXAxis,
|
113
|
+
withYAxis,
|
114
|
+
xAxisProps,
|
115
|
+
yAxisProps,
|
116
|
+
unit,
|
117
|
+
valueFormatter,
|
118
|
+
styles
|
119
|
+
});
|
120
|
+
const { getReferenceLineProps } = useChartReferenceLine({
|
121
|
+
referenceLineProps,
|
122
|
+
styles
|
123
|
+
});
|
124
|
+
const { getGridProps } = useChartGrid({
|
125
|
+
gridProps,
|
126
|
+
gridAxis,
|
127
|
+
strokeDasharray,
|
128
|
+
styles
|
129
|
+
});
|
130
|
+
const { tooltipProps: computedTooltipProps, getTooltipProps } = useChartTooltip({
|
131
|
+
tooltipProps,
|
132
|
+
tooltipAnimationDuration,
|
133
|
+
styles
|
134
|
+
});
|
135
|
+
const { legendProps: computedLegendProps, getLegendProps } = useChartLegend({
|
136
|
+
legendProps
|
137
|
+
});
|
138
|
+
const lines = useMemo(
|
139
|
+
() => series.map(({ dataKey: dataKey2 }, index) => /* @__PURE__ */ jsx(
|
140
|
+
Line,
|
141
|
+
{
|
142
|
+
...getLineProps({ index, className: "ui-line-chart__line" })
|
143
|
+
},
|
144
|
+
`line-${dataKey2}`
|
145
|
+
)),
|
146
|
+
[getLineProps, series]
|
147
|
+
);
|
148
|
+
const referenceLinesItems = useMemo(
|
149
|
+
() => referenceLineProps == null ? void 0 : referenceLineProps.map((_, index) => /* @__PURE__ */ jsx(
|
150
|
+
ReferenceLine,
|
151
|
+
{
|
152
|
+
...getReferenceLineProps({
|
153
|
+
index,
|
154
|
+
className: "ui-line-chart__reference-line"
|
155
|
+
})
|
156
|
+
},
|
157
|
+
`referenceLine-${index}`
|
158
|
+
)),
|
159
|
+
[getReferenceLineProps, referenceLineProps]
|
160
|
+
);
|
161
|
+
return /* @__PURE__ */ jsx(ChartProvider, { value: { styles }, children: /* @__PURE__ */ jsx(
|
162
|
+
ui.div,
|
163
|
+
{
|
164
|
+
ref,
|
165
|
+
className: cx("ui-line-chart", className),
|
166
|
+
var: lineVars,
|
167
|
+
__css: { maxW: "full", ...styles.container },
|
168
|
+
...rest,
|
169
|
+
children: /* @__PURE__ */ jsx(
|
170
|
+
ResponsiveContainer,
|
171
|
+
{
|
172
|
+
...getContainerProps({ className: "ui-line-chart__container" }),
|
173
|
+
children: /* @__PURE__ */ jsxs(
|
174
|
+
ReChartsLineChart,
|
175
|
+
{
|
176
|
+
...getLineChartProps({ className: "ui-line-chart__chart" }),
|
177
|
+
children: [
|
178
|
+
/* @__PURE__ */ jsx(
|
179
|
+
CartesianGrid,
|
180
|
+
{
|
181
|
+
...getGridProps({ className: "ui-line-chart__grid" })
|
182
|
+
}
|
183
|
+
),
|
184
|
+
/* @__PURE__ */ jsx(XAxis, { ...getXAxisProps({ className: "ui-line-chart__x-axis" }) }),
|
185
|
+
/* @__PURE__ */ jsx(YAxis, { ...getYAxisProps({ className: "ui-line-chart__y-axis" }) }),
|
186
|
+
withLegend ? /* @__PURE__ */ jsx(
|
187
|
+
Legend,
|
188
|
+
{
|
189
|
+
content: ({ payload }) => /* @__PURE__ */ jsx(
|
190
|
+
ChartLegend,
|
191
|
+
{
|
192
|
+
className: "ui-line-chart__legend",
|
193
|
+
payload,
|
194
|
+
onHighlight: setHighlightedArea,
|
195
|
+
...computedLegendProps
|
196
|
+
}
|
197
|
+
),
|
198
|
+
...getLegendProps()
|
199
|
+
}
|
200
|
+
) : null,
|
201
|
+
withTooltip ? /* @__PURE__ */ jsx(
|
202
|
+
Tooltip,
|
203
|
+
{
|
204
|
+
content: ({ label, payload }) => /* @__PURE__ */ jsx(
|
205
|
+
ChartTooltip,
|
206
|
+
{
|
207
|
+
className: "ui-line-chart__tooltip",
|
208
|
+
label,
|
209
|
+
payload,
|
210
|
+
valueFormatter,
|
211
|
+
unit,
|
212
|
+
...computedTooltipProps
|
213
|
+
}
|
214
|
+
),
|
215
|
+
...getTooltipProps()
|
216
|
+
}
|
217
|
+
) : null,
|
218
|
+
lines,
|
219
|
+
referenceLinesItems
|
220
|
+
]
|
221
|
+
}
|
222
|
+
)
|
223
|
+
}
|
224
|
+
)
|
225
|
+
}
|
226
|
+
) });
|
227
|
+
});
|
228
|
+
|
229
|
+
export {
|
230
|
+
LineChart
|
231
|
+
};
|
232
|
+
//# sourceMappingURL=chunk-E2I2XAZ6.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/line-chart.tsx"],"sourcesContent":["import type { HTMLUIProps, ThemeProps } from \"@yamada-ui/core\"\nimport {\n ui,\n forwardRef,\n useMultiComponentStyle,\n omitThemeProps,\n} from \"@yamada-ui/core\"\nimport { cx } from \"@yamada-ui/utils\"\nimport { useMemo } from \"react\"\nimport {\n LineChart as ReChartsLineChart,\n Legend,\n CartesianGrid,\n ResponsiveContainer,\n Tooltip,\n XAxis,\n YAxis,\n ReferenceLine,\n Line,\n} from \"recharts\"\nimport { ChartLegend } from \"./chart-legend\"\nimport { ChartTooltip } from \"./chart-tooltip\"\nimport type { UseChartProps } from \"./use-chart\"\nimport { ChartProvider, useChart } from \"./use-chart\"\nimport type { UseChartAxisOptions } from \"./use-chart-axis\"\nimport { useChartAxis } from \"./use-chart-axis\"\nimport type { UseChartGridOptions } from \"./use-chart-grid\"\nimport { useChartGrid } from \"./use-chart-grid\"\nimport type { UseChartLegendProps } from \"./use-chart-legend\"\nimport { useChartLegend } from \"./use-chart-legend\"\nimport type { UseChartReferenceLineOptions } from \"./use-chart-reference-line\"\nimport { useChartReferenceLine } from \"./use-chart-reference-line\"\nimport {\n useChartTooltip,\n type UseChartTooltipOptions,\n} from \"./use-chart-tooltip\"\nimport { useLineChart } from \"./use-line-chart\"\nimport type { UseLineChartOptions } from \"./use-line-chart\"\n\ntype LineChartOptions = {\n /**\n * If `true`, tooltip is visible.\n *\n * @default true\n */\n withTooltip?: boolean\n /**\n * If `true`, legend is visible.\n *\n * @default false\n */\n withLegend?: boolean\n}\n\nexport type LineChartProps = HTMLUIProps<\"div\"> &\n ThemeProps<\"LineChart\"> &\n LineChartOptions &\n UseChartProps &\n UseChartAxisOptions &\n UseChartReferenceLineOptions &\n UseChartGridOptions &\n UseChartTooltipOptions &\n UseChartLegendProps &\n UseLineChartOptions\n\n/**\n * `LineChart` is a component for drawing line charts to compare multiple sets of data.\n *\n * @see Docs https://yamada-ui.com/components/feedback/line-chart\n */\nexport const LineChart = forwardRef<LineChartProps, \"div\">((props, ref) => {\n const [styles, mergedProps] = useMultiComponentStyle(\"LineChart\", props)\n const {\n className,\n containerProps,\n gridProps,\n gridAxis,\n strokeDasharray,\n dataKey,\n type,\n layoutType,\n tickLine,\n withXAxis,\n withYAxis,\n xAxisProps,\n yAxisProps,\n unit,\n valueFormatter,\n referenceLineProps,\n tooltipProps,\n tooltipAnimationDuration,\n legendProps,\n withLegend = false,\n withTooltip = true,\n series,\n data,\n chartProps,\n lineProps,\n withDots,\n withActiveDots,\n curveType,\n strokeWidth,\n connectNulls,\n fillOpacity,\n syncId,\n ...rest\n } = omitThemeProps(mergedProps)\n\n const { getLineProps, getLineChartProps, lineVars, setHighlightedArea } =\n useLineChart({\n layoutType,\n series,\n referenceLineProps,\n data,\n chartProps,\n lineProps,\n withDots,\n withActiveDots,\n curveType,\n strokeWidth,\n connectNulls,\n fillOpacity,\n syncId,\n styles,\n })\n const { getContainerProps } = useChart({ containerProps })\n const { getXAxisProps, getYAxisProps } = useChartAxis({\n dataKey,\n type,\n layoutType,\n tickLine,\n gridAxis,\n withXAxis,\n withYAxis,\n xAxisProps,\n yAxisProps,\n unit,\n valueFormatter,\n styles,\n })\n const { getReferenceLineProps } = useChartReferenceLine({\n referenceLineProps,\n styles,\n })\n const { getGridProps } = useChartGrid({\n gridProps,\n gridAxis,\n strokeDasharray,\n styles,\n })\n const { tooltipProps: computedTooltipProps, getTooltipProps } =\n useChartTooltip({\n tooltipProps,\n tooltipAnimationDuration,\n styles,\n })\n const { legendProps: computedLegendProps, getLegendProps } = useChartLegend({\n legendProps,\n })\n\n const lines = useMemo(\n () =>\n series.map(({ dataKey }, index) => (\n <Line\n key={`line-${dataKey}`}\n {...getLineProps({ index, className: \"ui-line-chart__line\" })}\n />\n )),\n [getLineProps, series],\n )\n\n const referenceLinesItems = useMemo(\n () =>\n referenceLineProps?.map((_, index) => (\n <ReferenceLine\n key={`referenceLine-${index}`}\n {...getReferenceLineProps({\n index,\n className: \"ui-line-chart__reference-line\",\n })}\n />\n )),\n [getReferenceLineProps, referenceLineProps],\n )\n\n return (\n <ChartProvider value={{ styles }}>\n <ui.div\n ref={ref}\n className={cx(\"ui-line-chart\", className)}\n var={lineVars}\n __css={{ maxW: \"full\", ...styles.container }}\n {...rest}\n >\n <ResponsiveContainer\n {...getContainerProps({ className: \"ui-line-chart__container\" })}\n >\n <ReChartsLineChart\n {...getLineChartProps({ className: \"ui-line-chart__chart\" })}\n >\n <CartesianGrid\n {...getGridProps({ className: \"ui-line-chart__grid\" })}\n />\n <XAxis {...getXAxisProps({ className: \"ui-line-chart__x-axis\" })} />\n <YAxis {...getYAxisProps({ className: \"ui-line-chart__y-axis\" })} />\n\n {withLegend ? (\n <Legend\n content={({ payload }) => (\n <ChartLegend\n className=\"ui-line-chart__legend\"\n payload={payload}\n onHighlight={setHighlightedArea}\n {...computedLegendProps}\n />\n )}\n {...getLegendProps()}\n />\n ) : null}\n\n {withTooltip ? (\n <Tooltip\n content={({ label, payload }) => (\n <ChartTooltip\n className=\"ui-line-chart__tooltip\"\n label={label}\n payload={payload}\n valueFormatter={valueFormatter}\n unit={unit}\n {...computedTooltipProps}\n />\n )}\n {...getTooltipProps()}\n />\n ) : null}\n\n {lines}\n {referenceLinesItems}\n </ReChartsLineChart>\n </ResponsiveContainer>\n </ui.div>\n </ChartProvider>\n )\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,UAAU;AACnB,SAAS,eAAe;AACxB;AAAA,EACE,aAAa;AAAA,EACb;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAgJC,cAkCE,YAlCF;AA7FD,IAAM,YAAY,WAAkC,CAAC,OAAO,QAAQ;AACzE,QAAM,CAAC,QAAQ,WAAW,IAAI,uBAAuB,aAAa,KAAK;AACvE,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,aAAa;AAAA,IACb,cAAc;AAAA,IACd;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IAC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