vue-data-ui 3.0.14 → 3.0.15
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-D_KT7quB.js → Arrow-DGSYU08F.js} +1 -1
- package/dist/{BaseDraggableDialog-Dk6ObnG6.js → BaseDraggableDialog-C8qz7ExB.js} +2 -2
- package/dist/{BaseIcon-BCqWWRyS.js → BaseIcon-BA3j_Lwf.js} +1 -1
- package/dist/{ColorPicker-D4s6oWij.js → ColorPicker-sW0pMaCb.js} +2 -2
- package/dist/{DataTable-R-HFYyQH.js → DataTable-Co-fVzdq.js} +2 -2
- package/dist/{Legend-C2AUd0Q-.js → Legend-NBffBBnn.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CndJxks1.js → NonSvgPenAndPaper-CWsUFLND.js} +3 -3
- package/dist/{PackageVersion-L8jgnm93.js → PackageVersion-DkN4tXY6.js} +1 -1
- package/dist/{PenAndPaper-B0N4qLUl.js → PenAndPaper-C5tGS7J9.js} +3 -3
- package/dist/{Shape-BOLi_2P0.js → Shape-Bgg7Nwsz.js} +1 -1
- package/dist/{Slicer-CzxtPv2I.js → Slicer-DzsOD_6h.js} +2 -2
- package/dist/{SparkTooltip-Cl7CDAK-.js → SparkTooltip-Cfx3n0pP.js} +1 -1
- package/dist/{Title-qljpbaH_.js → Title-Cdu-aDOL.js} +1 -1
- package/dist/{Tooltip-CAWZetlE.js → Tooltip-mB2Rs1Vj.js} +1 -1
- package/dist/{UserOptions-Bi3vHBGc.js → UserOptions-BMoiHEKE.js} +2 -2
- package/dist/{dom-to-png-DeN7qRoq.js → dom-to-png-DzfS79Op.js} +1 -1
- package/dist/{img-DOMLxaLG.js → img-7sjXtnNU.js} +1 -1
- package/dist/{index-BbjJEUYf.js → index-CjmWQAkv.js} +4 -4
- package/dist/{pdf-DzF5U6qH.js → pdf-BepSOa2A.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/useAutoSizeLabelsInsideViewbox-iRzr0rIq.js +81 -0
- package/dist/{useNestedProp-B0O5SJFw.js → useNestedProp-DFYUwW_F.js} +1 -1
- package/dist/{usePrinter-BR9xYJPs.js → usePrinter-BD_X6xEq.js} +2 -2
- package/dist/{vue-data-ui-Clsjl_5G.js → vue-data-ui-BHC_kJCP.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CfPp7uSf.js → vue-ui-3d-bar-CvM_pNPs.js} +6 -6
- package/dist/{vue-ui-accordion-BzryhJUY.js → vue-ui-accordion-BOmbEAe4.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bfm3eU8g.js → vue-ui-age-pyramid-2GEKVOIu.js} +6 -6
- package/dist/{vue-ui-annotator-CzSx0F_d.js → vue-ui-annotator-ULK7i_cb.js} +2 -2
- package/dist/{vue-ui-bullet-DRB4T0IN.js → vue-ui-bullet-CtrrTkUl.js} +7 -7
- package/dist/{vue-ui-candlestick-Zj-wL3Fw.js → vue-ui-candlestick-C8_qIKhP.js} +7 -7
- package/dist/{vue-ui-carousel-table-Cy0In84y.js → vue-ui-carousel-table-C5-I9TDG.js} +4 -4
- package/dist/{vue-ui-chestnut-C3JyH-Tw.js → vue-ui-chestnut-DbGjz6NE.js} +5 -5
- package/dist/{vue-ui-chord-BViOdSxx.js → vue-ui-chord-DSav5VH4.js} +8 -8
- package/dist/{vue-ui-circle-pack-CoaLoFGK.js → vue-ui-circle-pack-Ost-SfPy.js} +6 -6
- package/dist/{vue-ui-cursor-m4mIw8qD.js → vue-ui-cursor-CvvBIdhO.js} +2 -2
- package/dist/{vue-ui-dashboard-C_Q85tT0.js → vue-ui-dashboard-B6jTz1V8.js} +62 -62
- package/dist/{vue-ui-digits-DLr-55NR.js → vue-ui-digits-DW4j5hMp.js} +2 -2
- package/dist/{vue-ui-donut-BRIaxAzH.js → vue-ui-donut-CQgVEHBd.js} +8 -8
- package/dist/{vue-ui-donut-evolution-B5s4iM6g.js → vue-ui-donut-evolution-3Kg_0Aq8.js} +8 -8
- package/dist/{vue-ui-dumbbell-Dmnge0uo.js → vue-ui-dumbbell-B0RA0uh4.js} +7 -7
- package/dist/{vue-ui-flow-COgCmDRI.js → vue-ui-flow-mfN9qv9u.js} +7 -7
- package/dist/{vue-ui-funnel-Dj8K2IL4.js → vue-ui-funnel-By1EE6eQ.js} +6 -6
- package/dist/{vue-ui-galaxy-BwO1zmev.js → vue-ui-galaxy-DUnLy7nU.js} +5 -5
- package/dist/{vue-ui-gauge-CEzzFE1a.js → vue-ui-gauge-B9s5assa.js} +7 -7
- package/dist/{vue-ui-gizmo-CQZU0GHu.js → vue-ui-gizmo-D5nFPB5S.js} +3 -3
- package/dist/{vue-ui-heatmap-WYbCgo4T.js → vue-ui-heatmap-B99sMjxs.js} +7 -7
- package/dist/{vue-ui-history-plot-D0MZkhIx.js → vue-ui-history-plot-BcnKJSTL.js} +7 -7
- package/dist/{vue-ui-kpi-CO1e3lQt.js → vue-ui-kpi-BoiQMCdn.js} +3 -3
- package/dist/{vue-ui-mini-loader-Cwqdk0Hc.js → vue-ui-mini-loader-Fd0upr6u.js} +2 -2
- package/dist/{vue-ui-molecule-BqpN0Jwl.js → vue-ui-molecule-C8U7G10y.js} +5 -5
- package/dist/{vue-ui-mood-radar-BTatGJlv.js → vue-ui-mood-radar-83Su_aAf.js} +7 -7
- package/dist/{vue-ui-nested-donuts-CBM5xhcZ.js → vue-ui-nested-donuts-BT9ZqiqC.js} +7 -7
- package/dist/{vue-ui-onion-DqPp3WUr.js → vue-ui-onion-9JIdWtsY.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-BCtTZHSi.js → vue-ui-parallel-coordinate-plot-C1FjeIr0.js} +8 -8
- package/dist/{vue-ui-quadrant-DC1-Lm48.js → vue-ui-quadrant-3WUBK3nJ.js} +8 -8
- package/dist/{vue-ui-quick-chart-BoppF9R_.js → vue-ui-quick-chart-DY43gV8A.js} +6 -6
- package/dist/{vue-ui-radar-BhUonhBU.js → vue-ui-radar-C4KMiQ_0.js} +8 -8
- package/dist/{vue-ui-rating-D8LoaDfF.js → vue-ui-rating-BvD7AC9t.js} +2 -2
- package/dist/{vue-ui-relation-circle-BJDsl3eM.js → vue-ui-relation-circle-CkJugcvo.js} +194 -203
- package/dist/{vue-ui-ridgeline-DsadsetS.js → vue-ui-ridgeline-BWWwyiku.js} +8 -8
- package/dist/{vue-ui-rings-DBm6tU4x.js → vue-ui-rings--RHm1WPt.js} +8 -8
- package/dist/{vue-ui-scatter-Bn9aVcZq.js → vue-ui-scatter-BlJi3Vto.js} +8 -8
- package/dist/{vue-ui-skeleton-_9gYG5uM.js → vue-ui-skeleton-BpaC2poA.js} +3 -3
- package/dist/{vue-ui-smiley-CAa8JkGc.js → vue-ui-smiley-DFQ-eGPr.js} +2 -2
- package/dist/{vue-ui-spark-trend-C4GWQ2O3.js → vue-ui-spark-trend-DBvs77p7.js} +3 -3
- package/dist/{vue-ui-sparkbar-Dx1Pf0pI.js → vue-ui-sparkbar-5-xCacnj.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Ap1WNJ8J.js → vue-ui-sparkgauge-B_Hahm_m.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Dk4iCckr.js → vue-ui-sparkhistogram-CE3o-lRl.js} +4 -4
- package/dist/{vue-ui-sparkline-BY_0v4nM.js → vue-ui-sparkline-RzY__SHu.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CyiRxg1b.js → vue-ui-sparkstackbar-mf1_NIVO.js} +3 -3
- package/dist/{vue-ui-stackbar-BWJkn4sU.js → vue-ui-stackbar-e0_-TwRA.js} +9 -9
- package/dist/{vue-ui-strip-plot-COg5_F-1.js → vue-ui-strip-plot-DNF_a6tQ.js} +7 -7
- package/dist/{vue-ui-table--aZGc83K.js → vue-ui-table-DyRQD9Jx.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Bp8FepMh.js → vue-ui-table-heatmap-D0khMn8L.js} +5 -5
- package/dist/{vue-ui-table-sparkline-S5Vvy7zi.js → vue-ui-table-sparkline-CrEJ_BYI.js} +4 -4
- package/dist/{vue-ui-thermometer-BrwzA-cJ.js → vue-ui-thermometer-WWlRC1pG.js} +7 -7
- package/dist/{vue-ui-timer-C8eyCIql.js → vue-ui-timer-DFrFvU8Z.js} +5 -5
- package/dist/{vue-ui-tiremarks-DUw68EW0.js → vue-ui-tiremarks-BcGXDBHM.js} +6 -6
- package/dist/{vue-ui-treemap-DipBxisq.js → vue-ui-treemap-CISOrlRD.js} +8 -8
- package/dist/{vue-ui-vertical-bar-DA3E8leo.js → vue-ui-vertical-bar-BIGQJhXk.js} +9 -9
- package/dist/{vue-ui-waffle-DFoees7z.js → vue-ui-waffle-ZR7fefhR.js} +8 -8
- package/dist/{vue-ui-wheel-D86304mK.js → vue-ui-wheel-DRp9k9JL.js} +6 -6
- package/dist/{vue-ui-word-cloud-BsNeRazH.js → vue-ui-word-cloud-jlqVnKu7.js} +6 -6
- package/dist/{vue-ui-world-BYIS8MNS.js → vue-ui-world-PWs6PTyh.js} +6 -6
- package/dist/{vue-ui-xy-DUBk7Pk1.js → vue-ui-xy-D9GnZXb-.js} +315 -312
- package/dist/{vue-ui-xy-canvas-BIgquvWF.js → vue-ui-xy-canvas-JxDjG7z8.js} +8 -8
- package/package.json +1 -1
- package/dist/useAutoSizeLabelsInsideViewbox-DeGOz-va.js +0 -81
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { c as Pl, V as Fl, U as Hl, y as Ol, X as
|
|
3
|
-
import { t as jl, u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as Jl } from "./useNestedProp-
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { S as
|
|
12
|
-
import { _ as Rl } from "./Shape-
|
|
13
|
-
import
|
|
14
|
-
import { _ as
|
|
15
|
-
const
|
|
1
|
+
import { useCssVars as wo, computed as x, ref as b, onMounted as ol, onBeforeUnmount as nl, watch as dt, nextTick as Yt, onUpdated as So, createElementBlock as r, openBlock as u, createElementVNode as p, createCommentVNode as f, renderSlot as J, normalizeStyle as L, createVNode as al, withDirectives as Ql, unref as v, Fragment as g, renderList as C, normalizeClass as Ve, withKeys as Fa, vModelText as Ha, toDisplayString as le, defineAsyncComponent as Mt, useSlots as _o, getCurrentInstance as $o, toRefs as Lo, watchEffect as Va, createBlock as Ge, createSlots as Mo, withCtx as xe, normalizeProps as Ct, guardReactiveProps as At, mergeProps as Tl, Teleport as Co, vModelCheckbox as Ao, createTextVNode as zo } from "vue";
|
|
2
|
+
import { c as Pl, V as Fl, U as Hl, y as Ol, X as To, F as tt, u as Io, f as Kl, t as No, a4 as je, d as Ro, D as yl, ac as Dt, e as Po, p as Oo, ad as Il, a9 as Y, ae as Fo, h as V, af as Ba, ag as Ea, ah as Ho, ai as Wa, aj as Da, k as Se, ak as Vo, z as Bo, _ as Xa, R as vt, i as Ue, x as Xt, s as et, a7 as j, L as Eo, al as Nl, I as Wo, am as zt, C as qe, a as Do, b as Xo, o as Ya, v as Yo, w as Go, E as ll } from "./index-CjmWQAkv.js";
|
|
3
|
+
import { t as jl, u as Uo } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as qo } from "./usePrinter-BD_X6xEq.js";
|
|
5
|
+
import { u as Zo, B as Ko } from "./useLoading-D7YHNtLX.js";
|
|
6
|
+
import { u as Jl } from "./useNestedProp-DFYUwW_F.js";
|
|
7
|
+
import { u as Ga, a as Jo, l as Qo } from "./useTimeLabels-4la0yDx0.js";
|
|
8
|
+
import { u as jo } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
9
|
+
import en from "./img-7sjXtnNU.js";
|
|
10
|
+
import tn from "./Title-Cdu-aDOL.js";
|
|
11
|
+
import { S as ln } from "./Slicer-DzsOD_6h.js";
|
|
12
|
+
import { _ as Rl } from "./Shape-Bgg7Nwsz.js";
|
|
13
|
+
import an from "./BaseIcon-BA3j_Lwf.js";
|
|
14
|
+
import { _ as Ua } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const on = {
|
|
16
16
|
class: "vue-data-ui-slicer-labels",
|
|
17
17
|
style: { position: "relative", "z-index": "1", "pointer-events": "none" }
|
|
18
|
-
},
|
|
18
|
+
}, nn = {
|
|
19
19
|
key: 0,
|
|
20
20
|
style: { width: "100%", position: "relative" }
|
|
21
|
-
},
|
|
21
|
+
}, un = {
|
|
22
22
|
key: 0,
|
|
23
23
|
class: "minimap",
|
|
24
24
|
style: { width: "100%" }
|
|
25
|
-
},
|
|
25
|
+
}, sn = ["xmlns", "viewBox"], rn = ["id"], cn = ["stop-color"], vn = ["d", "stroke"], dn = ["x", "width", "height", "fill", "rx"], hn = ["d", "fill"], fn = ["x", "width", "height", "rx", "fill"], mn = ["x", "width", "height", "fill", "rx"], gn = ["d", "fill"], xn = ["d", "stroke"], bn = ["cx", "cy", "stroke", "fill"], pn = ["cx", "cy", "stroke", "fill"], yn = ["x1", "x2", "y2", "stroke"], kn = ["x", "height", "width", "onMouseenter"], wn = ["min", "max"], Sn = ["min", "max"], _n = {
|
|
26
26
|
__name: "SlicerPreview",
|
|
27
27
|
props: {
|
|
28
28
|
background: {
|
|
@@ -155,7 +155,7 @@ const an = {
|
|
|
155
155
|
},
|
|
156
156
|
emits: ["futureStart", "futureEnd", "update:start", "update:end", "reset", "trapMouse"],
|
|
157
157
|
setup(R, { expose: Vl, emit: Bl }) {
|
|
158
|
-
|
|
158
|
+
wo((m) => ({
|
|
159
159
|
ef4890c2: It.value,
|
|
160
160
|
20514013: Ee.value,
|
|
161
161
|
"6d4a3344": El.value,
|
|
@@ -232,7 +232,7 @@ const an = {
|
|
|
232
232
|
ol(() => {
|
|
233
233
|
if (Tt.value) {
|
|
234
234
|
const m = jl(() => {
|
|
235
|
-
const { width: h, height: S } =
|
|
235
|
+
const { width: h, height: S } = Uo({
|
|
236
236
|
chart: Rt.value
|
|
237
237
|
});
|
|
238
238
|
q.value.width = h, q.value.height = S - 47;
|
|
@@ -377,7 +377,7 @@ const an = {
|
|
|
377
377
|
width: ze,
|
|
378
378
|
left: Ht - ze / 2
|
|
379
379
|
};
|
|
380
|
-
}),
|
|
380
|
+
}), So(() => {
|
|
381
381
|
Ft(), $e();
|
|
382
382
|
}), dt(() => d.labelLeft, () => {
|
|
383
383
|
Yt(Ft);
|
|
@@ -420,8 +420,8 @@ const an = {
|
|
|
420
420
|
onMousedown: hl,
|
|
421
421
|
onTouchstart: hl
|
|
422
422
|
}, [
|
|
423
|
-
p("div",
|
|
424
|
-
R.valueStart !== R.refreshStartPoint || R.valueEnd !== il.value ? (u(), r("div",
|
|
423
|
+
p("div", on, [
|
|
424
|
+
R.valueStart !== R.refreshStartPoint || R.valueEnd !== il.value ? (u(), r("div", nn, [
|
|
425
425
|
R.useResetSlot ? J(m.$slots, "reset-action", {
|
|
426
426
|
key: 1,
|
|
427
427
|
reset: ht
|
|
@@ -436,7 +436,7 @@ const an = {
|
|
|
436
436
|
}),
|
|
437
437
|
onClick: ht
|
|
438
438
|
}, [
|
|
439
|
-
al(
|
|
439
|
+
al(an, {
|
|
440
440
|
name: "refresh",
|
|
441
441
|
stroke: R.textColor
|
|
442
442
|
}, null, 8, ["stroke"])
|
|
@@ -451,9 +451,9 @@ const an = {
|
|
|
451
451
|
onMouseenter: h[13] || (h[13] = (S) => ue.value = !0),
|
|
452
452
|
onMouseleave: h[14] || (h[14] = (S) => ue.value = !1)
|
|
453
453
|
}, [
|
|
454
|
-
Tt.value ? (u(), r("div",
|
|
454
|
+
Tt.value ? (u(), r("div", un, [
|
|
455
455
|
(u(), r("svg", {
|
|
456
|
-
xmlns: v(
|
|
456
|
+
xmlns: v(To),
|
|
457
457
|
viewBox: `0 0 ${q.value.width < 0 ? 0 : q.value.width} ${q.value.height < 0 ? 0 : q.value.height}`
|
|
458
458
|
}, [
|
|
459
459
|
p("defs", null, [
|
|
@@ -467,12 +467,12 @@ const an = {
|
|
|
467
467
|
p("stop", {
|
|
468
468
|
offset: "0%",
|
|
469
469
|
"stop-color": `${R.minimapLineColor}50`
|
|
470
|
-
}, null, 8,
|
|
470
|
+
}, null, 8, cn),
|
|
471
471
|
h[15] || (h[15] = p("stop", {
|
|
472
472
|
offset: "100%",
|
|
473
473
|
"stop-color": "transparent"
|
|
474
474
|
}, null, -1))
|
|
475
|
-
], 8,
|
|
475
|
+
], 8, rn)
|
|
476
476
|
]),
|
|
477
477
|
p("path", {
|
|
478
478
|
d: `M${pe.value.fullSet}`,
|
|
@@ -482,7 +482,7 @@ const an = {
|
|
|
482
482
|
"stroke-linecap": "round",
|
|
483
483
|
"stroke-linejoin": "round",
|
|
484
484
|
style: { opacity: "1" }
|
|
485
|
-
}, null, 8,
|
|
485
|
+
}, null, 8, vn),
|
|
486
486
|
p("rect", {
|
|
487
487
|
x: ye.value.x,
|
|
488
488
|
width: ye.value.width < 0 ? 0 : ye.value.width,
|
|
@@ -491,13 +491,13 @@ const an = {
|
|
|
491
491
|
fill: Ee.value,
|
|
492
492
|
rx: R.minimapSelectionRadius,
|
|
493
493
|
stroke: "none"
|
|
494
|
-
}, null, 8,
|
|
494
|
+
}, null, 8, dn),
|
|
495
495
|
p("path", {
|
|
496
496
|
d: `M${oe.value / 2},${Math.max(q.value.height, 0)} ${pe.value.fullSet} L${q.value.width - oe.value / 2},${Math.max(q.value.height, 0)}Z`,
|
|
497
497
|
fill: `url(#${ul.value})`,
|
|
498
498
|
stroke: "none",
|
|
499
499
|
style: { opacity: "1" }
|
|
500
|
-
}, null, 8,
|
|
500
|
+
}, null, 8, hn),
|
|
501
501
|
p("rect", {
|
|
502
502
|
x: ye.value.x,
|
|
503
503
|
width: ye.value.width < 0 ? 0 : ye.value.width,
|
|
@@ -508,7 +508,7 @@ const an = {
|
|
|
508
508
|
style: L({
|
|
509
509
|
opacity: F.value || Gt.value ? 0 : 1
|
|
510
510
|
})
|
|
511
|
-
}, null, 12,
|
|
511
|
+
}, null, 12, fn),
|
|
512
512
|
p("rect", {
|
|
513
513
|
x: ye.value.x,
|
|
514
514
|
width: ye.value.width < 0 ? 0 : ye.value.width,
|
|
@@ -519,13 +519,13 @@ const an = {
|
|
|
519
519
|
style: L({
|
|
520
520
|
opacity: R.minimapSelectedColorOpacity
|
|
521
521
|
})
|
|
522
|
-
}, null, 12,
|
|
522
|
+
}, null, 12, mn),
|
|
523
523
|
p("path", {
|
|
524
524
|
d: `M${pe.value.sliced[0].x},${Math.max(q.value.height, 0)} ${pe.value.selectionSet} L${pe.value.sliced.at(-1).x},${Math.max(q.value.height, 0)}Z`,
|
|
525
525
|
fill: `url(#${ul.value})`,
|
|
526
526
|
stroke: "none",
|
|
527
527
|
style: { opacity: "1" }
|
|
528
|
-
}, null, 8,
|
|
528
|
+
}, null, 8, gn),
|
|
529
529
|
p("path", {
|
|
530
530
|
d: `M ${pe.value.selectionSet}`,
|
|
531
531
|
stroke: `${R.minimapLineColor}`,
|
|
@@ -533,7 +533,7 @@ const an = {
|
|
|
533
533
|
"stroke-width": "2",
|
|
534
534
|
"stroke-linecap": "round",
|
|
535
535
|
"stroke-linejoin": "round"
|
|
536
|
-
}, null, 8,
|
|
536
|
+
}, null, 8, xn),
|
|
537
537
|
p("circle", {
|
|
538
538
|
cx: pe.value.firstPlot.x,
|
|
539
539
|
cy: pe.value.firstPlot.y,
|
|
@@ -541,7 +541,7 @@ const an = {
|
|
|
541
541
|
stroke: Ee.value,
|
|
542
542
|
r: "3",
|
|
543
543
|
fill: R.minimapLineColor
|
|
544
|
-
}, null, 8,
|
|
544
|
+
}, null, 8, bn),
|
|
545
545
|
p("circle", {
|
|
546
546
|
cx: pe.value.lastPlot.x,
|
|
547
547
|
cy: pe.value.lastPlot.y,
|
|
@@ -549,7 +549,7 @@ const an = {
|
|
|
549
549
|
stroke: Ee.value,
|
|
550
550
|
r: "3",
|
|
551
551
|
fill: R.minimapLineColor
|
|
552
|
-
}, null, 8,
|
|
552
|
+
}, null, 8, pn),
|
|
553
553
|
ft.value !== null ? (u(!0), r(g, { key: 0 }, C(qt.value, (S, U) => (u(), r("g", null, [
|
|
554
554
|
ft.value === S && S >= nt.value && S < Pt.value ? (u(), r("line", {
|
|
555
555
|
key: 0,
|
|
@@ -561,7 +561,7 @@ const an = {
|
|
|
561
561
|
"stroke-linecap": "round",
|
|
562
562
|
"stroke-dasharray": "2",
|
|
563
563
|
"stroke-width": "1"
|
|
564
|
-
}, null, 8,
|
|
564
|
+
}, null, 8, yn)) : f("", !0)
|
|
565
565
|
]))), 256)) : f("", !0),
|
|
566
566
|
(u(!0), r(g, null, C(qt.value, (S, U) => (u(), r("rect", {
|
|
567
567
|
x: oe.value * U,
|
|
@@ -578,8 +578,8 @@ const an = {
|
|
|
578
578
|
onMouseleave: h[2] || (h[2] = (ze) => {
|
|
579
579
|
ft.value = null, me("trapMouse", null);
|
|
580
580
|
})
|
|
581
|
-
}, null, 44,
|
|
582
|
-
], 8,
|
|
581
|
+
}, null, 44, kn))), 256))
|
|
582
|
+
], 8, sn))
|
|
583
583
|
])) : f("", !0),
|
|
584
584
|
h[16] || (h[16] = p("div", { class: "slider-track" }, null, -1)),
|
|
585
585
|
p("div", {
|
|
@@ -605,14 +605,14 @@ const an = {
|
|
|
605
605
|
"onUpdate:modelValue": h[5] || (h[5] = (S) => yt.value = S),
|
|
606
606
|
onInput: h[6] || (h[6] = (S) => vl(S)),
|
|
607
607
|
onChange: Ze,
|
|
608
|
-
onKeyup:
|
|
608
|
+
onKeyup: Fa(Ze, ["enter"]),
|
|
609
609
|
onBlur: Ze,
|
|
610
610
|
onMouseenter: h[7] || (h[7] = (S) => De("start")),
|
|
611
611
|
onPointermove: h[8] || (h[8] = (S) => yt.value = +S.target.value),
|
|
612
612
|
onPointerup: Ze
|
|
613
|
-
}, null, 42,
|
|
613
|
+
}, null, 42, wn)), [
|
|
614
614
|
[
|
|
615
|
-
|
|
615
|
+
Ha,
|
|
616
616
|
yt.value,
|
|
617
617
|
void 0,
|
|
618
618
|
{ number: !0 }
|
|
@@ -629,14 +629,14 @@ const an = {
|
|
|
629
629
|
"onUpdate:modelValue": h[9] || (h[9] = (S) => lt.value = S),
|
|
630
630
|
onInput: h[10] || (h[10] = (S) => kt(S)),
|
|
631
631
|
onChange: Ze,
|
|
632
|
-
onKeyup:
|
|
632
|
+
onKeyup: Fa(Ze, ["enter"]),
|
|
633
633
|
onBlur: Ze,
|
|
634
634
|
onMouseenter: h[11] || (h[11] = (S) => De("end")),
|
|
635
635
|
onPointermove: h[12] || (h[12] = (S) => lt.value = +S.target.value),
|
|
636
636
|
onPointerup: Ze
|
|
637
|
-
}, null, 42,
|
|
637
|
+
}, null, 42, Sn)), [
|
|
638
638
|
[
|
|
639
|
-
|
|
639
|
+
Ha,
|
|
640
640
|
lt.value,
|
|
641
641
|
void 0,
|
|
642
642
|
{ number: !0 }
|
|
@@ -702,51 +702,51 @@ const an = {
|
|
|
702
702
|
], 544)
|
|
703
703
|
], 544));
|
|
704
704
|
}
|
|
705
|
-
},
|
|
705
|
+
}, $n = /* @__PURE__ */ Ua(_n, [["__scopeId", "data-v-58fccd9f"]]), Ln = ["id"], Mn = ["id"], Cn = ["viewBox", "aria-label"], An = ["x", "y", "width", "height"], zn = { key: 1 }, Tn = { class: "vue-ui-xy-grid" }, In = ["stroke", "x1", "x2", "y1", "y2"], Nn = ["stroke", "x1", "x2", "y1", "y2"], Rn = { key: 1 }, Pn = ["x1", "x2", "y1", "y2", "stroke"], On = ["x1", "x2", "y1", "y2", "stroke"], Fn = ["x1", "x2", "y1", "y2", "stroke"], Hn = { key: 3 }, Vn = ["d", "stroke"], Bn = { key: 4 }, En = ["d", "stroke"], Wn = ["id"], Dn = ["stop-color"], Xn = ["stop-color"], Yn = ["stop-color"], Gn = ["id"], Un = ["stop-color"], qn = ["stop-color"], Zn = ["stop-color"], Kn = ["id"], Jn = ["stop-color"], Qn = ["stop-color"], jn = ["id"], eu = ["stop-color"], tu = ["stop-color"], lu = ["id"], au = ["stop-color"], ou = ["stop-color"], nu = ["x", "y", "height", "width", "fill"], uu = ["x", "y", "width"], su = { key: 0 }, iu = ["x", "y", "height", "width", "fill"], ru = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], cu = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], vu = ["width", "x", "y"], du = { key: 0 }, hu = ["id"], fu = ["fill"], mu = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], gu = ["x", "y", "font-size", "fill"], xu = ["stroke", "x1", "x2", "y1", "y2"], bu = { key: 3 }, pu = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], yu = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], ku = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], wu = ["fill", "font-size", "transform"], Su = ["x1", "x2", "y1", "y2", "stroke"], _u = ["x", "y", "font-size", "fill"], $u = ["x1", "x2", "y1", "y2", "stroke"], Lu = ["x", "y", "font-size", "fill"], Mu = ["width", "x", "y"], Cu = { style: { width: "100%" } }, Au = { key: 0 }, zu = ["id"], Tu = ["fill"], Iu = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Nu = ["x", "y", "font-size", "fill"], Ru = ["d", "stroke", "stroke-width", "stroke-dasharray"], Pu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Ou = { key: 6 }, Fu = { key: 7 }, Hu = ["d", "fill", "fill-opacity"], Vu = { key: 0 }, Bu = ["d", "fill"], Eu = ["d", "fill"], Wu = ["d", "fill"], Du = ["d", "fill"], Xu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Yu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Gu = ["width", "x", "y"], Uu = { style: { width: "100%" } }, qu = { key: 3 }, Zu = ["id"], Ku = ["fill"], Ju = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Qu = ["x", "y", "font-size", "fill"], ju = { key: 8 }, es = ["x", "y", "font-size", "fill"], ts = ["x", "y", "font-size", "fill", "font-weight"], ls = { key: 9 }, as = ["x", "y", "font-size", "fill"], os = { key: 10 }, ns = ["x", "y"], us = ["innerHTML"], ss = ["x", "y"], is = ["innerHTML"], rs = ["x1", "x2", "y1", "y2", "stroke"], cs = { key: 11 }, vs = ["x", "y", "font-size", "fill"], ds = { key: 12 }, hs = ["x", "y"], fs = ["innerHTML"], ms = ["x", "y"], gs = ["innerHTML"], xs = ["x1", "x2", "y1", "y2", "stroke"], bs = ["x", "y", "font-size", "fill", "innerHTML"], ps = ["x", "y", "font-size", "fill", "innerHTML"], ys = ["x", "y", "font-size", "fill", "innerHTML"], ks = ["x", "y", "font-size", "fill", "innerHTML"], ws = ["id"], Ss = ["stop-color"], _s = ["stop-color"], $s = ["x", "y", "width", "height", "fill", "onMouseenter"], Ls = ["font-size", "fill", "transform"], Ms = ["x", "y", "font-size", "fill"], Cs = ["text-anchor", "font-size", "fill", "transform", "onClick"], As = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], zs = { key: 15 }, Ts = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Is = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ns = ["y", "x", "width", "height", "fill"], Rs = ["id", "x", "y", "font-size", "fill", "text-anchor"], Ps = {
|
|
706
706
|
key: 16,
|
|
707
707
|
style: { "pointer-events": "none" }
|
|
708
|
-
},
|
|
708
|
+
}, Os = ["x", "y"], Fs = ["innerHTML"], Hs = ["cx", "cy", "r", "fill"], Vs = ["data-start", "data-end"], Bs = {
|
|
709
709
|
key: 4,
|
|
710
710
|
class: "vue-data-ui-watermark"
|
|
711
|
-
},
|
|
711
|
+
}, Es = {
|
|
712
712
|
class: "vue-ui-xy-tag-arrow",
|
|
713
713
|
height: "20",
|
|
714
714
|
viewBox: "0 0 10 20",
|
|
715
715
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
716
|
-
},
|
|
716
|
+
}, Ws = ["fill"], Ds = ["innerHTML"], Xs = {
|
|
717
717
|
class: "vue-ui-xy-tag-arrow",
|
|
718
718
|
height: "100%",
|
|
719
719
|
viewBox: "0 0 10 20",
|
|
720
720
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
721
|
-
},
|
|
721
|
+
}, Ys = ["fill"], Gs = ["innerHTML"], Us = {
|
|
722
722
|
class: "vue-ui-xy-tag-arrow",
|
|
723
723
|
height: "20",
|
|
724
724
|
viewBox: "0 0 10 20",
|
|
725
725
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
726
|
-
},
|
|
726
|
+
}, qs = ["fill"], Zs = ["innerHTML"], Ks = {
|
|
727
727
|
class: "vue-ui-xy-tag-arrow",
|
|
728
728
|
height: "100%",
|
|
729
729
|
viewBox: "0 0 10 20",
|
|
730
730
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
731
|
-
},
|
|
731
|
+
}, Js = ["fill"], Qs = ["innerHTML"], js = ["id"], ei = ["onClick"], ti = {
|
|
732
732
|
key: 0,
|
|
733
733
|
viewBox: "0 0 20 12",
|
|
734
734
|
height: "14",
|
|
735
735
|
width: "20"
|
|
736
|
-
},
|
|
736
|
+
}, li = ["stroke", "fill"], ai = {
|
|
737
737
|
key: 1,
|
|
738
738
|
viewBox: "0 0 40 40",
|
|
739
739
|
height: "14",
|
|
740
740
|
width: "14"
|
|
741
|
-
},
|
|
741
|
+
}, oi = ["fill"], ni = ["fill"], ui = {
|
|
742
742
|
key: 2,
|
|
743
743
|
viewBox: "0 0 12 12",
|
|
744
744
|
height: "14",
|
|
745
745
|
width: "14"
|
|
746
|
-
},
|
|
746
|
+
}, si = {
|
|
747
747
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
748
748
|
"data-dom-to-png-ignore": ""
|
|
749
|
-
},
|
|
749
|
+
}, ii = ["innerHTML"], ri = {
|
|
750
750
|
__name: "vue-ui-xy",
|
|
751
751
|
props: {
|
|
752
752
|
config: {
|
|
@@ -768,7 +768,7 @@ const an = {
|
|
|
768
768
|
},
|
|
769
769
|
emits: ["selectTimeLabel", "selectX", "selectLegend"],
|
|
770
770
|
setup(R, { expose: Vl, emit: Bl }) {
|
|
771
|
-
const d = R, Be = Mt(() => import("./DataTable-
|
|
771
|
+
const d = R, Be = Mt(() => import("./DataTable-Co-fVzdq.js")), ie = Mt(() => import("./Tooltip-mB2Rs1Vj.js")), re = Mt(() => import("./UserOptions-BMoiHEKE.js")), Tt = Mt(() => import("./BaseIcon-BA3j_Lwf.js")), ul = Mt(() => import("./vue-ui-table-sparkline-CrEJ_BYI.js")), Gt = Mt(() => import("./vue-ui-accordion-BOmbEAe4.js")), Ut = Mt(() => import("./PackageVersion-DkN4tXY6.js")), yt = Mt(() => import("./PenAndPaper-C5tGS7J9.js")), lt = Bl, sl = _o(), Ze = $o(), { vue_ui_xy: il } = Io(), me = b(null), be = b(null), Ne = b(null), at = b(null), It = b(null), Nt = b(null), El = b(null), Ee = b(null), qt = b(null), ht = b(null), Rt = b(null), q = b(null), ot = b(null), Zt = b(0), P = b(null), rl = b(!0), ge = b(600), ae = b(1e3), nt = b("0 0 1000 600"), Pt = b({ x: 0, y: 0 }), oe = b({ line: "line", bar: "bar", plot: "plot" }), pe = b(!1), ye = b(!1), ft = b(!1), mt = b(null), ce = b([]), G = b(Pl()), Kt = b(0), cl = b(0), vl = b(0), kt = b(!0), Ot = b(0), F = b(null), Jt = b(!1), dl = b(!0), Qt = b(!0), _e = b(null), We = b({}), Re = b(null), Ke = b(!1), _ = b(null), ut = x(() => ({
|
|
772
772
|
height: ge.value,
|
|
773
773
|
width: ae.value
|
|
774
774
|
}));
|
|
@@ -823,10 +823,10 @@ const an = {
|
|
|
823
823
|
userConfig: s
|
|
824
824
|
})) : l.chart.annotations = [], d.config && qe(d.config, "chart.grid.position") && d.config.chart.grid.position === "start" && d.dataset.length && d.dataset.some((s) => s.type === "bar") && (l.chart.grid.position = "middle", qe(d.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), d.config && qe(d.config, "chart.grid.labels.yAxis.serieNameFormatter") ? l.chart.grid.labels.yAxis.serieNameFormatter = d.config.chart.grid.labels.yAxis.serieNameFormatter : l.chart.grid.labels.yAxis.serieNameFormatter = null, d.config && qe(d.config, "events.datapointEnter") ? l.events.datapointEnter = d.config.events.datapointEnter : l.events.datapointEnter = null, d.config && qe(d.config, "events.datapointLeave") ? l.events.datapointLeave = d.config.events.datapointLeave : l.events.datapointLeave = null, d.config && qe(d.config, "events.datapointClick") ? l.events.datapointClick = d.config.events.datapointClick : l.events.datapointClick = null, l.theme ? {
|
|
825
825
|
...Jl({
|
|
826
|
-
userConfig:
|
|
826
|
+
userConfig: Xo.vue_ui_xy[l.theme] || d.config,
|
|
827
827
|
defaultConfig: l
|
|
828
828
|
}),
|
|
829
|
-
customPalette:
|
|
829
|
+
customPalette: Do[l.theme] || d.palette
|
|
830
830
|
} : l;
|
|
831
831
|
}
|
|
832
832
|
const it = x({
|
|
@@ -836,8 +836,8 @@ const an = {
|
|
|
836
836
|
set(l) {
|
|
837
837
|
return l;
|
|
838
838
|
}
|
|
839
|
-
}), t = b(st()), gt = x(() => !!t.value.debug), { loading: ne, FINAL_DATASET: ue, manualLoading: Ft } =
|
|
840
|
-
|
|
839
|
+
}), t = b(st()), gt = x(() => !!t.value.debug), { loading: ne, FINAL_DATASET: ue, manualLoading: Ft } = Zo({
|
|
840
|
+
...Lo(d),
|
|
841
841
|
FINAL_CONFIG: t,
|
|
842
842
|
prepareConfig: st,
|
|
843
843
|
callback: () => {
|
|
@@ -860,7 +860,7 @@ const an = {
|
|
|
860
860
|
color: "#CACACA"
|
|
861
861
|
}
|
|
862
862
|
],
|
|
863
|
-
skeletonConfig:
|
|
863
|
+
skeletonConfig: No({
|
|
864
864
|
defaultConfig: t.value,
|
|
865
865
|
userConfig: {
|
|
866
866
|
useCssAnimation: !1,
|
|
@@ -963,11 +963,11 @@ const an = {
|
|
|
963
963
|
const s = l - y.value.start;
|
|
964
964
|
s < 0 || l >= y.value.end ? _.value = null : _.value = s ?? null;
|
|
965
965
|
}, { immediate: !0 });
|
|
966
|
-
const { isPrinting: m, isImaging: h, generatePdf: S, generateImage: U } =
|
|
966
|
+
const { isPrinting: m, isImaging: h, generatePdf: S, generateImage: U } = qo({
|
|
967
967
|
elementId: `vue-ui-xy_${G.value}`,
|
|
968
968
|
fileName: t.value.chart.title.text || "vue-ui-xy",
|
|
969
969
|
options: t.value.chart.userOptions.print
|
|
970
|
-
}), ze = b(!1), Ht = x(() =>
|
|
970
|
+
}), ze = b(!1), Ht = x(() => Ro(t.value.customPalette)), jt = x(() => {
|
|
971
971
|
if (t.value.chart.grid.labels.yAxis.scaleMin !== null)
|
|
972
972
|
return t.value.chart.grid.labels.yAxis.scaleMin;
|
|
973
973
|
const l = Math.min(...Je.value.filter((s) => !ce.value.includes(s.id)).map((s) => Math.min(...s.series)));
|
|
@@ -986,7 +986,7 @@ const an = {
|
|
|
986
986
|
...l,
|
|
987
987
|
slotAbsoluteIndex: s,
|
|
988
988
|
series: e.map((a) => Il(a) ? a : null).slice(y.value.start, y.value.end),
|
|
989
|
-
color:
|
|
989
|
+
color: Po(l.color ? l.color : Ht.value[s] ? Ht.value[s] : Oo[s]),
|
|
990
990
|
id: n,
|
|
991
991
|
scaleLabel: l.scaleLabel || n
|
|
992
992
|
};
|
|
@@ -1002,7 +1002,7 @@ const an = {
|
|
|
1002
1002
|
series: l.series.map((e) => e + Vt.value),
|
|
1003
1003
|
absoluteValues: l.series
|
|
1004
1004
|
})).filter((l) => !ce.value.includes(l.id)));
|
|
1005
|
-
function
|
|
1005
|
+
function qa() {
|
|
1006
1006
|
let l = 0;
|
|
1007
1007
|
Rt.value && (l = Array.from(Rt.value.querySelectorAll("text")).reduce((a, i) => {
|
|
1008
1008
|
const o = i.getComputedTextLength();
|
|
@@ -1011,14 +1011,14 @@ const an = {
|
|
|
1011
1011
|
const s = qt.value ? qt.value.getBoundingClientRect().width + t.value.chart.grid.labels.axis.yLabelOffsetX + $.value.yAxis : 0, e = t.value.chart.grid.labels.yAxis.crosshairSize;
|
|
1012
1012
|
return l + s + e;
|
|
1013
1013
|
}
|
|
1014
|
-
const Wl = b(0),
|
|
1014
|
+
const Wl = b(0), Za = jl((l) => {
|
|
1015
1015
|
Wl.value = l;
|
|
1016
1016
|
}, 100);
|
|
1017
|
-
|
|
1017
|
+
Va((l) => {
|
|
1018
1018
|
const s = ht.value;
|
|
1019
1019
|
if (!s) return;
|
|
1020
1020
|
const e = new ResizeObserver((n) => {
|
|
1021
|
-
|
|
1021
|
+
Za(n[0].contentRect.height);
|
|
1022
1022
|
});
|
|
1023
1023
|
e.observe(s), l(() => e.disconnect());
|
|
1024
1024
|
}), nl(() => {
|
|
@@ -1029,11 +1029,11 @@ const an = {
|
|
|
1029
1029
|
Ee.value && (l = Ee.value.getBBox().height);
|
|
1030
1030
|
let s = 0;
|
|
1031
1031
|
return ht.value && (s = Wl.value), l + s + $.value.xAxis;
|
|
1032
|
-
}),
|
|
1032
|
+
}), Ka = x(() => ue.value.some((l) => l.useProgression)), c = x(() => {
|
|
1033
1033
|
let l = 0;
|
|
1034
1034
|
const s = 36;
|
|
1035
|
-
t.value.chart.grid.labels.show && (k.value.useIndividualScale && !k.value.isStacked ? l = (ue.value.length - ce.value.length) * (t.value.chart.grid.labels.yAxis.labelWidth + s) : k.value.useIndividualScale && k.value.isStacked ? l = t.value.chart.grid.labels.yAxis.labelWidth + s : l =
|
|
1036
|
-
const e = t.value.chart.labels.fontSize * 1.1, n =
|
|
1035
|
+
t.value.chart.grid.labels.show && (k.value.useIndividualScale && !k.value.isStacked ? l = (ue.value.length - ce.value.length) * (t.value.chart.grid.labels.yAxis.labelWidth + s) : k.value.useIndividualScale && k.value.isStacked ? l = t.value.chart.grid.labels.yAxis.labelWidth + s : l = qa());
|
|
1036
|
+
const e = t.value.chart.labels.fontSize * 1.1, n = Ka.value ? 24 : 6;
|
|
1037
1037
|
if (ht.value) {
|
|
1038
1038
|
const o = ht.value.getBBox().x;
|
|
1039
1039
|
o < 0 && (l += Math.abs(o));
|
|
@@ -1049,13 +1049,13 @@ const an = {
|
|
|
1049
1049
|
scaleLabelX: l,
|
|
1050
1050
|
individualOffsetX: s
|
|
1051
1051
|
};
|
|
1052
|
-
}),
|
|
1052
|
+
}), Ja = x(() => {
|
|
1053
1053
|
const l = t.value.chart.grid.position === "middle" ? 1 : 0, s = I.value + l, e = Y(c.value.top), n = Y(c.value.bottom);
|
|
1054
1054
|
return Array.from({ length: s }).map((a, i) => {
|
|
1055
1055
|
const o = c.value.width / I.value * i + c.value.left + Q.value;
|
|
1056
1056
|
return `M${o},${e} L${o},${n}`;
|
|
1057
1057
|
}).join(" ");
|
|
1058
|
-
}),
|
|
1058
|
+
}), Qa = x(() => {
|
|
1059
1059
|
if (!t.value.chart.grid.labels.xAxis.showCrosshairs) return "";
|
|
1060
1060
|
const l = c.value.width / I.value, s = t.value.chart.grid.labels.xAxis.crosshairSize, e = t.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
|
|
1061
1061
|
return Xl.value.map((n, a) => {
|
|
@@ -1067,7 +1067,7 @@ const an = {
|
|
|
1067
1067
|
function ta() {
|
|
1068
1068
|
return !!Ze?.vnode.props?.onSelectTimeLabel;
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1070
|
+
function ja(l, s, e) {
|
|
1071
1071
|
if (!Re.value) {
|
|
1072
1072
|
const n = document.createElement("canvas");
|
|
1073
1073
|
Re.value = n.getContext("2d");
|
|
@@ -1090,7 +1090,7 @@ const an = {
|
|
|
1090
1090
|
}
|
|
1091
1091
|
const ke = x(() => {
|
|
1092
1092
|
const l = Math.max(...ue.value.map((s) => je({ data: s.series, threshold: t.value.downsample.threshold }).length));
|
|
1093
|
-
return
|
|
1093
|
+
return Ga({
|
|
1094
1094
|
values: t.value.chart.grid.labels.xAxisLabels.values,
|
|
1095
1095
|
maxDatapoints: l,
|
|
1096
1096
|
formatter: t.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
@@ -1099,14 +1099,14 @@ const an = {
|
|
|
1099
1099
|
});
|
|
1100
1100
|
}), na = x(() => {
|
|
1101
1101
|
const l = Math.max(...ue.value.map((s) => je({ data: s.series, threshold: t.value.downsample.threshold }).length));
|
|
1102
|
-
return
|
|
1102
|
+
return Ga({
|
|
1103
1103
|
values: t.value.chart.grid.labels.xAxisLabels.values,
|
|
1104
1104
|
maxDatapoints: l,
|
|
1105
1105
|
formatter: t.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
1106
1106
|
start: 0,
|
|
1107
1107
|
end: $e.value
|
|
1108
1108
|
});
|
|
1109
|
-
}),
|
|
1109
|
+
}), eo = x(() => {
|
|
1110
1110
|
const l = t.value.chart.grid.labels.xAxisLabels.modulo;
|
|
1111
1111
|
return ke.value.length ? Math.min(l, [...new Set(ke.value.map((s) => s.text))].length) : l;
|
|
1112
1112
|
}), Xl = x(() => {
|
|
@@ -1119,7 +1119,7 @@ const an = {
|
|
|
1119
1119
|
);
|
|
1120
1120
|
}
|
|
1121
1121
|
if (!l.showOnlyAtModulo) return s;
|
|
1122
|
-
const e = Math.max(1,
|
|
1122
|
+
const e = Math.max(1, eo.value || 1);
|
|
1123
1123
|
if (I.value <= e) return s;
|
|
1124
1124
|
const n = e, a = na.value || [], i = y.value.start ?? 0, o = [];
|
|
1125
1125
|
for (let w = 0; w < s.length; w += 1) {
|
|
@@ -1175,12 +1175,12 @@ const an = {
|
|
|
1175
1175
|
function Yl(l) {
|
|
1176
1176
|
gt.value && l.autoScaling && (t.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${l.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), t.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${l.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
|
|
1177
1177
|
}
|
|
1178
|
-
function
|
|
1178
|
+
function to(l, s) {
|
|
1179
1179
|
const e = hl(l), n = Array(e).fill(0);
|
|
1180
1180
|
for (let a = 0; a < s.length && a < e; a += 1) n[a] = s[a] ?? 0;
|
|
1181
1181
|
return n;
|
|
1182
1182
|
}
|
|
1183
|
-
function
|
|
1183
|
+
function lo(l) {
|
|
1184
1184
|
const s = Math.max(...ue.value.map((e) => je({ data: e.series, threshold: t.value.downsample.threshold }).length));
|
|
1185
1185
|
return l > s ? s : l < 0 || t.value.chart.zoom.startIndex !== null && l < t.value.chart.zoom.startIndex ? t.value.chart.zoom.startIndex !== null ? t.value.chart.zoom.startIndex + 1 : 1 : l;
|
|
1186
1186
|
}
|
|
@@ -1194,7 +1194,7 @@ const an = {
|
|
|
1194
1194
|
}).length
|
|
1195
1195
|
)
|
|
1196
1196
|
);
|
|
1197
|
-
(l != null || s != null) && e ? (l != null && (y.value.start = l, e.setStartValue(l)), s != null && (y.value.end = s + 1, e.setEndValue(
|
|
1197
|
+
(l != null || s != null) && e ? (l != null && (y.value.start = l, e.setStartValue(l)), s != null && (y.value.end = s + 1, e.setEndValue(lo(s + 1)))) : (y.value = { start: 0, end: n }, Zt.value += 1), De.value.start = y.value.start, De.value.end = y.value.end, xt();
|
|
1198
1198
|
}
|
|
1199
1199
|
async function ra() {
|
|
1200
1200
|
await Sl();
|
|
@@ -1235,7 +1235,7 @@ const an = {
|
|
|
1235
1235
|
return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(l.zeroPosition) ? 0 : l.zeroPosition;
|
|
1236
1236
|
}
|
|
1237
1237
|
const gl = b(null);
|
|
1238
|
-
function
|
|
1238
|
+
function ao(l) {
|
|
1239
1239
|
if (pe.value) return;
|
|
1240
1240
|
const s = _e.value.getBoundingClientRect(), n = _e.value.viewBox.baseVal.width / s.width, i = (l.clientX - s.left) * n - c.value.left, o = c.value.width / I.value, A = Math.floor(i / o);
|
|
1241
1241
|
A >= 0 && A < I.value ? gl.value !== A && (gl.value = A, Ma(!0, A)) : ma();
|
|
@@ -1243,10 +1243,10 @@ const an = {
|
|
|
1243
1243
|
function ma() {
|
|
1244
1244
|
gl.value = null, Ma(!1, null);
|
|
1245
1245
|
}
|
|
1246
|
-
function
|
|
1247
|
-
gl.value != null &&
|
|
1246
|
+
function oo() {
|
|
1247
|
+
gl.value != null && no(gl.value);
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1249
|
+
function no(l) {
|
|
1250
1250
|
const s = Xe.value.map((e) => ({
|
|
1251
1251
|
name: e.name,
|
|
1252
1252
|
value: [null, void 0, NaN].includes(e.absoluteValues[l]) ? null : e.absoluteValues[l],
|
|
@@ -1262,7 +1262,7 @@ const an = {
|
|
|
1262
1262
|
}
|
|
1263
1263
|
), t.value.events.datapointClick && t.value.events.datapointClick({ datapoint: s, seriesIndex: l + y.value.start });
|
|
1264
1264
|
}
|
|
1265
|
-
function
|
|
1265
|
+
function uo() {
|
|
1266
1266
|
return rt.value.map((l) => ({
|
|
1267
1267
|
values: l.absoluteValues,
|
|
1268
1268
|
color: l.color,
|
|
@@ -1270,9 +1270,9 @@ const an = {
|
|
|
1270
1270
|
type: l.type
|
|
1271
1271
|
}));
|
|
1272
1272
|
}
|
|
1273
|
-
async function
|
|
1273
|
+
async function so({ scale: l = 2 } = {}) {
|
|
1274
1274
|
if (!me.value) return;
|
|
1275
|
-
const { width: s, height: e } = me.value.getBoundingClientRect(), n = s / e, { imageUri: a, base64: i } = await
|
|
1275
|
+
const { width: s, height: e } = me.value.getBoundingClientRect(), n = s / e, { imageUri: a, base64: i } = await en({ domElement: me.value, base64: !0, img: !0, scale: l });
|
|
1276
1276
|
return {
|
|
1277
1277
|
imageUri: a,
|
|
1278
1278
|
base64: i,
|
|
@@ -1296,12 +1296,12 @@ const an = {
|
|
|
1296
1296
|
type: s.type
|
|
1297
1297
|
}))), Ot.value += 1;
|
|
1298
1298
|
}
|
|
1299
|
-
const
|
|
1299
|
+
const io = x(() => {
|
|
1300
1300
|
const l = t.value.chart.title.text || "Chart visualization", s = t.value.chart.title.subtitle.text || "";
|
|
1301
1301
|
return `${l}. ${s}`;
|
|
1302
1302
|
}), xa = x(() => ({
|
|
1303
1303
|
linePlot: I.value > t.value.line.dot.hideAboveMaxSerieLength
|
|
1304
|
-
})),
|
|
1304
|
+
})), ro = x(() => t.value.chart.userOptions.show && (!t.value.chart.title.show || !t.value.chart.title.text)), co = x(() => {
|
|
1305
1305
|
if (Array.isArray(t.value.chart.highlightArea))
|
|
1306
1306
|
return t.value.chart.highlightArea.map((s) => {
|
|
1307
1307
|
const e = Math.min(s.to, $e.value - 1);
|
|
@@ -1315,22 +1315,22 @@ const an = {
|
|
|
1315
1315
|
to: Math.min(t.value.chart.highlightArea.to, $e.value - 1)
|
|
1316
1316
|
};
|
|
1317
1317
|
return [{ ...l, span: l.from === l.to ? 1 : l.to < l.from ? 0 : l.to - l.from + 1 }];
|
|
1318
|
-
}),
|
|
1318
|
+
}), vo = x(() => rl.value ? ue.value.map((l, s) => ({
|
|
1319
1319
|
...l,
|
|
1320
1320
|
series: je({
|
|
1321
1321
|
data: l.series,
|
|
1322
1322
|
threshold: t.value.downsample.threshold
|
|
1323
1323
|
}),
|
|
1324
1324
|
id: `uniqueId_${s}`
|
|
1325
|
-
})) : ue.value),
|
|
1325
|
+
})) : ue.value), ho = x(() => Xe.value.map((l) => {
|
|
1326
1326
|
const s = l.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
|
|
1327
1327
|
return {
|
|
1328
1328
|
id: l.id,
|
|
1329
1329
|
name: l.name,
|
|
1330
1330
|
color: l.color,
|
|
1331
|
-
values:
|
|
1331
|
+
values: to(I.value, s)
|
|
1332
1332
|
};
|
|
1333
|
-
})),
|
|
1333
|
+
})), fo = x(() => ({
|
|
1334
1334
|
responsiveBreakpoint: t.value.table.responsiveBreakpoint,
|
|
1335
1335
|
roundingValues: t.value.table.rounding,
|
|
1336
1336
|
showAverage: !1,
|
|
@@ -1353,7 +1353,7 @@ const an = {
|
|
|
1353
1353
|
userOptions: {
|
|
1354
1354
|
show: !1
|
|
1355
1355
|
}
|
|
1356
|
-
})), Q = x(() => t.value.chart.grid.position === "middle" ? 0 : c.value.width / I.value / 2), Et = x(() =>
|
|
1356
|
+
})), Q = x(() => t.value.chart.grid.position === "middle" ? 0 : c.value.width / I.value / 2), Et = x(() => Fo(rt.value.filter((l) => !ce.value.includes(l.id)))), T = x(() => {
|
|
1357
1357
|
const l = Object.groupBy(Et.value, (e) => e.scaleLabel), s = {};
|
|
1358
1358
|
for (const [e, n] of Object.entries(l)) {
|
|
1359
1359
|
const a = n.flatMap((i) => i.absoluteValues);
|
|
@@ -1364,12 +1364,12 @@ const an = {
|
|
|
1364
1364
|
};
|
|
1365
1365
|
}
|
|
1366
1366
|
return s;
|
|
1367
|
-
}),
|
|
1367
|
+
}), mo = x(() => {
|
|
1368
1368
|
const l = Je.value.filter((s) => s.type === "bar").filter((s) => !ce.value.includes(s.id)).length;
|
|
1369
1369
|
return c.value.width / I.value / l - $l.value * l;
|
|
1370
1370
|
}), $l = x(() => te.value.line * t.value.bar.periodGap), Ll = x(() => Math.max(1e-5, el() - (k.value.useIndividualScale && k.value.isStacked ? 0 : $l.value))), Ml = x(() => Ll.value * Math.min(Math.abs(t.value.bar.innerGap), 0.95)), ba = x(() => {
|
|
1371
1371
|
if (!t.value.chart.zoom.minimap.show) return [];
|
|
1372
|
-
const l =
|
|
1372
|
+
const l = vo.value.filter((a) => !ce.value.includes(a.id)), s = Math.max(...l.map((a) => a.series.length)), e = [];
|
|
1373
1373
|
for (let a = 0; a < s; a += 1)
|
|
1374
1374
|
e.push(l.map((i) => i.series[a] || 0).reduce((i, o) => (i || 0) + (o || 0), 0));
|
|
1375
1375
|
const n = Math.min(...e);
|
|
@@ -1401,7 +1401,7 @@ const an = {
|
|
|
1401
1401
|
return a - O * i;
|
|
1402
1402
|
};
|
|
1403
1403
|
return s.map((M) => {
|
|
1404
|
-
const { yAxis: { yTop: O, yBottom: Z, label: w } } = M, N = O != null && Z != null && O !== Z, z = O == null ? null : E(O), se = Z == null ? null : E(Z), Me =
|
|
1404
|
+
const { yAxis: { yTop: O, yBottom: Z, label: w } } = M, N = O != null && Z != null && O !== Z, z = O == null ? null : E(O), se = Z == null ? null : E(Z), Me = ja(w.fontSize);
|
|
1405
1405
|
Me.font = `${w.fontSize}px sans-serif`;
|
|
1406
1406
|
const ee = Me.measureText(w.text).width, Ye = w.fontSize, ct = (w.position === "start" ? e + w.padding.left : n - w.padding.right) + w.offsetX, Fe = (z != null && se != null ? Math.min(z, se) : z ?? se) - w.fontSize / 3 + w.offsetY - w.padding.top;
|
|
1407
1407
|
let D;
|
|
@@ -1450,7 +1450,7 @@ const an = {
|
|
|
1450
1450
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
1451
1451
|
min: o.scaleMin || Math.min(...o.absoluteValues.filter((W) => ![void 0, null].includes(W))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((W) => ![null, void 0].includes(W)))
|
|
1452
1452
|
}, Z = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, w = 1.0000001, N = t.value.chart.grid.labels.yAxis.useNiceScale ? yl(O.min, O.max === O.min ? O.max * w : O.max, Z) : Dt(O.min, O.max === O.min ? O.max * w : O.max, Z), z = t.value.chart.grid.labels.yAxis.useNiceScale ? yl(M.valueMin, M.valueMax === M.valueMin ? M.valueMax * w : M.valueMax, Z) : Dt(M.valueMin, M.valueMax === M.valueMin ? M.valueMax * w : M.valueMax, Z), se = N.min >= 0 ? 0 : Math.abs(N.min), Me = 0, ee = N.max + se, Ye = z.max + Math.abs(Me), ct = o.stackIndex, tl = s - 1 - ct, Fe = n ? 1 - o.cumulatedStackRatio : 0, D = n ? i * Fe + e * tl : 0, X = n ? i * o.stackRatio : c.value.height, de = c.value.bottom - D - X * se / ee, He = c.value.bottom - D - X * Me / Ye, Ce = rt.value.filter((W) => W.type === "bar").filter((W) => !ce.value.includes(W.id)).length, bl = o.series.map((W, fe) => {
|
|
1453
|
-
const Lt = k.value.useIndividualScale ? (o.absoluteValues[fe] + se) / ee : Bt(W), Wt = k.value.useIndividualScale && k.value.isStacked ? c.value.left + c.value.width / I.value * fe : c.value.left + te.value.bar * A + te.value.bar * fe * Ce -
|
|
1453
|
+
const Lt = k.value.useIndividualScale ? (o.absoluteValues[fe] + se) / ee : Bt(W), Wt = k.value.useIndividualScale && k.value.isStacked ? c.value.left + c.value.width / I.value * fe : c.value.left + te.value.bar * A + te.value.bar * fe * Ce - mo.value / 2 - A * $l.value;
|
|
1454
1454
|
return {
|
|
1455
1455
|
yOffset: V(D),
|
|
1456
1456
|
individualHeight: V(X),
|
|
@@ -1515,10 +1515,10 @@ const an = {
|
|
|
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
1517
|
}, Z = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, w = 1.0000001, N = t.value.chart.grid.labels.yAxis.useNiceScale ? yl(O.min, O.max === O.min ? O.max * w : O.max, Z) : Dt(O.min, O.max === O.min ? O.max * w : O.max, Z), z = t.value.chart.grid.labels.yAxis.useNiceScale ? yl(M.valueMin, M.valueMax === M.valueMin ? M.valueMax * w : M.valueMax, Z) : Dt(M.valueMin, M.valueMax === M.valueMin ? M.valueMax * w : M.valueMax, Z), se = N.min >= 0 ? 0 : Math.abs(N.min), Me = 0, ee = N.max + Math.abs(se), Ye = z.max + Math.abs(Me), ct = o.stackIndex, tl = s - 1 - ct, Fe = n ? 1 - o.cumulatedStackRatio : 0, D = n ? i * Fe + e * tl : 0, X = n ? i * o.stackRatio : c.value.height, de = c.value.bottom - D - X * se / ee, He = c.value.bottom - D - X * Me / Ye, Ce = o.series.map((H, we) => {
|
|
1518
|
-
const
|
|
1518
|
+
const ko = k.value.useIndividualScale ? (o.absoluteValues[we] + Math.abs(se)) / ee : Bt(H);
|
|
1519
1519
|
return {
|
|
1520
1520
|
x: V(c.value.left + te.value.line / 2 + te.value.line * we),
|
|
1521
|
-
y: V(c.value.bottom - D - X *
|
|
1521
|
+
y: V(c.value.bottom - D - X * ko),
|
|
1522
1522
|
value: o.absoluteValues[we],
|
|
1523
1523
|
comment: o.comments && o.comments.slice(y.value.start, y.value.end)[we] || ""
|
|
1524
1524
|
};
|
|
@@ -1532,7 +1532,7 @@ const an = {
|
|
|
1532
1532
|
y: V(c.value.bottom - D - (X * bl[we] || 0)),
|
|
1533
1533
|
value: o.absoluteValues[we],
|
|
1534
1534
|
comment: o.comments && o.comments.slice(y.value.start, y.value.end)[we] || ""
|
|
1535
|
-
}), $t = t.value.line.cutNullValues ?
|
|
1535
|
+
}), $t = t.value.line.cutNullValues ? Ba(Ce) : Fl(Ce.filter((H) => H.value !== null)), K = t.value.line.cutNullValues ? Ba(Ie) : Fl(Ie.filter((H) => H.value !== null)), he = t.value.line.cutNullValues ? Ea(Ce) : Hl(Ce.filter((H) => H.value !== null)), W = t.value.line.cutNullValues ? Ea(Ie) : Hl(Ie.filter((H) => H.value !== null)), fe = N.ticks.map((H) => ({
|
|
1536
1536
|
y: H >= 0 ? de - X * (H / ee) : de + X * Math.abs(H) / ee,
|
|
1537
1537
|
value: H,
|
|
1538
1538
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
@@ -1561,14 +1561,14 @@ const an = {
|
|
|
1561
1561
|
zeroPosition: o.autoScaling ? He : de,
|
|
1562
1562
|
curve: o.autoScaling ? K : $t,
|
|
1563
1563
|
plots: o.autoScaling ? Ie : Ce,
|
|
1564
|
-
area: o.useArea ? k.value.useIndividualScale ? t.value.line.cutNullValues ?
|
|
1564
|
+
area: o.useArea ? k.value.useIndividualScale ? t.value.line.cutNullValues ? Wa(
|
|
1565
1565
|
o.autoScaling ? Ie : Ce,
|
|
1566
1566
|
pl
|
|
1567
|
-
) :
|
|
1567
|
+
) : Da(
|
|
1568
1568
|
o.autoScaling ? Ie.filter((H) => H.value !== null) : Ce.filter((H) => H.value !== null),
|
|
1569
1569
|
pl
|
|
1570
|
-
) : t.value.line.cutNullValues ?
|
|
1571
|
-
curveAreas: o.useArea ?
|
|
1570
|
+
) : t.value.line.cutNullValues ? Wa(Ce, pl) : Da(Ce.filter((H) => H.value !== null), pl) : "",
|
|
1571
|
+
curveAreas: o.useArea ? Ho(
|
|
1572
1572
|
o.autoScaling ? t.value.line.cutNullValues ? Ie : Ie.filter((H) => H.value !== null) : t.value.line.cutNullValues ? Ce : Ce.filter((H) => H.value !== null),
|
|
1573
1573
|
pl,
|
|
1574
1574
|
t.value.line.cutNullValues
|
|
@@ -1704,7 +1704,7 @@ const an = {
|
|
|
1704
1704
|
const B = Te.value.find((w) => w.name === o), E = Te.value.find((w) => w.name === A);
|
|
1705
1705
|
if (!B || !E || B.type !== "line" || E.type !== "line") return;
|
|
1706
1706
|
const M = e?.[i]?.[0] ?? B.color, O = e?.[i]?.[1] ?? E.color;
|
|
1707
|
-
|
|
1707
|
+
Vo({
|
|
1708
1708
|
lineA: B.plots,
|
|
1709
1709
|
lineB: E.plots,
|
|
1710
1710
|
smoothA: !!B.smooth,
|
|
@@ -1726,9 +1726,9 @@ const an = {
|
|
|
1726
1726
|
plots: Qe.value,
|
|
1727
1727
|
config: t.value
|
|
1728
1728
|
})), Gl = x(() => {
|
|
1729
|
-
const l = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter, s =
|
|
1729
|
+
const l = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter, s = Jo({
|
|
1730
1730
|
useUTC: l.useUTC,
|
|
1731
|
-
locale:
|
|
1731
|
+
locale: Qo[l.locale] || { months: [], shortMonths: [], days: [], shortDays: [] },
|
|
1732
1732
|
januaryAsYear: l.januaryAsYear
|
|
1733
1733
|
});
|
|
1734
1734
|
return (e, n) => {
|
|
@@ -1765,10 +1765,10 @@ const an = {
|
|
|
1765
1765
|
s = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable ? Ul.value[n]?.text || "" : ke.value.at(-1)?.text || "";
|
|
1766
1766
|
}
|
|
1767
1767
|
return { left: l, right: s };
|
|
1768
|
-
}),
|
|
1768
|
+
}), go = x(() => {
|
|
1769
1769
|
let l = "", s = bt.value.map((a) => a.value).filter((a) => Il(a) && a !== null).reduce((a, i) => Math.abs(a) + Math.abs(i), 0);
|
|
1770
1770
|
const e = ke.value[_.value], n = t.value.chart.tooltip.customFormat;
|
|
1771
|
-
if (Ol(n) &&
|
|
1771
|
+
if (Ol(n) && Bo(() => n({
|
|
1772
1772
|
absoluteIndex: _.value + y.value.start,
|
|
1773
1773
|
seriesIndex: _.value,
|
|
1774
1774
|
datapoint: bt.value,
|
|
@@ -1800,7 +1800,7 @@ const an = {
|
|
|
1800
1800
|
i = `<svg viewBox="0 0 40 40" height="14" width="14">${sl.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${a.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${sl.pattern ? `url(#pattern_${G.value}_${a.slotAbsoluteIndex}` : a.color}" /></svg>`;
|
|
1801
1801
|
break;
|
|
1802
1802
|
case "line":
|
|
1803
|
-
!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" />` : a.shape === "triangle" ? o = `<path d="${vt({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "square" ? o = `<path d="${vt({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "diamond" ? o = `<path d="${vt({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "pentagon" ? o = `<path d="${vt({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "hexagon" ? o = `<path d="${vt({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "star" && (o = `<polygon stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" points="${
|
|
1803
|
+
!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" />` : a.shape === "triangle" ? o = `<path d="${vt({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "square" ? o = `<path d="${vt({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "diamond" ? o = `<path d="${vt({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "pentagon" ? o = `<path d="${vt({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "hexagon" ? o = `<path d="${vt({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "star" && (o = `<polygon stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" points="${Xa({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), i = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${a.color}" />${o}</svg>`;
|
|
1804
1804
|
break;
|
|
1805
1805
|
case "plot":
|
|
1806
1806
|
if (!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape)) {
|
|
@@ -1808,7 +1808,7 @@ const an = {
|
|
|
1808
1808
|
break;
|
|
1809
1809
|
}
|
|
1810
1810
|
if (a.shape === "star") {
|
|
1811
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" points="${
|
|
1811
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" points="${Xa({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
|
|
1812
1812
|
break;
|
|
1813
1813
|
}
|
|
1814
1814
|
if (a.shape === "triangle") {
|
|
@@ -1902,8 +1902,8 @@ const an = {
|
|
|
1902
1902
|
return { head: s, body: e, config: n, colNames: a };
|
|
1903
1903
|
});
|
|
1904
1904
|
function La(l = null) {
|
|
1905
|
-
const s = [[t.value.chart.title.text], [t.value.chart.title.subtitle.text], [""]], e = ["", ...$a.value.head.map((o) => o.label)], n = $a.value.body, a = s.concat([e]).concat(n), i =
|
|
1906
|
-
l ? l(i) :
|
|
1905
|
+
const s = [[t.value.chart.title.text], [t.value.chart.title.subtitle.text], [""]], e = ["", ...$a.value.head.map((o) => o.label)], n = $a.value.body, a = s.concat([e]).concat(n), i = Yo(a);
|
|
1906
|
+
l ? l(i) : Go({ csvContent: i, title: t.value.chart.title.text || "vue-ui-xy" });
|
|
1907
1907
|
}
|
|
1908
1908
|
function Ma(l, s = null) {
|
|
1909
1909
|
ft.value = l;
|
|
@@ -1971,7 +1971,7 @@ const an = {
|
|
|
1971
1971
|
});
|
|
1972
1972
|
}
|
|
1973
1973
|
function ql() {
|
|
1974
|
-
|
|
1974
|
+
Ya(d.dataset) ? (Kl({
|
|
1975
1975
|
componentName: "VueUiXy",
|
|
1976
1976
|
type: "dataset",
|
|
1977
1977
|
debug: gt.value
|
|
@@ -1989,7 +1989,7 @@ const an = {
|
|
|
1989
1989
|
-----> The serie '${s.name}' contains the value '${e}' at index ${n}.
|
|
1990
1990
|
'${e}' was converted to null to allow the chart to display.`);
|
|
1991
1991
|
});
|
|
1992
|
-
}),
|
|
1992
|
+
}), Ya(d.dataset) || (Ft.value = t.value.loading), Jt.value = t.value.chart.userOptions.showOnChartHover, dl.value = t.value.chart.userOptions.keepStateOnChartLeave, Qt.value = !t.value.chart.userOptions.showOnChartHover, ml();
|
|
1993
1993
|
const l = 12;
|
|
1994
1994
|
if (t.value.responsive) {
|
|
1995
1995
|
const e = me.value.parentNode;
|
|
@@ -2015,16 +2015,17 @@ const an = {
|
|
|
2015
2015
|
} else
|
|
2016
2016
|
ge.value = t.value.chart.height, ae.value = t.value.chart.width, $.value.dataLabels = t.value.chart.grid.labels.fontSize, $.value.yAxis = t.value.chart.grid.labels.axis.fontSize, $.value.xAxis = t.value.chart.grid.labels.xAxisLabels.fontSize, $.value.plotLabels = t.value.chart.labels.fontSize, Ae.value.plot = t.value.plot.radius, Ae.value.line = t.value.line.radius, nt.value = `0 0 ${ae.value} ${ge.value}`;
|
|
2017
2017
|
}
|
|
2018
|
+
function Na(l) {
|
|
2019
|
+
Pt.value = {
|
|
2020
|
+
x: l.clientX,
|
|
2021
|
+
y: l.clientY
|
|
2022
|
+
};
|
|
2023
|
+
}
|
|
2018
2024
|
ol(() => {
|
|
2019
|
-
ql(), Sl(), document.addEventListener("mousemove",
|
|
2020
|
-
Pt.value = {
|
|
2021
|
-
x: l.clientX,
|
|
2022
|
-
y: l.clientY
|
|
2023
|
-
};
|
|
2024
|
-
}), document.addEventListener("scroll", la);
|
|
2025
|
+
ql(), Sl(), document.addEventListener("mousemove", Na), document.addEventListener("scroll", la);
|
|
2025
2026
|
}), nl(() => {
|
|
2026
|
-
document.removeEventListener("scroll", la), q.value && (q.value.unobserve(ot.value), q.value.disconnect());
|
|
2027
|
-
}),
|
|
2027
|
+
document.removeEventListener("scroll", la), document.removeEventListener("mousemove", Na), q.value && (q.value.unobserve(ot.value), q.value.disconnect(), q.value = null);
|
|
2028
|
+
}), jo({
|
|
2028
2029
|
timeLabelsEls: ht,
|
|
2029
2030
|
timeLabels: ke,
|
|
2030
2031
|
slicer: y,
|
|
@@ -2036,28 +2037,28 @@ const an = {
|
|
|
2036
2037
|
width: ae,
|
|
2037
2038
|
rotation: t.value.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
2038
2039
|
});
|
|
2039
|
-
const zl = b(!1),
|
|
2040
|
+
const zl = b(!1), Ra = b(null), Pa = b(200), xo = x(
|
|
2040
2041
|
() => _.value ?? F.value ?? 0
|
|
2041
2042
|
);
|
|
2042
|
-
function
|
|
2043
|
-
const l = Math.ceil(
|
|
2043
|
+
function bo() {
|
|
2044
|
+
const l = Math.ceil(Pa.value || 200);
|
|
2044
2045
|
return Math.min(Math.max(l, 1), 200);
|
|
2045
2046
|
}
|
|
2046
|
-
function
|
|
2047
|
-
const l =
|
|
2047
|
+
function po() {
|
|
2048
|
+
const l = bo(), s = 200, e = Math.max(1, I.value), n = c.value.width / e, i = c.value.left + xo.value * n + n / 2 - l / 2 - (s - l) / 2, o = c.value.left - (s - l) / 2, A = c.value.right - (s + l) / 2, B = Math.max(o, Math.min(i, A));
|
|
2048
2049
|
return V(B);
|
|
2049
2050
|
}
|
|
2050
2051
|
ol(() => {
|
|
2051
2052
|
let l = null, s = null;
|
|
2052
2053
|
const e = (i) => {
|
|
2053
2054
|
cancelAnimationFrame(s), s = requestAnimationFrame(() => {
|
|
2054
|
-
|
|
2055
|
+
Pa.value = Math.min(Math.max(Math.ceil(i || 0), 1), 200);
|
|
2055
2056
|
});
|
|
2056
2057
|
}, n = new ResizeObserver((i) => {
|
|
2057
2058
|
let o = i.find((A) => A.target === l) || i[0];
|
|
2058
2059
|
o && e(o.contentRect.width || 200);
|
|
2059
|
-
}), a =
|
|
2060
|
-
const o =
|
|
2060
|
+
}), a = Va((i) => {
|
|
2061
|
+
const o = Ra.value;
|
|
2061
2062
|
l && l !== o && (n.unobserve(l), l = null), o && o !== l && (Yt(() => {
|
|
2062
2063
|
o.offsetParent !== null && e(o.offsetWidth || o.getBoundingClientRect().width || 200);
|
|
2063
2064
|
}), n.observe(o), l = o), i(() => {
|
|
@@ -2071,7 +2072,7 @@ const an = {
|
|
|
2071
2072
|
}
|
|
2072
2073
|
});
|
|
2073
2074
|
});
|
|
2074
|
-
const
|
|
2075
|
+
const yo = x(() => {
|
|
2075
2076
|
if ([null, void 0].includes(_.value) && [null, void 0].includes(F.value)) return "";
|
|
2076
2077
|
const l = (_.value != null ? _.value : 0) || (F.value != null ? F.value : 0), s = t.value.chart.timeTag.customFormat;
|
|
2077
2078
|
if (zl.value = !1, Ol(s))
|
|
@@ -2105,7 +2106,7 @@ const an = {
|
|
|
2105
2106
|
ne.value || (t.value = st()), ql(), vl.value += 1, cl.value += 1, ml(), xt();
|
|
2106
2107
|
}, { deep: !0 });
|
|
2107
2108
|
const Zl = b(!1);
|
|
2108
|
-
function
|
|
2109
|
+
function Oa() {
|
|
2109
2110
|
const l = me.value?.parentNode;
|
|
2110
2111
|
if (!l) {
|
|
2111
2112
|
Zl.value = !1;
|
|
@@ -2115,16 +2116,16 @@ const an = {
|
|
|
2115
2116
|
Zl.value = s.width > 2 && s.height > 2;
|
|
2116
2117
|
}
|
|
2117
2118
|
return ol(() => {
|
|
2118
|
-
|
|
2119
|
+
Oa();
|
|
2119
2120
|
const l = new ResizeObserver(() => {
|
|
2120
|
-
|
|
2121
|
+
Oa(), Zl.value && (ql(), xt(), Sl());
|
|
2121
2122
|
});
|
|
2122
2123
|
me.value?.parentNode && l.observe(me.value.parentNode);
|
|
2123
2124
|
}), dt(t, () => {
|
|
2124
2125
|
ml();
|
|
2125
2126
|
}, { immediate: !0 }), Vl({
|
|
2126
|
-
getData:
|
|
2127
|
-
getImage:
|
|
2127
|
+
getData: uo,
|
|
2128
|
+
getImage: so,
|
|
2128
2129
|
generatePdf: S,
|
|
2129
2130
|
generateImage: U,
|
|
2130
2131
|
generateCsv: La,
|
|
@@ -2151,7 +2152,7 @@ const an = {
|
|
|
2151
2152
|
active: pe.value,
|
|
2152
2153
|
onClose: Dl
|
|
2153
2154
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
|
|
2154
|
-
|
|
2155
|
+
ro.value ? (u(), r("div", {
|
|
2155
2156
|
key: 1,
|
|
2156
2157
|
ref_key: "noTitle",
|
|
2157
2158
|
ref: Nt,
|
|
@@ -2165,7 +2166,7 @@ const an = {
|
|
|
2165
2166
|
class: "vue-ui-xy-title",
|
|
2166
2167
|
style: L(`font-family:${t.value.chart.fontFamily}`)
|
|
2167
2168
|
}, [
|
|
2168
|
-
(u(), Ge(
|
|
2169
|
+
(u(), Ge(tn, {
|
|
2169
2170
|
key: `title_${vl.value}`,
|
|
2170
2171
|
config: {
|
|
2171
2172
|
title: {
|
|
@@ -2181,7 +2182,7 @@ const an = {
|
|
|
2181
2182
|
], 4)) : f("", !0),
|
|
2182
2183
|
p("div", {
|
|
2183
2184
|
id: `legend-top-${G.value}`
|
|
2184
|
-
}, null, 8,
|
|
2185
|
+
}, null, 8, Mn),
|
|
2185
2186
|
t.value.chart.userOptions.show && (dl.value || Qt.value) ? (u(), Ge(v(re), {
|
|
2186
2187
|
ref: "defails",
|
|
2187
2188
|
key: `user_options_${Kt.value}`,
|
|
@@ -2220,7 +2221,7 @@ const an = {
|
|
|
2220
2221
|
style: L({
|
|
2221
2222
|
visibility: dl.value ? Qt.value ? "visible" : "hidden" : "visible"
|
|
2222
2223
|
})
|
|
2223
|
-
},
|
|
2224
|
+
}, Mo({ _: 2 }, [
|
|
2224
2225
|
l.$slots.menuIcon ? {
|
|
2225
2226
|
name: "menuIcon",
|
|
2226
2227
|
fn: xe(({ isOpen: e, color: n }) => [
|
|
@@ -2304,13 +2305,13 @@ const an = {
|
|
|
2304
2305
|
color: t.value.chart.color,
|
|
2305
2306
|
fontFamily: t.value.chart.fontFamily
|
|
2306
2307
|
}),
|
|
2307
|
-
"aria-label":
|
|
2308
|
+
"aria-label": io.value,
|
|
2308
2309
|
role: "img",
|
|
2309
2310
|
"aria-live": "polite",
|
|
2310
2311
|
preserveAspectRatio: "xMidYMid",
|
|
2311
|
-
onMousemove:
|
|
2312
|
+
onMousemove: ao,
|
|
2312
2313
|
onMouseleave: ma,
|
|
2313
|
-
onClick:
|
|
2314
|
+
onClick: oo
|
|
2314
2315
|
}, [
|
|
2315
2316
|
p("g", {
|
|
2316
2317
|
ref_key: "G",
|
|
@@ -2329,9 +2330,9 @@ const an = {
|
|
|
2329
2330
|
}
|
|
2330
2331
|
}, [
|
|
2331
2332
|
J(l.$slots, "chart-background", {}, void 0, !0)
|
|
2332
|
-
], 8,
|
|
2333
|
-
I.value > 0 ? (u(), r("g",
|
|
2334
|
-
p("g",
|
|
2333
|
+
], 8, An)) : f("", !0),
|
|
2334
|
+
I.value > 0 ? (u(), r("g", zn, [
|
|
2335
|
+
p("g", Tn, [
|
|
2335
2336
|
t.value.chart.grid.labels.xAxis.showBaseline ? (u(), r("line", {
|
|
2336
2337
|
key: 0,
|
|
2337
2338
|
stroke: t.value.chart.grid.stroke,
|
|
@@ -2342,7 +2343,7 @@ const an = {
|
|
|
2342
2343
|
y2: v(Y)(c.value.bottom),
|
|
2343
2344
|
"stroke-linecap": "round",
|
|
2344
2345
|
style: { animation: "none !important" }
|
|
2345
|
-
}, null, 8,
|
|
2346
|
+
}, null, 8, In)) : f("", !0),
|
|
2346
2347
|
k.value.useIndividualScale ? t.value.chart.grid.showHorizontalLines ? (u(!0), r(g, { key: 2 }, C(xl.value, (e) => (u(), r("g", null, [
|
|
2347
2348
|
e.id === P.value && e.yLabels.length ? (u(!0), r(g, { key: 0 }, C(e.yLabels, (n) => (u(), r("line", {
|
|
2348
2349
|
x1: c.value.left + Q.value,
|
|
@@ -2353,7 +2354,7 @@ const an = {
|
|
|
2353
2354
|
"stroke-width": 0.5,
|
|
2354
2355
|
"stroke-linecap": "round",
|
|
2355
2356
|
style: { animation: "none !important" }
|
|
2356
|
-
}, null, 8,
|
|
2357
|
+
}, null, 8, On))), 256)) : e.yLabels.length ? (u(!0), r(g, { key: 1 }, C(e.yLabels, (n) => (u(), r("line", {
|
|
2357
2358
|
x1: c.value.left + Q.value,
|
|
2358
2359
|
x2: c.value.right - Q.value,
|
|
2359
2360
|
y1: v(Y)(n.y),
|
|
@@ -2362,7 +2363,7 @@ const an = {
|
|
|
2362
2363
|
"stroke-width": 0.5,
|
|
2363
2364
|
"stroke-linecap": "round",
|
|
2364
2365
|
style: { animation: "none !important" }
|
|
2365
|
-
}, null, 8,
|
|
2366
|
+
}, null, 8, Fn))), 256)) : f("", !0)
|
|
2366
2367
|
]))), 256)) : f("", !0) : (u(), r(g, { key: 1 }, [
|
|
2367
2368
|
t.value.chart.grid.labels.yAxis.showBaseline ? (u(), r("line", {
|
|
2368
2369
|
key: 0,
|
|
@@ -2374,8 +2375,8 @@ const an = {
|
|
|
2374
2375
|
y2: v(Y)(c.value.bottom),
|
|
2375
2376
|
"stroke-linecap": "round",
|
|
2376
2377
|
style: { animation: "none !important" }
|
|
2377
|
-
}, null, 8,
|
|
2378
|
-
t.value.chart.grid.showHorizontalLines ? (u(), r("g",
|
|
2378
|
+
}, null, 8, Nn)) : f("", !0),
|
|
2379
|
+
t.value.chart.grid.showHorizontalLines ? (u(), r("g", Rn, [
|
|
2379
2380
|
(u(!0), r(g, null, C(pa.value, (e) => (u(), r("line", {
|
|
2380
2381
|
x1: c.value.left + Q.value,
|
|
2381
2382
|
x2: c.value.right,
|
|
@@ -2385,26 +2386,26 @@ const an = {
|
|
|
2385
2386
|
"stroke-width": 0.5,
|
|
2386
2387
|
"stroke-linecap": "round",
|
|
2387
2388
|
style: { animation: "none !important" }
|
|
2388
|
-
}, null, 8,
|
|
2389
|
+
}, null, 8, Pn))), 256))
|
|
2389
2390
|
])) : f("", !0)
|
|
2390
2391
|
], 64)),
|
|
2391
|
-
t.value.chart.grid.showVerticalLines ? (u(), r("g",
|
|
2392
|
+
t.value.chart.grid.showVerticalLines ? (u(), r("g", Hn, [
|
|
2392
2393
|
p("path", {
|
|
2393
|
-
d:
|
|
2394
|
+
d: Ja.value,
|
|
2394
2395
|
"stroke-width": 0.5,
|
|
2395
2396
|
stroke: t.value.chart.grid.stroke,
|
|
2396
2397
|
"stroke-linecap": "round",
|
|
2397
2398
|
style: { animation: "none !important" }
|
|
2398
|
-
}, null, 8,
|
|
2399
|
+
}, null, 8, Vn)
|
|
2399
2400
|
])) : f("", !0),
|
|
2400
|
-
t.value.chart.grid.labels.xAxisLabels.show ? (u(), r("g",
|
|
2401
|
+
t.value.chart.grid.labels.xAxisLabels.show ? (u(), r("g", Bn, [
|
|
2401
2402
|
p("path", {
|
|
2402
|
-
d:
|
|
2403
|
+
d: Qa.value,
|
|
2403
2404
|
stroke: t.value.chart.grid.stroke,
|
|
2404
2405
|
"stroke-width": 1,
|
|
2405
2406
|
"stroke-linecap": "round",
|
|
2406
2407
|
style: { animation: "none !important" }
|
|
2407
|
-
}, null, 8,
|
|
2408
|
+
}, null, 8, En)
|
|
2408
2409
|
])) : f("", !0)
|
|
2409
2410
|
]),
|
|
2410
2411
|
(u(!0), r(g, null, C(pt.value, (e, n) => (u(), r("defs", {
|
|
@@ -2418,16 +2419,16 @@ const an = {
|
|
|
2418
2419
|
p("stop", {
|
|
2419
2420
|
offset: "0%",
|
|
2420
2421
|
"stop-color": e.color
|
|
2421
|
-
}, null, 8,
|
|
2422
|
+
}, null, 8, Dn),
|
|
2422
2423
|
p("stop", {
|
|
2423
2424
|
offset: "62%",
|
|
2424
2425
|
"stop-color": `${v(Xt)(e.color, 0.02)}`
|
|
2425
|
-
}, null, 8,
|
|
2426
|
+
}, null, 8, Xn),
|
|
2426
2427
|
p("stop", {
|
|
2427
2428
|
offset: "100%",
|
|
2428
2429
|
"stop-color": `${v(Xt)(e.color, 0.05)}`
|
|
2429
|
-
}, null, 8,
|
|
2430
|
-
], 8,
|
|
2430
|
+
}, null, 8, Yn)
|
|
2431
|
+
], 8, Wn),
|
|
2431
2432
|
p("linearGradient", {
|
|
2432
2433
|
id: `rectGradient_neg_${n}_${G.value}`,
|
|
2433
2434
|
x2: "0%",
|
|
@@ -2436,16 +2437,16 @@ const an = {
|
|
|
2436
2437
|
p("stop", {
|
|
2437
2438
|
offset: "0%",
|
|
2438
2439
|
"stop-color": `${v(Xt)(e.color, 0.05)}`
|
|
2439
|
-
}, null, 8,
|
|
2440
|
+
}, null, 8, Un),
|
|
2440
2441
|
p("stop", {
|
|
2441
2442
|
offset: "38%",
|
|
2442
2443
|
"stop-color": `${v(Xt)(e.color, 0.02)}`
|
|
2443
|
-
}, null, 8,
|
|
2444
|
+
}, null, 8, qn),
|
|
2444
2445
|
p("stop", {
|
|
2445
2446
|
offset: "100%",
|
|
2446
2447
|
"stop-color": e.color
|
|
2447
|
-
}, null, 8,
|
|
2448
|
-
], 8,
|
|
2448
|
+
}, null, 8, Zn)
|
|
2449
|
+
], 8, Gn)
|
|
2449
2450
|
]))), 128)),
|
|
2450
2451
|
(u(!0), r(g, null, C(Qe.value, (e, n) => (u(), r("defs", {
|
|
2451
2452
|
key: `def_plot_${n}`
|
|
@@ -2461,12 +2462,12 @@ const an = {
|
|
|
2461
2462
|
p("stop", {
|
|
2462
2463
|
offset: "0%",
|
|
2463
2464
|
"stop-color": `${v(Xt)(e.color, 0.05)}`
|
|
2464
|
-
}, null, 8,
|
|
2465
|
+
}, null, 8, Jn),
|
|
2465
2466
|
p("stop", {
|
|
2466
2467
|
offset: "100%",
|
|
2467
2468
|
"stop-color": e.color
|
|
2468
|
-
}, null, 8,
|
|
2469
|
-
], 8,
|
|
2469
|
+
}, null, 8, Qn)
|
|
2470
|
+
], 8, Kn)
|
|
2470
2471
|
]))), 128)),
|
|
2471
2472
|
(u(!0), r(g, null, C(Te.value, (e, n) => (u(), r("defs", {
|
|
2472
2473
|
key: `def_line_${n}`
|
|
@@ -2482,12 +2483,12 @@ const an = {
|
|
|
2482
2483
|
p("stop", {
|
|
2483
2484
|
offset: "0%",
|
|
2484
2485
|
"stop-color": `${v(Xt)(e.color, 0.05)}`
|
|
2485
|
-
}, null, 8,
|
|
2486
|
+
}, null, 8, eu),
|
|
2486
2487
|
p("stop", {
|
|
2487
2488
|
offset: "100%",
|
|
2488
2489
|
"stop-color": e.color
|
|
2489
|
-
}, null, 8,
|
|
2490
|
-
], 8,
|
|
2490
|
+
}, null, 8, tu)
|
|
2491
|
+
], 8, jn),
|
|
2491
2492
|
p("linearGradient", {
|
|
2492
2493
|
id: `areaGradient_${n}_${G.value}`,
|
|
2493
2494
|
x1: "0%",
|
|
@@ -2498,14 +2499,14 @@ const an = {
|
|
|
2498
2499
|
p("stop", {
|
|
2499
2500
|
offset: "0%",
|
|
2500
2501
|
"stop-color": `${v(et)(v(Xt)(e.color, 0.03), t.value.line.area.opacity)}`
|
|
2501
|
-
}, null, 8,
|
|
2502
|
+
}, null, 8, au),
|
|
2502
2503
|
p("stop", {
|
|
2503
2504
|
offset: "100%",
|
|
2504
2505
|
"stop-color": `${v(et)(e.color, t.value.line.area.opacity)}`
|
|
2505
|
-
}, null, 8,
|
|
2506
|
-
], 8,
|
|
2506
|
+
}, null, 8, ou)
|
|
2507
|
+
], 8, lu)
|
|
2507
2508
|
]))), 128)),
|
|
2508
|
-
(u(!0), r(g, null, C(
|
|
2509
|
+
(u(!0), r(g, null, C(co.value, (e) => (u(), r("g", null, [
|
|
2509
2510
|
e.show ? (u(), r(g, { key: 0 }, [
|
|
2510
2511
|
(u(!0), r(g, null, C(e.span, (n, a) => (u(), r("g", null, [
|
|
2511
2512
|
p("rect", {
|
|
@@ -2518,7 +2519,7 @@ const an = {
|
|
|
2518
2519
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
2519
2520
|
width: c.value.width / I.value < 0 ? 1e-5 : c.value.width / I.value,
|
|
2520
2521
|
fill: v(et)(e.color, e.opacity)
|
|
2521
|
-
}, null, 12,
|
|
2522
|
+
}, null, 12, nu)
|
|
2522
2523
|
]))), 256)),
|
|
2523
2524
|
(u(!0), r(g, null, C(e.span, (n, a) => (u(), r("g", null, [
|
|
2524
2525
|
e.caption.text && a === 0 ? (u(), r("foreignObject", {
|
|
@@ -2535,11 +2536,11 @@ const an = {
|
|
|
2535
2536
|
p("div", {
|
|
2536
2537
|
style: L(`padding:${e.caption.padding}px;text-align:${e.caption.textAlign};font-size:${e.caption.fontSize}px;color:${e.caption.color};font-weight:${e.caption.bold ? "bold" : "normal"}`)
|
|
2537
2538
|
}, le(e.caption.text), 5)
|
|
2538
|
-
], 12,
|
|
2539
|
+
], 12, uu)) : f("", !0)
|
|
2539
2540
|
]))), 256))
|
|
2540
2541
|
], 64)) : f("", !0)
|
|
2541
2542
|
]))), 256)),
|
|
2542
|
-
aa.value ? (u(), r("g",
|
|
2543
|
+
aa.value ? (u(), r("g", su, [
|
|
2543
2544
|
(u(!0), r(g, null, C(I.value, (e, n) => (u(), r("g", {
|
|
2544
2545
|
key: `tooltip_trap_highlighter_${n}`
|
|
2545
2546
|
}, [
|
|
@@ -2550,7 +2551,7 @@ const an = {
|
|
|
2550
2551
|
width: c.value.width / I.value < 0 ? 1e-5 : c.value.width / I.value,
|
|
2551
2552
|
fill: [F.value, _.value, mt.value].includes(n) ? v(et)(t.value.chart.highlighter.color, t.value.chart.highlighter.opacity) : "transparent",
|
|
2552
2553
|
style: { transition: "none !important", animation: "none !important" }
|
|
2553
|
-
}, null, 8,
|
|
2554
|
+
}, null, 8, iu)
|
|
2554
2555
|
]))), 128))
|
|
2555
2556
|
])) : f("", !0),
|
|
2556
2557
|
pt.value.length ? (u(!0), r(g, { key: 1 }, C(pt.value, (e, n) => (u(), r("g", {
|
|
@@ -2571,8 +2572,10 @@ const an = {
|
|
|
2571
2572
|
fill: t.value.bar.useGradient ? a.value >= 0 ? `url(#rectGradient_pos_${n}_${G.value})` : `url(#rectGradient_neg_${n}_${G.value})` : e.color,
|
|
2572
2573
|
stroke: t.value.bar.border.useSerieColor ? e.color : t.value.bar.border.stroke,
|
|
2573
2574
|
"stroke-width": t.value.bar.border.strokeWidth,
|
|
2574
|
-
style: L({
|
|
2575
|
-
|
|
2575
|
+
style: L({
|
|
2576
|
+
transition: v(ne) || !t.value.bar.showTransition ? void 0 : `all ${t.value.bar.transitionDurationMs}ms ease-in-out`
|
|
2577
|
+
})
|
|
2578
|
+
}, null, 12, ru)) : f("", !0),
|
|
2576
2579
|
Oe(a.value) && l.$slots.pattern ? (u(), r("rect", {
|
|
2577
2580
|
key: 1,
|
|
2578
2581
|
x: _l(a) - Ml.value / 2,
|
|
@@ -2584,7 +2587,7 @@ const an = {
|
|
|
2584
2587
|
stroke: t.value.bar.border.useSerieColor ? e.color : t.value.bar.border.stroke,
|
|
2585
2588
|
"stroke-width": t.value.bar.border.strokeWidth,
|
|
2586
2589
|
style: L({ transition: v(ne) || !t.value.bar.showTransition ? void 0 : `all ${t.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
2587
|
-
}, null, 12,
|
|
2590
|
+
}, null, 12, cu)) : f("", !0),
|
|
2588
2591
|
a.comment && t.value.chart.comments.show ? (u(), r("foreignObject", {
|
|
2589
2592
|
key: 2,
|
|
2590
2593
|
style: { overflow: "visible" },
|
|
@@ -2596,9 +2599,9 @@ const an = {
|
|
|
2596
2599
|
J(l.$slots, "plot-comment", {
|
|
2597
2600
|
plot: { ...a, color: e.color, seriesIndex: n, datapointIndex: i }
|
|
2598
2601
|
}, void 0, !0)
|
|
2599
|
-
], 8,
|
|
2602
|
+
], 8, vu)) : f("", !0)
|
|
2600
2603
|
]))), 128)),
|
|
2601
|
-
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(j)(e.plots).trend) ? (u(), r("g",
|
|
2604
|
+
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(j)(e.plots).trend) ? (u(), r("g", du, [
|
|
2602
2605
|
p("defs", null, [
|
|
2603
2606
|
p("marker", {
|
|
2604
2607
|
id: `bar_arrow_${n}`,
|
|
@@ -2611,8 +2614,8 @@ const an = {
|
|
|
2611
2614
|
p("polygon", {
|
|
2612
2615
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
2613
2616
|
fill: e.color
|
|
2614
|
-
}, null, 8,
|
|
2615
|
-
], 8,
|
|
2617
|
+
}, null, 8, fu)
|
|
2618
|
+
], 8, hu)
|
|
2616
2619
|
]),
|
|
2617
2620
|
e.plots.length > 1 ? (u(), r("line", {
|
|
2618
2621
|
key: 0,
|
|
@@ -2624,7 +2627,7 @@ const an = {
|
|
|
2624
2627
|
stroke: e.color,
|
|
2625
2628
|
"stroke-dasharray": 2,
|
|
2626
2629
|
"marker-end": `url(#bar_arrow_${n})`
|
|
2627
|
-
}, null, 8,
|
|
2630
|
+
}, null, 8, mu)) : f("", !0),
|
|
2628
2631
|
e.plots.length > 1 ? (u(), r("text", {
|
|
2629
2632
|
key: 1,
|
|
2630
2633
|
"text-anchor": "middle",
|
|
@@ -2636,7 +2639,7 @@ const an = {
|
|
|
2636
2639
|
v: v(j)(e.plots).trend * 100,
|
|
2637
2640
|
s: "%",
|
|
2638
2641
|
r: 2
|
|
2639
|
-
})), 9,
|
|
2642
|
+
})), 9, gu)) : f("", !0)
|
|
2640
2643
|
])) : f("", !0)
|
|
2641
2644
|
], 6))), 128)) : f("", !0),
|
|
2642
2645
|
!k.value.useIndividualScale && t.value.chart.grid.labels.zeroLine.show ? (u(), r("line", {
|
|
@@ -2649,8 +2652,8 @@ const an = {
|
|
|
2649
2652
|
y2: v(Y)(Le.value),
|
|
2650
2653
|
"stroke-linecap": "round",
|
|
2651
2654
|
style: { animation: "none !important" }
|
|
2652
|
-
}, null, 8,
|
|
2653
|
-
t.value.chart.highlighter.useLine && (![null, void 0].includes(_.value) || ![null, void 0].includes(F.value)) ? (u(), r("g",
|
|
2655
|
+
}, null, 8, xu)) : f("", !0),
|
|
2656
|
+
t.value.chart.highlighter.useLine && (![null, void 0].includes(_.value) || ![null, void 0].includes(F.value)) ? (u(), r("g", bu, [
|
|
2654
2657
|
p("line", {
|
|
2655
2658
|
x1: c.value.left + c.value.width / I.value * ((_.value !== null ? _.value : 0) || (F.value !== null ? F.value : 0)) + c.value.width / I.value / 2,
|
|
2656
2659
|
x2: c.value.left + c.value.width / I.value * ((_.value !== null ? _.value : 0) || (F.value !== null ? F.value : 0)) + c.value.width / I.value / 2,
|
|
@@ -2661,7 +2664,7 @@ const an = {
|
|
|
2661
2664
|
"stroke-dasharray": t.value.chart.highlighter.lineDasharray,
|
|
2662
2665
|
"stroke-linecap": "round",
|
|
2663
2666
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
2664
|
-
}, null, 8,
|
|
2667
|
+
}, null, 8, pu)
|
|
2665
2668
|
])) : f("", !0),
|
|
2666
2669
|
t.value.chart.grid.frame.show ? (u(), r("rect", {
|
|
2667
2670
|
key: 4,
|
|
@@ -2676,7 +2679,7 @@ const an = {
|
|
|
2676
2679
|
"stroke-linecap": t.value.chart.grid.frame.strokeLinecap,
|
|
2677
2680
|
"stroke-linejoin": t.value.chart.grid.frame.strokeLinejoin,
|
|
2678
2681
|
"stroke-dasharray": t.value.chart.grid.frame.strokeDasharray
|
|
2679
|
-
}, null, 8,
|
|
2682
|
+
}, null, 8, yu)) : f("", !0),
|
|
2680
2683
|
t.value.chart.grid.labels.show ? (u(), r("g", {
|
|
2681
2684
|
key: 5,
|
|
2682
2685
|
ref_key: "scaleLabels",
|
|
@@ -2693,7 +2696,7 @@ const an = {
|
|
|
2693
2696
|
"stroke-width": t.value.chart.grid.stroke,
|
|
2694
2697
|
"stroke-linecap": "round",
|
|
2695
2698
|
style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
2696
|
-
}, null, 12,
|
|
2699
|
+
}, null, 12, ku)
|
|
2697
2700
|
]))), 256)),
|
|
2698
2701
|
(u(!0), r(g, null, C(xl.value, (e) => (u(), r("g", {
|
|
2699
2702
|
style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
@@ -2704,7 +2707,7 @@ const an = {
|
|
|
2704
2707
|
"text-anchor": "middle",
|
|
2705
2708
|
transform: `translate(${e.x - $.value.dataLabels * 0.8 / 2 + Q.value}, ${k.value.isStacked ? c.value.bottom - e.yOffset - e.individualHeight / 2 : c.value.top + c.value.height / 2}) rotate(-90)`
|
|
2706
2709
|
}, le(e.name) + " " + le(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
|
|
2707
|
-
${e.scaleLabel}` : ""), 9,
|
|
2710
|
+
${e.scaleLabel}` : ""), 9, wu),
|
|
2708
2711
|
(u(!0), r(g, null, C(e.yLabels, (n, a) => (u(), r(g, null, [
|
|
2709
2712
|
t.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), r("line", {
|
|
2710
2713
|
key: 0,
|
|
@@ -2716,7 +2719,7 @@ const an = {
|
|
|
2716
2719
|
"stroke-width": 1,
|
|
2717
2720
|
"stroke-linecap": "round",
|
|
2718
2721
|
style: { animation: "none !important" }
|
|
2719
|
-
}, null, 8,
|
|
2722
|
+
}, null, 8, Su)) : f("", !0)
|
|
2720
2723
|
], 64))), 256)),
|
|
2721
2724
|
(u(!0), r(g, null, C(e.yLabels, (n, a) => (u(), r("text", {
|
|
2722
2725
|
x: e.x - 5 + Q.value - c.value.individualOffsetX,
|
|
@@ -2734,7 +2737,7 @@ const an = {
|
|
|
2734
2737
|
r: t.value.chart.grid.labels.yAxis.rounding
|
|
2735
2738
|
}),
|
|
2736
2739
|
{ datapoint: n.datapoint, seriesIndex: a }
|
|
2737
|
-
)), 9,
|
|
2740
|
+
)), 9, _u))), 256))
|
|
2738
2741
|
], 4))), 256))
|
|
2739
2742
|
], 64)) : (u(!0), r(g, { key: 1 }, C(pa.value, (e, n) => (u(), r("g", {
|
|
2740
2743
|
key: `yLabel_${n}`
|
|
@@ -2749,7 +2752,7 @@ const an = {
|
|
|
2749
2752
|
"stroke-width": "1",
|
|
2750
2753
|
"stroke-linecap": "round",
|
|
2751
2754
|
style: { animation: "none !important" }
|
|
2752
|
-
}, null, 8,
|
|
2755
|
+
}, null, 8, $u)) : f("", !0),
|
|
2753
2756
|
e.value >= Pe.value.min && e.value <= Pe.value.max ? (u(), r("text", {
|
|
2754
2757
|
key: 1,
|
|
2755
2758
|
x: c.value.scaleLabelX - t.value.chart.grid.labels.yAxis.crosshairSize,
|
|
@@ -2766,7 +2769,7 @@ const an = {
|
|
|
2766
2769
|
s: e.suffix,
|
|
2767
2770
|
r: t.value.chart.grid.labels.yAxis.rounding
|
|
2768
2771
|
})
|
|
2769
|
-
) : ""), 9,
|
|
2772
|
+
) : ""), 9, Lu)) : f("", !0)
|
|
2770
2773
|
]))), 128))
|
|
2771
2774
|
], 512)) : f("", !0),
|
|
2772
2775
|
(u(!0), r(g, null, C(Qe.value, (e, n) => (u(), r("g", {
|
|
@@ -2795,14 +2798,14 @@ const an = {
|
|
|
2795
2798
|
x: a.x - t.value.chart.comments.width / 2 + t.value.chart.comments.offsetX,
|
|
2796
2799
|
y: a.y + t.value.chart.comments.offsetY + 6
|
|
2797
2800
|
}, [
|
|
2798
|
-
p("div",
|
|
2801
|
+
p("div", Cu, [
|
|
2799
2802
|
J(l.$slots, "plot-comment", {
|
|
2800
2803
|
plot: { ...a, color: e.color, seriesIndex: n, datapointIndex: i }
|
|
2801
2804
|
}, void 0, !0)
|
|
2802
2805
|
])
|
|
2803
|
-
], 8,
|
|
2806
|
+
], 8, Mu)) : f("", !0)
|
|
2804
2807
|
]))), 128)),
|
|
2805
|
-
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(j)(e.plots).trend) ? (u(), r("g",
|
|
2808
|
+
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(j)(e.plots).trend) ? (u(), r("g", Au, [
|
|
2806
2809
|
p("defs", null, [
|
|
2807
2810
|
p("marker", {
|
|
2808
2811
|
id: `plot_arrow_${n}`,
|
|
@@ -2815,8 +2818,8 @@ const an = {
|
|
|
2815
2818
|
p("polygon", {
|
|
2816
2819
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
2817
2820
|
fill: e.color
|
|
2818
|
-
}, null, 8,
|
|
2819
|
-
], 8,
|
|
2821
|
+
}, null, 8, Tu)
|
|
2822
|
+
], 8, zu)
|
|
2820
2823
|
]),
|
|
2821
2824
|
e.plots.length > 1 ? (u(), r("line", {
|
|
2822
2825
|
key: 0,
|
|
@@ -2828,7 +2831,7 @@ const an = {
|
|
|
2828
2831
|
stroke: e.color,
|
|
2829
2832
|
"stroke-dasharray": 2,
|
|
2830
2833
|
"marker-end": `url(#plot_arrow_${n})`
|
|
2831
|
-
}, null, 8,
|
|
2834
|
+
}, null, 8, Iu)) : f("", !0),
|
|
2832
2835
|
e.plots.length > 1 ? (u(), r("text", {
|
|
2833
2836
|
key: 1,
|
|
2834
2837
|
"text-anchor": "middle",
|
|
@@ -2840,7 +2843,7 @@ const an = {
|
|
|
2840
2843
|
v: v(j)(e.plots).trend * 100,
|
|
2841
2844
|
s: "%",
|
|
2842
2845
|
r: 2
|
|
2843
|
-
})), 9,
|
|
2846
|
+
})), 9, Nu)) : f("", !0)
|
|
2844
2847
|
])) : f("", !0)
|
|
2845
2848
|
], 6))), 128)),
|
|
2846
2849
|
(u(!0), r(g, null, C(Te.value, (e, n) => (u(), r("g", {
|
|
@@ -2856,7 +2859,7 @@ const an = {
|
|
|
2856
2859
|
"stroke-dasharray": e.dashed ? t.value.line.strokeWidth * 2 : 0,
|
|
2857
2860
|
fill: "none",
|
|
2858
2861
|
style: L({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2859
|
-
}, null, 12,
|
|
2862
|
+
}, null, 12, Ru)) : e.plots.length > 1 && e.straight ? (u(), r("path", {
|
|
2860
2863
|
key: 1,
|
|
2861
2864
|
d: `M${e.straight}`,
|
|
2862
2865
|
stroke: t.value.chart.backgroundColor,
|
|
@@ -2866,14 +2869,14 @@ const an = {
|
|
|
2866
2869
|
"stroke-linecap": "round",
|
|
2867
2870
|
"stroke-linejoin": "round",
|
|
2868
2871
|
style: L({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2869
|
-
}, null, 12,
|
|
2872
|
+
}, null, 12, Pu)) : f("", !0)
|
|
2870
2873
|
], 6))), 128)),
|
|
2871
|
-
l.$slots.pattern ? (u(), r("defs",
|
|
2874
|
+
l.$slots.pattern ? (u(), r("defs", Ou, [
|
|
2872
2875
|
(u(!0), r(g, null, C(Je.value, (e, n) => J(l.$slots, "pattern", Tl({
|
|
2873
2876
|
key: `serie_pattern_slot_${n}`
|
|
2874
2877
|
}, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${G.value}_${n}` }), void 0, !0)), 128))
|
|
2875
2878
|
])) : f("", !0),
|
|
2876
|
-
wa.value.length && !k.value.isStacked ? (u(), r("g",
|
|
2879
|
+
wa.value.length && !k.value.isStacked ? (u(), r("g", Fu, [
|
|
2877
2880
|
(u(!0), r(g, null, C(wa.value, (e) => (u(), r("path", {
|
|
2878
2881
|
key: e.key,
|
|
2879
2882
|
d: e.d,
|
|
@@ -2882,40 +2885,40 @@ const an = {
|
|
|
2882
2885
|
stroke: "none",
|
|
2883
2886
|
"pointer-events": "none",
|
|
2884
2887
|
style: L({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2885
|
-
}, null, 12,
|
|
2888
|
+
}, null, 12, Hu))), 128))
|
|
2886
2889
|
])) : f("", !0),
|
|
2887
2890
|
(u(!0), r(g, null, C(Te.value, (e, n) => (u(), r("g", {
|
|
2888
2891
|
key: `serie_line_${n}`,
|
|
2889
2892
|
class: Ve(`serie_line_${n}`),
|
|
2890
2893
|
style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2891
2894
|
}, [
|
|
2892
|
-
e.useArea && e.plots.length > 1 ? (u(), r("g",
|
|
2895
|
+
e.useArea && e.plots.length > 1 ? (u(), r("g", Vu, [
|
|
2893
2896
|
e.smooth ? (u(!0), r(g, { key: 0 }, C(e.curveAreas, (a, i) => (u(), r(g, { key: i }, [
|
|
2894
2897
|
a ? (u(), r("path", {
|
|
2895
2898
|
key: 0,
|
|
2896
2899
|
d: a,
|
|
2897
2900
|
fill: t.value.line.area.useGradient ? `url(#areaGradient_${n}_${G.value})` : v(et)(e.color, t.value.line.area.opacity),
|
|
2898
2901
|
style: L({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2899
|
-
}, null, 12,
|
|
2902
|
+
}, null, 12, Bu)) : f("", !0),
|
|
2900
2903
|
l.$slots.pattern && a ? (u(), r("path", {
|
|
2901
2904
|
key: 1,
|
|
2902
2905
|
d: a,
|
|
2903
2906
|
fill: `url(#pattern_${G.value}_${e.slotAbsoluteIndex})`,
|
|
2904
2907
|
style: L({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2905
|
-
}, null, 12,
|
|
2908
|
+
}, null, 12, Eu)) : f("", !0)
|
|
2906
2909
|
], 64))), 128)) : (u(!0), r(g, { key: 1 }, C(e.area.split(";"), (a, i) => (u(), r(g, { key: i }, [
|
|
2907
2910
|
a ? (u(), r("path", {
|
|
2908
2911
|
key: 0,
|
|
2909
2912
|
d: `M${a}Z`,
|
|
2910
2913
|
fill: t.value.line.area.useGradient ? `url(#areaGradient_${n}_${G.value})` : v(et)(e.color, t.value.line.area.opacity),
|
|
2911
2914
|
style: L({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2912
|
-
}, null, 12,
|
|
2915
|
+
}, null, 12, Wu)) : f("", !0),
|
|
2913
2916
|
l.$slots.pattern && a ? (u(), r("path", {
|
|
2914
2917
|
key: 1,
|
|
2915
2918
|
d: `M${a}Z`,
|
|
2916
2919
|
fill: `url(#pattern_${G.value}_${e.slotAbsoluteIndex})`,
|
|
2917
2920
|
style: L({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2918
|
-
}, null, 12,
|
|
2921
|
+
}, null, 12, Du)) : f("", !0)
|
|
2919
2922
|
], 64))), 128))
|
|
2920
2923
|
])) : f("", !0),
|
|
2921
2924
|
e.smooth && e.plots.length > 1 && e.curve ? (u(), r("path", {
|
|
@@ -2927,7 +2930,7 @@ const an = {
|
|
|
2927
2930
|
fill: "none",
|
|
2928
2931
|
"stroke-linecap": "round",
|
|
2929
2932
|
style: L({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2930
|
-
}, null, 12,
|
|
2933
|
+
}, null, 12, Xu)) : e.plots.length > 1 && e.straight ? (u(), r("path", {
|
|
2931
2934
|
key: 2,
|
|
2932
2935
|
d: `M${e.straight}`,
|
|
2933
2936
|
stroke: e.color,
|
|
@@ -2937,7 +2940,7 @@ const an = {
|
|
|
2937
2940
|
"stroke-linecap": "round",
|
|
2938
2941
|
"stroke-linejoin": "round",
|
|
2939
2942
|
style: L({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2940
|
-
}, null, 12,
|
|
2943
|
+
}, null, 12, Yu)) : f("", !0),
|
|
2941
2944
|
(u(!0), r(g, null, C(e.plots, (a, i) => (u(), r(g, {
|
|
2942
2945
|
key: `circle_line_${n}_${i}`
|
|
2943
2946
|
}, [
|
|
@@ -2959,14 +2962,14 @@ const an = {
|
|
|
2959
2962
|
x: a.x - t.value.chart.comments.width / 2 + t.value.chart.comments.offsetX,
|
|
2960
2963
|
y: a.y + t.value.chart.comments.offsetY + 6
|
|
2961
2964
|
}, [
|
|
2962
|
-
p("div",
|
|
2965
|
+
p("div", Uu, [
|
|
2963
2966
|
J(l.$slots, "plot-comment", {
|
|
2964
2967
|
plot: { ...a, color: e.color, seriesIndex: n, datapointIndex: i }
|
|
2965
2968
|
}, void 0, !0)
|
|
2966
2969
|
])
|
|
2967
|
-
], 8,
|
|
2970
|
+
], 8, Gu)) : f("", !0)
|
|
2968
2971
|
], 64))), 128)),
|
|
2969
|
-
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(j)(e.plots).trend) ? (u(), r("g",
|
|
2972
|
+
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(j)(e.plots).trend) ? (u(), r("g", qu, [
|
|
2970
2973
|
p("defs", null, [
|
|
2971
2974
|
p("marker", {
|
|
2972
2975
|
id: `line_arrow_${n}`,
|
|
@@ -2979,8 +2982,8 @@ const an = {
|
|
|
2979
2982
|
p("polygon", {
|
|
2980
2983
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
2981
2984
|
fill: e.color
|
|
2982
|
-
}, null, 8,
|
|
2983
|
-
], 8,
|
|
2985
|
+
}, null, 8, Ku)
|
|
2986
|
+
], 8, Zu)
|
|
2984
2987
|
]),
|
|
2985
2988
|
e.plots.length > 1 ? (u(), r("line", {
|
|
2986
2989
|
key: 0,
|
|
@@ -2992,7 +2995,7 @@ const an = {
|
|
|
2992
2995
|
stroke: e.color,
|
|
2993
2996
|
"stroke-dasharray": 2,
|
|
2994
2997
|
"marker-end": `url(#line_arrow_${n})`
|
|
2995
|
-
}, null, 8,
|
|
2998
|
+
}, null, 8, Ju)) : f("", !0),
|
|
2996
2999
|
e.plots.length > 1 ? (u(), r("text", {
|
|
2997
3000
|
key: 1,
|
|
2998
3001
|
"text-anchor": "middle",
|
|
@@ -3004,10 +3007,10 @@ const an = {
|
|
|
3004
3007
|
v: v(j)(e.plots).trend * 100,
|
|
3005
3008
|
s: "%",
|
|
3006
3009
|
r: 2
|
|
3007
|
-
})), 9,
|
|
3010
|
+
})), 9, Qu)) : f("", !0)
|
|
3008
3011
|
])) : f("", !0)
|
|
3009
3012
|
], 6))), 128)),
|
|
3010
|
-
(t.value.bar.labels.show || t.value.bar.serieName.show) && k.value.dataLabels.show ? (u(), r("g",
|
|
3013
|
+
(t.value.bar.labels.show || t.value.bar.serieName.show) && k.value.dataLabels.show ? (u(), r("g", ju, [
|
|
3011
3014
|
(u(!0), r(g, null, C(pt.value, (e, n) => (u(), r(g, {
|
|
3012
3015
|
key: `xLabel_bar_${n}`
|
|
3013
3016
|
}, [
|
|
@@ -3035,7 +3038,7 @@ const an = {
|
|
|
3035
3038
|
datapoint: a,
|
|
3036
3039
|
serie: e
|
|
3037
3040
|
}
|
|
3038
|
-
) : ""), 13,
|
|
3041
|
+
) : ""), 13, es)) : f("", !0),
|
|
3039
3042
|
a && t.value.bar.serieName.show ? (u(), r("text", {
|
|
3040
3043
|
key: 1,
|
|
3041
3044
|
x: k.value.useIndividualScale && k.value.isStacked ? a.x + te.value.line / 2 : a.x + el() * 1.1,
|
|
@@ -3045,14 +3048,14 @@ const an = {
|
|
|
3045
3048
|
fill: t.value.bar.serieName.useSerieColor ? e.color : t.value.bar.serieName.color,
|
|
3046
3049
|
"font-weight": t.value.bar.serieName.bold ? "bold" : "normal",
|
|
3047
3050
|
style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3048
|
-
}, le(t.value.bar.serieName.useAbbreviation ? v(
|
|
3051
|
+
}, le(t.value.bar.serieName.useAbbreviation ? v(Eo)({
|
|
3049
3052
|
source: e.name,
|
|
3050
3053
|
length: t.value.bar.serieName.abbreviationSize
|
|
3051
|
-
}) : e.name), 13,
|
|
3054
|
+
}) : e.name), 13, ts)) : f("", !0)
|
|
3052
3055
|
], 64))), 128))
|
|
3053
3056
|
], 64))), 128))
|
|
3054
3057
|
])) : f("", !0),
|
|
3055
|
-
t.value.plot.labels.show && k.value.dataLabels.show ? (u(), r("g",
|
|
3058
|
+
t.value.plot.labels.show && k.value.dataLabels.show ? (u(), r("g", ls, [
|
|
3056
3059
|
(u(!0), r(g, null, C(Qe.value, (e, n) => (u(), r(g, {
|
|
3057
3060
|
key: `xLabel_plot_${n}`
|
|
3058
3061
|
}, [
|
|
@@ -3080,10 +3083,10 @@ const an = {
|
|
|
3080
3083
|
datapoint: a,
|
|
3081
3084
|
serie: e
|
|
3082
3085
|
}
|
|
3083
|
-
) : ""), 13,
|
|
3086
|
+
) : ""), 13, as)) : f("", !0)
|
|
3084
3087
|
], 64))), 128))
|
|
3085
3088
|
], 64))), 128))
|
|
3086
|
-
])) : (u(), r("g",
|
|
3089
|
+
])) : (u(), r("g", os, [
|
|
3087
3090
|
(u(!0), r(g, null, C(Qe.value, (e, n) => (u(), r(g, {
|
|
3088
3091
|
key: `xLabel_plot_${n}`
|
|
3089
3092
|
}, [
|
|
@@ -3102,7 +3105,7 @@ const an = {
|
|
|
3102
3105
|
"stroke-linecap": "round",
|
|
3103
3106
|
"stroke-dasharray": "2",
|
|
3104
3107
|
stroke: e.color
|
|
3105
|
-
}, null, 8,
|
|
3108
|
+
}, null, 8, rs)) : f("", !0)
|
|
3106
3109
|
], 64)) : (u(), r(g, { key: 0 }, [
|
|
3107
3110
|
a && i === 0 && e.useTag && e.useTag === "start" ? (u(), r("foreignObject", {
|
|
3108
3111
|
key: 0,
|
|
@@ -3124,8 +3127,8 @@ const an = {
|
|
|
3124
3127
|
serieName: e.name
|
|
3125
3128
|
}
|
|
3126
3129
|
)
|
|
3127
|
-
}, null, 12,
|
|
3128
|
-
], 12,
|
|
3130
|
+
}, null, 12, us)
|
|
3131
|
+
], 12, ns)) : f("", !0),
|
|
3129
3132
|
a && i === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (u(), r("foreignObject", {
|
|
3130
3133
|
key: 1,
|
|
3131
3134
|
x: a.x - e.name.length * ($.value.plotLabels / 2),
|
|
@@ -3146,13 +3149,13 @@ const an = {
|
|
|
3146
3149
|
serieName: e.name
|
|
3147
3150
|
}
|
|
3148
3151
|
)
|
|
3149
|
-
}, null, 12,
|
|
3150
|
-
], 12,
|
|
3152
|
+
}, null, 12, is)
|
|
3153
|
+
], 12, ss)) : f("", !0)
|
|
3151
3154
|
], 64))
|
|
3152
3155
|
], 64))), 128))
|
|
3153
3156
|
], 64))), 128))
|
|
3154
3157
|
])),
|
|
3155
|
-
t.value.line.labels.show && k.value.dataLabels.show ? (u(), r("g",
|
|
3158
|
+
t.value.line.labels.show && k.value.dataLabels.show ? (u(), r("g", cs, [
|
|
3156
3159
|
(u(!0), r(g, null, C(Te.value, (e, n) => (u(), r(g, {
|
|
3157
3160
|
key: `xLabel_line_${n}`
|
|
3158
3161
|
}, [
|
|
@@ -3180,10 +3183,10 @@ const an = {
|
|
|
3180
3183
|
datapoint: a,
|
|
3181
3184
|
serie: e
|
|
3182
3185
|
}
|
|
3183
|
-
) : ""), 13,
|
|
3186
|
+
) : ""), 13, vs)) : f("", !0)
|
|
3184
3187
|
], 64))), 128))
|
|
3185
3188
|
], 64))), 128))
|
|
3186
|
-
])) : (u(), r("g",
|
|
3189
|
+
])) : (u(), r("g", ds, [
|
|
3187
3190
|
(u(!0), r(g, null, C(Te.value, (e, n) => (u(), r(g, {
|
|
3188
3191
|
key: `xLabel_line_${n}`
|
|
3189
3192
|
}, [
|
|
@@ -3202,7 +3205,7 @@ const an = {
|
|
|
3202
3205
|
"stroke-linecap": "round",
|
|
3203
3206
|
"stroke-dasharray": "2",
|
|
3204
3207
|
stroke: e.color
|
|
3205
|
-
}, null, 8,
|
|
3208
|
+
}, null, 8, xs)) : f("", !0)
|
|
3206
3209
|
], 64)) : (u(), r(g, { key: 0 }, [
|
|
3207
3210
|
a && i === 0 && e.useTag && e.useTag === "start" ? (u(), r("foreignObject", {
|
|
3208
3211
|
key: 0,
|
|
@@ -3224,8 +3227,8 @@ const an = {
|
|
|
3224
3227
|
serieName: e.name
|
|
3225
3228
|
}
|
|
3226
3229
|
)
|
|
3227
|
-
}, null, 12,
|
|
3228
|
-
], 12,
|
|
3230
|
+
}, null, 12, fs)
|
|
3231
|
+
], 12, hs)) : f("", !0),
|
|
3229
3232
|
a && i === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (u(), r("foreignObject", {
|
|
3230
3233
|
key: 1,
|
|
3231
3234
|
x: a.x,
|
|
@@ -3246,8 +3249,8 @@ const an = {
|
|
|
3246
3249
|
serieName: e.name
|
|
3247
3250
|
}
|
|
3248
3251
|
)
|
|
3249
|
-
}, null, 12,
|
|
3250
|
-
], 12,
|
|
3252
|
+
}, null, 12, gs)
|
|
3253
|
+
], 12, ms)) : f("", !0)
|
|
3251
3254
|
], 64))
|
|
3252
3255
|
], 64))), 128))
|
|
3253
3256
|
], 64))), 128))
|
|
@@ -3274,7 +3277,7 @@ const an = {
|
|
|
3274
3277
|
maxWords: 2
|
|
3275
3278
|
}),
|
|
3276
3279
|
style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3277
|
-
}, null, 12,
|
|
3280
|
+
}, null, 12, bs)) : f("", !0),
|
|
3278
3281
|
a && i === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), r("text", {
|
|
3279
3282
|
key: 1,
|
|
3280
3283
|
x: a.x + $.value.plotLabels,
|
|
@@ -3291,7 +3294,7 @@ const an = {
|
|
|
3291
3294
|
maxWords: 2
|
|
3292
3295
|
}),
|
|
3293
3296
|
style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3294
|
-
}, null, 12,
|
|
3297
|
+
}, null, 12, ps)) : f("", !0)
|
|
3295
3298
|
], 64))), 128))
|
|
3296
3299
|
], 64))), 128)),
|
|
3297
3300
|
(u(!0), r(g, null, C(Qe.value, (e, n) => (u(), r(g, {
|
|
@@ -3316,7 +3319,7 @@ const an = {
|
|
|
3316
3319
|
maxWords: 2
|
|
3317
3320
|
}),
|
|
3318
3321
|
style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3319
|
-
}, null, 12,
|
|
3322
|
+
}, null, 12, ys)) : f("", !0),
|
|
3320
3323
|
a && i === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), r("text", {
|
|
3321
3324
|
key: 1,
|
|
3322
3325
|
x: a.x + $.value.plotLabels,
|
|
@@ -3333,7 +3336,7 @@ const an = {
|
|
|
3333
3336
|
maxWords: 2
|
|
3334
3337
|
}),
|
|
3335
3338
|
style: L(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3336
|
-
}, null, 12,
|
|
3339
|
+
}, null, 12, ks)) : f("", !0)
|
|
3337
3340
|
], 64))), 128))
|
|
3338
3341
|
], 64))), 128)),
|
|
3339
3342
|
k.value.useIndividualScale && !k.value.isStacked ? (u(), r(g, { key: 13 }, [
|
|
@@ -3349,13 +3352,13 @@ const an = {
|
|
|
3349
3352
|
offset: "0%",
|
|
3350
3353
|
"stop-color": t.value.chart.backgroundColor,
|
|
3351
3354
|
"stop-opacity": "0"
|
|
3352
|
-
}, null, 8,
|
|
3355
|
+
}, null, 8, Ss),
|
|
3353
3356
|
p("stop", {
|
|
3354
3357
|
offset: "100%",
|
|
3355
3358
|
"stop-color": e.color,
|
|
3356
3359
|
"stop-opacity": "0.2"
|
|
3357
|
-
}, null, 8,
|
|
3358
|
-
], 8,
|
|
3360
|
+
}, null, 8, _s)
|
|
3361
|
+
], 8, ws))), 256))
|
|
3359
3362
|
]),
|
|
3360
3363
|
(u(!0), r(g, null, C(xl.value, (e, n) => (u(), r("rect", {
|
|
3361
3364
|
x: e.x - t.value.chart.grid.labels.yAxis.labelWidth + Q.value - c.value.individualOffsetX,
|
|
@@ -3365,7 +3368,7 @@ const an = {
|
|
|
3365
3368
|
fill: P.value === e.groupId ? `url(#individual_scale_gradient_${G.value}_${n})` : "transparent",
|
|
3366
3369
|
onMouseenter: (a) => P.value = e.groupId,
|
|
3367
3370
|
onMouseleave: s[0] || (s[0] = (a) => P.value = null)
|
|
3368
|
-
}, null, 40,
|
|
3371
|
+
}, null, 40, $s))), 256))
|
|
3369
3372
|
], 64)) : f("", !0),
|
|
3370
3373
|
p("g", null, [
|
|
3371
3374
|
t.value.chart.grid.labels.axis.yLabel && !k.value.useIndividualScale ? (u(), r("text", {
|
|
@@ -3377,7 +3380,7 @@ const an = {
|
|
|
3377
3380
|
transform: `translate(${t.value.chart.grid.labels.axis.fontSize}, ${c.value.top + c.value.height / 2}) rotate(-90)`,
|
|
3378
3381
|
"text-anchor": "middle",
|
|
3379
3382
|
style: { transition: "none" }
|
|
3380
|
-
}, le(t.value.chart.grid.labels.axis.yLabel), 9,
|
|
3383
|
+
}, le(t.value.chart.grid.labels.axis.yLabel), 9, Ls)) : f("", !0),
|
|
3381
3384
|
t.value.chart.grid.labels.axis.xLabel ? (u(), r("text", {
|
|
3382
3385
|
key: 1,
|
|
3383
3386
|
ref_key: "xAxisLabel",
|
|
@@ -3387,7 +3390,7 @@ const an = {
|
|
|
3387
3390
|
y: ge.value - 3,
|
|
3388
3391
|
"font-size": $.value.yAxis,
|
|
3389
3392
|
fill: t.value.chart.grid.labels.color
|
|
3390
|
-
}, le(t.value.chart.grid.labels.axis.xLabel), 9,
|
|
3393
|
+
}, le(t.value.chart.grid.labels.axis.xLabel), 9, Ms)) : f("", !0)
|
|
3391
3394
|
]),
|
|
3392
3395
|
t.value.chart.grid.labels.xAxisLabels.show ? (u(), r("g", {
|
|
3393
3396
|
key: 14,
|
|
@@ -3422,7 +3425,7 @@ const an = {
|
|
|
3422
3425
|
style: L({
|
|
3423
3426
|
cursor: ta() ? "pointer" : "default"
|
|
3424
3427
|
}),
|
|
3425
|
-
innerHTML: v(
|
|
3428
|
+
innerHTML: v(Wo)({
|
|
3426
3429
|
content: String(e.text),
|
|
3427
3430
|
fontSize: $.value.xAxis,
|
|
3428
3431
|
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
@@ -3430,7 +3433,7 @@ const an = {
|
|
|
3430
3433
|
y: 0
|
|
3431
3434
|
}),
|
|
3432
3435
|
onClick: () => ua(e, n)
|
|
3433
|
-
}, null, 12,
|
|
3436
|
+
}, null, 12, As)) : (u(), r("text", {
|
|
3434
3437
|
key: 0,
|
|
3435
3438
|
class: "vue-data-ui-time-label",
|
|
3436
3439
|
"text-anchor": t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -3441,11 +3444,11 @@ const an = {
|
|
|
3441
3444
|
cursor: ta() ? "pointer" : "default"
|
|
3442
3445
|
}),
|
|
3443
3446
|
onClick: () => ua(e, n)
|
|
3444
|
-
}, le(e.text || ""), 13,
|
|
3447
|
+
}, le(e.text || ""), 13, Cs))
|
|
3445
3448
|
], 64)) : f("", !0)
|
|
3446
3449
|
]))), 128))
|
|
3447
3450
|
], 512)) : f("", !0),
|
|
3448
|
-
ya.value.length && !k.value.isStacked ? (u(), r("g",
|
|
3451
|
+
ya.value.length && !k.value.isStacked ? (u(), r("g", zs, [
|
|
3449
3452
|
(u(!0), r(g, null, C(ya.value, (e) => (u(), r("g", {
|
|
3450
3453
|
key: e.uid
|
|
3451
3454
|
}, [
|
|
@@ -3460,7 +3463,7 @@ const an = {
|
|
|
3460
3463
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
3461
3464
|
"stroke-linecap": "round",
|
|
3462
3465
|
style: { animation: "none !important" }
|
|
3463
|
-
}, null, 8,
|
|
3466
|
+
}, null, 8, Ts)) : f("", !0),
|
|
3464
3467
|
e.yBottom && e.show && isFinite(e.yBottom) ? (u(), r("line", {
|
|
3465
3468
|
key: 1,
|
|
3466
3469
|
x1: e.x1,
|
|
@@ -3472,7 +3475,7 @@ const an = {
|
|
|
3472
3475
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
3473
3476
|
"stroke-linecap": "round",
|
|
3474
3477
|
style: { animation: "none !important" }
|
|
3475
|
-
}, null, 8,
|
|
3478
|
+
}, null, 8, Is)) : f("", !0),
|
|
3476
3479
|
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (u(), r("rect", {
|
|
3477
3480
|
key: 2,
|
|
3478
3481
|
y: Math.min(e.yTop, e.yBottom),
|
|
@@ -3481,7 +3484,7 @@ const an = {
|
|
|
3481
3484
|
height: v(V)(e.areaHeight, 0),
|
|
3482
3485
|
fill: v(et)(e.config.area.fill, e.config.area.opacity),
|
|
3483
3486
|
style: { animation: "none !important" }
|
|
3484
|
-
}, null, 8,
|
|
3487
|
+
}, null, 8, Ns)) : f("", !0),
|
|
3485
3488
|
e.config.label.text && e.show && isFinite(e._box.y) ? (u(), r("rect", Tl({
|
|
3486
3489
|
key: 3,
|
|
3487
3490
|
class: "vue-ui-xy-annotation-label-box"
|
|
@@ -3495,12 +3498,12 @@ const an = {
|
|
|
3495
3498
|
"font-size": e.config.label.fontSize,
|
|
3496
3499
|
fill: e.config.label.color,
|
|
3497
3500
|
"text-anchor": e.config.label.textAnchor
|
|
3498
|
-
}, le(e.config.label.text), 9,
|
|
3501
|
+
}, le(e.config.label.text), 9, Rs)) : f("", !0)
|
|
3499
3502
|
]))), 128))
|
|
3500
3503
|
])) : f("", !0),
|
|
3501
|
-
t.value.chart.timeTag.show && (![null, void 0].includes(_.value) || ![null, void 0].includes(F.value)) ? (u(), r("g",
|
|
3504
|
+
t.value.chart.timeTag.show && (![null, void 0].includes(_.value) || ![null, void 0].includes(F.value)) ? (u(), r("g", Ps, [
|
|
3502
3505
|
(u(), r("foreignObject", {
|
|
3503
|
-
x:
|
|
3506
|
+
x: po(),
|
|
3504
3507
|
y: c.value.bottom,
|
|
3505
3508
|
width: "200",
|
|
3506
3509
|
height: "40",
|
|
@@ -3508,28 +3511,28 @@ const an = {
|
|
|
3508
3511
|
}, [
|
|
3509
3512
|
p("div", {
|
|
3510
3513
|
ref_key: "timeTagEl",
|
|
3511
|
-
ref:
|
|
3514
|
+
ref: Ra,
|
|
3512
3515
|
class: "vue-ui-xy-time-tag",
|
|
3513
3516
|
style: L(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${t.value.chart.timeTag.backgroundColor};color:${t.value.chart.timeTag.color};font-size:${t.value.chart.timeTag.fontSize}px`),
|
|
3514
|
-
innerHTML:
|
|
3515
|
-
}, null, 12,
|
|
3516
|
-
], 8,
|
|
3517
|
+
innerHTML: yo.value
|
|
3518
|
+
}, null, 12, Fs)
|
|
3519
|
+
], 8, Os)),
|
|
3517
3520
|
p("circle", {
|
|
3518
3521
|
cx: c.value.left + c.value.width / I.value * ((_.value !== null ? _.value : 0) || (F.value !== null ? F.value : 0)) + c.value.width / I.value / 2,
|
|
3519
3522
|
cy: c.value.bottom,
|
|
3520
3523
|
r: t.value.chart.timeTag.circleMarker.radius,
|
|
3521
3524
|
fill: t.value.chart.timeTag.circleMarker.color
|
|
3522
|
-
}, null, 8,
|
|
3525
|
+
}, null, 8, Hs)
|
|
3523
3526
|
])) : f("", !0)
|
|
3524
3527
|
])) : f("", !0),
|
|
3525
3528
|
wt.value ? (u(), r("rect", Tl({ key: 2 }, ve.value, {
|
|
3526
3529
|
"data-start": y.value.start,
|
|
3527
3530
|
"data-end": y.value.end
|
|
3528
|
-
}), null, 16,
|
|
3531
|
+
}), null, 16, Vs)) : f("", !0),
|
|
3529
3532
|
J(l.$slots, "svg", { svg: ut.value }, void 0, !0)
|
|
3530
3533
|
], 512)
|
|
3531
|
-
], 46,
|
|
3532
|
-
l.$slots.watermark ? (u(), r("div",
|
|
3534
|
+
], 46, Cn)),
|
|
3535
|
+
l.$slots.watermark ? (u(), r("div", Bs, [
|
|
3533
3536
|
J(l.$slots, "watermark", Ct(At({ isPrinting: v(m) || v(h) })), void 0, !0)
|
|
3534
3537
|
])) : f("", !0),
|
|
3535
3538
|
(u(!0), r(g, null, C(Te.value, (e, n) => (u(), r(g, {
|
|
@@ -3569,12 +3572,12 @@ const an = {
|
|
|
3569
3572
|
opacity: 1
|
|
3570
3573
|
})
|
|
3571
3574
|
}, [
|
|
3572
|
-
(u(), r("svg",
|
|
3575
|
+
(u(), r("svg", Es, [
|
|
3573
3576
|
p("path", {
|
|
3574
3577
|
d: "M 0,10 10,0 10,20 Z",
|
|
3575
3578
|
fill: e.color,
|
|
3576
3579
|
stroke: "none"
|
|
3577
|
-
}, null, 8,
|
|
3580
|
+
}, null, 8, Ws)
|
|
3578
3581
|
])),
|
|
3579
3582
|
p("div", {
|
|
3580
3583
|
class: "vue-ui-xy-tag-content",
|
|
@@ -3588,7 +3591,7 @@ const an = {
|
|
|
3588
3591
|
serieName: e.name
|
|
3589
3592
|
}
|
|
3590
3593
|
)
|
|
3591
|
-
}, null, 8,
|
|
3594
|
+
}, null, 8, Ds)
|
|
3592
3595
|
], 4)) : f("", !0),
|
|
3593
3596
|
[F.value, _.value, mt.value].includes(i) && e.useTag && e.useTag === "start" && t.value.line.tag.followValue ? (u(), r("div", {
|
|
3594
3597
|
key: 1,
|
|
@@ -3621,12 +3624,12 @@ const an = {
|
|
|
3621
3624
|
opacity: 1
|
|
3622
3625
|
})
|
|
3623
3626
|
}, [
|
|
3624
|
-
(u(), r("svg",
|
|
3627
|
+
(u(), r("svg", Xs, [
|
|
3625
3628
|
p("path", {
|
|
3626
3629
|
d: "M 0,0 10,10 0,20 Z",
|
|
3627
3630
|
fill: e.color,
|
|
3628
3631
|
stroke: "none"
|
|
3629
|
-
}, null, 8,
|
|
3632
|
+
}, null, 8, Ys)
|
|
3630
3633
|
])),
|
|
3631
3634
|
p("div", {
|
|
3632
3635
|
class: "vue-ui-xy-tag-content",
|
|
@@ -3640,7 +3643,7 @@ const an = {
|
|
|
3640
3643
|
serieName: e.name
|
|
3641
3644
|
}
|
|
3642
3645
|
)
|
|
3643
|
-
}, null, 8,
|
|
3646
|
+
}, null, 8, Gs)
|
|
3644
3647
|
], 4)) : f("", !0)
|
|
3645
3648
|
], 64))), 128))
|
|
3646
3649
|
], 64))), 128)),
|
|
@@ -3681,12 +3684,12 @@ const an = {
|
|
|
3681
3684
|
opacity: 1
|
|
3682
3685
|
})
|
|
3683
3686
|
}, [
|
|
3684
|
-
(u(), r("svg",
|
|
3687
|
+
(u(), r("svg", Us, [
|
|
3685
3688
|
p("path", {
|
|
3686
3689
|
d: "M 0,10 10,0 10,20 Z",
|
|
3687
3690
|
fill: e.color,
|
|
3688
3691
|
stroke: "none"
|
|
3689
|
-
}, null, 8,
|
|
3692
|
+
}, null, 8, qs)
|
|
3690
3693
|
])),
|
|
3691
3694
|
p("div", {
|
|
3692
3695
|
class: "vue-ui-xy-tag-content",
|
|
@@ -3700,7 +3703,7 @@ const an = {
|
|
|
3700
3703
|
serieName: e.name
|
|
3701
3704
|
}
|
|
3702
3705
|
)
|
|
3703
|
-
}, null, 8,
|
|
3706
|
+
}, null, 8, Zs)
|
|
3704
3707
|
], 4)) : f("", !0),
|
|
3705
3708
|
[F.value, _.value, mt.value].includes(i) && e.useTag && e.useTag === "start" && t.value.plot.tag.followValue ? (u(), r("div", {
|
|
3706
3709
|
key: 1,
|
|
@@ -3733,12 +3736,12 @@ const an = {
|
|
|
3733
3736
|
opacity: 1
|
|
3734
3737
|
})
|
|
3735
3738
|
}, [
|
|
3736
|
-
(u(), r("svg",
|
|
3739
|
+
(u(), r("svg", Ks, [
|
|
3737
3740
|
p("path", {
|
|
3738
3741
|
d: "M 0,0 10,10 0,20 Z",
|
|
3739
3742
|
fill: e.color,
|
|
3740
3743
|
stroke: "none"
|
|
3741
|
-
}, null, 8,
|
|
3744
|
+
}, null, 8, Js)
|
|
3742
3745
|
])),
|
|
3743
3746
|
p("div", {
|
|
3744
3747
|
class: "vue-ui-xy-tag-content",
|
|
@@ -3752,12 +3755,12 @@ const an = {
|
|
|
3752
3755
|
serieName: e.name
|
|
3753
3756
|
}
|
|
3754
3757
|
)
|
|
3755
|
-
}, null, 8,
|
|
3758
|
+
}, null, 8, Qs)
|
|
3756
3759
|
], 4)) : f("", !0)
|
|
3757
3760
|
], 64))), 128))
|
|
3758
3761
|
], 64))), 128)),
|
|
3759
3762
|
t.value.chart.zoom.preview.enable ? (u(), r(g, { key: 5 }, [
|
|
3760
|
-
t.value.chart.zoom.show && $e.value > 6 && it.value ? (u(), Ge(
|
|
3763
|
+
t.value.chart.zoom.show && $e.value > 6 && it.value ? (u(), Ge($n, {
|
|
3761
3764
|
ref_key: "chartSlicer",
|
|
3762
3765
|
ref: Ne,
|
|
3763
3766
|
key: `slicer_${Zt.value}`,
|
|
@@ -3808,7 +3811,7 @@ const an = {
|
|
|
3808
3811
|
_: 3
|
|
3809
3812
|
}, 8, ["max", "valueStart", "valueEnd", "start", "end", "selectedSeries", "customFormat", "background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "usePreciseLabels", "preciseLabels", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "timeLabels", "isPreview"])) : f("", !0)
|
|
3810
3813
|
], 64)) : (u(), r(g, { key: 6 }, [
|
|
3811
|
-
t.value.chart.zoom.show && $e.value > 6 && it.value ? (u(), Ge(
|
|
3814
|
+
t.value.chart.zoom.show && $e.value > 6 && it.value ? (u(), Ge(ln, {
|
|
3812
3815
|
ref_key: "chartSlicer",
|
|
3813
3816
|
ref: Ne,
|
|
3814
3817
|
key: `slicer_${Zt.value}`,
|
|
@@ -3853,8 +3856,8 @@ const an = {
|
|
|
3853
3856
|
], 64)),
|
|
3854
3857
|
p("div", {
|
|
3855
3858
|
id: `legend-bottom-${G.value}`
|
|
3856
|
-
}, null, 8,
|
|
3857
|
-
Ke.value ? (u(), Ge(
|
|
3859
|
+
}, null, 8, js),
|
|
3860
|
+
Ke.value ? (u(), Ge(Co, {
|
|
3858
3861
|
key: 7,
|
|
3859
3862
|
to: t.value.chart.legend.position === "top" ? `#legend-top-${G.value}` : `#legend-bottom-${G.value}`
|
|
3860
3863
|
}, [
|
|
@@ -3870,7 +3873,7 @@ const an = {
|
|
|
3870
3873
|
onClick: (a) => ga(e),
|
|
3871
3874
|
class: Ve({ "vue-ui-xy-legend-item-alone": rt.value.length === 1, "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": ce.value.includes(e.id) })
|
|
3872
3875
|
}, [
|
|
3873
|
-
oe.value[e.type] === "line" ? (u(), r("svg",
|
|
3876
|
+
oe.value[e.type] === "line" ? (u(), r("svg", ti, [
|
|
3874
3877
|
p("rect", {
|
|
3875
3878
|
x: "0",
|
|
3876
3879
|
y: "7.5",
|
|
@@ -3880,7 +3883,7 @@ const an = {
|
|
|
3880
3883
|
height: "3",
|
|
3881
3884
|
width: "20",
|
|
3882
3885
|
fill: e.color
|
|
3883
|
-
}, null, 8,
|
|
3886
|
+
}, null, 8, li),
|
|
3884
3887
|
al(Rl, {
|
|
3885
3888
|
plot: { x: 10, y: 9 },
|
|
3886
3889
|
radius: 4,
|
|
@@ -3889,7 +3892,7 @@ const an = {
|
|
|
3889
3892
|
stroke: t.value.chart.backgroundColor,
|
|
3890
3893
|
strokeWidth: 0.5
|
|
3891
3894
|
}, null, 8, ["color", "shape", "stroke"])
|
|
3892
|
-
])) : oe.value[e.type] === "bar" ? (u(), r("svg",
|
|
3895
|
+
])) : oe.value[e.type] === "bar" ? (u(), r("svg", ai, [
|
|
3893
3896
|
oe.value[e.type] === "bar" && l.$slots.pattern ? (u(), r("rect", {
|
|
3894
3897
|
key: 0,
|
|
3895
3898
|
x: "0",
|
|
@@ -3899,7 +3902,7 @@ const an = {
|
|
|
3899
3902
|
width: "40",
|
|
3900
3903
|
stroke: "none",
|
|
3901
3904
|
fill: e.color
|
|
3902
|
-
}, null, 8,
|
|
3905
|
+
}, null, 8, oi)) : f("", !0),
|
|
3903
3906
|
oe.value[e.type] === "bar" ? (u(), r("rect", {
|
|
3904
3907
|
key: 1,
|
|
3905
3908
|
x: "0",
|
|
@@ -3909,8 +3912,8 @@ const an = {
|
|
|
3909
3912
|
width: "40",
|
|
3910
3913
|
stroke: "none",
|
|
3911
3914
|
fill: l.$slots.pattern ? `url(#pattern_${G.value}_${e.slotAbsoluteIndex})` : e.color
|
|
3912
|
-
}, null, 8,
|
|
3913
|
-
])) : (u(), r("svg",
|
|
3915
|
+
}, null, 8, ni)) : f("", !0)
|
|
3916
|
+
])) : (u(), r("svg", ui, [
|
|
3914
3917
|
al(Rl, {
|
|
3915
3918
|
plot: { x: 6, y: 6 },
|
|
3916
3919
|
radius: 5,
|
|
@@ -3921,7 +3924,7 @@ const an = {
|
|
|
3921
3924
|
p("span", {
|
|
3922
3925
|
style: L(`color:${t.value.chart.legend.color}`)
|
|
3923
3926
|
}, le(e.name), 5)
|
|
3924
|
-
], 10,
|
|
3927
|
+
], 10, ei))), 128))
|
|
3925
3928
|
], 4)) : (u(), r("div", {
|
|
3926
3929
|
key: 1,
|
|
3927
3930
|
ref_key: "chartLegend",
|
|
@@ -3950,7 +3953,7 @@ const an = {
|
|
|
3950
3953
|
position: t.value.chart.tooltip.position,
|
|
3951
3954
|
offsetY: t.value.chart.tooltip.offsetY,
|
|
3952
3955
|
parent: l.$refs.chart,
|
|
3953
|
-
content:
|
|
3956
|
+
content: go.value,
|
|
3954
3957
|
isFullscreen: ye.value,
|
|
3955
3958
|
isCustom: t.value.chart.tooltip.customFormat && typeof t.value.chart.tooltip.customFormat == "function",
|
|
3956
3959
|
smooth: t.value.chart.tooltip.smooth,
|
|
@@ -3984,12 +3987,12 @@ const an = {
|
|
|
3984
3987
|
p("div", {
|
|
3985
3988
|
style: L(`${v(m) ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
3986
3989
|
}, [
|
|
3987
|
-
p("div",
|
|
3990
|
+
p("div", si, [
|
|
3988
3991
|
Ql(p("input", {
|
|
3989
3992
|
type: "checkbox",
|
|
3990
3993
|
"onUpdate:modelValue": s[7] || (s[7] = (e) => kt.value = e)
|
|
3991
3994
|
}, null, 512), [
|
|
3992
|
-
[
|
|
3995
|
+
[Ao, kt.value]
|
|
3993
3996
|
]),
|
|
3994
3997
|
p("div", {
|
|
3995
3998
|
onClick: s[8] || (s[8] = (e) => kt.value = !kt.value),
|
|
@@ -4004,8 +4007,8 @@ const an = {
|
|
|
4004
4007
|
]),
|
|
4005
4008
|
kt.value ? (u(), Ge(v(ul), {
|
|
4006
4009
|
key: `sparkline_${Ot.value}`,
|
|
4007
|
-
dataset:
|
|
4008
|
-
config:
|
|
4010
|
+
dataset: ho.value,
|
|
4011
|
+
config: fo.value
|
|
4009
4012
|
}, null, 8, ["dataset", "config"])) : (u(), Ge(v(Be), {
|
|
4010
4013
|
key: `table_${cl.value}`,
|
|
4011
4014
|
colNames: Al.value.colNames,
|
|
@@ -4016,10 +4019,10 @@ const an = {
|
|
|
4016
4019
|
onClose: s[9] || (s[9] = (e) => k.value.showTable = !1)
|
|
4017
4020
|
}, {
|
|
4018
4021
|
th: xe(({ th: e }) => [
|
|
4019
|
-
p("div", { innerHTML: e }, null, 8,
|
|
4022
|
+
p("div", { innerHTML: e }, null, 8, ii)
|
|
4020
4023
|
]),
|
|
4021
4024
|
td: xe(({ td: e }) => [
|
|
4022
|
-
|
|
4025
|
+
zo(le(isNaN(Number(e)) ? e : v(Ue)({
|
|
4023
4026
|
p: t.value.chart.labels.prefix,
|
|
4024
4027
|
v: e,
|
|
4025
4028
|
s: t.value.chart.labels.suffix,
|
|
@@ -4032,10 +4035,10 @@ const an = {
|
|
|
4032
4035
|
]),
|
|
4033
4036
|
_: 1
|
|
4034
4037
|
}, 8, ["config"])) : f("", !0),
|
|
4035
|
-
v(ne) ? (u(), Ge(
|
|
4036
|
-
], 46,
|
|
4038
|
+
v(ne) ? (u(), Ge(Ko, { key: 10 })) : f("", !0)
|
|
4039
|
+
], 46, Ln));
|
|
4037
4040
|
}
|
|
4038
|
-
},
|
|
4041
|
+
}, _i = /* @__PURE__ */ Ua(ri, [["__scopeId", "data-v-83ca84ad"]]);
|
|
4039
4042
|
export {
|
|
4040
|
-
|
|
4043
|
+
_i as default
|
|
4041
4044
|
};
|