@hybridcore/ui 1.6.29 → 1.6.31
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 +53 -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 +65 -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 +117 -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 +132 -113
- 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 +59 -59
- package/dist/components/charts/stacked-area-radar/logic.js +95 -97
- package/dist/components/charts/stacked-column-chart/logic.js +69 -69
- package/dist/components/charts/xy-chart/logic.js +82 -86
- package/dist/components/data-list/logic.js +131 -137
- package/dist/components/metric-card/MetricChart.js +62 -58
- package/dist/components/metric-card/index.js +53 -40
- package/dist/components/metric-card/logic.js +66 -57
- package/dist/components/metric-card/styled.js +13 -9
- package/dist/components/paginated-list/helpers.js +8 -0
- package/dist/components/paginated-list/index.js +144 -61
- package/dist/components/paginated-list/logic.js +84 -47
- package/dist/components/paginated-list/styled.js +154 -17
- package/dist/hooks/useInfinitePaging.js +51 -0
- package/dist/main.d.ts +115 -3
- 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,22 +1,23 @@
|
|
|
1
|
-
import { R as
|
|
2
|
-
import { useThemeProps as
|
|
3
|
-
import
|
|
4
|
-
import { useId as
|
|
5
|
-
import { humanizeLabel as
|
|
6
|
-
import { attachCombinedAxisTooltip as
|
|
7
|
-
import { colorSetFromPalette as
|
|
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 {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
|
|
1
|
+
import { R as q, T as J, A as K } from "../../../AnimatedTheme-ktdO3Bel.js";
|
|
2
|
+
import { useThemeProps as Q, useTheme as ee } from "@mui/material";
|
|
3
|
+
import te from "lodash";
|
|
4
|
+
import { useId as se, useRef as re, useEffect as oe } from "react";
|
|
5
|
+
import { humanizeLabel as ae } from "../_common/format.js";
|
|
6
|
+
import { attachCombinedAxisTooltip as ie } from "../_common/tooltip.js";
|
|
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 = {
|
|
20
21
|
millisecond: 1,
|
|
21
22
|
second: 1e3,
|
|
22
23
|
minute: 6e4,
|
|
@@ -25,35 +26,33 @@ const _ = 1.1, ge = {
|
|
|
25
26
|
week: 6048e5,
|
|
26
27
|
month: 2592e6,
|
|
27
28
|
year: 31536e6
|
|
28
|
-
},
|
|
29
|
-
const
|
|
29
|
+
}, He = (W) => {
|
|
30
|
+
const X = Q({ props: W, name: "HCLineChart" }), {
|
|
30
31
|
dimensions: t,
|
|
31
32
|
values: m,
|
|
32
|
-
data:
|
|
33
|
-
initDelay:
|
|
34
|
-
baseInterval:
|
|
35
|
-
colors:
|
|
36
|
-
connectMissingData:
|
|
37
|
-
skipEmptyDates:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
33
|
+
data: x,
|
|
34
|
+
initDelay: B = 0,
|
|
35
|
+
baseInterval: l,
|
|
36
|
+
colors: G,
|
|
37
|
+
connectMissingData: w = !0,
|
|
38
|
+
skipEmptyDates: k = !1,
|
|
39
|
+
areaFill: N = !1,
|
|
40
|
+
strokeDasharray: C,
|
|
41
|
+
sx: z,
|
|
42
|
+
...H
|
|
43
|
+
} = X, p = ee(), I = `hc-line-chart-${se().replace(/:/g, "")}`, v = re(null);
|
|
41
44
|
let h = null;
|
|
42
|
-
t.length < 1 ? h = "Missing dimensions config!" : m.length < 1 && (h = "Missing values config!"),
|
|
45
|
+
t.length < 1 ? h = "Missing dimensions config!" : m.length < 1 && (h = "Missing values config!"), oe(() => {
|
|
43
46
|
if (h) return;
|
|
44
|
-
let
|
|
45
|
-
return
|
|
46
|
-
var
|
|
47
|
-
const e =
|
|
47
|
+
let D;
|
|
48
|
+
return D = setTimeout(() => {
|
|
49
|
+
var M, U, V, _;
|
|
50
|
+
const e = q.new(I);
|
|
48
51
|
v.current = e;
|
|
49
|
-
const
|
|
50
|
-
e.setThemes([
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
stroke: d(l.palette.divider)
|
|
54
|
-
});
|
|
55
|
-
const s = e.container.children.push(
|
|
56
|
-
ae.new(e, {
|
|
52
|
+
const $ = J.new(e);
|
|
53
|
+
e.setThemes([K.new(e), $]), ne(e, p);
|
|
54
|
+
const r = e.container.children.push(
|
|
55
|
+
ce.new(e, {
|
|
57
56
|
panX: !0,
|
|
58
57
|
panY: !0,
|
|
59
58
|
wheelX: "none",
|
|
@@ -63,46 +62,46 @@ const _ = 1.1, ge = {
|
|
|
63
62
|
maxTooltipDistance: -1,
|
|
64
63
|
pinchZoomX: !0
|
|
65
64
|
})
|
|
66
|
-
);
|
|
67
|
-
|
|
68
|
-
let i,
|
|
65
|
+
), O = le(e, G);
|
|
66
|
+
r.set("colors", O);
|
|
67
|
+
let i, g = x;
|
|
69
68
|
if (t[0].type === "date") {
|
|
70
|
-
const o =
|
|
71
|
-
i =
|
|
69
|
+
const o = k ? Ae : ve;
|
|
70
|
+
i = r.xAxes.push(
|
|
72
71
|
o.new(e, {
|
|
73
72
|
maxDeviation: 0.1,
|
|
74
73
|
groupData: !1,
|
|
75
|
-
baseInterval:
|
|
76
|
-
renderer:
|
|
74
|
+
baseInterval: l || { timeUnit: "day", count: 1 },
|
|
75
|
+
renderer: P.new(e, {})
|
|
77
76
|
})
|
|
78
|
-
),
|
|
77
|
+
), me(i, t[0]), g = te.orderBy(x, [t[0].value]);
|
|
79
78
|
} else
|
|
80
|
-
i =
|
|
81
|
-
|
|
79
|
+
i = r.xAxes.push(
|
|
80
|
+
fe.new(e, {
|
|
82
81
|
categoryField: t[0].value,
|
|
83
|
-
renderer:
|
|
82
|
+
renderer: P.new(e, {})
|
|
84
83
|
})
|
|
85
84
|
), e.numberFormatter.setAll({
|
|
86
85
|
numberFormat: "#",
|
|
87
86
|
numericFields: ["valueX"]
|
|
88
|
-
}), i.data.setAll(
|
|
89
|
-
const Y =
|
|
90
|
-
|
|
91
|
-
renderer:
|
|
87
|
+
}), i.data.setAll(g);
|
|
88
|
+
const Y = r.yAxes.push(
|
|
89
|
+
de.new(e, {
|
|
90
|
+
renderer: ue.new(e, {})
|
|
92
91
|
})
|
|
93
92
|
);
|
|
94
|
-
(
|
|
95
|
-
stroke:
|
|
93
|
+
(M = i.get("renderer")) == null || M.grid.template.setAll({
|
|
94
|
+
stroke: L(p.palette.divider),
|
|
96
95
|
strokeOpacity: 1
|
|
97
|
-
}), (
|
|
98
|
-
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),
|
|
99
98
|
strokeOpacity: 1
|
|
100
|
-
}), m.forEach((o) => {
|
|
101
|
-
const a =
|
|
102
|
-
|
|
99
|
+
}), m.forEach((o, d) => {
|
|
100
|
+
const a = r.series.push(
|
|
101
|
+
he.new(e, {
|
|
103
102
|
// Legend/tooltip label: explicit override, else humanize the raw
|
|
104
103
|
// backend field (snake_case / lowercase → Title Case).
|
|
105
|
-
name: o.label ??
|
|
104
|
+
name: o.label ?? ae(o.name),
|
|
106
105
|
xAxis: i,
|
|
107
106
|
yAxis: Y,
|
|
108
107
|
valueYField: o.dataFieldName,
|
|
@@ -110,94 +109,114 @@ const _ = 1.1, ge = {
|
|
|
110
109
|
// break is auto-detected when adjacent points are spaced more than
|
|
111
110
|
// `autoGapCount` (default 1.1) base intervals apart, so absent dates
|
|
112
111
|
// surface as gaps instead of being bridged by a straight segment.
|
|
113
|
-
connect:
|
|
114
|
-
autoGapCount:
|
|
112
|
+
connect: w,
|
|
113
|
+
autoGapCount: S,
|
|
115
114
|
...t[0].type === "date" ? { valueXField: t[0].value } : { categoryXField: t[0].value }
|
|
116
115
|
})
|
|
117
116
|
);
|
|
118
|
-
if (t[0].type === "date" && (a.data.processor =
|
|
117
|
+
if (t[0].type === "date" && (a.data.processor = ge.new(e, {
|
|
119
118
|
dateFormat: "i",
|
|
120
119
|
dateFields: [t[0].value]
|
|
121
|
-
})), t[0].type === "date" && !
|
|
122
|
-
const
|
|
123
|
-
t: new Date(
|
|
124
|
-
hasValue:
|
|
125
|
-
})).filter((
|
|
126
|
-
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
-
}),
|
|
130
|
-
const f =
|
|
131
|
-
if (
|
|
132
|
-
return
|
|
133
|
-
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, {
|
|
134
133
|
radius: 3,
|
|
135
134
|
fill: a.get("fill"),
|
|
136
|
-
stroke:
|
|
135
|
+
stroke: s.interfaceColors.get("background"),
|
|
137
136
|
strokeWidth: 1
|
|
138
137
|
})
|
|
139
138
|
});
|
|
140
139
|
});
|
|
141
140
|
}
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
const A = N && m.length === 1;
|
|
142
|
+
if (a.data.setAll(g), a.strokes.template.setAll({
|
|
143
|
+
strokeWidth: 2,
|
|
144
|
+
...C && { strokeDasharray: C }
|
|
145
|
+
}), A) {
|
|
146
|
+
const n = a.get("fill") ?? O.getIndex(d);
|
|
147
|
+
a.fills.template.setAll({
|
|
148
|
+
visible: !0,
|
|
149
|
+
fillOpacity: 1,
|
|
150
|
+
fillGradient: we.new(e, {
|
|
151
|
+
rotation: 90,
|
|
152
|
+
stops: [
|
|
153
|
+
{ color: n, opacity: 0.6 },
|
|
154
|
+
{ color: n, opacity: 0 }
|
|
155
|
+
]
|
|
156
|
+
})
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
a.appear();
|
|
160
|
+
}), r.set(
|
|
144
161
|
"cursor",
|
|
145
|
-
|
|
146
|
-
).lineY.set("visible", !1),
|
|
162
|
+
ke.new(e, { xAxis: i, behavior: "none" })
|
|
163
|
+
).lineY.set("visible", !1), ie({
|
|
147
164
|
root: e,
|
|
148
|
-
chart:
|
|
165
|
+
chart: r,
|
|
149
166
|
xAxis: i,
|
|
150
|
-
theme:
|
|
167
|
+
theme: p,
|
|
151
168
|
isDateAxis: t[0].type === "date",
|
|
152
|
-
baseInterval:
|
|
169
|
+
baseInterval: l,
|
|
153
170
|
follow: !0
|
|
154
171
|
});
|
|
155
|
-
const c =
|
|
156
|
-
|
|
157
|
-
width:
|
|
172
|
+
const c = r.bottomAxesContainer.children.push(
|
|
173
|
+
Ce.new(e, {
|
|
174
|
+
width: b(100),
|
|
158
175
|
paddingTop: 10,
|
|
159
|
-
centerX:
|
|
160
|
-
x:
|
|
176
|
+
centerX: b(50),
|
|
177
|
+
x: b(50),
|
|
161
178
|
layout: e.gridLayout
|
|
162
179
|
})
|
|
163
180
|
);
|
|
164
181
|
c.itemContainers.template.events.on("pointerover", function(o) {
|
|
165
|
-
var
|
|
166
|
-
const
|
|
167
|
-
|
|
168
|
-
|
|
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) {
|
|
185
|
+
n !== a ? n.strokes.template.setAll({
|
|
169
186
|
strokeOpacity: 0.15,
|
|
170
|
-
stroke:
|
|
171
|
-
}) :
|
|
187
|
+
stroke: L(0)
|
|
188
|
+
}) : n.strokes.template.setAll({ strokeWidth: 3 });
|
|
172
189
|
});
|
|
173
190
|
}), c.itemContainers.template.events.on("pointerout", function() {
|
|
174
|
-
|
|
191
|
+
r.series.each(function(o) {
|
|
175
192
|
o.strokes.template.setAll({
|
|
176
193
|
strokeOpacity: 1,
|
|
177
194
|
strokeWidth: 2,
|
|
178
195
|
stroke: o.get("fill")
|
|
179
196
|
});
|
|
180
197
|
});
|
|
181
|
-
}), c.itemContainers.template.set("width",
|
|
182
|
-
width:
|
|
198
|
+
}), c.itemContainers.template.set("width", R), c.valueLabels.template.setAll({
|
|
199
|
+
width: R,
|
|
183
200
|
textAlign: "right"
|
|
184
|
-
}), c.data.setAll(
|
|
185
|
-
},
|
|
201
|
+
}), c.data.setAll(r.series.values), pe(e, (_ = m == null ? void 0 : m[0]) == null ? void 0 : _.format), r.appear(1e3, 100);
|
|
202
|
+
}, B), () => {
|
|
186
203
|
var e;
|
|
187
|
-
|
|
204
|
+
D && clearTimeout(D), (e = v.current) == null || e.dispose(), v.current = null;
|
|
188
205
|
};
|
|
189
206
|
}, [
|
|
190
|
-
|
|
207
|
+
x,
|
|
191
208
|
t,
|
|
192
209
|
m,
|
|
193
|
-
|
|
194
|
-
|
|
210
|
+
p.palette.mode,
|
|
211
|
+
G,
|
|
212
|
+
w,
|
|
195
213
|
k,
|
|
214
|
+
N,
|
|
196
215
|
C
|
|
197
216
|
]);
|
|
198
|
-
const
|
|
199
|
-
return { chartId:
|
|
217
|
+
const Z = { ...X };
|
|
218
|
+
return { chartId: I, ownerState: Z, sx: z, error: h, other: H };
|
|
200
219
|
};
|
|
201
220
|
export {
|
|
202
|
-
|
|
221
|
+
He as useLineChartLogic
|
|
203
222
|
};
|