@hybridcore/ui 1.6.14 → 1.6.17
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/CATALOG.md +1 -0
- package/dist/IconCircle-HcgE1lHy.js +11 -0
- package/dist/IconMinus-B6OPYVyo.js +11 -0
- package/dist/IconPlus-7KPPhzOb.js +11 -0
- package/dist/IconTrendingUp-CW4SFYmc.js +27 -0
- package/dist/components/charts/_common/tooltip.js +44 -35
- package/dist/components/charts/_common/utils.js +21 -11
- package/dist/components/charts/chart-wrapper/index.js +44 -43
- package/dist/components/charts/column-line-mix/logic.js +59 -59
- package/dist/components/charts/donut-chart/logic.js +53 -40
- package/dist/components/charts/line/logic.js +55 -55
- package/dist/components/charts/logaritmic-scale/logic.js +27 -27
- package/dist/components/charts/multiple-value-axes/logic.js +70 -70
- package/dist/components/charts/xy-chart/logic.js +135 -134
- package/dist/components/color-picker/index.js +1393 -1399
- package/dist/components/data-map/components/controls/index.js +7 -6
- package/dist/components/heat-map/components/controls/index.js +7 -6
- package/dist/components/metric-card/logic.js +57 -77
- package/dist/components/prr-map/components/controls/index.js +7 -6
- package/dist/components/raster-grid-map/components/controls/index.js +7 -6
- package/dist/components/status-indicator/index.js +44 -0
- package/dist/components/status-indicator/logic.js +105 -0
- package/dist/components/status-indicator/styled.js +114 -0
- package/dist/main.d.ts +85 -1
- package/dist/main.js +65 -63
- package/package.json +1 -1
- package/dist/IconPlus-yPkff_Vj.js +0 -19
|
@@ -1,69 +1,82 @@
|
|
|
1
|
-
import { R as
|
|
2
|
-
import { useThemeProps as
|
|
3
|
-
import
|
|
4
|
-
import { useId as
|
|
5
|
-
import { applyValueFormat as
|
|
6
|
-
import { P as
|
|
7
|
-
import { p as
|
|
8
|
-
import { L as
|
|
9
|
-
const
|
|
10
|
-
const
|
|
1
|
+
import { R as w, A } from "../../../AnimatedTheme-ktdO3Bel.js";
|
|
2
|
+
import { useThemeProps as P, useTheme as R } from "@mui/material";
|
|
3
|
+
import b from "dayjs";
|
|
4
|
+
import { useId as C, useRef as D, useEffect as F } from "react";
|
|
5
|
+
import { applyValueFormat as L, colorSetFromPalette as I } from "../_common/utils.js";
|
|
6
|
+
import { P as S, a as B } from "../../../PieSeries-CMH0Z7pz.js";
|
|
7
|
+
import { p as l, c as s } from "../../../Entity-BJCuhdq_.js";
|
|
8
|
+
import { L as E } from "../../../Legend-CFvQiIfn.js";
|
|
9
|
+
const G = (y) => {
|
|
10
|
+
const u = P({ props: y, name: "HCDonutChart" }), {
|
|
11
11
|
dimensions: t,
|
|
12
12
|
values: o,
|
|
13
|
-
data:
|
|
13
|
+
data: n,
|
|
14
14
|
initDelay: T = 0,
|
|
15
15
|
colors: d,
|
|
16
16
|
sx: x,
|
|
17
17
|
...M
|
|
18
|
-
} =
|
|
19
|
-
let
|
|
20
|
-
t.length < 1 ?
|
|
21
|
-
if (
|
|
22
|
-
let
|
|
23
|
-
return
|
|
24
|
-
var
|
|
25
|
-
const e =
|
|
26
|
-
|
|
18
|
+
} = u, a = R(), f = `hc-donut-chart-${C().replace(/:/g, "")}`, c = D(null);
|
|
19
|
+
let i = null;
|
|
20
|
+
t.length < 1 ? i = "Missing dimensions config!" : o.length < 1 && (i = "Missing values config!"), F(() => {
|
|
21
|
+
if (i) return;
|
|
22
|
+
let m;
|
|
23
|
+
return m = setTimeout(() => {
|
|
24
|
+
var v;
|
|
25
|
+
const e = w.new(f);
|
|
26
|
+
c.current = e, L(e, (v = o == null ? void 0 : o[0]) == null ? void 0 : v.format), e.setThemes([A.new(e)]);
|
|
27
27
|
const h = e.container.children.push(
|
|
28
|
-
|
|
28
|
+
S.new(e, {
|
|
29
29
|
layout: e.verticalLayout,
|
|
30
|
-
innerRadius:
|
|
30
|
+
innerRadius: l(50)
|
|
31
31
|
})
|
|
32
32
|
);
|
|
33
33
|
e.interfaceColors.setAll({
|
|
34
|
-
text:
|
|
35
|
-
grid:
|
|
36
|
-
stroke:
|
|
34
|
+
text: s(a.palette.text.primary),
|
|
35
|
+
grid: s(a.palette.divider),
|
|
36
|
+
stroke: s(a.palette.divider),
|
|
37
|
+
// Drives the gap color between slices; tie it to the surface so the
|
|
38
|
+
// beveled edges read correctly in both light and dark mode.
|
|
39
|
+
background: s(a.palette.background.paper)
|
|
37
40
|
});
|
|
38
41
|
const r = h.series.push(
|
|
39
|
-
|
|
42
|
+
B.new(e, {
|
|
40
43
|
valueField: o[0].dataFieldName,
|
|
41
44
|
categoryField: t[0].value
|
|
42
45
|
})
|
|
43
46
|
);
|
|
44
|
-
r.set("colors",
|
|
47
|
+
r.set("colors", I(e, d));
|
|
45
48
|
const g = "{category}: {valuePercentTotal.formatNumber('0.00')}% ({value})";
|
|
46
|
-
r.slices.template.
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
r.slices.template.setAll({
|
|
50
|
+
tooltipText: g,
|
|
51
|
+
stroke: s(a.palette.background.paper),
|
|
52
|
+
strokeWidth: 2,
|
|
53
|
+
strokeOpacity: 1,
|
|
54
|
+
cornerRadius: 4
|
|
55
|
+
}), r.slices.template.states.create("hover", { scale: 1.04 }), r.set("radius", l(80)), r.labels.template.setAll({
|
|
56
|
+
text: g,
|
|
57
|
+
maxWidth: 140,
|
|
58
|
+
oversizedBehavior: "wrap"
|
|
59
|
+
}), t[0].type === "date" && n.forEach((Y) => {
|
|
60
|
+
let p = "YYYY";
|
|
61
|
+
t[0].value.includes("month") ? p = "MMM YYYY" : t[0].value.includes("day") && (p = "DD MMM YYYY"), Y[t[0].value] = b(Y[t[0].value]).format(
|
|
62
|
+
p
|
|
50
63
|
);
|
|
51
|
-
}), r.data.setAll(
|
|
52
|
-
|
|
53
|
-
centerX:
|
|
54
|
-
x:
|
|
64
|
+
}), r.data.setAll(n), h.children.push(
|
|
65
|
+
E.new(e, {
|
|
66
|
+
centerX: l(50),
|
|
67
|
+
x: l(50),
|
|
55
68
|
marginTop: 15,
|
|
56
69
|
marginBottom: 15
|
|
57
70
|
})
|
|
58
71
|
).data.setAll(r.dataItems), r.appear(1e3, 100);
|
|
59
72
|
}, T), () => {
|
|
60
73
|
var e;
|
|
61
|
-
|
|
74
|
+
m && clearTimeout(m), (e = c.current) == null || e.dispose(), c.current = null;
|
|
62
75
|
};
|
|
63
|
-
}, [
|
|
64
|
-
const
|
|
65
|
-
return { chartId: f, ownerState:
|
|
76
|
+
}, [n, t, o, a.palette.mode, d]);
|
|
77
|
+
const k = { ...u };
|
|
78
|
+
return { chartId: f, ownerState: k, sx: x, error: i, other: M };
|
|
66
79
|
};
|
|
67
80
|
export {
|
|
68
|
-
|
|
81
|
+
G as useDonutChartLogic
|
|
69
82
|
};
|
|
@@ -4,18 +4,18 @@ import U from "lodash";
|
|
|
4
4
|
import { useId as J, useRef as K, useEffect as Q } from "react";
|
|
5
5
|
import { humanizeLabel as ee } from "../_common/format.js";
|
|
6
6
|
import { attachCombinedAxisTooltip as te } from "../_common/tooltip.js";
|
|
7
|
-
import { colorSetFromPalette as re,
|
|
8
|
-
import { c as
|
|
9
|
-
import { X as
|
|
10
|
-
import { A as _, 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
|
-
import { D as
|
|
7
|
+
import { colorSetFromPalette as re, applyDateAxisLabelFormat as se, applyValueFormat as oe } from "../_common/utils.js";
|
|
8
|
+
import { c as d, p as X, b as V } from "../../../Entity-BJCuhdq_.js";
|
|
9
|
+
import { X as ae, V as ie } from "../../../AxisRenderer-BCQoUJw6.js";
|
|
10
|
+
import { A as _, a as ne } from "../../../AxisRendererY-AXWvGU6r.js";
|
|
11
|
+
import { C as le } from "../../../CategoryAxis-B6NqW8qd.js";
|
|
12
|
+
import { L as me } from "../../../LineSeries-D_IL2qGF.js";
|
|
13
|
+
import { D as pe, G as de } from "../../../GaplessDateAxis-B2g2jgSG.js";
|
|
14
|
+
import { B as ce } from "../../../Bullet-Djj7Vs9T.js";
|
|
15
|
+
import { C as ue } from "../../../Circle-BnfBNKBD.js";
|
|
16
|
+
import { X as fe } from "../../../XYCursor-CVUSpqb9.js";
|
|
17
|
+
import { L as he } from "../../../Legend-CFvQiIfn.js";
|
|
18
|
+
import { D as Ae } from "../../../DateAxis-DEXKps1S.js";
|
|
19
19
|
const B = 1.1, ge = {
|
|
20
20
|
millisecond: 1,
|
|
21
21
|
second: 1e3,
|
|
@@ -25,22 +25,22 @@ const B = 1.1, ge = {
|
|
|
25
25
|
week: 6048e5,
|
|
26
26
|
month: 2592e6,
|
|
27
27
|
year: 31536e6
|
|
28
|
-
},
|
|
28
|
+
}, _e = (E) => {
|
|
29
29
|
const b = j({ props: E, name: "HCLineChart" }), {
|
|
30
30
|
dimensions: t,
|
|
31
31
|
values: m,
|
|
32
|
-
data:
|
|
32
|
+
data: A,
|
|
33
33
|
initDelay: P = 0,
|
|
34
|
-
baseInterval:
|
|
34
|
+
baseInterval: n,
|
|
35
35
|
colors: L,
|
|
36
36
|
connectMissingData: k = !0,
|
|
37
37
|
skipEmptyDates: v = !1,
|
|
38
38
|
sx: R,
|
|
39
39
|
...W
|
|
40
40
|
} = b, l = q(), N = `hc-line-chart-${J().replace(/:/g, "")}`, C = K(null);
|
|
41
|
-
let
|
|
42
|
-
t.length < 1 ?
|
|
43
|
-
if (
|
|
41
|
+
let g = null;
|
|
42
|
+
t.length < 1 ? g = "Missing dimensions config!" : m.length < 1 && (g = "Missing values config!"), Q(() => {
|
|
43
|
+
if (g) return;
|
|
44
44
|
let T;
|
|
45
45
|
return T = setTimeout(() => {
|
|
46
46
|
var G, O, I, M;
|
|
@@ -48,12 +48,12 @@ const B = 1.1, ge = {
|
|
|
48
48
|
C.current = e;
|
|
49
49
|
const z = Z.new(e);
|
|
50
50
|
e.setThemes([$.new(e), z]), e.interfaceColors.setAll({
|
|
51
|
-
text:
|
|
52
|
-
grid:
|
|
53
|
-
stroke:
|
|
51
|
+
text: d(l.palette.text.primary),
|
|
52
|
+
grid: d(l.palette.divider),
|
|
53
|
+
stroke: d(l.palette.divider)
|
|
54
54
|
});
|
|
55
55
|
const s = e.container.children.push(
|
|
56
|
-
|
|
56
|
+
ae.new(e, {
|
|
57
57
|
panX: !0,
|
|
58
58
|
panY: !0,
|
|
59
59
|
wheelX: "none",
|
|
@@ -65,45 +65,45 @@ const B = 1.1, ge = {
|
|
|
65
65
|
})
|
|
66
66
|
);
|
|
67
67
|
s.set("colors", re(e, L));
|
|
68
|
-
let
|
|
68
|
+
let i, c = A;
|
|
69
69
|
if (t[0].type === "date") {
|
|
70
|
-
const o = v ? de :
|
|
71
|
-
|
|
70
|
+
const o = v ? de : Ae;
|
|
71
|
+
i = s.xAxes.push(
|
|
72
72
|
o.new(e, {
|
|
73
73
|
maxDeviation: 0.1,
|
|
74
74
|
groupData: !1,
|
|
75
|
-
baseInterval:
|
|
75
|
+
baseInterval: n || { timeUnit: "day", count: 1 },
|
|
76
76
|
renderer: _.new(e, {})
|
|
77
77
|
})
|
|
78
|
-
), c = U.orderBy(
|
|
78
|
+
), se(i, t[0]), c = U.orderBy(A, [t[0].value]);
|
|
79
79
|
} else
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
i = s.xAxes.push(
|
|
81
|
+
le.new(e, {
|
|
82
82
|
categoryField: t[0].value,
|
|
83
83
|
renderer: _.new(e, {})
|
|
84
84
|
})
|
|
85
85
|
), e.numberFormatter.setAll({
|
|
86
86
|
numberFormat: "#",
|
|
87
87
|
numericFields: ["valueX"]
|
|
88
|
-
}), c = U.orderBy(
|
|
88
|
+
}), c = U.orderBy(A, [t[0].value]), i.data.setAll(c);
|
|
89
89
|
const Y = s.yAxes.push(
|
|
90
|
-
|
|
91
|
-
renderer:
|
|
90
|
+
ie.new(e, {
|
|
91
|
+
renderer: ne.new(e, {})
|
|
92
92
|
})
|
|
93
93
|
);
|
|
94
|
-
(G =
|
|
95
|
-
stroke:
|
|
94
|
+
(G = i.get("renderer")) == null || G.grid.template.setAll({
|
|
95
|
+
stroke: d(l.palette.divider),
|
|
96
96
|
strokeOpacity: 1
|
|
97
|
-
}), (O =
|
|
98
|
-
stroke:
|
|
97
|
+
}), (O = i.get("renderer")) == null || O.labels.template.setAll({ paddingTop: 12 }), (I = Y.get("renderer")) == null || I.grid.template.setAll({
|
|
98
|
+
stroke: d(l.palette.divider),
|
|
99
99
|
strokeOpacity: 1
|
|
100
100
|
}), m.forEach((o) => {
|
|
101
101
|
const a = s.series.push(
|
|
102
|
-
|
|
102
|
+
me.new(e, {
|
|
103
103
|
// Legend/tooltip label: explicit override, else humanize the raw
|
|
104
104
|
// backend field (snake_case / lowercase → Title Case).
|
|
105
105
|
name: o.label ?? ee(o.name),
|
|
106
|
-
xAxis:
|
|
106
|
+
xAxis: i,
|
|
107
107
|
yAxis: Y,
|
|
108
108
|
valueYField: o.dataFieldName,
|
|
109
109
|
// When false, the line breaks at missing points. On a date axis the
|
|
@@ -115,22 +115,22 @@ const B = 1.1, ge = {
|
|
|
115
115
|
...t[0].type === "date" ? { valueXField: t[0].value } : { categoryXField: t[0].value }
|
|
116
116
|
})
|
|
117
117
|
);
|
|
118
|
-
if (t[0].type === "date" && (a.data.processor =
|
|
118
|
+
if (t[0].type === "date" && (a.data.processor = pe.new(e, {
|
|
119
119
|
dateFormat: "i",
|
|
120
120
|
dateFields: [t[0].value]
|
|
121
121
|
})), t[0].type === "date" && !v) {
|
|
122
|
-
const y = t[0].value, x = ge[(
|
|
122
|
+
const y = t[0].value, x = ge[(n == null ? void 0 : n.timeUnit) ?? "day"] * ((n == null ? void 0 : n.count) ?? 1), p = k ? 1 / 0 : x * B, w = c.map((r) => ({
|
|
123
123
|
t: new Date(r[y]).getTime(),
|
|
124
124
|
hasValue: r[o.dataFieldName] !== null && r[o.dataFieldName] !== void 0
|
|
125
125
|
})).filter((r) => r.hasValue && !Number.isNaN(r.t)), D = /* @__PURE__ */ new Set();
|
|
126
126
|
w.forEach((r, f) => {
|
|
127
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 >
|
|
128
|
+
F > p && h > p && D.add(r.t);
|
|
129
129
|
}), D.size > 0 && a.bullets.push((r, f, F) => {
|
|
130
130
|
const h = F.dataContext;
|
|
131
131
|
if (D.has(new Date(h == null ? void 0 : h[y]).getTime()))
|
|
132
|
-
return
|
|
133
|
-
sprite:
|
|
132
|
+
return ce.new(r, {
|
|
133
|
+
sprite: ue.new(r, {
|
|
134
134
|
radius: 3,
|
|
135
135
|
fill: a.get("fill"),
|
|
136
136
|
stroke: r.interfaceColors.get("background"),
|
|
@@ -142,18 +142,18 @@ const B = 1.1, ge = {
|
|
|
142
142
|
a.data.setAll(c), a.strokes.template.setAll({ strokeWidth: 2 }), a.appear();
|
|
143
143
|
}), s.set(
|
|
144
144
|
"cursor",
|
|
145
|
-
|
|
145
|
+
fe.new(e, { xAxis: i, behavior: "none" })
|
|
146
146
|
).lineY.set("visible", !1), te({
|
|
147
147
|
root: e,
|
|
148
148
|
chart: s,
|
|
149
|
-
xAxis:
|
|
149
|
+
xAxis: i,
|
|
150
150
|
theme: l,
|
|
151
151
|
isDateAxis: t[0].type === "date",
|
|
152
|
-
baseInterval:
|
|
152
|
+
baseInterval: n,
|
|
153
153
|
follow: !0
|
|
154
154
|
});
|
|
155
155
|
const u = s.bottomAxesContainer.children.push(
|
|
156
|
-
|
|
156
|
+
he.new(e, {
|
|
157
157
|
width: X(100),
|
|
158
158
|
paddingTop: 10,
|
|
159
159
|
centerX: X(50),
|
|
@@ -164,11 +164,11 @@ const B = 1.1, ge = {
|
|
|
164
164
|
u.itemContainers.template.events.on("pointerover", function(o) {
|
|
165
165
|
var x;
|
|
166
166
|
const a = o.target, y = (x = a == null ? void 0 : a.dataItem) == null ? void 0 : x.dataContext;
|
|
167
|
-
s.series.each(function(
|
|
168
|
-
|
|
167
|
+
s.series.each(function(p) {
|
|
168
|
+
p !== y ? p.strokes.template.setAll({
|
|
169
169
|
strokeOpacity: 0.15,
|
|
170
|
-
stroke:
|
|
171
|
-
}) :
|
|
170
|
+
stroke: d(0)
|
|
171
|
+
}) : p.strokes.template.setAll({ strokeWidth: 3 });
|
|
172
172
|
});
|
|
173
173
|
}), u.itemContainers.template.events.on("pointerout", function() {
|
|
174
174
|
s.series.each(function(o) {
|
|
@@ -181,13 +181,13 @@ const B = 1.1, ge = {
|
|
|
181
181
|
}), u.itemContainers.template.set("width", V), u.valueLabels.template.setAll({
|
|
182
182
|
width: V,
|
|
183
183
|
textAlign: "right"
|
|
184
|
-
}), u.data.setAll(s.series.values),
|
|
184
|
+
}), u.data.setAll(s.series.values), oe(e, (M = m == null ? void 0 : m[0]) == null ? void 0 : M.format), s.appear(1e3, 100);
|
|
185
185
|
}, P), () => {
|
|
186
186
|
var e;
|
|
187
187
|
T && clearTimeout(T), (e = C.current) == null || e.dispose(), C.current = null;
|
|
188
188
|
};
|
|
189
189
|
}, [
|
|
190
|
-
|
|
190
|
+
A,
|
|
191
191
|
t,
|
|
192
192
|
m,
|
|
193
193
|
l.palette.mode,
|
|
@@ -196,8 +196,8 @@ const B = 1.1, ge = {
|
|
|
196
196
|
v
|
|
197
197
|
]);
|
|
198
198
|
const S = { ...b };
|
|
199
|
-
return { chartId: N, ownerState: S, sx: R, error:
|
|
199
|
+
return { chartId: N, ownerState: S, sx: R, error: g, other: W };
|
|
200
200
|
};
|
|
201
201
|
export {
|
|
202
|
-
|
|
202
|
+
_e as useLineChartLogic
|
|
203
203
|
};
|
|
@@ -4,27 +4,27 @@ import F from "lodash";
|
|
|
4
4
|
import { useId as G, useRef as O, useEffect as P } from "react";
|
|
5
5
|
import { humanizeLabel as V } from "../_common/format.js";
|
|
6
6
|
import { attachCombinedAxisTooltip as q } from "../_common/tooltip.js";
|
|
7
|
-
import { colorSetFromPalette as z,
|
|
7
|
+
import { colorSetFromPalette as z, applyDateAxisLabelFormat as B, applyValueFormat as H } from "../_common/utils.js";
|
|
8
8
|
import { c as i } from "../../../Entity-BJCuhdq_.js";
|
|
9
|
-
import { X as
|
|
10
|
-
import { X as
|
|
11
|
-
import { A as X, a as
|
|
12
|
-
import { C as
|
|
13
|
-
import { L as
|
|
14
|
-
import { D as
|
|
15
|
-
import { S as
|
|
16
|
-
import { D as
|
|
17
|
-
const
|
|
9
|
+
import { X as N, V as U } from "../../../AxisRenderer-BCQoUJw6.js";
|
|
10
|
+
import { X as W } from "../../../XYCursor-CVUSpqb9.js";
|
|
11
|
+
import { A as X, a as Z } from "../../../AxisRendererY-AXWvGU6r.js";
|
|
12
|
+
import { C as _ } from "../../../CategoryAxis-B6NqW8qd.js";
|
|
13
|
+
import { L as $ } from "../../../LineSeries-D_IL2qGF.js";
|
|
14
|
+
import { D as j, G as J } from "../../../GaplessDateAxis-B2g2jgSG.js";
|
|
15
|
+
import { S as K } from "../../../Scrollbar-CTI7_8Qw.js";
|
|
16
|
+
import { D as M } from "../../../DateAxis-DEXKps1S.js";
|
|
17
|
+
const xe = (k) => {
|
|
18
18
|
const f = E({ props: k, name: "HCLogaritmicScale" }), {
|
|
19
19
|
dimensions: t,
|
|
20
20
|
values: s,
|
|
21
21
|
data: n,
|
|
22
|
-
initDelay:
|
|
22
|
+
initDelay: L = 0,
|
|
23
23
|
baseInterval: h,
|
|
24
24
|
colors: A,
|
|
25
25
|
skipEmptyDates: x = !1,
|
|
26
|
-
sx:
|
|
27
|
-
...
|
|
26
|
+
sx: S,
|
|
27
|
+
...C
|
|
28
28
|
} = f, a = I(), g = `hc-logaritmic-scale-${G().replace(/:/g, "")}`, d = O(null);
|
|
29
29
|
let m = null;
|
|
30
30
|
t.length < 1 ? m = "LogaritmicScale requires at least 1 dimension" : s.length < 1 && (m = "LogaritmicScale requires at least 1 value"), P(() => {
|
|
@@ -39,7 +39,7 @@ const Ae = (k) => {
|
|
|
39
39
|
stroke: i(a.palette.divider)
|
|
40
40
|
});
|
|
41
41
|
const r = e.container.children.push(
|
|
42
|
-
|
|
42
|
+
N.new(e, {
|
|
43
43
|
panX: !0,
|
|
44
44
|
panY: !0,
|
|
45
45
|
wheelX: "none",
|
|
@@ -50,12 +50,12 @@ const Ae = (k) => {
|
|
|
50
50
|
);
|
|
51
51
|
r.set("colors", z(e, A)), r.set(
|
|
52
52
|
"cursor",
|
|
53
|
-
|
|
53
|
+
W.new(e, { behavior: "none" })
|
|
54
54
|
).lineY.set("visible", !1);
|
|
55
55
|
let o, p = n;
|
|
56
56
|
if (t[0].type === "date") {
|
|
57
57
|
p = F.orderBy(n, [t[0].value]);
|
|
58
|
-
const l = x ?
|
|
58
|
+
const l = x ? J : M;
|
|
59
59
|
o = r.xAxes.push(
|
|
60
60
|
l.new(e, {
|
|
61
61
|
maxDeviation: 0.1,
|
|
@@ -66,10 +66,10 @@ const Ae = (k) => {
|
|
|
66
66
|
), (v = o.get("renderer")) == null || v.grid.template.setAll({
|
|
67
67
|
stroke: i(a.palette.divider),
|
|
68
68
|
strokeOpacity: 1
|
|
69
|
-
});
|
|
69
|
+
}), B(o, t[0]);
|
|
70
70
|
} else
|
|
71
71
|
o = r.xAxes.push(
|
|
72
|
-
|
|
72
|
+
_.new(e, {
|
|
73
73
|
categoryField: t[0].value,
|
|
74
74
|
renderer: X.new(e, {})
|
|
75
75
|
})
|
|
@@ -81,9 +81,9 @@ const Ae = (k) => {
|
|
|
81
81
|
strokeOpacity: 1
|
|
82
82
|
});
|
|
83
83
|
const y = r.yAxes.push(
|
|
84
|
-
|
|
84
|
+
U.new(e, {
|
|
85
85
|
logarithmic: !0,
|
|
86
|
-
renderer:
|
|
86
|
+
renderer: Z.new(e, { minorGridEnabled: !0 })
|
|
87
87
|
})
|
|
88
88
|
);
|
|
89
89
|
(D = y.get("renderer")) == null || D.grid.template.setAll({
|
|
@@ -91,7 +91,7 @@ const Ae = (k) => {
|
|
|
91
91
|
strokeOpacity: 1
|
|
92
92
|
}), s.forEach((l) => {
|
|
93
93
|
const c = r.series.push(
|
|
94
|
-
|
|
94
|
+
$.new(e, {
|
|
95
95
|
name: l.label ?? V(l.name),
|
|
96
96
|
xAxis: o,
|
|
97
97
|
yAxis: y,
|
|
@@ -99,7 +99,7 @@ const Ae = (k) => {
|
|
|
99
99
|
...t[0].type === "date" ? { valueXField: t[0].value } : { categoryXField: t[0].value }
|
|
100
100
|
})
|
|
101
101
|
);
|
|
102
|
-
c.strokes.template.setAll({ strokeWidth: 3 }), t[0].type === "date" && (c.data.processor =
|
|
102
|
+
c.strokes.template.setAll({ strokeWidth: 3 }), t[0].type === "date" && (c.data.processor = j.new(e, {
|
|
103
103
|
dateFormat: "i",
|
|
104
104
|
dateFields: [t[0].value]
|
|
105
105
|
})), c.data.setAll(p), c.appear(1e3);
|
|
@@ -113,16 +113,16 @@ const Ae = (k) => {
|
|
|
113
113
|
follow: !0
|
|
114
114
|
}), r.set(
|
|
115
115
|
"scrollbarX",
|
|
116
|
-
|
|
117
|
-
),
|
|
118
|
-
},
|
|
116
|
+
K.new(e, { orientation: "horizontal" })
|
|
117
|
+
), H(e, (b = s == null ? void 0 : s[0]) == null ? void 0 : b.format), r.appear(1e3, 100);
|
|
118
|
+
}, L), () => {
|
|
119
119
|
var e;
|
|
120
120
|
u && clearTimeout(u), (e = d.current) == null || e.dispose(), d.current = null;
|
|
121
121
|
};
|
|
122
122
|
}, [n, t, s, a.palette.mode, A, x]);
|
|
123
123
|
const T = { ...f };
|
|
124
|
-
return { chartId: g, ownerState: T, sx:
|
|
124
|
+
return { chartId: g, ownerState: T, sx: S, error: m, other: C };
|
|
125
125
|
};
|
|
126
126
|
export {
|
|
127
|
-
|
|
127
|
+
xe as useLogaritmicScaleLogic
|
|
128
128
|
};
|