vue-data-ui 3.16.0 → 3.16.1
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/ColorPicker-B0mV4xzu.js +255 -0
- package/dist/{NonSvgPenAndPaper-vqweC0WU.js → NonSvgPenAndPaper-VyJFyJ6X.js} +1 -1
- package/dist/{PackageVersion-IIGK_e2C.js → PackageVersion-DPO-OOVI.js} +1 -1
- package/dist/{PenAndPaper-DARlvvKW.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
- package/dist/{UserOptions-DWHf8jyO.js → UserOptions-rW2fRf3V.js} +2 -2
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{vue-data-ui-CykQ4SW2.js → vue-data-ui-DXGkXRnC.js} +63 -63
- package/dist/vue-data-ui.js +63 -63
- package/dist/{vue-ui-3d-bar-D5KRiVmZ.js → vue-ui-3d-bar-BaFpQnd5.js} +1 -1
- package/dist/{vue-ui-age-pyramid-QfZ1J5Xx.js → vue-ui-age-pyramid-CRM498Pc.js} +342 -341
- package/dist/{vue-ui-annotator-CpSMITlP.js → vue-ui-annotator-CkPi9moo.js} +1 -1
- package/dist/{vue-ui-bullet-B-mo7tzz.js → vue-ui-bullet-BBiwof3c.js} +1 -1
- package/dist/{vue-ui-bump-NfZcJ9Q0.js → vue-ui-bump-Brxpu4xV.js} +1 -1
- package/dist/{vue-ui-candlestick-CGU-0rrF.js → vue-ui-candlestick-DAnZv77-.js} +240 -239
- package/dist/{vue-ui-carousel-table-BsdD3wU7.js → vue-ui-carousel-table-BHRZBYY0.js} +1 -1
- package/dist/{vue-ui-chestnut-JpoNeiHD.js → vue-ui-chestnut-CbrYnRgm.js} +1 -1
- package/dist/{vue-ui-chord-CxhxjRQz.js → vue-ui-chord-CaX_IUVs.js} +1 -1
- package/dist/{vue-ui-circle-pack-DbxOzzk2.js → vue-ui-circle-pack-CR3h53sc.js} +1 -1
- package/dist/{vue-ui-cursor-CZGKKkeT.js → vue-ui-cursor-Cjfazw7Z.js} +1 -1
- package/dist/{vue-ui-dag-gal2eIv-.js → vue-ui-dag-B9vH3c66.js} +1 -1
- package/dist/{vue-ui-dashboard-ClnkPMc5.js → vue-ui-dashboard-DWll05qs.js} +62 -62
- package/dist/{vue-ui-digits-DColgbmH.js → vue-ui-digits-DcM67rMx.js} +1 -1
- package/dist/{vue-ui-donut-Bckj-DX2.js → vue-ui-donut-Be5G38P5.js} +395 -394
- package/dist/{vue-ui-donut-evolution-B6HtvZVs.js → vue-ui-donut-evolution-BLSesj3c.js} +265 -264
- package/dist/{vue-ui-dumbbell-r3Jv9uut.js → vue-ui-dumbbell-DIMiCY4r.js} +1 -1
- package/dist/{vue-ui-flow-BxfLqYXa.js → vue-ui-flow-zvZylhgr.js} +1 -1
- package/dist/{vue-ui-funnel-B6Gevxqh.js → vue-ui-funnel-CSri-oWm.js} +1 -1
- package/dist/{vue-ui-galaxy-BJr1ddJZ.js → vue-ui-galaxy-CGykxsAI.js} +1 -1
- package/dist/{vue-ui-gauge-Q-Slhgwx.js → vue-ui-gauge-D1MNB9Jq.js} +1 -1
- package/dist/{vue-ui-geo-Dow4oyTv.js → vue-ui-geo-DdJDGhG2.js} +1 -1
- package/dist/{vue-ui-gizmo-zpVjAoDG.js → vue-ui-gizmo-BZYRHGFm.js} +1 -1
- package/dist/{vue-ui-heatmap-mKX5Bzql.js → vue-ui-heatmap-CryOx6XK.js} +494 -482
- package/dist/{vue-ui-history-plot-D6kiRkhD.js → vue-ui-history-plot-C85iw9Kl.js} +1 -1
- package/dist/{vue-ui-horizontal-bar-FKkR13e7.js → vue-ui-horizontal-bar-BoBZOybC.js} +430 -429
- package/dist/{vue-ui-kpi-CMRe29m5.js → vue-ui-kpi-DHrolXw6.js} +1 -1
- package/dist/{vue-ui-molecule-7eT7D17p.js → vue-ui-molecule-DJ_BQ4DK.js} +1 -1
- package/dist/{vue-ui-mood-radar-DsC0X_C2.js → vue-ui-mood-radar-CBE02TpQ.js} +1 -1
- package/dist/{vue-ui-nested-donuts-FbiXKFZX.js → vue-ui-nested-donuts-YTFtb4CL.js} +284 -283
- package/dist/{vue-ui-onion-CjWiTq2x.js → vue-ui-onion-B9l81-PS.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-kl1jgKIX.js → vue-ui-parallel-coordinate-plot-C1e_rs8J.js} +1 -1
- package/dist/{vue-ui-quadrant-CyalzEfW.js → vue-ui-quadrant-C1qsLCRn.js} +556 -555
- package/dist/{vue-ui-quick-chart-DgWwf7SJ.js → vue-ui-quick-chart-DFoz3WiA.js} +360 -359
- package/dist/{vue-ui-radar-Bw9veQKf.js → vue-ui-radar-Cmo3p-UA.js} +1 -1
- package/dist/{vue-ui-relation-circle-D4-9g-5t.js → vue-ui-relation-circle-BqwznVwf.js} +1 -1
- package/dist/{vue-ui-ridgeline-BZy69VT6.js → vue-ui-ridgeline-CDk9eXJq.js} +1 -1
- package/dist/{vue-ui-rings-LDs6OFnx.js → vue-ui-rings-BRkGoQdL.js} +1 -1
- package/dist/{vue-ui-scatter-i_hakuFa.js → vue-ui-scatter-BxDtWASQ.js} +479 -466
- package/dist/{vue-ui-skeleton-F2qaXsQ2.js → vue-ui-skeleton-D6kTb9aO.js} +1 -1
- package/dist/{vue-ui-spark-trend-ZIMooBi3.js → vue-ui-spark-trend-D8Mf2A1w.js} +1 -1
- package/dist/{vue-ui-sparkbar-BYRKG_Mm.js → vue-ui-sparkbar-BbYj56c3.js} +1 -1
- package/dist/{vue-ui-sparkgauge-BM0mnDHp.js → vue-ui-sparkgauge-DXzOSLRb.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-z4-7Q6J8.js → vue-ui-sparkhistogram-DMfSx1iH.js} +1 -1
- package/dist/{vue-ui-sparkline-9m1__jVp.js → vue-ui-sparkline-D-rQ9PsC.js} +439 -438
- package/dist/{vue-ui-sparkstackbar-uM98VUDw.js → vue-ui-sparkstackbar-DK5n8IKP.js} +1 -1
- package/dist/{vue-ui-stackbar-DcSJuwTC.js → vue-ui-stackbar-BHthy6jf.js} +212 -211
- package/dist/{vue-ui-stackline-Dl_FfJAO.js → vue-ui-stackline-C6-WNpKD.js} +363 -362
- package/dist/{vue-ui-strip-plot-CcV8bOkg.js → vue-ui-strip-plot-CHu-1ilI.js} +1 -1
- package/dist/{vue-ui-table-Dx-N-eF1.js → vue-ui-table-DW9JGsLq.js} +2 -2
- package/dist/{vue-ui-table-heatmap-CVxNZzGe.js → vue-ui-table-heatmap-LYqoBit9.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DdtbqaUL.js → vue-ui-table-sparkline-CXK1dFr-.js} +1 -1
- package/dist/{vue-ui-thermometer-Clwz-wUE.js → vue-ui-thermometer-BN8tflOz.js} +1 -1
- package/dist/{vue-ui-timer-BYVk_bvz.js → vue-ui-timer-DGT0UBOF.js} +1 -1
- package/dist/{vue-ui-tiremarks-D5TSv5yw.js → vue-ui-tiremarks-BZ-osQqY.js} +1 -1
- package/dist/{vue-ui-treemap-C0zhPMxE.js → vue-ui-treemap-98KaVRyd.js} +388 -387
- package/dist/{vue-ui-waffle-BtjLPkLm.js → vue-ui-waffle-Cb7oJnIc.js} +1 -1
- package/dist/{vue-ui-wheel-DSlnowV4.js → vue-ui-wheel-sfew1fjw.js} +1 -1
- package/dist/{vue-ui-word-cloud-DFdiRCqc.js → vue-ui-word-cloud-vq1t9JHr.js} +1 -1
- package/dist/{vue-ui-world-CymT7_Ep.js → vue-ui-world-CN0f6elD.js} +1 -1
- package/dist/{vue-ui-xy-B9Q4FR0g.js → vue-ui-xy-BdzEiImZ.js} +956 -955
- package/dist/{vue-ui-xy-canvas-CrnBxoa0.js → vue-ui-xy-canvas-CWQzUQzY.js} +113 -113
- package/package.json +1 -1
- package/dist/ColorPicker-DQ5sdRrl.js +0 -244
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineAsyncComponent as Re, useSlots as Nu, getCurrentInstance as Fu, ref as g, shallowRef as Vu, computed as b, onMounted as It, toRefs as Bu, watch as
|
|
2
|
-
import { j as
|
|
1
|
+
import { defineAsyncComponent as Re, useSlots as Nu, getCurrentInstance as Fu, ref as g, shallowRef as Vu, computed as b, onMounted as It, toRefs as Bu, watch as vt, watchEffect as sl, nextTick as Pt, onBeforeUnmount as Il, openBlock as i, createElementBlock as r, normalizeStyle as w, normalizeClass as Je, createElementVNode as y, toDisplayString as ue, createBlock as _e, createCommentVNode as h, unref as v, withCtx as X, renderSlot as F, normalizeProps as ge, guardReactiveProps as be, createSlots as lo, createVNode as dt, Fragment as d, renderList as k, mergeProps as Qe, Teleport as Ru, resolveDynamicComponent as Hu, withDirectives as Du, vModelCheckbox as Wu, createTextVNode as ao } from "vue";
|
|
2
|
+
import { j as Pl, q as Ol, t as oo, n as Eu, D as uo, E as so, s as Nl, p as Fl, F as nl, G as W, H as Vl, I as Yu, J as Xu, K as O, L as no, c as io, M as ro, b as co, N as Gu, O as qu, P as Uu, Q as vo, R as ho, k as ve, S as Zu, T as fo, U as Ku, z as mo, A as Ie, l as Pe, v as je, u as Ce, V as Ju, a as Qu, W as He, d as il, Y as Se, Z as ju, _ as De, $ as Ot, m as es, o as go, a0 as ts, a1 as ls, a2 as ht, a3 as as } from "./lib-DBptbyyI.js";
|
|
3
3
|
import { u as bo, a as po, b as os } from "./useTimeLabels-C-A2uZKi.js";
|
|
4
4
|
import { u as us } from "./useConfig-DO94Aj5s.js";
|
|
5
5
|
import { u as ss } from "./usePrinter-CEpYU3r5.js";
|
|
@@ -12,13 +12,13 @@ import { u as ds } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
|
12
12
|
import hs from "./img-LXxMLmCg.js";
|
|
13
13
|
import fs from "./Title-BeMKE1cj.js";
|
|
14
14
|
import ms from "./vue_ui_xy-esktmpg-.js";
|
|
15
|
-
import { _ as
|
|
15
|
+
import { _ as rl } from "./Shape-BKRUOeKk.js";
|
|
16
16
|
import { S as gs } from "./SlicerPreview-DTjwV0iY.js";
|
|
17
17
|
import bs from "./vue-ui-accordion-nvggWcGN.js";
|
|
18
18
|
import { B as ps } from "./BaseLegendToggle-BQVIawmA.js";
|
|
19
19
|
import { A as ys } from "./A11yDataTable-KcVAX2cP.js";
|
|
20
20
|
import { _ as xs } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
21
|
-
const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative" } }, $s = ["viewBox", "aria-label", "aria-describedby"], Ls = ["x", "y", "width", "height"], Ms = { key: 1 }, As = { class: "vue-ui-xy-grid" }, Cs = ["stroke", "x1", "x2", "y1", "y2"], Ts = ["stroke", "x1", "x2", "y1", "y2"], zs = { key: 1 }, Is = ["x1", "x2", "y1", "y2", "stroke"], Ps = ["x1", "x2", "y1", "y2", "stroke"], Os = ["x1", "x2", "y1", "y2", "stroke"], Ns = { key: 3 }, Fs = ["d", "stroke"], Vs = { key: 4 }, Bs = ["d", "stroke"], Rs = ["id"], Hs = ["stop-color"], Ds = ["stop-color"], Ws = ["stop-color"], Es = ["id"], Ys = ["stop-color"], Xs = ["stop-color"], Gs = ["stop-color"], qs = ["id"], Us = ["stop-color"], Zs = ["stop-color"], Ks = ["id"], Js = ["stop-color"], Qs = ["stop-color"], js = ["id"], en = ["stop-color"], tn = ["stop-color"],
|
|
21
|
+
const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative" } }, $s = ["viewBox", "aria-label", "aria-describedby"], Ls = ["x", "y", "width", "height"], Ms = { key: 1 }, As = { class: "vue-ui-xy-grid" }, Cs = ["stroke", "x1", "x2", "y1", "y2"], Ts = ["stroke", "x1", "x2", "y1", "y2"], zs = { key: 1 }, Is = ["x1", "x2", "y1", "y2", "stroke"], Ps = ["x1", "x2", "y1", "y2", "stroke"], Os = ["x1", "x2", "y1", "y2", "stroke"], Ns = { key: 3 }, Fs = ["d", "stroke"], Vs = { key: 4 }, Bs = ["d", "stroke"], Rs = ["id"], Hs = ["stop-color"], Ds = ["stop-color"], Ws = ["stop-color"], Es = ["id"], Ys = ["stop-color"], Xs = ["stop-color"], Gs = ["stop-color"], qs = ["id"], Us = ["stop-color"], Zs = ["stop-color"], Ks = ["id"], Js = ["stop-color"], Qs = ["stop-color"], js = ["id"], en = ["stop-color"], tn = ["stop-color"], ln = { key: 0 }, an = ["id"], on = ["stop-color", "offset"], un = ["x", "y", "height", "width", "fill"], sn = ["x", "y", "width"], nn = { key: 0 }, rn = ["x", "y", "height", "width", "fill"], cn = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], vn = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], dn = ["width", "x", "y"], hn = ["stroke", "x1", "x2", "y1", "y2"], fn = { key: 3 }, mn = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], gn = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], bn = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], pn = ["fill", "font-size", "transform"], yn = ["x1", "x2", "y1", "y2", "stroke"], xn = ["x", "y", "font-size", "fill"], kn = ["x1", "x2", "y1", "y2", "stroke"], _n = ["x", "y", "font-size", "fill"], wn = ["width", "x", "y"], Sn = { style: { width: "100%" } }, $n = ["d", "stroke", "stroke-width", "stroke-dasharray"], Ln = ["d", "stroke", "stroke-width", "stroke-dasharray"], Mn = { key: 6 }, An = { key: 7 }, Cn = ["d", "fill", "fill-opacity"], Tn = { key: 0 }, zn = ["d", "fill"], In = ["d", "fill"], Pn = ["d", "fill"], On = ["d", "fill"], Nn = ["d", "stroke", "stroke-width", "stroke-dasharray"], Fn = ["d", "stroke", "stroke-width", "stroke-dasharray"], Vn = ["d", "stroke", "stroke-width", "stroke-dasharray"], Bn = ["d", "stroke", "stroke-width", "stroke-dasharray"], Rn = ["width", "x", "y"], Hn = { style: { width: "100%" } }, Dn = { key: 8 }, Wn = ["x", "y", "font-size", "fill"], En = ["x", "y", "font-size", "fill", "font-weight"], Yn = { key: 9 }, Xn = ["x", "y", "font-size", "fill"], Gn = { key: 10 }, qn = ["x", "y"], Un = ["innerHTML"], Zn = ["x", "y"], Kn = ["innerHTML"], Jn = ["x1", "x2", "y1", "y2", "stroke"], Qn = { key: 11 }, jn = ["x", "y", "font-size", "fill"], ei = { key: 12 }, ti = ["x", "y"], li = ["innerHTML"], ai = ["x", "y"], oi = ["innerHTML"], ui = ["x1", "x2", "y1", "y2", "stroke"], si = ["x", "y", "font-size", "fill", "innerHTML"], ni = ["x", "y", "font-size", "fill", "innerHTML"], ii = ["x", "y", "font-size", "fill", "innerHTML"], ri = ["x", "y", "font-size", "fill", "innerHTML"], ci = { key: 0 }, vi = ["id"], di = ["fill", "stroke"], hi = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], fi = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], mi = ["x", "y", "font-size", "fill", "stroke"], gi = ["id"], bi = ["stop-color"], pi = ["stop-color"], yi = ["x", "y", "width", "height", "fill", "onMouseenter"], xi = ["font-size", "fill", "transform"], ki = ["x", "y", "font-size", "fill"], _i = ["text-anchor", "font-size", "fill", "transform", "onClick"], wi = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], Si = { key: 15 }, $i = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Li = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Mi = ["y", "x", "width", "height", "fill"], Ai = ["id", "x", "y", "font-size", "fill", "text-anchor"], Ci = {
|
|
22
22
|
key: 16,
|
|
23
23
|
style: { "pointer-events": "none" }
|
|
24
24
|
}, Ti = ["x", "y"], zi = ["innerHTML"], Ii = ["cx", "cy", "r", "fill"], Pi = ["data-start", "data-end"], Oi = {
|
|
@@ -67,10 +67,10 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
67
67
|
height: "1em",
|
|
68
68
|
width: "1em",
|
|
69
69
|
"aria-hidden": "true"
|
|
70
|
-
},
|
|
70
|
+
}, lr = {
|
|
71
71
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
72
72
|
"data-dom-to-png-ignore": ""
|
|
73
|
-
},
|
|
73
|
+
}, ar = ["innerHTML"], or = {
|
|
74
74
|
__name: "vue-ui-xy",
|
|
75
75
|
props: {
|
|
76
76
|
config: {
|
|
@@ -91,9 +91,9 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
emits: ["selectTimeLabel", "selectX", "selectLegend", "zoomStart", "zoomEnd", "zoomReset", "copyAlt"],
|
|
94
|
-
setup(
|
|
95
|
-
const T =
|
|
96
|
-
elementRef:
|
|
94
|
+
setup(cl, { expose: yo, emit: xo }) {
|
|
95
|
+
const T = cl, ko = Re(() => import("./DataTable-DT2kIdQ6.js")), _o = Re(() => import("./Tooltip-Bf-kM3_A.js")), wo = Re(() => import("./UserOptions-rW2fRf3V.js")), Bl = Re(() => import("./BaseIcon-Cb3zzG6s.js")), So = Re(() => import("./vue-ui-table-sparkline-CXK1dFr-.js")), $o = Re(() => import("./PackageVersion-DPO-OOVI.js")), Lo = Re(() => import("./PenAndPaper-Ct3qJ4lA.js")), Mo = Re(() => import("./BaseDraggableDialog-CIb-iD9g.js")), We = xo, Rl = Nu(), Ao = Fu(), { vue_ui_xy: ft } = us(), { isThemeValid: Co, warnInvalidTheme: To } = cs(), $e = g(null), mt = g(null), Te = g(null), et = g(null), gt = g(null), bt = g(null), zo = g(null), vl = g(null), dl = g(null), Ft = g(null), hl = g(null), fl = g(null), Ne = g(null), ml = g(null), Io = g(0), C = g(null), Hl = g(!0), de = g(600), ee = g(1e3), Vt = g("0 0 1000 600"), Po = g({ x: 0, y: 0 }), pt = g({ line: "line", bar: "bar", plot: "plot" }), tt = g(!1), Ee = g(!1), Dl = g(!1), Ye = g(null), G = g([]), z = g(Pl()), Wl = g(0), El = g(0), Yl = g(0), yt = g(!0), gl = g(0), P = g(null), Xl = g(!1), bl = g(!0), Bt = g(!0), ae = g(null), Oe = g({}), Rt = g(null), Gl = g(!1), lt = g(null), Ht = g(!1), Dt = g(!1), _ = g(null), at = g(null), ql = g({ x: 0, y: 0 }), Ul = Vu(null), Zl = g(!1), Kl = g(0), Jl = g(0), Ql = vs({
|
|
96
|
+
elementRef: Ul,
|
|
97
97
|
minimumWidth: 2,
|
|
98
98
|
minimumHeight: 2,
|
|
99
99
|
stableFramesRequired: 2,
|
|
@@ -102,110 +102,110 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
102
102
|
ot();
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
|
-
function
|
|
106
|
-
|
|
105
|
+
function xt() {
|
|
106
|
+
Ul.value = $e.value?.parentNode ?? null;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
return new Promise((
|
|
108
|
+
function jl() {
|
|
109
|
+
return new Promise((l) => {
|
|
110
110
|
requestAnimationFrame(() => {
|
|
111
|
-
requestAnimationFrame(
|
|
111
|
+
requestAnimationFrame(l);
|
|
112
112
|
});
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
115
|
async function ot() {
|
|
116
|
-
const
|
|
117
|
-
|
|
116
|
+
const l = ++Jl.value;
|
|
117
|
+
Zl.value = !1, await Pt(), await jl(), await jl(), l === Jl.value && (Kl.value += 1, Zl.value = !0);
|
|
118
118
|
}
|
|
119
119
|
const Oo = b(() => ({
|
|
120
120
|
height: de.value,
|
|
121
121
|
width: ee.value
|
|
122
122
|
}));
|
|
123
|
-
function
|
|
124
|
-
return Number.isFinite(
|
|
123
|
+
function ea(l) {
|
|
124
|
+
return Number.isFinite(l) ? Math.max(0, Math.floor(l)) : 0;
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
return Number.isFinite(
|
|
126
|
+
function pl(l, o, e = 0) {
|
|
127
|
+
return Number.isFinite(l) && Number.isFinite(o) && Math.abs(o) > 1e-9 ? l / o : e;
|
|
128
128
|
}
|
|
129
|
-
const
|
|
129
|
+
const ta = g(!1), x = g({
|
|
130
130
|
xAxis: 18,
|
|
131
131
|
yAxis: 12,
|
|
132
132
|
dataLabels: 20,
|
|
133
133
|
plotLabels: 10
|
|
134
134
|
}), Le = g({ plot: 3, line: 3 });
|
|
135
135
|
It(() => {
|
|
136
|
-
|
|
137
|
-
[null, void 0].includes(
|
|
136
|
+
Gl.value = !0, T.dataset.length && T.dataset.forEach((l, o) => {
|
|
137
|
+
[null, void 0].includes(l.series) && Ol({
|
|
138
138
|
componentName: "VueUiXy",
|
|
139
139
|
type: "datasetSerieAttribute",
|
|
140
140
|
property: "series (number[])",
|
|
141
141
|
index: o,
|
|
142
|
-
debug:
|
|
142
|
+
debug: kt.value
|
|
143
143
|
});
|
|
144
|
-
}),
|
|
144
|
+
}), xt(), Ql.start(), ot();
|
|
145
145
|
});
|
|
146
|
-
function
|
|
146
|
+
function yl() {
|
|
147
147
|
if (!Object.keys(T.config || {}).length)
|
|
148
|
-
return
|
|
149
|
-
const
|
|
148
|
+
return ft;
|
|
149
|
+
const l = Nt({
|
|
150
150
|
userConfig: T.config,
|
|
151
|
-
defaultConfig:
|
|
151
|
+
defaultConfig: ft
|
|
152
152
|
});
|
|
153
|
-
T.config && Ot(T.config, "chart.highlightArea") && (Array.isArray(T.config.chart.highlightArea) ?
|
|
154
|
-
defaultConfig:
|
|
155
|
-
userConfig:
|
|
156
|
-
})) :
|
|
157
|
-
defaultConfig:
|
|
158
|
-
userConfig:
|
|
159
|
-
})) :
|
|
160
|
-
defaultConfig:
|
|
153
|
+
T.config && Ot(T.config, "chart.highlightArea") && (Array.isArray(T.config.chart.highlightArea) ? l.chart.highlightArea = T.config.chart.highlightArea : l.chart.highlightArea = [T.config.chart.highlightArea]), T.config && Ot(T.config, "chart.annotations") && Array.isArray(T.config.chart.annotations) && T.config.chart.annotations.length ? l.chart.annotations = T.config.chart.annotations.map((a) => Nt({
|
|
154
|
+
defaultConfig: ft.chart.annotations[0],
|
|
155
|
+
userConfig: a
|
|
156
|
+
})) : l.chart.annotations = [], T.config && Ot(T.config, "chart.grid.position") && T.config.chart.grid.position === "start" && T.dataset.length && T.dataset.some((a) => a.type === "bar") && (l.chart.grid.position = "middle", Ot(T.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), T.config && Ot(T.config, "chart.highlightArea") && (Array.isArray(T.config.chart.highlightArea) ? l.chart.highlightArea = T.config.chart.highlightArea.map((a) => la({
|
|
157
|
+
defaultConfig: ft.chart.highlightArea,
|
|
158
|
+
userConfig: a
|
|
159
|
+
})) : l.chart.highlightArea = la({
|
|
160
|
+
defaultConfig: ft.chart.highlightArea,
|
|
161
161
|
userConfig: T.config.chart.highlightArea
|
|
162
162
|
}));
|
|
163
|
-
const o =
|
|
164
|
-
if (!o) return
|
|
165
|
-
if (!Co.value(
|
|
166
|
-
return To(
|
|
163
|
+
const o = l.theme;
|
|
164
|
+
if (!o) return l;
|
|
165
|
+
if (!Co.value(l))
|
|
166
|
+
return To(l), l;
|
|
167
167
|
const e = Nt({
|
|
168
168
|
userConfig: ms[o] || T.config,
|
|
169
|
-
defaultConfig:
|
|
169
|
+
defaultConfig: l
|
|
170
170
|
}), s = Nt({
|
|
171
171
|
userConfig: T.config,
|
|
172
172
|
defaultConfig: e
|
|
173
173
|
});
|
|
174
174
|
return {
|
|
175
175
|
...s,
|
|
176
|
-
customPalette: s.customPalette.length ? s.customPalette : es[o] ||
|
|
176
|
+
customPalette: s.customPalette.length ? s.customPalette : es[o] || Fl
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function la({ defaultConfig: l, userConfig: o }) {
|
|
180
180
|
return Nt({
|
|
181
|
-
defaultConfig:
|
|
181
|
+
defaultConfig: l,
|
|
182
182
|
userConfig: o
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
|
-
const
|
|
185
|
+
const xl = b({
|
|
186
186
|
get() {
|
|
187
187
|
return !!T.dataset && T.dataset.length;
|
|
188
188
|
},
|
|
189
|
-
set(
|
|
190
|
-
return
|
|
189
|
+
set(l) {
|
|
190
|
+
return l;
|
|
191
191
|
}
|
|
192
|
-
}), t = g(
|
|
192
|
+
}), t = g(yl()), Xe = b(() => t.value.chart.userOptions.useCursorPointer), f = g({
|
|
193
193
|
dataLabels: { show: !0 },
|
|
194
194
|
showTooltip: !0,
|
|
195
195
|
showTable: !1,
|
|
196
196
|
isStacked: !1,
|
|
197
197
|
useIndividualScale: !1
|
|
198
198
|
});
|
|
199
|
-
function
|
|
200
|
-
|
|
199
|
+
function kl() {
|
|
200
|
+
ta.value ? (f.value.showTooltip = t.value.chart.tooltip.show === !0, f.value.showTable = t.value.showTable === !0, f.value.isStacked = t.value.chart.grid.labels.yAxis.stacked, f.value.useIndividualScale == null && (f.value.useIndividualScale = t.value.chart.grid.labels.yAxis.useIndividualScale)) : (f.value = {
|
|
201
201
|
dataLabels: { show: !0 },
|
|
202
202
|
showTooltip: t.value.chart.tooltip.show === !0,
|
|
203
203
|
showTable: t.value.showTable === !0,
|
|
204
204
|
isStacked: t.value.chart.grid.labels.yAxis.stacked,
|
|
205
205
|
useIndividualScale: t.value.chart.grid.labels.yAxis.useIndividualScale
|
|
206
|
-
},
|
|
206
|
+
}, ta.value = !0);
|
|
207
207
|
}
|
|
208
|
-
const
|
|
208
|
+
const kt = b(() => !!t.value.debug), No = b(() => oo({
|
|
209
209
|
defaultConfig: {
|
|
210
210
|
useCssAnimation: !1,
|
|
211
211
|
showTable: !1,
|
|
@@ -278,7 +278,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
278
278
|
]), { loading: ne, FINAL_DATASET: pe, manualLoading: Wt } = ns({
|
|
279
279
|
...Bu(T),
|
|
280
280
|
FINAL_CONFIG: t,
|
|
281
|
-
prepareConfig:
|
|
281
|
+
prepareConfig: yl,
|
|
282
282
|
callback: () => {
|
|
283
283
|
Promise.resolve().then(async () => {
|
|
284
284
|
await Jt(), f.value.showTable = t.value.showTable;
|
|
@@ -290,37 +290,37 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
290
290
|
userConfig: No.value
|
|
291
291
|
})
|
|
292
292
|
});
|
|
293
|
-
function Vo(
|
|
293
|
+
function Vo(l) {
|
|
294
294
|
const o = /* @__PURE__ */ new WeakMap();
|
|
295
295
|
return (e, ...s) => {
|
|
296
|
-
let
|
|
296
|
+
let a = o.get(e);
|
|
297
297
|
const n = JSON.stringify(s);
|
|
298
|
-
if (
|
|
299
|
-
const u =
|
|
300
|
-
return
|
|
298
|
+
if (a && a.has(n)) return a.get(n);
|
|
299
|
+
const u = l(e, ...s);
|
|
300
|
+
return a || (a = /* @__PURE__ */ new Map(), o.set(e, a)), a.set(n, u), u;
|
|
301
301
|
};
|
|
302
302
|
}
|
|
303
|
-
const Bo = Vo((
|
|
304
|
-
get: () => Math.max(...pe.value.map((
|
|
305
|
-
set: (
|
|
306
|
-
}), m = g({ start: 0, end: ze.value }), Me = g({ start: 0, end: ze.value }),
|
|
307
|
-
function
|
|
308
|
-
Me.value[
|
|
303
|
+
const Bo = Vo((l, o) => Vl({ data: l, threshold: o })), Fe = (l) => Bo(l, t.value.downsample.threshold), ze = b({
|
|
304
|
+
get: () => Math.max(...pe.value.map((l) => Fe(l.series).length)),
|
|
305
|
+
set: (l) => l
|
|
306
|
+
}), m = g({ start: 0, end: ze.value }), Me = g({ start: 0, end: ze.value }), aa = b(() => t.value.chart.zoom.preview.enable && (Me.value.start !== m.value.start || Me.value.end !== m.value.end));
|
|
307
|
+
function oa(l, o) {
|
|
308
|
+
Me.value[l] = o;
|
|
309
309
|
}
|
|
310
310
|
function ut() {
|
|
311
|
-
const
|
|
311
|
+
const l = Math.max(
|
|
312
312
|
1,
|
|
313
313
|
...pe.value.map((s) => Fe(s.series).length)
|
|
314
314
|
);
|
|
315
|
-
let o = Math.max(0, Math.min(m.value.start ?? 0,
|
|
316
|
-
(!Number.isFinite(o) || !Number.isFinite(e) || e <= o) && (o = 0, e =
|
|
315
|
+
let o = Math.max(0, Math.min(m.value.start ?? 0, l - 1)), e = Math.max(o + 1, Math.min(m.value.end ?? l, l));
|
|
316
|
+
(!Number.isFinite(o) || !Number.isFinite(e) || e <= o) && (o = 0, e = l), m.value = { start: o, end: e }, Me.value.start = o, Me.value.end = e, Te.value && (Te.value.setStartValue(o), Te.value.setEndValue(e));
|
|
317
317
|
}
|
|
318
318
|
const Ro = b(() => {
|
|
319
|
-
const { left:
|
|
319
|
+
const { left: l, top: o, width: e, height: s } = c.value, a = m.value.start, u = m.value.end - a, S = e / u, M = Me.value.start - a, I = Me.value.end - a, V = Math.max(0, Math.min(u, M)), D = Math.max(0, Math.min(u, I));
|
|
320
320
|
return {
|
|
321
|
-
x:
|
|
321
|
+
x: l + V * S,
|
|
322
322
|
y: o,
|
|
323
|
-
width: (D - V) *
|
|
323
|
+
width: (D - V) * S,
|
|
324
324
|
height: s,
|
|
325
325
|
fill: t.value.chart.zoom.preview.fill,
|
|
326
326
|
stroke: t.value.chart.zoom.preview.stroke,
|
|
@@ -335,174 +335,174 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
335
335
|
}
|
|
336
336
|
};
|
|
337
337
|
});
|
|
338
|
-
|
|
338
|
+
vt(() => T.selectedXIndex, (l) => {
|
|
339
339
|
if ([null, void 0].includes(T.selectedXIndex)) {
|
|
340
340
|
_.value = null;
|
|
341
341
|
return;
|
|
342
342
|
}
|
|
343
|
-
const o =
|
|
344
|
-
o < 0 ||
|
|
343
|
+
const o = l - m.value.start;
|
|
344
|
+
o < 0 || l >= m.value.end ? _.value = null : _.value = o ?? null;
|
|
345
345
|
}, { immediate: !0 });
|
|
346
|
-
const { isPrinting: Et, isImaging:
|
|
346
|
+
const { isPrinting: Et, isImaging: _l, generatePdf: ua, generateImage: sa } = ss({
|
|
347
347
|
elementId: `vue-ui-xy_${z.value}`,
|
|
348
348
|
fileName: t.value.chart.title.text || "vue-ui-xy",
|
|
349
349
|
options: t.value.chart.userOptions.print
|
|
350
350
|
}), Ho = g(!1), Yt = b(() => Eu(t.value.customPalette)), st = b(() => {
|
|
351
|
-
const
|
|
352
|
-
if (
|
|
353
|
-
const o = Number(
|
|
351
|
+
const l = t.value.chart.grid.labels.yAxis.scaleMin;
|
|
352
|
+
if (l == null) return null;
|
|
353
|
+
const o = Number(l);
|
|
354
354
|
return Number.isFinite(o) ? o : null;
|
|
355
|
-
}), Do = b(() => st.value !== null ? c.value.bottom : he.value),
|
|
356
|
-
const
|
|
357
|
-
if (
|
|
358
|
-
const o = Number(
|
|
355
|
+
}), Do = b(() => st.value !== null ? c.value.bottom : he.value), _t = b(() => {
|
|
356
|
+
const l = t.value.chart.grid.labels.yAxis.scaleMax;
|
|
357
|
+
if (l == null) return null;
|
|
358
|
+
const o = Number(l);
|
|
359
359
|
return Number.isFinite(o) ? o : null;
|
|
360
|
-
}),
|
|
361
|
-
const
|
|
362
|
-
return
|
|
363
|
-
min: Math.min(...
|
|
364
|
-
max: Math.max(...
|
|
360
|
+
}), na = b(() => st.value !== null || _t.value !== null), ia = b(() => {
|
|
361
|
+
const l = Ve.value.filter((o) => !G.value.includes(o.id)).flatMap((o) => Array.isArray(o.series) ? o.series : []).filter(Number.isFinite);
|
|
362
|
+
return l.length ? {
|
|
363
|
+
min: Math.min(...l),
|
|
364
|
+
max: Math.max(...l)
|
|
365
365
|
} : { min: 0, max: 1 };
|
|
366
366
|
});
|
|
367
|
-
function
|
|
368
|
-
let e = Number.isFinite(
|
|
367
|
+
function ra(l, o) {
|
|
368
|
+
let e = Number.isFinite(l) ? l : 0, s = Number.isFinite(o) ? o : 1;
|
|
369
369
|
return e === s ? s = e + 1 : e > s && ([e, s] = [s, e]), { min: e, max: s };
|
|
370
370
|
}
|
|
371
371
|
const Xt = b(() => {
|
|
372
|
-
const { min:
|
|
373
|
-
if (!
|
|
374
|
-
const u =
|
|
372
|
+
const { min: l, max: o } = ia.value;
|
|
373
|
+
if (!na.value) {
|
|
374
|
+
const u = l;
|
|
375
375
|
return u > 0 ? 0 : u;
|
|
376
376
|
}
|
|
377
|
-
const e = st.value !== null ? st.value :
|
|
378
|
-
return
|
|
377
|
+
const e = st.value !== null ? st.value : l > 0 ? 0 : l, s = _t.value !== null ? _t.value : o, a = l < e ? l : e, n = o > s ? o : s;
|
|
378
|
+
return ra(a, n).min;
|
|
379
379
|
}), Gt = b(() => {
|
|
380
|
-
const { min:
|
|
381
|
-
if (!
|
|
380
|
+
const { min: l, max: o } = ia.value;
|
|
381
|
+
if (!na.value) {
|
|
382
382
|
const u = o;
|
|
383
383
|
return Xt.value === u ? u + 1 : u;
|
|
384
384
|
}
|
|
385
|
-
const e = st.value !== null ? st.value :
|
|
386
|
-
return
|
|
387
|
-
}), Ae = b(() => t.value.chart.grid.labels.yAxis.useNiceScale ? uo(Xt.value, Gt.value < 0 ? 0 : Gt.value, t.value.chart.grid.labels.yAxis.commonScaleSteps) : so(Xt.value, Gt.value < 0 ? 0 : Gt.value, t.value.chart.grid.labels.yAxis.commonScaleSteps)),
|
|
388
|
-
const e = Fe(
|
|
385
|
+
const e = st.value !== null ? st.value : l > 0 ? 0 : l, s = _t.value !== null ? _t.value : o, a = l < e ? l : e, n = o > s ? o : s;
|
|
386
|
+
return ra(a, n).max;
|
|
387
|
+
}), Ae = b(() => t.value.chart.grid.labels.yAxis.useNiceScale ? uo(Xt.value, Gt.value < 0 ? 0 : Gt.value, t.value.chart.grid.labels.yAxis.commonScaleSteps) : so(Xt.value, Gt.value < 0 ? 0 : Gt.value, t.value.chart.grid.labels.yAxis.commonScaleSteps)), wt = b(() => [null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) ? Ae.value.min >= 0 ? 0 : Math.abs(Ae.value.min) : -Ae.value.min), Ve = b(() => Hl.value ? pe.value.map((l, o) => {
|
|
388
|
+
const e = Fe(l.series), s = `uniqueId_${o}`;
|
|
389
389
|
return {
|
|
390
|
-
...
|
|
390
|
+
...l,
|
|
391
391
|
slotAbsoluteIndex: o,
|
|
392
|
-
series: e.map((
|
|
393
|
-
color:
|
|
392
|
+
series: e.map((a) => nl(a) ? a : null).slice(m.value.start, m.value.end),
|
|
393
|
+
color: Nl(l.color ? l.color : Yt.value[o] ? Yt.value[o] : Fl[o]),
|
|
394
394
|
id: s,
|
|
395
|
-
scaleLabel:
|
|
395
|
+
scaleLabel: l.scaleLabel || s
|
|
396
396
|
};
|
|
397
|
-
}) : pe.value), ie = b(() => Ve.value.map((
|
|
397
|
+
}) : pe.value), ie = b(() => Ve.value.map((l, o) => ({
|
|
398
398
|
absoluteIndex: o,
|
|
399
|
-
...
|
|
400
|
-
series:
|
|
401
|
-
absoluteValues:
|
|
402
|
-
segregate: () => Mt(
|
|
403
|
-
isSegregated: G.value.includes(
|
|
404
|
-
}))), ye = b(() => Ve.value.map((
|
|
405
|
-
...
|
|
406
|
-
series:
|
|
407
|
-
absoluteValues:
|
|
408
|
-
})).filter((
|
|
399
|
+
...l,
|
|
400
|
+
series: l.series.map((e) => e + wt.value),
|
|
401
|
+
absoluteValues: l.series,
|
|
402
|
+
segregate: () => Mt(l),
|
|
403
|
+
isSegregated: G.value.includes(l.id)
|
|
404
|
+
}))), ye = b(() => Ve.value.map((l, o) => ({
|
|
405
|
+
...l,
|
|
406
|
+
series: l.series.map((e) => e + wt.value),
|
|
407
|
+
absoluteValues: l.series
|
|
408
|
+
})).filter((l) => !G.value.includes(l.id))), Wo = b(() => G.value.length === ie.value.length);
|
|
409
409
|
function Eo() {
|
|
410
|
-
let
|
|
411
|
-
|
|
410
|
+
let l = 0;
|
|
411
|
+
hl.value && (l = Array.from(hl.value.querySelectorAll("text")).reduce((a, n) => {
|
|
412
412
|
const u = n.getComputedTextLength();
|
|
413
|
-
return (u >
|
|
413
|
+
return (u > a ? u : a) + t.value.chart.grid.labels.yAxis.scaleValueOffsetX;
|
|
414
414
|
}, 0));
|
|
415
|
-
const o =
|
|
416
|
-
return
|
|
417
|
-
}
|
|
418
|
-
const
|
|
419
|
-
function
|
|
420
|
-
const
|
|
421
|
-
if (!
|
|
422
|
-
|
|
415
|
+
const o = dl.value ? dl.value.getBoundingClientRect().width + t.value.chart.grid.labels.axis.yLabelOffsetX + x.value.yAxis : 0, e = t.value.chart.grid.labels.yAxis.crosshairSize;
|
|
416
|
+
return l + o + e;
|
|
417
|
+
}
|
|
418
|
+
const St = g(0), nt = g(0);
|
|
419
|
+
function ca() {
|
|
420
|
+
const l = Ft.value;
|
|
421
|
+
if (!l) {
|
|
422
|
+
St.value = 0, nt.value = 0;
|
|
423
423
|
return;
|
|
424
424
|
}
|
|
425
425
|
try {
|
|
426
|
-
const o =
|
|
427
|
-
|
|
426
|
+
const o = l.getBBox();
|
|
427
|
+
St.value = o?.height ?? 0, nt.value = o?.x ?? 0;
|
|
428
428
|
} catch {
|
|
429
|
-
|
|
429
|
+
St.value = 0, nt.value = 0;
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
|
-
const
|
|
433
|
-
let
|
|
434
|
-
if (
|
|
432
|
+
const va = b(() => {
|
|
433
|
+
let l = 0;
|
|
434
|
+
if (vl.value)
|
|
435
435
|
try {
|
|
436
|
-
|
|
436
|
+
l = vl.value.getBBox().height || 0;
|
|
437
437
|
} catch {
|
|
438
|
-
|
|
438
|
+
l = 0;
|
|
439
439
|
}
|
|
440
|
-
return
|
|
441
|
-
}), Yo = b(() => pe.value.some((
|
|
442
|
-
|
|
443
|
-
let
|
|
440
|
+
return l + St.value + x.value.xAxis;
|
|
441
|
+
}), Yo = b(() => pe.value.some((l) => l.useProgression)), c = b(() => {
|
|
442
|
+
Kl.value;
|
|
443
|
+
let l = 0;
|
|
444
444
|
const o = 36;
|
|
445
|
-
t.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ?
|
|
445
|
+
t.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ? l = (pe.value.length - G.value.length) * (t.value.chart.grid.labels.yAxis.labelWidth + o) : f.value.useIndividualScale && f.value.isStacked ? l = t.value.chart.grid.labels.yAxis.labelWidth + o : l = Eo());
|
|
446
446
|
const e = t.value.chart.labels.fontSize * 1.1, s = Yo.value ? 24 : 6;
|
|
447
|
-
Ft.value && nt.value < 0 && (
|
|
448
|
-
const
|
|
447
|
+
Ft.value && nt.value < 0 && (l += Math.abs(nt.value));
|
|
448
|
+
const a = ee.value - l - t.value.chart.grid.labels.yAxis.crosshairSize - s - t.value.chart.padding?.left - t.value.chart.padding?.right, n = t.value.chart.grid.position === "middle" ? 0 : a / $.value / 2;
|
|
449
449
|
return {
|
|
450
450
|
top: t.value.chart.padding?.top + e,
|
|
451
451
|
right: ee.value - s - t.value.chart.padding?.right,
|
|
452
|
-
bottom: de.value -
|
|
453
|
-
left:
|
|
454
|
-
height: de.value -
|
|
455
|
-
width:
|
|
456
|
-
scaleLabelX:
|
|
452
|
+
bottom: de.value - va.value - t.value.chart.padding?.bottom - t.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
453
|
+
left: l + t.value.chart.grid.labels.yAxis.crosshairSize - n + t.value.chart.padding?.left,
|
|
454
|
+
height: de.value - va.value - t.value.chart.padding?.top - t.value.chart.padding?.bottom - e - t.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
455
|
+
width: a,
|
|
456
|
+
scaleLabelX: l,
|
|
457
457
|
individualOffsetX: o
|
|
458
458
|
};
|
|
459
459
|
}), Xo = b(() => {
|
|
460
|
-
const
|
|
461
|
-
return Array.from({ length: o }).map((
|
|
462
|
-
const u = c.value.width /
|
|
460
|
+
const l = t.value.chart.grid.position === "middle" ? 1 : 0, o = $.value + l, e = W(c.value?.top), s = W(c.value?.bottom);
|
|
461
|
+
return Array.from({ length: o }).map((a, n) => {
|
|
462
|
+
const u = c.value.width / $.value * n + c.value?.left + q.value;
|
|
463
463
|
return `M${u},${e} L${u},${s}`;
|
|
464
464
|
}).join(" ");
|
|
465
465
|
}), Go = b(() => {
|
|
466
466
|
if (!t.value.chart.grid.labels.xAxis.showCrosshairs) return "";
|
|
467
|
-
const
|
|
468
|
-
return Kt.value.map((s,
|
|
467
|
+
const l = c.value.width / $.value, o = t.value.chart.grid.labels.xAxis.crosshairSize, e = t.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
|
|
468
|
+
return Kt.value.map((s, a) => {
|
|
469
469
|
if (!s || !s.text) return null;
|
|
470
|
-
const n = c.value?.left +
|
|
471
|
-
return `M${n},${u} L${n},${
|
|
470
|
+
const n = c.value?.left + l * a + l / 2, u = e ? he.value - (he.value === c.value?.bottom ? 0 : o / 2) : c.value?.bottom, S = e ? he.value + o / (he.value === c.value?.bottom ? 1 : 2) : c.value?.bottom + o;
|
|
471
|
+
return `M${n},${u} L${n},${S}`;
|
|
472
472
|
}).filter(Boolean).join(" ");
|
|
473
473
|
});
|
|
474
|
-
function
|
|
474
|
+
function da() {
|
|
475
475
|
return !!Ao?.vnode.props?.onSelectTimeLabel;
|
|
476
476
|
}
|
|
477
|
-
function qo(
|
|
477
|
+
function qo(l, o, e) {
|
|
478
478
|
if (!Rt.value) {
|
|
479
479
|
const s = document.createElement("canvas");
|
|
480
480
|
Rt.value = s.getContext("2d");
|
|
481
481
|
}
|
|
482
|
-
return Rt.value.font = `normal ${
|
|
482
|
+
return Rt.value.font = `normal ${l}px sans-serif`, Rt.value;
|
|
483
483
|
}
|
|
484
|
-
function
|
|
485
|
-
const
|
|
486
|
-
|
|
484
|
+
function ha() {
|
|
485
|
+
const l = $e.value.querySelectorAll(".vue-ui-xy-tag");
|
|
486
|
+
l.length && Array.from(l).forEach((o) => o.style.opacity = "0");
|
|
487
487
|
}
|
|
488
|
-
function qt(
|
|
489
|
-
e && (Oe.value[`${
|
|
488
|
+
function qt(l, o, e, s, a) {
|
|
489
|
+
e && (Oe.value[`${l}_${o}_${s}_${a}`] = e);
|
|
490
490
|
}
|
|
491
491
|
const Ut = g(!1);
|
|
492
|
-
async function
|
|
493
|
-
await Pt(), Ut.value =
|
|
492
|
+
async function fa(l = !1) {
|
|
493
|
+
await Pt(), Ut.value = l, Xl.value && (Bt.value = l);
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function wl() {
|
|
496
496
|
tt.value = !tt.value;
|
|
497
497
|
}
|
|
498
498
|
const se = g([]), Zt = g([]);
|
|
499
|
-
let
|
|
500
|
-
|
|
501
|
-
const
|
|
499
|
+
let ma = 0;
|
|
500
|
+
sl(() => {
|
|
501
|
+
const l = ++ma;
|
|
502
502
|
(async () => {
|
|
503
503
|
const o = Math.max(
|
|
504
504
|
...pe.value.map(
|
|
505
|
-
(s) =>
|
|
505
|
+
(s) => Vl({
|
|
506
506
|
data: s.series,
|
|
507
507
|
threshold: t.value.downsample.threshold
|
|
508
508
|
}).length
|
|
@@ -514,16 +514,16 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
514
514
|
start: m.value.start,
|
|
515
515
|
end: m.value.end
|
|
516
516
|
});
|
|
517
|
-
|
|
517
|
+
l === ma && (se.value = e);
|
|
518
518
|
})();
|
|
519
519
|
});
|
|
520
|
-
let
|
|
521
|
-
|
|
522
|
-
const
|
|
520
|
+
let ga = 0;
|
|
521
|
+
sl(() => {
|
|
522
|
+
const l = ++ga;
|
|
523
523
|
(async () => {
|
|
524
524
|
const o = Math.max(
|
|
525
525
|
...pe.value.map(
|
|
526
|
-
(s) =>
|
|
526
|
+
(s) => Vl({
|
|
527
527
|
data: s.series,
|
|
528
528
|
threshold: t.value.downsample.threshold
|
|
529
529
|
}).length
|
|
@@ -535,29 +535,29 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
535
535
|
start: 0,
|
|
536
536
|
end: ze.value
|
|
537
537
|
});
|
|
538
|
-
|
|
538
|
+
l === ga && (Zt.value = e);
|
|
539
539
|
})();
|
|
540
540
|
});
|
|
541
541
|
const Uo = b(() => {
|
|
542
|
-
const
|
|
543
|
-
return se.value.length ? Math.min(
|
|
542
|
+
const l = t.value.chart.grid.labels.xAxisLabels.modulo;
|
|
543
|
+
return se.value.length ? Math.min(l, [...new Set(se.value.map((o) => o.text))].length) : l;
|
|
544
544
|
}), Kt = b(() => {
|
|
545
|
-
const
|
|
545
|
+
const l = t.value.chart.grid.labels.xAxisLabels, o = se.value || [], e = Zt.value || [], s = m.value.start ?? 0, a = _.value, n = $.value, u = o.map((M) => M?.text ?? ""), S = e.map((M) => M?.text ?? "");
|
|
546
546
|
return Yu(
|
|
547
|
-
!!
|
|
548
|
-
!!
|
|
547
|
+
!!l.showOnlyFirstAndLast,
|
|
548
|
+
!!l.showOnlyAtModulo,
|
|
549
549
|
Math.max(1, Uo.value || 1),
|
|
550
550
|
u,
|
|
551
|
-
|
|
551
|
+
S,
|
|
552
552
|
s,
|
|
553
|
-
|
|
553
|
+
a,
|
|
554
554
|
n
|
|
555
555
|
);
|
|
556
|
-
}), Zo = b(() => (Kt.value || []).map((
|
|
556
|
+
}), Zo = b(() => (Kt.value || []).map((l) => l?.text ?? "").join("|"));
|
|
557
557
|
It(() => {
|
|
558
558
|
requestAnimationFrame(() => {
|
|
559
|
-
|
|
560
|
-
}),
|
|
559
|
+
ca();
|
|
560
|
+
}), vt(
|
|
561
561
|
[
|
|
562
562
|
() => Zo.value,
|
|
563
563
|
() => t.value.chart.grid.labels.xAxisLabels.rotation,
|
|
@@ -567,183 +567,183 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
567
567
|
],
|
|
568
568
|
async () => {
|
|
569
569
|
await Pt(), requestAnimationFrame(() => {
|
|
570
|
-
|
|
570
|
+
ca();
|
|
571
571
|
});
|
|
572
572
|
},
|
|
573
573
|
{ flush: "post" }
|
|
574
574
|
);
|
|
575
|
-
}),
|
|
576
|
-
|
|
575
|
+
}), Il(() => {
|
|
576
|
+
St.value = 0, nt.value = 0, Ql.stop();
|
|
577
577
|
});
|
|
578
|
-
function
|
|
578
|
+
function ba(l, o) {
|
|
579
579
|
const e = ye.value.map((s) => ({
|
|
580
580
|
shape: s.shape || null,
|
|
581
581
|
name: s.name,
|
|
582
582
|
color: s.color,
|
|
583
583
|
type: s.type,
|
|
584
|
-
value: s.absoluteValues.find((
|
|
584
|
+
value: s.absoluteValues.find((a, n) => n === o),
|
|
585
585
|
comments: s.comments || [],
|
|
586
586
|
prefix: s.prefix || t.value.chart.labels.prefix,
|
|
587
587
|
suffix: s.suffix || t.value.chart.labels.suffix
|
|
588
588
|
}));
|
|
589
589
|
We("selectTimeLabel", {
|
|
590
590
|
datapoint: e,
|
|
591
|
-
absoluteIndex:
|
|
592
|
-
label:
|
|
591
|
+
absoluteIndex: l.absoluteIndex,
|
|
592
|
+
label: l.text
|
|
593
593
|
});
|
|
594
594
|
}
|
|
595
|
-
const
|
|
596
|
-
const
|
|
597
|
-
return Math.max(1,
|
|
595
|
+
const $ = b(() => {
|
|
596
|
+
const l = ea((m.value.end ?? 0) - (m.value.start ?? 0));
|
|
597
|
+
return Math.max(1, l);
|
|
598
598
|
});
|
|
599
|
-
function Ko(
|
|
600
|
-
P.value =
|
|
599
|
+
function Ko(l) {
|
|
600
|
+
P.value = l;
|
|
601
601
|
}
|
|
602
|
-
function
|
|
602
|
+
function pa() {
|
|
603
603
|
f.value.isStacked = !f.value.isStacked, f.value.isStacked ? f.value.useIndividualScale = !0 : f.value.useIndividualScale = t.value.chart.grid.labels.yAxis.useIndividualScale;
|
|
604
604
|
}
|
|
605
|
-
function
|
|
606
|
-
|
|
605
|
+
function Sl(l) {
|
|
606
|
+
kt.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`));
|
|
607
607
|
}
|
|
608
|
-
function Jo(
|
|
609
|
-
const e =
|
|
610
|
-
for (let
|
|
608
|
+
function Jo(l, o) {
|
|
609
|
+
const e = ea(l), s = Array(e).fill(0);
|
|
610
|
+
for (let a = 0; a < o.length && a < e; a += 1) s[a] = o[a] ?? 0;
|
|
611
611
|
return s;
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function ya(l) {
|
|
614
614
|
const o = Math.max(...pe.value.map((e) => Fe(e.series).length));
|
|
615
|
-
return
|
|
615
|
+
return l > o ? o : 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;
|
|
616
616
|
}
|
|
617
|
-
const
|
|
618
|
-
function
|
|
619
|
-
const e = Number(
|
|
617
|
+
const $t = g(!1), xa = g(!1), ka = g(0), _a = g(0);
|
|
618
|
+
function wa(l, o) {
|
|
619
|
+
const e = Number(l), s = Number(o);
|
|
620
620
|
return !Number.isFinite(e) || !Number.isFinite(s) ? !1 : !Object.is(e, s);
|
|
621
621
|
}
|
|
622
622
|
function Jt() {
|
|
623
|
-
if (
|
|
624
|
-
|
|
623
|
+
if (!$t.value) {
|
|
624
|
+
$t.value = !0;
|
|
625
625
|
try {
|
|
626
|
-
const { startIndex:
|
|
627
|
-
|
|
628
|
-
const s =
|
|
629
|
-
Qt.value = !0, m.value.start = s, m.value.end =
|
|
626
|
+
const { startIndex: l, endIndex: o } = t.value.chart.zoom, e = Math.max(...pe.value.map((n) => Fe(n.series).length));
|
|
627
|
+
ka.value = 0, _a.value = e;
|
|
628
|
+
const s = l ?? 0, a = o != null ? Math.min(ya(o + 1), e) : e;
|
|
629
|
+
Qt.value = !0, m.value.start = s, m.value.end = a, Me.value.start = s, Me.value.end = a, ut(), xa.value = !0;
|
|
630
630
|
} finally {
|
|
631
631
|
queueMicrotask(() => {
|
|
632
632
|
Qt.value = !1;
|
|
633
|
-
}),
|
|
633
|
+
}), $t.value = !1;
|
|
634
634
|
}
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
637
|
const Qt = g(!1);
|
|
638
|
-
function Qo(
|
|
639
|
-
if (
|
|
640
|
-
const o = Number(
|
|
638
|
+
function Qo(l) {
|
|
639
|
+
if ($t.value || Qt.value) return;
|
|
640
|
+
const o = Number(l);
|
|
641
641
|
We("zoomStart", {
|
|
642
642
|
index: o,
|
|
643
|
-
isZoom:
|
|
643
|
+
isZoom: wa(o, ka.value)
|
|
644
644
|
}), Number.isFinite(o) && o !== m.value.start && (m.value.start = o, Me.value.start = o, ut());
|
|
645
645
|
}
|
|
646
|
-
function jo(
|
|
647
|
-
if (
|
|
648
|
-
const o =
|
|
646
|
+
function jo(l) {
|
|
647
|
+
if ($t.value || Qt.value) return;
|
|
648
|
+
const o = ya(l);
|
|
649
649
|
We("zoomEnd", {
|
|
650
650
|
index: o,
|
|
651
|
-
isZoom:
|
|
651
|
+
isZoom: wa(o, _a.value)
|
|
652
652
|
}), o !== m.value.end && (m.value.end = o, Me.value.end = o, ut());
|
|
653
653
|
}
|
|
654
654
|
async function eu() {
|
|
655
655
|
await Jt(), We("zoomReset");
|
|
656
656
|
}
|
|
657
|
-
function xe(
|
|
658
|
-
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(
|
|
657
|
+
function xe(l) {
|
|
658
|
+
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(l);
|
|
659
659
|
}
|
|
660
|
-
const
|
|
661
|
-
function Ge(
|
|
662
|
-
return
|
|
660
|
+
const Sa = b(() => Ae.value.max + wt.value);
|
|
661
|
+
function Ge(l) {
|
|
662
|
+
return l / (xe(Sa.value) ? Sa.value : 1);
|
|
663
663
|
}
|
|
664
|
-
const he = b(() => isNaN(Ge(
|
|
665
|
-
function $l
|
|
664
|
+
const he = b(() => isNaN(Ge(wt.value)) ? c.value?.bottom : c.value?.bottom - c.value.height * Ge(wt.value));
|
|
665
|
+
function $a(l) {
|
|
666
666
|
const o = ![null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) && t.value.chart.grid.labels.yAxis.scaleMin > 0 && Xt.value >= 0 ? c.value?.bottom : he.value;
|
|
667
|
-
return
|
|
667
|
+
return l.value >= 0 ? O(o - l.y <= 0 ? 1e-5 : o - l.y) : O(l.y - he.value <= 0 ? 1e-5 : l.y - he.value);
|
|
668
668
|
}
|
|
669
|
-
function
|
|
670
|
-
return
|
|
669
|
+
function La(l) {
|
|
670
|
+
return l.value >= 0 ? O(l.zeroPosition - l.y <= 0 ? 1e-5 : l.zeroPosition - l.y) : O(l.y - l.zeroPosition <= 0 ? 1e-5 : l.zeroPosition - l.y);
|
|
671
671
|
}
|
|
672
672
|
const J = b(() => {
|
|
673
|
-
const
|
|
673
|
+
const l = Math.max(1, $.value), o = Math.max(1, c.value.width), e = Math.max(1, Ve.value.filter((s) => s.type === "bar" && !G.value.includes(s.id)).length);
|
|
674
674
|
return {
|
|
675
|
-
bar:
|
|
676
|
-
plot:
|
|
677
|
-
line:
|
|
675
|
+
bar: pl(o, l * e, 1),
|
|
676
|
+
plot: pl(o, l, 1),
|
|
677
|
+
line: pl(o, l, 1)
|
|
678
678
|
};
|
|
679
679
|
});
|
|
680
680
|
function Be() {
|
|
681
|
-
return f.value.useIndividualScale && f.value.isStacked ? J.value.line - c.value.width /
|
|
681
|
+
return f.value.useIndividualScale && f.value.isStacked ? J.value.line - c.value.width / $.value * 0.1 : J.value.bar;
|
|
682
682
|
}
|
|
683
|
-
function jt(
|
|
684
|
-
return f.value.useIndividualScale && f.value.isStacked ?
|
|
683
|
+
function jt(l) {
|
|
684
|
+
return f.value.useIndividualScale && f.value.isStacked ? l.x + c.value.width / $.value * 0.05 : l.x + J.value.bar / 2;
|
|
685
685
|
}
|
|
686
|
-
function
|
|
687
|
-
return
|
|
686
|
+
function Ma(l) {
|
|
687
|
+
return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(he.value) ? c?.bottom.value : he.value;
|
|
688
688
|
}
|
|
689
|
-
function
|
|
690
|
-
return
|
|
689
|
+
function Aa(l) {
|
|
690
|
+
return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(l.zeroPosition) ? 0 : l.zeroPosition;
|
|
691
691
|
}
|
|
692
|
-
const
|
|
693
|
-
function
|
|
694
|
-
const o =
|
|
692
|
+
const it = g(null);
|
|
693
|
+
function Ca(l) {
|
|
694
|
+
const o = ae.value;
|
|
695
695
|
if (!o) return null;
|
|
696
696
|
if (o.createSVGPoint && o.getScreenCTM) {
|
|
697
697
|
const D = o.createSVGPoint();
|
|
698
|
-
D.x =
|
|
698
|
+
D.x = l.clientX, D.y = l.clientY;
|
|
699
699
|
const N = o.getScreenCTM();
|
|
700
700
|
if (N) {
|
|
701
701
|
const p = D.matrixTransform(N.inverse());
|
|
702
702
|
return { x: p.x, y: p.y, ok: !0 };
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
|
-
const e = o.getBoundingClientRect(), s = o.viewBox?.baseVal || { x: 0, y: 0, width: e.width, height: e.height },
|
|
705
|
+
const e = o.getBoundingClientRect(), s = o.viewBox?.baseVal || { x: 0, y: 0, width: e.width, height: e.height }, a = Math.min(e.width / s.width, e.height / s.height), n = s.width * a, u = s.height * a, S = (e.width - n) / 2, M = (e.height - u) / 2, I = (l.clientX - e?.left - S) / a + s.x, V = (l.clientY - e?.top - M) / a + s.y;
|
|
706
706
|
return { x: I, y: V, ok: !0 };
|
|
707
707
|
}
|
|
708
708
|
let qe = 0;
|
|
709
|
-
function tu(
|
|
710
|
-
|
|
709
|
+
function tu(l) {
|
|
710
|
+
at.value = null, !tt.value && (qe && cancelAnimationFrame(qe), qe = requestAnimationFrame(() => {
|
|
711
711
|
qe = 0;
|
|
712
|
-
const o =
|
|
713
|
-
if (!o || !
|
|
712
|
+
const o = Ca(l);
|
|
713
|
+
if (!o || !ae.value) {
|
|
714
714
|
Lt();
|
|
715
715
|
return;
|
|
716
716
|
}
|
|
717
|
-
const { left: e, right: s, top:
|
|
718
|
-
if (o.x < e || o.x > s || o.y <
|
|
717
|
+
const { left: e, right: s, top: a, bottom: n, width: u } = c.value;
|
|
718
|
+
if (o.x < e || o.x > s || o.y < a || o.y > n) {
|
|
719
719
|
Lt();
|
|
720
720
|
return;
|
|
721
721
|
}
|
|
722
|
-
const
|
|
723
|
-
I >= 0 && I <
|
|
722
|
+
const S = o.x - e, M = u / $.value, I = Math.floor(S / M);
|
|
723
|
+
I >= 0 && I < $.value ? it.value !== I && (it.value = I, Ml(!0, I)) : Lt();
|
|
724
724
|
}));
|
|
725
725
|
}
|
|
726
726
|
function Lt() {
|
|
727
|
-
qe && (cancelAnimationFrame(qe), qe = 0),
|
|
728
|
-
}
|
|
729
|
-
function
|
|
730
|
-
const o =
|
|
731
|
-
if (o &&
|
|
732
|
-
const { left: e, right: s, top:
|
|
733
|
-
if (o.x >= e && o.x <= s && o.y >=
|
|
734
|
-
const
|
|
735
|
-
if (M >= 0 && M <
|
|
736
|
-
|
|
727
|
+
qe && (cancelAnimationFrame(qe), qe = 0), it.value = null, Ml(!1, null);
|
|
728
|
+
}
|
|
729
|
+
function Ta(l) {
|
|
730
|
+
const o = Ca(l);
|
|
731
|
+
if (o && ae.value) {
|
|
732
|
+
const { left: e, right: s, top: a, bottom: n, width: u } = c.value;
|
|
733
|
+
if (o.x >= e && o.x <= s && o.y >= a && o.y <= n) {
|
|
734
|
+
const S = u / Math.max(1, $.value), M = Math.floor((o.x - e) / S);
|
|
735
|
+
if (M >= 0 && M < $.value) {
|
|
736
|
+
za(M);
|
|
737
737
|
return;
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
|
-
|
|
741
|
+
it.value != null && za(it.value);
|
|
742
742
|
}
|
|
743
|
-
function
|
|
743
|
+
function za(l) {
|
|
744
744
|
const o = ye.value.map((e) => ({
|
|
745
745
|
name: e.name,
|
|
746
|
-
value: [null, void 0, NaN].includes(e.absoluteValues[
|
|
746
|
+
value: [null, void 0, NaN].includes(e.absoluteValues[l]) ? null : e.absoluteValues[l],
|
|
747
747
|
color: e.color,
|
|
748
748
|
type: e.type
|
|
749
749
|
}));
|
|
@@ -751,24 +751,24 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
751
751
|
"selectX",
|
|
752
752
|
{
|
|
753
753
|
dataset: o,
|
|
754
|
-
index:
|
|
755
|
-
indexLabel: t.value.chart.grid.labels.xAxisLabels.values[
|
|
754
|
+
index: l,
|
|
755
|
+
indexLabel: t.value.chart.grid.labels.xAxisLabels.values[l]
|
|
756
756
|
}
|
|
757
|
-
), t.value.events.datapointClick && t.value.events.datapointClick({ datapoint: o, seriesIndex:
|
|
758
|
-
}
|
|
759
|
-
function
|
|
760
|
-
return ie.value.map((
|
|
761
|
-
values:
|
|
762
|
-
color:
|
|
763
|
-
name:
|
|
764
|
-
type:
|
|
757
|
+
), t.value.events.datapointClick && t.value.events.datapointClick({ datapoint: o, seriesIndex: l + m.value.start });
|
|
758
|
+
}
|
|
759
|
+
function lu() {
|
|
760
|
+
return ie.value.map((l) => ({
|
|
761
|
+
values: l.absoluteValues,
|
|
762
|
+
color: l.color,
|
|
763
|
+
name: l.name,
|
|
764
|
+
type: l.type
|
|
765
765
|
}));
|
|
766
766
|
}
|
|
767
|
-
async function
|
|
767
|
+
async function au({ scale: l = 2 } = {}) {
|
|
768
768
|
if (!$e.value) return;
|
|
769
|
-
const { width: o, height: e } = $e.value.getBoundingClientRect(), s = o / e, { imageUri:
|
|
769
|
+
const { width: o, height: e } = $e.value.getBoundingClientRect(), s = o / e, { imageUri: a, base64: n } = await hs({ domElement: $e.value, base64: !0, img: !0, scale: l });
|
|
770
770
|
return {
|
|
771
|
-
imageUri:
|
|
771
|
+
imageUri: a,
|
|
772
772
|
base64: n,
|
|
773
773
|
title: t.value.chart.title.text,
|
|
774
774
|
width: o,
|
|
@@ -777,46 +777,46 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
777
777
|
};
|
|
778
778
|
}
|
|
779
779
|
function ou() {
|
|
780
|
-
G.value.length ? G.value = [] : ie.value.forEach((
|
|
781
|
-
G.value.push(
|
|
780
|
+
G.value.length ? G.value = [] : ie.value.forEach((l) => {
|
|
781
|
+
G.value.push(l.id);
|
|
782
782
|
});
|
|
783
783
|
}
|
|
784
|
-
function uu(
|
|
785
|
-
(
|
|
784
|
+
function uu(l, o) {
|
|
785
|
+
(l.key === "Enter" || l.key === " ") && (l.preventDefault(), Mt(o));
|
|
786
786
|
}
|
|
787
|
-
function Mt(
|
|
788
|
-
if (G.value.includes(
|
|
789
|
-
G.value = G.value.filter((o) => o !==
|
|
787
|
+
function Mt(l) {
|
|
788
|
+
if (G.value.includes(l.id))
|
|
789
|
+
G.value = G.value.filter((o) => o !== l.id);
|
|
790
790
|
else {
|
|
791
791
|
if (G.value.length + 1 === Ve.value.length) return;
|
|
792
|
-
G.value.push(
|
|
792
|
+
G.value.push(l.id);
|
|
793
793
|
}
|
|
794
794
|
We("selectLegend", ye.value.map((o) => ({
|
|
795
795
|
name: o.name,
|
|
796
796
|
values: o.absoluteValues,
|
|
797
797
|
color: o.color,
|
|
798
798
|
type: o.type
|
|
799
|
-
}))),
|
|
799
|
+
}))), gl.value += 1;
|
|
800
800
|
}
|
|
801
|
-
function
|
|
801
|
+
function Ia(l) {
|
|
802
802
|
if (!ie.value.length)
|
|
803
803
|
return t.value.debug && console.warn("VueUiXy - There are no series to show."), null;
|
|
804
|
-
const o = ie.value.find((e) => e.name ===
|
|
805
|
-
return o || (t.value.debug && console.warn(`VueUiXy - Series name not found "${
|
|
804
|
+
const o = ie.value.find((e) => e.name === l);
|
|
805
|
+
return o || (t.value.debug && console.warn(`VueUiXy - Series name not found "${l}"`), null);
|
|
806
806
|
}
|
|
807
|
-
function su(
|
|
808
|
-
const o =
|
|
807
|
+
function su(l) {
|
|
808
|
+
const o = Ia(l);
|
|
809
809
|
o !== null && G.value.includes(o.id) && Mt({ id: o.id });
|
|
810
810
|
}
|
|
811
|
-
function nu(
|
|
812
|
-
const o =
|
|
811
|
+
function nu(l) {
|
|
812
|
+
const o = Ia(l);
|
|
813
813
|
o !== null && (G.value.includes(o.id) || Mt({ id: o.id }));
|
|
814
814
|
}
|
|
815
815
|
const iu = b(() => {
|
|
816
|
-
const
|
|
817
|
-
return `${
|
|
818
|
-
}),
|
|
819
|
-
linePlot:
|
|
816
|
+
const l = t.value.chart.title.text || "Chart visualization", o = t.value.chart.title.subtitle.text || "";
|
|
817
|
+
return `${l}. ${o}`;
|
|
818
|
+
}), Pa = b(() => ({
|
|
819
|
+
linePlot: $.value > t.value.line.dot.hideAboveMaxSerieLength
|
|
820
820
|
})), ru = b(() => t.value.chart.userOptions.show && (!t.value.chart.title.show || !t.value.chart.title.text)), cu = b(() => {
|
|
821
821
|
if (Array.isArray(t.value.chart.highlightArea))
|
|
822
822
|
return t.value.chart.highlightArea.map((o) => {
|
|
@@ -826,23 +826,23 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
826
826
|
span: o.from === e ? 1 : e < o.from ? 0 : e - o.from + 1
|
|
827
827
|
};
|
|
828
828
|
});
|
|
829
|
-
const
|
|
829
|
+
const l = {
|
|
830
830
|
...t.value.chart.highlightArea,
|
|
831
831
|
to: Math.min(t.value.chart.highlightArea.to, ze.value - 1)
|
|
832
832
|
};
|
|
833
|
-
return [{ ...
|
|
834
|
-
}),
|
|
835
|
-
...
|
|
836
|
-
series: Fe(
|
|
833
|
+
return [{ ...l, span: l.from === l.to ? 1 : l.to < l.from ? 0 : l.to - l.from + 1 }];
|
|
834
|
+
}), Oa = b(() => Hl.value ? pe.value.map((l, o) => ({
|
|
835
|
+
...l,
|
|
836
|
+
series: Fe(l.series),
|
|
837
837
|
id: `uniqueId_${o}`,
|
|
838
|
-
color:
|
|
839
|
-
})) : pe.value), vu = b(() => ye.value.map((
|
|
840
|
-
const o =
|
|
838
|
+
color: Nl(l.color ? l.color : Yt.value[o] ? Yt.value[o] : Fl[o])
|
|
839
|
+
})) : pe.value), vu = b(() => ye.value.map((l) => {
|
|
840
|
+
const o = l.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
|
|
841
841
|
return {
|
|
842
|
-
id:
|
|
843
|
-
name:
|
|
844
|
-
color:
|
|
845
|
-
values: Jo(
|
|
842
|
+
id: l.id,
|
|
843
|
+
name: l.name,
|
|
844
|
+
color: l.color,
|
|
845
|
+
values: Jo($.value, o)
|
|
846
846
|
};
|
|
847
847
|
})), du = b(() => ({
|
|
848
848
|
responsiveBreakpoint: t.value.table.responsiveBreakpoint,
|
|
@@ -853,7 +853,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
853
853
|
fontFamily: t.value.chart.fontFamily,
|
|
854
854
|
prefix: t.value.chart.labels.prefix,
|
|
855
855
|
suffix: t.value.chart.labels.suffix,
|
|
856
|
-
colNames: se.value.map((
|
|
856
|
+
colNames: se.value.map((l, o) => t.value.table.useDefaultTimeFormat ? l.text : rt.value(o + m.value.start, t.value.table.timeFormat)),
|
|
857
857
|
thead: {
|
|
858
858
|
backgroundColor: t.value.table.th.backgroundColor,
|
|
859
859
|
color: t.value.table.th.color,
|
|
@@ -870,64 +870,64 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
870
870
|
sparkline: {
|
|
871
871
|
animation: { show: !1 }
|
|
872
872
|
}
|
|
873
|
-
})), q = b(() => t.value.chart.grid.position === "middle" ? 0 : c.value.width /
|
|
874
|
-
function hu(
|
|
873
|
+
})), q = b(() => t.value.chart.grid.position === "middle" ? 0 : c.value.width / $.value / 2), Ue = b(() => Xu(ie.value.filter((l) => !G.value.includes(l.id))));
|
|
874
|
+
function hu(l, o) {
|
|
875
875
|
const e = /* @__PURE__ */ Object.create(null);
|
|
876
|
-
for (let s = 0; s <
|
|
877
|
-
const
|
|
878
|
-
e[n] || (e[n] = []), e[n].push(
|
|
876
|
+
for (let s = 0; s < l.length; s += 1) {
|
|
877
|
+
const a = l[s], n = String(o(a));
|
|
878
|
+
e[n] || (e[n] = []), e[n].push(a);
|
|
879
879
|
}
|
|
880
880
|
return e;
|
|
881
881
|
}
|
|
882
|
-
const
|
|
883
|
-
const
|
|
884
|
-
for (const [e, s] of Object.entries(
|
|
885
|
-
const
|
|
882
|
+
const L = b(() => {
|
|
883
|
+
const l = hu(Ue.value, (e) => e.scaleLabel), o = {};
|
|
884
|
+
for (const [e, s] of Object.entries(l)) {
|
|
885
|
+
const a = s.flatMap((n) => n.absoluteValues);
|
|
886
886
|
o[e] = {
|
|
887
|
-
min: Math.min(...
|
|
888
|
-
max: Math.max(...
|
|
889
|
-
groupId: `scale_group_${
|
|
887
|
+
min: Math.min(...a) || 0,
|
|
888
|
+
max: Math.max(...a) || 1,
|
|
889
|
+
groupId: `scale_group_${Pl()}`
|
|
890
890
|
};
|
|
891
891
|
}
|
|
892
892
|
return o;
|
|
893
893
|
}), fu = b(() => {
|
|
894
|
-
const
|
|
895
|
-
return c.value.width /
|
|
896
|
-
}),
|
|
894
|
+
const l = Ve.value.filter((o) => o.type === "bar").filter((o) => !G.value.includes(o.id)).length;
|
|
895
|
+
return c.value.width / $.value / l - el.value * l;
|
|
896
|
+
}), el = b(() => J.value.line * t.value.bar.periodGap), tl = b(() => Math.max(1e-5, Be() - (f.value.useIndividualScale && f.value.isStacked ? 0 : el.value))), ll = b(() => tl.value * Math.min(Math.abs(t.value.bar.innerGap), 0.95)), mu = b(() => {
|
|
897
897
|
if (!t.value.chart.zoom.minimap.show) return [];
|
|
898
|
-
const
|
|
899
|
-
for (let
|
|
900
|
-
e.push(
|
|
898
|
+
const l = Oa.value.filter((a) => !G.value.includes(a.id)), o = Math.max(...l.map((a) => a.series.length)), e = [];
|
|
899
|
+
for (let a = 0; a < o; a += 1)
|
|
900
|
+
e.push(l.map((n) => n.series[a] || 0).reduce((n, u) => (n || 0) + (u || 0), 0));
|
|
901
901
|
const s = Math.min(...e);
|
|
902
|
-
return e.map((
|
|
903
|
-
}), gu = b(() => t.value.chart.zoom.minimap.show ?
|
|
902
|
+
return e.map((a) => a + (s < 0 ? Math.abs(s) : 0));
|
|
903
|
+
}), gu = b(() => t.value.chart.zoom.minimap.show ? Oa.value.map((o) => ({
|
|
904
904
|
...o,
|
|
905
905
|
isVisible: !G.value.includes(o.id)
|
|
906
|
-
})) : []), Ze = b(() => ye.value.map((
|
|
907
|
-
slotAbsoluteIndex:
|
|
908
|
-
shape:
|
|
909
|
-
name:
|
|
910
|
-
color:
|
|
911
|
-
type:
|
|
912
|
-
value:
|
|
913
|
-
comments:
|
|
914
|
-
prefix:
|
|
915
|
-
suffix:
|
|
916
|
-
}))),
|
|
917
|
-
y:
|
|
918
|
-
value:
|
|
906
|
+
})) : []), Ze = b(() => ye.value.map((l) => ({
|
|
907
|
+
slotAbsoluteIndex: l.slotAbsoluteIndex,
|
|
908
|
+
shape: l.shape || null,
|
|
909
|
+
name: l.name,
|
|
910
|
+
color: l.color,
|
|
911
|
+
type: l.type,
|
|
912
|
+
value: l.absoluteValues.find((o, e) => e === _.value),
|
|
913
|
+
comments: l.comments || [],
|
|
914
|
+
prefix: l.prefix || t.value.chart.labels.prefix,
|
|
915
|
+
suffix: l.suffix || t.value.chart.labels.suffix
|
|
916
|
+
}))), Na = b(() => Ae.value.ticks.map((l) => ({
|
|
917
|
+
y: l >= 0 ? he.value - c.value.height * Ge(l) : he.value + c.value.height * Ge(Math.abs(l)),
|
|
918
|
+
value: l,
|
|
919
919
|
prefix: t.value.chart.labels.prefix,
|
|
920
920
|
suffix: t.value.chart.labels.suffix
|
|
921
|
-
}))),
|
|
922
|
-
const
|
|
923
|
-
if (!
|
|
924
|
-
const o =
|
|
921
|
+
}))), Fa = b(() => {
|
|
922
|
+
const l = t.value.chart.annotations;
|
|
923
|
+
if (!l || !Array.isArray(l) || l.every((V) => !V.show)) return [];
|
|
924
|
+
const o = l.filter(
|
|
925
925
|
(V) => V.show && (V.yAxis.yTop != null || V.yAxis.yBottom != null)
|
|
926
926
|
);
|
|
927
927
|
if (!o.length) return [];
|
|
928
|
-
const { left: e, right: s } = c.value,
|
|
928
|
+
const { left: e, right: s } = c.value, a = he.value, n = c.value.height, u = Ae.value.min, M = Ae.value.max - u, I = (V) => {
|
|
929
929
|
const D = (V - 0) / M;
|
|
930
|
-
return
|
|
930
|
+
return a - D * n;
|
|
931
931
|
};
|
|
932
932
|
return o.map((V) => {
|
|
933
933
|
const { yAxis: { yTop: D, yBottom: N, label: p } } = V, te = D != null && N != null && D !== N, B = D == null ? null : I(D), Q = N == null ? null : I(N), Y = qo(p.fontSize);
|
|
@@ -938,7 +938,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
938
938
|
const me = we - U * 0.75 - p.padding?.top;
|
|
939
939
|
return {
|
|
940
940
|
show: ![B, Q, me].includes(NaN),
|
|
941
|
-
id: `annotation_y_${
|
|
941
|
+
id: `annotation_y_${Pl()}`,
|
|
942
942
|
hasArea: te,
|
|
943
943
|
areaHeight: te ? Math.abs(B - Q) : 0,
|
|
944
944
|
yTop: B,
|
|
@@ -961,30 +961,30 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
961
961
|
};
|
|
962
962
|
});
|
|
963
963
|
});
|
|
964
|
-
function
|
|
965
|
-
const e =
|
|
966
|
-
let
|
|
967
|
-
return xe(
|
|
964
|
+
function Va(l, o) {
|
|
965
|
+
const e = l[o - 1], s = l[o + 1];
|
|
966
|
+
let a = !!e && !!s && e.value == null && s.value == null || !e && !!s && s.value == null || !!e && !s && e.value == null;
|
|
967
|
+
return xe(l[o].value) && a && t.value.line.cutNullValues;
|
|
968
968
|
}
|
|
969
|
-
function $
|
|
970
|
-
datapoint:
|
|
969
|
+
function $l({
|
|
970
|
+
datapoint: l,
|
|
971
971
|
totalSeries: o,
|
|
972
972
|
gap: e,
|
|
973
973
|
usableHeight: s,
|
|
974
|
-
autoScaleValueMin:
|
|
974
|
+
autoScaleValueMin: a,
|
|
975
975
|
autoScaleValueMax: n,
|
|
976
976
|
individualExtremes: u,
|
|
977
|
-
forceExactScale:
|
|
977
|
+
forceExactScale: S = !1
|
|
978
978
|
}) {
|
|
979
|
-
const M =
|
|
979
|
+
const M = l.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, I = 1.0000001, V = S || !t.value.chart.grid.labels.yAxis.useNiceScale ? so : uo, D = u.max === u.min ? u.max * I : u.max, N = n === a ? n * I : n, p = V(
|
|
980
980
|
u.min,
|
|
981
981
|
D,
|
|
982
982
|
M
|
|
983
983
|
), te = V(
|
|
984
|
-
|
|
984
|
+
a,
|
|
985
985
|
N,
|
|
986
986
|
M
|
|
987
|
-
), B = p.min >= 0 ? 0 : Math.abs(p.min), Q = 0, Y = p.max + Math.abs(B), H = te.max + Math.abs(Q), U =
|
|
987
|
+
), B = p.min >= 0 ? 0 : Math.abs(p.min), Q = 0, Y = p.max + Math.abs(B), H = te.max + Math.abs(Q), U = l.stackIndex, j = o - 1 - U, K = f.value.isStacked ? 1 - l.cumulatedStackRatio : 0, we = f.value.isStacked ? s * K + e * j : 0, Z = f.value.isStacked ? s * l.stackRatio : c.value.height, me = c.value?.bottom - we - Z * B / Y, E = c.value?.bottom - we - Z * Q / H;
|
|
988
988
|
return {
|
|
989
989
|
scaleSteps: M,
|
|
990
990
|
individualScale: p,
|
|
@@ -1000,10 +1000,10 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1000
1000
|
};
|
|
1001
1001
|
}
|
|
1002
1002
|
const ke = b(() => {
|
|
1003
|
-
const
|
|
1004
|
-
return
|
|
1005
|
-
|
|
1006
|
-
const M =
|
|
1003
|
+
const l = Ue.value.filter((u) => ["bar", "line", "plot"].includes(u.type)), o = l.length, e = t.value.chart.grid.labels.yAxis.gap, a = f.value.isStacked ? e * (o - 1) : 0, n = c.value.height - a;
|
|
1004
|
+
return l.filter((u) => u.type === "bar").map((u, S) => {
|
|
1005
|
+
Sl(u);
|
|
1006
|
+
const M = L.value[u.scaleLabel].min, I = L.value[u.scaleLabel].max;
|
|
1007
1007
|
u.absoluteValues.filter((R) => ![null, void 0].includes(R)).map((R) => (R - M) / (I - M));
|
|
1008
1008
|
const V = {
|
|
1009
1009
|
valueMin: M,
|
|
@@ -1021,7 +1021,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1021
1021
|
individualHeight: H,
|
|
1022
1022
|
zeroPosition: U,
|
|
1023
1023
|
autoScaleZeroPosition: j
|
|
1024
|
-
} = $
|
|
1024
|
+
} = $l({
|
|
1025
1025
|
datapoint: u,
|
|
1026
1026
|
totalSeries: o,
|
|
1027
1027
|
gap: e,
|
|
@@ -1030,7 +1030,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1030
1030
|
autoScaleValueMax: V.valueMax,
|
|
1031
1031
|
individualExtremes: D
|
|
1032
1032
|
}), K = ie.value.filter((R) => R.type === "bar").filter((R) => !G.value.includes(R.id)).length, we = u.series.map((R, re) => {
|
|
1033
|
-
const Tt = f.value.useIndividualScale ? (u.absoluteValues[re] + te) / B : Ge(R), Ke = f.value.useIndividualScale && f.value.isStacked ? c.value?.left + c.value.width /
|
|
1033
|
+
const Tt = f.value.useIndividualScale ? (u.absoluteValues[re] + te) / B : Ge(R), Ke = f.value.useIndividualScale && f.value.isStacked ? c.value?.left + c.value.width / $.value * re : c.value?.left + J.value.bar * S + J.value.bar * re * K - fu.value / 2 - S * el.value;
|
|
1034
1034
|
return {
|
|
1035
1035
|
yOffset: O(Y),
|
|
1036
1036
|
individualHeight: O(H),
|
|
@@ -1042,7 +1042,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1042
1042
|
comment: u.comments && u.comments.slice(m.value.start, m.value.end)[re] || ""
|
|
1043
1043
|
};
|
|
1044
1044
|
}), Z = u.absoluteValues.map((R) => p.min >= 0 ? (R - Math.abs(p.min)) / (p.max - Math.abs(p.min)) : (R + Math.abs(p.min)) / (p.max + Math.abs(p.min))), me = u.series.map((R, re) => {
|
|
1045
|
-
const Tt = f.value.useIndividualScale && f.value.isStacked ? c.value?.left + c.value.width /
|
|
1045
|
+
const Tt = f.value.useIndividualScale && f.value.isStacked ? c.value?.left + c.value.width / $.value * re : c.value?.left - J.value.bar / 2 + J.value.bar * S + J.value.bar * re * ie.value.filter((Ke) => Ke.type === "bar").filter((Ke) => !G.value.includes(Ke.id)).length;
|
|
1046
1046
|
return {
|
|
1047
1047
|
yOffset: O(Y),
|
|
1048
1048
|
individualHeight: O(H),
|
|
@@ -1059,7 +1059,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1059
1059
|
prefix: u.prefix || t.value.chart.labels.prefix,
|
|
1060
1060
|
suffix: u.suffix || t.value.chart.labels.suffix,
|
|
1061
1061
|
datapoint: u
|
|
1062
|
-
})),
|
|
1062
|
+
})), le = p.ticks.map((R) => {
|
|
1063
1063
|
const re = (R - p.min) / (p.max - p.min);
|
|
1064
1064
|
return {
|
|
1065
1065
|
y: R >= 0 ? j - H * re : j + H * re,
|
|
@@ -1069,24 +1069,24 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1069
1069
|
datapoint: u
|
|
1070
1070
|
};
|
|
1071
1071
|
});
|
|
1072
|
-
return
|
|
1072
|
+
return L.value[u.scaleLabel].name = u.name, L.value[u.scaleLabel].groupName = u.scaleLabel, L.value[u.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || u.color, L.value[u.scaleLabel].color = u.color, L.value[u.scaleLabel].scaleYLabels = u.autoScaling ? le : E, L.value[u.scaleLabel].zeroPosition = u.autoScaling ? j : U, L.value[u.scaleLabel].individualMax = u.autoScaling ? Q : B, L.value[u.scaleLabel].scaleLabel = u.scaleLabel, L.value[u.scaleLabel].id = u.id, L.value[u.scaleLabel].yOffset = Y, L.value[u.scaleLabel].individualHeight = H, L.value[u.scaleLabel].autoScaleYLabels = le, L.value[u.scaleLabel].unique = Ue.value.filter((R) => R.scaleLabel === u.scaleLabel).length === 1, {
|
|
1073
1073
|
...u,
|
|
1074
1074
|
yOffset: Y,
|
|
1075
|
-
autoScaleYLabels:
|
|
1075
|
+
autoScaleYLabels: le,
|
|
1076
1076
|
individualHeight: H,
|
|
1077
|
-
scaleYLabels: u.autoScaling ?
|
|
1077
|
+
scaleYLabels: u.autoScaling ? le : E,
|
|
1078
1078
|
individualScale: u.autoScaling ? p : N,
|
|
1079
1079
|
individualMax: u.autoScaling ? Q : B,
|
|
1080
1080
|
zeroPosition: u.autoScaling ? j : U,
|
|
1081
1081
|
plots: u.autoScaling ? me : we,
|
|
1082
|
-
groupId:
|
|
1082
|
+
groupId: L.value[u.scaleLabel].groupId
|
|
1083
1083
|
};
|
|
1084
1084
|
});
|
|
1085
1085
|
}), oe = b(() => {
|
|
1086
|
-
const
|
|
1087
|
-
return
|
|
1088
|
-
|
|
1089
|
-
const M =
|
|
1086
|
+
const l = Ue.value.filter((u) => ["bar", "line", "plot"].includes(u.type)), o = l.length, e = t.value.chart.grid.labels.yAxis.gap, a = f.value.isStacked ? e * (o - 1) : 0, n = c.value.height - a;
|
|
1087
|
+
return l.filter((u) => u.type === "line").map((u, S) => {
|
|
1088
|
+
Sl(u);
|
|
1089
|
+
const M = L.value[u.scaleLabel].min, I = L.value[u.scaleLabel].max;
|
|
1090
1090
|
u.absoluteValues.filter((A) => ![null, void 0].includes(A)).map((A) => (A - M) / (I - M));
|
|
1091
1091
|
const V = {
|
|
1092
1092
|
valueMin: M,
|
|
@@ -1104,7 +1104,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1104
1104
|
individualHeight: H,
|
|
1105
1105
|
zeroPosition: U,
|
|
1106
1106
|
autoScaleZeroPosition: j
|
|
1107
|
-
} = $
|
|
1107
|
+
} = $l({
|
|
1108
1108
|
datapoint: u,
|
|
1109
1109
|
totalSeries: o,
|
|
1110
1110
|
gap: e,
|
|
@@ -1130,13 +1130,13 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1130
1130
|
y: O(c.value?.bottom - Y - (H * we[ce] || 0)),
|
|
1131
1131
|
value: u.absoluteValues[ce],
|
|
1132
1132
|
comment: u.comments && u.comments.slice(m.value.start, m.value.end)[ce] || ""
|
|
1133
|
-
}), me = u.dashIndices && Array.isArray(u.dashIndices) && u?.dashIndices?.length > 0, E = t.value.line.cutNullValues ? no(K) : io(K.filter((A) => A.value !== null)),
|
|
1133
|
+
}), me = u.dashIndices && Array.isArray(u.dashIndices) && u?.dashIndices?.length > 0, E = t.value.line.cutNullValues ? no(K) : io(K.filter((A) => A.value !== null)), le = t.value.line.cutNullValues ? no(Z) : io(Z.filter((A) => A.value !== null)), R = t.value.line.cutNullValues ? ro(K) : co(K.filter((A) => A.value !== null)), re = t.value.line.cutNullValues ? ro(Z) : co(Z.filter((A) => A.value !== null)), Tt = me ? Gu(t.value.line.cutNullValues ? K : K.filter((A) => A.value !== null), u.dashIndices.map((A) => A - m.value.start)) : [], Ke = me ? qu(t.value.line.cutNullValues ? K : K.filter((A) => A.value !== null), u.dashIndices.map((A) => A - m.value.start)) : [], ol = N.ticks.map((A) => ({
|
|
1134
1134
|
y: A >= 0 ? U - H * (A / B) : U + H * Math.abs(A) / B,
|
|
1135
1135
|
value: A,
|
|
1136
1136
|
prefix: u.prefix || t.value.chart.labels.prefix,
|
|
1137
1137
|
suffix: u.suffix || t.value.chart.labels.suffix,
|
|
1138
1138
|
datapoint: u
|
|
1139
|
-
})),
|
|
1139
|
+
})), ul = p.ticks.map((A) => {
|
|
1140
1140
|
const ce = (A - p.min) / (p.max - p.min);
|
|
1141
1141
|
return {
|
|
1142
1142
|
y: A >= 0 ? j - H * ce : j + H * ce,
|
|
@@ -1146,25 +1146,25 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1146
1146
|
datapoint: u
|
|
1147
1147
|
};
|
|
1148
1148
|
});
|
|
1149
|
-
|
|
1149
|
+
L.value[u.scaleLabel].name = u.name, L.value[u.scaleLabel].groupName = u.scaleLabel, L.value[u.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || u.color, L.value[u.scaleLabel].color = u.color, L.value[u.scaleLabel].scaleYLabels = u.autoScaling ? ul : ol, L.value[u.scaleLabel].zeroPosition = u.autoScaling ? j : U, L.value[u.scaleLabel].individualMax = u.autoScaling ? Q : B, L.value[u.scaleLabel].scaleLabel = u.scaleLabel, L.value[u.scaleLabel].id = u.id, L.value[u.scaleLabel].yOffset = Y, L.value[u.scaleLabel].individualHeight = H, L.value[u.scaleLabel].autoScaleYLabels = ul, L.value[u.scaleLabel].unique = Ue.value.filter((A) => A.scaleLabel === u.scaleLabel).length === 1;
|
|
1150
1150
|
const Pu = f.value.useIndividualScale ? u.autoScaling ? j : U : Do.value, zt = Math.max(
|
|
1151
1151
|
Math.max(
|
|
1152
|
-
u.autoScaling ? j :
|
|
1152
|
+
u.autoScaling ? j : ol.at(-1) ? ol.at(-1).y : 0,
|
|
1153
1153
|
c.value?.top
|
|
1154
1154
|
),
|
|
1155
1155
|
Pu
|
|
1156
1156
|
);
|
|
1157
1157
|
return {
|
|
1158
1158
|
...u,
|
|
1159
|
-
temperatureColors: u.temperatureColors ? u.temperatureColors.map((A) =>
|
|
1159
|
+
temperatureColors: u.temperatureColors ? u.temperatureColors.map((A) => Nl(A)) : null,
|
|
1160
1160
|
yOffset: Y,
|
|
1161
|
-
autoScaleYLabels:
|
|
1161
|
+
autoScaleYLabels: ul,
|
|
1162
1162
|
individualHeight: H,
|
|
1163
|
-
scaleYLabels: u.autoScaling ?
|
|
1163
|
+
scaleYLabels: u.autoScaling ? ul : ol,
|
|
1164
1164
|
individualScale: u.autoScaling ? p : N,
|
|
1165
1165
|
individualMax: u.autoScaling ? Q : B,
|
|
1166
1166
|
zeroPosition: u.autoScaling ? j : U,
|
|
1167
|
-
curve: u.autoScaling ?
|
|
1167
|
+
curve: u.autoScaling ? le : E,
|
|
1168
1168
|
plots: u.autoScaling ? Z : K,
|
|
1169
1169
|
dashedStraight: Tt,
|
|
1170
1170
|
dashedSmooth: Ke,
|
|
@@ -1182,17 +1182,17 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1182
1182
|
t.value.line.cutNullValues
|
|
1183
1183
|
) : [],
|
|
1184
1184
|
straight: u.autoScaling ? re : R,
|
|
1185
|
-
groupId:
|
|
1185
|
+
groupId: L.value[u.scaleLabel].groupId
|
|
1186
1186
|
};
|
|
1187
1187
|
});
|
|
1188
1188
|
}), fe = b(() => {
|
|
1189
|
-
const
|
|
1190
|
-
return
|
|
1191
|
-
|
|
1192
|
-
const
|
|
1193
|
-
u.absoluteValues.filter((E) => ![null, void 0].includes(E)).map((E) => (E -
|
|
1189
|
+
const l = Ue.value.filter((u) => ["bar", "line", "plot"].includes(u.type)), o = l.length, e = t.value.chart.grid.labels.yAxis.gap, a = f.value.isStacked ? e * (o - 1) : 0, n = c.value.height - a;
|
|
1190
|
+
return l.filter((u) => u.type === "plot").map((u) => {
|
|
1191
|
+
Sl(u);
|
|
1192
|
+
const S = L.value[u.scaleLabel].min, M = L.value[u.scaleLabel].max;
|
|
1193
|
+
u.absoluteValues.filter((E) => ![null, void 0].includes(E)).map((E) => (E - S) / (M - S));
|
|
1194
1194
|
const I = {
|
|
1195
|
-
valueMin:
|
|
1195
|
+
valueMin: S,
|
|
1196
1196
|
valueMax: M
|
|
1197
1197
|
}, V = {
|
|
1198
1198
|
max: u.scaleMax || Math.max(...u.absoluteValues) || 1,
|
|
@@ -1207,7 +1207,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1207
1207
|
individualHeight: Y,
|
|
1208
1208
|
zeroPosition: H,
|
|
1209
1209
|
autoScaleZeroPosition: U
|
|
1210
|
-
} = $
|
|
1210
|
+
} = $l({
|
|
1211
1211
|
datapoint: u,
|
|
1212
1212
|
totalSeries: o,
|
|
1213
1213
|
gap: e,
|
|
@@ -1216,19 +1216,19 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1216
1216
|
autoScaleValueMax: I.valueMax,
|
|
1217
1217
|
individualExtremes: V,
|
|
1218
1218
|
forceExactScale: !0
|
|
1219
|
-
}), j = u.series.map((E,
|
|
1220
|
-
const R = f.value.useIndividualScale ? (u.absoluteValues[
|
|
1219
|
+
}), j = u.series.map((E, le) => {
|
|
1220
|
+
const R = f.value.useIndividualScale ? (u.absoluteValues[le] + Math.abs(p)) / te : Ge(E);
|
|
1221
1221
|
return {
|
|
1222
|
-
x: O(c.value?.left + J.value.plot / 2 + J.value.plot *
|
|
1222
|
+
x: O(c.value?.left + J.value.plot / 2 + J.value.plot * le),
|
|
1223
1223
|
y: O(c.value?.bottom - Q - Y * R),
|
|
1224
|
-
value: u.absoluteValues[
|
|
1225
|
-
comment: u.comments && u.comments.slice(m.value.start, m.value.end)[
|
|
1224
|
+
value: u.absoluteValues[le],
|
|
1225
|
+
comment: u.comments && u.comments.slice(m.value.start, m.value.end)[le] || ""
|
|
1226
1226
|
};
|
|
1227
|
-
}), K = u.absoluteValues.map((E) => N.min >= 0 ? (E - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (E + Math.abs(N.min)) / (N.max + Math.abs(N.min))), we = u.series.map((E,
|
|
1228
|
-
x: O(c.value?.left + J.value.plot / 2 + J.value.plot *
|
|
1229
|
-
y: O(c.value?.bottom - Q - (Y * K[
|
|
1230
|
-
value: u.absoluteValues[
|
|
1231
|
-
comment: u.comments && u.comments.slice(m.value.start, m.value.end)[
|
|
1227
|
+
}), K = u.absoluteValues.map((E) => N.min >= 0 ? (E - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (E + Math.abs(N.min)) / (N.max + Math.abs(N.min))), we = u.series.map((E, le) => ({
|
|
1228
|
+
x: O(c.value?.left + J.value.plot / 2 + J.value.plot * le),
|
|
1229
|
+
y: O(c.value?.bottom - Q - (Y * K[le] || 0)),
|
|
1230
|
+
value: u.absoluteValues[le],
|
|
1231
|
+
comment: u.comments && u.comments.slice(m.value.start, m.value.end)[le] || ""
|
|
1232
1232
|
})), Z = D.ticks.map((E) => ({
|
|
1233
1233
|
y: E >= 0 ? H - Y * (E / te) : H + Y * Math.abs(E) / te,
|
|
1234
1234
|
value: E,
|
|
@@ -1236,16 +1236,16 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1236
1236
|
suffix: u.suffix || t.value.chart.labels.suffix,
|
|
1237
1237
|
datapoint: u
|
|
1238
1238
|
})), me = N.ticks.map((E) => {
|
|
1239
|
-
const
|
|
1239
|
+
const le = (E - N.min) / (N.max - N.min);
|
|
1240
1240
|
return {
|
|
1241
|
-
y: E >= 0 ? U - Y *
|
|
1241
|
+
y: E >= 0 ? U - Y * le : U + Y * le,
|
|
1242
1242
|
value: E,
|
|
1243
1243
|
prefix: u.prefix || t.value.chart.labels.prefix,
|
|
1244
1244
|
suffix: u.suffix || t.value.chart.labels.suffix,
|
|
1245
1245
|
datapoint: u
|
|
1246
1246
|
};
|
|
1247
1247
|
});
|
|
1248
|
-
return
|
|
1248
|
+
return L.value[u.scaleLabel].name = u.name, L.value[u.scaleLabel].groupName = u.scaleLabel, L.value[u.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || u.color, L.value[u.scaleLabel].color = u.color, L.value[u.scaleLabel].scaleYLabels = u.autoScaling ? me : Z, L.value[u.scaleLabel].zeroPosition = u.autoScaling ? U : H, L.value[u.scaleLabel].individualMax = u.autoScaling ? B : te, L.value[u.scaleLabel].scaleLabel = u.scaleLabel, L.value[u.scaleLabel].id = u.id, L.value[u.scaleLabel].yOffset = Q, L.value[u.scaleLabel].individualHeight = Y, L.value[u.scaleLabel].autoScaleYLabels = me, L.value[u.scaleLabel].unique = Ue.value.filter((E) => E.scaleLabel === u.scaleLabel).length === 1, {
|
|
1249
1249
|
...u,
|
|
1250
1250
|
yOffset: Q,
|
|
1251
1251
|
autoScaleYLabels: me,
|
|
@@ -1255,11 +1255,11 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1255
1255
|
individualMax: u.autoScaling ? B : te,
|
|
1256
1256
|
zeroPosition: u.autoScaling ? U : H,
|
|
1257
1257
|
plots: u.autoScaling ? we : j,
|
|
1258
|
-
groupId:
|
|
1258
|
+
groupId: L.value[u.scaleLabel].groupId
|
|
1259
1259
|
};
|
|
1260
1260
|
});
|
|
1261
1261
|
}), At = b(() => {
|
|
1262
|
-
const
|
|
1262
|
+
const l = oe.value.map((n) => ({
|
|
1263
1263
|
name: n.name,
|
|
1264
1264
|
color: n.color,
|
|
1265
1265
|
scale: n.individualScale,
|
|
@@ -1294,10 +1294,10 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1294
1294
|
id: n.id,
|
|
1295
1295
|
yOffset: n.yOffset || 0,
|
|
1296
1296
|
individualHeight: n.individualHeight || c.value.height
|
|
1297
|
-
})), s = f.value.useIndividualScale && !f.value.isStacked ? Object.values(
|
|
1297
|
+
})), s = f.value.useIndividualScale && !f.value.isStacked ? Object.values(L.value) : [...l, ...o, ...e], a = s.flatMap((n) => n).length;
|
|
1298
1298
|
return s.flatMap((n, u) => {
|
|
1299
|
-
let
|
|
1300
|
-
|
|
1299
|
+
let S = 0;
|
|
1300
|
+
S = f.value.isStacked ? c.value?.left : c.value?.left / a * (u + 1);
|
|
1301
1301
|
const M = f.value.useIndividualScale && !f.value.isStacked ? n.unique ? n.name : n.groupName : n.name;
|
|
1302
1302
|
return {
|
|
1303
1303
|
unique: n.unique,
|
|
@@ -1314,21 +1314,21 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1314
1314
|
scale: n.scale,
|
|
1315
1315
|
yOffset: n.yOffset,
|
|
1316
1316
|
individualHeight: n.individualHeight,
|
|
1317
|
-
x:
|
|
1317
|
+
x: S,
|
|
1318
1318
|
yLabels: n.scaleYLabels || n.scale.ticks.map((I) => ({
|
|
1319
1319
|
y: I >= 0 ? n.zero - n.individualHeight * (I / n.max) : n.zero + n.individualHeight * Math.abs(I) / n.max,
|
|
1320
1320
|
value: I
|
|
1321
1321
|
}))
|
|
1322
1322
|
};
|
|
1323
1323
|
});
|
|
1324
|
-
}),
|
|
1325
|
-
const
|
|
1324
|
+
}), Ba = b(() => {
|
|
1325
|
+
const l = t.value.line.interLine || {}, o = l.pairs || [], e = l.colors || [];
|
|
1326
1326
|
if (!o.length) return [];
|
|
1327
1327
|
const s = [];
|
|
1328
|
-
return o.forEach((
|
|
1329
|
-
const [u,
|
|
1330
|
-
if (!u || !
|
|
1331
|
-
const M = oe.value.find((p) => p.name === u), I = oe.value.find((p) => p.name ===
|
|
1328
|
+
return o.forEach((a, n) => {
|
|
1329
|
+
const [u, S] = Array.isArray(a) ? a : [a.a, a.b];
|
|
1330
|
+
if (!u || !S) return;
|
|
1331
|
+
const M = oe.value.find((p) => p.name === u), I = oe.value.find((p) => p.name === S);
|
|
1332
1332
|
if (!M || !I || M.type !== "line" || I.type !== "line") return;
|
|
1333
1333
|
const V = e?.[n]?.[0] ?? M.color, D = e?.[n]?.[1] ?? I.color;
|
|
1334
1334
|
Zu({
|
|
@@ -1341,10 +1341,10 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1341
1341
|
sampleStepPx: 2,
|
|
1342
1342
|
cutNullValues: t.value.line.cutNullValues
|
|
1343
1343
|
}).forEach((p, te) => {
|
|
1344
|
-
s.push({ ...p, key: `inter_${u}_${
|
|
1344
|
+
s.push({ ...p, key: `inter_${u}_${S}_${n}_${te}` });
|
|
1345
1345
|
});
|
|
1346
1346
|
}), s;
|
|
1347
|
-
}),
|
|
1347
|
+
}), Ra = b(() => ({
|
|
1348
1348
|
datapoint: Ze.value,
|
|
1349
1349
|
seriesIndex: _.value,
|
|
1350
1350
|
series: ie.value,
|
|
@@ -1352,30 +1352,30 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1352
1352
|
lines: oe.value,
|
|
1353
1353
|
plots: fe.value,
|
|
1354
1354
|
config: t.value
|
|
1355
|
-
})),
|
|
1356
|
-
let
|
|
1357
|
-
|
|
1358
|
-
const
|
|
1355
|
+
})), Ha = g({ months: [], shortMonths: [], days: [], shortDays: [] });
|
|
1356
|
+
let Da = 0;
|
|
1357
|
+
sl(() => {
|
|
1358
|
+
const l = ++Da, o = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter;
|
|
1359
1359
|
(async () => {
|
|
1360
1360
|
const e = await po(o.locale).catch(() => po("en"));
|
|
1361
|
-
|
|
1361
|
+
l === Da && (Ha.value = e.data);
|
|
1362
1362
|
})();
|
|
1363
1363
|
});
|
|
1364
|
-
const
|
|
1365
|
-
const
|
|
1366
|
-
useUTC:
|
|
1367
|
-
locale:
|
|
1368
|
-
januaryAsYear:
|
|
1364
|
+
const rt = b(() => {
|
|
1365
|
+
const l = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter, o = os({
|
|
1366
|
+
useUTC: l.useUTC,
|
|
1367
|
+
locale: Ha.value,
|
|
1368
|
+
januaryAsYear: l.januaryAsYear
|
|
1369
1369
|
});
|
|
1370
1370
|
return (e, s) => {
|
|
1371
1371
|
const n = t.value.chart.grid.labels.xAxisLabels.values?.[e];
|
|
1372
1372
|
return n == null ? "" : o.formatDate(new Date(n), s);
|
|
1373
1373
|
};
|
|
1374
|
-
}),
|
|
1375
|
-
text:
|
|
1374
|
+
}), Wa = b(() => (t.value.chart.grid.labels.xAxisLabels.values || []).map((o, e) => ({
|
|
1375
|
+
text: rt.value(e, t.value.chart.zoom.timeFormat),
|
|
1376
1376
|
absoluteIndex: e
|
|
1377
1377
|
}))), bu = b(() => {
|
|
1378
|
-
let
|
|
1378
|
+
let l = "", o = Ze.value.map((a) => a.value).filter((a) => nl(a) && a !== null).reduce((a, n) => Math.abs(a) + Math.abs(n), 0);
|
|
1379
1379
|
const e = se.value[_.value], s = t.value.chart.tooltip.customFormat;
|
|
1380
1380
|
if (fo(s) && Ku(() => s({
|
|
1381
1381
|
absoluteIndex: _.value + m.value.start,
|
|
@@ -1400,101 +1400,101 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1400
1400
|
dateLabel: e
|
|
1401
1401
|
});
|
|
1402
1402
|
if (e && e.text && t.value.chart.tooltip.showTimeLabel) {
|
|
1403
|
-
const
|
|
1404
|
-
|
|
1403
|
+
const a = rt.value(_.value + m.value.start, t.value.chart.tooltip.timeFormat);
|
|
1404
|
+
l += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${t.value.chart.tooltip.borderColor}; width:100%">${t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.tooltip.useDefaultTimeFormat ? a : e.text}</div>`;
|
|
1405
1405
|
}
|
|
1406
|
-
return Ze.value.forEach((
|
|
1407
|
-
if (
|
|
1406
|
+
return Ze.value.forEach((a) => {
|
|
1407
|
+
if (nl(a.value)) {
|
|
1408
1408
|
let n = "", u = "";
|
|
1409
|
-
switch (
|
|
1409
|
+
switch (pt.value[a.type]) {
|
|
1410
1410
|
case "bar":
|
|
1411
|
-
n = `<svg viewBox="0 0 40 40" height="14" width="14">${
|
|
1411
|
+
n = `<svg viewBox="0 0 40 40" height="14" width="14">${Rl.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="${Rl.pattern ? `url(#pattern_${z.value}_${a.slotAbsoluteIndex}` : a.color}" /></svg>`;
|
|
1412
1412
|
break;
|
|
1413
1413
|
case "line":
|
|
1414
|
-
!
|
|
1414
|
+
!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape) ? u = `<circle cx="10" cy="8" r="4" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" />` : a.shape === "triangle" ? u = `<path d="${Ie({ 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" ? u = `<path d="${Ie({ 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" ? u = `<path d="${Ie({ 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" ? u = `<path d="${Ie({ 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" ? u = `<path d="${Ie({ 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" && (u = `<polygon stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" points="${mo({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), n = `<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}" />${u}</svg>`;
|
|
1415
1415
|
break;
|
|
1416
1416
|
case "plot":
|
|
1417
|
-
if (!
|
|
1418
|
-
n = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${
|
|
1417
|
+
if (!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape)) {
|
|
1418
|
+
n = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" /></svg>`;
|
|
1419
1419
|
break;
|
|
1420
1420
|
}
|
|
1421
|
-
if (
|
|
1422
|
-
n = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${
|
|
1421
|
+
if (a.shape === "star") {
|
|
1422
|
+
n = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" points="${mo({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
|
|
1423
1423
|
break;
|
|
1424
1424
|
}
|
|
1425
|
-
if (
|
|
1426
|
-
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ie({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${
|
|
1425
|
+
if (a.shape === "triangle") {
|
|
1426
|
+
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ie({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1427
1427
|
break;
|
|
1428
1428
|
}
|
|
1429
|
-
if (
|
|
1430
|
-
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ie({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${
|
|
1429
|
+
if (a.shape === "square") {
|
|
1430
|
+
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ie({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1431
1431
|
break;
|
|
1432
1432
|
}
|
|
1433
|
-
if (
|
|
1434
|
-
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ie({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${
|
|
1433
|
+
if (a.shape === "diamond") {
|
|
1434
|
+
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ie({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1435
1435
|
break;
|
|
1436
1436
|
}
|
|
1437
|
-
if (
|
|
1438
|
-
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ie({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${
|
|
1437
|
+
if (a.shape === "pentagon") {
|
|
1438
|
+
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ie({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1439
1439
|
break;
|
|
1440
1440
|
}
|
|
1441
|
-
if (
|
|
1442
|
-
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ie({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${
|
|
1441
|
+
if (a.shape === "hexagon") {
|
|
1442
|
+
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ie({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1443
1443
|
break;
|
|
1444
1444
|
}
|
|
1445
1445
|
}
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1446
|
+
l += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${n}</div> ${a.name}: <b>${t.value.chart.tooltip.showValue ? ve(
|
|
1447
|
+
a.type === "line" ? t.value.line.labels.formatter : a.type === "bar" ? t.value.bar.labels.formatter : t.value.plot.labels.formatter,
|
|
1448
|
+
a.value,
|
|
1449
1449
|
Pe({
|
|
1450
|
-
p:
|
|
1451
|
-
v:
|
|
1452
|
-
s:
|
|
1450
|
+
p: a.prefix,
|
|
1451
|
+
v: a.value,
|
|
1452
|
+
s: a.suffix,
|
|
1453
1453
|
r: t.value.chart.tooltip.roundingValue
|
|
1454
1454
|
}),
|
|
1455
|
-
{ datapoint:
|
|
1455
|
+
{ datapoint: a }
|
|
1456
1456
|
) : ""}</b> ${t.value.chart.tooltip.showPercentage ? `(${Pe({
|
|
1457
|
-
v: O(Math.abs(
|
|
1457
|
+
v: O(Math.abs(a.value) / o * 100),
|
|
1458
1458
|
s: "%",
|
|
1459
1459
|
r: t.value.chart.tooltip.roundingPercentage
|
|
1460
|
-
})})` : ""}</div>`, t.value.chart.comments.showInTooltip &&
|
|
1460
|
+
})})` : ""}</div>`, t.value.chart.comments.showInTooltip && a.comments.length && a.comments.slice(m.value.start, m.value.end)[_.value] && (l += `<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${a.color}">${a.comments.slice(m.value.start, m.value.end)[_.value]}</div>`);
|
|
1461
1461
|
}
|
|
1462
|
-
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${t.value.chart.tooltip.color}">${
|
|
1463
|
-
}),
|
|
1462
|
+
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${t.value.chart.tooltip.color}">${l}</div>`;
|
|
1463
|
+
}), Ea = b(() => {
|
|
1464
1464
|
if (Ve.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
1465
|
-
const
|
|
1465
|
+
const l = ye.value.map((e) => ({
|
|
1466
1466
|
label: e.name,
|
|
1467
1467
|
color: e.color,
|
|
1468
1468
|
type: e.type
|
|
1469
1469
|
})), o = [];
|
|
1470
1470
|
return se.value.forEach((e, s) => {
|
|
1471
|
-
const
|
|
1471
|
+
const a = t.value.table.useDefaultTimeFormat ? [e.text] : [rt.value(s + m.value.start, t.value.table.timeFormat)];
|
|
1472
1472
|
ye.value.forEach((n) => {
|
|
1473
|
-
|
|
1474
|
-
}), o.push(
|
|
1475
|
-
}), { head:
|
|
1476
|
-
}),
|
|
1477
|
-
const
|
|
1473
|
+
a.push(xe(n.absoluteValues[s]) ? Number(n.absoluteValues[s].toFixed(t.value.table.rounding)) : "");
|
|
1474
|
+
}), o.push(a);
|
|
1475
|
+
}), { head: l, body: o };
|
|
1476
|
+
}), ct = b(() => {
|
|
1477
|
+
const l = t.value.table.showSum;
|
|
1478
1478
|
let o = [""].concat(ye.value.map((n) => n.name));
|
|
1479
|
-
|
|
1479
|
+
l && (o = o.concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'));
|
|
1480
1480
|
let e = [];
|
|
1481
|
-
for (let n = 0; n <
|
|
1482
|
-
const u = ye.value.map((
|
|
1481
|
+
for (let n = 0; n < $.value; n += 1) {
|
|
1482
|
+
const u = ye.value.map((S) => S.absoluteValues[n] ?? 0).reduce((S, M) => S + M, 0);
|
|
1483
1483
|
e.push(
|
|
1484
1484
|
[
|
|
1485
|
-
t.value.table.useDefaultTimeFormat ? se.value[n]?.text ?? "-" :
|
|
1485
|
+
t.value.table.useDefaultTimeFormat ? se.value[n]?.text ?? "-" : rt.value(n + m.value.start, t.value.table.timeFormat)
|
|
1486
1486
|
].concat(ye.value.map(
|
|
1487
|
-
(
|
|
1488
|
-
|
|
1489
|
-
|
|
1487
|
+
(S) => ve(
|
|
1488
|
+
S.type === "line" ? t.value.line.labels.formatter : S.type === "bar" ? t.value.bar.labels.formatter : t.value.plot.labels.formatter,
|
|
1489
|
+
S.absoluteValues[n] ?? 0,
|
|
1490
1490
|
Pe({
|
|
1491
|
-
p:
|
|
1492
|
-
v:
|
|
1493
|
-
s:
|
|
1491
|
+
p: S.prefix || t.value.chart.labels.prefix,
|
|
1492
|
+
v: S.absoluteValues[n] ?? 0,
|
|
1493
|
+
s: S.suffix || t.value.chart.labels.suffix,
|
|
1494
1494
|
r: t.value.table.rounding
|
|
1495
1495
|
})
|
|
1496
1496
|
)
|
|
1497
|
-
)).concat(
|
|
1497
|
+
)).concat(l ? (u ?? 0).toFixed(t.value.table.rounding) : [])
|
|
1498
1498
|
);
|
|
1499
1499
|
}
|
|
1500
1500
|
const s = {
|
|
@@ -1509,72 +1509,72 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1509
1509
|
outline: t.value.table.td.outline
|
|
1510
1510
|
},
|
|
1511
1511
|
breakpoint: t.value.table.responsiveBreakpoint
|
|
1512
|
-
},
|
|
1513
|
-
return { head: o, body: e, config: s, colNames:
|
|
1512
|
+
}, a = [t.value.table.columnNames.period].concat(ye.value.map((n) => n.name)).concat(t.value.table.columnNames.total);
|
|
1513
|
+
return { head: o, body: e, config: s, colNames: a };
|
|
1514
1514
|
});
|
|
1515
|
-
function
|
|
1516
|
-
const o = [[t.value.chart.title.text], [t.value.chart.title.subtitle.text], [""]], e = ["", ...
|
|
1517
|
-
|
|
1515
|
+
function Ll(l = null) {
|
|
1516
|
+
const o = [[t.value.chart.title.text], [t.value.chart.title.subtitle.text], [""]], e = ["", ...Ea.value.head.map((u) => u.label)], s = Ea.value.body, a = o.concat([e]).concat(s), n = ts(a);
|
|
1517
|
+
l ? l(n) : ls({ csvContent: n, title: t.value.chart.title.text || "vue-ui-xy" });
|
|
1518
1518
|
}
|
|
1519
|
-
function
|
|
1519
|
+
function Ml(l, o = null) {
|
|
1520
1520
|
if (Wo.value) return;
|
|
1521
|
-
|
|
1521
|
+
Dl.value = l;
|
|
1522
1522
|
const e = ye.value.map((s) => ({
|
|
1523
1523
|
name: s.name,
|
|
1524
1524
|
value: [null, void 0, NaN].includes(s.absoluteValues[o]) ? null : s.absoluteValues[o],
|
|
1525
1525
|
color: s.color,
|
|
1526
1526
|
type: s.type
|
|
1527
1527
|
}));
|
|
1528
|
-
|
|
1528
|
+
l ? (_.value = o, t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: e, seriesIndex: o + m.value.start })) : (_.value = null, t.value.events.datapointLeave && t.value.events.datapointLeave({ datapoint: e, seriesIndex: o + m.value.start }));
|
|
1529
1529
|
}
|
|
1530
|
-
function
|
|
1530
|
+
function Ya() {
|
|
1531
1531
|
f.value.showTable = !f.value.showTable;
|
|
1532
1532
|
}
|
|
1533
|
-
function
|
|
1533
|
+
function Xa() {
|
|
1534
1534
|
f.value.dataLabels.show = !f.value.dataLabels.show;
|
|
1535
1535
|
}
|
|
1536
|
-
function
|
|
1536
|
+
function Ga() {
|
|
1537
1537
|
f.value.showTooltip = !f.value.showTooltip;
|
|
1538
1538
|
}
|
|
1539
|
-
function
|
|
1540
|
-
Ee.value =
|
|
1539
|
+
function qa(l) {
|
|
1540
|
+
Ee.value = l, Wl.value += 1;
|
|
1541
1541
|
}
|
|
1542
|
-
function
|
|
1542
|
+
function Ua() {
|
|
1543
1543
|
if (!t.value.responsiveProportionalSizing) {
|
|
1544
1544
|
x.value.dataLabels = t.value.chart.grid.labels.fontSize, x.value.yAxis = t.value.chart.grid.labels.axis.fontSize, x.value.xAxis = t.value.chart.grid.labels.xAxisLabels.fontSize, x.value.plotLabels = t.value.chart.labels.fontSize, Le.value.plot = t.value.plot.radius, Le.value.line = t.value.line.radius;
|
|
1545
1545
|
return;
|
|
1546
1546
|
}
|
|
1547
|
-
x.value.dataLabels =
|
|
1547
|
+
x.value.dataLabels = ht({
|
|
1548
1548
|
relator: de.value,
|
|
1549
1549
|
adjuster: 400,
|
|
1550
1550
|
source: t.value.chart.grid.labels.fontSize,
|
|
1551
1551
|
threshold: 10,
|
|
1552
1552
|
fallback: 10
|
|
1553
|
-
}), x.value.yAxis =
|
|
1553
|
+
}), x.value.yAxis = ht({
|
|
1554
1554
|
relator: ee.value,
|
|
1555
1555
|
adjuster: 1e3,
|
|
1556
1556
|
source: t.value.chart.grid.labels.axis.fontSize,
|
|
1557
1557
|
threshold: 10,
|
|
1558
1558
|
fallback: 10
|
|
1559
|
-
}), x.value.xAxis =
|
|
1559
|
+
}), x.value.xAxis = ht({
|
|
1560
1560
|
relator: ee.value,
|
|
1561
1561
|
adjuster: 1e3,
|
|
1562
1562
|
source: t.value.chart.grid.labels.xAxisLabels.fontSize,
|
|
1563
1563
|
threshold: 10,
|
|
1564
1564
|
fallback: 10
|
|
1565
|
-
}), x.value.plotLabels =
|
|
1565
|
+
}), x.value.plotLabels = ht({
|
|
1566
1566
|
relator: ee.value,
|
|
1567
1567
|
adjuster: 800,
|
|
1568
1568
|
source: t.value.chart.labels.fontSize,
|
|
1569
1569
|
threshold: 10,
|
|
1570
1570
|
fallback: 10
|
|
1571
|
-
}), Le.value.plot =
|
|
1571
|
+
}), Le.value.plot = ht({
|
|
1572
1572
|
relator: ee.value,
|
|
1573
1573
|
adjuster: 800,
|
|
1574
1574
|
source: t.value.plot.radius,
|
|
1575
1575
|
threshold: 1,
|
|
1576
1576
|
fallback: 1
|
|
1577
|
-
}), Le.value.line =
|
|
1577
|
+
}), Le.value.line = ht({
|
|
1578
1578
|
relator: ee.value,
|
|
1579
1579
|
adjuster: 800,
|
|
1580
1580
|
source: t.value.line.radius,
|
|
@@ -1582,62 +1582,62 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1582
1582
|
fallback: 1
|
|
1583
1583
|
});
|
|
1584
1584
|
}
|
|
1585
|
-
function
|
|
1586
|
-
go(T.dataset) ? (
|
|
1585
|
+
function Al() {
|
|
1586
|
+
go(T.dataset) ? (Ol({
|
|
1587
1587
|
componentName: "VueUiXy",
|
|
1588
1588
|
type: "dataset",
|
|
1589
|
-
debug:
|
|
1589
|
+
debug: kt.value
|
|
1590
1590
|
}), Wt.value = !0) : T.dataset.forEach((o, e) => {
|
|
1591
|
-
[null, void 0].includes(o.name) && (
|
|
1591
|
+
[null, void 0].includes(o.name) && (Ol({
|
|
1592
1592
|
componentName: "VueUiXy",
|
|
1593
1593
|
type: "datasetSerieAttribute",
|
|
1594
1594
|
property: "name (string)",
|
|
1595
1595
|
index: e,
|
|
1596
|
-
debug:
|
|
1596
|
+
debug: kt.value
|
|
1597
1597
|
}), Wt.value = !0);
|
|
1598
|
-
}),
|
|
1598
|
+
}), kt.value && T.dataset.forEach((o) => {
|
|
1599
1599
|
o.series.forEach((e, s) => {
|
|
1600
|
-
|
|
1600
|
+
nl(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
1601
1601
|
-----> The serie '${o.name}' contains the value '${e}' at index ${s}.
|
|
1602
1602
|
'${e}' was converted to null to allow the chart to display.`);
|
|
1603
1603
|
});
|
|
1604
|
-
}), go(T.dataset) || (Wt.value = t.value.loading),
|
|
1605
|
-
const
|
|
1604
|
+
}), go(T.dataset) || (Wt.value = t.value.loading), Xl.value = t.value.chart.userOptions.showOnChartHover, bl.value = t.value.chart.userOptions.keepStateOnChartLeave, Bt.value = !t.value.chart.userOptions.showOnChartHover, kl();
|
|
1605
|
+
const l = 12;
|
|
1606
1606
|
if (t.value.responsive) {
|
|
1607
1607
|
const e = $e.value.parentNode;
|
|
1608
|
-
Ne.value && (Ne.value.unobserve(
|
|
1609
|
-
const { height: s, width:
|
|
1608
|
+
Ne.value && (Ne.value.unobserve(ml.value), Ne.value.disconnect());
|
|
1609
|
+
const { height: s, width: a } = e.getBoundingClientRect();
|
|
1610
1610
|
let n = null, u = 0;
|
|
1611
|
-
t.value.chart.title.show &&
|
|
1612
|
-
let
|
|
1613
|
-
t.value.chart.zoom.show && ze.value > 6 &&
|
|
1611
|
+
t.value.chart.title.show && mt.value && (n = mt.value, u = n.getBoundingClientRect().height);
|
|
1612
|
+
let S = null, M = 0;
|
|
1613
|
+
t.value.chart.zoom.show && ze.value > 6 && xl.value && Te.value && Te.value.$el && (S = Te.value.$el, M = S.getBoundingClientRect().height);
|
|
1614
1614
|
let I = null, V = 0;
|
|
1615
1615
|
t.value.chart.legend.show && et.value && (I = et.value, V = I.getBoundingClientRect().height);
|
|
1616
1616
|
let D = 0;
|
|
1617
|
-
|
|
1617
|
+
gt.value && (D = gt.value.getBoundingClientRect().height);
|
|
1618
1618
|
let N = 0;
|
|
1619
|
-
|
|
1619
|
+
bt.value && (N = bt.value.getBoundingClientRect().height), de.value = s - u - V - M - D - N - l, ee.value = a, Vt.value = `0 0 ${ee.value < 0 ? 10 : ee.value} ${de.value < 0 ? 10 : de.value}`, Ua();
|
|
1620
1620
|
const p = new ResizeObserver((te) => {
|
|
1621
1621
|
for (const B of te)
|
|
1622
|
-
t.value.chart.title.show &&
|
|
1623
|
-
de.value = B.contentRect.height - u - V - M - D - N -
|
|
1622
|
+
t.value.chart.title.show && mt.value ? u = mt.value.getBoundingClientRect().height : u = 0, Te.value && Te.value.$el ? M = Te.value.$el.getBoundingClientRect().height : M = 0, et.value ? V = et.value.getBoundingClientRect().height : V = 0, gt.value ? D = gt.value.getBoundingClientRect().height : D = 0, bt.value ? N = bt.value.getBoundingClientRect().height : N = 0, requestAnimationFrame(() => {
|
|
1623
|
+
de.value = B.contentRect.height - u - V - M - D - N - l, ee.value = B.contentBoxSize[0].inlineSize ?? B.contentRect.width, Vt.value = `0 0 ${ee.value < 0 ? 10 : ee.value} ${de.value < 0 ? 10 : de.value}`, Ua(), xt(), ot();
|
|
1624
1624
|
});
|
|
1625
1625
|
});
|
|
1626
|
-
Ne.value = p,
|
|
1626
|
+
Ne.value = p, ml.value = e, p.observe(e);
|
|
1627
1627
|
} else
|
|
1628
1628
|
de.value = t.value.chart.height, ee.value = t.value.chart.width, x.value.dataLabels = t.value.chart.grid.labels.fontSize, x.value.yAxis = t.value.chart.grid.labels.axis.fontSize, x.value.xAxis = t.value.chart.grid.labels.xAxisLabels.fontSize, x.value.plotLabels = t.value.chart.labels.fontSize, Le.value.plot = t.value.plot.radius, Le.value.line = t.value.line.radius, Vt.value = `0 0 ${ee.value} ${de.value}`;
|
|
1629
|
-
|
|
1629
|
+
xt(), ot();
|
|
1630
1630
|
}
|
|
1631
|
-
function
|
|
1631
|
+
function Za(l) {
|
|
1632
1632
|
Po.value = {
|
|
1633
|
-
x:
|
|
1634
|
-
y:
|
|
1633
|
+
x: l.clientX,
|
|
1634
|
+
y: l.clientY
|
|
1635
1635
|
};
|
|
1636
1636
|
}
|
|
1637
1637
|
It(() => {
|
|
1638
|
-
|
|
1639
|
-
}),
|
|
1640
|
-
document.removeEventListener("scroll",
|
|
1638
|
+
Al(), Jt(), document.addEventListener("mousemove", Za, { passive: !0 }), document.addEventListener("scroll", ha, { passive: !0 });
|
|
1639
|
+
}), Il(() => {
|
|
1640
|
+
document.removeEventListener("scroll", ha, { passive: !0 }), document.removeEventListener("mousemove", Za, { passive: !0 }), Ne.value && (Ne.value.unobserve(ml.value), Ne.value.disconnect(), Ne.value = null);
|
|
1641
1641
|
}), ds({
|
|
1642
1642
|
timeLabelsEls: Ft,
|
|
1643
1643
|
timeLabels: se,
|
|
@@ -1650,49 +1650,49 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1650
1650
|
width: ee,
|
|
1651
1651
|
rotation: t.value.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
1652
1652
|
});
|
|
1653
|
-
const
|
|
1653
|
+
const al = g(!1), Ka = g(null), Ja = g(200), pu = b(
|
|
1654
1654
|
() => _.value ?? P.value ?? 0
|
|
1655
1655
|
);
|
|
1656
1656
|
function yu() {
|
|
1657
|
-
const
|
|
1658
|
-
return Math.min(Math.max(
|
|
1657
|
+
const l = Math.ceil(Ja.value || 200);
|
|
1658
|
+
return Math.min(Math.max(l, 1), 200);
|
|
1659
1659
|
}
|
|
1660
1660
|
function xu() {
|
|
1661
|
-
const
|
|
1661
|
+
const l = yu(), o = 200, e = Math.max(1, $.value), s = c.value.width / e, n = c.value?.left + pu.value * s + s / 2 - l / 2 - (o - l) / 2, u = c.value?.left - (o - l) / 2, S = c.value?.right - (o + l) / 2, M = Math.max(u, Math.min(n, S));
|
|
1662
1662
|
return O(M);
|
|
1663
1663
|
}
|
|
1664
1664
|
It(() => {
|
|
1665
|
-
let
|
|
1665
|
+
let l = null, o = null;
|
|
1666
1666
|
const e = (n) => {
|
|
1667
1667
|
cancelAnimationFrame(o), o = requestAnimationFrame(() => {
|
|
1668
|
-
|
|
1668
|
+
Ja.value = Math.min(Math.max(Math.ceil(n || 0), 1), 200);
|
|
1669
1669
|
});
|
|
1670
1670
|
}, s = new ResizeObserver((n) => {
|
|
1671
|
-
let u = n.find((
|
|
1671
|
+
let u = n.find((S) => S.target === l) || n[0];
|
|
1672
1672
|
u && e(u.contentRect.width || 200);
|
|
1673
|
-
}),
|
|
1674
|
-
const u =
|
|
1675
|
-
|
|
1673
|
+
}), a = sl((n) => {
|
|
1674
|
+
const u = Ka.value;
|
|
1675
|
+
l && l !== u && (s.unobserve(l), l = null), u && u !== l && (Pt(() => {
|
|
1676
1676
|
u.offsetParent !== null && e(u.offsetWidth || u.getBoundingClientRect().width || 200);
|
|
1677
|
-
}), s.observe(u),
|
|
1678
|
-
|
|
1677
|
+
}), s.observe(u), l = u), n(() => {
|
|
1678
|
+
l && (s.unobserve(l), l = null);
|
|
1679
1679
|
});
|
|
1680
1680
|
});
|
|
1681
|
-
|
|
1681
|
+
Il(() => {
|
|
1682
1682
|
try {
|
|
1683
|
-
|
|
1683
|
+
l && s.unobserve(l), s.disconnect(), a();
|
|
1684
1684
|
} catch {
|
|
1685
1685
|
}
|
|
1686
1686
|
});
|
|
1687
1687
|
});
|
|
1688
1688
|
const ku = b(() => {
|
|
1689
1689
|
if ([null, void 0].includes(_.value) && [null, void 0].includes(P.value)) return "";
|
|
1690
|
-
const
|
|
1691
|
-
if (
|
|
1690
|
+
const l = (_.value != null ? _.value : 0) || (P.value != null ? P.value : 0), o = t.value.chart.timeTag.customFormat;
|
|
1691
|
+
if (al.value = !1, fo(o))
|
|
1692
1692
|
try {
|
|
1693
1693
|
const e = o({
|
|
1694
|
-
absoluteIndex:
|
|
1695
|
-
seriesIndex:
|
|
1694
|
+
absoluteIndex: l + m.value.start,
|
|
1695
|
+
seriesIndex: l,
|
|
1696
1696
|
datapoint: Ze.value,
|
|
1697
1697
|
bars: ke.value,
|
|
1698
1698
|
lines: oe.value,
|
|
@@ -1700,46 +1700,46 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1700
1700
|
config: t.value
|
|
1701
1701
|
});
|
|
1702
1702
|
if (typeof e == "string")
|
|
1703
|
-
return
|
|
1703
|
+
return al.value = !0, e;
|
|
1704
1704
|
} catch {
|
|
1705
|
-
console.warn("Custom format cannot be applied on timeTag."),
|
|
1705
|
+
console.warn("Custom format cannot be applied on timeTag."), al.value = !1;
|
|
1706
1706
|
}
|
|
1707
|
-
if (!
|
|
1708
|
-
return [null, void 0].includes(se.value[
|
|
1707
|
+
if (!al.value)
|
|
1708
|
+
return [null, void 0].includes(se.value[l]) ? "" : t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.timeTag.useDefaultFormat ? rt.value(l + m.value.start, t.value.chart.timeTag.timeFormat) : se.value[l].text;
|
|
1709
1709
|
});
|
|
1710
|
-
|
|
1711
|
-
Array.isArray(
|
|
1710
|
+
vt(() => T.dataset, (l) => {
|
|
1711
|
+
Array.isArray(l) && l.length > 0 && (Wt.value = !1), ze.value = Math.max(...pe.value.map((o) => Fe(o.series).length)), m.value = {
|
|
1712
1712
|
start: 0,
|
|
1713
1713
|
end: ze.value
|
|
1714
|
-
}, Io.value += 1,
|
|
1715
|
-
}, { deep: !0 }),
|
|
1716
|
-
ne.value || (t.value =
|
|
1714
|
+
}, Io.value += 1, gl.value += 1, xt(), ot(), ut();
|
|
1715
|
+
}, { deep: !0 }), vt(() => T.config, (l) => {
|
|
1716
|
+
ne.value || (t.value = yl()), Al(), Yl.value += 1, El.value += 1, kl(), xt(), ot(), ut();
|
|
1717
1717
|
}, { deep: !0 });
|
|
1718
|
-
const
|
|
1719
|
-
function
|
|
1720
|
-
const
|
|
1721
|
-
if (!
|
|
1722
|
-
|
|
1718
|
+
const Cl = g(!1);
|
|
1719
|
+
function Qa() {
|
|
1720
|
+
const l = $e.value?.parentNode;
|
|
1721
|
+
if (!l) {
|
|
1722
|
+
Cl.value = !1;
|
|
1723
1723
|
return;
|
|
1724
1724
|
}
|
|
1725
|
-
const o =
|
|
1726
|
-
|
|
1725
|
+
const o = l.getBoundingClientRect();
|
|
1726
|
+
Cl.value = o.width > 2 && o.height > 2;
|
|
1727
1727
|
}
|
|
1728
1728
|
It(() => {
|
|
1729
|
-
|
|
1730
|
-
const
|
|
1731
|
-
|
|
1729
|
+
Qa();
|
|
1730
|
+
const l = new ResizeObserver(() => {
|
|
1731
|
+
Qa(), Cl.value && (Al(), ut(), Jt());
|
|
1732
1732
|
});
|
|
1733
|
-
$e.value?.parentNode &&
|
|
1734
|
-
}),
|
|
1735
|
-
|
|
1733
|
+
$e.value?.parentNode && l.observe($e.value.parentNode);
|
|
1734
|
+
}), vt(t, () => {
|
|
1735
|
+
kl();
|
|
1736
1736
|
}, { immediate: !0 });
|
|
1737
1737
|
const Ct = b(() => {
|
|
1738
|
-
const
|
|
1738
|
+
const l = t.value.table.useDialog && !t.value.showTable, o = f.value.showTable;
|
|
1739
1739
|
return {
|
|
1740
|
-
component:
|
|
1740
|
+
component: l ? Mo : bs,
|
|
1741
1741
|
title: `${t.value.chart.title.text}${t.value.chart.title.subtitle.text ? `: ${t.value.chart.title.subtitle.text}` : ""}`,
|
|
1742
|
-
props:
|
|
1742
|
+
props: l ? {
|
|
1743
1743
|
backgroundColor: t.value.table.th.backgroundColor,
|
|
1744
1744
|
color: t.value.table.th.color,
|
|
1745
1745
|
headerColor: t.value.table.th.color,
|
|
@@ -1764,45 +1764,45 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1764
1764
|
}
|
|
1765
1765
|
};
|
|
1766
1766
|
});
|
|
1767
|
-
|
|
1768
|
-
t.value.showTable || (
|
|
1767
|
+
vt(() => f.value.showTable, (l) => {
|
|
1768
|
+
t.value.showTable || (l && t.value.table.useDialog && lt.value ? lt.value.open() : lt.value && lt.value.close && lt.value.close());
|
|
1769
1769
|
});
|
|
1770
|
-
function
|
|
1771
|
-
f.value.showTable = !1,
|
|
1770
|
+
function ja() {
|
|
1771
|
+
f.value.showTable = !1, fl.value && fl.value.setTableIconState(!1);
|
|
1772
1772
|
}
|
|
1773
|
-
const _u = b(() => ie.value.map((
|
|
1774
|
-
shape:
|
|
1775
|
-
color:
|
|
1776
|
-
name:
|
|
1773
|
+
const _u = b(() => ie.value.map((l) => ({
|
|
1774
|
+
shape: l.type === "bar" ? "square" : l.shape ?? "circle",
|
|
1775
|
+
color: l.color,
|
|
1776
|
+
name: l.name
|
|
1777
1777
|
}))), wu = b(() => t.value.chart.backgroundColor), Su = b(() => t.value.chart.legend), $u = b(() => t.value.chart.title), { exportSvg: Lu, getSvg: Mu } = rs({
|
|
1778
|
-
svg:
|
|
1778
|
+
svg: ae,
|
|
1779
1779
|
title: $u,
|
|
1780
1780
|
legend: Su,
|
|
1781
1781
|
legendItems: _u,
|
|
1782
1782
|
backgroundColor: wu
|
|
1783
1783
|
});
|
|
1784
|
-
async function eo({ isCb:
|
|
1784
|
+
async function eo({ isCb: l }) {
|
|
1785
1785
|
Dt.value = !0, await Pt();
|
|
1786
1786
|
try {
|
|
1787
|
-
if (
|
|
1788
|
-
const { blob: o, url: e, text: s, dataUrl:
|
|
1789
|
-
await Promise.resolve(t.value.chart.userOptions.callbacks.svg({ blob: o, url: e, text: s, dataUrl:
|
|
1787
|
+
if (l) {
|
|
1788
|
+
const { blob: o, url: e, text: s, dataUrl: a } = await Mu();
|
|
1789
|
+
await Promise.resolve(t.value.chart.userOptions.callbacks.svg({ blob: o, url: e, text: s, dataUrl: a }));
|
|
1790
1790
|
} else
|
|
1791
1791
|
await Promise.resolve(Lu());
|
|
1792
1792
|
} finally {
|
|
1793
1793
|
Dt.value = !1;
|
|
1794
1794
|
}
|
|
1795
1795
|
}
|
|
1796
|
-
function Au(
|
|
1797
|
-
if (
|
|
1796
|
+
function Au(l) {
|
|
1797
|
+
if (l?.stage === "start") {
|
|
1798
1798
|
Ht.value = !0;
|
|
1799
1799
|
return;
|
|
1800
1800
|
}
|
|
1801
|
-
if (
|
|
1801
|
+
if (l?.stage === "end") {
|
|
1802
1802
|
Ht.value = !1;
|
|
1803
1803
|
return;
|
|
1804
1804
|
}
|
|
1805
|
-
|
|
1805
|
+
sa();
|
|
1806
1806
|
}
|
|
1807
1807
|
async function to() {
|
|
1808
1808
|
if (We("copyAlt", {
|
|
@@ -1831,65 +1831,66 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1831
1831
|
}
|
|
1832
1832
|
}));
|
|
1833
1833
|
}
|
|
1834
|
-
const
|
|
1834
|
+
const Tl = g(!1);
|
|
1835
1835
|
function Cu() {
|
|
1836
|
-
m.value.end > m.value.start && (
|
|
1836
|
+
m.value.end > m.value.start && (at.value = null), Ut.value = !0, Tl.value = !0;
|
|
1837
1837
|
}
|
|
1838
1838
|
function Tu() {
|
|
1839
|
-
|
|
1839
|
+
at.value = null, Lt(), Tl.value = !1, Ut.value = !1;
|
|
1840
1840
|
}
|
|
1841
|
-
function zu(
|
|
1842
|
-
if (!
|
|
1843
|
-
const o =
|
|
1841
|
+
function zu(l) {
|
|
1842
|
+
if (!ae.value || tt.value || document.activeElement !== ae.value) return;
|
|
1843
|
+
const o = l.key === "ArrowLeft", e = l.key === "ArrowRight";
|
|
1844
1844
|
if (!o && !e || !m.value.end && m.value.end !== 0) return;
|
|
1845
1845
|
const s = m.value.end - m.value.start;
|
|
1846
1846
|
if (s <= 0) return;
|
|
1847
|
-
|
|
1848
|
-
let
|
|
1849
|
-
|
|
1847
|
+
l.preventDefault(), l.stopPropagation();
|
|
1848
|
+
let a = at.value;
|
|
1849
|
+
const n = it.value, u = a !== null && a >= 0 && a < s, S = n !== null && n >= 0 && n < s;
|
|
1850
|
+
u ? e ? (a += 1, a >= s && (a = 0)) : o && (a -= 1, a < 0 && (a = s - 1)) : S ? (a = e ? n + 1 : n - 1, a >= s && (a = 0), a < 0 && (a = s - 1)) : e ? a = 0 : a = s - 1, at.value = a, Iu(a), Ml(!0, a);
|
|
1850
1851
|
}
|
|
1851
|
-
function Iu(
|
|
1852
|
+
function Iu(l) {
|
|
1852
1853
|
const o = m.value.end - m.value.start;
|
|
1853
1854
|
if (o <= 0) return;
|
|
1854
|
-
const e = c.value.width / o, s = c.value.left + e *
|
|
1855
|
-
n && (
|
|
1855
|
+
const e = c.value.width / o, s = c.value.left + e * l + e / 2, a = c.value.top + c.value.height / 2, n = as(s, a, ae.value);
|
|
1856
|
+
n && (ql.value = n);
|
|
1856
1857
|
}
|
|
1857
|
-
const
|
|
1858
|
-
if (!
|
|
1859
|
-
const
|
|
1858
|
+
const zl = b(() => {
|
|
1859
|
+
if (!ct.value) return null;
|
|
1860
|
+
const l = t.value.table.showSum;
|
|
1860
1861
|
let o = [t.value.table.columnNames.period].concat(ye.value.map((s) => s.name));
|
|
1861
|
-
|
|
1862
|
-
const e =
|
|
1862
|
+
l && (o = o.concat(t.value.table.columnNames.total));
|
|
1863
|
+
const e = ct.value.body.slice(m.value.start, m.value.end);
|
|
1863
1864
|
return {
|
|
1864
1865
|
headers: o,
|
|
1865
1866
|
rows: e
|
|
1866
1867
|
};
|
|
1867
1868
|
});
|
|
1868
1869
|
return yo({
|
|
1869
|
-
getData:
|
|
1870
|
-
getImage:
|
|
1871
|
-
generatePdf:
|
|
1872
|
-
generateImage:
|
|
1870
|
+
getData: lu,
|
|
1871
|
+
getImage: au,
|
|
1872
|
+
generatePdf: ua,
|
|
1873
|
+
generateImage: sa,
|
|
1873
1874
|
generateSvg: eo,
|
|
1874
|
-
generateCsv:
|
|
1875
|
+
generateCsv: Ll,
|
|
1875
1876
|
hideSeries: nu,
|
|
1876
1877
|
showSeries: su,
|
|
1877
|
-
toggleStack:
|
|
1878
|
-
toggleTable:
|
|
1879
|
-
toggleLabels:
|
|
1880
|
-
toggleTooltip:
|
|
1881
|
-
toggleAnnotator:
|
|
1882
|
-
toggleFullscreen:
|
|
1878
|
+
toggleStack: pa,
|
|
1879
|
+
toggleTable: Ya,
|
|
1880
|
+
toggleLabels: Xa,
|
|
1881
|
+
toggleTooltip: Ga,
|
|
1882
|
+
toggleAnnotator: wl,
|
|
1883
|
+
toggleFullscreen: qa,
|
|
1883
1884
|
copyAlt: to
|
|
1884
|
-
}), (
|
|
1885
|
+
}), (l, o) => (i(), r("div", {
|
|
1885
1886
|
id: `vue-ui-xy_${z.value}`,
|
|
1886
1887
|
class: Je(`vue-data-ui-component vue-ui-xy ${Ee.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1887
1888
|
ref_key: "chart",
|
|
1888
1889
|
ref: $e,
|
|
1889
1890
|
style: w(`background:${t.value.chart.backgroundColor}; color:${t.value.chart.color};width:100%;font-family:${t.value.chart.fontFamily};${t.value.responsive ? "height: 100%" : ""}`),
|
|
1890
|
-
onMouseenter: o[6] || (o[6] = () =>
|
|
1891
|
-
onMouseleave: o[7] || (o[7] = () =>
|
|
1892
|
-
onClick:
|
|
1891
|
+
onMouseenter: o[6] || (o[6] = () => fa(!0)),
|
|
1892
|
+
onMouseleave: o[7] || (o[7] = () => fa(!1)),
|
|
1893
|
+
onClick: Ta
|
|
1893
1894
|
}, [
|
|
1894
1895
|
y("div", {
|
|
1895
1896
|
id: `chart-instructions-${z.value}`,
|
|
@@ -1897,59 +1898,59 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1897
1898
|
}, [
|
|
1898
1899
|
y("p", null, ue(t.value.a11y.translations.keyboardNavigation), 1)
|
|
1899
1900
|
], 8, _s),
|
|
1900
|
-
|
|
1901
|
+
zl.value?.rows?.length ? (i(), _e(ys, {
|
|
1901
1902
|
key: 0,
|
|
1902
1903
|
uid: z.value,
|
|
1903
|
-
head:
|
|
1904
|
-
body:
|
|
1904
|
+
head: zl.value.headers,
|
|
1905
|
+
body: zl.value.rows,
|
|
1905
1906
|
notice: t.value.a11y.translations.tableAvailable,
|
|
1906
1907
|
caption: t.value.a11y.translations.tableCaption
|
|
1907
1908
|
}, null, 8, ["uid", "head", "body", "notice", "caption"])) : h("", !0),
|
|
1908
|
-
t.value.chart.userOptions.buttons.annotator &&
|
|
1909
|
+
t.value.chart.userOptions.buttons.annotator && ae.value ? (i(), _e(v(Lo), {
|
|
1909
1910
|
key: 1,
|
|
1910
|
-
svgRef:
|
|
1911
|
+
svgRef: ae.value,
|
|
1911
1912
|
backgroundColor: t.value.chart.backgroundColor,
|
|
1912
1913
|
color: t.value.chart.color,
|
|
1913
1914
|
active: tt.value,
|
|
1914
1915
|
isCursorPointer: Xe.value,
|
|
1915
|
-
onClose:
|
|
1916
|
+
onClose: wl
|
|
1916
1917
|
}, {
|
|
1917
1918
|
"annotator-action-close": X(() => [
|
|
1918
|
-
F(
|
|
1919
|
+
F(l.$slots, "annotator-action-close", {}, void 0, !0)
|
|
1919
1920
|
]),
|
|
1920
1921
|
"annotator-action-color": X(({ color: e }) => [
|
|
1921
|
-
F(
|
|
1922
|
+
F(l.$slots, "annotator-action-color", ge(be({ color: e })), void 0, !0)
|
|
1922
1923
|
]),
|
|
1923
1924
|
"annotator-action-draw": X(({ mode: e }) => [
|
|
1924
|
-
F(
|
|
1925
|
+
F(l.$slots, "annotator-action-draw", ge(be({ mode: e })), void 0, !0)
|
|
1925
1926
|
]),
|
|
1926
1927
|
"annotator-action-undo": X(({ disabled: e }) => [
|
|
1927
|
-
F(
|
|
1928
|
+
F(l.$slots, "annotator-action-undo", ge(be({ disabled: e })), void 0, !0)
|
|
1928
1929
|
]),
|
|
1929
1930
|
"annotator-action-redo": X(({ disabled: e }) => [
|
|
1930
|
-
F(
|
|
1931
|
+
F(l.$slots, "annotator-action-redo", ge(be({ disabled: e })), void 0, !0)
|
|
1931
1932
|
]),
|
|
1932
1933
|
"annotator-action-delete": X(({ disabled: e }) => [
|
|
1933
|
-
F(
|
|
1934
|
+
F(l.$slots, "annotator-action-delete", ge(be({ disabled: e })), void 0, !0)
|
|
1934
1935
|
]),
|
|
1935
1936
|
_: 3
|
|
1936
1937
|
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : h("", !0),
|
|
1937
1938
|
ru.value ? (i(), r("div", {
|
|
1938
1939
|
key: 2,
|
|
1939
1940
|
ref_key: "noTitle",
|
|
1940
|
-
ref:
|
|
1941
|
+
ref: bt,
|
|
1941
1942
|
class: "vue-data-ui-no-title-space",
|
|
1942
1943
|
style: "height:36px; width: 100%; background:transparent"
|
|
1943
1944
|
}, null, 512)) : h("", !0),
|
|
1944
1945
|
t.value.chart.title.show ? (i(), r("div", {
|
|
1945
1946
|
key: 3,
|
|
1946
1947
|
ref_key: "chartTitle",
|
|
1947
|
-
ref:
|
|
1948
|
+
ref: mt,
|
|
1948
1949
|
class: "vue-ui-xy-title",
|
|
1949
1950
|
style: w(`font-family:${t.value.chart.fontFamily}`)
|
|
1950
1951
|
}, [
|
|
1951
1952
|
(i(), _e(fs, {
|
|
1952
|
-
key: `title_${
|
|
1953
|
+
key: `title_${Yl.value}`,
|
|
1953
1954
|
config: {
|
|
1954
1955
|
title: {
|
|
1955
1956
|
cy: "xy-div-title",
|
|
@@ -1965,14 +1966,14 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1965
1966
|
y("div", {
|
|
1966
1967
|
id: `legend-top-${z.value}`
|
|
1967
1968
|
}, null, 8, ws),
|
|
1968
|
-
t.value.chart.userOptions.show && (
|
|
1969
|
+
t.value.chart.userOptions.show && (bl.value || Bt.value) ? (i(), _e(v(wo), {
|
|
1969
1970
|
ref_key: "userOptionsRef",
|
|
1970
|
-
ref:
|
|
1971
|
-
key: `user_options_${
|
|
1971
|
+
ref: fl,
|
|
1972
|
+
key: `user_options_${Wl.value}`,
|
|
1972
1973
|
backgroundColor: t.value.chart.backgroundColor,
|
|
1973
1974
|
color: t.value.chart.color,
|
|
1974
1975
|
isPrinting: v(Et),
|
|
1975
|
-
isImaging: v(
|
|
1976
|
+
isImaging: v(_l),
|
|
1976
1977
|
uid: z.value,
|
|
1977
1978
|
hasTooltip: t.value.chart.userOptions.buttons.tooltip && t.value.chart.tooltip.show,
|
|
1978
1979
|
hasPdf: t.value.chart.userOptions.buttons.pdf,
|
|
@@ -1981,12 +1982,12 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1981
1982
|
hasSvg: t.value.chart.userOptions.buttons.svg,
|
|
1982
1983
|
hasLabel: t.value.chart.userOptions.buttons.labels,
|
|
1983
1984
|
hasTable: t.value.chart.userOptions.buttons.table,
|
|
1984
|
-
hasStack:
|
|
1985
|
+
hasStack: cl.dataset.length > 1 && t.value.chart.userOptions.buttons.stack,
|
|
1985
1986
|
hasFullscreen: t.value.chart.userOptions.buttons.fullscreen,
|
|
1986
1987
|
hasAltCopy: t.value.chart.userOptions.buttons.altCopy,
|
|
1987
1988
|
isStacked: f.value.isStacked,
|
|
1988
1989
|
isFullscreen: Ee.value,
|
|
1989
|
-
chartElement:
|
|
1990
|
+
chartElement: l.$refs.chart,
|
|
1990
1991
|
position: t.value.chart.userOptions.position,
|
|
1991
1992
|
isTooltip: f.value.showTooltip,
|
|
1992
1993
|
titles: { ...t.value.chart.userOptions.buttonTitles },
|
|
@@ -1996,102 +1997,102 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1996
1997
|
tableDialog: t.value.table.useDialog,
|
|
1997
1998
|
printScale: t.value.chart.userOptions.print.scale,
|
|
1998
1999
|
isCursorPointer: Xe.value,
|
|
1999
|
-
onToggleFullscreen:
|
|
2000
|
-
onGeneratePdf: v(
|
|
2001
|
-
onGenerateCsv:
|
|
2000
|
+
onToggleFullscreen: qa,
|
|
2001
|
+
onGeneratePdf: v(ua),
|
|
2002
|
+
onGenerateCsv: Ll,
|
|
2002
2003
|
onGenerateImage: Au,
|
|
2003
2004
|
onGenerateSvg: eo,
|
|
2004
|
-
onToggleTable:
|
|
2005
|
-
onToggleLabels:
|
|
2006
|
-
onToggleStack:
|
|
2007
|
-
onToggleTooltip:
|
|
2008
|
-
onToggleAnnotator:
|
|
2005
|
+
onToggleTable: Ya,
|
|
2006
|
+
onToggleLabels: Xa,
|
|
2007
|
+
onToggleStack: pa,
|
|
2008
|
+
onToggleTooltip: Ga,
|
|
2009
|
+
onToggleAnnotator: wl,
|
|
2009
2010
|
onCopyAlt: to,
|
|
2010
2011
|
style: w({
|
|
2011
|
-
visibility:
|
|
2012
|
+
visibility: bl.value ? Bt.value ? "visible" : "hidden" : "visible"
|
|
2012
2013
|
})
|
|
2013
|
-
},
|
|
2014
|
-
|
|
2014
|
+
}, lo({ _: 2 }, [
|
|
2015
|
+
l.$slots.menuIcon ? {
|
|
2015
2016
|
name: "menuIcon",
|
|
2016
2017
|
fn: X(({ isOpen: e, color: s }) => [
|
|
2017
|
-
F(
|
|
2018
|
+
F(l.$slots, "menuIcon", ge(be({ isOpen: e, color: s })), void 0, !0)
|
|
2018
2019
|
]),
|
|
2019
2020
|
key: "0"
|
|
2020
2021
|
} : void 0,
|
|
2021
|
-
|
|
2022
|
+
l.$slots.optionTooltip ? {
|
|
2022
2023
|
name: "optionTooltip",
|
|
2023
2024
|
fn: X(() => [
|
|
2024
|
-
F(
|
|
2025
|
+
F(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
2025
2026
|
]),
|
|
2026
2027
|
key: "1"
|
|
2027
2028
|
} : void 0,
|
|
2028
|
-
|
|
2029
|
+
l.$slots.optionPdf ? {
|
|
2029
2030
|
name: "optionPdf",
|
|
2030
2031
|
fn: X(() => [
|
|
2031
|
-
F(
|
|
2032
|
+
F(l.$slots, "optionPdf", {}, void 0, !0)
|
|
2032
2033
|
]),
|
|
2033
2034
|
key: "2"
|
|
2034
2035
|
} : void 0,
|
|
2035
|
-
|
|
2036
|
+
l.$slots.optionCsv ? {
|
|
2036
2037
|
name: "optionCsv",
|
|
2037
2038
|
fn: X(() => [
|
|
2038
|
-
F(
|
|
2039
|
+
F(l.$slots, "optionCsv", {}, void 0, !0)
|
|
2039
2040
|
]),
|
|
2040
2041
|
key: "3"
|
|
2041
2042
|
} : void 0,
|
|
2042
|
-
|
|
2043
|
+
l.$slots.optionImg ? {
|
|
2043
2044
|
name: "optionImg",
|
|
2044
2045
|
fn: X(() => [
|
|
2045
|
-
F(
|
|
2046
|
+
F(l.$slots, "optionImg", {}, void 0, !0)
|
|
2046
2047
|
]),
|
|
2047
2048
|
key: "4"
|
|
2048
2049
|
} : void 0,
|
|
2049
|
-
|
|
2050
|
+
l.$slots.optionSvg ? {
|
|
2050
2051
|
name: "optionSvg",
|
|
2051
2052
|
fn: X(() => [
|
|
2052
|
-
F(
|
|
2053
|
+
F(l.$slots, "optionSvg", {}, void 0, !0)
|
|
2053
2054
|
]),
|
|
2054
2055
|
key: "5"
|
|
2055
2056
|
} : void 0,
|
|
2056
|
-
|
|
2057
|
+
l.$slots.optionTable ? {
|
|
2057
2058
|
name: "optionTable",
|
|
2058
2059
|
fn: X(() => [
|
|
2059
|
-
F(
|
|
2060
|
+
F(l.$slots, "optionTable", {}, void 0, !0)
|
|
2060
2061
|
]),
|
|
2061
2062
|
key: "6"
|
|
2062
2063
|
} : void 0,
|
|
2063
|
-
|
|
2064
|
+
l.$slots.optionLabels ? {
|
|
2064
2065
|
name: "optionLabels",
|
|
2065
2066
|
fn: X(() => [
|
|
2066
|
-
F(
|
|
2067
|
+
F(l.$slots, "optionLabels", {}, void 0, !0)
|
|
2067
2068
|
]),
|
|
2068
2069
|
key: "7"
|
|
2069
2070
|
} : void 0,
|
|
2070
|
-
|
|
2071
|
+
l.$slots.optionStack ? {
|
|
2071
2072
|
name: "optionStack",
|
|
2072
2073
|
fn: X(({ isStack: e }) => [
|
|
2073
|
-
F(
|
|
2074
|
+
F(l.$slots, "optionStack", ge(be({ isStack: e })), void 0, !0)
|
|
2074
2075
|
]),
|
|
2075
2076
|
key: "8"
|
|
2076
2077
|
} : void 0,
|
|
2077
|
-
|
|
2078
|
+
l.$slots.optionFullscreen ? {
|
|
2078
2079
|
name: "optionFullscreen",
|
|
2079
2080
|
fn: X(({ toggleFullscreen: e, isFullscreen: s }) => [
|
|
2080
|
-
F(
|
|
2081
|
+
F(l.$slots, "optionFullscreen", ge(be({ toggleFullscreen: e, isFullscreen: s })), void 0, !0)
|
|
2081
2082
|
]),
|
|
2082
2083
|
key: "9"
|
|
2083
2084
|
} : void 0,
|
|
2084
|
-
|
|
2085
|
+
l.$slots.optionAnnotator ? {
|
|
2085
2086
|
name: "optionAnnotator",
|
|
2086
2087
|
fn: X(({ toggleAnnotator: e, isAnnotator: s }) => [
|
|
2087
|
-
F(
|
|
2088
|
+
F(l.$slots, "optionAnnotator", ge(be({ toggleAnnotator: e, isAnnotator: s })), void 0, !0)
|
|
2088
2089
|
]),
|
|
2089
2090
|
key: "10"
|
|
2090
2091
|
} : void 0,
|
|
2091
|
-
|
|
2092
|
+
l.$slots.optionAltCopy ? {
|
|
2092
2093
|
name: "optionAltCopy",
|
|
2093
2094
|
fn: X(({ altCopy: e }) => [
|
|
2094
|
-
F(
|
|
2095
|
+
F(l.$slots, "optionAltCopy", ge(be({ altCopy: e })), void 0, !0)
|
|
2095
2096
|
]),
|
|
2096
2097
|
key: "11"
|
|
2097
2098
|
} : void 0
|
|
@@ -2099,7 +2100,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2099
2100
|
y("div", Ss, [
|
|
2100
2101
|
(i(), r("svg", {
|
|
2101
2102
|
ref_key: "svgRef",
|
|
2102
|
-
ref:
|
|
2103
|
+
ref: ae,
|
|
2103
2104
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2104
2105
|
class: Je([{ "vue-data-ui-fullscreen--on": Ee.value, "vue-data-ui-fulscreen--off": !Ee.value }, "vue-ui-xy-svg vue-data-ui-svg"]),
|
|
2105
2106
|
width: "100%",
|
|
@@ -2117,7 +2118,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2117
2118
|
preserveAspectRatio: "xMidYMid",
|
|
2118
2119
|
onMousemove: tu,
|
|
2119
2120
|
onMouseleave: Lt,
|
|
2120
|
-
onClick:
|
|
2121
|
+
onClick: Ta,
|
|
2121
2122
|
onFocus: Cu,
|
|
2122
2123
|
onBlur: Tu,
|
|
2123
2124
|
onKeydown: zu
|
|
@@ -2127,20 +2128,20 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2127
2128
|
ref: zo,
|
|
2128
2129
|
class: "vue-data-ui-g"
|
|
2129
2130
|
}, [
|
|
2130
|
-
|
|
2131
|
-
|
|
2131
|
+
dt(v($o)),
|
|
2132
|
+
l.$slots["chart-background"] ? (i(), r("foreignObject", {
|
|
2132
2133
|
key: 0,
|
|
2133
2134
|
x: c.value?.left + q.value < 0 ? 0 : c.value?.left + q.value,
|
|
2134
2135
|
y: c.value?.top,
|
|
2135
|
-
width: c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width /
|
|
2136
|
+
width: c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width / $.value) < 0 ? 0 : c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width / $.value),
|
|
2136
2137
|
height: c.value.height < 0 ? 0 : c.value.height,
|
|
2137
2138
|
style: {
|
|
2138
2139
|
pointerEvents: "none"
|
|
2139
2140
|
}
|
|
2140
2141
|
}, [
|
|
2141
|
-
F(
|
|
2142
|
+
F(l.$slots, "chart-background", {}, void 0, !0)
|
|
2142
2143
|
], 8, Ls)) : h("", !0),
|
|
2143
|
-
|
|
2144
|
+
$.value > 0 ? (i(), r("g", Ms, [
|
|
2144
2145
|
y("g", As, [
|
|
2145
2146
|
t.value.chart.grid.labels.xAxis.showBaseline ? (i(), r("line", {
|
|
2146
2147
|
key: 0,
|
|
@@ -2186,7 +2187,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2186
2187
|
style: { animation: "none !important" }
|
|
2187
2188
|
}, null, 8, Ts)) : h("", !0),
|
|
2188
2189
|
t.value.chart.grid.showHorizontalLines ? (i(), r("g", zs, [
|
|
2189
|
-
(i(!0), r(d, null, k(
|
|
2190
|
+
(i(!0), r(d, null, k(Na.value, (e) => (i(), r("line", {
|
|
2190
2191
|
x1: c.value?.left + q.value,
|
|
2191
2192
|
x2: c.value?.right,
|
|
2192
2193
|
y1: v(W)(e.y),
|
|
@@ -2220,7 +2221,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2220
2221
|
(i(!0), r(d, null, k(ke.value, (e, s) => (i(), r("defs", {
|
|
2221
2222
|
key: `def_rect_${s}`
|
|
2222
2223
|
}, [
|
|
2223
|
-
|
|
2224
|
+
l.$slots["bar-gradient"] ? F(l.$slots, "bar-gradient", Qe({
|
|
2224
2225
|
key: 0,
|
|
2225
2226
|
ref_for: !0
|
|
2226
2227
|
}, { series: e, positiveId: `rectGradient_pos_${s}_${z.value}`, negativeId: `rectGradient_neg_${s}_${z.value}` }), void 0, !0) : (i(), r(d, { key: 1 }, [
|
|
@@ -2304,7 +2305,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2304
2305
|
"stop-color": e.color
|
|
2305
2306
|
}, null, 8, Qs)
|
|
2306
2307
|
], 8, Ks),
|
|
2307
|
-
|
|
2308
|
+
l.$slots["area-gradient"] ? F(l.$slots, "area-gradient", Qe({
|
|
2308
2309
|
key: 0,
|
|
2309
2310
|
ref_for: !0
|
|
2310
2311
|
}, { series: e, id: `areaGradient_${s}_${z.value}` }), void 0, !0) : (i(), r("linearGradient", {
|
|
@@ -2325,45 +2326,45 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2325
2326
|
}, null, 8, tn)
|
|
2326
2327
|
], 8, js))
|
|
2327
2328
|
]),
|
|
2328
|
-
e.temperatureColors ? (i(), r("defs",
|
|
2329
|
+
e.temperatureColors ? (i(), r("defs", ln, [
|
|
2329
2330
|
y("linearGradient", {
|
|
2330
2331
|
id: `temperature_grad_line_${s}_${z.value}`,
|
|
2331
2332
|
gradientTransform: "rotate(90)"
|
|
2332
2333
|
}, [
|
|
2333
|
-
(i(!0), r(d, null, k(e.temperatureColors, (
|
|
2334
|
+
(i(!0), r(d, null, k(e.temperatureColors, (a, n) => (i(), r("stop", {
|
|
2334
2335
|
key: `temperature_grad_stop_${s}_${n}_${z.value}`,
|
|
2335
|
-
"stop-color":
|
|
2336
|
+
"stop-color": a,
|
|
2336
2337
|
offset: v(Ju)(n, e.temperatureColors.length)
|
|
2337
2338
|
}, null, 8, on))), 128))
|
|
2338
|
-
], 8,
|
|
2339
|
+
], 8, an)
|
|
2339
2340
|
])) : h("", !0)
|
|
2340
2341
|
], 64))), 128)),
|
|
2341
2342
|
(i(!0), r(d, null, k(cu.value, (e) => (i(), r("g", null, [
|
|
2342
2343
|
e.show ? (i(), r(d, { key: 0 }, [
|
|
2343
|
-
(i(!0), r(d, null, k(e.span, (s,
|
|
2344
|
+
(i(!0), r(d, null, k(e.span, (s, a) => (i(), r("g", null, [
|
|
2344
2345
|
y("rect", {
|
|
2345
2346
|
style: w({
|
|
2346
2347
|
transition: "none",
|
|
2347
|
-
opacity: e.from +
|
|
2348
|
+
opacity: e.from + a >= m.value.start && e.from + a <= m.value.end - 1 ? 1 : 0
|
|
2348
2349
|
}),
|
|
2349
|
-
x: c.value?.left + c.value.width /
|
|
2350
|
+
x: c.value?.left + c.value.width / $.value * (e.from + a - m.value.start),
|
|
2350
2351
|
y: c.value?.top,
|
|
2351
2352
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
2352
|
-
width: c.value.width /
|
|
2353
|
+
width: c.value.width / $.value < 0 ? 1e-5 : c.value.width / $.value,
|
|
2353
2354
|
fill: v(Ce)(e.color, e.opacity)
|
|
2354
2355
|
}, null, 12, un)
|
|
2355
2356
|
]))), 256)),
|
|
2356
|
-
(i(!0), r(d, null, k(e.span, (s,
|
|
2357
|
-
e.caption.text &&
|
|
2357
|
+
(i(!0), r(d, null, k(e.span, (s, a) => (i(), r("g", null, [
|
|
2358
|
+
e.caption.text && a === 0 ? (i(), r("foreignObject", {
|
|
2358
2359
|
key: 0,
|
|
2359
|
-
x: c.value?.left + c.value.width /
|
|
2360
|
+
x: c.value?.left + c.value.width / $.value * (e.from + a - m.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - c.value.width / $.value * e.span / 2),
|
|
2360
2361
|
y: c.value?.top + e.caption.offsetY,
|
|
2361
2362
|
style: w({
|
|
2362
2363
|
overflow: "visible",
|
|
2363
2364
|
opacity: e.to >= m.value.start && e.from < m.value.end ? 1 : 0
|
|
2364
2365
|
}),
|
|
2365
2366
|
height: "1",
|
|
2366
|
-
width: e.caption.width === "auto" ? c.value.width /
|
|
2367
|
+
width: e.caption.width === "auto" ? c.value.width / $.value * e.span : e.caption.width
|
|
2367
2368
|
}, [
|
|
2368
2369
|
y("div", {
|
|
2369
2370
|
style: w(`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"}`)
|
|
@@ -2373,14 +2374,14 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2373
2374
|
], 64)) : h("", !0)
|
|
2374
2375
|
]))), 256)),
|
|
2375
2376
|
Ut.value ? (i(), r("g", nn, [
|
|
2376
|
-
(i(!0), r(d, null, k(
|
|
2377
|
+
(i(!0), r(d, null, k($.value, (e, s) => (i(), r("g", {
|
|
2377
2378
|
key: `tooltip_trap_highlighter_${s}`
|
|
2378
2379
|
}, [
|
|
2379
2380
|
y("rect", {
|
|
2380
|
-
x: c.value?.left + c.value.width /
|
|
2381
|
+
x: c.value?.left + c.value.width / $.value * s,
|
|
2381
2382
|
y: c.value?.top,
|
|
2382
2383
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
2383
|
-
width: c.value.width /
|
|
2384
|
+
width: c.value.width / $.value < 0 ? 1e-5 : c.value.width / $.value,
|
|
2384
2385
|
fill: [P.value, _.value, Ye.value].includes(s) ? v(Ce)(t.value.chart.highlighter.color, t.value.chart.highlighter.opacity) : "transparent",
|
|
2385
2386
|
style: { transition: "none !important", animation: "none !important" }
|
|
2386
2387
|
}, null, 8, rn)
|
|
@@ -2391,45 +2392,45 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2391
2392
|
class: Je(`serie_bar_${s}`),
|
|
2392
2393
|
style: w(`opacity:${C.value ? C.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2393
2394
|
}, [
|
|
2394
|
-
(i(!0), r(d, null, k(e.plots, (
|
|
2395
|
+
(i(!0), r(d, null, k(e.plots, (a, n) => (i(), r("g", {
|
|
2395
2396
|
key: `bar_plot_${s}_${n}`
|
|
2396
2397
|
}, [
|
|
2397
|
-
xe(
|
|
2398
|
+
xe(a.value) ? (i(), r("rect", {
|
|
2398
2399
|
key: 0,
|
|
2399
|
-
x: jt(
|
|
2400
|
-
y: f.value.useIndividualScale ?
|
|
2401
|
-
height: f.value.useIndividualScale ? Math.abs(
|
|
2402
|
-
width:
|
|
2400
|
+
x: jt(a) + ll.value / 2,
|
|
2401
|
+
y: f.value.useIndividualScale ? Aa(a) : Ma(a),
|
|
2402
|
+
height: f.value.useIndividualScale ? Math.abs(La(a)) : Math.abs($a(a)),
|
|
2403
|
+
width: tl.value - ll.value,
|
|
2403
2404
|
rx: t.value.bar.borderRadius,
|
|
2404
|
-
fill: t.value.bar.useGradient ?
|
|
2405
|
+
fill: t.value.bar.useGradient ? a.value >= 0 ? `url(#rectGradient_pos_${s}_${z.value})` : `url(#rectGradient_neg_${s}_${z.value})` : e.color,
|
|
2405
2406
|
stroke: t.value.bar.border.useSerieColor ? e.color : t.value.bar.border.stroke,
|
|
2406
2407
|
"stroke-width": t.value.bar.border.strokeWidth,
|
|
2407
2408
|
style: w({
|
|
2408
2409
|
transition: v(ne) || !t.value.bar.showTransition ? void 0 : `all ${t.value.bar.transitionDurationMs}ms ease-in-out`
|
|
2409
2410
|
})
|
|
2410
2411
|
}, null, 12, cn)) : h("", !0),
|
|
2411
|
-
xe(
|
|
2412
|
+
xe(a.value) && l.$slots.pattern ? (i(), r("rect", {
|
|
2412
2413
|
key: 1,
|
|
2413
|
-
x: jt(
|
|
2414
|
-
y: f.value.useIndividualScale ?
|
|
2415
|
-
height: f.value.useIndividualScale ? Math.abs(
|
|
2416
|
-
width:
|
|
2414
|
+
x: jt(a) - ll.value / 2,
|
|
2415
|
+
y: f.value.useIndividualScale ? Aa(a) : Ma(a),
|
|
2416
|
+
height: f.value.useIndividualScale ? Math.abs(La(a)) : Math.abs($a(a)),
|
|
2417
|
+
width: tl.value - ll.value,
|
|
2417
2418
|
rx: t.value.bar.borderRadius,
|
|
2418
2419
|
fill: `url(#pattern_${z.value}_${e.slotAbsoluteIndex})`,
|
|
2419
2420
|
stroke: t.value.bar.border.useSerieColor ? e.color : t.value.bar.border.stroke,
|
|
2420
2421
|
"stroke-width": t.value.bar.border.strokeWidth,
|
|
2421
2422
|
style: w({ transition: v(ne) || !t.value.bar.showTransition ? void 0 : `all ${t.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
2422
2423
|
}, null, 12, vn)) : h("", !0),
|
|
2423
|
-
|
|
2424
|
+
a.comment && t.value.chart.comments.show ? (i(), r("foreignObject", {
|
|
2424
2425
|
key: 2,
|
|
2425
2426
|
style: { overflow: "visible" },
|
|
2426
2427
|
height: "12",
|
|
2427
|
-
width:
|
|
2428
|
-
x: jt(
|
|
2429
|
-
y: v(O)(
|
|
2428
|
+
width: tl.value + t.value.chart.comments.width,
|
|
2429
|
+
x: jt(a) - t.value.chart.comments.width / 2 + t.value.chart.comments.offsetX,
|
|
2430
|
+
y: v(O)(a.y) + t.value.chart.comments.offsetY + 6
|
|
2430
2431
|
}, [
|
|
2431
|
-
F(
|
|
2432
|
-
plot: { ...
|
|
2432
|
+
F(l.$slots, "plot-comment", {
|
|
2433
|
+
plot: { ...a, color: e.color, seriesIndex: s, datapointIndex: n }
|
|
2433
2434
|
}, void 0, !0)
|
|
2434
2435
|
], 8, dn)) : h("", !0)
|
|
2435
2436
|
]))), 128))
|
|
@@ -2447,8 +2448,8 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2447
2448
|
}, null, 8, hn)) : h("", !0),
|
|
2448
2449
|
t.value.chart.highlighter.useLine && (![null, void 0].includes(_.value) || ![null, void 0].includes(P.value)) ? (i(), r("g", fn, [
|
|
2449
2450
|
y("line", {
|
|
2450
|
-
x1: c.value?.left + c.value.width /
|
|
2451
|
-
x2: c.value?.left + c.value.width /
|
|
2451
|
+
x1: c.value?.left + c.value.width / $.value * ((_.value !== null ? _.value : 0) || (P.value !== null ? P.value : 0)) + c.value.width / $.value / 2,
|
|
2452
|
+
x2: c.value?.left + c.value.width / $.value * ((_.value !== null ? _.value : 0) || (P.value !== null ? P.value : 0)) + c.value.width / $.value / 2,
|
|
2452
2453
|
y1: v(W)(c.value?.top),
|
|
2453
2454
|
y2: v(W)(c.value?.bottom),
|
|
2454
2455
|
stroke: t.value.chart.highlighter.color,
|
|
@@ -2463,7 +2464,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2463
2464
|
style: { pointerEvents: "none", transition: "none", animation: "none !important" },
|
|
2464
2465
|
x: c.value?.left + q.value < 0 ? 0 : c.value?.left + q.value,
|
|
2465
2466
|
y: c.value?.top,
|
|
2466
|
-
width: c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width /
|
|
2467
|
+
width: c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width / $.value) < 0 ? 0 : c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width / $.value),
|
|
2467
2468
|
height: c.value.height < 0 ? 0 : c.value.height,
|
|
2468
2469
|
fill: "transparent",
|
|
2469
2470
|
stroke: t.value.chart.grid.frame.stroke,
|
|
@@ -2475,7 +2476,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2475
2476
|
t.value.chart.grid.labels.show ? (i(), r("g", {
|
|
2476
2477
|
key: 5,
|
|
2477
2478
|
ref_key: "scaleLabels",
|
|
2478
|
-
ref:
|
|
2479
|
+
ref: hl
|
|
2479
2480
|
}, [
|
|
2480
2481
|
f.value.useIndividualScale ? (i(), r(d, { key: 0 }, [
|
|
2481
2482
|
(i(!0), r(d, null, k(At.value, (e) => (i(), r("g", null, [
|
|
@@ -2500,7 +2501,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2500
2501
|
transform: `translate(${e.x - x.value.dataLabels * 0.8 / 2 + q.value}, ${f.value.isStacked ? c.value?.bottom - e.yOffset - e.individualHeight / 2 : c.value?.top + c.value.height / 2}) rotate(-90)`
|
|
2501
2502
|
}, ue(e.name) + " " + ue(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
|
|
2502
2503
|
${e.scaleLabel}` : ""), 9, pn),
|
|
2503
|
-
(i(!0), r(d, null, k(e.yLabels, (s,
|
|
2504
|
+
(i(!0), r(d, null, k(e.yLabels, (s, a) => (i(), r(d, null, [
|
|
2504
2505
|
t.value.chart.grid.labels.yAxis.showCrosshairs ? (i(), r("line", {
|
|
2505
2506
|
key: 0,
|
|
2506
2507
|
x1: e.x + 3 + q.value - t.value.chart.grid.labels.yAxis.crosshairSize - c.value.individualOffsetX,
|
|
@@ -2513,7 +2514,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2513
2514
|
style: { animation: "none !important" }
|
|
2514
2515
|
}, null, 8, yn)) : h("", !0)
|
|
2515
2516
|
], 64))), 256)),
|
|
2516
|
-
(i(!0), r(d, null, k(e.yLabels, (s,
|
|
2517
|
+
(i(!0), r(d, null, k(e.yLabels, (s, a) => (i(), r("text", {
|
|
2517
2518
|
x: e.x - 5 + q.value - c.value.individualOffsetX,
|
|
2518
2519
|
y: v(W)(s.y) + x.value.dataLabels / 3,
|
|
2519
2520
|
"font-size": x.value.dataLabels,
|
|
@@ -2528,10 +2529,10 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2528
2529
|
s: s.suffix,
|
|
2529
2530
|
r: t.value.chart.grid.labels.yAxis.rounding
|
|
2530
2531
|
}),
|
|
2531
|
-
{ datapoint: s.datapoint, seriesIndex:
|
|
2532
|
+
{ datapoint: s.datapoint, seriesIndex: a }
|
|
2532
2533
|
)), 9, xn))), 256))
|
|
2533
2534
|
], 4))), 256))
|
|
2534
|
-
], 64)) : (i(!0), r(d, { key: 1 }, k(
|
|
2535
|
+
], 64)) : (i(!0), r(d, { key: 1 }, k(Na.value, (e, s) => (i(), r("g", {
|
|
2535
2536
|
key: `yLabel_${s}`
|
|
2536
2537
|
}, [
|
|
2537
2538
|
xe(e) && e.value >= Ae.value.min && e.value <= Ae.value.max && t.value.chart.grid.labels.yAxis.showCrosshairs ? (i(), r("line", {
|
|
@@ -2569,30 +2570,30 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2569
2570
|
class: Je(`serie_plot_${s}`),
|
|
2570
2571
|
style: w(`opacity:${C.value ? C.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2571
2572
|
}, [
|
|
2572
|
-
(i(!0), r(d, null, k(e.plots, (
|
|
2573
|
+
(i(!0), r(d, null, k(e.plots, (a, n) => (i(), r("g", {
|
|
2573
2574
|
key: `circle_plot_${s}_${n}`
|
|
2574
2575
|
}, [
|
|
2575
|
-
|
|
2576
|
+
a && xe(a.value) ? (i(), _e(rl, {
|
|
2576
2577
|
key: 0,
|
|
2577
2578
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
2578
2579
|
color: t.value.plot.useGradient ? `url(#plotGradient_${s}_${z.value})` : t.value.plot.dot.useSerieColor ? e.color : t.value.plot.dot.fill,
|
|
2579
|
-
plot: { x: v(O)(
|
|
2580
|
+
plot: { x: v(O)(a.x), y: v(O)(a.y) },
|
|
2580
2581
|
radius: _.value !== null && _.value === n || P.value !== null && P.value === n ? (Le.value.plot || 6) * 1.5 : Le.value.plot || 6,
|
|
2581
2582
|
stroke: t.value.plot.dot.useSerieColor ? t.value.chart.backgroundColor : e.color,
|
|
2582
2583
|
strokeWidth: t.value.plot.dot.strokeWidth,
|
|
2583
2584
|
transition: v(ne) || !t.value.plot.showTransition || _.value !== null && _.value === n || P.value !== null && P.value === n ? void 0 : `all ${t.value.plot.transitionDurationMs}ms ease-in-out`
|
|
2584
2585
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : h("", !0),
|
|
2585
|
-
|
|
2586
|
+
a.comment && t.value.chart.comments.show ? (i(), r("foreignObject", {
|
|
2586
2587
|
key: 1,
|
|
2587
2588
|
style: { overflow: "visible" },
|
|
2588
2589
|
height: "12",
|
|
2589
2590
|
width: t.value.chart.comments.width,
|
|
2590
|
-
x:
|
|
2591
|
-
y:
|
|
2591
|
+
x: a.x - t.value.chart.comments.width / 2 + t.value.chart.comments.offsetX,
|
|
2592
|
+
y: a.y + t.value.chart.comments.offsetY + 6
|
|
2592
2593
|
}, [
|
|
2593
2594
|
y("div", Sn, [
|
|
2594
|
-
F(
|
|
2595
|
-
plot: { ...
|
|
2595
|
+
F(l.$slots, "plot-comment", {
|
|
2596
|
+
plot: { ...a, color: e.color, seriesIndex: s, datapointIndex: n }
|
|
2596
2597
|
}, void 0, !0)
|
|
2597
2598
|
])
|
|
2598
2599
|
], 8, wn)) : h("", !0)
|
|
@@ -2623,13 +2624,13 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2623
2624
|
style: w({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2624
2625
|
}, null, 12, Ln)) : h("", !0)
|
|
2625
2626
|
], 6))), 128)),
|
|
2626
|
-
|
|
2627
|
-
(i(!0), r(d, null, k(Ve.value, (e, s) => F(
|
|
2627
|
+
l.$slots.pattern ? (i(), r("defs", Mn, [
|
|
2628
|
+
(i(!0), r(d, null, k(Ve.value, (e, s) => F(l.$slots, "pattern", Qe({
|
|
2628
2629
|
key: `serie_pattern_slot_${e.id}`
|
|
2629
2630
|
}, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${z.value}_${s}` }), void 0, !0)), 128))
|
|
2630
2631
|
])) : h("", !0),
|
|
2631
|
-
|
|
2632
|
-
(i(!0), r(d, null, k(
|
|
2632
|
+
Ba.value.length && !f.value.isStacked ? (i(), r("g", An, [
|
|
2633
|
+
(i(!0), r(d, null, k(Ba.value, (e) => (i(), r("path", {
|
|
2633
2634
|
key: e.key,
|
|
2634
2635
|
d: e.d,
|
|
2635
2636
|
fill: e.color,
|
|
@@ -2645,29 +2646,29 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2645
2646
|
style: w(`opacity:${C.value ? C.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2646
2647
|
}, [
|
|
2647
2648
|
e.useArea && e.plots.length > 1 ? (i(), r("g", Tn, [
|
|
2648
|
-
e.smooth ? (i(!0), r(d, { key: 0 }, k(e.curveAreas, (
|
|
2649
|
-
|
|
2649
|
+
e.smooth ? (i(!0), r(d, { key: 0 }, k(e.curveAreas, (a, n) => (i(), r(d, { key: n }, [
|
|
2650
|
+
a ? (i(), r("path", {
|
|
2650
2651
|
key: 0,
|
|
2651
|
-
d:
|
|
2652
|
+
d: a,
|
|
2652
2653
|
fill: t.value.line.area.useGradient ? `url(#areaGradient_${s}_${z.value})` : v(Ce)(e.color, t.value.line.area.opacity),
|
|
2653
2654
|
style: w({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2654
2655
|
}, null, 12, zn)) : h("", !0),
|
|
2655
|
-
|
|
2656
|
+
l.$slots.pattern && a ? (i(), r("path", {
|
|
2656
2657
|
key: 1,
|
|
2657
|
-
d:
|
|
2658
|
+
d: a,
|
|
2658
2659
|
fill: `url(#pattern_${z.value}_${e.slotAbsoluteIndex})`,
|
|
2659
2660
|
style: w({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2660
2661
|
}, null, 12, In)) : h("", !0)
|
|
2661
|
-
], 64))), 128)) : (i(!0), r(d, { key: 1 }, k(e.area.split(";"), (
|
|
2662
|
-
|
|
2662
|
+
], 64))), 128)) : (i(!0), r(d, { key: 1 }, k(e.area.split(";"), (a, n) => (i(), r(d, { key: n }, [
|
|
2663
|
+
a ? (i(), r("path", {
|
|
2663
2664
|
key: 0,
|
|
2664
|
-
d: `M${
|
|
2665
|
+
d: `M${a}Z`,
|
|
2665
2666
|
fill: t.value.line.area.useGradient ? `url(#areaGradient_${s}_${z.value})` : v(Ce)(e.color, t.value.line.area.opacity),
|
|
2666
2667
|
style: w({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2667
2668
|
}, null, 12, Pn)) : h("", !0),
|
|
2668
|
-
|
|
2669
|
+
l.$slots.pattern && a ? (i(), r("path", {
|
|
2669
2670
|
key: 1,
|
|
2670
|
-
d: `M${
|
|
2671
|
+
d: `M${a}Z`,
|
|
2671
2672
|
fill: `url(#pattern_${z.value}_${e.slotAbsoluteIndex})`,
|
|
2672
2673
|
style: w({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2673
2674
|
}, null, 12, On)) : h("", !0)
|
|
@@ -2683,24 +2684,24 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2683
2684
|
"stroke-linecap": "round",
|
|
2684
2685
|
style: w({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2685
2686
|
}, null, 12, Nn)) : e.hasDashedSegments ? (i(), r(d, { key: 2 }, [
|
|
2686
|
-
e.smooth ? (i(!0), r(d, { key: 0 }, k(e.dashedSmooth, (
|
|
2687
|
-
key:
|
|
2687
|
+
e.smooth ? (i(!0), r(d, { key: 0 }, k(e.dashedSmooth, (a) => (i(), r("path", {
|
|
2688
|
+
key: a.path,
|
|
2688
2689
|
fill: "none",
|
|
2689
2690
|
"stroke-linecap": "round",
|
|
2690
2691
|
"stroke-linejoin": "round",
|
|
2691
|
-
d: `M ${
|
|
2692
|
+
d: `M ${a.path}`,
|
|
2692
2693
|
stroke: e.temperatureColors ? `url(#temperature_grad_line_${s}_${z.value})` : e.color,
|
|
2693
2694
|
"stroke-width": t.value.line.strokeWidth,
|
|
2694
|
-
"stroke-dasharray":
|
|
2695
|
-
}, null, 8, Fn))), 128)) : (i(!0), r(d, { key: 1 }, k(e.dashedStraight, (
|
|
2696
|
-
key:
|
|
2695
|
+
"stroke-dasharray": a.dashed ? t.value.line.strokeWidth * 2 : 0
|
|
2696
|
+
}, null, 8, Fn))), 128)) : (i(!0), r(d, { key: 1 }, k(e.dashedStraight, (a) => (i(), r("path", {
|
|
2697
|
+
key: a.path,
|
|
2697
2698
|
fill: "none",
|
|
2698
2699
|
"stroke-linecap": "round",
|
|
2699
2700
|
"stroke-linejoin": "round",
|
|
2700
|
-
d: `M ${
|
|
2701
|
+
d: `M ${a.path}`,
|
|
2701
2702
|
stroke: e.temperatureColors ? `url(#temperature_grad_line_${s}_${z.value})` : e.color,
|
|
2702
2703
|
"stroke-width": t.value.line.strokeWidth,
|
|
2703
|
-
"stroke-dasharray":
|
|
2704
|
+
"stroke-dasharray": a.dashed ? t.value.line.strokeWidth * 2 : 0
|
|
2704
2705
|
}, null, 8, Vn))), 128))
|
|
2705
2706
|
], 64)) : e.plots.length > 1 && e.straight ? (i(), r("path", {
|
|
2706
2707
|
key: 3,
|
|
@@ -2713,30 +2714,30 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2713
2714
|
"stroke-linejoin": "round",
|
|
2714
2715
|
style: w({ transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2715
2716
|
}, null, 12, Bn)) : h("", !0),
|
|
2716
|
-
(i(!0), r(d, null, k(e.plots, (
|
|
2717
|
+
(i(!0), r(d, null, k(e.plots, (a, n) => (i(), r(d, {
|
|
2717
2718
|
key: `circle_line_${s}_${n}`
|
|
2718
2719
|
}, [
|
|
2719
|
-
!
|
|
2720
|
+
!Pa.value.linePlot && a && xe(a.value) || Pa.value.linePlot && a && xe(a.value) && (_.value !== null && _.value === n || P.value !== null && P.value === n) || Va(e.plots, n) ? (i(), _e(rl, {
|
|
2720
2721
|
key: 0,
|
|
2721
2722
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
2722
2723
|
color: t.value.line.useGradient ? `url(#lineGradient_${s}_${z.value})` : t.value.line.dot.useSerieColor ? e.color : t.value.line.dot.fill,
|
|
2723
|
-
plot: { x: v(O)(
|
|
2724
|
-
radius: _.value !== null && _.value === n || P.value !== null && P.value === n ? (Le.value.line || 6) * 1.5 : (
|
|
2724
|
+
plot: { x: v(O)(a.x), y: v(O)(a.y) },
|
|
2725
|
+
radius: _.value !== null && _.value === n || P.value !== null && P.value === n ? (Le.value.line || 6) * 1.5 : (Va(e.plots, n), Le.value.line || 6),
|
|
2725
2726
|
stroke: t.value.line.dot.useSerieColor ? t.value.chart.backgroundColor : e.color,
|
|
2726
2727
|
strokeWidth: t.value.line.dot.strokeWidth,
|
|
2727
2728
|
transition: v(ne) || !t.value.line.showTransition || _.value !== null && _.value === n || P.value !== null && P.value === n ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out`
|
|
2728
2729
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : h("", !0),
|
|
2729
|
-
|
|
2730
|
+
a.comment && t.value.chart.comments.show ? (i(), r("foreignObject", {
|
|
2730
2731
|
key: 1,
|
|
2731
2732
|
style: { overflow: "visible" },
|
|
2732
2733
|
height: "12",
|
|
2733
2734
|
width: t.value.chart.comments.width,
|
|
2734
|
-
x:
|
|
2735
|
-
y:
|
|
2735
|
+
x: a.x - t.value.chart.comments.width / 2 + t.value.chart.comments.offsetX,
|
|
2736
|
+
y: a.y + t.value.chart.comments.offsetY + 6
|
|
2736
2737
|
}, [
|
|
2737
2738
|
y("div", Hn, [
|
|
2738
|
-
F(
|
|
2739
|
-
plot: { ...
|
|
2739
|
+
F(l.$slots, "plot-comment", {
|
|
2740
|
+
plot: { ...a, color: e.color, seriesIndex: s, datapointIndex: n }
|
|
2740
2741
|
}, void 0, !0)
|
|
2741
2742
|
])
|
|
2742
2743
|
], 8, Rn)) : h("", !0)
|
|
@@ -2746,35 +2747,35 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2746
2747
|
(i(!0), r(d, null, k(ke.value, (e, s) => (i(), r(d, {
|
|
2747
2748
|
key: `xLabel_bar_${e.id}`
|
|
2748
2749
|
}, [
|
|
2749
|
-
(i(!0), r(d, null, k(e.plots, (
|
|
2750
|
+
(i(!0), r(d, null, k(e.plots, (a, n) => (i(), r(d, {
|
|
2750
2751
|
key: `xLabel_bar_${s}_${n}`
|
|
2751
2752
|
}, [
|
|
2752
|
-
|
|
2753
|
+
a && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === n || P.value !== null && P.value === n) && t.value.bar.labels.show ? (i(), r("text", {
|
|
2753
2754
|
key: 0,
|
|
2754
|
-
x: f.value.useIndividualScale && f.value.isStacked ?
|
|
2755
|
-
y: v(O)(
|
|
2755
|
+
x: f.value.useIndividualScale && f.value.isStacked ? a.x + J.value.line / 2 : jt(a) + Be() / 2 - el.value / 2,
|
|
2756
|
+
y: v(O)(a.y) + (a.value >= 0 ? t.value.bar.labels.offsetY : -t.value.bar.labels.offsetY * 3),
|
|
2756
2757
|
"text-anchor": "middle",
|
|
2757
2758
|
"font-size": x.value.plotLabels,
|
|
2758
2759
|
fill: t.value.bar.labels.color,
|
|
2759
2760
|
style: w(`opacity:${C.value ? C.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2760
|
-
}, ue(xe(
|
|
2761
|
+
}, ue(xe(a.value) ? v(ve)(
|
|
2761
2762
|
t.value.bar.labels.formatter,
|
|
2762
|
-
|
|
2763
|
+
a.value,
|
|
2763
2764
|
v(Pe)({
|
|
2764
2765
|
p: e.prefix || t.value.chart.labels.prefix,
|
|
2765
|
-
v:
|
|
2766
|
+
v: a.value,
|
|
2766
2767
|
s: e.suffix || t.value.chart.labels.suffix,
|
|
2767
2768
|
r: t.value.bar.labels.rounding
|
|
2768
2769
|
}),
|
|
2769
2770
|
{
|
|
2770
|
-
datapoint:
|
|
2771
|
+
datapoint: a,
|
|
2771
2772
|
serie: e
|
|
2772
2773
|
}
|
|
2773
2774
|
) : ""), 13, Wn)) : h("", !0),
|
|
2774
|
-
|
|
2775
|
+
a && t.value.bar.serieName.show ? (i(), r("text", {
|
|
2775
2776
|
key: 1,
|
|
2776
|
-
x: f.value.useIndividualScale && f.value.isStacked ?
|
|
2777
|
-
y:
|
|
2777
|
+
x: f.value.useIndividualScale && f.value.isStacked ? a.x + J.value.line / 2 : a.x + Be() * 1.1,
|
|
2778
|
+
y: a.y + (a.value > 0 ? t.value.bar.serieName.offsetY : -t.value.bar.serieName.offsetY * 3),
|
|
2778
2779
|
"text-anchor": "middle",
|
|
2779
2780
|
"font-size": x.value.plotLabels,
|
|
2780
2781
|
fill: t.value.bar.serieName.useSerieColor ? e.color : t.value.bar.serieName.color,
|
|
@@ -2791,28 +2792,28 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2791
2792
|
(i(!0), r(d, null, k(fe.value, (e, s) => (i(), r(d, {
|
|
2792
2793
|
key: `xLabel_plot_${e.id}`
|
|
2793
2794
|
}, [
|
|
2794
|
-
(i(!0), r(d, null, k(e.plots, (
|
|
2795
|
+
(i(!0), r(d, null, k(e.plots, (a, n) => (i(), r(d, {
|
|
2795
2796
|
key: `xLabel_plot_${s}_${n}`
|
|
2796
2797
|
}, [
|
|
2797
|
-
|
|
2798
|
+
a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === n || P.value !== null && P.value === n ? (i(), r("text", {
|
|
2798
2799
|
key: 0,
|
|
2799
|
-
x:
|
|
2800
|
-
y:
|
|
2800
|
+
x: a.x,
|
|
2801
|
+
y: a.y + t.value.plot.labels.offsetY,
|
|
2801
2802
|
"text-anchor": "middle",
|
|
2802
2803
|
"font-size": x.value.plotLabels,
|
|
2803
2804
|
fill: t.value.plot.labels.color,
|
|
2804
2805
|
style: w(`opacity:${C.value ? C.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2805
|
-
}, ue(xe(
|
|
2806
|
+
}, ue(xe(a.value) ? v(ve)(
|
|
2806
2807
|
t.value.plot.labels.formatter,
|
|
2807
|
-
|
|
2808
|
+
a.value,
|
|
2808
2809
|
v(Pe)({
|
|
2809
2810
|
p: e.prefix || t.value.chart.labels.prefix,
|
|
2810
|
-
v:
|
|
2811
|
+
v: a.value,
|
|
2811
2812
|
s: e.suffix || t.value.chart.labels.suffix,
|
|
2812
2813
|
r: t.value.plot.labels.rounding
|
|
2813
2814
|
}),
|
|
2814
2815
|
{
|
|
2815
|
-
datapoint:
|
|
2816
|
+
datapoint: a,
|
|
2816
2817
|
serie: e
|
|
2817
2818
|
}
|
|
2818
2819
|
) : ""), 13, Xn)) : h("", !0)
|
|
@@ -2822,7 +2823,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2822
2823
|
(i(!0), r(d, null, k(fe.value, (e, s) => (i(), r(d, {
|
|
2823
2824
|
key: `xLabel_plot_${e.id}`
|
|
2824
2825
|
}, [
|
|
2825
|
-
(i(!0), r(d, null, k(e.plots, (
|
|
2826
|
+
(i(!0), r(d, null, k(e.plots, (a, n) => (i(), r(d, {
|
|
2826
2827
|
key: `xLabel_plot_${s}_${n}`
|
|
2827
2828
|
}, [
|
|
2828
2829
|
t.value.plot.tag.followValue ? (i(), r(d, { key: 1 }, [
|
|
@@ -2831,18 +2832,18 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2831
2832
|
class: "vue-ui-xy-tag-plot",
|
|
2832
2833
|
x1: c.value?.left,
|
|
2833
2834
|
x2: c.value?.right,
|
|
2834
|
-
y1:
|
|
2835
|
-
y2:
|
|
2835
|
+
y1: a.y,
|
|
2836
|
+
y2: a.y,
|
|
2836
2837
|
"stroke-width": 1,
|
|
2837
2838
|
"stroke-linecap": "round",
|
|
2838
2839
|
"stroke-dasharray": "2",
|
|
2839
2840
|
stroke: e.color
|
|
2840
2841
|
}, null, 8, Jn)) : h("", !0)
|
|
2841
2842
|
], 64)) : (i(), r(d, { key: 0 }, [
|
|
2842
|
-
|
|
2843
|
+
a && n === 0 && e.useTag && e.useTag === "start" ? (i(), r("foreignObject", {
|
|
2843
2844
|
key: 0,
|
|
2844
|
-
x:
|
|
2845
|
-
y:
|
|
2845
|
+
x: a.x,
|
|
2846
|
+
y: a.y - 20,
|
|
2846
2847
|
height: 24,
|
|
2847
2848
|
width: "150",
|
|
2848
2849
|
style: w(`overflow: visible; opacity:${C.value ? C.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
@@ -2851,20 +2852,20 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2851
2852
|
style: w(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(He)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
|
|
2852
2853
|
innerHTML: v(ve)(
|
|
2853
2854
|
t.value.plot.tag.formatter,
|
|
2854
|
-
|
|
2855
|
+
a.value,
|
|
2855
2856
|
e.name,
|
|
2856
2857
|
{
|
|
2857
|
-
datapoint:
|
|
2858
|
+
datapoint: a,
|
|
2858
2859
|
seriesIndex: n,
|
|
2859
2860
|
serieName: e.name
|
|
2860
2861
|
}
|
|
2861
2862
|
)
|
|
2862
2863
|
}, null, 12, Un)
|
|
2863
2864
|
], 12, qn)) : h("", !0),
|
|
2864
|
-
|
|
2865
|
+
a && n === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (i(), r("foreignObject", {
|
|
2865
2866
|
key: 1,
|
|
2866
|
-
x:
|
|
2867
|
-
y:
|
|
2867
|
+
x: a.x - e.name.length * (x.value.plotLabels / 2),
|
|
2868
|
+
y: a.y - 20,
|
|
2868
2869
|
height: 24,
|
|
2869
2870
|
width: "150",
|
|
2870
2871
|
style: w(`overflow: visible; opacity:${C.value ? C.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
@@ -2873,10 +2874,10 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2873
2874
|
style: w(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(He)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
|
|
2874
2875
|
innerHTML: v(ve)(
|
|
2875
2876
|
t.value.plot.tag.formatter,
|
|
2876
|
-
|
|
2877
|
+
a.value,
|
|
2877
2878
|
e.name,
|
|
2878
2879
|
{
|
|
2879
|
-
datapoint:
|
|
2880
|
+
datapoint: a,
|
|
2880
2881
|
seriesIndex: n,
|
|
2881
2882
|
serieName: e.name
|
|
2882
2883
|
}
|
|
@@ -2891,28 +2892,28 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2891
2892
|
(i(!0), r(d, null, k(oe.value, (e, s) => (i(), r(d, {
|
|
2892
2893
|
key: `xLabel_line_${e.id}`
|
|
2893
2894
|
}, [
|
|
2894
|
-
(i(!0), r(d, null, k(e.plots, (
|
|
2895
|
+
(i(!0), r(d, null, k(e.plots, (a, n) => (i(), r(d, {
|
|
2895
2896
|
key: `xLabel_line_${s}_${n}`
|
|
2896
2897
|
}, [
|
|
2897
|
-
|
|
2898
|
+
a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === n || P.value !== null && P.value === n ? (i(), r("text", {
|
|
2898
2899
|
key: 0,
|
|
2899
|
-
x:
|
|
2900
|
-
y:
|
|
2900
|
+
x: a.x,
|
|
2901
|
+
y: a.y + (a.value >= 0 ? t.value.line.labels.offsetY : -t.value.line.labels.offsetY * 3),
|
|
2901
2902
|
"text-anchor": "middle",
|
|
2902
2903
|
"font-size": x.value.plotLabels,
|
|
2903
2904
|
fill: t.value.line.labels.color,
|
|
2904
2905
|
style: w(`opacity:${C.value ? C.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2905
|
-
}, ue(xe(
|
|
2906
|
+
}, ue(xe(a.value) ? v(ve)(
|
|
2906
2907
|
t.value.line.labels.formatter,
|
|
2907
|
-
|
|
2908
|
+
a.value,
|
|
2908
2909
|
v(Pe)({
|
|
2909
2910
|
p: e.prefix || t.value.chart.labels.prefix,
|
|
2910
|
-
v:
|
|
2911
|
+
v: a.value,
|
|
2911
2912
|
s: e.suffix || t.value.chart.labels.suffix,
|
|
2912
2913
|
r: t.value.line.labels.rounding
|
|
2913
2914
|
}),
|
|
2914
2915
|
{
|
|
2915
|
-
datapoint:
|
|
2916
|
+
datapoint: a,
|
|
2916
2917
|
serie: e
|
|
2917
2918
|
}
|
|
2918
2919
|
) : ""), 13, jn)) : h("", !0)
|
|
@@ -2922,7 +2923,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2922
2923
|
(i(!0), r(d, null, k(oe.value, (e, s) => (i(), r(d, {
|
|
2923
2924
|
key: `xLabel_line_${e.id}`
|
|
2924
2925
|
}, [
|
|
2925
|
-
(i(!0), r(d, null, k(e.plots, (
|
|
2926
|
+
(i(!0), r(d, null, k(e.plots, (a, n) => (i(), r(d, {
|
|
2926
2927
|
key: `xLabel_line_${s}_${n}`
|
|
2927
2928
|
}, [
|
|
2928
2929
|
t.value.line.tag.followValue ? (i(), r(d, { key: 1 }, [
|
|
@@ -2931,18 +2932,18 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2931
2932
|
class: "vue-ui-xy-tag-line",
|
|
2932
2933
|
x1: c.value?.left,
|
|
2933
2934
|
x2: c.value?.right,
|
|
2934
|
-
y1:
|
|
2935
|
-
y2:
|
|
2935
|
+
y1: a.y,
|
|
2936
|
+
y2: a.y,
|
|
2936
2937
|
"stroke-width": 1,
|
|
2937
2938
|
"stroke-linecap": "round",
|
|
2938
2939
|
"stroke-dasharray": "2",
|
|
2939
2940
|
stroke: e.color
|
|
2940
2941
|
}, null, 8, ui)) : h("", !0)
|
|
2941
2942
|
], 64)) : (i(), r(d, { key: 0 }, [
|
|
2942
|
-
|
|
2943
|
+
a && n === 0 && e.useTag && e.useTag === "start" ? (i(), r("foreignObject", {
|
|
2943
2944
|
key: 0,
|
|
2944
|
-
x:
|
|
2945
|
-
y:
|
|
2945
|
+
x: a.x,
|
|
2946
|
+
y: a.y - 20,
|
|
2946
2947
|
height: 24,
|
|
2947
2948
|
width: "150",
|
|
2948
2949
|
style: w(`overflow: visible; opacity:${C.value ? C.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
@@ -2951,20 +2952,20 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2951
2952
|
style: w(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(He)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
|
|
2952
2953
|
innerHTML: v(ve)(
|
|
2953
2954
|
t.value.line.tag.formatter,
|
|
2954
|
-
|
|
2955
|
+
a.value,
|
|
2955
2956
|
e.name,
|
|
2956
2957
|
{
|
|
2957
|
-
datapoint:
|
|
2958
|
+
datapoint: a,
|
|
2958
2959
|
seriesIndex: n,
|
|
2959
2960
|
serieName: e.name
|
|
2960
2961
|
}
|
|
2961
2962
|
)
|
|
2962
|
-
}, null, 12,
|
|
2963
|
+
}, null, 12, li)
|
|
2963
2964
|
], 12, ti)) : h("", !0),
|
|
2964
|
-
|
|
2965
|
+
a && n === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (i(), r("foreignObject", {
|
|
2965
2966
|
key: 1,
|
|
2966
|
-
x:
|
|
2967
|
-
y:
|
|
2967
|
+
x: a.x,
|
|
2968
|
+
y: a.y - 20,
|
|
2968
2969
|
height: 24,
|
|
2969
2970
|
width: "150",
|
|
2970
2971
|
style: w(`overflow: visible; opacity:${C.value ? C.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
@@ -2973,16 +2974,16 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2973
2974
|
style: w(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(He)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
|
|
2974
2975
|
innerHTML: v(ve)(
|
|
2975
2976
|
t.value.line.tag.formatter,
|
|
2976
|
-
|
|
2977
|
+
a.value,
|
|
2977
2978
|
e.name,
|
|
2978
2979
|
{
|
|
2979
|
-
datapoint:
|
|
2980
|
+
datapoint: a,
|
|
2980
2981
|
seriesIndex: n,
|
|
2981
2982
|
serieName: e.name
|
|
2982
2983
|
}
|
|
2983
2984
|
)
|
|
2984
2985
|
}, null, 12, oi)
|
|
2985
|
-
], 12,
|
|
2986
|
+
], 12, ai)) : h("", !0)
|
|
2986
2987
|
], 64))
|
|
2987
2988
|
], 64))), 128))
|
|
2988
2989
|
], 64))), 128))
|
|
@@ -2990,39 +2991,39 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2990
2991
|
(i(!0), r(d, null, k(oe.value, (e, s) => (i(), r(d, {
|
|
2991
2992
|
key: `xLabel_line_${e.id}`
|
|
2992
2993
|
}, [
|
|
2993
|
-
(i(!0), r(d, null, k(e.plots, (
|
|
2994
|
+
(i(!0), r(d, null, k(e.plots, (a, n) => (i(), r(d, {
|
|
2994
2995
|
key: `xLabel_line_${s}_${n}`
|
|
2995
2996
|
}, [
|
|
2996
|
-
|
|
2997
|
+
a && n === 0 && e.showSerieName && e.showSerieName === "start" ? (i(), r("text", {
|
|
2997
2998
|
key: 0,
|
|
2998
|
-
x:
|
|
2999
|
-
y:
|
|
2999
|
+
x: a.x - x.value.plotLabels,
|
|
3000
|
+
y: a.y,
|
|
3000
3001
|
"font-size": x.value.plotLabels,
|
|
3001
3002
|
"text-anchor": "end",
|
|
3002
3003
|
fill: e.color,
|
|
3003
|
-
innerHTML: v(
|
|
3004
|
+
innerHTML: v(il)({
|
|
3004
3005
|
content: e.name,
|
|
3005
3006
|
fontSize: x.value.plotLabels,
|
|
3006
3007
|
fill: e.color,
|
|
3007
|
-
x:
|
|
3008
|
-
y:
|
|
3008
|
+
x: a.x - x.value.plotLabels,
|
|
3009
|
+
y: a.y,
|
|
3009
3010
|
maxWords: 2
|
|
3010
3011
|
}),
|
|
3011
3012
|
style: w(`opacity:${C.value ? C.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3012
3013
|
}, null, 12, si)) : h("", !0),
|
|
3013
|
-
|
|
3014
|
+
a && n === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (i(), r("text", {
|
|
3014
3015
|
key: 1,
|
|
3015
|
-
x:
|
|
3016
|
-
y:
|
|
3016
|
+
x: a.x + x.value.plotLabels,
|
|
3017
|
+
y: a.y,
|
|
3017
3018
|
"font-size": x.value.plotLabels,
|
|
3018
3019
|
"text-anchor": "start",
|
|
3019
3020
|
fill: e.color,
|
|
3020
|
-
innerHTML: v(
|
|
3021
|
+
innerHTML: v(il)({
|
|
3021
3022
|
content: e.name,
|
|
3022
3023
|
fontSize: x.value.plotLabels,
|
|
3023
3024
|
fill: e.color,
|
|
3024
|
-
x:
|
|
3025
|
-
y:
|
|
3025
|
+
x: a.x + x.value.plotLabels,
|
|
3026
|
+
y: a.y,
|
|
3026
3027
|
maxWords: 2
|
|
3027
3028
|
}),
|
|
3028
3029
|
style: w(`opacity:${C.value ? C.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
@@ -3032,39 +3033,39 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3032
3033
|
(i(!0), r(d, null, k(fe.value, (e, s) => (i(), r(d, {
|
|
3033
3034
|
key: `xLabel_plot_${e.id}`
|
|
3034
3035
|
}, [
|
|
3035
|
-
(i(!0), r(d, null, k(e.plots, (
|
|
3036
|
+
(i(!0), r(d, null, k(e.plots, (a, n) => (i(), r(d, {
|
|
3036
3037
|
key: `xLabel_plot_${s}_${n}`
|
|
3037
3038
|
}, [
|
|
3038
|
-
|
|
3039
|
+
a && n === 0 && e.showSerieName && e.showSerieName === "start" ? (i(), r("text", {
|
|
3039
3040
|
key: 0,
|
|
3040
|
-
x:
|
|
3041
|
-
y:
|
|
3041
|
+
x: a.x - x.value.plotLabels,
|
|
3042
|
+
y: a.y,
|
|
3042
3043
|
"font-size": x.value.plotLabels,
|
|
3043
3044
|
"text-anchor": "end",
|
|
3044
3045
|
fill: e.color,
|
|
3045
|
-
innerHTML: v(
|
|
3046
|
+
innerHTML: v(il)({
|
|
3046
3047
|
content: e.name,
|
|
3047
3048
|
fontSize: x.value.plotLabels,
|
|
3048
3049
|
fill: e.color,
|
|
3049
|
-
x:
|
|
3050
|
-
y:
|
|
3050
|
+
x: a.x - x.value.plotLabels,
|
|
3051
|
+
y: a.y,
|
|
3051
3052
|
maxWords: 2
|
|
3052
3053
|
}),
|
|
3053
3054
|
style: w(`opacity:${C.value ? C.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3054
3055
|
}, null, 12, ii)) : h("", !0),
|
|
3055
|
-
|
|
3056
|
+
a && n === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (i(), r("text", {
|
|
3056
3057
|
key: 1,
|
|
3057
|
-
x:
|
|
3058
|
-
y:
|
|
3058
|
+
x: a.x + x.value.plotLabels,
|
|
3059
|
+
y: a.y,
|
|
3059
3060
|
"font-size": x.value.plotLabels,
|
|
3060
3061
|
"text-anchor": "start",
|
|
3061
3062
|
fill: e.color,
|
|
3062
|
-
innerHTML: v(
|
|
3063
|
+
innerHTML: v(il)({
|
|
3063
3064
|
content: e.name,
|
|
3064
3065
|
fontSize: x.value.plotLabels,
|
|
3065
3066
|
fill: e.color,
|
|
3066
|
-
x:
|
|
3067
|
-
y:
|
|
3067
|
+
x: a.x + x.value.plotLabels,
|
|
3068
|
+
y: a.y,
|
|
3068
3069
|
maxWords: 2
|
|
3069
3070
|
}),
|
|
3070
3071
|
style: w(`opacity:${C.value ? C.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
@@ -3168,15 +3169,15 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3168
3169
|
width: t.value.chart.grid.labels.yAxis.labelWidth + c.value.individualOffsetX,
|
|
3169
3170
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
3170
3171
|
fill: C.value === e.groupId ? `url(#individual_scale_gradient_${z.value}_${s})` : "transparent",
|
|
3171
|
-
onMouseenter: (
|
|
3172
|
-
onMouseleave: o[0] || (o[0] = (
|
|
3172
|
+
onMouseenter: (a) => C.value = e.groupId,
|
|
3173
|
+
onMouseleave: o[0] || (o[0] = (a) => C.value = null)
|
|
3173
3174
|
}, null, 40, yi))), 256))
|
|
3174
3175
|
], 64)) : h("", !0),
|
|
3175
3176
|
y("g", null, [
|
|
3176
3177
|
t.value.chart.grid.labels.axis.yLabel && !f.value.useIndividualScale ? (i(), r("text", {
|
|
3177
3178
|
key: 0,
|
|
3178
3179
|
ref_key: "yAxisLabel",
|
|
3179
|
-
ref:
|
|
3180
|
+
ref: dl,
|
|
3180
3181
|
"font-size": x.value.yAxis,
|
|
3181
3182
|
fill: t.value.chart.grid.labels.color,
|
|
3182
3183
|
transform: `translate(${t.value.chart.grid.labels.axis.fontSize}, ${c.value?.top + c.value.height / 2}) rotate(-90)`,
|
|
@@ -3186,7 +3187,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3186
3187
|
t.value.chart.grid.labels.axis.xLabel ? (i(), r("text", {
|
|
3187
3188
|
key: 1,
|
|
3188
3189
|
ref_key: "xAxisLabel",
|
|
3189
|
-
ref:
|
|
3190
|
+
ref: vl,
|
|
3190
3191
|
"text-anchor": "middle",
|
|
3191
3192
|
x: ee.value / 2,
|
|
3192
3193
|
y: de.value - 3,
|
|
@@ -3199,15 +3200,15 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3199
3200
|
ref_key: "timeLabelsEls",
|
|
3200
3201
|
ref: Ft
|
|
3201
3202
|
}, [
|
|
3202
|
-
|
|
3203
|
+
l.$slots["time-label"] ? (i(!0), r(d, { key: 0 }, k(Kt.value, (e, s) => F(l.$slots, "time-label", Qe({
|
|
3203
3204
|
key: `time_label_${e.id}`,
|
|
3204
3205
|
ref_for: !0
|
|
3205
3206
|
}, {
|
|
3206
|
-
x: c.value?.left + c.value.width /
|
|
3207
|
+
x: c.value?.left + c.value.width / $.value * s + c.value.width / $.value / 2,
|
|
3207
3208
|
y: c.value?.bottom,
|
|
3208
3209
|
fontSize: x.value.xAxis,
|
|
3209
3210
|
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3210
|
-
transform: `translate(${c.value?.left + c.value.width /
|
|
3211
|
+
transform: `translate(${c.value?.left + c.value.width / $.value * s + c.value.width / $.value / 2}, ${c.value?.bottom + x.value.xAxis * 1.3 + t.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3211
3212
|
absoluteIndex: e.absoluteIndex,
|
|
3212
3213
|
content: e.text,
|
|
3213
3214
|
textAnchor: t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -3223,9 +3224,9 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3223
3224
|
"text-anchor": t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3224
3225
|
"font-size": x.value.xAxis,
|
|
3225
3226
|
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3226
|
-
transform: `translate(${c.value?.left + c.value.width /
|
|
3227
|
+
transform: `translate(${c.value?.left + c.value.width / $.value * s + c.value.width / $.value / 2}, ${c.value?.bottom + x.value.xAxis * 1.5}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3227
3228
|
style: w({
|
|
3228
|
-
cursor:
|
|
3229
|
+
cursor: da() && Xe.value ? "pointer" : "default"
|
|
3229
3230
|
}),
|
|
3230
3231
|
innerHTML: v(ju)({
|
|
3231
3232
|
content: String(e.text),
|
|
@@ -3234,24 +3235,24 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3234
3235
|
x: 0,
|
|
3235
3236
|
y: 0
|
|
3236
3237
|
}),
|
|
3237
|
-
onClick: () =>
|
|
3238
|
+
onClick: () => ba(e, s)
|
|
3238
3239
|
}, null, 12, wi)) : (i(), r("text", {
|
|
3239
3240
|
key: 0,
|
|
3240
3241
|
class: "vue-data-ui-time-label",
|
|
3241
3242
|
"text-anchor": t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3242
3243
|
"font-size": x.value.xAxis,
|
|
3243
3244
|
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3244
|
-
transform: `translate(${c.value?.left + c.value.width /
|
|
3245
|
+
transform: `translate(${c.value?.left + c.value.width / $.value * s + c.value.width / $.value / 2}, ${c.value?.bottom + x.value.xAxis * 1.5}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3245
3246
|
style: w({
|
|
3246
|
-
cursor:
|
|
3247
|
+
cursor: da() && Xe.value ? "pointer" : "default"
|
|
3247
3248
|
}),
|
|
3248
|
-
onClick: () =>
|
|
3249
|
+
onClick: () => ba(e, s)
|
|
3249
3250
|
}, ue(e.text || ""), 13, _i))
|
|
3250
3251
|
], 64)) : h("", !0)
|
|
3251
3252
|
]))), 128))
|
|
3252
3253
|
], 512)) : h("", !0),
|
|
3253
|
-
|
|
3254
|
-
(i(!0), r(d, null, k(
|
|
3254
|
+
Fa.value.length && !f.value.isStacked ? (i(), r("g", Si, [
|
|
3255
|
+
(i(!0), r(d, null, k(Fa.value, (e) => (i(), r("g", {
|
|
3255
3256
|
key: e.uid
|
|
3256
3257
|
}, [
|
|
3257
3258
|
e.yTop && e.show && isFinite(e.yTop) ? (i(), r("line", {
|
|
@@ -3313,28 +3314,28 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3313
3314
|
}, [
|
|
3314
3315
|
y("div", {
|
|
3315
3316
|
ref_key: "timeTagEl",
|
|
3316
|
-
ref:
|
|
3317
|
+
ref: Ka,
|
|
3317
3318
|
class: "vue-ui-xy-time-tag",
|
|
3318
3319
|
style: w(`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`),
|
|
3319
3320
|
innerHTML: ku.value
|
|
3320
3321
|
}, null, 12, zi)
|
|
3321
3322
|
], 8, Ti)),
|
|
3322
3323
|
y("circle", {
|
|
3323
|
-
cx: c.value?.left + c.value.width /
|
|
3324
|
+
cx: c.value?.left + c.value.width / $.value * ((_.value !== null ? _.value : 0) || (P.value !== null ? P.value : 0)) + c.value.width / $.value / 2,
|
|
3324
3325
|
cy: c.value?.bottom,
|
|
3325
3326
|
r: t.value.chart.timeTag.circleMarker.radius,
|
|
3326
3327
|
fill: t.value.chart.timeTag.circleMarker.color
|
|
3327
3328
|
}, null, 8, Ii)
|
|
3328
3329
|
])) : h("", !0)
|
|
3329
3330
|
])) : h("", !0),
|
|
3330
|
-
|
|
3331
|
+
aa.value ? (i(), r("rect", Qe({ key: 2 }, Ro.value, {
|
|
3331
3332
|
"data-start": m.value.start,
|
|
3332
3333
|
"data-end": m.value.end
|
|
3333
3334
|
}), null, 16, Pi)) : h("", !0),
|
|
3334
|
-
F(
|
|
3335
|
+
F(l.$slots, "svg", {
|
|
3335
3336
|
svg: {
|
|
3336
3337
|
...Oo.value,
|
|
3337
|
-
isPrintingImg: v(Et) | v(
|
|
3338
|
+
isPrintingImg: v(Et) | v(_l) | Ht.value,
|
|
3338
3339
|
isPrintingSvg: Dt.value,
|
|
3339
3340
|
data: [...oe.value, ...ke.value, ...fe.value],
|
|
3340
3341
|
drawingArea: c.value
|
|
@@ -3342,17 +3343,17 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3342
3343
|
}, void 0, !0)
|
|
3343
3344
|
], 512)
|
|
3344
3345
|
], 46, $s)),
|
|
3345
|
-
|
|
3346
|
-
F(
|
|
3346
|
+
l.$slots.hint ? (i(), r("div", Oi, [
|
|
3347
|
+
F(l.$slots, "hint", ge(be({ hint: t.value.a11y.translations.keyboardNavigation, isVisible: Tl.value })), void 0, !0)
|
|
3347
3348
|
])) : h("", !0)
|
|
3348
3349
|
]),
|
|
3349
|
-
|
|
3350
|
-
F(
|
|
3350
|
+
l.$slots.watermark ? (i(), r("div", Ni, [
|
|
3351
|
+
F(l.$slots, "watermark", ge(be({ isPrinting: v(Et) || v(_l) || Ht.value || Dt.value })), void 0, !0)
|
|
3351
3352
|
])) : h("", !0),
|
|
3352
3353
|
(i(!0), r(d, null, k(oe.value, (e, s) => (i(), r(d, {
|
|
3353
3354
|
key: `tag_line_${e.id}`
|
|
3354
3355
|
}, [
|
|
3355
|
-
(i(!0), r(d, null, k(e.plots, (
|
|
3356
|
+
(i(!0), r(d, null, k(e.plots, (a, n) => (i(), r(d, {
|
|
3356
3357
|
key: `tag_line_${s}_${n}`
|
|
3357
3358
|
}, [
|
|
3358
3359
|
[P.value, _.value, Ye.value].includes(n) && e.useTag && e.useTag === "end" && t.value.line.tag.followValue ? (i(), r("div", {
|
|
@@ -3364,16 +3365,16 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3364
3365
|
style: w({
|
|
3365
3366
|
position: "fixed",
|
|
3366
3367
|
top: v(De)({
|
|
3367
|
-
svgElement:
|
|
3368
|
+
svgElement: ae.value,
|
|
3368
3369
|
x: c.value?.right + t.value.line.tag.fontSize / 1.5,
|
|
3369
|
-
y:
|
|
3370
|
+
y: a.y,
|
|
3370
3371
|
element: Oe.value[`${s}_${n}_right_line`],
|
|
3371
3372
|
position: "right"
|
|
3372
3373
|
})?.top + "px",
|
|
3373
3374
|
left: v(De)({
|
|
3374
|
-
svgElement:
|
|
3375
|
+
svgElement: ae.value,
|
|
3375
3376
|
x: c.value?.right + t.value.line.tag.fontSize / 1.5,
|
|
3376
|
-
y:
|
|
3377
|
+
y: a.y,
|
|
3377
3378
|
element: Oe.value[`${s}_${n}_right_line`],
|
|
3378
3379
|
position: "right"
|
|
3379
3380
|
})?.left + "px",
|
|
@@ -3397,10 +3398,10 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3397
3398
|
class: "vue-ui-xy-tag-content",
|
|
3398
3399
|
innerHTML: v(ve)(
|
|
3399
3400
|
t.value.line.tag.formatter,
|
|
3400
|
-
|
|
3401
|
+
a.value,
|
|
3401
3402
|
e.name,
|
|
3402
3403
|
{
|
|
3403
|
-
datapoint:
|
|
3404
|
+
datapoint: a,
|
|
3404
3405
|
seriesIndex: n,
|
|
3405
3406
|
serieName: e.name
|
|
3406
3407
|
}
|
|
@@ -3416,16 +3417,16 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3416
3417
|
style: w({
|
|
3417
3418
|
position: "fixed",
|
|
3418
3419
|
top: v(De)({
|
|
3419
|
-
svgElement:
|
|
3420
|
+
svgElement: ae.value,
|
|
3420
3421
|
x: c.value?.left - t.value.line.tag.fontSize / 1.5,
|
|
3421
|
-
y:
|
|
3422
|
+
y: a.y,
|
|
3422
3423
|
element: Oe.value[`${s}_${n}_left_line`],
|
|
3423
3424
|
position: "left"
|
|
3424
3425
|
})?.top + "px",
|
|
3425
3426
|
left: v(De)({
|
|
3426
|
-
svgElement:
|
|
3427
|
+
svgElement: ae.value,
|
|
3427
3428
|
x: c.value?.left - t.value.line.tag.fontSize / 1.5,
|
|
3428
|
-
y:
|
|
3429
|
+
y: a.y,
|
|
3429
3430
|
element: Oe.value[`${s}_${n}_left_line`],
|
|
3430
3431
|
position: "left"
|
|
3431
3432
|
})?.left + "px",
|
|
@@ -3449,10 +3450,10 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3449
3450
|
class: "vue-ui-xy-tag-content",
|
|
3450
3451
|
innerHTML: v(ve)(
|
|
3451
3452
|
t.value.line.tag.formatter,
|
|
3452
|
-
|
|
3453
|
+
a.value,
|
|
3453
3454
|
e.name,
|
|
3454
3455
|
{
|
|
3455
|
-
datapoint:
|
|
3456
|
+
datapoint: a,
|
|
3456
3457
|
seriesIndex: n,
|
|
3457
3458
|
serieName: e.name
|
|
3458
3459
|
}
|
|
@@ -3464,7 +3465,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3464
3465
|
(i(!0), r(d, null, k(fe.value, (e, s) => (i(), r(d, {
|
|
3465
3466
|
key: `tag_plot_${e.id}`
|
|
3466
3467
|
}, [
|
|
3467
|
-
(i(!0), r(d, null, k(e.plots, (
|
|
3468
|
+
(i(!0), r(d, null, k(e.plots, (a, n) => (i(), r(d, {
|
|
3468
3469
|
key: `tag_plot_${s}_${n}`
|
|
3469
3470
|
}, [
|
|
3470
3471
|
[P.value, _.value, Ye.value].includes(n) && e.useTag && e.useTag === "end" && t.value.plot.tag.followValue ? (i(), r("div", {
|
|
@@ -3476,16 +3477,16 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3476
3477
|
style: w({
|
|
3477
3478
|
position: "fixed",
|
|
3478
3479
|
top: v(De)({
|
|
3479
|
-
svgElement:
|
|
3480
|
+
svgElement: ae.value,
|
|
3480
3481
|
x: c.value?.right + t.value.plot.tag.fontSize / 1.5,
|
|
3481
|
-
y:
|
|
3482
|
+
y: a.y,
|
|
3482
3483
|
element: Oe.value[`${s}_${n}_right_plot`],
|
|
3483
3484
|
position: "right"
|
|
3484
3485
|
})?.top + "px",
|
|
3485
3486
|
left: v(De)({
|
|
3486
|
-
svgElement:
|
|
3487
|
+
svgElement: ae.value,
|
|
3487
3488
|
x: c.value?.right + t.value.plot.tag.fontSize / 1.5,
|
|
3488
|
-
y:
|
|
3489
|
+
y: a.y,
|
|
3489
3490
|
element: Oe.value[`${s}_${n}_right_plot`],
|
|
3490
3491
|
position: "right"
|
|
3491
3492
|
})?.left + "px",
|
|
@@ -3509,10 +3510,10 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3509
3510
|
class: "vue-ui-xy-tag-content",
|
|
3510
3511
|
innerHTML: v(ve)(
|
|
3511
3512
|
t.value.plot.tag.formatter,
|
|
3512
|
-
|
|
3513
|
+
a.value,
|
|
3513
3514
|
e.name,
|
|
3514
3515
|
{
|
|
3515
|
-
datapoint:
|
|
3516
|
+
datapoint: a,
|
|
3516
3517
|
seriesIndex: n,
|
|
3517
3518
|
serieName: e.name
|
|
3518
3519
|
}
|
|
@@ -3528,16 +3529,16 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3528
3529
|
style: w({
|
|
3529
3530
|
position: "fixed",
|
|
3530
3531
|
top: v(De)({
|
|
3531
|
-
svgElement:
|
|
3532
|
+
svgElement: ae.value,
|
|
3532
3533
|
x: c.value?.left - t.value.plot.tag.fontSize / 1.5,
|
|
3533
|
-
y:
|
|
3534
|
+
y: a.y,
|
|
3534
3535
|
element: Oe.value[`${s}_${n}_left_plot`],
|
|
3535
3536
|
position: "left"
|
|
3536
3537
|
})?.top + "px",
|
|
3537
3538
|
left: v(De)({
|
|
3538
|
-
svgElement:
|
|
3539
|
+
svgElement: ae.value,
|
|
3539
3540
|
x: c.value?.left - t.value.plot.tag.fontSize / 1.5,
|
|
3540
|
-
y:
|
|
3541
|
+
y: a.y,
|
|
3541
3542
|
element: Oe.value[`${s}_${n}_left_plot`],
|
|
3542
3543
|
position: "left"
|
|
3543
3544
|
})?.left + "px",
|
|
@@ -3561,10 +3562,10 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3561
3562
|
class: "vue-ui-xy-tag-content",
|
|
3562
3563
|
innerHTML: v(ve)(
|
|
3563
3564
|
t.value.plot.tag.formatter,
|
|
3564
|
-
|
|
3565
|
+
a.value,
|
|
3565
3566
|
e.name,
|
|
3566
3567
|
{
|
|
3567
|
-
datapoint:
|
|
3568
|
+
datapoint: a,
|
|
3568
3569
|
seriesIndex: n,
|
|
3569
3570
|
serieName: e.name
|
|
3570
3571
|
}
|
|
@@ -3573,7 +3574,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3573
3574
|
], 4)) : h("", !0)
|
|
3574
3575
|
], 64))), 128))
|
|
3575
3576
|
], 64))), 128)),
|
|
3576
|
-
t.value.chart.zoom.show && ze.value > 6 &&
|
|
3577
|
+
t.value.chart.zoom.show && ze.value > 6 && xl.value && xa.value ? (i(), _e(gs, {
|
|
3577
3578
|
key: 6,
|
|
3578
3579
|
ref_key: "chartSlicer",
|
|
3579
3580
|
ref: Te,
|
|
@@ -3592,7 +3593,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3592
3593
|
useResetSlot: t.value.chart.zoom.useResetSlot,
|
|
3593
3594
|
immediate: !t.value.chart.zoom.preview.enable,
|
|
3594
3595
|
inputColor: t.value.chart.zoom.color,
|
|
3595
|
-
isPreview:
|
|
3596
|
+
isPreview: aa.value,
|
|
3596
3597
|
labelLeft: se.value[0] ? se.value[0].text : "",
|
|
3597
3598
|
labelRight: se.value.at(-1) ? se.value.at(-1).text : "",
|
|
3598
3599
|
max: ze.value,
|
|
@@ -3607,8 +3608,8 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3607
3608
|
minimapSelectedColorOpacity: t.value.chart.zoom.minimap.selectedColorOpacity,
|
|
3608
3609
|
minimapSelectedIndex: _.value,
|
|
3609
3610
|
minimapSelectionRadius: t.value.chart.zoom.minimap.selectionRadius,
|
|
3610
|
-
preciseLabels:
|
|
3611
|
-
refreshEndPoint: t.value.chart.zoom.endIndex !== null ? t.value.chart.zoom.endIndex + 1 : Math.max(...
|
|
3611
|
+
preciseLabels: Wa.value.length ? Wa.value : Zt.value,
|
|
3612
|
+
refreshEndPoint: t.value.chart.zoom.endIndex !== null ? t.value.chart.zoom.endIndex + 1 : Math.max(...cl.dataset.map((e) => Fe(e.series).length)),
|
|
3612
3613
|
refreshStartPoint: t.value.chart.zoom.startIndex !== null ? t.value.chart.zoom.startIndex : 0,
|
|
3613
3614
|
selectColor: t.value.chart.zoom.highlightColor,
|
|
3614
3615
|
selectedSeries: Ze.value,
|
|
@@ -3631,22 +3632,22 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3631
3632
|
handleFill: t.value.chart.zoom.minimap.handleFill,
|
|
3632
3633
|
handleWidth: t.value.chart.zoom.minimap.handleWidth,
|
|
3633
3634
|
isCursorPointer: Xe.value,
|
|
3634
|
-
onFutureEnd: o[1] || (o[1] = (e) =>
|
|
3635
|
-
onFutureStart: o[2] || (o[2] = (e) =>
|
|
3635
|
+
onFutureEnd: o[1] || (o[1] = (e) => oa("end", e)),
|
|
3636
|
+
onFutureStart: o[2] || (o[2] = (e) => oa("start", e)),
|
|
3636
3637
|
onReset: eu,
|
|
3637
3638
|
onTrapMouse: Ko,
|
|
3638
3639
|
"onUpdate:end": jo,
|
|
3639
3640
|
"onUpdate:start": Qo
|
|
3640
3641
|
}, {
|
|
3641
3642
|
"reset-action": X(({ reset: e }) => [
|
|
3642
|
-
F(
|
|
3643
|
+
F(l.$slots, "reset-action", ge(be({ reset: e })), void 0, !0)
|
|
3643
3644
|
]),
|
|
3644
3645
|
_: 3
|
|
3645
3646
|
}, 8, ["uuid", "allMinimaps", "background", "borderColor", "customFormat", "cutNullValues", "enableRangeHandles", "enableSelectionDrag", "end", "focusOnDrag", "focusRangeRatio", "fontSize", "useResetSlot", "immediate", "inputColor", "isPreview", "labelLeft", "labelRight", "max", "minimap", "minimapCompact", "minimapFrameColor", "minimapIndicatorColor", "minimapLineColor", "minimapMerged", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapSelectionRadius", "preciseLabels", "refreshEndPoint", "refreshStartPoint", "selectColor", "selectedSeries", "smoothMinimap", "start", "textColor", "timeLabels", "usePreciseLabels", "valueEnd", "valueStart", "verticalHandles", "minScale", "maxScale", "maxWidth", "additionalMinimapHeight", "handleType", "handleIconColor", "handleBorderWidth", "handleBorderColor", "handleFill", "handleWidth", "isCursorPointer"])) : h("", !0),
|
|
3646
3647
|
y("div", {
|
|
3647
3648
|
id: `legend-bottom-${z.value}`
|
|
3648
3649
|
}, null, 8, Ui),
|
|
3649
|
-
|
|
3650
|
+
Gl.value ? (i(), _e(Ru, {
|
|
3650
3651
|
key: 7,
|
|
3651
3652
|
to: t.value.chart.legend.position === "top" ? `#legend-top-${z.value}` : `#legend-bottom-${z.value}`
|
|
3652
3653
|
}, [
|
|
@@ -3669,8 +3670,8 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3669
3670
|
}, null, 8, ["backgroundColor", "color", "fontSize", "checked"])) : h("", !0),
|
|
3670
3671
|
(i(!0), r(d, null, k(ie.value, (e, s) => (i(), r("div", {
|
|
3671
3672
|
key: `div_legend_item_${s}`,
|
|
3672
|
-
onClick: (
|
|
3673
|
-
onKeydown: (
|
|
3673
|
+
onClick: (a) => Mt(e),
|
|
3674
|
+
onKeydown: (a) => uu(a, e),
|
|
3674
3675
|
role: "button",
|
|
3675
3676
|
tabindex: "0",
|
|
3676
3677
|
class: Je({
|
|
@@ -3682,7 +3683,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3682
3683
|
cursor: Xe.value ? "pointer" : "default"
|
|
3683
3684
|
})
|
|
3684
3685
|
}, [
|
|
3685
|
-
|
|
3686
|
+
pt.value[e.type] === "line" ? (i(), r("svg", Ki, [
|
|
3686
3687
|
y("rect", {
|
|
3687
3688
|
x: "0",
|
|
3688
3689
|
y: "7.5",
|
|
@@ -3693,7 +3694,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3693
3694
|
width: "20",
|
|
3694
3695
|
fill: e.color
|
|
3695
3696
|
}, null, 8, Ji),
|
|
3696
|
-
|
|
3697
|
+
dt(rl, {
|
|
3697
3698
|
plot: { x: 10, y: 9 },
|
|
3698
3699
|
radius: 4,
|
|
3699
3700
|
color: e.color,
|
|
@@ -3701,8 +3702,8 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3701
3702
|
stroke: t.value.chart.backgroundColor,
|
|
3702
3703
|
strokeWidth: 0.5
|
|
3703
3704
|
}, null, 8, ["color", "shape", "stroke"])
|
|
3704
|
-
])) :
|
|
3705
|
-
|
|
3705
|
+
])) : pt.value[e.type] === "bar" ? (i(), r("svg", Qi, [
|
|
3706
|
+
pt.value[e.type] === "bar" && l.$slots.pattern ? (i(), r("rect", {
|
|
3706
3707
|
key: 0,
|
|
3707
3708
|
x: "4",
|
|
3708
3709
|
y: "4",
|
|
@@ -3712,7 +3713,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3712
3713
|
stroke: "none",
|
|
3713
3714
|
fill: e.color
|
|
3714
3715
|
}, null, 8, ji)) : h("", !0),
|
|
3715
|
-
|
|
3716
|
+
pt.value[e.type] === "bar" ? (i(), r("rect", {
|
|
3716
3717
|
key: 1,
|
|
3717
3718
|
x: "4",
|
|
3718
3719
|
y: "4",
|
|
@@ -3720,10 +3721,10 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3720
3721
|
height: "32",
|
|
3721
3722
|
width: "32",
|
|
3722
3723
|
stroke: "none",
|
|
3723
|
-
fill:
|
|
3724
|
+
fill: l.$slots.pattern ? `url(#pattern_${z.value}_${e.slotAbsoluteIndex})` : e.color
|
|
3724
3725
|
}, null, 8, er)) : h("", !0)
|
|
3725
3726
|
])) : (i(), r("svg", tr, [
|
|
3726
|
-
|
|
3727
|
+
dt(rl, {
|
|
3727
3728
|
plot: { x: 6, y: 6 },
|
|
3728
3729
|
radius: 5,
|
|
3729
3730
|
color: e.color,
|
|
@@ -3739,20 +3740,20 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3739
3740
|
ref_key: "chartLegend",
|
|
3740
3741
|
ref: et
|
|
3741
3742
|
}, [
|
|
3742
|
-
F(
|
|
3743
|
+
F(l.$slots, "legend", { legend: ie.value }, void 0, !0)
|
|
3743
3744
|
], 512))
|
|
3744
3745
|
], 8, ["to"])) : h("", !0),
|
|
3745
|
-
|
|
3746
|
+
l.$slots.source ? (i(), r("div", {
|
|
3746
3747
|
key: 8,
|
|
3747
3748
|
ref_key: "source",
|
|
3748
|
-
ref:
|
|
3749
|
+
ref: gt,
|
|
3749
3750
|
dir: "auto"
|
|
3750
3751
|
}, [
|
|
3751
|
-
F(
|
|
3752
|
+
F(l.$slots, "source", {}, void 0, !0)
|
|
3752
3753
|
], 512)) : h("", !0),
|
|
3753
|
-
|
|
3754
|
+
dt(v(_o), {
|
|
3754
3755
|
teleportTo: t.value.chart.tooltip.teleportTo,
|
|
3755
|
-
show: f.value.showTooltip &&
|
|
3756
|
+
show: f.value.showTooltip && Dl.value,
|
|
3756
3757
|
backgroundColor: t.value.chart.tooltip.backgroundColor,
|
|
3757
3758
|
color: t.value.chart.tooltip.color,
|
|
3758
3759
|
fontSize: t.value.chart.tooltip.fontSize,
|
|
@@ -3762,7 +3763,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3762
3763
|
backgroundOpacity: t.value.chart.tooltip.backgroundOpacity,
|
|
3763
3764
|
position: t.value.chart.tooltip.position,
|
|
3764
3765
|
offsetY: t.value.chart.tooltip.offsetY,
|
|
3765
|
-
parent:
|
|
3766
|
+
parent: l.$refs.chart,
|
|
3766
3767
|
content: bu.value,
|
|
3767
3768
|
isFullscreen: Ee.value,
|
|
3768
3769
|
isCustom: t.value.chart.tooltip.customFormat && typeof t.value.chart.tooltip.customFormat == "function",
|
|
@@ -3770,65 +3771,65 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3770
3771
|
backdropFilter: t.value.chart.tooltip.backdropFilter,
|
|
3771
3772
|
smoothForce: t.value.chart.tooltip.smoothForce,
|
|
3772
3773
|
smoothSnapThreshold: t.value.chart.tooltip.smoothSnapThreshold,
|
|
3773
|
-
isA11yMode:
|
|
3774
|
-
a11yPosition:
|
|
3774
|
+
isA11yMode: at.value != null,
|
|
3775
|
+
a11yPosition: ql.value
|
|
3775
3776
|
}, {
|
|
3776
3777
|
"tooltip-before": X(() => [
|
|
3777
|
-
F(
|
|
3778
|
+
F(l.$slots, "tooltip-before", ge(be({ ...Ra.value })), void 0, !0)
|
|
3778
3779
|
]),
|
|
3779
3780
|
"tooltip-after": X(() => [
|
|
3780
|
-
F(
|
|
3781
|
+
F(l.$slots, "tooltip-after", ge(be({ ...Ra.value })), void 0, !0)
|
|
3781
3782
|
]),
|
|
3782
3783
|
_: 3
|
|
3783
3784
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
|
|
3784
|
-
|
|
3785
|
+
xl.value && t.value.chart.userOptions.buttons.table ? (i(), _e(Hu(Ct.value.component), Qe({ key: 9 }, Ct.value.props, {
|
|
3785
3786
|
ref_key: "tableUnit",
|
|
3786
|
-
ref:
|
|
3787
|
-
onClose:
|
|
3788
|
-
}),
|
|
3787
|
+
ref: lt,
|
|
3788
|
+
onClose: ja
|
|
3789
|
+
}), lo({
|
|
3789
3790
|
content: X(() => [
|
|
3790
3791
|
y("div", {
|
|
3791
3792
|
style: w(`${v(Et) || t.value.table.useDialog ? "" : "max-height:400px"};${t.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${t.value.table.useDialog ? "" : "margin-top:48px"}`)
|
|
3792
3793
|
}, [
|
|
3793
|
-
y("div",
|
|
3794
|
+
y("div", lr, [
|
|
3794
3795
|
Du(y("input", {
|
|
3795
3796
|
type: "checkbox",
|
|
3796
|
-
"onUpdate:modelValue": o[4] || (o[4] = (e) =>
|
|
3797
|
+
"onUpdate:modelValue": o[4] || (o[4] = (e) => yt.value = e)
|
|
3797
3798
|
}, null, 512), [
|
|
3798
|
-
[Wu,
|
|
3799
|
+
[Wu, yt.value]
|
|
3799
3800
|
]),
|
|
3800
3801
|
y("div", {
|
|
3801
|
-
onClick: o[5] || (o[5] = (e) =>
|
|
3802
|
+
onClick: o[5] || (o[5] = (e) => yt.value = !yt.value),
|
|
3802
3803
|
style: w({
|
|
3803
3804
|
cursor: Xe.value ? "pointer" : "default"
|
|
3804
3805
|
})
|
|
3805
3806
|
}, [
|
|
3806
|
-
|
|
3807
|
+
dt(v(Bl), {
|
|
3807
3808
|
name: "chartLine",
|
|
3808
3809
|
size: 20,
|
|
3809
3810
|
stroke: t.value.chart.color
|
|
3810
3811
|
}, null, 8, ["stroke"])
|
|
3811
3812
|
], 4)
|
|
3812
3813
|
]),
|
|
3813
|
-
|
|
3814
|
-
key: `sparkline_${
|
|
3814
|
+
yt.value ? (i(), _e(v(So), {
|
|
3815
|
+
key: `sparkline_${gl.value}`,
|
|
3815
3816
|
dataset: vu.value,
|
|
3816
3817
|
config: du.value
|
|
3817
3818
|
}, null, 8, ["dataset", "config"])) : (i(), _e(v(ko), {
|
|
3818
|
-
key: `table_${
|
|
3819
|
-
colNames:
|
|
3820
|
-
head:
|
|
3821
|
-
body:
|
|
3822
|
-
config:
|
|
3819
|
+
key: `table_${El.value}`,
|
|
3820
|
+
colNames: ct.value.colNames,
|
|
3821
|
+
head: ct.value.head,
|
|
3822
|
+
body: ct.value.body,
|
|
3823
|
+
config: ct.value.config,
|
|
3823
3824
|
title: t.value.table.useDialog ? "" : Ct.value.title,
|
|
3824
3825
|
withCloseButton: !t.value.table.useDialog,
|
|
3825
|
-
onClose:
|
|
3826
|
+
onClose: ja
|
|
3826
3827
|
}, {
|
|
3827
3828
|
th: X(({ th: e }) => [
|
|
3828
|
-
y("div", { innerHTML: e }, null, 8,
|
|
3829
|
+
y("div", { innerHTML: e }, null, 8, ar)
|
|
3829
3830
|
]),
|
|
3830
3831
|
td: X(({ td: e }) => [
|
|
3831
|
-
|
|
3832
|
+
ao(ue(isNaN(Number(e)) ? e : v(Pe)({
|
|
3832
3833
|
p: t.value.chart.labels.prefix,
|
|
3833
3834
|
v: e,
|
|
3834
3835
|
s: t.value.chart.labels.suffix,
|
|
@@ -3844,7 +3845,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3844
3845
|
t.value.table.useDialog ? {
|
|
3845
3846
|
name: "title",
|
|
3846
3847
|
fn: X(() => [
|
|
3847
|
-
|
|
3848
|
+
ao(ue(Ct.value.title), 1)
|
|
3848
3849
|
]),
|
|
3849
3850
|
key: "0"
|
|
3850
3851
|
} : void 0,
|
|
@@ -3854,9 +3855,9 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3854
3855
|
y("button", {
|
|
3855
3856
|
tabindex: "0",
|
|
3856
3857
|
class: "vue-ui-user-options-button",
|
|
3857
|
-
onClick: o[3] || (o[3] = (e) =>
|
|
3858
|
+
onClick: o[3] || (o[3] = (e) => Ll(t.value.chart.userOptions.callbacks.csv))
|
|
3858
3859
|
}, [
|
|
3859
|
-
|
|
3860
|
+
dt(v(Bl), {
|
|
3860
3861
|
name: "fileCsv",
|
|
3861
3862
|
stroke: Ct.value.props.color
|
|
3862
3863
|
}, null, 8, ["stroke"])
|
|
@@ -3865,12 +3866,12 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3865
3866
|
key: "1"
|
|
3866
3867
|
} : void 0
|
|
3867
3868
|
]), 1040)) : h("", !0),
|
|
3868
|
-
F(
|
|
3869
|
+
F(l.$slots, "skeleton", {}, () => [
|
|
3869
3870
|
v(ne) ? (i(), _e(is, { key: 0 })) : h("", !0)
|
|
3870
3871
|
], !0)
|
|
3871
3872
|
], 46, ks));
|
|
3872
3873
|
}
|
|
3873
|
-
}, $r = /* @__PURE__ */ xs(or, [["__scopeId", "data-v-
|
|
3874
|
+
}, $r = /* @__PURE__ */ xs(or, [["__scopeId", "data-v-bb9bd5fa"]]);
|
|
3874
3875
|
export {
|
|
3875
3876
|
$r as default
|
|
3876
3877
|
};
|