@hybridcore/ui 1.6.30 → 1.6.32
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/components/charts/_common/utils.js +50 -31
- package/dist/components/charts/candlestick/logic.js +83 -86
- package/dist/components/charts/column-line-mix/logic.js +66 -70
- package/dist/components/charts/donut-chart/logic.js +61 -64
- package/dist/components/charts/drill-down-treemap/logic.js +69 -69
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +75 -75
- package/dist/components/charts/forecast-cone/logic.js +110 -114
- package/dist/components/charts/heatmap/logic.js +115 -119
- package/dist/components/charts/highlighting-line-data/logic.js +65 -64
- package/dist/components/charts/histogram/logic.js +66 -70
- package/dist/components/charts/line/logic.js +95 -99
- package/dist/components/charts/logaritmic-scale/logic.js +79 -83
- package/dist/components/charts/multiple-value-axes/logic.js +65 -69
- package/dist/components/charts/nested-pie/logic.js +49 -53
- package/dist/components/charts/packed-circles/logic.js +139 -139
- package/dist/components/charts/pie-chart/logic.js +55 -59
- package/dist/components/charts/stacked-area-radar/logic.js +92 -96
- package/dist/components/charts/stacked-column-chart/logic.js +64 -68
- package/dist/components/charts/xy-chart/logic.js +82 -86
- package/dist/components/metric-card/MetricChart.js +6 -4
- package/dist/components/paginated-list/index.js +16 -15
- package/dist/components/paginated-list/styled.js +34 -17
- package/package.json +1 -1
|
@@ -3,39 +3,35 @@ import { useThemeProps as P, useTheme as W } from "@mui/material";
|
|
|
3
3
|
import z from "lodash";
|
|
4
4
|
import { useId as Z, useRef as $, useEffect as j } from "react";
|
|
5
5
|
import { humanizeLabel as q } from "../_common/format.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { X as U, V as Y } from "../../../AxisRenderer-BCQoUJw6.js";
|
|
6
|
+
import { applyInterfaceColors as J, colorSetFromPalette as K, applyValueFormat as Q } from "../_common/utils.js";
|
|
7
|
+
import { X as U, V as F } from "../../../AxisRenderer-BCQoUJw6.js";
|
|
9
8
|
import { L as ee } from "../../../Legend-CFvQiIfn.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
import { a as Y, c as g, p as te } from "../../../Entity-BJCuhdq_.js";
|
|
10
|
+
import { A as re, a as oe } from "../../../AxisRendererY-AXWvGU6r.js";
|
|
11
|
+
import { C as se } from "../../../ColumnSeries-CtRTsn-E.js";
|
|
12
|
+
import { T as ne } from "../../../Tooltip-vyZRZWih.js";
|
|
13
|
+
import { X as ae } from "../../../XYCursor-CVUSpqb9.js";
|
|
14
|
+
const R = "__hcBinStart", _ = "__hcBinEnd", Xe = (C) => {
|
|
15
|
+
const b = P({ props: C, name: "HCHistogram" }), {
|
|
16
|
+
dimensions: c,
|
|
17
|
+
values: p,
|
|
18
18
|
data: A,
|
|
19
|
-
initDelay:
|
|
20
|
-
colors:
|
|
19
|
+
initDelay: I = 0,
|
|
20
|
+
colors: x,
|
|
21
21
|
binWidth: v,
|
|
22
22
|
barGap: y = 0,
|
|
23
|
-
logarithmic:
|
|
24
|
-
sx:
|
|
25
|
-
...
|
|
26
|
-
} =
|
|
23
|
+
logarithmic: u = !1,
|
|
24
|
+
sx: B,
|
|
25
|
+
...D
|
|
26
|
+
} = b, n = W(), N = `hc-histogram-${Z().replace(/:/g, "")}`, d = $(null), X = c.length < 1 ? "Missing dimensions config!" : p.length < 1 ? "Missing values config!" : null;
|
|
27
27
|
j(() => {
|
|
28
28
|
if (X) return;
|
|
29
|
-
let
|
|
30
|
-
return
|
|
31
|
-
var
|
|
29
|
+
let h;
|
|
30
|
+
return h = setTimeout(() => {
|
|
31
|
+
var w, k;
|
|
32
32
|
const e = O.new(N);
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
grid: i(r.palette.divider),
|
|
36
|
-
stroke: i(r.palette.divider)
|
|
37
|
-
});
|
|
38
|
-
const o = e.container.children.push(
|
|
33
|
+
d.current = e, e.setThemes([H.new(e)]), J(e, n);
|
|
34
|
+
const r = e.container.children.push(
|
|
39
35
|
U.new(e, {
|
|
40
36
|
panX: !1,
|
|
41
37
|
panY: !1,
|
|
@@ -44,55 +40,55 @@ const R = "__hcBinStart", _ = "__hcBinEnd", Ne = (C) => {
|
|
|
44
40
|
layout: e.verticalLayout
|
|
45
41
|
})
|
|
46
42
|
);
|
|
47
|
-
|
|
48
|
-
const S =
|
|
43
|
+
r.set("colors", K(e, x));
|
|
44
|
+
const S = r.children.push(
|
|
49
45
|
ee.new(e, {
|
|
50
|
-
centerX:
|
|
51
|
-
x:
|
|
46
|
+
centerX: Y,
|
|
47
|
+
x: Y
|
|
52
48
|
})
|
|
53
|
-
),
|
|
49
|
+
), o = c[0].value, i = p[0], V = i.dataFieldName, l = z.orderBy(
|
|
54
50
|
A.filter(
|
|
55
|
-
(t) => (t == null ? void 0 : t[
|
|
51
|
+
(t) => (t == null ? void 0 : t[o]) != null && !Number.isNaN(Number(t[o]))
|
|
56
52
|
),
|
|
57
|
-
[(t) => Number(t[
|
|
53
|
+
[(t) => Number(t[o])]
|
|
58
54
|
);
|
|
59
|
-
let
|
|
60
|
-
for (let t = 1; t <
|
|
61
|
-
const
|
|
62
|
-
|
|
55
|
+
let m = 1 / 0;
|
|
56
|
+
for (let t = 1; t < l.length; t++) {
|
|
57
|
+
const s = Number(l[t][o]) - Number(l[t - 1][o]);
|
|
58
|
+
s > 0 && s < m && (m = s);
|
|
63
59
|
}
|
|
64
|
-
const E = v ?? (Number.isFinite(
|
|
65
|
-
const
|
|
66
|
-
return { ...t, [R]:
|
|
67
|
-
}),
|
|
68
|
-
|
|
60
|
+
const E = v ?? (Number.isFinite(m) ? m : 1), G = l.map((t) => {
|
|
61
|
+
const s = Number(t[o]);
|
|
62
|
+
return { ...t, [R]: s, [_]: s + E };
|
|
63
|
+
}), f = r.xAxes.push(
|
|
64
|
+
F.new(e, {
|
|
69
65
|
maxDeviation: 0,
|
|
70
|
-
renderer:
|
|
66
|
+
renderer: re.new(e, { minGridDistance: 40 })
|
|
71
67
|
})
|
|
72
|
-
), T =
|
|
73
|
-
|
|
68
|
+
), T = r.yAxes.push(
|
|
69
|
+
F.new(e, {
|
|
74
70
|
// Linear: frequency bars must grow from a zero baseline, else the auto
|
|
75
71
|
// min crops the axis and distorts relative bar heights. Log: `min: 0`
|
|
76
72
|
// is invalid (log 0 is undefined), so drop it and map zero-count bins
|
|
77
73
|
// to `1` (the axis floor) — those bins then render as no bar.
|
|
78
|
-
...
|
|
79
|
-
renderer:
|
|
74
|
+
...u ? { logarithmic: !0, treatZeroAs: 1 } : { min: 0 },
|
|
75
|
+
renderer: oe.new(e, {
|
|
80
76
|
strokeOpacity: 0.1,
|
|
81
|
-
...
|
|
77
|
+
...u ? { minorGridEnabled: !0 } : {}
|
|
82
78
|
})
|
|
83
79
|
})
|
|
84
80
|
);
|
|
85
|
-
(
|
|
86
|
-
stroke:
|
|
81
|
+
(w = f.get("renderer")) == null || w.grid.template.setAll({
|
|
82
|
+
stroke: g(n.palette.divider),
|
|
87
83
|
strokeOpacity: 1
|
|
88
|
-
}), (
|
|
89
|
-
stroke:
|
|
84
|
+
}), (k = T.get("renderer")) == null || k.grid.template.setAll({
|
|
85
|
+
stroke: g(n.palette.divider),
|
|
90
86
|
strokeOpacity: 1
|
|
91
87
|
});
|
|
92
|
-
const a =
|
|
93
|
-
|
|
94
|
-
name:
|
|
95
|
-
xAxis:
|
|
88
|
+
const a = r.series.push(
|
|
89
|
+
se.new(e, {
|
|
90
|
+
name: i.label ?? q(i.name),
|
|
91
|
+
xAxis: f,
|
|
96
92
|
yAxis: T,
|
|
97
93
|
valueYField: V,
|
|
98
94
|
// Explicit [open, value] edges give each bar its exact bin span, so
|
|
@@ -102,32 +98,32 @@ const R = "__hcBinStart", _ = "__hcBinEnd", Ne = (C) => {
|
|
|
102
98
|
})
|
|
103
99
|
), M = Math.min(Math.max(y, 0), 1);
|
|
104
100
|
a.columns.template.setAll({
|
|
105
|
-
width:
|
|
101
|
+
width: te((1 - M) * 100),
|
|
106
102
|
strokeOpacity: 1,
|
|
107
103
|
strokeWidth: 1,
|
|
108
|
-
stroke:
|
|
104
|
+
stroke: g(n.palette.background.paper),
|
|
109
105
|
tooltipText: "{openValueX} – {valueX}: {valueY}"
|
|
110
|
-
}), a.set("tooltip",
|
|
106
|
+
}), a.set("tooltip", ne.new(e, {})), a.data.setAll(G), a.appear(), S.data.push(a), r.set(
|
|
111
107
|
"cursor",
|
|
112
|
-
|
|
113
|
-
).lineY.set("visible", !1),
|
|
114
|
-
},
|
|
108
|
+
ae.new(e, { xAxis: f, behavior: "none" })
|
|
109
|
+
).lineY.set("visible", !1), Q(e, i.format), r.appear(1e3, 100);
|
|
110
|
+
}, I), () => {
|
|
115
111
|
var e;
|
|
116
|
-
|
|
112
|
+
h && clearTimeout(h), (e = d.current) == null || e.dispose(), d.current = null;
|
|
117
113
|
};
|
|
118
114
|
}, [
|
|
119
115
|
A,
|
|
116
|
+
c,
|
|
120
117
|
p,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
b,
|
|
118
|
+
n.palette.mode,
|
|
119
|
+
x,
|
|
124
120
|
v,
|
|
125
121
|
y,
|
|
126
|
-
|
|
122
|
+
u
|
|
127
123
|
]);
|
|
128
|
-
const L = { ...
|
|
129
|
-
return { chartId: N, ownerState: L, sx:
|
|
124
|
+
const L = { ...b };
|
|
125
|
+
return { chartId: N, ownerState: L, sx: B, error: X, other: D };
|
|
130
126
|
};
|
|
131
127
|
export {
|
|
132
|
-
|
|
128
|
+
Xe as useHistogramLogic
|
|
133
129
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { R as q, T as J, A as K } from "../../../AnimatedTheme-ktdO3Bel.js";
|
|
2
2
|
import { useThemeProps as Q, useTheme as ee } from "@mui/material";
|
|
3
3
|
import te from "lodash";
|
|
4
|
-
import { useId as
|
|
4
|
+
import { useId as se, useRef as re, useEffect as oe } from "react";
|
|
5
5
|
import { humanizeLabel as ae } from "../_common/format.js";
|
|
6
6
|
import { attachCombinedAxisTooltip as ie } from "../_common/tooltip.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { L as
|
|
13
|
-
import { D as
|
|
14
|
-
import { B as
|
|
15
|
-
import { C as
|
|
16
|
-
import { L as
|
|
17
|
-
import { X as
|
|
18
|
-
import { L as
|
|
19
|
-
import { D as
|
|
20
|
-
const S = 1.1,
|
|
7
|
+
import { applyInterfaceColors as ne, colorSetFromPalette as le, applyDateAxisLabelFormat as me, applyValueFormat as pe } from "../_common/utils.js";
|
|
8
|
+
import { X as ce, V as de } from "../../../AxisRenderer-BCQoUJw6.js";
|
|
9
|
+
import { A as P, a as ue } from "../../../AxisRendererY-AXWvGU6r.js";
|
|
10
|
+
import { C as fe } from "../../../CategoryAxis-B6NqW8qd.js";
|
|
11
|
+
import { c as L, p as b, b as R } from "../../../Entity-BJCuhdq_.js";
|
|
12
|
+
import { L as he } from "../../../LineSeries-D_IL2qGF.js";
|
|
13
|
+
import { D as ge, G as Ae } from "../../../GaplessDateAxis-B2g2jgSG.js";
|
|
14
|
+
import { B as ye } from "../../../Bullet-Djj7Vs9T.js";
|
|
15
|
+
import { C as xe } from "../../../Circle-BnfBNKBD.js";
|
|
16
|
+
import { L as we } from "../../../LinearGradient-CxQyCSEB.js";
|
|
17
|
+
import { X as ke } from "../../../XYCursor-CVUSpqb9.js";
|
|
18
|
+
import { L as Ce } from "../../../Legend-CFvQiIfn.js";
|
|
19
|
+
import { D as ve } from "../../../DateAxis-DEXKps1S.js";
|
|
20
|
+
const S = 1.1, De = {
|
|
21
21
|
millisecond: 1,
|
|
22
22
|
second: 1e3,
|
|
23
23
|
minute: 6e4,
|
|
@@ -26,37 +26,33 @@ const S = 1.1, ve = {
|
|
|
26
26
|
week: 6048e5,
|
|
27
27
|
month: 2592e6,
|
|
28
28
|
year: 31536e6
|
|
29
|
-
},
|
|
29
|
+
}, He = (W) => {
|
|
30
30
|
const X = Q({ props: W, name: "HCLineChart" }), {
|
|
31
31
|
dimensions: t,
|
|
32
32
|
values: m,
|
|
33
|
-
data:
|
|
33
|
+
data: x,
|
|
34
34
|
initDelay: B = 0,
|
|
35
35
|
baseInterval: l,
|
|
36
36
|
colors: G,
|
|
37
|
-
connectMissingData:
|
|
38
|
-
skipEmptyDates:
|
|
37
|
+
connectMissingData: w = !0,
|
|
38
|
+
skipEmptyDates: k = !1,
|
|
39
39
|
areaFill: N = !1,
|
|
40
|
-
strokeDasharray:
|
|
40
|
+
strokeDasharray: C,
|
|
41
41
|
sx: z,
|
|
42
42
|
...H
|
|
43
|
-
} = X, p = ee(),
|
|
44
|
-
let
|
|
45
|
-
t.length < 1 ?
|
|
46
|
-
if (
|
|
47
|
-
let
|
|
48
|
-
return
|
|
43
|
+
} = X, p = ee(), I = `hc-line-chart-${se().replace(/:/g, "")}`, v = re(null);
|
|
44
|
+
let h = null;
|
|
45
|
+
t.length < 1 ? h = "Missing dimensions config!" : m.length < 1 && (h = "Missing values config!"), oe(() => {
|
|
46
|
+
if (h) return;
|
|
47
|
+
let D;
|
|
48
|
+
return D = setTimeout(() => {
|
|
49
49
|
var M, U, V, _;
|
|
50
|
-
const e = q.new(
|
|
51
|
-
|
|
50
|
+
const e = q.new(I);
|
|
51
|
+
v.current = e;
|
|
52
52
|
const $ = J.new(e);
|
|
53
|
-
e.setThemes([K.new(e), $]), e
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
stroke: c(p.palette.divider)
|
|
57
|
-
});
|
|
58
|
-
const s = e.container.children.push(
|
|
59
|
-
pe.new(e, {
|
|
53
|
+
e.setThemes([K.new(e), $]), ne(e, p);
|
|
54
|
+
const r = e.container.children.push(
|
|
55
|
+
ce.new(e, {
|
|
60
56
|
panX: !0,
|
|
61
57
|
panY: !0,
|
|
62
58
|
wheelX: "none",
|
|
@@ -66,92 +62,92 @@ const S = 1.1, ve = {
|
|
|
66
62
|
maxTooltipDistance: -1,
|
|
67
63
|
pinchZoomX: !0
|
|
68
64
|
})
|
|
69
|
-
),
|
|
70
|
-
|
|
71
|
-
let i,
|
|
65
|
+
), O = le(e, G);
|
|
66
|
+
r.set("colors", O);
|
|
67
|
+
let i, g = x;
|
|
72
68
|
if (t[0].type === "date") {
|
|
73
|
-
const o =
|
|
74
|
-
i =
|
|
69
|
+
const o = k ? Ae : ve;
|
|
70
|
+
i = r.xAxes.push(
|
|
75
71
|
o.new(e, {
|
|
76
72
|
maxDeviation: 0.1,
|
|
77
73
|
groupData: !1,
|
|
78
74
|
baseInterval: l || { timeUnit: "day", count: 1 },
|
|
79
|
-
renderer:
|
|
75
|
+
renderer: P.new(e, {})
|
|
80
76
|
})
|
|
81
|
-
),
|
|
77
|
+
), me(i, t[0]), g = te.orderBy(x, [t[0].value]);
|
|
82
78
|
} else
|
|
83
|
-
i =
|
|
84
|
-
|
|
79
|
+
i = r.xAxes.push(
|
|
80
|
+
fe.new(e, {
|
|
85
81
|
categoryField: t[0].value,
|
|
86
|
-
renderer:
|
|
82
|
+
renderer: P.new(e, {})
|
|
87
83
|
})
|
|
88
84
|
), e.numberFormatter.setAll({
|
|
89
85
|
numberFormat: "#",
|
|
90
86
|
numericFields: ["valueX"]
|
|
91
|
-
}), i.data.setAll(
|
|
92
|
-
const
|
|
93
|
-
|
|
94
|
-
renderer:
|
|
87
|
+
}), i.data.setAll(g);
|
|
88
|
+
const Y = r.yAxes.push(
|
|
89
|
+
de.new(e, {
|
|
90
|
+
renderer: ue.new(e, {})
|
|
95
91
|
})
|
|
96
92
|
);
|
|
97
93
|
(M = i.get("renderer")) == null || M.grid.template.setAll({
|
|
98
|
-
stroke:
|
|
94
|
+
stroke: L(p.palette.divider),
|
|
99
95
|
strokeOpacity: 1
|
|
100
|
-
}), (U = i.get("renderer")) == null || U.labels.template.setAll({ paddingTop: 12 }), (V =
|
|
101
|
-
stroke:
|
|
96
|
+
}), (U = i.get("renderer")) == null || U.labels.template.setAll({ paddingTop: 12 }), (V = Y.get("renderer")) == null || V.grid.template.setAll({
|
|
97
|
+
stroke: L(p.palette.divider),
|
|
102
98
|
strokeOpacity: 1
|
|
103
|
-
}), m.forEach((o,
|
|
104
|
-
const a =
|
|
105
|
-
|
|
99
|
+
}), m.forEach((o, d) => {
|
|
100
|
+
const a = r.series.push(
|
|
101
|
+
he.new(e, {
|
|
106
102
|
// Legend/tooltip label: explicit override, else humanize the raw
|
|
107
103
|
// backend field (snake_case / lowercase → Title Case).
|
|
108
104
|
name: o.label ?? ae(o.name),
|
|
109
105
|
xAxis: i,
|
|
110
|
-
yAxis:
|
|
106
|
+
yAxis: Y,
|
|
111
107
|
valueYField: o.dataFieldName,
|
|
112
108
|
// When false, the line breaks at missing points. On a date axis the
|
|
113
109
|
// break is auto-detected when adjacent points are spaced more than
|
|
114
110
|
// `autoGapCount` (default 1.1) base intervals apart, so absent dates
|
|
115
111
|
// surface as gaps instead of being bridged by a straight segment.
|
|
116
|
-
connect:
|
|
112
|
+
connect: w,
|
|
117
113
|
autoGapCount: S,
|
|
118
114
|
...t[0].type === "date" ? { valueXField: t[0].value } : { categoryXField: t[0].value }
|
|
119
115
|
})
|
|
120
116
|
);
|
|
121
|
-
if (t[0].type === "date" && (a.data.processor =
|
|
117
|
+
if (t[0].type === "date" && (a.data.processor = ge.new(e, {
|
|
122
118
|
dateFormat: "i",
|
|
123
119
|
dateFields: [t[0].value]
|
|
124
|
-
})), t[0].type === "date" && !
|
|
125
|
-
const n = t[0].value, j =
|
|
126
|
-
t: new Date(
|
|
127
|
-
hasValue:
|
|
128
|
-
})).filter((
|
|
129
|
-
|
|
130
|
-
const
|
|
131
|
-
|
|
132
|
-
}),
|
|
133
|
-
const
|
|
134
|
-
if (
|
|
135
|
-
return
|
|
136
|
-
sprite:
|
|
120
|
+
})), t[0].type === "date" && !k) {
|
|
121
|
+
const n = t[0].value, j = De[(l == null ? void 0 : l.timeUnit) ?? "day"] * ((l == null ? void 0 : l.count) ?? 1), E = w ? 1 / 0 : j * S, y = g.map((s) => ({
|
|
122
|
+
t: new Date(s[n]).getTime(),
|
|
123
|
+
hasValue: s[o.dataFieldName] !== null && s[o.dataFieldName] !== void 0
|
|
124
|
+
})).filter((s) => s.hasValue && !Number.isNaN(s.t)), F = /* @__PURE__ */ new Set();
|
|
125
|
+
y.forEach((s, u) => {
|
|
126
|
+
const T = u > 0 ? s.t - y[u - 1].t : 1 / 0, f = u < y.length - 1 ? y[u + 1].t - s.t : 1 / 0;
|
|
127
|
+
T > E && f > E && F.add(s.t);
|
|
128
|
+
}), F.size > 0 && a.bullets.push((s, u, T) => {
|
|
129
|
+
const f = T.dataContext;
|
|
130
|
+
if (F.has(new Date(f == null ? void 0 : f[n]).getTime()))
|
|
131
|
+
return ye.new(s, {
|
|
132
|
+
sprite: xe.new(s, {
|
|
137
133
|
radius: 3,
|
|
138
134
|
fill: a.get("fill"),
|
|
139
|
-
stroke:
|
|
135
|
+
stroke: s.interfaceColors.get("background"),
|
|
140
136
|
strokeWidth: 1
|
|
141
137
|
})
|
|
142
138
|
});
|
|
143
139
|
});
|
|
144
140
|
}
|
|
145
|
-
const
|
|
146
|
-
if (a.data.setAll(
|
|
141
|
+
const A = N && m.length === 1;
|
|
142
|
+
if (a.data.setAll(g), a.strokes.template.setAll({
|
|
147
143
|
strokeWidth: 2,
|
|
148
|
-
...
|
|
149
|
-
}),
|
|
150
|
-
const n = a.get("fill") ??
|
|
144
|
+
...C && { strokeDasharray: C }
|
|
145
|
+
}), A) {
|
|
146
|
+
const n = a.get("fill") ?? O.getIndex(d);
|
|
151
147
|
a.fills.template.setAll({
|
|
152
148
|
visible: !0,
|
|
153
149
|
fillOpacity: 1,
|
|
154
|
-
fillGradient:
|
|
150
|
+
fillGradient: we.new(e, {
|
|
155
151
|
rotation: 90,
|
|
156
152
|
stops: [
|
|
157
153
|
{ color: n, opacity: 0.6 },
|
|
@@ -161,20 +157,20 @@ const S = 1.1, ve = {
|
|
|
161
157
|
});
|
|
162
158
|
}
|
|
163
159
|
a.appear();
|
|
164
|
-
}),
|
|
160
|
+
}), r.set(
|
|
165
161
|
"cursor",
|
|
166
|
-
|
|
162
|
+
ke.new(e, { xAxis: i, behavior: "none" })
|
|
167
163
|
).lineY.set("visible", !1), ie({
|
|
168
164
|
root: e,
|
|
169
|
-
chart:
|
|
165
|
+
chart: r,
|
|
170
166
|
xAxis: i,
|
|
171
167
|
theme: p,
|
|
172
168
|
isDateAxis: t[0].type === "date",
|
|
173
169
|
baseInterval: l,
|
|
174
170
|
follow: !0
|
|
175
171
|
});
|
|
176
|
-
const
|
|
177
|
-
|
|
172
|
+
const c = r.bottomAxesContainer.children.push(
|
|
173
|
+
Ce.new(e, {
|
|
178
174
|
width: b(100),
|
|
179
175
|
paddingTop: 10,
|
|
180
176
|
centerX: b(50),
|
|
@@ -182,45 +178,45 @@ const S = 1.1, ve = {
|
|
|
182
178
|
layout: e.gridLayout
|
|
183
179
|
})
|
|
184
180
|
);
|
|
185
|
-
|
|
186
|
-
var
|
|
187
|
-
const
|
|
188
|
-
|
|
181
|
+
c.itemContainers.template.events.on("pointerover", function(o) {
|
|
182
|
+
var A;
|
|
183
|
+
const d = o.target, a = (A = d == null ? void 0 : d.dataItem) == null ? void 0 : A.dataContext;
|
|
184
|
+
r.series.each(function(n) {
|
|
189
185
|
n !== a ? n.strokes.template.setAll({
|
|
190
186
|
strokeOpacity: 0.15,
|
|
191
|
-
stroke:
|
|
187
|
+
stroke: L(0)
|
|
192
188
|
}) : n.strokes.template.setAll({ strokeWidth: 3 });
|
|
193
189
|
});
|
|
194
|
-
}),
|
|
195
|
-
|
|
190
|
+
}), c.itemContainers.template.events.on("pointerout", function() {
|
|
191
|
+
r.series.each(function(o) {
|
|
196
192
|
o.strokes.template.setAll({
|
|
197
193
|
strokeOpacity: 1,
|
|
198
194
|
strokeWidth: 2,
|
|
199
195
|
stroke: o.get("fill")
|
|
200
196
|
});
|
|
201
197
|
});
|
|
202
|
-
}),
|
|
203
|
-
width:
|
|
198
|
+
}), c.itemContainers.template.set("width", R), c.valueLabels.template.setAll({
|
|
199
|
+
width: R,
|
|
204
200
|
textAlign: "right"
|
|
205
|
-
}),
|
|
201
|
+
}), c.data.setAll(r.series.values), pe(e, (_ = m == null ? void 0 : m[0]) == null ? void 0 : _.format), r.appear(1e3, 100);
|
|
206
202
|
}, B), () => {
|
|
207
203
|
var e;
|
|
208
|
-
|
|
204
|
+
D && clearTimeout(D), (e = v.current) == null || e.dispose(), v.current = null;
|
|
209
205
|
};
|
|
210
206
|
}, [
|
|
211
|
-
|
|
207
|
+
x,
|
|
212
208
|
t,
|
|
213
209
|
m,
|
|
214
210
|
p.palette.mode,
|
|
215
211
|
G,
|
|
212
|
+
w,
|
|
216
213
|
k,
|
|
217
|
-
C,
|
|
218
214
|
N,
|
|
219
|
-
|
|
215
|
+
C
|
|
220
216
|
]);
|
|
221
217
|
const Z = { ...X };
|
|
222
|
-
return { chartId:
|
|
218
|
+
return { chartId: I, ownerState: Z, sx: z, error: h, other: H };
|
|
223
219
|
};
|
|
224
220
|
export {
|
|
225
|
-
|
|
221
|
+
He as useLineChartLogic
|
|
226
222
|
};
|