@hybridcore/ui 1.6.8 → 1.6.10
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/AnimatedTheme-ktdO3Bel.js +7708 -0
- package/dist/{AxisRenderer-DTyLLA6c.js → AxisRenderer-BCQoUJw6.js} +51 -49
- package/dist/{AxisRendererY-C_ItLPNV.js → AxisRendererY-AXWvGU6r.js} +3 -3
- package/dist/{Bullet-DVczI2TD.js → Bullet-Djj7Vs9T.js} +1 -1
- package/dist/{Button-CcsPEIDh.js → Button-BLY4PVJC.js} +3 -3
- package/dist/{CategoryAxis-CwnfaGc8.js → CategoryAxis-B6NqW8qd.js} +3 -3
- package/dist/{Circle-Cy5s-pVc.js → Circle-BnfBNKBD.js} +1 -1
- package/dist/ColorSet-cyPmWGwh.js +77 -0
- package/dist/{ColumnSeries-CjgdJ2QL.js → ColumnSeries-CtRTsn-E.js} +4 -4
- package/dist/{DateAxis-YX3QNIB-.js → DateAxis-DEXKps1S.js} +8 -7
- package/dist/{ColorSet-C7vpNXhM.js → Entity-BJCuhdq_.js} +638 -712
- package/dist/GaplessDateAxis-B2g2jgSG.js +376 -0
- package/dist/{Hierarchy-Bihj0S61.js → Hierarchy-CEOK8Gzh.js} +21 -19
- package/dist/{Legend-Dp_MKfS4.js → Legend-CFvQiIfn.js} +11 -10
- package/dist/{LineSeries-Uiv5o56b.js → LineSeries-D_IL2qGF.js} +13 -12
- package/dist/{LinearGradient-DiRq5YcI.js → LinearGradient-CxQyCSEB.js} +11 -11
- package/dist/{PieSeries-B2fW3z0s.js → PieSeries-CMH0Z7pz.js} +34 -32
- package/dist/{RoundedRectangle-CWLi2PXn.js → RoundedRectangle-BKLX1LKM.js} +4 -4
- package/dist/{Scrollbar-D86MJyr2.js → Scrollbar-CTI7_8Qw.js} +4 -4
- package/dist/{Slice-B19rbYDZ.js → Slice-BUncQh1B.js} +2 -2
- package/dist/{Tick-2bcLyHpF.js → Tick--VhF0xlz.js} +15 -15
- package/dist/Tooltip-vyZRZWih.js +3606 -0
- package/dist/{XYCursor-C8WktvKM.js → XYCursor-CVUSpqb9.js} +3 -3
- package/dist/{ZoomableContainer-DYyqwaMb.js → ZoomableContainer-Ca_pDVYQ.js} +7 -7
- package/dist/components/charts/_common/tooltip.js +73 -0
- package/dist/components/charts/_common/utils.js +10 -9
- package/dist/components/charts/candlestick/logic.js +191 -164
- package/dist/components/charts/column-line-mix/logic.js +116 -107
- package/dist/components/charts/donut-chart/logic.js +36 -34
- package/dist/components/charts/drill-down-treemap/logic.js +49 -48
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +102 -101
- package/dist/components/charts/heatmap/logic.js +33 -32
- package/dist/components/charts/highlighting-line-data/logic.js +26 -24
- package/dist/components/charts/line/logic.js +147 -185
- package/dist/components/charts/logaritmic-scale/logic.js +99 -84
- package/dist/components/charts/multiple-value-axes/logic.js +117 -107
- package/dist/components/charts/nested-pie/logic.js +3 -3
- package/dist/components/charts/packed-circles/logic.js +28 -27
- package/dist/components/charts/pie-chart/logic.js +43 -41
- package/dist/components/charts/stacked-area-radar/logic.js +124 -121
- package/dist/components/charts/stacked-column-chart/logic.js +107 -95
- package/dist/components/charts/xy-chart/logic.js +112 -98
- package/dist/components/metric-card/MetricChart.js +29 -28
- package/dist/main.d.ts +13 -0
- package/package.json +1 -1
- package/dist/AnimatedTheme-jnasw6rT.js +0 -11305
- package/dist/DataProcessor-CHDO51q4.js +0 -83
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { R as I, A as W
|
|
2
|
-
import { useThemeProps as
|
|
3
|
-
import { useRef as d, useLayoutEffect as
|
|
4
|
-
import { X as
|
|
5
|
-
import { X as
|
|
6
|
-
import { D as
|
|
7
|
-
import { A as
|
|
8
|
-
import { C as
|
|
9
|
-
import {
|
|
10
|
-
import { L as
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { R as I, A as W } from "../../../AnimatedTheme-ktdO3Bel.js";
|
|
2
|
+
import { useThemeProps as z } from "@mui/material";
|
|
3
|
+
import { useRef as d, useLayoutEffect as S } from "react";
|
|
4
|
+
import { X as F, V } from "../../../AxisRenderer-BCQoUJw6.js";
|
|
5
|
+
import { X as G } from "../../../XYCursor-CVUSpqb9.js";
|
|
6
|
+
import { D as M } from "../../../DateAxis-DEXKps1S.js";
|
|
7
|
+
import { A as N, a as P } from "../../../AxisRendererY-AXWvGU6r.js";
|
|
8
|
+
import { C as U } from "../../../ColorSet-cyPmWGwh.js";
|
|
9
|
+
import { c as Z, p as w } from "../../../Entity-BJCuhdq_.js";
|
|
10
|
+
import { L as j } from "../../../LineSeries-D_IL2qGF.js";
|
|
11
|
+
import { T as q } from "../../../Tooltip-vyZRZWih.js";
|
|
12
|
+
import { L as B } from "../../../Legend-CFvQiIfn.js";
|
|
13
|
+
const ie = (v) => {
|
|
14
|
+
const u = z({
|
|
13
15
|
props: v,
|
|
14
16
|
name: "HCHighlightLineChart"
|
|
15
17
|
}), {
|
|
@@ -31,12 +33,12 @@ const ae = (v) => {
|
|
|
31
33
|
loading: g,
|
|
32
34
|
emptyMessage: x
|
|
33
35
|
}, y = d(null), C = d(null), h = d(null);
|
|
34
|
-
return
|
|
36
|
+
return S(() => {
|
|
35
37
|
if (!h.current) return;
|
|
36
38
|
const e = I.new(h.current);
|
|
37
39
|
C.current = e, e.setThemes([W.new(e)]);
|
|
38
40
|
const o = e.container.children.push(
|
|
39
|
-
|
|
41
|
+
F.new(e, {
|
|
40
42
|
panX: !0,
|
|
41
43
|
panY: !0,
|
|
42
44
|
wheelX: "panX",
|
|
@@ -46,26 +48,26 @@ const ae = (v) => {
|
|
|
46
48
|
);
|
|
47
49
|
y.current = o, o.set(
|
|
48
50
|
"cursor",
|
|
49
|
-
|
|
51
|
+
G.new(e, {
|
|
50
52
|
behavior: "zoomX"
|
|
51
53
|
})
|
|
52
54
|
).lineY.set("visible", !1);
|
|
53
55
|
const R = o.xAxes.push(
|
|
54
|
-
|
|
56
|
+
M.new(e, {
|
|
55
57
|
maxDeviation: 0.3,
|
|
56
58
|
baseInterval: { timeUnit: "day", count: 1 },
|
|
57
|
-
renderer:
|
|
59
|
+
renderer: N.new(e, {
|
|
58
60
|
minorGridEnabled: !0
|
|
59
61
|
})
|
|
60
62
|
})
|
|
61
63
|
), Y = o.yAxes.push(
|
|
62
|
-
|
|
63
|
-
renderer:
|
|
64
|
+
V.new(e, {
|
|
65
|
+
renderer: P.new(e, {})
|
|
64
66
|
})
|
|
65
|
-
), c = [], b =
|
|
67
|
+
), c = [], b = U.new(e, {});
|
|
66
68
|
m.forEach((t, i) => {
|
|
67
|
-
const s = t.color ?
|
|
68
|
-
|
|
69
|
+
const s = t.color ? Z(t.color) : b.getIndex(i), r = o.series.push(
|
|
70
|
+
j.new(e, {
|
|
69
71
|
name: t.name,
|
|
70
72
|
xAxis: R,
|
|
71
73
|
yAxis: Y,
|
|
@@ -73,7 +75,7 @@ const ae = (v) => {
|
|
|
73
75
|
valueXField: "date",
|
|
74
76
|
stroke: s,
|
|
75
77
|
fill: s,
|
|
76
|
-
tooltip:
|
|
78
|
+
tooltip: q.new(e, {
|
|
77
79
|
labelText: "{name}: {valueY}"
|
|
78
80
|
})
|
|
79
81
|
})
|
|
@@ -122,5 +124,5 @@ const ae = (v) => {
|
|
|
122
124
|
};
|
|
123
125
|
};
|
|
124
126
|
export {
|
|
125
|
-
|
|
127
|
+
ie as useHighlightLineChartLogic
|
|
126
128
|
};
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { R as
|
|
2
|
-
import { useThemeProps as
|
|
3
|
-
import
|
|
4
|
-
import { useId as
|
|
5
|
-
import { humanizeLabel as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { A as
|
|
11
|
-
import { C as
|
|
12
|
-
import { L as
|
|
13
|
-
import { D as
|
|
14
|
-
import { B as
|
|
15
|
-
import { C as
|
|
16
|
-
import { X as
|
|
17
|
-
import { L as
|
|
18
|
-
|
|
1
|
+
import { R as H, T as Z, A as $ } from "../../../AnimatedTheme-ktdO3Bel.js";
|
|
2
|
+
import { useThemeProps as j, useTheme as q } from "@mui/material";
|
|
3
|
+
import U from "lodash";
|
|
4
|
+
import { useId as J, useRef as K, useEffect as Q } from "react";
|
|
5
|
+
import { humanizeLabel as ee } from "../_common/format.js";
|
|
6
|
+
import { attachCombinedAxisTooltip as te } from "../_common/tooltip.js";
|
|
7
|
+
import { colorSetFromPalette as re, applyValueFormat as se } from "../_common/utils.js";
|
|
8
|
+
import { c as p, p as X, b as V } from "../../../Entity-BJCuhdq_.js";
|
|
9
|
+
import { X as oe, V as ae } from "../../../AxisRenderer-BCQoUJw6.js";
|
|
10
|
+
import { A as _, a as ie } from "../../../AxisRendererY-AXWvGU6r.js";
|
|
11
|
+
import { C as ne } from "../../../CategoryAxis-B6NqW8qd.js";
|
|
12
|
+
import { L as le } from "../../../LineSeries-D_IL2qGF.js";
|
|
13
|
+
import { D as me, G as de } from "../../../GaplessDateAxis-B2g2jgSG.js";
|
|
14
|
+
import { B as pe } from "../../../Bullet-Djj7Vs9T.js";
|
|
15
|
+
import { C as ce } from "../../../Circle-BnfBNKBD.js";
|
|
16
|
+
import { X as ue } from "../../../XYCursor-CVUSpqb9.js";
|
|
17
|
+
import { L as fe } from "../../../Legend-CFvQiIfn.js";
|
|
18
|
+
import { D as he } from "../../../DateAxis-DEXKps1S.js";
|
|
19
|
+
const B = 1.1, ge = {
|
|
19
20
|
millisecond: 1,
|
|
20
21
|
second: 1e3,
|
|
21
22
|
minute: 6e4,
|
|
@@ -24,43 +25,35 @@ const R = 1.1, Ae = {
|
|
|
24
25
|
week: 6048e5,
|
|
25
26
|
month: 2592e6,
|
|
26
27
|
year: 31536e6
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
var $, O, S, Y, P;
|
|
54
|
-
const e = Z.new(H);
|
|
55
|
-
F.current = e;
|
|
56
|
-
const j = q.new(e);
|
|
57
|
-
e.setThemes([J.new(e), j]), e.interfaceColors.setAll({
|
|
58
|
-
text: c(m.palette.text.primary),
|
|
59
|
-
grid: c(m.palette.divider),
|
|
60
|
-
stroke: c(m.palette.divider)
|
|
28
|
+
}, Ve = (E) => {
|
|
29
|
+
const b = j({ props: E, name: "HCLineChart" }), {
|
|
30
|
+
dimensions: t,
|
|
31
|
+
values: m,
|
|
32
|
+
data: g,
|
|
33
|
+
initDelay: P = 0,
|
|
34
|
+
baseInterval: i,
|
|
35
|
+
colors: L,
|
|
36
|
+
connectMissingData: k = !0,
|
|
37
|
+
skipEmptyDates: v = !1,
|
|
38
|
+
sx: R,
|
|
39
|
+
...W
|
|
40
|
+
} = b, l = q(), N = `hc-line-chart-${J().replace(/:/g, "")}`, C = K(null);
|
|
41
|
+
let A = null;
|
|
42
|
+
t.length < 1 ? A = "Missing dimensions config!" : m.length < 1 && (A = "Missing values config!"), Q(() => {
|
|
43
|
+
if (A) return;
|
|
44
|
+
let T;
|
|
45
|
+
return T = setTimeout(() => {
|
|
46
|
+
var G, O, I, M;
|
|
47
|
+
const e = H.new(N);
|
|
48
|
+
C.current = e;
|
|
49
|
+
const z = Z.new(e);
|
|
50
|
+
e.setThemes([$.new(e), z]), e.interfaceColors.setAll({
|
|
51
|
+
text: p(l.palette.text.primary),
|
|
52
|
+
grid: p(l.palette.divider),
|
|
53
|
+
stroke: p(l.palette.divider)
|
|
61
54
|
});
|
|
62
|
-
const
|
|
63
|
-
|
|
55
|
+
const s = e.container.children.push(
|
|
56
|
+
oe.new(e, {
|
|
64
57
|
panX: !0,
|
|
65
58
|
panY: !0,
|
|
66
59
|
wheelX: "none",
|
|
@@ -71,171 +64,140 @@ const R = 1.1, Ae = {
|
|
|
71
64
|
pinchZoomX: !0
|
|
72
65
|
})
|
|
73
66
|
);
|
|
74
|
-
|
|
75
|
-
let
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
67
|
+
s.set("colors", re(e, L));
|
|
68
|
+
let n, c = g;
|
|
69
|
+
if (t[0].type === "date") {
|
|
70
|
+
const o = v ? de : he;
|
|
71
|
+
n = s.xAxes.push(
|
|
72
|
+
o.new(e, {
|
|
73
|
+
maxDeviation: 0.1,
|
|
74
|
+
groupData: !1,
|
|
75
|
+
baseInterval: i || { timeUnit: "day", count: 1 },
|
|
76
|
+
renderer: _.new(e, {})
|
|
77
|
+
})
|
|
78
|
+
), c = U.orderBy(g, [t[0].value]);
|
|
79
|
+
} else
|
|
80
|
+
n = s.xAxes.push(
|
|
81
|
+
ne.new(e, {
|
|
82
|
+
categoryField: t[0].value,
|
|
83
|
+
renderer: _.new(e, {})
|
|
84
|
+
})
|
|
85
|
+
), e.numberFormatter.setAll({
|
|
86
|
+
numberFormat: "#",
|
|
87
|
+
numericFields: ["valueX"]
|
|
88
|
+
}), c = U.orderBy(g, [t[0].value]), n.data.setAll(c);
|
|
89
|
+
const Y = s.yAxes.push(
|
|
90
|
+
ae.new(e, {
|
|
91
|
+
renderer: ie.new(e, {})
|
|
95
92
|
})
|
|
96
93
|
);
|
|
97
|
-
(
|
|
98
|
-
stroke:
|
|
94
|
+
(G = n.get("renderer")) == null || G.grid.template.setAll({
|
|
95
|
+
stroke: p(l.palette.divider),
|
|
99
96
|
strokeOpacity: 1
|
|
100
|
-
}), (O =
|
|
101
|
-
stroke:
|
|
97
|
+
}), (O = n.get("renderer")) == null || O.labels.template.setAll({ paddingTop: 12 }), (I = Y.get("renderer")) == null || I.grid.template.setAll({
|
|
98
|
+
stroke: p(l.palette.divider),
|
|
102
99
|
strokeOpacity: 1
|
|
103
|
-
})
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
});
|
|
107
|
-
(Y = M.get("background")) == null || Y.setAll({
|
|
108
|
-
fill: c(m.palette.background.paper),
|
|
109
|
-
stroke: c(m.palette.divider),
|
|
110
|
-
fillOpacity: 1
|
|
111
|
-
}), M.label.setAll({
|
|
112
|
-
fill: c(m.palette.text.primary),
|
|
113
|
-
textAlign: "left",
|
|
114
|
-
lineHeight: k(160)
|
|
115
|
-
});
|
|
116
|
-
const L = xe[(l == null ? void 0 : l.timeUnit) ?? "day"], z = c(m.palette.text.secondary).toCSSHex();
|
|
117
|
-
M.label.adapters.add("text", () => {
|
|
118
|
-
let t = "";
|
|
119
|
-
const a = [];
|
|
120
|
-
if (n.series.each((i) => {
|
|
121
|
-
const s = i.get("tooltipDataItem"), p = s == null ? void 0 : s.get("valueY");
|
|
122
|
-
if (s === void 0 || p === void 0 || p === null)
|
|
123
|
-
return;
|
|
124
|
-
if (!t)
|
|
125
|
-
if (r[0].type === "date") {
|
|
126
|
-
const o = s.get("valueX");
|
|
127
|
-
typeof o == "number" && (t = e.dateFormatter.format(
|
|
128
|
-
new Date(o),
|
|
129
|
-
L
|
|
130
|
-
));
|
|
131
|
-
} else
|
|
132
|
-
t = `${s.get("categoryX") ?? ""}`;
|
|
133
|
-
const u = i.get("stroke"), g = u ? `[${u.toCSSHex()}]●[/] ` : "";
|
|
134
|
-
a.push(
|
|
135
|
-
`${g}${i.get("name")}: ${e.numberFormatter.format(
|
|
136
|
-
p
|
|
137
|
-
)}`
|
|
138
|
-
);
|
|
139
|
-
}), a.length === 0) {
|
|
140
|
-
if (r[0].type === "date") {
|
|
141
|
-
const s = d.positionToValue(
|
|
142
|
-
d.getPrivate("tooltipPosition", 0)
|
|
143
|
-
);
|
|
144
|
-
typeof s == "number" && !Number.isNaN(s) && (t = e.dateFormatter.format(new Date(s), L));
|
|
145
|
-
}
|
|
146
|
-
const i = `[${z}]No data[/]`;
|
|
147
|
-
return t ? `[bold]${t}[/]
|
|
148
|
-
${i}` : i;
|
|
149
|
-
}
|
|
150
|
-
return t ? `[bold]${t}[/]
|
|
151
|
-
${a.join(`
|
|
152
|
-
`)}` : a.join(`
|
|
153
|
-
`);
|
|
154
|
-
}), d.set("tooltip", M), y.forEach((t) => {
|
|
155
|
-
const a = n.series.push(
|
|
156
|
-
ce.new(e, {
|
|
100
|
+
}), m.forEach((o) => {
|
|
101
|
+
const a = s.series.push(
|
|
102
|
+
le.new(e, {
|
|
157
103
|
// Legend/tooltip label: explicit override, else humanize the raw
|
|
158
104
|
// backend field (snake_case / lowercase → Title Case).
|
|
159
|
-
name:
|
|
160
|
-
xAxis:
|
|
161
|
-
yAxis:
|
|
162
|
-
valueYField:
|
|
105
|
+
name: o.label ?? ee(o.name),
|
|
106
|
+
xAxis: n,
|
|
107
|
+
yAxis: Y,
|
|
108
|
+
valueYField: o.dataFieldName,
|
|
163
109
|
// When false, the line breaks at missing points. On a date axis the
|
|
164
110
|
// break is auto-detected when adjacent points are spaced more than
|
|
165
111
|
// `autoGapCount` (default 1.1) base intervals apart, so absent dates
|
|
166
112
|
// surface as gaps instead of being bridged by a straight segment.
|
|
167
|
-
connect:
|
|
168
|
-
autoGapCount:
|
|
169
|
-
...
|
|
113
|
+
connect: k,
|
|
114
|
+
autoGapCount: B,
|
|
115
|
+
...t[0].type === "date" ? { valueXField: t[0].value } : { categoryXField: t[0].value }
|
|
170
116
|
})
|
|
171
117
|
);
|
|
172
|
-
if (
|
|
118
|
+
if (t[0].type === "date" && (a.data.processor = me.new(e, {
|
|
173
119
|
dateFormat: "i",
|
|
174
|
-
dateFields: [
|
|
175
|
-
})),
|
|
176
|
-
const
|
|
177
|
-
t: new Date(
|
|
178
|
-
hasValue: o
|
|
179
|
-
})).filter((
|
|
180
|
-
|
|
181
|
-
const
|
|
182
|
-
|
|
183
|
-
}),
|
|
184
|
-
const
|
|
185
|
-
if (
|
|
186
|
-
return
|
|
187
|
-
sprite:
|
|
120
|
+
dateFields: [t[0].value]
|
|
121
|
+
})), t[0].type === "date" && !v) {
|
|
122
|
+
const y = t[0].value, x = ge[(i == null ? void 0 : i.timeUnit) ?? "day"] * ((i == null ? void 0 : i.count) ?? 1), d = k ? 1 / 0 : x * B, w = c.map((r) => ({
|
|
123
|
+
t: new Date(r[y]).getTime(),
|
|
124
|
+
hasValue: r[o.dataFieldName] !== null && r[o.dataFieldName] !== void 0
|
|
125
|
+
})).filter((r) => r.hasValue && !Number.isNaN(r.t)), D = /* @__PURE__ */ new Set();
|
|
126
|
+
w.forEach((r, f) => {
|
|
127
|
+
const F = f > 0 ? r.t - w[f - 1].t : 1 / 0, h = f < w.length - 1 ? w[f + 1].t - r.t : 1 / 0;
|
|
128
|
+
F > d && h > d && D.add(r.t);
|
|
129
|
+
}), D.size > 0 && a.bullets.push((r, f, F) => {
|
|
130
|
+
const h = F.dataContext;
|
|
131
|
+
if (D.has(new Date(h == null ? void 0 : h[y]).getTime()))
|
|
132
|
+
return pe.new(r, {
|
|
133
|
+
sprite: ce.new(r, {
|
|
188
134
|
radius: 3,
|
|
189
135
|
fill: a.get("fill"),
|
|
190
|
-
stroke:
|
|
136
|
+
stroke: r.interfaceColors.get("background"),
|
|
191
137
|
strokeWidth: 1
|
|
192
138
|
})
|
|
193
139
|
});
|
|
194
140
|
});
|
|
195
141
|
}
|
|
196
|
-
a.data.setAll(
|
|
197
|
-
}),
|
|
142
|
+
a.data.setAll(c), a.strokes.template.setAll({ strokeWidth: 2 }), a.appear();
|
|
143
|
+
}), s.set(
|
|
198
144
|
"cursor",
|
|
199
|
-
|
|
200
|
-
).lineY.set("visible", !1)
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
145
|
+
ue.new(e, { xAxis: n, behavior: "none" })
|
|
146
|
+
).lineY.set("visible", !1), te({
|
|
147
|
+
root: e,
|
|
148
|
+
chart: s,
|
|
149
|
+
xAxis: n,
|
|
150
|
+
theme: l,
|
|
151
|
+
isDateAxis: t[0].type === "date",
|
|
152
|
+
baseInterval: i,
|
|
153
|
+
follow: !0
|
|
154
|
+
});
|
|
155
|
+
const u = s.bottomAxesContainer.children.push(
|
|
156
|
+
fe.new(e, {
|
|
157
|
+
width: X(100),
|
|
204
158
|
paddingTop: 10,
|
|
205
|
-
centerX:
|
|
206
|
-
x:
|
|
159
|
+
centerX: X(50),
|
|
160
|
+
x: X(50),
|
|
207
161
|
layout: e.gridLayout
|
|
208
162
|
})
|
|
209
163
|
);
|
|
210
|
-
|
|
211
|
-
var
|
|
212
|
-
const a =
|
|
213
|
-
|
|
214
|
-
|
|
164
|
+
u.itemContainers.template.events.on("pointerover", function(o) {
|
|
165
|
+
var x;
|
|
166
|
+
const a = o.target, y = (x = a == null ? void 0 : a.dataItem) == null ? void 0 : x.dataContext;
|
|
167
|
+
s.series.each(function(d) {
|
|
168
|
+
d !== y ? d.strokes.template.setAll({
|
|
215
169
|
strokeOpacity: 0.15,
|
|
216
|
-
stroke:
|
|
217
|
-
}) :
|
|
170
|
+
stroke: p(0)
|
|
171
|
+
}) : d.strokes.template.setAll({ strokeWidth: 3 });
|
|
218
172
|
});
|
|
219
|
-
}),
|
|
220
|
-
|
|
221
|
-
|
|
173
|
+
}), u.itemContainers.template.events.on("pointerout", function() {
|
|
174
|
+
s.series.each(function(o) {
|
|
175
|
+
o.strokes.template.setAll({
|
|
222
176
|
strokeOpacity: 1,
|
|
223
177
|
strokeWidth: 2,
|
|
224
|
-
stroke:
|
|
178
|
+
stroke: o.get("fill")
|
|
225
179
|
});
|
|
226
180
|
});
|
|
227
|
-
}),
|
|
228
|
-
width:
|
|
181
|
+
}), u.itemContainers.template.set("width", V), u.valueLabels.template.setAll({
|
|
182
|
+
width: V,
|
|
229
183
|
textAlign: "right"
|
|
230
|
-
}),
|
|
231
|
-
},
|
|
184
|
+
}), u.data.setAll(s.series.values), se(e, (M = m == null ? void 0 : m[0]) == null ? void 0 : M.format), s.appear(1e3, 100);
|
|
185
|
+
}, P), () => {
|
|
232
186
|
var e;
|
|
233
|
-
|
|
187
|
+
T && clearTimeout(T), (e = C.current) == null || e.dispose(), C.current = null;
|
|
234
188
|
};
|
|
235
|
-
}, [
|
|
236
|
-
|
|
237
|
-
|
|
189
|
+
}, [
|
|
190
|
+
g,
|
|
191
|
+
t,
|
|
192
|
+
m,
|
|
193
|
+
l.palette.mode,
|
|
194
|
+
L,
|
|
195
|
+
k,
|
|
196
|
+
v
|
|
197
|
+
]);
|
|
198
|
+
const S = { ...b };
|
|
199
|
+
return { chartId: N, ownerState: S, sx: R, error: A, other: W };
|
|
238
200
|
};
|
|
239
201
|
export {
|
|
240
|
-
|
|
202
|
+
Ve as useLineChartLogic
|
|
241
203
|
};
|