vue-data-ui 3.4.9 → 3.5.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/README.md +114 -37
- package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
- package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
- package/dist/{PackageVersion-CTUqGqWV.js → PackageVersion-DQvyATVa.js} +1 -1
- package/dist/PenAndPaper-SZQIAgkg.js +388 -0
- package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.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-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-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-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-mini-loader.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-rating.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-smiley.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-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 +17 -8
- package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-DjGXw6S9.js} +22 -8
- package/dist/{vue-data-ui-DjxWWa78.js → vue-data-ui-B_RxfmEm.js} +113 -107
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-CLE7f9pl.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
- package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
- package/dist/{vue-ui-age-pyramid-D73uIOPm.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
- package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
- package/dist/{vue-ui-bullet-Bybo0xK2.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
- package/dist/{vue-ui-candlestick-D_FyMdqH.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
- package/dist/{vue-ui-carousel-table-BvMlNdVo.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
- package/dist/{vue-ui-chestnut-DA0g0bDV.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
- package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
- package/dist/{vue-ui-circle-pack-BPDm-ro5.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
- package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
- package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
- package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
- package/dist/vue-ui-donut-CxZcJFTo.js +1681 -0
- package/dist/{vue-ui-donut-evolution-Ca3Svr0B.js → vue-ui-donut-evolution-BVYL-BUJ.js} +480 -444
- package/dist/{vue-ui-dumbbell-CxCE2luV.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
- package/dist/{vue-ui-flow-DEvwXd4W.js → vue-ui-flow-DEI5LRch.js} +339 -319
- package/dist/{vue-ui-funnel-Bgcx7xia.js → vue-ui-funnel-B_A5orFg.js} +218 -198
- package/dist/{vue-ui-galaxy-BWr1EMob.js → vue-ui-galaxy-CUoDRr-O.js} +313 -277
- package/dist/{vue-ui-gauge-DQricvo2.js → vue-ui-gauge-46tSRZN5.js} +311 -291
- package/dist/{vue-ui-gizmo-C-fKe3io.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
- package/dist/{vue-ui-heatmap-B-o_i7Hu.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
- package/dist/{vue-ui-history-plot-DzQ9DPUJ.js → vue-ui-history-plot-C6p_aThr.js} +478 -442
- package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
- package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
- package/dist/{vue-ui-molecule-I2OhrCR2.js → vue-ui-molecule-L90GnHee.js} +156 -136
- package/dist/{vue-ui-mood-radar-BAT7kZUy.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
- package/dist/{vue-ui-nested-donuts-CjhJDAQi.js → vue-ui-nested-donuts-D0MCLs5n.js} +597 -557
- package/dist/vue-ui-onion-B7yPJ3gL.js +915 -0
- package/dist/vue-ui-parallel-coordinate-plot-DY21ivNe.js +1051 -0
- package/dist/{vue-ui-quadrant-DGnasrCR.js → vue-ui-quadrant-b0vMRaq-.js} +532 -495
- package/dist/{vue-ui-quick-chart-Cam_sWet.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
- package/dist/{vue-ui-radar-DNI9WI2R.js → vue-ui-radar-B5Vkoz9M.js} +412 -373
- package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
- package/dist/{vue-ui-relation-circle-Dj1jhcsl.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
- package/dist/{vue-ui-ridgeline-adIls6bj.js → vue-ui-ridgeline-CAMNq-p_.js} +517 -481
- package/dist/vue-ui-rings-ImGOqm_J.js +855 -0
- package/dist/vue-ui-scatter-CterNJYe.js +1590 -0
- package/dist/{vue-ui-skeleton-DUdI2uOO.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
- package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
- package/dist/{vue-ui-spark-trend-DxpRfUJz.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
- package/dist/{vue-ui-sparkbar-B44oER5n.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
- package/dist/{vue-ui-sparkgauge-ix12NZ7M.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Cs-QDYBR.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
- package/dist/{vue-ui-sparkline-Cb8ZmyUq.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
- package/dist/vue-ui-sparkstackbar-BXNy6nuw.js +441 -0
- package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
- package/dist/{vue-ui-strip-plot-BjG-Jxnb.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
- package/dist/{vue-ui-table-DdBdLrAL.js → vue-ui-table-DSsIrT4L.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
- package/dist/{vue-ui-table-sparkline-EpCo2Be5.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
- package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
- package/dist/{vue-ui-timer-Br3wp8hG.js → vue-ui-timer-BpdCY_wg.js} +3 -3
- package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
- package/dist/vue-ui-treemap-DPE8SY0_.js +1330 -0
- package/dist/{vue-ui-vertical-bar-yfbEfLqy.js → vue-ui-vertical-bar-ZU1GCbX0.js} +484 -448
- package/dist/{vue-ui-waffle-m-9sqQik.js → vue-ui-waffle-z7nuSuSV.js} +398 -362
- package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
- package/dist/{vue-ui-word-cloud-vNwswYZD.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
- package/dist/{vue-ui-world-BsCNyZy_.js → vue-ui-world-goXYnTyM.js} +287 -267
- package/dist/{vue-ui-xy-CIrw1lWQ.js → vue-ui-xy-NDDbNbds.js} +1263 -1227
- package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-2a6NlQe3.js} +338 -322
- package/package.json +4 -4
- package/dist/PenAndPaper-DSvu9dwa.js +0 -373
- package/dist/vue-ui-chord-CDgzolI-.js +0 -1133
- package/dist/vue-ui-dashboard-CeJwbiON.js +0 -412
- package/dist/vue-ui-donut-DjQXHBJE.js +0 -1645
- package/dist/vue-ui-onion-DTY2p87s.js +0 -873
- package/dist/vue-ui-parallel-coordinate-plot-C8aWTcNn.js +0 -1014
- package/dist/vue-ui-rings-CnTMFK6R.js +0 -813
- package/dist/vue-ui-scatter-fzR2c0St.js +0 -1554
- package/dist/vue-ui-sparkstackbar-BiRZ51OU.js +0 -424
- package/dist/vue-ui-stackbar-DubS6Pg8.js +0 -1708
- package/dist/vue-ui-thermometer-DTnfnf9z.js +0 -564
- package/dist/vue-ui-tiremarks-CrC_tlIx.js +0 -430
- package/dist/vue-ui-treemap-kyuyi2ES.js +0 -1294
- package/dist/vue-ui-wheel-BasM7FWt.js +0 -643
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { t as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { S as
|
|
15
|
-
import
|
|
16
|
-
import { _ as
|
|
17
|
-
const
|
|
1
|
+
import { defineAsyncComponent as Xe, useSlots as Xo, getCurrentInstance as Go, ref as x, computed as b, onMounted as ql, toRefs as Uo, watch as Al, watchEffect as Ma, onBeforeUnmount as kt, nextTick as Aa, createElementBlock as r, openBlock as n, normalizeStyle as $, normalizeClass as ll, createBlock as Te, createCommentVNode as h, createElementVNode as p, createVNode as vl, unref as v, withCtx as G, renderSlot as B, normalizeProps as ke, guardReactiveProps as _e, createSlots as Ca, Fragment as d, renderList as w, mergeProps as tl, toDisplayString as te, Teleport as qo, resolveDynamicComponent as Zo, withDirectives as Jo, vModelCheckbox as Ko, createTextVNode as Ta } from "vue";
|
|
2
|
+
import { c as _t, f as wt, t as Qo, e as jo, m as Cl, n as al, h as za, p as Ia, q as Zl, r as Y, u as St, v as es, w as ls, x as P, y as Oa, z as Na, A as Va, B as Pa, C as ts, D as Fa, E as Ra, a as se, F as as, G as Ba, H as os, j as Ha, k as Pe, d as Fe, i as ol, s as ze, I as ss, J as Ge, K as Jl, L as $e, M as us, N as Ue, O as fe, b as is, o as Da, P as ns, Q as rs, R as dl } from "./lib-C_mNZmhD.js";
|
|
3
|
+
import { t as cs } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as vs, a as Kl } from "./useNestedProp-DjGXw6S9.js";
|
|
5
|
+
import { u as ds } from "./usePrinter-DTzqpYKF.js";
|
|
6
|
+
import { u as hs, B as fs } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
+
import { u as Ea, a as gs, l as ms } from "./useTimeLabels-BGFjWgrv.js";
|
|
8
|
+
import { u as bs } from "./useSvgExport-DrjCWun4.js";
|
|
9
|
+
import { u as xs } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
10
|
+
import ps from "./img-BecE5qXd.js";
|
|
11
|
+
import ys from "./Title-isbiM8i8.js";
|
|
12
|
+
import { t as ks } from "./themes-AUNCOb2G.js";
|
|
13
|
+
import { _ as Ql } from "./Shape-CNXKB8O0.js";
|
|
14
|
+
import { S as _s } from "./SlicerPreview-ij72TAs6.js";
|
|
15
|
+
import ws from "./vue-ui-accordion-CqhVCfc2.js";
|
|
16
|
+
import { _ as Ss } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
+
const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y", "width", "height"], Cs = { key: 1 }, Ts = { class: "vue-ui-xy-grid" }, zs = ["stroke", "x1", "x2", "y1", "y2"], Is = ["stroke", "x1", "x2", "y1", "y2"], Os = { key: 1 }, Ns = ["x1", "x2", "y1", "y2", "stroke"], Vs = ["x1", "x2", "y1", "y2", "stroke"], Ps = ["x1", "x2", "y1", "y2", "stroke"], Fs = { key: 3 }, Rs = ["d", "stroke"], Bs = { key: 4 }, Hs = ["d", "stroke"], Ds = ["id"], Es = ["stop-color"], Ys = ["stop-color"], Ws = ["stop-color"], Xs = ["id"], Gs = ["stop-color"], Us = ["stop-color"], qs = ["stop-color"], Zs = ["id"], Js = ["stop-color"], Ks = ["stop-color"], Qs = ["id"], js = ["stop-color"], eu = ["stop-color"], lu = ["id"], tu = ["stop-color"], au = ["stop-color"], ou = ["x", "y", "height", "width", "fill"], su = ["x", "y", "width"], uu = { key: 0 }, iu = ["x", "y", "height", "width", "fill"], nu = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], ru = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], cu = ["width", "x", "y"], vu = ["stroke", "x1", "x2", "y1", "y2"], du = { key: 3 }, hu = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], fu = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], gu = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], mu = ["fill", "font-size", "transform"], bu = ["x1", "x2", "y1", "y2", "stroke"], xu = ["x", "y", "font-size", "fill"], pu = ["x1", "x2", "y1", "y2", "stroke"], yu = ["x", "y", "font-size", "fill"], ku = ["width", "x", "y"], _u = { style: { width: "100%" } }, wu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Su = ["d", "stroke", "stroke-width", "stroke-dasharray"], $u = { key: 6 }, Lu = { key: 7 }, Mu = ["d", "fill", "fill-opacity"], Au = { key: 0 }, Cu = ["d", "fill"], Tu = ["d", "fill"], zu = ["d", "fill"], Iu = ["d", "fill"], Ou = ["d", "stroke", "stroke-width", "stroke-dasharray"], Nu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Vu = ["width", "x", "y"], Pu = { style: { width: "100%" } }, Fu = { key: 8 }, Ru = ["x", "y", "font-size", "fill"], Bu = ["x", "y", "font-size", "fill", "font-weight"], Hu = { key: 9 }, Du = ["x", "y", "font-size", "fill"], Eu = { key: 10 }, Yu = ["x", "y"], Wu = ["innerHTML"], Xu = ["x", "y"], Gu = ["innerHTML"], Uu = ["x1", "x2", "y1", "y2", "stroke"], qu = { key: 11 }, Zu = ["x", "y", "font-size", "fill"], Ju = { key: 12 }, Ku = ["x", "y"], Qu = ["innerHTML"], ju = ["x", "y"], ei = ["innerHTML"], li = ["x1", "x2", "y1", "y2", "stroke"], ti = ["x", "y", "font-size", "fill", "innerHTML"], ai = ["x", "y", "font-size", "fill", "innerHTML"], oi = ["x", "y", "font-size", "fill", "innerHTML"], si = ["x", "y", "font-size", "fill", "innerHTML"], ui = { key: 0 }, ii = ["id"], ni = ["fill", "stroke"], ri = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ci = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], vi = ["x", "y", "font-size", "fill", "stroke"], di = ["id"], hi = ["stop-color"], fi = ["stop-color"], gi = ["x", "y", "width", "height", "fill", "onMouseenter"], mi = ["font-size", "fill", "transform"], bi = ["x", "y", "font-size", "fill"], xi = ["text-anchor", "font-size", "fill", "transform", "onClick"], pi = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], yi = { key: 15 }, ki = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], _i = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], wi = ["y", "x", "width", "height", "fill"], Si = ["id", "x", "y", "font-size", "fill", "text-anchor"], $i = {
|
|
18
18
|
key: 16,
|
|
19
19
|
style: { "pointer-events": "none" }
|
|
20
|
-
},
|
|
20
|
+
}, Li = ["x", "y"], Mi = ["innerHTML"], Ai = ["cx", "cy", "r", "fill"], Ci = ["data-start", "data-end"], Ti = {
|
|
21
21
|
key: 4,
|
|
22
22
|
class: "vue-data-ui-watermark"
|
|
23
|
-
},
|
|
23
|
+
}, zi = {
|
|
24
24
|
class: "vue-ui-xy-tag-arrow",
|
|
25
25
|
height: "20",
|
|
26
26
|
viewBox: "0 0 10 20",
|
|
27
27
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
28
|
-
},
|
|
28
|
+
}, Ii = ["fill"], Oi = ["innerHTML"], Ni = {
|
|
29
29
|
class: "vue-ui-xy-tag-arrow",
|
|
30
30
|
height: "100%",
|
|
31
31
|
viewBox: "0 0 10 20",
|
|
32
32
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
33
|
-
},
|
|
33
|
+
}, Vi = ["fill"], Pi = ["innerHTML"], Fi = {
|
|
34
34
|
class: "vue-ui-xy-tag-arrow",
|
|
35
35
|
height: "20",
|
|
36
36
|
viewBox: "0 0 10 20",
|
|
37
37
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
38
|
-
},
|
|
38
|
+
}, Ri = ["fill"], Bi = ["innerHTML"], Hi = {
|
|
39
39
|
class: "vue-ui-xy-tag-arrow",
|
|
40
40
|
height: "100%",
|
|
41
41
|
viewBox: "0 0 10 20",
|
|
42
42
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
43
|
-
},
|
|
43
|
+
}, Di = ["fill"], Ei = ["innerHTML"], Yi = ["id"], Wi = ["onClick"], Xi = {
|
|
44
44
|
key: 0,
|
|
45
45
|
viewBox: "0 0 20 12",
|
|
46
46
|
height: "1em",
|
|
47
47
|
width: "1.43em"
|
|
48
|
-
},
|
|
48
|
+
}, Gi = ["stroke", "fill"], Ui = {
|
|
49
49
|
key: 1,
|
|
50
50
|
viewBox: "0 0 40 40",
|
|
51
51
|
height: "1em",
|
|
52
52
|
width: "1em"
|
|
53
|
-
},
|
|
53
|
+
}, qi = ["fill"], Zi = ["fill"], Ji = {
|
|
54
54
|
key: 2,
|
|
55
55
|
viewBox: "0 0 12 12",
|
|
56
56
|
height: "1em",
|
|
57
57
|
width: "1em"
|
|
58
|
-
},
|
|
58
|
+
}, Ki = {
|
|
59
59
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
60
60
|
"data-dom-to-png-ignore": ""
|
|
61
|
-
},
|
|
61
|
+
}, Qi = ["innerHTML"], ji = {
|
|
62
62
|
__name: "vue-ui-xy",
|
|
63
63
|
props: {
|
|
64
64
|
config: {
|
|
@@ -79,26 +79,26 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
emits: ["selectTimeLabel", "selectX", "selectLegend"],
|
|
82
|
-
setup(
|
|
83
|
-
const g =
|
|
82
|
+
setup(jl, { expose: Ya, emit: Wa }) {
|
|
83
|
+
const g = jl, Xa = Xe(() => import("./DataTable-BT7VF2ua.js")), Ga = Xe(() => import("./Tooltip-oWCO1HKy.js")), Ua = Xe(() => import("./UserOptions-CGnQt6Fd.js")), $t = Xe(() => import("./BaseIcon-BmMbm4d0.js")), qa = Xe(() => import("./vue-ui-table-sparkline-DpqY_4ay.js")), Za = Xe(() => import("./PackageVersion-DQvyATVa.js")), Ja = Xe(() => import("./PenAndPaper-SZQIAgkg.js")), Ka = Xe(() => import("./BaseDraggableDialog-ymf2sfB8.js")), et = Wa, Lt = Xo(), Qa = Go(), { vue_ui_xy: hl } = vs(), Ie = x(null), fl = x(null), Oe = x(null), sl = x(null), gl = x(null), ml = x(null), ja = x(null), lt = x(null), tt = x(null), ul = x(null), at = x(null), ot = x(null), He = x(null), st = x(null), eo = x(0), I = x(null), Mt = x(!0), ve = x(600), ee = x(1e3), Tl = x("0 0 1000 600"), lo = x({ x: 0, y: 0 }), bl = x({ line: "line", bar: "bar", plot: "plot" }), xl = x(!1), qe = x(!1), At = x(!1), Ze = x(null), J = x([]), E = x(_t()), Ct = x(0), Tt = x(0), zt = x(0), pl = x(!0), ut = x(0), V = x(null), It = x(!1), it = x(!0), zl = x(!0), ue = x(null), Re = x({}), Il = x(null), Ot = x(!1), il = x(null), _ = x(null), to = b(() => ({
|
|
84
84
|
height: ve.value,
|
|
85
|
-
width:
|
|
85
|
+
width: ee.value
|
|
86
86
|
}));
|
|
87
|
-
function
|
|
88
|
-
return Number.isFinite(
|
|
87
|
+
function Nt(t) {
|
|
88
|
+
return Number.isFinite(t) ? Math.max(0, Math.floor(t)) : 0;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
91
|
-
return Number.isFinite(
|
|
90
|
+
function nt(t, s, e = 0) {
|
|
91
|
+
return Number.isFinite(t) && Number.isFinite(s) && Math.abs(s) > 1e-9 ? t / s : e;
|
|
92
92
|
}
|
|
93
|
-
const
|
|
93
|
+
const Vt = x(!1), y = x({
|
|
94
94
|
xAxis: 18,
|
|
95
95
|
yAxis: 12,
|
|
96
96
|
dataLabels: 20,
|
|
97
97
|
plotLabels: 10
|
|
98
|
-
}),
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
[null, void 0].includes(
|
|
98
|
+
}), Le = x({ plot: 3, line: 3 });
|
|
99
|
+
ql(() => {
|
|
100
|
+
Ot.value = !0, g.dataset.length && g.dataset.forEach((t, s) => {
|
|
101
|
+
[null, void 0].includes(t.series) && wt({
|
|
102
102
|
componentName: "VueUiXy",
|
|
103
103
|
type: "datasetSerieAttribute",
|
|
104
104
|
property: "series (number[])",
|
|
@@ -107,63 +107,63 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
107
107
|
});
|
|
108
108
|
});
|
|
109
109
|
});
|
|
110
|
-
function
|
|
110
|
+
function rt() {
|
|
111
111
|
if (!Object.keys(g.config || {}).length)
|
|
112
112
|
return hl;
|
|
113
|
-
const
|
|
113
|
+
const t = Kl({
|
|
114
114
|
userConfig: g.config,
|
|
115
115
|
defaultConfig: hl
|
|
116
116
|
});
|
|
117
|
-
return g.config && fe(g.config, "chart.highlightArea") && (Array.isArray(g.config.chart.highlightArea) ?
|
|
117
|
+
return g.config && fe(g.config, "chart.highlightArea") && (Array.isArray(g.config.chart.highlightArea) ? t.chart.highlightArea = g.config.chart.highlightArea : t.chart.highlightArea = [g.config.chart.highlightArea]), g.config && fe(g.config, "chart.grid.labels.yAxis.scaleMin") ? t.chart.grid.labels.yAxis.scaleMin = g.config.chart.grid.labels.yAxis.scaleMin : t.chart.grid.labels.yAxis.scaleMin = null, g.config && fe(g.config, "chart.grid.labels.yAxis.scaleMax") ? t.chart.grid.labels.yAxis.scaleMax = g.config.chart.grid.labels.yAxis.scaleMax : t.chart.grid.labels.yAxis.scaleMax = null, g.config && fe(g.config, "chart.zoom.startIndex") ? t.chart.zoom.startIndex = g.config.chart.zoom.startIndex : t.chart.zoom.startIndex = null, g.config && fe(g.config, "chart.zoom.endIndex") ? t.chart.zoom.endIndex = g.config.chart.zoom.endIndex : t.chart.zoom.endIndex = null, g.config && fe(g.config, "chart.grid.labels.yAxis.groupColor") ? t.chart.grid.labels.yAxis.groupColor = g.config.chart.grid.labels.yAxis.groupColor : t.chart.grid.labels.yAxis.groupColor = null, g.config && fe(g.config, "chart.annotations") && Array.isArray(g.config.chart.annotations) && g.config.chart.annotations.length ? t.chart.annotations = g.config.chart.annotations.map((s) => Kl({
|
|
118
118
|
defaultConfig: hl.chart.annotations[0],
|
|
119
119
|
userConfig: s
|
|
120
|
-
})) :
|
|
120
|
+
})) : t.chart.annotations = [], g.config && fe(g.config, "chart.grid.position") && g.config.chart.grid.position === "start" && g.dataset.length && g.dataset.some((s) => s.type === "bar") && (t.chart.grid.position = "middle", fe(g.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), g.config && fe(g.config, "chart.grid.labels.yAxis.serieNameFormatter") ? t.chart.grid.labels.yAxis.serieNameFormatter = g.config.chart.grid.labels.yAxis.serieNameFormatter : t.chart.grid.labels.yAxis.serieNameFormatter = null, g.config && fe(g.config, "events.datapointEnter") ? t.events.datapointEnter = g.config.events.datapointEnter : t.events.datapointEnter = null, g.config && fe(g.config, "events.datapointLeave") ? t.events.datapointLeave = g.config.events.datapointLeave : t.events.datapointLeave = null, g.config && fe(g.config, "events.datapointClick") ? t.events.datapointClick = g.config.events.datapointClick : t.events.datapointClick = null, g.config && fe(g.config, "chart.highlightArea") && (Array.isArray(g.config.chart.highlightArea) ? t.chart.highlightArea = g.config.chart.highlightArea.map((s) => Pt({
|
|
121
121
|
defaultConfig: hl.chart.highlightArea,
|
|
122
122
|
userConfig: s
|
|
123
|
-
})) :
|
|
123
|
+
})) : t.chart.highlightArea = Pt({
|
|
124
124
|
defaultConfig: hl.chart.highlightArea,
|
|
125
125
|
userConfig: g.config.chart.highlightArea
|
|
126
|
-
})),
|
|
127
|
-
...
|
|
128
|
-
userConfig:
|
|
129
|
-
defaultConfig:
|
|
126
|
+
})), t.theme ? {
|
|
127
|
+
...Kl({
|
|
128
|
+
userConfig: ks.vue_ui_xy[t.theme] || g.config,
|
|
129
|
+
defaultConfig: t
|
|
130
130
|
}),
|
|
131
|
-
customPalette:
|
|
132
|
-
} :
|
|
131
|
+
customPalette: is[t.theme] || g.palette
|
|
132
|
+
} : t;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
return
|
|
136
|
-
defaultConfig:
|
|
134
|
+
function Pt({ defaultConfig: t, userConfig: s }) {
|
|
135
|
+
return Kl({
|
|
136
|
+
defaultConfig: t,
|
|
137
137
|
userConfig: s
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
|
-
const
|
|
140
|
+
const ct = b({
|
|
141
141
|
get() {
|
|
142
142
|
return !!g.dataset && g.dataset.length;
|
|
143
143
|
},
|
|
144
|
-
set(
|
|
145
|
-
return
|
|
144
|
+
set(t) {
|
|
145
|
+
return t;
|
|
146
146
|
}
|
|
147
|
-
}), l = x(
|
|
147
|
+
}), l = x(rt()), f = x({
|
|
148
148
|
dataLabels: { show: !0 },
|
|
149
149
|
showTooltip: !0,
|
|
150
150
|
showTable: !1,
|
|
151
151
|
isStacked: !1,
|
|
152
152
|
useIndividualScale: !1
|
|
153
153
|
});
|
|
154
|
-
function
|
|
155
|
-
|
|
154
|
+
function vt() {
|
|
155
|
+
Vt.value ? (f.value.isStacked = l.value.chart.grid.labels.yAxis.stacked, f.value.useIndividualScale == null && (f.value.useIndividualScale = l.value.chart.grid.labels.yAxis.useIndividualScale)) : (f.value = {
|
|
156
156
|
dataLabels: { show: !0 },
|
|
157
157
|
showTooltip: l.value.chart.tooltip.show === !0,
|
|
158
158
|
showTable: l.value.showTable === !0,
|
|
159
159
|
isStacked: l.value.chart.grid.labels.yAxis.stacked,
|
|
160
160
|
useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
|
|
161
|
-
},
|
|
161
|
+
}, Vt.value = !0);
|
|
162
162
|
}
|
|
163
|
-
const yl = b(() => !!l.value.debug), { loading: ie, FINAL_DATASET: ge, manualLoading: Ol } =
|
|
164
|
-
...
|
|
163
|
+
const yl = b(() => !!l.value.debug), { loading: ie, FINAL_DATASET: ge, manualLoading: Ol } = hs({
|
|
164
|
+
...Uo(g),
|
|
165
165
|
FINAL_CONFIG: l,
|
|
166
|
-
prepareConfig:
|
|
166
|
+
prepareConfig: rt,
|
|
167
167
|
callback: () => {
|
|
168
168
|
Promise.resolve().then(async () => {
|
|
169
169
|
await Rl(), f.value.showTable = l.value.showTable;
|
|
@@ -184,7 +184,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
184
184
|
color: "#CACACA"
|
|
185
185
|
}
|
|
186
186
|
],
|
|
187
|
-
skeletonConfig:
|
|
187
|
+
skeletonConfig: Qo({
|
|
188
188
|
defaultConfig: l.value,
|
|
189
189
|
userConfig: {
|
|
190
190
|
useCssAnimation: !1,
|
|
@@ -242,35 +242,35 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
242
242
|
}
|
|
243
243
|
})
|
|
244
244
|
});
|
|
245
|
-
function ao(
|
|
245
|
+
function ao(t) {
|
|
246
246
|
const s = /* @__PURE__ */ new WeakMap();
|
|
247
247
|
return (e, ...u) => {
|
|
248
|
-
let
|
|
248
|
+
let a = s.get(e);
|
|
249
249
|
const i = JSON.stringify(u);
|
|
250
|
-
if (
|
|
251
|
-
const o =
|
|
252
|
-
return
|
|
250
|
+
if (a && a.has(i)) return a.get(i);
|
|
251
|
+
const o = t(e, ...u);
|
|
252
|
+
return a || (a = /* @__PURE__ */ new Map(), s.set(e, a)), a.set(i, o), o;
|
|
253
253
|
};
|
|
254
254
|
}
|
|
255
|
-
const
|
|
256
|
-
get: () => Math.max(...ge.value.map((
|
|
257
|
-
set: (
|
|
258
|
-
}), m = x({ start: 0, end:
|
|
259
|
-
function
|
|
260
|
-
|
|
255
|
+
const oo = ao((t, s) => St({ data: t, threshold: s })), De = (t) => oo(t, l.value.downsample.threshold), Ne = b({
|
|
256
|
+
get: () => Math.max(...ge.value.map((t) => De(t.series).length)),
|
|
257
|
+
set: (t) => t
|
|
258
|
+
}), m = x({ start: 0, end: Ne.value }), Me = x({ start: 0, end: Ne.value }), Ft = b(() => l.value.chart.zoom.preview.enable && (Me.value.start !== m.value.start || Me.value.end !== m.value.end));
|
|
259
|
+
function Rt(t, s) {
|
|
260
|
+
Me.value[t] = s;
|
|
261
261
|
}
|
|
262
262
|
function nl() {
|
|
263
|
-
const
|
|
263
|
+
const t = Math.max(
|
|
264
264
|
1,
|
|
265
|
-
...ge.value.map((u) =>
|
|
265
|
+
...ge.value.map((u) => De(u.series).length)
|
|
266
266
|
);
|
|
267
|
-
let s = Math.max(0, Math.min(m.value.start ?? 0,
|
|
268
|
-
(!Number.isFinite(s) || !Number.isFinite(e) || e <= s) && (s = 0, e =
|
|
267
|
+
let s = Math.max(0, Math.min(m.value.start ?? 0, t - 1)), e = Math.max(s + 1, Math.min(m.value.end ?? t, t));
|
|
268
|
+
(!Number.isFinite(s) || !Number.isFinite(e) || e <= s) && (s = 0, e = t), m.value = { start: s, end: e }, Me.value.start = s, Me.value.end = e, Oe.value && (Oe.value.setStartValue(s), Oe.value.setEndValue(e));
|
|
269
269
|
}
|
|
270
|
-
const
|
|
271
|
-
const { left:
|
|
270
|
+
const so = b(() => {
|
|
271
|
+
const { left: t, top: s, width: e, height: u } = c.value, a = m.value.start, o = m.value.end - a, A = e / o, C = Me.value.start - a, O = Me.value.end - a, S = Math.max(0, Math.min(o, C)), T = Math.max(0, Math.min(o, O));
|
|
272
272
|
return {
|
|
273
|
-
x:
|
|
273
|
+
x: t + S * A,
|
|
274
274
|
y: s,
|
|
275
275
|
width: (T - S) * A,
|
|
276
276
|
height: u,
|
|
@@ -287,216 +287,216 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
287
287
|
}
|
|
288
288
|
};
|
|
289
289
|
});
|
|
290
|
-
Al(() => g.selectedXIndex, (
|
|
290
|
+
Al(() => g.selectedXIndex, (t) => {
|
|
291
291
|
if ([null, void 0].includes(g.selectedXIndex)) {
|
|
292
292
|
_.value = null;
|
|
293
293
|
return;
|
|
294
294
|
}
|
|
295
|
-
const s =
|
|
296
|
-
s < 0 ||
|
|
295
|
+
const s = t - m.value.start;
|
|
296
|
+
s < 0 || t >= m.value.end ? _.value = null : _.value = s ?? null;
|
|
297
297
|
}, { immediate: !0 });
|
|
298
|
-
const { isPrinting:
|
|
299
|
-
elementId: `vue-ui-xy_${
|
|
298
|
+
const { isPrinting: dt, isImaging: Bt, generatePdf: Ht, generateImage: Dt } = ds({
|
|
299
|
+
elementId: `vue-ui-xy_${E.value}`,
|
|
300
300
|
fileName: l.value.chart.title.text || "vue-ui-xy",
|
|
301
301
|
options: l.value.chart.userOptions.print
|
|
302
|
-
}),
|
|
302
|
+
}), uo = x(!1), Nl = b(() => jo(l.value.customPalette)), Vl = b(() => {
|
|
303
303
|
if (l.value.chart.grid.labels.yAxis.scaleMin !== null)
|
|
304
304
|
return l.value.chart.grid.labels.yAxis.scaleMin;
|
|
305
|
-
const
|
|
306
|
-
return
|
|
305
|
+
const t = Math.min(...Be.value.filter((s) => !J.value.includes(s.id)).map((s) => Math.min(...s.series)));
|
|
306
|
+
return t > 0 ? 0 : t;
|
|
307
307
|
}), Pl = b(() => {
|
|
308
308
|
if (l.value.chart.grid.labels.yAxis.scaleMax)
|
|
309
309
|
return l.value.chart.grid.labels.yAxis.scaleMax;
|
|
310
|
-
const
|
|
311
|
-
return Vl.value ===
|
|
312
|
-
}),
|
|
313
|
-
const e =
|
|
310
|
+
const t = Math.max(...Be.value.filter((s) => !J.value.includes(s.id)).map((s) => Math.max(...s.series)));
|
|
311
|
+
return Vl.value === t ? t + 1 : t;
|
|
312
|
+
}), Ae = b(() => l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(Vl.value, Pl.value < 0 ? 0 : Pl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps) : al(Vl.value, Pl.value < 0 ? 0 : Pl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps)), kl = b(() => [null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) ? Ae.value.min >= 0 ? 0 : Math.abs(Ae.value.min) : -Ae.value.min), Be = b(() => Mt.value ? ge.value.map((t, s) => {
|
|
313
|
+
const e = De(t.series), u = `uniqueId_${s}`;
|
|
314
314
|
return {
|
|
315
|
-
...
|
|
315
|
+
...t,
|
|
316
316
|
slotAbsoluteIndex: s,
|
|
317
|
-
series: e.map((
|
|
318
|
-
color:
|
|
317
|
+
series: e.map((a) => Zl(a) ? a : null).slice(m.value.start, m.value.end),
|
|
318
|
+
color: za(t.color ? t.color : Nl.value[s] ? Nl.value[s] : Ia[s]),
|
|
319
319
|
id: u,
|
|
320
|
-
scaleLabel:
|
|
320
|
+
scaleLabel: t.scaleLabel || u
|
|
321
321
|
};
|
|
322
|
-
}) : ge.value),
|
|
322
|
+
}) : ge.value), me = b(() => Be.value.map((t, s) => ({
|
|
323
323
|
absoluteIndex: s,
|
|
324
|
-
...
|
|
325
|
-
series:
|
|
326
|
-
absoluteValues:
|
|
327
|
-
segregate: () =>
|
|
328
|
-
isSegregated:
|
|
329
|
-
}))),
|
|
330
|
-
...
|
|
331
|
-
series:
|
|
332
|
-
absoluteValues:
|
|
333
|
-
})).filter((
|
|
334
|
-
function
|
|
335
|
-
let
|
|
336
|
-
|
|
324
|
+
...t,
|
|
325
|
+
series: t.series.map((e) => e + kl.value),
|
|
326
|
+
absoluteValues: t.series,
|
|
327
|
+
segregate: () => El(t),
|
|
328
|
+
isSegregated: J.value.includes(t.id)
|
|
329
|
+
}))), we = b(() => Be.value.map((t, s) => ({
|
|
330
|
+
...t,
|
|
331
|
+
series: t.series.map((e) => e + kl.value),
|
|
332
|
+
absoluteValues: t.series
|
|
333
|
+
})).filter((t) => !J.value.includes(t.id)));
|
|
334
|
+
function io() {
|
|
335
|
+
let t = 0;
|
|
336
|
+
at.value && (t = Array.from(at.value.querySelectorAll("text")).reduce((a, i) => {
|
|
337
337
|
const o = i.getComputedTextLength();
|
|
338
|
-
return (o >
|
|
338
|
+
return (o > a ? o : a) + l.value.chart.grid.labels.yAxis.scaleValueOffsetX;
|
|
339
339
|
}, 0));
|
|
340
|
-
const s =
|
|
341
|
-
return
|
|
340
|
+
const s = tt.value ? tt.value.getBoundingClientRect().width + l.value.chart.grid.labels.axis.yLabelOffsetX + y.value.yAxis : 0, e = l.value.chart.grid.labels.yAxis.crosshairSize;
|
|
341
|
+
return t + s + e;
|
|
342
342
|
}
|
|
343
|
-
const
|
|
344
|
-
|
|
343
|
+
const ht = x(0), no = cs((t) => {
|
|
344
|
+
ht.value = t;
|
|
345
345
|
}, 100);
|
|
346
|
-
|
|
346
|
+
Ma((t) => {
|
|
347
347
|
const s = ul.value;
|
|
348
348
|
if (!s) return;
|
|
349
349
|
const e = new ResizeObserver((u) => {
|
|
350
|
-
|
|
350
|
+
no(u[0].contentRect.height);
|
|
351
351
|
});
|
|
352
|
-
e.observe(s),
|
|
353
|
-
}),
|
|
354
|
-
|
|
352
|
+
e.observe(s), t(() => e.disconnect());
|
|
353
|
+
}), kt(() => {
|
|
354
|
+
ht.value = 0;
|
|
355
355
|
});
|
|
356
|
-
const
|
|
357
|
-
let
|
|
358
|
-
|
|
356
|
+
const Et = b(() => {
|
|
357
|
+
let t = 0;
|
|
358
|
+
lt.value && (t = lt.value.getBBox().height);
|
|
359
359
|
let s = 0;
|
|
360
|
-
return ul.value && (s =
|
|
361
|
-
}),
|
|
362
|
-
let
|
|
360
|
+
return ul.value && (s = ht.value), t + s + y.value.xAxis;
|
|
361
|
+
}), ro = b(() => ge.value.some((t) => t.useProgression)), c = b(() => {
|
|
362
|
+
let t = 0;
|
|
363
363
|
const s = 36;
|
|
364
|
-
l.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ?
|
|
365
|
-
const e = l.value.chart.labels.fontSize * 1.1, u =
|
|
364
|
+
l.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ? t = (ge.value.length - J.value.length) * (l.value.chart.grid.labels.yAxis.labelWidth + s) : f.value.useIndividualScale && f.value.isStacked ? t = l.value.chart.grid.labels.yAxis.labelWidth + s : t = io());
|
|
365
|
+
const e = l.value.chart.labels.fontSize * 1.1, u = ro.value ? 24 : 6;
|
|
366
366
|
if (ul.value) {
|
|
367
367
|
const o = ul.value.getBBox().x;
|
|
368
|
-
o < 0 && (
|
|
368
|
+
o < 0 && (t += Math.abs(o));
|
|
369
369
|
}
|
|
370
|
-
const
|
|
370
|
+
const a = ee.value - t - l.value.chart.grid.labels.yAxis.crosshairSize - u - l.value.chart.padding.left - l.value.chart.padding.right, i = l.value.chart.grid.position === "middle" ? 0 : a / L.value / 2;
|
|
371
371
|
return {
|
|
372
372
|
top: l.value.chart.padding.top + e,
|
|
373
|
-
right:
|
|
374
|
-
bottom: ve.value -
|
|
375
|
-
left:
|
|
376
|
-
height: ve.value -
|
|
377
|
-
width:
|
|
378
|
-
scaleLabelX:
|
|
373
|
+
right: ee.value - u - l.value.chart.padding.right,
|
|
374
|
+
bottom: ve.value - Et.value - l.value.chart.padding.bottom - l.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
375
|
+
left: t + l.value.chart.grid.labels.yAxis.crosshairSize - i + l.value.chart.padding.left,
|
|
376
|
+
height: ve.value - Et.value - l.value.chart.padding.top - l.value.chart.padding.bottom - e - l.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
377
|
+
width: a,
|
|
378
|
+
scaleLabelX: t,
|
|
379
379
|
individualOffsetX: s
|
|
380
380
|
};
|
|
381
|
-
}),
|
|
382
|
-
const
|
|
383
|
-
return Array.from({ length: s }).map((
|
|
384
|
-
const o = c.value.width / L.value * i + c.value.left +
|
|
381
|
+
}), co = b(() => {
|
|
382
|
+
const t = l.value.chart.grid.position === "middle" ? 1 : 0, s = L.value + t, e = Y(c.value.top), u = Y(c.value.bottom);
|
|
383
|
+
return Array.from({ length: s }).map((a, i) => {
|
|
384
|
+
const o = c.value.width / L.value * i + c.value.left + U.value;
|
|
385
385
|
return `M${o},${e} L${o},${u}`;
|
|
386
386
|
}).join(" ");
|
|
387
|
-
}),
|
|
387
|
+
}), vo = b(() => {
|
|
388
388
|
if (!l.value.chart.grid.labels.xAxis.showCrosshairs) return "";
|
|
389
|
-
const
|
|
390
|
-
return
|
|
389
|
+
const t = c.value.width / L.value, s = l.value.chart.grid.labels.xAxis.crosshairSize, e = l.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
|
|
390
|
+
return mt.value.map((u, a) => {
|
|
391
391
|
if (!u || !u.text) return null;
|
|
392
|
-
const i = c.value.left +
|
|
392
|
+
const i = c.value.left + t * a + t / 2, o = e ? ne.value - (ne.value === c.value.bottom ? 0 : s / 2) : c.value.bottom, A = e ? ne.value + s / (ne.value === c.value.bottom ? 1 : 2) : c.value.bottom + s;
|
|
393
393
|
return `M${i},${o} L${i},${A}`;
|
|
394
394
|
}).filter(Boolean).join(" ");
|
|
395
395
|
});
|
|
396
|
-
function
|
|
397
|
-
return !!
|
|
396
|
+
function Yt() {
|
|
397
|
+
return !!Qa?.vnode.props?.onSelectTimeLabel;
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function ho(t, s, e) {
|
|
400
400
|
if (!Il.value) {
|
|
401
401
|
const u = document.createElement("canvas");
|
|
402
402
|
Il.value = u.getContext("2d");
|
|
403
403
|
}
|
|
404
|
-
return Il.value.font = `normal ${
|
|
404
|
+
return Il.value.font = `normal ${t}px sans-serif`, Il.value;
|
|
405
405
|
}
|
|
406
|
-
function
|
|
407
|
-
const
|
|
408
|
-
|
|
406
|
+
function Wt() {
|
|
407
|
+
const t = Ie.value.querySelectorAll(".vue-ui-xy-tag");
|
|
408
|
+
t.length && Array.from(t).forEach((s) => s.style.opacity = "0");
|
|
409
409
|
}
|
|
410
|
-
function Fl(
|
|
411
|
-
e && (
|
|
410
|
+
function Fl(t, s, e, u, a) {
|
|
411
|
+
e && (Re.value[`${t}_${s}_${u}_${a}`] = e);
|
|
412
412
|
}
|
|
413
|
-
const
|
|
414
|
-
async function
|
|
415
|
-
await
|
|
413
|
+
const Xt = x(!1);
|
|
414
|
+
async function Gt(t = !1) {
|
|
415
|
+
await Aa(), Xt.value = t, It.value && (zl.value = t);
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function ft() {
|
|
418
418
|
xl.value = !xl.value;
|
|
419
419
|
}
|
|
420
420
|
const de = b(() => {
|
|
421
|
-
const
|
|
422
|
-
return
|
|
421
|
+
const t = Math.max(...ge.value.map((s) => St({ data: s.series, threshold: l.value.downsample.threshold }).length));
|
|
422
|
+
return Ea({
|
|
423
423
|
values: l.value.chart.grid.labels.xAxisLabels.values,
|
|
424
|
-
maxDatapoints:
|
|
424
|
+
maxDatapoints: t,
|
|
425
425
|
formatter: l.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
426
426
|
start: m.value.start,
|
|
427
427
|
end: m.value.end
|
|
428
428
|
});
|
|
429
|
-
}),
|
|
430
|
-
const
|
|
431
|
-
return
|
|
429
|
+
}), gt = b(() => {
|
|
430
|
+
const t = Math.max(...ge.value.map((s) => St({ data: s.series, threshold: l.value.downsample.threshold }).length));
|
|
431
|
+
return Ea({
|
|
432
432
|
values: l.value.chart.grid.labels.xAxisLabels.values,
|
|
433
|
-
maxDatapoints:
|
|
433
|
+
maxDatapoints: t,
|
|
434
434
|
formatter: l.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
435
435
|
start: 0,
|
|
436
|
-
end:
|
|
436
|
+
end: Ne.value
|
|
437
437
|
});
|
|
438
|
-
}),
|
|
439
|
-
const
|
|
440
|
-
return de.value.length ? Math.min(
|
|
441
|
-
}),
|
|
442
|
-
const
|
|
443
|
-
return
|
|
444
|
-
!!
|
|
445
|
-
!!
|
|
446
|
-
Math.max(1,
|
|
438
|
+
}), fo = b(() => {
|
|
439
|
+
const t = l.value.chart.grid.labels.xAxisLabels.modulo;
|
|
440
|
+
return de.value.length ? Math.min(t, [...new Set(de.value.map((s) => s.text))].length) : t;
|
|
441
|
+
}), mt = b(() => {
|
|
442
|
+
const t = l.value.chart.grid.labels.xAxisLabels, s = de.value || [], e = gt.value || [], u = m.value.start ?? 0, a = _.value, i = L.value, o = s.map((C) => C?.text ?? ""), A = e.map((C) => C?.text ?? "");
|
|
443
|
+
return es(
|
|
444
|
+
!!t.showOnlyFirstAndLast,
|
|
445
|
+
!!t.showOnlyAtModulo,
|
|
446
|
+
Math.max(1, fo.value || 1),
|
|
447
447
|
o,
|
|
448
448
|
A,
|
|
449
449
|
u,
|
|
450
|
-
|
|
450
|
+
a,
|
|
451
451
|
i
|
|
452
452
|
);
|
|
453
453
|
});
|
|
454
|
-
function
|
|
455
|
-
const e =
|
|
454
|
+
function Ut(t, s) {
|
|
455
|
+
const e = we.value.map((u) => ({
|
|
456
456
|
shape: u.shape || null,
|
|
457
457
|
name: u.name,
|
|
458
458
|
color: u.color,
|
|
459
459
|
type: u.type,
|
|
460
|
-
value: u.absoluteValues.find((
|
|
460
|
+
value: u.absoluteValues.find((a, i) => i === s),
|
|
461
461
|
comments: u.comments || [],
|
|
462
462
|
prefix: u.prefix || l.value.chart.labels.prefix,
|
|
463
463
|
suffix: u.suffix || l.value.chart.labels.suffix
|
|
464
464
|
}));
|
|
465
|
-
|
|
465
|
+
et("selectTimeLabel", {
|
|
466
466
|
datapoint: e,
|
|
467
|
-
absoluteIndex:
|
|
468
|
-
label:
|
|
467
|
+
absoluteIndex: t.absoluteIndex,
|
|
468
|
+
label: t.text
|
|
469
469
|
});
|
|
470
470
|
}
|
|
471
471
|
const L = b(() => {
|
|
472
|
-
const
|
|
473
|
-
return Math.max(1,
|
|
472
|
+
const t = Nt((m.value.end ?? 0) - (m.value.start ?? 0));
|
|
473
|
+
return Math.max(1, t);
|
|
474
474
|
});
|
|
475
|
-
function
|
|
476
|
-
V.value =
|
|
475
|
+
function go(t) {
|
|
476
|
+
V.value = t;
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function qt() {
|
|
479
479
|
f.value.isStacked = !f.value.isStacked, f.value.isStacked ? f.value.useIndividualScale = !0 : f.value.useIndividualScale = l.value.chart.grid.labels.yAxis.useIndividualScale;
|
|
480
480
|
}
|
|
481
|
-
function
|
|
482
|
-
yl.value &&
|
|
481
|
+
function bt(t) {
|
|
482
|
+
yl.value && t.autoScaling && (l.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${t.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), l.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${t.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
|
|
483
483
|
}
|
|
484
|
-
function
|
|
485
|
-
const e =
|
|
486
|
-
for (let
|
|
484
|
+
function mo(t, s) {
|
|
485
|
+
const e = Nt(t), u = Array(e).fill(0);
|
|
486
|
+
for (let a = 0; a < s.length && a < e; a += 1) u[a] = s[a] ?? 0;
|
|
487
487
|
return u;
|
|
488
488
|
}
|
|
489
|
-
function
|
|
490
|
-
const s = Math.max(...ge.value.map((e) =>
|
|
491
|
-
return
|
|
489
|
+
function Zt(t) {
|
|
490
|
+
const s = Math.max(...ge.value.map((e) => De(e.series).length));
|
|
491
|
+
return t > s ? s : t < 0 || l.value.chart.zoom.startIndex !== null && t < l.value.chart.zoom.startIndex ? l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex + 1 : 1 : t;
|
|
492
492
|
}
|
|
493
|
-
const _l = x(!1),
|
|
493
|
+
const _l = x(!1), Jt = x(!1);
|
|
494
494
|
function Rl() {
|
|
495
495
|
if (!_l.value) {
|
|
496
496
|
_l.value = !0;
|
|
497
497
|
try {
|
|
498
|
-
const { startIndex:
|
|
499
|
-
Bl.value = !0, m.value.start = u, m.value.end =
|
|
498
|
+
const { startIndex: t, endIndex: s } = l.value.chart.zoom, e = Math.max(...ge.value.map((i) => De(i.series).length)), u = t ?? 0, a = s != null ? Math.min(Zt(s + 1), e) : e;
|
|
499
|
+
Bl.value = !0, m.value.start = u, m.value.end = a, Me.value.start = u, Me.value.end = a, nl(), Jt.value = !0;
|
|
500
500
|
} finally {
|
|
501
501
|
queueMicrotask(() => {
|
|
502
502
|
Bl.value = !1;
|
|
@@ -505,132 +505,132 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
507
|
const Bl = x(!1);
|
|
508
|
-
function
|
|
509
|
-
_l.value || Bl.value ||
|
|
508
|
+
function bo(t) {
|
|
509
|
+
_l.value || Bl.value || t !== m.value.start && (m.value.start = t, Me.value.start = t, nl());
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function xo(t) {
|
|
512
512
|
if (_l.value || Bl.value) return;
|
|
513
|
-
const s =
|
|
514
|
-
s !== m.value.end && (m.value.end = s,
|
|
513
|
+
const s = Zt(t);
|
|
514
|
+
s !== m.value.end && (m.value.end = s, Me.value.end = s, nl());
|
|
515
515
|
}
|
|
516
|
-
async function
|
|
516
|
+
async function po() {
|
|
517
517
|
await Rl();
|
|
518
518
|
}
|
|
519
|
-
function
|
|
520
|
-
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(
|
|
519
|
+
function be(t) {
|
|
520
|
+
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(t);
|
|
521
521
|
}
|
|
522
|
-
const
|
|
523
|
-
function Je(
|
|
524
|
-
return
|
|
522
|
+
const Kt = b(() => Ae.value.max + kl.value);
|
|
523
|
+
function Je(t) {
|
|
524
|
+
return t / (be(Kt.value) ? Kt.value : 1);
|
|
525
525
|
}
|
|
526
526
|
const ne = b(() => isNaN(Je(kl.value)) ? c.value.bottom : c.value.bottom - c.value.height * Je(kl.value));
|
|
527
|
-
function
|
|
527
|
+
function Qt(t) {
|
|
528
528
|
const s = ![null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) && l.value.chart.grid.labels.yAxis.scaleMin > 0 && Vl.value >= 0 ? c.value.bottom : ne.value;
|
|
529
|
-
return
|
|
529
|
+
return t.value >= 0 ? P(s - t.y <= 0 ? 1e-5 : s - t.y) : P(t.y - ne.value <= 0 ? 1e-5 : t.y - ne.value);
|
|
530
530
|
}
|
|
531
|
-
function
|
|
532
|
-
return
|
|
531
|
+
function jt(t) {
|
|
532
|
+
return t.value >= 0 ? P(t.zeroPosition - t.y <= 0 ? 1e-5 : t.zeroPosition - t.y) : P(t.y - t.zeroPosition <= 0 ? 1e-5 : t.zeroPosition - t.y);
|
|
533
533
|
}
|
|
534
|
-
const
|
|
535
|
-
const
|
|
534
|
+
const Z = b(() => {
|
|
535
|
+
const t = Math.max(1, L.value), s = Math.max(1, c.value.width), e = Math.max(1, Be.value.filter((u) => u.type === "bar" && !J.value.includes(u.id)).length);
|
|
536
536
|
return {
|
|
537
|
-
bar:
|
|
538
|
-
plot:
|
|
539
|
-
line:
|
|
537
|
+
bar: nt(s, t * e, 1),
|
|
538
|
+
plot: nt(s, t, 1),
|
|
539
|
+
line: nt(s, t, 1)
|
|
540
540
|
};
|
|
541
541
|
});
|
|
542
|
-
function
|
|
543
|
-
return f.value.useIndividualScale && f.value.isStacked ?
|
|
542
|
+
function Ee() {
|
|
543
|
+
return f.value.useIndividualScale && f.value.isStacked ? Z.value.line - c.value.width / L.value * 0.1 : Z.value.bar;
|
|
544
544
|
}
|
|
545
|
-
function Hl(
|
|
546
|
-
return f.value.useIndividualScale && f.value.isStacked ?
|
|
545
|
+
function Hl(t) {
|
|
546
|
+
return f.value.useIndividualScale && f.value.isStacked ? t.x + c.value.width / L.value * 0.05 : t.x + Z.value.bar / 2;
|
|
547
547
|
}
|
|
548
|
-
function
|
|
549
|
-
return
|
|
548
|
+
function ea(t) {
|
|
549
|
+
return t.value >= 0 ? t.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(ne.value) ? c.bottom.value : ne.value;
|
|
550
550
|
}
|
|
551
|
-
function
|
|
552
|
-
return
|
|
551
|
+
function la(t) {
|
|
552
|
+
return t.value >= 0 ? t.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(t.zeroPosition) ? 0 : t.zeroPosition;
|
|
553
553
|
}
|
|
554
554
|
const wl = x(null);
|
|
555
|
-
function
|
|
555
|
+
function ta(t) {
|
|
556
556
|
const s = ue.value;
|
|
557
557
|
if (!s) return null;
|
|
558
558
|
if (s.createSVGPoint && s.getScreenCTM) {
|
|
559
559
|
const T = s.createSVGPoint();
|
|
560
|
-
T.x =
|
|
561
|
-
const
|
|
562
|
-
if (
|
|
563
|
-
const k = T.matrixTransform(
|
|
560
|
+
T.x = t.clientX, T.y = t.clientY;
|
|
561
|
+
const W = s.getScreenCTM();
|
|
562
|
+
if (W) {
|
|
563
|
+
const k = T.matrixTransform(W.inverse());
|
|
564
564
|
return { x: k.x, y: k.y, ok: !0 };
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
|
-
const e = s.getBoundingClientRect(), u = s.viewBox?.baseVal || { x: 0, y: 0, width: e.width, height: e.height },
|
|
567
|
+
const e = s.getBoundingClientRect(), u = s.viewBox?.baseVal || { x: 0, y: 0, width: e.width, height: e.height }, a = Math.min(e.width / u.width, e.height / u.height), i = u.width * a, o = u.height * a, A = (e.width - i) / 2, C = (e.height - o) / 2, O = (t.clientX - e.left - A) / a + u.x, S = (t.clientY - e.top - C) / a + u.y;
|
|
568
568
|
return { x: O, y: S, ok: !0 };
|
|
569
569
|
}
|
|
570
570
|
let Ke = 0;
|
|
571
|
-
function
|
|
571
|
+
function yo(t) {
|
|
572
572
|
xl.value || (Ke && cancelAnimationFrame(Ke), Ke = requestAnimationFrame(() => {
|
|
573
573
|
Ke = 0;
|
|
574
|
-
const s =
|
|
574
|
+
const s = ta(t);
|
|
575
575
|
if (!s || !ue.value) {
|
|
576
576
|
Dl();
|
|
577
577
|
return;
|
|
578
578
|
}
|
|
579
|
-
const { left: e, right: u, top:
|
|
580
|
-
if (s.x < e || s.x > u || s.y <
|
|
579
|
+
const { left: e, right: u, top: a, bottom: i, width: o } = c.value;
|
|
580
|
+
if (s.x < e || s.x > u || s.y < a || s.y > i) {
|
|
581
581
|
Dl();
|
|
582
582
|
return;
|
|
583
583
|
}
|
|
584
584
|
const A = s.x - e, C = o / L.value, O = Math.floor(A / C);
|
|
585
|
-
O >= 0 && O < L.value ? wl.value !== O && (wl.value = O,
|
|
585
|
+
O >= 0 && O < L.value ? wl.value !== O && (wl.value = O, ga(!0, O)) : Dl();
|
|
586
586
|
}));
|
|
587
587
|
}
|
|
588
588
|
function Dl() {
|
|
589
|
-
Ke && (cancelAnimationFrame(Ke), Ke = 0), wl.value = null,
|
|
589
|
+
Ke && (cancelAnimationFrame(Ke), Ke = 0), wl.value = null, ga(!1, null);
|
|
590
590
|
}
|
|
591
|
-
function
|
|
592
|
-
const s =
|
|
591
|
+
function aa(t) {
|
|
592
|
+
const s = ta(t);
|
|
593
593
|
if (s && ue.value) {
|
|
594
|
-
const { left: e, right: u, top:
|
|
595
|
-
if (s.x >= e && s.x <= u && s.y >=
|
|
594
|
+
const { left: e, right: u, top: a, bottom: i, width: o } = c.value;
|
|
595
|
+
if (s.x >= e && s.x <= u && s.y >= a && s.y <= i) {
|
|
596
596
|
const A = o / Math.max(1, L.value), C = Math.floor((s.x - e) / A);
|
|
597
597
|
if (C >= 0 && C < L.value) {
|
|
598
|
-
|
|
598
|
+
oa(C);
|
|
599
599
|
return;
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
602
|
}
|
|
603
|
-
wl.value != null &&
|
|
603
|
+
wl.value != null && oa(wl.value);
|
|
604
604
|
}
|
|
605
|
-
function
|
|
606
|
-
const s =
|
|
605
|
+
function oa(t) {
|
|
606
|
+
const s = we.value.map((e) => ({
|
|
607
607
|
name: e.name,
|
|
608
|
-
value: [null, void 0, NaN].includes(e.absoluteValues[
|
|
608
|
+
value: [null, void 0, NaN].includes(e.absoluteValues[t]) ? null : e.absoluteValues[t],
|
|
609
609
|
color: e.color,
|
|
610
610
|
type: e.type
|
|
611
611
|
}));
|
|
612
|
-
|
|
612
|
+
et(
|
|
613
613
|
"selectX",
|
|
614
614
|
{
|
|
615
615
|
dataset: s,
|
|
616
|
-
index:
|
|
617
|
-
indexLabel: l.value.chart.grid.labels.xAxisLabels.values[
|
|
616
|
+
index: t,
|
|
617
|
+
indexLabel: l.value.chart.grid.labels.xAxisLabels.values[t]
|
|
618
618
|
}
|
|
619
|
-
), l.value.events.datapointClick && l.value.events.datapointClick({ datapoint: s, seriesIndex:
|
|
619
|
+
), l.value.events.datapointClick && l.value.events.datapointClick({ datapoint: s, seriesIndex: t + m.value.start });
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
return
|
|
623
|
-
values:
|
|
624
|
-
color:
|
|
625
|
-
name:
|
|
626
|
-
type:
|
|
621
|
+
function ko() {
|
|
622
|
+
return me.value.map((t) => ({
|
|
623
|
+
values: t.absoluteValues,
|
|
624
|
+
color: t.color,
|
|
625
|
+
name: t.name,
|
|
626
|
+
type: t.type
|
|
627
627
|
}));
|
|
628
628
|
}
|
|
629
|
-
async function
|
|
630
|
-
if (!
|
|
631
|
-
const { width: s, height: e } =
|
|
629
|
+
async function _o({ scale: t = 2 } = {}) {
|
|
630
|
+
if (!Ie.value) return;
|
|
631
|
+
const { width: s, height: e } = Ie.value.getBoundingClientRect(), u = s / e, { imageUri: a, base64: i } = await ps({ domElement: Ie.value, base64: !0, img: !0, scale: t });
|
|
632
632
|
return {
|
|
633
|
-
imageUri:
|
|
633
|
+
imageUri: a,
|
|
634
634
|
base64: i,
|
|
635
635
|
title: l.value.chart.title.text,
|
|
636
636
|
width: s,
|
|
@@ -638,53 +638,67 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
638
638
|
aspectRatio: u
|
|
639
639
|
};
|
|
640
640
|
}
|
|
641
|
-
function
|
|
642
|
-
if (
|
|
643
|
-
|
|
641
|
+
function El(t) {
|
|
642
|
+
if (J.value.includes(t.id))
|
|
643
|
+
J.value = J.value.filter((s) => s !== t.id);
|
|
644
644
|
else {
|
|
645
|
-
if (
|
|
646
|
-
|
|
645
|
+
if (J.value.length + 1 === Be.value.length) return;
|
|
646
|
+
J.value.push(t.id);
|
|
647
647
|
}
|
|
648
|
-
|
|
648
|
+
et("selectLegend", we.value.map((s) => ({
|
|
649
649
|
name: s.name,
|
|
650
650
|
values: s.absoluteValues,
|
|
651
651
|
color: s.color,
|
|
652
652
|
type: s.type
|
|
653
|
-
}))),
|
|
653
|
+
}))), ut.value += 1;
|
|
654
|
+
}
|
|
655
|
+
function sa(t) {
|
|
656
|
+
if (!me.value.length)
|
|
657
|
+
return l.value.debug && console.warn("VueUiXy - There are no series to show."), null;
|
|
658
|
+
const s = me.value.find((e) => e.name === t);
|
|
659
|
+
return s || (l.value.debug && console.warn(`VueUiXy - Series name not found "${t}"`), null);
|
|
654
660
|
}
|
|
655
|
-
|
|
656
|
-
const
|
|
657
|
-
|
|
658
|
-
}
|
|
661
|
+
function wo(t) {
|
|
662
|
+
const s = sa(t);
|
|
663
|
+
s !== null && J.value.includes(s.id) && El({ id: s.id });
|
|
664
|
+
}
|
|
665
|
+
function So(t) {
|
|
666
|
+
const s = sa(t);
|
|
667
|
+
s !== null && (J.value.includes(s.id) || El({ id: s.id }));
|
|
668
|
+
}
|
|
669
|
+
const $o = b(() => {
|
|
670
|
+
const t = l.value.chart.title.text || "Chart visualization", s = l.value.chart.title.subtitle.text || "";
|
|
671
|
+
return `${t}. ${s}`;
|
|
672
|
+
}), ua = b(() => ({
|
|
659
673
|
linePlot: L.value > l.value.line.dot.hideAboveMaxSerieLength
|
|
660
|
-
})),
|
|
674
|
+
})), Lo = b(() => l.value.chart.userOptions.show && (!l.value.chart.title.show || !l.value.chart.title.text)), Mo = b(() => {
|
|
661
675
|
if (Array.isArray(l.value.chart.highlightArea))
|
|
662
676
|
return l.value.chart.highlightArea.map((s) => {
|
|
663
|
-
const e = Math.min(s.to,
|
|
677
|
+
const e = Math.min(s.to, Ne.value - 1);
|
|
664
678
|
return {
|
|
665
679
|
...s,
|
|
666
680
|
span: s.from === e ? 1 : e < s.from ? 0 : e - s.from + 1
|
|
667
681
|
};
|
|
668
682
|
});
|
|
669
|
-
const
|
|
683
|
+
const t = {
|
|
670
684
|
...l.value.chart.highlightArea,
|
|
671
|
-
to: Math.min(l.value.chart.highlightArea.to,
|
|
685
|
+
to: Math.min(l.value.chart.highlightArea.to, Ne.value - 1)
|
|
672
686
|
};
|
|
673
|
-
return [{ ...
|
|
674
|
-
}),
|
|
675
|
-
...
|
|
676
|
-
series:
|
|
687
|
+
return [{ ...t, span: t.from === t.to ? 1 : t.to < t.from ? 0 : t.to - t.from + 1 }];
|
|
688
|
+
}), ia = b(() => Mt.value ? ge.value.map((t, s) => ({
|
|
689
|
+
...t,
|
|
690
|
+
series: De(t.series),
|
|
677
691
|
id: `uniqueId_${s}`,
|
|
678
|
-
color:
|
|
679
|
-
})) : ge.value),
|
|
680
|
-
const s =
|
|
692
|
+
color: za(t.color ? t.color : Nl.value[s] ? Nl.value[s] : Ia[s])
|
|
693
|
+
})) : ge.value), Ao = b(() => we.value.map((t) => {
|
|
694
|
+
const s = t.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
|
|
681
695
|
return {
|
|
682
|
-
id:
|
|
683
|
-
name:
|
|
684
|
-
color:
|
|
685
|
-
values:
|
|
696
|
+
id: t.id,
|
|
697
|
+
name: t.name,
|
|
698
|
+
color: t.color,
|
|
699
|
+
values: mo(L.value, s)
|
|
686
700
|
};
|
|
687
|
-
})),
|
|
701
|
+
})), Co = b(() => ({
|
|
688
702
|
responsiveBreakpoint: l.value.table.responsiveBreakpoint,
|
|
689
703
|
roundingValues: l.value.table.rounding,
|
|
690
704
|
showAverage: !1,
|
|
@@ -693,7 +707,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
693
707
|
fontFamily: l.value.chart.fontFamily,
|
|
694
708
|
prefix: l.value.chart.labels.prefix,
|
|
695
709
|
suffix: l.value.chart.labels.suffix,
|
|
696
|
-
colNames: de.value.map((
|
|
710
|
+
colNames: de.value.map((t, s) => l.value.table.useDefaultTimeFormat ? t.text : rl.value(s + m.value.start, l.value.table.timeFormat)),
|
|
697
711
|
thead: {
|
|
698
712
|
backgroundColor: l.value.table.th.backgroundColor,
|
|
699
713
|
color: l.value.table.th.color,
|
|
@@ -710,66 +724,66 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
710
724
|
sparkline: {
|
|
711
725
|
animation: { show: !1 }
|
|
712
726
|
}
|
|
713
|
-
})),
|
|
714
|
-
const
|
|
715
|
-
for (const [e, u] of Object.entries(
|
|
716
|
-
const
|
|
727
|
+
})), U = b(() => l.value.chart.grid.position === "middle" ? 0 : c.value.width / L.value / 2), Qe = b(() => ls(me.value.filter((t) => !J.value.includes(t.id)))), M = b(() => {
|
|
728
|
+
const t = Object.groupBy(Qe.value, (e) => e.scaleLabel), s = {};
|
|
729
|
+
for (const [e, u] of Object.entries(t)) {
|
|
730
|
+
const a = u.flatMap((i) => i.absoluteValues);
|
|
717
731
|
s[e] = {
|
|
718
|
-
min: Math.min(...
|
|
719
|
-
max: Math.max(...
|
|
720
|
-
groupId: `scale_group_${
|
|
732
|
+
min: Math.min(...a) || 0,
|
|
733
|
+
max: Math.max(...a) || 1,
|
|
734
|
+
groupId: `scale_group_${_t()}`
|
|
721
735
|
};
|
|
722
736
|
}
|
|
723
737
|
return s;
|
|
724
|
-
}),
|
|
725
|
-
const
|
|
726
|
-
return c.value.width / L.value /
|
|
727
|
-
}),
|
|
738
|
+
}), To = b(() => {
|
|
739
|
+
const t = Be.value.filter((s) => s.type === "bar").filter((s) => !J.value.includes(s.id)).length;
|
|
740
|
+
return c.value.width / L.value / t - Yl.value * t;
|
|
741
|
+
}), Yl = b(() => Z.value.line * l.value.bar.periodGap), Wl = b(() => Math.max(1e-5, Ee() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Yl.value))), Xl = b(() => Wl.value * Math.min(Math.abs(l.value.bar.innerGap), 0.95)), zo = b(() => {
|
|
728
742
|
if (!l.value.chart.zoom.minimap.show) return [];
|
|
729
|
-
const
|
|
730
|
-
for (let
|
|
731
|
-
e.push(
|
|
743
|
+
const t = ia.value.filter((a) => !J.value.includes(a.id)), s = Math.max(...t.map((a) => a.series.length)), e = [];
|
|
744
|
+
for (let a = 0; a < s; a += 1)
|
|
745
|
+
e.push(t.map((i) => i.series[a] || 0).reduce((i, o) => (i || 0) + (o || 0), 0));
|
|
732
746
|
const u = Math.min(...e);
|
|
733
|
-
return e.map((
|
|
734
|
-
}),
|
|
747
|
+
return e.map((a) => a + (u < 0 ? Math.abs(u) : 0));
|
|
748
|
+
}), Io = b(() => l.value.chart.zoom.minimap.show ? ia.value.map((s) => ({
|
|
735
749
|
...s,
|
|
736
|
-
isVisible: !
|
|
737
|
-
})) : []), je = b(() =>
|
|
738
|
-
slotAbsoluteIndex:
|
|
739
|
-
shape:
|
|
740
|
-
name:
|
|
741
|
-
color:
|
|
742
|
-
type:
|
|
743
|
-
value:
|
|
744
|
-
comments:
|
|
745
|
-
prefix:
|
|
746
|
-
suffix:
|
|
747
|
-
}))),
|
|
748
|
-
y:
|
|
749
|
-
value:
|
|
750
|
+
isVisible: !J.value.includes(s.id)
|
|
751
|
+
})) : []), je = b(() => we.value.map((t) => ({
|
|
752
|
+
slotAbsoluteIndex: t.slotAbsoluteIndex,
|
|
753
|
+
shape: t.shape || null,
|
|
754
|
+
name: t.name,
|
|
755
|
+
color: t.color,
|
|
756
|
+
type: t.type,
|
|
757
|
+
value: t.absoluteValues.find((s, e) => e === _.value),
|
|
758
|
+
comments: t.comments || [],
|
|
759
|
+
prefix: t.prefix || l.value.chart.labels.prefix,
|
|
760
|
+
suffix: t.suffix || l.value.chart.labels.suffix
|
|
761
|
+
}))), na = b(() => Ae.value.ticks.map((t) => ({
|
|
762
|
+
y: t >= 0 ? ne.value - c.value.height * Je(t) : ne.value + c.value.height * Je(Math.abs(t)),
|
|
763
|
+
value: t,
|
|
750
764
|
prefix: l.value.chart.labels.prefix,
|
|
751
765
|
suffix: l.value.chart.labels.suffix
|
|
752
|
-
}))),
|
|
753
|
-
const
|
|
754
|
-
if (!
|
|
755
|
-
const s =
|
|
766
|
+
}))), ra = b(() => {
|
|
767
|
+
const t = l.value.chart.annotations;
|
|
768
|
+
if (!t || !Array.isArray(t) || t.every((S) => !S.show)) return [];
|
|
769
|
+
const s = t.filter(
|
|
756
770
|
(S) => S.show && (S.yAxis.yTop != null || S.yAxis.yBottom != null)
|
|
757
771
|
);
|
|
758
772
|
if (!s.length) return [];
|
|
759
|
-
const { left: e, right: u } = c.value,
|
|
773
|
+
const { left: e, right: u } = c.value, a = ne.value, i = c.value.height, o = Ae.value.min, C = Ae.value.max - o, O = (S) => {
|
|
760
774
|
const T = (S - 0) / C;
|
|
761
|
-
return
|
|
775
|
+
return a - T * i;
|
|
762
776
|
};
|
|
763
777
|
return s.map((S) => {
|
|
764
|
-
const { yAxis: { yTop: T, yBottom:
|
|
778
|
+
const { yAxis: { yTop: T, yBottom: W, label: k } } = S, F = T != null && W != null && T !== W, z = T == null ? null : O(T), le = W == null ? null : O(W), re = ho(k.fontSize);
|
|
765
779
|
re.font = `${k.fontSize}px sans-serif`;
|
|
766
|
-
const
|
|
767
|
-
let
|
|
768
|
-
k.textAnchor === "middle" ?
|
|
769
|
-
const
|
|
780
|
+
const q = re.measureText(k.text).width, Se = k.fontSize, Ve = (k.position === "start" ? e + k.padding.left : u - k.padding.right) + k.offsetX, pe = (z != null && le != null ? Math.min(z, le) : z ?? le) - k.fontSize / 3 + k.offsetY - k.padding.top;
|
|
781
|
+
let H;
|
|
782
|
+
k.textAnchor === "middle" ? H = Ve - q / 2 - k.padding.left : k.textAnchor === "end" ? H = Ve - q - k.padding.right : H = Ve - k.padding.left;
|
|
783
|
+
const D = pe - Se * 0.75 - k.padding.top;
|
|
770
784
|
return {
|
|
771
|
-
show: ![z, le,
|
|
772
|
-
id: `annotation_y_${
|
|
785
|
+
show: ![z, le, D].includes(NaN),
|
|
786
|
+
id: `annotation_y_${_t()}`,
|
|
773
787
|
hasArea: F,
|
|
774
788
|
areaHeight: F ? Math.abs(z - le) : 0,
|
|
775
789
|
yTop: z,
|
|
@@ -777,12 +791,12 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
777
791
|
config: S.yAxis,
|
|
778
792
|
x1: e,
|
|
779
793
|
x2: u,
|
|
780
|
-
_text: { x:
|
|
794
|
+
_text: { x: Ve, y: pe },
|
|
781
795
|
_box: {
|
|
782
|
-
x:
|
|
783
|
-
y:
|
|
784
|
-
width:
|
|
785
|
-
height:
|
|
796
|
+
x: H,
|
|
797
|
+
y: D,
|
|
798
|
+
width: q + k.padding.left + k.padding.right,
|
|
799
|
+
height: Se + k.padding.top + k.padding.bottom,
|
|
786
800
|
fill: k.backgroundColor,
|
|
787
801
|
stroke: k.border.stroke,
|
|
788
802
|
rx: k.border.rx,
|
|
@@ -792,15 +806,15 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
792
806
|
};
|
|
793
807
|
});
|
|
794
808
|
});
|
|
795
|
-
function
|
|
796
|
-
const e =
|
|
797
|
-
let
|
|
798
|
-
return
|
|
809
|
+
function ca(t, s) {
|
|
810
|
+
const e = t[s - 1], u = t[s + 1];
|
|
811
|
+
let a = !!e && !!u && e.value == null && u.value == null || !e && !!u && u.value == null || !!e && !u && e.value == null;
|
|
812
|
+
return be(t[s].value) && a && l.value.line.cutNullValues;
|
|
799
813
|
}
|
|
800
|
-
const
|
|
801
|
-
const
|
|
802
|
-
return
|
|
803
|
-
|
|
814
|
+
const Ce = b(() => {
|
|
815
|
+
const t = Qe.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = t.length, e = l.value.chart.grid.labels.yAxis.gap, u = f.value.isStacked, a = u ? e * (s - 1) : 0, i = c.value.height - a;
|
|
816
|
+
return t.filter((o) => o.type === "bar").map((o, A) => {
|
|
817
|
+
bt(o);
|
|
804
818
|
const C = M.value[o.scaleLabel].min, O = M.value[o.scaleLabel].max;
|
|
805
819
|
o.absoluteValues.filter((R) => ![null, void 0].includes(R)).map((R) => (R - C) / (O - C));
|
|
806
820
|
const S = {
|
|
@@ -809,63 +823,63 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
809
823
|
}, T = {
|
|
810
824
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
811
825
|
min: o.scaleMin || Math.min(...o.absoluteValues.filter((R) => ![void 0, null].includes(R))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((R) => ![null, void 0].includes(R)))
|
|
812
|
-
},
|
|
813
|
-
const
|
|
826
|
+
}, W = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, F = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(T.min, T.max === T.min ? T.max * k : T.max, W) : al(T.min, T.max === T.min ? T.max * k : T.max, W), z = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, W) : al(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, W), le = F.min >= 0 ? 0 : Math.abs(F.min), re = 0, q = F.max + le, Se = z.max + Math.abs(re), Ve = o.stackIndex, cl = s - 1 - Ve, pe = u ? 1 - o.cumulatedStackRatio : 0, H = u ? i * pe + e * cl : 0, D = u ? i * o.stackRatio : c.value.height, K = c.value.bottom - H - D * le / q, ye = c.value.bottom - H - D * re / Se, ce = me.value.filter((R) => R.type === "bar").filter((R) => !J.value.includes(R.id)).length, Ll = o.series.map((R, j) => {
|
|
827
|
+
const We = f.value.useIndividualScale ? (o.absoluteValues[j] + le) / q : Je(R), el = f.value.useIndividualScale && f.value.isStacked ? c.value.left + c.value.width / L.value * j : c.value.left + Z.value.bar * A + Z.value.bar * j * ce - To.value / 2 - A * Yl.value;
|
|
814
828
|
return {
|
|
815
|
-
yOffset: P(
|
|
816
|
-
individualHeight: P(
|
|
829
|
+
yOffset: P(H),
|
|
830
|
+
individualHeight: P(D),
|
|
817
831
|
x: P(el),
|
|
818
|
-
y: c.value.bottom -
|
|
819
|
-
value: o.absoluteValues[
|
|
820
|
-
zeroPosition: P(
|
|
821
|
-
individualMax: P(
|
|
822
|
-
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[
|
|
832
|
+
y: c.value.bottom - H - D * We,
|
|
833
|
+
value: o.absoluteValues[j],
|
|
834
|
+
zeroPosition: P(K),
|
|
835
|
+
individualMax: P(q),
|
|
836
|
+
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[j] || ""
|
|
823
837
|
};
|
|
824
|
-
}), he = o.absoluteValues.map((R) => z.min >= 0 ? (R - Math.abs(z.min)) / (z.max - Math.abs(z.min)) : (R + Math.abs(z.min)) / (z.max + Math.abs(z.min))),
|
|
825
|
-
const
|
|
838
|
+
}), he = o.absoluteValues.map((R) => z.min >= 0 ? (R - Math.abs(z.min)) / (z.max - Math.abs(z.min)) : (R + Math.abs(z.min)) / (z.max + Math.abs(z.min))), Ye = o.series.map((R, j) => {
|
|
839
|
+
const We = f.value.useIndividualScale && f.value.isStacked ? c.value.left + c.value.width / L.value * j : c.value.left - Z.value.bar / 2 + Z.value.bar * A + Z.value.bar * j * me.value.filter((el) => el.type === "bar").filter((el) => !J.value.includes(el.id)).length;
|
|
826
840
|
return {
|
|
827
|
-
yOffset: P(
|
|
828
|
-
individualHeight: P(
|
|
829
|
-
x: P(
|
|
830
|
-
y: P(c.value.bottom - P(
|
|
831
|
-
value: o.absoluteValues[
|
|
832
|
-
zeroPosition: P(
|
|
833
|
-
individualMax: P(
|
|
834
|
-
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[
|
|
841
|
+
yOffset: P(H),
|
|
842
|
+
individualHeight: P(D),
|
|
843
|
+
x: P(We),
|
|
844
|
+
y: P(c.value.bottom - P(H) - (P(D) * he[j] || 0)),
|
|
845
|
+
value: o.absoluteValues[j],
|
|
846
|
+
zeroPosition: P(K),
|
|
847
|
+
individualMax: P(q),
|
|
848
|
+
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[j] || ""
|
|
835
849
|
};
|
|
836
850
|
}), X = F.ticks.map((R) => ({
|
|
837
|
-
y: R >= 0 ?
|
|
851
|
+
y: R >= 0 ? K - D * (R / q) : K + D * Math.abs(R) / q,
|
|
838
852
|
value: R,
|
|
839
853
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
840
854
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
841
855
|
datapoint: o
|
|
842
|
-
})),
|
|
843
|
-
const
|
|
856
|
+
})), Q = z.ticks.map((R) => {
|
|
857
|
+
const j = (R - z.min) / (z.max - z.min);
|
|
844
858
|
return {
|
|
845
|
-
y: R >= 0 ?
|
|
859
|
+
y: R >= 0 ? ye - D * j : ye + D * j,
|
|
846
860
|
value: R,
|
|
847
861
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
848
862
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
849
863
|
datapoint: o
|
|
850
864
|
};
|
|
851
865
|
});
|
|
852
|
-
return M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ?
|
|
866
|
+
return M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Q : X, M.value[o.scaleLabel].zeroPosition = o.autoScaling ? ye : K, M.value[o.scaleLabel].individualMax = o.autoScaling ? Se : q, M.value[o.scaleLabel].scaleLabel = o.scaleLabel, M.value[o.scaleLabel].id = o.id, M.value[o.scaleLabel].yOffset = H, M.value[o.scaleLabel].individualHeight = D, M.value[o.scaleLabel].autoScaleYLabels = Q, M.value[o.scaleLabel].unique = Qe.value.filter((R) => R.scaleLabel === o.scaleLabel).length === 1, {
|
|
853
867
|
...o,
|
|
854
|
-
yOffset:
|
|
855
|
-
autoScaleYLabels:
|
|
856
|
-
individualHeight:
|
|
857
|
-
scaleYLabels: o.autoScaling ?
|
|
868
|
+
yOffset: H,
|
|
869
|
+
autoScaleYLabels: Q,
|
|
870
|
+
individualHeight: D,
|
|
871
|
+
scaleYLabels: o.autoScaling ? Q : X,
|
|
858
872
|
individualScale: o.autoScaling ? z : F,
|
|
859
|
-
individualMax: o.autoScaling ?
|
|
860
|
-
zeroPosition: o.autoScaling ?
|
|
861
|
-
plots: o.autoScaling ?
|
|
873
|
+
individualMax: o.autoScaling ? Se : q,
|
|
874
|
+
zeroPosition: o.autoScaling ? ye : K,
|
|
875
|
+
plots: o.autoScaling ? Ye : Ll,
|
|
862
876
|
groupId: M.value[o.scaleLabel].groupId
|
|
863
877
|
};
|
|
864
878
|
});
|
|
865
|
-
}),
|
|
866
|
-
const
|
|
867
|
-
return
|
|
868
|
-
|
|
879
|
+
}), ae = b(() => {
|
|
880
|
+
const t = Qe.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = t.length, e = l.value.chart.grid.labels.yAxis.gap, u = f.value.isStacked, a = u ? e * (s - 1) : 0, i = c.value.height - a;
|
|
881
|
+
return t.filter((o) => o.type === "line").map((o, A) => {
|
|
882
|
+
bt(o);
|
|
869
883
|
const C = M.value[o.scaleLabel].min, O = M.value[o.scaleLabel].max;
|
|
870
884
|
o.absoluteValues.filter((N) => ![null, void 0].includes(N)).map((N) => (N - C) / (O - C));
|
|
871
885
|
const S = {
|
|
@@ -874,73 +888,73 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
874
888
|
}, T = {
|
|
875
889
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
876
890
|
min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
|
|
877
|
-
},
|
|
878
|
-
const
|
|
891
|
+
}, W = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, F = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(T.min, T.max === T.min ? T.max * k : T.max, W) : al(T.min, T.max === T.min ? T.max * k : T.max, W), z = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, W) : al(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, W), le = F.min >= 0 ? 0 : Math.abs(F.min), re = 0, q = F.max + Math.abs(le), Se = z.max + Math.abs(re), Ve = o.stackIndex, cl = s - 1 - Ve, pe = u ? 1 - o.cumulatedStackRatio : 0, H = u ? i * pe + e * cl : 0, D = u ? i * o.stackRatio : c.value.height, K = c.value.bottom - H - D * le / q, ye = c.value.bottom - H - D * re / Se, ce = o.series.map((N, oe) => {
|
|
892
|
+
const Wo = f.value.useIndividualScale ? (o.absoluteValues[oe] + Math.abs(le)) / q : Je(N);
|
|
879
893
|
return {
|
|
880
|
-
x: P(c.value.left +
|
|
881
|
-
y: P(c.value.bottom -
|
|
894
|
+
x: P(c.value.left + Z.value.line / 2 + Z.value.line * oe),
|
|
895
|
+
y: P(c.value.bottom - H - D * Wo),
|
|
882
896
|
value: o.absoluteValues[oe],
|
|
883
897
|
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[oe] || ""
|
|
884
898
|
};
|
|
885
899
|
}), Ll = o.absoluteValues.map((N) => z.min >= 0 ? (N - Math.abs(z.min)) / (z.max - Math.abs(z.min)) : (N + Math.abs(z.min)) / (z.max + Math.abs(z.min))), he = o.series.map((N, oe) => [void 0, null].includes(o.absoluteValues[oe]) ? {
|
|
886
|
-
x: P(c.value.left +
|
|
887
|
-
y:
|
|
900
|
+
x: P(c.value.left + Z.value.line / 2 + Z.value.line * oe),
|
|
901
|
+
y: K,
|
|
888
902
|
value: o.absoluteValues[oe],
|
|
889
903
|
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[oe] || ""
|
|
890
904
|
} : {
|
|
891
|
-
x: P(c.value.left +
|
|
892
|
-
y: P(c.value.bottom -
|
|
905
|
+
x: P(c.value.left + Z.value.line / 2 + Z.value.line * oe),
|
|
906
|
+
y: P(c.value.bottom - H - (D * Ll[oe] || 0)),
|
|
893
907
|
value: o.absoluteValues[oe],
|
|
894
908
|
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[oe] || ""
|
|
895
|
-
}),
|
|
896
|
-
y: N >= 0 ?
|
|
909
|
+
}), Ye = l.value.line.cutNullValues ? Oa(ce) : Na(ce.filter((N) => N.value !== null)), X = l.value.line.cutNullValues ? Oa(he) : Na(he.filter((N) => N.value !== null)), Q = l.value.line.cutNullValues ? Va(ce) : Pa(ce.filter((N) => N.value !== null)), R = l.value.line.cutNullValues ? Va(he) : Pa(he.filter((N) => N.value !== null)), j = F.ticks.map((N) => ({
|
|
910
|
+
y: N >= 0 ? K - D * (N / q) : K + D * Math.abs(N) / q,
|
|
897
911
|
value: N,
|
|
898
912
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
899
913
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
900
914
|
datapoint: o
|
|
901
|
-
})),
|
|
915
|
+
})), We = z.ticks.map((N) => {
|
|
902
916
|
const oe = (N - z.min) / (z.max - z.min);
|
|
903
917
|
return {
|
|
904
|
-
y: N >= 0 ?
|
|
918
|
+
y: N >= 0 ? ye - D * oe : ye + D * oe,
|
|
905
919
|
value: N,
|
|
906
920
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
907
921
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
908
922
|
datapoint: o
|
|
909
923
|
};
|
|
910
924
|
});
|
|
911
|
-
M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ?
|
|
912
|
-
const el = f.value.useIndividualScale ? o.autoScaling ?
|
|
925
|
+
M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ? We : j, M.value[o.scaleLabel].zeroPosition = o.autoScaling ? ye : K, M.value[o.scaleLabel].individualMax = o.autoScaling ? Se : q, M.value[o.scaleLabel].scaleLabel = o.scaleLabel, M.value[o.scaleLabel].id = o.id, M.value[o.scaleLabel].yOffset = H, M.value[o.scaleLabel].individualHeight = D, M.value[o.scaleLabel].autoScaleYLabels = We, M.value[o.scaleLabel].unique = Qe.value.filter((N) => N.scaleLabel === o.scaleLabel).length === 1;
|
|
926
|
+
const el = f.value.useIndividualScale ? o.autoScaling ? ye : K : ne.value, Ml = Math.max(Math.max(o.autoScaling ? ye : j.at(-1) ? j.at(-1).y : 0, c.value.top), el);
|
|
913
927
|
return {
|
|
914
928
|
...o,
|
|
915
|
-
yOffset:
|
|
916
|
-
autoScaleYLabels:
|
|
917
|
-
individualHeight:
|
|
918
|
-
scaleYLabels: o.autoScaling ?
|
|
929
|
+
yOffset: H,
|
|
930
|
+
autoScaleYLabels: We,
|
|
931
|
+
individualHeight: D,
|
|
932
|
+
scaleYLabels: o.autoScaling ? We : j,
|
|
919
933
|
individualScale: o.autoScaling ? z : F,
|
|
920
|
-
individualMax: o.autoScaling ?
|
|
921
|
-
zeroPosition: o.autoScaling ?
|
|
922
|
-
curve: o.autoScaling ? X :
|
|
934
|
+
individualMax: o.autoScaling ? Se : q,
|
|
935
|
+
zeroPosition: o.autoScaling ? ye : K,
|
|
936
|
+
curve: o.autoScaling ? X : Ye,
|
|
923
937
|
plots: o.autoScaling ? he : ce,
|
|
924
|
-
area: o.useArea ? f.value.useIndividualScale ? l.value.line.cutNullValues ?
|
|
938
|
+
area: o.useArea ? f.value.useIndividualScale ? l.value.line.cutNullValues ? Fa(
|
|
925
939
|
o.autoScaling ? he : ce,
|
|
926
940
|
Ml
|
|
927
|
-
) :
|
|
941
|
+
) : Ra(
|
|
928
942
|
o.autoScaling ? he.filter((N) => N.value !== null) : ce.filter((N) => N.value !== null),
|
|
929
943
|
Ml
|
|
930
|
-
) : l.value.line.cutNullValues ?
|
|
931
|
-
curveAreas: o.useArea ?
|
|
944
|
+
) : l.value.line.cutNullValues ? Fa(ce, Ml) : Ra(ce.filter((N) => N.value !== null), Ml) : "",
|
|
945
|
+
curveAreas: o.useArea ? ts(
|
|
932
946
|
o.autoScaling ? l.value.line.cutNullValues ? he : he.filter((N) => N.value !== null) : l.value.line.cutNullValues ? ce : ce.filter((N) => N.value !== null),
|
|
933
947
|
Ml,
|
|
934
948
|
l.value.line.cutNullValues
|
|
935
949
|
) : [],
|
|
936
|
-
straight: o.autoScaling ? R :
|
|
950
|
+
straight: o.autoScaling ? R : Q,
|
|
937
951
|
groupId: M.value[o.scaleLabel].groupId
|
|
938
952
|
};
|
|
939
953
|
});
|
|
940
|
-
}),
|
|
941
|
-
const
|
|
942
|
-
return
|
|
943
|
-
|
|
954
|
+
}), xe = b(() => {
|
|
955
|
+
const t = Qe.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = t.length, e = l.value.chart.grid.labels.yAxis.gap, u = f.value.isStacked, a = u ? e * (s - 1) : 0, i = c.value.height - a;
|
|
956
|
+
return t.filter((o) => o.type === "plot").map((o) => {
|
|
957
|
+
bt(o);
|
|
944
958
|
const A = M.value[o.scaleLabel].min, C = M.value[o.scaleLabel].max;
|
|
945
959
|
o.absoluteValues.filter((X) => ![null, void 0].includes(X)).map((X) => (X - A) / (C - A));
|
|
946
960
|
const O = {
|
|
@@ -949,50 +963,50 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
949
963
|
}, S = {
|
|
950
964
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
951
965
|
min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
|
|
952
|
-
}, T = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps,
|
|
953
|
-
const R = f.value.useIndividualScale ? (o.absoluteValues[
|
|
966
|
+
}, T = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, W = 1.0000001, k = al(S.min, S.max === S.min ? S.max * W : S.max, T), F = al(O.valueMin, O.valueMax === O.valueMin ? O.valueMax * W : O.valueMax, T), z = k.min >= 0 ? 0 : Math.abs(k.min), le = 0, re = k.max + z, q = F.max + Math.abs(le), Se = o.stackIndex, Ve = s - 1 - Se, cl = u ? 1 - o.cumulatedStackRatio : 0, pe = u ? i * cl + e * Ve : 0, H = u ? i * o.stackRatio : c.value.height, D = c.value.bottom - pe - H * z / re, K = c.value.bottom - pe - H * le / q, ye = o.series.map((X, Q) => {
|
|
967
|
+
const R = f.value.useIndividualScale ? (o.absoluteValues[Q] + Math.abs(z)) / re : Je(X);
|
|
954
968
|
return {
|
|
955
|
-
x: P(c.value.left +
|
|
956
|
-
y: P(c.value.bottom -
|
|
957
|
-
value: o.absoluteValues[
|
|
958
|
-
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[
|
|
969
|
+
x: P(c.value.left + Z.value.plot / 2 + Z.value.plot * Q),
|
|
970
|
+
y: P(c.value.bottom - pe - H * R),
|
|
971
|
+
value: o.absoluteValues[Q],
|
|
972
|
+
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[Q] || ""
|
|
959
973
|
};
|
|
960
|
-
}), ce = o.absoluteValues.map((X) => F.min >= 0 ? (X - Math.abs(F.min)) / (F.max - Math.abs(F.min)) : (X + Math.abs(F.min)) / (F.max + Math.abs(F.min))), Ll = o.series.map((X,
|
|
961
|
-
x: P(c.value.left +
|
|
962
|
-
y: P(c.value.bottom -
|
|
963
|
-
value: o.absoluteValues[
|
|
964
|
-
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[
|
|
974
|
+
}), ce = o.absoluteValues.map((X) => F.min >= 0 ? (X - Math.abs(F.min)) / (F.max - Math.abs(F.min)) : (X + Math.abs(F.min)) / (F.max + Math.abs(F.min))), Ll = o.series.map((X, Q) => ({
|
|
975
|
+
x: P(c.value.left + Z.value.plot / 2 + Z.value.plot * Q),
|
|
976
|
+
y: P(c.value.bottom - pe - (H * ce[Q] || 0)),
|
|
977
|
+
value: o.absoluteValues[Q],
|
|
978
|
+
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[Q] || ""
|
|
965
979
|
})), he = k.ticks.map((X) => ({
|
|
966
|
-
y: X >= 0 ?
|
|
980
|
+
y: X >= 0 ? D - H * (X / re) : D + H * Math.abs(X) / re,
|
|
967
981
|
value: X,
|
|
968
982
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
969
983
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
970
984
|
datapoint: o
|
|
971
|
-
})),
|
|
972
|
-
const
|
|
985
|
+
})), Ye = F.ticks.map((X) => {
|
|
986
|
+
const Q = (X - F.min) / (F.max - F.min);
|
|
973
987
|
return {
|
|
974
|
-
y: X >= 0 ?
|
|
988
|
+
y: X >= 0 ? K - H * Q : K + H * Q,
|
|
975
989
|
value: X,
|
|
976
990
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
977
991
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
978
992
|
datapoint: o
|
|
979
993
|
};
|
|
980
994
|
});
|
|
981
|
-
return M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ?
|
|
995
|
+
return M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Ye : he, M.value[o.scaleLabel].zeroPosition = o.autoScaling ? K : D, M.value[o.scaleLabel].individualMax = o.autoScaling ? q : re, M.value[o.scaleLabel].scaleLabel = o.scaleLabel, M.value[o.scaleLabel].id = o.id, M.value[o.scaleLabel].yOffset = pe, M.value[o.scaleLabel].individualHeight = H, M.value[o.scaleLabel].autoScaleYLabels = Ye, M.value[o.scaleLabel].unique = Qe.value.filter((X) => X.scaleLabel === o.scaleLabel).length === 1, {
|
|
982
996
|
...o,
|
|
983
|
-
yOffset:
|
|
984
|
-
autoScaleYLabels:
|
|
985
|
-
individualHeight:
|
|
986
|
-
scaleYLabels: o.autoScaling ?
|
|
997
|
+
yOffset: pe,
|
|
998
|
+
autoScaleYLabels: Ye,
|
|
999
|
+
individualHeight: H,
|
|
1000
|
+
scaleYLabels: o.autoScaling ? Ye : he,
|
|
987
1001
|
individualScale: o.autoScaling ? F : k,
|
|
988
|
-
individualMax: o.autoScaling ?
|
|
989
|
-
zeroPosition: o.autoScaling ?
|
|
990
|
-
plots: o.autoScaling ? Ll :
|
|
1002
|
+
individualMax: o.autoScaling ? q : re,
|
|
1003
|
+
zeroPosition: o.autoScaling ? K : D,
|
|
1004
|
+
plots: o.autoScaling ? Ll : ye,
|
|
991
1005
|
groupId: M.value[o.scaleLabel].groupId
|
|
992
1006
|
};
|
|
993
1007
|
});
|
|
994
1008
|
}), Sl = b(() => {
|
|
995
|
-
const
|
|
1009
|
+
const t = ae.value.map((i) => ({
|
|
996
1010
|
name: i.name,
|
|
997
1011
|
color: i.color,
|
|
998
1012
|
scale: i.individualScale,
|
|
@@ -1004,7 +1018,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1004
1018
|
yOffset: i.yOffset || 0,
|
|
1005
1019
|
individualHeight: i.individualHeight || c.value.height,
|
|
1006
1020
|
autoScaleYLabels: i.autoScaleYLabels
|
|
1007
|
-
})), s =
|
|
1021
|
+
})), s = Ce.value.map((i) => ({
|
|
1008
1022
|
name: i.name,
|
|
1009
1023
|
color: i.color,
|
|
1010
1024
|
scale: i.individualScale,
|
|
@@ -1015,7 +1029,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1015
1029
|
id: i.id,
|
|
1016
1030
|
yOffset: i.yOffset || 0,
|
|
1017
1031
|
individualHeight: i.individualHeight || c.value.height
|
|
1018
|
-
})), e =
|
|
1032
|
+
})), e = xe.value.map((i) => ({
|
|
1019
1033
|
name: i.name,
|
|
1020
1034
|
color: i.color,
|
|
1021
1035
|
scale: i.individualScale,
|
|
@@ -1027,10 +1041,10 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1027
1041
|
id: i.id,
|
|
1028
1042
|
yOffset: i.yOffset || 0,
|
|
1029
1043
|
individualHeight: i.individualHeight || c.value.height
|
|
1030
|
-
})), u = f.value.useIndividualScale && !f.value.isStacked ? Object.values(M.value) : [...
|
|
1044
|
+
})), u = f.value.useIndividualScale && !f.value.isStacked ? Object.values(M.value) : [...t, ...s, ...e], a = u.flatMap((i) => i).length;
|
|
1031
1045
|
return u.flatMap((i, o) => {
|
|
1032
1046
|
let A = 0;
|
|
1033
|
-
A = f.value.isStacked ? c.value.left : c.value.left /
|
|
1047
|
+
A = f.value.isStacked ? c.value.left : c.value.left / a * (o + 1);
|
|
1034
1048
|
const C = f.value.useIndividualScale && !f.value.isStacked ? i.unique ? i.name : i.groupName : i.name;
|
|
1035
1049
|
return {
|
|
1036
1050
|
unique: i.unique,
|
|
@@ -1054,17 +1068,17 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1054
1068
|
}))
|
|
1055
1069
|
};
|
|
1056
1070
|
});
|
|
1057
|
-
}),
|
|
1058
|
-
const
|
|
1071
|
+
}), va = b(() => {
|
|
1072
|
+
const t = l.value.line.interLine || {}, s = t.pairs || [], e = t.colors || [];
|
|
1059
1073
|
if (!s.length) return [];
|
|
1060
1074
|
const u = [];
|
|
1061
|
-
return s.forEach((
|
|
1062
|
-
const [o, A] = Array.isArray(
|
|
1075
|
+
return s.forEach((a, i) => {
|
|
1076
|
+
const [o, A] = Array.isArray(a) ? a : [a.a, a.b];
|
|
1063
1077
|
if (!o || !A) return;
|
|
1064
|
-
const C =
|
|
1078
|
+
const C = ae.value.find((k) => k.name === o), O = ae.value.find((k) => k.name === A);
|
|
1065
1079
|
if (!C || !O || C.type !== "line" || O.type !== "line") return;
|
|
1066
1080
|
const S = e?.[i]?.[0] ?? C.color, T = e?.[i]?.[1] ?? O.color;
|
|
1067
|
-
|
|
1081
|
+
as({
|
|
1068
1082
|
lineA: C.plots,
|
|
1069
1083
|
lineB: O.plots,
|
|
1070
1084
|
smoothA: !!C.smooth,
|
|
@@ -1077,146 +1091,146 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1077
1091
|
u.push({ ...k, key: `inter_${o}_${A}_${i}_${F}` });
|
|
1078
1092
|
});
|
|
1079
1093
|
}), u;
|
|
1080
|
-
}),
|
|
1094
|
+
}), da = b(() => ({
|
|
1081
1095
|
datapoint: je.value,
|
|
1082
1096
|
seriesIndex: _.value,
|
|
1083
|
-
series:
|
|
1084
|
-
bars:
|
|
1085
|
-
lines:
|
|
1086
|
-
plots:
|
|
1097
|
+
series: me.value,
|
|
1098
|
+
bars: Ce.value,
|
|
1099
|
+
lines: ae.value,
|
|
1100
|
+
plots: xe.value,
|
|
1087
1101
|
config: l.value
|
|
1088
1102
|
})), rl = b(() => {
|
|
1089
|
-
const
|
|
1090
|
-
useUTC:
|
|
1091
|
-
locale:
|
|
1092
|
-
januaryAsYear:
|
|
1103
|
+
const t = l.value.chart.grid.labels.xAxisLabels.datetimeFormatter, s = gs({
|
|
1104
|
+
useUTC: t.useUTC,
|
|
1105
|
+
locale: ms[t.locale] || { months: [], shortMonths: [], days: [], shortDays: [] },
|
|
1106
|
+
januaryAsYear: t.januaryAsYear
|
|
1093
1107
|
});
|
|
1094
1108
|
return (e, u) => {
|
|
1095
1109
|
const i = l.value.chart.grid.labels.xAxisLabels.values?.[e];
|
|
1096
1110
|
return i == null ? "" : s.formatDate(new Date(i), u);
|
|
1097
1111
|
};
|
|
1098
|
-
}),
|
|
1112
|
+
}), ha = b(() => (l.value.chart.grid.labels.xAxisLabels.values || []).map((s, e) => ({
|
|
1099
1113
|
text: rl.value(e, l.value.chart.zoom.timeFormat),
|
|
1100
1114
|
absoluteIndex: e
|
|
1101
|
-
}))),
|
|
1102
|
-
let
|
|
1115
|
+
}))), Oo = b(() => {
|
|
1116
|
+
let t = "", s = je.value.map((a) => a.value).filter((a) => Zl(a) && a !== null).reduce((a, i) => Math.abs(a) + Math.abs(i), 0);
|
|
1103
1117
|
const e = de.value[_.value], u = l.value.chart.tooltip.customFormat;
|
|
1104
|
-
if (
|
|
1118
|
+
if (Ba(u) && os(() => u({
|
|
1105
1119
|
absoluteIndex: _.value + m.value.start,
|
|
1106
1120
|
seriesIndex: _.value,
|
|
1107
1121
|
datapoint: je.value,
|
|
1108
|
-
series:
|
|
1109
|
-
bars:
|
|
1110
|
-
lines:
|
|
1111
|
-
plots:
|
|
1122
|
+
series: me.value,
|
|
1123
|
+
bars: Ce.value,
|
|
1124
|
+
lines: ae.value,
|
|
1125
|
+
plots: xe.value,
|
|
1112
1126
|
config: l.value
|
|
1113
1127
|
})))
|
|
1114
1128
|
return u({
|
|
1115
1129
|
absoluteIndex: _.value + m.value.start,
|
|
1116
1130
|
seriesIndex: _.value,
|
|
1117
1131
|
datapoint: je.value,
|
|
1118
|
-
series:
|
|
1119
|
-
bars:
|
|
1120
|
-
lines:
|
|
1121
|
-
plots:
|
|
1132
|
+
series: me.value,
|
|
1133
|
+
bars: Ce.value,
|
|
1134
|
+
lines: ae.value,
|
|
1135
|
+
plots: xe.value,
|
|
1122
1136
|
config: l.value
|
|
1123
1137
|
});
|
|
1124
1138
|
if (e && e.text && l.value.chart.tooltip.showTimeLabel) {
|
|
1125
|
-
const
|
|
1126
|
-
|
|
1139
|
+
const a = rl.value(_.value + m.value.start, l.value.chart.tooltip.timeFormat);
|
|
1140
|
+
t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${l.value.chart.tooltip.borderColor}; width:100%">${l.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !l.value.chart.tooltip.useDefaultTimeFormat ? a : e.text}</div>`;
|
|
1127
1141
|
}
|
|
1128
|
-
return je.value.forEach((
|
|
1129
|
-
if (
|
|
1142
|
+
return je.value.forEach((a) => {
|
|
1143
|
+
if (Zl(a.value)) {
|
|
1130
1144
|
let i = "", o = "";
|
|
1131
|
-
switch (bl.value[
|
|
1145
|
+
switch (bl.value[a.type]) {
|
|
1132
1146
|
case "bar":
|
|
1133
|
-
i = `<svg viewBox="0 0 40 40" height="14" width="14">${
|
|
1147
|
+
i = `<svg viewBox="0 0 40 40" height="14" width="14">${Lt.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="${Lt.pattern ? `url(#pattern_${E.value}_${a.slotAbsoluteIndex}` : a.color}" /></svg>`;
|
|
1134
1148
|
break;
|
|
1135
1149
|
case "line":
|
|
1136
|
-
!
|
|
1150
|
+
!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" />` : a.shape === "triangle" ? o = `<path d="${Pe({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "square" ? o = `<path d="${Pe({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "diamond" ? o = `<path d="${Pe({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "pentagon" ? o = `<path d="${Pe({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "hexagon" ? o = `<path d="${Pe({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "star" && (o = `<polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" points="${Ha({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), i = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${a.color}" />${o}</svg>`;
|
|
1137
1151
|
break;
|
|
1138
1152
|
case "plot":
|
|
1139
|
-
if (!
|
|
1140
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${
|
|
1153
|
+
if (!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape)) {
|
|
1154
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" /></svg>`;
|
|
1141
1155
|
break;
|
|
1142
1156
|
}
|
|
1143
|
-
if (
|
|
1144
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${
|
|
1157
|
+
if (a.shape === "star") {
|
|
1158
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" points="${Ha({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
|
|
1145
1159
|
break;
|
|
1146
1160
|
}
|
|
1147
|
-
if (
|
|
1148
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
1161
|
+
if (a.shape === "triangle") {
|
|
1162
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Pe({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1149
1163
|
break;
|
|
1150
1164
|
}
|
|
1151
|
-
if (
|
|
1152
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
1165
|
+
if (a.shape === "square") {
|
|
1166
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Pe({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1153
1167
|
break;
|
|
1154
1168
|
}
|
|
1155
|
-
if (
|
|
1156
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
1169
|
+
if (a.shape === "diamond") {
|
|
1170
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Pe({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1157
1171
|
break;
|
|
1158
1172
|
}
|
|
1159
|
-
if (
|
|
1160
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
1173
|
+
if (a.shape === "pentagon") {
|
|
1174
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Pe({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1161
1175
|
break;
|
|
1162
1176
|
}
|
|
1163
|
-
if (
|
|
1164
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
1177
|
+
if (a.shape === "hexagon") {
|
|
1178
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Pe({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1165
1179
|
break;
|
|
1166
1180
|
}
|
|
1167
1181
|
}
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
p:
|
|
1173
|
-
v:
|
|
1174
|
-
s:
|
|
1182
|
+
t += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${i}</div> ${a.name}: <b>${l.value.chart.tooltip.showValue ? se(
|
|
1183
|
+
a.type === "line" ? l.value.line.labels.formatter : a.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
|
|
1184
|
+
a.value,
|
|
1185
|
+
Fe({
|
|
1186
|
+
p: a.prefix,
|
|
1187
|
+
v: a.value,
|
|
1188
|
+
s: a.suffix,
|
|
1175
1189
|
r: l.value.chart.tooltip.roundingValue
|
|
1176
1190
|
}),
|
|
1177
|
-
{ datapoint:
|
|
1178
|
-
) : ""}</b> ${l.value.chart.tooltip.showPercentage ? `(${
|
|
1179
|
-
v: P(Math.abs(
|
|
1191
|
+
{ datapoint: a }
|
|
1192
|
+
) : ""}</b> ${l.value.chart.tooltip.showPercentage ? `(${Fe({
|
|
1193
|
+
v: P(Math.abs(a.value) / s * 100),
|
|
1180
1194
|
s: "%",
|
|
1181
1195
|
r: l.value.chart.tooltip.roundingPercentage
|
|
1182
|
-
})})` : ""}</div>`, l.value.chart.comments.showInTooltip &&
|
|
1196
|
+
})})` : ""}</div>`, l.value.chart.comments.showInTooltip && a.comments.length && a.comments.slice(m.value.start, m.value.end)[_.value] && (t += `<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${a.color}">${a.comments.slice(m.value.start, m.value.end)[_.value]}</div>`);
|
|
1183
1197
|
}
|
|
1184
|
-
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${l.value.chart.tooltip.color}">${
|
|
1185
|
-
}),
|
|
1186
|
-
if (
|
|
1187
|
-
const
|
|
1198
|
+
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${l.value.chart.tooltip.color}">${t}</div>`;
|
|
1199
|
+
}), fa = b(() => {
|
|
1200
|
+
if (Be.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
1201
|
+
const t = we.value.map((e) => ({
|
|
1188
1202
|
label: e.name,
|
|
1189
1203
|
color: e.color,
|
|
1190
1204
|
type: e.type
|
|
1191
1205
|
})), s = [];
|
|
1192
1206
|
return de.value.forEach((e, u) => {
|
|
1193
|
-
const
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
}), s.push(
|
|
1197
|
-
}), { head:
|
|
1198
|
-
}),
|
|
1199
|
-
const
|
|
1200
|
-
let s = [""].concat(
|
|
1201
|
-
|
|
1207
|
+
const a = l.value.table.useDefaultTimeFormat ? [e.text] : [rl.value(u + m.value.start, l.value.table.timeFormat)];
|
|
1208
|
+
we.value.forEach((i) => {
|
|
1209
|
+
a.push(be(i.absoluteValues[u]) ? Number(i.absoluteValues[u].toFixed(l.value.table.rounding)) : "");
|
|
1210
|
+
}), s.push(a);
|
|
1211
|
+
}), { head: t, body: s };
|
|
1212
|
+
}), Gl = b(() => {
|
|
1213
|
+
const t = l.value.table.showSum;
|
|
1214
|
+
let s = [""].concat(we.value.map((i) => i.name));
|
|
1215
|
+
t && (s = s.concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'));
|
|
1202
1216
|
let e = [];
|
|
1203
1217
|
for (let i = 0; i < L.value; i += 1) {
|
|
1204
|
-
const o =
|
|
1218
|
+
const o = we.value.map((A) => A.absoluteValues[i] ?? 0).reduce((A, C) => A + C, 0);
|
|
1205
1219
|
e.push(
|
|
1206
1220
|
[
|
|
1207
1221
|
l.value.table.useDefaultTimeFormat ? de.value[i].text ?? "-" : rl.value(i + m.value.start, l.value.table.timeFormat)
|
|
1208
|
-
].concat(
|
|
1222
|
+
].concat(we.value.map(
|
|
1209
1223
|
(A) => se(
|
|
1210
1224
|
A.type === "line" ? l.value.line.labels.formatter : A.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
|
|
1211
1225
|
A.absoluteValues[i] ?? 0,
|
|
1212
|
-
|
|
1226
|
+
Fe({
|
|
1213
1227
|
p: A.prefix || l.value.chart.labels.prefix,
|
|
1214
1228
|
v: A.absoluteValues[i] ?? 0,
|
|
1215
1229
|
s: A.suffix || l.value.chart.labels.suffix,
|
|
1216
1230
|
r: l.value.table.rounding
|
|
1217
1231
|
})
|
|
1218
1232
|
)
|
|
1219
|
-
)).concat(
|
|
1233
|
+
)).concat(t ? (o ?? 0).toFixed(l.value.table.rounding) : [])
|
|
1220
1234
|
);
|
|
1221
1235
|
}
|
|
1222
1236
|
const u = {
|
|
@@ -1231,38 +1245,38 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1231
1245
|
outline: l.value.table.td.outline
|
|
1232
1246
|
},
|
|
1233
1247
|
breakpoint: l.value.table.responsiveBreakpoint
|
|
1234
|
-
},
|
|
1235
|
-
return { head: s, body: e, config: u, colNames:
|
|
1248
|
+
}, a = [l.value.table.columnNames.period].concat(we.value.map((i) => i.name)).concat(l.value.table.columnNames.total);
|
|
1249
|
+
return { head: s, body: e, config: u, colNames: a };
|
|
1236
1250
|
});
|
|
1237
|
-
function
|
|
1238
|
-
const s = [[l.value.chart.title.text], [l.value.chart.title.subtitle.text], [""]], e = ["", ...
|
|
1239
|
-
|
|
1251
|
+
function xt(t = null) {
|
|
1252
|
+
const s = [[l.value.chart.title.text], [l.value.chart.title.subtitle.text], [""]], e = ["", ...fa.value.head.map((o) => o.label)], u = fa.value.body, a = s.concat([e]).concat(u), i = ns(a);
|
|
1253
|
+
t ? t(i) : rs({ csvContent: i, title: l.value.chart.title.text || "vue-ui-xy" });
|
|
1240
1254
|
}
|
|
1241
|
-
function
|
|
1242
|
-
|
|
1243
|
-
const e =
|
|
1255
|
+
function ga(t, s = null) {
|
|
1256
|
+
At.value = t;
|
|
1257
|
+
const e = we.value.map((u) => ({
|
|
1244
1258
|
name: u.name,
|
|
1245
1259
|
value: [null, void 0, NaN].includes(u.absoluteValues[s]) ? null : u.absoluteValues[s],
|
|
1246
1260
|
color: u.color,
|
|
1247
1261
|
type: u.type
|
|
1248
1262
|
}));
|
|
1249
|
-
|
|
1263
|
+
t ? (_.value = s, l.value.events.datapointEnter && l.value.events.datapointEnter({ datapoint: e, seriesIndex: s + m.value.start })) : (_.value = null, l.value.events.datapointLeave && l.value.events.datapointLeave({ datapoint: e, seriesIndex: s + m.value.start }));
|
|
1250
1264
|
}
|
|
1251
|
-
function
|
|
1265
|
+
function ma() {
|
|
1252
1266
|
f.value.showTable = !f.value.showTable;
|
|
1253
1267
|
}
|
|
1254
|
-
function
|
|
1268
|
+
function ba() {
|
|
1255
1269
|
f.value.dataLabels.show = !f.value.dataLabels.show;
|
|
1256
1270
|
}
|
|
1257
|
-
function
|
|
1271
|
+
function xa() {
|
|
1258
1272
|
f.value.showTooltip = !f.value.showTooltip;
|
|
1259
1273
|
}
|
|
1260
|
-
function
|
|
1261
|
-
qe.value =
|
|
1274
|
+
function pa(t) {
|
|
1275
|
+
qe.value = t, Ct.value += 1;
|
|
1262
1276
|
}
|
|
1263
|
-
function
|
|
1277
|
+
function ya() {
|
|
1264
1278
|
if (!l.value.responsiveProportionalSizing) {
|
|
1265
|
-
y.value.dataLabels = l.value.chart.grid.labels.fontSize, y.value.yAxis = l.value.chart.grid.labels.axis.fontSize, y.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, y.value.plotLabels = l.value.chart.labels.fontSize,
|
|
1279
|
+
y.value.dataLabels = l.value.chart.grid.labels.fontSize, y.value.yAxis = l.value.chart.grid.labels.axis.fontSize, y.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, y.value.plotLabels = l.value.chart.labels.fontSize, Le.value.plot = l.value.plot.radius, Le.value.line = l.value.line.radius;
|
|
1266
1280
|
return;
|
|
1267
1281
|
}
|
|
1268
1282
|
y.value.dataLabels = dl({
|
|
@@ -1272,44 +1286,44 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1272
1286
|
threshold: 10,
|
|
1273
1287
|
fallback: 10
|
|
1274
1288
|
}), y.value.yAxis = dl({
|
|
1275
|
-
relator:
|
|
1289
|
+
relator: ee.value,
|
|
1276
1290
|
adjuster: 1e3,
|
|
1277
1291
|
source: l.value.chart.grid.labels.axis.fontSize,
|
|
1278
1292
|
threshold: 10,
|
|
1279
1293
|
fallback: 10
|
|
1280
1294
|
}), y.value.xAxis = dl({
|
|
1281
|
-
relator:
|
|
1295
|
+
relator: ee.value,
|
|
1282
1296
|
adjuster: 1e3,
|
|
1283
1297
|
source: l.value.chart.grid.labels.xAxisLabels.fontSize,
|
|
1284
1298
|
threshold: 10,
|
|
1285
1299
|
fallback: 10
|
|
1286
1300
|
}), y.value.plotLabels = dl({
|
|
1287
|
-
relator:
|
|
1301
|
+
relator: ee.value,
|
|
1288
1302
|
adjuster: 800,
|
|
1289
1303
|
source: l.value.chart.labels.fontSize,
|
|
1290
1304
|
threshold: 10,
|
|
1291
1305
|
fallback: 10
|
|
1292
|
-
}),
|
|
1293
|
-
relator:
|
|
1306
|
+
}), Le.value.plot = dl({
|
|
1307
|
+
relator: ee.value,
|
|
1294
1308
|
adjuster: 800,
|
|
1295
1309
|
source: l.value.plot.radius,
|
|
1296
1310
|
threshold: 1,
|
|
1297
1311
|
fallback: 1
|
|
1298
|
-
}),
|
|
1299
|
-
relator:
|
|
1312
|
+
}), Le.value.line = dl({
|
|
1313
|
+
relator: ee.value,
|
|
1300
1314
|
adjuster: 800,
|
|
1301
1315
|
source: l.value.line.radius,
|
|
1302
1316
|
threshold: 1,
|
|
1303
1317
|
fallback: 1
|
|
1304
1318
|
});
|
|
1305
1319
|
}
|
|
1306
|
-
function
|
|
1307
|
-
|
|
1320
|
+
function pt() {
|
|
1321
|
+
Da(g.dataset) ? (wt({
|
|
1308
1322
|
componentName: "VueUiXy",
|
|
1309
1323
|
type: "dataset",
|
|
1310
1324
|
debug: yl.value
|
|
1311
1325
|
}), Ol.value = !0) : g.dataset.forEach((s, e) => {
|
|
1312
|
-
[null, void 0].includes(s.name) && (
|
|
1326
|
+
[null, void 0].includes(s.name) && (wt({
|
|
1313
1327
|
componentName: "VueUiXy",
|
|
1314
1328
|
type: "datasetSerieAttribute",
|
|
1315
1329
|
property: "name (string)",
|
|
@@ -1318,154 +1332,154 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1318
1332
|
}), Ol.value = !0);
|
|
1319
1333
|
}), yl.value && g.dataset.forEach((s) => {
|
|
1320
1334
|
s.series.forEach((e, u) => {
|
|
1321
|
-
|
|
1335
|
+
Zl(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
1322
1336
|
-----> The serie '${s.name}' contains the value '${e}' at index ${u}.
|
|
1323
1337
|
'${e}' was converted to null to allow the chart to display.`);
|
|
1324
1338
|
});
|
|
1325
|
-
}),
|
|
1326
|
-
const
|
|
1339
|
+
}), Da(g.dataset) || (Ol.value = l.value.loading), It.value = l.value.chart.userOptions.showOnChartHover, it.value = l.value.chart.userOptions.keepStateOnChartLeave, zl.value = !l.value.chart.userOptions.showOnChartHover, vt();
|
|
1340
|
+
const t = 12;
|
|
1327
1341
|
if (l.value.responsive) {
|
|
1328
|
-
const e =
|
|
1329
|
-
|
|
1330
|
-
const { height: u, width:
|
|
1342
|
+
const e = Ie.value.parentNode;
|
|
1343
|
+
He.value && (He.value.unobserve(st.value), He.value.disconnect());
|
|
1344
|
+
const { height: u, width: a } = e.getBoundingClientRect();
|
|
1331
1345
|
let i = null, o = 0;
|
|
1332
1346
|
l.value.chart.title.show && fl.value && (i = fl.value, o = i.getBoundingClientRect().height);
|
|
1333
1347
|
let A = null, C = 0;
|
|
1334
|
-
l.value.chart.zoom.show &&
|
|
1348
|
+
l.value.chart.zoom.show && Ne.value > 6 && ct.value && Oe.value && Oe.value.$el && (A = Oe.value.$el, C = A.getBoundingClientRect().height);
|
|
1335
1349
|
let O = null, S = 0;
|
|
1336
1350
|
l.value.chart.legend.show && sl.value && (O = sl.value, S = O.getBoundingClientRect().height);
|
|
1337
1351
|
let T = 0;
|
|
1338
1352
|
gl.value && (T = gl.value.getBoundingClientRect().height);
|
|
1339
|
-
let
|
|
1340
|
-
ml.value && (
|
|
1353
|
+
let W = 0;
|
|
1354
|
+
ml.value && (W = ml.value.getBoundingClientRect().height), ve.value = u - o - S - C - T - W - t, ee.value = a, Tl.value = `0 0 ${ee.value < 0 ? 10 : ee.value} ${ve.value < 0 ? 10 : ve.value}`, ya();
|
|
1341
1355
|
const k = new ResizeObserver((F) => {
|
|
1342
1356
|
for (const z of F)
|
|
1343
|
-
l.value.chart.title.show && fl.value ? o = fl.value.getBoundingClientRect().height : o = 0,
|
|
1344
|
-
ve.value = z.contentRect.height - o - S - C - T -
|
|
1357
|
+
l.value.chart.title.show && fl.value ? o = fl.value.getBoundingClientRect().height : o = 0, Oe.value && Oe.value.$el ? C = Oe.value.$el.getBoundingClientRect().height : C = 0, sl.value ? S = sl.value.getBoundingClientRect().height : S = 0, gl.value ? T = gl.value.getBoundingClientRect().height : T = 0, ml.value ? W = ml.value.getBoundingClientRect().height : W = 0, requestAnimationFrame(() => {
|
|
1358
|
+
ve.value = z.contentRect.height - o - S - C - T - W - t, ee.value = z.contentBoxSize[0].inlineSize, Tl.value = `0 0 ${ee.value < 0 ? 10 : ee.value} ${ve.value < 0 ? 10 : ve.value}`, ya();
|
|
1345
1359
|
});
|
|
1346
1360
|
});
|
|
1347
|
-
|
|
1361
|
+
He.value = k, st.value = e, k.observe(e);
|
|
1348
1362
|
} else
|
|
1349
|
-
ve.value = l.value.chart.height,
|
|
1363
|
+
ve.value = l.value.chart.height, ee.value = l.value.chart.width, y.value.dataLabels = l.value.chart.grid.labels.fontSize, y.value.yAxis = l.value.chart.grid.labels.axis.fontSize, y.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, y.value.plotLabels = l.value.chart.labels.fontSize, Le.value.plot = l.value.plot.radius, Le.value.line = l.value.line.radius, Tl.value = `0 0 ${ee.value} ${ve.value}`;
|
|
1350
1364
|
}
|
|
1351
|
-
function
|
|
1352
|
-
|
|
1353
|
-
x:
|
|
1354
|
-
y:
|
|
1365
|
+
function ka(t) {
|
|
1366
|
+
lo.value = {
|
|
1367
|
+
x: t.clientX,
|
|
1368
|
+
y: t.clientY
|
|
1355
1369
|
};
|
|
1356
1370
|
}
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
}),
|
|
1360
|
-
document.removeEventListener("scroll",
|
|
1361
|
-
}),
|
|
1371
|
+
ql(() => {
|
|
1372
|
+
pt(), Rl(), document.addEventListener("mousemove", ka, { passive: !0 }), document.addEventListener("scroll", Wt, { passive: !0 });
|
|
1373
|
+
}), kt(() => {
|
|
1374
|
+
document.removeEventListener("scroll", Wt, { passive: !0 }), document.removeEventListener("mousemove", ka, { passive: !0 }), He.value && (He.value.unobserve(st.value), He.value.disconnect(), He.value = null);
|
|
1375
|
+
}), xs({
|
|
1362
1376
|
timeLabelsEls: ul,
|
|
1363
1377
|
timeLabels: de,
|
|
1364
1378
|
slicer: m,
|
|
1365
1379
|
configRef: l,
|
|
1366
1380
|
rotationPath: ["chart", "grid", "labels", "xAxisLabels", "rotation"],
|
|
1367
1381
|
autoRotatePath: ["chart", "grid", "labels", "xAxisLabels", "autoRotate", "enable"],
|
|
1368
|
-
isAutoSize:
|
|
1382
|
+
isAutoSize: uo,
|
|
1369
1383
|
height: ve,
|
|
1370
|
-
width:
|
|
1384
|
+
width: ee,
|
|
1371
1385
|
rotation: l.value.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
1372
1386
|
});
|
|
1373
|
-
const
|
|
1387
|
+
const Ul = x(!1), _a = x(null), wa = x(200), No = b(
|
|
1374
1388
|
() => _.value ?? V.value ?? 0
|
|
1375
1389
|
);
|
|
1376
|
-
function
|
|
1377
|
-
const
|
|
1378
|
-
return Math.min(Math.max(
|
|
1390
|
+
function Vo() {
|
|
1391
|
+
const t = Math.ceil(wa.value || 200);
|
|
1392
|
+
return Math.min(Math.max(t, 1), 200);
|
|
1379
1393
|
}
|
|
1380
|
-
function
|
|
1381
|
-
const
|
|
1394
|
+
function Po() {
|
|
1395
|
+
const t = Vo(), s = 200, e = Math.max(1, L.value), u = c.value.width / e, i = c.value.left + No.value * u + u / 2 - t / 2 - (s - t) / 2, o = c.value.left - (s - t) / 2, A = c.value.right - (s + t) / 2, C = Math.max(o, Math.min(i, A));
|
|
1382
1396
|
return P(C);
|
|
1383
1397
|
}
|
|
1384
|
-
|
|
1385
|
-
let
|
|
1398
|
+
ql(() => {
|
|
1399
|
+
let t = null, s = null;
|
|
1386
1400
|
const e = (i) => {
|
|
1387
1401
|
cancelAnimationFrame(s), s = requestAnimationFrame(() => {
|
|
1388
|
-
|
|
1402
|
+
wa.value = Math.min(Math.max(Math.ceil(i || 0), 1), 200);
|
|
1389
1403
|
});
|
|
1390
1404
|
}, u = new ResizeObserver((i) => {
|
|
1391
|
-
let o = i.find((A) => A.target ===
|
|
1405
|
+
let o = i.find((A) => A.target === t) || i[0];
|
|
1392
1406
|
o && e(o.contentRect.width || 200);
|
|
1393
|
-
}),
|
|
1394
|
-
const o =
|
|
1395
|
-
|
|
1407
|
+
}), a = Ma((i) => {
|
|
1408
|
+
const o = _a.value;
|
|
1409
|
+
t && t !== o && (u.unobserve(t), t = null), o && o !== t && (Aa(() => {
|
|
1396
1410
|
o.offsetParent !== null && e(o.offsetWidth || o.getBoundingClientRect().width || 200);
|
|
1397
|
-
}), u.observe(o),
|
|
1398
|
-
|
|
1411
|
+
}), u.observe(o), t = o), i(() => {
|
|
1412
|
+
t && (u.unobserve(t), t = null);
|
|
1399
1413
|
});
|
|
1400
1414
|
});
|
|
1401
|
-
|
|
1415
|
+
kt(() => {
|
|
1402
1416
|
try {
|
|
1403
|
-
|
|
1417
|
+
t && u.unobserve(t), u.disconnect(), a();
|
|
1404
1418
|
} catch {
|
|
1405
1419
|
}
|
|
1406
1420
|
});
|
|
1407
1421
|
});
|
|
1408
|
-
const
|
|
1422
|
+
const Fo = b(() => {
|
|
1409
1423
|
if ([null, void 0].includes(_.value) && [null, void 0].includes(V.value)) return "";
|
|
1410
|
-
const
|
|
1411
|
-
if (
|
|
1424
|
+
const t = (_.value != null ? _.value : 0) || (V.value != null ? V.value : 0), s = l.value.chart.timeTag.customFormat;
|
|
1425
|
+
if (Ul.value = !1, Ba(s))
|
|
1412
1426
|
try {
|
|
1413
1427
|
const e = s({
|
|
1414
|
-
absoluteIndex:
|
|
1415
|
-
seriesIndex:
|
|
1428
|
+
absoluteIndex: t + m.value.start,
|
|
1429
|
+
seriesIndex: t,
|
|
1416
1430
|
datapoint: je.value,
|
|
1417
|
-
bars:
|
|
1418
|
-
lines:
|
|
1419
|
-
plots:
|
|
1431
|
+
bars: Ce.value,
|
|
1432
|
+
lines: ae.value,
|
|
1433
|
+
plots: xe.value,
|
|
1420
1434
|
config: l.value
|
|
1421
1435
|
});
|
|
1422
1436
|
if (typeof e == "string")
|
|
1423
|
-
return
|
|
1437
|
+
return Ul.value = !0, e;
|
|
1424
1438
|
} catch {
|
|
1425
|
-
console.warn("Custom format cannot be applied on timeTag."),
|
|
1439
|
+
console.warn("Custom format cannot be applied on timeTag."), Ul.value = !1;
|
|
1426
1440
|
}
|
|
1427
|
-
if (!
|
|
1428
|
-
return [null, void 0].includes(de.value[
|
|
1441
|
+
if (!Ul.value)
|
|
1442
|
+
return [null, void 0].includes(de.value[t]) ? "" : l.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !l.value.chart.timeTag.useDefaultFormat ? rl.value(t + m.value.start, l.value.chart.timeTag.timeFormat) : de.value[t].text;
|
|
1429
1443
|
});
|
|
1430
|
-
Al(() => g.dataset, (
|
|
1431
|
-
Array.isArray(
|
|
1444
|
+
Al(() => g.dataset, (t) => {
|
|
1445
|
+
Array.isArray(t) && t.length > 0 && (Ol.value = !1), Ne.value = Math.max(...ge.value.map((s) => De(s.series).length)), m.value = {
|
|
1432
1446
|
start: 0,
|
|
1433
|
-
end:
|
|
1434
|
-
},
|
|
1435
|
-
}, { deep: !0 }), Al(() => g.config, (
|
|
1436
|
-
ie.value || (l.value =
|
|
1447
|
+
end: Ne.value
|
|
1448
|
+
}, eo.value += 1, ut.value += 1, nl();
|
|
1449
|
+
}, { deep: !0 }), Al(() => g.config, (t) => {
|
|
1450
|
+
ie.value || (l.value = rt()), pt(), zt.value += 1, Tt.value += 1, vt(), nl();
|
|
1437
1451
|
}, { deep: !0 });
|
|
1438
|
-
const
|
|
1439
|
-
function
|
|
1440
|
-
const
|
|
1441
|
-
if (!
|
|
1442
|
-
|
|
1452
|
+
const yt = x(!1);
|
|
1453
|
+
function Sa() {
|
|
1454
|
+
const t = Ie.value?.parentNode;
|
|
1455
|
+
if (!t) {
|
|
1456
|
+
yt.value = !1;
|
|
1443
1457
|
return;
|
|
1444
1458
|
}
|
|
1445
|
-
const s =
|
|
1446
|
-
|
|
1459
|
+
const s = t.getBoundingClientRect();
|
|
1460
|
+
yt.value = s.width > 2 && s.height > 2;
|
|
1447
1461
|
}
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
const
|
|
1451
|
-
|
|
1462
|
+
ql(() => {
|
|
1463
|
+
Sa();
|
|
1464
|
+
const t = new ResizeObserver(() => {
|
|
1465
|
+
Sa(), yt.value && (pt(), nl(), Rl());
|
|
1452
1466
|
});
|
|
1453
|
-
|
|
1467
|
+
Ie.value?.parentNode && t.observe(Ie.value.parentNode);
|
|
1454
1468
|
}), Al(l, () => {
|
|
1455
|
-
|
|
1469
|
+
vt();
|
|
1456
1470
|
}, { immediate: !0 });
|
|
1457
1471
|
const $l = b(() => {
|
|
1458
|
-
const
|
|
1472
|
+
const t = l.value.table.useDialog && !l.value.showTable, s = f.value.showTable;
|
|
1459
1473
|
return {
|
|
1460
|
-
component:
|
|
1474
|
+
component: t ? Ka : ws,
|
|
1461
1475
|
title: `${l.value.chart.title.text}${l.value.chart.title.subtitle.text ? `: ${l.value.chart.title.subtitle.text}` : ""}`,
|
|
1462
|
-
props:
|
|
1476
|
+
props: t ? {
|
|
1463
1477
|
backgroundColor: l.value.table.th.backgroundColor,
|
|
1464
1478
|
color: l.value.table.th.color,
|
|
1465
1479
|
headerColor: l.value.table.th.color,
|
|
1466
1480
|
headerBg: l.value.table.th.backgroundColor,
|
|
1467
1481
|
isFullscreen: qe.value,
|
|
1468
|
-
fullscreenParent:
|
|
1482
|
+
fullscreenParent: Ie.value,
|
|
1469
1483
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
1470
1484
|
} : {
|
|
1471
1485
|
hideDetails: !0,
|
|
@@ -1484,62 +1498,84 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1484
1498
|
}
|
|
1485
1499
|
};
|
|
1486
1500
|
});
|
|
1487
|
-
Al(() => f.value.showTable, (
|
|
1488
|
-
l.value.showTable || (
|
|
1501
|
+
Al(() => f.value.showTable, (t) => {
|
|
1502
|
+
l.value.showTable || (t && l.value.table.useDialog && il.value ? il.value.open() : il.value && il.value.close && il.value.close());
|
|
1489
1503
|
});
|
|
1490
|
-
function
|
|
1491
|
-
f.value.showTable = !1,
|
|
1504
|
+
function $a() {
|
|
1505
|
+
f.value.showTable = !1, ot.value && ot.value.setTableIconState(!1);
|
|
1492
1506
|
}
|
|
1493
|
-
const
|
|
1494
|
-
shape:
|
|
1495
|
-
color:
|
|
1496
|
-
name:
|
|
1497
|
-
}))),
|
|
1507
|
+
const Ro = b(() => me.value.map((t) => ({
|
|
1508
|
+
shape: t.type === "bar" ? "square" : t.shape ?? "circle",
|
|
1509
|
+
color: t.color,
|
|
1510
|
+
name: t.name
|
|
1511
|
+
}))), Bo = b(() => l.value.chart.backgroundColor), Ho = b(() => l.value.chart.legend), Do = b(() => l.value.chart.title), { exportSvg: Eo, getSvg: Yo } = bs({
|
|
1498
1512
|
svg: ue,
|
|
1499
|
-
title:
|
|
1500
|
-
legend:
|
|
1501
|
-
legendItems:
|
|
1502
|
-
backgroundColor:
|
|
1513
|
+
title: Do,
|
|
1514
|
+
legend: Ho,
|
|
1515
|
+
legendItems: Ro,
|
|
1516
|
+
backgroundColor: Bo
|
|
1503
1517
|
});
|
|
1504
|
-
async function
|
|
1505
|
-
if (
|
|
1506
|
-
const { blob: s, url: e, text: u, dataUrl:
|
|
1507
|
-
l.value.chart.userOptions.callbacks.svg({ blob: s, url: e, text: u, dataUrl:
|
|
1518
|
+
async function La({ isCb: t }) {
|
|
1519
|
+
if (t) {
|
|
1520
|
+
const { blob: s, url: e, text: u, dataUrl: a } = await Yo();
|
|
1521
|
+
l.value.chart.userOptions.callbacks.svg({ blob: s, url: e, text: u, dataUrl: a });
|
|
1508
1522
|
} else
|
|
1509
|
-
|
|
1523
|
+
Eo();
|
|
1510
1524
|
}
|
|
1511
|
-
return
|
|
1512
|
-
getData:
|
|
1513
|
-
getImage:
|
|
1514
|
-
generatePdf:
|
|
1515
|
-
generateImage:
|
|
1516
|
-
generateSvg:
|
|
1517
|
-
generateCsv:
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1525
|
+
return Ya({
|
|
1526
|
+
getData: ko,
|
|
1527
|
+
getImage: _o,
|
|
1528
|
+
generatePdf: Ht,
|
|
1529
|
+
generateImage: Dt,
|
|
1530
|
+
generateSvg: La,
|
|
1531
|
+
generateCsv: xt,
|
|
1532
|
+
hideSeries: So,
|
|
1533
|
+
showSeries: wo,
|
|
1534
|
+
toggleStack: qt,
|
|
1535
|
+
toggleTable: ma,
|
|
1536
|
+
toggleLabels: ba,
|
|
1537
|
+
toggleTooltip: xa,
|
|
1538
|
+
toggleAnnotator: ft,
|
|
1539
|
+
toggleFullscreen: pa
|
|
1540
|
+
}), (t, s) => (n(), r("div", {
|
|
1541
|
+
id: `vue-ui-xy_${E.value}`,
|
|
1526
1542
|
class: ll(`vue-data-ui-component vue-ui-xy ${qe.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${l.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1527
1543
|
ref_key: "chart",
|
|
1528
|
-
ref:
|
|
1544
|
+
ref: Ie,
|
|
1529
1545
|
style: $(`background:${l.value.chart.backgroundColor}; color:${l.value.chart.color};width:100%;font-family:${l.value.chart.fontFamily};${l.value.responsive ? "height: 100%" : ""}`),
|
|
1530
|
-
onMouseenter: s[6] || (s[6] = () =>
|
|
1531
|
-
onMouseleave: s[7] || (s[7] = () =>
|
|
1532
|
-
onClick:
|
|
1546
|
+
onMouseenter: s[6] || (s[6] = () => Gt(!0)),
|
|
1547
|
+
onMouseleave: s[7] || (s[7] = () => Gt(!1)),
|
|
1548
|
+
onClick: aa
|
|
1533
1549
|
}, [
|
|
1534
|
-
l.value.chart.userOptions.buttons.annotator && ue.value ? (n(),
|
|
1550
|
+
l.value.chart.userOptions.buttons.annotator && ue.value ? (n(), Te(v(Ja), {
|
|
1535
1551
|
key: 0,
|
|
1536
1552
|
svgRef: ue.value,
|
|
1537
1553
|
backgroundColor: l.value.chart.backgroundColor,
|
|
1538
1554
|
color: l.value.chart.color,
|
|
1539
1555
|
active: xl.value,
|
|
1540
|
-
onClose:
|
|
1541
|
-
},
|
|
1542
|
-
|
|
1556
|
+
onClose: ft
|
|
1557
|
+
}, {
|
|
1558
|
+
"annotator-action-close": G(() => [
|
|
1559
|
+
B(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
1560
|
+
]),
|
|
1561
|
+
"annotator-action-color": G(({ color: e }) => [
|
|
1562
|
+
B(t.$slots, "annotator-action-color", ke(_e({ color: e })), void 0, !0)
|
|
1563
|
+
]),
|
|
1564
|
+
"annotator-action-draw": G(({ mode: e }) => [
|
|
1565
|
+
B(t.$slots, "annotator-action-draw", ke(_e({ mode: e })), void 0, !0)
|
|
1566
|
+
]),
|
|
1567
|
+
"annotator-action-undo": G(({ disabled: e }) => [
|
|
1568
|
+
B(t.$slots, "annotator-action-undo", ke(_e({ disabled: e })), void 0, !0)
|
|
1569
|
+
]),
|
|
1570
|
+
"annotator-action-redo": G(({ disabled: e }) => [
|
|
1571
|
+
B(t.$slots, "annotator-action-redo", ke(_e({ disabled: e })), void 0, !0)
|
|
1572
|
+
]),
|
|
1573
|
+
"annotator-action-delete": G(({ disabled: e }) => [
|
|
1574
|
+
B(t.$slots, "annotator-action-delete", ke(_e({ disabled: e })), void 0, !0)
|
|
1575
|
+
]),
|
|
1576
|
+
_: 3
|
|
1577
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
1578
|
+
Lo.value ? (n(), r("div", {
|
|
1543
1579
|
key: 1,
|
|
1544
1580
|
ref_key: "noTitle",
|
|
1545
1581
|
ref: ml,
|
|
@@ -1553,8 +1589,8 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1553
1589
|
class: "vue-ui-xy-title",
|
|
1554
1590
|
style: $(`font-family:${l.value.chart.fontFamily}`)
|
|
1555
1591
|
}, [
|
|
1556
|
-
(n(),
|
|
1557
|
-
key: `title_${
|
|
1592
|
+
(n(), Te(ys, {
|
|
1593
|
+
key: `title_${zt.value}`,
|
|
1558
1594
|
config: {
|
|
1559
1595
|
title: {
|
|
1560
1596
|
cy: "xy-div-title",
|
|
@@ -1568,17 +1604,17 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1568
1604
|
}, null, 8, ["config"]))
|
|
1569
1605
|
], 4)) : h("", !0),
|
|
1570
1606
|
p("div", {
|
|
1571
|
-
id: `legend-top-${
|
|
1572
|
-
}, null, 8,
|
|
1573
|
-
l.value.chart.userOptions.show && (
|
|
1607
|
+
id: `legend-top-${E.value}`
|
|
1608
|
+
}, null, 8, Ls),
|
|
1609
|
+
l.value.chart.userOptions.show && (it.value || zl.value) ? (n(), Te(v(Ua), {
|
|
1574
1610
|
ref_key: "userOptionsRef",
|
|
1575
|
-
ref:
|
|
1576
|
-
key: `user_options_${
|
|
1611
|
+
ref: ot,
|
|
1612
|
+
key: `user_options_${Ct.value}`,
|
|
1577
1613
|
backgroundColor: l.value.chart.backgroundColor,
|
|
1578
1614
|
color: l.value.chart.color,
|
|
1579
|
-
isPrinting: v(
|
|
1580
|
-
isImaging: v(
|
|
1581
|
-
uid:
|
|
1615
|
+
isPrinting: v(dt),
|
|
1616
|
+
isImaging: v(Bt),
|
|
1617
|
+
uid: E.value,
|
|
1582
1618
|
hasTooltip: l.value.chart.userOptions.buttons.tooltip && l.value.chart.tooltip.show,
|
|
1583
1619
|
hasPdf: l.value.chart.userOptions.buttons.pdf,
|
|
1584
1620
|
hasXls: l.value.chart.userOptions.buttons.csv,
|
|
@@ -1586,11 +1622,11 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1586
1622
|
hasSvg: l.value.chart.userOptions.buttons.svg,
|
|
1587
1623
|
hasLabel: l.value.chart.userOptions.buttons.labels,
|
|
1588
1624
|
hasTable: l.value.chart.userOptions.buttons.table,
|
|
1589
|
-
hasStack:
|
|
1625
|
+
hasStack: jl.dataset.length > 1 && l.value.chart.userOptions.buttons.stack,
|
|
1590
1626
|
hasFullscreen: l.value.chart.userOptions.buttons.fullscreen,
|
|
1591
1627
|
isStacked: f.value.isStacked,
|
|
1592
1628
|
isFullscreen: qe.value,
|
|
1593
|
-
chartElement:
|
|
1629
|
+
chartElement: t.$refs.chart,
|
|
1594
1630
|
position: l.value.chart.userOptions.position,
|
|
1595
1631
|
isTooltip: f.value.showTooltip,
|
|
1596
1632
|
titles: { ...l.value.chart.userOptions.buttonTitles },
|
|
@@ -1599,94 +1635,94 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1599
1635
|
callbacks: l.value.chart.userOptions.callbacks,
|
|
1600
1636
|
tableDialog: l.value.table.useDialog,
|
|
1601
1637
|
printScale: l.value.chart.userOptions.print.scale,
|
|
1602
|
-
onToggleFullscreen:
|
|
1603
|
-
onGeneratePdf: v(
|
|
1604
|
-
onGenerateCsv:
|
|
1605
|
-
onGenerateImage: v(
|
|
1606
|
-
onGenerateSvg:
|
|
1607
|
-
onToggleTable:
|
|
1608
|
-
onToggleLabels:
|
|
1609
|
-
onToggleStack:
|
|
1610
|
-
onToggleTooltip:
|
|
1611
|
-
onToggleAnnotator:
|
|
1638
|
+
onToggleFullscreen: pa,
|
|
1639
|
+
onGeneratePdf: v(Ht),
|
|
1640
|
+
onGenerateCsv: xt,
|
|
1641
|
+
onGenerateImage: v(Dt),
|
|
1642
|
+
onGenerateSvg: La,
|
|
1643
|
+
onToggleTable: ma,
|
|
1644
|
+
onToggleLabels: ba,
|
|
1645
|
+
onToggleStack: qt,
|
|
1646
|
+
onToggleTooltip: xa,
|
|
1647
|
+
onToggleAnnotator: ft,
|
|
1612
1648
|
style: $({
|
|
1613
|
-
visibility:
|
|
1649
|
+
visibility: it.value ? zl.value ? "visible" : "hidden" : "visible"
|
|
1614
1650
|
})
|
|
1615
|
-
},
|
|
1616
|
-
|
|
1651
|
+
}, Ca({ _: 2 }, [
|
|
1652
|
+
t.$slots.menuIcon ? {
|
|
1617
1653
|
name: "menuIcon",
|
|
1618
|
-
fn:
|
|
1619
|
-
|
|
1654
|
+
fn: G(({ isOpen: e, color: u }) => [
|
|
1655
|
+
B(t.$slots, "menuIcon", ke(_e({ isOpen: e, color: u })), void 0, !0)
|
|
1620
1656
|
]),
|
|
1621
1657
|
key: "0"
|
|
1622
1658
|
} : void 0,
|
|
1623
|
-
|
|
1659
|
+
t.$slots.optionTooltip ? {
|
|
1624
1660
|
name: "optionTooltip",
|
|
1625
|
-
fn:
|
|
1626
|
-
|
|
1661
|
+
fn: G(() => [
|
|
1662
|
+
B(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
1627
1663
|
]),
|
|
1628
1664
|
key: "1"
|
|
1629
1665
|
} : void 0,
|
|
1630
|
-
|
|
1666
|
+
t.$slots.optionPdf ? {
|
|
1631
1667
|
name: "optionPdf",
|
|
1632
|
-
fn:
|
|
1633
|
-
|
|
1668
|
+
fn: G(() => [
|
|
1669
|
+
B(t.$slots, "optionPdf", {}, void 0, !0)
|
|
1634
1670
|
]),
|
|
1635
1671
|
key: "2"
|
|
1636
1672
|
} : void 0,
|
|
1637
|
-
|
|
1673
|
+
t.$slots.optionCsv ? {
|
|
1638
1674
|
name: "optionCsv",
|
|
1639
|
-
fn:
|
|
1640
|
-
|
|
1675
|
+
fn: G(() => [
|
|
1676
|
+
B(t.$slots, "optionCsv", {}, void 0, !0)
|
|
1641
1677
|
]),
|
|
1642
1678
|
key: "3"
|
|
1643
1679
|
} : void 0,
|
|
1644
|
-
|
|
1680
|
+
t.$slots.optionImg ? {
|
|
1645
1681
|
name: "optionImg",
|
|
1646
|
-
fn:
|
|
1647
|
-
|
|
1682
|
+
fn: G(() => [
|
|
1683
|
+
B(t.$slots, "optionImg", {}, void 0, !0)
|
|
1648
1684
|
]),
|
|
1649
1685
|
key: "4"
|
|
1650
1686
|
} : void 0,
|
|
1651
|
-
|
|
1687
|
+
t.$slots.optionSvg ? {
|
|
1652
1688
|
name: "optionSvg",
|
|
1653
|
-
fn:
|
|
1654
|
-
|
|
1689
|
+
fn: G(() => [
|
|
1690
|
+
B(t.$slots, "optionSvg", {}, void 0, !0)
|
|
1655
1691
|
]),
|
|
1656
1692
|
key: "5"
|
|
1657
1693
|
} : void 0,
|
|
1658
|
-
|
|
1694
|
+
t.$slots.optionTable ? {
|
|
1659
1695
|
name: "optionTable",
|
|
1660
|
-
fn:
|
|
1661
|
-
|
|
1696
|
+
fn: G(() => [
|
|
1697
|
+
B(t.$slots, "optionTable", {}, void 0, !0)
|
|
1662
1698
|
]),
|
|
1663
1699
|
key: "6"
|
|
1664
1700
|
} : void 0,
|
|
1665
|
-
|
|
1701
|
+
t.$slots.optionLabels ? {
|
|
1666
1702
|
name: "optionLabels",
|
|
1667
|
-
fn:
|
|
1668
|
-
|
|
1703
|
+
fn: G(() => [
|
|
1704
|
+
B(t.$slots, "optionLabels", {}, void 0, !0)
|
|
1669
1705
|
]),
|
|
1670
1706
|
key: "7"
|
|
1671
1707
|
} : void 0,
|
|
1672
|
-
|
|
1708
|
+
t.$slots.optionStack ? {
|
|
1673
1709
|
name: "optionStack",
|
|
1674
|
-
fn:
|
|
1675
|
-
|
|
1710
|
+
fn: G(({ isStack: e }) => [
|
|
1711
|
+
B(t.$slots, "optionStack", ke(_e({ isStack: e })), void 0, !0)
|
|
1676
1712
|
]),
|
|
1677
1713
|
key: "8"
|
|
1678
1714
|
} : void 0,
|
|
1679
|
-
|
|
1715
|
+
t.$slots.optionFullscreen ? {
|
|
1680
1716
|
name: "optionFullscreen",
|
|
1681
|
-
fn:
|
|
1682
|
-
|
|
1717
|
+
fn: G(({ toggleFullscreen: e, isFullscreen: u }) => [
|
|
1718
|
+
B(t.$slots, "optionFullscreen", ke(_e({ toggleFullscreen: e, isFullscreen: u })), void 0, !0)
|
|
1683
1719
|
]),
|
|
1684
1720
|
key: "9"
|
|
1685
1721
|
} : void 0,
|
|
1686
|
-
|
|
1722
|
+
t.$slots.optionAnnotator ? {
|
|
1687
1723
|
name: "optionAnnotator",
|
|
1688
|
-
fn:
|
|
1689
|
-
|
|
1724
|
+
fn: G(({ toggleAnnotator: e, isAnnotator: u }) => [
|
|
1725
|
+
B(t.$slots, "optionAnnotator", ke(_e({ toggleAnnotator: e, isAnnotator: u })), void 0, !0)
|
|
1690
1726
|
]),
|
|
1691
1727
|
key: "10"
|
|
1692
1728
|
} : void 0
|
|
@@ -1703,23 +1739,23 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1703
1739
|
color: l.value.chart.color,
|
|
1704
1740
|
fontFamily: l.value.chart.fontFamily
|
|
1705
1741
|
}),
|
|
1706
|
-
"aria-label":
|
|
1742
|
+
"aria-label": $o.value,
|
|
1707
1743
|
role: "img",
|
|
1708
1744
|
"aria-live": "polite",
|
|
1709
1745
|
preserveAspectRatio: "xMidYMid",
|
|
1710
|
-
onMousemove:
|
|
1746
|
+
onMousemove: yo,
|
|
1711
1747
|
onMouseleave: Dl,
|
|
1712
|
-
onClick:
|
|
1748
|
+
onClick: aa
|
|
1713
1749
|
}, [
|
|
1714
1750
|
p("g", {
|
|
1715
1751
|
ref_key: "G",
|
|
1716
|
-
ref:
|
|
1752
|
+
ref: ja,
|
|
1717
1753
|
class: "vue-data-ui-g"
|
|
1718
1754
|
}, [
|
|
1719
|
-
vl(v(
|
|
1720
|
-
|
|
1755
|
+
vl(v(Za)),
|
|
1756
|
+
t.$slots["chart-background"] ? (n(), r("foreignObject", {
|
|
1721
1757
|
key: 0,
|
|
1722
|
-
x: c.value.left +
|
|
1758
|
+
x: c.value.left + U.value < 0 ? 0 : c.value.left + U.value,
|
|
1723
1759
|
y: c.value.top,
|
|
1724
1760
|
width: c.value.width - (l.value.chart.grid.position === "middle" ? 0 : c.value.width / L.value) < 0 ? 0 : c.value.width - (l.value.chart.grid.position === "middle" ? 0 : c.value.width / L.value),
|
|
1725
1761
|
height: c.value.height < 0 ? 0 : c.value.height,
|
|
@@ -1727,135 +1763,135 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1727
1763
|
pointerEvents: "none"
|
|
1728
1764
|
}
|
|
1729
1765
|
}, [
|
|
1730
|
-
|
|
1731
|
-
], 8,
|
|
1732
|
-
L.value > 0 ? (n(), r("g",
|
|
1733
|
-
p("g",
|
|
1766
|
+
B(t.$slots, "chart-background", {}, void 0, !0)
|
|
1767
|
+
], 8, As)) : h("", !0),
|
|
1768
|
+
L.value > 0 ? (n(), r("g", Cs, [
|
|
1769
|
+
p("g", Ts, [
|
|
1734
1770
|
l.value.chart.grid.labels.xAxis.showBaseline ? (n(), r("line", {
|
|
1735
1771
|
key: 0,
|
|
1736
1772
|
stroke: l.value.chart.grid.stroke,
|
|
1737
1773
|
"stroke-width": "1",
|
|
1738
|
-
x1: c.value.left +
|
|
1739
|
-
x2: c.value.right -
|
|
1740
|
-
y1: v(
|
|
1741
|
-
y2: v(
|
|
1774
|
+
x1: c.value.left + U.value,
|
|
1775
|
+
x2: c.value.right - U.value,
|
|
1776
|
+
y1: v(Y)(c.value.bottom),
|
|
1777
|
+
y2: v(Y)(c.value.bottom),
|
|
1742
1778
|
"stroke-linecap": "round",
|
|
1743
1779
|
style: { animation: "none !important" }
|
|
1744
|
-
}, null, 8,
|
|
1780
|
+
}, null, 8, zs)) : h("", !0),
|
|
1745
1781
|
f.value.useIndividualScale ? l.value.chart.grid.showHorizontalLines ? (n(!0), r(d, { key: 2 }, w(Sl.value, (e) => (n(), r("g", null, [
|
|
1746
1782
|
e.id === I.value && e.yLabels.length ? (n(!0), r(d, { key: 0 }, w(e.yLabels, (u) => (n(), r("line", {
|
|
1747
|
-
x1: c.value.left +
|
|
1748
|
-
x2: c.value.right -
|
|
1749
|
-
y1: v(
|
|
1750
|
-
y2: v(
|
|
1783
|
+
x1: c.value.left + U.value,
|
|
1784
|
+
x2: c.value.right - U.value,
|
|
1785
|
+
y1: v(Y)(u.y),
|
|
1786
|
+
y2: v(Y)(u.y),
|
|
1751
1787
|
stroke: e.color,
|
|
1752
1788
|
"stroke-width": 0.5,
|
|
1753
1789
|
"stroke-linecap": "round",
|
|
1754
1790
|
style: { animation: "none !important" }
|
|
1755
|
-
}, null, 8,
|
|
1756
|
-
x1: c.value.left +
|
|
1757
|
-
x2: c.value.right -
|
|
1758
|
-
y1: v(
|
|
1759
|
-
y2: v(
|
|
1791
|
+
}, null, 8, Vs))), 256)) : e.yLabels.length ? (n(!0), r(d, { key: 1 }, w(e.yLabels, (u) => (n(), r("line", {
|
|
1792
|
+
x1: c.value.left + U.value,
|
|
1793
|
+
x2: c.value.right - U.value,
|
|
1794
|
+
y1: v(Y)(u.y),
|
|
1795
|
+
y2: v(Y)(u.y),
|
|
1760
1796
|
stroke: l.value.chart.grid.stroke,
|
|
1761
1797
|
"stroke-width": 0.5,
|
|
1762
1798
|
"stroke-linecap": "round",
|
|
1763
1799
|
style: { animation: "none !important" }
|
|
1764
|
-
}, null, 8,
|
|
1800
|
+
}, null, 8, Ps))), 256)) : h("", !0)
|
|
1765
1801
|
]))), 256)) : h("", !0) : (n(), r(d, { key: 1 }, [
|
|
1766
1802
|
l.value.chart.grid.labels.yAxis.showBaseline ? (n(), r("line", {
|
|
1767
1803
|
key: 0,
|
|
1768
1804
|
stroke: l.value.chart.grid.stroke,
|
|
1769
1805
|
"stroke-width": "1",
|
|
1770
|
-
x1: c.value.left +
|
|
1771
|
-
x2: c.value.left +
|
|
1772
|
-
y1: v(
|
|
1773
|
-
y2: v(
|
|
1806
|
+
x1: c.value.left + U.value,
|
|
1807
|
+
x2: c.value.left + U.value,
|
|
1808
|
+
y1: v(Y)(c.value.top),
|
|
1809
|
+
y2: v(Y)(c.value.bottom),
|
|
1774
1810
|
"stroke-linecap": "round",
|
|
1775
1811
|
style: { animation: "none !important" }
|
|
1776
|
-
}, null, 8,
|
|
1777
|
-
l.value.chart.grid.showHorizontalLines ? (n(), r("g",
|
|
1778
|
-
(n(!0), r(d, null, w(
|
|
1779
|
-
x1: c.value.left +
|
|
1812
|
+
}, null, 8, Is)) : h("", !0),
|
|
1813
|
+
l.value.chart.grid.showHorizontalLines ? (n(), r("g", Os, [
|
|
1814
|
+
(n(!0), r(d, null, w(na.value, (e) => (n(), r("line", {
|
|
1815
|
+
x1: c.value.left + U.value,
|
|
1780
1816
|
x2: c.value.right,
|
|
1781
|
-
y1: v(
|
|
1782
|
-
y2: v(
|
|
1817
|
+
y1: v(Y)(e.y),
|
|
1818
|
+
y2: v(Y)(e.y),
|
|
1783
1819
|
stroke: l.value.chart.grid.stroke,
|
|
1784
1820
|
"stroke-width": 0.5,
|
|
1785
1821
|
"stroke-linecap": "round",
|
|
1786
1822
|
style: { animation: "none !important" }
|
|
1787
|
-
}, null, 8,
|
|
1823
|
+
}, null, 8, Ns))), 256))
|
|
1788
1824
|
])) : h("", !0)
|
|
1789
1825
|
], 64)),
|
|
1790
|
-
l.value.chart.grid.showVerticalLines ? (n(), r("g",
|
|
1826
|
+
l.value.chart.grid.showVerticalLines ? (n(), r("g", Fs, [
|
|
1791
1827
|
p("path", {
|
|
1792
|
-
d:
|
|
1828
|
+
d: co.value,
|
|
1793
1829
|
"stroke-width": 0.5,
|
|
1794
1830
|
stroke: l.value.chart.grid.stroke,
|
|
1795
1831
|
"stroke-linecap": "round",
|
|
1796
1832
|
style: { animation: "none !important" }
|
|
1797
|
-
}, null, 8,
|
|
1833
|
+
}, null, 8, Rs)
|
|
1798
1834
|
])) : h("", !0),
|
|
1799
|
-
l.value.chart.grid.labels.xAxisLabels.show ? (n(), r("g",
|
|
1835
|
+
l.value.chart.grid.labels.xAxisLabels.show ? (n(), r("g", Bs, [
|
|
1800
1836
|
p("path", {
|
|
1801
|
-
d:
|
|
1837
|
+
d: vo.value,
|
|
1802
1838
|
stroke: l.value.chart.grid.stroke,
|
|
1803
1839
|
"stroke-width": 1,
|
|
1804
1840
|
"stroke-linecap": "round",
|
|
1805
1841
|
style: { animation: "none !important" }
|
|
1806
|
-
}, null, 8,
|
|
1842
|
+
}, null, 8, Hs)
|
|
1807
1843
|
])) : h("", !0)
|
|
1808
1844
|
]),
|
|
1809
|
-
(n(!0), r(d, null, w(
|
|
1845
|
+
(n(!0), r(d, null, w(Ce.value, (e, u) => (n(), r("defs", {
|
|
1810
1846
|
key: `def_rect_${u}`
|
|
1811
1847
|
}, [
|
|
1812
|
-
|
|
1848
|
+
t.$slots["bar-gradient"] ? B(t.$slots, "bar-gradient", tl({
|
|
1813
1849
|
key: 0,
|
|
1814
1850
|
ref_for: !0
|
|
1815
|
-
}, { series: e, positiveId: `rectGradient_pos_${u}_${
|
|
1851
|
+
}, { series: e, positiveId: `rectGradient_pos_${u}_${E.value}`, negativeId: `rectGradient_neg_${u}_${E.value}` }), void 0, !0) : (n(), r(d, { key: 1 }, [
|
|
1816
1852
|
p("linearGradient", {
|
|
1817
|
-
id: `rectGradient_pos_${u}_${
|
|
1853
|
+
id: `rectGradient_pos_${u}_${E.value}`,
|
|
1818
1854
|
x2: "0%",
|
|
1819
1855
|
y2: "100%"
|
|
1820
1856
|
}, [
|
|
1821
1857
|
p("stop", {
|
|
1822
1858
|
offset: "0%",
|
|
1823
1859
|
"stop-color": e.color
|
|
1824
|
-
}, null, 8,
|
|
1860
|
+
}, null, 8, Es),
|
|
1825
1861
|
p("stop", {
|
|
1826
1862
|
offset: "62%",
|
|
1827
1863
|
"stop-color": `${v(ol)(e.color, 0.02)}`
|
|
1828
|
-
}, null, 8,
|
|
1864
|
+
}, null, 8, Ys),
|
|
1829
1865
|
p("stop", {
|
|
1830
1866
|
offset: "100%",
|
|
1831
1867
|
"stop-color": `${v(ol)(e.color, 0.05)}`
|
|
1832
|
-
}, null, 8,
|
|
1833
|
-
], 8,
|
|
1868
|
+
}, null, 8, Ws)
|
|
1869
|
+
], 8, Ds),
|
|
1834
1870
|
p("linearGradient", {
|
|
1835
|
-
id: `rectGradient_neg_${u}_${
|
|
1871
|
+
id: `rectGradient_neg_${u}_${E.value}`,
|
|
1836
1872
|
x2: "0%",
|
|
1837
1873
|
y2: "100%"
|
|
1838
1874
|
}, [
|
|
1839
1875
|
p("stop", {
|
|
1840
1876
|
offset: "0%",
|
|
1841
1877
|
"stop-color": `${v(ol)(e.color, 0.05)}`
|
|
1842
|
-
}, null, 8,
|
|
1878
|
+
}, null, 8, Gs),
|
|
1843
1879
|
p("stop", {
|
|
1844
1880
|
offset: "38%",
|
|
1845
1881
|
"stop-color": `${v(ol)(e.color, 0.02)}`
|
|
1846
|
-
}, null, 8,
|
|
1882
|
+
}, null, 8, Us),
|
|
1847
1883
|
p("stop", {
|
|
1848
1884
|
offset: "100%",
|
|
1849
1885
|
"stop-color": e.color
|
|
1850
|
-
}, null, 8,
|
|
1851
|
-
], 8,
|
|
1886
|
+
}, null, 8, qs)
|
|
1887
|
+
], 8, Xs)
|
|
1852
1888
|
], 64))
|
|
1853
1889
|
]))), 128)),
|
|
1854
|
-
(n(!0), r(d, null, w(
|
|
1890
|
+
(n(!0), r(d, null, w(xe.value, (e, u) => (n(), r("defs", {
|
|
1855
1891
|
key: `def_plot_${u}`
|
|
1856
1892
|
}, [
|
|
1857
1893
|
p("radialGradient", {
|
|
1858
|
-
id: `plotGradient_${u}_${
|
|
1894
|
+
id: `plotGradient_${u}_${E.value}`,
|
|
1859
1895
|
cx: "50%",
|
|
1860
1896
|
cy: "50%",
|
|
1861
1897
|
r: "50%",
|
|
@@ -1865,18 +1901,18 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1865
1901
|
p("stop", {
|
|
1866
1902
|
offset: "0%",
|
|
1867
1903
|
"stop-color": `${v(ol)(e.color, 0.05)}`
|
|
1868
|
-
}, null, 8,
|
|
1904
|
+
}, null, 8, Js),
|
|
1869
1905
|
p("stop", {
|
|
1870
1906
|
offset: "100%",
|
|
1871
1907
|
"stop-color": e.color
|
|
1872
|
-
}, null, 8,
|
|
1873
|
-
], 8,
|
|
1908
|
+
}, null, 8, Ks)
|
|
1909
|
+
], 8, Zs)
|
|
1874
1910
|
]))), 128)),
|
|
1875
|
-
(n(!0), r(d, null, w(
|
|
1911
|
+
(n(!0), r(d, null, w(ae.value, (e, u) => (n(), r("defs", {
|
|
1876
1912
|
key: `def_line_${e.id}`
|
|
1877
1913
|
}, [
|
|
1878
1914
|
p("radialGradient", {
|
|
1879
|
-
id: `lineGradient_${u}_${
|
|
1915
|
+
id: `lineGradient_${u}_${E.value}`,
|
|
1880
1916
|
cx: "50%",
|
|
1881
1917
|
cy: "50%",
|
|
1882
1918
|
r: "50%",
|
|
@@ -1886,18 +1922,18 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1886
1922
|
p("stop", {
|
|
1887
1923
|
offset: "0%",
|
|
1888
1924
|
"stop-color": `${v(ol)(e.color, 0.05)}`
|
|
1889
|
-
}, null, 8,
|
|
1925
|
+
}, null, 8, js),
|
|
1890
1926
|
p("stop", {
|
|
1891
1927
|
offset: "100%",
|
|
1892
1928
|
"stop-color": e.color
|
|
1893
|
-
}, null, 8,
|
|
1894
|
-
], 8,
|
|
1895
|
-
|
|
1929
|
+
}, null, 8, eu)
|
|
1930
|
+
], 8, Qs),
|
|
1931
|
+
t.$slots["area-gradient"] ? B(t.$slots, "area-gradient", tl({
|
|
1896
1932
|
key: 0,
|
|
1897
1933
|
ref_for: !0
|
|
1898
|
-
}, { series: e, id: `areaGradient_${u}_${
|
|
1934
|
+
}, { series: e, id: `areaGradient_${u}_${E.value}` }), void 0, !0) : (n(), r("linearGradient", {
|
|
1899
1935
|
key: 1,
|
|
1900
|
-
id: `areaGradient_${u}_${
|
|
1936
|
+
id: `areaGradient_${u}_${E.value}`,
|
|
1901
1937
|
x1: "0%",
|
|
1902
1938
|
x2: "100%",
|
|
1903
1939
|
y1: "0%",
|
|
@@ -1905,33 +1941,33 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1905
1941
|
}, [
|
|
1906
1942
|
p("stop", {
|
|
1907
1943
|
offset: "0%",
|
|
1908
|
-
"stop-color": `${v(
|
|
1909
|
-
}, null, 8,
|
|
1944
|
+
"stop-color": `${v(ze)(v(ol)(e.color, 0.03), l.value.line.area.opacity)}`
|
|
1945
|
+
}, null, 8, tu),
|
|
1910
1946
|
p("stop", {
|
|
1911
1947
|
offset: "100%",
|
|
1912
|
-
"stop-color": `${v(
|
|
1913
|
-
}, null, 8,
|
|
1914
|
-
], 8,
|
|
1948
|
+
"stop-color": `${v(ze)(e.color, l.value.line.area.opacity)}`
|
|
1949
|
+
}, null, 8, au)
|
|
1950
|
+
], 8, lu))
|
|
1915
1951
|
]))), 128)),
|
|
1916
|
-
(n(!0), r(d, null, w(
|
|
1952
|
+
(n(!0), r(d, null, w(Mo.value, (e) => (n(), r("g", null, [
|
|
1917
1953
|
e.show ? (n(), r(d, { key: 0 }, [
|
|
1918
|
-
(n(!0), r(d, null, w(e.span, (u,
|
|
1954
|
+
(n(!0), r(d, null, w(e.span, (u, a) => (n(), r("g", null, [
|
|
1919
1955
|
p("rect", {
|
|
1920
1956
|
style: $({
|
|
1921
1957
|
transition: "none",
|
|
1922
|
-
opacity: e.from +
|
|
1958
|
+
opacity: e.from + a >= m.value.start && e.from + a <= m.value.end - 1 ? 1 : 0
|
|
1923
1959
|
}),
|
|
1924
|
-
x: c.value.left + c.value.width / L.value * (e.from +
|
|
1960
|
+
x: c.value.left + c.value.width / L.value * (e.from + a - m.value.start),
|
|
1925
1961
|
y: c.value.top,
|
|
1926
1962
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
1927
1963
|
width: c.value.width / L.value < 0 ? 1e-5 : c.value.width / L.value,
|
|
1928
|
-
fill: v(
|
|
1929
|
-
}, null, 12,
|
|
1964
|
+
fill: v(ze)(e.color, e.opacity)
|
|
1965
|
+
}, null, 12, ou)
|
|
1930
1966
|
]))), 256)),
|
|
1931
|
-
(n(!0), r(d, null, w(e.span, (u,
|
|
1932
|
-
e.caption.text &&
|
|
1967
|
+
(n(!0), r(d, null, w(e.span, (u, a) => (n(), r("g", null, [
|
|
1968
|
+
e.caption.text && a === 0 ? (n(), r("foreignObject", {
|
|
1933
1969
|
key: 0,
|
|
1934
|
-
x: c.value.left + c.value.width / L.value * (e.from +
|
|
1970
|
+
x: c.value.left + c.value.width / L.value * (e.from + a - m.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - c.value.width / L.value * e.span / 2),
|
|
1935
1971
|
y: c.value.top + e.caption.offsetY,
|
|
1936
1972
|
style: $({
|
|
1937
1973
|
overflow: "visible",
|
|
@@ -1942,12 +1978,12 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1942
1978
|
}, [
|
|
1943
1979
|
p("div", {
|
|
1944
1980
|
style: $(`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"}`)
|
|
1945
|
-
},
|
|
1946
|
-
], 12,
|
|
1981
|
+
}, te(e.caption.text), 5)
|
|
1982
|
+
], 12, su)) : h("", !0)
|
|
1947
1983
|
]))), 256))
|
|
1948
1984
|
], 64)) : h("", !0)
|
|
1949
1985
|
]))), 256)),
|
|
1950
|
-
|
|
1986
|
+
Xt.value ? (n(), r("g", uu, [
|
|
1951
1987
|
(n(!0), r(d, null, w(L.value, (e, u) => (n(), r("g", {
|
|
1952
1988
|
key: `tooltip_trap_highlighter_${u}`
|
|
1953
1989
|
}, [
|
|
@@ -1956,87 +1992,87 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1956
1992
|
y: c.value.top,
|
|
1957
1993
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
1958
1994
|
width: c.value.width / L.value < 0 ? 1e-5 : c.value.width / L.value,
|
|
1959
|
-
fill: [V.value, _.value, Ze.value].includes(u) ? v(
|
|
1995
|
+
fill: [V.value, _.value, Ze.value].includes(u) ? v(ze)(l.value.chart.highlighter.color, l.value.chart.highlighter.opacity) : "transparent",
|
|
1960
1996
|
style: { transition: "none !important", animation: "none !important" }
|
|
1961
|
-
}, null, 8,
|
|
1997
|
+
}, null, 8, iu)
|
|
1962
1998
|
]))), 128))
|
|
1963
1999
|
])) : h("", !0),
|
|
1964
|
-
|
|
2000
|
+
Ce.value.length ? (n(!0), r(d, { key: 1 }, w(Ce.value, (e, u) => (n(), r("g", {
|
|
1965
2001
|
key: `serie_bar_${e.id}`,
|
|
1966
2002
|
class: ll(`serie_bar_${u}`),
|
|
1967
2003
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1968
2004
|
}, [
|
|
1969
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
2005
|
+
(n(!0), r(d, null, w(e.plots, (a, i) => (n(), r("g", {
|
|
1970
2006
|
key: `bar_plot_${u}_${i}`
|
|
1971
2007
|
}, [
|
|
1972
|
-
|
|
2008
|
+
be(a.value) ? (n(), r("rect", {
|
|
1973
2009
|
key: 0,
|
|
1974
|
-
x: Hl(
|
|
1975
|
-
y: f.value.useIndividualScale ?
|
|
1976
|
-
height: f.value.useIndividualScale ? Math.abs(
|
|
1977
|
-
width:
|
|
2010
|
+
x: Hl(a) + Xl.value / 2,
|
|
2011
|
+
y: f.value.useIndividualScale ? la(a) : ea(a),
|
|
2012
|
+
height: f.value.useIndividualScale ? Math.abs(jt(a)) : Math.abs(Qt(a)),
|
|
2013
|
+
width: Wl.value - Xl.value,
|
|
1978
2014
|
rx: l.value.bar.borderRadius,
|
|
1979
|
-
fill: l.value.bar.useGradient ?
|
|
2015
|
+
fill: l.value.bar.useGradient ? a.value >= 0 ? `url(#rectGradient_pos_${u}_${E.value})` : `url(#rectGradient_neg_${u}_${E.value})` : e.color,
|
|
1980
2016
|
stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
|
|
1981
2017
|
"stroke-width": l.value.bar.border.strokeWidth,
|
|
1982
2018
|
style: $({
|
|
1983
2019
|
transition: v(ie) || !l.value.bar.showTransition ? void 0 : `all ${l.value.bar.transitionDurationMs}ms ease-in-out`
|
|
1984
2020
|
})
|
|
1985
|
-
}, null, 12,
|
|
1986
|
-
|
|
2021
|
+
}, null, 12, nu)) : h("", !0),
|
|
2022
|
+
be(a.value) && t.$slots.pattern ? (n(), r("rect", {
|
|
1987
2023
|
key: 1,
|
|
1988
|
-
x: Hl(
|
|
1989
|
-
y: f.value.useIndividualScale ?
|
|
1990
|
-
height: f.value.useIndividualScale ? Math.abs(
|
|
1991
|
-
width:
|
|
2024
|
+
x: Hl(a) - Xl.value / 2,
|
|
2025
|
+
y: f.value.useIndividualScale ? la(a) : ea(a),
|
|
2026
|
+
height: f.value.useIndividualScale ? Math.abs(jt(a)) : Math.abs(Qt(a)),
|
|
2027
|
+
width: Wl.value - Xl.value,
|
|
1992
2028
|
rx: l.value.bar.borderRadius,
|
|
1993
|
-
fill: `url(#pattern_${
|
|
2029
|
+
fill: `url(#pattern_${E.value}_${e.slotAbsoluteIndex})`,
|
|
1994
2030
|
stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
|
|
1995
2031
|
"stroke-width": l.value.bar.border.strokeWidth,
|
|
1996
2032
|
style: $({ transition: v(ie) || !l.value.bar.showTransition ? void 0 : `all ${l.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
1997
|
-
}, null, 12,
|
|
1998
|
-
|
|
2033
|
+
}, null, 12, ru)) : h("", !0),
|
|
2034
|
+
a.comment && l.value.chart.comments.show ? (n(), r("foreignObject", {
|
|
1999
2035
|
key: 2,
|
|
2000
2036
|
style: { overflow: "visible" },
|
|
2001
2037
|
height: "12",
|
|
2002
|
-
width:
|
|
2003
|
-
x: Hl(
|
|
2004
|
-
y: v(P)(
|
|
2038
|
+
width: Wl.value / 2 + l.value.chart.comments.width,
|
|
2039
|
+
x: Hl(a) - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
|
|
2040
|
+
y: v(P)(a.y) + l.value.chart.comments.offsetY + 6
|
|
2005
2041
|
}, [
|
|
2006
|
-
|
|
2007
|
-
plot: { ...
|
|
2042
|
+
B(t.$slots, "plot-comment", {
|
|
2043
|
+
plot: { ...a, color: e.color, seriesIndex: u, datapointIndex: i }
|
|
2008
2044
|
}, void 0, !0)
|
|
2009
|
-
], 8,
|
|
2045
|
+
], 8, cu)) : h("", !0)
|
|
2010
2046
|
]))), 128))
|
|
2011
2047
|
], 6))), 128)) : h("", !0),
|
|
2012
2048
|
!f.value.useIndividualScale && l.value.chart.grid.labels.zeroLine.show ? (n(), r("line", {
|
|
2013
2049
|
key: 2,
|
|
2014
2050
|
stroke: l.value.chart.grid.stroke,
|
|
2015
2051
|
"stroke-width": "1",
|
|
2016
|
-
x1: c.value.left +
|
|
2052
|
+
x1: c.value.left + U.value,
|
|
2017
2053
|
x2: c.value.right,
|
|
2018
|
-
y1: v(
|
|
2019
|
-
y2: v(
|
|
2054
|
+
y1: v(Y)(ne.value),
|
|
2055
|
+
y2: v(Y)(ne.value),
|
|
2020
2056
|
"stroke-linecap": "round",
|
|
2021
2057
|
style: { animation: "none !important" }
|
|
2022
|
-
}, null, 8,
|
|
2023
|
-
l.value.chart.highlighter.useLine && (![null, void 0].includes(_.value) || ![null, void 0].includes(V.value)) ? (n(), r("g",
|
|
2058
|
+
}, null, 8, vu)) : h("", !0),
|
|
2059
|
+
l.value.chart.highlighter.useLine && (![null, void 0].includes(_.value) || ![null, void 0].includes(V.value)) ? (n(), r("g", du, [
|
|
2024
2060
|
p("line", {
|
|
2025
2061
|
x1: c.value.left + c.value.width / L.value * ((_.value !== null ? _.value : 0) || (V.value !== null ? V.value : 0)) + c.value.width / L.value / 2,
|
|
2026
2062
|
x2: c.value.left + c.value.width / L.value * ((_.value !== null ? _.value : 0) || (V.value !== null ? V.value : 0)) + c.value.width / L.value / 2,
|
|
2027
|
-
y1: v(
|
|
2028
|
-
y2: v(
|
|
2063
|
+
y1: v(Y)(c.value.top),
|
|
2064
|
+
y2: v(Y)(c.value.bottom),
|
|
2029
2065
|
stroke: l.value.chart.highlighter.color,
|
|
2030
2066
|
"stroke-width": l.value.chart.highlighter.lineWidth,
|
|
2031
2067
|
"stroke-dasharray": l.value.chart.highlighter.lineDasharray,
|
|
2032
2068
|
"stroke-linecap": "round",
|
|
2033
2069
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
2034
|
-
}, null, 8,
|
|
2070
|
+
}, null, 8, hu)
|
|
2035
2071
|
])) : h("", !0),
|
|
2036
2072
|
l.value.chart.grid.frame.show ? (n(), r("rect", {
|
|
2037
2073
|
key: 4,
|
|
2038
2074
|
style: { pointerEvents: "none", transition: "none", animation: "none !important" },
|
|
2039
|
-
x: c.value.left +
|
|
2075
|
+
x: c.value.left + U.value < 0 ? 0 : c.value.left + U.value,
|
|
2040
2076
|
y: c.value.top,
|
|
2041
2077
|
width: c.value.width - (l.value.chart.grid.position === "middle" ? 0 : c.value.width / L.value) < 0 ? 0 : c.value.width - (l.value.chart.grid.position === "middle" ? 0 : c.value.width / L.value),
|
|
2042
2078
|
height: c.value.height < 0 ? 0 : c.value.height,
|
|
@@ -2046,24 +2082,24 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2046
2082
|
"stroke-linecap": l.value.chart.grid.frame.strokeLinecap,
|
|
2047
2083
|
"stroke-linejoin": l.value.chart.grid.frame.strokeLinejoin,
|
|
2048
2084
|
"stroke-dasharray": l.value.chart.grid.frame.strokeDasharray
|
|
2049
|
-
}, null, 8,
|
|
2085
|
+
}, null, 8, fu)) : h("", !0),
|
|
2050
2086
|
l.value.chart.grid.labels.show ? (n(), r("g", {
|
|
2051
2087
|
key: 5,
|
|
2052
2088
|
ref_key: "scaleLabels",
|
|
2053
|
-
ref:
|
|
2089
|
+
ref: at
|
|
2054
2090
|
}, [
|
|
2055
2091
|
f.value.useIndividualScale ? (n(), r(d, { key: 0 }, [
|
|
2056
2092
|
(n(!0), r(d, null, w(Sl.value, (e) => (n(), r("g", null, [
|
|
2057
2093
|
p("line", {
|
|
2058
|
-
x1: e.x +
|
|
2059
|
-
x2: e.x +
|
|
2060
|
-
y1: f.value.isStacked ? v(
|
|
2061
|
-
y2: f.value.isStacked ? v(
|
|
2094
|
+
x1: e.x + U.value - c.value.individualOffsetX,
|
|
2095
|
+
x2: e.x + U.value - c.value.individualOffsetX,
|
|
2096
|
+
y1: f.value.isStacked ? v(Y)(c.value.bottom - e.yOffset - e.individualHeight) : v(Y)(c.value.top),
|
|
2097
|
+
y2: f.value.isStacked ? v(Y)(c.value.bottom - e.yOffset) : v(Y)(c.value.bottom),
|
|
2062
2098
|
stroke: e.color,
|
|
2063
2099
|
"stroke-width": l.value.chart.grid.stroke,
|
|
2064
2100
|
"stroke-linecap": "round",
|
|
2065
2101
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
2066
|
-
}, null, 12,
|
|
2102
|
+
}, null, 12, gu)
|
|
2067
2103
|
]))), 256)),
|
|
2068
2104
|
(n(!0), r(d, null, w(Sl.value, (e) => (n(), r("g", {
|
|
2069
2105
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
@@ -2072,108 +2108,108 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2072
2108
|
fill: e.color,
|
|
2073
2109
|
"font-size": y.value.dataLabels * 0.8,
|
|
2074
2110
|
"text-anchor": "middle",
|
|
2075
|
-
transform: `translate(${e.x - y.value.dataLabels * 0.8 / 2 +
|
|
2076
|
-
},
|
|
2077
|
-
${e.scaleLabel}` : ""), 9,
|
|
2078
|
-
(n(!0), r(d, null, w(e.yLabels, (u,
|
|
2111
|
+
transform: `translate(${e.x - y.value.dataLabels * 0.8 / 2 + U.value}, ${f.value.isStacked ? c.value.bottom - e.yOffset - e.individualHeight / 2 : c.value.top + c.value.height / 2}) rotate(-90)`
|
|
2112
|
+
}, te(e.name) + " " + te(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
|
|
2113
|
+
${e.scaleLabel}` : ""), 9, mu),
|
|
2114
|
+
(n(!0), r(d, null, w(e.yLabels, (u, a) => (n(), r(d, null, [
|
|
2079
2115
|
l.value.chart.grid.labels.yAxis.showCrosshairs ? (n(), r("line", {
|
|
2080
2116
|
key: 0,
|
|
2081
|
-
x1: e.x + 3 +
|
|
2082
|
-
x2: e.x +
|
|
2083
|
-
y1: v(
|
|
2084
|
-
y2: v(
|
|
2117
|
+
x1: e.x + 3 + U.value - l.value.chart.grid.labels.yAxis.crosshairSize - c.value.individualOffsetX,
|
|
2118
|
+
x2: e.x + U.value - c.value.individualOffsetX,
|
|
2119
|
+
y1: v(Y)(u.y),
|
|
2120
|
+
y2: v(Y)(u.y),
|
|
2085
2121
|
stroke: e.color,
|
|
2086
2122
|
"stroke-width": 1,
|
|
2087
2123
|
"stroke-linecap": "round",
|
|
2088
2124
|
style: { animation: "none !important" }
|
|
2089
|
-
}, null, 8,
|
|
2125
|
+
}, null, 8, bu)) : h("", !0)
|
|
2090
2126
|
], 64))), 256)),
|
|
2091
|
-
(n(!0), r(d, null, w(e.yLabels, (u,
|
|
2092
|
-
x: e.x - 5 +
|
|
2093
|
-
y: v(
|
|
2127
|
+
(n(!0), r(d, null, w(e.yLabels, (u, a) => (n(), r("text", {
|
|
2128
|
+
x: e.x - 5 + U.value - c.value.individualOffsetX,
|
|
2129
|
+
y: v(Y)(u.y) + y.value.dataLabels / 3,
|
|
2094
2130
|
"font-size": y.value.dataLabels,
|
|
2095
2131
|
"text-anchor": "end",
|
|
2096
2132
|
fill: e.color
|
|
2097
|
-
},
|
|
2133
|
+
}, te(v(se)(
|
|
2098
2134
|
l.value.chart.grid.labels.yAxis.formatter,
|
|
2099
2135
|
u.value,
|
|
2100
|
-
v(
|
|
2136
|
+
v(Fe)({
|
|
2101
2137
|
p: u.prefix,
|
|
2102
2138
|
v: u.value,
|
|
2103
2139
|
s: u.suffix,
|
|
2104
2140
|
r: l.value.chart.grid.labels.yAxis.rounding
|
|
2105
2141
|
}),
|
|
2106
|
-
{ datapoint: u.datapoint, seriesIndex:
|
|
2107
|
-
)), 9,
|
|
2142
|
+
{ datapoint: u.datapoint, seriesIndex: a }
|
|
2143
|
+
)), 9, xu))), 256))
|
|
2108
2144
|
], 4))), 256))
|
|
2109
|
-
], 64)) : (n(!0), r(d, { key: 1 }, w(
|
|
2145
|
+
], 64)) : (n(!0), r(d, { key: 1 }, w(na.value, (e, u) => (n(), r("g", {
|
|
2110
2146
|
key: `yLabel_${u}`
|
|
2111
2147
|
}, [
|
|
2112
|
-
|
|
2148
|
+
be(e) && e.value >= Ae.value.min && e.value <= Ae.value.max && l.value.chart.grid.labels.yAxis.showCrosshairs ? (n(), r("line", {
|
|
2113
2149
|
key: 0,
|
|
2114
|
-
x1: c.value.left +
|
|
2115
|
-
x2: c.value.left +
|
|
2116
|
-
y1: v(
|
|
2117
|
-
y2: v(
|
|
2150
|
+
x1: c.value.left + U.value,
|
|
2151
|
+
x2: c.value.left + U.value - l.value.chart.grid.labels.yAxis.crosshairSize,
|
|
2152
|
+
y1: v(Y)(e.y),
|
|
2153
|
+
y2: v(Y)(e.y),
|
|
2118
2154
|
stroke: l.value.chart.grid.stroke,
|
|
2119
2155
|
"stroke-width": "1",
|
|
2120
2156
|
"stroke-linecap": "round",
|
|
2121
2157
|
style: { animation: "none !important" }
|
|
2122
|
-
}, null, 8,
|
|
2123
|
-
e.value >=
|
|
2158
|
+
}, null, 8, pu)) : h("", !0),
|
|
2159
|
+
e.value >= Ae.value.min && e.value <= Ae.value.max ? (n(), r("text", {
|
|
2124
2160
|
key: 1,
|
|
2125
2161
|
x: c.value.scaleLabelX - l.value.chart.grid.labels.yAxis.crosshairSize,
|
|
2126
2162
|
y: v(P)(e.y + y.value.dataLabels / 3),
|
|
2127
2163
|
"font-size": y.value.dataLabels,
|
|
2128
2164
|
"text-anchor": "end",
|
|
2129
2165
|
fill: l.value.chart.grid.labels.color
|
|
2130
|
-
},
|
|
2166
|
+
}, te(be(e.value) ? v(se)(
|
|
2131
2167
|
l.value.chart.grid.labels.yAxis.formatter,
|
|
2132
2168
|
e.value,
|
|
2133
|
-
v(
|
|
2169
|
+
v(Fe)({
|
|
2134
2170
|
p: e.prefix,
|
|
2135
2171
|
v: e.value,
|
|
2136
2172
|
s: e.suffix,
|
|
2137
2173
|
r: l.value.chart.grid.labels.yAxis.rounding
|
|
2138
2174
|
})
|
|
2139
|
-
) : ""), 9,
|
|
2175
|
+
) : ""), 9, yu)) : h("", !0)
|
|
2140
2176
|
]))), 128))
|
|
2141
2177
|
], 512)) : h("", !0),
|
|
2142
|
-
(n(!0), r(d, null, w(
|
|
2178
|
+
(n(!0), r(d, null, w(xe.value, (e, u) => (n(), r("g", {
|
|
2143
2179
|
key: `serie_plot_${e.id}`,
|
|
2144
2180
|
class: ll(`serie_plot_${u}`),
|
|
2145
2181
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2146
2182
|
}, [
|
|
2147
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
2183
|
+
(n(!0), r(d, null, w(e.plots, (a, i) => (n(), r("g", {
|
|
2148
2184
|
key: `circle_plot_${u}_${i}`
|
|
2149
2185
|
}, [
|
|
2150
|
-
|
|
2186
|
+
a && be(a.value) ? (n(), Te(Ql, {
|
|
2151
2187
|
key: 0,
|
|
2152
2188
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
2153
|
-
color: l.value.plot.useGradient ? `url(#plotGradient_${u}_${
|
|
2154
|
-
plot: { x: v(P)(
|
|
2155
|
-
radius: _.value !== null && _.value === i || V.value !== null && V.value === i ? (
|
|
2189
|
+
color: l.value.plot.useGradient ? `url(#plotGradient_${u}_${E.value})` : l.value.plot.dot.useSerieColor ? e.color : l.value.plot.dot.fill,
|
|
2190
|
+
plot: { x: v(P)(a.x), y: v(P)(a.y) },
|
|
2191
|
+
radius: _.value !== null && _.value === i || V.value !== null && V.value === i ? (Le.value.plot || 6) * 1.5 : Le.value.plot || 6,
|
|
2156
2192
|
stroke: l.value.plot.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
|
|
2157
2193
|
strokeWidth: l.value.plot.dot.strokeWidth,
|
|
2158
2194
|
transition: v(ie) || !l.value.plot.showTransition || _.value !== null && _.value === i || V.value !== null && V.value === i ? void 0 : `all ${l.value.plot.transitionDurationMs}ms ease-in-out`
|
|
2159
2195
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : h("", !0),
|
|
2160
|
-
|
|
2196
|
+
a.comment && l.value.chart.comments.show ? (n(), r("foreignObject", {
|
|
2161
2197
|
key: 1,
|
|
2162
2198
|
style: { overflow: "visible" },
|
|
2163
2199
|
height: "12",
|
|
2164
2200
|
width: l.value.chart.comments.width,
|
|
2165
|
-
x:
|
|
2166
|
-
y:
|
|
2201
|
+
x: a.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
|
|
2202
|
+
y: a.y + l.value.chart.comments.offsetY + 6
|
|
2167
2203
|
}, [
|
|
2168
|
-
p("div",
|
|
2169
|
-
|
|
2170
|
-
plot: { ...
|
|
2204
|
+
p("div", _u, [
|
|
2205
|
+
B(t.$slots, "plot-comment", {
|
|
2206
|
+
plot: { ...a, color: e.color, seriesIndex: u, datapointIndex: i }
|
|
2171
2207
|
}, void 0, !0)
|
|
2172
2208
|
])
|
|
2173
|
-
], 8,
|
|
2209
|
+
], 8, ku)) : h("", !0)
|
|
2174
2210
|
]))), 128))
|
|
2175
2211
|
], 6))), 128)),
|
|
2176
|
-
(n(!0), r(d, null, w(
|
|
2212
|
+
(n(!0), r(d, null, w(ae.value, (e, u) => (n(), r("g", {
|
|
2177
2213
|
key: `serie_line_${e.id}`,
|
|
2178
2214
|
class: ll(`serie_line_${u}`),
|
|
2179
2215
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
@@ -2186,7 +2222,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2186
2222
|
"stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
|
|
2187
2223
|
fill: "none",
|
|
2188
2224
|
style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2189
|
-
}, null, 12,
|
|
2225
|
+
}, null, 12, wu)) : e.plots.length > 1 && e.straight ? (n(), r("path", {
|
|
2190
2226
|
key: 1,
|
|
2191
2227
|
d: `M${e.straight}`,
|
|
2192
2228
|
stroke: l.value.chart.backgroundColor,
|
|
@@ -2196,15 +2232,15 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2196
2232
|
"stroke-linecap": "round",
|
|
2197
2233
|
"stroke-linejoin": "round",
|
|
2198
2234
|
style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2199
|
-
}, null, 12,
|
|
2235
|
+
}, null, 12, Su)) : h("", !0)
|
|
2200
2236
|
], 6))), 128)),
|
|
2201
|
-
|
|
2202
|
-
(n(!0), r(d, null, w(
|
|
2237
|
+
t.$slots.pattern ? (n(), r("defs", $u, [
|
|
2238
|
+
(n(!0), r(d, null, w(Be.value, (e, u) => B(t.$slots, "pattern", tl({
|
|
2203
2239
|
key: `serie_pattern_slot_${e.id}`
|
|
2204
|
-
}, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${
|
|
2240
|
+
}, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${E.value}_${u}` }), void 0, !0)), 128))
|
|
2205
2241
|
])) : h("", !0),
|
|
2206
|
-
|
|
2207
|
-
(n(!0), r(d, null, w(
|
|
2242
|
+
va.value.length && !f.value.isStacked ? (n(), r("g", Lu, [
|
|
2243
|
+
(n(!0), r(d, null, w(va.value, (e) => (n(), r("path", {
|
|
2208
2244
|
key: e.key,
|
|
2209
2245
|
d: e.d,
|
|
2210
2246
|
fill: e.color,
|
|
@@ -2212,40 +2248,40 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2212
2248
|
stroke: "none",
|
|
2213
2249
|
"pointer-events": "none",
|
|
2214
2250
|
style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2215
|
-
}, null, 12,
|
|
2251
|
+
}, null, 12, Mu))), 128))
|
|
2216
2252
|
])) : h("", !0),
|
|
2217
|
-
(n(!0), r(d, null, w(
|
|
2253
|
+
(n(!0), r(d, null, w(ae.value, (e, u) => (n(), r("g", {
|
|
2218
2254
|
key: `serie_line_above_${e.id}`,
|
|
2219
2255
|
class: ll(`serie_line_${u}`),
|
|
2220
2256
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2221
2257
|
}, [
|
|
2222
|
-
e.useArea && e.plots.length > 1 ? (n(), r("g",
|
|
2223
|
-
e.smooth ? (n(!0), r(d, { key: 0 }, w(e.curveAreas, (
|
|
2224
|
-
|
|
2258
|
+
e.useArea && e.plots.length > 1 ? (n(), r("g", Au, [
|
|
2259
|
+
e.smooth ? (n(!0), r(d, { key: 0 }, w(e.curveAreas, (a, i) => (n(), r(d, { key: i }, [
|
|
2260
|
+
a ? (n(), r("path", {
|
|
2225
2261
|
key: 0,
|
|
2226
|
-
d:
|
|
2227
|
-
fill: l.value.line.area.useGradient ? `url(#areaGradient_${u}_${
|
|
2262
|
+
d: a,
|
|
2263
|
+
fill: l.value.line.area.useGradient ? `url(#areaGradient_${u}_${E.value})` : v(ze)(e.color, l.value.line.area.opacity),
|
|
2228
2264
|
style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2229
|
-
}, null, 12,
|
|
2230
|
-
|
|
2265
|
+
}, null, 12, Cu)) : h("", !0),
|
|
2266
|
+
t.$slots.pattern && a ? (n(), r("path", {
|
|
2231
2267
|
key: 1,
|
|
2232
|
-
d:
|
|
2233
|
-
fill: `url(#pattern_${
|
|
2268
|
+
d: a,
|
|
2269
|
+
fill: `url(#pattern_${E.value}_${e.slotAbsoluteIndex})`,
|
|
2234
2270
|
style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2235
|
-
}, null, 12,
|
|
2236
|
-
], 64))), 128)) : (n(!0), r(d, { key: 1 }, w(e.area.split(";"), (
|
|
2237
|
-
|
|
2271
|
+
}, null, 12, Tu)) : h("", !0)
|
|
2272
|
+
], 64))), 128)) : (n(!0), r(d, { key: 1 }, w(e.area.split(";"), (a, i) => (n(), r(d, { key: i }, [
|
|
2273
|
+
a ? (n(), r("path", {
|
|
2238
2274
|
key: 0,
|
|
2239
|
-
d: `M${
|
|
2240
|
-
fill: l.value.line.area.useGradient ? `url(#areaGradient_${u}_${
|
|
2275
|
+
d: `M${a}Z`,
|
|
2276
|
+
fill: l.value.line.area.useGradient ? `url(#areaGradient_${u}_${E.value})` : v(ze)(e.color, l.value.line.area.opacity),
|
|
2241
2277
|
style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2242
|
-
}, null, 12,
|
|
2243
|
-
|
|
2278
|
+
}, null, 12, zu)) : h("", !0),
|
|
2279
|
+
t.$slots.pattern && a ? (n(), r("path", {
|
|
2244
2280
|
key: 1,
|
|
2245
|
-
d: `M${
|
|
2246
|
-
fill: `url(#pattern_${
|
|
2281
|
+
d: `M${a}Z`,
|
|
2282
|
+
fill: `url(#pattern_${E.value}_${e.slotAbsoluteIndex})`,
|
|
2247
2283
|
style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2248
|
-
}, null, 12,
|
|
2284
|
+
}, null, 12, Iu)) : h("", !0)
|
|
2249
2285
|
], 64))), 128))
|
|
2250
2286
|
])) : h("", !0),
|
|
2251
2287
|
e.smooth && e.plots.length > 1 && e.curve ? (n(), r("path", {
|
|
@@ -2257,7 +2293,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2257
2293
|
fill: "none",
|
|
2258
2294
|
"stroke-linecap": "round",
|
|
2259
2295
|
style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2260
|
-
}, null, 12,
|
|
2296
|
+
}, null, 12, Ou)) : e.plots.length > 1 && e.straight ? (n(), r("path", {
|
|
2261
2297
|
key: 2,
|
|
2262
2298
|
d: `M${e.straight}`,
|
|
2263
2299
|
stroke: e.color,
|
|
@@ -2267,117 +2303,117 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2267
2303
|
"stroke-linecap": "round",
|
|
2268
2304
|
"stroke-linejoin": "round",
|
|
2269
2305
|
style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2270
|
-
}, null, 12,
|
|
2271
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
2306
|
+
}, null, 12, Nu)) : h("", !0),
|
|
2307
|
+
(n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
|
|
2272
2308
|
key: `circle_line_${u}_${i}`
|
|
2273
2309
|
}, [
|
|
2274
|
-
!
|
|
2310
|
+
!ua.value.linePlot && a && be(a.value) || ua.value.linePlot && a && be(a.value) && (_.value !== null && _.value === i || V.value !== null && V.value === i) || ca(e.plots, i) ? (n(), Te(Ql, {
|
|
2275
2311
|
key: 0,
|
|
2276
2312
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
2277
|
-
color: l.value.line.useGradient ? `url(#lineGradient_${u}_${
|
|
2278
|
-
plot: { x: v(P)(
|
|
2279
|
-
radius: _.value !== null && _.value === i || V.value !== null && V.value === i ? (
|
|
2313
|
+
color: l.value.line.useGradient ? `url(#lineGradient_${u}_${E.value})` : l.value.line.dot.useSerieColor ? e.color : l.value.line.dot.fill,
|
|
2314
|
+
plot: { x: v(P)(a.x), y: v(P)(a.y) },
|
|
2315
|
+
radius: _.value !== null && _.value === i || V.value !== null && V.value === i ? (Le.value.line || 6) * 1.5 : (ca(e.plots, i), Le.value.line || 6),
|
|
2280
2316
|
stroke: l.value.line.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
|
|
2281
2317
|
strokeWidth: l.value.line.dot.strokeWidth,
|
|
2282
2318
|
transition: v(ie) || !l.value.line.showTransition || _.value !== null && _.value === i || V.value !== null && V.value === i ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out`
|
|
2283
2319
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : h("", !0),
|
|
2284
|
-
|
|
2320
|
+
a.comment && l.value.chart.comments.show ? (n(), r("foreignObject", {
|
|
2285
2321
|
key: 1,
|
|
2286
2322
|
style: { overflow: "visible" },
|
|
2287
2323
|
height: "12",
|
|
2288
2324
|
width: l.value.chart.comments.width,
|
|
2289
|
-
x:
|
|
2290
|
-
y:
|
|
2325
|
+
x: a.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
|
|
2326
|
+
y: a.y + l.value.chart.comments.offsetY + 6
|
|
2291
2327
|
}, [
|
|
2292
|
-
p("div",
|
|
2293
|
-
|
|
2294
|
-
plot: { ...
|
|
2328
|
+
p("div", Pu, [
|
|
2329
|
+
B(t.$slots, "plot-comment", {
|
|
2330
|
+
plot: { ...a, color: e.color, seriesIndex: u, datapointIndex: i }
|
|
2295
2331
|
}, void 0, !0)
|
|
2296
2332
|
])
|
|
2297
|
-
], 8,
|
|
2333
|
+
], 8, Vu)) : h("", !0)
|
|
2298
2334
|
], 64))), 128))
|
|
2299
2335
|
], 6))), 128)),
|
|
2300
|
-
(l.value.bar.labels.show || l.value.bar.serieName.show) && f.value.dataLabels.show ? (n(), r("g",
|
|
2301
|
-
(n(!0), r(d, null, w(
|
|
2336
|
+
(l.value.bar.labels.show || l.value.bar.serieName.show) && f.value.dataLabels.show ? (n(), r("g", Fu, [
|
|
2337
|
+
(n(!0), r(d, null, w(Ce.value, (e, u) => (n(), r(d, {
|
|
2302
2338
|
key: `xLabel_bar_${e.id}`
|
|
2303
2339
|
}, [
|
|
2304
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
2340
|
+
(n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
|
|
2305
2341
|
key: `xLabel_bar_${u}_${i}`
|
|
2306
2342
|
}, [
|
|
2307
|
-
|
|
2343
|
+
a && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === i || V.value !== null && V.value === i) && l.value.bar.labels.show ? (n(), r("text", {
|
|
2308
2344
|
key: 0,
|
|
2309
|
-
x: f.value.useIndividualScale && f.value.isStacked ?
|
|
2310
|
-
y: v(P)(
|
|
2345
|
+
x: f.value.useIndividualScale && f.value.isStacked ? a.x + Z.value.line / 2 : Hl(a) + Ee() / 2 - Yl.value / 2,
|
|
2346
|
+
y: v(P)(a.y) + (a.value >= 0 ? l.value.bar.labels.offsetY : -l.value.bar.labels.offsetY * 3),
|
|
2311
2347
|
"text-anchor": "middle",
|
|
2312
2348
|
"font-size": y.value.plotLabels,
|
|
2313
2349
|
fill: l.value.bar.labels.color,
|
|
2314
2350
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2315
|
-
},
|
|
2351
|
+
}, te(be(a.value) ? v(se)(
|
|
2316
2352
|
l.value.bar.labels.formatter,
|
|
2317
|
-
|
|
2318
|
-
v(
|
|
2353
|
+
a.value,
|
|
2354
|
+
v(Fe)({
|
|
2319
2355
|
p: e.prefix || l.value.chart.labels.prefix,
|
|
2320
|
-
v:
|
|
2356
|
+
v: a.value,
|
|
2321
2357
|
s: e.suffix || l.value.chart.labels.suffix,
|
|
2322
2358
|
r: l.value.bar.labels.rounding
|
|
2323
2359
|
}),
|
|
2324
2360
|
{
|
|
2325
|
-
datapoint:
|
|
2361
|
+
datapoint: a,
|
|
2326
2362
|
serie: e
|
|
2327
2363
|
}
|
|
2328
|
-
) : ""), 13,
|
|
2329
|
-
|
|
2364
|
+
) : ""), 13, Ru)) : h("", !0),
|
|
2365
|
+
a && l.value.bar.serieName.show ? (n(), r("text", {
|
|
2330
2366
|
key: 1,
|
|
2331
|
-
x: f.value.useIndividualScale && f.value.isStacked ?
|
|
2332
|
-
y:
|
|
2367
|
+
x: f.value.useIndividualScale && f.value.isStacked ? a.x + Z.value.line / 2 : a.x + Ee() * 1.1,
|
|
2368
|
+
y: a.y + (a.value > 0 ? l.value.bar.serieName.offsetY : -l.value.bar.serieName.offsetY * 3),
|
|
2333
2369
|
"text-anchor": "middle",
|
|
2334
2370
|
"font-size": y.value.plotLabels,
|
|
2335
2371
|
fill: l.value.bar.serieName.useSerieColor ? e.color : l.value.bar.serieName.color,
|
|
2336
2372
|
"font-weight": l.value.bar.serieName.bold ? "bold" : "normal",
|
|
2337
2373
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2338
|
-
},
|
|
2374
|
+
}, te(l.value.bar.serieName.useAbbreviation ? v(ss)({
|
|
2339
2375
|
source: e.name,
|
|
2340
2376
|
length: l.value.bar.serieName.abbreviationSize
|
|
2341
|
-
}) : e.name), 13,
|
|
2377
|
+
}) : e.name), 13, Bu)) : h("", !0)
|
|
2342
2378
|
], 64))), 128))
|
|
2343
2379
|
], 64))), 128))
|
|
2344
2380
|
])) : h("", !0),
|
|
2345
|
-
l.value.plot.labels.show && f.value.dataLabels.show ? (n(), r("g",
|
|
2346
|
-
(n(!0), r(d, null, w(
|
|
2381
|
+
l.value.plot.labels.show && f.value.dataLabels.show ? (n(), r("g", Hu, [
|
|
2382
|
+
(n(!0), r(d, null, w(xe.value, (e, u) => (n(), r(d, {
|
|
2347
2383
|
key: `xLabel_plot_${e.id}`
|
|
2348
2384
|
}, [
|
|
2349
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
2385
|
+
(n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
|
|
2350
2386
|
key: `xLabel_plot_${u}_${i}`
|
|
2351
2387
|
}, [
|
|
2352
|
-
|
|
2388
|
+
a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === i || V.value !== null && V.value === i ? (n(), r("text", {
|
|
2353
2389
|
key: 0,
|
|
2354
|
-
x:
|
|
2355
|
-
y:
|
|
2390
|
+
x: a.x,
|
|
2391
|
+
y: a.y + l.value.plot.labels.offsetY,
|
|
2356
2392
|
"text-anchor": "middle",
|
|
2357
2393
|
"font-size": y.value.plotLabels,
|
|
2358
2394
|
fill: l.value.plot.labels.color,
|
|
2359
2395
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2360
|
-
},
|
|
2396
|
+
}, te(be(a.value) ? v(se)(
|
|
2361
2397
|
l.value.plot.labels.formatter,
|
|
2362
|
-
|
|
2363
|
-
v(
|
|
2398
|
+
a.value,
|
|
2399
|
+
v(Fe)({
|
|
2364
2400
|
p: e.prefix || l.value.chart.labels.prefix,
|
|
2365
|
-
v:
|
|
2401
|
+
v: a.value,
|
|
2366
2402
|
s: e.suffix || l.value.chart.labels.suffix,
|
|
2367
2403
|
r: l.value.plot.labels.rounding
|
|
2368
2404
|
}),
|
|
2369
2405
|
{
|
|
2370
|
-
datapoint:
|
|
2406
|
+
datapoint: a,
|
|
2371
2407
|
serie: e
|
|
2372
2408
|
}
|
|
2373
|
-
) : ""), 13,
|
|
2409
|
+
) : ""), 13, Du)) : h("", !0)
|
|
2374
2410
|
], 64))), 128))
|
|
2375
2411
|
], 64))), 128))
|
|
2376
|
-
])) : (n(), r("g",
|
|
2377
|
-
(n(!0), r(d, null, w(
|
|
2412
|
+
])) : (n(), r("g", Eu, [
|
|
2413
|
+
(n(!0), r(d, null, w(xe.value, (e, u) => (n(), r(d, {
|
|
2378
2414
|
key: `xLabel_plot_${e.id}`
|
|
2379
2415
|
}, [
|
|
2380
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
2416
|
+
(n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
|
|
2381
2417
|
key: `xLabel_plot_${u}_${i}`
|
|
2382
2418
|
}, [
|
|
2383
2419
|
l.value.plot.tag.followValue ? (n(), r(d, { key: 1 }, [
|
|
@@ -2386,98 +2422,98 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2386
2422
|
class: "vue-ui-xy-tag-plot",
|
|
2387
2423
|
x1: c.value.left,
|
|
2388
2424
|
x2: c.value.right,
|
|
2389
|
-
y1:
|
|
2390
|
-
y2:
|
|
2425
|
+
y1: a.y,
|
|
2426
|
+
y2: a.y,
|
|
2391
2427
|
"stroke-width": 1,
|
|
2392
2428
|
"stroke-linecap": "round",
|
|
2393
2429
|
"stroke-dasharray": "2",
|
|
2394
2430
|
stroke: e.color
|
|
2395
|
-
}, null, 8,
|
|
2431
|
+
}, null, 8, Uu)) : h("", !0)
|
|
2396
2432
|
], 64)) : (n(), r(d, { key: 0 }, [
|
|
2397
|
-
|
|
2433
|
+
a && i === 0 && e.useTag && e.useTag === "start" ? (n(), r("foreignObject", {
|
|
2398
2434
|
key: 0,
|
|
2399
|
-
x:
|
|
2400
|
-
y:
|
|
2435
|
+
x: a.x,
|
|
2436
|
+
y: a.y - 20,
|
|
2401
2437
|
height: 24,
|
|
2402
2438
|
width: "150",
|
|
2403
2439
|
style: $(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2404
2440
|
}, [
|
|
2405
2441
|
p("div", {
|
|
2406
|
-
style: $(`padding: 3px; background:${v(
|
|
2442
|
+
style: $(`padding: 3px; background:${v(ze)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
|
|
2407
2443
|
innerHTML: v(se)(
|
|
2408
2444
|
l.value.plot.tag.formatter,
|
|
2409
|
-
|
|
2445
|
+
a.value,
|
|
2410
2446
|
e.name,
|
|
2411
2447
|
{
|
|
2412
|
-
datapoint:
|
|
2448
|
+
datapoint: a,
|
|
2413
2449
|
seriesIndex: i,
|
|
2414
2450
|
serieName: e.name
|
|
2415
2451
|
}
|
|
2416
2452
|
)
|
|
2417
|
-
}, null, 12,
|
|
2418
|
-
], 12,
|
|
2419
|
-
|
|
2453
|
+
}, null, 12, Wu)
|
|
2454
|
+
], 12, Yu)) : h("", !0),
|
|
2455
|
+
a && i === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (n(), r("foreignObject", {
|
|
2420
2456
|
key: 1,
|
|
2421
|
-
x:
|
|
2422
|
-
y:
|
|
2457
|
+
x: a.x - e.name.length * (y.value.plotLabels / 2),
|
|
2458
|
+
y: a.y - 20,
|
|
2423
2459
|
height: 24,
|
|
2424
2460
|
width: "150",
|
|
2425
2461
|
style: $(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2426
2462
|
}, [
|
|
2427
2463
|
p("div", {
|
|
2428
|
-
style: $(`padding: 3px; background:${v(
|
|
2464
|
+
style: $(`padding: 3px; background:${v(ze)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
|
|
2429
2465
|
innerHTML: v(se)(
|
|
2430
2466
|
l.value.plot.tag.formatter,
|
|
2431
|
-
|
|
2467
|
+
a.value,
|
|
2432
2468
|
e.name,
|
|
2433
2469
|
{
|
|
2434
|
-
datapoint:
|
|
2470
|
+
datapoint: a,
|
|
2435
2471
|
seriesIndex: i,
|
|
2436
2472
|
serieName: e.name
|
|
2437
2473
|
}
|
|
2438
2474
|
)
|
|
2439
|
-
}, null, 12,
|
|
2440
|
-
], 12,
|
|
2475
|
+
}, null, 12, Gu)
|
|
2476
|
+
], 12, Xu)) : h("", !0)
|
|
2441
2477
|
], 64))
|
|
2442
2478
|
], 64))), 128))
|
|
2443
2479
|
], 64))), 128))
|
|
2444
2480
|
])),
|
|
2445
|
-
l.value.line.labels.show && f.value.dataLabels.show ? (n(), r("g",
|
|
2446
|
-
(n(!0), r(d, null, w(
|
|
2481
|
+
l.value.line.labels.show && f.value.dataLabels.show ? (n(), r("g", qu, [
|
|
2482
|
+
(n(!0), r(d, null, w(ae.value, (e, u) => (n(), r(d, {
|
|
2447
2483
|
key: `xLabel_line_${e.id}`
|
|
2448
2484
|
}, [
|
|
2449
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
2485
|
+
(n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
|
|
2450
2486
|
key: `xLabel_line_${u}_${i}`
|
|
2451
2487
|
}, [
|
|
2452
|
-
|
|
2488
|
+
a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === i || V.value !== null && V.value === i ? (n(), r("text", {
|
|
2453
2489
|
key: 0,
|
|
2454
|
-
x:
|
|
2455
|
-
y:
|
|
2490
|
+
x: a.x,
|
|
2491
|
+
y: a.y + (a.value >= 0 ? l.value.line.labels.offsetY : -l.value.line.labels.offsetY * 3),
|
|
2456
2492
|
"text-anchor": "middle",
|
|
2457
2493
|
"font-size": y.value.plotLabels,
|
|
2458
2494
|
fill: l.value.line.labels.color,
|
|
2459
2495
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2460
|
-
},
|
|
2496
|
+
}, te(be(a.value) ? v(se)(
|
|
2461
2497
|
l.value.line.labels.formatter,
|
|
2462
|
-
|
|
2463
|
-
v(
|
|
2498
|
+
a.value,
|
|
2499
|
+
v(Fe)({
|
|
2464
2500
|
p: e.prefix || l.value.chart.labels.prefix,
|
|
2465
|
-
v:
|
|
2501
|
+
v: a.value,
|
|
2466
2502
|
s: e.suffix || l.value.chart.labels.suffix,
|
|
2467
2503
|
r: l.value.line.labels.rounding
|
|
2468
2504
|
}),
|
|
2469
2505
|
{
|
|
2470
|
-
datapoint:
|
|
2506
|
+
datapoint: a,
|
|
2471
2507
|
serie: e
|
|
2472
2508
|
}
|
|
2473
|
-
) : ""), 13,
|
|
2509
|
+
) : ""), 13, Zu)) : h("", !0)
|
|
2474
2510
|
], 64))), 128))
|
|
2475
2511
|
], 64))), 128))
|
|
2476
|
-
])) : (n(), r("g",
|
|
2477
|
-
(n(!0), r(d, null, w(
|
|
2512
|
+
])) : (n(), r("g", Ju, [
|
|
2513
|
+
(n(!0), r(d, null, w(ae.value, (e, u) => (n(), r(d, {
|
|
2478
2514
|
key: `xLabel_line_${e.id}`
|
|
2479
2515
|
}, [
|
|
2480
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
2516
|
+
(n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
|
|
2481
2517
|
key: `xLabel_line_${u}_${i}`
|
|
2482
2518
|
}, [
|
|
2483
2519
|
l.value.line.tag.followValue ? (n(), r(d, { key: 1 }, [
|
|
@@ -2486,150 +2522,150 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2486
2522
|
class: "vue-ui-xy-tag-line",
|
|
2487
2523
|
x1: c.value.left,
|
|
2488
2524
|
x2: c.value.right,
|
|
2489
|
-
y1:
|
|
2490
|
-
y2:
|
|
2525
|
+
y1: a.y,
|
|
2526
|
+
y2: a.y,
|
|
2491
2527
|
"stroke-width": 1,
|
|
2492
2528
|
"stroke-linecap": "round",
|
|
2493
2529
|
"stroke-dasharray": "2",
|
|
2494
2530
|
stroke: e.color
|
|
2495
|
-
}, null, 8,
|
|
2531
|
+
}, null, 8, li)) : h("", !0)
|
|
2496
2532
|
], 64)) : (n(), r(d, { key: 0 }, [
|
|
2497
|
-
|
|
2533
|
+
a && i === 0 && e.useTag && e.useTag === "start" ? (n(), r("foreignObject", {
|
|
2498
2534
|
key: 0,
|
|
2499
|
-
x:
|
|
2500
|
-
y:
|
|
2535
|
+
x: a.x,
|
|
2536
|
+
y: a.y - 20,
|
|
2501
2537
|
height: 24,
|
|
2502
2538
|
width: "150",
|
|
2503
2539
|
style: $(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2504
2540
|
}, [
|
|
2505
2541
|
p("div", {
|
|
2506
|
-
style: $(`padding: 3px; background:${v(
|
|
2542
|
+
style: $(`padding: 3px; background:${v(ze)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
|
|
2507
2543
|
innerHTML: v(se)(
|
|
2508
2544
|
l.value.line.tag.formatter,
|
|
2509
|
-
|
|
2545
|
+
a.value,
|
|
2510
2546
|
e.name,
|
|
2511
2547
|
{
|
|
2512
|
-
datapoint:
|
|
2548
|
+
datapoint: a,
|
|
2513
2549
|
seriesIndex: i,
|
|
2514
2550
|
serieName: e.name
|
|
2515
2551
|
}
|
|
2516
2552
|
)
|
|
2517
|
-
}, null, 12,
|
|
2518
|
-
], 12,
|
|
2519
|
-
|
|
2553
|
+
}, null, 12, Qu)
|
|
2554
|
+
], 12, Ku)) : h("", !0),
|
|
2555
|
+
a && i === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (n(), r("foreignObject", {
|
|
2520
2556
|
key: 1,
|
|
2521
|
-
x:
|
|
2522
|
-
y:
|
|
2557
|
+
x: a.x,
|
|
2558
|
+
y: a.y - 20,
|
|
2523
2559
|
height: 24,
|
|
2524
2560
|
width: "150",
|
|
2525
2561
|
style: $(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2526
2562
|
}, [
|
|
2527
2563
|
p("div", {
|
|
2528
|
-
style: $(`padding: 3px; background:${v(
|
|
2564
|
+
style: $(`padding: 3px; background:${v(ze)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
|
|
2529
2565
|
innerHTML: v(se)(
|
|
2530
2566
|
l.value.line.tag.formatter,
|
|
2531
|
-
|
|
2567
|
+
a.value,
|
|
2532
2568
|
e.name,
|
|
2533
2569
|
{
|
|
2534
|
-
datapoint:
|
|
2570
|
+
datapoint: a,
|
|
2535
2571
|
seriesIndex: i,
|
|
2536
2572
|
serieName: e.name
|
|
2537
2573
|
}
|
|
2538
2574
|
)
|
|
2539
|
-
}, null, 12,
|
|
2540
|
-
], 12,
|
|
2575
|
+
}, null, 12, ei)
|
|
2576
|
+
], 12, ju)) : h("", !0)
|
|
2541
2577
|
], 64))
|
|
2542
2578
|
], 64))), 128))
|
|
2543
2579
|
], 64))), 128))
|
|
2544
2580
|
])),
|
|
2545
|
-
(n(!0), r(d, null, w(
|
|
2581
|
+
(n(!0), r(d, null, w(ae.value, (e, u) => (n(), r(d, {
|
|
2546
2582
|
key: `xLabel_line_${e.id}`
|
|
2547
2583
|
}, [
|
|
2548
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
2584
|
+
(n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
|
|
2549
2585
|
key: `xLabel_line_${u}_${i}`
|
|
2550
2586
|
}, [
|
|
2551
|
-
|
|
2587
|
+
a && i === 0 && e.showSerieName && e.showSerieName === "start" ? (n(), r("text", {
|
|
2552
2588
|
key: 0,
|
|
2553
|
-
x:
|
|
2554
|
-
y:
|
|
2589
|
+
x: a.x - y.value.plotLabels,
|
|
2590
|
+
y: a.y,
|
|
2555
2591
|
"font-size": y.value.plotLabels,
|
|
2556
2592
|
"text-anchor": "end",
|
|
2557
2593
|
fill: e.color,
|
|
2558
|
-
innerHTML: v(
|
|
2594
|
+
innerHTML: v(Jl)({
|
|
2559
2595
|
content: e.name,
|
|
2560
2596
|
fontSize: y.value.plotLabels,
|
|
2561
2597
|
fill: e.color,
|
|
2562
|
-
x:
|
|
2563
|
-
y:
|
|
2598
|
+
x: a.x - y.value.plotLabels,
|
|
2599
|
+
y: a.y,
|
|
2564
2600
|
maxWords: 2
|
|
2565
2601
|
}),
|
|
2566
2602
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2567
|
-
}, null, 12,
|
|
2568
|
-
|
|
2603
|
+
}, null, 12, ti)) : h("", !0),
|
|
2604
|
+
a && i === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (n(), r("text", {
|
|
2569
2605
|
key: 1,
|
|
2570
|
-
x:
|
|
2571
|
-
y:
|
|
2606
|
+
x: a.x + y.value.plotLabels,
|
|
2607
|
+
y: a.y,
|
|
2572
2608
|
"font-size": y.value.plotLabels,
|
|
2573
2609
|
"text-anchor": "start",
|
|
2574
2610
|
fill: e.color,
|
|
2575
|
-
innerHTML: v(
|
|
2611
|
+
innerHTML: v(Jl)({
|
|
2576
2612
|
content: e.name,
|
|
2577
2613
|
fontSize: y.value.plotLabels,
|
|
2578
2614
|
fill: e.color,
|
|
2579
|
-
x:
|
|
2580
|
-
y:
|
|
2615
|
+
x: a.x + y.value.plotLabels,
|
|
2616
|
+
y: a.y,
|
|
2581
2617
|
maxWords: 2
|
|
2582
2618
|
}),
|
|
2583
2619
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2584
|
-
}, null, 12,
|
|
2620
|
+
}, null, 12, ai)) : h("", !0)
|
|
2585
2621
|
], 64))), 128))
|
|
2586
2622
|
], 64))), 128)),
|
|
2587
|
-
(n(!0), r(d, null, w(
|
|
2623
|
+
(n(!0), r(d, null, w(xe.value, (e, u) => (n(), r(d, {
|
|
2588
2624
|
key: `xLabel_plot_${e.id}`
|
|
2589
2625
|
}, [
|
|
2590
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
2626
|
+
(n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
|
|
2591
2627
|
key: `xLabel_plot_${u}_${i}`
|
|
2592
2628
|
}, [
|
|
2593
|
-
|
|
2629
|
+
a && i === 0 && e.showSerieName && e.showSerieName === "start" ? (n(), r("text", {
|
|
2594
2630
|
key: 0,
|
|
2595
|
-
x:
|
|
2596
|
-
y:
|
|
2631
|
+
x: a.x - y.value.plotLabels,
|
|
2632
|
+
y: a.y,
|
|
2597
2633
|
"font-size": y.value.plotLabels,
|
|
2598
2634
|
"text-anchor": "end",
|
|
2599
2635
|
fill: e.color,
|
|
2600
|
-
innerHTML: v(
|
|
2636
|
+
innerHTML: v(Jl)({
|
|
2601
2637
|
content: e.name,
|
|
2602
2638
|
fontSize: y.value.plotLabels,
|
|
2603
2639
|
fill: e.color,
|
|
2604
|
-
x:
|
|
2605
|
-
y:
|
|
2640
|
+
x: a.x - y.value.plotLabels,
|
|
2641
|
+
y: a.y,
|
|
2606
2642
|
maxWords: 2
|
|
2607
2643
|
}),
|
|
2608
2644
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2609
|
-
}, null, 12,
|
|
2610
|
-
|
|
2645
|
+
}, null, 12, oi)) : h("", !0),
|
|
2646
|
+
a && i === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (n(), r("text", {
|
|
2611
2647
|
key: 1,
|
|
2612
|
-
x:
|
|
2613
|
-
y:
|
|
2648
|
+
x: a.x + y.value.plotLabels,
|
|
2649
|
+
y: a.y,
|
|
2614
2650
|
"font-size": y.value.plotLabels,
|
|
2615
2651
|
"text-anchor": "start",
|
|
2616
2652
|
fill: e.color,
|
|
2617
|
-
innerHTML: v(
|
|
2653
|
+
innerHTML: v(Jl)({
|
|
2618
2654
|
content: e.name,
|
|
2619
2655
|
fontSize: y.value.plotLabels,
|
|
2620
2656
|
fill: e.color,
|
|
2621
|
-
x:
|
|
2622
|
-
y:
|
|
2657
|
+
x: a.x + y.value.plotLabels,
|
|
2658
|
+
y: a.y,
|
|
2623
2659
|
maxWords: 2
|
|
2624
2660
|
}),
|
|
2625
2661
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2626
|
-
}, null, 12,
|
|
2662
|
+
}, null, 12, si)) : h("", !0)
|
|
2627
2663
|
], 64))), 128))
|
|
2628
2664
|
], 64))), 128)),
|
|
2629
|
-
(n(!0), r(d, null, w([...
|
|
2665
|
+
(n(!0), r(d, null, w([...xe.value, ...ae.value, ...Ce.value], (e, u) => (n(), r(d, {
|
|
2630
2666
|
key: `progression-${u}`
|
|
2631
2667
|
}, [
|
|
2632
|
-
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(
|
|
2668
|
+
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v($e)(e.plots).trend) ? (n(), r("g", ui, [
|
|
2633
2669
|
p("defs", null, [
|
|
2634
2670
|
p("marker", {
|
|
2635
2671
|
id: `progression_arrow_${u}`,
|
|
@@ -2648,40 +2684,40 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2648
2684
|
stroke: l.value.chart.backgroundColor,
|
|
2649
2685
|
"stroke-width": "1",
|
|
2650
2686
|
"stroke-linejoin": "round"
|
|
2651
|
-
}, null, 8,
|
|
2652
|
-
], 8,
|
|
2687
|
+
}, null, 8, ni)
|
|
2688
|
+
], 8, ii)
|
|
2653
2689
|
]),
|
|
2654
2690
|
e.plots.length > 1 ? (n(), r("line", {
|
|
2655
2691
|
key: 0,
|
|
2656
|
-
x1: v(
|
|
2657
|
-
x2: v(
|
|
2658
|
-
y1: v(
|
|
2659
|
-
y2: v(
|
|
2692
|
+
x1: v($e)(e.plots).x1 + (e.type === "bar" ? Ee() : 0),
|
|
2693
|
+
x2: v($e)(e.plots).x2 + (e.type === "bar" ? Ee() : 0),
|
|
2694
|
+
y1: v(Y)(v($e)(e.plots).y1),
|
|
2695
|
+
y2: v(Y)(v($e)(e.plots).y2),
|
|
2660
2696
|
"stroke-width": 1,
|
|
2661
2697
|
stroke: l.value.chart.backgroundColor,
|
|
2662
2698
|
"stroke-dasharray": 2,
|
|
2663
2699
|
"stroke-linecap": "round",
|
|
2664
2700
|
"stroke-linejoin": "round",
|
|
2665
2701
|
"marker-end": `url(#progression_arrow_${u})`
|
|
2666
|
-
}, null, 8,
|
|
2702
|
+
}, null, 8, ri)) : h("", !0),
|
|
2667
2703
|
e.plots.length > 1 ? (n(), r("line", {
|
|
2668
2704
|
key: 1,
|
|
2669
|
-
x1: v(
|
|
2670
|
-
x2: v(
|
|
2671
|
-
y1: v(
|
|
2672
|
-
y2: v(
|
|
2705
|
+
x1: v($e)(e.plots).x1 + (e.type === "bar" ? Ee() : 0),
|
|
2706
|
+
x2: v($e)(e.plots).x2 + (e.type === "bar" ? Ee() : 0),
|
|
2707
|
+
y1: v(Y)(v($e)(e.plots).y1),
|
|
2708
|
+
y2: v(Y)(v($e)(e.plots).y2),
|
|
2673
2709
|
"stroke-width": 1,
|
|
2674
2710
|
stroke: e.color,
|
|
2675
2711
|
"stroke-dasharray": 2,
|
|
2676
2712
|
"stroke-linecap": "round",
|
|
2677
2713
|
"stroke-linejoin": "round",
|
|
2678
2714
|
"marker-end": `url(#progression_arrow_${u})`
|
|
2679
|
-
}, null, 8,
|
|
2715
|
+
}, null, 8, ci)) : h("", !0),
|
|
2680
2716
|
e.plots.length > 1 ? (n(), r("text", {
|
|
2681
2717
|
key: 2,
|
|
2682
2718
|
"text-anchor": "middle",
|
|
2683
|
-
x: v(
|
|
2684
|
-
y: v(
|
|
2719
|
+
x: v($e)(e.plots).x2 + (e.type === "bar" ? Ee() : 0),
|
|
2720
|
+
y: v($e)(e.plots).y2 - 12,
|
|
2685
2721
|
"font-size": y.value.plotLabels,
|
|
2686
2722
|
fill: e.color,
|
|
2687
2723
|
stroke: l.value.chart.backgroundColor,
|
|
@@ -2689,17 +2725,17 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2689
2725
|
"stroke-linecap": "round",
|
|
2690
2726
|
"stroke-linejoin": "round",
|
|
2691
2727
|
"paint-order": "stroke fill"
|
|
2692
|
-
},
|
|
2693
|
-
v: v(
|
|
2728
|
+
}, te(v(Fe)({
|
|
2729
|
+
v: v($e)(e.plots).trend * 100,
|
|
2694
2730
|
s: "%",
|
|
2695
2731
|
r: 2
|
|
2696
|
-
})), 9,
|
|
2732
|
+
})), 9, vi)) : h("", !0)
|
|
2697
2733
|
])) : h("", !0)
|
|
2698
2734
|
], 64))), 128)),
|
|
2699
2735
|
f.value.useIndividualScale && !f.value.isStacked ? (n(), r(d, { key: 13 }, [
|
|
2700
2736
|
p("defs", null, [
|
|
2701
2737
|
(n(!0), r(d, null, w(Sl.value, (e, u) => (n(), r("linearGradient", {
|
|
2702
|
-
id: `individual_scale_gradient_${
|
|
2738
|
+
id: `individual_scale_gradient_${E.value}_${u}`,
|
|
2703
2739
|
x1: "0%",
|
|
2704
2740
|
x2: "100%",
|
|
2705
2741
|
y1: "0%",
|
|
@@ -2709,52 +2745,52 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2709
2745
|
offset: "0%",
|
|
2710
2746
|
"stop-color": l.value.chart.backgroundColor,
|
|
2711
2747
|
"stop-opacity": "0"
|
|
2712
|
-
}, null, 8,
|
|
2748
|
+
}, null, 8, hi),
|
|
2713
2749
|
p("stop", {
|
|
2714
2750
|
offset: "100%",
|
|
2715
2751
|
"stop-color": e.color,
|
|
2716
2752
|
"stop-opacity": "0.2"
|
|
2717
|
-
}, null, 8,
|
|
2718
|
-
], 8,
|
|
2753
|
+
}, null, 8, fi)
|
|
2754
|
+
], 8, di))), 256))
|
|
2719
2755
|
]),
|
|
2720
2756
|
(n(!0), r(d, null, w(Sl.value, (e, u) => (n(), r("rect", {
|
|
2721
|
-
x: e.x - l.value.chart.grid.labels.yAxis.labelWidth +
|
|
2757
|
+
x: e.x - l.value.chart.grid.labels.yAxis.labelWidth + U.value - c.value.individualOffsetX,
|
|
2722
2758
|
y: c.value.top,
|
|
2723
2759
|
width: l.value.chart.grid.labels.yAxis.labelWidth + c.value.individualOffsetX,
|
|
2724
2760
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
2725
|
-
fill: I.value === e.groupId ? `url(#individual_scale_gradient_${
|
|
2726
|
-
onMouseenter: (
|
|
2727
|
-
onMouseleave: s[0] || (s[0] = (
|
|
2728
|
-
}, null, 40,
|
|
2761
|
+
fill: I.value === e.groupId ? `url(#individual_scale_gradient_${E.value}_${u})` : "transparent",
|
|
2762
|
+
onMouseenter: (a) => I.value = e.groupId,
|
|
2763
|
+
onMouseleave: s[0] || (s[0] = (a) => I.value = null)
|
|
2764
|
+
}, null, 40, gi))), 256))
|
|
2729
2765
|
], 64)) : h("", !0),
|
|
2730
2766
|
p("g", null, [
|
|
2731
2767
|
l.value.chart.grid.labels.axis.yLabel && !f.value.useIndividualScale ? (n(), r("text", {
|
|
2732
2768
|
key: 0,
|
|
2733
2769
|
ref_key: "yAxisLabel",
|
|
2734
|
-
ref:
|
|
2770
|
+
ref: tt,
|
|
2735
2771
|
"font-size": y.value.yAxis,
|
|
2736
2772
|
fill: l.value.chart.grid.labels.color,
|
|
2737
2773
|
transform: `translate(${l.value.chart.grid.labels.axis.fontSize}, ${c.value.top + c.value.height / 2}) rotate(-90)`,
|
|
2738
2774
|
"text-anchor": "middle",
|
|
2739
2775
|
style: { transition: "none" }
|
|
2740
|
-
},
|
|
2776
|
+
}, te(l.value.chart.grid.labels.axis.yLabel), 9, mi)) : h("", !0),
|
|
2741
2777
|
l.value.chart.grid.labels.axis.xLabel ? (n(), r("text", {
|
|
2742
2778
|
key: 1,
|
|
2743
2779
|
ref_key: "xAxisLabel",
|
|
2744
|
-
ref:
|
|
2780
|
+
ref: lt,
|
|
2745
2781
|
"text-anchor": "middle",
|
|
2746
|
-
x:
|
|
2782
|
+
x: ee.value / 2,
|
|
2747
2783
|
y: ve.value - 3,
|
|
2748
2784
|
"font-size": y.value.yAxis,
|
|
2749
2785
|
fill: l.value.chart.grid.labels.color
|
|
2750
|
-
},
|
|
2786
|
+
}, te(l.value.chart.grid.labels.axis.xLabel), 9, bi)) : h("", !0)
|
|
2751
2787
|
]),
|
|
2752
2788
|
l.value.chart.grid.labels.xAxisLabels.show ? (n(), r("g", {
|
|
2753
2789
|
key: 14,
|
|
2754
2790
|
ref_key: "timeLabelsEls",
|
|
2755
2791
|
ref: ul
|
|
2756
2792
|
}, [
|
|
2757
|
-
|
|
2793
|
+
t.$slots["time-label"] ? (n(!0), r(d, { key: 0 }, w(mt.value, (e, u) => B(t.$slots, "time-label", tl({
|
|
2758
2794
|
key: `time_label_${e.id}`,
|
|
2759
2795
|
ref_for: !0
|
|
2760
2796
|
}, {
|
|
@@ -2767,7 +2803,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2767
2803
|
content: e.text,
|
|
2768
2804
|
textAnchor: l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2769
2805
|
show: e && e.text
|
|
2770
|
-
}), void 0, !0)), 128)) : (n(!0), r(d, { key: 1 }, w(
|
|
2806
|
+
}), void 0, !0)), 128)) : (n(!0), r(d, { key: 1 }, w(mt.value, (e, u) => (n(), r("g", {
|
|
2771
2807
|
key: `time_label_${u}`
|
|
2772
2808
|
}, [
|
|
2773
2809
|
e && e.text ? (n(), r(d, { key: 0 }, [
|
|
@@ -2780,17 +2816,17 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2780
2816
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2781
2817
|
transform: `translate(${c.value.left + c.value.width / L.value * u + c.value.width / L.value / 2}, ${c.value.bottom + y.value.xAxis * 1.5}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2782
2818
|
style: $({
|
|
2783
|
-
cursor:
|
|
2819
|
+
cursor: Yt() ? "pointer" : "default"
|
|
2784
2820
|
}),
|
|
2785
|
-
innerHTML: v(
|
|
2821
|
+
innerHTML: v(us)({
|
|
2786
2822
|
content: String(e.text),
|
|
2787
2823
|
fontSize: y.value.xAxis,
|
|
2788
2824
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2789
2825
|
x: 0,
|
|
2790
2826
|
y: 0
|
|
2791
2827
|
}),
|
|
2792
|
-
onClick: () =>
|
|
2793
|
-
}, null, 12,
|
|
2828
|
+
onClick: () => Ut(e, u)
|
|
2829
|
+
}, null, 12, pi)) : (n(), r("text", {
|
|
2794
2830
|
key: 0,
|
|
2795
2831
|
class: "vue-data-ui-time-label",
|
|
2796
2832
|
"text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -2798,15 +2834,15 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2798
2834
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2799
2835
|
transform: `translate(${c.value.left + c.value.width / L.value * u + c.value.width / L.value / 2}, ${c.value.bottom + y.value.xAxis * 1.5}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2800
2836
|
style: $({
|
|
2801
|
-
cursor:
|
|
2837
|
+
cursor: Yt() ? "pointer" : "default"
|
|
2802
2838
|
}),
|
|
2803
|
-
onClick: () =>
|
|
2804
|
-
},
|
|
2839
|
+
onClick: () => Ut(e, u)
|
|
2840
|
+
}, te(e.text || ""), 13, xi))
|
|
2805
2841
|
], 64)) : h("", !0)
|
|
2806
2842
|
]))), 128))
|
|
2807
2843
|
], 512)) : h("", !0),
|
|
2808
|
-
|
|
2809
|
-
(n(!0), r(d, null, w(
|
|
2844
|
+
ra.value.length && !f.value.isStacked ? (n(), r("g", yi, [
|
|
2845
|
+
(n(!0), r(d, null, w(ra.value, (e) => (n(), r("g", {
|
|
2810
2846
|
key: e.uid
|
|
2811
2847
|
}, [
|
|
2812
2848
|
e.yTop && e.show && isFinite(e.yTop) ? (n(), r("line", {
|
|
@@ -2820,7 +2856,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2820
2856
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
2821
2857
|
"stroke-linecap": "round",
|
|
2822
2858
|
style: { animation: "none !important" }
|
|
2823
|
-
}, null, 8,
|
|
2859
|
+
}, null, 8, ki)) : h("", !0),
|
|
2824
2860
|
e.yBottom && e.show && isFinite(e.yBottom) ? (n(), r("line", {
|
|
2825
2861
|
key: 1,
|
|
2826
2862
|
x1: e.x1,
|
|
@@ -2832,17 +2868,17 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2832
2868
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
2833
2869
|
"stroke-linecap": "round",
|
|
2834
2870
|
style: { animation: "none !important" }
|
|
2835
|
-
}, null, 8,
|
|
2871
|
+
}, null, 8, _i)) : h("", !0),
|
|
2836
2872
|
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (n(), r("rect", {
|
|
2837
2873
|
key: 2,
|
|
2838
2874
|
y: Math.min(e.yTop, e.yBottom),
|
|
2839
2875
|
x: e.x1,
|
|
2840
2876
|
width: c.value.width,
|
|
2841
2877
|
height: v(P)(e.areaHeight, 0),
|
|
2842
|
-
fill: v(
|
|
2878
|
+
fill: v(ze)(e.config.area.fill, e.config.area.opacity),
|
|
2843
2879
|
style: { animation: "none !important" }
|
|
2844
|
-
}, null, 8,
|
|
2845
|
-
e.config.label.text && e.show && isFinite(e._box.y) ? (n(), r("rect",
|
|
2880
|
+
}, null, 8, wi)) : h("", !0),
|
|
2881
|
+
e.config.label.text && e.show && isFinite(e._box.y) ? (n(), r("rect", tl({
|
|
2846
2882
|
key: 3,
|
|
2847
2883
|
class: "vue-ui-xy-annotation-label-box"
|
|
2848
2884
|
}, { ref_for: !0 }, e._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : h("", !0),
|
|
@@ -2855,12 +2891,12 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2855
2891
|
"font-size": e.config.label.fontSize,
|
|
2856
2892
|
fill: e.config.label.color,
|
|
2857
2893
|
"text-anchor": e.config.label.textAnchor
|
|
2858
|
-
},
|
|
2894
|
+
}, te(e.config.label.text), 9, Si)) : h("", !0)
|
|
2859
2895
|
]))), 128))
|
|
2860
2896
|
])) : h("", !0),
|
|
2861
|
-
l.value.chart.timeTag.show && (![null, void 0].includes(_.value) || ![null, void 0].includes(V.value)) ? (n(), r("g",
|
|
2897
|
+
l.value.chart.timeTag.show && (![null, void 0].includes(_.value) || ![null, void 0].includes(V.value)) ? (n(), r("g", $i, [
|
|
2862
2898
|
(n(), r("foreignObject", {
|
|
2863
|
-
x:
|
|
2899
|
+
x: Po(),
|
|
2864
2900
|
y: c.value.bottom,
|
|
2865
2901
|
width: "200",
|
|
2866
2902
|
height: "40",
|
|
@@ -2868,40 +2904,40 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2868
2904
|
}, [
|
|
2869
2905
|
p("div", {
|
|
2870
2906
|
ref_key: "timeTagEl",
|
|
2871
|
-
ref:
|
|
2907
|
+
ref: _a,
|
|
2872
2908
|
class: "vue-ui-xy-time-tag",
|
|
2873
2909
|
style: $(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${l.value.chart.timeTag.backgroundColor};color:${l.value.chart.timeTag.color};font-size:${l.value.chart.timeTag.fontSize}px`),
|
|
2874
|
-
innerHTML:
|
|
2875
|
-
}, null, 12,
|
|
2876
|
-
], 8,
|
|
2910
|
+
innerHTML: Fo.value
|
|
2911
|
+
}, null, 12, Mi)
|
|
2912
|
+
], 8, Li)),
|
|
2877
2913
|
p("circle", {
|
|
2878
2914
|
cx: c.value.left + c.value.width / L.value * ((_.value !== null ? _.value : 0) || (V.value !== null ? V.value : 0)) + c.value.width / L.value / 2,
|
|
2879
2915
|
cy: c.value.bottom,
|
|
2880
2916
|
r: l.value.chart.timeTag.circleMarker.radius,
|
|
2881
2917
|
fill: l.value.chart.timeTag.circleMarker.color
|
|
2882
|
-
}, null, 8,
|
|
2918
|
+
}, null, 8, Ai)
|
|
2883
2919
|
])) : h("", !0)
|
|
2884
2920
|
])) : h("", !0),
|
|
2885
|
-
|
|
2921
|
+
Ft.value ? (n(), r("rect", tl({ key: 2 }, so.value, {
|
|
2886
2922
|
"data-start": m.value.start,
|
|
2887
2923
|
"data-end": m.value.end
|
|
2888
|
-
}), null, 16,
|
|
2889
|
-
|
|
2924
|
+
}), null, 16, Ci)) : h("", !0),
|
|
2925
|
+
B(t.$slots, "svg", {
|
|
2890
2926
|
svg: {
|
|
2891
|
-
...
|
|
2892
|
-
data: [...
|
|
2927
|
+
...to.value,
|
|
2928
|
+
data: [...ae.value, ...Ce.value, ...xe.value],
|
|
2893
2929
|
drawingArea: c.value
|
|
2894
2930
|
}
|
|
2895
2931
|
}, void 0, !0)
|
|
2896
2932
|
], 512)
|
|
2897
|
-
], 46,
|
|
2898
|
-
|
|
2899
|
-
|
|
2933
|
+
], 46, Ms)),
|
|
2934
|
+
t.$slots.watermark ? (n(), r("div", Ti, [
|
|
2935
|
+
B(t.$slots, "watermark", ke(_e({ isPrinting: v(dt) || v(Bt) })), void 0, !0)
|
|
2900
2936
|
])) : h("", !0),
|
|
2901
|
-
(n(!0), r(d, null, w(
|
|
2937
|
+
(n(!0), r(d, null, w(ae.value, (e, u) => (n(), r(d, {
|
|
2902
2938
|
key: `tag_line_${e.id}`
|
|
2903
2939
|
}, [
|
|
2904
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
2940
|
+
(n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
|
|
2905
2941
|
key: `tag_line_${u}_${i}`
|
|
2906
2942
|
}, [
|
|
2907
2943
|
[V.value, _.value, Ze.value].includes(i) && e.useTag && e.useTag === "end" && l.value.line.tag.followValue ? (n(), r("div", {
|
|
@@ -2915,15 +2951,15 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2915
2951
|
top: v(Ue)({
|
|
2916
2952
|
svgElement: ue.value,
|
|
2917
2953
|
x: c.value.right + l.value.line.tag.fontSize / 1.5,
|
|
2918
|
-
y:
|
|
2919
|
-
element:
|
|
2954
|
+
y: a.y,
|
|
2955
|
+
element: Re.value[`${u}_${i}_right_line`],
|
|
2920
2956
|
position: "right"
|
|
2921
2957
|
}).top + "px",
|
|
2922
2958
|
left: v(Ue)({
|
|
2923
2959
|
svgElement: ue.value,
|
|
2924
2960
|
x: c.value.right + l.value.line.tag.fontSize / 1.5,
|
|
2925
|
-
y:
|
|
2926
|
-
element:
|
|
2961
|
+
y: a.y,
|
|
2962
|
+
element: Re.value[`${u}_${i}_right_line`],
|
|
2927
2963
|
position: "right"
|
|
2928
2964
|
}).left + "px",
|
|
2929
2965
|
height: "fit-content",
|
|
@@ -2935,26 +2971,26 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2935
2971
|
opacity: 1
|
|
2936
2972
|
})
|
|
2937
2973
|
}, [
|
|
2938
|
-
(n(), r("svg",
|
|
2974
|
+
(n(), r("svg", zi, [
|
|
2939
2975
|
p("path", {
|
|
2940
2976
|
d: "M 0,10 10,0 10,20 Z",
|
|
2941
2977
|
fill: e.color,
|
|
2942
2978
|
stroke: "none"
|
|
2943
|
-
}, null, 8,
|
|
2979
|
+
}, null, 8, Ii)
|
|
2944
2980
|
])),
|
|
2945
2981
|
p("div", {
|
|
2946
2982
|
class: "vue-ui-xy-tag-content",
|
|
2947
2983
|
innerHTML: v(se)(
|
|
2948
2984
|
l.value.line.tag.formatter,
|
|
2949
|
-
|
|
2985
|
+
a.value,
|
|
2950
2986
|
e.name,
|
|
2951
2987
|
{
|
|
2952
|
-
datapoint:
|
|
2988
|
+
datapoint: a,
|
|
2953
2989
|
seriesIndex: i,
|
|
2954
2990
|
serieName: e.name
|
|
2955
2991
|
}
|
|
2956
2992
|
)
|
|
2957
|
-
}, null, 8,
|
|
2993
|
+
}, null, 8, Oi)
|
|
2958
2994
|
], 4)) : h("", !0),
|
|
2959
2995
|
[V.value, _.value, Ze.value].includes(i) && e.useTag && e.useTag === "start" && l.value.line.tag.followValue ? (n(), r("div", {
|
|
2960
2996
|
key: 1,
|
|
@@ -2967,15 +3003,15 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2967
3003
|
top: v(Ue)({
|
|
2968
3004
|
svgElement: ue.value,
|
|
2969
3005
|
x: c.value.left - l.value.line.tag.fontSize / 1.5,
|
|
2970
|
-
y:
|
|
2971
|
-
element:
|
|
3006
|
+
y: a.y,
|
|
3007
|
+
element: Re.value[`${u}_${i}_left_line`],
|
|
2972
3008
|
position: "left"
|
|
2973
3009
|
}).top + "px",
|
|
2974
3010
|
left: v(Ue)({
|
|
2975
3011
|
svgElement: ue.value,
|
|
2976
3012
|
x: c.value.left - l.value.line.tag.fontSize / 1.5,
|
|
2977
|
-
y:
|
|
2978
|
-
element:
|
|
3013
|
+
y: a.y,
|
|
3014
|
+
element: Re.value[`${u}_${i}_left_line`],
|
|
2979
3015
|
position: "left"
|
|
2980
3016
|
}).left + "px",
|
|
2981
3017
|
height: "fit-content",
|
|
@@ -2987,33 +3023,33 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2987
3023
|
opacity: 1
|
|
2988
3024
|
})
|
|
2989
3025
|
}, [
|
|
2990
|
-
(n(), r("svg",
|
|
3026
|
+
(n(), r("svg", Ni, [
|
|
2991
3027
|
p("path", {
|
|
2992
3028
|
d: "M 0,0 10,10 0,20 Z",
|
|
2993
3029
|
fill: e.color,
|
|
2994
3030
|
stroke: "none"
|
|
2995
|
-
}, null, 8,
|
|
3031
|
+
}, null, 8, Vi)
|
|
2996
3032
|
])),
|
|
2997
3033
|
p("div", {
|
|
2998
3034
|
class: "vue-ui-xy-tag-content",
|
|
2999
3035
|
innerHTML: v(se)(
|
|
3000
3036
|
l.value.line.tag.formatter,
|
|
3001
|
-
|
|
3037
|
+
a.value,
|
|
3002
3038
|
e.name,
|
|
3003
3039
|
{
|
|
3004
|
-
datapoint:
|
|
3040
|
+
datapoint: a,
|
|
3005
3041
|
seriesIndex: i,
|
|
3006
3042
|
serieName: e.name
|
|
3007
3043
|
}
|
|
3008
3044
|
)
|
|
3009
|
-
}, null, 8,
|
|
3045
|
+
}, null, 8, Pi)
|
|
3010
3046
|
], 4)) : h("", !0)
|
|
3011
3047
|
], 64))), 128))
|
|
3012
3048
|
], 64))), 128)),
|
|
3013
|
-
(n(!0), r(d, null, w(
|
|
3049
|
+
(n(!0), r(d, null, w(xe.value, (e, u) => (n(), r(d, {
|
|
3014
3050
|
key: `tag_plot_${e.id}`
|
|
3015
3051
|
}, [
|
|
3016
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
3052
|
+
(n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
|
|
3017
3053
|
key: `tag_plot_${u}_${i}`
|
|
3018
3054
|
}, [
|
|
3019
3055
|
[V.value, _.value, Ze.value].includes(i) && e.useTag && e.useTag === "end" && l.value.plot.tag.followValue ? (n(), r("div", {
|
|
@@ -3027,15 +3063,15 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3027
3063
|
top: v(Ue)({
|
|
3028
3064
|
svgElement: ue.value,
|
|
3029
3065
|
x: c.value.right + l.value.plot.tag.fontSize / 1.5,
|
|
3030
|
-
y:
|
|
3031
|
-
element:
|
|
3066
|
+
y: a.y,
|
|
3067
|
+
element: Re.value[`${u}_${i}_right_plot`],
|
|
3032
3068
|
position: "right"
|
|
3033
3069
|
}).top + "px",
|
|
3034
3070
|
left: v(Ue)({
|
|
3035
3071
|
svgElement: ue.value,
|
|
3036
3072
|
x: c.value.right + l.value.plot.tag.fontSize / 1.5,
|
|
3037
|
-
y:
|
|
3038
|
-
element:
|
|
3073
|
+
y: a.y,
|
|
3074
|
+
element: Re.value[`${u}_${i}_right_plot`],
|
|
3039
3075
|
position: "right"
|
|
3040
3076
|
}).left + "px",
|
|
3041
3077
|
height: "fit-content",
|
|
@@ -3047,26 +3083,26 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3047
3083
|
opacity: 1
|
|
3048
3084
|
})
|
|
3049
3085
|
}, [
|
|
3050
|
-
(n(), r("svg",
|
|
3086
|
+
(n(), r("svg", Fi, [
|
|
3051
3087
|
p("path", {
|
|
3052
3088
|
d: "M 0,10 10,0 10,20 Z",
|
|
3053
3089
|
fill: e.color,
|
|
3054
3090
|
stroke: "none"
|
|
3055
|
-
}, null, 8,
|
|
3091
|
+
}, null, 8, Ri)
|
|
3056
3092
|
])),
|
|
3057
3093
|
p("div", {
|
|
3058
3094
|
class: "vue-ui-xy-tag-content",
|
|
3059
3095
|
innerHTML: v(se)(
|
|
3060
3096
|
l.value.plot.tag.formatter,
|
|
3061
|
-
|
|
3097
|
+
a.value,
|
|
3062
3098
|
e.name,
|
|
3063
3099
|
{
|
|
3064
|
-
datapoint:
|
|
3100
|
+
datapoint: a,
|
|
3065
3101
|
seriesIndex: i,
|
|
3066
3102
|
serieName: e.name
|
|
3067
3103
|
}
|
|
3068
3104
|
)
|
|
3069
|
-
}, null, 8,
|
|
3105
|
+
}, null, 8, Bi)
|
|
3070
3106
|
], 4)) : h("", !0),
|
|
3071
3107
|
[V.value, _.value, Ze.value].includes(i) && e.useTag && e.useTag === "start" && l.value.plot.tag.followValue ? (n(), r("div", {
|
|
3072
3108
|
key: 1,
|
|
@@ -3079,15 +3115,15 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3079
3115
|
top: v(Ue)({
|
|
3080
3116
|
svgElement: ue.value,
|
|
3081
3117
|
x: c.value.left - l.value.plot.tag.fontSize / 1.5,
|
|
3082
|
-
y:
|
|
3083
|
-
element:
|
|
3118
|
+
y: a.y,
|
|
3119
|
+
element: Re.value[`${u}_${i}_left_plot`],
|
|
3084
3120
|
position: "left"
|
|
3085
3121
|
}).top + "px",
|
|
3086
3122
|
left: v(Ue)({
|
|
3087
3123
|
svgElement: ue.value,
|
|
3088
3124
|
x: c.value.left - l.value.plot.tag.fontSize / 1.5,
|
|
3089
|
-
y:
|
|
3090
|
-
element:
|
|
3125
|
+
y: a.y,
|
|
3126
|
+
element: Re.value[`${u}_${i}_left_plot`],
|
|
3091
3127
|
position: "left"
|
|
3092
3128
|
}).left + "px",
|
|
3093
3129
|
height: "fit-content",
|
|
@@ -3099,34 +3135,34 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3099
3135
|
opacity: 1
|
|
3100
3136
|
})
|
|
3101
3137
|
}, [
|
|
3102
|
-
(n(), r("svg",
|
|
3138
|
+
(n(), r("svg", Hi, [
|
|
3103
3139
|
p("path", {
|
|
3104
3140
|
d: "M 0,0 10,10 0,20 Z",
|
|
3105
3141
|
fill: e.color,
|
|
3106
3142
|
stroke: "none"
|
|
3107
|
-
}, null, 8,
|
|
3143
|
+
}, null, 8, Di)
|
|
3108
3144
|
])),
|
|
3109
3145
|
p("div", {
|
|
3110
3146
|
class: "vue-ui-xy-tag-content",
|
|
3111
3147
|
innerHTML: v(se)(
|
|
3112
3148
|
l.value.plot.tag.formatter,
|
|
3113
|
-
|
|
3149
|
+
a.value,
|
|
3114
3150
|
e.name,
|
|
3115
3151
|
{
|
|
3116
|
-
datapoint:
|
|
3152
|
+
datapoint: a,
|
|
3117
3153
|
seriesIndex: i,
|
|
3118
3154
|
serieName: e.name
|
|
3119
3155
|
}
|
|
3120
3156
|
)
|
|
3121
|
-
}, null, 8,
|
|
3157
|
+
}, null, 8, Ei)
|
|
3122
3158
|
], 4)) : h("", !0)
|
|
3123
3159
|
], 64))), 128))
|
|
3124
3160
|
], 64))), 128)),
|
|
3125
|
-
l.value.chart.zoom.show &&
|
|
3161
|
+
l.value.chart.zoom.show && Ne.value > 6 && ct.value && Jt.value ? (n(), Te(_s, {
|
|
3126
3162
|
key: 5,
|
|
3127
3163
|
ref_key: "chartSlicer",
|
|
3128
|
-
ref:
|
|
3129
|
-
allMinimaps:
|
|
3164
|
+
ref: Oe,
|
|
3165
|
+
allMinimaps: Io.value,
|
|
3130
3166
|
background: l.value.chart.zoom.color,
|
|
3131
3167
|
borderColor: l.value.chart.backgroundColor,
|
|
3132
3168
|
customFormat: l.value.chart.zoom.customFormat,
|
|
@@ -3140,12 +3176,12 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3140
3176
|
useResetSlot: l.value.chart.zoom.useResetSlot,
|
|
3141
3177
|
immediate: !l.value.chart.zoom.preview.enable,
|
|
3142
3178
|
inputColor: l.value.chart.zoom.color,
|
|
3143
|
-
isPreview:
|
|
3179
|
+
isPreview: Ft.value,
|
|
3144
3180
|
labelLeft: de.value[0] ? de.value[0].text : "",
|
|
3145
3181
|
labelRight: de.value.at(-1) ? de.value.at(-1).text : "",
|
|
3146
|
-
max:
|
|
3182
|
+
max: Ne.value,
|
|
3147
3183
|
min: 0,
|
|
3148
|
-
minimap:
|
|
3184
|
+
minimap: zo.value,
|
|
3149
3185
|
minimapCompact: l.value.chart.zoom.minimap.compact,
|
|
3150
3186
|
minimapFrameColor: l.value.chart.zoom.minimap.frameColor,
|
|
3151
3187
|
minimapIndicatorColor: l.value.chart.zoom.minimap.indicatorColor,
|
|
@@ -3155,37 +3191,37 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3155
3191
|
minimapSelectedColorOpacity: l.value.chart.zoom.minimap.selectedColorOpacity,
|
|
3156
3192
|
minimapSelectedIndex: _.value,
|
|
3157
3193
|
minimapSelectionRadius: l.value.chart.zoom.minimap.selectionRadius,
|
|
3158
|
-
preciseLabels:
|
|
3159
|
-
refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...
|
|
3194
|
+
preciseLabels: ha.value.length ? ha.value : gt.value,
|
|
3195
|
+
refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...jl.dataset.map((e) => De(e.series).length)),
|
|
3160
3196
|
refreshStartPoint: l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex : 0,
|
|
3161
3197
|
selectColor: l.value.chart.zoom.highlightColor,
|
|
3162
3198
|
selectedSeries: je.value,
|
|
3163
3199
|
smoothMinimap: l.value.chart.zoom.minimap.smooth,
|
|
3164
3200
|
start: m.value.start,
|
|
3165
3201
|
textColor: l.value.chart.color,
|
|
3166
|
-
timeLabels:
|
|
3202
|
+
timeLabels: gt.value,
|
|
3167
3203
|
usePreciseLabels: l.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !l.value.chart.zoom.useDefaultFormat,
|
|
3168
3204
|
valueEnd: m.value.end,
|
|
3169
3205
|
valueStart: m.value.start,
|
|
3170
3206
|
verticalHandles: l.value.chart.zoom.minimap.verticalHandles,
|
|
3171
|
-
onFutureEnd: s[1] || (s[1] = (e) =>
|
|
3172
|
-
onFutureStart: s[2] || (s[2] = (e) =>
|
|
3173
|
-
onReset:
|
|
3174
|
-
onTrapMouse:
|
|
3175
|
-
"onUpdate:end":
|
|
3176
|
-
"onUpdate:start":
|
|
3207
|
+
onFutureEnd: s[1] || (s[1] = (e) => Rt("end", e)),
|
|
3208
|
+
onFutureStart: s[2] || (s[2] = (e) => Rt("start", e)),
|
|
3209
|
+
onReset: po,
|
|
3210
|
+
onTrapMouse: go,
|
|
3211
|
+
"onUpdate:end": xo,
|
|
3212
|
+
"onUpdate:start": bo
|
|
3177
3213
|
}, {
|
|
3178
|
-
"reset-action":
|
|
3179
|
-
|
|
3214
|
+
"reset-action": G(({ reset: e }) => [
|
|
3215
|
+
B(t.$slots, "reset-action", ke(_e({ reset: e })), void 0, !0)
|
|
3180
3216
|
]),
|
|
3181
3217
|
_: 3
|
|
3182
3218
|
}, 8, ["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"])) : h("", !0),
|
|
3183
3219
|
p("div", {
|
|
3184
|
-
id: `legend-bottom-${
|
|
3185
|
-
}, null, 8,
|
|
3186
|
-
|
|
3220
|
+
id: `legend-bottom-${E.value}`
|
|
3221
|
+
}, null, 8, Yi),
|
|
3222
|
+
Ot.value ? (n(), Te(qo, {
|
|
3187
3223
|
key: 6,
|
|
3188
|
-
to: l.value.chart.legend.position === "top" ? `#legend-top-${
|
|
3224
|
+
to: l.value.chart.legend.position === "top" ? `#legend-top-${E.value}` : `#legend-bottom-${E.value}`
|
|
3189
3225
|
}, [
|
|
3190
3226
|
l.value.chart.legend.show ? (n(), r("div", {
|
|
3191
3227
|
key: 0,
|
|
@@ -3196,12 +3232,12 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3196
3232
|
fontSize: `var(--legend-font-size, ${l.value.chart.legend.fontSize ?? 14}px)`
|
|
3197
3233
|
})
|
|
3198
3234
|
}, [
|
|
3199
|
-
(n(!0), r(d, null, w(
|
|
3235
|
+
(n(!0), r(d, null, w(me.value, (e, u) => (n(), r("div", {
|
|
3200
3236
|
key: `div_legend_item_${u}`,
|
|
3201
|
-
onClick: (
|
|
3202
|
-
class: ll({ "vue-ui-xy-legend-item-alone":
|
|
3237
|
+
onClick: (a) => El(e),
|
|
3238
|
+
class: ll({ "vue-ui-xy-legend-item-alone": me.value.length === 1, "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": J.value.includes(e.id) })
|
|
3203
3239
|
}, [
|
|
3204
|
-
bl.value[e.type] === "line" ? (n(), r("svg",
|
|
3240
|
+
bl.value[e.type] === "line" ? (n(), r("svg", Xi, [
|
|
3205
3241
|
p("rect", {
|
|
3206
3242
|
x: "0",
|
|
3207
3243
|
y: "7.5",
|
|
@@ -3211,8 +3247,8 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3211
3247
|
height: "3",
|
|
3212
3248
|
width: "20",
|
|
3213
3249
|
fill: e.color
|
|
3214
|
-
}, null, 8,
|
|
3215
|
-
vl(
|
|
3250
|
+
}, null, 8, Gi),
|
|
3251
|
+
vl(Ql, {
|
|
3216
3252
|
plot: { x: 10, y: 9 },
|
|
3217
3253
|
radius: 4,
|
|
3218
3254
|
color: e.color,
|
|
@@ -3220,8 +3256,8 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3220
3256
|
stroke: l.value.chart.backgroundColor,
|
|
3221
3257
|
strokeWidth: 0.5
|
|
3222
3258
|
}, null, 8, ["color", "shape", "stroke"])
|
|
3223
|
-
])) : bl.value[e.type] === "bar" ? (n(), r("svg",
|
|
3224
|
-
bl.value[e.type] === "bar" &&
|
|
3259
|
+
])) : bl.value[e.type] === "bar" ? (n(), r("svg", Ui, [
|
|
3260
|
+
bl.value[e.type] === "bar" && t.$slots.pattern ? (n(), r("rect", {
|
|
3225
3261
|
key: 0,
|
|
3226
3262
|
x: "4",
|
|
3227
3263
|
y: "4",
|
|
@@ -3230,7 +3266,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3230
3266
|
width: "32",
|
|
3231
3267
|
stroke: "none",
|
|
3232
3268
|
fill: e.color
|
|
3233
|
-
}, null, 8,
|
|
3269
|
+
}, null, 8, qi)) : h("", !0),
|
|
3234
3270
|
bl.value[e.type] === "bar" ? (n(), r("rect", {
|
|
3235
3271
|
key: 1,
|
|
3236
3272
|
x: "4",
|
|
@@ -3239,10 +3275,10 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3239
3275
|
height: "32",
|
|
3240
3276
|
width: "32",
|
|
3241
3277
|
stroke: "none",
|
|
3242
|
-
fill:
|
|
3243
|
-
}, null, 8,
|
|
3244
|
-
])) : (n(), r("svg",
|
|
3245
|
-
vl(
|
|
3278
|
+
fill: t.$slots.pattern ? `url(#pattern_${E.value}_${e.slotAbsoluteIndex})` : e.color
|
|
3279
|
+
}, null, 8, Zi)) : h("", !0)
|
|
3280
|
+
])) : (n(), r("svg", Ji, [
|
|
3281
|
+
vl(Ql, {
|
|
3246
3282
|
plot: { x: 6, y: 6 },
|
|
3247
3283
|
radius: 5,
|
|
3248
3284
|
color: e.color,
|
|
@@ -3251,26 +3287,26 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3251
3287
|
])),
|
|
3252
3288
|
p("span", {
|
|
3253
3289
|
style: $(`color:${l.value.chart.legend.color}`)
|
|
3254
|
-
},
|
|
3255
|
-
], 10,
|
|
3290
|
+
}, te(e.name), 5)
|
|
3291
|
+
], 10, Wi))), 128))
|
|
3256
3292
|
], 4)) : (n(), r("div", {
|
|
3257
3293
|
key: 1,
|
|
3258
3294
|
ref_key: "chartLegend",
|
|
3259
3295
|
ref: sl
|
|
3260
3296
|
}, [
|
|
3261
|
-
|
|
3297
|
+
B(t.$slots, "legend", { legend: me.value }, void 0, !0)
|
|
3262
3298
|
], 512))
|
|
3263
3299
|
], 8, ["to"])) : h("", !0),
|
|
3264
|
-
|
|
3300
|
+
t.$slots.source ? (n(), r("div", {
|
|
3265
3301
|
key: 7,
|
|
3266
3302
|
ref_key: "source",
|
|
3267
3303
|
ref: gl,
|
|
3268
3304
|
dir: "auto"
|
|
3269
3305
|
}, [
|
|
3270
|
-
|
|
3306
|
+
B(t.$slots, "source", {}, void 0, !0)
|
|
3271
3307
|
], 512)) : h("", !0),
|
|
3272
|
-
vl(v(
|
|
3273
|
-
show: f.value.showTooltip &&
|
|
3308
|
+
vl(v(Ga), {
|
|
3309
|
+
show: f.value.showTooltip && At.value,
|
|
3274
3310
|
backgroundColor: l.value.chart.tooltip.backgroundColor,
|
|
3275
3311
|
color: l.value.chart.tooltip.color,
|
|
3276
3312
|
fontSize: l.value.chart.tooltip.fontSize,
|
|
@@ -3280,8 +3316,8 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3280
3316
|
backgroundOpacity: l.value.chart.tooltip.backgroundOpacity,
|
|
3281
3317
|
position: l.value.chart.tooltip.position,
|
|
3282
3318
|
offsetY: l.value.chart.tooltip.offsetY,
|
|
3283
|
-
parent:
|
|
3284
|
-
content:
|
|
3319
|
+
parent: t.$refs.chart,
|
|
3320
|
+
content: Oo.value,
|
|
3285
3321
|
isFullscreen: qe.value,
|
|
3286
3322
|
isCustom: l.value.chart.tooltip.customFormat && typeof l.value.chart.tooltip.customFormat == "function",
|
|
3287
3323
|
smooth: l.value.chart.tooltip.smooth,
|
|
@@ -3289,60 +3325,60 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3289
3325
|
smoothForce: l.value.chart.tooltip.smoothForce,
|
|
3290
3326
|
smoothSnapThreshold: l.value.chart.tooltip.smoothSnapThreshold
|
|
3291
3327
|
}, {
|
|
3292
|
-
"tooltip-before":
|
|
3293
|
-
|
|
3328
|
+
"tooltip-before": G(() => [
|
|
3329
|
+
B(t.$slots, "tooltip-before", ke(_e({ ...da.value })), void 0, !0)
|
|
3294
3330
|
]),
|
|
3295
|
-
"tooltip-after":
|
|
3296
|
-
|
|
3331
|
+
"tooltip-after": G(() => [
|
|
3332
|
+
B(t.$slots, "tooltip-after", ke(_e({ ...da.value })), void 0, !0)
|
|
3297
3333
|
]),
|
|
3298
3334
|
_: 3
|
|
3299
3335
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
3300
|
-
|
|
3336
|
+
ct.value && l.value.chart.userOptions.buttons.table ? (n(), Te(Zo($l.value.component), tl({ key: 8 }, $l.value.props, {
|
|
3301
3337
|
ref_key: "tableUnit",
|
|
3302
3338
|
ref: il,
|
|
3303
|
-
onClose:
|
|
3304
|
-
}),
|
|
3305
|
-
content:
|
|
3339
|
+
onClose: $a
|
|
3340
|
+
}), Ca({
|
|
3341
|
+
content: G(() => [
|
|
3306
3342
|
p("div", {
|
|
3307
|
-
style: $(`${v(
|
|
3343
|
+
style: $(`${v(dt) || l.value.table.useDialog ? "" : "max-height:400px"};${l.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${l.value.table.useDialog ? "" : "margin-top:48px"}`)
|
|
3308
3344
|
}, [
|
|
3309
|
-
p("div",
|
|
3310
|
-
|
|
3345
|
+
p("div", Ki, [
|
|
3346
|
+
Jo(p("input", {
|
|
3311
3347
|
type: "checkbox",
|
|
3312
3348
|
"onUpdate:modelValue": s[4] || (s[4] = (e) => pl.value = e)
|
|
3313
3349
|
}, null, 512), [
|
|
3314
|
-
[
|
|
3350
|
+
[Ko, pl.value]
|
|
3315
3351
|
]),
|
|
3316
3352
|
p("div", {
|
|
3317
3353
|
onClick: s[5] || (s[5] = (e) => pl.value = !pl.value),
|
|
3318
3354
|
style: { cursor: "pointer" }
|
|
3319
3355
|
}, [
|
|
3320
|
-
vl(v(
|
|
3356
|
+
vl(v($t), {
|
|
3321
3357
|
name: "chartLine",
|
|
3322
3358
|
size: 20,
|
|
3323
3359
|
stroke: l.value.chart.color
|
|
3324
3360
|
}, null, 8, ["stroke"])
|
|
3325
3361
|
])
|
|
3326
3362
|
]),
|
|
3327
|
-
pl.value ? (n(),
|
|
3328
|
-
key: `sparkline_${
|
|
3329
|
-
dataset:
|
|
3330
|
-
config:
|
|
3331
|
-
}, null, 8, ["dataset", "config"])) : (n(),
|
|
3332
|
-
key: `table_${
|
|
3333
|
-
colNames:
|
|
3334
|
-
head:
|
|
3335
|
-
body:
|
|
3336
|
-
config:
|
|
3363
|
+
pl.value ? (n(), Te(v(qa), {
|
|
3364
|
+
key: `sparkline_${ut.value}`,
|
|
3365
|
+
dataset: Ao.value,
|
|
3366
|
+
config: Co.value
|
|
3367
|
+
}, null, 8, ["dataset", "config"])) : (n(), Te(v(Xa), {
|
|
3368
|
+
key: `table_${Tt.value}`,
|
|
3369
|
+
colNames: Gl.value.colNames,
|
|
3370
|
+
head: Gl.value.head,
|
|
3371
|
+
body: Gl.value.body,
|
|
3372
|
+
config: Gl.value.config,
|
|
3337
3373
|
title: l.value.table.useDialog ? "" : $l.value.title,
|
|
3338
3374
|
withCloseButton: !l.value.table.useDialog,
|
|
3339
|
-
onClose:
|
|
3375
|
+
onClose: $a
|
|
3340
3376
|
}, {
|
|
3341
|
-
th:
|
|
3342
|
-
p("div", { innerHTML: e }, null, 8,
|
|
3377
|
+
th: G(({ th: e }) => [
|
|
3378
|
+
p("div", { innerHTML: e }, null, 8, Qi)
|
|
3343
3379
|
]),
|
|
3344
|
-
td:
|
|
3345
|
-
|
|
3380
|
+
td: G(({ td: e }) => [
|
|
3381
|
+
Ta(te(isNaN(Number(e)) ? e : v(Fe)({
|
|
3346
3382
|
p: l.value.chart.labels.prefix,
|
|
3347
3383
|
v: e,
|
|
3348
3384
|
s: l.value.chart.labels.suffix,
|
|
@@ -3357,20 +3393,20 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3357
3393
|
}, [
|
|
3358
3394
|
l.value.table.useDialog ? {
|
|
3359
3395
|
name: "title",
|
|
3360
|
-
fn:
|
|
3361
|
-
|
|
3396
|
+
fn: G(() => [
|
|
3397
|
+
Ta(te($l.value.title), 1)
|
|
3362
3398
|
]),
|
|
3363
3399
|
key: "0"
|
|
3364
3400
|
} : void 0,
|
|
3365
3401
|
l.value.table.useDialog ? {
|
|
3366
3402
|
name: "actions",
|
|
3367
|
-
fn:
|
|
3403
|
+
fn: G(() => [
|
|
3368
3404
|
p("button", {
|
|
3369
3405
|
tabindex: "0",
|
|
3370
3406
|
class: "vue-ui-user-options-button",
|
|
3371
|
-
onClick: s[3] || (s[3] = (e) =>
|
|
3407
|
+
onClick: s[3] || (s[3] = (e) => xt(l.value.chart.userOptions.callbacks.csv))
|
|
3372
3408
|
}, [
|
|
3373
|
-
vl(v(
|
|
3409
|
+
vl(v($t), {
|
|
3374
3410
|
name: "excel",
|
|
3375
3411
|
stroke: $l.value.props.color
|
|
3376
3412
|
}, null, 8, ["stroke"])
|
|
@@ -3379,10 +3415,10 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3379
3415
|
key: "1"
|
|
3380
3416
|
} : void 0
|
|
3381
3417
|
]), 1040)) : h("", !0),
|
|
3382
|
-
v(ie) ? (n(),
|
|
3383
|
-
], 46,
|
|
3418
|
+
v(ie) ? (n(), Te(fs, { key: 9 })) : h("", !0)
|
|
3419
|
+
], 46, $s));
|
|
3384
3420
|
}
|
|
3385
|
-
},
|
|
3421
|
+
}, bn = /* @__PURE__ */ Ss(ji, [["__scopeId", "data-v-71b071f4"]]);
|
|
3386
3422
|
export {
|
|
3387
|
-
|
|
3423
|
+
bn as default
|
|
3388
3424
|
};
|