@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,113 +1,128 @@
|
|
|
1
|
-
import { R as
|
|
2
|
-
import { useThemeProps as
|
|
1
|
+
import { R as Y, A as R } from "../../../AnimatedTheme-ktdO3Bel.js";
|
|
2
|
+
import { useThemeProps as E, useTheme as I } from "@mui/material";
|
|
3
3
|
import F from "lodash";
|
|
4
|
-
import { useId as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
4
|
+
import { useId as G, useRef as O, useEffect as P } from "react";
|
|
5
|
+
import { humanizeLabel as V } from "../_common/format.js";
|
|
6
|
+
import { attachCombinedAxisTooltip as q } from "../_common/tooltip.js";
|
|
7
|
+
import { colorSetFromPalette as z, applyValueFormat as B } from "../_common/utils.js";
|
|
8
|
+
import { c as i } from "../../../Entity-BJCuhdq_.js";
|
|
9
|
+
import { X as H, V as N } from "../../../AxisRenderer-BCQoUJw6.js";
|
|
10
|
+
import { X as U } from "../../../XYCursor-CVUSpqb9.js";
|
|
11
|
+
import { A as X, a as W } from "../../../AxisRendererY-AXWvGU6r.js";
|
|
12
|
+
import { C as Z } from "../../../CategoryAxis-B6NqW8qd.js";
|
|
13
|
+
import { L as _ } from "../../../LineSeries-D_IL2qGF.js";
|
|
14
|
+
import { D as $, G as j } from "../../../GaplessDateAxis-B2g2jgSG.js";
|
|
15
|
+
import { S as J } from "../../../Scrollbar-CTI7_8Qw.js";
|
|
16
|
+
import { D as K } from "../../../DateAxis-DEXKps1S.js";
|
|
17
|
+
const Ae = (k) => {
|
|
18
|
+
const f = E({ props: k, name: "HCLogaritmicScale" }), {
|
|
17
19
|
dimensions: t,
|
|
18
|
-
values:
|
|
19
|
-
data:
|
|
20
|
-
initDelay:
|
|
21
|
-
baseInterval:
|
|
22
|
-
colors:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
20
|
+
values: s,
|
|
21
|
+
data: n,
|
|
22
|
+
initDelay: S = 0,
|
|
23
|
+
baseInterval: h,
|
|
24
|
+
colors: A,
|
|
25
|
+
skipEmptyDates: x = !1,
|
|
26
|
+
sx: C,
|
|
27
|
+
...L
|
|
28
|
+
} = f, a = I(), g = `hc-logaritmic-scale-${G().replace(/:/g, "")}`, d = O(null);
|
|
29
|
+
let m = null;
|
|
30
|
+
t.length < 1 ? m = "LogaritmicScale requires at least 1 dimension" : s.length < 1 && (m = "LogaritmicScale requires at least 1 value"), P(() => {
|
|
31
|
+
if (m) return;
|
|
32
|
+
let u;
|
|
33
|
+
return u = setTimeout(() => {
|
|
34
|
+
var v, w, D, b;
|
|
35
|
+
const e = Y.new(g);
|
|
36
|
+
d.current = e, e.setThemes([R.new(e)]), e.interfaceColors.setAll({
|
|
37
|
+
text: i(a.palette.text.primary),
|
|
38
|
+
grid: i(a.palette.divider),
|
|
39
|
+
stroke: i(a.palette.divider)
|
|
37
40
|
});
|
|
38
41
|
const r = e.container.children.push(
|
|
39
|
-
|
|
42
|
+
H.new(e, {
|
|
40
43
|
panX: !0,
|
|
41
44
|
panY: !0,
|
|
42
45
|
wheelX: "none",
|
|
43
46
|
wheelY: "none",
|
|
47
|
+
maxTooltipDistance: -1,
|
|
44
48
|
pinchZoomX: !0
|
|
45
49
|
})
|
|
46
50
|
);
|
|
47
|
-
r.set("colors",
|
|
51
|
+
r.set("colors", z(e, A)), r.set(
|
|
48
52
|
"cursor",
|
|
49
|
-
|
|
53
|
+
U.new(e, { behavior: "none" })
|
|
50
54
|
).lineY.set("visible", !1);
|
|
51
|
-
let
|
|
52
|
-
t[0].type === "date"
|
|
55
|
+
let o, p = n;
|
|
56
|
+
if (t[0].type === "date") {
|
|
57
|
+
p = F.orderBy(n, [t[0].value]);
|
|
58
|
+
const l = x ? j : K;
|
|
59
|
+
o = r.xAxes.push(
|
|
60
|
+
l.new(e, {
|
|
61
|
+
maxDeviation: 0.1,
|
|
62
|
+
groupData: !1,
|
|
63
|
+
baseInterval: h || { timeUnit: "day", count: 1 },
|
|
64
|
+
renderer: X.new(e, {})
|
|
65
|
+
})
|
|
66
|
+
), (v = o.get("renderer")) == null || v.grid.template.setAll({
|
|
67
|
+
stroke: i(a.palette.divider),
|
|
68
|
+
strokeOpacity: 1
|
|
69
|
+
});
|
|
70
|
+
} else
|
|
71
|
+
o = r.xAxes.push(
|
|
72
|
+
Z.new(e, {
|
|
73
|
+
categoryField: t[0].value,
|
|
74
|
+
renderer: X.new(e, {})
|
|
75
|
+
})
|
|
76
|
+
), e.numberFormatter.setAll({
|
|
77
|
+
numberFormat: "#",
|
|
78
|
+
numericFields: ["valueX"]
|
|
79
|
+
}), p = F.orderBy(n, [t[0].value]), o.data.setAll(p), (w = o.get("renderer")) == null || w.grid.template.setAll({
|
|
80
|
+
stroke: i(a.palette.divider),
|
|
81
|
+
strokeOpacity: 1
|
|
82
|
+
});
|
|
83
|
+
const y = r.yAxes.push(
|
|
53
84
|
N.new(e, {
|
|
54
|
-
maxDeviation: 0.1,
|
|
55
|
-
groupData: !1,
|
|
56
|
-
baseInterval: S || { timeUnit: "day", count: 1 },
|
|
57
|
-
renderer: X.new(e, {}),
|
|
58
|
-
tooltip: u.new(e, {})
|
|
59
|
-
})
|
|
60
|
-
), (v = s.get("renderer")) == null || v.grid.template.setAll({
|
|
61
|
-
stroke: i(o.palette.divider),
|
|
62
|
-
strokeOpacity: 1
|
|
63
|
-
})) : (s = r.xAxes.push(
|
|
64
|
-
W.new(e, {
|
|
65
|
-
categoryField: t[0].value,
|
|
66
|
-
renderer: X.new(e, {}),
|
|
67
|
-
tooltip: u.new(e, {})
|
|
68
|
-
})
|
|
69
|
-
), e.numberFormatter.setAll({
|
|
70
|
-
numberFormat: "#",
|
|
71
|
-
numericFields: ["valueX"]
|
|
72
|
-
}), m = F.orderBy(l, [t[0].value]), s.data.setAll(m), (w = s.get("renderer")) == null || w.grid.template.setAll({
|
|
73
|
-
stroke: i(o.palette.divider),
|
|
74
|
-
strokeOpacity: 1
|
|
75
|
-
}));
|
|
76
|
-
const A = r.yAxes.push(
|
|
77
|
-
G.new(e, {
|
|
78
85
|
logarithmic: !0,
|
|
79
|
-
renderer:
|
|
86
|
+
renderer: W.new(e, { minorGridEnabled: !0 })
|
|
80
87
|
})
|
|
81
88
|
);
|
|
82
|
-
(
|
|
83
|
-
stroke: i(
|
|
89
|
+
(D = y.get("renderer")) == null || D.grid.template.setAll({
|
|
90
|
+
stroke: i(a.palette.divider),
|
|
84
91
|
strokeOpacity: 1
|
|
85
|
-
}),
|
|
86
|
-
const
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
92
|
+
}), s.forEach((l) => {
|
|
93
|
+
const c = r.series.push(
|
|
94
|
+
_.new(e, {
|
|
95
|
+
name: l.label ?? V(l.name),
|
|
96
|
+
xAxis: o,
|
|
97
|
+
yAxis: y,
|
|
98
|
+
valueYField: l.dataFieldName,
|
|
99
|
+
...t[0].type === "date" ? { valueXField: t[0].value } : { categoryXField: t[0].value }
|
|
93
100
|
})
|
|
94
101
|
);
|
|
95
|
-
|
|
102
|
+
c.strokes.template.setAll({ strokeWidth: 3 }), t[0].type === "date" && (c.data.processor = $.new(e, {
|
|
96
103
|
dateFormat: "i",
|
|
97
104
|
dateFields: [t[0].value]
|
|
98
|
-
})),
|
|
105
|
+
})), c.data.setAll(p), c.appear(1e3);
|
|
106
|
+
}), q({
|
|
107
|
+
root: e,
|
|
108
|
+
chart: r,
|
|
109
|
+
xAxis: o,
|
|
110
|
+
theme: a,
|
|
111
|
+
isDateAxis: t[0].type === "date",
|
|
112
|
+
baseInterval: h,
|
|
113
|
+
follow: !0
|
|
99
114
|
}), r.set(
|
|
100
115
|
"scrollbarX",
|
|
101
|
-
|
|
102
|
-
), B(e, (
|
|
103
|
-
},
|
|
116
|
+
J.new(e, { orientation: "horizontal" })
|
|
117
|
+
), B(e, (b = s == null ? void 0 : s[0]) == null ? void 0 : b.format), r.appear(1e3, 100);
|
|
118
|
+
}, S), () => {
|
|
104
119
|
var e;
|
|
105
|
-
|
|
120
|
+
u && clearTimeout(u), (e = d.current) == null || e.dispose(), d.current = null;
|
|
106
121
|
};
|
|
107
|
-
}, [
|
|
108
|
-
const
|
|
109
|
-
return { chartId: g, ownerState:
|
|
122
|
+
}, [n, t, s, a.palette.mode, A, x]);
|
|
123
|
+
const T = { ...f };
|
|
124
|
+
return { chartId: g, ownerState: T, sx: C, error: m, other: L };
|
|
110
125
|
};
|
|
111
126
|
export {
|
|
112
|
-
|
|
127
|
+
Ae as useLogaritmicScaleLogic
|
|
113
128
|
};
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useThemeProps as
|
|
3
|
-
import
|
|
4
|
-
import { useId as H, useRef as
|
|
5
|
-
import { humanizeLabel as
|
|
1
|
+
import { R as j, A as q } from "../../../AnimatedTheme-ktdO3Bel.js";
|
|
2
|
+
import { useThemeProps as z, useTheme as U } from "@mui/material";
|
|
3
|
+
import D from "lodash";
|
|
4
|
+
import { useId as H, useRef as $, useEffect as J } from "react";
|
|
5
|
+
import { humanizeLabel as P } from "../_common/format.js";
|
|
6
|
+
import { attachCombinedAxisTooltip as K } from "../_common/tooltip.js";
|
|
6
7
|
import { colorSetFromPalette as Q, applyValueFormat as Z } from "../_common/utils.js";
|
|
7
|
-
import { c as
|
|
8
|
-
import { X as ee, V as te } from "../../../AxisRenderer-
|
|
9
|
-
import { L as re } from "../../../Legend-
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
|
|
8
|
+
import { c as C, a as A } from "../../../Entity-BJCuhdq_.js";
|
|
9
|
+
import { X as ee, V as te } from "../../../AxisRenderer-BCQoUJw6.js";
|
|
10
|
+
import { L as re } from "../../../Legend-CFvQiIfn.js";
|
|
11
|
+
import { A as X, a as se } from "../../../AxisRendererY-AXWvGU6r.js";
|
|
12
|
+
import { C as ae } from "../../../CategoryAxis-B6NqW8qd.js";
|
|
13
|
+
import { X as ie } from "../../../XYCursor-CVUSpqb9.js";
|
|
14
|
+
import { G as oe, D as le } from "../../../GaplessDateAxis-B2g2jgSG.js";
|
|
15
|
+
import { D as ne } from "../../../DateAxis-DEXKps1S.js";
|
|
16
|
+
import { L as ce } from "../../../LineSeries-D_IL2qGF.js";
|
|
17
|
+
import { G, R as me } from "../../../Tooltip-vyZRZWih.js";
|
|
18
|
+
import { C as ue } from "../../../Circle-BnfBNKBD.js";
|
|
19
|
+
import { B as pe } from "../../../Bullet-Djj7Vs9T.js";
|
|
20
|
+
class y extends G {
|
|
19
21
|
_beforeChanged() {
|
|
20
22
|
super._beforeChanged(), (this.isDirty("width") || this.isDirty("height") || this.isPrivateDirty("width") || this.isPrivateDirty("height")) && (this._clear = !0);
|
|
21
23
|
}
|
|
@@ -30,40 +32,41 @@ class x extends X {
|
|
|
30
32
|
this.markDirty(), this._clear = !0;
|
|
31
33
|
}
|
|
32
34
|
}
|
|
33
|
-
Object.defineProperty(
|
|
35
|
+
Object.defineProperty(y, "className", {
|
|
34
36
|
enumerable: !0,
|
|
35
37
|
configurable: !0,
|
|
36
38
|
writable: !0,
|
|
37
39
|
value: "Triangle"
|
|
38
40
|
});
|
|
39
|
-
Object.defineProperty(
|
|
41
|
+
Object.defineProperty(y, "classNames", {
|
|
40
42
|
enumerable: !0,
|
|
41
43
|
configurable: !0,
|
|
42
44
|
writable: !0,
|
|
43
|
-
value:
|
|
45
|
+
value: G.classNames.concat([y.className])
|
|
44
46
|
});
|
|
45
|
-
const
|
|
46
|
-
const n =
|
|
47
|
+
const x = ["CIRCLE", "RECTANGLE", "TRIANGLE"], Xe = (T) => {
|
|
48
|
+
const n = z({ props: T, name: "HCMultipleValueAxes" }), {
|
|
47
49
|
dimensions: s,
|
|
48
50
|
values: t,
|
|
49
|
-
data:
|
|
50
|
-
initDelay:
|
|
51
|
-
baseInterval:
|
|
51
|
+
data: d,
|
|
52
|
+
initDelay: I = 0,
|
|
53
|
+
baseInterval: L,
|
|
52
54
|
colors: R,
|
|
53
|
-
|
|
55
|
+
skipEmptyDates: E = !1,
|
|
56
|
+
sx: Y,
|
|
54
57
|
...V
|
|
55
|
-
} = n,
|
|
58
|
+
} = n, u = U(), _ = `hc-multiple-value-axes-${H().replace(/:/g, "")}`, w = $(null);
|
|
56
59
|
let h = null;
|
|
57
|
-
s.length < 1 ? h = "MultipleValueAxes requires at least 1 dimension" : t.length < 1 && (h = "MultipleValueAxes requires at least 1 value"),
|
|
60
|
+
s.length < 1 ? h = "MultipleValueAxes requires at least 1 dimension" : t.length < 1 && (h = "MultipleValueAxes requires at least 1 value"), J(() => {
|
|
58
61
|
if (h) return;
|
|
59
62
|
let b;
|
|
60
63
|
return b = setTimeout(() => {
|
|
61
|
-
var
|
|
64
|
+
var F;
|
|
62
65
|
const e = j.new(_);
|
|
63
|
-
|
|
64
|
-
text:
|
|
65
|
-
grid:
|
|
66
|
-
stroke:
|
|
66
|
+
w.current = e, e.setThemes([q.new(e)]), e.interfaceColors.setAll({
|
|
67
|
+
text: C(u.palette.text.primary),
|
|
68
|
+
grid: C(u.palette.divider),
|
|
69
|
+
stroke: C(u.palette.divider)
|
|
67
70
|
});
|
|
68
71
|
const r = e.container.children.push(
|
|
69
72
|
ee.new(e, {
|
|
@@ -71,117 +74,124 @@ const A = ["CIRCLE", "RECTANGLE", "TRIANGLE"], Ee = (L) => {
|
|
|
71
74
|
panY: !1,
|
|
72
75
|
wheelX: "none",
|
|
73
76
|
wheelY: "none",
|
|
77
|
+
maxTooltipDistance: -1,
|
|
74
78
|
layout: e.verticalLayout
|
|
75
79
|
})
|
|
76
80
|
);
|
|
77
81
|
r.set("colors", Q(e, R)), r.get("colors", {}).set("step", 3);
|
|
78
|
-
const
|
|
79
|
-
re.new(e, { centerX:
|
|
80
|
-
),
|
|
81
|
-
let
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
82
|
+
const O = r.children.push(
|
|
83
|
+
re.new(e, { centerX: A, x: A })
|
|
84
|
+
), o = s[0];
|
|
85
|
+
let c, p = d;
|
|
86
|
+
if (o.type === "date") {
|
|
87
|
+
const a = E ? oe : ne;
|
|
88
|
+
c = r.xAxes.push(
|
|
89
|
+
a.new(e, {
|
|
90
|
+
maxDeviation: 0.1,
|
|
91
|
+
groupData: !1,
|
|
92
|
+
baseInterval: L || { timeUnit: "day", count: 1 },
|
|
93
|
+
renderer: X.new(e, {})
|
|
94
|
+
})
|
|
95
|
+
), p = D.orderBy(d, [o.value]);
|
|
96
|
+
} else
|
|
97
|
+
c = r.xAxes.push(
|
|
98
|
+
ae.new(e, {
|
|
99
|
+
categoryField: o.value,
|
|
100
|
+
renderer: X.new(e, {})
|
|
101
|
+
})
|
|
102
|
+
), e.numberFormatter.setAll({
|
|
103
|
+
numberFormat: "#",
|
|
104
|
+
numericFields: ["valueX"]
|
|
105
|
+
}), p = D.orderBy(d, [o.value]), c.data.setAll(p);
|
|
106
|
+
function N(a, l, m, S, W, k, M) {
|
|
107
|
+
const f = se.new(e, { opposite: W }), v = r.yAxes.push(
|
|
102
108
|
te.new(e, { maxDeviation: 1, renderer: f })
|
|
103
109
|
);
|
|
104
|
-
r.yAxes.indexOf(
|
|
105
|
-
const
|
|
106
|
-
|
|
107
|
-
name:
|
|
108
|
-
xAxis:
|
|
109
|
-
yAxis:
|
|
110
|
+
r.yAxes.indexOf(v) > 0 && v.set("syncWithAxis", r.yAxes.getIndex(0));
|
|
111
|
+
const i = r.series.push(
|
|
112
|
+
ce.new(e, {
|
|
113
|
+
name: l,
|
|
114
|
+
xAxis: c,
|
|
115
|
+
yAxis: v,
|
|
110
116
|
valueYField: S,
|
|
111
|
-
...
|
|
112
|
-
tooltip: T.new(e, {
|
|
113
|
-
pointerOrientation: "horizontal",
|
|
114
|
-
labelText: `${o}: {valueY}`
|
|
115
|
-
})
|
|
117
|
+
...o.type === "date" ? { valueXField: m } : { categoryXField: m }
|
|
116
118
|
})
|
|
117
119
|
);
|
|
118
|
-
|
|
119
|
-
stroke:
|
|
120
|
+
i.strokes.template.setAll({ strokeWidth: 2 }), f.grid.template.set("strokeOpacity", 0.05), f.labels.template.set("fill", i.get("fill")), f.setAll({
|
|
121
|
+
stroke: i.get("fill"),
|
|
120
122
|
strokeOpacity: 1,
|
|
121
123
|
opacity: 1
|
|
122
|
-
}), M === "date" && (
|
|
124
|
+
}), M === "date" && (i.data.processor = le.new(e, {
|
|
123
125
|
dateFormat: "i",
|
|
124
|
-
dateFields: [
|
|
125
|
-
})),
|
|
126
|
+
dateFields: [m]
|
|
127
|
+
})), k !== void 0 && i.bullets.push(function() {
|
|
126
128
|
let g;
|
|
127
|
-
return
|
|
129
|
+
return k === "RECTANGLE" ? g = me.new(e, {
|
|
128
130
|
width: 10,
|
|
129
131
|
height: 10,
|
|
130
|
-
centerX:
|
|
131
|
-
centerY:
|
|
132
|
+
centerX: A,
|
|
133
|
+
centerY: A,
|
|
132
134
|
strokeWidth: 2,
|
|
133
|
-
stroke:
|
|
135
|
+
stroke: i.get("stroke"),
|
|
134
136
|
fill: e.interfaceColors.get("background")
|
|
135
|
-
}) :
|
|
137
|
+
}) : k === "TRIANGLE" ? g = y.new(e, {
|
|
136
138
|
width: 10,
|
|
137
139
|
height: 10,
|
|
138
140
|
strokeWidth: 2,
|
|
139
|
-
stroke:
|
|
141
|
+
stroke: i.get("stroke"),
|
|
140
142
|
fill: e.interfaceColors.get("background")
|
|
141
|
-
}) : g =
|
|
143
|
+
}) : g = ue.new(e, {
|
|
142
144
|
strokeWidth: 2,
|
|
143
145
|
radius: 4,
|
|
144
|
-
stroke:
|
|
146
|
+
stroke: i.get("stroke"),
|
|
145
147
|
fill: e.interfaceColors.get("background")
|
|
146
|
-
}),
|
|
147
|
-
}),
|
|
148
|
+
}), pe.new(e, { sprite: g });
|
|
149
|
+
}), i.data.setAll(a);
|
|
148
150
|
}
|
|
149
151
|
if (r.set(
|
|
150
152
|
"cursor",
|
|
151
|
-
|
|
152
|
-
).lineY.set("visible", !1),
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
153
|
+
ie.new(e, { xAxis: c, behavior: "none" })
|
|
154
|
+
).lineY.set("visible", !1), K({
|
|
155
|
+
root: e,
|
|
156
|
+
chart: r,
|
|
157
|
+
xAxis: c,
|
|
158
|
+
theme: u,
|
|
159
|
+
isDateAxis: o.type === "date",
|
|
160
|
+
baseInterval: L,
|
|
161
|
+
follow: !0
|
|
162
|
+
}), s.length > 1) {
|
|
163
|
+
const a = D.groupBy(p, s[1].value);
|
|
164
|
+
Object.keys(a).forEach((l, m) => {
|
|
165
|
+
N(
|
|
166
|
+
a[l],
|
|
167
|
+
P(l),
|
|
158
168
|
s[0].value,
|
|
159
169
|
t[0].dataFieldName,
|
|
160
|
-
|
|
161
|
-
|
|
170
|
+
m !== 0,
|
|
171
|
+
x[m % x.length]
|
|
162
172
|
);
|
|
163
173
|
});
|
|
164
174
|
} else
|
|
165
|
-
t.forEach((
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
175
|
+
t.forEach((a, l) => {
|
|
176
|
+
N(
|
|
177
|
+
p,
|
|
178
|
+
a.label ?? P(a.name),
|
|
179
|
+
o.value,
|
|
180
|
+
a.dataFieldName,
|
|
181
|
+
l !== 0,
|
|
182
|
+
x[l % x.length],
|
|
183
|
+
o.type
|
|
174
184
|
);
|
|
175
185
|
});
|
|
176
|
-
|
|
177
|
-
},
|
|
186
|
+
O.data.setAll(r.series.values), Z(e, (F = t == null ? void 0 : t[0]) == null ? void 0 : F.format), r.appear(1e3, 100);
|
|
187
|
+
}, I), () => {
|
|
178
188
|
var e;
|
|
179
|
-
b && clearTimeout(b), (e =
|
|
189
|
+
b && clearTimeout(b), (e = w.current) == null || e.dispose(), w.current = null;
|
|
180
190
|
};
|
|
181
|
-
}, [
|
|
191
|
+
}, [d, s, t, u.palette.mode, R, E]);
|
|
182
192
|
const B = { ...n };
|
|
183
|
-
return { chartId: _, ownerState: B, sx:
|
|
193
|
+
return { chartId: _, ownerState: B, sx: Y, error: h, other: V };
|
|
184
194
|
};
|
|
185
195
|
export {
|
|
186
|
-
|
|
196
|
+
Xe as useMultipleValueAxesLogic
|
|
187
197
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { R as S, A as E } from "../../../AnimatedTheme-
|
|
1
|
+
import { R as S, A as E } from "../../../AnimatedTheme-ktdO3Bel.js";
|
|
2
2
|
import { useThemeProps as L, useTheme as j } from "@mui/material";
|
|
3
3
|
import q from "dayjs";
|
|
4
4
|
import T from "lodash";
|
|
5
5
|
import { useId as B, useRef as H, useEffect as I } from "react";
|
|
6
6
|
import { applyValueFormat as W, colorSetFromPalette as O } from "../_common/utils.js";
|
|
7
|
-
import { c as n, p as o } from "../../../
|
|
8
|
-
import { P as V, a as N } from "../../../PieSeries-
|
|
7
|
+
import { c as n, p as o } from "../../../Entity-BJCuhdq_.js";
|
|
8
|
+
import { P as V, a as N } from "../../../PieSeries-CMH0Z7pz.js";
|
|
9
9
|
const Z = (b) => {
|
|
10
10
|
const g = L({ props: b, name: "HCNestedPie" }), {
|
|
11
11
|
dimensions: a,
|