@tipp/ui 1.0.28 → 1.0.30
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/atoms/index.js +1 -1
- package/dist/charts/chart.cjs +20 -3
- package/dist/charts/chart.cjs.map +1 -1
- package/dist/charts/chart.d.cts +4 -4
- package/dist/charts/chart.d.ts +4 -4
- package/dist/charts/chart.js +1 -1
- package/dist/charts/index.cjs +20 -3
- package/dist/charts/index.cjs.map +1 -1
- package/dist/charts/index.d.cts +1 -1
- package/dist/charts/index.d.ts +1 -1
- package/dist/charts/index.js +1 -1
- package/dist/chunk-2ZVIXDUQ.js +196 -0
- package/dist/chunk-2ZVIXDUQ.js.map +1 -0
- package/dist/chunk-3HULX2N3.js +206 -0
- package/dist/chunk-3HULX2N3.js.map +1 -0
- package/dist/chunk-6O2MNTGU.js +198 -0
- package/dist/chunk-6O2MNTGU.js.map +1 -0
- package/dist/chunk-7HRYZ7NQ.js +197 -0
- package/dist/chunk-7HRYZ7NQ.js.map +1 -0
- package/dist/chunk-A5BAGKVO.js +205 -0
- package/dist/chunk-A5BAGKVO.js.map +1 -0
- package/dist/chunk-BFHWI7WD.js +119 -0
- package/dist/chunk-BFHWI7WD.js.map +1 -0
- package/dist/chunk-CAQ3H2HW.js +197 -0
- package/dist/chunk-CAQ3H2HW.js.map +1 -0
- package/dist/chunk-DCPLIZMO.js +204 -0
- package/dist/chunk-DCPLIZMO.js.map +1 -0
- package/dist/chunk-DXSXADVU.js +206 -0
- package/dist/chunk-DXSXADVU.js.map +1 -0
- package/dist/chunk-EIDBURAB.js +190 -0
- package/dist/chunk-EIDBURAB.js.map +1 -0
- package/dist/chunk-GMHV56NQ.js +205 -0
- package/dist/chunk-GMHV56NQ.js.map +1 -0
- package/dist/chunk-HBB3XS6O.js +192 -0
- package/dist/chunk-HBB3XS6O.js.map +1 -0
- package/dist/chunk-IYBDO5LG.js +201 -0
- package/dist/chunk-IYBDO5LG.js.map +1 -0
- package/dist/chunk-LAEQOKW7.js +206 -0
- package/dist/chunk-LAEQOKW7.js.map +1 -0
- package/dist/chunk-PEQK7Z73.js +206 -0
- package/dist/chunk-PEQK7Z73.js.map +1 -0
- package/dist/chunk-QSSRR273.js +206 -0
- package/dist/chunk-QSSRR273.js.map +1 -0
- package/dist/chunk-R7J3TUC5.js +119 -0
- package/dist/chunk-R7J3TUC5.js.map +1 -0
- package/dist/chunk-RRKJ5G7Y.js +199 -0
- package/dist/chunk-RRKJ5G7Y.js.map +1 -0
- package/dist/chunk-XEQWFWBV.js +203 -0
- package/dist/chunk-XEQWFWBV.js.map +1 -0
- package/dist/index.cjs +20 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +35 -35
- package/dist/molecules/expand-table/index.js +4 -4
- package/dist/molecules/expand-table/row.js +1 -1
- package/dist/molecules/index.js +7 -7
- package/dist/molecules/navigation.js +1 -1
- package/package.json +2 -1
- package/src/charts/chart.tsx +55 -8
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__spreadProps,
|
|
3
|
+
__spreadValues
|
|
4
|
+
} from "./chunk-N552FDTV.js";
|
|
5
|
+
|
|
6
|
+
// src/charts/chart.tsx
|
|
7
|
+
import { useMemo } from "react";
|
|
8
|
+
import { useResizeDetector } from "react-resize-detector";
|
|
9
|
+
import { merge } from "lodash-es";
|
|
10
|
+
import * as echarts from "echarts/core";
|
|
11
|
+
import ReactEChartsCore from "echarts-for-react/lib/core";
|
|
12
|
+
import { PieChart, LineChart } from "echarts/charts";
|
|
13
|
+
import { SVGRenderer } from "echarts/renderers";
|
|
14
|
+
import {
|
|
15
|
+
GridSimpleComponent,
|
|
16
|
+
AxisPointerComponent,
|
|
17
|
+
AriaComponent,
|
|
18
|
+
TooltipComponent,
|
|
19
|
+
GridComponent,
|
|
20
|
+
LegendComponent,
|
|
21
|
+
ToolboxComponent
|
|
22
|
+
} from "echarts/components";
|
|
23
|
+
|
|
24
|
+
// src/charts/chart-theme.json
|
|
25
|
+
var chart_theme_default = {
|
|
26
|
+
version: 1,
|
|
27
|
+
themeName: "customed",
|
|
28
|
+
theme: {
|
|
29
|
+
seriesCnt: "5",
|
|
30
|
+
backgroundColor: "rgba(0,0,0,0)",
|
|
31
|
+
titleColor: "#1c2024",
|
|
32
|
+
subtitleColor: "#8d8d8d",
|
|
33
|
+
textColorShow: false,
|
|
34
|
+
textColor: "#333",
|
|
35
|
+
markTextColor: "#ffffff",
|
|
36
|
+
color: [
|
|
37
|
+
"#ffe629",
|
|
38
|
+
"#3e63dd",
|
|
39
|
+
"#ec9455",
|
|
40
|
+
"#5bb98b",
|
|
41
|
+
"#cb1d63",
|
|
42
|
+
"#3ba272",
|
|
43
|
+
"#fc8452",
|
|
44
|
+
"#9a60b4",
|
|
45
|
+
"#ea7ccc"
|
|
46
|
+
],
|
|
47
|
+
borderColor: "#8d8d8d",
|
|
48
|
+
borderWidth: 0,
|
|
49
|
+
visualMapColor: ["#bf444c", "#d88273", "#f6efa6"],
|
|
50
|
+
legendTextColor: "#1c2024",
|
|
51
|
+
kColor: "#eb5454",
|
|
52
|
+
kColor0: "#47b262",
|
|
53
|
+
kBorderColor: "#eb5454",
|
|
54
|
+
kBorderColor0: "#47b262",
|
|
55
|
+
kBorderWidth: 1,
|
|
56
|
+
lineWidth: 2,
|
|
57
|
+
symbolSize: 4,
|
|
58
|
+
symbol: "emptyCircle",
|
|
59
|
+
symbolBorderWidth: 1,
|
|
60
|
+
lineSmooth: false,
|
|
61
|
+
graphLineWidth: 1,
|
|
62
|
+
graphLineColor: "#aaa",
|
|
63
|
+
mapLabelColor: "#000",
|
|
64
|
+
mapLabelColorE: "rgb(100,0,0)",
|
|
65
|
+
mapBorderColor: "#444",
|
|
66
|
+
mapBorderColorE: "#444",
|
|
67
|
+
mapBorderWidth: 0.5,
|
|
68
|
+
mapBorderWidthE: 1,
|
|
69
|
+
mapAreaColor: "#eee",
|
|
70
|
+
mapAreaColorE: "rgba(255,215,0,0.8)",
|
|
71
|
+
axes: [
|
|
72
|
+
{
|
|
73
|
+
type: "all",
|
|
74
|
+
name: "\u901A\u7528\u5750\u6807\u8F74",
|
|
75
|
+
axisLineShow: true,
|
|
76
|
+
axisLineColor: "#6E7079",
|
|
77
|
+
axisTickShow: true,
|
|
78
|
+
axisTickColor: "#6E7079",
|
|
79
|
+
axisLabelShow: true,
|
|
80
|
+
axisLabelColor: "#6E7079",
|
|
81
|
+
splitLineShow: true,
|
|
82
|
+
splitLineColor: ["#E0E6F1"],
|
|
83
|
+
splitAreaShow: false,
|
|
84
|
+
splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
type: "category",
|
|
88
|
+
name: "\u7C7B\u76EE\u5750\u6807\u8F74",
|
|
89
|
+
axisLineShow: true,
|
|
90
|
+
axisLineColor: "#6E7079",
|
|
91
|
+
axisTickShow: true,
|
|
92
|
+
axisTickColor: "#6E7079",
|
|
93
|
+
axisLabelShow: true,
|
|
94
|
+
axisLabelColor: "#6E7079",
|
|
95
|
+
splitLineShow: false,
|
|
96
|
+
splitLineColor: ["#E0E6F1"],
|
|
97
|
+
splitAreaShow: false,
|
|
98
|
+
splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
type: "value",
|
|
102
|
+
name: "\u6570\u503C\u5750\u6807\u8F74",
|
|
103
|
+
axisLineShow: false,
|
|
104
|
+
axisLineColor: "#6E7079",
|
|
105
|
+
axisTickShow: false,
|
|
106
|
+
axisTickColor: "#6E7079",
|
|
107
|
+
axisLabelShow: true,
|
|
108
|
+
axisLabelColor: "#6E7079",
|
|
109
|
+
splitLineShow: true,
|
|
110
|
+
splitLineColor: ["#E0E6F1"],
|
|
111
|
+
splitAreaShow: false,
|
|
112
|
+
splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
type: "log",
|
|
116
|
+
name: "\u5BF9\u6570\u5750\u6807\u8F74",
|
|
117
|
+
axisLineShow: false,
|
|
118
|
+
axisLineColor: "#6E7079",
|
|
119
|
+
axisTickShow: false,
|
|
120
|
+
axisTickColor: "#6E7079",
|
|
121
|
+
axisLabelShow: true,
|
|
122
|
+
axisLabelColor: "#6E7079",
|
|
123
|
+
splitLineShow: true,
|
|
124
|
+
splitLineColor: ["#E0E6F1"],
|
|
125
|
+
splitAreaShow: false,
|
|
126
|
+
splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
type: "time",
|
|
130
|
+
name: "\u65F6\u95F4\u5750\u6807\u8F74",
|
|
131
|
+
axisLineShow: true,
|
|
132
|
+
axisLineColor: "#6E7079",
|
|
133
|
+
axisTickShow: true,
|
|
134
|
+
axisTickColor: "#6E7079",
|
|
135
|
+
axisLabelShow: true,
|
|
136
|
+
axisLabelColor: "#6E7079",
|
|
137
|
+
splitLineShow: false,
|
|
138
|
+
splitLineColor: ["#E0E6F1"],
|
|
139
|
+
splitAreaShow: false,
|
|
140
|
+
splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
axisSeperateSetting: true,
|
|
144
|
+
toolboxColor: "#8d8d8d",
|
|
145
|
+
toolboxEmphasisColor: "#1c2024",
|
|
146
|
+
tooltipAxisColor: "#cccccc",
|
|
147
|
+
tooltipAxisWidth: 1,
|
|
148
|
+
timelineLineColor: "#dae1f5",
|
|
149
|
+
timelineLineWidth: 2,
|
|
150
|
+
timelineItemColor: "#a4b1d7",
|
|
151
|
+
timelineItemColorE: "#ffffff",
|
|
152
|
+
timelineCheckColor: "#316bf3",
|
|
153
|
+
timelineCheckBorderColor: "#ffffff",
|
|
154
|
+
timelineItemBorderWidth: 1,
|
|
155
|
+
timelineControlColor: "#a4b1d7",
|
|
156
|
+
timelineControlBorderColor: "#a4b1d7",
|
|
157
|
+
timelineControlBorderWidth: 1,
|
|
158
|
+
timelineLabelColor: "#a4b1d7"
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
// src/charts/chart.tsx
|
|
163
|
+
import { jsx } from "react/jsx-runtime";
|
|
164
|
+
echarts.use([
|
|
165
|
+
SVGRenderer,
|
|
166
|
+
PieChart,
|
|
167
|
+
LineChart,
|
|
168
|
+
TooltipComponent,
|
|
169
|
+
GridComponent,
|
|
170
|
+
LegendComponent,
|
|
171
|
+
ToolboxComponent,
|
|
172
|
+
AriaComponent,
|
|
173
|
+
AxisPointerComponent,
|
|
174
|
+
GridSimpleComponent
|
|
175
|
+
]);
|
|
176
|
+
function Chart(props) {
|
|
177
|
+
const { width, height, ref } = useResizeDetector({
|
|
178
|
+
handleHeight: false,
|
|
179
|
+
refreshMode: "debounce",
|
|
180
|
+
refreshRate: 100
|
|
181
|
+
});
|
|
182
|
+
const option = useMemo(() => {
|
|
183
|
+
const baseOption = {
|
|
184
|
+
textStyle: { fontFamily: "Noto Sans KR" },
|
|
185
|
+
tooltip: { textStyle: { fontSize: 16 } }
|
|
186
|
+
};
|
|
187
|
+
return merge(baseOption, props.option);
|
|
188
|
+
}, [props.option]);
|
|
189
|
+
return /* @__PURE__ */ jsx("div", { ref, style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsx(
|
|
190
|
+
ReactEChartsCore,
|
|
191
|
+
__spreadProps(__spreadValues({
|
|
192
|
+
echarts,
|
|
193
|
+
opts: { renderer: "svg" },
|
|
194
|
+
style: { height: "300px", width: "300px" },
|
|
195
|
+
theme: chart_theme_default
|
|
196
|
+
}, props), {
|
|
197
|
+
option
|
|
198
|
+
})
|
|
199
|
+
) });
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export {
|
|
203
|
+
chart_theme_default,
|
|
204
|
+
Chart
|
|
205
|
+
};
|
|
206
|
+
//# sourceMappingURL=chunk-3HULX2N3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/charts/chart.tsx","../src/charts/chart-theme.json"],"sourcesContent":["import React, { useMemo } from 'react';\nimport { useResizeDetector } from 'react-resize-detector';\nimport { merge } from 'lodash-es';\nimport type { EChartsOption } from 'echarts';\nimport * as echarts from 'echarts/core';\nimport ReactEChartsCore from 'echarts-for-react/lib/core';\nimport { PieChart, LineChart } from 'echarts/charts';\nimport { SVGRenderer } from 'echarts/renderers';\nimport {\n GridSimpleComponent,\n // PolarComponent,\n // RadarComponent,\n // GeoComponent,\n // SingleAxisComponent,\n // ParallelComponent,\n // CalendarComponent,\n // GraphicComponent,\n AxisPointerComponent,\n // BrushComponent,\n // TimelineComponent,\n // MarkPointComponent,\n // MarkLineComponent,\n // MarkAreaComponent,\n // LegendScrollComponent,\n // LegendPlainComponent,\n // DataZoomComponent,\n // DataZoomInsideComponent,\n // DataZoomSliderComponent,\n // VisualMapComponent,\n // VisualMapContinuousComponent,\n // VisualMapPiecewiseComponent,\n AriaComponent,\n // TransformComponent,\n TooltipComponent,\n GridComponent,\n LegendComponent,\n ToolboxComponent,\n} from 'echarts/components';\nimport chartTheme from './chart-theme.json';\n\necharts.use([\n SVGRenderer,\n PieChart,\n LineChart,\n TooltipComponent,\n GridComponent,\n LegendComponent,\n ToolboxComponent,\n AriaComponent,\n AxisPointerComponent,\n GridSimpleComponent,\n]);\n\nexport type ChartProps = Omit<\n React.ComponentProps<typeof ReactEChartsCore>,\n 'option'\n> & {\n option: EChartsOption;\n};\n\nexport function Chart(props: ChartProps): JSX.Element {\n const { width, height, ref } = useResizeDetector({\n handleHeight: false,\n refreshMode: 'debounce',\n refreshRate: 100,\n });\n\n const option = useMemo(() => {\n const baseOption: EChartsOption = {\n textStyle: { fontFamily: 'Noto Sans KR' },\n tooltip: { textStyle: { fontSize: 16 } },\n };\n return merge(baseOption, props.option);\n }, [props.option]);\n\n return (\n <div ref={ref} style={{ width: '100%', height: '100%' }}>\n <ReactEChartsCore\n echarts={echarts}\n opts={{ renderer: 'svg' }}\n style={{ height: '300px', width: '300px' }}\n theme={chartTheme}\n {...props}\n option={option}\n />\n </div>\n );\n}\n\nexport { chartTheme };\n","{\n \"version\": 1,\n \"themeName\": \"customed\",\n \"theme\": {\n \"seriesCnt\": \"5\",\n \"backgroundColor\": \"rgba(0,0,0,0)\",\n \"titleColor\": \"#1c2024\",\n \"subtitleColor\": \"#8d8d8d\",\n \"textColorShow\": false,\n \"textColor\": \"#333\",\n \"markTextColor\": \"#ffffff\",\n \"color\": [\n \"#ffe629\",\n \"#3e63dd\",\n \"#ec9455\",\n \"#5bb98b\",\n \"#cb1d63\",\n \"#3ba272\",\n \"#fc8452\",\n \"#9a60b4\",\n \"#ea7ccc\"\n ],\n \"borderColor\": \"#8d8d8d\",\n \"borderWidth\": 0,\n \"visualMapColor\": [\"#bf444c\", \"#d88273\", \"#f6efa6\"],\n \"legendTextColor\": \"#1c2024\",\n \"kColor\": \"#eb5454\",\n \"kColor0\": \"#47b262\",\n \"kBorderColor\": \"#eb5454\",\n \"kBorderColor0\": \"#47b262\",\n \"kBorderWidth\": 1,\n \"lineWidth\": 2,\n \"symbolSize\": 4,\n \"symbol\": \"emptyCircle\",\n \"symbolBorderWidth\": 1,\n \"lineSmooth\": false,\n \"graphLineWidth\": 1,\n \"graphLineColor\": \"#aaa\",\n \"mapLabelColor\": \"#000\",\n \"mapLabelColorE\": \"rgb(100,0,0)\",\n \"mapBorderColor\": \"#444\",\n \"mapBorderColorE\": \"#444\",\n \"mapBorderWidth\": 0.5,\n \"mapBorderWidthE\": 1,\n \"mapAreaColor\": \"#eee\",\n \"mapAreaColorE\": \"rgba(255,215,0,0.8)\",\n \"axes\": [\n {\n \"type\": \"all\",\n \"name\": \"通用坐标轴\",\n \"axisLineShow\": true,\n \"axisLineColor\": \"#6E7079\",\n \"axisTickShow\": true,\n \"axisTickColor\": \"#6E7079\",\n \"axisLabelShow\": true,\n \"axisLabelColor\": \"#6E7079\",\n \"splitLineShow\": true,\n \"splitLineColor\": [\"#E0E6F1\"],\n \"splitAreaShow\": false,\n \"splitAreaColor\": [\"rgba(250,250,250,0.2)\", \"rgba(210,219,238,0.2)\"]\n },\n {\n \"type\": \"category\",\n \"name\": \"类目坐标轴\",\n \"axisLineShow\": true,\n \"axisLineColor\": \"#6E7079\",\n \"axisTickShow\": true,\n \"axisTickColor\": \"#6E7079\",\n \"axisLabelShow\": true,\n \"axisLabelColor\": \"#6E7079\",\n \"splitLineShow\": false,\n \"splitLineColor\": [\"#E0E6F1\"],\n \"splitAreaShow\": false,\n \"splitAreaColor\": [\"rgba(250,250,250,0.2)\", \"rgba(210,219,238,0.2)\"]\n },\n {\n \"type\": \"value\",\n \"name\": \"数值坐标轴\",\n \"axisLineShow\": false,\n \"axisLineColor\": \"#6E7079\",\n \"axisTickShow\": false,\n \"axisTickColor\": \"#6E7079\",\n \"axisLabelShow\": true,\n \"axisLabelColor\": \"#6E7079\",\n \"splitLineShow\": true,\n \"splitLineColor\": [\"#E0E6F1\"],\n \"splitAreaShow\": false,\n \"splitAreaColor\": [\"rgba(250,250,250,0.2)\", \"rgba(210,219,238,0.2)\"]\n },\n {\n \"type\": \"log\",\n \"name\": \"对数坐标轴\",\n \"axisLineShow\": false,\n \"axisLineColor\": \"#6E7079\",\n \"axisTickShow\": false,\n \"axisTickColor\": \"#6E7079\",\n \"axisLabelShow\": true,\n \"axisLabelColor\": \"#6E7079\",\n \"splitLineShow\": true,\n \"splitLineColor\": [\"#E0E6F1\"],\n \"splitAreaShow\": false,\n \"splitAreaColor\": [\"rgba(250,250,250,0.2)\", \"rgba(210,219,238,0.2)\"]\n },\n {\n \"type\": \"time\",\n \"name\": \"时间坐标轴\",\n \"axisLineShow\": true,\n \"axisLineColor\": \"#6E7079\",\n \"axisTickShow\": true,\n \"axisTickColor\": \"#6E7079\",\n \"axisLabelShow\": true,\n \"axisLabelColor\": \"#6E7079\",\n \"splitLineShow\": false,\n \"splitLineColor\": [\"#E0E6F1\"],\n \"splitAreaShow\": false,\n \"splitAreaColor\": [\"rgba(250,250,250,0.2)\", \"rgba(210,219,238,0.2)\"]\n }\n ],\n \"axisSeperateSetting\": true,\n \"toolboxColor\": \"#8d8d8d\",\n \"toolboxEmphasisColor\": \"#1c2024\",\n \"tooltipAxisColor\": \"#cccccc\",\n \"tooltipAxisWidth\": 1,\n \"timelineLineColor\": \"#dae1f5\",\n \"timelineLineWidth\": 2,\n \"timelineItemColor\": \"#a4b1d7\",\n \"timelineItemColorE\": \"#ffffff\",\n \"timelineCheckColor\": \"#316bf3\",\n \"timelineCheckBorderColor\": \"#ffffff\",\n \"timelineItemBorderWidth\": 1,\n \"timelineControlColor\": \"#a4b1d7\",\n \"timelineControlBorderColor\": \"#a4b1d7\",\n \"timelineControlBorderWidth\": 1,\n \"timelineLabelColor\": \"#a4b1d7\"\n }\n}\n"],"mappings":";;;;;;AAAA,SAAgB,eAAe;AAC/B,SAAS,yBAAyB;AAClC,SAAS,aAAa;AAEtB,YAAY,aAAa;AACzB,OAAO,sBAAsB;AAC7B,SAAS,UAAU,iBAAiB;AACpC,SAAS,mBAAmB;AAC5B;AAAA,EACE;AAAA,EAQA;AAAA,EAcA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;;;ACrCP;AAAA,EACE,SAAW;AAAA,EACX,WAAa;AAAA,EACb,OAAS;AAAA,IACP,WAAa;AAAA,IACb,iBAAmB;AAAA,IACnB,YAAc;AAAA,IACd,eAAiB;AAAA,IACjB,eAAiB;AAAA,IACjB,WAAa;AAAA,IACb,eAAiB;AAAA,IACjB,OAAS;AAAA,MACP;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACA,aAAe;AAAA,IACf,aAAe;AAAA,IAC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IAAI,kBAAkB;AAAA,IAC/C,cAAc;AAAA,IACd,aAAa;AAAA,IACb,aAAa;AAAA,EACf,CAAC;AAED,QAAM,SAAS,QAAQ,MAAM;AAC3B,UAAM,aAA4B;AAAA,MAChC,WAAW,EAAE,YAAY,eAAe;AAAA,MACxC,SAAS,EAAE,WAAW,EAAE,UAAU,GAAG,EAAE;AAAA,IACzC;AACA,WAAO,MAAM,YAAY,MAAM,MAAM;AAAA,EACvC,GAAG,CAAC,MAAM,MAAM,CAAC;AAEjB,SACE,oBAAC,SAAI,KAAU,OAAO,EAAE,OAAO,QAAQ,QAAQ,OAAO,GACpD;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,MAAM,EAAE,UAAU,MAAM;AAAA,MACxB,OAAO,EAAE,QAAQ,SAAS,OAAO,QAAQ;AAAA,MACzC,OAAO;AAAA,OACH,QALL;AAAA,MAMC;AAAA;AAAA,EACF,GACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
// src/charts/chart.tsx
|
|
2
|
+
import ReactEChartsCore from "echarts-for-react/lib/core";
|
|
3
|
+
import { useMemo } from "react";
|
|
4
|
+
import { useResizeDetector } from "react-resize-detector";
|
|
5
|
+
import { merge } from "lodash-es";
|
|
6
|
+
import * as echarts from "echarts/core";
|
|
7
|
+
import { PieChart, LineChart } from "echarts/charts";
|
|
8
|
+
import { SVGRenderer } from "echarts/renderers";
|
|
9
|
+
import {
|
|
10
|
+
GridSimpleComponent,
|
|
11
|
+
AxisPointerComponent,
|
|
12
|
+
AriaComponent,
|
|
13
|
+
TooltipComponent,
|
|
14
|
+
GridComponent,
|
|
15
|
+
LegendComponent,
|
|
16
|
+
ToolboxComponent
|
|
17
|
+
} from "echarts/components";
|
|
18
|
+
|
|
19
|
+
// src/charts/chart-theme.json
|
|
20
|
+
var chart_theme_default = {
|
|
21
|
+
version: 1,
|
|
22
|
+
themeName: "customed",
|
|
23
|
+
theme: {
|
|
24
|
+
seriesCnt: "5",
|
|
25
|
+
backgroundColor: "rgba(0,0,0,0)",
|
|
26
|
+
titleColor: "#1c2024",
|
|
27
|
+
subtitleColor: "#8d8d8d",
|
|
28
|
+
textColorShow: false,
|
|
29
|
+
textColor: "#333",
|
|
30
|
+
markTextColor: "#ffffff",
|
|
31
|
+
color: [
|
|
32
|
+
"#ffe629",
|
|
33
|
+
"#3e63dd",
|
|
34
|
+
"#ec9455",
|
|
35
|
+
"#5bb98b",
|
|
36
|
+
"#cb1d63",
|
|
37
|
+
"#3ba272",
|
|
38
|
+
"#fc8452",
|
|
39
|
+
"#9a60b4",
|
|
40
|
+
"#ea7ccc"
|
|
41
|
+
],
|
|
42
|
+
borderColor: "#8d8d8d",
|
|
43
|
+
borderWidth: 0,
|
|
44
|
+
visualMapColor: ["#bf444c", "#d88273", "#f6efa6"],
|
|
45
|
+
legendTextColor: "#1c2024",
|
|
46
|
+
kColor: "#eb5454",
|
|
47
|
+
kColor0: "#47b262",
|
|
48
|
+
kBorderColor: "#eb5454",
|
|
49
|
+
kBorderColor0: "#47b262",
|
|
50
|
+
kBorderWidth: 1,
|
|
51
|
+
lineWidth: 2,
|
|
52
|
+
symbolSize: 4,
|
|
53
|
+
symbol: "emptyCircle",
|
|
54
|
+
symbolBorderWidth: 1,
|
|
55
|
+
lineSmooth: false,
|
|
56
|
+
graphLineWidth: 1,
|
|
57
|
+
graphLineColor: "#aaa",
|
|
58
|
+
mapLabelColor: "#000",
|
|
59
|
+
mapLabelColorE: "rgb(100,0,0)",
|
|
60
|
+
mapBorderColor: "#444",
|
|
61
|
+
mapBorderColorE: "#444",
|
|
62
|
+
mapBorderWidth: 0.5,
|
|
63
|
+
mapBorderWidthE: 1,
|
|
64
|
+
mapAreaColor: "#eee",
|
|
65
|
+
mapAreaColorE: "rgba(255,215,0,0.8)",
|
|
66
|
+
axes: [
|
|
67
|
+
{
|
|
68
|
+
type: "all",
|
|
69
|
+
name: "\u901A\u7528\u5750\u6807\u8F74",
|
|
70
|
+
axisLineShow: true,
|
|
71
|
+
axisLineColor: "#6E7079",
|
|
72
|
+
axisTickShow: true,
|
|
73
|
+
axisTickColor: "#6E7079",
|
|
74
|
+
axisLabelShow: true,
|
|
75
|
+
axisLabelColor: "#6E7079",
|
|
76
|
+
splitLineShow: true,
|
|
77
|
+
splitLineColor: ["#E0E6F1"],
|
|
78
|
+
splitAreaShow: false,
|
|
79
|
+
splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
type: "category",
|
|
83
|
+
name: "\u7C7B\u76EE\u5750\u6807\u8F74",
|
|
84
|
+
axisLineShow: true,
|
|
85
|
+
axisLineColor: "#6E7079",
|
|
86
|
+
axisTickShow: true,
|
|
87
|
+
axisTickColor: "#6E7079",
|
|
88
|
+
axisLabelShow: true,
|
|
89
|
+
axisLabelColor: "#6E7079",
|
|
90
|
+
splitLineShow: false,
|
|
91
|
+
splitLineColor: ["#E0E6F1"],
|
|
92
|
+
splitAreaShow: false,
|
|
93
|
+
splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
type: "value",
|
|
97
|
+
name: "\u6570\u503C\u5750\u6807\u8F74",
|
|
98
|
+
axisLineShow: false,
|
|
99
|
+
axisLineColor: "#6E7079",
|
|
100
|
+
axisTickShow: false,
|
|
101
|
+
axisTickColor: "#6E7079",
|
|
102
|
+
axisLabelShow: true,
|
|
103
|
+
axisLabelColor: "#6E7079",
|
|
104
|
+
splitLineShow: true,
|
|
105
|
+
splitLineColor: ["#E0E6F1"],
|
|
106
|
+
splitAreaShow: false,
|
|
107
|
+
splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
type: "log",
|
|
111
|
+
name: "\u5BF9\u6570\u5750\u6807\u8F74",
|
|
112
|
+
axisLineShow: false,
|
|
113
|
+
axisLineColor: "#6E7079",
|
|
114
|
+
axisTickShow: false,
|
|
115
|
+
axisTickColor: "#6E7079",
|
|
116
|
+
axisLabelShow: true,
|
|
117
|
+
axisLabelColor: "#6E7079",
|
|
118
|
+
splitLineShow: true,
|
|
119
|
+
splitLineColor: ["#E0E6F1"],
|
|
120
|
+
splitAreaShow: false,
|
|
121
|
+
splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
type: "time",
|
|
125
|
+
name: "\u65F6\u95F4\u5750\u6807\u8F74",
|
|
126
|
+
axisLineShow: true,
|
|
127
|
+
axisLineColor: "#6E7079",
|
|
128
|
+
axisTickShow: true,
|
|
129
|
+
axisTickColor: "#6E7079",
|
|
130
|
+
axisLabelShow: true,
|
|
131
|
+
axisLabelColor: "#6E7079",
|
|
132
|
+
splitLineShow: false,
|
|
133
|
+
splitLineColor: ["#E0E6F1"],
|
|
134
|
+
splitAreaShow: false,
|
|
135
|
+
splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
axisSeperateSetting: true,
|
|
139
|
+
toolboxColor: "#8d8d8d",
|
|
140
|
+
toolboxEmphasisColor: "#1c2024",
|
|
141
|
+
tooltipAxisColor: "#cccccc",
|
|
142
|
+
tooltipAxisWidth: 1,
|
|
143
|
+
timelineLineColor: "#dae1f5",
|
|
144
|
+
timelineLineWidth: 2,
|
|
145
|
+
timelineItemColor: "#a4b1d7",
|
|
146
|
+
timelineItemColorE: "#ffffff",
|
|
147
|
+
timelineCheckColor: "#316bf3",
|
|
148
|
+
timelineCheckBorderColor: "#ffffff",
|
|
149
|
+
timelineItemBorderWidth: 1,
|
|
150
|
+
timelineControlColor: "#a4b1d7",
|
|
151
|
+
timelineControlBorderColor: "#a4b1d7",
|
|
152
|
+
timelineControlBorderWidth: 1,
|
|
153
|
+
timelineLabelColor: "#a4b1d7"
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
// src/charts/chart.tsx
|
|
158
|
+
import { jsx } from "react/jsx-runtime";
|
|
159
|
+
echarts.use([
|
|
160
|
+
SVGRenderer,
|
|
161
|
+
PieChart,
|
|
162
|
+
LineChart,
|
|
163
|
+
TooltipComponent,
|
|
164
|
+
GridComponent,
|
|
165
|
+
LegendComponent,
|
|
166
|
+
ToolboxComponent,
|
|
167
|
+
AriaComponent,
|
|
168
|
+
AxisPointerComponent,
|
|
169
|
+
GridSimpleComponent
|
|
170
|
+
]);
|
|
171
|
+
function Chart(props) {
|
|
172
|
+
const { width, height, ref } = useResizeDetector({
|
|
173
|
+
handleHeight: false,
|
|
174
|
+
refreshMode: "debounce",
|
|
175
|
+
refreshRate: 100
|
|
176
|
+
});
|
|
177
|
+
const option = useMemo(() => {
|
|
178
|
+
const baseOption = {
|
|
179
|
+
// textStyle: { fontFamily: 'Noto Sans KR' },
|
|
180
|
+
// tooltip: { textStyle: { fontSize: 16 } },
|
|
181
|
+
};
|
|
182
|
+
return merge(baseOption, props.option);
|
|
183
|
+
}, [props.option]);
|
|
184
|
+
return /* @__PURE__ */ jsx("div", { ref, style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsx(
|
|
185
|
+
ReactEChartsCore,
|
|
186
|
+
{
|
|
187
|
+
echarts,
|
|
188
|
+
option: {},
|
|
189
|
+
style: { height: "100%", width: "100%" }
|
|
190
|
+
}
|
|
191
|
+
) });
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export {
|
|
195
|
+
chart_theme_default,
|
|
196
|
+
Chart
|
|
197
|
+
};
|
|
198
|
+
//# sourceMappingURL=chunk-6O2MNTGU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/charts/chart.tsx","../src/charts/chart-theme.json"],"sourcesContent":["import ReactEChartsCore from 'echarts-for-react/lib/core';\n\nimport React, { useMemo } from 'react';\nimport { useResizeDetector } from 'react-resize-detector';\nimport { merge } from 'lodash-es';\nimport type { EChartsOption } from 'echarts';\nimport * as echarts from 'echarts/core';\nimport EChartsReactCore from 'echarts-for-react/lib/core';\nimport { PieChart, LineChart } from 'echarts/charts';\nimport { SVGRenderer } from 'echarts/renderers';\nimport {\n GridSimpleComponent,\n // PolarComponent,\n // RadarComponent,\n // GeoComponent,\n // SingleAxisComponent,\n // ParallelComponent,\n // CalendarComponent,\n // GraphicComponent,\n AxisPointerComponent,\n // BrushComponent,\n // TimelineComponent,\n // MarkPointComponent,\n // MarkLineComponent,\n // MarkAreaComponent,\n // LegendScrollComponent,\n // LegendPlainComponent,\n // DataZoomComponent,\n // DataZoomInsideComponent,\n // DataZoomSliderComponent,\n // VisualMapComponent,\n // VisualMapContinuousComponent,\n // VisualMapPiecewiseComponent,\n AriaComponent,\n // TransformComponent,\n TooltipComponent,\n GridComponent,\n LegendComponent,\n ToolboxComponent,\n} from 'echarts/components';\nimport chartTheme from './chart-theme.json';\n\necharts.use([\n SVGRenderer,\n PieChart,\n LineChart,\n TooltipComponent,\n GridComponent,\n LegendComponent,\n ToolboxComponent,\n AriaComponent,\n AxisPointerComponent,\n GridSimpleComponent,\n]);\n\nexport type ChartProps = Omit<\n React.ComponentProps<typeof EChartsReactCore>,\n 'option'\n> & {\n option: EChartsOption;\n};\n\nexport function Chart(props: ChartProps): JSX.Element {\n const { width, height, ref } = useResizeDetector({\n handleHeight: false,\n refreshMode: 'debounce',\n refreshRate: 100,\n });\n\n const option = useMemo(() => {\n const baseOption: EChartsOption = {\n // textStyle: { fontFamily: 'Noto Sans KR' },\n // tooltip: { textStyle: { fontSize: 16 } },\n };\n return merge(baseOption, props.option);\n }, [props.option]);\n\n return (\n <div ref={ref} style={{ width: '100%', height: '100%' }}>\n {/* <EChartsReactCore\n // opts={{ renderer: 'svg' }}\n // style={{ width, height }}\n // theme={chartTheme}\n // {...props}\n option={option}\n /> */}\n <ReactEChartsCore\n echarts={echarts}\n option={{}}\n style={{ height: '100%', width: '100%' }}\n ></ReactEChartsCore>\n </div>\n );\n}\n\nexport { chartTheme };\n","{\n \"version\": 1,\n \"themeName\": \"customed\",\n \"theme\": {\n \"seriesCnt\": \"5\",\n \"backgroundColor\": \"rgba(0,0,0,0)\",\n \"titleColor\": \"#1c2024\",\n \"subtitleColor\": \"#8d8d8d\",\n \"textColorShow\": false,\n \"textColor\": \"#333\",\n \"markTextColor\": \"#ffffff\",\n \"color\": [\n \"#ffe629\",\n \"#3e63dd\",\n \"#ec9455\",\n \"#5bb98b\",\n \"#cb1d63\",\n \"#3ba272\",\n \"#fc8452\",\n \"#9a60b4\",\n \"#ea7ccc\"\n ],\n \"borderColor\": \"#8d8d8d\",\n \"borderWidth\": 0,\n \"visualMapColor\": [\"#bf444c\", \"#d88273\", \"#f6efa6\"],\n \"legendTextColor\": \"#1c2024\",\n \"kColor\": \"#eb5454\",\n \"kColor0\": \"#47b262\",\n \"kBorderColor\": \"#eb5454\",\n \"kBorderColor0\": \"#47b262\",\n \"kBorderWidth\": 1,\n \"lineWidth\": 2,\n \"symbolSize\": 4,\n \"symbol\": \"emptyCircle\",\n \"symbolBorderWidth\": 1,\n \"lineSmooth\": false,\n \"graphLineWidth\": 1,\n \"graphLineColor\": \"#aaa\",\n \"mapLabelColor\": \"#000\",\n \"mapLabelColorE\": \"rgb(100,0,0)\",\n \"mapBorderColor\": \"#444\",\n \"mapBorderColorE\": \"#444\",\n \"mapBorderWidth\": 0.5,\n \"mapBorderWidthE\": 1,\n \"mapAreaColor\": \"#eee\",\n \"mapAreaColorE\": \"rgba(255,215,0,0.8)\",\n \"axes\": [\n {\n \"type\": \"all\",\n \"name\": \"通用坐标轴\",\n \"axisLineShow\": true,\n \"axisLineColor\": \"#6E7079\",\n \"axisTickShow\": true,\n \"axisTickColor\": \"#6E7079\",\n \"axisLabelShow\": true,\n \"axisLabelColor\": \"#6E7079\",\n \"splitLineShow\": true,\n \"splitLineColor\": [\"#E0E6F1\"],\n \"splitAreaShow\": false,\n \"splitAreaColor\": [\"rgba(250,250,250,0.2)\", \"rgba(210,219,238,0.2)\"]\n },\n {\n \"type\": \"category\",\n \"name\": \"类目坐标轴\",\n \"axisLineShow\": true,\n \"axisLineColor\": \"#6E7079\",\n \"axisTickShow\": true,\n \"axisTickColor\": \"#6E7079\",\n \"axisLabelShow\": true,\n \"axisLabelColor\": \"#6E7079\",\n \"splitLineShow\": false,\n \"splitLineColor\": [\"#E0E6F1\"],\n \"splitAreaShow\": false,\n \"splitAreaColor\": [\"rgba(250,250,250,0.2)\", \"rgba(210,219,238,0.2)\"]\n },\n {\n \"type\": \"value\",\n \"name\": \"数值坐标轴\",\n \"axisLineShow\": false,\n \"axisLineColor\": \"#6E7079\",\n \"axisTickShow\": false,\n \"axisTickColor\": \"#6E7079\",\n \"axisLabelShow\": true,\n \"axisLabelColor\": \"#6E7079\",\n \"splitLineShow\": true,\n \"splitLineColor\": [\"#E0E6F1\"],\n \"splitAreaShow\": false,\n \"splitAreaColor\": [\"rgba(250,250,250,0.2)\", \"rgba(210,219,238,0.2)\"]\n },\n {\n \"type\": \"log\",\n \"name\": \"对数坐标轴\",\n \"axisLineShow\": false,\n \"axisLineColor\": \"#6E7079\",\n \"axisTickShow\": false,\n \"axisTickColor\": \"#6E7079\",\n \"axisLabelShow\": true,\n \"axisLabelColor\": \"#6E7079\",\n \"splitLineShow\": true,\n \"splitLineColor\": [\"#E0E6F1\"],\n \"splitAreaShow\": false,\n \"splitAreaColor\": [\"rgba(250,250,250,0.2)\", \"rgba(210,219,238,0.2)\"]\n },\n {\n \"type\": \"time\",\n \"name\": \"时间坐标轴\",\n \"axisLineShow\": true,\n \"axisLineColor\": \"#6E7079\",\n \"axisTickShow\": true,\n \"axisTickColor\": \"#6E7079\",\n \"axisLabelShow\": true,\n \"axisLabelColor\": \"#6E7079\",\n \"splitLineShow\": false,\n \"splitLineColor\": [\"#E0E6F1\"],\n \"splitAreaShow\": false,\n \"splitAreaColor\": [\"rgba(250,250,250,0.2)\", \"rgba(210,219,238,0.2)\"]\n }\n ],\n \"axisSeperateSetting\": true,\n \"toolboxColor\": \"#8d8d8d\",\n \"toolboxEmphasisColor\": \"#1c2024\",\n \"tooltipAxisColor\": \"#cccccc\",\n \"tooltipAxisWidth\": 1,\n \"timelineLineColor\": \"#dae1f5\",\n \"timelineLineWidth\": 2,\n \"timelineItemColor\": \"#a4b1d7\",\n \"timelineItemColorE\": \"#ffffff\",\n \"timelineCheckColor\": \"#316bf3\",\n \"timelineCheckBorderColor\": \"#ffffff\",\n \"timelineItemBorderWidth\": 1,\n \"timelineControlColor\": \"#a4b1d7\",\n \"timelineControlBorderColor\": \"#a4b1d7\",\n \"timelineControlBorderWidth\": 1,\n \"timelineLabelColor\": \"#a4b1d7\"\n }\n}\n"],"mappings":";AAAA,OAAO,sBAAsB;AAE7B,SAAgB,eAAe;AAC/B,SAAS,yBAAyB;AAClC,SAAS,aAAa;AAEtB,YAAY,aAAa;AAEzB,SAAS,UAAU,iBAAiB;AACpC,SAAS,mBAAmB;AAC5B;AAAA,EACE;AAAA,EAQA;AAAA,EAcA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;;;ACvCP;AAAA,EACE,SAAW;AAAA,EACX,WAAa;AAAA,EACb,OAAS;AAAA,IACP,WAAa;AAAA,IACb,iBAAmB;AAAA,IACnB,YAAc;AAAA,IACd,eAAiB;AAAA,IACjB,eAAiB;AAAA,IACjB,WAAa;AAAA,IACb,eAAiB;AAAA,IACjB,OAAS;AAAA,MACP;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACA,aAAe;AAAA,IACf,aAAe;AAAA,IACf,gBAAkB,CAAC,WAAW,WAAW,SAAS;AAAA,IAClD,iBAAmB;AAAA,IACnB,QAAU;AAAA,IACV,SAAW;AAAA,IACX,cAAgB;AAAA,IAChB,eAAiB;AAAA,IACjB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AA;AAAA;AAAA,IAGlC;AACA,WAAO,MAAM,YAAY,MAAM,MAAM;AAAA,EACvC,GAAG,CAAC,MAAM,MAAM,CAAC;AAEjB,SACE,oBAAC,SAAI,KAAU,OAAO,EAAE,OAAO,QAAQ,QAAQ,OAAO,GAQpD;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,QAAQ,CAAC;AAAA,MACT,OAAO,EAAE,QAAQ,QAAQ,OAAO,OAAO;AAAA;AAAA,EACxC,GACH;AAEJ;","names":[]}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__spreadProps,
|
|
3
|
+
__spreadValues
|
|
4
|
+
} from "./chunk-N552FDTV.js";
|
|
5
|
+
|
|
6
|
+
// src/charts/chart.tsx
|
|
7
|
+
import { useMemo } from "react";
|
|
8
|
+
import { useResizeDetector } from "react-resize-detector";
|
|
9
|
+
import { merge } from "lodash-es";
|
|
10
|
+
import * as echarts from "echarts/core";
|
|
11
|
+
import EChartsReactCore from "echarts-for-react/lib/core";
|
|
12
|
+
import { PieChart, LineChart } from "echarts/charts";
|
|
13
|
+
import { SVGRenderer } from "echarts/renderers";
|
|
14
|
+
import {
|
|
15
|
+
TooltipComponent,
|
|
16
|
+
GridComponent,
|
|
17
|
+
LegendComponent
|
|
18
|
+
} from "echarts/components";
|
|
19
|
+
|
|
20
|
+
// src/charts/chart-theme.json
|
|
21
|
+
var chart_theme_default = {
|
|
22
|
+
version: 1,
|
|
23
|
+
themeName: "customed",
|
|
24
|
+
theme: {
|
|
25
|
+
seriesCnt: "5",
|
|
26
|
+
backgroundColor: "rgba(0,0,0,0)",
|
|
27
|
+
titleColor: "#1c2024",
|
|
28
|
+
subtitleColor: "#8d8d8d",
|
|
29
|
+
textColorShow: false,
|
|
30
|
+
textColor: "#333",
|
|
31
|
+
markTextColor: "#ffffff",
|
|
32
|
+
color: [
|
|
33
|
+
"#ffe629",
|
|
34
|
+
"#3e63dd",
|
|
35
|
+
"#ec9455",
|
|
36
|
+
"#5bb98b",
|
|
37
|
+
"#cb1d63",
|
|
38
|
+
"#3ba272",
|
|
39
|
+
"#fc8452",
|
|
40
|
+
"#9a60b4",
|
|
41
|
+
"#ea7ccc"
|
|
42
|
+
],
|
|
43
|
+
borderColor: "#8d8d8d",
|
|
44
|
+
borderWidth: 0,
|
|
45
|
+
visualMapColor: ["#bf444c", "#d88273", "#f6efa6"],
|
|
46
|
+
legendTextColor: "#1c2024",
|
|
47
|
+
kColor: "#eb5454",
|
|
48
|
+
kColor0: "#47b262",
|
|
49
|
+
kBorderColor: "#eb5454",
|
|
50
|
+
kBorderColor0: "#47b262",
|
|
51
|
+
kBorderWidth: 1,
|
|
52
|
+
lineWidth: 2,
|
|
53
|
+
symbolSize: 4,
|
|
54
|
+
symbol: "emptyCircle",
|
|
55
|
+
symbolBorderWidth: 1,
|
|
56
|
+
lineSmooth: false,
|
|
57
|
+
graphLineWidth: 1,
|
|
58
|
+
graphLineColor: "#aaa",
|
|
59
|
+
mapLabelColor: "#000",
|
|
60
|
+
mapLabelColorE: "rgb(100,0,0)",
|
|
61
|
+
mapBorderColor: "#444",
|
|
62
|
+
mapBorderColorE: "#444",
|
|
63
|
+
mapBorderWidth: 0.5,
|
|
64
|
+
mapBorderWidthE: 1,
|
|
65
|
+
mapAreaColor: "#eee",
|
|
66
|
+
mapAreaColorE: "rgba(255,215,0,0.8)",
|
|
67
|
+
axes: [
|
|
68
|
+
{
|
|
69
|
+
type: "all",
|
|
70
|
+
name: "\u901A\u7528\u5750\u6807\u8F74",
|
|
71
|
+
axisLineShow: true,
|
|
72
|
+
axisLineColor: "#6E7079",
|
|
73
|
+
axisTickShow: true,
|
|
74
|
+
axisTickColor: "#6E7079",
|
|
75
|
+
axisLabelShow: true,
|
|
76
|
+
axisLabelColor: "#6E7079",
|
|
77
|
+
splitLineShow: true,
|
|
78
|
+
splitLineColor: ["#E0E6F1"],
|
|
79
|
+
splitAreaShow: false,
|
|
80
|
+
splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
type: "category",
|
|
84
|
+
name: "\u7C7B\u76EE\u5750\u6807\u8F74",
|
|
85
|
+
axisLineShow: true,
|
|
86
|
+
axisLineColor: "#6E7079",
|
|
87
|
+
axisTickShow: true,
|
|
88
|
+
axisTickColor: "#6E7079",
|
|
89
|
+
axisLabelShow: true,
|
|
90
|
+
axisLabelColor: "#6E7079",
|
|
91
|
+
splitLineShow: false,
|
|
92
|
+
splitLineColor: ["#E0E6F1"],
|
|
93
|
+
splitAreaShow: false,
|
|
94
|
+
splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
type: "value",
|
|
98
|
+
name: "\u6570\u503C\u5750\u6807\u8F74",
|
|
99
|
+
axisLineShow: false,
|
|
100
|
+
axisLineColor: "#6E7079",
|
|
101
|
+
axisTickShow: false,
|
|
102
|
+
axisTickColor: "#6E7079",
|
|
103
|
+
axisLabelShow: true,
|
|
104
|
+
axisLabelColor: "#6E7079",
|
|
105
|
+
splitLineShow: true,
|
|
106
|
+
splitLineColor: ["#E0E6F1"],
|
|
107
|
+
splitAreaShow: false,
|
|
108
|
+
splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
type: "log",
|
|
112
|
+
name: "\u5BF9\u6570\u5750\u6807\u8F74",
|
|
113
|
+
axisLineShow: false,
|
|
114
|
+
axisLineColor: "#6E7079",
|
|
115
|
+
axisTickShow: false,
|
|
116
|
+
axisTickColor: "#6E7079",
|
|
117
|
+
axisLabelShow: true,
|
|
118
|
+
axisLabelColor: "#6E7079",
|
|
119
|
+
splitLineShow: true,
|
|
120
|
+
splitLineColor: ["#E0E6F1"],
|
|
121
|
+
splitAreaShow: false,
|
|
122
|
+
splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
type: "time",
|
|
126
|
+
name: "\u65F6\u95F4\u5750\u6807\u8F74",
|
|
127
|
+
axisLineShow: true,
|
|
128
|
+
axisLineColor: "#6E7079",
|
|
129
|
+
axisTickShow: true,
|
|
130
|
+
axisTickColor: "#6E7079",
|
|
131
|
+
axisLabelShow: true,
|
|
132
|
+
axisLabelColor: "#6E7079",
|
|
133
|
+
splitLineShow: false,
|
|
134
|
+
splitLineColor: ["#E0E6F1"],
|
|
135
|
+
splitAreaShow: false,
|
|
136
|
+
splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
axisSeperateSetting: true,
|
|
140
|
+
toolboxColor: "#8d8d8d",
|
|
141
|
+
toolboxEmphasisColor: "#1c2024",
|
|
142
|
+
tooltipAxisColor: "#cccccc",
|
|
143
|
+
tooltipAxisWidth: 1,
|
|
144
|
+
timelineLineColor: "#dae1f5",
|
|
145
|
+
timelineLineWidth: 2,
|
|
146
|
+
timelineItemColor: "#a4b1d7",
|
|
147
|
+
timelineItemColorE: "#ffffff",
|
|
148
|
+
timelineCheckColor: "#316bf3",
|
|
149
|
+
timelineCheckBorderColor: "#ffffff",
|
|
150
|
+
timelineItemBorderWidth: 1,
|
|
151
|
+
timelineControlColor: "#a4b1d7",
|
|
152
|
+
timelineControlBorderColor: "#a4b1d7",
|
|
153
|
+
timelineControlBorderWidth: 1,
|
|
154
|
+
timelineLabelColor: "#a4b1d7"
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
// src/charts/chart.tsx
|
|
159
|
+
import { jsx } from "react/jsx-runtime";
|
|
160
|
+
echarts.use([
|
|
161
|
+
SVGRenderer,
|
|
162
|
+
PieChart,
|
|
163
|
+
LineChart,
|
|
164
|
+
TooltipComponent,
|
|
165
|
+
GridComponent,
|
|
166
|
+
LegendComponent
|
|
167
|
+
]);
|
|
168
|
+
function Chart(props) {
|
|
169
|
+
const { width, height, ref } = useResizeDetector({
|
|
170
|
+
handleHeight: false,
|
|
171
|
+
refreshMode: "debounce",
|
|
172
|
+
refreshRate: 100
|
|
173
|
+
});
|
|
174
|
+
const option = useMemo(() => {
|
|
175
|
+
const baseOption = {
|
|
176
|
+
textStyle: { fontFamily: "Noto Sans KR" },
|
|
177
|
+
tooltip: { textStyle: { fontSize: 16 } }
|
|
178
|
+
};
|
|
179
|
+
return merge(baseOption, props.option);
|
|
180
|
+
}, [props.option]);
|
|
181
|
+
return /* @__PURE__ */ jsx("div", { ref, style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsx(
|
|
182
|
+
EChartsReactCore,
|
|
183
|
+
__spreadProps(__spreadValues({
|
|
184
|
+
opts: { renderer: "svg" },
|
|
185
|
+
style: { width, height },
|
|
186
|
+
theme: chart_theme_default
|
|
187
|
+
}, props), {
|
|
188
|
+
option
|
|
189
|
+
})
|
|
190
|
+
) });
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export {
|
|
194
|
+
chart_theme_default,
|
|
195
|
+
Chart
|
|
196
|
+
};
|
|
197
|
+
//# sourceMappingURL=chunk-7HRYZ7NQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/charts/chart.tsx","../src/charts/chart-theme.json"],"sourcesContent":["import React, { useMemo } from 'react';\nimport { useResizeDetector } from 'react-resize-detector';\nimport { merge } from 'lodash-es';\nimport type { EChartsOption } from 'echarts';\nimport * as echarts from 'echarts/core';\nimport EChartsReactCore from 'echarts-for-react/lib/core';\nimport { PieChart, LineChart } from 'echarts/charts';\nimport { SVGRenderer } from 'echarts/renderers';\nimport {\n TooltipComponent,\n GridComponent,\n LegendComponent,\n} from 'echarts/components';\nimport chartTheme from './chart-theme.json';\n\necharts.use([\n SVGRenderer,\n PieChart,\n LineChart,\n TooltipComponent,\n GridComponent,\n LegendComponent,\n]);\n\nexport type ChartProps = Omit<\n React.ComponentProps<typeof EChartsReactCore>,\n 'option'\n> & {\n option: EChartsOption;\n};\n\nexport function Chart(props: ChartProps): JSX.Element {\n const { width, height, ref } = useResizeDetector({\n handleHeight: false,\n refreshMode: 'debounce',\n refreshRate: 100,\n });\n\n const option = useMemo(() => {\n const baseOption: EChartsOption = {\n textStyle: { fontFamily: 'Noto Sans KR' },\n tooltip: { textStyle: { fontSize: 16 } },\n };\n return merge(baseOption, props.option);\n }, [props.option]);\n\n return (\n <div ref={ref} style={{ width: '100%', height: '100%' }}>\n <EChartsReactCore\n opts={{ renderer: 'svg' }}\n style={{ width, height }}\n theme={chartTheme}\n {...props}\n option={option}\n />\n </div>\n );\n}\n\nexport { chartTheme };\n","{\n \"version\": 1,\n \"themeName\": \"customed\",\n \"theme\": {\n \"seriesCnt\": \"5\",\n \"backgroundColor\": \"rgba(0,0,0,0)\",\n \"titleColor\": \"#1c2024\",\n \"subtitleColor\": \"#8d8d8d\",\n \"textColorShow\": false,\n \"textColor\": \"#333\",\n \"markTextColor\": \"#ffffff\",\n \"color\": [\n \"#ffe629\",\n \"#3e63dd\",\n \"#ec9455\",\n \"#5bb98b\",\n \"#cb1d63\",\n \"#3ba272\",\n \"#fc8452\",\n \"#9a60b4\",\n \"#ea7ccc\"\n ],\n \"borderColor\": \"#8d8d8d\",\n \"borderWidth\": 0,\n \"visualMapColor\": [\"#bf444c\", \"#d88273\", \"#f6efa6\"],\n \"legendTextColor\": \"#1c2024\",\n \"kColor\": \"#eb5454\",\n \"kColor0\": \"#47b262\",\n \"kBorderColor\": \"#eb5454\",\n \"kBorderColor0\": \"#47b262\",\n \"kBorderWidth\": 1,\n \"lineWidth\": 2,\n \"symbolSize\": 4,\n \"symbol\": \"emptyCircle\",\n \"symbolBorderWidth\": 1,\n \"lineSmooth\": false,\n \"graphLineWidth\": 1,\n \"graphLineColor\": \"#aaa\",\n \"mapLabelColor\": \"#000\",\n \"mapLabelColorE\": \"rgb(100,0,0)\",\n \"mapBorderColor\": \"#444\",\n \"mapBorderColorE\": \"#444\",\n \"mapBorderWidth\": 0.5,\n \"mapBorderWidthE\": 1,\n \"mapAreaColor\": \"#eee\",\n \"mapAreaColorE\": \"rgba(255,215,0,0.8)\",\n \"axes\": [\n {\n \"type\": \"all\",\n \"name\": \"通用坐标轴\",\n \"axisLineShow\": true,\n \"axisLineColor\": \"#6E7079\",\n \"axisTickShow\": true,\n \"axisTickColor\": \"#6E7079\",\n \"axisLabelShow\": true,\n \"axisLabelColor\": \"#6E7079\",\n \"splitLineShow\": true,\n \"splitLineColor\": [\"#E0E6F1\"],\n \"splitAreaShow\": false,\n \"splitAreaColor\": [\"rgba(250,250,250,0.2)\", \"rgba(210,219,238,0.2)\"]\n },\n {\n \"type\": \"category\",\n \"name\": \"类目坐标轴\",\n \"axisLineShow\": true,\n \"axisLineColor\": \"#6E7079\",\n \"axisTickShow\": true,\n \"axisTickColor\": \"#6E7079\",\n \"axisLabelShow\": true,\n \"axisLabelColor\": \"#6E7079\",\n \"splitLineShow\": false,\n \"splitLineColor\": [\"#E0E6F1\"],\n \"splitAreaShow\": false,\n \"splitAreaColor\": [\"rgba(250,250,250,0.2)\", \"rgba(210,219,238,0.2)\"]\n },\n {\n \"type\": \"value\",\n \"name\": \"数值坐标轴\",\n \"axisLineShow\": false,\n \"axisLineColor\": \"#6E7079\",\n \"axisTickShow\": false,\n \"axisTickColor\": \"#6E7079\",\n \"axisLabelShow\": true,\n \"axisLabelColor\": \"#6E7079\",\n \"splitLineShow\": true,\n \"splitLineColor\": [\"#E0E6F1\"],\n \"splitAreaShow\": false,\n \"splitAreaColor\": [\"rgba(250,250,250,0.2)\", \"rgba(210,219,238,0.2)\"]\n },\n {\n \"type\": \"log\",\n \"name\": \"对数坐标轴\",\n \"axisLineShow\": false,\n \"axisLineColor\": \"#6E7079\",\n \"axisTickShow\": false,\n \"axisTickColor\": \"#6E7079\",\n \"axisLabelShow\": true,\n \"axisLabelColor\": \"#6E7079\",\n \"splitLineShow\": true,\n \"splitLineColor\": [\"#E0E6F1\"],\n \"splitAreaShow\": false,\n \"splitAreaColor\": [\"rgba(250,250,250,0.2)\", \"rgba(210,219,238,0.2)\"]\n },\n {\n \"type\": \"time\",\n \"name\": \"时间坐标轴\",\n \"axisLineShow\": true,\n \"axisLineColor\": \"#6E7079\",\n \"axisTickShow\": true,\n \"axisTickColor\": \"#6E7079\",\n \"axisLabelShow\": true,\n \"axisLabelColor\": \"#6E7079\",\n \"splitLineShow\": false,\n \"splitLineColor\": [\"#E0E6F1\"],\n \"splitAreaShow\": false,\n \"splitAreaColor\": [\"rgba(250,250,250,0.2)\", \"rgba(210,219,238,0.2)\"]\n }\n ],\n \"axisSeperateSetting\": true,\n \"toolboxColor\": \"#8d8d8d\",\n \"toolboxEmphasisColor\": \"#1c2024\",\n \"tooltipAxisColor\": \"#cccccc\",\n \"tooltipAxisWidth\": 1,\n \"timelineLineColor\": \"#dae1f5\",\n \"timelineLineWidth\": 2,\n \"timelineItemColor\": \"#a4b1d7\",\n \"timelineItemColorE\": \"#ffffff\",\n \"timelineCheckColor\": \"#316bf3\",\n \"timelineCheckBorderColor\": \"#ffffff\",\n \"timelineItemBorderWidth\": 1,\n \"timelineControlColor\": \"#a4b1d7\",\n \"timelineControlBorderColor\": \"#a4b1d7\",\n \"timelineControlBorderWidth\": 1,\n \"timelineLabelColor\": \"#a4b1d7\"\n }\n}\n"],"mappings":";;;;;;AAAA,SAAgB,eAAe;AAC/B,SAAS,yBAAyB;AAClC,SAAS,aAAa;AAEtB,YAAY,aAAa;AACzB,OAAO,sBAAsB;AAC7B,SAAS,UAAU,iBAAiB;AACpC,SAAS,mBAAmB;AAC5B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;;;ACZP;AAAA,EACE,SAAW;AAAA,EACX,WAAa;AAAA,EACb,OAAS;AAAA,IACP,WAAa;AAAA,IACb,iBAAmB;AAAA,IACnB,YAAc;AAAA,IACd,eAAiB;AAAA,IACjB,eAAiB;AAA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