vue-data-ui 3.0.0 → 3.0.2
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-r2f8Bpd-.js → Arrow-uNlT54JX.js} +1 -1
- package/dist/{BaseDraggableDialog-CGGcf8d8.js → BaseDraggableDialog-CujvKo06.js} +2 -2
- package/dist/{BaseIcon-CXtL10fo.js → BaseIcon-B8CknCYk.js} +1 -1
- package/dist/{ColorPicker-H91bBsqM.js → ColorPicker-Dmdfq2VV.js} +2 -2
- package/dist/{DataTable-BSSXpM7w.js → DataTable-osx68WLA.js} +2 -2
- package/dist/{Legend-BUk0WvWJ.js → Legend-CQsASoei.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DQDgPoW8.js → NonSvgPenAndPaper-BWz0WtJG.js} +3 -3
- package/dist/{PackageVersion-CJ6Vd7V5.js → PackageVersion-DZGrOKw5.js} +1 -1
- package/dist/{PenAndPaper-D3zudcNI.js → PenAndPaper-CdXspg5R.js} +3 -3
- package/dist/{Shape-BRzOzubn.js → Shape-0sW2StrO.js} +1 -1
- package/dist/{Slicer-MID8pgT3.js → Slicer-52shR-Vu.js} +2 -2
- package/dist/{SparkTooltip-DATI1fGZ.js → SparkTooltip-Dxrruu4s.js} +1 -1
- package/dist/{Title-BGu6gEd2.js → Title-CntvKJss.js} +1 -1
- package/dist/{Tooltip-Bh2zYSoM.js → Tooltip-DF8e4iB9.js} +1 -1
- package/dist/{UserOptions-Ck8fz9f4.js → UserOptions-DQyIO0ts.js} +2 -2
- package/dist/{dom-to-png-DhIh24Ti.js → dom-to-png-KC3tMd8p.js} +1 -1
- package/dist/{img-DrR839Ot.js → img-Cv4nScI0.js} +1 -1
- package/dist/{index-BtNwOUja.js → index-B9Ct1B_p.js} +1 -1
- package/dist/{pdf-DoShrdT5.js → pdf-D0GEfQrI.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-FmDQyX4z.js → useAutoSizeLabelsInsideViewbox-DvdDLkzw.js} +1 -1
- package/dist/{useNestedProp-f2H3m6Yj.js → useNestedProp-C0gKxLur.js} +1 -1
- package/dist/{usePrinter-DUNjpQNe.js → usePrinter-DcZXg1hH.js} +2 -2
- package/dist/{vue-data-ui-D7QVxNhO.js → vue-data-ui-DZMDT7RA.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-ITaF-6Kn.js → vue-ui-3d-bar-BnCv2CD_.js} +6 -6
- package/dist/{vue-ui-accordion-BKUrAowe.js → vue-ui-accordion-B31QK9Hj.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DxsuDr6o.js → vue-ui-age-pyramid-Bc4V0a3k.js} +6 -6
- package/dist/{vue-ui-annotator-B06QtxgJ.js → vue-ui-annotator-D8haGQiH.js} +2 -2
- package/dist/{vue-ui-bullet-B7Fy45tA.js → vue-ui-bullet-n7Y6jYLj.js} +7 -7
- package/dist/{vue-ui-candlestick-Dw0U4uIQ.js → vue-ui-candlestick-nCI5GlX7.js} +7 -7
- package/dist/{vue-ui-carousel-table-DGz0nw28.js → vue-ui-carousel-table-JH2NjnOk.js} +4 -4
- package/dist/{vue-ui-chestnut-CFfKYm9i.js → vue-ui-chestnut-CQtV9AR4.js} +5 -5
- package/dist/{vue-ui-chord-EhlQhMSs.js → vue-ui-chord-CGi_iSaL.js} +8 -8
- package/dist/{vue-ui-circle-pack-BHrrEUUd.js → vue-ui-circle-pack-C8v3Okle.js} +6 -6
- package/dist/{vue-ui-cursor-Dd-HtWzG.js → vue-ui-cursor-0DHciy1D.js} +2 -2
- package/dist/{vue-ui-dashboard-6R8udDY3.js → vue-ui-dashboard-CDHJk8sC.js} +62 -62
- package/dist/{vue-ui-digits-zKn3uhGN.js → vue-ui-digits-Bn1P1K9u.js} +2 -2
- package/dist/{vue-ui-donut-BtnIwS_E.js → vue-ui-donut-GqHffshG.js} +8 -8
- package/dist/{vue-ui-donut-evolution-DHo1MuMM.js → vue-ui-donut-evolution-Crn7Nnpy.js} +8 -8
- package/dist/{vue-ui-dumbbell-Czi9r9Na.js → vue-ui-dumbbell-C__nFV3V.js} +7 -7
- package/dist/{vue-ui-flow-jOfM0RZY.js → vue-ui-flow-7q9o4Jxp.js} +7 -7
- package/dist/{vue-ui-funnel-tBvVpdhy.js → vue-ui-funnel-DjmlAdRf.js} +6 -6
- package/dist/{vue-ui-galaxy-IdoY2oqG.js → vue-ui-galaxy-Crh7xV6s.js} +5 -5
- package/dist/{vue-ui-gauge-DR6Xm_Hz.js → vue-ui-gauge-PjjV3JmB.js} +7 -7
- package/dist/{vue-ui-gizmo-Dto73UsB.js → vue-ui-gizmo-DREMjBvZ.js} +3 -3
- package/dist/{vue-ui-heatmap-zmFv-0z1.js → vue-ui-heatmap-D2CF8Vn8.js} +7 -7
- package/dist/{vue-ui-history-plot-ILemyyYw.js → vue-ui-history-plot-DX31nVYa.js} +7 -7
- package/dist/{vue-ui-kpi-hmqSCvxr.js → vue-ui-kpi-FtnzfW7L.js} +3 -3
- package/dist/{vue-ui-mini-loader-CbD-E8ci.js → vue-ui-mini-loader-DaHPhzVf.js} +2 -2
- package/dist/{vue-ui-molecule-mTy6YIm6.js → vue-ui-molecule--4MdUCOi.js} +5 -5
- package/dist/{vue-ui-mood-radar-BEnSYV3Q.js → vue-ui-mood-radar-Ci416qv5.js} +7 -7
- package/dist/{vue-ui-nested-donuts-CGE9dmJK.js → vue-ui-nested-donuts-DoVSN0qE.js} +7 -7
- package/dist/{vue-ui-onion-Dh2J9GV0.js → vue-ui-onion-ChqyoLl8.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-xsgmMIJK.js → vue-ui-parallel-coordinate-plot-BPsH_W7X.js} +8 -8
- package/dist/{vue-ui-quadrant-DA0Kw6eq.js → vue-ui-quadrant-CLQqKyzu.js} +8 -8
- package/dist/{vue-ui-quick-chart-DKbxF5Yt.js → vue-ui-quick-chart-DogHdO42.js} +6 -6
- package/dist/{vue-ui-radar-BFY9bN_h.js → vue-ui-radar-B4rGvzKn.js} +8 -8
- package/dist/{vue-ui-rating-Bh35aujf.js → vue-ui-rating-BvopSHNQ.js} +2 -2
- package/dist/{vue-ui-relation-circle-B-05kQ_l.js → vue-ui-relation-circle-C6GEmCiw.js} +7 -7
- package/dist/{vue-ui-ridgeline-CuGfF83t.js → vue-ui-ridgeline-BJVJ02bA.js} +8 -8
- package/dist/{vue-ui-rings-DrQXXzAM.js → vue-ui-rings-BRTxWhKI.js} +8 -8
- package/dist/{vue-ui-scatter-CWn9c7e9.js → vue-ui-scatter-D_BP7XBR.js} +8 -8
- package/dist/{vue-ui-skeleton-oG4Bm5nL.js → vue-ui-skeleton-C_nf6VDZ.js} +3 -3
- package/dist/{vue-ui-smiley-Cnwba_gV.js → vue-ui-smiley-DHCpzxMs.js} +2 -2
- package/dist/{vue-ui-spark-trend-D9iNCf4o.js → vue-ui-spark-trend-DfM5OJIx.js} +3 -3
- package/dist/{vue-ui-sparkbar-iJkiubZC.js → vue-ui-sparkbar-BrvOwqG_.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BH3uA5rh.js → vue-ui-sparkgauge-Dp2OkGrS.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B3kR62pf.js → vue-ui-sparkhistogram-K_7q57W8.js} +4 -4
- package/dist/{vue-ui-sparkline-DczR2ZAf.js → vue-ui-sparkline-BiEu6kq8.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-Cg0ItRGH.js → vue-ui-sparkstackbar-BNlyxt3y.js} +3 -3
- package/dist/{vue-ui-stackbar-d4PrzcGS.js → vue-ui-stackbar-BKb_dgUq.js} +9 -9
- package/dist/{vue-ui-strip-plot-BXBpN5rl.js → vue-ui-strip-plot-D6dwyO-N.js} +7 -7
- package/dist/{vue-ui-table-BXOLZXuz.js → vue-ui-table-B9UWta9o.js} +3 -3
- package/dist/{vue-ui-table-heatmap-7YT7VF2H.js → vue-ui-table-heatmap-JkwDydPq.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BfgqajJ2.js → vue-ui-table-sparkline-BOKgPT0e.js} +4 -4
- package/dist/{vue-ui-thermometer-C7Tg6HLz.js → vue-ui-thermometer-Dj0CVTk3.js} +7 -7
- package/dist/{vue-ui-timer-Ch5JP1pQ.js → vue-ui-timer-B407nCRd.js} +5 -5
- package/dist/{vue-ui-tiremarks-fY-4pWAK.js → vue-ui-tiremarks-C_betH5B.js} +6 -6
- package/dist/{vue-ui-treemap-DTSX6suB.js → vue-ui-treemap-D0gScsaQ.js} +8 -8
- package/dist/{vue-ui-vertical-bar-C-i2dRnU.js → vue-ui-vertical-bar-D3aoix_0.js} +9 -9
- package/dist/{vue-ui-waffle-BbgLlhGH.js → vue-ui-waffle-hpsuszbt.js} +8 -8
- package/dist/{vue-ui-wheel-waZf462K.js → vue-ui-wheel-0etwsu-o.js} +6 -6
- package/dist/{vue-ui-word-cloud-DtLK91Dk.js → vue-ui-word-cloud-tsEprRhX.js} +6 -6
- package/dist/{vue-ui-world-Cx4uuwTY.js → vue-ui-world-BCtGvXjy.js} +6 -6
- package/dist/{vue-ui-xy-DDOT8cyx.js → vue-ui-xy-BoT_c9bU.js} +836 -836
- package/dist/{vue-ui-xy-canvas-CUCsC8vD.js → vue-ui-xy-canvas-B1s9twtZ.js} +8 -8
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { useCssVars as uo, computed as k, ref as p, onMounted as rt, onBeforeUnmount as ct, watch as ol, nextTick as Kl, onUpdated as no, createElementBlock as i, openBlock as n, createElementVNode as b, createCommentVNode as g, renderSlot as J, normalizeStyle as $, createVNode as ql, withDirectives as Yt, unref as v, Fragment as m, renderList as _, normalizeClass as Oe, withKeys as _a, vModelText as La, toDisplayString as te, defineAsyncComponent as Sl, useSlots as io, getCurrentInstance as so, toRefs as ro, watchEffect as co, createBlock as Ue, createSlots as vo, withCtx as me, normalizeProps as rl, guardReactiveProps as $l, mergeProps as _t, vModelCheckbox as ho, createTextVNode as fo } from "vue";
|
|
2
|
-
import { c as Ct, V as zt, U as It, X as go, F as Ke, u as mo, f as Ft, t as xo, a4 as Ze, d as bo, D as st, ac as Nl, e as po, p as yo, ad as Lt, a9 as D, ae as ko, h as H, af as Ma, ag as Aa, ah as wo, ai as Ca, aj as za, k as pe, y as So, z as $o, _ as Ia, R as al, i as Fe, x as Ol, s as qe, a7 as j, L as _o, ak as Mt, I as Lo, al as _l, C as We, a as Mo, b as Ao, o as Ta, v as Co, w as zo, E as Zl } from "./index-
|
|
2
|
+
import { c as Ct, V as zt, U as It, X as go, F as Ke, u as mo, f as Ft, t as xo, a4 as Ze, d as bo, D as st, ac as Nl, e as po, p as yo, ad as Lt, a9 as D, ae as ko, h as H, af as Ma, ag as Aa, ah as wo, ai as Ca, aj as za, k as pe, y as So, z as $o, _ as Ia, R as al, i as Fe, x as Ol, s as qe, a7 as j, L as _o, ak as Mt, I as Lo, al as _l, C as We, a as Mo, b as Ao, o as Ta, v as Co, w as zo, E as Zl } from "./index-B9Ct1B_p.js";
|
|
3
3
|
import { t as Dt, u as Io } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as To } from "./usePrinter-
|
|
4
|
+
import { u as To } from "./usePrinter-DcZXg1hH.js";
|
|
5
5
|
import { u as No, B as Oo } from "./useLoading-D7YHNtLX.js";
|
|
6
|
-
import { u as Wt } from "./useNestedProp-
|
|
6
|
+
import { u as Wt } from "./useNestedProp-C0gKxLur.js";
|
|
7
7
|
import { u as Na } from "./useTimeLabels-DkzmKfZn.js";
|
|
8
8
|
import { u as Ro } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
9
|
-
import Po from "./img-
|
|
10
|
-
import Ho from "./Title-
|
|
11
|
-
import { S as Vo } from "./Slicer-
|
|
12
|
-
import { _ as At } from "./Shape-
|
|
13
|
-
import Eo from "./BaseIcon-
|
|
9
|
+
import Po from "./img-Cv4nScI0.js";
|
|
10
|
+
import Ho from "./Title-CntvKJss.js";
|
|
11
|
+
import { S as Vo } from "./Slicer-52shR-Vu.js";
|
|
12
|
+
import { _ as At } from "./Shape-0sW2StrO.js";
|
|
13
|
+
import Eo from "./BaseIcon-B8CknCYk.js";
|
|
14
14
|
import { _ as Oa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
15
|
const Bo = {
|
|
16
16
|
class: "vue-data-ui-slicer-labels",
|
|
@@ -331,17 +331,17 @@ const Bo = {
|
|
|
331
331
|
function Cl(x) {
|
|
332
332
|
Dl.value = x === "start" ? 1 : 0;
|
|
333
333
|
}
|
|
334
|
-
const
|
|
334
|
+
const e = p(!1), ie = p({
|
|
335
335
|
width: 0,
|
|
336
336
|
left: 0
|
|
337
337
|
});
|
|
338
338
|
ol([de, he], async () => {
|
|
339
339
|
if (await Kl(), !bl.value || !il.value) {
|
|
340
|
-
|
|
340
|
+
e.value = !1, ie.value = { width: 0, left: 0 };
|
|
341
341
|
return;
|
|
342
342
|
}
|
|
343
343
|
const x = bl.value.getBoundingClientRect(), f = il.value.getBoundingClientRect();
|
|
344
|
-
|
|
344
|
+
e.value = x.x + x.width > f.x;
|
|
345
345
|
const d = x.x + x.width / 2, V = f.x + f.width / 2, ze = x.width + f.width, pl = (d + V) / 2;
|
|
346
346
|
ie.value = {
|
|
347
347
|
width: ze,
|
|
@@ -610,10 +610,10 @@ const Bo = {
|
|
|
610
610
|
backgroundColor: A.selectColor,
|
|
611
611
|
border: `1px solid ${Je.value}`,
|
|
612
612
|
zIndex: `${Dl.value + 4}`,
|
|
613
|
-
visibility:
|
|
613
|
+
visibility: e.value || F.value.left === F.value.right ? "hidden" : "visible"
|
|
614
614
|
})
|
|
615
615
|
}, te(F.value.left), 7)) : g("", !0),
|
|
616
|
-
(
|
|
616
|
+
(e.value || F.value.left === F.value.right) && (F.value.left || F.value.right) ? (n(), i("div", {
|
|
617
617
|
key: 4,
|
|
618
618
|
ref: "tooltipMerge",
|
|
619
619
|
class: Oe({
|
|
@@ -648,7 +648,7 @@ const Bo = {
|
|
|
648
648
|
backgroundColor: A.selectColor,
|
|
649
649
|
border: `1px solid ${Je.value}`,
|
|
650
650
|
zIndex: "4",
|
|
651
|
-
visibility:
|
|
651
|
+
visibility: e.value || F.value.left === F.value.right ? "hidden" : "visible"
|
|
652
652
|
})
|
|
653
653
|
}, te(F.value.right), 7)) : g("", !0)
|
|
654
654
|
], 544)
|
|
@@ -720,15 +720,15 @@ const Bo = {
|
|
|
720
720
|
},
|
|
721
721
|
emits: ["selectTimeLabel", "selectX", "selectLegend"],
|
|
722
722
|
setup(A, { expose: Tt, emit: Nt }) {
|
|
723
|
-
const h = A, Re = Sl(() => import("./DataTable-
|
|
723
|
+
const h = A, Re = Sl(() => import("./DataTable-osx68WLA.js")), de = Sl(() => import("./Tooltip-DF8e4iB9.js")), he = Sl(() => import("./UserOptions-DQyIO0ts.js")), Ll = Sl(() => import("./BaseIcon-B8CknCYk.js")), Jl = Sl(() => import("./vue-ui-table-sparkline-BOKgPT0e.js")), Rl = Sl(() => import("./vue-ui-accordion-B31QK9Hj.js")), cl = Sl(() => import("./PackageVersion-DZGrOKw5.js")), vl = Sl(() => import("./PenAndPaper-CdXspg5R.js")), Pl = Nt, Pe = io(), Ot = so(), { vue_ui_xy: Ye } = mo(), ue = p(null), ul = p(null), Ae = p(null), dl = p(null), Ml = p(null), Al = p(null), Je = p(null), Hl = p(null), Vl = p(null), Qe = p(null), Z = p(null), $e = p(null), fe = p(null), ye = p(0), L = p(null), hl = p(!0), xe = p(600), ne = p(1e3), fl = p("0 0 1000 600"), Ql = p({ x: 0, y: 0 }), gl = p({ line: "line", bar: "bar", plot: "plot" }), ml = p(!1), nl = p(!1), El = p(!1), Ce = p(null), ae = p([]), Q = p(Ct()), vt = p(0), dt = p(0), jl = p(0), _e = p(!0), He = p(0), C = p(null), De = p(!1), Bl = p(!0), Fl = p(!0), ke = p(null), Ve = p({}), Wl = p(null), w = p(null), ht = k(() => ({
|
|
724
724
|
height: xe.value,
|
|
725
725
|
width: ne.value
|
|
726
726
|
})), xl = h.config.downsample && h.config.downsample.threshold ? h.config.downsample.threshold : 500;
|
|
727
727
|
function bl(t) {
|
|
728
728
|
return Number.isFinite(t) ? Math.max(0, Math.floor(t)) : 0;
|
|
729
729
|
}
|
|
730
|
-
function il(t, r,
|
|
731
|
-
return Number.isFinite(t) && Number.isFinite(r) && Math.abs(r) > 1e-9 ? t / r :
|
|
730
|
+
function il(t, r, l = 0) {
|
|
731
|
+
return Number.isFinite(t) && Number.isFinite(r) && Math.abs(r) > 1e-9 ? t / r : l;
|
|
732
732
|
}
|
|
733
733
|
const Yl = p(!1), y = p({
|
|
734
734
|
dataLabels: { show: !0 },
|
|
@@ -738,12 +738,12 @@ const Bo = {
|
|
|
738
738
|
useIndividualScale: !1
|
|
739
739
|
});
|
|
740
740
|
function je() {
|
|
741
|
-
Yl.value ? (y.value.isStacked =
|
|
741
|
+
Yl.value ? (y.value.isStacked = e.value.chart.grid.labels.yAxis.stacked, y.value.useIndividualScale == null && (y.value.useIndividualScale = e.value.chart.grid.labels.yAxis.useIndividualScale)) : (y.value = {
|
|
742
742
|
dataLabels: { show: !0 },
|
|
743
|
-
showTooltip:
|
|
744
|
-
showTable:
|
|
745
|
-
isStacked:
|
|
746
|
-
useIndividualScale:
|
|
743
|
+
showTooltip: e.value.chart.tooltip.show === !0,
|
|
744
|
+
showTable: e.value.showTable === !0,
|
|
745
|
+
isStacked: e.value.chart.grid.labels.yAxis.stacked,
|
|
746
|
+
useIndividualScale: e.value.chart.grid.labels.yAxis.useIndividualScale
|
|
747
747
|
}, Yl.value = !0);
|
|
748
748
|
}
|
|
749
749
|
const S = p({
|
|
@@ -788,9 +788,9 @@ const Bo = {
|
|
|
788
788
|
set(t) {
|
|
789
789
|
return t;
|
|
790
790
|
}
|
|
791
|
-
}),
|
|
791
|
+
}), e = p(Dl()), { loading: ie, FINAL_DATASET: F, manualLoading: x } = No({
|
|
792
792
|
...ro(h),
|
|
793
|
-
FINAL_CONFIG:
|
|
793
|
+
FINAL_CONFIG: e,
|
|
794
794
|
prepareConfig: Dl,
|
|
795
795
|
callback: () => {
|
|
796
796
|
Promise.resolve().then(async () => {
|
|
@@ -813,7 +813,7 @@ const Bo = {
|
|
|
813
813
|
}
|
|
814
814
|
],
|
|
815
815
|
skeletonConfig: xo({
|
|
816
|
-
defaultConfig:
|
|
816
|
+
defaultConfig: e.value,
|
|
817
817
|
userConfig: {
|
|
818
818
|
useCssAnimation: !1,
|
|
819
819
|
showTable: !1,
|
|
@@ -872,7 +872,7 @@ const Bo = {
|
|
|
872
872
|
}), f = k({
|
|
873
873
|
get: () => Math.max(...F.value.map((t) => Ze({ data: t.series, threshold: xl }).length)),
|
|
874
874
|
set: (t) => t
|
|
875
|
-
}), d = p({ start: 0, end: f.value }), V = p({ start: 0, end: f.value }), ze = k(() =>
|
|
875
|
+
}), d = p({ start: 0, end: f.value }), V = p({ start: 0, end: f.value }), ze = k(() => e.value.chart.zoom.preview.enable && (V.value.start !== d.value.start || V.value.end !== d.value.end));
|
|
876
876
|
function pl(t, r) {
|
|
877
877
|
V.value[t] = r;
|
|
878
878
|
}
|
|
@@ -881,23 +881,23 @@ const Bo = {
|
|
|
881
881
|
1,
|
|
882
882
|
...F.value.map((u) => Ze({
|
|
883
883
|
data: u.series,
|
|
884
|
-
threshold:
|
|
884
|
+
threshold: e.value.downsample.threshold
|
|
885
885
|
}).length)
|
|
886
886
|
);
|
|
887
|
-
let r = Math.max(0, Math.min(d.value.start ?? 0, t - 1)),
|
|
888
|
-
(!Number.isFinite(r) || !Number.isFinite(
|
|
887
|
+
let r = Math.max(0, Math.min(d.value.start ?? 0, t - 1)), l = Math.max(r + 1, Math.min(d.value.end ?? t, t));
|
|
888
|
+
(!Number.isFinite(r) || !Number.isFinite(l) || l <= r) && (r = 0, l = t), d.value = { start: r, end: l }, V.value.start = r, V.value.end = l;
|
|
889
889
|
}
|
|
890
890
|
const Rt = k(() => {
|
|
891
|
-
const { left: t, top: r, width:
|
|
891
|
+
const { left: t, top: r, width: l, height: u } = c.value, a = d.value.start, o = d.value.end - a, P = l / o, X = V.value.start - a, G = V.value.end - a, I = Math.max(0, Math.min(o, X)), O = Math.max(0, Math.min(o, G));
|
|
892
892
|
return {
|
|
893
893
|
x: t + I * P,
|
|
894
894
|
y: r,
|
|
895
895
|
width: (O - I) * P,
|
|
896
896
|
height: u,
|
|
897
|
-
fill:
|
|
898
|
-
stroke:
|
|
899
|
-
"stroke-width":
|
|
900
|
-
"stroke-dasharray":
|
|
897
|
+
fill: e.value.chart.zoom.preview.fill,
|
|
898
|
+
stroke: e.value.chart.zoom.preview.stroke,
|
|
899
|
+
"stroke-width": e.value.chart.zoom.preview.strokeWidth,
|
|
900
|
+
"stroke-dasharray": e.value.chart.zoom.preview.strokeDasharray,
|
|
901
901
|
"stroke-linecap": "round",
|
|
902
902
|
"stroke-linejoin": "round",
|
|
903
903
|
style: {
|
|
@@ -917,27 +917,27 @@ const Bo = {
|
|
|
917
917
|
}, { immediate: !0 });
|
|
918
918
|
const { isPrinting: et, isImaging: ft, generatePdf: Xt, generateImage: Gt } = To({
|
|
919
919
|
elementId: `vue-ui-xy_${Q.value}`,
|
|
920
|
-
fileName:
|
|
921
|
-
options:
|
|
922
|
-
}), Ra = p(!1), Ut = k(() => bo(
|
|
923
|
-
if (
|
|
924
|
-
return
|
|
920
|
+
fileName: e.value.chart.title.text || "vue-ui-xy",
|
|
921
|
+
options: e.value.chart.userOptions.print
|
|
922
|
+
}), Ra = p(!1), Ut = k(() => bo(e.value.customPalette)), gt = k(() => {
|
|
923
|
+
if (e.value.chart.grid.labels.yAxis.scaleMin !== null)
|
|
924
|
+
return e.value.chart.grid.labels.yAxis.scaleMin;
|
|
925
925
|
const t = Math.min(...sl.value.filter((r) => !ae.value.includes(r.id)).map((r) => Math.min(...r.series)));
|
|
926
926
|
return t > 0 ? 0 : t;
|
|
927
927
|
}), mt = k(() => {
|
|
928
|
-
if (
|
|
929
|
-
return
|
|
928
|
+
if (e.value.chart.grid.labels.yAxis.scaleMax)
|
|
929
|
+
return e.value.chart.grid.labels.yAxis.scaleMax;
|
|
930
930
|
const t = Math.max(...sl.value.filter((r) => !ae.value.includes(r.id)).map((r) => Math.max(...r.series)));
|
|
931
931
|
return gt.value === t ? t + 1 : t;
|
|
932
|
-
}), Xe = k(() =>
|
|
933
|
-
const
|
|
932
|
+
}), Xe = k(() => e.value.chart.grid.labels.yAxis.useNiceScale ? st(gt.value, mt.value < 0 ? 0 : mt.value, e.value.chart.grid.labels.yAxis.commonScaleSteps) : Nl(gt.value, mt.value < 0 ? 0 : mt.value, e.value.chart.grid.labels.yAxis.commonScaleSteps)), lt = k(() => [null, void 0].includes(e.value.chart.grid.labels.yAxis.scaleMin) ? Xe.value.min >= 0 ? 0 : Math.abs(Xe.value.min) : -Xe.value.min), sl = k(() => hl.value ? F.value.map((t, r) => {
|
|
933
|
+
const l = Ze({
|
|
934
934
|
data: t.series,
|
|
935
|
-
threshold:
|
|
935
|
+
threshold: e.value.downsample.threshold
|
|
936
936
|
}), u = `uniqueId_${r}`;
|
|
937
937
|
return {
|
|
938
938
|
...t,
|
|
939
939
|
slotAbsoluteIndex: r,
|
|
940
|
-
series:
|
|
940
|
+
series: l.map((a) => Lt(a) ? a : null).slice(d.value.start, d.value.end),
|
|
941
941
|
color: po(t.color ? t.color : Ut.value[r] ? Ut.value[r] : yo[r]),
|
|
942
942
|
id: u,
|
|
943
943
|
scaleLabel: t.scaleLabel || u
|
|
@@ -945,23 +945,23 @@ const Bo = {
|
|
|
945
945
|
}) : F.value), el = k(() => sl.value.map((t, r) => ({
|
|
946
946
|
absoluteIndex: r,
|
|
947
947
|
...t,
|
|
948
|
-
series: t.series.map((
|
|
948
|
+
series: t.series.map((l) => l + lt.value),
|
|
949
949
|
absoluteValues: t.series,
|
|
950
950
|
segregate: () => ra(t),
|
|
951
951
|
isSegregated: ae.value.includes(t.id)
|
|
952
952
|
}))), Ee = k(() => sl.value.map((t, r) => ({
|
|
953
953
|
...t,
|
|
954
|
-
series: t.series.map((
|
|
954
|
+
series: t.series.map((l) => l + lt.value),
|
|
955
955
|
absoluteValues: t.series
|
|
956
956
|
})).filter((t) => !ae.value.includes(t.id)));
|
|
957
957
|
function Pa() {
|
|
958
958
|
let t = 0;
|
|
959
959
|
Z.value && (t = Array.from(Z.value.querySelectorAll("text")).reduce((a, s) => {
|
|
960
960
|
const o = s.getComputedTextLength();
|
|
961
|
-
return (o > a ? o : a) +
|
|
961
|
+
return (o > a ? o : a) + e.value.chart.grid.labels.yAxis.scaleValueOffsetX;
|
|
962
962
|
}, 0));
|
|
963
|
-
const r = Vl.value ? Vl.value.getBoundingClientRect().width +
|
|
964
|
-
return t + r +
|
|
963
|
+
const r = Vl.value ? Vl.value.getBoundingClientRect().width + e.value.chart.grid.labels.axis.yLabelOffsetX + S.value.yAxis : 0, l = e.value.chart.grid.labels.yAxis.crosshairSize;
|
|
964
|
+
return t + r + l;
|
|
965
965
|
}
|
|
966
966
|
const Pt = p(0), Ha = Dt((t) => {
|
|
967
967
|
Pt.value = t;
|
|
@@ -969,10 +969,10 @@ const Bo = {
|
|
|
969
969
|
co((t) => {
|
|
970
970
|
const r = Qe.value;
|
|
971
971
|
if (!r) return;
|
|
972
|
-
const
|
|
972
|
+
const l = new ResizeObserver((u) => {
|
|
973
973
|
Ha(u[0].contentRect.height);
|
|
974
974
|
});
|
|
975
|
-
|
|
975
|
+
l.observe(r), t(() => l.disconnect());
|
|
976
976
|
}), ct(() => {
|
|
977
977
|
Pt.value = 0;
|
|
978
978
|
});
|
|
@@ -984,50 +984,50 @@ const Bo = {
|
|
|
984
984
|
}), Va = k(() => F.value.some((t) => t.useProgression)), c = k(() => {
|
|
985
985
|
let t = 0;
|
|
986
986
|
const r = 36;
|
|
987
|
-
|
|
988
|
-
const
|
|
987
|
+
e.value.chart.grid.labels.show && (y.value.useIndividualScale && !y.value.isStacked ? t = (F.value.length - ae.value.length) * (e.value.chart.grid.labels.yAxis.labelWidth + r) : y.value.useIndividualScale && y.value.isStacked ? t = e.value.chart.grid.labels.yAxis.labelWidth + r : t = Pa());
|
|
988
|
+
const l = e.value.chart.labels.fontSize * 1.1, u = Va.value ? 24 : 6;
|
|
989
989
|
if (Qe.value) {
|
|
990
990
|
const o = Qe.value.getBBox().x;
|
|
991
991
|
o < 0 && (t += Math.abs(o));
|
|
992
992
|
}
|
|
993
|
-
const a = ne.value - t -
|
|
993
|
+
const a = ne.value - t - e.value.chart.grid.labels.yAxis.crosshairSize - u - e.value.chart.padding.left - e.value.chart.padding.right, s = e.value.chart.grid.position === "middle" ? 0 : a / M.value / 2;
|
|
994
994
|
return {
|
|
995
|
-
top:
|
|
996
|
-
right: ne.value - u -
|
|
997
|
-
bottom: xe.value - Zt.value -
|
|
998
|
-
left: t +
|
|
999
|
-
height: xe.value - Zt.value -
|
|
995
|
+
top: e.value.chart.padding.top + l,
|
|
996
|
+
right: ne.value - u - e.value.chart.padding.right,
|
|
997
|
+
bottom: xe.value - Zt.value - e.value.chart.padding.bottom - e.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
998
|
+
left: t + e.value.chart.grid.labels.yAxis.crosshairSize - s + e.value.chart.padding.left,
|
|
999
|
+
height: xe.value - Zt.value - e.value.chart.padding.top - e.value.chart.padding.bottom - l - e.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
1000
1000
|
width: a,
|
|
1001
1001
|
scaleLabelX: t,
|
|
1002
1002
|
individualOffsetX: r
|
|
1003
1003
|
};
|
|
1004
1004
|
}), Ea = k(() => {
|
|
1005
|
-
const t =
|
|
1005
|
+
const t = e.value.chart.grid.position === "middle" ? 1 : 0, r = M.value + t, l = D(c.value.top), u = D(c.value.bottom);
|
|
1006
1006
|
return Array.from({ length: r }).map((a, s) => {
|
|
1007
1007
|
const o = c.value.width / M.value * s + c.value.left + ee.value;
|
|
1008
|
-
return `M${o},${
|
|
1008
|
+
return `M${o},${l} L${o},${u}`;
|
|
1009
1009
|
}).join(" ");
|
|
1010
1010
|
}), Ba = k(() => {
|
|
1011
|
-
if (!
|
|
1011
|
+
if (!e.value.chart.grid.labels.xAxis.showCrosshairs)
|
|
1012
1012
|
return "";
|
|
1013
1013
|
const {
|
|
1014
1014
|
showOnlyAtModulo: t,
|
|
1015
1015
|
showOnlyFirstAndLast: r,
|
|
1016
|
-
modulo:
|
|
1017
|
-
} =
|
|
1016
|
+
modulo: l
|
|
1017
|
+
} = e.value.chart.grid.labels.xAxisLabels, u = q.value.length ? Math.min(l, [...new Set(q.value.map((s) => s.text))].length) : l, a = Math.floor((d.value.end - d.value.start) / u);
|
|
1018
1018
|
return q.value.map((s, o) => {
|
|
1019
1019
|
if (!s) return null;
|
|
1020
1020
|
const P = t && M.value <= u, X = !r && !t, G = r && !t && (o === 0 || o === q.value.length - 1), I = r && !t && w.value === o, O = !r && t && o % a === 0;
|
|
1021
1021
|
if (!(P || X || G || I || O))
|
|
1022
1022
|
return null;
|
|
1023
|
-
const U = c.value.width / M.value, T = c.value.left + U * o + U / 2, E =
|
|
1023
|
+
const U = c.value.width / M.value, T = c.value.left + U * o + U / 2, E = e.value.chart.grid.labels.xAxis.crosshairSize, N = e.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero, se = N ? we.value - (we.value === c.value.bottom ? 0 : E / 2) : c.value.bottom, ge = N ? we.value + E / (we.value === c.value.bottom ? 1 : 2) : c.value.bottom + E;
|
|
1024
1024
|
return `M${T},${se} L${T},${ge}`;
|
|
1025
1025
|
}).filter((s) => s !== null).join(" ");
|
|
1026
1026
|
});
|
|
1027
1027
|
function qt() {
|
|
1028
1028
|
return !!Ot?.vnode.props?.onSelectTimeLabel;
|
|
1029
1029
|
}
|
|
1030
|
-
function Fa(t, r,
|
|
1030
|
+
function Fa(t, r, l) {
|
|
1031
1031
|
if (!Wl.value) {
|
|
1032
1032
|
const u = document.createElement("canvas");
|
|
1033
1033
|
Wl.value = u.getContext("2d");
|
|
@@ -1038,8 +1038,8 @@ const Bo = {
|
|
|
1038
1038
|
const t = ue.value.querySelectorAll(".vue-ui-xy-tag");
|
|
1039
1039
|
t.length && Array.from(t).forEach((r) => r.style.opacity = "0");
|
|
1040
1040
|
}
|
|
1041
|
-
function xt(t, r,
|
|
1042
|
-
|
|
1041
|
+
function xt(t, r, l, u, a) {
|
|
1042
|
+
l && (Ve.value[`${t}_${r}_${u}_${a}`] = l);
|
|
1043
1043
|
}
|
|
1044
1044
|
const Jt = p(!1);
|
|
1045
1045
|
async function Qt(t = !1) {
|
|
@@ -1049,40 +1049,40 @@ const Bo = {
|
|
|
1049
1049
|
ml.value = !ml.value;
|
|
1050
1050
|
}
|
|
1051
1051
|
const q = k(() => {
|
|
1052
|
-
const t = Math.max(...F.value.map((r) => Ze({ data: r.series, threshold:
|
|
1052
|
+
const t = Math.max(...F.value.map((r) => Ze({ data: r.series, threshold: e.value.downsample.threshold }).length));
|
|
1053
1053
|
return Na({
|
|
1054
|
-
values:
|
|
1054
|
+
values: e.value.chart.grid.labels.xAxisLabels.values,
|
|
1055
1055
|
maxDatapoints: t,
|
|
1056
|
-
formatter:
|
|
1056
|
+
formatter: e.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
1057
1057
|
start: d.value.start,
|
|
1058
1058
|
end: d.value.end
|
|
1059
1059
|
});
|
|
1060
1060
|
}), Wa = k(() => {
|
|
1061
|
-
const t = Math.max(...F.value.map((r) => Ze({ data: r.series, threshold:
|
|
1061
|
+
const t = Math.max(...F.value.map((r) => Ze({ data: r.series, threshold: e.value.downsample.threshold }).length));
|
|
1062
1062
|
return Na({
|
|
1063
|
-
values:
|
|
1063
|
+
values: e.value.chart.grid.labels.xAxisLabels.values,
|
|
1064
1064
|
maxDatapoints: t,
|
|
1065
|
-
formatter:
|
|
1065
|
+
formatter: e.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
1066
1066
|
start: 0,
|
|
1067
1067
|
end: f.value
|
|
1068
1068
|
});
|
|
1069
1069
|
}), bt = k(() => {
|
|
1070
|
-
const t =
|
|
1070
|
+
const t = e.value.chart.grid.labels.xAxisLabels.modulo;
|
|
1071
1071
|
return q.value.length ? Math.min(t, [...new Set(q.value.map((r) => r.text))].length) : t;
|
|
1072
1072
|
});
|
|
1073
1073
|
function jt(t, r) {
|
|
1074
|
-
const
|
|
1074
|
+
const l = Ee.value.map((u) => ({
|
|
1075
1075
|
shape: u.shape || null,
|
|
1076
1076
|
name: u.name,
|
|
1077
1077
|
color: u.color,
|
|
1078
1078
|
type: u.type,
|
|
1079
1079
|
value: u.absoluteValues.find((a, s) => s === r),
|
|
1080
1080
|
comments: u.comments || [],
|
|
1081
|
-
prefix: u.prefix ||
|
|
1082
|
-
suffix: u.suffix ||
|
|
1081
|
+
prefix: u.prefix || e.value.chart.labels.prefix,
|
|
1082
|
+
suffix: u.suffix || e.value.chart.labels.suffix
|
|
1083
1083
|
}));
|
|
1084
1084
|
Pl("selectTimeLabel", {
|
|
1085
|
-
datapoint:
|
|
1085
|
+
datapoint: l,
|
|
1086
1086
|
absoluteIndex: t.absoluteIndex,
|
|
1087
1087
|
label: t.text
|
|
1088
1088
|
});
|
|
@@ -1095,31 +1095,31 @@ const Bo = {
|
|
|
1095
1095
|
C.value = t;
|
|
1096
1096
|
}
|
|
1097
1097
|
function la() {
|
|
1098
|
-
y.value.isStacked = !y.value.isStacked, y.value.isStacked ? y.value.useIndividualScale = !0 : y.value.useIndividualScale =
|
|
1098
|
+
y.value.isStacked = !y.value.isStacked, y.value.isStacked ? y.value.useIndividualScale = !0 : y.value.useIndividualScale = e.value.chart.grid.labels.yAxis.useIndividualScale;
|
|
1099
1099
|
}
|
|
1100
1100
|
function Vt(t) {
|
|
1101
|
-
ut.value && t.autoScaling && (
|
|
1101
|
+
ut.value && t.autoScaling && (e.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${t.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), e.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${t.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
|
|
1102
1102
|
}
|
|
1103
1103
|
function Ya(t, r) {
|
|
1104
|
-
const
|
|
1105
|
-
for (let a = 0; a < r.length && a <
|
|
1104
|
+
const l = bl(t), u = Array(l).fill(0);
|
|
1105
|
+
for (let a = 0; a < r.length && a < l; a += 1) u[a] = r[a] ?? 0;
|
|
1106
1106
|
return u;
|
|
1107
1107
|
}
|
|
1108
1108
|
function Da(t) {
|
|
1109
|
-
const r = Math.max(...F.value.map((
|
|
1110
|
-
return t > r ? r : t < 0 ||
|
|
1109
|
+
const r = Math.max(...F.value.map((l) => Ze({ data: l.series, threshold: e.value.downsample.threshold }).length));
|
|
1110
|
+
return t > r ? r : t < 0 || e.value.chart.zoom.startIndex !== null && t < e.value.chart.zoom.startIndex ? e.value.chart.zoom.startIndex !== null ? e.value.chart.zoom.startIndex + 1 : 1 : t;
|
|
1111
1111
|
}
|
|
1112
1112
|
async function pt() {
|
|
1113
1113
|
await Kl(), await Kl();
|
|
1114
|
-
const { startIndex: t, endIndex: r } =
|
|
1114
|
+
const { startIndex: t, endIndex: r } = e.value.chart.zoom, l = Ae.value, u = Math.max(
|
|
1115
1115
|
...F.value.map(
|
|
1116
1116
|
(a) => Ze({
|
|
1117
1117
|
data: a.series,
|
|
1118
|
-
threshold:
|
|
1118
|
+
threshold: e.value.downsample.threshold
|
|
1119
1119
|
}).length
|
|
1120
1120
|
)
|
|
1121
1121
|
);
|
|
1122
|
-
(t != null || r != null) &&
|
|
1122
|
+
(t != null || r != null) && l ? (t != null && (d.value.start = t, l.setStartValue(t)), r != null && (d.value.end = r + 1, l.setEndValue(Da(r + 1)))) : (d.value = { start: 0, end: u }, ye.value += 1), V.value.start = d.value.start, V.value.end = d.value.end, Xl();
|
|
1123
1123
|
}
|
|
1124
1124
|
async function ta() {
|
|
1125
1125
|
await pt();
|
|
@@ -1133,16 +1133,16 @@ const Bo = {
|
|
|
1133
1133
|
}
|
|
1134
1134
|
const we = k(() => isNaN(zl(lt.value)) ? c.value.bottom : c.value.bottom - c.value.height * zl(lt.value));
|
|
1135
1135
|
function oa(t) {
|
|
1136
|
-
const r = ![null, void 0].includes(
|
|
1136
|
+
const r = ![null, void 0].includes(e.value.chart.grid.labels.yAxis.scaleMin) && e.value.chart.grid.labels.yAxis.scaleMin > 0 && gt.value >= 0 ? c.value.bottom : we.value;
|
|
1137
1137
|
return t.value >= 0 ? H(r - t.y <= 0 ? 1e-5 : r - t.y) : H(t.y - we.value <= 0 ? 1e-5 : t.y - we.value);
|
|
1138
1138
|
}
|
|
1139
1139
|
function ua(t) {
|
|
1140
1140
|
return t.value >= 0 ? H(t.zeroPosition - t.y <= 0 ? 1e-5 : t.zeroPosition - t.y) : H(t.y - t.zeroPosition <= 0 ? 1e-5 : t.zeroPosition - t.y);
|
|
1141
1141
|
}
|
|
1142
1142
|
const oe = k(() => {
|
|
1143
|
-
const t = Math.max(1, M.value), r = Math.max(1, c.value.width),
|
|
1143
|
+
const t = Math.max(1, M.value), r = Math.max(1, c.value.width), l = Math.max(1, sl.value.filter((u) => u.type === "bar" && !ae.value.includes(u.id)).length);
|
|
1144
1144
|
return {
|
|
1145
|
-
bar: il(r, t *
|
|
1145
|
+
bar: il(r, t * l, 1),
|
|
1146
1146
|
plot: il(r, t, 1),
|
|
1147
1147
|
line: il(r, t, 1)
|
|
1148
1148
|
};
|
|
@@ -1172,20 +1172,20 @@ const Bo = {
|
|
|
1172
1172
|
tt.value != null && Ua(tt.value);
|
|
1173
1173
|
}
|
|
1174
1174
|
function Ua(t) {
|
|
1175
|
-
const r = Ee.value.map((
|
|
1176
|
-
name:
|
|
1177
|
-
value: [null, void 0, NaN].includes(
|
|
1178
|
-
color:
|
|
1179
|
-
type:
|
|
1175
|
+
const r = Ee.value.map((l) => ({
|
|
1176
|
+
name: l.name,
|
|
1177
|
+
value: [null, void 0, NaN].includes(l.absoluteValues[t]) ? null : l.absoluteValues[t],
|
|
1178
|
+
color: l.color,
|
|
1179
|
+
type: l.type
|
|
1180
1180
|
}));
|
|
1181
1181
|
Pl(
|
|
1182
1182
|
"selectX",
|
|
1183
1183
|
{
|
|
1184
1184
|
dataset: r,
|
|
1185
1185
|
index: t,
|
|
1186
|
-
indexLabel:
|
|
1186
|
+
indexLabel: e.value.chart.grid.labels.xAxisLabels.values[t]
|
|
1187
1187
|
}
|
|
1188
|
-
),
|
|
1188
|
+
), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: r, seriesIndex: t + d.value.start });
|
|
1189
1189
|
}
|
|
1190
1190
|
function Za() {
|
|
1191
1191
|
return el.value.map((t) => ({
|
|
@@ -1197,13 +1197,13 @@ const Bo = {
|
|
|
1197
1197
|
}
|
|
1198
1198
|
async function qa({ scale: t = 2 } = {}) {
|
|
1199
1199
|
if (!ue.value) return;
|
|
1200
|
-
const { width: r, height:
|
|
1200
|
+
const { width: r, height: l } = ue.value.getBoundingClientRect(), u = r / l, { imageUri: a, base64: s } = await Po({ domElement: ue.value, base64: !0, img: !0, scale: t });
|
|
1201
1201
|
return {
|
|
1202
1202
|
imageUri: a,
|
|
1203
1203
|
base64: s,
|
|
1204
|
-
title:
|
|
1204
|
+
title: e.value.chart.title.text,
|
|
1205
1205
|
width: r,
|
|
1206
|
-
height:
|
|
1206
|
+
height: l,
|
|
1207
1207
|
aspectRatio: u
|
|
1208
1208
|
};
|
|
1209
1209
|
}
|
|
@@ -1222,33 +1222,33 @@ const Bo = {
|
|
|
1222
1222
|
}))), He.value += 1;
|
|
1223
1223
|
}
|
|
1224
1224
|
const Ka = k(() => {
|
|
1225
|
-
const t =
|
|
1225
|
+
const t = e.value.chart.title.text || "Chart visualization", r = e.value.chart.title.subtitle.text || "";
|
|
1226
1226
|
return `${t}. ${r}`;
|
|
1227
1227
|
}), ca = k(() => ({
|
|
1228
|
-
linePlot: M.value >
|
|
1229
|
-
})), Ja = k(() =>
|
|
1230
|
-
if (Array.isArray(
|
|
1231
|
-
return
|
|
1232
|
-
const
|
|
1228
|
+
linePlot: M.value > e.value.line.dot.hideAboveMaxSerieLength
|
|
1229
|
+
})), Ja = k(() => e.value.chart.userOptions.show && (!e.value.chart.title.show || !e.value.chart.title.text)), Qa = k(() => {
|
|
1230
|
+
if (Array.isArray(e.value.chart.highlightArea))
|
|
1231
|
+
return e.value.chart.highlightArea.map((r) => {
|
|
1232
|
+
const l = Math.min(r.to, f.value - 1);
|
|
1233
1233
|
return {
|
|
1234
1234
|
...r,
|
|
1235
|
-
span: r.from ===
|
|
1235
|
+
span: r.from === l ? 1 : l < r.from ? 0 : l - r.from + 1
|
|
1236
1236
|
};
|
|
1237
1237
|
});
|
|
1238
1238
|
const t = {
|
|
1239
|
-
...
|
|
1240
|
-
to: Math.min(
|
|
1239
|
+
...e.value.chart.highlightArea,
|
|
1240
|
+
to: Math.min(e.value.chart.highlightArea.to, f.value - 1)
|
|
1241
1241
|
};
|
|
1242
1242
|
return [{ ...t, span: t.from === t.to ? 1 : t.to < t.from ? 0 : t.to - t.from + 1 }];
|
|
1243
1243
|
}), ja = k(() => hl.value ? F.value.map((t, r) => ({
|
|
1244
1244
|
...t,
|
|
1245
1245
|
series: Ze({
|
|
1246
1246
|
data: t.series,
|
|
1247
|
-
threshold:
|
|
1247
|
+
threshold: e.value.downsample.threshold
|
|
1248
1248
|
}),
|
|
1249
1249
|
id: `uniqueId_${r}`
|
|
1250
1250
|
})) : F.value), eo = k(() => Ee.value.map((t) => {
|
|
1251
|
-
const r = t.absoluteValues.map((
|
|
1251
|
+
const r = t.absoluteValues.map((l) => [void 0, null].includes(l) ? 0 : l);
|
|
1252
1252
|
return {
|
|
1253
1253
|
id: t.id,
|
|
1254
1254
|
name: t.name,
|
|
@@ -1256,33 +1256,33 @@ const Bo = {
|
|
|
1256
1256
|
values: Ya(M.value, r)
|
|
1257
1257
|
};
|
|
1258
1258
|
})), lo = k(() => ({
|
|
1259
|
-
responsiveBreakpoint:
|
|
1260
|
-
roundingValues:
|
|
1259
|
+
responsiveBreakpoint: e.value.table.responsiveBreakpoint,
|
|
1260
|
+
roundingValues: e.value.table.rounding,
|
|
1261
1261
|
showAverage: !1,
|
|
1262
1262
|
showMedian: !1,
|
|
1263
1263
|
showTotal: !1,
|
|
1264
|
-
fontFamily:
|
|
1265
|
-
prefix:
|
|
1266
|
-
suffix:
|
|
1264
|
+
fontFamily: e.value.chart.fontFamily,
|
|
1265
|
+
prefix: e.value.chart.labels.prefix,
|
|
1266
|
+
suffix: e.value.chart.labels.suffix,
|
|
1267
1267
|
colNames: q.value.map((t) => t.text),
|
|
1268
1268
|
thead: {
|
|
1269
|
-
backgroundColor:
|
|
1270
|
-
color:
|
|
1271
|
-
outline:
|
|
1269
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
1270
|
+
color: e.value.table.th.color,
|
|
1271
|
+
outline: e.value.table.th.outline
|
|
1272
1272
|
},
|
|
1273
1273
|
tbody: {
|
|
1274
|
-
backgroundColor:
|
|
1275
|
-
color:
|
|
1276
|
-
outline:
|
|
1274
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
1275
|
+
color: e.value.table.td.color,
|
|
1276
|
+
outline: e.value.table.td.outline
|
|
1277
1277
|
},
|
|
1278
1278
|
userOptions: {
|
|
1279
1279
|
show: !1
|
|
1280
1280
|
}
|
|
1281
|
-
})), ee = k(() =>
|
|
1282
|
-
const t = Object.groupBy(Il.value, (
|
|
1283
|
-
for (const [
|
|
1281
|
+
})), ee = k(() => e.value.chart.grid.position === "middle" ? 0 : c.value.width / M.value / 2), Il = k(() => ko(el.value.filter((t) => !ae.value.includes(t.id)))), z = k(() => {
|
|
1282
|
+
const t = Object.groupBy(Il.value, (l) => l.scaleLabel), r = {};
|
|
1283
|
+
for (const [l, u] of Object.entries(t)) {
|
|
1284
1284
|
const a = u.flatMap((s) => s.absoluteValues);
|
|
1285
|
-
r[
|
|
1285
|
+
r[l] = {
|
|
1286
1286
|
min: Math.min(...a) || 0,
|
|
1287
1287
|
max: Math.max(...a) || 1,
|
|
1288
1288
|
groupId: `scale_group_${Ct()}`
|
|
@@ -1292,43 +1292,43 @@ const Bo = {
|
|
|
1292
1292
|
}), to = k(() => {
|
|
1293
1293
|
const t = sl.value.filter((r) => r.type === "bar").filter((r) => !ae.value.includes(r.id)).length;
|
|
1294
1294
|
return c.value.width / M.value / t - kt.value * t;
|
|
1295
|
-
}), kt = k(() => oe.value.line *
|
|
1296
|
-
if (!
|
|
1297
|
-
const t = ja.value.filter((a) => !ae.value.includes(a.id)), r = Math.max(...t.map((a) => a.series.length)),
|
|
1295
|
+
}), kt = k(() => oe.value.line * e.value.bar.periodGap), wt = k(() => Math.max(1e-5, Gl() - (y.value.useIndividualScale && y.value.isStacked ? 0 : kt.value))), St = k(() => wt.value * Math.min(Math.abs(e.value.bar.innerGap), 0.95)), va = k(() => {
|
|
1296
|
+
if (!e.value.chart.zoom.minimap.show) return [];
|
|
1297
|
+
const t = ja.value.filter((a) => !ae.value.includes(a.id)), r = Math.max(...t.map((a) => a.series.length)), l = [];
|
|
1298
1298
|
for (let a = 0; a < r; a += 1)
|
|
1299
|
-
|
|
1300
|
-
const u = Math.min(...
|
|
1301
|
-
return
|
|
1299
|
+
l.push(t.map((s) => s.series[a] || 0).reduce((s, o) => (s || 0) + (o || 0), 0));
|
|
1300
|
+
const u = Math.min(...l);
|
|
1301
|
+
return l.map((a) => a + (u < 0 ? Math.abs(u) : 0));
|
|
1302
1302
|
}), at = k(() => Ee.value.map((t) => ({
|
|
1303
1303
|
slotAbsoluteIndex: t.slotAbsoluteIndex,
|
|
1304
1304
|
shape: t.shape || null,
|
|
1305
1305
|
name: t.name,
|
|
1306
1306
|
color: t.color,
|
|
1307
1307
|
type: t.type,
|
|
1308
|
-
value: t.absoluteValues.find((r,
|
|
1308
|
+
value: t.absoluteValues.find((r, l) => l === w.value),
|
|
1309
1309
|
comments: t.comments || [],
|
|
1310
|
-
prefix: t.prefix ||
|
|
1311
|
-
suffix: t.suffix ||
|
|
1310
|
+
prefix: t.prefix || e.value.chart.labels.prefix,
|
|
1311
|
+
suffix: t.suffix || e.value.chart.labels.suffix
|
|
1312
1312
|
}))), da = k(() => Xe.value.ticks.map((t) => ({
|
|
1313
1313
|
y: t >= 0 ? we.value - c.value.height * zl(t) : we.value + c.value.height * zl(Math.abs(t)),
|
|
1314
1314
|
value: t,
|
|
1315
|
-
prefix:
|
|
1316
|
-
suffix:
|
|
1315
|
+
prefix: e.value.chart.labels.prefix,
|
|
1316
|
+
suffix: e.value.chart.labels.suffix
|
|
1317
1317
|
}))), ha = k(() => {
|
|
1318
|
-
const t =
|
|
1318
|
+
const t = e.value.chart.annotations;
|
|
1319
1319
|
if (!t || !Array.isArray(t) || t.every((I) => !I.show)) return [];
|
|
1320
1320
|
const r = t.filter(
|
|
1321
1321
|
(I) => I.show && (I.yAxis.yTop != null || I.yAxis.yBottom != null)
|
|
1322
1322
|
);
|
|
1323
1323
|
if (!r.length) return [];
|
|
1324
|
-
const { left:
|
|
1324
|
+
const { left: l, right: u } = c.value, a = we.value, s = c.value.height, o = Xe.value.min, X = Xe.value.max - o, G = (I) => {
|
|
1325
1325
|
const O = (I - 0) / X;
|
|
1326
1326
|
return a - O * s;
|
|
1327
1327
|
};
|
|
1328
1328
|
return r.map((I) => {
|
|
1329
1329
|
const { yAxis: { yTop: O, yBottom: U, label: T } } = I, E = O != null && U != null && O !== U, N = O == null ? null : G(O), se = U == null ? null : G(U), ge = Fa(T.fontSize);
|
|
1330
1330
|
ge.font = `${T.fontSize}px sans-serif`;
|
|
1331
|
-
const le = ge.measureText(T.text).width, Be = T.fontSize, tl = (T.position === "start" ?
|
|
1331
|
+
const le = ge.measureText(T.text).width, Be = T.fontSize, tl = (T.position === "start" ? l + T.padding.left : u - T.padding.right) + T.offsetX, Te = (N != null && se != null ? Math.min(N, se) : N ?? se) - T.fontSize / 3 + T.offsetY - T.padding.top;
|
|
1332
1332
|
let W;
|
|
1333
1333
|
T.textAnchor === "middle" ? W = tl - le / 2 - T.padding.left : T.textAnchor === "end" ? W = tl - le - T.padding.right : W = tl - T.padding.left;
|
|
1334
1334
|
const Y = Te - Be * 0.75 - T.padding.top;
|
|
@@ -1340,7 +1340,7 @@ const Bo = {
|
|
|
1340
1340
|
yTop: N,
|
|
1341
1341
|
yBottom: se,
|
|
1342
1342
|
config: I.yAxis,
|
|
1343
|
-
x1:
|
|
1343
|
+
x1: l,
|
|
1344
1344
|
x2: u,
|
|
1345
1345
|
_text: { x: tl, y: Te },
|
|
1346
1346
|
_box: {
|
|
@@ -1358,12 +1358,12 @@ const Bo = {
|
|
|
1358
1358
|
});
|
|
1359
1359
|
});
|
|
1360
1360
|
function fa(t, r) {
|
|
1361
|
-
const
|
|
1362
|
-
let a = !!
|
|
1363
|
-
return Ie(t[r].value) && a;
|
|
1361
|
+
const l = t[r - 1], u = t[r + 1];
|
|
1362
|
+
let a = !!l && !!u && l.value == null && u.value == null || !l && !!u && u.value == null || !!l && !u && l.value == null;
|
|
1363
|
+
return Ie(t[r].value) && a && e.value.line.cutNullValues;
|
|
1364
1364
|
}
|
|
1365
1365
|
const yl = k(() => {
|
|
1366
|
-
const t = Il.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), r = t.length,
|
|
1366
|
+
const t = Il.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), r = t.length, l = e.value.chart.grid.labels.yAxis.gap, u = y.value.isStacked, a = u ? l * (r - 1) : 0, s = c.value.height - a;
|
|
1367
1367
|
return t.filter((o) => o.type === "bar").map((o, P) => {
|
|
1368
1368
|
Vt(o);
|
|
1369
1369
|
const X = z.value[o.scaleLabel].min, G = z.value[o.scaleLabel].max;
|
|
@@ -1374,7 +1374,7 @@ const Bo = {
|
|
|
1374
1374
|
}, O = {
|
|
1375
1375
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
1376
1376
|
min: o.scaleMin || Math.min(...o.absoluteValues.filter((B) => ![void 0, null].includes(B))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((B) => ![null, void 0].includes(B)))
|
|
1377
|
-
}, U = o.scaleSteps ||
|
|
1377
|
+
}, U = o.scaleSteps || e.value.chart.grid.labels.yAxis.commonScaleSteps, T = 1.0000001, E = e.value.chart.grid.labels.yAxis.useNiceScale ? st(O.min, O.max === O.min ? O.max * T : O.max, U) : Nl(O.min, O.max === O.min ? O.max * T : O.max, U), N = e.value.chart.grid.labels.yAxis.useNiceScale ? st(I.valueMin, I.valueMax === I.valueMin ? I.valueMax * T : I.valueMax, U) : Nl(I.valueMin, I.valueMax === I.valueMin ? I.valueMax * T : I.valueMax, U), se = E.min >= 0 ? 0 : Math.abs(E.min), ge = 0, le = E.max + se, Be = N.max + Math.abs(ge), tl = o.stackIndex, Ul = r - 1 - tl, Te = u ? 1 - o.cumulatedStackRatio : 0, W = u ? s * Te + l * Ul : 0, Y = u ? s * o.stackRatio : c.value.height, re = c.value.bottom - W - Y * se / le, Ne = c.value.bottom - W - Y * ge / Be, Se = el.value.filter((B) => B.type === "bar").filter((B) => !ae.value.includes(B.id)).length, nt = o.series.map((B, ve) => {
|
|
1378
1378
|
const wl = y.value.useIndividualScale ? (o.absoluteValues[ve] + se) / le : zl(B), Tl = y.value.useIndividualScale && y.value.isStacked ? c.value.left + c.value.width / M.value * ve : c.value.left + oe.value.bar * P + oe.value.bar * ve * Se - to.value / 2 - P * kt.value;
|
|
1379
1379
|
return {
|
|
1380
1380
|
yOffset: H(W),
|
|
@@ -1401,20 +1401,20 @@ const Bo = {
|
|
|
1401
1401
|
}), K = E.ticks.map((B) => ({
|
|
1402
1402
|
y: B >= 0 ? re - Y * (B / le) : re + Y * Math.abs(B) / le,
|
|
1403
1403
|
value: B,
|
|
1404
|
-
prefix: o.prefix ||
|
|
1405
|
-
suffix: o.suffix ||
|
|
1404
|
+
prefix: o.prefix || e.value.chart.labels.prefix,
|
|
1405
|
+
suffix: o.suffix || e.value.chart.labels.suffix,
|
|
1406
1406
|
datapoint: o
|
|
1407
1407
|
})), ce = N.ticks.map((B) => {
|
|
1408
1408
|
const ve = (B - N.min) / (N.max - N.min);
|
|
1409
1409
|
return {
|
|
1410
1410
|
y: B >= 0 ? Ne - Y * ve : Ne + Y * ve,
|
|
1411
1411
|
value: B,
|
|
1412
|
-
prefix: o.prefix ||
|
|
1413
|
-
suffix: o.suffix ||
|
|
1412
|
+
prefix: o.prefix || e.value.chart.labels.prefix,
|
|
1413
|
+
suffix: o.suffix || e.value.chart.labels.suffix,
|
|
1414
1414
|
datapoint: o
|
|
1415
1415
|
};
|
|
1416
1416
|
});
|
|
1417
|
-
return z.value[o.scaleLabel].name = o.name, z.value[o.scaleLabel].groupName = o.scaleLabel, z.value[o.scaleLabel].groupColor =
|
|
1417
|
+
return z.value[o.scaleLabel].name = o.name, z.value[o.scaleLabel].groupName = o.scaleLabel, z.value[o.scaleLabel].groupColor = e.value.chart.grid.labels.yAxis.groupColor || o.color, z.value[o.scaleLabel].color = o.color, z.value[o.scaleLabel].scaleYLabels = o.autoScaling ? ce : K, z.value[o.scaleLabel].zeroPosition = o.autoScaling ? Ne : re, z.value[o.scaleLabel].individualMax = o.autoScaling ? Be : le, z.value[o.scaleLabel].scaleLabel = o.scaleLabel, z.value[o.scaleLabel].id = o.id, z.value[o.scaleLabel].yOffset = W, z.value[o.scaleLabel].individualHeight = Y, z.value[o.scaleLabel].autoScaleYLabels = ce, z.value[o.scaleLabel].unique = Il.value.filter((B) => B.scaleLabel === o.scaleLabel).length === 1, {
|
|
1418
1418
|
...o,
|
|
1419
1419
|
yOffset: W,
|
|
1420
1420
|
autoScaleYLabels: ce,
|
|
@@ -1428,7 +1428,7 @@ const Bo = {
|
|
|
1428
1428
|
};
|
|
1429
1429
|
});
|
|
1430
1430
|
}), Ge = k(() => {
|
|
1431
|
-
const t = Il.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), r = t.length,
|
|
1431
|
+
const t = Il.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), r = t.length, l = e.value.chart.grid.labels.yAxis.gap, u = y.value.isStacked, a = u ? l * (r - 1) : 0, s = c.value.height - a;
|
|
1432
1432
|
return t.filter((o) => o.type === "line").map((o, P) => {
|
|
1433
1433
|
Vt(o);
|
|
1434
1434
|
const X = z.value[o.scaleLabel].min, G = z.value[o.scaleLabel].max;
|
|
@@ -1439,7 +1439,7 @@ const Bo = {
|
|
|
1439
1439
|
}, O = {
|
|
1440
1440
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
1441
1441
|
min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
|
|
1442
|
-
}, U = o.scaleSteps ||
|
|
1442
|
+
}, U = o.scaleSteps || e.value.chart.grid.labels.yAxis.commonScaleSteps, T = 1.0000001, E = e.value.chart.grid.labels.yAxis.useNiceScale ? st(O.min, O.max === O.min ? O.max * T : O.max, U) : Nl(O.min, O.max === O.min ? O.max * T : O.max, U), N = e.value.chart.grid.labels.yAxis.useNiceScale ? st(I.valueMin, I.valueMax === I.valueMin ? I.valueMax * T : I.valueMax, U) : Nl(I.valueMin, I.valueMax === I.valueMin ? I.valueMax * T : I.valueMax, U), se = E.min >= 0 ? 0 : Math.abs(E.min), ge = 0, le = E.max + Math.abs(se), Be = N.max + Math.abs(ge), tl = o.stackIndex, Ul = r - 1 - tl, Te = u ? 1 - o.cumulatedStackRatio : 0, W = u ? s * Te + l * Ul : 0, Y = u ? s * o.stackRatio : c.value.height, re = c.value.bottom - W - Y * se / le, Ne = c.value.bottom - W - Y * ge / Be, Se = o.series.map((R, be) => {
|
|
1443
1443
|
const oo = y.value.useIndividualScale ? (o.absoluteValues[be] + Math.abs(se)) / le : zl(R);
|
|
1444
1444
|
return {
|
|
1445
1445
|
x: H(c.value.left + oe.value.line / 2 + oe.value.line * be),
|
|
@@ -1457,23 +1457,23 @@ const Bo = {
|
|
|
1457
1457
|
y: H(c.value.bottom - W - (Y * nt[be] || 0)),
|
|
1458
1458
|
value: o.absoluteValues[be],
|
|
1459
1459
|
comment: o.comments && o.comments.slice(d.value.start, d.value.end)[be] || ""
|
|
1460
|
-
}), kl =
|
|
1460
|
+
}), kl = e.value.line.cutNullValues ? Ma(Se) : zt(Se.filter((R) => R.value !== null)), K = e.value.line.cutNullValues ? Ma(Me) : zt(Me.filter((R) => R.value !== null)), ce = e.value.line.cutNullValues ? Aa(Se) : It(Se.filter((R) => R.value !== null)), B = e.value.line.cutNullValues ? Aa(Me) : It(Me.filter((R) => R.value !== null)), ve = E.ticks.map((R) => ({
|
|
1461
1461
|
y: R >= 0 ? re - Y * (R / le) : re + Y * Math.abs(R) / le,
|
|
1462
1462
|
value: R,
|
|
1463
|
-
prefix: o.prefix ||
|
|
1464
|
-
suffix: o.suffix ||
|
|
1463
|
+
prefix: o.prefix || e.value.chart.labels.prefix,
|
|
1464
|
+
suffix: o.suffix || e.value.chart.labels.suffix,
|
|
1465
1465
|
datapoint: o
|
|
1466
1466
|
})), wl = N.ticks.map((R) => {
|
|
1467
1467
|
const be = (R - N.min) / (N.max - N.min);
|
|
1468
1468
|
return {
|
|
1469
1469
|
y: R >= 0 ? Ne - Y * be : Ne + Y * be,
|
|
1470
1470
|
value: R,
|
|
1471
|
-
prefix: o.prefix ||
|
|
1472
|
-
suffix: o.suffix ||
|
|
1471
|
+
prefix: o.prefix || e.value.chart.labels.prefix,
|
|
1472
|
+
suffix: o.suffix || e.value.chart.labels.suffix,
|
|
1473
1473
|
datapoint: o
|
|
1474
1474
|
};
|
|
1475
1475
|
});
|
|
1476
|
-
z.value[o.scaleLabel].name = o.name, z.value[o.scaleLabel].groupName = o.scaleLabel, z.value[o.scaleLabel].groupColor =
|
|
1476
|
+
z.value[o.scaleLabel].name = o.name, z.value[o.scaleLabel].groupName = o.scaleLabel, z.value[o.scaleLabel].groupColor = e.value.chart.grid.labels.yAxis.groupColor || o.color, z.value[o.scaleLabel].color = o.color, z.value[o.scaleLabel].scaleYLabels = o.autoScaling ? wl : ve, z.value[o.scaleLabel].zeroPosition = o.autoScaling ? Ne : re, z.value[o.scaleLabel].individualMax = o.autoScaling ? Be : le, z.value[o.scaleLabel].scaleLabel = o.scaleLabel, z.value[o.scaleLabel].id = o.id, z.value[o.scaleLabel].yOffset = W, z.value[o.scaleLabel].individualHeight = Y, z.value[o.scaleLabel].autoScaleYLabels = wl, z.value[o.scaleLabel].unique = Il.value.filter((R) => R.scaleLabel === o.scaleLabel).length === 1;
|
|
1477
1477
|
const Tl = y.value.useIndividualScale ? o.autoScaling ? Ne : re : we.value, it = Math.max(Math.max(o.autoScaling ? Ne : ve.at(-1) ? ve.at(-1).y : 0, c.value.top), Tl);
|
|
1478
1478
|
return {
|
|
1479
1479
|
...o,
|
|
@@ -1486,24 +1486,24 @@ const Bo = {
|
|
|
1486
1486
|
zeroPosition: o.autoScaling ? Ne : re,
|
|
1487
1487
|
curve: o.autoScaling ? K : kl,
|
|
1488
1488
|
plots: o.autoScaling ? Me : Se,
|
|
1489
|
-
area: o.useArea ? y.value.useIndividualScale ?
|
|
1489
|
+
area: o.useArea ? y.value.useIndividualScale ? e.value.line.cutNullValues ? Ca(
|
|
1490
1490
|
o.autoScaling ? Me : Se,
|
|
1491
1491
|
it
|
|
1492
1492
|
) : za(
|
|
1493
1493
|
o.autoScaling ? Me.filter((R) => R.value !== null) : Se.filter((R) => R.value !== null),
|
|
1494
1494
|
it
|
|
1495
|
-
) :
|
|
1495
|
+
) : e.value.line.cutNullValues ? Ca(Se, it) : za(Se.filter((R) => R.value !== null), it) : "",
|
|
1496
1496
|
curveAreas: o.useArea ? wo(
|
|
1497
|
-
o.autoScaling ?
|
|
1497
|
+
o.autoScaling ? e.value.line.cutNullValues ? Me : Me.filter((R) => R.value !== null) : e.value.line.cutNullValues ? Se : Se.filter((R) => R.value !== null),
|
|
1498
1498
|
it,
|
|
1499
|
-
|
|
1499
|
+
e.value.line.cutNullValues
|
|
1500
1500
|
) : [],
|
|
1501
1501
|
straight: o.autoScaling ? B : ce,
|
|
1502
1502
|
groupId: z.value[o.scaleLabel].groupId
|
|
1503
1503
|
};
|
|
1504
1504
|
});
|
|
1505
1505
|
}), ll = k(() => {
|
|
1506
|
-
const t = Il.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), r = t.length,
|
|
1506
|
+
const t = Il.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), r = t.length, l = e.value.chart.grid.labels.yAxis.gap, u = y.value.isStacked, a = u ? l * (r - 1) : 0, s = c.value.height - a;
|
|
1507
1507
|
return t.filter((o) => o.type === "plot").map((o) => {
|
|
1508
1508
|
Vt(o);
|
|
1509
1509
|
const P = z.value[o.scaleLabel].min, X = z.value[o.scaleLabel].max;
|
|
@@ -1514,7 +1514,7 @@ const Bo = {
|
|
|
1514
1514
|
}, I = {
|
|
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
|
-
}, O = o.scaleSteps ||
|
|
1517
|
+
}, O = o.scaleSteps || e.value.chart.grid.labels.yAxis.commonScaleSteps, U = 1.0000001, T = Nl(I.min, I.max === I.min ? I.max * U : I.max, O), E = Nl(G.valueMin, G.valueMax === G.valueMin ? G.valueMax * U : G.valueMax, O), N = T.min >= 0 ? 0 : Math.abs(T.min), se = 0, ge = T.max + N, le = E.max + Math.abs(se), Be = o.stackIndex, tl = r - 1 - Be, Ul = u ? 1 - o.cumulatedStackRatio : 0, Te = u ? s * Ul + l * tl : 0, W = u ? s * o.stackRatio : c.value.height, Y = c.value.bottom - Te - W * N / ge, re = c.value.bottom - Te - W * se / le, Ne = o.series.map((K, ce) => {
|
|
1518
1518
|
const B = y.value.useIndividualScale ? (o.absoluteValues[ce] + Math.abs(N)) / ge : zl(K);
|
|
1519
1519
|
return {
|
|
1520
1520
|
x: H(c.value.left + oe.value.plot / 2 + oe.value.plot * ce),
|
|
@@ -1530,20 +1530,20 @@ const Bo = {
|
|
|
1530
1530
|
})), Me = T.ticks.map((K) => ({
|
|
1531
1531
|
y: K >= 0 ? Y - W * (K / ge) : Y + W * Math.abs(K) / ge,
|
|
1532
1532
|
value: K,
|
|
1533
|
-
prefix: o.prefix ||
|
|
1534
|
-
suffix: o.suffix ||
|
|
1533
|
+
prefix: o.prefix || e.value.chart.labels.prefix,
|
|
1534
|
+
suffix: o.suffix || e.value.chart.labels.suffix,
|
|
1535
1535
|
datapoint: o
|
|
1536
1536
|
})), kl = E.ticks.map((K) => {
|
|
1537
1537
|
const ce = (K - E.min) / (E.max - E.min);
|
|
1538
1538
|
return {
|
|
1539
1539
|
y: K >= 0 ? re - W * ce : re + W * ce,
|
|
1540
1540
|
value: K,
|
|
1541
|
-
prefix: o.prefix ||
|
|
1542
|
-
suffix: o.suffix ||
|
|
1541
|
+
prefix: o.prefix || e.value.chart.labels.prefix,
|
|
1542
|
+
suffix: o.suffix || e.value.chart.labels.suffix,
|
|
1543
1543
|
datapoint: o
|
|
1544
1544
|
};
|
|
1545
1545
|
});
|
|
1546
|
-
return z.value[o.scaleLabel].name = o.name, z.value[o.scaleLabel].groupName = o.scaleLabel, z.value[o.scaleLabel].groupColor =
|
|
1546
|
+
return z.value[o.scaleLabel].name = o.name, z.value[o.scaleLabel].groupName = o.scaleLabel, z.value[o.scaleLabel].groupColor = e.value.chart.grid.labels.yAxis.groupColor || o.color, z.value[o.scaleLabel].color = o.color, z.value[o.scaleLabel].scaleYLabels = o.autoScaling ? kl : Me, z.value[o.scaleLabel].zeroPosition = o.autoScaling ? re : Y, z.value[o.scaleLabel].individualMax = o.autoScaling ? le : ge, z.value[o.scaleLabel].scaleLabel = o.scaleLabel, z.value[o.scaleLabel].id = o.id, z.value[o.scaleLabel].yOffset = Te, z.value[o.scaleLabel].individualHeight = W, z.value[o.scaleLabel].autoScaleYLabels = kl, z.value[o.scaleLabel].unique = Il.value.filter((K) => K.scaleLabel === o.scaleLabel).length === 1, {
|
|
1547
1547
|
...o,
|
|
1548
1548
|
yOffset: Te,
|
|
1549
1549
|
autoScaleYLabels: kl,
|
|
@@ -1580,7 +1580,7 @@ const Bo = {
|
|
|
1580
1580
|
id: s.id,
|
|
1581
1581
|
yOffset: s.yOffset || 0,
|
|
1582
1582
|
individualHeight: s.individualHeight || c.value.height
|
|
1583
|
-
})),
|
|
1583
|
+
})), l = ll.value.map((s) => ({
|
|
1584
1584
|
name: s.name,
|
|
1585
1585
|
color: s.color,
|
|
1586
1586
|
scale: s.individualScale,
|
|
@@ -1592,7 +1592,7 @@ const Bo = {
|
|
|
1592
1592
|
id: s.id,
|
|
1593
1593
|
yOffset: s.yOffset || 0,
|
|
1594
1594
|
individualHeight: s.individualHeight || c.value.height
|
|
1595
|
-
})), u = y.value.useIndividualScale && !y.value.isStacked ? Object.values(z.value) : [...t, ...r, ...
|
|
1595
|
+
})), u = y.value.useIndividualScale && !y.value.isStacked ? Object.values(z.value) : [...t, ...r, ...l], a = u.flatMap((s) => s).length;
|
|
1596
1596
|
return u.flatMap((s, o) => {
|
|
1597
1597
|
let P = 0;
|
|
1598
1598
|
P = y.value.isStacked ? c.value.left : c.value.left / a * (o + 1);
|
|
@@ -1603,7 +1603,7 @@ const Bo = {
|
|
|
1603
1603
|
groupId: s.groupId,
|
|
1604
1604
|
scaleLabel: s.scaleLabel,
|
|
1605
1605
|
name: pe(
|
|
1606
|
-
|
|
1606
|
+
e.value.chart.grid.labels.yAxis.serieNameFormatter,
|
|
1607
1607
|
X,
|
|
1608
1608
|
X,
|
|
1609
1609
|
s
|
|
@@ -1626,10 +1626,10 @@ const Bo = {
|
|
|
1626
1626
|
bars: yl.value,
|
|
1627
1627
|
lines: Ge.value,
|
|
1628
1628
|
plots: ll.value,
|
|
1629
|
-
config:
|
|
1629
|
+
config: e.value
|
|
1630
1630
|
})), ao = k(() => {
|
|
1631
1631
|
let t = "", r = at.value.map((a) => a.value).filter((a) => Lt(a) && a !== null).reduce((a, s) => Math.abs(a) + Math.abs(s), 0);
|
|
1632
|
-
const
|
|
1632
|
+
const l = q.value[w.value], u = e.value.chart.tooltip.customFormat;
|
|
1633
1633
|
return So(u) && $o(() => u({
|
|
1634
1634
|
absoluteIndex: w.value + d.value.start,
|
|
1635
1635
|
seriesIndex: w.value,
|
|
@@ -1638,7 +1638,7 @@ const Bo = {
|
|
|
1638
1638
|
bars: yl.value,
|
|
1639
1639
|
lines: Ge.value,
|
|
1640
1640
|
plots: ll.value,
|
|
1641
|
-
config:
|
|
1641
|
+
config: e.value
|
|
1642
1642
|
})) ? u({
|
|
1643
1643
|
absoluteIndex: w.value + d.value.start,
|
|
1644
1644
|
seriesIndex: w.value,
|
|
@@ -1647,8 +1647,8 @@ const Bo = {
|
|
|
1647
1647
|
bars: yl.value,
|
|
1648
1648
|
lines: Ge.value,
|
|
1649
1649
|
plots: ll.value,
|
|
1650
|
-
config:
|
|
1651
|
-
}) : (
|
|
1650
|
+
config: e.value
|
|
1651
|
+
}) : (l && l.text && e.value.chart.tooltip.showTimeLabel && (t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${e.value.chart.tooltip.borderColor}; width:100%">${l.text}</div>`), at.value.forEach((a) => {
|
|
1652
1652
|
if (Lt(a.value)) {
|
|
1653
1653
|
let s = "", o = "";
|
|
1654
1654
|
switch (gl.value[a.type]) {
|
|
@@ -1656,120 +1656,120 @@ const Bo = {
|
|
|
1656
1656
|
s = `<svg viewBox="0 0 40 40" height="14" width="14">${Pe.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="${Pe.pattern ? `url(#pattern_${Q.value}_${a.slotAbsoluteIndex}` : a.color}" /></svg>`;
|
|
1657
1657
|
break;
|
|
1658
1658
|
case "line":
|
|
1659
|
-
!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${
|
|
1659
|
+
!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" />` : a.shape === "triangle" ? o = `<path d="${al({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "square" ? o = `<path d="${al({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "diamond" ? o = `<path d="${al({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "pentagon" ? o = `<path d="${al({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "hexagon" ? o = `<path d="${al({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "star" && (o = `<polygon stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" points="${Ia({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), s = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${a.color}" />${o}</svg>`;
|
|
1660
1660
|
break;
|
|
1661
1661
|
case "plot":
|
|
1662
1662
|
if (!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape)) {
|
|
1663
|
-
s = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${
|
|
1663
|
+
s = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" /></svg>`;
|
|
1664
1664
|
break;
|
|
1665
1665
|
}
|
|
1666
1666
|
if (a.shape === "star") {
|
|
1667
|
-
s = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${
|
|
1667
|
+
s = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" points="${Ia({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
|
|
1668
1668
|
break;
|
|
1669
1669
|
}
|
|
1670
1670
|
if (a.shape === "triangle") {
|
|
1671
|
-
s = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${al({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${
|
|
1671
|
+
s = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${al({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1672
1672
|
break;
|
|
1673
1673
|
}
|
|
1674
1674
|
if (a.shape === "square") {
|
|
1675
|
-
s = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${al({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${
|
|
1675
|
+
s = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${al({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1676
1676
|
break;
|
|
1677
1677
|
}
|
|
1678
1678
|
if (a.shape === "diamond") {
|
|
1679
|
-
s = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${al({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${
|
|
1679
|
+
s = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${al({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1680
1680
|
break;
|
|
1681
1681
|
}
|
|
1682
1682
|
if (a.shape === "pentagon") {
|
|
1683
|
-
s = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${al({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${
|
|
1683
|
+
s = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${al({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1684
1684
|
break;
|
|
1685
1685
|
}
|
|
1686
1686
|
if (a.shape === "hexagon") {
|
|
1687
|
-
s = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${al({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${
|
|
1687
|
+
s = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${al({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1688
1688
|
break;
|
|
1689
1689
|
}
|
|
1690
1690
|
}
|
|
1691
|
-
t += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${s}</div> ${a.name}: <b>${
|
|
1692
|
-
a.type === "line" ?
|
|
1691
|
+
t += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${s}</div> ${a.name}: <b>${e.value.chart.tooltip.showValue ? pe(
|
|
1692
|
+
a.type === "line" ? e.value.line.labels.formatter : a.type === "bar" ? e.value.bar.labels.formatter : e.value.plot.labels.formatter,
|
|
1693
1693
|
a.value,
|
|
1694
1694
|
Fe({
|
|
1695
1695
|
p: a.prefix,
|
|
1696
1696
|
v: a.value,
|
|
1697
1697
|
s: a.suffix,
|
|
1698
|
-
r:
|
|
1698
|
+
r: e.value.chart.tooltip.roundingValue
|
|
1699
1699
|
}),
|
|
1700
1700
|
{ datapoint: a }
|
|
1701
|
-
) : ""}</b> ${
|
|
1701
|
+
) : ""}</b> ${e.value.chart.tooltip.showPercentage ? `(${Fe({
|
|
1702
1702
|
v: H(Math.abs(a.value) / r * 100),
|
|
1703
1703
|
s: "%",
|
|
1704
|
-
r:
|
|
1705
|
-
})})` : ""}</div>`,
|
|
1704
|
+
r: e.value.chart.tooltip.roundingPercentage
|
|
1705
|
+
})})` : ""}</div>`, e.value.chart.comments.showInTooltip && a.comments.length && a.comments.slice(d.value.start, d.value.end)[w.value] && (t += `<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(d.value.start, d.value.end)[w.value]}</div>`);
|
|
1706
1706
|
}
|
|
1707
|
-
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${
|
|
1707
|
+
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${e.value.chart.tooltip.color}">${t}</div>`);
|
|
1708
1708
|
}), ma = k(() => {
|
|
1709
1709
|
if (sl.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
1710
|
-
const t = Ee.value.map((
|
|
1711
|
-
label:
|
|
1712
|
-
color:
|
|
1713
|
-
type:
|
|
1710
|
+
const t = Ee.value.map((l) => ({
|
|
1711
|
+
label: l.name,
|
|
1712
|
+
color: l.color,
|
|
1713
|
+
type: l.type
|
|
1714
1714
|
})), r = [];
|
|
1715
|
-
return q.value.forEach((
|
|
1716
|
-
const a = [
|
|
1715
|
+
return q.value.forEach((l, u) => {
|
|
1716
|
+
const a = [l.text];
|
|
1717
1717
|
Ee.value.forEach((s) => {
|
|
1718
|
-
a.push(Ie(s.absoluteValues[u]) ? Number(s.absoluteValues[u].toFixed(
|
|
1718
|
+
a.push(Ie(s.absoluteValues[u]) ? Number(s.absoluteValues[u].toFixed(e.value.table.rounding)) : "");
|
|
1719
1719
|
}), r.push(a);
|
|
1720
1720
|
}), { head: t, body: r };
|
|
1721
1721
|
}), $t = k(() => {
|
|
1722
|
-
const t =
|
|
1722
|
+
const t = e.value.table.showSum;
|
|
1723
1723
|
let r = [""].concat(Ee.value.map((s) => s.name));
|
|
1724
1724
|
t && (r = r.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>'));
|
|
1725
|
-
let
|
|
1725
|
+
let l = [];
|
|
1726
1726
|
for (let s = 0; s < M.value; s += 1) {
|
|
1727
1727
|
const o = Ee.value.map((P) => P.absoluteValues[s] ?? 0).reduce((P, X) => P + X, 0);
|
|
1728
|
-
|
|
1728
|
+
l.push(
|
|
1729
1729
|
[
|
|
1730
1730
|
q.value[s].text ?? "-"
|
|
1731
1731
|
].concat(Ee.value.map(
|
|
1732
1732
|
(P) => pe(
|
|
1733
|
-
P.type === "line" ?
|
|
1733
|
+
P.type === "line" ? e.value.line.labels.formatter : P.type === "bar" ? e.value.bar.labels.formatter : e.value.plot.labels.formatter,
|
|
1734
1734
|
P.absoluteValues[s] ?? 0,
|
|
1735
1735
|
Fe({
|
|
1736
|
-
p: P.prefix ||
|
|
1736
|
+
p: P.prefix || e.value.chart.labels.prefix,
|
|
1737
1737
|
v: P.absoluteValues[s] ?? 0,
|
|
1738
|
-
s: P.suffix ||
|
|
1739
|
-
r:
|
|
1738
|
+
s: P.suffix || e.value.chart.labels.suffix,
|
|
1739
|
+
r: e.value.table.rounding
|
|
1740
1740
|
})
|
|
1741
1741
|
)
|
|
1742
|
-
)).concat(t ? (o ?? 0).toFixed(
|
|
1742
|
+
)).concat(t ? (o ?? 0).toFixed(e.value.table.rounding) : [])
|
|
1743
1743
|
);
|
|
1744
1744
|
}
|
|
1745
1745
|
const u = {
|
|
1746
1746
|
th: {
|
|
1747
|
-
backgroundColor:
|
|
1748
|
-
color:
|
|
1749
|
-
outline:
|
|
1747
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
1748
|
+
color: e.value.table.th.color,
|
|
1749
|
+
outline: e.value.table.th.outline
|
|
1750
1750
|
},
|
|
1751
1751
|
td: {
|
|
1752
|
-
backgroundColor:
|
|
1753
|
-
color:
|
|
1754
|
-
outline:
|
|
1752
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
1753
|
+
color: e.value.table.td.color,
|
|
1754
|
+
outline: e.value.table.td.outline
|
|
1755
1755
|
},
|
|
1756
|
-
breakpoint:
|
|
1757
|
-
}, a = [
|
|
1758
|
-
return { head: r, body:
|
|
1756
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
1757
|
+
}, a = [e.value.table.columnNames.period].concat(Ee.value.map((s) => s.name)).concat(e.value.table.columnNames.total);
|
|
1758
|
+
return { head: r, body: l, config: u, colNames: a };
|
|
1759
1759
|
});
|
|
1760
1760
|
function xa(t = null) {
|
|
1761
|
-
const r = [[
|
|
1762
|
-
t ? t(s) : zo({ csvContent: s, title:
|
|
1761
|
+
const r = [[e.value.chart.title.text], [e.value.chart.title.subtitle.text], [""]], l = ["", ...ma.value.head.map((o) => o.label)], u = ma.value.body, a = r.concat([l]).concat(u), s = Co(a);
|
|
1762
|
+
t ? t(s) : zo({ csvContent: s, title: e.value.chart.title.text || "vue-ui-xy" });
|
|
1763
1763
|
}
|
|
1764
1764
|
function ba(t, r = null) {
|
|
1765
1765
|
El.value = t;
|
|
1766
|
-
const
|
|
1766
|
+
const l = Ee.value.map((u) => ({
|
|
1767
1767
|
name: u.name,
|
|
1768
1768
|
value: [null, void 0, NaN].includes(u.absoluteValues[r]) ? null : u.absoluteValues[r],
|
|
1769
1769
|
color: u.color,
|
|
1770
1770
|
type: u.type
|
|
1771
1771
|
}));
|
|
1772
|
-
t ? (w.value = r,
|
|
1772
|
+
t ? (w.value = r, e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: r + d.value.start })) : (w.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: r + d.value.start }));
|
|
1773
1773
|
}
|
|
1774
1774
|
function pa() {
|
|
1775
1775
|
y.value.showTable = !y.value.showTable;
|
|
@@ -1784,93 +1784,93 @@ const Bo = {
|
|
|
1784
1784
|
nl.value = t, vt.value += 1;
|
|
1785
1785
|
}
|
|
1786
1786
|
function Sa() {
|
|
1787
|
-
if (!
|
|
1788
|
-
S.value.dataLabels =
|
|
1787
|
+
if (!e.value.responsiveProportionalSizing) {
|
|
1788
|
+
S.value.dataLabels = e.value.chart.grid.labels.fontSize, S.value.yAxis = e.value.chart.grid.labels.axis.fontSize, S.value.xAxis = e.value.chart.grid.labels.xAxisLabels.fontSize, S.value.plotLabels = e.value.chart.labels.fontSize, Le.value.plot = e.value.plot.radius, Le.value.line = e.value.line.radius;
|
|
1789
1789
|
return;
|
|
1790
1790
|
}
|
|
1791
1791
|
S.value.dataLabels = Zl({
|
|
1792
1792
|
relator: xe.value,
|
|
1793
1793
|
adjuster: 400,
|
|
1794
|
-
source:
|
|
1794
|
+
source: e.value.chart.grid.labels.fontSize,
|
|
1795
1795
|
threshold: 10,
|
|
1796
1796
|
fallback: 10
|
|
1797
1797
|
}), S.value.yAxis = Zl({
|
|
1798
1798
|
relator: ne.value,
|
|
1799
1799
|
adjuster: 1e3,
|
|
1800
|
-
source:
|
|
1800
|
+
source: e.value.chart.grid.labels.axis.fontSize,
|
|
1801
1801
|
threshold: 10,
|
|
1802
1802
|
fallback: 10
|
|
1803
1803
|
}), S.value.xAxis = Zl({
|
|
1804
1804
|
relator: ne.value,
|
|
1805
1805
|
adjuster: 1e3,
|
|
1806
|
-
source:
|
|
1806
|
+
source: e.value.chart.grid.labels.xAxisLabels.fontSize,
|
|
1807
1807
|
threshold: 10,
|
|
1808
1808
|
fallback: 10
|
|
1809
1809
|
}), S.value.plotLabels = Zl({
|
|
1810
1810
|
relator: ne.value,
|
|
1811
1811
|
adjuster: 800,
|
|
1812
|
-
source:
|
|
1812
|
+
source: e.value.chart.labels.fontSize,
|
|
1813
1813
|
threshold: 10,
|
|
1814
1814
|
fallback: 10
|
|
1815
1815
|
}), Le.value.plot = Zl({
|
|
1816
1816
|
relator: ne.value,
|
|
1817
1817
|
adjuster: 800,
|
|
1818
|
-
source:
|
|
1818
|
+
source: e.value.plot.radius,
|
|
1819
1819
|
threshold: 1,
|
|
1820
1820
|
fallback: 1
|
|
1821
1821
|
}), Le.value.line = Zl({
|
|
1822
1822
|
relator: ne.value,
|
|
1823
1823
|
adjuster: 800,
|
|
1824
|
-
source:
|
|
1824
|
+
source: e.value.line.radius,
|
|
1825
1825
|
threshold: 1,
|
|
1826
1826
|
fallback: 1
|
|
1827
1827
|
});
|
|
1828
1828
|
}
|
|
1829
|
-
const ut = k(() => !!
|
|
1829
|
+
const ut = k(() => !!e.value.debug);
|
|
1830
1830
|
function Et() {
|
|
1831
1831
|
Ta(h.dataset) ? (Ft({
|
|
1832
1832
|
componentName: "VueUiXy",
|
|
1833
1833
|
type: "dataset",
|
|
1834
1834
|
debug: ut.value
|
|
1835
|
-
}), x.value = !0) : h.dataset.forEach((r,
|
|
1835
|
+
}), x.value = !0) : h.dataset.forEach((r, l) => {
|
|
1836
1836
|
[null, void 0].includes(r.name) && (Ft({
|
|
1837
1837
|
componentName: "VueUiXy",
|
|
1838
1838
|
type: "datasetSerieAttribute",
|
|
1839
1839
|
property: "name (string)",
|
|
1840
|
-
index:
|
|
1840
|
+
index: l,
|
|
1841
1841
|
debug: ut.value
|
|
1842
1842
|
}), x.value = !0);
|
|
1843
1843
|
}), ut.value && h.dataset.forEach((r) => {
|
|
1844
|
-
r.series.forEach((
|
|
1845
|
-
Lt(
|
|
1846
|
-
-----> The serie '${r.name}' contains the value '${
|
|
1847
|
-
'${
|
|
1844
|
+
r.series.forEach((l, u) => {
|
|
1845
|
+
Lt(l) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
1846
|
+
-----> The serie '${r.name}' contains the value '${l}' at index ${u}.
|
|
1847
|
+
'${l}' was converted to null to allow the chart to display.`);
|
|
1848
1848
|
});
|
|
1849
|
-
}), Ta(h.dataset) || (x.value =
|
|
1849
|
+
}), Ta(h.dataset) || (x.value = e.value.loading), De.value = e.value.chart.userOptions.showOnChartHover, Bl.value = e.value.chart.userOptions.keepStateOnChartLeave, Fl.value = !e.value.chart.userOptions.showOnChartHover, je();
|
|
1850
1850
|
const t = 12;
|
|
1851
|
-
if (
|
|
1852
|
-
const
|
|
1851
|
+
if (e.value.responsive) {
|
|
1852
|
+
const l = ue.value.parentNode;
|
|
1853
1853
|
$e.value && ($e.value.unobserve(fe.value), $e.value.disconnect());
|
|
1854
|
-
const { height: u, width: a } =
|
|
1854
|
+
const { height: u, width: a } = l.getBoundingClientRect();
|
|
1855
1855
|
let s = null, o = 0;
|
|
1856
|
-
|
|
1856
|
+
e.value.chart.title.show && ul.value && (s = ul.value, o = s.getBoundingClientRect().height);
|
|
1857
1857
|
let P = null, X = 0;
|
|
1858
|
-
|
|
1858
|
+
e.value.chart.zoom.show && f.value > 6 && Cl.value && Ae.value && Ae.value.$el && (P = Ae.value.$el, X = P.getBoundingClientRect().height);
|
|
1859
1859
|
let G = null, I = 0;
|
|
1860
|
-
|
|
1860
|
+
e.value.chart.legend.show && dl.value && (G = dl.value, I = G.getBoundingClientRect().height);
|
|
1861
1861
|
let O = 0;
|
|
1862
1862
|
Ml.value && (O = Ml.value.getBoundingClientRect().height);
|
|
1863
1863
|
let U = 0;
|
|
1864
1864
|
Al.value && (U = Al.value.getBoundingClientRect().height), xe.value = u - o - I - X - O - U - t, ne.value = a, fl.value = `0 0 ${ne.value < 0 ? 10 : ne.value} ${xe.value < 0 ? 10 : xe.value}`, Sa();
|
|
1865
1865
|
const T = new ResizeObserver((E) => {
|
|
1866
1866
|
for (const N of E)
|
|
1867
|
-
|
|
1867
|
+
e.value.chart.title.show && ul.value ? o = ul.value.getBoundingClientRect().height : o = 0, Ae.value && Ae.value.$el ? X = Ae.value.$el.getBoundingClientRect().height : X = 0, dl.value ? I = dl.value.getBoundingClientRect().height : I = 0, Ml.value ? O = Ml.value.getBoundingClientRect().height : O = 0, Al.value ? U = Al.value.getBoundingClientRect().height : U = 0, requestAnimationFrame(() => {
|
|
1868
1868
|
xe.value = N.contentRect.height - o - I - X - O - U - t, ne.value = N.contentBoxSize[0].inlineSize, fl.value = `0 0 ${ne.value < 0 ? 10 : ne.value} ${xe.value < 0 ? 10 : xe.value}`, Sa();
|
|
1869
1869
|
});
|
|
1870
1870
|
});
|
|
1871
|
-
$e.value = T, fe.value =
|
|
1871
|
+
$e.value = T, fe.value = l, T.observe(l);
|
|
1872
1872
|
} else
|
|
1873
|
-
xe.value =
|
|
1873
|
+
xe.value = e.value.chart.height, ne.value = e.value.chart.width, S.value.dataLabels = e.value.chart.grid.labels.fontSize, S.value.yAxis = e.value.chart.grid.labels.axis.fontSize, S.value.xAxis = e.value.chart.grid.labels.xAxisLabels.fontSize, S.value.plotLabels = e.value.chart.labels.fontSize, Le.value.plot = e.value.plot.radius, Le.value.line = e.value.line.radius, fl.value = `0 0 ${ne.value} ${xe.value}`;
|
|
1874
1874
|
}
|
|
1875
1875
|
rt(() => {
|
|
1876
1876
|
Et(), pt(), document.addEventListener("mousemove", (t) => {
|
|
@@ -1885,23 +1885,23 @@ const Bo = {
|
|
|
1885
1885
|
timeLabelsEls: Qe,
|
|
1886
1886
|
timeLabels: q,
|
|
1887
1887
|
slicer: d,
|
|
1888
|
-
configRef:
|
|
1888
|
+
configRef: e,
|
|
1889
1889
|
rotationPath: ["chart", "grid", "labels", "xAxisLabels", "rotation"],
|
|
1890
1890
|
autoRotatePath: ["chart", "grid", "labels", "xAxisLabels", "autoRotate", "enable"],
|
|
1891
1891
|
isAutoSize: Ra,
|
|
1892
1892
|
height: xe,
|
|
1893
1893
|
width: ne,
|
|
1894
|
-
rotation:
|
|
1894
|
+
rotation: e.value.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
1895
1895
|
}), ol(() => h.dataset, (t) => {
|
|
1896
1896
|
Array.isArray(t) && t.length > 0 && (x.value = !1), f.value = Math.max(...F.value.map((r) => Ze({
|
|
1897
1897
|
data: r.series,
|
|
1898
|
-
threshold:
|
|
1898
|
+
threshold: e.value.downsample.threshold
|
|
1899
1899
|
}).length)), d.value = {
|
|
1900
1900
|
start: 0,
|
|
1901
1901
|
end: f.value
|
|
1902
1902
|
}, ye.value += 1, He.value += 1, Xl();
|
|
1903
1903
|
}, { deep: !0 }), ol(() => h.config, (t) => {
|
|
1904
|
-
ie.value || (
|
|
1904
|
+
ie.value || (e.value = Dl()), Et(), jl.value += 1, dt.value += 1, je(), Xl();
|
|
1905
1905
|
}, { deep: !0 });
|
|
1906
1906
|
const Bt = p(!1);
|
|
1907
1907
|
function $a() {
|
|
@@ -1919,7 +1919,7 @@ const Bo = {
|
|
|
1919
1919
|
$a(), Bt.value && (Et(), Xl(), pt());
|
|
1920
1920
|
});
|
|
1921
1921
|
ue.value?.parentNode && t.observe(ue.value.parentNode);
|
|
1922
|
-
}), ol(
|
|
1922
|
+
}), ol(e, () => {
|
|
1923
1923
|
je();
|
|
1924
1924
|
}, { immediate: !0 }), Tt({
|
|
1925
1925
|
getData: Za,
|
|
@@ -1935,18 +1935,18 @@ const Bo = {
|
|
|
1935
1935
|
toggleFullscreen: wa
|
|
1936
1936
|
}), (t, r) => (n(), i("div", {
|
|
1937
1937
|
id: `vue-ui-xy_${Q.value}`,
|
|
1938
|
-
class: Oe(`vue-ui-xy ${nl.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${
|
|
1938
|
+
class: Oe(`vue-ui-xy ${nl.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1939
1939
|
ref_key: "chart",
|
|
1940
1940
|
ref: ue,
|
|
1941
|
-
style: $(`background:${
|
|
1941
|
+
style: $(`background:${e.value.chart.backgroundColor}; color:${e.value.chart.color};width:100%;font-family:${e.value.chart.fontFamily};${e.value.responsive ? "height: 100%" : ""}`),
|
|
1942
1942
|
onMouseenter: r[10] || (r[10] = () => Qt(!0)),
|
|
1943
1943
|
onMouseleave: r[11] || (r[11] = () => Qt(!1))
|
|
1944
1944
|
}, [
|
|
1945
|
-
|
|
1945
|
+
e.value.chart.userOptions.buttons.annotator && ke.value ? (n(), Ue(v(vl), {
|
|
1946
1946
|
key: 0,
|
|
1947
1947
|
svgRef: ke.value,
|
|
1948
|
-
backgroundColor:
|
|
1949
|
-
color:
|
|
1948
|
+
backgroundColor: e.value.chart.backgroundColor,
|
|
1949
|
+
color: e.value.chart.color,
|
|
1950
1950
|
active: ml.value,
|
|
1951
1951
|
onClose: Ht
|
|
1952
1952
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
@@ -1957,53 +1957,53 @@ const Bo = {
|
|
|
1957
1957
|
class: "vue-data-ui-no-title-space",
|
|
1958
1958
|
style: "height:36px; width: 100%; background:transparent"
|
|
1959
1959
|
}, null, 512)) : g("", !0),
|
|
1960
|
-
|
|
1960
|
+
e.value.chart.title.show ? (n(), i("div", {
|
|
1961
1961
|
key: 2,
|
|
1962
1962
|
ref_key: "chartTitle",
|
|
1963
1963
|
ref: ul,
|
|
1964
1964
|
class: "vue-ui-xy-title",
|
|
1965
|
-
style: $(`font-family:${
|
|
1965
|
+
style: $(`font-family:${e.value.chart.fontFamily}`)
|
|
1966
1966
|
}, [
|
|
1967
1967
|
(n(), Ue(Ho, {
|
|
1968
1968
|
key: `title_${jl.value}`,
|
|
1969
1969
|
config: {
|
|
1970
1970
|
title: {
|
|
1971
1971
|
cy: "xy-div-title",
|
|
1972
|
-
...
|
|
1972
|
+
...e.value.chart.title
|
|
1973
1973
|
},
|
|
1974
1974
|
subtitle: {
|
|
1975
1975
|
cy: "xy-div-subtitle",
|
|
1976
|
-
...
|
|
1976
|
+
...e.value.chart.title.subtitle
|
|
1977
1977
|
}
|
|
1978
1978
|
}
|
|
1979
1979
|
}, null, 8, ["config"]))
|
|
1980
1980
|
], 4)) : g("", !0),
|
|
1981
|
-
|
|
1981
|
+
e.value.chart.userOptions.show && (Bl.value || Fl.value) ? (n(), Ue(v(he), {
|
|
1982
1982
|
ref: "defails",
|
|
1983
1983
|
key: `user_options_${vt.value}`,
|
|
1984
|
-
backgroundColor:
|
|
1985
|
-
color:
|
|
1984
|
+
backgroundColor: e.value.chart.backgroundColor,
|
|
1985
|
+
color: e.value.chart.color,
|
|
1986
1986
|
isPrinting: v(et),
|
|
1987
1987
|
isImaging: v(ft),
|
|
1988
1988
|
uid: Q.value,
|
|
1989
|
-
hasTooltip:
|
|
1990
|
-
hasPdf:
|
|
1991
|
-
hasXls:
|
|
1992
|
-
hasImg:
|
|
1993
|
-
hasLabel:
|
|
1994
|
-
hasTable:
|
|
1995
|
-
hasStack: A.dataset.length > 1 &&
|
|
1996
|
-
hasFullscreen:
|
|
1989
|
+
hasTooltip: e.value.chart.userOptions.buttons.tooltip && e.value.chart.tooltip.show,
|
|
1990
|
+
hasPdf: e.value.chart.userOptions.buttons.pdf,
|
|
1991
|
+
hasXls: e.value.chart.userOptions.buttons.csv,
|
|
1992
|
+
hasImg: e.value.chart.userOptions.buttons.img,
|
|
1993
|
+
hasLabel: e.value.chart.userOptions.buttons.labels,
|
|
1994
|
+
hasTable: e.value.chart.userOptions.buttons.table,
|
|
1995
|
+
hasStack: A.dataset.length > 1 && e.value.chart.userOptions.buttons.stack,
|
|
1996
|
+
hasFullscreen: e.value.chart.userOptions.buttons.fullscreen,
|
|
1997
1997
|
isStacked: y.value.isStacked,
|
|
1998
1998
|
isFullscreen: nl.value,
|
|
1999
1999
|
chartElement: t.$refs.chart,
|
|
2000
|
-
position:
|
|
2000
|
+
position: e.value.chart.userOptions.position,
|
|
2001
2001
|
isTooltip: y.value.showTooltip,
|
|
2002
|
-
titles: { ...
|
|
2003
|
-
hasAnnotator:
|
|
2002
|
+
titles: { ...e.value.chart.userOptions.buttonTitles },
|
|
2003
|
+
hasAnnotator: e.value.chart.userOptions.buttons.annotator,
|
|
2004
2004
|
isAnnotation: ml.value,
|
|
2005
|
-
callbacks:
|
|
2006
|
-
printScale:
|
|
2005
|
+
callbacks: e.value.chart.userOptions.callbacks,
|
|
2006
|
+
printScale: e.value.chart.userOptions.print.scale,
|
|
2007
2007
|
onToggleFullscreen: wa,
|
|
2008
2008
|
onGeneratePdf: v(Xt),
|
|
2009
2009
|
onGenerateCsv: xa,
|
|
@@ -2019,8 +2019,8 @@ const Bo = {
|
|
|
2019
2019
|
}, vo({ _: 2 }, [
|
|
2020
2020
|
t.$slots.menuIcon ? {
|
|
2021
2021
|
name: "menuIcon",
|
|
2022
|
-
fn: me(({ isOpen:
|
|
2023
|
-
J(t.$slots, "menuIcon", rl($l({ isOpen:
|
|
2022
|
+
fn: me(({ isOpen: l, color: u }) => [
|
|
2023
|
+
J(t.$slots, "menuIcon", rl($l({ isOpen: l, color: u })), void 0, !0)
|
|
2024
2024
|
]),
|
|
2025
2025
|
key: "0"
|
|
2026
2026
|
} : void 0,
|
|
@@ -2075,15 +2075,15 @@ const Bo = {
|
|
|
2075
2075
|
} : void 0,
|
|
2076
2076
|
t.$slots.optionFullscreen ? {
|
|
2077
2077
|
name: "optionFullscreen",
|
|
2078
|
-
fn: me(({ toggleFullscreen:
|
|
2079
|
-
J(t.$slots, "optionFullscreen", rl($l({ toggleFullscreen:
|
|
2078
|
+
fn: me(({ toggleFullscreen: l, isFullscreen: u }) => [
|
|
2079
|
+
J(t.$slots, "optionFullscreen", rl($l({ toggleFullscreen: l, isFullscreen: u })), void 0, !0)
|
|
2080
2080
|
]),
|
|
2081
2081
|
key: "8"
|
|
2082
2082
|
} : void 0,
|
|
2083
2083
|
t.$slots.optionAnnotator ? {
|
|
2084
2084
|
name: "optionAnnotator",
|
|
2085
|
-
fn: me(({ toggleAnnotator:
|
|
2086
|
-
J(t.$slots, "optionAnnotator", rl($l({ toggleAnnotator:
|
|
2085
|
+
fn: me(({ toggleAnnotator: l, isAnnotator: u }) => [
|
|
2086
|
+
J(t.$slots, "optionAnnotator", rl($l({ toggleAnnotator: l, isAnnotator: u })), void 0, !0)
|
|
2087
2087
|
]),
|
|
2088
2088
|
key: "9"
|
|
2089
2089
|
} : void 0
|
|
@@ -2097,8 +2097,8 @@ const Bo = {
|
|
|
2097
2097
|
viewBox: fl.value,
|
|
2098
2098
|
style: $({
|
|
2099
2099
|
background: "transparent",
|
|
2100
|
-
color:
|
|
2101
|
-
fontFamily:
|
|
2100
|
+
color: e.value.chart.color,
|
|
2101
|
+
fontFamily: e.value.chart.fontFamily
|
|
2102
2102
|
}),
|
|
2103
2103
|
"aria-label": Ka.value,
|
|
2104
2104
|
role: "img",
|
|
@@ -2118,7 +2118,7 @@ const Bo = {
|
|
|
2118
2118
|
key: 0,
|
|
2119
2119
|
x: c.value.left + ee.value < 0 ? 0 : c.value.left + ee.value,
|
|
2120
2120
|
y: c.value.top,
|
|
2121
|
-
width: c.value.width - (
|
|
2121
|
+
width: c.value.width - (e.value.chart.grid.position === "middle" ? 0 : c.value.width / M.value) < 0 ? 0 : c.value.width - (e.value.chart.grid.position === "middle" ? 0 : c.value.width / M.value),
|
|
2122
2122
|
height: c.value.height < 0 ? 0 : c.value.height,
|
|
2123
2123
|
style: {
|
|
2124
2124
|
pointerEvents: "none"
|
|
@@ -2128,9 +2128,9 @@ const Bo = {
|
|
|
2128
2128
|
], 8, ru)) : g("", !0),
|
|
2129
2129
|
M.value > 0 ? (n(), i("g", cu, [
|
|
2130
2130
|
b("g", vu, [
|
|
2131
|
-
|
|
2131
|
+
e.value.chart.grid.labels.xAxis.showBaseline ? (n(), i("line", {
|
|
2132
2132
|
key: 0,
|
|
2133
|
-
stroke:
|
|
2133
|
+
stroke: e.value.chart.grid.stroke,
|
|
2134
2134
|
"stroke-width": "1",
|
|
2135
2135
|
x1: c.value.left + ee.value,
|
|
2136
2136
|
x2: c.value.right - ee.value,
|
|
@@ -2139,30 +2139,30 @@ const Bo = {
|
|
|
2139
2139
|
"stroke-linecap": "round",
|
|
2140
2140
|
style: { animation: "none !important" }
|
|
2141
2141
|
}, null, 8, du)) : g("", !0),
|
|
2142
|
-
y.value.useIndividualScale ?
|
|
2143
|
-
|
|
2142
|
+
y.value.useIndividualScale ? e.value.chart.grid.showHorizontalLines ? (n(!0), i(m, { key: 2 }, _(ot.value, (l) => (n(), i("g", null, [
|
|
2143
|
+
l.id === L.value && l.yLabels.length ? (n(!0), i(m, { key: 0 }, _(l.yLabels, (u) => (n(), i("line", {
|
|
2144
2144
|
x1: c.value.left + ee.value,
|
|
2145
2145
|
x2: c.value.right - ee.value,
|
|
2146
2146
|
y1: v(D)(u.y),
|
|
2147
2147
|
y2: v(D)(u.y),
|
|
2148
|
-
stroke:
|
|
2148
|
+
stroke: l.color,
|
|
2149
2149
|
"stroke-width": 0.5,
|
|
2150
2150
|
"stroke-linecap": "round",
|
|
2151
2151
|
style: { animation: "none !important" }
|
|
2152
|
-
}, null, 8, mu))), 256)) :
|
|
2152
|
+
}, null, 8, mu))), 256)) : l.yLabels.length ? (n(!0), i(m, { key: 1 }, _(l.yLabels, (u) => (n(), i("line", {
|
|
2153
2153
|
x1: c.value.left + ee.value,
|
|
2154
2154
|
x2: c.value.right - ee.value,
|
|
2155
2155
|
y1: v(D)(u.y),
|
|
2156
2156
|
y2: v(D)(u.y),
|
|
2157
|
-
stroke:
|
|
2157
|
+
stroke: e.value.chart.grid.stroke,
|
|
2158
2158
|
"stroke-width": 0.5,
|
|
2159
2159
|
"stroke-linecap": "round",
|
|
2160
2160
|
style: { animation: "none !important" }
|
|
2161
2161
|
}, null, 8, xu))), 256)) : g("", !0)
|
|
2162
2162
|
]))), 256)) : g("", !0) : (n(), i(m, { key: 1 }, [
|
|
2163
|
-
|
|
2163
|
+
e.value.chart.grid.labels.yAxis.showBaseline ? (n(), i("line", {
|
|
2164
2164
|
key: 0,
|
|
2165
|
-
stroke:
|
|
2165
|
+
stroke: e.value.chart.grid.stroke,
|
|
2166
2166
|
"stroke-width": "1",
|
|
2167
2167
|
x1: c.value.left + ee.value,
|
|
2168
2168
|
x2: c.value.left + ee.value,
|
|
@@ -2171,39 +2171,39 @@ const Bo = {
|
|
|
2171
2171
|
"stroke-linecap": "round",
|
|
2172
2172
|
style: { animation: "none !important" }
|
|
2173
2173
|
}, null, 8, hu)) : g("", !0),
|
|
2174
|
-
|
|
2175
|
-
(n(!0), i(m, null, _(da.value, (
|
|
2174
|
+
e.value.chart.grid.showHorizontalLines ? (n(), i("g", fu, [
|
|
2175
|
+
(n(!0), i(m, null, _(da.value, (l) => (n(), i("line", {
|
|
2176
2176
|
x1: c.value.left + ee.value,
|
|
2177
2177
|
x2: c.value.right,
|
|
2178
|
-
y1: v(D)(
|
|
2179
|
-
y2: v(D)(
|
|
2180
|
-
stroke:
|
|
2178
|
+
y1: v(D)(l.y),
|
|
2179
|
+
y2: v(D)(l.y),
|
|
2180
|
+
stroke: e.value.chart.grid.stroke,
|
|
2181
2181
|
"stroke-width": 0.5,
|
|
2182
2182
|
"stroke-linecap": "round",
|
|
2183
2183
|
style: { animation: "none !important" }
|
|
2184
2184
|
}, null, 8, gu))), 256))
|
|
2185
2185
|
])) : g("", !0)
|
|
2186
2186
|
], 64)),
|
|
2187
|
-
|
|
2187
|
+
e.value.chart.grid.showVerticalLines ? (n(), i("g", bu, [
|
|
2188
2188
|
b("path", {
|
|
2189
2189
|
d: Ea.value,
|
|
2190
2190
|
"stroke-width": 0.5,
|
|
2191
|
-
stroke:
|
|
2191
|
+
stroke: e.value.chart.grid.stroke,
|
|
2192
2192
|
"stroke-linecap": "round",
|
|
2193
2193
|
style: { animation: "none !important" }
|
|
2194
2194
|
}, null, 8, pu)
|
|
2195
2195
|
])) : g("", !0),
|
|
2196
|
-
|
|
2196
|
+
e.value.chart.grid.labels.xAxisLabels.show ? (n(), i("g", yu, [
|
|
2197
2197
|
b("path", {
|
|
2198
2198
|
d: Ba.value,
|
|
2199
|
-
stroke:
|
|
2199
|
+
stroke: e.value.chart.grid.stroke,
|
|
2200
2200
|
"stroke-width": 1,
|
|
2201
2201
|
"stroke-linecap": "round",
|
|
2202
2202
|
style: { animation: "none !important" }
|
|
2203
2203
|
}, null, 8, ku)
|
|
2204
2204
|
])) : g("", !0)
|
|
2205
2205
|
]),
|
|
2206
|
-
(n(!0), i(m, null, _(yl.value, (
|
|
2206
|
+
(n(!0), i(m, null, _(yl.value, (l, u) => (n(), i("defs", {
|
|
2207
2207
|
key: `def_rect_${u}`
|
|
2208
2208
|
}, [
|
|
2209
2209
|
b("linearGradient", {
|
|
@@ -2213,15 +2213,15 @@ const Bo = {
|
|
|
2213
2213
|
}, [
|
|
2214
2214
|
b("stop", {
|
|
2215
2215
|
offset: "0%",
|
|
2216
|
-
"stop-color":
|
|
2216
|
+
"stop-color": l.color
|
|
2217
2217
|
}, null, 8, Su),
|
|
2218
2218
|
b("stop", {
|
|
2219
2219
|
offset: "62%",
|
|
2220
|
-
"stop-color": `${v(Ol)(
|
|
2220
|
+
"stop-color": `${v(Ol)(l.color, 0.02)}`
|
|
2221
2221
|
}, null, 8, $u),
|
|
2222
2222
|
b("stop", {
|
|
2223
2223
|
offset: "100%",
|
|
2224
|
-
"stop-color": `${v(Ol)(
|
|
2224
|
+
"stop-color": `${v(Ol)(l.color, 0.05)}`
|
|
2225
2225
|
}, null, 8, _u)
|
|
2226
2226
|
], 8, wu),
|
|
2227
2227
|
b("linearGradient", {
|
|
@@ -2231,19 +2231,19 @@ const Bo = {
|
|
|
2231
2231
|
}, [
|
|
2232
2232
|
b("stop", {
|
|
2233
2233
|
offset: "0%",
|
|
2234
|
-
"stop-color": `${v(Ol)(
|
|
2234
|
+
"stop-color": `${v(Ol)(l.color, 0.05)}`
|
|
2235
2235
|
}, null, 8, Mu),
|
|
2236
2236
|
b("stop", {
|
|
2237
2237
|
offset: "38%",
|
|
2238
|
-
"stop-color": `${v(Ol)(
|
|
2238
|
+
"stop-color": `${v(Ol)(l.color, 0.02)}`
|
|
2239
2239
|
}, null, 8, Au),
|
|
2240
2240
|
b("stop", {
|
|
2241
2241
|
offset: "100%",
|
|
2242
|
-
"stop-color":
|
|
2242
|
+
"stop-color": l.color
|
|
2243
2243
|
}, null, 8, Cu)
|
|
2244
2244
|
], 8, Lu)
|
|
2245
2245
|
]))), 128)),
|
|
2246
|
-
(n(!0), i(m, null, _(ll.value, (
|
|
2246
|
+
(n(!0), i(m, null, _(ll.value, (l, u) => (n(), i("defs", {
|
|
2247
2247
|
key: `def_plot_${u}`
|
|
2248
2248
|
}, [
|
|
2249
2249
|
b("radialGradient", {
|
|
@@ -2256,15 +2256,15 @@ const Bo = {
|
|
|
2256
2256
|
}, [
|
|
2257
2257
|
b("stop", {
|
|
2258
2258
|
offset: "0%",
|
|
2259
|
-
"stop-color": `${v(Ol)(
|
|
2259
|
+
"stop-color": `${v(Ol)(l.color, 0.05)}`
|
|
2260
2260
|
}, null, 8, Iu),
|
|
2261
2261
|
b("stop", {
|
|
2262
2262
|
offset: "100%",
|
|
2263
|
-
"stop-color":
|
|
2263
|
+
"stop-color": l.color
|
|
2264
2264
|
}, null, 8, Tu)
|
|
2265
2265
|
], 8, zu)
|
|
2266
2266
|
]))), 128)),
|
|
2267
|
-
(n(!0), i(m, null, _(Ge.value, (
|
|
2267
|
+
(n(!0), i(m, null, _(Ge.value, (l, u) => (n(), i("defs", {
|
|
2268
2268
|
key: `def_line_${u}`
|
|
2269
2269
|
}, [
|
|
2270
2270
|
b("radialGradient", {
|
|
@@ -2277,11 +2277,11 @@ const Bo = {
|
|
|
2277
2277
|
}, [
|
|
2278
2278
|
b("stop", {
|
|
2279
2279
|
offset: "0%",
|
|
2280
|
-
"stop-color": `${v(Ol)(
|
|
2280
|
+
"stop-color": `${v(Ol)(l.color, 0.05)}`
|
|
2281
2281
|
}, null, 8, Ou),
|
|
2282
2282
|
b("stop", {
|
|
2283
2283
|
offset: "100%",
|
|
2284
|
-
"stop-color":
|
|
2284
|
+
"stop-color": l.color
|
|
2285
2285
|
}, null, 8, Ru)
|
|
2286
2286
|
], 8, Nu),
|
|
2287
2287
|
b("linearGradient", {
|
|
@@ -2293,50 +2293,50 @@ const Bo = {
|
|
|
2293
2293
|
}, [
|
|
2294
2294
|
b("stop", {
|
|
2295
2295
|
offset: "0%",
|
|
2296
|
-
"stop-color": `${v(qe)(v(Ol)(
|
|
2296
|
+
"stop-color": `${v(qe)(v(Ol)(l.color, 0.03), e.value.line.area.opacity)}`
|
|
2297
2297
|
}, null, 8, Hu),
|
|
2298
2298
|
b("stop", {
|
|
2299
2299
|
offset: "100%",
|
|
2300
|
-
"stop-color": `${v(qe)(
|
|
2300
|
+
"stop-color": `${v(qe)(l.color, e.value.line.area.opacity)}`
|
|
2301
2301
|
}, null, 8, Vu)
|
|
2302
2302
|
], 8, Pu)
|
|
2303
2303
|
]))), 128)),
|
|
2304
|
-
(n(!0), i(m, null, _(Qa.value, (
|
|
2305
|
-
|
|
2306
|
-
(n(!0), i(m, null, _(
|
|
2304
|
+
(n(!0), i(m, null, _(Qa.value, (l) => (n(), i("g", null, [
|
|
2305
|
+
l.show ? (n(), i(m, { key: 0 }, [
|
|
2306
|
+
(n(!0), i(m, null, _(l.span, (u, a) => (n(), i("g", null, [
|
|
2307
2307
|
b("rect", {
|
|
2308
2308
|
style: $({
|
|
2309
2309
|
transition: "none",
|
|
2310
|
-
opacity:
|
|
2310
|
+
opacity: l.from + a >= d.value.start && l.from + a <= d.value.end - 1 ? 1 : 0
|
|
2311
2311
|
}),
|
|
2312
|
-
x: c.value.left + c.value.width / M.value * (
|
|
2312
|
+
x: c.value.left + c.value.width / M.value * (l.from + a - d.value.start),
|
|
2313
2313
|
y: c.value.top,
|
|
2314
2314
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
2315
2315
|
width: c.value.width / M.value < 0 ? 1e-5 : c.value.width / M.value,
|
|
2316
|
-
fill: v(qe)(
|
|
2316
|
+
fill: v(qe)(l.color, l.opacity)
|
|
2317
2317
|
}, null, 12, Eu)
|
|
2318
2318
|
]))), 256)),
|
|
2319
|
-
(n(!0), i(m, null, _(
|
|
2320
|
-
|
|
2319
|
+
(n(!0), i(m, null, _(l.span, (u, a) => (n(), i("g", null, [
|
|
2320
|
+
l.caption.text && a === 0 ? (n(), i("foreignObject", {
|
|
2321
2321
|
key: 0,
|
|
2322
|
-
x: c.value.left + c.value.width / M.value * (
|
|
2323
|
-
y: c.value.top +
|
|
2322
|
+
x: c.value.left + c.value.width / M.value * (l.from + a - d.value.start) - (l.caption.width === "auto" ? 0 : l.caption.width / 2 - c.value.width / M.value * l.span / 2),
|
|
2323
|
+
y: c.value.top + l.caption.offsetY,
|
|
2324
2324
|
style: $({
|
|
2325
2325
|
overflow: "visible",
|
|
2326
|
-
opacity:
|
|
2326
|
+
opacity: l.to >= d.value.start && l.from < d.value.end ? 1 : 0
|
|
2327
2327
|
}),
|
|
2328
2328
|
height: "1",
|
|
2329
|
-
width:
|
|
2329
|
+
width: l.caption.width === "auto" ? c.value.width / M.value * l.span : l.caption.width
|
|
2330
2330
|
}, [
|
|
2331
2331
|
b("div", {
|
|
2332
|
-
style: $(`padding:${
|
|
2333
|
-
}, te(
|
|
2332
|
+
style: $(`padding:${l.caption.padding}px;text-align:${l.caption.textAlign};font-size:${l.caption.fontSize}px;color:${l.caption.color};font-weight:${l.caption.bold ? "bold" : "normal"}`)
|
|
2333
|
+
}, te(l.caption.text), 5)
|
|
2334
2334
|
], 12, Bu)) : g("", !0)
|
|
2335
2335
|
]))), 256))
|
|
2336
2336
|
], 64)) : g("", !0)
|
|
2337
2337
|
]))), 256)),
|
|
2338
2338
|
Jt.value ? (n(), i("g", Fu, [
|
|
2339
|
-
(n(!0), i(m, null, _(M.value, (
|
|
2339
|
+
(n(!0), i(m, null, _(M.value, (l, u) => (n(), i("g", {
|
|
2340
2340
|
key: `tooltip_trap_highlighter_${u}`
|
|
2341
2341
|
}, [
|
|
2342
2342
|
b("rect", {
|
|
@@ -2344,17 +2344,17 @@ const Bo = {
|
|
|
2344
2344
|
y: c.value.top,
|
|
2345
2345
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
2346
2346
|
width: c.value.width / M.value < 0 ? 1e-5 : c.value.width / M.value,
|
|
2347
|
-
fill: [C.value, w.value, Ce.value].includes(u) ? v(qe)(
|
|
2347
|
+
fill: [C.value, w.value, Ce.value].includes(u) ? v(qe)(e.value.chart.highlighter.color, e.value.chart.highlighter.opacity) : "transparent",
|
|
2348
2348
|
style: { transition: "none !important", animation: "none !important" }
|
|
2349
2349
|
}, null, 8, Wu)
|
|
2350
2350
|
]))), 128))
|
|
2351
2351
|
])) : g("", !0),
|
|
2352
|
-
yl.value.length ? (n(!0), i(m, { key: 1 }, _(yl.value, (
|
|
2352
|
+
yl.value.length ? (n(!0), i(m, { key: 1 }, _(yl.value, (l, u) => (n(), i("g", {
|
|
2353
2353
|
key: `serie_bar_${u}`,
|
|
2354
2354
|
class: Oe(`serie_bar_${u}`),
|
|
2355
|
-
style: $(`opacity:${L.value ? L.value ===
|
|
2355
|
+
style: $(`opacity:${L.value ? L.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2356
2356
|
}, [
|
|
2357
|
-
(n(!0), i(m, null, _(
|
|
2357
|
+
(n(!0), i(m, null, _(l.plots, (a, s) => (n(), i("g", {
|
|
2358
2358
|
key: `bar_plot_${u}_${s}`
|
|
2359
2359
|
}, [
|
|
2360
2360
|
Ie(a.value) ? (n(), i("rect", {
|
|
@@ -2363,11 +2363,11 @@ const Bo = {
|
|
|
2363
2363
|
y: y.value.useIndividualScale ? ia(a) : na(a),
|
|
2364
2364
|
height: y.value.useIndividualScale ? Math.abs(ua(a)) : Math.abs(oa(a)),
|
|
2365
2365
|
width: wt.value - St.value,
|
|
2366
|
-
rx:
|
|
2367
|
-
fill:
|
|
2368
|
-
stroke:
|
|
2369
|
-
"stroke-width":
|
|
2370
|
-
style: $({ transition: v(ie) || !
|
|
2366
|
+
rx: e.value.bar.borderRadius,
|
|
2367
|
+
fill: e.value.bar.useGradient ? a.value >= 0 ? `url(#rectGradient_pos_${u}_${Q.value})` : `url(#rectGradient_neg_${u}_${Q.value})` : l.color,
|
|
2368
|
+
stroke: e.value.bar.border.useSerieColor ? l.color : e.value.bar.border.stroke,
|
|
2369
|
+
"stroke-width": e.value.bar.border.strokeWidth,
|
|
2370
|
+
style: $({ transition: v(ie) || !e.value.bar.showTransition ? void 0 : `all ${e.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
2371
2371
|
}, null, 12, Yu)) : g("", !0),
|
|
2372
2372
|
Ie(a.value) && t.$slots.pattern ? (n(), i("rect", {
|
|
2373
2373
|
key: 1,
|
|
@@ -2375,26 +2375,26 @@ const Bo = {
|
|
|
2375
2375
|
y: y.value.useIndividualScale ? ia(a) : na(a),
|
|
2376
2376
|
height: y.value.useIndividualScale ? Math.abs(ua(a)) : Math.abs(oa(a)),
|
|
2377
2377
|
width: wt.value - St.value,
|
|
2378
|
-
rx:
|
|
2379
|
-
fill: `url(#pattern_${Q.value}_${
|
|
2380
|
-
stroke:
|
|
2381
|
-
"stroke-width":
|
|
2382
|
-
style: $({ transition: v(ie) || !
|
|
2378
|
+
rx: e.value.bar.borderRadius,
|
|
2379
|
+
fill: `url(#pattern_${Q.value}_${l.slotAbsoluteIndex})`,
|
|
2380
|
+
stroke: e.value.bar.border.useSerieColor ? l.color : e.value.bar.border.stroke,
|
|
2381
|
+
"stroke-width": e.value.bar.border.strokeWidth,
|
|
2382
|
+
style: $({ transition: v(ie) || !e.value.bar.showTransition ? void 0 : `all ${e.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
2383
2383
|
}, null, 12, Du)) : g("", !0),
|
|
2384
|
-
a.comment &&
|
|
2384
|
+
a.comment && e.value.chart.comments.show ? (n(), i("foreignObject", {
|
|
2385
2385
|
key: 2,
|
|
2386
2386
|
style: { overflow: "visible" },
|
|
2387
2387
|
height: "12",
|
|
2388
|
-
width: wt.value / 2 +
|
|
2389
|
-
x: yt(a) -
|
|
2390
|
-
y: v(H)(a.y) +
|
|
2388
|
+
width: wt.value / 2 + e.value.chart.comments.width,
|
|
2389
|
+
x: yt(a) - e.value.chart.comments.width / 2 + e.value.chart.comments.offsetX,
|
|
2390
|
+
y: v(H)(a.y) + e.value.chart.comments.offsetY + 6
|
|
2391
2391
|
}, [
|
|
2392
2392
|
J(t.$slots, "plot-comment", {
|
|
2393
|
-
plot: { ...a, color:
|
|
2393
|
+
plot: { ...a, color: l.color, seriesIndex: u, datapointIndex: s }
|
|
2394
2394
|
}, void 0, !0)
|
|
2395
2395
|
], 8, Xu)) : g("", !0)
|
|
2396
2396
|
]))), 128)),
|
|
2397
|
-
Object.hasOwn(
|
|
2397
|
+
Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(v(j)(l.plots).trend) ? (n(), i("g", Gu, [
|
|
2398
2398
|
b("defs", null, [
|
|
2399
2399
|
b("marker", {
|
|
2400
2400
|
id: `bar_arrow_${u}`,
|
|
@@ -2406,38 +2406,38 @@ const Bo = {
|
|
|
2406
2406
|
}, [
|
|
2407
2407
|
b("polygon", {
|
|
2408
2408
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
2409
|
-
fill:
|
|
2409
|
+
fill: l.color
|
|
2410
2410
|
}, null, 8, Zu)
|
|
2411
2411
|
], 8, Uu)
|
|
2412
2412
|
]),
|
|
2413
|
-
|
|
2413
|
+
l.plots.length > 1 ? (n(), i("line", {
|
|
2414
2414
|
key: 0,
|
|
2415
|
-
x1: v(j)(
|
|
2416
|
-
x2: v(j)(
|
|
2417
|
-
y1: v(D)(v(j)(
|
|
2418
|
-
y2: v(D)(v(j)(
|
|
2415
|
+
x1: v(j)(l.plots).x1 + Gl(),
|
|
2416
|
+
x2: v(j)(l.plots).x2 + Gl(),
|
|
2417
|
+
y1: v(D)(v(j)(l.plots).y1),
|
|
2418
|
+
y2: v(D)(v(j)(l.plots).y2),
|
|
2419
2419
|
"stroke-width": 1,
|
|
2420
|
-
stroke:
|
|
2420
|
+
stroke: l.color,
|
|
2421
2421
|
"stroke-dasharray": 2,
|
|
2422
2422
|
"marker-end": `url(#bar_arrow_${u})`
|
|
2423
2423
|
}, null, 8, qu)) : g("", !0),
|
|
2424
|
-
|
|
2424
|
+
l.plots.length > 1 ? (n(), i("text", {
|
|
2425
2425
|
key: 1,
|
|
2426
2426
|
"text-anchor": "middle",
|
|
2427
|
-
x: v(j)(
|
|
2428
|
-
y: v(j)(
|
|
2427
|
+
x: v(j)(l.plots).x2 + Gl(),
|
|
2428
|
+
y: v(j)(l.plots).y2 - 6,
|
|
2429
2429
|
"font-size": S.value.plotLabels,
|
|
2430
|
-
fill:
|
|
2430
|
+
fill: l.color
|
|
2431
2431
|
}, te(v(Fe)({
|
|
2432
|
-
v: v(j)(
|
|
2432
|
+
v: v(j)(l.plots).trend * 100,
|
|
2433
2433
|
s: "%",
|
|
2434
2434
|
r: 2
|
|
2435
2435
|
})), 9, Ku)) : g("", !0)
|
|
2436
2436
|
])) : g("", !0)
|
|
2437
2437
|
], 6))), 128)) : g("", !0),
|
|
2438
|
-
!y.value.useIndividualScale &&
|
|
2438
|
+
!y.value.useIndividualScale && e.value.chart.grid.labels.zeroLine.show ? (n(), i("line", {
|
|
2439
2439
|
key: 2,
|
|
2440
|
-
stroke:
|
|
2440
|
+
stroke: e.value.chart.grid.stroke,
|
|
2441
2441
|
"stroke-width": "1",
|
|
2442
2442
|
x1: c.value.left + ee.value,
|
|
2443
2443
|
x2: c.value.right - ee.value,
|
|
@@ -2446,159 +2446,159 @@ const Bo = {
|
|
|
2446
2446
|
"stroke-linecap": "round",
|
|
2447
2447
|
style: { animation: "none !important" }
|
|
2448
2448
|
}, null, 8, Ju)) : g("", !0),
|
|
2449
|
-
|
|
2449
|
+
e.value.chart.highlighter.useLine && (![null, void 0].includes(w.value) || ![null, void 0].includes(C.value)) ? (n(), i("g", Qu, [
|
|
2450
2450
|
b("line", {
|
|
2451
2451
|
x1: c.value.left + c.value.width / M.value * ((w.value !== null ? w.value : 0) || (C.value !== null ? C.value : 0)) + c.value.width / M.value / 2,
|
|
2452
2452
|
x2: c.value.left + c.value.width / M.value * ((w.value !== null ? w.value : 0) || (C.value !== null ? C.value : 0)) + c.value.width / M.value / 2,
|
|
2453
2453
|
y1: v(D)(c.value.top),
|
|
2454
2454
|
y2: v(D)(c.value.bottom),
|
|
2455
|
-
stroke:
|
|
2456
|
-
"stroke-width":
|
|
2457
|
-
"stroke-dasharray":
|
|
2455
|
+
stroke: e.value.chart.highlighter.color,
|
|
2456
|
+
"stroke-width": e.value.chart.highlighter.lineWidth,
|
|
2457
|
+
"stroke-dasharray": e.value.chart.highlighter.lineDasharray,
|
|
2458
2458
|
"stroke-linecap": "round",
|
|
2459
2459
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
2460
2460
|
}, null, 8, ju)
|
|
2461
2461
|
])) : g("", !0),
|
|
2462
|
-
|
|
2462
|
+
e.value.chart.grid.frame.show ? (n(), i("rect", {
|
|
2463
2463
|
key: 4,
|
|
2464
2464
|
style: { pointerEvents: "none", transition: "none", animation: "none !important" },
|
|
2465
2465
|
x: c.value.left + ee.value < 0 ? 0 : c.value.left + ee.value,
|
|
2466
2466
|
y: c.value.top,
|
|
2467
|
-
width: c.value.width - (
|
|
2467
|
+
width: c.value.width - (e.value.chart.grid.position === "middle" ? 0 : c.value.width / M.value) < 0 ? 0 : c.value.width - (e.value.chart.grid.position === "middle" ? 0 : c.value.width / M.value),
|
|
2468
2468
|
height: c.value.height < 0 ? 0 : c.value.height,
|
|
2469
2469
|
fill: "transparent",
|
|
2470
|
-
stroke:
|
|
2471
|
-
"stroke-width":
|
|
2472
|
-
"stroke-linecap":
|
|
2473
|
-
"stroke-linejoin":
|
|
2474
|
-
"stroke-dasharray":
|
|
2470
|
+
stroke: e.value.chart.grid.frame.stroke,
|
|
2471
|
+
"stroke-width": e.value.chart.grid.frame.strokeWidth,
|
|
2472
|
+
"stroke-linecap": e.value.chart.grid.frame.strokeLinecap,
|
|
2473
|
+
"stroke-linejoin": e.value.chart.grid.frame.strokeLinejoin,
|
|
2474
|
+
"stroke-dasharray": e.value.chart.grid.frame.strokeDasharray
|
|
2475
2475
|
}, null, 8, en)) : g("", !0),
|
|
2476
|
-
|
|
2476
|
+
e.value.chart.grid.labels.show ? (n(), i("g", {
|
|
2477
2477
|
key: 5,
|
|
2478
2478
|
ref_key: "scaleLabels",
|
|
2479
2479
|
ref: Z
|
|
2480
2480
|
}, [
|
|
2481
2481
|
y.value.useIndividualScale ? (n(), i(m, { key: 0 }, [
|
|
2482
|
-
(n(!0), i(m, null, _(ot.value, (
|
|
2482
|
+
(n(!0), i(m, null, _(ot.value, (l) => (n(), i("g", null, [
|
|
2483
2483
|
b("line", {
|
|
2484
|
-
x1:
|
|
2485
|
-
x2:
|
|
2486
|
-
y1: y.value.isStacked ? v(D)(c.value.bottom -
|
|
2487
|
-
y2: y.value.isStacked ? v(D)(c.value.bottom -
|
|
2488
|
-
stroke:
|
|
2489
|
-
"stroke-width":
|
|
2484
|
+
x1: l.x + ee.value - c.value.individualOffsetX,
|
|
2485
|
+
x2: l.x + ee.value - c.value.individualOffsetX,
|
|
2486
|
+
y1: y.value.isStacked ? v(D)(c.value.bottom - l.yOffset - l.individualHeight) : v(D)(c.value.top),
|
|
2487
|
+
y2: y.value.isStacked ? v(D)(c.value.bottom - l.yOffset) : v(D)(c.value.bottom),
|
|
2488
|
+
stroke: l.color,
|
|
2489
|
+
"stroke-width": e.value.chart.grid.stroke,
|
|
2490
2490
|
"stroke-linecap": "round",
|
|
2491
|
-
style: $(`opacity:${L.value ? L.value ===
|
|
2491
|
+
style: $(`opacity:${L.value ? L.value === l.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
2492
2492
|
}, null, 12, ln)
|
|
2493
2493
|
]))), 256)),
|
|
2494
|
-
(n(!0), i(m, null, _(ot.value, (
|
|
2495
|
-
style: $(`opacity:${L.value ? L.value ===
|
|
2494
|
+
(n(!0), i(m, null, _(ot.value, (l) => (n(), i("g", {
|
|
2495
|
+
style: $(`opacity:${L.value ? L.value === l.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2496
2496
|
}, [
|
|
2497
2497
|
b("text", {
|
|
2498
|
-
fill:
|
|
2498
|
+
fill: l.color,
|
|
2499
2499
|
"font-size": S.value.dataLabels * 0.8,
|
|
2500
2500
|
"text-anchor": "middle",
|
|
2501
|
-
transform: `translate(${
|
|
2502
|
-
}, te(
|
|
2503
|
-
${
|
|
2504
|
-
(n(!0), i(m, null, _(
|
|
2505
|
-
|
|
2501
|
+
transform: `translate(${l.x - S.value.dataLabels * 0.8 / 2 + ee.value}, ${y.value.isStacked ? c.value.bottom - l.yOffset - l.individualHeight / 2 : c.value.top + c.value.height / 2}) rotate(-90)`
|
|
2502
|
+
}, te(l.name) + " " + te(l.scaleLabel && l.unique && l.scaleLabel !== l.id ? `-
|
|
2503
|
+
${l.scaleLabel}` : ""), 9, tn),
|
|
2504
|
+
(n(!0), i(m, null, _(l.yLabels, (u, a) => (n(), i(m, null, [
|
|
2505
|
+
e.value.chart.grid.labels.yAxis.showCrosshairs ? (n(), i("line", {
|
|
2506
2506
|
key: 0,
|
|
2507
|
-
x1:
|
|
2508
|
-
x2:
|
|
2507
|
+
x1: l.x + 3 + ee.value - e.value.chart.grid.labels.yAxis.crosshairSize - c.value.individualOffsetX,
|
|
2508
|
+
x2: l.x + ee.value - c.value.individualOffsetX,
|
|
2509
2509
|
y1: v(D)(u.y),
|
|
2510
2510
|
y2: v(D)(u.y),
|
|
2511
|
-
stroke:
|
|
2511
|
+
stroke: l.color,
|
|
2512
2512
|
"stroke-width": 1,
|
|
2513
2513
|
"stroke-linecap": "round",
|
|
2514
2514
|
style: { animation: "none !important" }
|
|
2515
2515
|
}, null, 8, an)) : g("", !0)
|
|
2516
2516
|
], 64))), 256)),
|
|
2517
|
-
(n(!0), i(m, null, _(
|
|
2518
|
-
x:
|
|
2517
|
+
(n(!0), i(m, null, _(l.yLabels, (u, a) => (n(), i("text", {
|
|
2518
|
+
x: l.x - 5 + ee.value - c.value.individualOffsetX,
|
|
2519
2519
|
y: v(D)(u.y) + S.value.dataLabels / 3,
|
|
2520
2520
|
"font-size": S.value.dataLabels,
|
|
2521
2521
|
"text-anchor": "end",
|
|
2522
|
-
fill:
|
|
2522
|
+
fill: l.color
|
|
2523
2523
|
}, te(v(pe)(
|
|
2524
|
-
|
|
2524
|
+
e.value.chart.grid.labels.yAxis.formatter,
|
|
2525
2525
|
u.value,
|
|
2526
2526
|
v(Fe)({
|
|
2527
2527
|
p: u.prefix,
|
|
2528
2528
|
v: u.value,
|
|
2529
2529
|
s: u.suffix,
|
|
2530
|
-
r:
|
|
2530
|
+
r: e.value.chart.grid.labels.yAxis.rounding
|
|
2531
2531
|
}),
|
|
2532
2532
|
{ datapoint: u.datapoint, seriesIndex: a }
|
|
2533
2533
|
)), 9, on))), 256))
|
|
2534
2534
|
], 4))), 256))
|
|
2535
|
-
], 64)) : (n(!0), i(m, { key: 1 }, _(da.value, (
|
|
2535
|
+
], 64)) : (n(!0), i(m, { key: 1 }, _(da.value, (l, u) => (n(), i("g", {
|
|
2536
2536
|
key: `yLabel_${u}`
|
|
2537
2537
|
}, [
|
|
2538
|
-
Ie(
|
|
2538
|
+
Ie(l) && l.value >= Xe.value.min && l.value <= Xe.value.max && e.value.chart.grid.labels.yAxis.showCrosshairs ? (n(), i("line", {
|
|
2539
2539
|
key: 0,
|
|
2540
2540
|
x1: c.value.left,
|
|
2541
|
-
x2: c.value.left -
|
|
2542
|
-
y1: v(D)(
|
|
2543
|
-
y2: v(D)(
|
|
2544
|
-
stroke:
|
|
2541
|
+
x2: c.value.left - e.value.chart.grid.labels.yAxis.crosshairSize,
|
|
2542
|
+
y1: v(D)(l.y),
|
|
2543
|
+
y2: v(D)(l.y),
|
|
2544
|
+
stroke: e.value.chart.grid.stroke,
|
|
2545
2545
|
"stroke-width": "1",
|
|
2546
2546
|
"stroke-linecap": "round",
|
|
2547
2547
|
style: { animation: "none !important" }
|
|
2548
2548
|
}, null, 8, un)) : g("", !0),
|
|
2549
|
-
|
|
2549
|
+
l.value >= Xe.value.min && l.value <= Xe.value.max ? (n(), i("text", {
|
|
2550
2550
|
key: 1,
|
|
2551
|
-
x: c.value.scaleLabelX -
|
|
2552
|
-
y: v(H)(
|
|
2551
|
+
x: c.value.scaleLabelX - e.value.chart.grid.labels.yAxis.crosshairSize,
|
|
2552
|
+
y: v(H)(l.y + S.value.dataLabels / 3),
|
|
2553
2553
|
"font-size": S.value.dataLabels,
|
|
2554
2554
|
"text-anchor": "end",
|
|
2555
|
-
fill:
|
|
2556
|
-
}, te(Ie(
|
|
2557
|
-
|
|
2558
|
-
|
|
2555
|
+
fill: e.value.chart.grid.labels.color
|
|
2556
|
+
}, te(Ie(l.value) ? v(pe)(
|
|
2557
|
+
e.value.chart.grid.labels.yAxis.formatter,
|
|
2558
|
+
l.value,
|
|
2559
2559
|
v(Fe)({
|
|
2560
|
-
p:
|
|
2561
|
-
v:
|
|
2562
|
-
s:
|
|
2563
|
-
r:
|
|
2560
|
+
p: l.prefix,
|
|
2561
|
+
v: l.value,
|
|
2562
|
+
s: l.suffix,
|
|
2563
|
+
r: e.value.chart.grid.labels.yAxis.rounding
|
|
2564
2564
|
})
|
|
2565
2565
|
) : ""), 9, nn)) : g("", !0)
|
|
2566
2566
|
]))), 128))
|
|
2567
2567
|
], 512)) : g("", !0),
|
|
2568
|
-
(n(!0), i(m, null, _(ll.value, (
|
|
2568
|
+
(n(!0), i(m, null, _(ll.value, (l, u) => (n(), i("g", {
|
|
2569
2569
|
key: `serie_plot_${u}`,
|
|
2570
2570
|
class: Oe(`serie_plot_${u}`),
|
|
2571
|
-
style: $(`opacity:${L.value ? L.value ===
|
|
2571
|
+
style: $(`opacity:${L.value ? L.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2572
2572
|
}, [
|
|
2573
|
-
(n(!0), i(m, null, _(
|
|
2573
|
+
(n(!0), i(m, null, _(l.plots, (a, s) => (n(), i("g", {
|
|
2574
2574
|
key: `circle_plot_${u}_${s}`
|
|
2575
2575
|
}, [
|
|
2576
2576
|
a && Ie(a.value) ? (n(), Ue(At, {
|
|
2577
2577
|
key: 0,
|
|
2578
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
2579
|
-
color:
|
|
2578
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(l.shape) ? l.shape : "circle",
|
|
2579
|
+
color: e.value.plot.useGradient ? `url(#plotGradient_${u}_${Q.value})` : e.value.plot.dot.useSerieColor ? l.color : e.value.plot.dot.fill,
|
|
2580
2580
|
plot: { x: v(H)(a.x), y: v(H)(a.y) },
|
|
2581
2581
|
radius: w.value !== null && w.value === s || C.value !== null && C.value === s ? (Le.value.plot || 6) * 1.5 : Le.value.plot || 6,
|
|
2582
|
-
stroke:
|
|
2583
|
-
strokeWidth:
|
|
2584
|
-
transition: v(ie) || !
|
|
2582
|
+
stroke: e.value.plot.dot.useSerieColor ? e.value.chart.backgroundColor : l.color,
|
|
2583
|
+
strokeWidth: e.value.plot.dot.strokeWidth,
|
|
2584
|
+
transition: v(ie) || !e.value.plot.showTransition || w.value !== null && w.value === s || C.value !== null && C.value === s ? void 0 : `all ${e.value.plot.transitionDurationMs}ms ease-in-out`
|
|
2585
2585
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : g("", !0),
|
|
2586
|
-
a.comment &&
|
|
2586
|
+
a.comment && e.value.chart.comments.show ? (n(), i("foreignObject", {
|
|
2587
2587
|
key: 1,
|
|
2588
2588
|
style: { overflow: "visible" },
|
|
2589
2589
|
height: "12",
|
|
2590
|
-
width:
|
|
2591
|
-
x: a.x -
|
|
2592
|
-
y: a.y +
|
|
2590
|
+
width: e.value.chart.comments.width,
|
|
2591
|
+
x: a.x - e.value.chart.comments.width / 2 + e.value.chart.comments.offsetX,
|
|
2592
|
+
y: a.y + e.value.chart.comments.offsetY + 6
|
|
2593
2593
|
}, [
|
|
2594
2594
|
b("div", rn, [
|
|
2595
2595
|
J(t.$slots, "plot-comment", {
|
|
2596
|
-
plot: { ...a, color:
|
|
2596
|
+
plot: { ...a, color: l.color, seriesIndex: u, datapointIndex: s }
|
|
2597
2597
|
}, void 0, !0)
|
|
2598
2598
|
])
|
|
2599
2599
|
], 8, sn)) : g("", !0)
|
|
2600
2600
|
]))), 128)),
|
|
2601
|
-
Object.hasOwn(
|
|
2601
|
+
Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(v(j)(l.plots).trend) ? (n(), i("g", cn, [
|
|
2602
2602
|
b("defs", null, [
|
|
2603
2603
|
b("marker", {
|
|
2604
2604
|
id: `plot_arrow_${u}`,
|
|
@@ -2610,148 +2610,148 @@ const Bo = {
|
|
|
2610
2610
|
}, [
|
|
2611
2611
|
b("polygon", {
|
|
2612
2612
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
2613
|
-
fill:
|
|
2613
|
+
fill: l.color
|
|
2614
2614
|
}, null, 8, dn)
|
|
2615
2615
|
], 8, vn)
|
|
2616
2616
|
]),
|
|
2617
|
-
|
|
2617
|
+
l.plots.length > 1 ? (n(), i("line", {
|
|
2618
2618
|
key: 0,
|
|
2619
|
-
x1: v(j)(
|
|
2620
|
-
x2: v(j)(
|
|
2621
|
-
y1: v(D)(v(j)(
|
|
2622
|
-
y2: v(D)(v(j)(
|
|
2619
|
+
x1: v(j)(l.plots).x1,
|
|
2620
|
+
x2: v(j)(l.plots).x2,
|
|
2621
|
+
y1: v(D)(v(j)(l.plots).y1),
|
|
2622
|
+
y2: v(D)(v(j)(l.plots).y2),
|
|
2623
2623
|
"stroke-width": 1,
|
|
2624
|
-
stroke:
|
|
2624
|
+
stroke: l.color,
|
|
2625
2625
|
"stroke-dasharray": 2,
|
|
2626
2626
|
"marker-end": `url(#plot_arrow_${u})`
|
|
2627
2627
|
}, null, 8, hn)) : g("", !0),
|
|
2628
|
-
|
|
2628
|
+
l.plots.length > 1 ? (n(), i("text", {
|
|
2629
2629
|
key: 1,
|
|
2630
2630
|
"text-anchor": "middle",
|
|
2631
|
-
x: v(j)(
|
|
2632
|
-
y: v(j)(
|
|
2631
|
+
x: v(j)(l.plots).x2,
|
|
2632
|
+
y: v(j)(l.plots).y2 - 6,
|
|
2633
2633
|
"font-size": S.value.plotLabels,
|
|
2634
|
-
fill:
|
|
2634
|
+
fill: l.color
|
|
2635
2635
|
}, te(v(Fe)({
|
|
2636
|
-
v: v(j)(
|
|
2636
|
+
v: v(j)(l.plots).trend * 100,
|
|
2637
2637
|
s: "%",
|
|
2638
2638
|
r: 2
|
|
2639
2639
|
})), 9, fn)) : g("", !0)
|
|
2640
2640
|
])) : g("", !0)
|
|
2641
2641
|
], 6))), 128)),
|
|
2642
|
-
(n(!0), i(m, null, _(Ge.value, (
|
|
2642
|
+
(n(!0), i(m, null, _(Ge.value, (l, u) => (n(), i("g", {
|
|
2643
2643
|
key: `serie_line_${u}`,
|
|
2644
2644
|
class: Oe(`serie_line_${u}`),
|
|
2645
|
-
style: $(`opacity:${L.value ? L.value ===
|
|
2645
|
+
style: $(`opacity:${L.value ? L.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2646
2646
|
}, [
|
|
2647
|
-
|
|
2647
|
+
l.smooth && l.plots.length > 1 && l.curve ? (n(), i("path", {
|
|
2648
2648
|
key: 0,
|
|
2649
|
-
d: `M${
|
|
2650
|
-
stroke:
|
|
2651
|
-
"stroke-width":
|
|
2652
|
-
"stroke-dasharray":
|
|
2649
|
+
d: `M${l.curve}`,
|
|
2650
|
+
stroke: e.value.chart.backgroundColor,
|
|
2651
|
+
"stroke-width": e.value.line.strokeWidth + 1,
|
|
2652
|
+
"stroke-dasharray": l.dashed ? e.value.line.strokeWidth * 2 : 0,
|
|
2653
2653
|
fill: "none",
|
|
2654
|
-
style: $({ transition: v(ie) || !
|
|
2655
|
-
}, null, 12, gn)) :
|
|
2654
|
+
style: $({ transition: v(ie) || !e.value.line.showTransition ? void 0 : `all ${e.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2655
|
+
}, null, 12, gn)) : l.plots.length > 1 && l.straight ? (n(), i("path", {
|
|
2656
2656
|
key: 1,
|
|
2657
|
-
d: `M${
|
|
2658
|
-
stroke:
|
|
2659
|
-
"stroke-width":
|
|
2660
|
-
"stroke-dasharray":
|
|
2657
|
+
d: `M${l.straight}`,
|
|
2658
|
+
stroke: e.value.chart.backgroundColor,
|
|
2659
|
+
"stroke-width": e.value.line.strokeWidth + 1,
|
|
2660
|
+
"stroke-dasharray": l.dashed ? e.value.line.strokeWidth * 2 : 0,
|
|
2661
2661
|
fill: "none",
|
|
2662
2662
|
"stroke-linecap": "round",
|
|
2663
2663
|
"stroke-linejoin": "round",
|
|
2664
|
-
style: $({ transition: v(ie) || !
|
|
2664
|
+
style: $({ transition: v(ie) || !e.value.line.showTransition ? void 0 : `all ${e.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2665
2665
|
}, null, 12, mn)) : g("", !0)
|
|
2666
2666
|
], 6))), 128)),
|
|
2667
2667
|
t.$slots.pattern ? (n(), i("defs", xn, [
|
|
2668
|
-
(n(!0), i(m, null, _(sl.value, (
|
|
2668
|
+
(n(!0), i(m, null, _(sl.value, (l, u) => J(t.$slots, "pattern", _t({
|
|
2669
2669
|
key: `serie_pattern_slot_${u}`
|
|
2670
|
-
}, { ref_for: !0 }, { ...
|
|
2670
|
+
}, { ref_for: !0 }, { ...l, seriesIndex: l.slotAbsoluteIndex, patternId: `pattern_${Q.value}_${u}` }), void 0, !0)), 128))
|
|
2671
2671
|
])) : g("", !0),
|
|
2672
|
-
(n(!0), i(m, null, _(Ge.value, (
|
|
2672
|
+
(n(!0), i(m, null, _(Ge.value, (l, u) => (n(), i("g", {
|
|
2673
2673
|
key: `serie_line_${u}`,
|
|
2674
2674
|
class: Oe(`serie_line_${u}`),
|
|
2675
|
-
style: $(`opacity:${L.value ? L.value ===
|
|
2675
|
+
style: $(`opacity:${L.value ? L.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2676
2676
|
}, [
|
|
2677
|
-
|
|
2678
|
-
|
|
2677
|
+
l.useArea && l.plots.length > 1 ? (n(), i("g", bn, [
|
|
2678
|
+
l.smooth ? (n(!0), i(m, { key: 0 }, _(l.curveAreas, (a, s) => (n(), i(m, { key: s }, [
|
|
2679
2679
|
a ? (n(), i("path", {
|
|
2680
2680
|
key: 0,
|
|
2681
2681
|
d: a,
|
|
2682
|
-
fill:
|
|
2683
|
-
style: $({ transition: v(ie) || !
|
|
2682
|
+
fill: e.value.line.area.useGradient ? `url(#areaGradient_${u}_${Q.value})` : v(qe)(l.color, e.value.line.area.opacity),
|
|
2683
|
+
style: $({ transition: v(ie) || !e.value.line.showTransition ? void 0 : `all ${e.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2684
2684
|
}, null, 12, pn)) : g("", !0),
|
|
2685
2685
|
t.$slots.pattern && a ? (n(), i("path", {
|
|
2686
2686
|
key: 1,
|
|
2687
2687
|
d: a,
|
|
2688
|
-
fill: `url(#pattern_${Q.value}_${
|
|
2689
|
-
style: $({ transition: v(ie) || !
|
|
2688
|
+
fill: `url(#pattern_${Q.value}_${l.slotAbsoluteIndex})`,
|
|
2689
|
+
style: $({ transition: v(ie) || !e.value.line.showTransition ? void 0 : `all ${e.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2690
2690
|
}, null, 12, yn)) : g("", !0)
|
|
2691
|
-
], 64))), 128)) : (n(!0), i(m, { key: 1 }, _(
|
|
2691
|
+
], 64))), 128)) : (n(!0), i(m, { key: 1 }, _(l.area.split(";"), (a, s) => (n(), i(m, { key: s }, [
|
|
2692
2692
|
a ? (n(), i("path", {
|
|
2693
2693
|
key: 0,
|
|
2694
2694
|
d: `M${a}Z`,
|
|
2695
|
-
fill:
|
|
2696
|
-
style: $({ transition: v(ie) || !
|
|
2695
|
+
fill: e.value.line.area.useGradient ? `url(#areaGradient_${u}_${Q.value})` : v(qe)(l.color, e.value.line.area.opacity),
|
|
2696
|
+
style: $({ transition: v(ie) || !e.value.line.showTransition ? void 0 : `all ${e.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2697
2697
|
}, null, 12, kn)) : g("", !0),
|
|
2698
2698
|
t.$slots.pattern && a ? (n(), i("path", {
|
|
2699
2699
|
key: 1,
|
|
2700
2700
|
d: `M${a}Z`,
|
|
2701
|
-
fill: `url(#pattern_${Q.value}_${
|
|
2702
|
-
style: $({ transition: v(ie) || !
|
|
2701
|
+
fill: `url(#pattern_${Q.value}_${l.slotAbsoluteIndex})`,
|
|
2702
|
+
style: $({ transition: v(ie) || !e.value.line.showTransition ? void 0 : `all ${e.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2703
2703
|
}, null, 12, wn)) : g("", !0)
|
|
2704
2704
|
], 64))), 128))
|
|
2705
2705
|
])) : g("", !0),
|
|
2706
|
-
|
|
2706
|
+
l.smooth && l.plots.length > 1 && l.curve ? (n(), i("path", {
|
|
2707
2707
|
key: 1,
|
|
2708
|
-
d: `M${
|
|
2709
|
-
stroke:
|
|
2710
|
-
"stroke-width":
|
|
2711
|
-
"stroke-dasharray":
|
|
2708
|
+
d: `M${l.curve}`,
|
|
2709
|
+
stroke: l.color,
|
|
2710
|
+
"stroke-width": e.value.line.strokeWidth,
|
|
2711
|
+
"stroke-dasharray": l.dashed ? e.value.line.strokeWidth * 2 : 0,
|
|
2712
2712
|
fill: "none",
|
|
2713
2713
|
"stroke-linecap": "round",
|
|
2714
|
-
style: $({ transition: v(ie) || !
|
|
2715
|
-
}, null, 12, Sn)) :
|
|
2714
|
+
style: $({ transition: v(ie) || !e.value.line.showTransition ? void 0 : `all ${e.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2715
|
+
}, null, 12, Sn)) : l.plots.length > 1 && l.straight ? (n(), i("path", {
|
|
2716
2716
|
key: 2,
|
|
2717
|
-
d: `M${
|
|
2718
|
-
stroke:
|
|
2719
|
-
"stroke-width":
|
|
2720
|
-
"stroke-dasharray":
|
|
2717
|
+
d: `M${l.straight}`,
|
|
2718
|
+
stroke: l.color,
|
|
2719
|
+
"stroke-width": e.value.line.strokeWidth,
|
|
2720
|
+
"stroke-dasharray": l.dashed ? e.value.line.strokeWidth * 2 : 0,
|
|
2721
2721
|
fill: "none",
|
|
2722
2722
|
"stroke-linecap": "round",
|
|
2723
2723
|
"stroke-linejoin": "round",
|
|
2724
|
-
style: $({ transition: v(ie) || !
|
|
2724
|
+
style: $({ transition: v(ie) || !e.value.line.showTransition ? void 0 : `all ${e.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2725
2725
|
}, null, 12, $n)) : g("", !0),
|
|
2726
|
-
(n(!0), i(m, null, _(
|
|
2726
|
+
(n(!0), i(m, null, _(l.plots, (a, s) => (n(), i(m, {
|
|
2727
2727
|
key: `circle_line_${u}_${s}`
|
|
2728
2728
|
}, [
|
|
2729
|
-
!ca.value.linePlot && a && Ie(a.value) || ca.value.linePlot && a && Ie(a.value) && (w.value !== null && w.value === s || C.value !== null && C.value === s) || fa(
|
|
2729
|
+
!ca.value.linePlot && a && Ie(a.value) || ca.value.linePlot && a && Ie(a.value) && (w.value !== null && w.value === s || C.value !== null && C.value === s) || fa(l.plots, s) ? (n(), Ue(At, {
|
|
2730
2730
|
key: 0,
|
|
2731
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
2732
|
-
color:
|
|
2731
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(l.shape) ? l.shape : "circle",
|
|
2732
|
+
color: e.value.line.useGradient ? `url(#lineGradient_${u}_${Q.value})` : e.value.line.dot.useSerieColor ? l.color : e.value.line.dot.fill,
|
|
2733
2733
|
plot: { x: v(H)(a.x), y: v(H)(a.y) },
|
|
2734
|
-
radius: w.value !== null && w.value === s || C.value !== null && C.value === s ? (Le.value.line || 6) * 1.5 : (fa(
|
|
2735
|
-
stroke:
|
|
2736
|
-
strokeWidth:
|
|
2737
|
-
transition: v(ie) || !
|
|
2734
|
+
radius: w.value !== null && w.value === s || C.value !== null && C.value === s ? (Le.value.line || 6) * 1.5 : (fa(l.plots, s), Le.value.line || 6),
|
|
2735
|
+
stroke: e.value.line.dot.useSerieColor ? e.value.chart.backgroundColor : l.color,
|
|
2736
|
+
strokeWidth: e.value.line.dot.strokeWidth,
|
|
2737
|
+
transition: v(ie) || !e.value.line.showTransition || w.value !== null && w.value === s || C.value !== null && C.value === s ? void 0 : `all ${e.value.line.transitionDurationMs}ms ease-in-out`
|
|
2738
2738
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : g("", !0),
|
|
2739
|
-
a.comment &&
|
|
2739
|
+
a.comment && e.value.chart.comments.show ? (n(), i("foreignObject", {
|
|
2740
2740
|
key: 1,
|
|
2741
2741
|
style: { overflow: "visible" },
|
|
2742
2742
|
height: "12",
|
|
2743
|
-
width:
|
|
2744
|
-
x: a.x -
|
|
2745
|
-
y: a.y +
|
|
2743
|
+
width: e.value.chart.comments.width,
|
|
2744
|
+
x: a.x - e.value.chart.comments.width / 2 + e.value.chart.comments.offsetX,
|
|
2745
|
+
y: a.y + e.value.chart.comments.offsetY + 6
|
|
2746
2746
|
}, [
|
|
2747
2747
|
b("div", Ln, [
|
|
2748
2748
|
J(t.$slots, "plot-comment", {
|
|
2749
|
-
plot: { ...a, color:
|
|
2749
|
+
plot: { ...a, color: l.color, seriesIndex: u, datapointIndex: s }
|
|
2750
2750
|
}, void 0, !0)
|
|
2751
2751
|
])
|
|
2752
2752
|
], 8, _n)) : g("", !0)
|
|
2753
2753
|
], 64))), 128)),
|
|
2754
|
-
Object.hasOwn(
|
|
2754
|
+
Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(v(j)(l.plots).trend) ? (n(), i("g", Mn, [
|
|
2755
2755
|
b("defs", null, [
|
|
2756
2756
|
b("marker", {
|
|
2757
2757
|
id: `line_arrow_${u}`,
|
|
@@ -2763,120 +2763,120 @@ const Bo = {
|
|
|
2763
2763
|
}, [
|
|
2764
2764
|
b("polygon", {
|
|
2765
2765
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
2766
|
-
fill:
|
|
2766
|
+
fill: l.color
|
|
2767
2767
|
}, null, 8, Cn)
|
|
2768
2768
|
], 8, An)
|
|
2769
2769
|
]),
|
|
2770
|
-
|
|
2770
|
+
l.plots.length > 1 ? (n(), i("line", {
|
|
2771
2771
|
key: 0,
|
|
2772
|
-
x1: v(j)(
|
|
2773
|
-
x2: v(j)(
|
|
2774
|
-
y1: v(D)(v(j)(
|
|
2775
|
-
y2: v(D)(v(j)(
|
|
2772
|
+
x1: v(j)(l.plots).x1,
|
|
2773
|
+
x2: v(j)(l.plots).x2,
|
|
2774
|
+
y1: v(D)(v(j)(l.plots).y1),
|
|
2775
|
+
y2: v(D)(v(j)(l.plots).y2),
|
|
2776
2776
|
"stroke-width": 1,
|
|
2777
|
-
stroke:
|
|
2777
|
+
stroke: l.color,
|
|
2778
2778
|
"stroke-dasharray": 2,
|
|
2779
2779
|
"marker-end": `url(#line_arrow_${u})`
|
|
2780
2780
|
}, null, 8, zn)) : g("", !0),
|
|
2781
|
-
|
|
2781
|
+
l.plots.length > 1 ? (n(), i("text", {
|
|
2782
2782
|
key: 1,
|
|
2783
2783
|
"text-anchor": "middle",
|
|
2784
|
-
x: v(j)(
|
|
2785
|
-
y: v(j)(
|
|
2784
|
+
x: v(j)(l.plots).x2,
|
|
2785
|
+
y: v(j)(l.plots).y2 - 6,
|
|
2786
2786
|
"font-size": S.value.plotLabels,
|
|
2787
|
-
fill:
|
|
2787
|
+
fill: l.color
|
|
2788
2788
|
}, te(v(Fe)({
|
|
2789
|
-
v: v(j)(
|
|
2789
|
+
v: v(j)(l.plots).trend * 100,
|
|
2790
2790
|
s: "%",
|
|
2791
2791
|
r: 2
|
|
2792
2792
|
})), 9, In)) : g("", !0)
|
|
2793
2793
|
])) : g("", !0)
|
|
2794
2794
|
], 6))), 128)),
|
|
2795
|
-
(
|
|
2796
|
-
(n(!0), i(m, null, _(yl.value, (
|
|
2795
|
+
(e.value.bar.labels.show || e.value.bar.serieName.show) && y.value.dataLabels.show ? (n(), i("g", Tn, [
|
|
2796
|
+
(n(!0), i(m, null, _(yl.value, (l, u) => (n(), i(m, {
|
|
2797
2797
|
key: `xLabel_bar_${u}`
|
|
2798
2798
|
}, [
|
|
2799
|
-
(n(!0), i(m, null, _(
|
|
2799
|
+
(n(!0), i(m, null, _(l.plots, (a, s) => (n(), i(m, {
|
|
2800
2800
|
key: `xLabel_bar_${u}_${s}`
|
|
2801
2801
|
}, [
|
|
2802
|
-
a && (!Object.hasOwn(
|
|
2802
|
+
a && (!Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || w.value !== null && w.value === s || C.value !== null && C.value === s) && e.value.bar.labels.show ? (n(), i("text", {
|
|
2803
2803
|
key: 0,
|
|
2804
2804
|
x: y.value.useIndividualScale && y.value.isStacked ? a.x + oe.value.line / 2 : yt(a) + Gl() / 2 - kt.value / 2,
|
|
2805
|
-
y: v(H)(a.y) + (a.value >= 0 ?
|
|
2805
|
+
y: v(H)(a.y) + (a.value >= 0 ? e.value.bar.labels.offsetY : -e.value.bar.labels.offsetY * 3),
|
|
2806
2806
|
"text-anchor": "middle",
|
|
2807
2807
|
"font-size": S.value.plotLabels,
|
|
2808
|
-
fill:
|
|
2809
|
-
style: $(`opacity:${L.value ? L.value ===
|
|
2808
|
+
fill: e.value.bar.labels.color,
|
|
2809
|
+
style: $(`opacity:${L.value ? L.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2810
2810
|
}, te(Ie(a.value) ? v(pe)(
|
|
2811
|
-
|
|
2811
|
+
e.value.bar.labels.formatter,
|
|
2812
2812
|
a.value,
|
|
2813
2813
|
v(Fe)({
|
|
2814
|
-
p:
|
|
2814
|
+
p: l.prefix || e.value.chart.labels.prefix,
|
|
2815
2815
|
v: a.value,
|
|
2816
|
-
s:
|
|
2817
|
-
r:
|
|
2816
|
+
s: l.suffix || e.value.chart.labels.suffix,
|
|
2817
|
+
r: e.value.bar.labels.rounding
|
|
2818
2818
|
}),
|
|
2819
2819
|
{
|
|
2820
2820
|
datapoint: a,
|
|
2821
|
-
serie:
|
|
2821
|
+
serie: l
|
|
2822
2822
|
}
|
|
2823
2823
|
) : ""), 13, Nn)) : g("", !0),
|
|
2824
|
-
a &&
|
|
2824
|
+
a && e.value.bar.serieName.show ? (n(), i("text", {
|
|
2825
2825
|
key: 1,
|
|
2826
2826
|
x: y.value.useIndividualScale && y.value.isStacked ? a.x + oe.value.line / 2 : a.x + Gl() * 1.1,
|
|
2827
|
-
y: a.y + (a.value > 0 ?
|
|
2827
|
+
y: a.y + (a.value > 0 ? e.value.bar.serieName.offsetY : -e.value.bar.serieName.offsetY * 3),
|
|
2828
2828
|
"text-anchor": "middle",
|
|
2829
2829
|
"font-size": S.value.plotLabels,
|
|
2830
|
-
fill:
|
|
2831
|
-
"font-weight":
|
|
2832
|
-
style: $(`opacity:${L.value ? L.value ===
|
|
2833
|
-
}, te(
|
|
2834
|
-
source:
|
|
2835
|
-
length:
|
|
2836
|
-
}) :
|
|
2830
|
+
fill: e.value.bar.serieName.useSerieColor ? l.color : e.value.bar.serieName.color,
|
|
2831
|
+
"font-weight": e.value.bar.serieName.bold ? "bold" : "normal",
|
|
2832
|
+
style: $(`opacity:${L.value ? L.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2833
|
+
}, te(e.value.bar.serieName.useAbbreviation ? v(_o)({
|
|
2834
|
+
source: l.name,
|
|
2835
|
+
length: e.value.bar.serieName.abbreviationSize
|
|
2836
|
+
}) : l.name), 13, On)) : g("", !0)
|
|
2837
2837
|
], 64))), 128))
|
|
2838
2838
|
], 64))), 128))
|
|
2839
2839
|
])) : g("", !0),
|
|
2840
|
-
|
|
2841
|
-
(n(!0), i(m, null, _(ll.value, (
|
|
2840
|
+
e.value.plot.labels.show && y.value.dataLabels.show ? (n(), i("g", Rn, [
|
|
2841
|
+
(n(!0), i(m, null, _(ll.value, (l, u) => (n(), i(m, {
|
|
2842
2842
|
key: `xLabel_plot_${u}`
|
|
2843
2843
|
}, [
|
|
2844
|
-
(n(!0), i(m, null, _(
|
|
2844
|
+
(n(!0), i(m, null, _(l.plots, (a, s) => (n(), i(m, {
|
|
2845
2845
|
key: `xLabel_plot_${u}_${s}`
|
|
2846
2846
|
}, [
|
|
2847
|
-
a && !Object.hasOwn(
|
|
2847
|
+
a && !Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || w.value !== null && w.value === s || C.value !== null && C.value === s ? (n(), i("text", {
|
|
2848
2848
|
key: 0,
|
|
2849
2849
|
x: a.x,
|
|
2850
|
-
y: a.y +
|
|
2850
|
+
y: a.y + e.value.plot.labels.offsetY,
|
|
2851
2851
|
"text-anchor": "middle",
|
|
2852
2852
|
"font-size": S.value.plotLabels,
|
|
2853
|
-
fill:
|
|
2854
|
-
style: $(`opacity:${L.value ? L.value ===
|
|
2853
|
+
fill: e.value.plot.labels.color,
|
|
2854
|
+
style: $(`opacity:${L.value ? L.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2855
2855
|
}, te(Ie(a.value) ? v(pe)(
|
|
2856
|
-
|
|
2856
|
+
e.value.plot.labels.formatter,
|
|
2857
2857
|
a.value,
|
|
2858
2858
|
v(Fe)({
|
|
2859
|
-
p:
|
|
2859
|
+
p: l.prefix || e.value.chart.labels.prefix,
|
|
2860
2860
|
v: a.value,
|
|
2861
|
-
s:
|
|
2862
|
-
r:
|
|
2861
|
+
s: l.suffix || e.value.chart.labels.suffix,
|
|
2862
|
+
r: e.value.plot.labels.rounding
|
|
2863
2863
|
}),
|
|
2864
2864
|
{
|
|
2865
2865
|
datapoint: a,
|
|
2866
|
-
serie:
|
|
2866
|
+
serie: l
|
|
2867
2867
|
}
|
|
2868
2868
|
) : ""), 13, Pn)) : g("", !0)
|
|
2869
2869
|
], 64))), 128))
|
|
2870
2870
|
], 64))), 128))
|
|
2871
2871
|
])) : (n(), i("g", Hn, [
|
|
2872
|
-
(n(!0), i(m, null, _(ll.value, (
|
|
2872
|
+
(n(!0), i(m, null, _(ll.value, (l, u) => (n(), i(m, {
|
|
2873
2873
|
key: `xLabel_plot_${u}`
|
|
2874
2874
|
}, [
|
|
2875
|
-
(n(!0), i(m, null, _(
|
|
2875
|
+
(n(!0), i(m, null, _(l.plots, (a, s) => (n(), i(m, {
|
|
2876
2876
|
key: `xLabel_plot_${u}_${s}`
|
|
2877
2877
|
}, [
|
|
2878
|
-
|
|
2879
|
-
[C.value, w.value, Ce.value].includes(s) &&
|
|
2878
|
+
e.value.plot.tag.followValue ? (n(), i(m, { key: 1 }, [
|
|
2879
|
+
[C.value, w.value, Ce.value].includes(s) && l.useTag ? (n(), i("line", {
|
|
2880
2880
|
key: 0,
|
|
2881
2881
|
class: "vue-ui-xy-tag-plot",
|
|
2882
2882
|
x1: c.value.left,
|
|
@@ -2886,49 +2886,49 @@ const Bo = {
|
|
|
2886
2886
|
"stroke-width": 1,
|
|
2887
2887
|
"stroke-linecap": "round",
|
|
2888
2888
|
"stroke-dasharray": "2",
|
|
2889
|
-
stroke:
|
|
2889
|
+
stroke: l.color
|
|
2890
2890
|
}, null, 8, Wn)) : g("", !0)
|
|
2891
2891
|
], 64)) : (n(), i(m, { key: 0 }, [
|
|
2892
|
-
a && s === 0 &&
|
|
2892
|
+
a && s === 0 && l.useTag && l.useTag === "start" ? (n(), i("foreignObject", {
|
|
2893
2893
|
key: 0,
|
|
2894
2894
|
x: a.x,
|
|
2895
2895
|
y: a.y - 20,
|
|
2896
2896
|
height: 24,
|
|
2897
2897
|
width: "150",
|
|
2898
|
-
style: $(`overflow: visible; opacity:${L.value ? L.value ===
|
|
2898
|
+
style: $(`overflow: visible; opacity:${L.value ? L.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2899
2899
|
}, [
|
|
2900
2900
|
b("div", {
|
|
2901
|
-
style: $(`padding: 3px; background:${v(qe)(
|
|
2901
|
+
style: $(`padding: 3px; background:${v(qe)(l.color, 80)};color:${v(Ke)(l.color)};width:fit-content;font-size:${S.value.plotLabels}px;border-radius: 2px;`),
|
|
2902
2902
|
innerHTML: v(pe)(
|
|
2903
|
-
|
|
2903
|
+
e.value.plot.tag.formatter,
|
|
2904
2904
|
a.value,
|
|
2905
|
-
|
|
2905
|
+
l.name,
|
|
2906
2906
|
{
|
|
2907
2907
|
datapoint: a,
|
|
2908
2908
|
seriesIndex: s,
|
|
2909
|
-
serieName:
|
|
2909
|
+
serieName: l.name
|
|
2910
2910
|
}
|
|
2911
2911
|
)
|
|
2912
2912
|
}, null, 12, En)
|
|
2913
2913
|
], 12, Vn)) : g("", !0),
|
|
2914
|
-
a && s ===
|
|
2914
|
+
a && s === l.plots.length - 1 && l.useTag && l.useTag === "end" ? (n(), i("foreignObject", {
|
|
2915
2915
|
key: 1,
|
|
2916
|
-
x: a.x -
|
|
2916
|
+
x: a.x - l.name.length * (S.value.plotLabels / 2),
|
|
2917
2917
|
y: a.y - 20,
|
|
2918
2918
|
height: 24,
|
|
2919
2919
|
width: "150",
|
|
2920
|
-
style: $(`overflow: visible; opacity:${L.value ? L.value ===
|
|
2920
|
+
style: $(`overflow: visible; opacity:${L.value ? L.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2921
2921
|
}, [
|
|
2922
2922
|
b("div", {
|
|
2923
|
-
style: $(`padding: 3px; background:${v(qe)(
|
|
2923
|
+
style: $(`padding: 3px; background:${v(qe)(l.color, 80)};color:${v(Ke)(l.color)};width:fit-content;font-size:${S.value.plotLabels}px;border-radius: 2px;`),
|
|
2924
2924
|
innerHTML: v(pe)(
|
|
2925
|
-
|
|
2925
|
+
e.value.plot.tag.formatter,
|
|
2926
2926
|
a.value,
|
|
2927
|
-
|
|
2927
|
+
l.name,
|
|
2928
2928
|
{
|
|
2929
2929
|
datapoint: a,
|
|
2930
2930
|
seriesIndex: s,
|
|
2931
|
-
serieName:
|
|
2931
|
+
serieName: l.name
|
|
2932
2932
|
}
|
|
2933
2933
|
)
|
|
2934
2934
|
}, null, 12, Fn)
|
|
@@ -2937,46 +2937,46 @@ const Bo = {
|
|
|
2937
2937
|
], 64))), 128))
|
|
2938
2938
|
], 64))), 128))
|
|
2939
2939
|
])),
|
|
2940
|
-
|
|
2941
|
-
(n(!0), i(m, null, _(Ge.value, (
|
|
2940
|
+
e.value.line.labels.show && y.value.dataLabels.show ? (n(), i("g", Yn, [
|
|
2941
|
+
(n(!0), i(m, null, _(Ge.value, (l, u) => (n(), i(m, {
|
|
2942
2942
|
key: `xLabel_line_${u}`
|
|
2943
2943
|
}, [
|
|
2944
|
-
(n(!0), i(m, null, _(
|
|
2944
|
+
(n(!0), i(m, null, _(l.plots, (a, s) => (n(), i(m, {
|
|
2945
2945
|
key: `xLabel_line_${u}_${s}`
|
|
2946
2946
|
}, [
|
|
2947
|
-
a && !Object.hasOwn(
|
|
2947
|
+
a && !Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || w.value !== null && w.value === s || C.value !== null && C.value === s ? (n(), i("text", {
|
|
2948
2948
|
key: 0,
|
|
2949
2949
|
x: a.x,
|
|
2950
|
-
y: a.y + (a.value >= 0 ?
|
|
2950
|
+
y: a.y + (a.value >= 0 ? e.value.line.labels.offsetY : -e.value.line.labels.offsetY * 3),
|
|
2951
2951
|
"text-anchor": "middle",
|
|
2952
2952
|
"font-size": S.value.plotLabels,
|
|
2953
|
-
fill:
|
|
2954
|
-
style: $(`opacity:${L.value ? L.value ===
|
|
2953
|
+
fill: e.value.line.labels.color,
|
|
2954
|
+
style: $(`opacity:${L.value ? L.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2955
2955
|
}, te(Ie(a.value) ? v(pe)(
|
|
2956
|
-
|
|
2956
|
+
e.value.line.labels.formatter,
|
|
2957
2957
|
a.value,
|
|
2958
2958
|
v(Fe)({
|
|
2959
|
-
p:
|
|
2959
|
+
p: l.prefix || e.value.chart.labels.prefix,
|
|
2960
2960
|
v: a.value,
|
|
2961
|
-
s:
|
|
2962
|
-
r:
|
|
2961
|
+
s: l.suffix || e.value.chart.labels.suffix,
|
|
2962
|
+
r: e.value.line.labels.rounding
|
|
2963
2963
|
}),
|
|
2964
2964
|
{
|
|
2965
2965
|
datapoint: a,
|
|
2966
|
-
serie:
|
|
2966
|
+
serie: l
|
|
2967
2967
|
}
|
|
2968
2968
|
) : ""), 13, Dn)) : g("", !0)
|
|
2969
2969
|
], 64))), 128))
|
|
2970
2970
|
], 64))), 128))
|
|
2971
2971
|
])) : (n(), i("g", Xn, [
|
|
2972
|
-
(n(!0), i(m, null, _(Ge.value, (
|
|
2972
|
+
(n(!0), i(m, null, _(Ge.value, (l, u) => (n(), i(m, {
|
|
2973
2973
|
key: `xLabel_line_${u}`
|
|
2974
2974
|
}, [
|
|
2975
|
-
(n(!0), i(m, null, _(
|
|
2975
|
+
(n(!0), i(m, null, _(l.plots, (a, s) => (n(), i(m, {
|
|
2976
2976
|
key: `xLabel_line_${u}_${s}`
|
|
2977
2977
|
}, [
|
|
2978
|
-
|
|
2979
|
-
[C.value, w.value, Ce.value].includes(s) &&
|
|
2978
|
+
e.value.line.tag.followValue ? (n(), i(m, { key: 1 }, [
|
|
2979
|
+
[C.value, w.value, Ce.value].includes(s) && l.useTag ? (n(), i("line", {
|
|
2980
2980
|
key: 0,
|
|
2981
2981
|
class: "vue-ui-xy-tag-line",
|
|
2982
2982
|
x1: c.value.left,
|
|
@@ -2986,49 +2986,49 @@ const Bo = {
|
|
|
2986
2986
|
"stroke-width": 1,
|
|
2987
2987
|
"stroke-linecap": "round",
|
|
2988
2988
|
"stroke-dasharray": "2",
|
|
2989
|
-
stroke:
|
|
2989
|
+
stroke: l.color
|
|
2990
2990
|
}, null, 8, Kn)) : g("", !0)
|
|
2991
2991
|
], 64)) : (n(), i(m, { key: 0 }, [
|
|
2992
|
-
a && s === 0 &&
|
|
2992
|
+
a && s === 0 && l.useTag && l.useTag === "start" ? (n(), i("foreignObject", {
|
|
2993
2993
|
key: 0,
|
|
2994
2994
|
x: a.x,
|
|
2995
2995
|
y: a.y - 20,
|
|
2996
2996
|
height: 24,
|
|
2997
2997
|
width: "150",
|
|
2998
|
-
style: $(`overflow: visible; opacity:${L.value ? L.value ===
|
|
2998
|
+
style: $(`overflow: visible; opacity:${L.value ? L.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2999
2999
|
}, [
|
|
3000
3000
|
b("div", {
|
|
3001
|
-
style: $(`padding: 3px; background:${v(qe)(
|
|
3001
|
+
style: $(`padding: 3px; background:${v(qe)(l.color, 80)};color:${v(Ke)(l.color)};width:fit-content;font-size:${S.value.plotLabels}px;border-radius: 2px;`),
|
|
3002
3002
|
innerHTML: v(pe)(
|
|
3003
|
-
|
|
3003
|
+
e.value.line.tag.formatter,
|
|
3004
3004
|
a.value,
|
|
3005
|
-
|
|
3005
|
+
l.name,
|
|
3006
3006
|
{
|
|
3007
3007
|
datapoint: a,
|
|
3008
3008
|
seriesIndex: s,
|
|
3009
|
-
serieName:
|
|
3009
|
+
serieName: l.name
|
|
3010
3010
|
}
|
|
3011
3011
|
)
|
|
3012
3012
|
}, null, 12, Un)
|
|
3013
3013
|
], 12, Gn)) : g("", !0),
|
|
3014
|
-
a && s ===
|
|
3014
|
+
a && s === l.plots.length - 1 && l.useTag && l.useTag === "end" ? (n(), i("foreignObject", {
|
|
3015
3015
|
key: 1,
|
|
3016
3016
|
x: a.x,
|
|
3017
3017
|
y: a.y - 20,
|
|
3018
3018
|
height: 24,
|
|
3019
3019
|
width: "150",
|
|
3020
|
-
style: $(`overflow: visible; opacity:${L.value ? L.value ===
|
|
3020
|
+
style: $(`overflow: visible; opacity:${L.value ? L.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3021
3021
|
}, [
|
|
3022
3022
|
b("div", {
|
|
3023
|
-
style: $(`padding: 3px; background:${v(qe)(
|
|
3023
|
+
style: $(`padding: 3px; background:${v(qe)(l.color, 80)};color:${v(Ke)(l.color)};width:fit-content;font-size:${S.value.plotLabels}px;border-radius: 2px;`),
|
|
3024
3024
|
innerHTML: v(pe)(
|
|
3025
|
-
|
|
3025
|
+
e.value.line.tag.formatter,
|
|
3026
3026
|
a.value,
|
|
3027
|
-
|
|
3027
|
+
l.name,
|
|
3028
3028
|
{
|
|
3029
3029
|
datapoint: a,
|
|
3030
3030
|
seriesIndex: s,
|
|
3031
|
-
serieName:
|
|
3031
|
+
serieName: l.name
|
|
3032
3032
|
}
|
|
3033
3033
|
)
|
|
3034
3034
|
}, null, 12, qn)
|
|
@@ -3037,93 +3037,93 @@ const Bo = {
|
|
|
3037
3037
|
], 64))), 128))
|
|
3038
3038
|
], 64))), 128))
|
|
3039
3039
|
])),
|
|
3040
|
-
(n(!0), i(m, null, _(Ge.value, (
|
|
3040
|
+
(n(!0), i(m, null, _(Ge.value, (l, u) => (n(), i(m, {
|
|
3041
3041
|
key: `xLabel_line_${u}`
|
|
3042
3042
|
}, [
|
|
3043
|
-
(n(!0), i(m, null, _(
|
|
3043
|
+
(n(!0), i(m, null, _(l.plots, (a, s) => (n(), i(m, {
|
|
3044
3044
|
key: `xLabel_line_${u}_${s}`
|
|
3045
3045
|
}, [
|
|
3046
|
-
a && s === 0 &&
|
|
3046
|
+
a && s === 0 && l.showSerieName && l.showSerieName === "start" ? (n(), i("text", {
|
|
3047
3047
|
key: 0,
|
|
3048
3048
|
x: a.x - S.value.plotLabels,
|
|
3049
3049
|
y: a.y,
|
|
3050
3050
|
"font-size": S.value.plotLabels,
|
|
3051
3051
|
"text-anchor": "end",
|
|
3052
|
-
fill:
|
|
3052
|
+
fill: l.color,
|
|
3053
3053
|
innerHTML: v(Mt)({
|
|
3054
|
-
content:
|
|
3054
|
+
content: l.name,
|
|
3055
3055
|
fontSize: S.value.plotLabels,
|
|
3056
|
-
fill:
|
|
3056
|
+
fill: l.color,
|
|
3057
3057
|
x: a.x - S.value.plotLabels,
|
|
3058
3058
|
y: a.y,
|
|
3059
3059
|
maxWords: 2
|
|
3060
3060
|
}),
|
|
3061
|
-
style: $(`opacity:${L.value ? L.value ===
|
|
3061
|
+
style: $(`opacity:${L.value ? L.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3062
3062
|
}, null, 12, Jn)) : g("", !0),
|
|
3063
|
-
a && s ===
|
|
3063
|
+
a && s === l.plots.length - 1 && l.showSerieName && l.showSerieName === "end" ? (n(), i("text", {
|
|
3064
3064
|
key: 1,
|
|
3065
3065
|
x: a.x + S.value.plotLabels,
|
|
3066
3066
|
y: a.y,
|
|
3067
3067
|
"font-size": S.value.plotLabels,
|
|
3068
3068
|
"text-anchor": "start",
|
|
3069
|
-
fill:
|
|
3069
|
+
fill: l.color,
|
|
3070
3070
|
innerHTML: v(Mt)({
|
|
3071
|
-
content:
|
|
3071
|
+
content: l.name,
|
|
3072
3072
|
fontSize: S.value.plotLabels,
|
|
3073
|
-
fill:
|
|
3073
|
+
fill: l.color,
|
|
3074
3074
|
x: a.x + S.value.plotLabels,
|
|
3075
3075
|
y: a.y,
|
|
3076
3076
|
maxWords: 2
|
|
3077
3077
|
}),
|
|
3078
|
-
style: $(`opacity:${L.value ? L.value ===
|
|
3078
|
+
style: $(`opacity:${L.value ? L.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3079
3079
|
}, null, 12, Qn)) : g("", !0)
|
|
3080
3080
|
], 64))), 128))
|
|
3081
3081
|
], 64))), 128)),
|
|
3082
|
-
(n(!0), i(m, null, _(ll.value, (
|
|
3082
|
+
(n(!0), i(m, null, _(ll.value, (l, u) => (n(), i(m, {
|
|
3083
3083
|
key: `xLabel_plot_${u}`
|
|
3084
3084
|
}, [
|
|
3085
|
-
(n(!0), i(m, null, _(
|
|
3085
|
+
(n(!0), i(m, null, _(l.plots, (a, s) => (n(), i(m, {
|
|
3086
3086
|
key: `xLabel_plot_${u}_${s}`
|
|
3087
3087
|
}, [
|
|
3088
|
-
a && s === 0 &&
|
|
3088
|
+
a && s === 0 && l.showSerieName && l.showSerieName === "start" ? (n(), i("text", {
|
|
3089
3089
|
key: 0,
|
|
3090
3090
|
x: a.x - S.value.plotLabels,
|
|
3091
3091
|
y: a.y,
|
|
3092
3092
|
"font-size": S.value.plotLabels,
|
|
3093
3093
|
"text-anchor": "end",
|
|
3094
|
-
fill:
|
|
3094
|
+
fill: l.color,
|
|
3095
3095
|
innerHTML: v(Mt)({
|
|
3096
|
-
content:
|
|
3096
|
+
content: l.name,
|
|
3097
3097
|
fontSize: S.value.plotLabels,
|
|
3098
|
-
fill:
|
|
3098
|
+
fill: l.color,
|
|
3099
3099
|
x: a.x - S.value.plotLabels,
|
|
3100
3100
|
y: a.y,
|
|
3101
3101
|
maxWords: 2
|
|
3102
3102
|
}),
|
|
3103
|
-
style: $(`opacity:${L.value ? L.value ===
|
|
3103
|
+
style: $(`opacity:${L.value ? L.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3104
3104
|
}, null, 12, jn)) : g("", !0),
|
|
3105
|
-
a && s ===
|
|
3105
|
+
a && s === l.plots.length - 1 && l.showSerieName && l.showSerieName === "end" ? (n(), i("text", {
|
|
3106
3106
|
key: 1,
|
|
3107
3107
|
x: a.x + S.value.plotLabels,
|
|
3108
3108
|
y: a.y,
|
|
3109
3109
|
"font-size": S.value.plotLabels,
|
|
3110
3110
|
"text-anchor": "start",
|
|
3111
|
-
fill:
|
|
3111
|
+
fill: l.color,
|
|
3112
3112
|
innerHTML: v(Mt)({
|
|
3113
|
-
content:
|
|
3113
|
+
content: l.name,
|
|
3114
3114
|
fontSize: S.value.plotLabels,
|
|
3115
|
-
fill:
|
|
3115
|
+
fill: l.color,
|
|
3116
3116
|
x: a.x + S.value.plotLabels,
|
|
3117
3117
|
y: a.y,
|
|
3118
3118
|
maxWords: 2
|
|
3119
3119
|
}),
|
|
3120
|
-
style: $(`opacity:${L.value ? L.value ===
|
|
3120
|
+
style: $(`opacity:${L.value ? L.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3121
3121
|
}, null, 12, ei)) : g("", !0)
|
|
3122
3122
|
], 64))), 128))
|
|
3123
3123
|
], 64))), 128)),
|
|
3124
3124
|
y.value.useIndividualScale && !y.value.isStacked ? (n(), i(m, { key: 12 }, [
|
|
3125
3125
|
b("defs", null, [
|
|
3126
|
-
(n(!0), i(m, null, _(ot.value, (
|
|
3126
|
+
(n(!0), i(m, null, _(ot.value, (l, u) => (n(), i("linearGradient", {
|
|
3127
3127
|
id: `individual_scale_gradient_${Q.value}_${u}`,
|
|
3128
3128
|
x1: "0%",
|
|
3129
3129
|
x2: "100%",
|
|
@@ -3132,38 +3132,38 @@ const Bo = {
|
|
|
3132
3132
|
}, [
|
|
3133
3133
|
b("stop", {
|
|
3134
3134
|
offset: "0%",
|
|
3135
|
-
"stop-color":
|
|
3135
|
+
"stop-color": e.value.chart.backgroundColor,
|
|
3136
3136
|
"stop-opacity": "0"
|
|
3137
3137
|
}, null, 8, ti),
|
|
3138
3138
|
b("stop", {
|
|
3139
3139
|
offset: "100%",
|
|
3140
|
-
"stop-color":
|
|
3140
|
+
"stop-color": l.color,
|
|
3141
3141
|
"stop-opacity": "0.2"
|
|
3142
3142
|
}, null, 8, ai)
|
|
3143
3143
|
], 8, li))), 256))
|
|
3144
3144
|
]),
|
|
3145
|
-
(n(!0), i(m, null, _(ot.value, (
|
|
3146
|
-
x:
|
|
3145
|
+
(n(!0), i(m, null, _(ot.value, (l, u) => (n(), i("rect", {
|
|
3146
|
+
x: l.x - e.value.chart.grid.labels.yAxis.labelWidth + ee.value - c.value.individualOffsetX,
|
|
3147
3147
|
y: c.value.top,
|
|
3148
|
-
width:
|
|
3148
|
+
width: e.value.chart.grid.labels.yAxis.labelWidth + c.value.individualOffsetX,
|
|
3149
3149
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
3150
|
-
fill: L.value ===
|
|
3151
|
-
onMouseenter: (a) => L.value =
|
|
3150
|
+
fill: L.value === l.groupId ? `url(#individual_scale_gradient_${Q.value}_${u})` : "transparent",
|
|
3151
|
+
onMouseenter: (a) => L.value = l.groupId,
|
|
3152
3152
|
onMouseleave: r[0] || (r[0] = (a) => L.value = null)
|
|
3153
3153
|
}, null, 40, oi))), 256))
|
|
3154
3154
|
], 64)) : g("", !0),
|
|
3155
3155
|
b("g", null, [
|
|
3156
|
-
|
|
3156
|
+
e.value.chart.grid.labels.axis.yLabel && !y.value.useIndividualScale ? (n(), i("text", {
|
|
3157
3157
|
key: 0,
|
|
3158
3158
|
ref_key: "yAxisLabel",
|
|
3159
3159
|
ref: Vl,
|
|
3160
3160
|
"font-size": S.value.yAxis,
|
|
3161
|
-
fill:
|
|
3162
|
-
transform: `translate(${
|
|
3161
|
+
fill: e.value.chart.grid.labels.color,
|
|
3162
|
+
transform: `translate(${e.value.chart.grid.labels.axis.fontSize}, ${c.value.top + c.value.height / 2}) rotate(-90)`,
|
|
3163
3163
|
"text-anchor": "middle",
|
|
3164
3164
|
style: { transition: "none" }
|
|
3165
|
-
}, te(
|
|
3166
|
-
|
|
3165
|
+
}, te(e.value.chart.grid.labels.axis.yLabel), 9, ui)) : g("", !0),
|
|
3166
|
+
e.value.chart.grid.labels.axis.xLabel ? (n(), i("text", {
|
|
3167
3167
|
key: 1,
|
|
3168
3168
|
ref_key: "xAxisLabel",
|
|
3169
3169
|
ref: Hl,
|
|
@@ -3171,119 +3171,119 @@ const Bo = {
|
|
|
3171
3171
|
x: ne.value / 2,
|
|
3172
3172
|
y: xe.value - 3,
|
|
3173
3173
|
"font-size": S.value.yAxis,
|
|
3174
|
-
fill:
|
|
3175
|
-
}, te(
|
|
3174
|
+
fill: e.value.chart.grid.labels.color
|
|
3175
|
+
}, te(e.value.chart.grid.labels.axis.xLabel), 9, ni)) : g("", !0)
|
|
3176
3176
|
]),
|
|
3177
|
-
|
|
3177
|
+
e.value.chart.grid.labels.xAxisLabels.show ? (n(), i("g", {
|
|
3178
3178
|
key: 13,
|
|
3179
3179
|
ref_key: "timeLabelsEls",
|
|
3180
3180
|
ref: Qe
|
|
3181
3181
|
}, [
|
|
3182
|
-
t.$slots["time-label"] ? (n(!0), i(m, { key: 0 }, _(q.value, (
|
|
3182
|
+
t.$slots["time-label"] ? (n(!0), i(m, { key: 0 }, _(q.value, (l, u) => J(t.$slots, "time-label", _t({
|
|
3183
3183
|
key: `time_label_${u}`,
|
|
3184
3184
|
ref_for: !0
|
|
3185
3185
|
}, {
|
|
3186
3186
|
x: c.value.left + c.value.width / M.value * u + c.value.width / M.value / 2,
|
|
3187
3187
|
y: c.value.bottom,
|
|
3188
3188
|
fontSize: S.value.xAxis,
|
|
3189
|
-
fill:
|
|
3190
|
-
transform: `translate(${c.value.left + c.value.width / M.value * u + c.value.width / M.value / 2}, ${c.value.bottom + S.value.xAxis * 1.3 +
|
|
3191
|
-
absoluteIndex:
|
|
3192
|
-
content:
|
|
3193
|
-
textAnchor:
|
|
3194
|
-
show:
|
|
3195
|
-
}), void 0, !0)), 128)) : (n(!0), i(m, { key: 1 }, _(q.value, (
|
|
3189
|
+
fill: e.value.chart.grid.labels.xAxisLabels.color,
|
|
3190
|
+
transform: `translate(${c.value.left + c.value.width / M.value * u + c.value.width / M.value / 2}, ${c.value.bottom + S.value.xAxis * 1.3 + e.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3191
|
+
absoluteIndex: l.absoluteIndex,
|
|
3192
|
+
content: l.text,
|
|
3193
|
+
textAnchor: e.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3194
|
+
show: l && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && M.value <= bt.value || l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (u === 0 || u === q.value.length - 1) && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && w.value === u && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && u % Math.floor((d.value.end - d.value.start) / bt.value) === 0
|
|
3195
|
+
}), void 0, !0)), 128)) : (n(!0), i(m, { key: 1 }, _(q.value, (l, u) => (n(), i("g", {
|
|
3196
3196
|
key: `time_label_${u}`
|
|
3197
3197
|
}, [
|
|
3198
|
-
|
|
3199
|
-
String(
|
|
3198
|
+
l && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && M.value <= bt.value || l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (u === 0 || u === q.value.length - 1) && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && w.value === u && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && u % Math.floor((d.value.end - d.value.start) / bt.value) === 0 ? (n(), i(m, { key: 0 }, [
|
|
3199
|
+
String(l.text).includes(`
|
|
3200
3200
|
`) ? (n(), i("text", {
|
|
3201
3201
|
key: 1,
|
|
3202
3202
|
class: "vue-data-ui-time-label",
|
|
3203
|
-
"text-anchor":
|
|
3203
|
+
"text-anchor": e.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3204
3204
|
"font-size": S.value.xAxis,
|
|
3205
|
-
fill:
|
|
3206
|
-
transform: `translate(${c.value.left + c.value.width / M.value * u + c.value.width / M.value / 2}, ${c.value.bottom + S.value.xAxis * 1.5}), rotate(${
|
|
3205
|
+
fill: e.value.chart.grid.labels.xAxisLabels.color,
|
|
3206
|
+
transform: `translate(${c.value.left + c.value.width / M.value * u + c.value.width / M.value / 2}, ${c.value.bottom + S.value.xAxis * 1.5}), rotate(${e.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3207
3207
|
style: $({
|
|
3208
3208
|
cursor: qt() ? "pointer" : "default"
|
|
3209
3209
|
}),
|
|
3210
3210
|
innerHTML: v(Lo)({
|
|
3211
|
-
content: String(
|
|
3211
|
+
content: String(l.text),
|
|
3212
3212
|
fontSize: S.value.xAxis,
|
|
3213
|
-
fill:
|
|
3213
|
+
fill: e.value.chart.grid.labels.xAxisLabels.color,
|
|
3214
3214
|
x: 0,
|
|
3215
3215
|
y: 0
|
|
3216
3216
|
}),
|
|
3217
|
-
onClick: () => jt(
|
|
3217
|
+
onClick: () => jt(l, u)
|
|
3218
3218
|
}, null, 12, si)) : (n(), i("text", {
|
|
3219
3219
|
key: 0,
|
|
3220
3220
|
class: "vue-data-ui-time-label",
|
|
3221
|
-
"text-anchor":
|
|
3221
|
+
"text-anchor": e.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3222
3222
|
"font-size": S.value.xAxis,
|
|
3223
|
-
fill:
|
|
3224
|
-
transform: `translate(${c.value.left + c.value.width / M.value * u + c.value.width / M.value / 2}, ${c.value.bottom + S.value.xAxis * 1.5}), rotate(${
|
|
3223
|
+
fill: e.value.chart.grid.labels.xAxisLabels.color,
|
|
3224
|
+
transform: `translate(${c.value.left + c.value.width / M.value * u + c.value.width / M.value / 2}, ${c.value.bottom + S.value.xAxis * 1.5}), rotate(${e.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3225
3225
|
style: $({
|
|
3226
3226
|
cursor: qt() ? "pointer" : "default"
|
|
3227
3227
|
}),
|
|
3228
|
-
onClick: () => jt(
|
|
3229
|
-
}, te(
|
|
3228
|
+
onClick: () => jt(l, u)
|
|
3229
|
+
}, te(l.text || ""), 13, ii))
|
|
3230
3230
|
], 64)) : g("", !0)
|
|
3231
3231
|
]))), 128))
|
|
3232
3232
|
], 512)) : g("", !0),
|
|
3233
3233
|
ha.value.length && !y.value.isStacked ? (n(), i("g", ri, [
|
|
3234
|
-
(n(!0), i(m, null, _(ha.value, (
|
|
3235
|
-
key:
|
|
3234
|
+
(n(!0), i(m, null, _(ha.value, (l) => (n(), i("g", {
|
|
3235
|
+
key: l.uid
|
|
3236
3236
|
}, [
|
|
3237
|
-
|
|
3237
|
+
l.yTop && l.show && isFinite(l.yTop) ? (n(), i("line", {
|
|
3238
3238
|
key: 0,
|
|
3239
|
-
x1:
|
|
3240
|
-
y1:
|
|
3241
|
-
x2:
|
|
3242
|
-
y2:
|
|
3243
|
-
stroke:
|
|
3244
|
-
"stroke-width":
|
|
3245
|
-
"stroke-dasharray":
|
|
3239
|
+
x1: l.x1,
|
|
3240
|
+
y1: l.yTop,
|
|
3241
|
+
x2: l.x2,
|
|
3242
|
+
y2: l.yTop,
|
|
3243
|
+
stroke: l.config.line.stroke,
|
|
3244
|
+
"stroke-width": l.config.line.strokeWidth,
|
|
3245
|
+
"stroke-dasharray": l.config.line.strokeDasharray,
|
|
3246
3246
|
"stroke-linecap": "round",
|
|
3247
3247
|
style: { animation: "none !important" }
|
|
3248
3248
|
}, null, 8, ci)) : g("", !0),
|
|
3249
|
-
|
|
3249
|
+
l.yBottom && l.show && isFinite(l.yBottom) ? (n(), i("line", {
|
|
3250
3250
|
key: 1,
|
|
3251
|
-
x1:
|
|
3252
|
-
y1:
|
|
3253
|
-
x2:
|
|
3254
|
-
y2:
|
|
3255
|
-
stroke:
|
|
3256
|
-
"stroke-width":
|
|
3257
|
-
"stroke-dasharray":
|
|
3251
|
+
x1: l.x1,
|
|
3252
|
+
y1: l.yBottom,
|
|
3253
|
+
x2: l.x2,
|
|
3254
|
+
y2: l.yBottom,
|
|
3255
|
+
stroke: l.config.line.stroke,
|
|
3256
|
+
"stroke-width": l.config.line.strokeWidth,
|
|
3257
|
+
"stroke-dasharray": l.config.line.strokeDasharray,
|
|
3258
3258
|
"stroke-linecap": "round",
|
|
3259
3259
|
style: { animation: "none !important" }
|
|
3260
3260
|
}, null, 8, vi)) : g("", !0),
|
|
3261
|
-
|
|
3261
|
+
l.hasArea && l.show && isFinite(l.yTop) && isFinite(l.yBottom) ? (n(), i("rect", {
|
|
3262
3262
|
key: 2,
|
|
3263
|
-
y: Math.min(
|
|
3264
|
-
x:
|
|
3263
|
+
y: Math.min(l.yTop, l.yBottom),
|
|
3264
|
+
x: l.x1,
|
|
3265
3265
|
width: c.value.width,
|
|
3266
|
-
height: v(H)(
|
|
3267
|
-
fill: v(qe)(
|
|
3266
|
+
height: v(H)(l.areaHeight, 0),
|
|
3267
|
+
fill: v(qe)(l.config.area.fill, l.config.area.opacity),
|
|
3268
3268
|
style: { animation: "none !important" }
|
|
3269
3269
|
}, null, 8, di)) : g("", !0),
|
|
3270
|
-
|
|
3270
|
+
l.config.label.text && l.show && isFinite(l._box.y) ? (n(), i("rect", _t({
|
|
3271
3271
|
key: 3,
|
|
3272
3272
|
class: "vue-ui-xy-annotation-label-box"
|
|
3273
|
-
}, { ref_for: !0 },
|
|
3274
|
-
|
|
3273
|
+
}, { ref_for: !0 }, l._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : g("", !0),
|
|
3274
|
+
l.config.label.text && l.show && isFinite(l._text.y) ? (n(), i("text", {
|
|
3275
3275
|
key: 4,
|
|
3276
|
-
id:
|
|
3276
|
+
id: l.id,
|
|
3277
3277
|
class: "vue-ui-xy-annotation-label",
|
|
3278
|
-
x:
|
|
3279
|
-
y:
|
|
3280
|
-
"font-size":
|
|
3281
|
-
fill:
|
|
3282
|
-
"text-anchor":
|
|
3283
|
-
}, te(
|
|
3278
|
+
x: l._text.x,
|
|
3279
|
+
y: l._text.y,
|
|
3280
|
+
"font-size": l.config.label.fontSize,
|
|
3281
|
+
fill: l.config.label.color,
|
|
3282
|
+
"text-anchor": l.config.label.textAnchor
|
|
3283
|
+
}, te(l.config.label.text), 9, hi)) : g("", !0)
|
|
3284
3284
|
]))), 128))
|
|
3285
3285
|
])) : g("", !0),
|
|
3286
|
-
|
|
3286
|
+
e.value.chart.timeTag.show && (![null, void 0].includes(w.value) || ![null, void 0].includes(C.value)) ? (n(), i("g", fi, [
|
|
3287
3287
|
(n(), i("foreignObject", {
|
|
3288
3288
|
x: c.value.left + c.value.width / M.value * ((w.value !== null ? w.value : 0) || (C.value !== null ? C.value : 0)) - 100 + c.value.width / M.value / 2,
|
|
3289
3289
|
y: c.value.bottom,
|
|
@@ -3293,14 +3293,14 @@ const Bo = {
|
|
|
3293
3293
|
}, [
|
|
3294
3294
|
b("div", {
|
|
3295
3295
|
class: "vue-ui-xy-time-tag",
|
|
3296
|
-
style: $(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${
|
|
3296
|
+
style: $(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${e.value.chart.timeTag.backgroundColor};color:${e.value.chart.timeTag.color};font-size:${e.value.chart.timeTag.fontSize}px`)
|
|
3297
3297
|
}, te((q.value[(w.value !== null ? w.value : 0) || (C.value !== null ? C.value : 0)] ? q.value[(w.value !== null ? w.value : 0) || (C.value !== null ? C.value : 0)].text : "") || (w.value !== null ? w.value : 0) || (C.value !== null ? C.value : 0)), 5)
|
|
3298
3298
|
], 8, gi)),
|
|
3299
3299
|
b("circle", {
|
|
3300
3300
|
cx: c.value.left + c.value.width / M.value * ((w.value !== null ? w.value : 0) || (C.value !== null ? C.value : 0)) + c.value.width / M.value / 2,
|
|
3301
3301
|
cy: c.value.bottom,
|
|
3302
|
-
r:
|
|
3303
|
-
fill:
|
|
3302
|
+
r: e.value.chart.timeTag.circleMarker.radius,
|
|
3303
|
+
fill: e.value.chart.timeTag.circleMarker.color
|
|
3304
3304
|
}, null, 8, mi)
|
|
3305
3305
|
])) : g("", !0)
|
|
3306
3306
|
])) : g("", !0),
|
|
@@ -3311,13 +3311,13 @@ const Bo = {
|
|
|
3311
3311
|
t.$slots.watermark ? (n(), i("div", xi, [
|
|
3312
3312
|
J(t.$slots, "watermark", rl($l({ isPrinting: v(et) || v(ft) })), void 0, !0)
|
|
3313
3313
|
])) : g("", !0),
|
|
3314
|
-
(n(!0), i(m, null, _(Ge.value, (
|
|
3314
|
+
(n(!0), i(m, null, _(Ge.value, (l, u) => (n(), i(m, {
|
|
3315
3315
|
key: `tag_line_${u}`
|
|
3316
3316
|
}, [
|
|
3317
|
-
(n(!0), i(m, null, _(
|
|
3317
|
+
(n(!0), i(m, null, _(l.plots, (a, s) => (n(), i(m, {
|
|
3318
3318
|
key: `tag_line_${u}_${s}`
|
|
3319
3319
|
}, [
|
|
3320
|
-
[C.value, w.value, Ce.value].includes(s) &&
|
|
3320
|
+
[C.value, w.value, Ce.value].includes(s) && l.useTag && l.useTag === "end" && e.value.line.tag.followValue ? (n(), i("div", {
|
|
3321
3321
|
key: 0,
|
|
3322
3322
|
ref_for: !0,
|
|
3323
3323
|
ref: (o) => xt(u, s, o, "right", "line"),
|
|
@@ -3327,49 +3327,49 @@ const Bo = {
|
|
|
3327
3327
|
position: "fixed",
|
|
3328
3328
|
top: v(_l)({
|
|
3329
3329
|
svgElement: ke.value,
|
|
3330
|
-
x: c.value.right +
|
|
3330
|
+
x: c.value.right + e.value.line.tag.fontSize / 1.5,
|
|
3331
3331
|
y: a.y,
|
|
3332
3332
|
element: Ve.value[`${u}_${s}_right_line`],
|
|
3333
3333
|
position: "right"
|
|
3334
3334
|
}).top + "px",
|
|
3335
3335
|
left: v(_l)({
|
|
3336
3336
|
svgElement: ke.value,
|
|
3337
|
-
x: c.value.right +
|
|
3337
|
+
x: c.value.right + e.value.line.tag.fontSize / 1.5,
|
|
3338
3338
|
y: a.y,
|
|
3339
3339
|
element: Ve.value[`${u}_${s}_right_line`],
|
|
3340
3340
|
position: "right"
|
|
3341
3341
|
}).left + "px",
|
|
3342
3342
|
height: "fit-content",
|
|
3343
3343
|
width: "fit-content",
|
|
3344
|
-
background:
|
|
3345
|
-
color: v(Ke)(
|
|
3344
|
+
background: l.color,
|
|
3345
|
+
color: v(Ke)(l.color),
|
|
3346
3346
|
padding: "0 6px",
|
|
3347
|
-
fontSize:
|
|
3347
|
+
fontSize: e.value.line.tag.fontSize + "px",
|
|
3348
3348
|
opacity: 1
|
|
3349
3349
|
})
|
|
3350
3350
|
}, [
|
|
3351
3351
|
(n(), i("svg", bi, [
|
|
3352
3352
|
b("path", {
|
|
3353
3353
|
d: "M 0,10 10,0 10,20 Z",
|
|
3354
|
-
fill:
|
|
3354
|
+
fill: l.color,
|
|
3355
3355
|
stroke: "none"
|
|
3356
3356
|
}, null, 8, pi)
|
|
3357
3357
|
])),
|
|
3358
3358
|
b("div", {
|
|
3359
3359
|
class: "vue-ui-xy-tag-content",
|
|
3360
3360
|
innerHTML: v(pe)(
|
|
3361
|
-
|
|
3361
|
+
e.value.line.tag.formatter,
|
|
3362
3362
|
a.value,
|
|
3363
|
-
|
|
3363
|
+
l.name,
|
|
3364
3364
|
{
|
|
3365
3365
|
datapoint: a,
|
|
3366
3366
|
seriesIndex: s,
|
|
3367
|
-
serieName:
|
|
3367
|
+
serieName: l.name
|
|
3368
3368
|
}
|
|
3369
3369
|
)
|
|
3370
3370
|
}, null, 8, yi)
|
|
3371
3371
|
], 4)) : g("", !0),
|
|
3372
|
-
[C.value, w.value, Ce.value].includes(s) &&
|
|
3372
|
+
[C.value, w.value, Ce.value].includes(s) && l.useTag && l.useTag === "start" && e.value.line.tag.followValue ? (n(), i("div", {
|
|
3373
3373
|
key: 1,
|
|
3374
3374
|
ref_for: !0,
|
|
3375
3375
|
ref: (o) => xt(u, s, o, "left", "line"),
|
|
@@ -3379,57 +3379,57 @@ const Bo = {
|
|
|
3379
3379
|
position: "fixed",
|
|
3380
3380
|
top: v(_l)({
|
|
3381
3381
|
svgElement: ke.value,
|
|
3382
|
-
x: c.value.left -
|
|
3382
|
+
x: c.value.left - e.value.line.tag.fontSize / 1.5,
|
|
3383
3383
|
y: a.y,
|
|
3384
3384
|
element: Ve.value[`${u}_${s}_left_line`],
|
|
3385
3385
|
position: "left"
|
|
3386
3386
|
}).top + "px",
|
|
3387
3387
|
left: v(_l)({
|
|
3388
3388
|
svgElement: ke.value,
|
|
3389
|
-
x: c.value.left -
|
|
3389
|
+
x: c.value.left - e.value.line.tag.fontSize / 1.5,
|
|
3390
3390
|
y: a.y,
|
|
3391
3391
|
element: Ve.value[`${u}_${s}_left_line`],
|
|
3392
3392
|
position: "left"
|
|
3393
3393
|
}).left + "px",
|
|
3394
3394
|
height: "fit-content",
|
|
3395
3395
|
width: "fit-content",
|
|
3396
|
-
background:
|
|
3397
|
-
color: v(Ke)(
|
|
3396
|
+
background: l.color,
|
|
3397
|
+
color: v(Ke)(l.color),
|
|
3398
3398
|
padding: "0 6px",
|
|
3399
|
-
fontSize:
|
|
3399
|
+
fontSize: e.value.line.tag.fontSize + "px",
|
|
3400
3400
|
opacity: 1
|
|
3401
3401
|
})
|
|
3402
3402
|
}, [
|
|
3403
3403
|
(n(), i("svg", ki, [
|
|
3404
3404
|
b("path", {
|
|
3405
3405
|
d: "M 0,0 10,10 0,20 Z",
|
|
3406
|
-
fill:
|
|
3406
|
+
fill: l.color,
|
|
3407
3407
|
stroke: "none"
|
|
3408
3408
|
}, null, 8, wi)
|
|
3409
3409
|
])),
|
|
3410
3410
|
b("div", {
|
|
3411
3411
|
class: "vue-ui-xy-tag-content",
|
|
3412
3412
|
innerHTML: v(pe)(
|
|
3413
|
-
|
|
3413
|
+
e.value.line.tag.formatter,
|
|
3414
3414
|
a.value,
|
|
3415
|
-
|
|
3415
|
+
l.name,
|
|
3416
3416
|
{
|
|
3417
3417
|
datapoint: a,
|
|
3418
3418
|
seriesIndex: s,
|
|
3419
|
-
serieName:
|
|
3419
|
+
serieName: l.name
|
|
3420
3420
|
}
|
|
3421
3421
|
)
|
|
3422
3422
|
}, null, 8, Si)
|
|
3423
3423
|
], 4)) : g("", !0)
|
|
3424
3424
|
], 64))), 128))
|
|
3425
3425
|
], 64))), 128)),
|
|
3426
|
-
(n(!0), i(m, null, _(ll.value, (
|
|
3426
|
+
(n(!0), i(m, null, _(ll.value, (l, u) => (n(), i(m, {
|
|
3427
3427
|
key: `tag_plot_${u}`
|
|
3428
3428
|
}, [
|
|
3429
|
-
(n(!0), i(m, null, _(
|
|
3429
|
+
(n(!0), i(m, null, _(l.plots, (a, s) => (n(), i(m, {
|
|
3430
3430
|
key: `tag_plot_${u}_${s}`
|
|
3431
3431
|
}, [
|
|
3432
|
-
[C.value, w.value, Ce.value].includes(s) &&
|
|
3432
|
+
[C.value, w.value, Ce.value].includes(s) && l.useTag && l.useTag === "end" && e.value.plot.tag.followValue ? (n(), i("div", {
|
|
3433
3433
|
key: 0,
|
|
3434
3434
|
ref_for: !0,
|
|
3435
3435
|
ref: (o) => xt(u, s, o, "right", "plot"),
|
|
@@ -3439,49 +3439,49 @@ const Bo = {
|
|
|
3439
3439
|
position: "fixed",
|
|
3440
3440
|
top: v(_l)({
|
|
3441
3441
|
svgElement: ke.value,
|
|
3442
|
-
x: c.value.right +
|
|
3442
|
+
x: c.value.right + e.value.plot.tag.fontSize / 1.5,
|
|
3443
3443
|
y: a.y,
|
|
3444
3444
|
element: Ve.value[`${u}_${s}_right_plot`],
|
|
3445
3445
|
position: "right"
|
|
3446
3446
|
}).top + "px",
|
|
3447
3447
|
left: v(_l)({
|
|
3448
3448
|
svgElement: ke.value,
|
|
3449
|
-
x: c.value.right +
|
|
3449
|
+
x: c.value.right + e.value.plot.tag.fontSize / 1.5,
|
|
3450
3450
|
y: a.y,
|
|
3451
3451
|
element: Ve.value[`${u}_${s}_right_plot`],
|
|
3452
3452
|
position: "right"
|
|
3453
3453
|
}).left + "px",
|
|
3454
3454
|
height: "fit-content",
|
|
3455
3455
|
width: "fit-content",
|
|
3456
|
-
background:
|
|
3457
|
-
color: v(Ke)(
|
|
3456
|
+
background: l.color,
|
|
3457
|
+
color: v(Ke)(l.color),
|
|
3458
3458
|
padding: "0 6px",
|
|
3459
|
-
fontSize:
|
|
3459
|
+
fontSize: e.value.plot.tag.fontSize + "px",
|
|
3460
3460
|
opacity: 1
|
|
3461
3461
|
})
|
|
3462
3462
|
}, [
|
|
3463
3463
|
(n(), i("svg", $i, [
|
|
3464
3464
|
b("path", {
|
|
3465
3465
|
d: "M 0,10 10,0 10,20 Z",
|
|
3466
|
-
fill:
|
|
3466
|
+
fill: l.color,
|
|
3467
3467
|
stroke: "none"
|
|
3468
3468
|
}, null, 8, _i)
|
|
3469
3469
|
])),
|
|
3470
3470
|
b("div", {
|
|
3471
3471
|
class: "vue-ui-xy-tag-content",
|
|
3472
3472
|
innerHTML: v(pe)(
|
|
3473
|
-
|
|
3473
|
+
e.value.plot.tag.formatter,
|
|
3474
3474
|
a.value,
|
|
3475
|
-
|
|
3475
|
+
l.name,
|
|
3476
3476
|
{
|
|
3477
3477
|
datapoint: a,
|
|
3478
3478
|
seriesIndex: s,
|
|
3479
|
-
serieName:
|
|
3479
|
+
serieName: l.name
|
|
3480
3480
|
}
|
|
3481
3481
|
)
|
|
3482
3482
|
}, null, 8, Li)
|
|
3483
3483
|
], 4)) : g("", !0),
|
|
3484
|
-
[C.value, w.value, Ce.value].includes(s) &&
|
|
3484
|
+
[C.value, w.value, Ce.value].includes(s) && l.useTag && l.useTag === "start" && e.value.plot.tag.followValue ? (n(), i("div", {
|
|
3485
3485
|
key: 1,
|
|
3486
3486
|
ref_for: !0,
|
|
3487
3487
|
ref: (o) => xt(u, s, o, "left", "plot"),
|
|
@@ -3491,174 +3491,174 @@ const Bo = {
|
|
|
3491
3491
|
position: "fixed",
|
|
3492
3492
|
top: v(_l)({
|
|
3493
3493
|
svgElement: ke.value,
|
|
3494
|
-
x: c.value.left -
|
|
3494
|
+
x: c.value.left - e.value.plot.tag.fontSize / 1.5,
|
|
3495
3495
|
y: a.y,
|
|
3496
3496
|
element: Ve.value[`${u}_${s}_left_plot`],
|
|
3497
3497
|
position: "left"
|
|
3498
3498
|
}).top + "px",
|
|
3499
3499
|
left: v(_l)({
|
|
3500
3500
|
svgElement: ke.value,
|
|
3501
|
-
x: c.value.left -
|
|
3501
|
+
x: c.value.left - e.value.plot.tag.fontSize / 1.5,
|
|
3502
3502
|
y: a.y,
|
|
3503
3503
|
element: Ve.value[`${u}_${s}_left_plot`],
|
|
3504
3504
|
position: "left"
|
|
3505
3505
|
}).left + "px",
|
|
3506
3506
|
height: "fit-content",
|
|
3507
3507
|
width: "fit-content",
|
|
3508
|
-
background:
|
|
3509
|
-
color: v(Ke)(
|
|
3508
|
+
background: l.color,
|
|
3509
|
+
color: v(Ke)(l.color),
|
|
3510
3510
|
padding: "0 6px",
|
|
3511
|
-
fontSize:
|
|
3511
|
+
fontSize: e.value.plot.tag.fontSize + "px",
|
|
3512
3512
|
opacity: 1
|
|
3513
3513
|
})
|
|
3514
3514
|
}, [
|
|
3515
3515
|
(n(), i("svg", Mi, [
|
|
3516
3516
|
b("path", {
|
|
3517
3517
|
d: "M 0,0 10,10 0,20 Z",
|
|
3518
|
-
fill:
|
|
3518
|
+
fill: l.color,
|
|
3519
3519
|
stroke: "none"
|
|
3520
3520
|
}, null, 8, Ai)
|
|
3521
3521
|
])),
|
|
3522
3522
|
b("div", {
|
|
3523
3523
|
class: "vue-ui-xy-tag-content",
|
|
3524
3524
|
innerHTML: v(pe)(
|
|
3525
|
-
|
|
3525
|
+
e.value.plot.tag.formatter,
|
|
3526
3526
|
a.value,
|
|
3527
|
-
|
|
3527
|
+
l.name,
|
|
3528
3528
|
{
|
|
3529
3529
|
datapoint: a,
|
|
3530
3530
|
seriesIndex: s,
|
|
3531
|
-
serieName:
|
|
3531
|
+
serieName: l.name
|
|
3532
3532
|
}
|
|
3533
3533
|
)
|
|
3534
3534
|
}, null, 8, Ci)
|
|
3535
3535
|
], 4)) : g("", !0)
|
|
3536
3536
|
], 64))), 128))
|
|
3537
3537
|
], 64))), 128)),
|
|
3538
|
-
|
|
3539
|
-
|
|
3538
|
+
e.value.chart.zoom.preview.enable ? (n(), i(m, { key: 5 }, [
|
|
3539
|
+
e.value.chart.zoom.show && f.value > 6 && Cl.value ? (n(), Ue(nu, {
|
|
3540
3540
|
ref_key: "chartSlicer",
|
|
3541
3541
|
ref: Ae,
|
|
3542
3542
|
key: `slicer_${ye.value}`,
|
|
3543
|
-
background:
|
|
3544
|
-
fontSize:
|
|
3545
|
-
useResetSlot:
|
|
3543
|
+
background: e.value.chart.zoom.color,
|
|
3544
|
+
fontSize: e.value.chart.zoom.fontSize,
|
|
3545
|
+
useResetSlot: e.value.chart.zoom.useResetSlot,
|
|
3546
3546
|
labelLeft: q.value[0] ? q.value[0].text : "",
|
|
3547
3547
|
labelRight: q.value.at(-1) ? q.value.at(-1).text : "",
|
|
3548
|
-
textColor:
|
|
3549
|
-
inputColor:
|
|
3550
|
-
selectColor:
|
|
3551
|
-
borderColor:
|
|
3548
|
+
textColor: e.value.chart.color,
|
|
3549
|
+
inputColor: e.value.chart.zoom.color,
|
|
3550
|
+
selectColor: e.value.chart.zoom.highlightColor,
|
|
3551
|
+
borderColor: e.value.chart.backgroundColor,
|
|
3552
3552
|
minimap: va.value,
|
|
3553
|
-
smoothMinimap:
|
|
3554
|
-
minimapSelectedColor:
|
|
3555
|
-
minimapSelectionRadius:
|
|
3556
|
-
minimapLineColor:
|
|
3557
|
-
minimapSelectedColorOpacity:
|
|
3553
|
+
smoothMinimap: e.value.chart.zoom.minimap.smooth,
|
|
3554
|
+
minimapSelectedColor: e.value.chart.zoom.minimap.selectedColor,
|
|
3555
|
+
minimapSelectionRadius: e.value.chart.zoom.minimap.selectionRadius,
|
|
3556
|
+
minimapLineColor: e.value.chart.zoom.minimap.lineColor,
|
|
3557
|
+
minimapSelectedColorOpacity: e.value.chart.zoom.minimap.selectedColorOpacity,
|
|
3558
3558
|
minimapSelectedIndex: w.value,
|
|
3559
|
-
minimapIndicatorColor:
|
|
3560
|
-
verticalHandles:
|
|
3559
|
+
minimapIndicatorColor: e.value.chart.zoom.minimap.indicatorColor,
|
|
3560
|
+
verticalHandles: e.value.chart.zoom.minimap.verticalHandles,
|
|
3561
3561
|
max: f.value,
|
|
3562
3562
|
min: 0,
|
|
3563
3563
|
valueStart: d.value.start,
|
|
3564
3564
|
valueEnd: d.value.end,
|
|
3565
3565
|
start: d.value.start,
|
|
3566
|
-
"onUpdate:start": r[1] || (r[1] = (
|
|
3566
|
+
"onUpdate:start": r[1] || (r[1] = (l) => d.value.start = l),
|
|
3567
3567
|
end: d.value.end,
|
|
3568
|
-
"onUpdate:end": r[2] || (r[2] = (
|
|
3569
|
-
refreshStartPoint:
|
|
3570
|
-
refreshEndPoint:
|
|
3571
|
-
enableRangeHandles:
|
|
3572
|
-
enableSelectionDrag:
|
|
3568
|
+
"onUpdate:end": r[2] || (r[2] = (l) => d.value.end = l),
|
|
3569
|
+
refreshStartPoint: e.value.chart.zoom.startIndex !== null ? e.value.chart.zoom.startIndex : 0,
|
|
3570
|
+
refreshEndPoint: e.value.chart.zoom.endIndex !== null ? e.value.chart.zoom.endIndex + 1 : Math.max(...A.dataset.map((l) => v(Ze)({ data: l.series, threshold: e.value.downsample.threshold }).length)),
|
|
3571
|
+
enableRangeHandles: e.value.chart.zoom.enableRangeHandles,
|
|
3572
|
+
enableSelectionDrag: e.value.chart.zoom.enableSelectionDrag,
|
|
3573
3573
|
onReset: ta,
|
|
3574
3574
|
onTrapMouse: ea,
|
|
3575
|
-
onFutureStart: r[3] || (r[3] = (
|
|
3576
|
-
onFutureEnd: r[4] || (r[4] = (
|
|
3575
|
+
onFutureStart: r[3] || (r[3] = (l) => pl("start", l)),
|
|
3576
|
+
onFutureEnd: r[4] || (r[4] = (l) => pl("end", l)),
|
|
3577
3577
|
timeLabels: Wa.value,
|
|
3578
3578
|
isPreview: ze.value
|
|
3579
3579
|
}, {
|
|
3580
|
-
"reset-action": me(({ reset:
|
|
3581
|
-
J(t.$slots, "reset-action", rl($l({ reset:
|
|
3580
|
+
"reset-action": me(({ reset: l }) => [
|
|
3581
|
+
J(t.$slots, "reset-action", rl($l({ reset: l })), void 0, !0)
|
|
3582
3582
|
]),
|
|
3583
3583
|
_: 3
|
|
3584
3584
|
}, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "timeLabels", "isPreview"])) : g("", !0)
|
|
3585
3585
|
], 64)) : (n(), i(m, { key: 6 }, [
|
|
3586
|
-
|
|
3586
|
+
e.value.chart.zoom.show && f.value > 6 && Cl.value ? (n(), Ue(Vo, {
|
|
3587
3587
|
ref_key: "chartSlicer",
|
|
3588
3588
|
ref: Ae,
|
|
3589
3589
|
key: `slicer_${ye.value}`,
|
|
3590
|
-
background:
|
|
3591
|
-
fontSize:
|
|
3592
|
-
useResetSlot:
|
|
3590
|
+
background: e.value.chart.zoom.color,
|
|
3591
|
+
fontSize: e.value.chart.zoom.fontSize,
|
|
3592
|
+
useResetSlot: e.value.chart.zoom.useResetSlot,
|
|
3593
3593
|
labelLeft: q.value[0] ? q.value[0].text : "",
|
|
3594
3594
|
labelRight: q.value.at(-1) ? q.value.at(-1).text : "",
|
|
3595
|
-
textColor:
|
|
3596
|
-
inputColor:
|
|
3597
|
-
selectColor:
|
|
3598
|
-
borderColor:
|
|
3595
|
+
textColor: e.value.chart.color,
|
|
3596
|
+
inputColor: e.value.chart.zoom.color,
|
|
3597
|
+
selectColor: e.value.chart.zoom.highlightColor,
|
|
3598
|
+
borderColor: e.value.chart.backgroundColor,
|
|
3599
3599
|
minimap: va.value,
|
|
3600
|
-
smoothMinimap:
|
|
3601
|
-
minimapSelectedColor:
|
|
3602
|
-
minimapSelectionRadius:
|
|
3603
|
-
minimapLineColor:
|
|
3604
|
-
minimapSelectedColorOpacity:
|
|
3600
|
+
smoothMinimap: e.value.chart.zoom.minimap.smooth,
|
|
3601
|
+
minimapSelectedColor: e.value.chart.zoom.minimap.selectedColor,
|
|
3602
|
+
minimapSelectionRadius: e.value.chart.zoom.minimap.selectionRadius,
|
|
3603
|
+
minimapLineColor: e.value.chart.zoom.minimap.lineColor,
|
|
3604
|
+
minimapSelectedColorOpacity: e.value.chart.zoom.minimap.selectedColorOpacity,
|
|
3605
3605
|
minimapSelectedIndex: w.value,
|
|
3606
|
-
minimapIndicatorColor:
|
|
3607
|
-
verticalHandles:
|
|
3606
|
+
minimapIndicatorColor: e.value.chart.zoom.minimap.indicatorColor,
|
|
3607
|
+
verticalHandles: e.value.chart.zoom.minimap.verticalHandles,
|
|
3608
3608
|
max: f.value,
|
|
3609
3609
|
min: 0,
|
|
3610
3610
|
valueStart: d.value.start,
|
|
3611
3611
|
valueEnd: d.value.end,
|
|
3612
3612
|
start: d.value.start,
|
|
3613
|
-
"onUpdate:start": r[5] || (r[5] = (
|
|
3613
|
+
"onUpdate:start": r[5] || (r[5] = (l) => d.value.start = l),
|
|
3614
3614
|
end: d.value.end,
|
|
3615
|
-
"onUpdate:end": r[6] || (r[6] = (
|
|
3616
|
-
refreshStartPoint:
|
|
3617
|
-
refreshEndPoint:
|
|
3618
|
-
enableRangeHandles:
|
|
3619
|
-
enableSelectionDrag:
|
|
3615
|
+
"onUpdate:end": r[6] || (r[6] = (l) => d.value.end = l),
|
|
3616
|
+
refreshStartPoint: e.value.chart.zoom.startIndex !== null ? e.value.chart.zoom.startIndex : 0,
|
|
3617
|
+
refreshEndPoint: e.value.chart.zoom.endIndex !== null ? e.value.chart.zoom.endIndex + 1 : Math.max(...A.dataset.map((l) => v(Ze)({ data: l.series, threshold: e.value.downsample.threshold }).length)),
|
|
3618
|
+
enableRangeHandles: e.value.chart.zoom.enableRangeHandles,
|
|
3619
|
+
enableSelectionDrag: e.value.chart.zoom.enableSelectionDrag,
|
|
3620
3620
|
onReset: ta,
|
|
3621
3621
|
onTrapMouse: ea
|
|
3622
3622
|
}, {
|
|
3623
|
-
"reset-action": me(({ reset:
|
|
3624
|
-
J(t.$slots, "reset-action", rl($l({ reset:
|
|
3623
|
+
"reset-action": me(({ reset: l }) => [
|
|
3624
|
+
J(t.$slots, "reset-action", rl($l({ reset: l })), void 0, !0)
|
|
3625
3625
|
]),
|
|
3626
3626
|
_: 3
|
|
3627
3627
|
}, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : g("", !0)
|
|
3628
3628
|
], 64)),
|
|
3629
|
-
|
|
3629
|
+
e.value.chart.legend.show ? (n(), i("div", {
|
|
3630
3630
|
key: 7,
|
|
3631
3631
|
ref_key: "chartLegend",
|
|
3632
3632
|
ref: dl,
|
|
3633
3633
|
class: "vue-ui-xy-legend",
|
|
3634
|
-
style: $(`font-size:${
|
|
3634
|
+
style: $(`font-size:${e.value.chart.legend.fontSize}px`)
|
|
3635
3635
|
}, [
|
|
3636
|
-
(n(!0), i(m, null, _(el.value, (
|
|
3636
|
+
(n(!0), i(m, null, _(el.value, (l, u) => (n(), i("div", {
|
|
3637
3637
|
key: `div_legend_item_${u}`,
|
|
3638
|
-
onClick: (a) => ra(
|
|
3639
|
-
class: Oe({ "vue-ui-xy-legend-item-alone": el.value.length === 1, "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": ae.value.includes(
|
|
3638
|
+
onClick: (a) => ra(l),
|
|
3639
|
+
class: Oe({ "vue-ui-xy-legend-item-alone": el.value.length === 1, "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": ae.value.includes(l.id) })
|
|
3640
3640
|
}, [
|
|
3641
|
-
gl.value[
|
|
3641
|
+
gl.value[l.type] === "line" ? (n(), i("svg", Ii, [
|
|
3642
3642
|
b("rect", {
|
|
3643
3643
|
x: "0",
|
|
3644
3644
|
y: "7.5",
|
|
3645
3645
|
rx: "1.5",
|
|
3646
|
-
stroke:
|
|
3646
|
+
stroke: e.value.chart.backgroundColor,
|
|
3647
3647
|
"stroke-width": 0.5,
|
|
3648
3648
|
height: "3",
|
|
3649
3649
|
width: "20",
|
|
3650
|
-
fill:
|
|
3650
|
+
fill: l.color
|
|
3651
3651
|
}, null, 8, Ti),
|
|
3652
3652
|
ql(At, {
|
|
3653
3653
|
plot: { x: 10, y: 9 },
|
|
3654
3654
|
radius: 4,
|
|
3655
|
-
color:
|
|
3656
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
3657
|
-
stroke:
|
|
3655
|
+
color: l.color,
|
|
3656
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(l.shape) ? l.shape : "circle",
|
|
3657
|
+
stroke: e.value.chart.backgroundColor,
|
|
3658
3658
|
strokeWidth: 0.5
|
|
3659
3659
|
}, null, 8, ["color", "shape", "stroke"])
|
|
3660
|
-
])) : gl.value[
|
|
3661
|
-
gl.value[
|
|
3660
|
+
])) : gl.value[l.type] === "bar" ? (n(), i("svg", Ni, [
|
|
3661
|
+
gl.value[l.type] === "bar" && t.$slots.pattern ? (n(), i("rect", {
|
|
3662
3662
|
key: 0,
|
|
3663
3663
|
x: "0",
|
|
3664
3664
|
y: "0",
|
|
@@ -3666,9 +3666,9 @@ const Bo = {
|
|
|
3666
3666
|
height: "40",
|
|
3667
3667
|
width: "40",
|
|
3668
3668
|
stroke: "none",
|
|
3669
|
-
fill:
|
|
3669
|
+
fill: l.color
|
|
3670
3670
|
}, null, 8, Oi)) : g("", !0),
|
|
3671
|
-
gl.value[
|
|
3671
|
+
gl.value[l.type] === "bar" ? (n(), i("rect", {
|
|
3672
3672
|
key: 1,
|
|
3673
3673
|
x: "0",
|
|
3674
3674
|
y: "0",
|
|
@@ -3676,19 +3676,19 @@ const Bo = {
|
|
|
3676
3676
|
height: "40",
|
|
3677
3677
|
width: "40",
|
|
3678
3678
|
stroke: "none",
|
|
3679
|
-
fill: t.$slots.pattern ? `url(#pattern_${Q.value}_${
|
|
3679
|
+
fill: t.$slots.pattern ? `url(#pattern_${Q.value}_${l.slotAbsoluteIndex})` : l.color
|
|
3680
3680
|
}, null, 8, Ri)) : g("", !0)
|
|
3681
3681
|
])) : (n(), i("svg", Pi, [
|
|
3682
3682
|
ql(At, {
|
|
3683
3683
|
plot: { x: 6, y: 6 },
|
|
3684
3684
|
radius: 5,
|
|
3685
|
-
color:
|
|
3686
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
3685
|
+
color: l.color,
|
|
3686
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(l.shape) ? l.shape : "circle"
|
|
3687
3687
|
}, null, 8, ["color", "shape"])
|
|
3688
3688
|
])),
|
|
3689
3689
|
b("span", {
|
|
3690
|
-
style: $(`color:${
|
|
3691
|
-
}, te(
|
|
3690
|
+
style: $(`color:${e.value.chart.legend.color}`)
|
|
3691
|
+
}, te(l.name), 5)
|
|
3692
3692
|
], 10, zi))), 128))
|
|
3693
3693
|
], 4)) : (n(), i("div", {
|
|
3694
3694
|
key: 8,
|
|
@@ -3707,21 +3707,21 @@ const Bo = {
|
|
|
3707
3707
|
], 512)) : g("", !0),
|
|
3708
3708
|
ql(v(de), {
|
|
3709
3709
|
show: y.value.showTooltip && El.value,
|
|
3710
|
-
backgroundColor:
|
|
3711
|
-
color:
|
|
3712
|
-
fontSize:
|
|
3713
|
-
borderRadius:
|
|
3714
|
-
borderColor:
|
|
3715
|
-
borderWidth:
|
|
3716
|
-
backgroundOpacity:
|
|
3717
|
-
position:
|
|
3718
|
-
offsetY:
|
|
3710
|
+
backgroundColor: e.value.chart.tooltip.backgroundColor,
|
|
3711
|
+
color: e.value.chart.tooltip.color,
|
|
3712
|
+
fontSize: e.value.chart.tooltip.fontSize,
|
|
3713
|
+
borderRadius: e.value.chart.tooltip.borderRadius,
|
|
3714
|
+
borderColor: e.value.chart.tooltip.borderColor,
|
|
3715
|
+
borderWidth: e.value.chart.tooltip.borderWidth,
|
|
3716
|
+
backgroundOpacity: e.value.chart.tooltip.backgroundOpacity,
|
|
3717
|
+
position: e.value.chart.tooltip.position,
|
|
3718
|
+
offsetY: e.value.chart.tooltip.offsetY,
|
|
3719
3719
|
parent: t.$refs.chart,
|
|
3720
3720
|
content: ao.value,
|
|
3721
3721
|
isFullscreen: nl.value,
|
|
3722
|
-
isCustom:
|
|
3723
|
-
smooth:
|
|
3724
|
-
backdropFilter:
|
|
3722
|
+
isCustom: e.value.chart.tooltip.customFormat && typeof e.value.chart.tooltip.customFormat == "function",
|
|
3723
|
+
smooth: e.value.chart.tooltip.smooth,
|
|
3724
|
+
backdropFilter: e.value.chart.tooltip.backdropFilter
|
|
3725
3725
|
}, {
|
|
3726
3726
|
"tooltip-before": me(() => [
|
|
3727
3727
|
J(t.$slots, "tooltip-before", rl($l({ ...ga.value })), void 0, !0)
|
|
@@ -3738,12 +3738,12 @@ const Bo = {
|
|
|
3738
3738
|
open: y.value.showTable,
|
|
3739
3739
|
maxHeight: 1e4,
|
|
3740
3740
|
body: {
|
|
3741
|
-
backgroundColor:
|
|
3742
|
-
color:
|
|
3741
|
+
backgroundColor: e.value.chart.backgroundColor,
|
|
3742
|
+
color: e.value.chart.color
|
|
3743
3743
|
},
|
|
3744
3744
|
head: {
|
|
3745
|
-
backgroundColor:
|
|
3746
|
-
color:
|
|
3745
|
+
backgroundColor: e.value.chart.backgroundColor,
|
|
3746
|
+
color: e.value.chart.color
|
|
3747
3747
|
}
|
|
3748
3748
|
}
|
|
3749
3749
|
}, {
|
|
@@ -3754,18 +3754,18 @@ const Bo = {
|
|
|
3754
3754
|
b("div", Hi, [
|
|
3755
3755
|
Yt(b("input", {
|
|
3756
3756
|
type: "checkbox",
|
|
3757
|
-
"onUpdate:modelValue": r[7] || (r[7] = (
|
|
3757
|
+
"onUpdate:modelValue": r[7] || (r[7] = (l) => _e.value = l)
|
|
3758
3758
|
}, null, 512), [
|
|
3759
3759
|
[ho, _e.value]
|
|
3760
3760
|
]),
|
|
3761
3761
|
b("div", {
|
|
3762
|
-
onClick: r[8] || (r[8] = (
|
|
3762
|
+
onClick: r[8] || (r[8] = (l) => _e.value = !_e.value),
|
|
3763
3763
|
style: { cursor: "pointer" }
|
|
3764
3764
|
}, [
|
|
3765
3765
|
ql(v(Ll), {
|
|
3766
3766
|
name: "chartLine",
|
|
3767
3767
|
size: 20,
|
|
3768
|
-
stroke:
|
|
3768
|
+
stroke: e.value.chart.color
|
|
3769
3769
|
}, null, 8, ["stroke"])
|
|
3770
3770
|
])
|
|
3771
3771
|
]),
|
|
@@ -3779,18 +3779,18 @@ const Bo = {
|
|
|
3779
3779
|
head: $t.value.head,
|
|
3780
3780
|
body: $t.value.body,
|
|
3781
3781
|
config: $t.value.config,
|
|
3782
|
-
title: `${
|
|
3783
|
-
onClose: r[9] || (r[9] = (
|
|
3782
|
+
title: `${e.value.chart.title.text}${e.value.chart.title.subtitle.text ? ` : ${e.value.chart.title.subtitle.text}` : ""}`,
|
|
3783
|
+
onClose: r[9] || (r[9] = (l) => y.value.showTable = !1)
|
|
3784
3784
|
}, {
|
|
3785
|
-
th: me(({ th:
|
|
3786
|
-
b("div", { innerHTML:
|
|
3785
|
+
th: me(({ th: l }) => [
|
|
3786
|
+
b("div", { innerHTML: l }, null, 8, Vi)
|
|
3787
3787
|
]),
|
|
3788
|
-
td: me(({ td:
|
|
3789
|
-
fo(te(isNaN(Number(
|
|
3790
|
-
p:
|
|
3791
|
-
v:
|
|
3792
|
-
s:
|
|
3793
|
-
r:
|
|
3788
|
+
td: me(({ td: l }) => [
|
|
3789
|
+
fo(te(isNaN(Number(l)) ? l : v(Fe)({
|
|
3790
|
+
p: e.value.chart.labels.prefix,
|
|
3791
|
+
v: l,
|
|
3792
|
+
s: e.value.chart.labels.suffix,
|
|
3793
|
+
r: e.value.table.rounding
|
|
3794
3794
|
})), 1)
|
|
3795
3795
|
]),
|
|
3796
3796
|
_: 1
|
|
@@ -3802,7 +3802,7 @@ const Bo = {
|
|
|
3802
3802
|
v(ie) ? (n(), Ue(Oo, { key: 11 })) : g("", !0)
|
|
3803
3803
|
], 46, iu));
|
|
3804
3804
|
}
|
|
3805
|
-
}, es = /* @__PURE__ */ Oa(Ei, [["__scopeId", "data-v-
|
|
3805
|
+
}, es = /* @__PURE__ */ Oa(Ei, [["__scopeId", "data-v-062f70d8"]]);
|
|
3806
3806
|
export {
|
|
3807
3807
|
es as default
|
|
3808
3808
|
};
|