vue-data-ui 3.0.13 → 3.0.14
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/{Arrow-D4tQqJus.js → Arrow-D_KT7quB.js} +1 -1
- package/dist/{BaseDraggableDialog-CcC-HAUF.js → BaseDraggableDialog-Dk6ObnG6.js} +2 -2
- package/dist/{BaseIcon-Ct07hrXe.js → BaseIcon-BCqWWRyS.js} +1 -1
- package/dist/{ColorPicker-FkwhtArz.js → ColorPicker-D4s6oWij.js} +2 -2
- package/dist/{DataTable-BkEwtdpl.js → DataTable-R-HFYyQH.js} +2 -2
- package/dist/{Legend-DgV5eb2_.js → Legend-C2AUd0Q-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-he2qk9Kr.js → NonSvgPenAndPaper-CndJxks1.js} +3 -3
- package/dist/{PackageVersion-TDeGly1K.js → PackageVersion-L8jgnm93.js} +1 -1
- package/dist/{PenAndPaper-BXRuklxc.js → PenAndPaper-B0N4qLUl.js} +3 -3
- package/dist/{Shape-BwKqZIcj.js → Shape-BOLi_2P0.js} +1 -1
- package/dist/{Slicer-0BUBh_u0.js → Slicer-CzxtPv2I.js} +2 -2
- package/dist/{SparkTooltip-BBoQeigT.js → SparkTooltip-Cl7CDAK-.js} +1 -1
- package/dist/{Title-69qfEeYb.js → Title-qljpbaH_.js} +1 -1
- package/dist/{Tooltip-2KuV61f8.js → Tooltip-CAWZetlE.js} +1 -1
- package/dist/{UserOptions-DS-5I2Ok.js → UserOptions-Bi3vHBGc.js} +2 -2
- package/dist/{dom-to-png-Brv7KaBM.js → dom-to-png-DeN7qRoq.js} +1 -1
- package/dist/{img-BCfGCXfh.js → img-DOMLxaLG.js} +1 -1
- package/dist/{index-BlZvRRI7.js → index-BbjJEUYf.js} +1 -1
- package/dist/{pdf-BIFwW7V2.js → pdf-DzF5U6qH.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BKnSPI9C.js → useAutoSizeLabelsInsideViewbox-DeGOz-va.js} +1 -1
- package/dist/{useNestedProp-BfifFbAl.js → useNestedProp-B0O5SJFw.js} +1 -1
- package/dist/{usePrinter-BpLrNLGp.js → usePrinter-BR9xYJPs.js} +2 -2
- package/dist/{vue-data-ui-BT27Eb6Y.js → vue-data-ui-Clsjl_5G.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CH5NKqoA.js → vue-ui-3d-bar-CfPp7uSf.js} +6 -6
- package/dist/{vue-ui-accordion-1x5Li2YN.js → vue-ui-accordion-BzryhJUY.js} +3 -3
- package/dist/{vue-ui-age-pyramid-B6CBFmwP.js → vue-ui-age-pyramid-Bfm3eU8g.js} +6 -6
- package/dist/{vue-ui-annotator-7rSaJi0p.js → vue-ui-annotator-CzSx0F_d.js} +2 -2
- package/dist/{vue-ui-bullet-CQ3IaRe5.js → vue-ui-bullet-DRB4T0IN.js} +7 -7
- package/dist/{vue-ui-candlestick-BVB-1w1S.js → vue-ui-candlestick-Zj-wL3Fw.js} +7 -7
- package/dist/{vue-ui-carousel-table-B_0756Wg.js → vue-ui-carousel-table-Cy0In84y.js} +4 -4
- package/dist/{vue-ui-chestnut-BqM3o9HZ.js → vue-ui-chestnut-C3JyH-Tw.js} +5 -5
- package/dist/{vue-ui-chord-2a9gzOXO.js → vue-ui-chord-BViOdSxx.js} +8 -8
- package/dist/{vue-ui-circle-pack-BxTKQYdJ.js → vue-ui-circle-pack-CoaLoFGK.js} +6 -6
- package/dist/{vue-ui-cursor-Crejr-2d.js → vue-ui-cursor-m4mIw8qD.js} +2 -2
- package/dist/{vue-ui-dashboard-hf8KB52C.js → vue-ui-dashboard-C_Q85tT0.js} +62 -62
- package/dist/{vue-ui-digits-C2Mq50vP.js → vue-ui-digits-DLr-55NR.js} +2 -2
- package/dist/{vue-ui-donut-vuu0Wh3B.js → vue-ui-donut-BRIaxAzH.js} +8 -8
- package/dist/{vue-ui-donut-evolution-ls8n5Sy4.js → vue-ui-donut-evolution-B5s4iM6g.js} +8 -8
- package/dist/{vue-ui-dumbbell-DdeFlqNp.js → vue-ui-dumbbell-Dmnge0uo.js} +7 -7
- package/dist/{vue-ui-flow-BMvSlz44.js → vue-ui-flow-COgCmDRI.js} +7 -7
- package/dist/{vue-ui-funnel-VleV7CJ2.js → vue-ui-funnel-Dj8K2IL4.js} +6 -6
- package/dist/{vue-ui-galaxy-ClT8Geaq.js → vue-ui-galaxy-BwO1zmev.js} +5 -5
- package/dist/{vue-ui-gauge-BIkqPeUR.js → vue-ui-gauge-CEzzFE1a.js} +7 -7
- package/dist/{vue-ui-gizmo-qbbqmrWz.js → vue-ui-gizmo-CQZU0GHu.js} +3 -3
- package/dist/{vue-ui-heatmap-B1sallgR.js → vue-ui-heatmap-WYbCgo4T.js} +7 -7
- package/dist/{vue-ui-history-plot-BtWcJfbt.js → vue-ui-history-plot-D0MZkhIx.js} +7 -7
- package/dist/{vue-ui-kpi-BMyaw85E.js → vue-ui-kpi-CO1e3lQt.js} +3 -3
- package/dist/{vue-ui-mini-loader-BQQ3FjE5.js → vue-ui-mini-loader-Cwqdk0Hc.js} +2 -2
- package/dist/{vue-ui-molecule-DQkkHdr7.js → vue-ui-molecule-BqpN0Jwl.js} +5 -5
- package/dist/{vue-ui-mood-radar-D5R_8FF0.js → vue-ui-mood-radar-BTatGJlv.js} +7 -7
- package/dist/{vue-ui-nested-donuts-Ld81fJrP.js → vue-ui-nested-donuts-CBM5xhcZ.js} +7 -7
- package/dist/{vue-ui-onion-Dbcw8jnA.js → vue-ui-onion-DqPp3WUr.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-Z7IAguhy.js → vue-ui-parallel-coordinate-plot-BCtTZHSi.js} +8 -8
- package/dist/{vue-ui-quadrant-DOdfxAYM.js → vue-ui-quadrant-DC1-Lm48.js} +8 -8
- package/dist/{vue-ui-quick-chart-CcfkLspA.js → vue-ui-quick-chart-BoppF9R_.js} +6 -6
- package/dist/{vue-ui-radar-BIbH3MjX.js → vue-ui-radar-BhUonhBU.js} +8 -8
- package/dist/{vue-ui-rating-DkqgGQJu.js → vue-ui-rating-D8LoaDfF.js} +2 -2
- package/dist/{vue-ui-relation-circle-DSdQ2Cw8.js → vue-ui-relation-circle-BJDsl3eM.js} +7 -7
- package/dist/{vue-ui-ridgeline-CdVmHbEX.js → vue-ui-ridgeline-DsadsetS.js} +8 -8
- package/dist/{vue-ui-rings-C9qUXwqg.js → vue-ui-rings-DBm6tU4x.js} +8 -8
- package/dist/{vue-ui-scatter-BbFYgBxR.js → vue-ui-scatter-Bn9aVcZq.js} +8 -8
- package/dist/{vue-ui-skeleton-CX1ZXulb.js → vue-ui-skeleton-_9gYG5uM.js} +3 -3
- package/dist/{vue-ui-smiley-BoZPC1w2.js → vue-ui-smiley-CAa8JkGc.js} +2 -2
- package/dist/{vue-ui-spark-trend-lgKqL9uu.js → vue-ui-spark-trend-C4GWQ2O3.js} +3 -3
- package/dist/{vue-ui-sparkbar-qzK8hxRg.js → vue-ui-sparkbar-Dx1Pf0pI.js} +3 -3
- package/dist/{vue-ui-sparkgauge-B-xTnWVp.js → vue-ui-sparkgauge-Ap1WNJ8J.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-bgHNspVZ.js → vue-ui-sparkhistogram-Dk4iCckr.js} +4 -4
- package/dist/{vue-ui-sparkline-DEDDbr11.js → vue-ui-sparkline-BY_0v4nM.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-ChMIbN6K.js → vue-ui-sparkstackbar-CyiRxg1b.js} +3 -3
- package/dist/{vue-ui-stackbar-CNfnfkBh.js → vue-ui-stackbar-BWJkn4sU.js} +9 -9
- package/dist/{vue-ui-strip-plot-URDAVcQv.js → vue-ui-strip-plot-COg5_F-1.js} +7 -7
- package/dist/{vue-ui-table-DkeJXqvG.js → vue-ui-table--aZGc83K.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BrghDQgt.js → vue-ui-table-heatmap-Bp8FepMh.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CEj7Pwxx.js → vue-ui-table-sparkline-S5Vvy7zi.js} +4 -4
- package/dist/{vue-ui-thermometer-gDAODqin.js → vue-ui-thermometer-BrwzA-cJ.js} +7 -7
- package/dist/{vue-ui-timer-u5RHf7lJ.js → vue-ui-timer-C8eyCIql.js} +5 -5
- package/dist/{vue-ui-tiremarks-DbbbGo1I.js → vue-ui-tiremarks-DUw68EW0.js} +6 -6
- package/dist/{vue-ui-treemap-CUrb9Zj3.js → vue-ui-treemap-DipBxisq.js} +8 -8
- package/dist/{vue-ui-vertical-bar-CAXxJiQC.js → vue-ui-vertical-bar-DA3E8leo.js} +9 -9
- package/dist/{vue-ui-waffle-CZkK46Gi.js → vue-ui-waffle-DFoees7z.js} +8 -8
- package/dist/{vue-ui-wheel-OUwzi8iK.js → vue-ui-wheel-D86304mK.js} +6 -6
- package/dist/{vue-ui-word-cloud-DOVX9uh7.js → vue-ui-word-cloud-BsNeRazH.js} +6 -6
- package/dist/{vue-ui-world-DVw4JkSI.js → vue-ui-world-BYIS8MNS.js} +6 -6
- package/dist/{vue-ui-xy-5edVF7jS.js → vue-ui-xy-DUBk7Pk1.js} +1128 -1091
- package/dist/{vue-ui-xy-canvas-D8EmTlVm.js → vue-ui-xy-canvas-BIgquvWF.js} +8 -8
- package/package.json +1 -1
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { c as Pl, V as Fl, U as Hl, y as Ol, X as
|
|
3
|
-
import { t as jl, u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as Jl } from "./useNestedProp-
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { S as
|
|
12
|
-
import { _ as Rl } from "./Shape-
|
|
13
|
-
import
|
|
14
|
-
import { _ as
|
|
15
|
-
const
|
|
1
|
+
import { useCssVars as ko, computed as x, ref as b, onMounted as ol, onBeforeUnmount as nl, watch as dt, nextTick as Yt, onUpdated as wo, createElementBlock as r, openBlock as u, createElementVNode as p, createCommentVNode as f, renderSlot as J, normalizeStyle as L, createVNode as al, withDirectives as Ql, unref as v, Fragment as g, renderList as C, normalizeClass as Ve, withKeys as Oa, vModelText as Fa, toDisplayString as le, defineAsyncComponent as Mt, useSlots as So, getCurrentInstance as _o, toRefs as $o, watchEffect as Ha, createBlock as Ge, createSlots as Lo, withCtx as xe, normalizeProps as Ct, guardReactiveProps as At, mergeProps as Tl, Teleport as Mo, vModelCheckbox as Co, createTextVNode as Ao } from "vue";
|
|
2
|
+
import { c as Pl, V as Fl, U as Hl, y as Ol, X as zo, F as tt, u as To, f as Kl, t as Io, a4 as je, d as No, D as yl, ac as Dt, e as Ro, p as Po, ad as Il, a9 as Y, ae as Oo, h as V, af as Va, ag as Ba, ah as Fo, ai as Ea, aj as Wa, k as Se, ak as Ho, z as Vo, _ as Da, R as vt, i as Ue, x as Xt, s as et, a7 as j, L as Bo, al as Nl, I as Eo, am as zt, C as qe, a as Wo, b as Do, o as Xa, v as Xo, w as Yo, E as ll } from "./index-BbjJEUYf.js";
|
|
3
|
+
import { t as jl, u as Go } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Uo } from "./usePrinter-BR9xYJPs.js";
|
|
5
|
+
import { u as qo, B as Zo } from "./useLoading-D7YHNtLX.js";
|
|
6
|
+
import { u as Jl } from "./useNestedProp-B0O5SJFw.js";
|
|
7
|
+
import { u as Ya, a as Ko, l as Jo } from "./useTimeLabels-4la0yDx0.js";
|
|
8
|
+
import { u as Qo } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
9
|
+
import jo from "./img-DOMLxaLG.js";
|
|
10
|
+
import en from "./Title-qljpbaH_.js";
|
|
11
|
+
import { S as tn } from "./Slicer-CzxtPv2I.js";
|
|
12
|
+
import { _ as Rl } from "./Shape-BOLi_2P0.js";
|
|
13
|
+
import ln from "./BaseIcon-BCqWWRyS.js";
|
|
14
|
+
import { _ as Ga } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const an = {
|
|
16
16
|
class: "vue-data-ui-slicer-labels",
|
|
17
17
|
style: { position: "relative", "z-index": "1", "pointer-events": "none" }
|
|
18
|
-
},
|
|
18
|
+
}, on = {
|
|
19
19
|
key: 0,
|
|
20
20
|
style: { width: "100%", position: "relative" }
|
|
21
|
-
},
|
|
21
|
+
}, nn = {
|
|
22
22
|
key: 0,
|
|
23
23
|
class: "minimap",
|
|
24
24
|
style: { width: "100%" }
|
|
25
|
-
},
|
|
25
|
+
}, un = ["xmlns", "viewBox"], sn = ["id"], rn = ["stop-color"], cn = ["d", "stroke"], vn = ["x", "width", "height", "fill", "rx"], dn = ["d", "fill"], hn = ["x", "width", "height", "rx", "fill"], fn = ["x", "width", "height", "fill", "rx"], mn = ["d", "fill"], gn = ["d", "stroke"], xn = ["cx", "cy", "stroke", "fill"], bn = ["cx", "cy", "stroke", "fill"], pn = ["x1", "x2", "y2", "stroke"], yn = ["x", "height", "width", "onMouseenter"], kn = ["min", "max"], wn = ["min", "max"], Sn = {
|
|
26
26
|
__name: "SlicerPreview",
|
|
27
27
|
props: {
|
|
28
28
|
background: {
|
|
@@ -155,14 +155,14 @@ const Qo = {
|
|
|
155
155
|
},
|
|
156
156
|
emits: ["futureStart", "futureEnd", "update:start", "update:end", "reset", "trapMouse"],
|
|
157
157
|
setup(R, { expose: Vl, emit: Bl }) {
|
|
158
|
-
|
|
159
|
-
ef4890c2:
|
|
158
|
+
ko((m) => ({
|
|
159
|
+
ef4890c2: It.value,
|
|
160
160
|
20514013: Ee.value,
|
|
161
161
|
"6d4a3344": El.value,
|
|
162
162
|
"00868143": R.selectColor,
|
|
163
163
|
62429251: Nt.value
|
|
164
164
|
}));
|
|
165
|
-
const d = R, Be =
|
|
165
|
+
const d = R, Be = b(null), ie = b(d.min), re = b(d.max), Tt = x(() => !!d.minimap.length), ul = b(Pl()), Gt = b(!1), Ut = b(0), yt = x({
|
|
166
166
|
get() {
|
|
167
167
|
return ie.value;
|
|
168
168
|
},
|
|
@@ -176,24 +176,24 @@ const Qo = {
|
|
|
176
176
|
},
|
|
177
177
|
set(m) {
|
|
178
178
|
const h = Math.max(m, ie.value + 1);
|
|
179
|
-
re.value = h,
|
|
179
|
+
re.value = h, Kt.value && (Kt.value.value = String(h)), me("futureEnd", h);
|
|
180
180
|
}
|
|
181
181
|
});
|
|
182
|
-
|
|
182
|
+
ol(() => {
|
|
183
183
|
const m = () => {
|
|
184
|
-
Be.value && (
|
|
184
|
+
Be.value && (Ut.value = Be.value.getBoundingClientRect().width);
|
|
185
185
|
};
|
|
186
186
|
m();
|
|
187
187
|
const h = jl(m, 50);
|
|
188
|
-
window.addEventListener("resize", h),
|
|
188
|
+
window.addEventListener("resize", h), nl(() => {
|
|
189
189
|
window.removeEventListener("resize", h);
|
|
190
190
|
});
|
|
191
191
|
});
|
|
192
|
-
let
|
|
193
|
-
function
|
|
194
|
-
clearTimeout(
|
|
192
|
+
let sl = null;
|
|
193
|
+
function Ze() {
|
|
194
|
+
clearTimeout(sl), me("update:start", Number(ie.value)), me("update:end", Number(re.value)), Gt.value = !1;
|
|
195
195
|
}
|
|
196
|
-
const
|
|
196
|
+
const il = x(() => d.refreshEndPoint === null ? d.max : d.refreshEndPoint), me = Bl, be = x(() => {
|
|
197
197
|
const m = d.max - d.min, h = (ie.value - d.min) / m * 100, S = (re.value - d.min) / m * 100, U = (h + S) / 2, ze = at.value ? `calc(${U}% - ${St.value.width}px)` : Ne.value ? `calc(${U}%)` : `calc(${U}% - ${St.value.width / 2}px)`;
|
|
198
198
|
return {
|
|
199
199
|
left: `${h}%`,
|
|
@@ -205,7 +205,7 @@ const Qo = {
|
|
|
205
205
|
arrowLeft: !Ne.value,
|
|
206
206
|
arrowRight: !at.value
|
|
207
207
|
};
|
|
208
|
-
}), Ne = x(() => Be.value ? Be.value.getBoundingClientRect().width * ((ie.value - d.min) / (d.max - d.min)) - gt.value / 2 < 0 : !1), at = x(() => Be.value ? Be.value.getBoundingClientRect().width * ((re.value - d.min) / (d.max - d.min)) + ne.value / 2 > Be.value.getBoundingClientRect().width : !1),
|
|
208
|
+
}), Ne = x(() => Be.value ? Be.value.getBoundingClientRect().width * ((ie.value - d.min) / (d.max - d.min)) - gt.value / 2 < 0 : !1), at = x(() => Be.value ? Be.value.getBoundingClientRect().width * ((re.value - d.min) / (d.max - d.min)) + ne.value / 2 > Be.value.getBoundingClientRect().width : !1), It = x(() => d.inputColor), Nt = x(() => d.background), El = x(() => `${d.selectColor}33`), Ee = x(() => d.borderColor), qt = x(() => {
|
|
209
209
|
let m = [];
|
|
210
210
|
for (let h = 0; h < d.minimap.length; h += 1)
|
|
211
211
|
m.push(h);
|
|
@@ -225,42 +225,42 @@ const Qo = {
|
|
|
225
225
|
Number(ie.value) > Number(m) && (ie.value = Number(m)), Number(re.value) > Number(m) && (re.value = Number(m));
|
|
226
226
|
}
|
|
227
227
|
);
|
|
228
|
-
const Rt =
|
|
228
|
+
const Rt = b(null), q = b({
|
|
229
229
|
width: 1,
|
|
230
230
|
height: 1
|
|
231
|
-
}), ot =
|
|
232
|
-
|
|
233
|
-
if (
|
|
231
|
+
}), ot = b(null);
|
|
232
|
+
ol(() => {
|
|
233
|
+
if (Tt.value) {
|
|
234
234
|
const m = jl(() => {
|
|
235
|
-
const { width: h, height: S } =
|
|
235
|
+
const { width: h, height: S } = Go({
|
|
236
236
|
chart: Rt.value
|
|
237
237
|
});
|
|
238
|
-
|
|
238
|
+
q.value.width = h, q.value.height = S - 47;
|
|
239
239
|
});
|
|
240
240
|
ot.value = new ResizeObserver(m), ot.value.observe(Rt.value);
|
|
241
241
|
}
|
|
242
|
-
}),
|
|
242
|
+
}), nl(() => {
|
|
243
243
|
ot.value && ot.value.disconnect();
|
|
244
244
|
});
|
|
245
|
-
const Zt = x(() => Math.max(1, d.max - d.min)), P = x(() => Math.max(1, d.minimap.length)),
|
|
245
|
+
const Zt = x(() => Math.max(1, d.max - d.min)), P = x(() => Math.max(1, d.minimap.length)), rl = x(() => P.value / Zt.value);
|
|
246
246
|
function ge(m) {
|
|
247
|
-
const h = Math.floor((m - d.min) *
|
|
247
|
+
const h = Math.floor((m - d.min) * rl.value);
|
|
248
248
|
return Math.min(Math.max(0, h), P.value);
|
|
249
249
|
}
|
|
250
250
|
function ae(m) {
|
|
251
|
-
const h = Math.ceil((m - d.min) *
|
|
251
|
+
const h = Math.ceil((m - d.min) * rl.value);
|
|
252
252
|
return Math.min(Math.max(0, h), P.value);
|
|
253
253
|
}
|
|
254
|
-
const nt = x(() => ge(ie.value)), Pt = x(() => ae(re.value)), oe = x(() => d.minimap.length ?
|
|
254
|
+
const nt = x(() => ge(ie.value)), Pt = x(() => ae(re.value)), oe = x(() => d.minimap.length ? q.value.width / d.minimap.length : 0), pe = x(() => {
|
|
255
255
|
if (!d.minimap.length) return [];
|
|
256
256
|
const m = Math.max(...d.minimap), h = Math.min(...d.minimap) - 10, S = m - (h > 0 ? 0 : h), U = d.minimap.map((Vt, Je) => ({
|
|
257
|
-
x:
|
|
258
|
-
y:
|
|
259
|
-
})), ze = nt.value, Ht = Math.max(ze + 1, Pt.value),
|
|
257
|
+
x: q.value.width / d.minimap.length * Je + oe.value / 2,
|
|
258
|
+
y: q.value.height - (Vt - h) / S * (q.value.height * 0.9)
|
|
259
|
+
})), ze = nt.value, Ht = Math.max(ze + 1, Pt.value), jt = d.smoothMinimap ? Fl(U) : Hl(U), _t = U.slice(ze, Ht), Pe = d.smoothMinimap ? Fl(_t) : Hl(_t);
|
|
260
260
|
return {
|
|
261
|
-
fullSet:
|
|
261
|
+
fullSet: jt,
|
|
262
262
|
selectionSet: Pe,
|
|
263
|
-
sliced:
|
|
263
|
+
sliced: _t,
|
|
264
264
|
firstPlot: U[ze],
|
|
265
265
|
lastPlot: U[Math.max(0, Ht - 1)]
|
|
266
266
|
};
|
|
@@ -270,7 +270,7 @@ const Qo = {
|
|
|
270
270
|
x: oe.value * m + oe.value / 2,
|
|
271
271
|
width: oe.value * (h - m) - oe.value
|
|
272
272
|
};
|
|
273
|
-
}), ft =
|
|
273
|
+
}), ft = b(d.minimapSelectedIndex);
|
|
274
274
|
dt(() => d.minimapSelectedIndex, (m) => {
|
|
275
275
|
if ([null, void 0].includes(m)) {
|
|
276
276
|
ft.value = null;
|
|
@@ -283,8 +283,8 @@ const Qo = {
|
|
|
283
283
|
const h = nt.value, S = Pt.value;
|
|
284
284
|
m >= h && m < S && me("trapMouse", m - h);
|
|
285
285
|
}
|
|
286
|
-
const ce =
|
|
287
|
-
function
|
|
286
|
+
const ce = b(0), G = b(null), Kt = b(null);
|
|
287
|
+
function cl(m) {
|
|
288
288
|
if (typeof m == "object" && m && "target" in m) {
|
|
289
289
|
const S = m.target, U = "valueAsNumber" in S ? S.valueAsNumber : +S.value;
|
|
290
290
|
return Number.isFinite(U) ? U : NaN;
|
|
@@ -292,35 +292,35 @@ const Qo = {
|
|
|
292
292
|
const h = +m;
|
|
293
293
|
return Number.isFinite(h) ? h : NaN;
|
|
294
294
|
}
|
|
295
|
-
function
|
|
296
|
-
|
|
297
|
-
const h =
|
|
295
|
+
function vl(m) {
|
|
296
|
+
Gt.value = !0;
|
|
297
|
+
const h = cl(m);
|
|
298
298
|
Number.isFinite(h) && (yt.value = h);
|
|
299
299
|
}
|
|
300
300
|
function kt(m) {
|
|
301
|
-
|
|
302
|
-
const h =
|
|
301
|
+
Gt.value = !0;
|
|
302
|
+
const h = cl(m);
|
|
303
303
|
Number.isFinite(h) && (lt.value = h);
|
|
304
304
|
}
|
|
305
|
-
const Ot = x(() => d.valueEnd - d.valueStart),
|
|
306
|
-
let
|
|
307
|
-
const
|
|
308
|
-
const m =
|
|
305
|
+
const Ot = x(() => d.valueEnd - d.valueStart), F = b(!1);
|
|
306
|
+
let Jt = b(null);
|
|
307
|
+
const dl = x(() => (Ut.value - 48) / (d.max - d.min)), Qt = x(() => (Ut.value - 48) / (d.max - d.min) * Ot.value), _e = b(2.5), We = x(() => {
|
|
308
|
+
const m = Ut.value - 48;
|
|
309
309
|
return Math.ceil(
|
|
310
|
-
(d.max - d.min) / ((m -
|
|
310
|
+
(d.max - d.min) / ((m - Qt.value) / _e.value)
|
|
311
311
|
);
|
|
312
312
|
});
|
|
313
|
-
let Re = null, Ke = null,
|
|
314
|
-
const
|
|
313
|
+
let Re = null, Ke = null, _ = null, ut = null;
|
|
314
|
+
const hl = (m) => {
|
|
315
315
|
if (ue.value = !0, !d.enableSelectionDrag) return;
|
|
316
316
|
const h = m.type === "touchstart", S = h && m.targetTouches && m.targetTouches[0] ? m.targetTouches[0] : null, U = h ? S ? S.target : null : m.target;
|
|
317
|
-
!U || !(U instanceof Element) || U.classList && U.classList.contains("range-handle") || (
|
|
317
|
+
!U || !(U instanceof Element) || U.classList && U.classList.contains("range-handle") || (F.value = !0, Jt.value = h ? S ? S.clientX : 0 : m.clientX, Re = h ? "touchmove" : "mousemove", Ke = h ? "touchend" : "mouseup", _ = h ? kl : fl, ut = h ? $ : ml, window.addEventListener(Re, _, { passive: !1 }), window.addEventListener(Ke, ut));
|
|
318
318
|
};
|
|
319
|
-
function
|
|
320
|
-
|
|
319
|
+
function fl(m) {
|
|
320
|
+
F.value && k(m.clientX);
|
|
321
321
|
}
|
|
322
322
|
function kl(m) {
|
|
323
|
-
if (!
|
|
323
|
+
if (!F.value || !Be.value) return;
|
|
324
324
|
const h = m.target;
|
|
325
325
|
if (!(h instanceof Element) || !Be.value.contains(h) || h.classList && h.classList.contains("range-handle")) return;
|
|
326
326
|
m.preventDefault();
|
|
@@ -328,45 +328,45 @@ const Qo = {
|
|
|
328
328
|
S && k(S.clientX);
|
|
329
329
|
}
|
|
330
330
|
function k(m) {
|
|
331
|
-
if (!
|
|
332
|
-
const h = m -
|
|
333
|
-
if (Math.abs(h) >
|
|
331
|
+
if (!F.value) return;
|
|
332
|
+
const h = m - Jt.value;
|
|
333
|
+
if (Math.abs(h) > dl.value) {
|
|
334
334
|
if (h > 0) {
|
|
335
|
-
const S = Math.min(d.max, re.value +
|
|
335
|
+
const S = Math.min(d.max, re.value + We.value);
|
|
336
336
|
lt.value = S, yt.value = S - Ot.value;
|
|
337
337
|
} else {
|
|
338
|
-
const S = Math.max(d.min, ie.value -
|
|
338
|
+
const S = Math.max(d.min, ie.value - We.value);
|
|
339
339
|
yt.value = S, lt.value = S + Ot.value;
|
|
340
340
|
}
|
|
341
|
-
|
|
341
|
+
Jt.value = m;
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function ml() {
|
|
345
345
|
Ae();
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function $() {
|
|
348
348
|
Ae();
|
|
349
349
|
}
|
|
350
350
|
function Ae() {
|
|
351
|
-
|
|
351
|
+
F.value = !1, Re && _ && window.removeEventListener(Re, _), Ke && ut && window.removeEventListener(Ke, ut), Re = Ke = null, _ = ut = null, Ze();
|
|
352
352
|
}
|
|
353
|
-
const st =
|
|
353
|
+
const st = b(!1), it = b(null), t = b(null), gt = b(1), ne = b(1), ue = b(!1);
|
|
354
354
|
function Ft() {
|
|
355
355
|
it.value && (gt.value = it.value.getBoundingClientRect().width);
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function $e() {
|
|
358
358
|
t.value && (ne.value = t.value.getBoundingClientRect().width);
|
|
359
359
|
}
|
|
360
|
-
const y =
|
|
361
|
-
function
|
|
360
|
+
const y = b(0);
|
|
361
|
+
function De(m) {
|
|
362
362
|
y.value = m === "start" ? 1 : 0;
|
|
363
363
|
}
|
|
364
|
-
const wt =
|
|
364
|
+
const wt = b(!1), St = b({
|
|
365
365
|
width: 0,
|
|
366
366
|
left: 0
|
|
367
367
|
});
|
|
368
368
|
dt([ie, re], async () => {
|
|
369
|
-
if (await
|
|
369
|
+
if (await Yt(), !it.value || !t.value) {
|
|
370
370
|
wt.value = !1, St.value = { width: 0, left: 0 };
|
|
371
371
|
return;
|
|
372
372
|
}
|
|
@@ -377,14 +377,14 @@ const Qo = {
|
|
|
377
377
|
width: ze,
|
|
378
378
|
left: Ht - ze / 2
|
|
379
379
|
};
|
|
380
|
-
}),
|
|
381
|
-
Ft(),
|
|
380
|
+
}), wo(() => {
|
|
381
|
+
Ft(), $e();
|
|
382
382
|
}), dt(() => d.labelLeft, () => {
|
|
383
|
-
|
|
383
|
+
Yt(Ft);
|
|
384
384
|
}, { deep: !0 }), dt(() => d.labelRight, () => {
|
|
385
|
-
|
|
385
|
+
Yt($e);
|
|
386
386
|
}, { deep: !0 });
|
|
387
|
-
const xt =
|
|
387
|
+
const xt = b(!1), ve = x(() => {
|
|
388
388
|
let m = { text: "" }, h = { text: "" };
|
|
389
389
|
if (xt.value = !1, Ol(d.customFormat))
|
|
390
390
|
try {
|
|
@@ -406,44 +406,44 @@ const Qo = {
|
|
|
406
406
|
right: h ? h.text : ""
|
|
407
407
|
};
|
|
408
408
|
});
|
|
409
|
-
return
|
|
410
|
-
ot.value && ot.value.disconnect(), Re &&
|
|
409
|
+
return nl(() => {
|
|
410
|
+
ot.value && ot.value.disconnect(), Re && _ && window.removeEventListener(Re, _), Ke && ut && window.removeEventListener(Ke, ut), Re = Ke = null, _ = ut = null, clearTimeout(sl);
|
|
411
411
|
}), Vl({
|
|
412
|
-
setStartValue:
|
|
412
|
+
setStartValue: vl,
|
|
413
413
|
setEndValue: kt
|
|
414
|
-
}), (m, h) => (u(),
|
|
414
|
+
}), (m, h) => (u(), r("div", {
|
|
415
415
|
"data-dom-to-png-ignore": "",
|
|
416
416
|
style: { padding: "0 24px" },
|
|
417
417
|
class: "vue-data-ui-zoom",
|
|
418
418
|
ref_key: "zoomWrapper",
|
|
419
419
|
ref: Be,
|
|
420
|
-
onMousedown:
|
|
421
|
-
onTouchstart:
|
|
420
|
+
onMousedown: hl,
|
|
421
|
+
onTouchstart: hl
|
|
422
422
|
}, [
|
|
423
|
-
|
|
424
|
-
R.valueStart !== R.refreshStartPoint || R.valueEnd !==
|
|
423
|
+
p("div", an, [
|
|
424
|
+
R.valueStart !== R.refreshStartPoint || R.valueEnd !== il.value ? (u(), r("div", on, [
|
|
425
425
|
R.useResetSlot ? J(m.$slots, "reset-action", {
|
|
426
426
|
key: 1,
|
|
427
427
|
reset: ht
|
|
428
|
-
}, void 0, !0) : (u(),
|
|
428
|
+
}, void 0, !0) : (u(), r("button", {
|
|
429
429
|
key: 0,
|
|
430
430
|
tabindex: "0",
|
|
431
431
|
role: "button",
|
|
432
432
|
class: "vue-data-ui-refresh-button",
|
|
433
433
|
style: L({
|
|
434
|
-
top:
|
|
434
|
+
top: Tt.value ? "36px" : "-16px",
|
|
435
435
|
pointerEvents: "all !important"
|
|
436
436
|
}),
|
|
437
437
|
onClick: ht
|
|
438
438
|
}, [
|
|
439
|
-
|
|
439
|
+
al(ln, {
|
|
440
440
|
name: "refresh",
|
|
441
441
|
stroke: R.textColor
|
|
442
442
|
}, null, 8, ["stroke"])
|
|
443
443
|
], 4))
|
|
444
444
|
])) : f("", !0)
|
|
445
445
|
]),
|
|
446
|
-
|
|
446
|
+
p("div", {
|
|
447
447
|
class: "double-range-slider",
|
|
448
448
|
ref_key: "minimapWrapper",
|
|
449
449
|
ref: Rt,
|
|
@@ -451,30 +451,30 @@ const Qo = {
|
|
|
451
451
|
onMouseenter: h[13] || (h[13] = (S) => ue.value = !0),
|
|
452
452
|
onMouseleave: h[14] || (h[14] = (S) => ue.value = !1)
|
|
453
453
|
}, [
|
|
454
|
-
|
|
455
|
-
(u(),
|
|
456
|
-
xmlns: v(
|
|
457
|
-
viewBox: `0 0 ${
|
|
454
|
+
Tt.value ? (u(), r("div", nn, [
|
|
455
|
+
(u(), r("svg", {
|
|
456
|
+
xmlns: v(zo),
|
|
457
|
+
viewBox: `0 0 ${q.value.width < 0 ? 0 : q.value.width} ${q.value.height < 0 ? 0 : q.value.height}`
|
|
458
458
|
}, [
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
id:
|
|
459
|
+
p("defs", null, [
|
|
460
|
+
p("linearGradient", {
|
|
461
|
+
id: ul.value,
|
|
462
462
|
x1: "0%",
|
|
463
463
|
y1: "0%",
|
|
464
464
|
x2: "0%",
|
|
465
465
|
y2: "100%"
|
|
466
466
|
}, [
|
|
467
|
-
|
|
467
|
+
p("stop", {
|
|
468
468
|
offset: "0%",
|
|
469
469
|
"stop-color": `${R.minimapLineColor}50`
|
|
470
|
-
}, null, 8,
|
|
471
|
-
h[15] || (h[15] =
|
|
470
|
+
}, null, 8, rn),
|
|
471
|
+
h[15] || (h[15] = p("stop", {
|
|
472
472
|
offset: "100%",
|
|
473
473
|
"stop-color": "transparent"
|
|
474
474
|
}, null, -1))
|
|
475
|
-
], 8,
|
|
475
|
+
], 8, sn)
|
|
476
476
|
]),
|
|
477
|
-
|
|
477
|
+
p("path", {
|
|
478
478
|
d: `M${pe.value.fullSet}`,
|
|
479
479
|
stroke: `${R.minimapLineColor}`,
|
|
480
480
|
fill: "none",
|
|
@@ -482,91 +482,91 @@ const Qo = {
|
|
|
482
482
|
"stroke-linecap": "round",
|
|
483
483
|
"stroke-linejoin": "round",
|
|
484
484
|
style: { opacity: "1" }
|
|
485
|
-
}, null, 8,
|
|
486
|
-
|
|
485
|
+
}, null, 8, cn),
|
|
486
|
+
p("rect", {
|
|
487
487
|
x: ye.value.x,
|
|
488
488
|
width: ye.value.width < 0 ? 0 : ye.value.width,
|
|
489
|
-
height: Math.max(
|
|
489
|
+
height: Math.max(q.value.height, 0),
|
|
490
490
|
y: 0,
|
|
491
491
|
fill: Ee.value,
|
|
492
492
|
rx: R.minimapSelectionRadius,
|
|
493
493
|
stroke: "none"
|
|
494
|
-
}, null, 8,
|
|
495
|
-
|
|
496
|
-
d: `M${oe.value / 2},${Math.max(
|
|
497
|
-
fill: `url(#${
|
|
494
|
+
}, null, 8, vn),
|
|
495
|
+
p("path", {
|
|
496
|
+
d: `M${oe.value / 2},${Math.max(q.value.height, 0)} ${pe.value.fullSet} L${q.value.width - oe.value / 2},${Math.max(q.value.height, 0)}Z`,
|
|
497
|
+
fill: `url(#${ul.value})`,
|
|
498
498
|
stroke: "none",
|
|
499
499
|
style: { opacity: "1" }
|
|
500
|
-
}, null, 8,
|
|
501
|
-
|
|
500
|
+
}, null, 8, dn),
|
|
501
|
+
p("rect", {
|
|
502
502
|
x: ye.value.x,
|
|
503
503
|
width: ye.value.width < 0 ? 0 : ye.value.width,
|
|
504
|
-
height: Math.max(
|
|
504
|
+
height: Math.max(q.value.height, 0),
|
|
505
505
|
y: 0,
|
|
506
506
|
rx: R.minimapSelectionRadius,
|
|
507
507
|
fill: Ee.value,
|
|
508
508
|
style: L({
|
|
509
|
-
opacity:
|
|
509
|
+
opacity: F.value || Gt.value ? 0 : 1
|
|
510
510
|
})
|
|
511
|
-
}, null, 12,
|
|
512
|
-
|
|
511
|
+
}, null, 12, hn),
|
|
512
|
+
p("rect", {
|
|
513
513
|
x: ye.value.x,
|
|
514
514
|
width: ye.value.width < 0 ? 0 : ye.value.width,
|
|
515
|
-
height: Math.max(
|
|
515
|
+
height: Math.max(q.value.height, 0),
|
|
516
516
|
y: 0,
|
|
517
517
|
fill: R.minimapSelectedColor,
|
|
518
518
|
rx: R.minimapSelectionRadius,
|
|
519
519
|
style: L({
|
|
520
520
|
opacity: R.minimapSelectedColorOpacity
|
|
521
521
|
})
|
|
522
|
-
}, null, 12,
|
|
523
|
-
|
|
524
|
-
d: `M${pe.value.sliced[0].x},${Math.max(
|
|
525
|
-
fill: `url(#${
|
|
522
|
+
}, null, 12, fn),
|
|
523
|
+
p("path", {
|
|
524
|
+
d: `M${pe.value.sliced[0].x},${Math.max(q.value.height, 0)} ${pe.value.selectionSet} L${pe.value.sliced.at(-1).x},${Math.max(q.value.height, 0)}Z`,
|
|
525
|
+
fill: `url(#${ul.value})`,
|
|
526
526
|
stroke: "none",
|
|
527
527
|
style: { opacity: "1" }
|
|
528
|
-
}, null, 8,
|
|
529
|
-
|
|
528
|
+
}, null, 8, mn),
|
|
529
|
+
p("path", {
|
|
530
530
|
d: `M ${pe.value.selectionSet}`,
|
|
531
531
|
stroke: `${R.minimapLineColor}`,
|
|
532
532
|
fill: "transparent",
|
|
533
533
|
"stroke-width": "2",
|
|
534
534
|
"stroke-linecap": "round",
|
|
535
535
|
"stroke-linejoin": "round"
|
|
536
|
-
}, null, 8,
|
|
537
|
-
|
|
536
|
+
}, null, 8, gn),
|
|
537
|
+
p("circle", {
|
|
538
538
|
cx: pe.value.firstPlot.x,
|
|
539
539
|
cy: pe.value.firstPlot.y,
|
|
540
540
|
"stroke-width": "0.5",
|
|
541
541
|
stroke: Ee.value,
|
|
542
542
|
r: "3",
|
|
543
543
|
fill: R.minimapLineColor
|
|
544
|
-
}, null, 8,
|
|
545
|
-
|
|
544
|
+
}, null, 8, xn),
|
|
545
|
+
p("circle", {
|
|
546
546
|
cx: pe.value.lastPlot.x,
|
|
547
547
|
cy: pe.value.lastPlot.y,
|
|
548
548
|
"stroke-width": "0.5",
|
|
549
549
|
stroke: Ee.value,
|
|
550
550
|
r: "3",
|
|
551
551
|
fill: R.minimapLineColor
|
|
552
|
-
}, null, 8,
|
|
553
|
-
ft.value !== null ? (u(!0),
|
|
554
|
-
ft.value === S && S >= nt.value && S < Pt.value ? (u(),
|
|
552
|
+
}, null, 8, bn),
|
|
553
|
+
ft.value !== null ? (u(!0), r(g, { key: 0 }, C(qt.value, (S, U) => (u(), r("g", null, [
|
|
554
|
+
ft.value === S && S >= nt.value && S < Pt.value ? (u(), r("line", {
|
|
555
555
|
key: 0,
|
|
556
556
|
x1: oe.value * U + oe.value / 2,
|
|
557
557
|
x2: oe.value * U + oe.value / 2,
|
|
558
558
|
y1: 0,
|
|
559
|
-
y2: Math.max(
|
|
559
|
+
y2: Math.max(q.value.height, 0),
|
|
560
560
|
stroke: R.minimapIndicatorColor,
|
|
561
561
|
"stroke-linecap": "round",
|
|
562
562
|
"stroke-dasharray": "2",
|
|
563
563
|
"stroke-width": "1"
|
|
564
|
-
}, null, 8,
|
|
564
|
+
}, null, 8, pn)) : f("", !0)
|
|
565
565
|
]))), 256)) : f("", !0),
|
|
566
|
-
(u(!0),
|
|
566
|
+
(u(!0), r(g, null, C(qt.value, (S, U) => (u(), r("rect", {
|
|
567
567
|
x: oe.value * U,
|
|
568
568
|
y: 0,
|
|
569
|
-
height: Math.max(
|
|
569
|
+
height: Math.max(q.value.height, 0),
|
|
570
570
|
width: oe.value < 0 ? 0 : oe.value,
|
|
571
571
|
fill: "transparent",
|
|
572
572
|
style: L([{ "pointer-events": "all !important" }, {
|
|
@@ -578,11 +578,11 @@ const Qo = {
|
|
|
578
578
|
onMouseleave: h[2] || (h[2] = (ze) => {
|
|
579
579
|
ft.value = null, me("trapMouse", null);
|
|
580
580
|
})
|
|
581
|
-
}, null, 44,
|
|
582
|
-
], 8,
|
|
581
|
+
}, null, 44, yn))), 256))
|
|
582
|
+
], 8, un))
|
|
583
583
|
])) : f("", !0),
|
|
584
|
-
h[16] || (h[16] =
|
|
585
|
-
|
|
584
|
+
h[16] || (h[16] = p("div", { class: "slider-track" }, null, -1)),
|
|
585
|
+
p("div", {
|
|
586
586
|
class: Ve({
|
|
587
587
|
"range-highlight": !0,
|
|
588
588
|
move: R.enableSelectionDrag
|
|
@@ -594,55 +594,55 @@ const Qo = {
|
|
|
594
594
|
cursor: st.value ? "grabbing" : "grab"
|
|
595
595
|
})
|
|
596
596
|
}, null, 38),
|
|
597
|
-
R.enableRangeHandles ? Ql((u(),
|
|
597
|
+
R.enableRangeHandles ? Ql((u(), r("input", {
|
|
598
598
|
ref_key: "rangeStart",
|
|
599
599
|
ref: G,
|
|
600
600
|
key: `range-min${ce.value}`,
|
|
601
601
|
type: "range",
|
|
602
|
-
class: Ve({ "range-left": !0, "range-handle": !0, "range-minimap":
|
|
602
|
+
class: Ve({ "range-left": !0, "range-handle": !0, "range-minimap": Tt.value && R.verticalHandles }),
|
|
603
603
|
min: R.min,
|
|
604
604
|
max: R.max,
|
|
605
605
|
"onUpdate:modelValue": h[5] || (h[5] = (S) => yt.value = S),
|
|
606
|
-
onInput: h[6] || (h[6] = (S) =>
|
|
607
|
-
onChange:
|
|
608
|
-
onKeyup:
|
|
609
|
-
onBlur:
|
|
610
|
-
onMouseenter: h[7] || (h[7] = (S) =>
|
|
606
|
+
onInput: h[6] || (h[6] = (S) => vl(S)),
|
|
607
|
+
onChange: Ze,
|
|
608
|
+
onKeyup: Oa(Ze, ["enter"]),
|
|
609
|
+
onBlur: Ze,
|
|
610
|
+
onMouseenter: h[7] || (h[7] = (S) => De("start")),
|
|
611
611
|
onPointermove: h[8] || (h[8] = (S) => yt.value = +S.target.value),
|
|
612
|
-
onPointerup:
|
|
613
|
-
}, null, 42,
|
|
612
|
+
onPointerup: Ze
|
|
613
|
+
}, null, 42, kn)), [
|
|
614
614
|
[
|
|
615
|
-
|
|
615
|
+
Fa,
|
|
616
616
|
yt.value,
|
|
617
617
|
void 0,
|
|
618
618
|
{ number: !0 }
|
|
619
619
|
]
|
|
620
620
|
]) : f("", !0),
|
|
621
|
-
R.enableRangeHandles ? Ql((u(),
|
|
621
|
+
R.enableRangeHandles ? Ql((u(), r("input", {
|
|
622
622
|
key: 2,
|
|
623
623
|
ref_key: "rangeEnd",
|
|
624
|
-
ref:
|
|
624
|
+
ref: Kt,
|
|
625
625
|
type: "range",
|
|
626
|
-
class: Ve({ "range-right": !0, "range-handle": !0, "range-minimap":
|
|
626
|
+
class: Ve({ "range-right": !0, "range-handle": !0, "range-minimap": Tt.value && R.verticalHandles }),
|
|
627
627
|
min: R.min,
|
|
628
628
|
max: R.max,
|
|
629
629
|
"onUpdate:modelValue": h[9] || (h[9] = (S) => lt.value = S),
|
|
630
630
|
onInput: h[10] || (h[10] = (S) => kt(S)),
|
|
631
|
-
onChange:
|
|
632
|
-
onKeyup:
|
|
633
|
-
onBlur:
|
|
634
|
-
onMouseenter: h[11] || (h[11] = (S) =>
|
|
631
|
+
onChange: Ze,
|
|
632
|
+
onKeyup: Oa(Ze, ["enter"]),
|
|
633
|
+
onBlur: Ze,
|
|
634
|
+
onMouseenter: h[11] || (h[11] = (S) => De("end")),
|
|
635
635
|
onPointermove: h[12] || (h[12] = (S) => lt.value = +S.target.value),
|
|
636
|
-
onPointerup:
|
|
637
|
-
}, null, 42,
|
|
636
|
+
onPointerup: Ze
|
|
637
|
+
}, null, 42, wn)), [
|
|
638
638
|
[
|
|
639
|
-
|
|
639
|
+
Fa,
|
|
640
640
|
lt.value,
|
|
641
641
|
void 0,
|
|
642
642
|
{ number: !0 }
|
|
643
643
|
]
|
|
644
644
|
]) : f("", !0),
|
|
645
|
-
ve.value.left ? (u(),
|
|
645
|
+
ve.value.left ? (u(), r("div", {
|
|
646
646
|
key: 3,
|
|
647
647
|
ref_key: "tooltipLeft",
|
|
648
648
|
ref: it,
|
|
@@ -661,7 +661,7 @@ const Qo = {
|
|
|
661
661
|
visibility: wt.value || ve.value.left === ve.value.right ? "hidden" : "visible"
|
|
662
662
|
})
|
|
663
663
|
}, le(ve.value.left), 7)) : f("", !0),
|
|
664
|
-
(wt.value || ve.value.left === ve.value.right) && (ve.value.left || ve.value.right) ? (u(),
|
|
664
|
+
(wt.value || ve.value.left === ve.value.right) && (ve.value.left || ve.value.right) ? (u(), r("div", {
|
|
665
665
|
key: 4,
|
|
666
666
|
ref: "tooltipMerge",
|
|
667
667
|
class: Ve({
|
|
@@ -680,7 +680,7 @@ const Qo = {
|
|
|
680
680
|
zIndex: "4"
|
|
681
681
|
})
|
|
682
682
|
}, le(ve.value.left === ve.value.right ? ve.value.left : `${ve.value.left} - ${ve.value.right}`), 7)) : f("", !0),
|
|
683
|
-
ve.value.right ? (u(),
|
|
683
|
+
ve.value.right ? (u(), r("div", {
|
|
684
684
|
key: 5,
|
|
685
685
|
ref_key: "tooltipRight",
|
|
686
686
|
ref: t,
|
|
@@ -702,51 +702,51 @@ const Qo = {
|
|
|
702
702
|
], 544)
|
|
703
703
|
], 544));
|
|
704
704
|
}
|
|
705
|
-
},
|
|
705
|
+
}, _n = /* @__PURE__ */ Ga(Sn, [["__scopeId", "data-v-58fccd9f"]]), $n = ["id"], Ln = ["id"], Mn = ["viewBox", "aria-label"], Cn = ["x", "y", "width", "height"], An = { key: 1 }, zn = { class: "vue-ui-xy-grid" }, Tn = ["stroke", "x1", "x2", "y1", "y2"], In = ["stroke", "x1", "x2", "y1", "y2"], Nn = { key: 1 }, Rn = ["x1", "x2", "y1", "y2", "stroke"], Pn = ["x1", "x2", "y1", "y2", "stroke"], On = ["x1", "x2", "y1", "y2", "stroke"], Fn = { key: 3 }, Hn = ["d", "stroke"], Vn = { key: 4 }, Bn = ["d", "stroke"], En = ["id"], Wn = ["stop-color"], Dn = ["stop-color"], Xn = ["stop-color"], Yn = ["id"], Gn = ["stop-color"], Un = ["stop-color"], qn = ["stop-color"], Zn = ["id"], Kn = ["stop-color"], Jn = ["stop-color"], Qn = ["id"], jn = ["stop-color"], eu = ["stop-color"], tu = ["id"], lu = ["stop-color"], au = ["stop-color"], ou = ["x", "y", "height", "width", "fill"], nu = ["x", "y", "width"], uu = { key: 0 }, su = ["x", "y", "height", "width", "fill"], iu = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], ru = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], cu = ["width", "x", "y"], vu = { key: 0 }, du = ["id"], hu = ["fill"], fu = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], mu = ["x", "y", "font-size", "fill"], gu = ["stroke", "x1", "x2", "y1", "y2"], xu = { key: 3 }, bu = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], pu = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], yu = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ku = ["fill", "font-size", "transform"], wu = ["x1", "x2", "y1", "y2", "stroke"], Su = ["x", "y", "font-size", "fill"], _u = ["x1", "x2", "y1", "y2", "stroke"], $u = ["x", "y", "font-size", "fill"], Lu = ["width", "x", "y"], Mu = { style: { width: "100%" } }, Cu = { key: 0 }, Au = ["id"], zu = ["fill"], Tu = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Iu = ["x", "y", "font-size", "fill"], Nu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Ru = ["d", "stroke", "stroke-width", "stroke-dasharray"], Pu = { key: 6 }, Ou = { key: 7 }, Fu = ["d", "fill", "fill-opacity"], Hu = { key: 0 }, Vu = ["d", "fill"], Bu = ["d", "fill"], Eu = ["d", "fill"], Wu = ["d", "fill"], Du = ["d", "stroke", "stroke-width", "stroke-dasharray"], Xu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Yu = ["width", "x", "y"], Gu = { style: { width: "100%" } }, Uu = { key: 3 }, qu = ["id"], Zu = ["fill"], Ku = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Ju = ["x", "y", "font-size", "fill"], Qu = { key: 8 }, ju = ["x", "y", "font-size", "fill"], es = ["x", "y", "font-size", "fill", "font-weight"], ts = { key: 9 }, ls = ["x", "y", "font-size", "fill"], as = { key: 10 }, os = ["x", "y"], ns = ["innerHTML"], us = ["x", "y"], ss = ["innerHTML"], is = ["x1", "x2", "y1", "y2", "stroke"], rs = { key: 11 }, cs = ["x", "y", "font-size", "fill"], vs = { key: 12 }, ds = ["x", "y"], hs = ["innerHTML"], fs = ["x", "y"], ms = ["innerHTML"], gs = ["x1", "x2", "y1", "y2", "stroke"], xs = ["x", "y", "font-size", "fill", "innerHTML"], bs = ["x", "y", "font-size", "fill", "innerHTML"], ps = ["x", "y", "font-size", "fill", "innerHTML"], ys = ["x", "y", "font-size", "fill", "innerHTML"], ks = ["id"], ws = ["stop-color"], Ss = ["stop-color"], _s = ["x", "y", "width", "height", "fill", "onMouseenter"], $s = ["font-size", "fill", "transform"], Ls = ["x", "y", "font-size", "fill"], Ms = ["text-anchor", "font-size", "fill", "transform", "onClick"], Cs = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], As = { key: 15 }, zs = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ts = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Is = ["y", "x", "width", "height", "fill"], Ns = ["id", "x", "y", "font-size", "fill", "text-anchor"], Rs = {
|
|
706
706
|
key: 16,
|
|
707
707
|
style: { "pointer-events": "none" }
|
|
708
|
-
},
|
|
708
|
+
}, Ps = ["x", "y"], Os = ["innerHTML"], Fs = ["cx", "cy", "r", "fill"], Hs = ["data-start", "data-end"], Vs = {
|
|
709
709
|
key: 4,
|
|
710
710
|
class: "vue-data-ui-watermark"
|
|
711
|
-
},
|
|
711
|
+
}, Bs = {
|
|
712
712
|
class: "vue-ui-xy-tag-arrow",
|
|
713
713
|
height: "20",
|
|
714
714
|
viewBox: "0 0 10 20",
|
|
715
715
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
716
|
-
},
|
|
716
|
+
}, Es = ["fill"], Ws = ["innerHTML"], Ds = {
|
|
717
717
|
class: "vue-ui-xy-tag-arrow",
|
|
718
718
|
height: "100%",
|
|
719
719
|
viewBox: "0 0 10 20",
|
|
720
720
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
721
|
-
},
|
|
721
|
+
}, Xs = ["fill"], Ys = ["innerHTML"], Gs = {
|
|
722
722
|
class: "vue-ui-xy-tag-arrow",
|
|
723
723
|
height: "20",
|
|
724
724
|
viewBox: "0 0 10 20",
|
|
725
725
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
726
|
-
},
|
|
726
|
+
}, Us = ["fill"], qs = ["innerHTML"], Zs = {
|
|
727
727
|
class: "vue-ui-xy-tag-arrow",
|
|
728
728
|
height: "100%",
|
|
729
729
|
viewBox: "0 0 10 20",
|
|
730
730
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
731
|
-
},
|
|
731
|
+
}, Ks = ["fill"], Js = ["innerHTML"], Qs = ["id"], js = ["onClick"], ei = {
|
|
732
732
|
key: 0,
|
|
733
733
|
viewBox: "0 0 20 12",
|
|
734
734
|
height: "14",
|
|
735
735
|
width: "20"
|
|
736
|
-
},
|
|
736
|
+
}, ti = ["stroke", "fill"], li = {
|
|
737
737
|
key: 1,
|
|
738
738
|
viewBox: "0 0 40 40",
|
|
739
739
|
height: "14",
|
|
740
740
|
width: "14"
|
|
741
|
-
},
|
|
741
|
+
}, ai = ["fill"], oi = ["fill"], ni = {
|
|
742
742
|
key: 2,
|
|
743
743
|
viewBox: "0 0 12 12",
|
|
744
744
|
height: "14",
|
|
745
745
|
width: "14"
|
|
746
|
-
},
|
|
746
|
+
}, ui = {
|
|
747
747
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
748
748
|
"data-dom-to-png-ignore": ""
|
|
749
|
-
},
|
|
749
|
+
}, si = ["innerHTML"], ii = {
|
|
750
750
|
__name: "vue-ui-xy",
|
|
751
751
|
props: {
|
|
752
752
|
config: {
|
|
@@ -768,24 +768,24 @@ const Qo = {
|
|
|
768
768
|
},
|
|
769
769
|
emits: ["selectTimeLabel", "selectX", "selectLegend"],
|
|
770
770
|
setup(R, { expose: Vl, emit: Bl }) {
|
|
771
|
-
const d = R, Be = Mt(() => import("./DataTable-
|
|
771
|
+
const d = R, Be = Mt(() => import("./DataTable-R-HFYyQH.js")), ie = Mt(() => import("./Tooltip-CAWZetlE.js")), re = Mt(() => import("./UserOptions-Bi3vHBGc.js")), Tt = Mt(() => import("./BaseIcon-BCqWWRyS.js")), ul = Mt(() => import("./vue-ui-table-sparkline-S5Vvy7zi.js")), Gt = Mt(() => import("./vue-ui-accordion-BzryhJUY.js")), Ut = Mt(() => import("./PackageVersion-L8jgnm93.js")), yt = Mt(() => import("./PenAndPaper-B0N4qLUl.js")), lt = Bl, sl = So(), Ze = _o(), { vue_ui_xy: il } = To(), me = b(null), be = b(null), Ne = b(null), at = b(null), It = b(null), Nt = b(null), El = b(null), Ee = b(null), qt = b(null), ht = b(null), Rt = b(null), q = b(null), ot = b(null), Zt = b(0), P = b(null), rl = b(!0), ge = b(600), ae = b(1e3), nt = b("0 0 1000 600"), Pt = b({ x: 0, y: 0 }), oe = b({ line: "line", bar: "bar", plot: "plot" }), pe = b(!1), ye = b(!1), ft = b(!1), mt = b(null), ce = b([]), G = b(Pl()), Kt = b(0), cl = b(0), vl = b(0), kt = b(!0), Ot = b(0), F = b(null), Jt = b(!1), dl = b(!0), Qt = b(!0), _e = b(null), We = b({}), Re = b(null), Ke = b(!1), _ = b(null), ut = x(() => ({
|
|
772
772
|
height: ge.value,
|
|
773
773
|
width: ae.value
|
|
774
774
|
}));
|
|
775
|
-
function
|
|
775
|
+
function hl(l) {
|
|
776
776
|
return Number.isFinite(l) ? Math.max(0, Math.floor(l)) : 0;
|
|
777
777
|
}
|
|
778
|
-
function
|
|
778
|
+
function fl(l, s, e = 0) {
|
|
779
779
|
return Number.isFinite(l) && Number.isFinite(s) && Math.abs(s) > 1e-9 ? l / s : e;
|
|
780
780
|
}
|
|
781
|
-
const kl =
|
|
781
|
+
const kl = b(!1), k = b({
|
|
782
782
|
dataLabels: { show: !0 },
|
|
783
783
|
showTooltip: !0,
|
|
784
784
|
showTable: !1,
|
|
785
785
|
isStacked: !1,
|
|
786
786
|
useIndividualScale: !1
|
|
787
787
|
});
|
|
788
|
-
function
|
|
788
|
+
function ml() {
|
|
789
789
|
kl.value ? (k.value.isStacked = t.value.chart.grid.labels.yAxis.stacked, k.value.useIndividualScale == null && (k.value.useIndividualScale = t.value.chart.grid.labels.yAxis.useIndividualScale)) : (k.value = {
|
|
790
790
|
dataLabels: { show: !0 },
|
|
791
791
|
showTooltip: t.value.chart.tooltip.show === !0,
|
|
@@ -794,13 +794,13 @@ const Qo = {
|
|
|
794
794
|
useIndividualScale: t.value.chart.grid.labels.yAxis.useIndividualScale
|
|
795
795
|
}, kl.value = !0);
|
|
796
796
|
}
|
|
797
|
-
const
|
|
797
|
+
const $ = b({
|
|
798
798
|
xAxis: 18,
|
|
799
799
|
yAxis: 12,
|
|
800
800
|
dataLabels: 20,
|
|
801
801
|
plotLabels: 10
|
|
802
|
-
}), Ae =
|
|
803
|
-
|
|
802
|
+
}), Ae = b({ plot: 3, line: 3 });
|
|
803
|
+
ol(() => {
|
|
804
804
|
Ke.value = !0, d.dataset.length && d.dataset.forEach((l, s) => {
|
|
805
805
|
[null, void 0].includes(l.series) && Kl({
|
|
806
806
|
componentName: "VueUiXy",
|
|
@@ -813,20 +813,20 @@ const Qo = {
|
|
|
813
813
|
});
|
|
814
814
|
function st() {
|
|
815
815
|
if (!Object.keys(d.config || {}).length)
|
|
816
|
-
return
|
|
816
|
+
return il;
|
|
817
817
|
const l = Jl({
|
|
818
818
|
userConfig: d.config,
|
|
819
|
-
defaultConfig:
|
|
819
|
+
defaultConfig: il
|
|
820
820
|
});
|
|
821
|
-
return d.config &&
|
|
822
|
-
defaultConfig:
|
|
821
|
+
return d.config && qe(d.config, "chart.highlightArea") && (Array.isArray(d.config.chart.highlightArea) ? l.chart.highlightArea = d.config.chart.highlightArea : l.chart.highlightArea = [d.config.chart.highlightArea]), d.config && qe(d.config, "chart.grid.labels.yAxis.scaleMin") ? l.chart.grid.labels.yAxis.scaleMin = d.config.chart.grid.labels.yAxis.scaleMin : l.chart.grid.labels.yAxis.scaleMin = null, d.config && qe(d.config, "chart.grid.labels.yAxis.scaleMax") ? l.chart.grid.labels.yAxis.scaleMax = d.config.chart.grid.labels.yAxis.scaleMax : l.chart.grid.labels.yAxis.scaleMax = null, d.config && qe(d.config, "chart.zoom.startIndex") ? l.chart.zoom.startIndex = d.config.chart.zoom.startIndex : l.chart.zoom.startIndex = null, d.config && qe(d.config, "chart.zoom.endIndex") ? l.chart.zoom.endIndex = d.config.chart.zoom.endIndex : l.chart.zoom.endIndex = null, d.config && qe(d.config, "chart.grid.labels.yAxis.groupColor") ? l.chart.grid.labels.yAxis.groupColor = d.config.chart.grid.labels.yAxis.groupColor : l.chart.grid.labels.yAxis.groupColor = null, d.config && d.config.chart.annotations && Array.isArray(d.config.chart.annotations) && d.config.chart.annotations.length ? l.chart.annotations = d.config.chart.annotations.map((s) => Jl({
|
|
822
|
+
defaultConfig: il.chart.annotations[0],
|
|
823
823
|
userConfig: s
|
|
824
|
-
})) : l.chart.annotations = [], d.config &&
|
|
824
|
+
})) : l.chart.annotations = [], d.config && qe(d.config, "chart.grid.position") && d.config.chart.grid.position === "start" && d.dataset.length && d.dataset.some((s) => s.type === "bar") && (l.chart.grid.position = "middle", qe(d.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), d.config && qe(d.config, "chart.grid.labels.yAxis.serieNameFormatter") ? l.chart.grid.labels.yAxis.serieNameFormatter = d.config.chart.grid.labels.yAxis.serieNameFormatter : l.chart.grid.labels.yAxis.serieNameFormatter = null, d.config && qe(d.config, "events.datapointEnter") ? l.events.datapointEnter = d.config.events.datapointEnter : l.events.datapointEnter = null, d.config && qe(d.config, "events.datapointLeave") ? l.events.datapointLeave = d.config.events.datapointLeave : l.events.datapointLeave = null, d.config && qe(d.config, "events.datapointClick") ? l.events.datapointClick = d.config.events.datapointClick : l.events.datapointClick = null, l.theme ? {
|
|
825
825
|
...Jl({
|
|
826
|
-
userConfig:
|
|
826
|
+
userConfig: Do.vue_ui_xy[l.theme] || d.config,
|
|
827
827
|
defaultConfig: l
|
|
828
828
|
}),
|
|
829
|
-
customPalette:
|
|
829
|
+
customPalette: Wo[l.theme] || d.palette
|
|
830
830
|
} : l;
|
|
831
831
|
}
|
|
832
832
|
const it = x({
|
|
@@ -836,8 +836,8 @@ const Qo = {
|
|
|
836
836
|
set(l) {
|
|
837
837
|
return l;
|
|
838
838
|
}
|
|
839
|
-
}), t =
|
|
840
|
-
|
|
839
|
+
}), t = b(st()), gt = x(() => !!t.value.debug), { loading: ne, FINAL_DATASET: ue, manualLoading: Ft } = qo({
|
|
840
|
+
...$o(d),
|
|
841
841
|
FINAL_CONFIG: t,
|
|
842
842
|
prepareConfig: st,
|
|
843
843
|
callback: () => {
|
|
@@ -860,7 +860,7 @@ const Qo = {
|
|
|
860
860
|
color: "#CACACA"
|
|
861
861
|
}
|
|
862
862
|
],
|
|
863
|
-
skeletonConfig:
|
|
863
|
+
skeletonConfig: Io({
|
|
864
864
|
defaultConfig: t.value,
|
|
865
865
|
userConfig: {
|
|
866
866
|
useCssAnimation: !1,
|
|
@@ -917,12 +917,12 @@ const Qo = {
|
|
|
917
917
|
}
|
|
918
918
|
}
|
|
919
919
|
})
|
|
920
|
-
}),
|
|
920
|
+
}), $e = x({
|
|
921
921
|
get: () => Math.max(...ue.value.map((l) => je({ data: l.series, threshold: t.value.downsample.threshold }).length)),
|
|
922
922
|
set: (l) => l
|
|
923
|
-
}), y =
|
|
923
|
+
}), y = b({ start: 0, end: $e.value }), De = b({ start: 0, end: $e.value }), wt = x(() => t.value.chart.zoom.preview.enable && (De.value.start !== y.value.start || De.value.end !== y.value.end));
|
|
924
924
|
function St(l, s) {
|
|
925
|
-
|
|
925
|
+
De.value[l] = s;
|
|
926
926
|
}
|
|
927
927
|
function xt() {
|
|
928
928
|
const l = Math.max(
|
|
@@ -933,14 +933,14 @@ const Qo = {
|
|
|
933
933
|
}).length)
|
|
934
934
|
);
|
|
935
935
|
let s = Math.max(0, Math.min(y.value.start ?? 0, l - 1)), e = Math.max(s + 1, Math.min(y.value.end ?? l, l));
|
|
936
|
-
(!Number.isFinite(s) || !Number.isFinite(e) || e <= s) && (s = 0, e = l), y.value = { start: s, end: e },
|
|
936
|
+
(!Number.isFinite(s) || !Number.isFinite(e) || e <= s) && (s = 0, e = l), y.value = { start: s, end: e }, De.value.start = s, De.value.end = e;
|
|
937
937
|
}
|
|
938
938
|
const ve = x(() => {
|
|
939
|
-
const { left: l, top: s, width: e, height: n } = c.value, a = y.value.start, o = y.value.end - a,
|
|
939
|
+
const { left: l, top: s, width: e, height: n } = c.value, a = y.value.start, o = y.value.end - a, A = e / o, B = De.value.start - a, E = De.value.end - a, M = Math.max(0, Math.min(o, B)), O = Math.max(0, Math.min(o, E));
|
|
940
940
|
return {
|
|
941
|
-
x: l + M *
|
|
941
|
+
x: l + M * A,
|
|
942
942
|
y: s,
|
|
943
|
-
width: (
|
|
943
|
+
width: (O - M) * A,
|
|
944
944
|
height: n,
|
|
945
945
|
fill: t.value.chart.zoom.preview.fill,
|
|
946
946
|
stroke: t.value.chart.zoom.preview.stroke,
|
|
@@ -957,27 +957,27 @@ const Qo = {
|
|
|
957
957
|
});
|
|
958
958
|
dt(() => d.selectedXIndex, (l) => {
|
|
959
959
|
if ([null, void 0].includes(d.selectedXIndex)) {
|
|
960
|
-
|
|
960
|
+
_.value = null;
|
|
961
961
|
return;
|
|
962
962
|
}
|
|
963
963
|
const s = l - y.value.start;
|
|
964
|
-
s < 0 || l >= y.value.end ?
|
|
964
|
+
s < 0 || l >= y.value.end ? _.value = null : _.value = s ?? null;
|
|
965
965
|
}, { immediate: !0 });
|
|
966
|
-
const { isPrinting: m, isImaging: h, generatePdf: S, generateImage: U } =
|
|
966
|
+
const { isPrinting: m, isImaging: h, generatePdf: S, generateImage: U } = Uo({
|
|
967
967
|
elementId: `vue-ui-xy_${G.value}`,
|
|
968
968
|
fileName: t.value.chart.title.text || "vue-ui-xy",
|
|
969
969
|
options: t.value.chart.userOptions.print
|
|
970
|
-
}), ze =
|
|
970
|
+
}), ze = b(!1), Ht = x(() => No(t.value.customPalette)), jt = x(() => {
|
|
971
971
|
if (t.value.chart.grid.labels.yAxis.scaleMin !== null)
|
|
972
972
|
return t.value.chart.grid.labels.yAxis.scaleMin;
|
|
973
973
|
const l = Math.min(...Je.value.filter((s) => !ce.value.includes(s.id)).map((s) => Math.min(...s.series)));
|
|
974
974
|
return l > 0 ? 0 : l;
|
|
975
|
-
}),
|
|
975
|
+
}), _t = x(() => {
|
|
976
976
|
if (t.value.chart.grid.labels.yAxis.scaleMax)
|
|
977
977
|
return t.value.chart.grid.labels.yAxis.scaleMax;
|
|
978
978
|
const l = Math.max(...Je.value.filter((s) => !ce.value.includes(s.id)).map((s) => Math.max(...s.series)));
|
|
979
|
-
return
|
|
980
|
-
}), Pe = x(() => t.value.chart.grid.labels.yAxis.useNiceScale ?
|
|
979
|
+
return jt.value === l ? l + 1 : l;
|
|
980
|
+
}), Pe = x(() => t.value.chart.grid.labels.yAxis.useNiceScale ? yl(jt.value, _t.value < 0 ? 0 : _t.value, t.value.chart.grid.labels.yAxis.commonScaleSteps) : Dt(jt.value, _t.value < 0 ? 0 : _t.value, t.value.chart.grid.labels.yAxis.commonScaleSteps)), Vt = x(() => [null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) ? Pe.value.min >= 0 ? 0 : Math.abs(Pe.value.min) : -Pe.value.min), Je = x(() => rl.value ? ue.value.map((l, s) => {
|
|
981
981
|
const e = je({
|
|
982
982
|
data: l.series,
|
|
983
983
|
threshold: t.value.downsample.threshold
|
|
@@ -985,8 +985,8 @@ const Qo = {
|
|
|
985
985
|
return {
|
|
986
986
|
...l,
|
|
987
987
|
slotAbsoluteIndex: s,
|
|
988
|
-
series: e.map((a) =>
|
|
989
|
-
color:
|
|
988
|
+
series: e.map((a) => Il(a) ? a : null).slice(y.value.start, y.value.end),
|
|
989
|
+
color: Ro(l.color ? l.color : Ht.value[s] ? Ht.value[s] : Po[s]),
|
|
990
990
|
id: n,
|
|
991
991
|
scaleLabel: l.scaleLabel || n
|
|
992
992
|
};
|
|
@@ -997,77 +997,77 @@ const Qo = {
|
|
|
997
997
|
absoluteValues: l.series,
|
|
998
998
|
segregate: () => ga(l),
|
|
999
999
|
isSegregated: ce.value.includes(l.id)
|
|
1000
|
-
}))),
|
|
1000
|
+
}))), Xe = x(() => Je.value.map((l, s) => ({
|
|
1001
1001
|
...l,
|
|
1002
1002
|
series: l.series.map((e) => e + Vt.value),
|
|
1003
1003
|
absoluteValues: l.series
|
|
1004
1004
|
})).filter((l) => !ce.value.includes(l.id)));
|
|
1005
|
-
function
|
|
1005
|
+
function Ua() {
|
|
1006
1006
|
let l = 0;
|
|
1007
|
-
Rt.value && (l = Array.from(Rt.value.querySelectorAll("text")).reduce((a,
|
|
1008
|
-
const o =
|
|
1007
|
+
Rt.value && (l = Array.from(Rt.value.querySelectorAll("text")).reduce((a, i) => {
|
|
1008
|
+
const o = i.getComputedTextLength();
|
|
1009
1009
|
return (o > a ? o : a) + t.value.chart.grid.labels.yAxis.scaleValueOffsetX;
|
|
1010
1010
|
}, 0));
|
|
1011
|
-
const s =
|
|
1011
|
+
const s = qt.value ? qt.value.getBoundingClientRect().width + t.value.chart.grid.labels.axis.yLabelOffsetX + $.value.yAxis : 0, e = t.value.chart.grid.labels.yAxis.crosshairSize;
|
|
1012
1012
|
return l + s + e;
|
|
1013
1013
|
}
|
|
1014
|
-
const
|
|
1015
|
-
|
|
1014
|
+
const Wl = b(0), qa = jl((l) => {
|
|
1015
|
+
Wl.value = l;
|
|
1016
1016
|
}, 100);
|
|
1017
|
-
|
|
1017
|
+
Ha((l) => {
|
|
1018
1018
|
const s = ht.value;
|
|
1019
1019
|
if (!s) return;
|
|
1020
1020
|
const e = new ResizeObserver((n) => {
|
|
1021
|
-
|
|
1021
|
+
qa(n[0].contentRect.height);
|
|
1022
1022
|
});
|
|
1023
1023
|
e.observe(s), l(() => e.disconnect());
|
|
1024
|
-
}),
|
|
1025
|
-
|
|
1024
|
+
}), nl(() => {
|
|
1025
|
+
Wl.value = 0;
|
|
1026
1026
|
});
|
|
1027
1027
|
const ea = x(() => {
|
|
1028
1028
|
let l = 0;
|
|
1029
1029
|
Ee.value && (l = Ee.value.getBBox().height);
|
|
1030
1030
|
let s = 0;
|
|
1031
|
-
return ht.value && (s =
|
|
1032
|
-
}),
|
|
1031
|
+
return ht.value && (s = Wl.value), l + s + $.value.xAxis;
|
|
1032
|
+
}), Za = x(() => ue.value.some((l) => l.useProgression)), c = x(() => {
|
|
1033
1033
|
let l = 0;
|
|
1034
1034
|
const s = 36;
|
|
1035
|
-
t.value.chart.grid.labels.show && (k.value.useIndividualScale && !k.value.isStacked ? l = (ue.value.length - ce.value.length) * (t.value.chart.grid.labels.yAxis.labelWidth + s) : k.value.useIndividualScale && k.value.isStacked ? l = t.value.chart.grid.labels.yAxis.labelWidth + s : l =
|
|
1036
|
-
const e = t.value.chart.labels.fontSize * 1.1, n =
|
|
1035
|
+
t.value.chart.grid.labels.show && (k.value.useIndividualScale && !k.value.isStacked ? l = (ue.value.length - ce.value.length) * (t.value.chart.grid.labels.yAxis.labelWidth + s) : k.value.useIndividualScale && k.value.isStacked ? l = t.value.chart.grid.labels.yAxis.labelWidth + s : l = Ua());
|
|
1036
|
+
const e = t.value.chart.labels.fontSize * 1.1, n = Za.value ? 24 : 6;
|
|
1037
1037
|
if (ht.value) {
|
|
1038
1038
|
const o = ht.value.getBBox().x;
|
|
1039
1039
|
o < 0 && (l += Math.abs(o));
|
|
1040
1040
|
}
|
|
1041
|
-
const a = ae.value - l - t.value.chart.grid.labels.yAxis.crosshairSize - n - t.value.chart.padding.left - t.value.chart.padding.right,
|
|
1041
|
+
const a = ae.value - l - t.value.chart.grid.labels.yAxis.crosshairSize - n - t.value.chart.padding.left - t.value.chart.padding.right, i = t.value.chart.grid.position === "middle" ? 0 : a / I.value / 2;
|
|
1042
1042
|
return {
|
|
1043
1043
|
top: t.value.chart.padding.top + e,
|
|
1044
1044
|
right: ae.value - n - t.value.chart.padding.right,
|
|
1045
1045
|
bottom: ge.value - ea.value - t.value.chart.padding.bottom - t.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
1046
|
-
left: l + t.value.chart.grid.labels.yAxis.crosshairSize -
|
|
1046
|
+
left: l + t.value.chart.grid.labels.yAxis.crosshairSize - i + t.value.chart.padding.left,
|
|
1047
1047
|
height: ge.value - ea.value - t.value.chart.padding.top - t.value.chart.padding.bottom - e - t.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
1048
1048
|
width: a,
|
|
1049
1049
|
scaleLabelX: l,
|
|
1050
1050
|
individualOffsetX: s
|
|
1051
1051
|
};
|
|
1052
|
-
}),
|
|
1053
|
-
const l = t.value.chart.grid.position === "middle" ? 1 : 0, s = I.value + l, e =
|
|
1054
|
-
return Array.from({ length: s }).map((a,
|
|
1055
|
-
const o = c.value.width / I.value *
|
|
1052
|
+
}), Ka = x(() => {
|
|
1053
|
+
const l = t.value.chart.grid.position === "middle" ? 1 : 0, s = I.value + l, e = Y(c.value.top), n = Y(c.value.bottom);
|
|
1054
|
+
return Array.from({ length: s }).map((a, i) => {
|
|
1055
|
+
const o = c.value.width / I.value * i + c.value.left + Q.value;
|
|
1056
1056
|
return `M${o},${e} L${o},${n}`;
|
|
1057
1057
|
}).join(" ");
|
|
1058
|
-
}),
|
|
1058
|
+
}), Ja = x(() => {
|
|
1059
1059
|
if (!t.value.chart.grid.labels.xAxis.showCrosshairs) return "";
|
|
1060
1060
|
const l = c.value.width / I.value, s = t.value.chart.grid.labels.xAxis.crosshairSize, e = t.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
|
|
1061
|
-
return
|
|
1061
|
+
return Xl.value.map((n, a) => {
|
|
1062
1062
|
if (!n || !n.text) return null;
|
|
1063
|
-
const
|
|
1064
|
-
return `M${
|
|
1063
|
+
const i = c.value.left + l * a + l / 2, o = e ? Le.value - (Le.value === c.value.bottom ? 0 : s / 2) : c.value.bottom, A = e ? Le.value + s / (Le.value === c.value.bottom ? 1 : 2) : c.value.bottom + s;
|
|
1064
|
+
return `M${i},${o} L${i},${A}`;
|
|
1065
1065
|
}).filter(Boolean).join(" ");
|
|
1066
1066
|
});
|
|
1067
1067
|
function ta() {
|
|
1068
|
-
return !!
|
|
1068
|
+
return !!Ze?.vnode.props?.onSelectTimeLabel;
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1070
|
+
function Qa(l, s, e) {
|
|
1071
1071
|
if (!Re.value) {
|
|
1072
1072
|
const n = document.createElement("canvas");
|
|
1073
1073
|
Re.value = n.getContext("2d");
|
|
@@ -1079,18 +1079,18 @@ const Qo = {
|
|
|
1079
1079
|
l.length && Array.from(l).forEach((s) => s.style.opacity = "0");
|
|
1080
1080
|
}
|
|
1081
1081
|
function wl(l, s, e, n, a) {
|
|
1082
|
-
e && (
|
|
1082
|
+
e && (We.value[`${l}_${s}_${n}_${a}`] = e);
|
|
1083
1083
|
}
|
|
1084
|
-
const aa =
|
|
1084
|
+
const aa = b(!1);
|
|
1085
1085
|
async function oa(l = !1) {
|
|
1086
|
-
await
|
|
1086
|
+
await Yt(), aa.value = l, Jt.value && (Qt.value = l);
|
|
1087
1087
|
}
|
|
1088
|
-
function
|
|
1088
|
+
function Dl() {
|
|
1089
1089
|
pe.value = !pe.value;
|
|
1090
1090
|
}
|
|
1091
1091
|
const ke = x(() => {
|
|
1092
1092
|
const l = Math.max(...ue.value.map((s) => je({ data: s.series, threshold: t.value.downsample.threshold }).length));
|
|
1093
|
-
return
|
|
1093
|
+
return Ya({
|
|
1094
1094
|
values: t.value.chart.grid.labels.xAxisLabels.values,
|
|
1095
1095
|
maxDatapoints: l,
|
|
1096
1096
|
formatter: t.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
@@ -1099,59 +1099,59 @@ const Qo = {
|
|
|
1099
1099
|
});
|
|
1100
1100
|
}), na = x(() => {
|
|
1101
1101
|
const l = Math.max(...ue.value.map((s) => je({ data: s.series, threshold: t.value.downsample.threshold }).length));
|
|
1102
|
-
return
|
|
1102
|
+
return Ya({
|
|
1103
1103
|
values: t.value.chart.grid.labels.xAxisLabels.values,
|
|
1104
1104
|
maxDatapoints: l,
|
|
1105
1105
|
formatter: t.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
1106
1106
|
start: 0,
|
|
1107
|
-
end:
|
|
1107
|
+
end: $e.value
|
|
1108
1108
|
});
|
|
1109
|
-
}),
|
|
1109
|
+
}), ja = x(() => {
|
|
1110
1110
|
const l = t.value.chart.grid.labels.xAxisLabels.modulo;
|
|
1111
1111
|
return ke.value.length ? Math.min(l, [...new Set(ke.value.map((s) => s.text))].length) : l;
|
|
1112
|
-
}),
|
|
1112
|
+
}), Xl = x(() => {
|
|
1113
1113
|
const l = t.value.chart.grid.labels.xAxisLabels, s = ke.value || [];
|
|
1114
1114
|
if (l.showOnlyFirstAndLast) {
|
|
1115
1115
|
if (s.length <= 2) return s;
|
|
1116
|
-
const w =
|
|
1116
|
+
const w = _.value;
|
|
1117
1117
|
return s.map(
|
|
1118
|
-
(N,
|
|
1118
|
+
(N, z) => z === 0 || z === s.length - 1 || w != null && z === w ? N : { ...N, text: "" }
|
|
1119
1119
|
);
|
|
1120
1120
|
}
|
|
1121
1121
|
if (!l.showOnlyAtModulo) return s;
|
|
1122
|
-
const e = Math.max(1,
|
|
1122
|
+
const e = Math.max(1, ja.value || 1);
|
|
1123
1123
|
if (I.value <= e) return s;
|
|
1124
|
-
const n = e, a = na.value || [],
|
|
1124
|
+
const n = e, a = na.value || [], i = y.value.start ?? 0, o = [];
|
|
1125
1125
|
for (let w = 0; w < s.length; w += 1) {
|
|
1126
1126
|
const N = s[w]?.text ?? "";
|
|
1127
1127
|
if (!N) continue;
|
|
1128
|
-
const
|
|
1129
|
-
N !==
|
|
1128
|
+
const z = i + w - 1 >= 0 ? a[i + w - 1]?.text ?? "" : null;
|
|
1129
|
+
N !== z && o.push(w);
|
|
1130
1130
|
}
|
|
1131
1131
|
if (!o.length) return s.map((w) => ({ ...w, text: "" }));
|
|
1132
|
-
const
|
|
1133
|
-
let M = Math.min(n,
|
|
1132
|
+
const A = o.length, B = Math.max(2, Math.min(n - 3, A)), E = Math.min(A, n + 3);
|
|
1133
|
+
let M = Math.min(n, A), O = 1 / 0;
|
|
1134
1134
|
for (let w = B; w <= E; w += 1) {
|
|
1135
|
-
const N = (
|
|
1136
|
-
se <
|
|
1135
|
+
const N = (A - 1) % (w - 1), z = Math.abs(w - n), se = N * 10 + z;
|
|
1136
|
+
se < O && (O = se, M = w);
|
|
1137
1137
|
}
|
|
1138
|
-
const
|
|
1138
|
+
const Z = /* @__PURE__ */ new Set();
|
|
1139
1139
|
if (M <= 1)
|
|
1140
|
-
|
|
1140
|
+
Z.add(o[Math.round((A - 1) / 2)]);
|
|
1141
1141
|
else {
|
|
1142
|
-
const w = (
|
|
1142
|
+
const w = (A - 1) / (M - 1);
|
|
1143
1143
|
for (let N = 0; N < M; N += 1)
|
|
1144
|
-
|
|
1144
|
+
Z.add(o[Math.round(N * w)]);
|
|
1145
1145
|
}
|
|
1146
|
-
return s.map((w, N) =>
|
|
1146
|
+
return s.map((w, N) => Z.has(N) ? w : { ...w, text: "" });
|
|
1147
1147
|
});
|
|
1148
1148
|
function ua(l, s) {
|
|
1149
|
-
const e =
|
|
1149
|
+
const e = Xe.value.map((n) => ({
|
|
1150
1150
|
shape: n.shape || null,
|
|
1151
1151
|
name: n.name,
|
|
1152
1152
|
color: n.color,
|
|
1153
1153
|
type: n.type,
|
|
1154
|
-
value: n.absoluteValues.find((a,
|
|
1154
|
+
value: n.absoluteValues.find((a, i) => i === s),
|
|
1155
1155
|
comments: n.comments || [],
|
|
1156
1156
|
prefix: n.prefix || t.value.chart.labels.prefix,
|
|
1157
1157
|
suffix: n.suffix || t.value.chart.labels.suffix
|
|
@@ -1163,29 +1163,29 @@ const Qo = {
|
|
|
1163
1163
|
});
|
|
1164
1164
|
}
|
|
1165
1165
|
const I = x(() => {
|
|
1166
|
-
const l =
|
|
1166
|
+
const l = hl((y.value.end ?? 0) - (y.value.start ?? 0));
|
|
1167
1167
|
return Math.max(1, l);
|
|
1168
1168
|
});
|
|
1169
1169
|
function sa(l) {
|
|
1170
|
-
|
|
1170
|
+
F.value = l;
|
|
1171
1171
|
}
|
|
1172
1172
|
function ia() {
|
|
1173
1173
|
k.value.isStacked = !k.value.isStacked, k.value.isStacked ? k.value.useIndividualScale = !0 : k.value.useIndividualScale = t.value.chart.grid.labels.yAxis.useIndividualScale;
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1175
|
+
function Yl(l) {
|
|
1176
1176
|
gt.value && l.autoScaling && (t.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${l.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), t.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${l.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
|
|
1177
1177
|
}
|
|
1178
|
-
function
|
|
1179
|
-
const e =
|
|
1178
|
+
function eo(l, s) {
|
|
1179
|
+
const e = hl(l), n = Array(e).fill(0);
|
|
1180
1180
|
for (let a = 0; a < s.length && a < e; a += 1) n[a] = s[a] ?? 0;
|
|
1181
1181
|
return n;
|
|
1182
1182
|
}
|
|
1183
|
-
function
|
|
1183
|
+
function to(l) {
|
|
1184
1184
|
const s = Math.max(...ue.value.map((e) => je({ data: e.series, threshold: t.value.downsample.threshold }).length));
|
|
1185
1185
|
return l > s ? s : l < 0 || t.value.chart.zoom.startIndex !== null && l < t.value.chart.zoom.startIndex ? t.value.chart.zoom.startIndex !== null ? t.value.chart.zoom.startIndex + 1 : 1 : l;
|
|
1186
1186
|
}
|
|
1187
1187
|
async function Sl() {
|
|
1188
|
-
await
|
|
1188
|
+
await Yt(), await Yt();
|
|
1189
1189
|
const { startIndex: l, endIndex: s } = t.value.chart.zoom, e = Ne.value, n = Math.max(
|
|
1190
1190
|
...ue.value.map(
|
|
1191
1191
|
(a) => je({
|
|
@@ -1194,7 +1194,7 @@ const Qo = {
|
|
|
1194
1194
|
}).length
|
|
1195
1195
|
)
|
|
1196
1196
|
);
|
|
1197
|
-
(l != null || s != null) && e ? (l != null && (y.value.start = l, e.setStartValue(l)), s != null && (y.value.end = s + 1, e.setEndValue(
|
|
1197
|
+
(l != null || s != null) && e ? (l != null && (y.value.start = l, e.setStartValue(l)), s != null && (y.value.end = s + 1, e.setEndValue(to(s + 1)))) : (y.value = { start: 0, end: n }, Zt.value += 1), De.value.start = y.value.start, De.value.end = y.value.end, xt();
|
|
1198
1198
|
}
|
|
1199
1199
|
async function ra() {
|
|
1200
1200
|
await Sl();
|
|
@@ -1208,7 +1208,7 @@ const Qo = {
|
|
|
1208
1208
|
}
|
|
1209
1209
|
const Le = x(() => isNaN(Bt(Vt.value)) ? c.value.bottom : c.value.bottom - c.value.height * Bt(Vt.value));
|
|
1210
1210
|
function va(l) {
|
|
1211
|
-
const s = ![null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) && t.value.chart.grid.labels.yAxis.scaleMin > 0 &&
|
|
1211
|
+
const s = ![null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) && t.value.chart.grid.labels.yAxis.scaleMin > 0 && jt.value >= 0 ? c.value.bottom : Le.value;
|
|
1212
1212
|
return l.value >= 0 ? V(s - l.y <= 0 ? 1e-5 : s - l.y) : V(l.y - Le.value <= 0 ? 1e-5 : l.y - Le.value);
|
|
1213
1213
|
}
|
|
1214
1214
|
function da(l) {
|
|
@@ -1217,15 +1217,15 @@ const Qo = {
|
|
|
1217
1217
|
const te = x(() => {
|
|
1218
1218
|
const l = Math.max(1, I.value), s = Math.max(1, c.value.width), e = Math.max(1, Je.value.filter((n) => n.type === "bar" && !ce.value.includes(n.id)).length);
|
|
1219
1219
|
return {
|
|
1220
|
-
bar:
|
|
1221
|
-
plot:
|
|
1222
|
-
line:
|
|
1220
|
+
bar: fl(s, l * e, 1),
|
|
1221
|
+
plot: fl(s, l, 1),
|
|
1222
|
+
line: fl(s, l, 1)
|
|
1223
1223
|
};
|
|
1224
1224
|
});
|
|
1225
|
-
function
|
|
1225
|
+
function el() {
|
|
1226
1226
|
return k.value.useIndividualScale && k.value.isStacked ? te.value.line - c.value.width / I.value * 0.1 : te.value.bar;
|
|
1227
1227
|
}
|
|
1228
|
-
function
|
|
1228
|
+
function _l(l) {
|
|
1229
1229
|
return k.value.useIndividualScale && k.value.isStacked ? l.x + c.value.width / I.value * 0.05 : l.x + te.value.bar / 2;
|
|
1230
1230
|
}
|
|
1231
1231
|
function ha(l) {
|
|
@@ -1234,20 +1234,20 @@ const Qo = {
|
|
|
1234
1234
|
function fa(l) {
|
|
1235
1235
|
return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(l.zeroPosition) ? 0 : l.zeroPosition;
|
|
1236
1236
|
}
|
|
1237
|
-
const
|
|
1238
|
-
function
|
|
1237
|
+
const gl = b(null);
|
|
1238
|
+
function lo(l) {
|
|
1239
1239
|
if (pe.value) return;
|
|
1240
|
-
const s =
|
|
1241
|
-
|
|
1240
|
+
const s = _e.value.getBoundingClientRect(), n = _e.value.viewBox.baseVal.width / s.width, i = (l.clientX - s.left) * n - c.value.left, o = c.value.width / I.value, A = Math.floor(i / o);
|
|
1241
|
+
A >= 0 && A < I.value ? gl.value !== A && (gl.value = A, Ma(!0, A)) : ma();
|
|
1242
1242
|
}
|
|
1243
1243
|
function ma() {
|
|
1244
|
-
|
|
1244
|
+
gl.value = null, Ma(!1, null);
|
|
1245
1245
|
}
|
|
1246
|
-
function
|
|
1247
|
-
|
|
1246
|
+
function ao() {
|
|
1247
|
+
gl.value != null && oo(gl.value);
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1250
|
-
const s =
|
|
1249
|
+
function oo(l) {
|
|
1250
|
+
const s = Xe.value.map((e) => ({
|
|
1251
1251
|
name: e.name,
|
|
1252
1252
|
value: [null, void 0, NaN].includes(e.absoluteValues[l]) ? null : e.absoluteValues[l],
|
|
1253
1253
|
color: e.color,
|
|
@@ -1262,7 +1262,7 @@ const Qo = {
|
|
|
1262
1262
|
}
|
|
1263
1263
|
), t.value.events.datapointClick && t.value.events.datapointClick({ datapoint: s, seriesIndex: l + y.value.start });
|
|
1264
1264
|
}
|
|
1265
|
-
function
|
|
1265
|
+
function no() {
|
|
1266
1266
|
return rt.value.map((l) => ({
|
|
1267
1267
|
values: l.absoluteValues,
|
|
1268
1268
|
color: l.color,
|
|
@@ -1270,12 +1270,12 @@ const Qo = {
|
|
|
1270
1270
|
type: l.type
|
|
1271
1271
|
}));
|
|
1272
1272
|
}
|
|
1273
|
-
async function
|
|
1273
|
+
async function uo({ scale: l = 2 } = {}) {
|
|
1274
1274
|
if (!me.value) return;
|
|
1275
|
-
const { width: s, height: e } = me.value.getBoundingClientRect(), n = s / e, { imageUri: a, base64:
|
|
1275
|
+
const { width: s, height: e } = me.value.getBoundingClientRect(), n = s / e, { imageUri: a, base64: i } = await jo({ domElement: me.value, base64: !0, img: !0, scale: l });
|
|
1276
1276
|
return {
|
|
1277
1277
|
imageUri: a,
|
|
1278
|
-
base64:
|
|
1278
|
+
base64: i,
|
|
1279
1279
|
title: t.value.chart.title.text,
|
|
1280
1280
|
width: s,
|
|
1281
1281
|
height: e,
|
|
@@ -1289,22 +1289,22 @@ const Qo = {
|
|
|
1289
1289
|
if (ce.value.length + 1 === Je.value.length) return;
|
|
1290
1290
|
ce.value.push(l.id);
|
|
1291
1291
|
}
|
|
1292
|
-
lt("selectLegend",
|
|
1292
|
+
lt("selectLegend", Xe.value.map((s) => ({
|
|
1293
1293
|
name: s.name,
|
|
1294
1294
|
values: s.absoluteValues,
|
|
1295
1295
|
color: s.color,
|
|
1296
1296
|
type: s.type
|
|
1297
1297
|
}))), Ot.value += 1;
|
|
1298
1298
|
}
|
|
1299
|
-
const
|
|
1299
|
+
const so = x(() => {
|
|
1300
1300
|
const l = t.value.chart.title.text || "Chart visualization", s = t.value.chart.title.subtitle.text || "";
|
|
1301
1301
|
return `${l}. ${s}`;
|
|
1302
1302
|
}), xa = x(() => ({
|
|
1303
1303
|
linePlot: I.value > t.value.line.dot.hideAboveMaxSerieLength
|
|
1304
|
-
})),
|
|
1304
|
+
})), io = x(() => t.value.chart.userOptions.show && (!t.value.chart.title.show || !t.value.chart.title.text)), ro = x(() => {
|
|
1305
1305
|
if (Array.isArray(t.value.chart.highlightArea))
|
|
1306
1306
|
return t.value.chart.highlightArea.map((s) => {
|
|
1307
|
-
const e = Math.min(s.to,
|
|
1307
|
+
const e = Math.min(s.to, $e.value - 1);
|
|
1308
1308
|
return {
|
|
1309
1309
|
...s,
|
|
1310
1310
|
span: s.from === e ? 1 : e < s.from ? 0 : e - s.from + 1
|
|
@@ -1312,25 +1312,25 @@ const Qo = {
|
|
|
1312
1312
|
});
|
|
1313
1313
|
const l = {
|
|
1314
1314
|
...t.value.chart.highlightArea,
|
|
1315
|
-
to: Math.min(t.value.chart.highlightArea.to,
|
|
1315
|
+
to: Math.min(t.value.chart.highlightArea.to, $e.value - 1)
|
|
1316
1316
|
};
|
|
1317
1317
|
return [{ ...l, span: l.from === l.to ? 1 : l.to < l.from ? 0 : l.to - l.from + 1 }];
|
|
1318
|
-
}),
|
|
1318
|
+
}), co = x(() => rl.value ? ue.value.map((l, s) => ({
|
|
1319
1319
|
...l,
|
|
1320
1320
|
series: je({
|
|
1321
1321
|
data: l.series,
|
|
1322
1322
|
threshold: t.value.downsample.threshold
|
|
1323
1323
|
}),
|
|
1324
1324
|
id: `uniqueId_${s}`
|
|
1325
|
-
})) : ue.value),
|
|
1325
|
+
})) : ue.value), vo = x(() => Xe.value.map((l) => {
|
|
1326
1326
|
const s = l.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
|
|
1327
1327
|
return {
|
|
1328
1328
|
id: l.id,
|
|
1329
1329
|
name: l.name,
|
|
1330
1330
|
color: l.color,
|
|
1331
|
-
values:
|
|
1331
|
+
values: eo(I.value, s)
|
|
1332
1332
|
};
|
|
1333
|
-
})),
|
|
1333
|
+
})), ho = x(() => ({
|
|
1334
1334
|
responsiveBreakpoint: t.value.table.responsiveBreakpoint,
|
|
1335
1335
|
roundingValues: t.value.table.rounding,
|
|
1336
1336
|
showAverage: !1,
|
|
@@ -1353,10 +1353,10 @@ const Qo = {
|
|
|
1353
1353
|
userOptions: {
|
|
1354
1354
|
show: !1
|
|
1355
1355
|
}
|
|
1356
|
-
})), Q = x(() => t.value.chart.grid.position === "middle" ? 0 : c.value.width / I.value / 2), Et = x(() =>
|
|
1356
|
+
})), Q = x(() => t.value.chart.grid.position === "middle" ? 0 : c.value.width / I.value / 2), Et = x(() => Oo(rt.value.filter((l) => !ce.value.includes(l.id)))), T = x(() => {
|
|
1357
1357
|
const l = Object.groupBy(Et.value, (e) => e.scaleLabel), s = {};
|
|
1358
1358
|
for (const [e, n] of Object.entries(l)) {
|
|
1359
|
-
const a = n.flatMap((
|
|
1359
|
+
const a = n.flatMap((i) => i.absoluteValues);
|
|
1360
1360
|
s[e] = {
|
|
1361
1361
|
min: Math.min(...a) || 0,
|
|
1362
1362
|
max: Math.max(...a) || 1,
|
|
@@ -1364,23 +1364,23 @@ const Qo = {
|
|
|
1364
1364
|
};
|
|
1365
1365
|
}
|
|
1366
1366
|
return s;
|
|
1367
|
-
}),
|
|
1367
|
+
}), fo = x(() => {
|
|
1368
1368
|
const l = Je.value.filter((s) => s.type === "bar").filter((s) => !ce.value.includes(s.id)).length;
|
|
1369
|
-
return c.value.width / I.value / l -
|
|
1370
|
-
}),
|
|
1369
|
+
return c.value.width / I.value / l - $l.value * l;
|
|
1370
|
+
}), $l = x(() => te.value.line * t.value.bar.periodGap), Ll = x(() => Math.max(1e-5, el() - (k.value.useIndividualScale && k.value.isStacked ? 0 : $l.value))), Ml = x(() => Ll.value * Math.min(Math.abs(t.value.bar.innerGap), 0.95)), ba = x(() => {
|
|
1371
1371
|
if (!t.value.chart.zoom.minimap.show) return [];
|
|
1372
|
-
const l =
|
|
1372
|
+
const l = co.value.filter((a) => !ce.value.includes(a.id)), s = Math.max(...l.map((a) => a.series.length)), e = [];
|
|
1373
1373
|
for (let a = 0; a < s; a += 1)
|
|
1374
|
-
e.push(l.map((
|
|
1374
|
+
e.push(l.map((i) => i.series[a] || 0).reduce((i, o) => (i || 0) + (o || 0), 0));
|
|
1375
1375
|
const n = Math.min(...e);
|
|
1376
1376
|
return e.map((a) => a + (n < 0 ? Math.abs(n) : 0));
|
|
1377
|
-
}), bt = x(() =>
|
|
1377
|
+
}), bt = x(() => Xe.value.map((l) => ({
|
|
1378
1378
|
slotAbsoluteIndex: l.slotAbsoluteIndex,
|
|
1379
1379
|
shape: l.shape || null,
|
|
1380
1380
|
name: l.name,
|
|
1381
1381
|
color: l.color,
|
|
1382
1382
|
type: l.type,
|
|
1383
|
-
value: l.absoluteValues.find((s, e) => e ===
|
|
1383
|
+
value: l.absoluteValues.find((s, e) => e === _.value),
|
|
1384
1384
|
comments: l.comments || [],
|
|
1385
1385
|
prefix: l.prefix || t.value.chart.labels.prefix,
|
|
1386
1386
|
suffix: l.suffix || t.value.chart.labels.suffix
|
|
@@ -1396,33 +1396,33 @@ const Qo = {
|
|
|
1396
1396
|
(M) => M.show && (M.yAxis.yTop != null || M.yAxis.yBottom != null)
|
|
1397
1397
|
);
|
|
1398
1398
|
if (!s.length) return [];
|
|
1399
|
-
const { left: e, right: n } = c.value, a = Le.value,
|
|
1400
|
-
const
|
|
1401
|
-
return a -
|
|
1399
|
+
const { left: e, right: n } = c.value, a = Le.value, i = c.value.height, o = Pe.value.min, B = Pe.value.max - o, E = (M) => {
|
|
1400
|
+
const O = (M - 0) / B;
|
|
1401
|
+
return a - O * i;
|
|
1402
1402
|
};
|
|
1403
1403
|
return s.map((M) => {
|
|
1404
|
-
const { yAxis: { yTop:
|
|
1404
|
+
const { yAxis: { yTop: O, yBottom: Z, label: w } } = M, N = O != null && Z != null && O !== Z, z = O == null ? null : E(O), se = Z == null ? null : E(Z), Me = Qa(w.fontSize);
|
|
1405
1405
|
Me.font = `${w.fontSize}px sans-serif`;
|
|
1406
|
-
const ee = Me.measureText(w.text).width,
|
|
1407
|
-
let
|
|
1408
|
-
w.textAnchor === "middle" ?
|
|
1409
|
-
const
|
|
1406
|
+
const ee = Me.measureText(w.text).width, Ye = w.fontSize, ct = (w.position === "start" ? e + w.padding.left : n - w.padding.right) + w.offsetX, Fe = (z != null && se != null ? Math.min(z, se) : z ?? se) - w.fontSize / 3 + w.offsetY - w.padding.top;
|
|
1407
|
+
let D;
|
|
1408
|
+
w.textAnchor === "middle" ? D = ct - ee / 2 - w.padding.left : w.textAnchor === "end" ? D = ct - ee - w.padding.right : D = ct - w.padding.left;
|
|
1409
|
+
const X = Fe - Ye * 0.75 - w.padding.top;
|
|
1410
1410
|
return {
|
|
1411
|
-
show: ![
|
|
1411
|
+
show: ![z, se, X].includes(NaN),
|
|
1412
1412
|
id: `annotation_y_${Pl()}`,
|
|
1413
1413
|
hasArea: N,
|
|
1414
|
-
areaHeight: N ? Math.abs(
|
|
1415
|
-
yTop:
|
|
1414
|
+
areaHeight: N ? Math.abs(z - se) : 0,
|
|
1415
|
+
yTop: z,
|
|
1416
1416
|
yBottom: se,
|
|
1417
1417
|
config: M.yAxis,
|
|
1418
1418
|
x1: e,
|
|
1419
1419
|
x2: n,
|
|
1420
1420
|
_text: { x: ct, y: Fe },
|
|
1421
1421
|
_box: {
|
|
1422
|
-
x:
|
|
1423
|
-
y:
|
|
1422
|
+
x: D,
|
|
1423
|
+
y: X,
|
|
1424
1424
|
width: ee + w.padding.left + w.padding.right,
|
|
1425
|
-
height:
|
|
1425
|
+
height: Ye + w.padding.top + w.padding.bottom,
|
|
1426
1426
|
fill: w.backgroundColor,
|
|
1427
1427
|
stroke: w.border.stroke,
|
|
1428
1428
|
rx: w.border.rx,
|
|
@@ -1438,258 +1438,258 @@ const Qo = {
|
|
|
1438
1438
|
return Oe(l[s].value) && a && t.value.line.cutNullValues;
|
|
1439
1439
|
}
|
|
1440
1440
|
const pt = x(() => {
|
|
1441
|
-
const l = Et.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = l.length, e = t.value.chart.grid.labels.yAxis.gap, n = k.value.isStacked, a = n ? e * (s - 1) : 0,
|
|
1442
|
-
return l.filter((o) => o.type === "bar").map((o,
|
|
1443
|
-
|
|
1444
|
-
const B =
|
|
1445
|
-
o.absoluteValues.filter((
|
|
1441
|
+
const l = Et.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = l.length, e = t.value.chart.grid.labels.yAxis.gap, n = k.value.isStacked, a = n ? e * (s - 1) : 0, i = c.value.height - a;
|
|
1442
|
+
return l.filter((o) => o.type === "bar").map((o, A) => {
|
|
1443
|
+
Yl(o);
|
|
1444
|
+
const B = T.value[o.scaleLabel].min, E = T.value[o.scaleLabel].max;
|
|
1445
|
+
o.absoluteValues.filter((W) => ![null, void 0].includes(W)).map((W) => (W - B) / (E - B));
|
|
1446
1446
|
const M = {
|
|
1447
1447
|
valueMin: B,
|
|
1448
1448
|
valueMax: E < 0 ? 0 : E
|
|
1449
|
-
},
|
|
1449
|
+
}, O = {
|
|
1450
1450
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
1451
|
-
min: o.scaleMin || Math.min(...o.absoluteValues.filter((
|
|
1452
|
-
},
|
|
1453
|
-
const Lt = k.value.useIndividualScale ? (o.absoluteValues[fe] + se) / ee : Bt(
|
|
1451
|
+
min: o.scaleMin || Math.min(...o.absoluteValues.filter((W) => ![void 0, null].includes(W))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((W) => ![null, void 0].includes(W)))
|
|
1452
|
+
}, Z = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, w = 1.0000001, N = t.value.chart.grid.labels.yAxis.useNiceScale ? yl(O.min, O.max === O.min ? O.max * w : O.max, Z) : Dt(O.min, O.max === O.min ? O.max * w : O.max, Z), z = t.value.chart.grid.labels.yAxis.useNiceScale ? yl(M.valueMin, M.valueMax === M.valueMin ? M.valueMax * w : M.valueMax, Z) : Dt(M.valueMin, M.valueMax === M.valueMin ? M.valueMax * w : M.valueMax, Z), se = N.min >= 0 ? 0 : Math.abs(N.min), Me = 0, ee = N.max + se, Ye = z.max + Math.abs(Me), ct = o.stackIndex, tl = s - 1 - ct, Fe = n ? 1 - o.cumulatedStackRatio : 0, D = n ? i * Fe + e * tl : 0, X = n ? i * o.stackRatio : c.value.height, de = c.value.bottom - D - X * se / ee, He = c.value.bottom - D - X * Me / Ye, Ce = rt.value.filter((W) => W.type === "bar").filter((W) => !ce.value.includes(W.id)).length, bl = o.series.map((W, fe) => {
|
|
1453
|
+
const Lt = k.value.useIndividualScale ? (o.absoluteValues[fe] + se) / ee : Bt(W), Wt = k.value.useIndividualScale && k.value.isStacked ? c.value.left + c.value.width / I.value * fe : c.value.left + te.value.bar * A + te.value.bar * fe * Ce - fo.value / 2 - A * $l.value;
|
|
1454
1454
|
return {
|
|
1455
|
-
yOffset: V(
|
|
1456
|
-
individualHeight: V(
|
|
1457
|
-
x: V(
|
|
1458
|
-
y: c.value.bottom -
|
|
1455
|
+
yOffset: V(D),
|
|
1456
|
+
individualHeight: V(X),
|
|
1457
|
+
x: V(Wt),
|
|
1458
|
+
y: c.value.bottom - D - X * Lt,
|
|
1459
1459
|
value: o.absoluteValues[fe],
|
|
1460
1460
|
zeroPosition: V(de),
|
|
1461
1461
|
individualMax: V(ee),
|
|
1462
1462
|
comment: o.comments && o.comments.slice(y.value.start, y.value.end)[fe] || ""
|
|
1463
1463
|
};
|
|
1464
|
-
}),
|
|
1465
|
-
const Lt = k.value.useIndividualScale && k.value.isStacked ? c.value.left + c.value.width / I.value * fe : c.value.left - te.value.bar / 2 + te.value.bar *
|
|
1464
|
+
}), Ie = o.absoluteValues.map((W) => z.min >= 0 ? (W - Math.abs(z.min)) / (z.max - Math.abs(z.min)) : (W + Math.abs(z.min)) / (z.max + Math.abs(z.min))), $t = o.series.map((W, fe) => {
|
|
1465
|
+
const Lt = k.value.useIndividualScale && k.value.isStacked ? c.value.left + c.value.width / I.value * fe : c.value.left - te.value.bar / 2 + te.value.bar * A + te.value.bar * fe * rt.value.filter((Wt) => Wt.type === "bar").filter((Wt) => !ce.value.includes(Wt.id)).length;
|
|
1466
1466
|
return {
|
|
1467
|
-
yOffset: V(
|
|
1468
|
-
individualHeight: V(
|
|
1467
|
+
yOffset: V(D),
|
|
1468
|
+
individualHeight: V(X),
|
|
1469
1469
|
x: V(Lt),
|
|
1470
|
-
y: V(c.value.bottom - V(
|
|
1470
|
+
y: V(c.value.bottom - V(D) - (V(X) * Ie[fe] || 0)),
|
|
1471
1471
|
value: o.absoluteValues[fe],
|
|
1472
1472
|
zeroPosition: V(de),
|
|
1473
1473
|
individualMax: V(ee),
|
|
1474
1474
|
comment: o.comments && o.comments.slice(y.value.start, y.value.end)[fe] || ""
|
|
1475
1475
|
};
|
|
1476
|
-
}), K = N.ticks.map((
|
|
1477
|
-
y:
|
|
1478
|
-
value:
|
|
1476
|
+
}), K = N.ticks.map((W) => ({
|
|
1477
|
+
y: W >= 0 ? de - X * (W / ee) : de + X * Math.abs(W) / ee,
|
|
1478
|
+
value: W,
|
|
1479
1479
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1480
1480
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1481
1481
|
datapoint: o
|
|
1482
|
-
})), he =
|
|
1483
|
-
const fe = (
|
|
1482
|
+
})), he = z.ticks.map((W) => {
|
|
1483
|
+
const fe = (W - z.min) / (z.max - z.min);
|
|
1484
1484
|
return {
|
|
1485
|
-
y:
|
|
1486
|
-
value:
|
|
1485
|
+
y: W >= 0 ? He - X * fe : He + X * fe,
|
|
1486
|
+
value: W,
|
|
1487
1487
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1488
1488
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1489
1489
|
datapoint: o
|
|
1490
1490
|
};
|
|
1491
1491
|
});
|
|
1492
|
-
return
|
|
1492
|
+
return T.value[o.scaleLabel].name = o.name, T.value[o.scaleLabel].groupName = o.scaleLabel, T.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, T.value[o.scaleLabel].color = o.color, T.value[o.scaleLabel].scaleYLabels = o.autoScaling ? he : K, T.value[o.scaleLabel].zeroPosition = o.autoScaling ? He : de, T.value[o.scaleLabel].individualMax = o.autoScaling ? Ye : ee, T.value[o.scaleLabel].scaleLabel = o.scaleLabel, T.value[o.scaleLabel].id = o.id, T.value[o.scaleLabel].yOffset = D, T.value[o.scaleLabel].individualHeight = X, T.value[o.scaleLabel].autoScaleYLabels = he, T.value[o.scaleLabel].unique = Et.value.filter((W) => W.scaleLabel === o.scaleLabel).length === 1, {
|
|
1493
1493
|
...o,
|
|
1494
|
-
yOffset:
|
|
1494
|
+
yOffset: D,
|
|
1495
1495
|
autoScaleYLabels: he,
|
|
1496
|
-
individualHeight:
|
|
1496
|
+
individualHeight: X,
|
|
1497
1497
|
scaleYLabels: o.autoScaling ? he : K,
|
|
1498
|
-
individualScale: o.autoScaling ?
|
|
1499
|
-
individualMax: o.autoScaling ?
|
|
1498
|
+
individualScale: o.autoScaling ? z : N,
|
|
1499
|
+
individualMax: o.autoScaling ? Ye : ee,
|
|
1500
1500
|
zeroPosition: o.autoScaling ? He : de,
|
|
1501
|
-
plots: o.autoScaling ?
|
|
1502
|
-
groupId:
|
|
1501
|
+
plots: o.autoScaling ? $t : bl,
|
|
1502
|
+
groupId: T.value[o.scaleLabel].groupId
|
|
1503
1503
|
};
|
|
1504
1504
|
});
|
|
1505
|
-
}),
|
|
1506
|
-
const l = Et.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = l.length, e = t.value.chart.grid.labels.yAxis.gap, n = k.value.isStacked, a = n ? e * (s - 1) : 0,
|
|
1507
|
-
return l.filter((o) => o.type === "line").map((o,
|
|
1508
|
-
|
|
1509
|
-
const B =
|
|
1505
|
+
}), Te = x(() => {
|
|
1506
|
+
const l = Et.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = l.length, e = t.value.chart.grid.labels.yAxis.gap, n = k.value.isStacked, a = n ? e * (s - 1) : 0, i = c.value.height - a;
|
|
1507
|
+
return l.filter((o) => o.type === "line").map((o, A) => {
|
|
1508
|
+
Yl(o);
|
|
1509
|
+
const B = T.value[o.scaleLabel].min, E = T.value[o.scaleLabel].max;
|
|
1510
1510
|
o.absoluteValues.filter((H) => ![null, void 0].includes(H)).map((H) => (H - B) / (E - B));
|
|
1511
1511
|
const M = {
|
|
1512
1512
|
valueMin: B,
|
|
1513
1513
|
valueMax: E
|
|
1514
|
-
},
|
|
1514
|
+
}, O = {
|
|
1515
1515
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
1516
1516
|
min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
|
|
1517
|
-
},
|
|
1518
|
-
const
|
|
1517
|
+
}, Z = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, w = 1.0000001, N = t.value.chart.grid.labels.yAxis.useNiceScale ? yl(O.min, O.max === O.min ? O.max * w : O.max, Z) : Dt(O.min, O.max === O.min ? O.max * w : O.max, Z), z = t.value.chart.grid.labels.yAxis.useNiceScale ? yl(M.valueMin, M.valueMax === M.valueMin ? M.valueMax * w : M.valueMax, Z) : Dt(M.valueMin, M.valueMax === M.valueMin ? M.valueMax * w : M.valueMax, Z), se = N.min >= 0 ? 0 : Math.abs(N.min), Me = 0, ee = N.max + Math.abs(se), Ye = z.max + Math.abs(Me), ct = o.stackIndex, tl = s - 1 - ct, Fe = n ? 1 - o.cumulatedStackRatio : 0, D = n ? i * Fe + e * tl : 0, X = n ? i * o.stackRatio : c.value.height, de = c.value.bottom - D - X * se / ee, He = c.value.bottom - D - X * Me / Ye, Ce = o.series.map((H, we) => {
|
|
1518
|
+
const yo = k.value.useIndividualScale ? (o.absoluteValues[we] + Math.abs(se)) / ee : Bt(H);
|
|
1519
1519
|
return {
|
|
1520
1520
|
x: V(c.value.left + te.value.line / 2 + te.value.line * we),
|
|
1521
|
-
y: V(c.value.bottom -
|
|
1521
|
+
y: V(c.value.bottom - D - X * yo),
|
|
1522
1522
|
value: o.absoluteValues[we],
|
|
1523
1523
|
comment: o.comments && o.comments.slice(y.value.start, y.value.end)[we] || ""
|
|
1524
1524
|
};
|
|
1525
|
-
}),
|
|
1525
|
+
}), bl = o.absoluteValues.map((H) => z.min >= 0 ? (H - Math.abs(z.min)) / (z.max - Math.abs(z.min)) : (H + Math.abs(z.min)) / (z.max + Math.abs(z.min))), Ie = o.series.map((H, we) => [void 0, null].includes(o.absoluteValues[we]) ? {
|
|
1526
1526
|
x: V(c.value.left + te.value.line / 2 + te.value.line * we),
|
|
1527
1527
|
y: de,
|
|
1528
1528
|
value: o.absoluteValues[we],
|
|
1529
1529
|
comment: o.comments && o.comments.slice(y.value.start, y.value.end)[we] || ""
|
|
1530
1530
|
} : {
|
|
1531
1531
|
x: V(c.value.left + te.value.line / 2 + te.value.line * we),
|
|
1532
|
-
y: V(c.value.bottom -
|
|
1532
|
+
y: V(c.value.bottom - D - (X * bl[we] || 0)),
|
|
1533
1533
|
value: o.absoluteValues[we],
|
|
1534
1534
|
comment: o.comments && o.comments.slice(y.value.start, y.value.end)[we] || ""
|
|
1535
|
-
}),
|
|
1536
|
-
y: H >= 0 ? de -
|
|
1535
|
+
}), $t = t.value.line.cutNullValues ? Va(Ce) : Fl(Ce.filter((H) => H.value !== null)), K = t.value.line.cutNullValues ? Va(Ie) : Fl(Ie.filter((H) => H.value !== null)), he = t.value.line.cutNullValues ? Ba(Ce) : Hl(Ce.filter((H) => H.value !== null)), W = t.value.line.cutNullValues ? Ba(Ie) : Hl(Ie.filter((H) => H.value !== null)), fe = N.ticks.map((H) => ({
|
|
1536
|
+
y: H >= 0 ? de - X * (H / ee) : de + X * Math.abs(H) / ee,
|
|
1537
1537
|
value: H,
|
|
1538
1538
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1539
1539
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1540
1540
|
datapoint: o
|
|
1541
|
-
})), Lt =
|
|
1542
|
-
const we = (H -
|
|
1541
|
+
})), Lt = z.ticks.map((H) => {
|
|
1542
|
+
const we = (H - z.min) / (z.max - z.min);
|
|
1543
1543
|
return {
|
|
1544
|
-
y: H >= 0 ? He -
|
|
1544
|
+
y: H >= 0 ? He - X * we : He + X * we,
|
|
1545
1545
|
value: H,
|
|
1546
1546
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1547
1547
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1548
1548
|
datapoint: o
|
|
1549
1549
|
};
|
|
1550
1550
|
});
|
|
1551
|
-
|
|
1552
|
-
const
|
|
1551
|
+
T.value[o.scaleLabel].name = o.name, T.value[o.scaleLabel].groupName = o.scaleLabel, T.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, T.value[o.scaleLabel].color = o.color, T.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Lt : fe, T.value[o.scaleLabel].zeroPosition = o.autoScaling ? He : de, T.value[o.scaleLabel].individualMax = o.autoScaling ? Ye : ee, T.value[o.scaleLabel].scaleLabel = o.scaleLabel, T.value[o.scaleLabel].id = o.id, T.value[o.scaleLabel].yOffset = D, T.value[o.scaleLabel].individualHeight = X, T.value[o.scaleLabel].autoScaleYLabels = Lt, T.value[o.scaleLabel].unique = Et.value.filter((H) => H.scaleLabel === o.scaleLabel).length === 1;
|
|
1552
|
+
const Wt = k.value.useIndividualScale ? o.autoScaling ? He : de : Le.value, pl = Math.max(Math.max(o.autoScaling ? He : fe.at(-1) ? fe.at(-1).y : 0, c.value.top), Wt);
|
|
1553
1553
|
return {
|
|
1554
1554
|
...o,
|
|
1555
|
-
yOffset:
|
|
1555
|
+
yOffset: D,
|
|
1556
1556
|
autoScaleYLabels: Lt,
|
|
1557
|
-
individualHeight:
|
|
1557
|
+
individualHeight: X,
|
|
1558
1558
|
scaleYLabels: o.autoScaling ? Lt : fe,
|
|
1559
|
-
individualScale: o.autoScaling ?
|
|
1560
|
-
individualMax: o.autoScaling ?
|
|
1559
|
+
individualScale: o.autoScaling ? z : N,
|
|
1560
|
+
individualMax: o.autoScaling ? Ye : ee,
|
|
1561
1561
|
zeroPosition: o.autoScaling ? He : de,
|
|
1562
|
-
curve: o.autoScaling ? K :
|
|
1563
|
-
plots: o.autoScaling ?
|
|
1564
|
-
area: o.useArea ? k.value.useIndividualScale ? t.value.line.cutNullValues ?
|
|
1565
|
-
o.autoScaling ?
|
|
1566
|
-
|
|
1567
|
-
) :
|
|
1568
|
-
o.autoScaling ?
|
|
1569
|
-
|
|
1570
|
-
) : t.value.line.cutNullValues ?
|
|
1571
|
-
curveAreas: o.useArea ?
|
|
1572
|
-
o.autoScaling ? t.value.line.cutNullValues ?
|
|
1573
|
-
|
|
1562
|
+
curve: o.autoScaling ? K : $t,
|
|
1563
|
+
plots: o.autoScaling ? Ie : Ce,
|
|
1564
|
+
area: o.useArea ? k.value.useIndividualScale ? t.value.line.cutNullValues ? Ea(
|
|
1565
|
+
o.autoScaling ? Ie : Ce,
|
|
1566
|
+
pl
|
|
1567
|
+
) : Wa(
|
|
1568
|
+
o.autoScaling ? Ie.filter((H) => H.value !== null) : Ce.filter((H) => H.value !== null),
|
|
1569
|
+
pl
|
|
1570
|
+
) : t.value.line.cutNullValues ? Ea(Ce, pl) : Wa(Ce.filter((H) => H.value !== null), pl) : "",
|
|
1571
|
+
curveAreas: o.useArea ? Fo(
|
|
1572
|
+
o.autoScaling ? t.value.line.cutNullValues ? Ie : Ie.filter((H) => H.value !== null) : t.value.line.cutNullValues ? Ce : Ce.filter((H) => H.value !== null),
|
|
1573
|
+
pl,
|
|
1574
1574
|
t.value.line.cutNullValues
|
|
1575
1575
|
) : [],
|
|
1576
|
-
straight: o.autoScaling ?
|
|
1577
|
-
groupId:
|
|
1576
|
+
straight: o.autoScaling ? W : he,
|
|
1577
|
+
groupId: T.value[o.scaleLabel].groupId
|
|
1578
1578
|
};
|
|
1579
1579
|
});
|
|
1580
1580
|
}), Qe = x(() => {
|
|
1581
|
-
const l = Et.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = l.length, e = t.value.chart.grid.labels.yAxis.gap, n = k.value.isStacked, a = n ? e * (s - 1) : 0,
|
|
1581
|
+
const l = Et.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = l.length, e = t.value.chart.grid.labels.yAxis.gap, n = k.value.isStacked, a = n ? e * (s - 1) : 0, i = c.value.height - a;
|
|
1582
1582
|
return l.filter((o) => o.type === "plot").map((o) => {
|
|
1583
|
-
|
|
1584
|
-
const
|
|
1585
|
-
o.absoluteValues.filter((K) => ![null, void 0].includes(K)).map((K) => (K -
|
|
1583
|
+
Yl(o);
|
|
1584
|
+
const A = T.value[o.scaleLabel].min, B = T.value[o.scaleLabel].max;
|
|
1585
|
+
o.absoluteValues.filter((K) => ![null, void 0].includes(K)).map((K) => (K - A) / (B - A));
|
|
1586
1586
|
const E = {
|
|
1587
|
-
valueMin:
|
|
1587
|
+
valueMin: A,
|
|
1588
1588
|
valueMax: B
|
|
1589
1589
|
}, M = {
|
|
1590
1590
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
1591
1591
|
min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
|
|
1592
|
-
},
|
|
1593
|
-
const
|
|
1592
|
+
}, O = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, Z = 1.0000001, w = Dt(M.min, M.max === M.min ? M.max * Z : M.max, O), N = Dt(E.valueMin, E.valueMax === E.valueMin ? E.valueMax * Z : E.valueMax, O), z = w.min >= 0 ? 0 : Math.abs(w.min), se = 0, Me = w.max + z, ee = N.max + Math.abs(se), Ye = o.stackIndex, ct = s - 1 - Ye, tl = n ? 1 - o.cumulatedStackRatio : 0, Fe = n ? i * tl + e * ct : 0, D = n ? i * o.stackRatio : c.value.height, X = c.value.bottom - Fe - D * z / Me, de = c.value.bottom - Fe - D * se / ee, He = o.series.map((K, he) => {
|
|
1593
|
+
const W = k.value.useIndividualScale ? (o.absoluteValues[he] + Math.abs(z)) / Me : Bt(K);
|
|
1594
1594
|
return {
|
|
1595
1595
|
x: V(c.value.left + te.value.plot / 2 + te.value.plot * he),
|
|
1596
|
-
y: V(c.value.bottom - Fe -
|
|
1596
|
+
y: V(c.value.bottom - Fe - D * W),
|
|
1597
1597
|
value: o.absoluteValues[he],
|
|
1598
1598
|
comment: o.comments && o.comments.slice(y.value.start, y.value.end)[he] || ""
|
|
1599
1599
|
};
|
|
1600
|
-
}), Ce = o.absoluteValues.map((K) => N.min >= 0 ? (K - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (K + Math.abs(N.min)) / (N.max + Math.abs(N.min))),
|
|
1600
|
+
}), Ce = o.absoluteValues.map((K) => N.min >= 0 ? (K - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (K + Math.abs(N.min)) / (N.max + Math.abs(N.min))), bl = o.series.map((K, he) => ({
|
|
1601
1601
|
x: V(c.value.left + te.value.plot / 2 + te.value.plot * he),
|
|
1602
|
-
y: V(c.value.bottom - Fe - (
|
|
1602
|
+
y: V(c.value.bottom - Fe - (D * Ce[he] || 0)),
|
|
1603
1603
|
value: o.absoluteValues[he],
|
|
1604
1604
|
comment: o.comments && o.comments.slice(y.value.start, y.value.end)[he] || ""
|
|
1605
|
-
})),
|
|
1606
|
-
y: K >= 0 ?
|
|
1605
|
+
})), Ie = w.ticks.map((K) => ({
|
|
1606
|
+
y: K >= 0 ? X - D * (K / Me) : X + D * Math.abs(K) / Me,
|
|
1607
1607
|
value: K,
|
|
1608
1608
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1609
1609
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1610
1610
|
datapoint: o
|
|
1611
|
-
})),
|
|
1611
|
+
})), $t = N.ticks.map((K) => {
|
|
1612
1612
|
const he = (K - N.min) / (N.max - N.min);
|
|
1613
1613
|
return {
|
|
1614
|
-
y: K >= 0 ? de -
|
|
1614
|
+
y: K >= 0 ? de - D * he : de + D * he,
|
|
1615
1615
|
value: K,
|
|
1616
1616
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1617
1617
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1618
1618
|
datapoint: o
|
|
1619
1619
|
};
|
|
1620
1620
|
});
|
|
1621
|
-
return
|
|
1621
|
+
return T.value[o.scaleLabel].name = o.name, T.value[o.scaleLabel].groupName = o.scaleLabel, T.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, T.value[o.scaleLabel].color = o.color, T.value[o.scaleLabel].scaleYLabels = o.autoScaling ? $t : Ie, T.value[o.scaleLabel].zeroPosition = o.autoScaling ? de : X, T.value[o.scaleLabel].individualMax = o.autoScaling ? ee : Me, T.value[o.scaleLabel].scaleLabel = o.scaleLabel, T.value[o.scaleLabel].id = o.id, T.value[o.scaleLabel].yOffset = Fe, T.value[o.scaleLabel].individualHeight = D, T.value[o.scaleLabel].autoScaleYLabels = $t, T.value[o.scaleLabel].unique = Et.value.filter((K) => K.scaleLabel === o.scaleLabel).length === 1, {
|
|
1622
1622
|
...o,
|
|
1623
1623
|
yOffset: Fe,
|
|
1624
|
-
autoScaleYLabels:
|
|
1625
|
-
individualHeight:
|
|
1626
|
-
scaleYLabels: o.autoScaling ?
|
|
1624
|
+
autoScaleYLabels: $t,
|
|
1625
|
+
individualHeight: D,
|
|
1626
|
+
scaleYLabels: o.autoScaling ? $t : Ie,
|
|
1627
1627
|
individualScale: o.autoScaling ? N : w,
|
|
1628
1628
|
individualMax: o.autoScaling ? ee : Me,
|
|
1629
|
-
zeroPosition: o.autoScaling ? de :
|
|
1630
|
-
plots: o.autoScaling ?
|
|
1631
|
-
groupId:
|
|
1629
|
+
zeroPosition: o.autoScaling ? de : X,
|
|
1630
|
+
plots: o.autoScaling ? bl : He,
|
|
1631
|
+
groupId: T.value[o.scaleLabel].groupId
|
|
1632
1632
|
};
|
|
1633
1633
|
});
|
|
1634
|
-
}),
|
|
1635
|
-
const l =
|
|
1636
|
-
name:
|
|
1637
|
-
color:
|
|
1638
|
-
scale:
|
|
1639
|
-
scaleYLabels:
|
|
1640
|
-
zero:
|
|
1641
|
-
max:
|
|
1642
|
-
scaleLabel:
|
|
1643
|
-
id:
|
|
1644
|
-
yOffset:
|
|
1645
|
-
individualHeight:
|
|
1646
|
-
autoScaleYLabels:
|
|
1647
|
-
})), s = pt.value.map((
|
|
1648
|
-
name:
|
|
1649
|
-
color:
|
|
1650
|
-
scale:
|
|
1651
|
-
scaleYLabels:
|
|
1652
|
-
zero:
|
|
1653
|
-
max:
|
|
1654
|
-
scaleLabel:
|
|
1655
|
-
id:
|
|
1656
|
-
yOffset:
|
|
1657
|
-
individualHeight:
|
|
1658
|
-
})), e = Qe.value.map((
|
|
1659
|
-
name:
|
|
1660
|
-
color:
|
|
1661
|
-
scale:
|
|
1662
|
-
scaleYLabels:
|
|
1634
|
+
}), xl = x(() => {
|
|
1635
|
+
const l = Te.value.map((i) => ({
|
|
1636
|
+
name: i.name,
|
|
1637
|
+
color: i.color,
|
|
1638
|
+
scale: i.individualScale,
|
|
1639
|
+
scaleYLabels: i.scaleYLabels,
|
|
1640
|
+
zero: i.zeroPosition,
|
|
1641
|
+
max: i.individualMax,
|
|
1642
|
+
scaleLabel: i.scaleLabel || "",
|
|
1643
|
+
id: i.id,
|
|
1644
|
+
yOffset: i.yOffset || 0,
|
|
1645
|
+
individualHeight: i.individualHeight || c.value.height,
|
|
1646
|
+
autoScaleYLabels: i.autoScaleYLabels
|
|
1647
|
+
})), s = pt.value.map((i) => ({
|
|
1648
|
+
name: i.name,
|
|
1649
|
+
color: i.color,
|
|
1650
|
+
scale: i.individualScale,
|
|
1651
|
+
scaleYLabels: i.scaleYLabels,
|
|
1652
|
+
zero: i.zeroPosition,
|
|
1653
|
+
max: i.individualMax,
|
|
1654
|
+
scaleLabel: i.scaleLabel || "",
|
|
1655
|
+
id: i.id,
|
|
1656
|
+
yOffset: i.yOffset || 0,
|
|
1657
|
+
individualHeight: i.individualHeight || c.value.height
|
|
1658
|
+
})), e = Qe.value.map((i) => ({
|
|
1659
|
+
name: i.name,
|
|
1660
|
+
color: i.color,
|
|
1661
|
+
scale: i.individualScale,
|
|
1662
|
+
scaleYLabels: i.scaleYLabels,
|
|
1663
1663
|
// FIX
|
|
1664
|
-
zero:
|
|
1665
|
-
max:
|
|
1666
|
-
scaleLabel:
|
|
1667
|
-
id:
|
|
1668
|
-
yOffset:
|
|
1669
|
-
individualHeight:
|
|
1670
|
-
})), n = k.value.useIndividualScale && !k.value.isStacked ? Object.values(
|
|
1671
|
-
return n.flatMap((
|
|
1672
|
-
let
|
|
1673
|
-
|
|
1674
|
-
const B = k.value.useIndividualScale && !k.value.isStacked ?
|
|
1664
|
+
zero: i.zeroPosition,
|
|
1665
|
+
max: i.individualMax,
|
|
1666
|
+
scaleLabel: i.scaleLabel || "",
|
|
1667
|
+
id: i.id,
|
|
1668
|
+
yOffset: i.yOffset || 0,
|
|
1669
|
+
individualHeight: i.individualHeight || c.value.height
|
|
1670
|
+
})), n = k.value.useIndividualScale && !k.value.isStacked ? Object.values(T.value) : [...l, ...s, ...e], a = n.flatMap((i) => i).length;
|
|
1671
|
+
return n.flatMap((i, o) => {
|
|
1672
|
+
let A = 0;
|
|
1673
|
+
A = k.value.isStacked ? c.value.left : c.value.left / a * (o + 1);
|
|
1674
|
+
const B = k.value.useIndividualScale && !k.value.isStacked ? i.unique ? i.name : i.groupName : i.name;
|
|
1675
1675
|
return {
|
|
1676
|
-
unique:
|
|
1677
|
-
id:
|
|
1678
|
-
groupId:
|
|
1679
|
-
scaleLabel:
|
|
1676
|
+
unique: i.unique,
|
|
1677
|
+
id: i.id,
|
|
1678
|
+
groupId: i.groupId,
|
|
1679
|
+
scaleLabel: i.scaleLabel,
|
|
1680
1680
|
name: Se(
|
|
1681
1681
|
t.value.chart.grid.labels.yAxis.serieNameFormatter,
|
|
1682
1682
|
B,
|
|
1683
1683
|
B,
|
|
1684
|
-
|
|
1684
|
+
i
|
|
1685
1685
|
),
|
|
1686
|
-
color: k.value.useIndividualScale && !k.value.isStacked ?
|
|
1687
|
-
scale:
|
|
1688
|
-
yOffset:
|
|
1689
|
-
individualHeight:
|
|
1690
|
-
x:
|
|
1691
|
-
yLabels:
|
|
1692
|
-
y: E >= 0 ?
|
|
1686
|
+
color: k.value.useIndividualScale && !k.value.isStacked ? i.unique ? i.color : i.groupColor : i.color,
|
|
1687
|
+
scale: i.scale,
|
|
1688
|
+
yOffset: i.yOffset,
|
|
1689
|
+
individualHeight: i.individualHeight,
|
|
1690
|
+
x: A,
|
|
1691
|
+
yLabels: i.scaleYLabels || i.scale.ticks.map((E) => ({
|
|
1692
|
+
y: E >= 0 ? i.zero - i.individualHeight * (E / i.max) : i.zero + i.individualHeight * Math.abs(E) / i.max,
|
|
1693
1693
|
value: E
|
|
1694
1694
|
}))
|
|
1695
1695
|
};
|
|
@@ -1698,47 +1698,47 @@ const Qo = {
|
|
|
1698
1698
|
const l = t.value.line.interLine || {}, s = l.pairs || [], e = l.colors || [];
|
|
1699
1699
|
if (!s.length) return [];
|
|
1700
1700
|
const n = [];
|
|
1701
|
-
return s.forEach((a,
|
|
1702
|
-
const [o,
|
|
1703
|
-
if (!o || !
|
|
1704
|
-
const B =
|
|
1701
|
+
return s.forEach((a, i) => {
|
|
1702
|
+
const [o, A] = Array.isArray(a) ? a : [a.a, a.b];
|
|
1703
|
+
if (!o || !A) return;
|
|
1704
|
+
const B = Te.value.find((w) => w.name === o), E = Te.value.find((w) => w.name === A);
|
|
1705
1705
|
if (!B || !E || B.type !== "line" || E.type !== "line") return;
|
|
1706
|
-
const M = e?.[
|
|
1707
|
-
|
|
1706
|
+
const M = e?.[i]?.[0] ?? B.color, O = e?.[i]?.[1] ?? E.color;
|
|
1707
|
+
Ho({
|
|
1708
1708
|
lineA: B.plots,
|
|
1709
1709
|
lineB: E.plots,
|
|
1710
1710
|
smoothA: !!B.smooth,
|
|
1711
1711
|
smoothB: !!E.smooth,
|
|
1712
1712
|
colorLineA: M,
|
|
1713
|
-
colorLineB:
|
|
1713
|
+
colorLineB: O,
|
|
1714
1714
|
sampleStepPx: 2,
|
|
1715
1715
|
cutNullValues: t.value.line.cutNullValues
|
|
1716
1716
|
}).forEach((w, N) => {
|
|
1717
|
-
n.push({ ...w, key: `inter_${o}_${
|
|
1717
|
+
n.push({ ...w, key: `inter_${o}_${A}_${i}_${N}` });
|
|
1718
1718
|
});
|
|
1719
1719
|
}), n;
|
|
1720
1720
|
}), Sa = x(() => ({
|
|
1721
1721
|
datapoint: bt.value,
|
|
1722
|
-
seriesIndex:
|
|
1722
|
+
seriesIndex: _.value,
|
|
1723
1723
|
series: rt.value,
|
|
1724
1724
|
bars: pt.value,
|
|
1725
|
-
lines:
|
|
1725
|
+
lines: Te.value,
|
|
1726
1726
|
plots: Qe.value,
|
|
1727
1727
|
config: t.value
|
|
1728
1728
|
})), Gl = x(() => {
|
|
1729
|
-
const l = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter, s =
|
|
1729
|
+
const l = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter, s = Ko({
|
|
1730
1730
|
useUTC: l.useUTC,
|
|
1731
|
-
locale:
|
|
1731
|
+
locale: Jo[l.locale] || { months: [], shortMonths: [], days: [], shortDays: [] },
|
|
1732
1732
|
januaryAsYear: l.januaryAsYear
|
|
1733
1733
|
});
|
|
1734
1734
|
return (e, n) => {
|
|
1735
|
-
const
|
|
1736
|
-
return
|
|
1735
|
+
const i = t.value.chart.grid.labels.xAxisLabels.values?.[e];
|
|
1736
|
+
return i == null ? "" : s.formatDate(new Date(i), n);
|
|
1737
1737
|
};
|
|
1738
1738
|
}), Ul = x(() => (t.value.chart.grid.labels.xAxisLabels.values || []).map((s, e) => ({
|
|
1739
1739
|
text: Gl.value(e, t.value.chart.zoom.timeFormat),
|
|
1740
1740
|
absoluteIndex: e
|
|
1741
|
-
}))), Cl =
|
|
1741
|
+
}))), Cl = b(!1), _a = x(() => {
|
|
1742
1742
|
let l = "", s = "";
|
|
1743
1743
|
if (t.value.chart.zoom.preview.enable)
|
|
1744
1744
|
return { left: l, right: s };
|
|
@@ -1765,74 +1765,74 @@ const Qo = {
|
|
|
1765
1765
|
s = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable ? Ul.value[n]?.text || "" : ke.value.at(-1)?.text || "";
|
|
1766
1766
|
}
|
|
1767
1767
|
return { left: l, right: s };
|
|
1768
|
-
}),
|
|
1769
|
-
let l = "", s = bt.value.map((a) => a.value).filter((a) =>
|
|
1770
|
-
const e = ke.value[
|
|
1771
|
-
if (Ol(n) &&
|
|
1772
|
-
absoluteIndex:
|
|
1773
|
-
seriesIndex:
|
|
1768
|
+
}), mo = x(() => {
|
|
1769
|
+
let l = "", s = bt.value.map((a) => a.value).filter((a) => Il(a) && a !== null).reduce((a, i) => Math.abs(a) + Math.abs(i), 0);
|
|
1770
|
+
const e = ke.value[_.value], n = t.value.chart.tooltip.customFormat;
|
|
1771
|
+
if (Ol(n) && Vo(() => n({
|
|
1772
|
+
absoluteIndex: _.value + y.value.start,
|
|
1773
|
+
seriesIndex: _.value,
|
|
1774
1774
|
datapoint: bt.value,
|
|
1775
1775
|
series: rt.value,
|
|
1776
1776
|
bars: pt.value,
|
|
1777
|
-
lines:
|
|
1777
|
+
lines: Te.value,
|
|
1778
1778
|
plots: Qe.value,
|
|
1779
1779
|
config: t.value
|
|
1780
1780
|
})))
|
|
1781
1781
|
return n({
|
|
1782
|
-
absoluteIndex:
|
|
1783
|
-
seriesIndex:
|
|
1782
|
+
absoluteIndex: _.value + y.value.start,
|
|
1783
|
+
seriesIndex: _.value,
|
|
1784
1784
|
datapoint: bt.value,
|
|
1785
1785
|
series: rt.value,
|
|
1786
1786
|
bars: pt.value,
|
|
1787
|
-
lines:
|
|
1787
|
+
lines: Te.value,
|
|
1788
1788
|
plots: Qe.value,
|
|
1789
1789
|
config: t.value
|
|
1790
1790
|
});
|
|
1791
1791
|
if (e && e.text && t.value.chart.tooltip.showTimeLabel) {
|
|
1792
|
-
const a = Gl.value(
|
|
1792
|
+
const a = Gl.value(_.value + y.value.start, t.value.chart.tooltip.timeFormat);
|
|
1793
1793
|
l += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${t.value.chart.tooltip.borderColor}; width:100%">${t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.tooltip.useDefaultTimeFormat ? a : e.text}</div>`;
|
|
1794
1794
|
}
|
|
1795
1795
|
return bt.value.forEach((a) => {
|
|
1796
|
-
if (
|
|
1797
|
-
let
|
|
1796
|
+
if (Il(a.value)) {
|
|
1797
|
+
let i = "", o = "";
|
|
1798
1798
|
switch (oe.value[a.type]) {
|
|
1799
1799
|
case "bar":
|
|
1800
|
-
|
|
1800
|
+
i = `<svg viewBox="0 0 40 40" height="14" width="14">${sl.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${a.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${sl.pattern ? `url(#pattern_${G.value}_${a.slotAbsoluteIndex}` : a.color}" /></svg>`;
|
|
1801
1801
|
break;
|
|
1802
1802
|
case "line":
|
|
1803
|
-
!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" />` : a.shape === "triangle" ? o = `<path d="${vt({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "square" ? o = `<path d="${vt({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "diamond" ? o = `<path d="${vt({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "pentagon" ? o = `<path d="${vt({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "hexagon" ? o = `<path d="${vt({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "star" && (o = `<polygon stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" points="${
|
|
1803
|
+
!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" />` : a.shape === "triangle" ? o = `<path d="${vt({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "square" ? o = `<path d="${vt({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "diamond" ? o = `<path d="${vt({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "pentagon" ? o = `<path d="${vt({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "hexagon" ? o = `<path d="${vt({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "star" && (o = `<polygon stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" points="${Da({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), i = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${a.color}" />${o}</svg>`;
|
|
1804
1804
|
break;
|
|
1805
1805
|
case "plot":
|
|
1806
1806
|
if (!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape)) {
|
|
1807
|
-
|
|
1807
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" /></svg>`;
|
|
1808
1808
|
break;
|
|
1809
1809
|
}
|
|
1810
1810
|
if (a.shape === "star") {
|
|
1811
|
-
|
|
1811
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" points="${Da({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
|
|
1812
1812
|
break;
|
|
1813
1813
|
}
|
|
1814
1814
|
if (a.shape === "triangle") {
|
|
1815
|
-
|
|
1815
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${vt({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1816
1816
|
break;
|
|
1817
1817
|
}
|
|
1818
1818
|
if (a.shape === "square") {
|
|
1819
|
-
|
|
1819
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${vt({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1820
1820
|
break;
|
|
1821
1821
|
}
|
|
1822
1822
|
if (a.shape === "diamond") {
|
|
1823
|
-
|
|
1823
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${vt({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1824
1824
|
break;
|
|
1825
1825
|
}
|
|
1826
1826
|
if (a.shape === "pentagon") {
|
|
1827
|
-
|
|
1827
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${vt({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1828
1828
|
break;
|
|
1829
1829
|
}
|
|
1830
1830
|
if (a.shape === "hexagon") {
|
|
1831
|
-
|
|
1831
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${vt({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1832
1832
|
break;
|
|
1833
1833
|
}
|
|
1834
1834
|
}
|
|
1835
|
-
l += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${
|
|
1835
|
+
l += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${i}</div> ${a.name}: <b>${t.value.chart.tooltip.showValue ? Se(
|
|
1836
1836
|
a.type === "line" ? t.value.line.labels.formatter : a.type === "bar" ? t.value.bar.labels.formatter : t.value.plot.labels.formatter,
|
|
1837
1837
|
a.value,
|
|
1838
1838
|
Ue({
|
|
@@ -1846,40 +1846,40 @@ const Qo = {
|
|
|
1846
1846
|
v: V(Math.abs(a.value) / s * 100),
|
|
1847
1847
|
s: "%",
|
|
1848
1848
|
r: t.value.chart.tooltip.roundingPercentage
|
|
1849
|
-
})})` : ""}</div>`, t.value.chart.comments.showInTooltip && a.comments.length && a.comments.slice(y.value.start, y.value.end)[
|
|
1849
|
+
})})` : ""}</div>`, t.value.chart.comments.showInTooltip && a.comments.length && a.comments.slice(y.value.start, y.value.end)[_.value] && (l += `<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${a.color}">${a.comments.slice(y.value.start, y.value.end)[_.value]}</div>`);
|
|
1850
1850
|
}
|
|
1851
1851
|
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${t.value.chart.tooltip.color}">${l}</div>`;
|
|
1852
|
-
}),
|
|
1852
|
+
}), $a = x(() => {
|
|
1853
1853
|
if (Je.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
1854
|
-
const l =
|
|
1854
|
+
const l = Xe.value.map((e) => ({
|
|
1855
1855
|
label: e.name,
|
|
1856
1856
|
color: e.color,
|
|
1857
1857
|
type: e.type
|
|
1858
1858
|
})), s = [];
|
|
1859
1859
|
return ke.value.forEach((e, n) => {
|
|
1860
1860
|
const a = [e.text];
|
|
1861
|
-
|
|
1862
|
-
a.push(Oe(
|
|
1861
|
+
Xe.value.forEach((i) => {
|
|
1862
|
+
a.push(Oe(i.absoluteValues[n]) ? Number(i.absoluteValues[n].toFixed(t.value.table.rounding)) : "");
|
|
1863
1863
|
}), s.push(a);
|
|
1864
1864
|
}), { head: l, body: s };
|
|
1865
1865
|
}), Al = x(() => {
|
|
1866
1866
|
const l = t.value.table.showSum;
|
|
1867
|
-
let s = [""].concat(
|
|
1867
|
+
let s = [""].concat(Xe.value.map((i) => i.name));
|
|
1868
1868
|
l && (s = s.concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'));
|
|
1869
1869
|
let e = [];
|
|
1870
|
-
for (let
|
|
1871
|
-
const o =
|
|
1870
|
+
for (let i = 0; i < I.value; i += 1) {
|
|
1871
|
+
const o = Xe.value.map((A) => A.absoluteValues[i] ?? 0).reduce((A, B) => A + B, 0);
|
|
1872
1872
|
e.push(
|
|
1873
1873
|
[
|
|
1874
|
-
ke.value[
|
|
1875
|
-
].concat(
|
|
1876
|
-
(
|
|
1877
|
-
|
|
1878
|
-
|
|
1874
|
+
ke.value[i].text ?? "-"
|
|
1875
|
+
].concat(Xe.value.map(
|
|
1876
|
+
(A) => Se(
|
|
1877
|
+
A.type === "line" ? t.value.line.labels.formatter : A.type === "bar" ? t.value.bar.labels.formatter : t.value.plot.labels.formatter,
|
|
1878
|
+
A.absoluteValues[i] ?? 0,
|
|
1879
1879
|
Ue({
|
|
1880
|
-
p:
|
|
1881
|
-
v:
|
|
1882
|
-
s:
|
|
1880
|
+
p: A.prefix || t.value.chart.labels.prefix,
|
|
1881
|
+
v: A.absoluteValues[i] ?? 0,
|
|
1882
|
+
s: A.suffix || t.value.chart.labels.suffix,
|
|
1883
1883
|
r: t.value.table.rounding
|
|
1884
1884
|
})
|
|
1885
1885
|
)
|
|
@@ -1898,22 +1898,22 @@ const Qo = {
|
|
|
1898
1898
|
outline: t.value.table.td.outline
|
|
1899
1899
|
},
|
|
1900
1900
|
breakpoint: t.value.table.responsiveBreakpoint
|
|
1901
|
-
}, a = [t.value.table.columnNames.period].concat(
|
|
1901
|
+
}, a = [t.value.table.columnNames.period].concat(Xe.value.map((i) => i.name)).concat(t.value.table.columnNames.total);
|
|
1902
1902
|
return { head: s, body: e, config: n, colNames: a };
|
|
1903
1903
|
});
|
|
1904
1904
|
function La(l = null) {
|
|
1905
|
-
const s = [[t.value.chart.title.text], [t.value.chart.title.subtitle.text], [""]], e = ["",
|
|
1906
|
-
l ? l(
|
|
1905
|
+
const s = [[t.value.chart.title.text], [t.value.chart.title.subtitle.text], [""]], e = ["", ...$a.value.head.map((o) => o.label)], n = $a.value.body, a = s.concat([e]).concat(n), i = Xo(a);
|
|
1906
|
+
l ? l(i) : Yo({ csvContent: i, title: t.value.chart.title.text || "vue-ui-xy" });
|
|
1907
1907
|
}
|
|
1908
1908
|
function Ma(l, s = null) {
|
|
1909
1909
|
ft.value = l;
|
|
1910
|
-
const e =
|
|
1910
|
+
const e = Xe.value.map((n) => ({
|
|
1911
1911
|
name: n.name,
|
|
1912
1912
|
value: [null, void 0, NaN].includes(n.absoluteValues[s]) ? null : n.absoluteValues[s],
|
|
1913
1913
|
color: n.color,
|
|
1914
1914
|
type: n.type
|
|
1915
1915
|
}));
|
|
1916
|
-
l ? (
|
|
1916
|
+
l ? (_.value = s, t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: e, seriesIndex: s + y.value.start })) : (_.value = null, t.value.events.datapointLeave && t.value.events.datapointLeave({ datapoint: e, seriesIndex: s + y.value.start }));
|
|
1917
1917
|
}
|
|
1918
1918
|
function Ca() {
|
|
1919
1919
|
k.value.showTable = !k.value.showTable;
|
|
@@ -1924,45 +1924,45 @@ const Qo = {
|
|
|
1924
1924
|
function za() {
|
|
1925
1925
|
k.value.showTooltip = !k.value.showTooltip;
|
|
1926
1926
|
}
|
|
1927
|
-
function
|
|
1928
|
-
ye.value = l,
|
|
1927
|
+
function Ta(l) {
|
|
1928
|
+
ye.value = l, Kt.value += 1;
|
|
1929
1929
|
}
|
|
1930
|
-
function
|
|
1930
|
+
function Ia() {
|
|
1931
1931
|
if (!t.value.responsiveProportionalSizing) {
|
|
1932
|
-
|
|
1932
|
+
$.value.dataLabels = t.value.chart.grid.labels.fontSize, $.value.yAxis = t.value.chart.grid.labels.axis.fontSize, $.value.xAxis = t.value.chart.grid.labels.xAxisLabels.fontSize, $.value.plotLabels = t.value.chart.labels.fontSize, Ae.value.plot = t.value.plot.radius, Ae.value.line = t.value.line.radius;
|
|
1933
1933
|
return;
|
|
1934
1934
|
}
|
|
1935
|
-
|
|
1935
|
+
$.value.dataLabels = ll({
|
|
1936
1936
|
relator: ge.value,
|
|
1937
1937
|
adjuster: 400,
|
|
1938
1938
|
source: t.value.chart.grid.labels.fontSize,
|
|
1939
1939
|
threshold: 10,
|
|
1940
1940
|
fallback: 10
|
|
1941
|
-
}),
|
|
1941
|
+
}), $.value.yAxis = ll({
|
|
1942
1942
|
relator: ae.value,
|
|
1943
1943
|
adjuster: 1e3,
|
|
1944
1944
|
source: t.value.chart.grid.labels.axis.fontSize,
|
|
1945
1945
|
threshold: 10,
|
|
1946
1946
|
fallback: 10
|
|
1947
|
-
}),
|
|
1947
|
+
}), $.value.xAxis = ll({
|
|
1948
1948
|
relator: ae.value,
|
|
1949
1949
|
adjuster: 1e3,
|
|
1950
1950
|
source: t.value.chart.grid.labels.xAxisLabels.fontSize,
|
|
1951
1951
|
threshold: 10,
|
|
1952
1952
|
fallback: 10
|
|
1953
|
-
}),
|
|
1953
|
+
}), $.value.plotLabels = ll({
|
|
1954
1954
|
relator: ae.value,
|
|
1955
1955
|
adjuster: 800,
|
|
1956
1956
|
source: t.value.chart.labels.fontSize,
|
|
1957
1957
|
threshold: 10,
|
|
1958
1958
|
fallback: 10
|
|
1959
|
-
}), Ae.value.plot =
|
|
1959
|
+
}), Ae.value.plot = ll({
|
|
1960
1960
|
relator: ae.value,
|
|
1961
1961
|
adjuster: 800,
|
|
1962
1962
|
source: t.value.plot.radius,
|
|
1963
1963
|
threshold: 1,
|
|
1964
1964
|
fallback: 1
|
|
1965
|
-
}), Ae.value.line =
|
|
1965
|
+
}), Ae.value.line = ll({
|
|
1966
1966
|
relator: ae.value,
|
|
1967
1967
|
adjuster: 800,
|
|
1968
1968
|
source: t.value.line.radius,
|
|
@@ -1970,8 +1970,8 @@ const Qo = {
|
|
|
1970
1970
|
fallback: 1
|
|
1971
1971
|
});
|
|
1972
1972
|
}
|
|
1973
|
-
function
|
|
1974
|
-
|
|
1973
|
+
function ql() {
|
|
1974
|
+
Xa(d.dataset) ? (Kl({
|
|
1975
1975
|
componentName: "VueUiXy",
|
|
1976
1976
|
type: "dataset",
|
|
1977
1977
|
debug: gt.value
|
|
@@ -1985,46 +1985,46 @@ const Qo = {
|
|
|
1985
1985
|
}), Ft.value = !0);
|
|
1986
1986
|
}), gt.value && d.dataset.forEach((s) => {
|
|
1987
1987
|
s.series.forEach((e, n) => {
|
|
1988
|
-
|
|
1988
|
+
Il(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
1989
1989
|
-----> The serie '${s.name}' contains the value '${e}' at index ${n}.
|
|
1990
1990
|
'${e}' was converted to null to allow the chart to display.`);
|
|
1991
1991
|
});
|
|
1992
|
-
}),
|
|
1992
|
+
}), Xa(d.dataset) || (Ft.value = t.value.loading), Jt.value = t.value.chart.userOptions.showOnChartHover, dl.value = t.value.chart.userOptions.keepStateOnChartLeave, Qt.value = !t.value.chart.userOptions.showOnChartHover, ml();
|
|
1993
1993
|
const l = 12;
|
|
1994
1994
|
if (t.value.responsive) {
|
|
1995
1995
|
const e = me.value.parentNode;
|
|
1996
|
-
|
|
1996
|
+
q.value && (q.value.unobserve(ot.value), q.value.disconnect());
|
|
1997
1997
|
const { height: n, width: a } = e.getBoundingClientRect();
|
|
1998
|
-
let
|
|
1999
|
-
t.value.chart.title.show && be.value && (
|
|
2000
|
-
let
|
|
2001
|
-
t.value.chart.zoom.show &&
|
|
1998
|
+
let i = null, o = 0;
|
|
1999
|
+
t.value.chart.title.show && be.value && (i = be.value, o = i.getBoundingClientRect().height);
|
|
2000
|
+
let A = null, B = 0;
|
|
2001
|
+
t.value.chart.zoom.show && $e.value > 6 && it.value && Ne.value && Ne.value.$el && (A = Ne.value.$el, B = A.getBoundingClientRect().height);
|
|
2002
2002
|
let E = null, M = 0;
|
|
2003
2003
|
t.value.chart.legend.show && at.value && (E = at.value, M = E.getBoundingClientRect().height);
|
|
2004
|
-
let
|
|
2005
|
-
|
|
2006
|
-
let
|
|
2007
|
-
Nt.value && (
|
|
2004
|
+
let O = 0;
|
|
2005
|
+
It.value && (O = It.value.getBoundingClientRect().height);
|
|
2006
|
+
let Z = 0;
|
|
2007
|
+
Nt.value && (Z = Nt.value.getBoundingClientRect().height), ge.value = n - o - M - B - O - Z - l, ae.value = a, nt.value = `0 0 ${ae.value < 0 ? 10 : ae.value} ${ge.value < 0 ? 10 : ge.value}`, Ia();
|
|
2008
2008
|
const w = new ResizeObserver((N) => {
|
|
2009
|
-
for (const
|
|
2010
|
-
t.value.chart.title.show && be.value ? o = be.value.getBoundingClientRect().height : o = 0, Ne.value && Ne.value.$el ? B = Ne.value.$el.getBoundingClientRect().height : B = 0, at.value ? M = at.value.getBoundingClientRect().height : M = 0,
|
|
2011
|
-
ge.value =
|
|
2009
|
+
for (const z of N)
|
|
2010
|
+
t.value.chart.title.show && be.value ? o = be.value.getBoundingClientRect().height : o = 0, Ne.value && Ne.value.$el ? B = Ne.value.$el.getBoundingClientRect().height : B = 0, at.value ? M = at.value.getBoundingClientRect().height : M = 0, It.value ? O = It.value.getBoundingClientRect().height : O = 0, Nt.value ? Z = Nt.value.getBoundingClientRect().height : Z = 0, requestAnimationFrame(() => {
|
|
2011
|
+
ge.value = z.contentRect.height - o - M - B - O - Z - l, ae.value = z.contentBoxSize[0].inlineSize, nt.value = `0 0 ${ae.value < 0 ? 10 : ae.value} ${ge.value < 0 ? 10 : ge.value}`, Ia();
|
|
2012
2012
|
});
|
|
2013
2013
|
});
|
|
2014
|
-
|
|
2014
|
+
q.value = w, ot.value = e, w.observe(e);
|
|
2015
2015
|
} else
|
|
2016
|
-
ge.value = t.value.chart.height, ae.value = t.value.chart.width,
|
|
2016
|
+
ge.value = t.value.chart.height, ae.value = t.value.chart.width, $.value.dataLabels = t.value.chart.grid.labels.fontSize, $.value.yAxis = t.value.chart.grid.labels.axis.fontSize, $.value.xAxis = t.value.chart.grid.labels.xAxisLabels.fontSize, $.value.plotLabels = t.value.chart.labels.fontSize, Ae.value.plot = t.value.plot.radius, Ae.value.line = t.value.line.radius, nt.value = `0 0 ${ae.value} ${ge.value}`;
|
|
2017
2017
|
}
|
|
2018
|
-
|
|
2019
|
-
|
|
2018
|
+
ol(() => {
|
|
2019
|
+
ql(), Sl(), document.addEventListener("mousemove", (l) => {
|
|
2020
2020
|
Pt.value = {
|
|
2021
2021
|
x: l.clientX,
|
|
2022
2022
|
y: l.clientY
|
|
2023
2023
|
};
|
|
2024
2024
|
}), document.addEventListener("scroll", la);
|
|
2025
|
-
}),
|
|
2026
|
-
document.removeEventListener("scroll", la),
|
|
2027
|
-
}),
|
|
2025
|
+
}), nl(() => {
|
|
2026
|
+
document.removeEventListener("scroll", la), q.value && (q.value.unobserve(ot.value), q.value.disconnect());
|
|
2027
|
+
}), Qo({
|
|
2028
2028
|
timeLabelsEls: ht,
|
|
2029
2029
|
timeLabels: ke,
|
|
2030
2030
|
slicer: y,
|
|
@@ -2036,9 +2036,44 @@ const Qo = {
|
|
|
2036
2036
|
width: ae,
|
|
2037
2037
|
rotation: t.value.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
2038
2038
|
});
|
|
2039
|
-
const zl =
|
|
2040
|
-
|
|
2041
|
-
|
|
2039
|
+
const zl = b(!1), Na = b(null), Ra = b(200), go = x(
|
|
2040
|
+
() => _.value ?? F.value ?? 0
|
|
2041
|
+
);
|
|
2042
|
+
function xo() {
|
|
2043
|
+
const l = Math.ceil(Ra.value || 200);
|
|
2044
|
+
return Math.min(Math.max(l, 1), 200);
|
|
2045
|
+
}
|
|
2046
|
+
function bo() {
|
|
2047
|
+
const l = xo(), s = 200, e = Math.max(1, I.value), n = c.value.width / e, i = c.value.left + go.value * n + n / 2 - l / 2 - (s - l) / 2, o = c.value.left - (s - l) / 2, A = c.value.right - (s + l) / 2, B = Math.max(o, Math.min(i, A));
|
|
2048
|
+
return V(B);
|
|
2049
|
+
}
|
|
2050
|
+
ol(() => {
|
|
2051
|
+
let l = null, s = null;
|
|
2052
|
+
const e = (i) => {
|
|
2053
|
+
cancelAnimationFrame(s), s = requestAnimationFrame(() => {
|
|
2054
|
+
Ra.value = Math.min(Math.max(Math.ceil(i || 0), 1), 200);
|
|
2055
|
+
});
|
|
2056
|
+
}, n = new ResizeObserver((i) => {
|
|
2057
|
+
let o = i.find((A) => A.target === l) || i[0];
|
|
2058
|
+
o && e(o.contentRect.width || 200);
|
|
2059
|
+
}), a = Ha((i) => {
|
|
2060
|
+
const o = Na.value;
|
|
2061
|
+
l && l !== o && (n.unobserve(l), l = null), o && o !== l && (Yt(() => {
|
|
2062
|
+
o.offsetParent !== null && e(o.offsetWidth || o.getBoundingClientRect().width || 200);
|
|
2063
|
+
}), n.observe(o), l = o), i(() => {
|
|
2064
|
+
l && (n.unobserve(l), l = null);
|
|
2065
|
+
});
|
|
2066
|
+
});
|
|
2067
|
+
nl(() => {
|
|
2068
|
+
try {
|
|
2069
|
+
l && n.unobserve(l), n.disconnect(), a();
|
|
2070
|
+
} catch {
|
|
2071
|
+
}
|
|
2072
|
+
});
|
|
2073
|
+
});
|
|
2074
|
+
const po = x(() => {
|
|
2075
|
+
if ([null, void 0].includes(_.value) && [null, void 0].includes(F.value)) return "";
|
|
2076
|
+
const l = (_.value != null ? _.value : 0) || (F.value != null ? F.value : 0), s = t.value.chart.timeTag.customFormat;
|
|
2042
2077
|
if (zl.value = !1, Ol(s))
|
|
2043
2078
|
try {
|
|
2044
2079
|
const e = s({
|
|
@@ -2046,7 +2081,7 @@ const Qo = {
|
|
|
2046
2081
|
seriesIndex: l,
|
|
2047
2082
|
datapoint: bt.value,
|
|
2048
2083
|
bars: pt.value,
|
|
2049
|
-
lines:
|
|
2084
|
+
lines: Te.value,
|
|
2050
2085
|
plots: Qe.value,
|
|
2051
2086
|
config: t.value
|
|
2052
2087
|
});
|
|
@@ -2059,37 +2094,37 @@ const Qo = {
|
|
|
2059
2094
|
return [null, void 0].includes(ke.value[l]) ? "" : t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.timeTag.useDefaultFormat ? Gl.value(l + y.value.start, t.value.chart.timeTag.timeFormat) : ke.value[l].text;
|
|
2060
2095
|
});
|
|
2061
2096
|
dt(() => d.dataset, (l) => {
|
|
2062
|
-
Array.isArray(l) && l.length > 0 && (Ft.value = !1),
|
|
2097
|
+
Array.isArray(l) && l.length > 0 && (Ft.value = !1), $e.value = Math.max(...ue.value.map((s) => je({
|
|
2063
2098
|
data: s.series,
|
|
2064
2099
|
threshold: t.value.downsample.threshold
|
|
2065
2100
|
}).length)), y.value = {
|
|
2066
2101
|
start: 0,
|
|
2067
|
-
end:
|
|
2102
|
+
end: $e.value
|
|
2068
2103
|
}, Zt.value += 1, Ot.value += 1, xt();
|
|
2069
2104
|
}, { deep: !0 }), dt(() => d.config, (l) => {
|
|
2070
|
-
ne.value || (t.value = st()),
|
|
2105
|
+
ne.value || (t.value = st()), ql(), vl.value += 1, cl.value += 1, ml(), xt();
|
|
2071
2106
|
}, { deep: !0 });
|
|
2072
|
-
const
|
|
2073
|
-
function
|
|
2107
|
+
const Zl = b(!1);
|
|
2108
|
+
function Pa() {
|
|
2074
2109
|
const l = me.value?.parentNode;
|
|
2075
2110
|
if (!l) {
|
|
2076
|
-
|
|
2111
|
+
Zl.value = !1;
|
|
2077
2112
|
return;
|
|
2078
2113
|
}
|
|
2079
2114
|
const s = l.getBoundingClientRect();
|
|
2080
|
-
|
|
2115
|
+
Zl.value = s.width > 2 && s.height > 2;
|
|
2081
2116
|
}
|
|
2082
|
-
return
|
|
2083
|
-
|
|
2117
|
+
return ol(() => {
|
|
2118
|
+
Pa();
|
|
2084
2119
|
const l = new ResizeObserver(() => {
|
|
2085
|
-
|
|
2120
|
+
Pa(), Zl.value && (ql(), xt(), Sl());
|
|
2086
2121
|
});
|
|
2087
2122
|
me.value?.parentNode && l.observe(me.value.parentNode);
|
|
2088
2123
|
}), dt(t, () => {
|
|
2089
|
-
|
|
2124
|
+
ml();
|
|
2090
2125
|
}, { immediate: !0 }), Vl({
|
|
2091
|
-
getData:
|
|
2092
|
-
getImage:
|
|
2126
|
+
getData: no,
|
|
2127
|
+
getImage: uo,
|
|
2093
2128
|
generatePdf: S,
|
|
2094
2129
|
generateImage: U,
|
|
2095
2130
|
generateCsv: La,
|
|
@@ -2097,9 +2132,9 @@ const Qo = {
|
|
|
2097
2132
|
toggleTable: Ca,
|
|
2098
2133
|
toggleLabels: Aa,
|
|
2099
2134
|
toggleTooltip: za,
|
|
2100
|
-
toggleAnnotator:
|
|
2101
|
-
toggleFullscreen:
|
|
2102
|
-
}), (l, s) => (u(),
|
|
2135
|
+
toggleAnnotator: Dl,
|
|
2136
|
+
toggleFullscreen: Ta
|
|
2137
|
+
}), (l, s) => (u(), r("div", {
|
|
2103
2138
|
id: `vue-ui-xy_${G.value}`,
|
|
2104
2139
|
class: Ve(`vue-ui-xy ${ye.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
2105
2140
|
ref_key: "chart",
|
|
@@ -2108,30 +2143,30 @@ const Qo = {
|
|
|
2108
2143
|
onMouseenter: s[10] || (s[10] = () => oa(!0)),
|
|
2109
2144
|
onMouseleave: s[11] || (s[11] = () => oa(!1))
|
|
2110
2145
|
}, [
|
|
2111
|
-
t.value.chart.userOptions.buttons.annotator &&
|
|
2146
|
+
t.value.chart.userOptions.buttons.annotator && _e.value ? (u(), Ge(v(yt), {
|
|
2112
2147
|
key: 0,
|
|
2113
|
-
svgRef:
|
|
2148
|
+
svgRef: _e.value,
|
|
2114
2149
|
backgroundColor: t.value.chart.backgroundColor,
|
|
2115
2150
|
color: t.value.chart.color,
|
|
2116
2151
|
active: pe.value,
|
|
2117
|
-
onClose:
|
|
2152
|
+
onClose: Dl
|
|
2118
2153
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
|
|
2119
|
-
|
|
2154
|
+
io.value ? (u(), r("div", {
|
|
2120
2155
|
key: 1,
|
|
2121
2156
|
ref_key: "noTitle",
|
|
2122
2157
|
ref: Nt,
|
|
2123
2158
|
class: "vue-data-ui-no-title-space",
|
|
2124
2159
|
style: "height:36px; width: 100%; background:transparent"
|
|
2125
2160
|
}, null, 512)) : f("", !0),
|
|
2126
|
-
t.value.chart.title.show ? (u(),
|
|
2161
|
+
t.value.chart.title.show ? (u(), r("div", {
|
|
2127
2162
|
key: 2,
|
|
2128
2163
|
ref_key: "chartTitle",
|
|
2129
2164
|
ref: be,
|
|
2130
2165
|
class: "vue-ui-xy-title",
|
|
2131
2166
|
style: L(`font-family:${t.value.chart.fontFamily}`)
|
|
2132
2167
|
}, [
|
|
2133
|
-
(u(), Ge(
|
|
2134
|
-
key: `title_${
|
|
2168
|
+
(u(), Ge(en, {
|
|
2169
|
+
key: `title_${vl.value}`,
|
|
2135
2170
|
config: {
|
|
2136
2171
|
title: {
|
|
2137
2172
|
cy: "xy-div-title",
|
|
@@ -2144,12 +2179,12 @@ const Qo = {
|
|
|
2144
2179
|
}
|
|
2145
2180
|
}, null, 8, ["config"]))
|
|
2146
2181
|
], 4)) : f("", !0),
|
|
2147
|
-
|
|
2182
|
+
p("div", {
|
|
2148
2183
|
id: `legend-top-${G.value}`
|
|
2149
|
-
}, null, 8,
|
|
2150
|
-
t.value.chart.userOptions.show && (
|
|
2184
|
+
}, null, 8, Ln),
|
|
2185
|
+
t.value.chart.userOptions.show && (dl.value || Qt.value) ? (u(), Ge(v(re), {
|
|
2151
2186
|
ref: "defails",
|
|
2152
|
-
key: `user_options_${
|
|
2187
|
+
key: `user_options_${Kt.value}`,
|
|
2153
2188
|
backgroundColor: t.value.chart.backgroundColor,
|
|
2154
2189
|
color: t.value.chart.color,
|
|
2155
2190
|
isPrinting: v(m),
|
|
@@ -2173,7 +2208,7 @@ const Qo = {
|
|
|
2173
2208
|
isAnnotation: pe.value,
|
|
2174
2209
|
callbacks: t.value.chart.userOptions.callbacks,
|
|
2175
2210
|
printScale: t.value.chart.userOptions.print.scale,
|
|
2176
|
-
onToggleFullscreen:
|
|
2211
|
+
onToggleFullscreen: Ta,
|
|
2177
2212
|
onGeneratePdf: v(S),
|
|
2178
2213
|
onGenerateCsv: La,
|
|
2179
2214
|
onGenerateImage: v(U),
|
|
@@ -2181,11 +2216,11 @@ const Qo = {
|
|
|
2181
2216
|
onToggleLabels: Aa,
|
|
2182
2217
|
onToggleStack: ia,
|
|
2183
2218
|
onToggleTooltip: za,
|
|
2184
|
-
onToggleAnnotator:
|
|
2219
|
+
onToggleAnnotator: Dl,
|
|
2185
2220
|
style: L({
|
|
2186
|
-
visibility:
|
|
2221
|
+
visibility: dl.value ? Qt.value ? "visible" : "hidden" : "visible"
|
|
2187
2222
|
})
|
|
2188
|
-
},
|
|
2223
|
+
}, Lo({ _: 2 }, [
|
|
2189
2224
|
l.$slots.menuIcon ? {
|
|
2190
2225
|
name: "menuIcon",
|
|
2191
2226
|
fn: xe(({ isOpen: e, color: n }) => [
|
|
@@ -2257,9 +2292,9 @@ const Qo = {
|
|
|
2257
2292
|
key: "9"
|
|
2258
2293
|
} : void 0
|
|
2259
2294
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
|
|
2260
|
-
(u(),
|
|
2295
|
+
(u(), r("svg", {
|
|
2261
2296
|
ref_key: "svgRef",
|
|
2262
|
-
ref:
|
|
2297
|
+
ref: _e,
|
|
2263
2298
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2264
2299
|
class: Ve([{ "vue-data-ui-fullscreen--on": ye.value, "vue-data-ui-fulscreen--off": !ye.value }, "vue-ui-xy-svg vue-data-ui-svg"]),
|
|
2265
2300
|
width: "100%",
|
|
@@ -2269,21 +2304,21 @@ const Qo = {
|
|
|
2269
2304
|
color: t.value.chart.color,
|
|
2270
2305
|
fontFamily: t.value.chart.fontFamily
|
|
2271
2306
|
}),
|
|
2272
|
-
"aria-label":
|
|
2307
|
+
"aria-label": so.value,
|
|
2273
2308
|
role: "img",
|
|
2274
2309
|
"aria-live": "polite",
|
|
2275
2310
|
preserveAspectRatio: "xMidYMid",
|
|
2276
|
-
onMousemove:
|
|
2311
|
+
onMousemove: lo,
|
|
2277
2312
|
onMouseleave: ma,
|
|
2278
|
-
onClick:
|
|
2313
|
+
onClick: ao
|
|
2279
2314
|
}, [
|
|
2280
|
-
|
|
2315
|
+
p("g", {
|
|
2281
2316
|
ref_key: "G",
|
|
2282
2317
|
ref: El,
|
|
2283
2318
|
class: "vue-data-ui-g"
|
|
2284
2319
|
}, [
|
|
2285
|
-
|
|
2286
|
-
l.$slots["chart-background"] ? (u(),
|
|
2320
|
+
al(v(Ut)),
|
|
2321
|
+
l.$slots["chart-background"] ? (u(), r("foreignObject", {
|
|
2287
2322
|
key: 0,
|
|
2288
2323
|
x: c.value.left + Q.value < 0 ? 0 : c.value.left + Q.value,
|
|
2289
2324
|
y: c.value.top,
|
|
@@ -2294,128 +2329,128 @@ const Qo = {
|
|
|
2294
2329
|
}
|
|
2295
2330
|
}, [
|
|
2296
2331
|
J(l.$slots, "chart-background", {}, void 0, !0)
|
|
2297
|
-
], 8,
|
|
2298
|
-
I.value > 0 ? (u(),
|
|
2299
|
-
|
|
2300
|
-
t.value.chart.grid.labels.xAxis.showBaseline ? (u(),
|
|
2332
|
+
], 8, Cn)) : f("", !0),
|
|
2333
|
+
I.value > 0 ? (u(), r("g", An, [
|
|
2334
|
+
p("g", zn, [
|
|
2335
|
+
t.value.chart.grid.labels.xAxis.showBaseline ? (u(), r("line", {
|
|
2301
2336
|
key: 0,
|
|
2302
2337
|
stroke: t.value.chart.grid.stroke,
|
|
2303
2338
|
"stroke-width": "1",
|
|
2304
2339
|
x1: c.value.left + Q.value,
|
|
2305
2340
|
x2: c.value.right - Q.value,
|
|
2306
|
-
y1: v(
|
|
2307
|
-
y2: v(
|
|
2341
|
+
y1: v(Y)(c.value.bottom),
|
|
2342
|
+
y2: v(Y)(c.value.bottom),
|
|
2308
2343
|
"stroke-linecap": "round",
|
|
2309
2344
|
style: { animation: "none !important" }
|
|
2310
|
-
}, null, 8,
|
|
2311
|
-
k.value.useIndividualScale ? t.value.chart.grid.showHorizontalLines ? (u(!0),
|
|
2312
|
-
e.id === P.value && e.yLabels.length ? (u(!0),
|
|
2345
|
+
}, null, 8, Tn)) : f("", !0),
|
|
2346
|
+
k.value.useIndividualScale ? t.value.chart.grid.showHorizontalLines ? (u(!0), r(g, { key: 2 }, C(xl.value, (e) => (u(), r("g", null, [
|
|
2347
|
+
e.id === P.value && e.yLabels.length ? (u(!0), r(g, { key: 0 }, C(e.yLabels, (n) => (u(), r("line", {
|
|
2313
2348
|
x1: c.value.left + Q.value,
|
|
2314
2349
|
x2: c.value.right - Q.value,
|
|
2315
|
-
y1: v(
|
|
2316
|
-
y2: v(
|
|
2350
|
+
y1: v(Y)(n.y),
|
|
2351
|
+
y2: v(Y)(n.y),
|
|
2317
2352
|
stroke: e.color,
|
|
2318
2353
|
"stroke-width": 0.5,
|
|
2319
2354
|
"stroke-linecap": "round",
|
|
2320
2355
|
style: { animation: "none !important" }
|
|
2321
|
-
}, null, 8,
|
|
2356
|
+
}, null, 8, Pn))), 256)) : e.yLabels.length ? (u(!0), r(g, { key: 1 }, C(e.yLabels, (n) => (u(), r("line", {
|
|
2322
2357
|
x1: c.value.left + Q.value,
|
|
2323
2358
|
x2: c.value.right - Q.value,
|
|
2324
|
-
y1: v(
|
|
2325
|
-
y2: v(
|
|
2359
|
+
y1: v(Y)(n.y),
|
|
2360
|
+
y2: v(Y)(n.y),
|
|
2326
2361
|
stroke: t.value.chart.grid.stroke,
|
|
2327
2362
|
"stroke-width": 0.5,
|
|
2328
2363
|
"stroke-linecap": "round",
|
|
2329
2364
|
style: { animation: "none !important" }
|
|
2330
|
-
}, null, 8,
|
|
2331
|
-
]))), 256)) : f("", !0) : (u(),
|
|
2332
|
-
t.value.chart.grid.labels.yAxis.showBaseline ? (u(),
|
|
2365
|
+
}, null, 8, On))), 256)) : f("", !0)
|
|
2366
|
+
]))), 256)) : f("", !0) : (u(), r(g, { key: 1 }, [
|
|
2367
|
+
t.value.chart.grid.labels.yAxis.showBaseline ? (u(), r("line", {
|
|
2333
2368
|
key: 0,
|
|
2334
2369
|
stroke: t.value.chart.grid.stroke,
|
|
2335
2370
|
"stroke-width": "1",
|
|
2336
2371
|
x1: c.value.left + Q.value,
|
|
2337
2372
|
x2: c.value.left + Q.value,
|
|
2338
|
-
y1: v(
|
|
2339
|
-
y2: v(
|
|
2373
|
+
y1: v(Y)(c.value.top),
|
|
2374
|
+
y2: v(Y)(c.value.bottom),
|
|
2340
2375
|
"stroke-linecap": "round",
|
|
2341
2376
|
style: { animation: "none !important" }
|
|
2342
|
-
}, null, 8,
|
|
2343
|
-
t.value.chart.grid.showHorizontalLines ? (u(),
|
|
2344
|
-
(u(!0),
|
|
2377
|
+
}, null, 8, In)) : f("", !0),
|
|
2378
|
+
t.value.chart.grid.showHorizontalLines ? (u(), r("g", Nn, [
|
|
2379
|
+
(u(!0), r(g, null, C(pa.value, (e) => (u(), r("line", {
|
|
2345
2380
|
x1: c.value.left + Q.value,
|
|
2346
2381
|
x2: c.value.right,
|
|
2347
|
-
y1: v(
|
|
2348
|
-
y2: v(
|
|
2382
|
+
y1: v(Y)(e.y),
|
|
2383
|
+
y2: v(Y)(e.y),
|
|
2349
2384
|
stroke: t.value.chart.grid.stroke,
|
|
2350
2385
|
"stroke-width": 0.5,
|
|
2351
2386
|
"stroke-linecap": "round",
|
|
2352
2387
|
style: { animation: "none !important" }
|
|
2353
|
-
}, null, 8,
|
|
2388
|
+
}, null, 8, Rn))), 256))
|
|
2354
2389
|
])) : f("", !0)
|
|
2355
2390
|
], 64)),
|
|
2356
|
-
t.value.chart.grid.showVerticalLines ? (u(),
|
|
2357
|
-
|
|
2358
|
-
d:
|
|
2391
|
+
t.value.chart.grid.showVerticalLines ? (u(), r("g", Fn, [
|
|
2392
|
+
p("path", {
|
|
2393
|
+
d: Ka.value,
|
|
2359
2394
|
"stroke-width": 0.5,
|
|
2360
2395
|
stroke: t.value.chart.grid.stroke,
|
|
2361
2396
|
"stroke-linecap": "round",
|
|
2362
2397
|
style: { animation: "none !important" }
|
|
2363
|
-
}, null, 8,
|
|
2398
|
+
}, null, 8, Hn)
|
|
2364
2399
|
])) : f("", !0),
|
|
2365
|
-
t.value.chart.grid.labels.xAxisLabels.show ? (u(),
|
|
2366
|
-
|
|
2367
|
-
d:
|
|
2400
|
+
t.value.chart.grid.labels.xAxisLabels.show ? (u(), r("g", Vn, [
|
|
2401
|
+
p("path", {
|
|
2402
|
+
d: Ja.value,
|
|
2368
2403
|
stroke: t.value.chart.grid.stroke,
|
|
2369
2404
|
"stroke-width": 1,
|
|
2370
2405
|
"stroke-linecap": "round",
|
|
2371
2406
|
style: { animation: "none !important" }
|
|
2372
|
-
}, null, 8,
|
|
2407
|
+
}, null, 8, Bn)
|
|
2373
2408
|
])) : f("", !0)
|
|
2374
2409
|
]),
|
|
2375
|
-
(u(!0),
|
|
2410
|
+
(u(!0), r(g, null, C(pt.value, (e, n) => (u(), r("defs", {
|
|
2376
2411
|
key: `def_rect_${n}`
|
|
2377
2412
|
}, [
|
|
2378
|
-
|
|
2413
|
+
p("linearGradient", {
|
|
2379
2414
|
id: `rectGradient_pos_${n}_${G.value}`,
|
|
2380
2415
|
x2: "0%",
|
|
2381
2416
|
y2: "100%"
|
|
2382
2417
|
}, [
|
|
2383
|
-
|
|
2418
|
+
p("stop", {
|
|
2384
2419
|
offset: "0%",
|
|
2385
2420
|
"stop-color": e.color
|
|
2386
|
-
}, null, 8,
|
|
2387
|
-
|
|
2421
|
+
}, null, 8, Wn),
|
|
2422
|
+
p("stop", {
|
|
2388
2423
|
offset: "62%",
|
|
2389
|
-
"stop-color": `${v(
|
|
2390
|
-
}, null, 8,
|
|
2391
|
-
|
|
2424
|
+
"stop-color": `${v(Xt)(e.color, 0.02)}`
|
|
2425
|
+
}, null, 8, Dn),
|
|
2426
|
+
p("stop", {
|
|
2392
2427
|
offset: "100%",
|
|
2393
|
-
"stop-color": `${v(
|
|
2394
|
-
}, null, 8,
|
|
2395
|
-
], 8,
|
|
2396
|
-
|
|
2428
|
+
"stop-color": `${v(Xt)(e.color, 0.05)}`
|
|
2429
|
+
}, null, 8, Xn)
|
|
2430
|
+
], 8, En),
|
|
2431
|
+
p("linearGradient", {
|
|
2397
2432
|
id: `rectGradient_neg_${n}_${G.value}`,
|
|
2398
2433
|
x2: "0%",
|
|
2399
2434
|
y2: "100%"
|
|
2400
2435
|
}, [
|
|
2401
|
-
|
|
2436
|
+
p("stop", {
|
|
2402
2437
|
offset: "0%",
|
|
2403
|
-
"stop-color": `${v(
|
|
2404
|
-
}, null, 8,
|
|
2405
|
-
|
|
2438
|
+
"stop-color": `${v(Xt)(e.color, 0.05)}`
|
|
2439
|
+
}, null, 8, Gn),
|
|
2440
|
+
p("stop", {
|
|
2406
2441
|
offset: "38%",
|
|
2407
|
-
"stop-color": `${v(
|
|
2408
|
-
}, null, 8,
|
|
2409
|
-
|
|
2442
|
+
"stop-color": `${v(Xt)(e.color, 0.02)}`
|
|
2443
|
+
}, null, 8, Un),
|
|
2444
|
+
p("stop", {
|
|
2410
2445
|
offset: "100%",
|
|
2411
2446
|
"stop-color": e.color
|
|
2412
|
-
}, null, 8,
|
|
2413
|
-
], 8,
|
|
2447
|
+
}, null, 8, qn)
|
|
2448
|
+
], 8, Yn)
|
|
2414
2449
|
]))), 128)),
|
|
2415
|
-
(u(!0),
|
|
2450
|
+
(u(!0), r(g, null, C(Qe.value, (e, n) => (u(), r("defs", {
|
|
2416
2451
|
key: `def_plot_${n}`
|
|
2417
2452
|
}, [
|
|
2418
|
-
|
|
2453
|
+
p("radialGradient", {
|
|
2419
2454
|
id: `plotGradient_${n}_${G.value}`,
|
|
2420
2455
|
cx: "50%",
|
|
2421
2456
|
cy: "50%",
|
|
@@ -2423,20 +2458,20 @@ const Qo = {
|
|
|
2423
2458
|
fx: "50%",
|
|
2424
2459
|
fy: "50%"
|
|
2425
2460
|
}, [
|
|
2426
|
-
|
|
2461
|
+
p("stop", {
|
|
2427
2462
|
offset: "0%",
|
|
2428
|
-
"stop-color": `${v(
|
|
2429
|
-
}, null, 8,
|
|
2430
|
-
|
|
2463
|
+
"stop-color": `${v(Xt)(e.color, 0.05)}`
|
|
2464
|
+
}, null, 8, Kn),
|
|
2465
|
+
p("stop", {
|
|
2431
2466
|
offset: "100%",
|
|
2432
2467
|
"stop-color": e.color
|
|
2433
|
-
}, null, 8,
|
|
2434
|
-
], 8,
|
|
2468
|
+
}, null, 8, Jn)
|
|
2469
|
+
], 8, Zn)
|
|
2435
2470
|
]))), 128)),
|
|
2436
|
-
(u(!0),
|
|
2471
|
+
(u(!0), r(g, null, C(Te.value, (e, n) => (u(), r("defs", {
|
|
2437
2472
|
key: `def_line_${n}`
|
|
2438
2473
|
}, [
|
|
2439
|
-
|
|
2474
|
+
p("radialGradient", {
|
|
2440
2475
|
id: `lineGradient_${n}_${G.value}`,
|
|
2441
2476
|
cx: "50%",
|
|
2442
2477
|
cy: "50%",
|
|
@@ -2444,36 +2479,36 @@ const Qo = {
|
|
|
2444
2479
|
fx: "50%",
|
|
2445
2480
|
fy: "50%"
|
|
2446
2481
|
}, [
|
|
2447
|
-
|
|
2482
|
+
p("stop", {
|
|
2448
2483
|
offset: "0%",
|
|
2449
|
-
"stop-color": `${v(
|
|
2450
|
-
}, null, 8,
|
|
2451
|
-
|
|
2484
|
+
"stop-color": `${v(Xt)(e.color, 0.05)}`
|
|
2485
|
+
}, null, 8, jn),
|
|
2486
|
+
p("stop", {
|
|
2452
2487
|
offset: "100%",
|
|
2453
2488
|
"stop-color": e.color
|
|
2454
|
-
}, null, 8,
|
|
2455
|
-
], 8,
|
|
2456
|
-
|
|
2489
|
+
}, null, 8, eu)
|
|
2490
|
+
], 8, Qn),
|
|
2491
|
+
p("linearGradient", {
|
|
2457
2492
|
id: `areaGradient_${n}_${G.value}`,
|
|
2458
2493
|
x1: "0%",
|
|
2459
2494
|
x2: "100%",
|
|
2460
2495
|
y1: "0%",
|
|
2461
2496
|
y2: "0%"
|
|
2462
2497
|
}, [
|
|
2463
|
-
|
|
2498
|
+
p("stop", {
|
|
2464
2499
|
offset: "0%",
|
|
2465
|
-
"stop-color": `${v(et)(v(
|
|
2466
|
-
}, null, 8,
|
|
2467
|
-
|
|
2500
|
+
"stop-color": `${v(et)(v(Xt)(e.color, 0.03), t.value.line.area.opacity)}`
|
|
2501
|
+
}, null, 8, lu),
|
|
2502
|
+
p("stop", {
|
|
2468
2503
|
offset: "100%",
|
|
2469
2504
|
"stop-color": `${v(et)(e.color, t.value.line.area.opacity)}`
|
|
2470
|
-
}, null, 8,
|
|
2471
|
-
], 8,
|
|
2505
|
+
}, null, 8, au)
|
|
2506
|
+
], 8, tu)
|
|
2472
2507
|
]))), 128)),
|
|
2473
|
-
(u(!0),
|
|
2474
|
-
e.show ? (u(),
|
|
2475
|
-
(u(!0),
|
|
2476
|
-
|
|
2508
|
+
(u(!0), r(g, null, C(ro.value, (e) => (u(), r("g", null, [
|
|
2509
|
+
e.show ? (u(), r(g, { key: 0 }, [
|
|
2510
|
+
(u(!0), r(g, null, C(e.span, (n, a) => (u(), r("g", null, [
|
|
2511
|
+
p("rect", {
|
|
2477
2512
|
style: L({
|
|
2478
2513
|
transition: "none",
|
|
2479
2514
|
opacity: e.from + a >= y.value.start && e.from + a <= y.value.end - 1 ? 1 : 0
|
|
@@ -2483,10 +2518,10 @@ const Qo = {
|
|
|
2483
2518
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
2484
2519
|
width: c.value.width / I.value < 0 ? 1e-5 : c.value.width / I.value,
|
|
2485
2520
|
fill: v(et)(e.color, e.opacity)
|
|
2486
|
-
}, null, 12,
|
|
2521
|
+
}, null, 12, ou)
|
|
2487
2522
|
]))), 256)),
|
|
2488
|
-
(u(!0),
|
|
2489
|
-
e.caption.text && a === 0 ? (u(),
|
|
2523
|
+
(u(!0), r(g, null, C(e.span, (n, a) => (u(), r("g", null, [
|
|
2524
|
+
e.caption.text && a === 0 ? (u(), r("foreignObject", {
|
|
2490
2525
|
key: 0,
|
|
2491
2526
|
x: c.value.left + c.value.width / I.value * (e.from + a - y.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - c.value.width / I.value * e.span / 2),
|
|
2492
2527
|
y: c.value.top + e.caption.offsetY,
|
|
@@ -2497,38 +2532,38 @@ const Qo = {
|
|
|
2497
2532
|
height: "1",
|
|
2498
2533
|
width: e.caption.width === "auto" ? c.value.width / I.value * e.span : e.caption.width
|
|
2499
2534
|
}, [
|
|
2500
|
-
|
|
2535
|
+
p("div", {
|
|
2501
2536
|
style: L(`padding:${e.caption.padding}px;text-align:${e.caption.textAlign};font-size:${e.caption.fontSize}px;color:${e.caption.color};font-weight:${e.caption.bold ? "bold" : "normal"}`)
|
|
2502
2537
|
}, le(e.caption.text), 5)
|
|
2503
|
-
], 12,
|
|
2538
|
+
], 12, nu)) : f("", !0)
|
|
2504
2539
|
]))), 256))
|
|
2505
2540
|
], 64)) : f("", !0)
|
|
2506
2541
|
]))), 256)),
|
|
2507
|
-
aa.value ? (u(),
|
|
2508
|
-
(u(!0),
|
|
2542
|
+
aa.value ? (u(), r("g", uu, [
|
|
2543
|
+
(u(!0), r(g, null, C(I.value, (e, n) => (u(), r("g", {
|
|
2509
2544
|
key: `tooltip_trap_highlighter_${n}`
|
|
2510
2545
|
}, [
|
|
2511
|
-
|
|
2546
|
+
p("rect", {
|
|
2512
2547
|
x: c.value.left + c.value.width / I.value * n,
|
|
2513
2548
|
y: c.value.top,
|
|
2514
2549
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
2515
2550
|
width: c.value.width / I.value < 0 ? 1e-5 : c.value.width / I.value,
|
|
2516
|
-
fill: [
|
|
2551
|
+
fill: [F.value, _.value, mt.value].includes(n) ? v(et)(t.value.chart.highlighter.color, t.value.chart.highlighter.opacity) : "transparent",
|
|
2517
2552
|
style: { transition: "none !important", animation: "none !important" }
|
|
2518
|
-
}, null, 8,
|
|
2553
|
+
}, null, 8, su)
|
|
2519
2554
|
]))), 128))
|
|
2520
2555
|
])) : f("", !0),
|
|
2521
|
-
pt.value.length ? (u(!0),
|
|
2556
|
+
pt.value.length ? (u(!0), r(g, { key: 1 }, C(pt.value, (e, n) => (u(), r("g", {
|
|
2522
2557
|
key: `serie_bar_${n}`,
|
|
2523
2558
|
class: Ve(`serie_bar_${n}`),
|
|
2524
2559
|
style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2525
2560
|
}, [
|
|
2526
|
-
(u(!0),
|
|
2527
|
-
key: `bar_plot_${n}_${
|
|
2561
|
+
(u(!0), r(g, null, C(e.plots, (a, i) => (u(), r("g", {
|
|
2562
|
+
key: `bar_plot_${n}_${i}`
|
|
2528
2563
|
}, [
|
|
2529
|
-
Oe(a.value) ? (u(),
|
|
2564
|
+
Oe(a.value) ? (u(), r("rect", {
|
|
2530
2565
|
key: 0,
|
|
2531
|
-
x:
|
|
2566
|
+
x: _l(a) + Ml.value / 2,
|
|
2532
2567
|
y: k.value.useIndividualScale ? fa(a) : ha(a),
|
|
2533
2568
|
height: k.value.useIndividualScale ? Math.abs(da(a)) : Math.abs(va(a)),
|
|
2534
2569
|
width: Ll.value - Ml.value,
|
|
@@ -2537,10 +2572,10 @@ const Qo = {
|
|
|
2537
2572
|
stroke: t.value.bar.border.useSerieColor ? e.color : t.value.bar.border.stroke,
|
|
2538
2573
|
"stroke-width": t.value.bar.border.strokeWidth,
|
|
2539
2574
|
style: L({ transition: v(ne) || !t.value.bar.showTransition ? void 0 : `all ${t.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
2540
|
-
}, null, 12,
|
|
2541
|
-
Oe(a.value) && l.$slots.pattern ? (u(),
|
|
2575
|
+
}, null, 12, iu)) : f("", !0),
|
|
2576
|
+
Oe(a.value) && l.$slots.pattern ? (u(), r("rect", {
|
|
2542
2577
|
key: 1,
|
|
2543
|
-
x:
|
|
2578
|
+
x: _l(a) - Ml.value / 2,
|
|
2544
2579
|
y: k.value.useIndividualScale ? fa(a) : ha(a),
|
|
2545
2580
|
height: k.value.useIndividualScale ? Math.abs(da(a)) : Math.abs(va(a)),
|
|
2546
2581
|
width: Ll.value - Ml.value,
|
|
@@ -2549,23 +2584,23 @@ const Qo = {
|
|
|
2549
2584
|
stroke: t.value.bar.border.useSerieColor ? e.color : t.value.bar.border.stroke,
|
|
2550
2585
|
"stroke-width": t.value.bar.border.strokeWidth,
|
|
2551
2586
|
style: L({ transition: v(ne) || !t.value.bar.showTransition ? void 0 : `all ${t.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
2552
|
-
}, null, 12,
|
|
2553
|
-
a.comment && t.value.chart.comments.show ? (u(),
|
|
2587
|
+
}, null, 12, ru)) : f("", !0),
|
|
2588
|
+
a.comment && t.value.chart.comments.show ? (u(), r("foreignObject", {
|
|
2554
2589
|
key: 2,
|
|
2555
2590
|
style: { overflow: "visible" },
|
|
2556
2591
|
height: "12",
|
|
2557
2592
|
width: Ll.value / 2 + t.value.chart.comments.width,
|
|
2558
|
-
x:
|
|
2593
|
+
x: _l(a) - t.value.chart.comments.width / 2 + t.value.chart.comments.offsetX,
|
|
2559
2594
|
y: v(V)(a.y) + t.value.chart.comments.offsetY + 6
|
|
2560
2595
|
}, [
|
|
2561
2596
|
J(l.$slots, "plot-comment", {
|
|
2562
|
-
plot: { ...a, color: e.color, seriesIndex: n, datapointIndex:
|
|
2597
|
+
plot: { ...a, color: e.color, seriesIndex: n, datapointIndex: i }
|
|
2563
2598
|
}, void 0, !0)
|
|
2564
|
-
], 8,
|
|
2599
|
+
], 8, cu)) : f("", !0)
|
|
2565
2600
|
]))), 128)),
|
|
2566
|
-
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(j)(e.plots).trend) ? (u(),
|
|
2567
|
-
|
|
2568
|
-
|
|
2601
|
+
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(j)(e.plots).trend) ? (u(), r("g", vu, [
|
|
2602
|
+
p("defs", null, [
|
|
2603
|
+
p("marker", {
|
|
2569
2604
|
id: `bar_arrow_${n}`,
|
|
2570
2605
|
markerWidth: 7,
|
|
2571
2606
|
markerHeight: 7,
|
|
@@ -2573,62 +2608,62 @@ const Qo = {
|
|
|
2573
2608
|
refY: 7 / 2,
|
|
2574
2609
|
orient: "auto"
|
|
2575
2610
|
}, [
|
|
2576
|
-
|
|
2611
|
+
p("polygon", {
|
|
2577
2612
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
2578
2613
|
fill: e.color
|
|
2579
|
-
}, null, 8,
|
|
2580
|
-
], 8,
|
|
2614
|
+
}, null, 8, hu)
|
|
2615
|
+
], 8, du)
|
|
2581
2616
|
]),
|
|
2582
|
-
e.plots.length > 1 ? (u(),
|
|
2617
|
+
e.plots.length > 1 ? (u(), r("line", {
|
|
2583
2618
|
key: 0,
|
|
2584
|
-
x1: v(j)(e.plots).x1 +
|
|
2585
|
-
x2: v(j)(e.plots).x2 +
|
|
2586
|
-
y1: v(
|
|
2587
|
-
y2: v(
|
|
2619
|
+
x1: v(j)(e.plots).x1 + el(),
|
|
2620
|
+
x2: v(j)(e.plots).x2 + el(),
|
|
2621
|
+
y1: v(Y)(v(j)(e.plots).y1),
|
|
2622
|
+
y2: v(Y)(v(j)(e.plots).y2),
|
|
2588
2623
|
"stroke-width": 1,
|
|
2589
2624
|
stroke: e.color,
|
|
2590
2625
|
"stroke-dasharray": 2,
|
|
2591
2626
|
"marker-end": `url(#bar_arrow_${n})`
|
|
2592
|
-
}, null, 8,
|
|
2593
|
-
e.plots.length > 1 ? (u(),
|
|
2627
|
+
}, null, 8, fu)) : f("", !0),
|
|
2628
|
+
e.plots.length > 1 ? (u(), r("text", {
|
|
2594
2629
|
key: 1,
|
|
2595
2630
|
"text-anchor": "middle",
|
|
2596
|
-
x: v(j)(e.plots).x2 +
|
|
2631
|
+
x: v(j)(e.plots).x2 + el(),
|
|
2597
2632
|
y: v(j)(e.plots).y2 - 6,
|
|
2598
|
-
"font-size":
|
|
2633
|
+
"font-size": $.value.plotLabels,
|
|
2599
2634
|
fill: e.color
|
|
2600
2635
|
}, le(v(Ue)({
|
|
2601
2636
|
v: v(j)(e.plots).trend * 100,
|
|
2602
2637
|
s: "%",
|
|
2603
2638
|
r: 2
|
|
2604
|
-
})), 9,
|
|
2639
|
+
})), 9, mu)) : f("", !0)
|
|
2605
2640
|
])) : f("", !0)
|
|
2606
2641
|
], 6))), 128)) : f("", !0),
|
|
2607
|
-
!k.value.useIndividualScale && t.value.chart.grid.labels.zeroLine.show ? (u(),
|
|
2642
|
+
!k.value.useIndividualScale && t.value.chart.grid.labels.zeroLine.show ? (u(), r("line", {
|
|
2608
2643
|
key: 2,
|
|
2609
2644
|
stroke: t.value.chart.grid.stroke,
|
|
2610
2645
|
"stroke-width": "1",
|
|
2611
2646
|
x1: c.value.left + Q.value,
|
|
2612
2647
|
x2: c.value.right,
|
|
2613
|
-
y1: v(
|
|
2614
|
-
y2: v(
|
|
2648
|
+
y1: v(Y)(Le.value),
|
|
2649
|
+
y2: v(Y)(Le.value),
|
|
2615
2650
|
"stroke-linecap": "round",
|
|
2616
2651
|
style: { animation: "none !important" }
|
|
2617
|
-
}, null, 8,
|
|
2618
|
-
t.value.chart.highlighter.useLine && (![null, void 0].includes(
|
|
2619
|
-
|
|
2620
|
-
x1: c.value.left + c.value.width / I.value * ((
|
|
2621
|
-
x2: c.value.left + c.value.width / I.value * ((
|
|
2622
|
-
y1: v(
|
|
2623
|
-
y2: v(
|
|
2652
|
+
}, null, 8, gu)) : f("", !0),
|
|
2653
|
+
t.value.chart.highlighter.useLine && (![null, void 0].includes(_.value) || ![null, void 0].includes(F.value)) ? (u(), r("g", xu, [
|
|
2654
|
+
p("line", {
|
|
2655
|
+
x1: c.value.left + c.value.width / I.value * ((_.value !== null ? _.value : 0) || (F.value !== null ? F.value : 0)) + c.value.width / I.value / 2,
|
|
2656
|
+
x2: c.value.left + c.value.width / I.value * ((_.value !== null ? _.value : 0) || (F.value !== null ? F.value : 0)) + c.value.width / I.value / 2,
|
|
2657
|
+
y1: v(Y)(c.value.top),
|
|
2658
|
+
y2: v(Y)(c.value.bottom),
|
|
2624
2659
|
stroke: t.value.chart.highlighter.color,
|
|
2625
2660
|
"stroke-width": t.value.chart.highlighter.lineWidth,
|
|
2626
2661
|
"stroke-dasharray": t.value.chart.highlighter.lineDasharray,
|
|
2627
2662
|
"stroke-linecap": "round",
|
|
2628
2663
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
2629
|
-
}, null, 8,
|
|
2664
|
+
}, null, 8, bu)
|
|
2630
2665
|
])) : f("", !0),
|
|
2631
|
-
t.value.chart.grid.frame.show ? (u(),
|
|
2666
|
+
t.value.chart.grid.frame.show ? (u(), r("rect", {
|
|
2632
2667
|
key: 4,
|
|
2633
2668
|
style: { pointerEvents: "none", transition: "none", animation: "none !important" },
|
|
2634
2669
|
x: c.value.left + Q.value < 0 ? 0 : c.value.left + Q.value,
|
|
@@ -2641,52 +2676,52 @@ const Qo = {
|
|
|
2641
2676
|
"stroke-linecap": t.value.chart.grid.frame.strokeLinecap,
|
|
2642
2677
|
"stroke-linejoin": t.value.chart.grid.frame.strokeLinejoin,
|
|
2643
2678
|
"stroke-dasharray": t.value.chart.grid.frame.strokeDasharray
|
|
2644
|
-
}, null, 8,
|
|
2645
|
-
t.value.chart.grid.labels.show ? (u(),
|
|
2679
|
+
}, null, 8, pu)) : f("", !0),
|
|
2680
|
+
t.value.chart.grid.labels.show ? (u(), r("g", {
|
|
2646
2681
|
key: 5,
|
|
2647
2682
|
ref_key: "scaleLabels",
|
|
2648
2683
|
ref: Rt
|
|
2649
2684
|
}, [
|
|
2650
|
-
k.value.useIndividualScale ? (u(),
|
|
2651
|
-
(u(!0),
|
|
2652
|
-
|
|
2685
|
+
k.value.useIndividualScale ? (u(), r(g, { key: 0 }, [
|
|
2686
|
+
(u(!0), r(g, null, C(xl.value, (e) => (u(), r("g", null, [
|
|
2687
|
+
p("line", {
|
|
2653
2688
|
x1: e.x + Q.value - c.value.individualOffsetX,
|
|
2654
2689
|
x2: e.x + Q.value - c.value.individualOffsetX,
|
|
2655
|
-
y1: k.value.isStacked ? v(
|
|
2656
|
-
y2: k.value.isStacked ? v(
|
|
2690
|
+
y1: k.value.isStacked ? v(Y)(c.value.bottom - e.yOffset - e.individualHeight) : v(Y)(c.value.top),
|
|
2691
|
+
y2: k.value.isStacked ? v(Y)(c.value.bottom - e.yOffset) : v(Y)(c.value.bottom),
|
|
2657
2692
|
stroke: e.color,
|
|
2658
2693
|
"stroke-width": t.value.chart.grid.stroke,
|
|
2659
2694
|
"stroke-linecap": "round",
|
|
2660
2695
|
style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
2661
|
-
}, null, 12,
|
|
2696
|
+
}, null, 12, yu)
|
|
2662
2697
|
]))), 256)),
|
|
2663
|
-
(u(!0),
|
|
2698
|
+
(u(!0), r(g, null, C(xl.value, (e) => (u(), r("g", {
|
|
2664
2699
|
style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2665
2700
|
}, [
|
|
2666
|
-
|
|
2701
|
+
p("text", {
|
|
2667
2702
|
fill: e.color,
|
|
2668
|
-
"font-size":
|
|
2703
|
+
"font-size": $.value.dataLabels * 0.8,
|
|
2669
2704
|
"text-anchor": "middle",
|
|
2670
|
-
transform: `translate(${e.x -
|
|
2705
|
+
transform: `translate(${e.x - $.value.dataLabels * 0.8 / 2 + Q.value}, ${k.value.isStacked ? c.value.bottom - e.yOffset - e.individualHeight / 2 : c.value.top + c.value.height / 2}) rotate(-90)`
|
|
2671
2706
|
}, le(e.name) + " " + le(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
|
|
2672
|
-
${e.scaleLabel}` : ""), 9,
|
|
2673
|
-
(u(!0),
|
|
2674
|
-
t.value.chart.grid.labels.yAxis.showCrosshairs ? (u(),
|
|
2707
|
+
${e.scaleLabel}` : ""), 9, ku),
|
|
2708
|
+
(u(!0), r(g, null, C(e.yLabels, (n, a) => (u(), r(g, null, [
|
|
2709
|
+
t.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), r("line", {
|
|
2675
2710
|
key: 0,
|
|
2676
2711
|
x1: e.x + 3 + Q.value - t.value.chart.grid.labels.yAxis.crosshairSize - c.value.individualOffsetX,
|
|
2677
2712
|
x2: e.x + Q.value - c.value.individualOffsetX,
|
|
2678
|
-
y1: v(
|
|
2679
|
-
y2: v(
|
|
2713
|
+
y1: v(Y)(n.y),
|
|
2714
|
+
y2: v(Y)(n.y),
|
|
2680
2715
|
stroke: e.color,
|
|
2681
2716
|
"stroke-width": 1,
|
|
2682
2717
|
"stroke-linecap": "round",
|
|
2683
2718
|
style: { animation: "none !important" }
|
|
2684
|
-
}, null, 8,
|
|
2719
|
+
}, null, 8, wu)) : f("", !0)
|
|
2685
2720
|
], 64))), 256)),
|
|
2686
|
-
(u(!0),
|
|
2721
|
+
(u(!0), r(g, null, C(e.yLabels, (n, a) => (u(), r("text", {
|
|
2687
2722
|
x: e.x - 5 + Q.value - c.value.individualOffsetX,
|
|
2688
|
-
y: v(
|
|
2689
|
-
"font-size":
|
|
2723
|
+
y: v(Y)(n.y) + $.value.dataLabels / 3,
|
|
2724
|
+
"font-size": $.value.dataLabels,
|
|
2690
2725
|
"text-anchor": "end",
|
|
2691
2726
|
fill: e.color
|
|
2692
2727
|
}, le(v(Se)(
|
|
@@ -2699,27 +2734,27 @@ const Qo = {
|
|
|
2699
2734
|
r: t.value.chart.grid.labels.yAxis.rounding
|
|
2700
2735
|
}),
|
|
2701
2736
|
{ datapoint: n.datapoint, seriesIndex: a }
|
|
2702
|
-
)), 9,
|
|
2737
|
+
)), 9, Su))), 256))
|
|
2703
2738
|
], 4))), 256))
|
|
2704
|
-
], 64)) : (u(!0),
|
|
2739
|
+
], 64)) : (u(!0), r(g, { key: 1 }, C(pa.value, (e, n) => (u(), r("g", {
|
|
2705
2740
|
key: `yLabel_${n}`
|
|
2706
2741
|
}, [
|
|
2707
|
-
Oe(e) && e.value >= Pe.value.min && e.value <= Pe.value.max && t.value.chart.grid.labels.yAxis.showCrosshairs ? (u(),
|
|
2742
|
+
Oe(e) && e.value >= Pe.value.min && e.value <= Pe.value.max && t.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), r("line", {
|
|
2708
2743
|
key: 0,
|
|
2709
2744
|
x1: c.value.left + Q.value,
|
|
2710
2745
|
x2: c.value.left + Q.value - t.value.chart.grid.labels.yAxis.crosshairSize,
|
|
2711
|
-
y1: v(
|
|
2712
|
-
y2: v(
|
|
2746
|
+
y1: v(Y)(e.y),
|
|
2747
|
+
y2: v(Y)(e.y),
|
|
2713
2748
|
stroke: t.value.chart.grid.stroke,
|
|
2714
2749
|
"stroke-width": "1",
|
|
2715
2750
|
"stroke-linecap": "round",
|
|
2716
2751
|
style: { animation: "none !important" }
|
|
2717
|
-
}, null, 8,
|
|
2718
|
-
e.value >= Pe.value.min && e.value <= Pe.value.max ? (u(),
|
|
2752
|
+
}, null, 8, _u)) : f("", !0),
|
|
2753
|
+
e.value >= Pe.value.min && e.value <= Pe.value.max ? (u(), r("text", {
|
|
2719
2754
|
key: 1,
|
|
2720
2755
|
x: c.value.scaleLabelX - t.value.chart.grid.labels.yAxis.crosshairSize,
|
|
2721
|
-
y: v(V)(e.y +
|
|
2722
|
-
"font-size":
|
|
2756
|
+
y: v(V)(e.y + $.value.dataLabels / 3),
|
|
2757
|
+
"font-size": $.value.dataLabels,
|
|
2723
2758
|
"text-anchor": "end",
|
|
2724
2759
|
fill: t.value.chart.grid.labels.color
|
|
2725
2760
|
}, le(Oe(e.value) ? v(Se)(
|
|
@@ -2731,28 +2766,28 @@ const Qo = {
|
|
|
2731
2766
|
s: e.suffix,
|
|
2732
2767
|
r: t.value.chart.grid.labels.yAxis.rounding
|
|
2733
2768
|
})
|
|
2734
|
-
) : ""), 9,
|
|
2769
|
+
) : ""), 9, $u)) : f("", !0)
|
|
2735
2770
|
]))), 128))
|
|
2736
2771
|
], 512)) : f("", !0),
|
|
2737
|
-
(u(!0),
|
|
2772
|
+
(u(!0), r(g, null, C(Qe.value, (e, n) => (u(), r("g", {
|
|
2738
2773
|
key: `serie_plot_${n}`,
|
|
2739
2774
|
class: Ve(`serie_plot_${n}`),
|
|
2740
2775
|
style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2741
2776
|
}, [
|
|
2742
|
-
(u(!0),
|
|
2743
|
-
key: `circle_plot_${n}_${
|
|
2777
|
+
(u(!0), r(g, null, C(e.plots, (a, i) => (u(), r("g", {
|
|
2778
|
+
key: `circle_plot_${n}_${i}`
|
|
2744
2779
|
}, [
|
|
2745
2780
|
a && Oe(a.value) ? (u(), Ge(Rl, {
|
|
2746
2781
|
key: 0,
|
|
2747
2782
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
2748
2783
|
color: t.value.plot.useGradient ? `url(#plotGradient_${n}_${G.value})` : t.value.plot.dot.useSerieColor ? e.color : t.value.plot.dot.fill,
|
|
2749
2784
|
plot: { x: v(V)(a.x), y: v(V)(a.y) },
|
|
2750
|
-
radius:
|
|
2785
|
+
radius: _.value !== null && _.value === i || F.value !== null && F.value === i ? (Ae.value.plot || 6) * 1.5 : Ae.value.plot || 6,
|
|
2751
2786
|
stroke: t.value.plot.dot.useSerieColor ? t.value.chart.backgroundColor : e.color,
|
|
2752
2787
|
strokeWidth: t.value.plot.dot.strokeWidth,
|
|
2753
|
-
transition: v(ne) || !t.value.plot.showTransition ||
|
|
2788
|
+
transition: v(ne) || !t.value.plot.showTransition || _.value !== null && _.value === i || F.value !== null && F.value === i ? void 0 : `all ${t.value.plot.transitionDurationMs}ms ease-in-out`
|
|
2754
2789
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : f("", !0),
|
|
2755
|
-
a.comment && t.value.chart.comments.show ? (u(),
|
|
2790
|
+
a.comment && t.value.chart.comments.show ? (u(), r("foreignObject", {
|
|
2756
2791
|
key: 1,
|
|
2757
2792
|
style: { overflow: "visible" },
|
|
2758
2793
|
height: "12",
|
|
@@ -2760,16 +2795,16 @@ const Qo = {
|
|
|
2760
2795
|
x: a.x - t.value.chart.comments.width / 2 + t.value.chart.comments.offsetX,
|
|
2761
2796
|
y: a.y + t.value.chart.comments.offsetY + 6
|
|
2762
2797
|
}, [
|
|
2763
|
-
|
|
2798
|
+
p("div", Mu, [
|
|
2764
2799
|
J(l.$slots, "plot-comment", {
|
|
2765
|
-
plot: { ...a, color: e.color, seriesIndex: n, datapointIndex:
|
|
2800
|
+
plot: { ...a, color: e.color, seriesIndex: n, datapointIndex: i }
|
|
2766
2801
|
}, void 0, !0)
|
|
2767
2802
|
])
|
|
2768
|
-
], 8,
|
|
2803
|
+
], 8, Lu)) : f("", !0)
|
|
2769
2804
|
]))), 128)),
|
|
2770
|
-
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(j)(e.plots).trend) ? (u(),
|
|
2771
|
-
|
|
2772
|
-
|
|
2805
|
+
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(j)(e.plots).trend) ? (u(), r("g", Cu, [
|
|
2806
|
+
p("defs", null, [
|
|
2807
|
+
p("marker", {
|
|
2773
2808
|
id: `plot_arrow_${n}`,
|
|
2774
2809
|
markerWidth: 7,
|
|
2775
2810
|
markerHeight: 7,
|
|
@@ -2777,43 +2812,43 @@ const Qo = {
|
|
|
2777
2812
|
refY: 7 / 2,
|
|
2778
2813
|
orient: "auto"
|
|
2779
2814
|
}, [
|
|
2780
|
-
|
|
2815
|
+
p("polygon", {
|
|
2781
2816
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
2782
2817
|
fill: e.color
|
|
2783
|
-
}, null, 8,
|
|
2784
|
-
], 8,
|
|
2818
|
+
}, null, 8, zu)
|
|
2819
|
+
], 8, Au)
|
|
2785
2820
|
]),
|
|
2786
|
-
e.plots.length > 1 ? (u(),
|
|
2821
|
+
e.plots.length > 1 ? (u(), r("line", {
|
|
2787
2822
|
key: 0,
|
|
2788
2823
|
x1: v(j)(e.plots).x1,
|
|
2789
2824
|
x2: v(j)(e.plots).x2,
|
|
2790
|
-
y1: v(
|
|
2791
|
-
y2: v(
|
|
2825
|
+
y1: v(Y)(v(j)(e.plots).y1),
|
|
2826
|
+
y2: v(Y)(v(j)(e.plots).y2),
|
|
2792
2827
|
"stroke-width": 1,
|
|
2793
2828
|
stroke: e.color,
|
|
2794
2829
|
"stroke-dasharray": 2,
|
|
2795
2830
|
"marker-end": `url(#plot_arrow_${n})`
|
|
2796
|
-
}, null, 8,
|
|
2797
|
-
e.plots.length > 1 ? (u(),
|
|
2831
|
+
}, null, 8, Tu)) : f("", !0),
|
|
2832
|
+
e.plots.length > 1 ? (u(), r("text", {
|
|
2798
2833
|
key: 1,
|
|
2799
2834
|
"text-anchor": "middle",
|
|
2800
2835
|
x: v(j)(e.plots).x2,
|
|
2801
2836
|
y: v(j)(e.plots).y2 - 6,
|
|
2802
|
-
"font-size":
|
|
2837
|
+
"font-size": $.value.plotLabels,
|
|
2803
2838
|
fill: e.color
|
|
2804
2839
|
}, le(v(Ue)({
|
|
2805
2840
|
v: v(j)(e.plots).trend * 100,
|
|
2806
2841
|
s: "%",
|
|
2807
2842
|
r: 2
|
|
2808
|
-
})), 9,
|
|
2843
|
+
})), 9, Iu)) : f("", !0)
|
|
2809
2844
|
])) : f("", !0)
|
|
2810
2845
|
], 6))), 128)),
|
|
2811
|
-
(u(!0),
|
|
2846
|
+
(u(!0), r(g, null, C(Te.value, (e, n) => (u(), r("g", {
|
|
2812
2847
|
key: `serie_line_${n}`,
|
|
2813
2848
|
class: Ve(`serie_line_${n}`),
|
|
2814
2849
|
style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2815
2850
|
}, [
|
|
2816
|
-
e.smooth && e.plots.length > 1 && e.curve ? (u(),
|
|
2851
|
+
e.smooth && e.plots.length > 1 && e.curve ? (u(), r("path", {
|
|
2817
2852
|
key: 0,
|
|
2818
2853
|
d: `M${e.curve}`,
|
|
2819
2854
|
stroke: t.value.chart.backgroundColor,
|
|
@@ -2821,7 +2856,7 @@ const Qo = {
|
|
|
2821
2856
|
"stroke-dasharray": e.dashed ? t.value.line.strokeWidth * 2 : 0,
|
|
2822
2857
|
fill: "none",
|
|
2823
2858
|
style: L({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2824
|
-
}, null, 12,
|
|
2859
|
+
}, null, 12, Nu)) : e.plots.length > 1 && e.straight ? (u(), r("path", {
|
|
2825
2860
|
key: 1,
|
|
2826
2861
|
d: `M${e.straight}`,
|
|
2827
2862
|
stroke: t.value.chart.backgroundColor,
|
|
@@ -2831,15 +2866,15 @@ const Qo = {
|
|
|
2831
2866
|
"stroke-linecap": "round",
|
|
2832
2867
|
"stroke-linejoin": "round",
|
|
2833
2868
|
style: L({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2834
|
-
}, null, 12,
|
|
2869
|
+
}, null, 12, Ru)) : f("", !0)
|
|
2835
2870
|
], 6))), 128)),
|
|
2836
|
-
l.$slots.pattern ? (u(),
|
|
2837
|
-
(u(!0),
|
|
2871
|
+
l.$slots.pattern ? (u(), r("defs", Pu, [
|
|
2872
|
+
(u(!0), r(g, null, C(Je.value, (e, n) => J(l.$slots, "pattern", Tl({
|
|
2838
2873
|
key: `serie_pattern_slot_${n}`
|
|
2839
2874
|
}, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${G.value}_${n}` }), void 0, !0)), 128))
|
|
2840
2875
|
])) : f("", !0),
|
|
2841
|
-
wa.value.length && !k.value.isStacked ? (u(),
|
|
2842
|
-
(u(!0),
|
|
2876
|
+
wa.value.length && !k.value.isStacked ? (u(), r("g", Ou, [
|
|
2877
|
+
(u(!0), r(g, null, C(wa.value, (e) => (u(), r("path", {
|
|
2843
2878
|
key: e.key,
|
|
2844
2879
|
d: e.d,
|
|
2845
2880
|
fill: e.color,
|
|
@@ -2847,43 +2882,43 @@ const Qo = {
|
|
|
2847
2882
|
stroke: "none",
|
|
2848
2883
|
"pointer-events": "none",
|
|
2849
2884
|
style: L({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2850
|
-
}, null, 12,
|
|
2885
|
+
}, null, 12, Fu))), 128))
|
|
2851
2886
|
])) : f("", !0),
|
|
2852
|
-
(u(!0),
|
|
2887
|
+
(u(!0), r(g, null, C(Te.value, (e, n) => (u(), r("g", {
|
|
2853
2888
|
key: `serie_line_${n}`,
|
|
2854
2889
|
class: Ve(`serie_line_${n}`),
|
|
2855
2890
|
style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2856
2891
|
}, [
|
|
2857
|
-
e.useArea && e.plots.length > 1 ? (u(),
|
|
2858
|
-
e.smooth ? (u(!0),
|
|
2859
|
-
a ? (u(),
|
|
2892
|
+
e.useArea && e.plots.length > 1 ? (u(), r("g", Hu, [
|
|
2893
|
+
e.smooth ? (u(!0), r(g, { key: 0 }, C(e.curveAreas, (a, i) => (u(), r(g, { key: i }, [
|
|
2894
|
+
a ? (u(), r("path", {
|
|
2860
2895
|
key: 0,
|
|
2861
2896
|
d: a,
|
|
2862
2897
|
fill: t.value.line.area.useGradient ? `url(#areaGradient_${n}_${G.value})` : v(et)(e.color, t.value.line.area.opacity),
|
|
2863
2898
|
style: L({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2864
|
-
}, null, 12,
|
|
2865
|
-
l.$slots.pattern && a ? (u(),
|
|
2899
|
+
}, null, 12, Vu)) : f("", !0),
|
|
2900
|
+
l.$slots.pattern && a ? (u(), r("path", {
|
|
2866
2901
|
key: 1,
|
|
2867
2902
|
d: a,
|
|
2868
2903
|
fill: `url(#pattern_${G.value}_${e.slotAbsoluteIndex})`,
|
|
2869
2904
|
style: L({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2870
|
-
}, null, 12,
|
|
2871
|
-
], 64))), 128)) : (u(!0),
|
|
2872
|
-
a ? (u(),
|
|
2905
|
+
}, null, 12, Bu)) : f("", !0)
|
|
2906
|
+
], 64))), 128)) : (u(!0), r(g, { key: 1 }, C(e.area.split(";"), (a, i) => (u(), r(g, { key: i }, [
|
|
2907
|
+
a ? (u(), r("path", {
|
|
2873
2908
|
key: 0,
|
|
2874
2909
|
d: `M${a}Z`,
|
|
2875
2910
|
fill: t.value.line.area.useGradient ? `url(#areaGradient_${n}_${G.value})` : v(et)(e.color, t.value.line.area.opacity),
|
|
2876
2911
|
style: L({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2877
|
-
}, null, 12,
|
|
2878
|
-
l.$slots.pattern && a ? (u(),
|
|
2912
|
+
}, null, 12, Eu)) : f("", !0),
|
|
2913
|
+
l.$slots.pattern && a ? (u(), r("path", {
|
|
2879
2914
|
key: 1,
|
|
2880
2915
|
d: `M${a}Z`,
|
|
2881
2916
|
fill: `url(#pattern_${G.value}_${e.slotAbsoluteIndex})`,
|
|
2882
2917
|
style: L({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2883
|
-
}, null, 12,
|
|
2918
|
+
}, null, 12, Wu)) : f("", !0)
|
|
2884
2919
|
], 64))), 128))
|
|
2885
2920
|
])) : f("", !0),
|
|
2886
|
-
e.smooth && e.plots.length > 1 && e.curve ? (u(),
|
|
2921
|
+
e.smooth && e.plots.length > 1 && e.curve ? (u(), r("path", {
|
|
2887
2922
|
key: 1,
|
|
2888
2923
|
d: `M${e.curve}`,
|
|
2889
2924
|
stroke: e.color,
|
|
@@ -2892,7 +2927,7 @@ const Qo = {
|
|
|
2892
2927
|
fill: "none",
|
|
2893
2928
|
"stroke-linecap": "round",
|
|
2894
2929
|
style: L({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2895
|
-
}, null, 12,
|
|
2930
|
+
}, null, 12, Du)) : e.plots.length > 1 && e.straight ? (u(), r("path", {
|
|
2896
2931
|
key: 2,
|
|
2897
2932
|
d: `M${e.straight}`,
|
|
2898
2933
|
stroke: e.color,
|
|
@@ -2902,21 +2937,21 @@ const Qo = {
|
|
|
2902
2937
|
"stroke-linecap": "round",
|
|
2903
2938
|
"stroke-linejoin": "round",
|
|
2904
2939
|
style: L({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2905
|
-
}, null, 12,
|
|
2906
|
-
(u(!0),
|
|
2907
|
-
key: `circle_line_${n}_${
|
|
2940
|
+
}, null, 12, Xu)) : f("", !0),
|
|
2941
|
+
(u(!0), r(g, null, C(e.plots, (a, i) => (u(), r(g, {
|
|
2942
|
+
key: `circle_line_${n}_${i}`
|
|
2908
2943
|
}, [
|
|
2909
|
-
!xa.value.linePlot && a && Oe(a.value) || xa.value.linePlot && a && Oe(a.value) && (
|
|
2944
|
+
!xa.value.linePlot && a && Oe(a.value) || xa.value.linePlot && a && Oe(a.value) && (_.value !== null && _.value === i || F.value !== null && F.value === i) || ka(e.plots, i) ? (u(), Ge(Rl, {
|
|
2910
2945
|
key: 0,
|
|
2911
2946
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
2912
2947
|
color: t.value.line.useGradient ? `url(#lineGradient_${n}_${G.value})` : t.value.line.dot.useSerieColor ? e.color : t.value.line.dot.fill,
|
|
2913
2948
|
plot: { x: v(V)(a.x), y: v(V)(a.y) },
|
|
2914
|
-
radius:
|
|
2949
|
+
radius: _.value !== null && _.value === i || F.value !== null && F.value === i ? (Ae.value.line || 6) * 1.5 : (ka(e.plots, i), Ae.value.line || 6),
|
|
2915
2950
|
stroke: t.value.line.dot.useSerieColor ? t.value.chart.backgroundColor : e.color,
|
|
2916
2951
|
strokeWidth: t.value.line.dot.strokeWidth,
|
|
2917
|
-
transition: v(ne) || !t.value.line.showTransition ||
|
|
2952
|
+
transition: v(ne) || !t.value.line.showTransition || _.value !== null && _.value === i || F.value !== null && F.value === i ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out`
|
|
2918
2953
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : f("", !0),
|
|
2919
|
-
a.comment && t.value.chart.comments.show ? (u(),
|
|
2954
|
+
a.comment && t.value.chart.comments.show ? (u(), r("foreignObject", {
|
|
2920
2955
|
key: 1,
|
|
2921
2956
|
style: { overflow: "visible" },
|
|
2922
2957
|
height: "12",
|
|
@@ -2924,16 +2959,16 @@ const Qo = {
|
|
|
2924
2959
|
x: a.x - t.value.chart.comments.width / 2 + t.value.chart.comments.offsetX,
|
|
2925
2960
|
y: a.y + t.value.chart.comments.offsetY + 6
|
|
2926
2961
|
}, [
|
|
2927
|
-
|
|
2962
|
+
p("div", Gu, [
|
|
2928
2963
|
J(l.$slots, "plot-comment", {
|
|
2929
|
-
plot: { ...a, color: e.color, seriesIndex: n, datapointIndex:
|
|
2964
|
+
plot: { ...a, color: e.color, seriesIndex: n, datapointIndex: i }
|
|
2930
2965
|
}, void 0, !0)
|
|
2931
2966
|
])
|
|
2932
|
-
], 8,
|
|
2967
|
+
], 8, Yu)) : f("", !0)
|
|
2933
2968
|
], 64))), 128)),
|
|
2934
|
-
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(j)(e.plots).trend) ? (u(),
|
|
2935
|
-
|
|
2936
|
-
|
|
2969
|
+
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(j)(e.plots).trend) ? (u(), r("g", Uu, [
|
|
2970
|
+
p("defs", null, [
|
|
2971
|
+
p("marker", {
|
|
2937
2972
|
id: `line_arrow_${n}`,
|
|
2938
2973
|
markerWidth: 7,
|
|
2939
2974
|
markerHeight: 7,
|
|
@@ -2941,50 +2976,50 @@ const Qo = {
|
|
|
2941
2976
|
refY: 7 / 2,
|
|
2942
2977
|
orient: "auto"
|
|
2943
2978
|
}, [
|
|
2944
|
-
|
|
2979
|
+
p("polygon", {
|
|
2945
2980
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
2946
2981
|
fill: e.color
|
|
2947
|
-
}, null, 8,
|
|
2948
|
-
], 8,
|
|
2982
|
+
}, null, 8, Zu)
|
|
2983
|
+
], 8, qu)
|
|
2949
2984
|
]),
|
|
2950
|
-
e.plots.length > 1 ? (u(),
|
|
2985
|
+
e.plots.length > 1 ? (u(), r("line", {
|
|
2951
2986
|
key: 0,
|
|
2952
2987
|
x1: v(j)(e.plots).x1,
|
|
2953
2988
|
x2: v(j)(e.plots).x2,
|
|
2954
|
-
y1: v(
|
|
2955
|
-
y2: v(
|
|
2989
|
+
y1: v(Y)(v(j)(e.plots).y1),
|
|
2990
|
+
y2: v(Y)(v(j)(e.plots).y2),
|
|
2956
2991
|
"stroke-width": 1,
|
|
2957
2992
|
stroke: e.color,
|
|
2958
2993
|
"stroke-dasharray": 2,
|
|
2959
2994
|
"marker-end": `url(#line_arrow_${n})`
|
|
2960
|
-
}, null, 8,
|
|
2961
|
-
e.plots.length > 1 ? (u(),
|
|
2995
|
+
}, null, 8, Ku)) : f("", !0),
|
|
2996
|
+
e.plots.length > 1 ? (u(), r("text", {
|
|
2962
2997
|
key: 1,
|
|
2963
2998
|
"text-anchor": "middle",
|
|
2964
2999
|
x: v(j)(e.plots).x2,
|
|
2965
3000
|
y: v(j)(e.plots).y2 - 6,
|
|
2966
|
-
"font-size":
|
|
3001
|
+
"font-size": $.value.plotLabels,
|
|
2967
3002
|
fill: e.color
|
|
2968
3003
|
}, le(v(Ue)({
|
|
2969
3004
|
v: v(j)(e.plots).trend * 100,
|
|
2970
3005
|
s: "%",
|
|
2971
3006
|
r: 2
|
|
2972
|
-
})), 9,
|
|
3007
|
+
})), 9, Ju)) : f("", !0)
|
|
2973
3008
|
])) : f("", !0)
|
|
2974
3009
|
], 6))), 128)),
|
|
2975
|
-
(t.value.bar.labels.show || t.value.bar.serieName.show) && k.value.dataLabels.show ? (u(),
|
|
2976
|
-
(u(!0),
|
|
3010
|
+
(t.value.bar.labels.show || t.value.bar.serieName.show) && k.value.dataLabels.show ? (u(), r("g", Qu, [
|
|
3011
|
+
(u(!0), r(g, null, C(pt.value, (e, n) => (u(), r(g, {
|
|
2977
3012
|
key: `xLabel_bar_${n}`
|
|
2978
3013
|
}, [
|
|
2979
|
-
(u(!0),
|
|
2980
|
-
key: `xLabel_bar_${n}_${
|
|
3014
|
+
(u(!0), r(g, null, C(e.plots, (a, i) => (u(), r(g, {
|
|
3015
|
+
key: `xLabel_bar_${n}_${i}`
|
|
2981
3016
|
}, [
|
|
2982
|
-
a && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 ||
|
|
3017
|
+
a && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === i || F.value !== null && F.value === i) && t.value.bar.labels.show ? (u(), r("text", {
|
|
2983
3018
|
key: 0,
|
|
2984
|
-
x: k.value.useIndividualScale && k.value.isStacked ? a.x + te.value.line / 2 :
|
|
3019
|
+
x: k.value.useIndividualScale && k.value.isStacked ? a.x + te.value.line / 2 : _l(a) + el() / 2 - $l.value / 2,
|
|
2985
3020
|
y: v(V)(a.y) + (a.value >= 0 ? t.value.bar.labels.offsetY : -t.value.bar.labels.offsetY * 3),
|
|
2986
3021
|
"text-anchor": "middle",
|
|
2987
|
-
"font-size":
|
|
3022
|
+
"font-size": $.value.plotLabels,
|
|
2988
3023
|
fill: t.value.bar.labels.color,
|
|
2989
3024
|
style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2990
3025
|
}, le(Oe(a.value) ? v(Se)(
|
|
@@ -3000,36 +3035,36 @@ const Qo = {
|
|
|
3000
3035
|
datapoint: a,
|
|
3001
3036
|
serie: e
|
|
3002
3037
|
}
|
|
3003
|
-
) : ""), 13,
|
|
3004
|
-
a && t.value.bar.serieName.show ? (u(),
|
|
3038
|
+
) : ""), 13, ju)) : f("", !0),
|
|
3039
|
+
a && t.value.bar.serieName.show ? (u(), r("text", {
|
|
3005
3040
|
key: 1,
|
|
3006
|
-
x: k.value.useIndividualScale && k.value.isStacked ? a.x + te.value.line / 2 : a.x +
|
|
3041
|
+
x: k.value.useIndividualScale && k.value.isStacked ? a.x + te.value.line / 2 : a.x + el() * 1.1,
|
|
3007
3042
|
y: a.y + (a.value > 0 ? t.value.bar.serieName.offsetY : -t.value.bar.serieName.offsetY * 3),
|
|
3008
3043
|
"text-anchor": "middle",
|
|
3009
|
-
"font-size":
|
|
3044
|
+
"font-size": $.value.plotLabels,
|
|
3010
3045
|
fill: t.value.bar.serieName.useSerieColor ? e.color : t.value.bar.serieName.color,
|
|
3011
3046
|
"font-weight": t.value.bar.serieName.bold ? "bold" : "normal",
|
|
3012
3047
|
style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3013
|
-
}, le(t.value.bar.serieName.useAbbreviation ? v(
|
|
3048
|
+
}, le(t.value.bar.serieName.useAbbreviation ? v(Bo)({
|
|
3014
3049
|
source: e.name,
|
|
3015
3050
|
length: t.value.bar.serieName.abbreviationSize
|
|
3016
|
-
}) : e.name), 13,
|
|
3051
|
+
}) : e.name), 13, es)) : f("", !0)
|
|
3017
3052
|
], 64))), 128))
|
|
3018
3053
|
], 64))), 128))
|
|
3019
3054
|
])) : f("", !0),
|
|
3020
|
-
t.value.plot.labels.show && k.value.dataLabels.show ? (u(),
|
|
3021
|
-
(u(!0),
|
|
3055
|
+
t.value.plot.labels.show && k.value.dataLabels.show ? (u(), r("g", ts, [
|
|
3056
|
+
(u(!0), r(g, null, C(Qe.value, (e, n) => (u(), r(g, {
|
|
3022
3057
|
key: `xLabel_plot_${n}`
|
|
3023
3058
|
}, [
|
|
3024
|
-
(u(!0),
|
|
3025
|
-
key: `xLabel_plot_${n}_${
|
|
3059
|
+
(u(!0), r(g, null, C(e.plots, (a, i) => (u(), r(g, {
|
|
3060
|
+
key: `xLabel_plot_${n}_${i}`
|
|
3026
3061
|
}, [
|
|
3027
|
-
a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 ||
|
|
3062
|
+
a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === i || F.value !== null && F.value === i ? (u(), r("text", {
|
|
3028
3063
|
key: 0,
|
|
3029
3064
|
x: a.x,
|
|
3030
3065
|
y: a.y + t.value.plot.labels.offsetY,
|
|
3031
3066
|
"text-anchor": "middle",
|
|
3032
|
-
"font-size":
|
|
3067
|
+
"font-size": $.value.plotLabels,
|
|
3033
3068
|
fill: t.value.plot.labels.color,
|
|
3034
3069
|
style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3035
3070
|
}, le(Oe(a.value) ? v(Se)(
|
|
@@ -3045,18 +3080,18 @@ const Qo = {
|
|
|
3045
3080
|
datapoint: a,
|
|
3046
3081
|
serie: e
|
|
3047
3082
|
}
|
|
3048
|
-
) : ""), 13,
|
|
3083
|
+
) : ""), 13, ls)) : f("", !0)
|
|
3049
3084
|
], 64))), 128))
|
|
3050
3085
|
], 64))), 128))
|
|
3051
|
-
])) : (u(),
|
|
3052
|
-
(u(!0),
|
|
3086
|
+
])) : (u(), r("g", as, [
|
|
3087
|
+
(u(!0), r(g, null, C(Qe.value, (e, n) => (u(), r(g, {
|
|
3053
3088
|
key: `xLabel_plot_${n}`
|
|
3054
3089
|
}, [
|
|
3055
|
-
(u(!0),
|
|
3056
|
-
key: `xLabel_plot_${n}_${
|
|
3090
|
+
(u(!0), r(g, null, C(e.plots, (a, i) => (u(), r(g, {
|
|
3091
|
+
key: `xLabel_plot_${n}_${i}`
|
|
3057
3092
|
}, [
|
|
3058
|
-
t.value.plot.tag.followValue ? (u(),
|
|
3059
|
-
[
|
|
3093
|
+
t.value.plot.tag.followValue ? (u(), r(g, { key: 1 }, [
|
|
3094
|
+
[F.value, _.value, mt.value].includes(i) && e.useTag ? (u(), r("line", {
|
|
3060
3095
|
key: 0,
|
|
3061
3096
|
class: "vue-ui-xy-tag-plot",
|
|
3062
3097
|
x1: c.value.left,
|
|
@@ -3067,9 +3102,9 @@ const Qo = {
|
|
|
3067
3102
|
"stroke-linecap": "round",
|
|
3068
3103
|
"stroke-dasharray": "2",
|
|
3069
3104
|
stroke: e.color
|
|
3070
|
-
}, null, 8,
|
|
3071
|
-
], 64)) : (u(),
|
|
3072
|
-
a &&
|
|
3105
|
+
}, null, 8, is)) : f("", !0)
|
|
3106
|
+
], 64)) : (u(), r(g, { key: 0 }, [
|
|
3107
|
+
a && i === 0 && e.useTag && e.useTag === "start" ? (u(), r("foreignObject", {
|
|
3073
3108
|
key: 0,
|
|
3074
3109
|
x: a.x,
|
|
3075
3110
|
y: a.y - 20,
|
|
@@ -3077,59 +3112,59 @@ const Qo = {
|
|
|
3077
3112
|
width: "150",
|
|
3078
3113
|
style: L(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3079
3114
|
}, [
|
|
3080
|
-
|
|
3081
|
-
style: L(`padding: 3px; background:${v(et)(e.color, 80)};color:${v(tt)(e.color)};width:fit-content;font-size:${
|
|
3115
|
+
p("div", {
|
|
3116
|
+
style: L(`padding: 3px; background:${v(et)(e.color, 80)};color:${v(tt)(e.color)};width:fit-content;font-size:${$.value.plotLabels}px;border-radius: 2px;`),
|
|
3082
3117
|
innerHTML: v(Se)(
|
|
3083
3118
|
t.value.plot.tag.formatter,
|
|
3084
3119
|
a.value,
|
|
3085
3120
|
e.name,
|
|
3086
3121
|
{
|
|
3087
3122
|
datapoint: a,
|
|
3088
|
-
seriesIndex:
|
|
3123
|
+
seriesIndex: i,
|
|
3089
3124
|
serieName: e.name
|
|
3090
3125
|
}
|
|
3091
3126
|
)
|
|
3092
|
-
}, null, 12,
|
|
3093
|
-
], 12,
|
|
3094
|
-
a &&
|
|
3127
|
+
}, null, 12, ns)
|
|
3128
|
+
], 12, os)) : f("", !0),
|
|
3129
|
+
a && i === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (u(), r("foreignObject", {
|
|
3095
3130
|
key: 1,
|
|
3096
|
-
x: a.x - e.name.length * (
|
|
3131
|
+
x: a.x - e.name.length * ($.value.plotLabels / 2),
|
|
3097
3132
|
y: a.y - 20,
|
|
3098
3133
|
height: 24,
|
|
3099
3134
|
width: "150",
|
|
3100
3135
|
style: L(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3101
3136
|
}, [
|
|
3102
|
-
|
|
3103
|
-
style: L(`padding: 3px; background:${v(et)(e.color, 80)};color:${v(tt)(e.color)};width:fit-content;font-size:${
|
|
3137
|
+
p("div", {
|
|
3138
|
+
style: L(`padding: 3px; background:${v(et)(e.color, 80)};color:${v(tt)(e.color)};width:fit-content;font-size:${$.value.plotLabels}px;border-radius: 2px;`),
|
|
3104
3139
|
innerHTML: v(Se)(
|
|
3105
3140
|
t.value.plot.tag.formatter,
|
|
3106
3141
|
a.value,
|
|
3107
3142
|
e.name,
|
|
3108
3143
|
{
|
|
3109
3144
|
datapoint: a,
|
|
3110
|
-
seriesIndex:
|
|
3145
|
+
seriesIndex: i,
|
|
3111
3146
|
serieName: e.name
|
|
3112
3147
|
}
|
|
3113
3148
|
)
|
|
3114
|
-
}, null, 12,
|
|
3115
|
-
], 12,
|
|
3149
|
+
}, null, 12, ss)
|
|
3150
|
+
], 12, us)) : f("", !0)
|
|
3116
3151
|
], 64))
|
|
3117
3152
|
], 64))), 128))
|
|
3118
3153
|
], 64))), 128))
|
|
3119
3154
|
])),
|
|
3120
|
-
t.value.line.labels.show && k.value.dataLabels.show ? (u(),
|
|
3121
|
-
(u(!0),
|
|
3155
|
+
t.value.line.labels.show && k.value.dataLabels.show ? (u(), r("g", rs, [
|
|
3156
|
+
(u(!0), r(g, null, C(Te.value, (e, n) => (u(), r(g, {
|
|
3122
3157
|
key: `xLabel_line_${n}`
|
|
3123
3158
|
}, [
|
|
3124
|
-
(u(!0),
|
|
3125
|
-
key: `xLabel_line_${n}_${
|
|
3159
|
+
(u(!0), r(g, null, C(e.plots, (a, i) => (u(), r(g, {
|
|
3160
|
+
key: `xLabel_line_${n}_${i}`
|
|
3126
3161
|
}, [
|
|
3127
|
-
a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 ||
|
|
3162
|
+
a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === i || F.value !== null && F.value === i ? (u(), r("text", {
|
|
3128
3163
|
key: 0,
|
|
3129
3164
|
x: a.x,
|
|
3130
3165
|
y: a.y + (a.value >= 0 ? t.value.line.labels.offsetY : -t.value.line.labels.offsetY * 3),
|
|
3131
3166
|
"text-anchor": "middle",
|
|
3132
|
-
"font-size":
|
|
3167
|
+
"font-size": $.value.plotLabels,
|
|
3133
3168
|
fill: t.value.line.labels.color,
|
|
3134
3169
|
style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3135
3170
|
}, le(Oe(a.value) ? v(Se)(
|
|
@@ -3145,18 +3180,18 @@ const Qo = {
|
|
|
3145
3180
|
datapoint: a,
|
|
3146
3181
|
serie: e
|
|
3147
3182
|
}
|
|
3148
|
-
) : ""), 13,
|
|
3183
|
+
) : ""), 13, cs)) : f("", !0)
|
|
3149
3184
|
], 64))), 128))
|
|
3150
3185
|
], 64))), 128))
|
|
3151
|
-
])) : (u(),
|
|
3152
|
-
(u(!0),
|
|
3186
|
+
])) : (u(), r("g", vs, [
|
|
3187
|
+
(u(!0), r(g, null, C(Te.value, (e, n) => (u(), r(g, {
|
|
3153
3188
|
key: `xLabel_line_${n}`
|
|
3154
3189
|
}, [
|
|
3155
|
-
(u(!0),
|
|
3156
|
-
key: `xLabel_line_${n}_${
|
|
3190
|
+
(u(!0), r(g, null, C(e.plots, (a, i) => (u(), r(g, {
|
|
3191
|
+
key: `xLabel_line_${n}_${i}`
|
|
3157
3192
|
}, [
|
|
3158
|
-
t.value.line.tag.followValue ? (u(),
|
|
3159
|
-
[
|
|
3193
|
+
t.value.line.tag.followValue ? (u(), r(g, { key: 1 }, [
|
|
3194
|
+
[F.value, _.value, mt.value].includes(i) && e.useTag ? (u(), r("line", {
|
|
3160
3195
|
key: 0,
|
|
3161
3196
|
class: "vue-ui-xy-tag-line",
|
|
3162
3197
|
x1: c.value.left,
|
|
@@ -3167,9 +3202,9 @@ const Qo = {
|
|
|
3167
3202
|
"stroke-linecap": "round",
|
|
3168
3203
|
"stroke-dasharray": "2",
|
|
3169
3204
|
stroke: e.color
|
|
3170
|
-
}, null, 8,
|
|
3171
|
-
], 64)) : (u(),
|
|
3172
|
-
a &&
|
|
3205
|
+
}, null, 8, gs)) : f("", !0)
|
|
3206
|
+
], 64)) : (u(), r(g, { key: 0 }, [
|
|
3207
|
+
a && i === 0 && e.useTag && e.useTag === "start" ? (u(), r("foreignObject", {
|
|
3173
3208
|
key: 0,
|
|
3174
3209
|
x: a.x,
|
|
3175
3210
|
y: a.y - 20,
|
|
@@ -3177,21 +3212,21 @@ const Qo = {
|
|
|
3177
3212
|
width: "150",
|
|
3178
3213
|
style: L(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3179
3214
|
}, [
|
|
3180
|
-
|
|
3181
|
-
style: L(`padding: 3px; background:${v(et)(e.color, 80)};color:${v(tt)(e.color)};width:fit-content;font-size:${
|
|
3215
|
+
p("div", {
|
|
3216
|
+
style: L(`padding: 3px; background:${v(et)(e.color, 80)};color:${v(tt)(e.color)};width:fit-content;font-size:${$.value.plotLabels}px;border-radius: 2px;`),
|
|
3182
3217
|
innerHTML: v(Se)(
|
|
3183
3218
|
t.value.line.tag.formatter,
|
|
3184
3219
|
a.value,
|
|
3185
3220
|
e.name,
|
|
3186
3221
|
{
|
|
3187
3222
|
datapoint: a,
|
|
3188
|
-
seriesIndex:
|
|
3223
|
+
seriesIndex: i,
|
|
3189
3224
|
serieName: e.name
|
|
3190
3225
|
}
|
|
3191
3226
|
)
|
|
3192
|
-
}, null, 12,
|
|
3193
|
-
], 12,
|
|
3194
|
-
a &&
|
|
3227
|
+
}, null, 12, hs)
|
|
3228
|
+
], 12, ds)) : f("", !0),
|
|
3229
|
+
a && i === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (u(), r("foreignObject", {
|
|
3195
3230
|
key: 1,
|
|
3196
3231
|
x: a.x,
|
|
3197
3232
|
y: a.y - 20,
|
|
@@ -3199,130 +3234,130 @@ const Qo = {
|
|
|
3199
3234
|
width: "150",
|
|
3200
3235
|
style: L(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3201
3236
|
}, [
|
|
3202
|
-
|
|
3203
|
-
style: L(`padding: 3px; background:${v(et)(e.color, 80)};color:${v(tt)(e.color)};width:fit-content;font-size:${
|
|
3237
|
+
p("div", {
|
|
3238
|
+
style: L(`padding: 3px; background:${v(et)(e.color, 80)};color:${v(tt)(e.color)};width:fit-content;font-size:${$.value.plotLabels}px;border-radius: 2px;`),
|
|
3204
3239
|
innerHTML: v(Se)(
|
|
3205
3240
|
t.value.line.tag.formatter,
|
|
3206
3241
|
a.value,
|
|
3207
3242
|
e.name,
|
|
3208
3243
|
{
|
|
3209
3244
|
datapoint: a,
|
|
3210
|
-
seriesIndex:
|
|
3245
|
+
seriesIndex: i,
|
|
3211
3246
|
serieName: e.name
|
|
3212
3247
|
}
|
|
3213
3248
|
)
|
|
3214
|
-
}, null, 12,
|
|
3215
|
-
], 12,
|
|
3249
|
+
}, null, 12, ms)
|
|
3250
|
+
], 12, fs)) : f("", !0)
|
|
3216
3251
|
], 64))
|
|
3217
3252
|
], 64))), 128))
|
|
3218
3253
|
], 64))), 128))
|
|
3219
3254
|
])),
|
|
3220
|
-
(u(!0),
|
|
3255
|
+
(u(!0), r(g, null, C(Te.value, (e, n) => (u(), r(g, {
|
|
3221
3256
|
key: `xLabel_line_${n}`
|
|
3222
3257
|
}, [
|
|
3223
|
-
(u(!0),
|
|
3224
|
-
key: `xLabel_line_${n}_${
|
|
3258
|
+
(u(!0), r(g, null, C(e.plots, (a, i) => (u(), r(g, {
|
|
3259
|
+
key: `xLabel_line_${n}_${i}`
|
|
3225
3260
|
}, [
|
|
3226
|
-
a &&
|
|
3261
|
+
a && i === 0 && e.showSerieName && e.showSerieName === "start" ? (u(), r("text", {
|
|
3227
3262
|
key: 0,
|
|
3228
|
-
x: a.x -
|
|
3263
|
+
x: a.x - $.value.plotLabels,
|
|
3229
3264
|
y: a.y,
|
|
3230
|
-
"font-size":
|
|
3265
|
+
"font-size": $.value.plotLabels,
|
|
3231
3266
|
"text-anchor": "end",
|
|
3232
3267
|
fill: e.color,
|
|
3233
3268
|
innerHTML: v(Nl)({
|
|
3234
3269
|
content: e.name,
|
|
3235
|
-
fontSize:
|
|
3270
|
+
fontSize: $.value.plotLabels,
|
|
3236
3271
|
fill: e.color,
|
|
3237
|
-
x: a.x -
|
|
3272
|
+
x: a.x - $.value.plotLabels,
|
|
3238
3273
|
y: a.y,
|
|
3239
3274
|
maxWords: 2
|
|
3240
3275
|
}),
|
|
3241
3276
|
style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3242
|
-
}, null, 12,
|
|
3243
|
-
a &&
|
|
3277
|
+
}, null, 12, xs)) : f("", !0),
|
|
3278
|
+
a && i === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), r("text", {
|
|
3244
3279
|
key: 1,
|
|
3245
|
-
x: a.x +
|
|
3280
|
+
x: a.x + $.value.plotLabels,
|
|
3246
3281
|
y: a.y,
|
|
3247
|
-
"font-size":
|
|
3282
|
+
"font-size": $.value.plotLabels,
|
|
3248
3283
|
"text-anchor": "start",
|
|
3249
3284
|
fill: e.color,
|
|
3250
3285
|
innerHTML: v(Nl)({
|
|
3251
3286
|
content: e.name,
|
|
3252
|
-
fontSize:
|
|
3287
|
+
fontSize: $.value.plotLabels,
|
|
3253
3288
|
fill: e.color,
|
|
3254
|
-
x: a.x +
|
|
3289
|
+
x: a.x + $.value.plotLabels,
|
|
3255
3290
|
y: a.y,
|
|
3256
3291
|
maxWords: 2
|
|
3257
3292
|
}),
|
|
3258
3293
|
style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3259
|
-
}, null, 12,
|
|
3294
|
+
}, null, 12, bs)) : f("", !0)
|
|
3260
3295
|
], 64))), 128))
|
|
3261
3296
|
], 64))), 128)),
|
|
3262
|
-
(u(!0),
|
|
3297
|
+
(u(!0), r(g, null, C(Qe.value, (e, n) => (u(), r(g, {
|
|
3263
3298
|
key: `xLabel_plot_${n}`
|
|
3264
3299
|
}, [
|
|
3265
|
-
(u(!0),
|
|
3266
|
-
key: `xLabel_plot_${n}_${
|
|
3300
|
+
(u(!0), r(g, null, C(e.plots, (a, i) => (u(), r(g, {
|
|
3301
|
+
key: `xLabel_plot_${n}_${i}`
|
|
3267
3302
|
}, [
|
|
3268
|
-
a &&
|
|
3303
|
+
a && i === 0 && e.showSerieName && e.showSerieName === "start" ? (u(), r("text", {
|
|
3269
3304
|
key: 0,
|
|
3270
|
-
x: a.x -
|
|
3305
|
+
x: a.x - $.value.plotLabels,
|
|
3271
3306
|
y: a.y,
|
|
3272
|
-
"font-size":
|
|
3307
|
+
"font-size": $.value.plotLabels,
|
|
3273
3308
|
"text-anchor": "end",
|
|
3274
3309
|
fill: e.color,
|
|
3275
3310
|
innerHTML: v(Nl)({
|
|
3276
3311
|
content: e.name,
|
|
3277
|
-
fontSize:
|
|
3312
|
+
fontSize: $.value.plotLabels,
|
|
3278
3313
|
fill: e.color,
|
|
3279
|
-
x: a.x -
|
|
3314
|
+
x: a.x - $.value.plotLabels,
|
|
3280
3315
|
y: a.y,
|
|
3281
3316
|
maxWords: 2
|
|
3282
3317
|
}),
|
|
3283
3318
|
style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3284
|
-
}, null, 12,
|
|
3285
|
-
a &&
|
|
3319
|
+
}, null, 12, ps)) : f("", !0),
|
|
3320
|
+
a && i === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), r("text", {
|
|
3286
3321
|
key: 1,
|
|
3287
|
-
x: a.x +
|
|
3322
|
+
x: a.x + $.value.plotLabels,
|
|
3288
3323
|
y: a.y,
|
|
3289
|
-
"font-size":
|
|
3324
|
+
"font-size": $.value.plotLabels,
|
|
3290
3325
|
"text-anchor": "start",
|
|
3291
3326
|
fill: e.color,
|
|
3292
3327
|
innerHTML: v(Nl)({
|
|
3293
3328
|
content: e.name,
|
|
3294
|
-
fontSize:
|
|
3329
|
+
fontSize: $.value.plotLabels,
|
|
3295
3330
|
fill: e.color,
|
|
3296
|
-
x: a.x +
|
|
3331
|
+
x: a.x + $.value.plotLabels,
|
|
3297
3332
|
y: a.y,
|
|
3298
3333
|
maxWords: 2
|
|
3299
3334
|
}),
|
|
3300
3335
|
style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3301
|
-
}, null, 12,
|
|
3336
|
+
}, null, 12, ys)) : f("", !0)
|
|
3302
3337
|
], 64))), 128))
|
|
3303
3338
|
], 64))), 128)),
|
|
3304
|
-
k.value.useIndividualScale && !k.value.isStacked ? (u(),
|
|
3305
|
-
|
|
3306
|
-
(u(!0),
|
|
3339
|
+
k.value.useIndividualScale && !k.value.isStacked ? (u(), r(g, { key: 13 }, [
|
|
3340
|
+
p("defs", null, [
|
|
3341
|
+
(u(!0), r(g, null, C(xl.value, (e, n) => (u(), r("linearGradient", {
|
|
3307
3342
|
id: `individual_scale_gradient_${G.value}_${n}`,
|
|
3308
3343
|
x1: "0%",
|
|
3309
3344
|
x2: "100%",
|
|
3310
3345
|
y1: "0%",
|
|
3311
3346
|
y2: "0%"
|
|
3312
3347
|
}, [
|
|
3313
|
-
|
|
3348
|
+
p("stop", {
|
|
3314
3349
|
offset: "0%",
|
|
3315
3350
|
"stop-color": t.value.chart.backgroundColor,
|
|
3316
3351
|
"stop-opacity": "0"
|
|
3317
|
-
}, null, 8,
|
|
3318
|
-
|
|
3352
|
+
}, null, 8, ws),
|
|
3353
|
+
p("stop", {
|
|
3319
3354
|
offset: "100%",
|
|
3320
3355
|
"stop-color": e.color,
|
|
3321
3356
|
"stop-opacity": "0.2"
|
|
3322
|
-
}, null, 8,
|
|
3323
|
-
], 8,
|
|
3357
|
+
}, null, 8, Ss)
|
|
3358
|
+
], 8, ks))), 256))
|
|
3324
3359
|
]),
|
|
3325
|
-
(u(!0),
|
|
3360
|
+
(u(!0), r(g, null, C(xl.value, (e, n) => (u(), r("rect", {
|
|
3326
3361
|
x: e.x - t.value.chart.grid.labels.yAxis.labelWidth + Q.value - c.value.individualOffsetX,
|
|
3327
3362
|
y: c.value.top,
|
|
3328
3363
|
width: t.value.chart.grid.labels.yAxis.labelWidth + c.value.individualOffsetX,
|
|
@@ -3330,91 +3365,91 @@ const Qo = {
|
|
|
3330
3365
|
fill: P.value === e.groupId ? `url(#individual_scale_gradient_${G.value}_${n})` : "transparent",
|
|
3331
3366
|
onMouseenter: (a) => P.value = e.groupId,
|
|
3332
3367
|
onMouseleave: s[0] || (s[0] = (a) => P.value = null)
|
|
3333
|
-
}, null, 40,
|
|
3368
|
+
}, null, 40, _s))), 256))
|
|
3334
3369
|
], 64)) : f("", !0),
|
|
3335
|
-
|
|
3336
|
-
t.value.chart.grid.labels.axis.yLabel && !k.value.useIndividualScale ? (u(),
|
|
3370
|
+
p("g", null, [
|
|
3371
|
+
t.value.chart.grid.labels.axis.yLabel && !k.value.useIndividualScale ? (u(), r("text", {
|
|
3337
3372
|
key: 0,
|
|
3338
3373
|
ref_key: "yAxisLabel",
|
|
3339
|
-
ref:
|
|
3340
|
-
"font-size":
|
|
3374
|
+
ref: qt,
|
|
3375
|
+
"font-size": $.value.yAxis,
|
|
3341
3376
|
fill: t.value.chart.grid.labels.color,
|
|
3342
3377
|
transform: `translate(${t.value.chart.grid.labels.axis.fontSize}, ${c.value.top + c.value.height / 2}) rotate(-90)`,
|
|
3343
3378
|
"text-anchor": "middle",
|
|
3344
3379
|
style: { transition: "none" }
|
|
3345
|
-
}, le(t.value.chart.grid.labels.axis.yLabel), 9,
|
|
3346
|
-
t.value.chart.grid.labels.axis.xLabel ? (u(),
|
|
3380
|
+
}, le(t.value.chart.grid.labels.axis.yLabel), 9, $s)) : f("", !0),
|
|
3381
|
+
t.value.chart.grid.labels.axis.xLabel ? (u(), r("text", {
|
|
3347
3382
|
key: 1,
|
|
3348
3383
|
ref_key: "xAxisLabel",
|
|
3349
3384
|
ref: Ee,
|
|
3350
3385
|
"text-anchor": "middle",
|
|
3351
3386
|
x: ae.value / 2,
|
|
3352
3387
|
y: ge.value - 3,
|
|
3353
|
-
"font-size":
|
|
3388
|
+
"font-size": $.value.yAxis,
|
|
3354
3389
|
fill: t.value.chart.grid.labels.color
|
|
3355
|
-
}, le(t.value.chart.grid.labels.axis.xLabel), 9,
|
|
3390
|
+
}, le(t.value.chart.grid.labels.axis.xLabel), 9, Ls)) : f("", !0)
|
|
3356
3391
|
]),
|
|
3357
|
-
t.value.chart.grid.labels.xAxisLabels.show ? (u(),
|
|
3392
|
+
t.value.chart.grid.labels.xAxisLabels.show ? (u(), r("g", {
|
|
3358
3393
|
key: 14,
|
|
3359
3394
|
ref_key: "timeLabelsEls",
|
|
3360
3395
|
ref: ht
|
|
3361
3396
|
}, [
|
|
3362
|
-
l.$slots["time-label"] ? (u(!0),
|
|
3397
|
+
l.$slots["time-label"] ? (u(!0), r(g, { key: 0 }, C(Xl.value, (e, n) => J(l.$slots, "time-label", Tl({
|
|
3363
3398
|
key: `time_label_${n}`,
|
|
3364
3399
|
ref_for: !0
|
|
3365
3400
|
}, {
|
|
3366
3401
|
x: c.value.left + c.value.width / I.value * n + c.value.width / I.value / 2,
|
|
3367
3402
|
y: c.value.bottom,
|
|
3368
|
-
fontSize:
|
|
3403
|
+
fontSize: $.value.xAxis,
|
|
3369
3404
|
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3370
|
-
transform: `translate(${c.value.left + c.value.width / I.value * n + c.value.width / I.value / 2}, ${c.value.bottom +
|
|
3405
|
+
transform: `translate(${c.value.left + c.value.width / I.value * n + c.value.width / I.value / 2}, ${c.value.bottom + $.value.xAxis * 1.3 + t.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3371
3406
|
absoluteIndex: e.absoluteIndex,
|
|
3372
3407
|
content: e.text,
|
|
3373
3408
|
textAnchor: t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3374
3409
|
show: e && e.text
|
|
3375
|
-
}), void 0, !0)), 128)) : (u(!0),
|
|
3410
|
+
}), void 0, !0)), 128)) : (u(!0), r(g, { key: 1 }, C(Xl.value, (e, n) => (u(), r("g", {
|
|
3376
3411
|
key: `time_label_${n}`
|
|
3377
3412
|
}, [
|
|
3378
|
-
e && e.text ? (u(),
|
|
3413
|
+
e && e.text ? (u(), r(g, { key: 0 }, [
|
|
3379
3414
|
String(e.text).includes(`
|
|
3380
|
-
`) ? (u(),
|
|
3415
|
+
`) ? (u(), r("text", {
|
|
3381
3416
|
key: 1,
|
|
3382
3417
|
class: "vue-data-ui-time-label",
|
|
3383
3418
|
"text-anchor": t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3384
|
-
"font-size":
|
|
3419
|
+
"font-size": $.value.xAxis,
|
|
3385
3420
|
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3386
|
-
transform: `translate(${c.value.left + c.value.width / I.value * n + c.value.width / I.value / 2}, ${c.value.bottom +
|
|
3421
|
+
transform: `translate(${c.value.left + c.value.width / I.value * n + c.value.width / I.value / 2}, ${c.value.bottom + $.value.xAxis * 1.5}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3387
3422
|
style: L({
|
|
3388
3423
|
cursor: ta() ? "pointer" : "default"
|
|
3389
3424
|
}),
|
|
3390
|
-
innerHTML: v(
|
|
3425
|
+
innerHTML: v(Eo)({
|
|
3391
3426
|
content: String(e.text),
|
|
3392
|
-
fontSize:
|
|
3427
|
+
fontSize: $.value.xAxis,
|
|
3393
3428
|
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3394
3429
|
x: 0,
|
|
3395
3430
|
y: 0
|
|
3396
3431
|
}),
|
|
3397
3432
|
onClick: () => ua(e, n)
|
|
3398
|
-
}, null, 12,
|
|
3433
|
+
}, null, 12, Cs)) : (u(), r("text", {
|
|
3399
3434
|
key: 0,
|
|
3400
3435
|
class: "vue-data-ui-time-label",
|
|
3401
3436
|
"text-anchor": t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3402
|
-
"font-size":
|
|
3437
|
+
"font-size": $.value.xAxis,
|
|
3403
3438
|
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3404
|
-
transform: `translate(${c.value.left + c.value.width / I.value * n + c.value.width / I.value / 2}, ${c.value.bottom +
|
|
3439
|
+
transform: `translate(${c.value.left + c.value.width / I.value * n + c.value.width / I.value / 2}, ${c.value.bottom + $.value.xAxis * 1.5}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3405
3440
|
style: L({
|
|
3406
3441
|
cursor: ta() ? "pointer" : "default"
|
|
3407
3442
|
}),
|
|
3408
3443
|
onClick: () => ua(e, n)
|
|
3409
|
-
}, le(e.text || ""), 13,
|
|
3444
|
+
}, le(e.text || ""), 13, Ms))
|
|
3410
3445
|
], 64)) : f("", !0)
|
|
3411
3446
|
]))), 128))
|
|
3412
3447
|
], 512)) : f("", !0),
|
|
3413
|
-
ya.value.length && !k.value.isStacked ? (u(),
|
|
3414
|
-
(u(!0),
|
|
3448
|
+
ya.value.length && !k.value.isStacked ? (u(), r("g", As, [
|
|
3449
|
+
(u(!0), r(g, null, C(ya.value, (e) => (u(), r("g", {
|
|
3415
3450
|
key: e.uid
|
|
3416
3451
|
}, [
|
|
3417
|
-
e.yTop && e.show && isFinite(e.yTop) ? (u(),
|
|
3452
|
+
e.yTop && e.show && isFinite(e.yTop) ? (u(), r("line", {
|
|
3418
3453
|
key: 0,
|
|
3419
3454
|
x1: e.x1,
|
|
3420
3455
|
y1: e.yTop,
|
|
@@ -3425,8 +3460,8 @@ const Qo = {
|
|
|
3425
3460
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
3426
3461
|
"stroke-linecap": "round",
|
|
3427
3462
|
style: { animation: "none !important" }
|
|
3428
|
-
}, null, 8,
|
|
3429
|
-
e.yBottom && e.show && isFinite(e.yBottom) ? (u(),
|
|
3463
|
+
}, null, 8, zs)) : f("", !0),
|
|
3464
|
+
e.yBottom && e.show && isFinite(e.yBottom) ? (u(), r("line", {
|
|
3430
3465
|
key: 1,
|
|
3431
3466
|
x1: e.x1,
|
|
3432
3467
|
y1: e.yBottom,
|
|
@@ -3437,8 +3472,8 @@ const Qo = {
|
|
|
3437
3472
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
3438
3473
|
"stroke-linecap": "round",
|
|
3439
3474
|
style: { animation: "none !important" }
|
|
3440
|
-
}, null, 8,
|
|
3441
|
-
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (u(),
|
|
3475
|
+
}, null, 8, Ts)) : f("", !0),
|
|
3476
|
+
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (u(), r("rect", {
|
|
3442
3477
|
key: 2,
|
|
3443
3478
|
y: Math.min(e.yTop, e.yBottom),
|
|
3444
3479
|
x: e.x1,
|
|
@@ -3446,12 +3481,12 @@ const Qo = {
|
|
|
3446
3481
|
height: v(V)(e.areaHeight, 0),
|
|
3447
3482
|
fill: v(et)(e.config.area.fill, e.config.area.opacity),
|
|
3448
3483
|
style: { animation: "none !important" }
|
|
3449
|
-
}, null, 8,
|
|
3450
|
-
e.config.label.text && e.show && isFinite(e._box.y) ? (u(),
|
|
3484
|
+
}, null, 8, Is)) : f("", !0),
|
|
3485
|
+
e.config.label.text && e.show && isFinite(e._box.y) ? (u(), r("rect", Tl({
|
|
3451
3486
|
key: 3,
|
|
3452
3487
|
class: "vue-ui-xy-annotation-label-box"
|
|
3453
3488
|
}, { ref_for: !0 }, e._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : f("", !0),
|
|
3454
|
-
e.config.label.text && e.show && isFinite(e._text.y) ? (u(),
|
|
3489
|
+
e.config.label.text && e.show && isFinite(e._text.y) ? (u(), r("text", {
|
|
3455
3490
|
key: 4,
|
|
3456
3491
|
id: e.id,
|
|
3457
3492
|
class: "vue-ui-xy-annotation-label",
|
|
@@ -3460,67 +3495,69 @@ const Qo = {
|
|
|
3460
3495
|
"font-size": e.config.label.fontSize,
|
|
3461
3496
|
fill: e.config.label.color,
|
|
3462
3497
|
"text-anchor": e.config.label.textAnchor
|
|
3463
|
-
}, le(e.config.label.text), 9,
|
|
3498
|
+
}, le(e.config.label.text), 9, Ns)) : f("", !0)
|
|
3464
3499
|
]))), 128))
|
|
3465
3500
|
])) : f("", !0),
|
|
3466
|
-
t.value.chart.timeTag.show && (![null, void 0].includes(
|
|
3467
|
-
(u(),
|
|
3468
|
-
x:
|
|
3501
|
+
t.value.chart.timeTag.show && (![null, void 0].includes(_.value) || ![null, void 0].includes(F.value)) ? (u(), r("g", Rs, [
|
|
3502
|
+
(u(), r("foreignObject", {
|
|
3503
|
+
x: bo(),
|
|
3469
3504
|
y: c.value.bottom,
|
|
3470
3505
|
width: "200",
|
|
3471
3506
|
height: "40",
|
|
3472
3507
|
style: { overflow: "visible !important" }
|
|
3473
3508
|
}, [
|
|
3474
|
-
|
|
3509
|
+
p("div", {
|
|
3510
|
+
ref_key: "timeTagEl",
|
|
3511
|
+
ref: Na,
|
|
3475
3512
|
class: "vue-ui-xy-time-tag",
|
|
3476
3513
|
style: L(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${t.value.chart.timeTag.backgroundColor};color:${t.value.chart.timeTag.color};font-size:${t.value.chart.timeTag.fontSize}px`),
|
|
3477
|
-
innerHTML:
|
|
3478
|
-
}, null, 12,
|
|
3479
|
-
], 8,
|
|
3480
|
-
|
|
3481
|
-
cx: c.value.left + c.value.width / I.value * ((
|
|
3514
|
+
innerHTML: po.value
|
|
3515
|
+
}, null, 12, Os)
|
|
3516
|
+
], 8, Ps)),
|
|
3517
|
+
p("circle", {
|
|
3518
|
+
cx: c.value.left + c.value.width / I.value * ((_.value !== null ? _.value : 0) || (F.value !== null ? F.value : 0)) + c.value.width / I.value / 2,
|
|
3482
3519
|
cy: c.value.bottom,
|
|
3483
3520
|
r: t.value.chart.timeTag.circleMarker.radius,
|
|
3484
3521
|
fill: t.value.chart.timeTag.circleMarker.color
|
|
3485
|
-
}, null, 8,
|
|
3522
|
+
}, null, 8, Fs)
|
|
3486
3523
|
])) : f("", !0)
|
|
3487
3524
|
])) : f("", !0),
|
|
3488
|
-
wt.value ? (u(),
|
|
3525
|
+
wt.value ? (u(), r("rect", Tl({ key: 2 }, ve.value, {
|
|
3489
3526
|
"data-start": y.value.start,
|
|
3490
3527
|
"data-end": y.value.end
|
|
3491
|
-
}), null, 16,
|
|
3528
|
+
}), null, 16, Hs)) : f("", !0),
|
|
3492
3529
|
J(l.$slots, "svg", { svg: ut.value }, void 0, !0)
|
|
3493
3530
|
], 512)
|
|
3494
|
-
], 46,
|
|
3495
|
-
l.$slots.watermark ? (u(),
|
|
3531
|
+
], 46, Mn)),
|
|
3532
|
+
l.$slots.watermark ? (u(), r("div", Vs, [
|
|
3496
3533
|
J(l.$slots, "watermark", Ct(At({ isPrinting: v(m) || v(h) })), void 0, !0)
|
|
3497
3534
|
])) : f("", !0),
|
|
3498
|
-
(u(!0),
|
|
3535
|
+
(u(!0), r(g, null, C(Te.value, (e, n) => (u(), r(g, {
|
|
3499
3536
|
key: `tag_line_${n}`
|
|
3500
3537
|
}, [
|
|
3501
|
-
(u(!0),
|
|
3502
|
-
key: `tag_line_${n}_${
|
|
3538
|
+
(u(!0), r(g, null, C(e.plots, (a, i) => (u(), r(g, {
|
|
3539
|
+
key: `tag_line_${n}_${i}`
|
|
3503
3540
|
}, [
|
|
3504
|
-
[
|
|
3541
|
+
[F.value, _.value, mt.value].includes(i) && e.useTag && e.useTag === "end" && t.value.line.tag.followValue ? (u(), r("div", {
|
|
3505
3542
|
key: 0,
|
|
3506
3543
|
ref_for: !0,
|
|
3507
|
-
ref: (o) => wl(n,
|
|
3544
|
+
ref: (o) => wl(n, i, o, "right", "line"),
|
|
3508
3545
|
class: "vue-ui-xy-tag",
|
|
3509
3546
|
"data-tag": "right",
|
|
3510
3547
|
style: L({
|
|
3511
3548
|
position: "fixed",
|
|
3512
3549
|
top: v(zt)({
|
|
3513
|
-
svgElement:
|
|
3550
|
+
svgElement: _e.value,
|
|
3514
3551
|
x: c.value.right + t.value.line.tag.fontSize / 1.5,
|
|
3515
3552
|
y: a.y,
|
|
3516
|
-
element:
|
|
3553
|
+
element: We.value[`${n}_${i}_right_line`],
|
|
3517
3554
|
position: "right"
|
|
3518
3555
|
}).top + "px",
|
|
3519
3556
|
left: v(zt)({
|
|
3520
|
-
svgElement:
|
|
3557
|
+
svgElement: _e.value,
|
|
3521
3558
|
x: c.value.right + t.value.line.tag.fontSize / 1.5,
|
|
3522
3559
|
y: a.y,
|
|
3523
|
-
element:
|
|
3560
|
+
element: We.value[`${n}_${i}_right_line`],
|
|
3524
3561
|
position: "right"
|
|
3525
3562
|
}).left + "px",
|
|
3526
3563
|
height: "fit-content",
|
|
@@ -3532,14 +3569,14 @@ const Qo = {
|
|
|
3532
3569
|
opacity: 1
|
|
3533
3570
|
})
|
|
3534
3571
|
}, [
|
|
3535
|
-
(u(),
|
|
3536
|
-
|
|
3572
|
+
(u(), r("svg", Bs, [
|
|
3573
|
+
p("path", {
|
|
3537
3574
|
d: "M 0,10 10,0 10,20 Z",
|
|
3538
3575
|
fill: e.color,
|
|
3539
3576
|
stroke: "none"
|
|
3540
|
-
}, null, 8,
|
|
3577
|
+
}, null, 8, Es)
|
|
3541
3578
|
])),
|
|
3542
|
-
|
|
3579
|
+
p("div", {
|
|
3543
3580
|
class: "vue-ui-xy-tag-content",
|
|
3544
3581
|
innerHTML: v(Se)(
|
|
3545
3582
|
t.value.line.tag.formatter,
|
|
@@ -3547,32 +3584,32 @@ const Qo = {
|
|
|
3547
3584
|
e.name,
|
|
3548
3585
|
{
|
|
3549
3586
|
datapoint: a,
|
|
3550
|
-
seriesIndex:
|
|
3587
|
+
seriesIndex: i,
|
|
3551
3588
|
serieName: e.name
|
|
3552
3589
|
}
|
|
3553
3590
|
)
|
|
3554
|
-
}, null, 8,
|
|
3591
|
+
}, null, 8, Ws)
|
|
3555
3592
|
], 4)) : f("", !0),
|
|
3556
|
-
[
|
|
3593
|
+
[F.value, _.value, mt.value].includes(i) && e.useTag && e.useTag === "start" && t.value.line.tag.followValue ? (u(), r("div", {
|
|
3557
3594
|
key: 1,
|
|
3558
3595
|
ref_for: !0,
|
|
3559
|
-
ref: (o) => wl(n,
|
|
3596
|
+
ref: (o) => wl(n, i, o, "left", "line"),
|
|
3560
3597
|
class: "vue-ui-xy-tag",
|
|
3561
3598
|
"data-tag": "left",
|
|
3562
3599
|
style: L({
|
|
3563
3600
|
position: "fixed",
|
|
3564
3601
|
top: v(zt)({
|
|
3565
|
-
svgElement:
|
|
3602
|
+
svgElement: _e.value,
|
|
3566
3603
|
x: c.value.left - t.value.line.tag.fontSize / 1.5,
|
|
3567
3604
|
y: a.y,
|
|
3568
|
-
element:
|
|
3605
|
+
element: We.value[`${n}_${i}_left_line`],
|
|
3569
3606
|
position: "left"
|
|
3570
3607
|
}).top + "px",
|
|
3571
3608
|
left: v(zt)({
|
|
3572
|
-
svgElement:
|
|
3609
|
+
svgElement: _e.value,
|
|
3573
3610
|
x: c.value.left - t.value.line.tag.fontSize / 1.5,
|
|
3574
3611
|
y: a.y,
|
|
3575
|
-
element:
|
|
3612
|
+
element: We.value[`${n}_${i}_left_line`],
|
|
3576
3613
|
position: "left"
|
|
3577
3614
|
}).left + "px",
|
|
3578
3615
|
height: "fit-content",
|
|
@@ -3584,14 +3621,14 @@ const Qo = {
|
|
|
3584
3621
|
opacity: 1
|
|
3585
3622
|
})
|
|
3586
3623
|
}, [
|
|
3587
|
-
(u(),
|
|
3588
|
-
|
|
3624
|
+
(u(), r("svg", Ds, [
|
|
3625
|
+
p("path", {
|
|
3589
3626
|
d: "M 0,0 10,10 0,20 Z",
|
|
3590
3627
|
fill: e.color,
|
|
3591
3628
|
stroke: "none"
|
|
3592
|
-
}, null, 8,
|
|
3629
|
+
}, null, 8, Xs)
|
|
3593
3630
|
])),
|
|
3594
|
-
|
|
3631
|
+
p("div", {
|
|
3595
3632
|
class: "vue-ui-xy-tag-content",
|
|
3596
3633
|
innerHTML: v(Se)(
|
|
3597
3634
|
t.value.line.tag.formatter,
|
|
@@ -3599,40 +3636,40 @@ const Qo = {
|
|
|
3599
3636
|
e.name,
|
|
3600
3637
|
{
|
|
3601
3638
|
datapoint: a,
|
|
3602
|
-
seriesIndex:
|
|
3639
|
+
seriesIndex: i,
|
|
3603
3640
|
serieName: e.name
|
|
3604
3641
|
}
|
|
3605
3642
|
)
|
|
3606
|
-
}, null, 8,
|
|
3643
|
+
}, null, 8, Ys)
|
|
3607
3644
|
], 4)) : f("", !0)
|
|
3608
3645
|
], 64))), 128))
|
|
3609
3646
|
], 64))), 128)),
|
|
3610
|
-
(u(!0),
|
|
3647
|
+
(u(!0), r(g, null, C(Qe.value, (e, n) => (u(), r(g, {
|
|
3611
3648
|
key: `tag_plot_${n}`
|
|
3612
3649
|
}, [
|
|
3613
|
-
(u(!0),
|
|
3614
|
-
key: `tag_plot_${n}_${
|
|
3650
|
+
(u(!0), r(g, null, C(e.plots, (a, i) => (u(), r(g, {
|
|
3651
|
+
key: `tag_plot_${n}_${i}`
|
|
3615
3652
|
}, [
|
|
3616
|
-
[
|
|
3653
|
+
[F.value, _.value, mt.value].includes(i) && e.useTag && e.useTag === "end" && t.value.plot.tag.followValue ? (u(), r("div", {
|
|
3617
3654
|
key: 0,
|
|
3618
3655
|
ref_for: !0,
|
|
3619
|
-
ref: (o) => wl(n,
|
|
3656
|
+
ref: (o) => wl(n, i, o, "right", "plot"),
|
|
3620
3657
|
class: "vue-ui-xy-tag",
|
|
3621
3658
|
"data-tag": "right",
|
|
3622
3659
|
style: L({
|
|
3623
3660
|
position: "fixed",
|
|
3624
3661
|
top: v(zt)({
|
|
3625
|
-
svgElement:
|
|
3662
|
+
svgElement: _e.value,
|
|
3626
3663
|
x: c.value.right + t.value.plot.tag.fontSize / 1.5,
|
|
3627
3664
|
y: a.y,
|
|
3628
|
-
element:
|
|
3665
|
+
element: We.value[`${n}_${i}_right_plot`],
|
|
3629
3666
|
position: "right"
|
|
3630
3667
|
}).top + "px",
|
|
3631
3668
|
left: v(zt)({
|
|
3632
|
-
svgElement:
|
|
3669
|
+
svgElement: _e.value,
|
|
3633
3670
|
x: c.value.right + t.value.plot.tag.fontSize / 1.5,
|
|
3634
3671
|
y: a.y,
|
|
3635
|
-
element:
|
|
3672
|
+
element: We.value[`${n}_${i}_right_plot`],
|
|
3636
3673
|
position: "right"
|
|
3637
3674
|
}).left + "px",
|
|
3638
3675
|
height: "fit-content",
|
|
@@ -3644,14 +3681,14 @@ const Qo = {
|
|
|
3644
3681
|
opacity: 1
|
|
3645
3682
|
})
|
|
3646
3683
|
}, [
|
|
3647
|
-
(u(),
|
|
3648
|
-
|
|
3684
|
+
(u(), r("svg", Gs, [
|
|
3685
|
+
p("path", {
|
|
3649
3686
|
d: "M 0,10 10,0 10,20 Z",
|
|
3650
3687
|
fill: e.color,
|
|
3651
3688
|
stroke: "none"
|
|
3652
|
-
}, null, 8,
|
|
3689
|
+
}, null, 8, Us)
|
|
3653
3690
|
])),
|
|
3654
|
-
|
|
3691
|
+
p("div", {
|
|
3655
3692
|
class: "vue-ui-xy-tag-content",
|
|
3656
3693
|
innerHTML: v(Se)(
|
|
3657
3694
|
t.value.plot.tag.formatter,
|
|
@@ -3659,32 +3696,32 @@ const Qo = {
|
|
|
3659
3696
|
e.name,
|
|
3660
3697
|
{
|
|
3661
3698
|
datapoint: a,
|
|
3662
|
-
seriesIndex:
|
|
3699
|
+
seriesIndex: i,
|
|
3663
3700
|
serieName: e.name
|
|
3664
3701
|
}
|
|
3665
3702
|
)
|
|
3666
|
-
}, null, 8,
|
|
3703
|
+
}, null, 8, qs)
|
|
3667
3704
|
], 4)) : f("", !0),
|
|
3668
|
-
[
|
|
3705
|
+
[F.value, _.value, mt.value].includes(i) && e.useTag && e.useTag === "start" && t.value.plot.tag.followValue ? (u(), r("div", {
|
|
3669
3706
|
key: 1,
|
|
3670
3707
|
ref_for: !0,
|
|
3671
|
-
ref: (o) => wl(n,
|
|
3708
|
+
ref: (o) => wl(n, i, o, "left", "plot"),
|
|
3672
3709
|
class: "vue-ui-xy-tag",
|
|
3673
3710
|
"data-tag": "left",
|
|
3674
3711
|
style: L({
|
|
3675
3712
|
position: "fixed",
|
|
3676
3713
|
top: v(zt)({
|
|
3677
|
-
svgElement:
|
|
3714
|
+
svgElement: _e.value,
|
|
3678
3715
|
x: c.value.left - t.value.plot.tag.fontSize / 1.5,
|
|
3679
3716
|
y: a.y,
|
|
3680
|
-
element:
|
|
3717
|
+
element: We.value[`${n}_${i}_left_plot`],
|
|
3681
3718
|
position: "left"
|
|
3682
3719
|
}).top + "px",
|
|
3683
3720
|
left: v(zt)({
|
|
3684
|
-
svgElement:
|
|
3721
|
+
svgElement: _e.value,
|
|
3685
3722
|
x: c.value.left - t.value.plot.tag.fontSize / 1.5,
|
|
3686
3723
|
y: a.y,
|
|
3687
|
-
element:
|
|
3724
|
+
element: We.value[`${n}_${i}_left_plot`],
|
|
3688
3725
|
position: "left"
|
|
3689
3726
|
}).left + "px",
|
|
3690
3727
|
height: "fit-content",
|
|
@@ -3696,14 +3733,14 @@ const Qo = {
|
|
|
3696
3733
|
opacity: 1
|
|
3697
3734
|
})
|
|
3698
3735
|
}, [
|
|
3699
|
-
(u(),
|
|
3700
|
-
|
|
3736
|
+
(u(), r("svg", Zs, [
|
|
3737
|
+
p("path", {
|
|
3701
3738
|
d: "M 0,0 10,10 0,20 Z",
|
|
3702
3739
|
fill: e.color,
|
|
3703
3740
|
stroke: "none"
|
|
3704
|
-
}, null, 8,
|
|
3741
|
+
}, null, 8, Ks)
|
|
3705
3742
|
])),
|
|
3706
|
-
|
|
3743
|
+
p("div", {
|
|
3707
3744
|
class: "vue-ui-xy-tag-content",
|
|
3708
3745
|
innerHTML: v(Se)(
|
|
3709
3746
|
t.value.plot.tag.formatter,
|
|
@@ -3711,20 +3748,20 @@ const Qo = {
|
|
|
3711
3748
|
e.name,
|
|
3712
3749
|
{
|
|
3713
3750
|
datapoint: a,
|
|
3714
|
-
seriesIndex:
|
|
3751
|
+
seriesIndex: i,
|
|
3715
3752
|
serieName: e.name
|
|
3716
3753
|
}
|
|
3717
3754
|
)
|
|
3718
|
-
}, null, 8,
|
|
3755
|
+
}, null, 8, Js)
|
|
3719
3756
|
], 4)) : f("", !0)
|
|
3720
3757
|
], 64))), 128))
|
|
3721
3758
|
], 64))), 128)),
|
|
3722
|
-
t.value.chart.zoom.preview.enable ? (u(),
|
|
3723
|
-
t.value.chart.zoom.show &&
|
|
3759
|
+
t.value.chart.zoom.preview.enable ? (u(), r(g, { key: 5 }, [
|
|
3760
|
+
t.value.chart.zoom.show && $e.value > 6 && it.value ? (u(), Ge(_n, {
|
|
3724
3761
|
ref_key: "chartSlicer",
|
|
3725
3762
|
ref: Ne,
|
|
3726
3763
|
key: `slicer_${Zt.value}`,
|
|
3727
|
-
max:
|
|
3764
|
+
max: $e.value,
|
|
3728
3765
|
min: 0,
|
|
3729
3766
|
valueStart: y.value.start,
|
|
3730
3767
|
valueEnd: y.value.end,
|
|
@@ -3751,7 +3788,7 @@ const Qo = {
|
|
|
3751
3788
|
minimapSelectionRadius: t.value.chart.zoom.minimap.selectionRadius,
|
|
3752
3789
|
minimapLineColor: t.value.chart.zoom.minimap.lineColor,
|
|
3753
3790
|
minimapSelectedColorOpacity: t.value.chart.zoom.minimap.selectedColorOpacity,
|
|
3754
|
-
minimapSelectedIndex:
|
|
3791
|
+
minimapSelectedIndex: _.value,
|
|
3755
3792
|
minimapIndicatorColor: t.value.chart.zoom.minimap.indicatorColor,
|
|
3756
3793
|
verticalHandles: t.value.chart.zoom.minimap.verticalHandles,
|
|
3757
3794
|
refreshStartPoint: t.value.chart.zoom.startIndex !== null ? t.value.chart.zoom.startIndex : 0,
|
|
@@ -3770,12 +3807,12 @@ const Qo = {
|
|
|
3770
3807
|
]),
|
|
3771
3808
|
_: 3
|
|
3772
3809
|
}, 8, ["max", "valueStart", "valueEnd", "start", "end", "selectedSeries", "customFormat", "background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "usePreciseLabels", "preciseLabels", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "timeLabels", "isPreview"])) : f("", !0)
|
|
3773
|
-
], 64)) : (u(),
|
|
3774
|
-
t.value.chart.zoom.show &&
|
|
3810
|
+
], 64)) : (u(), r(g, { key: 6 }, [
|
|
3811
|
+
t.value.chart.zoom.show && $e.value > 6 && it.value ? (u(), Ge(tn, {
|
|
3775
3812
|
ref_key: "chartSlicer",
|
|
3776
3813
|
ref: Ne,
|
|
3777
3814
|
key: `slicer_${Zt.value}`,
|
|
3778
|
-
max:
|
|
3815
|
+
max: $e.value,
|
|
3779
3816
|
min: 0,
|
|
3780
3817
|
valueStart: y.value.start,
|
|
3781
3818
|
valueEnd: y.value.end,
|
|
@@ -3786,8 +3823,8 @@ const Qo = {
|
|
|
3786
3823
|
background: t.value.chart.zoom.color,
|
|
3787
3824
|
fontSize: t.value.chart.zoom.fontSize,
|
|
3788
3825
|
useResetSlot: t.value.chart.zoom.useResetSlot,
|
|
3789
|
-
labelLeft:
|
|
3790
|
-
labelRight:
|
|
3826
|
+
labelLeft: _a.value.left,
|
|
3827
|
+
labelRight: _a.value.right,
|
|
3791
3828
|
textColor: t.value.chart.color,
|
|
3792
3829
|
inputColor: t.value.chart.zoom.color,
|
|
3793
3830
|
selectColor: t.value.chart.zoom.highlightColor,
|
|
@@ -3798,7 +3835,7 @@ const Qo = {
|
|
|
3798
3835
|
minimapSelectionRadius: t.value.chart.zoom.minimap.selectionRadius,
|
|
3799
3836
|
minimapLineColor: t.value.chart.zoom.minimap.lineColor,
|
|
3800
3837
|
minimapSelectedColorOpacity: t.value.chart.zoom.minimap.selectedColorOpacity,
|
|
3801
|
-
minimapSelectedIndex:
|
|
3838
|
+
minimapSelectedIndex: _.value,
|
|
3802
3839
|
minimapIndicatorColor: t.value.chart.zoom.minimap.indicatorColor,
|
|
3803
3840
|
verticalHandles: t.value.chart.zoom.minimap.verticalHandles,
|
|
3804
3841
|
refreshStartPoint: t.value.chart.zoom.startIndex !== null ? t.value.chart.zoom.startIndex : 0,
|
|
@@ -3814,27 +3851,27 @@ const Qo = {
|
|
|
3814
3851
|
_: 3
|
|
3815
3852
|
}, 8, ["max", "valueStart", "valueEnd", "start", "end", "background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : f("", !0)
|
|
3816
3853
|
], 64)),
|
|
3817
|
-
|
|
3854
|
+
p("div", {
|
|
3818
3855
|
id: `legend-bottom-${G.value}`
|
|
3819
|
-
}, null, 8,
|
|
3820
|
-
Ke.value ? (u(), Ge(
|
|
3856
|
+
}, null, 8, Qs),
|
|
3857
|
+
Ke.value ? (u(), Ge(Mo, {
|
|
3821
3858
|
key: 7,
|
|
3822
3859
|
to: t.value.chart.legend.position === "top" ? `#legend-top-${G.value}` : `#legend-bottom-${G.value}`
|
|
3823
3860
|
}, [
|
|
3824
|
-
t.value.chart.legend.show ? (u(),
|
|
3861
|
+
t.value.chart.legend.show ? (u(), r("div", {
|
|
3825
3862
|
key: 0,
|
|
3826
3863
|
ref_key: "chartLegend",
|
|
3827
3864
|
ref: at,
|
|
3828
3865
|
class: "vue-ui-xy-legend",
|
|
3829
3866
|
style: L(`font-size:${t.value.chart.legend.fontSize}px`)
|
|
3830
3867
|
}, [
|
|
3831
|
-
(u(!0),
|
|
3868
|
+
(u(!0), r(g, null, C(rt.value, (e, n) => (u(), r("div", {
|
|
3832
3869
|
key: `div_legend_item_${n}`,
|
|
3833
3870
|
onClick: (a) => ga(e),
|
|
3834
3871
|
class: Ve({ "vue-ui-xy-legend-item-alone": rt.value.length === 1, "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": ce.value.includes(e.id) })
|
|
3835
3872
|
}, [
|
|
3836
|
-
oe.value[e.type] === "line" ? (u(),
|
|
3837
|
-
|
|
3873
|
+
oe.value[e.type] === "line" ? (u(), r("svg", ei, [
|
|
3874
|
+
p("rect", {
|
|
3838
3875
|
x: "0",
|
|
3839
3876
|
y: "7.5",
|
|
3840
3877
|
rx: "1.5",
|
|
@@ -3843,8 +3880,8 @@ const Qo = {
|
|
|
3843
3880
|
height: "3",
|
|
3844
3881
|
width: "20",
|
|
3845
3882
|
fill: e.color
|
|
3846
|
-
}, null, 8,
|
|
3847
|
-
|
|
3883
|
+
}, null, 8, ti),
|
|
3884
|
+
al(Rl, {
|
|
3848
3885
|
plot: { x: 10, y: 9 },
|
|
3849
3886
|
radius: 4,
|
|
3850
3887
|
color: e.color,
|
|
@@ -3852,8 +3889,8 @@ const Qo = {
|
|
|
3852
3889
|
stroke: t.value.chart.backgroundColor,
|
|
3853
3890
|
strokeWidth: 0.5
|
|
3854
3891
|
}, null, 8, ["color", "shape", "stroke"])
|
|
3855
|
-
])) : oe.value[e.type] === "bar" ? (u(),
|
|
3856
|
-
oe.value[e.type] === "bar" && l.$slots.pattern ? (u(),
|
|
3892
|
+
])) : oe.value[e.type] === "bar" ? (u(), r("svg", li, [
|
|
3893
|
+
oe.value[e.type] === "bar" && l.$slots.pattern ? (u(), r("rect", {
|
|
3857
3894
|
key: 0,
|
|
3858
3895
|
x: "0",
|
|
3859
3896
|
y: "0",
|
|
@@ -3862,8 +3899,8 @@ const Qo = {
|
|
|
3862
3899
|
width: "40",
|
|
3863
3900
|
stroke: "none",
|
|
3864
3901
|
fill: e.color
|
|
3865
|
-
}, null, 8,
|
|
3866
|
-
oe.value[e.type] === "bar" ? (u(),
|
|
3902
|
+
}, null, 8, ai)) : f("", !0),
|
|
3903
|
+
oe.value[e.type] === "bar" ? (u(), r("rect", {
|
|
3867
3904
|
key: 1,
|
|
3868
3905
|
x: "0",
|
|
3869
3906
|
y: "0",
|
|
@@ -3872,20 +3909,20 @@ const Qo = {
|
|
|
3872
3909
|
width: "40",
|
|
3873
3910
|
stroke: "none",
|
|
3874
3911
|
fill: l.$slots.pattern ? `url(#pattern_${G.value}_${e.slotAbsoluteIndex})` : e.color
|
|
3875
|
-
}, null, 8,
|
|
3876
|
-
])) : (u(),
|
|
3877
|
-
|
|
3912
|
+
}, null, 8, oi)) : f("", !0)
|
|
3913
|
+
])) : (u(), r("svg", ni, [
|
|
3914
|
+
al(Rl, {
|
|
3878
3915
|
plot: { x: 6, y: 6 },
|
|
3879
3916
|
radius: 5,
|
|
3880
3917
|
color: e.color,
|
|
3881
3918
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle"
|
|
3882
3919
|
}, null, 8, ["color", "shape"])
|
|
3883
3920
|
])),
|
|
3884
|
-
|
|
3921
|
+
p("span", {
|
|
3885
3922
|
style: L(`color:${t.value.chart.legend.color}`)
|
|
3886
3923
|
}, le(e.name), 5)
|
|
3887
|
-
], 10,
|
|
3888
|
-
], 4)) : (u(),
|
|
3924
|
+
], 10, js))), 128))
|
|
3925
|
+
], 4)) : (u(), r("div", {
|
|
3889
3926
|
key: 1,
|
|
3890
3927
|
ref_key: "chartLegend",
|
|
3891
3928
|
ref: at
|
|
@@ -3893,15 +3930,15 @@ const Qo = {
|
|
|
3893
3930
|
J(l.$slots, "legend", { legend: rt.value }, void 0, !0)
|
|
3894
3931
|
], 512))
|
|
3895
3932
|
], 8, ["to"])) : f("", !0),
|
|
3896
|
-
l.$slots.source ? (u(),
|
|
3933
|
+
l.$slots.source ? (u(), r("div", {
|
|
3897
3934
|
key: 8,
|
|
3898
3935
|
ref_key: "source",
|
|
3899
|
-
ref:
|
|
3936
|
+
ref: It,
|
|
3900
3937
|
dir: "auto"
|
|
3901
3938
|
}, [
|
|
3902
3939
|
J(l.$slots, "source", {}, void 0, !0)
|
|
3903
3940
|
], 512)) : f("", !0),
|
|
3904
|
-
|
|
3941
|
+
al(v(ie), {
|
|
3905
3942
|
show: k.value.showTooltip && ft.value,
|
|
3906
3943
|
backgroundColor: t.value.chart.tooltip.backgroundColor,
|
|
3907
3944
|
color: t.value.chart.tooltip.color,
|
|
@@ -3913,7 +3950,7 @@ const Qo = {
|
|
|
3913
3950
|
position: t.value.chart.tooltip.position,
|
|
3914
3951
|
offsetY: t.value.chart.tooltip.offsetY,
|
|
3915
3952
|
parent: l.$refs.chart,
|
|
3916
|
-
content:
|
|
3953
|
+
content: mo.value,
|
|
3917
3954
|
isFullscreen: ye.value,
|
|
3918
3955
|
isCustom: t.value.chart.tooltip.customFormat && typeof t.value.chart.tooltip.customFormat == "function",
|
|
3919
3956
|
smooth: t.value.chart.tooltip.smooth,
|
|
@@ -3927,7 +3964,7 @@ const Qo = {
|
|
|
3927
3964
|
]),
|
|
3928
3965
|
_: 3
|
|
3929
3966
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
3930
|
-
it.value ? (u(), Ge(v(
|
|
3967
|
+
it.value ? (u(), Ge(v(Gt), {
|
|
3931
3968
|
key: 9,
|
|
3932
3969
|
hideDetails: "",
|
|
3933
3970
|
config: {
|
|
@@ -3944,33 +3981,33 @@ const Qo = {
|
|
|
3944
3981
|
}
|
|
3945
3982
|
}, {
|
|
3946
3983
|
content: xe(() => [
|
|
3947
|
-
|
|
3984
|
+
p("div", {
|
|
3948
3985
|
style: L(`${v(m) ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
3949
3986
|
}, [
|
|
3950
|
-
|
|
3951
|
-
Ql(
|
|
3987
|
+
p("div", ui, [
|
|
3988
|
+
Ql(p("input", {
|
|
3952
3989
|
type: "checkbox",
|
|
3953
3990
|
"onUpdate:modelValue": s[7] || (s[7] = (e) => kt.value = e)
|
|
3954
3991
|
}, null, 512), [
|
|
3955
|
-
[
|
|
3992
|
+
[Co, kt.value]
|
|
3956
3993
|
]),
|
|
3957
|
-
|
|
3994
|
+
p("div", {
|
|
3958
3995
|
onClick: s[8] || (s[8] = (e) => kt.value = !kt.value),
|
|
3959
3996
|
style: { cursor: "pointer" }
|
|
3960
3997
|
}, [
|
|
3961
|
-
|
|
3998
|
+
al(v(Tt), {
|
|
3962
3999
|
name: "chartLine",
|
|
3963
4000
|
size: 20,
|
|
3964
4001
|
stroke: t.value.chart.color
|
|
3965
4002
|
}, null, 8, ["stroke"])
|
|
3966
4003
|
])
|
|
3967
4004
|
]),
|
|
3968
|
-
kt.value ? (u(), Ge(v(
|
|
4005
|
+
kt.value ? (u(), Ge(v(ul), {
|
|
3969
4006
|
key: `sparkline_${Ot.value}`,
|
|
3970
|
-
dataset:
|
|
3971
|
-
config:
|
|
4007
|
+
dataset: vo.value,
|
|
4008
|
+
config: ho.value
|
|
3972
4009
|
}, null, 8, ["dataset", "config"])) : (u(), Ge(v(Be), {
|
|
3973
|
-
key: `table_${
|
|
4010
|
+
key: `table_${cl.value}`,
|
|
3974
4011
|
colNames: Al.value.colNames,
|
|
3975
4012
|
head: Al.value.head,
|
|
3976
4013
|
body: Al.value.body,
|
|
@@ -3979,10 +4016,10 @@ const Qo = {
|
|
|
3979
4016
|
onClose: s[9] || (s[9] = (e) => k.value.showTable = !1)
|
|
3980
4017
|
}, {
|
|
3981
4018
|
th: xe(({ th: e }) => [
|
|
3982
|
-
|
|
4019
|
+
p("div", { innerHTML: e }, null, 8, si)
|
|
3983
4020
|
]),
|
|
3984
4021
|
td: xe(({ td: e }) => [
|
|
3985
|
-
|
|
4022
|
+
Ao(le(isNaN(Number(e)) ? e : v(Ue)({
|
|
3986
4023
|
p: t.value.chart.labels.prefix,
|
|
3987
4024
|
v: e,
|
|
3988
4025
|
s: t.value.chart.labels.suffix,
|
|
@@ -3995,10 +4032,10 @@ const Qo = {
|
|
|
3995
4032
|
]),
|
|
3996
4033
|
_: 1
|
|
3997
4034
|
}, 8, ["config"])) : f("", !0),
|
|
3998
|
-
v(ne) ? (u(), Ge(
|
|
3999
|
-
], 46,
|
|
4035
|
+
v(ne) ? (u(), Ge(Zo, { key: 10 })) : f("", !0)
|
|
4036
|
+
], 46, $n));
|
|
4000
4037
|
}
|
|
4001
|
-
},
|
|
4038
|
+
}, Si = /* @__PURE__ */ Ga(ii, [["__scopeId", "data-v-e25fb0fc"]]);
|
|
4002
4039
|
export {
|
|
4003
|
-
|
|
4040
|
+
Si as default
|
|
4004
4041
|
};
|