vue-data-ui 3.4.9 → 3.5.0
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 +88 -37
- package/dist/{PackageVersion-CTUqGqWV.js → PackageVersion-Cyx_s25h.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-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-dashboard.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-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.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/{vue-data-ui-DjxWWa78.js → vue-data-ui-DxgRqCAo.js} +104 -98
- package/dist/vue-data-ui.js +54 -54
- package/dist/{vue-ui-3d-bar-CLE7f9pl.js → vue-ui-3d-bar-DmNJp8SY.js} +1 -1
- package/dist/{vue-ui-age-pyramid-D73uIOPm.js → vue-ui-age-pyramid-CPAP3sNY.js} +1 -1
- package/dist/{vue-ui-bullet-Bybo0xK2.js → vue-ui-bullet-Ce6uvCQJ.js} +1 -1
- package/dist/{vue-ui-candlestick-D_FyMdqH.js → vue-ui-candlestick-DewevWV_.js} +1 -1
- package/dist/{vue-ui-carousel-table-BvMlNdVo.js → vue-ui-carousel-table-Dv1CDfE5.js} +1 -1
- package/dist/{vue-ui-chestnut-DA0g0bDV.js → vue-ui-chestnut-D9sdFZ4E.js} +1 -1
- package/dist/{vue-ui-chord-CDgzolI-.js → vue-ui-chord-BG4dxKNA.js} +1 -1
- package/dist/{vue-ui-circle-pack-BPDm-ro5.js → vue-ui-circle-pack-Be74QB_0.js} +1 -1
- package/dist/{vue-ui-dashboard-CeJwbiON.js → vue-ui-dashboard-C4BLwHey.js} +54 -54
- package/dist/{vue-ui-donut-DjQXHBJE.js → vue-ui-donut-BRGFcgxS.js} +542 -526
- package/dist/{vue-ui-donut-evolution-Ca3Svr0B.js → vue-ui-donut-evolution-DJ0C-7jH.js} +364 -348
- package/dist/{vue-ui-dumbbell-CxCE2luV.js → vue-ui-dumbbell-iQJ0BUhm.js} +1 -1
- package/dist/{vue-ui-flow-DEvwXd4W.js → vue-ui-flow-CTYFoib3.js} +1 -1
- package/dist/{vue-ui-funnel-Bgcx7xia.js → vue-ui-funnel-CG55Xcdy.js} +1 -1
- package/dist/{vue-ui-galaxy-BWr1EMob.js → vue-ui-galaxy-BQrxjKZJ.js} +221 -205
- package/dist/{vue-ui-gauge-DQricvo2.js → vue-ui-gauge-Tc-0NI0Y.js} +1 -1
- package/dist/{vue-ui-gizmo-C-fKe3io.js → vue-ui-gizmo-P8h-gnLd.js} +1 -1
- package/dist/{vue-ui-heatmap-B-o_i7Hu.js → vue-ui-heatmap-BZimPzsL.js} +1 -1
- package/dist/{vue-ui-history-plot-DzQ9DPUJ.js → vue-ui-history-plot-BVzbuqYY.js} +383 -367
- package/dist/{vue-ui-molecule-I2OhrCR2.js → vue-ui-molecule-BALqwB8c.js} +1 -1
- package/dist/{vue-ui-mood-radar-BAT7kZUy.js → vue-ui-mood-radar-QJ5nlZby.js} +1 -1
- package/dist/{vue-ui-nested-donuts-CjhJDAQi.js → vue-ui-nested-donuts-CmUabkkQ.js} +404 -384
- package/dist/{vue-ui-onion-DTY2p87s.js → vue-ui-onion-DAOCf3f8.js} +331 -309
- package/dist/{vue-ui-parallel-coordinate-plot-C8aWTcNn.js → vue-ui-parallel-coordinate-plot-D8jTuFjq.js} +378 -361
- package/dist/{vue-ui-quadrant-DGnasrCR.js → vue-ui-quadrant-CO52mSRY.js} +428 -411
- package/dist/{vue-ui-quick-chart-Cam_sWet.js → vue-ui-quick-chart-DEaVSldE.js} +1 -1
- package/dist/{vue-ui-radar-DNI9WI2R.js → vue-ui-radar-C5V4hhbW.js} +393 -374
- package/dist/{vue-ui-relation-circle-Dj1jhcsl.js → vue-ui-relation-circle-CbMM0Jka.js} +1 -1
- package/dist/{vue-ui-ridgeline-adIls6bj.js → vue-ui-ridgeline-CXCIRDq6.js} +454 -438
- package/dist/{vue-ui-rings-CnTMFK6R.js → vue-ui-rings-BpUcyqo7.js} +285 -263
- package/dist/{vue-ui-scatter-fzR2c0St.js → vue-ui-scatter--Dxe-hfO.js} +629 -613
- package/dist/{vue-ui-skeleton-DUdI2uOO.js → vue-ui-skeleton-BWq-VDzg.js} +1 -1
- package/dist/{vue-ui-spark-trend-DxpRfUJz.js → vue-ui-spark-trend-T4J_YOa_.js} +1 -1
- package/dist/{vue-ui-sparkbar-B44oER5n.js → vue-ui-sparkbar-DnKP55Vu.js} +1 -1
- package/dist/{vue-ui-sparkgauge-ix12NZ7M.js → vue-ui-sparkgauge-BDQLP-zi.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-Cs-QDYBR.js → vue-ui-sparkhistogram-Dm7QXrA-.js} +1 -1
- package/dist/{vue-ui-sparkline-Cb8ZmyUq.js → vue-ui-sparkline-tXGDLHRy.js} +1 -1
- package/dist/vue-ui-sparkstackbar-M53Nt07M.js +441 -0
- package/dist/{vue-ui-stackbar-DubS6Pg8.js → vue-ui-stackbar-CkBOjryQ.js} +437 -421
- package/dist/{vue-ui-strip-plot-BjG-Jxnb.js → vue-ui-strip-plot-BX9i3wMn.js} +1 -1
- package/dist/{vue-ui-table-DdBdLrAL.js → vue-ui-table-7r02N9R9.js} +2 -2
- package/dist/{vue-ui-table-sparkline-EpCo2Be5.js → vue-ui-table-sparkline-DZaAh10E.js} +1 -1
- package/dist/{vue-ui-thermometer-DTnfnf9z.js → vue-ui-thermometer-CFPt3MOv.js} +1 -1
- package/dist/{vue-ui-timer-Br3wp8hG.js → vue-ui-timer-Ds-MJoW2.js} +1 -1
- package/dist/{vue-ui-tiremarks-CrC_tlIx.js → vue-ui-tiremarks-2eIQ6vxu.js} +1 -1
- package/dist/{vue-ui-treemap-kyuyi2ES.js → vue-ui-treemap-BEvl8hiw.js} +500 -484
- package/dist/{vue-ui-vertical-bar-yfbEfLqy.js → vue-ui-vertical-bar-D8dtM8sw.js} +350 -334
- package/dist/{vue-ui-waffle-m-9sqQik.js → vue-ui-waffle-B3q-2SCR.js} +302 -286
- package/dist/{vue-ui-wheel-BasM7FWt.js → vue-ui-wheel-BpirIgAG.js} +1 -1
- package/dist/{vue-ui-word-cloud-vNwswYZD.js → vue-ui-word-cloud-ChT7uLbN.js} +1 -1
- package/dist/{vue-ui-world-BsCNyZy_.js → vue-ui-world-CdP4g_3_.js} +1 -1
- package/dist/{vue-ui-xy-CIrw1lWQ.js → vue-ui-xy-B68qQ-gX.js} +1089 -1073
- package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-DDngEA1s.js} +338 -322
- package/package.json +1 -1
- package/dist/vue-ui-sparkstackbar-BiRZ51OU.js +0 -424
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
import { defineAsyncComponent as Ye, useSlots 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 Ye, 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 Ae, createCommentVNode as h, createElementVNode as p, createVNode as vl, unref as v, createSlots as Ca, withCtx as j, renderSlot as W, normalizeProps as We, guardReactiveProps as Xe, 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 E, 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 Ne, d as Ve, i as ol, s as Ce, I as ss, J as Ge, K as Jl, L as we, 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-BjZe1Y85.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-l36lOBMx.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-CZ0thhxa.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 = Ye(() => import("./DataTable-BT7VF2ua.js")), Ga = Ye(() => import("./Tooltip-oWCO1HKy.js")), Ua = Ye(() => import("./UserOptions-CGnQt6Fd.js")), $t = Ye(() => import("./BaseIcon-BmMbm4d0.js")), qa = Ye(() => import("./vue-ui-table-sparkline-DZaAh10E.js")), Za = Ye(() => import("./PackageVersion-Cyx_s25h.js")), Ja = Ye(() => import("./PenAndPaper-DSvu9dwa.js")), Ka = Ye(() => import("./BaseDraggableDialog-ymf2sfB8.js")), et = Wa, Lt = Xo(), Qa = Go(), { vue_ui_xy: hl } = vs(), Te = x(null), fl = x(null), ze = 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), Re = 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), Z = x([]), D = 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), Pe = 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
|
+
}), Se = 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: Ie.value }),
|
|
259
|
-
function
|
|
260
|
-
|
|
255
|
+
const oo = ao((t, s) => St({ data: t, threshold: s })), Be = (t) => oo(t, l.value.downsample.threshold), Ie = b({
|
|
256
|
+
get: () => Math.max(...ge.value.map((t) => Be(t.series).length)),
|
|
257
|
+
set: (t) => t
|
|
258
|
+
}), m = x({ start: 0, end: Ie.value }), $e = x({ start: 0, end: Ie.value }), Ft = b(() => l.value.chart.zoom.preview.enable && ($e.value.start !== m.value.start || $e.value.end !== m.value.end));
|
|
259
|
+
function Rt(t, s) {
|
|
260
|
+
$e.value[t] = s;
|
|
261
261
|
}
|
|
262
262
|
function nl() {
|
|
263
|
-
const
|
|
263
|
+
const t = Math.max(
|
|
264
264
|
1,
|
|
265
265
|
...ge.value.map((u) => Be(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 }, $e.value.start = s, $e.value.end = e, ze.value && (ze.value.setStartValue(s), ze.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 = $e.value.start - a, O = $e.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:
|
|
298
|
+
const { isPrinting: dt, isImaging: Bt, generatePdf: Ht, generateImage: Dt } = ds({
|
|
299
299
|
elementId: `vue-ui-xy_${D.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(...Fe.value.filter((s) => !Z.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 = Be(
|
|
310
|
+
const t = Math.max(...Fe.value.filter((s) => !Z.value.includes(s.id)).map((s) => Math.max(...s.series)));
|
|
311
|
+
return Vl.value === t ? t + 1 : t;
|
|
312
|
+
}), Le = 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) ? Le.value.min >= 0 ? 0 : Math.abs(Le.value.min) : -Le.value.min), Fe = b(() => Mt.value ? ge.value.map((t, s) => {
|
|
313
|
+
const e = Be(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(() => Fe.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: Z.value.includes(t.id)
|
|
329
|
+
}))), ke = b(() => Fe.value.map((t, s) => ({
|
|
330
|
+
...t,
|
|
331
|
+
series: t.series.map((e) => e + kl.value),
|
|
332
|
+
absoluteValues: t.series
|
|
333
|
+
})).filter((t) => !Z.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 - Z.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((
|
|
381
|
+
}), co = b(() => {
|
|
382
|
+
const t = l.value.chart.grid.position === "middle" ? 1 : 0, s = L.value + t, e = E(c.value.top), u = E(c.value.bottom);
|
|
383
|
+
return Array.from({ length: s }).map((a, i) => {
|
|
384
384
|
const o = c.value.width / L.value * i + c.value.left + G.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 = Te.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 && (Pe.value[`${
|
|
410
|
+
function Fl(t, s, e, u, a) {
|
|
411
|
+
e && (Pe.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
436
|
end: Ie.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 = ke.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
|
|
489
|
+
function Zt(t) {
|
|
490
490
|
const s = Math.max(...ge.value.map((e) => Be(e.series).length));
|
|
491
|
-
return
|
|
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) => Be(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, $e.value.start = u, $e.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, $e.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, $e.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(() => Le.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
534
|
const q = b(() => {
|
|
535
|
-
const
|
|
535
|
+
const t = Math.max(1, L.value), s = Math.max(1, c.value.width), e = Math.max(1, Fe.value.filter((u) => u.type === "bar" && !Z.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
542
|
function He() {
|
|
543
543
|
return f.value.useIndividualScale && f.value.isStacked ? q.value.line - c.value.width / L.value * 0.1 : q.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 + q.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 =
|
|
560
|
+
T.x = t.clientX, T.y = t.clientY;
|
|
561
561
|
const Y = s.getScreenCTM();
|
|
562
562
|
if (Y) {
|
|
563
563
|
const k = T.matrixTransform(Y.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 = ke.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
|
|
629
|
+
async function _o({ scale: t = 2 } = {}) {
|
|
630
630
|
if (!Te.value) return;
|
|
631
|
-
const { width: s, height: e } = Te.value.getBoundingClientRect(), u = s / e, { imageUri:
|
|
631
|
+
const { width: s, height: e } = Te.value.getBoundingClientRect(), u = s / e, { imageUri: a, base64: i } = await ps({ domElement: Te.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,26 +638,40 @@ 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 (Z.value.includes(t.id))
|
|
643
|
+
Z.value = Z.value.filter((s) => s !== t.id);
|
|
644
644
|
else {
|
|
645
|
-
if (
|
|
646
|
-
|
|
645
|
+
if (Z.value.length + 1 === Fe.value.length) return;
|
|
646
|
+
Z.value.push(t.id);
|
|
647
647
|
}
|
|
648
|
-
|
|
648
|
+
et("selectLegend", ke.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
654
|
}
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
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);
|
|
660
|
+
}
|
|
661
|
+
function wo(t) {
|
|
662
|
+
const s = sa(t);
|
|
663
|
+
s !== null && Z.value.includes(s.id) && El({ id: s.id });
|
|
664
|
+
}
|
|
665
|
+
function So(t) {
|
|
666
|
+
const s = sa(t);
|
|
667
|
+
s !== null && (Z.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
677
|
const e = Math.min(s.to, Ie.value - 1);
|
|
@@ -666,25 +680,25 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
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
685
|
to: Math.min(l.value.chart.highlightArea.to, Ie.value - 1)
|
|
672
686
|
};
|
|
673
|
-
return [{ ...
|
|
674
|
-
}),
|
|
675
|
-
...
|
|
676
|
-
series: Be(
|
|
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: Be(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(() => ke.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
|
-
})), G = b(() => l.value.chart.grid.position === "middle" ? 0 : c.value.width / L.value / 2), Qe = b(() =>
|
|
714
|
-
const
|
|
715
|
-
for (const [e, u] of Object.entries(
|
|
716
|
-
const
|
|
727
|
+
})), G = b(() => l.value.chart.grid.position === "middle" ? 0 : c.value.width / L.value / 2), Qe = b(() => ls(me.value.filter((t) => !Z.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 = Fe.value.filter((s) => s.type === "bar").filter((s) => !Z.value.includes(s.id)).length;
|
|
740
|
+
return c.value.width / L.value / t - Yl.value * t;
|
|
741
|
+
}), Yl = b(() => q.value.line * l.value.bar.periodGap), Wl = b(() => Math.max(1e-5, He() - (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) => !Z.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: !Z.value.includes(s.id)
|
|
751
|
+
})) : []), je = b(() => ke.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(() => Le.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 = Le.value.min, C = Le.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: Y, label: k } } = S, F = T != null && Y != null && T !== Y, z = T == null ? null : O(T), le = Y == null ? null : O(Y), re =
|
|
778
|
+
const { yAxis: { yTop: T, yBottom: Y, label: k } } = S, F = T != null && Y != null && T !== Y, z = T == null ? null : O(T), le = Y == null ? null : O(Y), re = ho(k.fontSize);
|
|
765
779
|
re.font = `${k.fontSize}px sans-serif`;
|
|
766
|
-
const U = re.measureText(k.text).width,
|
|
780
|
+
const U = re.measureText(k.text).width, _e = k.fontSize, Oe = (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;
|
|
767
781
|
let B;
|
|
768
782
|
k.textAnchor === "middle" ? B = Oe - U / 2 - k.padding.left : k.textAnchor === "end" ? B = Oe - U - k.padding.right : B = Oe - k.padding.left;
|
|
769
|
-
const H =
|
|
783
|
+
const H = pe - _e * 0.75 - k.padding.top;
|
|
770
784
|
return {
|
|
771
785
|
show: ![z, le, H].includes(NaN),
|
|
772
|
-
id: `annotation_y_${
|
|
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: Oe, y:
|
|
794
|
+
_text: { x: Oe, y: pe },
|
|
781
795
|
_box: {
|
|
782
796
|
x: B,
|
|
783
797
|
y: H,
|
|
784
798
|
width: U + k.padding.left + k.padding.right,
|
|
785
|
-
height:
|
|
799
|
+
height: _e + 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
814
|
const Me = b(() => {
|
|
801
|
-
const
|
|
802
|
-
return
|
|
803
|
-
|
|
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
|
-
}, Y = 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, Y) :
|
|
813
|
-
const Ee = f.value.useIndividualScale ? (o.absoluteValues[
|
|
826
|
+
}, Y = 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, Y) : al(T.min, T.max === T.min ? T.max * k : T.max, Y), z = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, Y) : al(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, Y), le = F.min >= 0 ? 0 : Math.abs(F.min), re = 0, U = F.max + le, _e = z.max + Math.abs(re), Oe = o.stackIndex, cl = s - 1 - Oe, pe = u ? 1 - o.cumulatedStackRatio : 0, B = u ? i * pe + e * cl : 0, H = u ? i * o.stackRatio : c.value.height, J = c.value.bottom - B - H * le / U, ye = c.value.bottom - B - H * re / _e, ce = me.value.filter((R) => R.type === "bar").filter((R) => !Z.value.includes(R.id)).length, Ll = o.series.map((R, Q) => {
|
|
827
|
+
const Ee = f.value.useIndividualScale ? (o.absoluteValues[Q] + le) / U : Je(R), el = f.value.useIndividualScale && f.value.isStacked ? c.value.left + c.value.width / L.value * Q : c.value.left + q.value.bar * A + q.value.bar * Q * ce - To.value / 2 - A * Yl.value;
|
|
814
828
|
return {
|
|
815
829
|
yOffset: P(B),
|
|
816
830
|
individualHeight: P(H),
|
|
817
831
|
x: P(el),
|
|
818
832
|
y: c.value.bottom - B - H * Ee,
|
|
819
|
-
value: o.absoluteValues[
|
|
820
|
-
zeroPosition: P(
|
|
833
|
+
value: o.absoluteValues[Q],
|
|
834
|
+
zeroPosition: P(J),
|
|
821
835
|
individualMax: P(U),
|
|
822
|
-
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[
|
|
836
|
+
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[Q] || ""
|
|
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))), De = o.series.map((R,
|
|
825
|
-
const Ee = f.value.useIndividualScale && f.value.isStacked ? c.value.left + c.value.width / L.value *
|
|
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))), De = o.series.map((R, Q) => {
|
|
839
|
+
const Ee = f.value.useIndividualScale && f.value.isStacked ? c.value.left + c.value.width / L.value * Q : c.value.left - q.value.bar / 2 + q.value.bar * A + q.value.bar * Q * me.value.filter((el) => el.type === "bar").filter((el) => !Z.value.includes(el.id)).length;
|
|
826
840
|
return {
|
|
827
841
|
yOffset: P(B),
|
|
828
842
|
individualHeight: P(H),
|
|
829
843
|
x: P(Ee),
|
|
830
|
-
y: P(c.value.bottom - P(B) - (P(H) * he[
|
|
831
|
-
value: o.absoluteValues[
|
|
832
|
-
zeroPosition: P(
|
|
844
|
+
y: P(c.value.bottom - P(B) - (P(H) * he[Q] || 0)),
|
|
845
|
+
value: o.absoluteValues[Q],
|
|
846
|
+
zeroPosition: P(J),
|
|
833
847
|
individualMax: P(U),
|
|
834
|
-
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[
|
|
848
|
+
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[Q] || ""
|
|
835
849
|
};
|
|
836
850
|
}), X = F.ticks.map((R) => ({
|
|
837
|
-
y: R >= 0 ?
|
|
851
|
+
y: R >= 0 ? J - H * (R / U) : J + H * Math.abs(R) / U,
|
|
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
|
+
})), K = z.ticks.map((R) => {
|
|
857
|
+
const Q = (R - z.min) / (z.max - z.min);
|
|
844
858
|
return {
|
|
845
|
-
y: R >= 0 ?
|
|
859
|
+
y: R >= 0 ? ye - H * Q : ye + H * Q,
|
|
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 ? K : X, M.value[o.scaleLabel].zeroPosition = o.autoScaling ? ye : J, M.value[o.scaleLabel].individualMax = o.autoScaling ? _e : U, M.value[o.scaleLabel].scaleLabel = o.scaleLabel, M.value[o.scaleLabel].id = o.id, M.value[o.scaleLabel].yOffset = B, M.value[o.scaleLabel].individualHeight = H, M.value[o.scaleLabel].autoScaleYLabels = K, M.value[o.scaleLabel].unique = Qe.value.filter((R) => R.scaleLabel === o.scaleLabel).length === 1, {
|
|
853
867
|
...o,
|
|
854
868
|
yOffset: B,
|
|
855
|
-
autoScaleYLabels:
|
|
869
|
+
autoScaleYLabels: K,
|
|
856
870
|
individualHeight: H,
|
|
857
|
-
scaleYLabels: o.autoScaling ?
|
|
871
|
+
scaleYLabels: o.autoScaling ? K : X,
|
|
858
872
|
individualScale: o.autoScaling ? z : F,
|
|
859
|
-
individualMax: o.autoScaling ?
|
|
860
|
-
zeroPosition: o.autoScaling ?
|
|
873
|
+
individualMax: o.autoScaling ? _e : U,
|
|
874
|
+
zeroPosition: o.autoScaling ? ye : J,
|
|
861
875
|
plots: o.autoScaling ? De : 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,17 +888,17 @@ 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
|
-
}, Y = 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, Y) :
|
|
878
|
-
const
|
|
891
|
+
}, Y = 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, Y) : al(T.min, T.max === T.min ? T.max * k : T.max, Y), z = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, Y) : al(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, Y), le = F.min >= 0 ? 0 : Math.abs(F.min), re = 0, U = F.max + Math.abs(le), _e = z.max + Math.abs(re), Oe = o.stackIndex, cl = s - 1 - Oe, pe = u ? 1 - o.cumulatedStackRatio : 0, B = u ? i * pe + e * cl : 0, H = u ? i * o.stackRatio : c.value.height, J = c.value.bottom - B - H * le / U, ye = c.value.bottom - B - H * re / _e, ce = o.series.map((N, oe) => {
|
|
892
|
+
const Wo = f.value.useIndividualScale ? (o.absoluteValues[oe] + Math.abs(le)) / U : Je(N);
|
|
879
893
|
return {
|
|
880
894
|
x: P(c.value.left + q.value.line / 2 + q.value.line * oe),
|
|
881
|
-
y: P(c.value.bottom - B - H *
|
|
895
|
+
y: P(c.value.bottom - B - H * 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
900
|
x: P(c.value.left + q.value.line / 2 + q.value.line * oe),
|
|
887
|
-
y:
|
|
901
|
+
y: J,
|
|
888
902
|
value: o.absoluteValues[oe],
|
|
889
903
|
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[oe] || ""
|
|
890
904
|
} : {
|
|
@@ -892,8 +906,8 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
892
906
|
y: P(c.value.bottom - B - (H * 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
|
-
}), De = l.value.line.cutNullValues ?
|
|
896
|
-
y: N >= 0 ?
|
|
909
|
+
}), De = 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)), K = 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)), Q = F.ticks.map((N) => ({
|
|
910
|
+
y: N >= 0 ? J - H * (N / U) : J + H * Math.abs(N) / U,
|
|
897
911
|
value: N,
|
|
898
912
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
899
913
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
@@ -901,46 +915,46 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
901
915
|
})), Ee = 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 - H * oe : ye + H * 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 ? Ee :
|
|
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 ? Ee : Q, M.value[o.scaleLabel].zeroPosition = o.autoScaling ? ye : J, M.value[o.scaleLabel].individualMax = o.autoScaling ? _e : U, M.value[o.scaleLabel].scaleLabel = o.scaleLabel, M.value[o.scaleLabel].id = o.id, M.value[o.scaleLabel].yOffset = B, M.value[o.scaleLabel].individualHeight = H, M.value[o.scaleLabel].autoScaleYLabels = Ee, M.value[o.scaleLabel].unique = Qe.value.filter((N) => N.scaleLabel === o.scaleLabel).length === 1;
|
|
926
|
+
const el = f.value.useIndividualScale ? o.autoScaling ? ye : J : ne.value, Ml = Math.max(Math.max(o.autoScaling ? ye : Q.at(-1) ? Q.at(-1).y : 0, c.value.top), el);
|
|
913
927
|
return {
|
|
914
928
|
...o,
|
|
915
929
|
yOffset: B,
|
|
916
930
|
autoScaleYLabels: Ee,
|
|
917
931
|
individualHeight: H,
|
|
918
|
-
scaleYLabels: o.autoScaling ? Ee :
|
|
932
|
+
scaleYLabels: o.autoScaling ? Ee : Q,
|
|
919
933
|
individualScale: o.autoScaling ? z : F,
|
|
920
|
-
individualMax: o.autoScaling ?
|
|
921
|
-
zeroPosition: o.autoScaling ?
|
|
934
|
+
individualMax: o.autoScaling ? _e : U,
|
|
935
|
+
zeroPosition: o.autoScaling ? ye : J,
|
|
922
936
|
curve: o.autoScaling ? X : De,
|
|
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 : K,
|
|
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,19 +963,19 @@ 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, Y = 1.0000001, k =
|
|
953
|
-
const R = f.value.useIndividualScale ? (o.absoluteValues[
|
|
966
|
+
}, T = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, Y = 1.0000001, k = al(S.min, S.max === S.min ? S.max * Y : S.max, T), F = al(O.valueMin, O.valueMax === O.valueMin ? O.valueMax * Y : O.valueMax, T), z = k.min >= 0 ? 0 : Math.abs(k.min), le = 0, re = k.max + z, U = F.max + Math.abs(le), _e = o.stackIndex, Oe = s - 1 - _e, cl = u ? 1 - o.cumulatedStackRatio : 0, pe = u ? i * cl + e * Oe : 0, B = u ? i * o.stackRatio : c.value.height, H = c.value.bottom - pe - B * z / re, J = c.value.bottom - pe - B * le / U, ye = o.series.map((X, K) => {
|
|
967
|
+
const R = f.value.useIndividualScale ? (o.absoluteValues[K] + Math.abs(z)) / re : Je(X);
|
|
954
968
|
return {
|
|
955
|
-
x: P(c.value.left + q.value.plot / 2 + q.value.plot *
|
|
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 + q.value.plot / 2 + q.value.plot * K),
|
|
970
|
+
y: P(c.value.bottom - pe - B * R),
|
|
971
|
+
value: o.absoluteValues[K],
|
|
972
|
+
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[K] || ""
|
|
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 + q.value.plot / 2 + q.value.plot *
|
|
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, K) => ({
|
|
975
|
+
x: P(c.value.left + q.value.plot / 2 + q.value.plot * K),
|
|
976
|
+
y: P(c.value.bottom - pe - (B * ce[K] || 0)),
|
|
977
|
+
value: o.absoluteValues[K],
|
|
978
|
+
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[K] || ""
|
|
965
979
|
})), he = k.ticks.map((X) => ({
|
|
966
980
|
y: X >= 0 ? H - B * (X / re) : H + B * Math.abs(X) / re,
|
|
967
981
|
value: X,
|
|
@@ -969,30 +983,30 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
969
983
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
970
984
|
datapoint: o
|
|
971
985
|
})), De = F.ticks.map((X) => {
|
|
972
|
-
const
|
|
986
|
+
const K = (X - F.min) / (F.max - F.min);
|
|
973
987
|
return {
|
|
974
|
-
y: X >= 0 ?
|
|
988
|
+
y: X >= 0 ? J - B * K : J + B * K,
|
|
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 ? De : he, M.value[o.scaleLabel].zeroPosition = 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 ? De : he, M.value[o.scaleLabel].zeroPosition = o.autoScaling ? J : H, M.value[o.scaleLabel].individualMax = o.autoScaling ? U : 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 = B, M.value[o.scaleLabel].autoScaleYLabels = De, M.value[o.scaleLabel].unique = Qe.value.filter((X) => X.scaleLabel === o.scaleLabel).length === 1, {
|
|
982
996
|
...o,
|
|
983
|
-
yOffset:
|
|
997
|
+
yOffset: pe,
|
|
984
998
|
autoScaleYLabels: De,
|
|
985
999
|
individualHeight: B,
|
|
986
1000
|
scaleYLabels: o.autoScaling ? De : he,
|
|
987
1001
|
individualScale: o.autoScaling ? F : k,
|
|
988
1002
|
individualMax: o.autoScaling ? U : re,
|
|
989
|
-
zeroPosition: o.autoScaling ?
|
|
990
|
-
plots: o.autoScaling ? Ll :
|
|
1003
|
+
zeroPosition: o.autoScaling ? J : H,
|
|
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,
|
|
@@ -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,135 +1091,135 @@ 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:
|
|
1097
|
+
series: me.value,
|
|
1084
1098
|
bars: Me.value,
|
|
1085
|
-
lines:
|
|
1086
|
-
plots:
|
|
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:
|
|
1122
|
+
series: me.value,
|
|
1109
1123
|
bars: Me.value,
|
|
1110
|
-
lines:
|
|
1111
|
-
plots:
|
|
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:
|
|
1132
|
+
series: me.value,
|
|
1119
1133
|
bars: Me.value,
|
|
1120
|
-
lines:
|
|
1121
|
-
plots:
|
|
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_${D.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="${Ne({ 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="${Ne({ 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="${Ne({ 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="${Ne({ 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="${Ne({ 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="${Ne({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${
|
|
1161
|
+
if (a.shape === "triangle") {
|
|
1162
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ 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="${Ne({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${
|
|
1165
|
+
if (a.shape === "square") {
|
|
1166
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ 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="${Ne({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${
|
|
1169
|
+
if (a.shape === "diamond") {
|
|
1170
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ 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="${Ne({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${
|
|
1173
|
+
if (a.shape === "pentagon") {
|
|
1174
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ 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="${Ne({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${
|
|
1177
|
+
if (a.shape === "hexagon") {
|
|
1178
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ 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
|
-
|
|
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,
|
|
1171
1185
|
Ve({
|
|
1172
|
-
p:
|
|
1173
|
-
v:
|
|
1174
|
-
s:
|
|
1186
|
+
p: a.prefix,
|
|
1187
|
+
v: a.value,
|
|
1188
|
+
s: a.suffix,
|
|
1175
1189
|
r: l.value.chart.tooltip.roundingValue
|
|
1176
1190
|
}),
|
|
1177
|
-
{ datapoint:
|
|
1191
|
+
{ datapoint: a }
|
|
1178
1192
|
) : ""}</b> ${l.value.chart.tooltip.showPercentage ? `(${Ve({
|
|
1179
|
-
v: P(Math.abs(
|
|
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
|
-
}),
|
|
1198
|
+
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${l.value.chart.tooltip.color}">${t}</div>`;
|
|
1199
|
+
}), fa = b(() => {
|
|
1186
1200
|
if (Fe.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
1187
|
-
const
|
|
1201
|
+
const t = ke.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
|
+
ke.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(ke.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 = ke.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(ke.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,
|
|
@@ -1216,7 +1230,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
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(ke.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 = ke.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, Se.value.plot = l.value.plot.radius, Se.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
|
+
}), Se.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
|
+
}), Se.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,148 +1332,148 @@ 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
1342
|
const e = Te.value.parentNode;
|
|
1329
|
-
Re.value && (Re.value.unobserve(
|
|
1330
|
-
const { height: u, width:
|
|
1343
|
+
Re.value && (Re.value.unobserve(st.value), Re.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 && Ie.value > 6 &&
|
|
1348
|
+
l.value.chart.zoom.show && Ie.value > 6 && ct.value && ze.value && ze.value.$el && (A = ze.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
1353
|
let Y = 0;
|
|
1340
|
-
ml.value && (Y = ml.value.getBoundingClientRect().height), ve.value = u - o - S - C - T - Y -
|
|
1354
|
+
ml.value && (Y = ml.value.getBoundingClientRect().height), ve.value = u - o - S - C - T - Y - 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
1357
|
l.value.chart.title.show && fl.value ? o = fl.value.getBoundingClientRect().height : o = 0, ze.value && ze.value.$el ? C = ze.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 ? Y = ml.value.getBoundingClientRect().height : Y = 0, requestAnimationFrame(() => {
|
|
1344
|
-
ve.value = z.contentRect.height - o - S - C - T - Y -
|
|
1358
|
+
ve.value = z.contentRect.height - o - S - C - T - Y - 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
|
-
Re.value = k,
|
|
1361
|
+
Re.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, Se.value.plot = l.value.plot.radius, Se.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 }), Re.value && (Re.value.unobserve(st.value), Re.value.disconnect(), Re.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
1431
|
bars: Me.value,
|
|
1418
|
-
lines:
|
|
1419
|
-
plots:
|
|
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), Ie.value = Math.max(...ge.value.map((s) => Be(s.series).length)), m.value = {
|
|
1432
1446
|
start: 0,
|
|
1433
1447
|
end: Ie.value
|
|
1434
|
-
},
|
|
1435
|
-
}, { deep: !0 }), Al(() => g.config, (
|
|
1436
|
-
ie.value || (l.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 = Te.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
|
-
Te.value?.parentNode &&
|
|
1467
|
+
Te.value?.parentNode && t.observe(Te.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,
|
|
@@ -1484,62 +1498,64 @@ 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
|
+
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", {
|
|
1525
1541
|
id: `vue-ui-xy_${D.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
1544
|
ref: Te,
|
|
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(), Ae(v(
|
|
1550
|
+
l.value.chart.userOptions.buttons.annotator && ue.value ? (n(), Ae(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:
|
|
1556
|
+
onClose: ft
|
|
1541
1557
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
1542
|
-
|
|
1558
|
+
Lo.value ? (n(), r("div", {
|
|
1543
1559
|
key: 1,
|
|
1544
1560
|
ref_key: "noTitle",
|
|
1545
1561
|
ref: ml,
|
|
@@ -1553,8 +1569,8 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1553
1569
|
class: "vue-ui-xy-title",
|
|
1554
1570
|
style: $(`font-family:${l.value.chart.fontFamily}`)
|
|
1555
1571
|
}, [
|
|
1556
|
-
(n(), Ae(
|
|
1557
|
-
key: `title_${
|
|
1572
|
+
(n(), Ae(ys, {
|
|
1573
|
+
key: `title_${zt.value}`,
|
|
1558
1574
|
config: {
|
|
1559
1575
|
title: {
|
|
1560
1576
|
cy: "xy-div-title",
|
|
@@ -1569,15 +1585,15 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1569
1585
|
], 4)) : h("", !0),
|
|
1570
1586
|
p("div", {
|
|
1571
1587
|
id: `legend-top-${D.value}`
|
|
1572
|
-
}, null, 8,
|
|
1573
|
-
l.value.chart.userOptions.show && (
|
|
1588
|
+
}, null, 8, Ls),
|
|
1589
|
+
l.value.chart.userOptions.show && (it.value || zl.value) ? (n(), Ae(v(Ua), {
|
|
1574
1590
|
ref_key: "userOptionsRef",
|
|
1575
|
-
ref:
|
|
1576
|
-
key: `user_options_${
|
|
1591
|
+
ref: ot,
|
|
1592
|
+
key: `user_options_${Ct.value}`,
|
|
1577
1593
|
backgroundColor: l.value.chart.backgroundColor,
|
|
1578
1594
|
color: l.value.chart.color,
|
|
1579
|
-
isPrinting: v(
|
|
1580
|
-
isImaging: v(
|
|
1595
|
+
isPrinting: v(dt),
|
|
1596
|
+
isImaging: v(Bt),
|
|
1581
1597
|
uid: D.value,
|
|
1582
1598
|
hasTooltip: l.value.chart.userOptions.buttons.tooltip && l.value.chart.tooltip.show,
|
|
1583
1599
|
hasPdf: l.value.chart.userOptions.buttons.pdf,
|
|
@@ -1586,11 +1602,11 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1586
1602
|
hasSvg: l.value.chart.userOptions.buttons.svg,
|
|
1587
1603
|
hasLabel: l.value.chart.userOptions.buttons.labels,
|
|
1588
1604
|
hasTable: l.value.chart.userOptions.buttons.table,
|
|
1589
|
-
hasStack:
|
|
1605
|
+
hasStack: jl.dataset.length > 1 && l.value.chart.userOptions.buttons.stack,
|
|
1590
1606
|
hasFullscreen: l.value.chart.userOptions.buttons.fullscreen,
|
|
1591
1607
|
isStacked: f.value.isStacked,
|
|
1592
1608
|
isFullscreen: qe.value,
|
|
1593
|
-
chartElement:
|
|
1609
|
+
chartElement: t.$refs.chart,
|
|
1594
1610
|
position: l.value.chart.userOptions.position,
|
|
1595
1611
|
isTooltip: f.value.showTooltip,
|
|
1596
1612
|
titles: { ...l.value.chart.userOptions.buttonTitles },
|
|
@@ -1599,94 +1615,94 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1599
1615
|
callbacks: l.value.chart.userOptions.callbacks,
|
|
1600
1616
|
tableDialog: l.value.table.useDialog,
|
|
1601
1617
|
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:
|
|
1618
|
+
onToggleFullscreen: pa,
|
|
1619
|
+
onGeneratePdf: v(Ht),
|
|
1620
|
+
onGenerateCsv: xt,
|
|
1621
|
+
onGenerateImage: v(Dt),
|
|
1622
|
+
onGenerateSvg: La,
|
|
1623
|
+
onToggleTable: ma,
|
|
1624
|
+
onToggleLabels: ba,
|
|
1625
|
+
onToggleStack: qt,
|
|
1626
|
+
onToggleTooltip: xa,
|
|
1627
|
+
onToggleAnnotator: ft,
|
|
1612
1628
|
style: $({
|
|
1613
|
-
visibility:
|
|
1629
|
+
visibility: it.value ? zl.value ? "visible" : "hidden" : "visible"
|
|
1614
1630
|
})
|
|
1615
|
-
},
|
|
1616
|
-
|
|
1631
|
+
}, Ca({ _: 2 }, [
|
|
1632
|
+
t.$slots.menuIcon ? {
|
|
1617
1633
|
name: "menuIcon",
|
|
1618
|
-
fn:
|
|
1619
|
-
W(
|
|
1634
|
+
fn: j(({ isOpen: e, color: u }) => [
|
|
1635
|
+
W(t.$slots, "menuIcon", We(Xe({ isOpen: e, color: u })), void 0, !0)
|
|
1620
1636
|
]),
|
|
1621
1637
|
key: "0"
|
|
1622
1638
|
} : void 0,
|
|
1623
|
-
|
|
1639
|
+
t.$slots.optionTooltip ? {
|
|
1624
1640
|
name: "optionTooltip",
|
|
1625
|
-
fn:
|
|
1626
|
-
W(
|
|
1641
|
+
fn: j(() => [
|
|
1642
|
+
W(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
1627
1643
|
]),
|
|
1628
1644
|
key: "1"
|
|
1629
1645
|
} : void 0,
|
|
1630
|
-
|
|
1646
|
+
t.$slots.optionPdf ? {
|
|
1631
1647
|
name: "optionPdf",
|
|
1632
|
-
fn:
|
|
1633
|
-
W(
|
|
1648
|
+
fn: j(() => [
|
|
1649
|
+
W(t.$slots, "optionPdf", {}, void 0, !0)
|
|
1634
1650
|
]),
|
|
1635
1651
|
key: "2"
|
|
1636
1652
|
} : void 0,
|
|
1637
|
-
|
|
1653
|
+
t.$slots.optionCsv ? {
|
|
1638
1654
|
name: "optionCsv",
|
|
1639
|
-
fn:
|
|
1640
|
-
W(
|
|
1655
|
+
fn: j(() => [
|
|
1656
|
+
W(t.$slots, "optionCsv", {}, void 0, !0)
|
|
1641
1657
|
]),
|
|
1642
1658
|
key: "3"
|
|
1643
1659
|
} : void 0,
|
|
1644
|
-
|
|
1660
|
+
t.$slots.optionImg ? {
|
|
1645
1661
|
name: "optionImg",
|
|
1646
|
-
fn:
|
|
1647
|
-
W(
|
|
1662
|
+
fn: j(() => [
|
|
1663
|
+
W(t.$slots, "optionImg", {}, void 0, !0)
|
|
1648
1664
|
]),
|
|
1649
1665
|
key: "4"
|
|
1650
1666
|
} : void 0,
|
|
1651
|
-
|
|
1667
|
+
t.$slots.optionSvg ? {
|
|
1652
1668
|
name: "optionSvg",
|
|
1653
|
-
fn:
|
|
1654
|
-
W(
|
|
1669
|
+
fn: j(() => [
|
|
1670
|
+
W(t.$slots, "optionSvg", {}, void 0, !0)
|
|
1655
1671
|
]),
|
|
1656
1672
|
key: "5"
|
|
1657
1673
|
} : void 0,
|
|
1658
|
-
|
|
1674
|
+
t.$slots.optionTable ? {
|
|
1659
1675
|
name: "optionTable",
|
|
1660
|
-
fn:
|
|
1661
|
-
W(
|
|
1676
|
+
fn: j(() => [
|
|
1677
|
+
W(t.$slots, "optionTable", {}, void 0, !0)
|
|
1662
1678
|
]),
|
|
1663
1679
|
key: "6"
|
|
1664
1680
|
} : void 0,
|
|
1665
|
-
|
|
1681
|
+
t.$slots.optionLabels ? {
|
|
1666
1682
|
name: "optionLabels",
|
|
1667
|
-
fn:
|
|
1668
|
-
W(
|
|
1683
|
+
fn: j(() => [
|
|
1684
|
+
W(t.$slots, "optionLabels", {}, void 0, !0)
|
|
1669
1685
|
]),
|
|
1670
1686
|
key: "7"
|
|
1671
1687
|
} : void 0,
|
|
1672
|
-
|
|
1688
|
+
t.$slots.optionStack ? {
|
|
1673
1689
|
name: "optionStack",
|
|
1674
|
-
fn:
|
|
1675
|
-
W(
|
|
1690
|
+
fn: j(({ isStack: e }) => [
|
|
1691
|
+
W(t.$slots, "optionStack", We(Xe({ isStack: e })), void 0, !0)
|
|
1676
1692
|
]),
|
|
1677
1693
|
key: "8"
|
|
1678
1694
|
} : void 0,
|
|
1679
|
-
|
|
1695
|
+
t.$slots.optionFullscreen ? {
|
|
1680
1696
|
name: "optionFullscreen",
|
|
1681
|
-
fn:
|
|
1682
|
-
W(
|
|
1697
|
+
fn: j(({ toggleFullscreen: e, isFullscreen: u }) => [
|
|
1698
|
+
W(t.$slots, "optionFullscreen", We(Xe({ toggleFullscreen: e, isFullscreen: u })), void 0, !0)
|
|
1683
1699
|
]),
|
|
1684
1700
|
key: "9"
|
|
1685
1701
|
} : void 0,
|
|
1686
|
-
|
|
1702
|
+
t.$slots.optionAnnotator ? {
|
|
1687
1703
|
name: "optionAnnotator",
|
|
1688
|
-
fn:
|
|
1689
|
-
W(
|
|
1704
|
+
fn: j(({ toggleAnnotator: e, isAnnotator: u }) => [
|
|
1705
|
+
W(t.$slots, "optionAnnotator", We(Xe({ toggleAnnotator: e, isAnnotator: u })), void 0, !0)
|
|
1690
1706
|
]),
|
|
1691
1707
|
key: "10"
|
|
1692
1708
|
} : void 0
|
|
@@ -1703,21 +1719,21 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1703
1719
|
color: l.value.chart.color,
|
|
1704
1720
|
fontFamily: l.value.chart.fontFamily
|
|
1705
1721
|
}),
|
|
1706
|
-
"aria-label":
|
|
1722
|
+
"aria-label": $o.value,
|
|
1707
1723
|
role: "img",
|
|
1708
1724
|
"aria-live": "polite",
|
|
1709
1725
|
preserveAspectRatio: "xMidYMid",
|
|
1710
|
-
onMousemove:
|
|
1726
|
+
onMousemove: yo,
|
|
1711
1727
|
onMouseleave: Dl,
|
|
1712
|
-
onClick:
|
|
1728
|
+
onClick: aa
|
|
1713
1729
|
}, [
|
|
1714
1730
|
p("g", {
|
|
1715
1731
|
ref_key: "G",
|
|
1716
|
-
ref:
|
|
1732
|
+
ref: ja,
|
|
1717
1733
|
class: "vue-data-ui-g"
|
|
1718
1734
|
}, [
|
|
1719
|
-
vl(v(
|
|
1720
|
-
|
|
1735
|
+
vl(v(Za)),
|
|
1736
|
+
t.$slots["chart-background"] ? (n(), r("foreignObject", {
|
|
1721
1737
|
key: 0,
|
|
1722
1738
|
x: c.value.left + G.value < 0 ? 0 : c.value.left + G.value,
|
|
1723
1739
|
y: c.value.top,
|
|
@@ -1727,10 +1743,10 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1727
1743
|
pointerEvents: "none"
|
|
1728
1744
|
}
|
|
1729
1745
|
}, [
|
|
1730
|
-
W(
|
|
1731
|
-
], 8,
|
|
1732
|
-
L.value > 0 ? (n(), r("g",
|
|
1733
|
-
p("g",
|
|
1746
|
+
W(t.$slots, "chart-background", {}, void 0, !0)
|
|
1747
|
+
], 8, As)) : h("", !0),
|
|
1748
|
+
L.value > 0 ? (n(), r("g", Cs, [
|
|
1749
|
+
p("g", Ts, [
|
|
1734
1750
|
l.value.chart.grid.labels.xAxis.showBaseline ? (n(), r("line", {
|
|
1735
1751
|
key: 0,
|
|
1736
1752
|
stroke: l.value.chart.grid.stroke,
|
|
@@ -1741,7 +1757,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1741
1757
|
y2: v(E)(c.value.bottom),
|
|
1742
1758
|
"stroke-linecap": "round",
|
|
1743
1759
|
style: { animation: "none !important" }
|
|
1744
|
-
}, null, 8,
|
|
1760
|
+
}, null, 8, zs)) : h("", !0),
|
|
1745
1761
|
f.value.useIndividualScale ? l.value.chart.grid.showHorizontalLines ? (n(!0), r(d, { key: 2 }, w(Sl.value, (e) => (n(), r("g", null, [
|
|
1746
1762
|
e.id === I.value && e.yLabels.length ? (n(!0), r(d, { key: 0 }, w(e.yLabels, (u) => (n(), r("line", {
|
|
1747
1763
|
x1: c.value.left + G.value,
|
|
@@ -1752,7 +1768,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1752
1768
|
"stroke-width": 0.5,
|
|
1753
1769
|
"stroke-linecap": "round",
|
|
1754
1770
|
style: { animation: "none !important" }
|
|
1755
|
-
}, null, 8,
|
|
1771
|
+
}, null, 8, Vs))), 256)) : e.yLabels.length ? (n(!0), r(d, { key: 1 }, w(e.yLabels, (u) => (n(), r("line", {
|
|
1756
1772
|
x1: c.value.left + G.value,
|
|
1757
1773
|
x2: c.value.right - G.value,
|
|
1758
1774
|
y1: v(E)(u.y),
|
|
@@ -1761,7 +1777,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1761
1777
|
"stroke-width": 0.5,
|
|
1762
1778
|
"stroke-linecap": "round",
|
|
1763
1779
|
style: { animation: "none !important" }
|
|
1764
|
-
}, null, 8,
|
|
1780
|
+
}, null, 8, Ps))), 256)) : h("", !0)
|
|
1765
1781
|
]))), 256)) : h("", !0) : (n(), r(d, { key: 1 }, [
|
|
1766
1782
|
l.value.chart.grid.labels.yAxis.showBaseline ? (n(), r("line", {
|
|
1767
1783
|
key: 0,
|
|
@@ -1773,9 +1789,9 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1773
1789
|
y2: v(E)(c.value.bottom),
|
|
1774
1790
|
"stroke-linecap": "round",
|
|
1775
1791
|
style: { animation: "none !important" }
|
|
1776
|
-
}, null, 8,
|
|
1777
|
-
l.value.chart.grid.showHorizontalLines ? (n(), r("g",
|
|
1778
|
-
(n(!0), r(d, null, w(
|
|
1792
|
+
}, null, 8, Is)) : h("", !0),
|
|
1793
|
+
l.value.chart.grid.showHorizontalLines ? (n(), r("g", Os, [
|
|
1794
|
+
(n(!0), r(d, null, w(na.value, (e) => (n(), r("line", {
|
|
1779
1795
|
x1: c.value.left + G.value,
|
|
1780
1796
|
x2: c.value.right,
|
|
1781
1797
|
y1: v(E)(e.y),
|
|
@@ -1784,32 +1800,32 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1784
1800
|
"stroke-width": 0.5,
|
|
1785
1801
|
"stroke-linecap": "round",
|
|
1786
1802
|
style: { animation: "none !important" }
|
|
1787
|
-
}, null, 8,
|
|
1803
|
+
}, null, 8, Ns))), 256))
|
|
1788
1804
|
])) : h("", !0)
|
|
1789
1805
|
], 64)),
|
|
1790
|
-
l.value.chart.grid.showVerticalLines ? (n(), r("g",
|
|
1806
|
+
l.value.chart.grid.showVerticalLines ? (n(), r("g", Fs, [
|
|
1791
1807
|
p("path", {
|
|
1792
|
-
d:
|
|
1808
|
+
d: co.value,
|
|
1793
1809
|
"stroke-width": 0.5,
|
|
1794
1810
|
stroke: l.value.chart.grid.stroke,
|
|
1795
1811
|
"stroke-linecap": "round",
|
|
1796
1812
|
style: { animation: "none !important" }
|
|
1797
|
-
}, null, 8,
|
|
1813
|
+
}, null, 8, Rs)
|
|
1798
1814
|
])) : h("", !0),
|
|
1799
|
-
l.value.chart.grid.labels.xAxisLabels.show ? (n(), r("g",
|
|
1815
|
+
l.value.chart.grid.labels.xAxisLabels.show ? (n(), r("g", Bs, [
|
|
1800
1816
|
p("path", {
|
|
1801
|
-
d:
|
|
1817
|
+
d: vo.value,
|
|
1802
1818
|
stroke: l.value.chart.grid.stroke,
|
|
1803
1819
|
"stroke-width": 1,
|
|
1804
1820
|
"stroke-linecap": "round",
|
|
1805
1821
|
style: { animation: "none !important" }
|
|
1806
|
-
}, null, 8,
|
|
1822
|
+
}, null, 8, Hs)
|
|
1807
1823
|
])) : h("", !0)
|
|
1808
1824
|
]),
|
|
1809
1825
|
(n(!0), r(d, null, w(Me.value, (e, u) => (n(), r("defs", {
|
|
1810
1826
|
key: `def_rect_${u}`
|
|
1811
1827
|
}, [
|
|
1812
|
-
|
|
1828
|
+
t.$slots["bar-gradient"] ? W(t.$slots, "bar-gradient", tl({
|
|
1813
1829
|
key: 0,
|
|
1814
1830
|
ref_for: !0
|
|
1815
1831
|
}, { series: e, positiveId: `rectGradient_pos_${u}_${D.value}`, negativeId: `rectGradient_neg_${u}_${D.value}` }), void 0, !0) : (n(), r(d, { key: 1 }, [
|
|
@@ -1821,16 +1837,16 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1821
1837
|
p("stop", {
|
|
1822
1838
|
offset: "0%",
|
|
1823
1839
|
"stop-color": e.color
|
|
1824
|
-
}, null, 8,
|
|
1840
|
+
}, null, 8, Es),
|
|
1825
1841
|
p("stop", {
|
|
1826
1842
|
offset: "62%",
|
|
1827
1843
|
"stop-color": `${v(ol)(e.color, 0.02)}`
|
|
1828
|
-
}, null, 8,
|
|
1844
|
+
}, null, 8, Ys),
|
|
1829
1845
|
p("stop", {
|
|
1830
1846
|
offset: "100%",
|
|
1831
1847
|
"stop-color": `${v(ol)(e.color, 0.05)}`
|
|
1832
|
-
}, null, 8,
|
|
1833
|
-
], 8,
|
|
1848
|
+
}, null, 8, Ws)
|
|
1849
|
+
], 8, Ds),
|
|
1834
1850
|
p("linearGradient", {
|
|
1835
1851
|
id: `rectGradient_neg_${u}_${D.value}`,
|
|
1836
1852
|
x2: "0%",
|
|
@@ -1839,19 +1855,19 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1839
1855
|
p("stop", {
|
|
1840
1856
|
offset: "0%",
|
|
1841
1857
|
"stop-color": `${v(ol)(e.color, 0.05)}`
|
|
1842
|
-
}, null, 8,
|
|
1858
|
+
}, null, 8, Gs),
|
|
1843
1859
|
p("stop", {
|
|
1844
1860
|
offset: "38%",
|
|
1845
1861
|
"stop-color": `${v(ol)(e.color, 0.02)}`
|
|
1846
|
-
}, null, 8,
|
|
1862
|
+
}, null, 8, Us),
|
|
1847
1863
|
p("stop", {
|
|
1848
1864
|
offset: "100%",
|
|
1849
1865
|
"stop-color": e.color
|
|
1850
|
-
}, null, 8,
|
|
1851
|
-
], 8,
|
|
1866
|
+
}, null, 8, qs)
|
|
1867
|
+
], 8, Xs)
|
|
1852
1868
|
], 64))
|
|
1853
1869
|
]))), 128)),
|
|
1854
|
-
(n(!0), r(d, null, w(
|
|
1870
|
+
(n(!0), r(d, null, w(xe.value, (e, u) => (n(), r("defs", {
|
|
1855
1871
|
key: `def_plot_${u}`
|
|
1856
1872
|
}, [
|
|
1857
1873
|
p("radialGradient", {
|
|
@@ -1865,14 +1881,14 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1865
1881
|
p("stop", {
|
|
1866
1882
|
offset: "0%",
|
|
1867
1883
|
"stop-color": `${v(ol)(e.color, 0.05)}`
|
|
1868
|
-
}, null, 8,
|
|
1884
|
+
}, null, 8, Js),
|
|
1869
1885
|
p("stop", {
|
|
1870
1886
|
offset: "100%",
|
|
1871
1887
|
"stop-color": e.color
|
|
1872
|
-
}, null, 8,
|
|
1873
|
-
], 8,
|
|
1888
|
+
}, null, 8, Ks)
|
|
1889
|
+
], 8, Zs)
|
|
1874
1890
|
]))), 128)),
|
|
1875
|
-
(n(!0), r(d, null, w(
|
|
1891
|
+
(n(!0), r(d, null, w(ae.value, (e, u) => (n(), r("defs", {
|
|
1876
1892
|
key: `def_line_${e.id}`
|
|
1877
1893
|
}, [
|
|
1878
1894
|
p("radialGradient", {
|
|
@@ -1886,13 +1902,13 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1886
1902
|
p("stop", {
|
|
1887
1903
|
offset: "0%",
|
|
1888
1904
|
"stop-color": `${v(ol)(e.color, 0.05)}`
|
|
1889
|
-
}, null, 8,
|
|
1905
|
+
}, null, 8, js),
|
|
1890
1906
|
p("stop", {
|
|
1891
1907
|
offset: "100%",
|
|
1892
1908
|
"stop-color": e.color
|
|
1893
|
-
}, null, 8,
|
|
1894
|
-
], 8,
|
|
1895
|
-
|
|
1909
|
+
}, null, 8, eu)
|
|
1910
|
+
], 8, Qs),
|
|
1911
|
+
t.$slots["area-gradient"] ? W(t.$slots, "area-gradient", tl({
|
|
1896
1912
|
key: 0,
|
|
1897
1913
|
ref_for: !0
|
|
1898
1914
|
}, { series: e, id: `areaGradient_${u}_${D.value}` }), void 0, !0) : (n(), r("linearGradient", {
|
|
@@ -1906,32 +1922,32 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1906
1922
|
p("stop", {
|
|
1907
1923
|
offset: "0%",
|
|
1908
1924
|
"stop-color": `${v(Ce)(v(ol)(e.color, 0.03), l.value.line.area.opacity)}`
|
|
1909
|
-
}, null, 8,
|
|
1925
|
+
}, null, 8, tu),
|
|
1910
1926
|
p("stop", {
|
|
1911
1927
|
offset: "100%",
|
|
1912
1928
|
"stop-color": `${v(Ce)(e.color, l.value.line.area.opacity)}`
|
|
1913
|
-
}, null, 8,
|
|
1914
|
-
], 8,
|
|
1929
|
+
}, null, 8, au)
|
|
1930
|
+
], 8, lu))
|
|
1915
1931
|
]))), 128)),
|
|
1916
|
-
(n(!0), r(d, null, w(
|
|
1932
|
+
(n(!0), r(d, null, w(Mo.value, (e) => (n(), r("g", null, [
|
|
1917
1933
|
e.show ? (n(), r(d, { key: 0 }, [
|
|
1918
|
-
(n(!0), r(d, null, w(e.span, (u,
|
|
1934
|
+
(n(!0), r(d, null, w(e.span, (u, a) => (n(), r("g", null, [
|
|
1919
1935
|
p("rect", {
|
|
1920
1936
|
style: $({
|
|
1921
1937
|
transition: "none",
|
|
1922
|
-
opacity: e.from +
|
|
1938
|
+
opacity: e.from + a >= m.value.start && e.from + a <= m.value.end - 1 ? 1 : 0
|
|
1923
1939
|
}),
|
|
1924
|
-
x: c.value.left + c.value.width / L.value * (e.from +
|
|
1940
|
+
x: c.value.left + c.value.width / L.value * (e.from + a - m.value.start),
|
|
1925
1941
|
y: c.value.top,
|
|
1926
1942
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
1927
1943
|
width: c.value.width / L.value < 0 ? 1e-5 : c.value.width / L.value,
|
|
1928
1944
|
fill: v(Ce)(e.color, e.opacity)
|
|
1929
|
-
}, null, 12,
|
|
1945
|
+
}, null, 12, ou)
|
|
1930
1946
|
]))), 256)),
|
|
1931
|
-
(n(!0), r(d, null, w(e.span, (u,
|
|
1932
|
-
e.caption.text &&
|
|
1947
|
+
(n(!0), r(d, null, w(e.span, (u, a) => (n(), r("g", null, [
|
|
1948
|
+
e.caption.text && a === 0 ? (n(), r("foreignObject", {
|
|
1933
1949
|
key: 0,
|
|
1934
|
-
x: c.value.left + c.value.width / L.value * (e.from +
|
|
1950
|
+
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
1951
|
y: c.value.top + e.caption.offsetY,
|
|
1936
1952
|
style: $({
|
|
1937
1953
|
overflow: "visible",
|
|
@@ -1942,12 +1958,12 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1942
1958
|
}, [
|
|
1943
1959
|
p("div", {
|
|
1944
1960
|
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,
|
|
1961
|
+
}, te(e.caption.text), 5)
|
|
1962
|
+
], 12, su)) : h("", !0)
|
|
1947
1963
|
]))), 256))
|
|
1948
1964
|
], 64)) : h("", !0)
|
|
1949
1965
|
]))), 256)),
|
|
1950
|
-
|
|
1966
|
+
Xt.value ? (n(), r("g", uu, [
|
|
1951
1967
|
(n(!0), r(d, null, w(L.value, (e, u) => (n(), r("g", {
|
|
1952
1968
|
key: `tooltip_trap_highlighter_${u}`
|
|
1953
1969
|
}, [
|
|
@@ -1958,7 +1974,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1958
1974
|
width: c.value.width / L.value < 0 ? 1e-5 : c.value.width / L.value,
|
|
1959
1975
|
fill: [V.value, _.value, Ze.value].includes(u) ? v(Ce)(l.value.chart.highlighter.color, l.value.chart.highlighter.opacity) : "transparent",
|
|
1960
1976
|
style: { transition: "none !important", animation: "none !important" }
|
|
1961
|
-
}, null, 8,
|
|
1977
|
+
}, null, 8, iu)
|
|
1962
1978
|
]))), 128))
|
|
1963
1979
|
])) : h("", !0),
|
|
1964
1980
|
Me.value.length ? (n(!0), r(d, { key: 1 }, w(Me.value, (e, u) => (n(), r("g", {
|
|
@@ -1966,47 +1982,47 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1966
1982
|
class: ll(`serie_bar_${u}`),
|
|
1967
1983
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1968
1984
|
}, [
|
|
1969
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
1985
|
+
(n(!0), r(d, null, w(e.plots, (a, i) => (n(), r("g", {
|
|
1970
1986
|
key: `bar_plot_${u}_${i}`
|
|
1971
1987
|
}, [
|
|
1972
|
-
|
|
1988
|
+
be(a.value) ? (n(), r("rect", {
|
|
1973
1989
|
key: 0,
|
|
1974
|
-
x: Hl(
|
|
1975
|
-
y: f.value.useIndividualScale ?
|
|
1976
|
-
height: f.value.useIndividualScale ? Math.abs(
|
|
1977
|
-
width:
|
|
1990
|
+
x: Hl(a) + Xl.value / 2,
|
|
1991
|
+
y: f.value.useIndividualScale ? la(a) : ea(a),
|
|
1992
|
+
height: f.value.useIndividualScale ? Math.abs(jt(a)) : Math.abs(Qt(a)),
|
|
1993
|
+
width: Wl.value - Xl.value,
|
|
1978
1994
|
rx: l.value.bar.borderRadius,
|
|
1979
|
-
fill: l.value.bar.useGradient ?
|
|
1995
|
+
fill: l.value.bar.useGradient ? a.value >= 0 ? `url(#rectGradient_pos_${u}_${D.value})` : `url(#rectGradient_neg_${u}_${D.value})` : e.color,
|
|
1980
1996
|
stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
|
|
1981
1997
|
"stroke-width": l.value.bar.border.strokeWidth,
|
|
1982
1998
|
style: $({
|
|
1983
1999
|
transition: v(ie) || !l.value.bar.showTransition ? void 0 : `all ${l.value.bar.transitionDurationMs}ms ease-in-out`
|
|
1984
2000
|
})
|
|
1985
|
-
}, null, 12,
|
|
1986
|
-
|
|
2001
|
+
}, null, 12, nu)) : h("", !0),
|
|
2002
|
+
be(a.value) && t.$slots.pattern ? (n(), r("rect", {
|
|
1987
2003
|
key: 1,
|
|
1988
|
-
x: Hl(
|
|
1989
|
-
y: f.value.useIndividualScale ?
|
|
1990
|
-
height: f.value.useIndividualScale ? Math.abs(
|
|
1991
|
-
width:
|
|
2004
|
+
x: Hl(a) - Xl.value / 2,
|
|
2005
|
+
y: f.value.useIndividualScale ? la(a) : ea(a),
|
|
2006
|
+
height: f.value.useIndividualScale ? Math.abs(jt(a)) : Math.abs(Qt(a)),
|
|
2007
|
+
width: Wl.value - Xl.value,
|
|
1992
2008
|
rx: l.value.bar.borderRadius,
|
|
1993
2009
|
fill: `url(#pattern_${D.value}_${e.slotAbsoluteIndex})`,
|
|
1994
2010
|
stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
|
|
1995
2011
|
"stroke-width": l.value.bar.border.strokeWidth,
|
|
1996
2012
|
style: $({ transition: v(ie) || !l.value.bar.showTransition ? void 0 : `all ${l.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
1997
|
-
}, null, 12,
|
|
1998
|
-
|
|
2013
|
+
}, null, 12, ru)) : h("", !0),
|
|
2014
|
+
a.comment && l.value.chart.comments.show ? (n(), r("foreignObject", {
|
|
1999
2015
|
key: 2,
|
|
2000
2016
|
style: { overflow: "visible" },
|
|
2001
2017
|
height: "12",
|
|
2002
|
-
width:
|
|
2003
|
-
x: Hl(
|
|
2004
|
-
y: v(P)(
|
|
2018
|
+
width: Wl.value / 2 + l.value.chart.comments.width,
|
|
2019
|
+
x: Hl(a) - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
|
|
2020
|
+
y: v(P)(a.y) + l.value.chart.comments.offsetY + 6
|
|
2005
2021
|
}, [
|
|
2006
|
-
W(
|
|
2007
|
-
plot: { ...
|
|
2022
|
+
W(t.$slots, "plot-comment", {
|
|
2023
|
+
plot: { ...a, color: e.color, seriesIndex: u, datapointIndex: i }
|
|
2008
2024
|
}, void 0, !0)
|
|
2009
|
-
], 8,
|
|
2025
|
+
], 8, cu)) : h("", !0)
|
|
2010
2026
|
]))), 128))
|
|
2011
2027
|
], 6))), 128)) : h("", !0),
|
|
2012
2028
|
!f.value.useIndividualScale && l.value.chart.grid.labels.zeroLine.show ? (n(), r("line", {
|
|
@@ -2019,8 +2035,8 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2019
2035
|
y2: v(E)(ne.value),
|
|
2020
2036
|
"stroke-linecap": "round",
|
|
2021
2037
|
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",
|
|
2038
|
+
}, null, 8, vu)) : h("", !0),
|
|
2039
|
+
l.value.chart.highlighter.useLine && (![null, void 0].includes(_.value) || ![null, void 0].includes(V.value)) ? (n(), r("g", du, [
|
|
2024
2040
|
p("line", {
|
|
2025
2041
|
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
2042
|
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,
|
|
@@ -2031,7 +2047,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2031
2047
|
"stroke-dasharray": l.value.chart.highlighter.lineDasharray,
|
|
2032
2048
|
"stroke-linecap": "round",
|
|
2033
2049
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
2034
|
-
}, null, 8,
|
|
2050
|
+
}, null, 8, hu)
|
|
2035
2051
|
])) : h("", !0),
|
|
2036
2052
|
l.value.chart.grid.frame.show ? (n(), r("rect", {
|
|
2037
2053
|
key: 4,
|
|
@@ -2046,11 +2062,11 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2046
2062
|
"stroke-linecap": l.value.chart.grid.frame.strokeLinecap,
|
|
2047
2063
|
"stroke-linejoin": l.value.chart.grid.frame.strokeLinejoin,
|
|
2048
2064
|
"stroke-dasharray": l.value.chart.grid.frame.strokeDasharray
|
|
2049
|
-
}, null, 8,
|
|
2065
|
+
}, null, 8, fu)) : h("", !0),
|
|
2050
2066
|
l.value.chart.grid.labels.show ? (n(), r("g", {
|
|
2051
2067
|
key: 5,
|
|
2052
2068
|
ref_key: "scaleLabels",
|
|
2053
|
-
ref:
|
|
2069
|
+
ref: at
|
|
2054
2070
|
}, [
|
|
2055
2071
|
f.value.useIndividualScale ? (n(), r(d, { key: 0 }, [
|
|
2056
2072
|
(n(!0), r(d, null, w(Sl.value, (e) => (n(), r("g", null, [
|
|
@@ -2063,7 +2079,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2063
2079
|
"stroke-width": l.value.chart.grid.stroke,
|
|
2064
2080
|
"stroke-linecap": "round",
|
|
2065
2081
|
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,
|
|
2082
|
+
}, null, 12, gu)
|
|
2067
2083
|
]))), 256)),
|
|
2068
2084
|
(n(!0), r(d, null, w(Sl.value, (e) => (n(), r("g", {
|
|
2069
2085
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
@@ -2073,9 +2089,9 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2073
2089
|
"font-size": y.value.dataLabels * 0.8,
|
|
2074
2090
|
"text-anchor": "middle",
|
|
2075
2091
|
transform: `translate(${e.x - y.value.dataLabels * 0.8 / 2 + G.value}, ${f.value.isStacked ? c.value.bottom - e.yOffset - e.individualHeight / 2 : c.value.top + c.value.height / 2}) rotate(-90)`
|
|
2076
|
-
},
|
|
2077
|
-
${e.scaleLabel}` : ""), 9,
|
|
2078
|
-
(n(!0), r(d, null, w(e.yLabels, (u,
|
|
2092
|
+
}, te(e.name) + " " + te(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
|
|
2093
|
+
${e.scaleLabel}` : ""), 9, mu),
|
|
2094
|
+
(n(!0), r(d, null, w(e.yLabels, (u, a) => (n(), r(d, null, [
|
|
2079
2095
|
l.value.chart.grid.labels.yAxis.showCrosshairs ? (n(), r("line", {
|
|
2080
2096
|
key: 0,
|
|
2081
2097
|
x1: e.x + 3 + G.value - l.value.chart.grid.labels.yAxis.crosshairSize - c.value.individualOffsetX,
|
|
@@ -2086,15 +2102,15 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2086
2102
|
"stroke-width": 1,
|
|
2087
2103
|
"stroke-linecap": "round",
|
|
2088
2104
|
style: { animation: "none !important" }
|
|
2089
|
-
}, null, 8,
|
|
2105
|
+
}, null, 8, bu)) : h("", !0)
|
|
2090
2106
|
], 64))), 256)),
|
|
2091
|
-
(n(!0), r(d, null, w(e.yLabels, (u,
|
|
2107
|
+
(n(!0), r(d, null, w(e.yLabels, (u, a) => (n(), r("text", {
|
|
2092
2108
|
x: e.x - 5 + G.value - c.value.individualOffsetX,
|
|
2093
2109
|
y: v(E)(u.y) + y.value.dataLabels / 3,
|
|
2094
2110
|
"font-size": y.value.dataLabels,
|
|
2095
2111
|
"text-anchor": "end",
|
|
2096
2112
|
fill: e.color
|
|
2097
|
-
},
|
|
2113
|
+
}, te(v(se)(
|
|
2098
2114
|
l.value.chart.grid.labels.yAxis.formatter,
|
|
2099
2115
|
u.value,
|
|
2100
2116
|
v(Ve)({
|
|
@@ -2103,13 +2119,13 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2103
2119
|
s: u.suffix,
|
|
2104
2120
|
r: l.value.chart.grid.labels.yAxis.rounding
|
|
2105
2121
|
}),
|
|
2106
|
-
{ datapoint: u.datapoint, seriesIndex:
|
|
2107
|
-
)), 9,
|
|
2122
|
+
{ datapoint: u.datapoint, seriesIndex: a }
|
|
2123
|
+
)), 9, xu))), 256))
|
|
2108
2124
|
], 4))), 256))
|
|
2109
|
-
], 64)) : (n(!0), r(d, { key: 1 }, w(
|
|
2125
|
+
], 64)) : (n(!0), r(d, { key: 1 }, w(na.value, (e, u) => (n(), r("g", {
|
|
2110
2126
|
key: `yLabel_${u}`
|
|
2111
2127
|
}, [
|
|
2112
|
-
|
|
2128
|
+
be(e) && e.value >= Le.value.min && e.value <= Le.value.max && l.value.chart.grid.labels.yAxis.showCrosshairs ? (n(), r("line", {
|
|
2113
2129
|
key: 0,
|
|
2114
2130
|
x1: c.value.left + G.value,
|
|
2115
2131
|
x2: c.value.left + G.value - l.value.chart.grid.labels.yAxis.crosshairSize,
|
|
@@ -2119,15 +2135,15 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2119
2135
|
"stroke-width": "1",
|
|
2120
2136
|
"stroke-linecap": "round",
|
|
2121
2137
|
style: { animation: "none !important" }
|
|
2122
|
-
}, null, 8,
|
|
2123
|
-
e.value >=
|
|
2138
|
+
}, null, 8, pu)) : h("", !0),
|
|
2139
|
+
e.value >= Le.value.min && e.value <= Le.value.max ? (n(), r("text", {
|
|
2124
2140
|
key: 1,
|
|
2125
2141
|
x: c.value.scaleLabelX - l.value.chart.grid.labels.yAxis.crosshairSize,
|
|
2126
2142
|
y: v(P)(e.y + y.value.dataLabels / 3),
|
|
2127
2143
|
"font-size": y.value.dataLabels,
|
|
2128
2144
|
"text-anchor": "end",
|
|
2129
2145
|
fill: l.value.chart.grid.labels.color
|
|
2130
|
-
},
|
|
2146
|
+
}, te(be(e.value) ? v(se)(
|
|
2131
2147
|
l.value.chart.grid.labels.yAxis.formatter,
|
|
2132
2148
|
e.value,
|
|
2133
2149
|
v(Ve)({
|
|
@@ -2136,44 +2152,44 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2136
2152
|
s: e.suffix,
|
|
2137
2153
|
r: l.value.chart.grid.labels.yAxis.rounding
|
|
2138
2154
|
})
|
|
2139
|
-
) : ""), 9,
|
|
2155
|
+
) : ""), 9, yu)) : h("", !0)
|
|
2140
2156
|
]))), 128))
|
|
2141
2157
|
], 512)) : h("", !0),
|
|
2142
|
-
(n(!0), r(d, null, w(
|
|
2158
|
+
(n(!0), r(d, null, w(xe.value, (e, u) => (n(), r("g", {
|
|
2143
2159
|
key: `serie_plot_${e.id}`,
|
|
2144
2160
|
class: ll(`serie_plot_${u}`),
|
|
2145
2161
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2146
2162
|
}, [
|
|
2147
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
2163
|
+
(n(!0), r(d, null, w(e.plots, (a, i) => (n(), r("g", {
|
|
2148
2164
|
key: `circle_plot_${u}_${i}`
|
|
2149
2165
|
}, [
|
|
2150
|
-
|
|
2166
|
+
a && be(a.value) ? (n(), Ae(Ql, {
|
|
2151
2167
|
key: 0,
|
|
2152
2168
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
2153
2169
|
color: l.value.plot.useGradient ? `url(#plotGradient_${u}_${D.value})` : l.value.plot.dot.useSerieColor ? e.color : l.value.plot.dot.fill,
|
|
2154
|
-
plot: { x: v(P)(
|
|
2155
|
-
radius: _.value !== null && _.value === i || V.value !== null && V.value === i ? (
|
|
2170
|
+
plot: { x: v(P)(a.x), y: v(P)(a.y) },
|
|
2171
|
+
radius: _.value !== null && _.value === i || V.value !== null && V.value === i ? (Se.value.plot || 6) * 1.5 : Se.value.plot || 6,
|
|
2156
2172
|
stroke: l.value.plot.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
|
|
2157
2173
|
strokeWidth: l.value.plot.dot.strokeWidth,
|
|
2158
2174
|
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
2175
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : h("", !0),
|
|
2160
|
-
|
|
2176
|
+
a.comment && l.value.chart.comments.show ? (n(), r("foreignObject", {
|
|
2161
2177
|
key: 1,
|
|
2162
2178
|
style: { overflow: "visible" },
|
|
2163
2179
|
height: "12",
|
|
2164
2180
|
width: l.value.chart.comments.width,
|
|
2165
|
-
x:
|
|
2166
|
-
y:
|
|
2181
|
+
x: a.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
|
|
2182
|
+
y: a.y + l.value.chart.comments.offsetY + 6
|
|
2167
2183
|
}, [
|
|
2168
|
-
p("div",
|
|
2169
|
-
W(
|
|
2170
|
-
plot: { ...
|
|
2184
|
+
p("div", _u, [
|
|
2185
|
+
W(t.$slots, "plot-comment", {
|
|
2186
|
+
plot: { ...a, color: e.color, seriesIndex: u, datapointIndex: i }
|
|
2171
2187
|
}, void 0, !0)
|
|
2172
2188
|
])
|
|
2173
|
-
], 8,
|
|
2189
|
+
], 8, ku)) : h("", !0)
|
|
2174
2190
|
]))), 128))
|
|
2175
2191
|
], 6))), 128)),
|
|
2176
|
-
(n(!0), r(d, null, w(
|
|
2192
|
+
(n(!0), r(d, null, w(ae.value, (e, u) => (n(), r("g", {
|
|
2177
2193
|
key: `serie_line_${e.id}`,
|
|
2178
2194
|
class: ll(`serie_line_${u}`),
|
|
2179
2195
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
@@ -2186,7 +2202,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2186
2202
|
"stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
|
|
2187
2203
|
fill: "none",
|
|
2188
2204
|
style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2189
|
-
}, null, 12,
|
|
2205
|
+
}, null, 12, wu)) : e.plots.length > 1 && e.straight ? (n(), r("path", {
|
|
2190
2206
|
key: 1,
|
|
2191
2207
|
d: `M${e.straight}`,
|
|
2192
2208
|
stroke: l.value.chart.backgroundColor,
|
|
@@ -2196,15 +2212,15 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2196
2212
|
"stroke-linecap": "round",
|
|
2197
2213
|
"stroke-linejoin": "round",
|
|
2198
2214
|
style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2199
|
-
}, null, 12,
|
|
2215
|
+
}, null, 12, Su)) : h("", !0)
|
|
2200
2216
|
], 6))), 128)),
|
|
2201
|
-
|
|
2202
|
-
(n(!0), r(d, null, w(Fe.value, (e, u) => W(
|
|
2217
|
+
t.$slots.pattern ? (n(), r("defs", $u, [
|
|
2218
|
+
(n(!0), r(d, null, w(Fe.value, (e, u) => W(t.$slots, "pattern", tl({
|
|
2203
2219
|
key: `serie_pattern_slot_${e.id}`
|
|
2204
2220
|
}, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${D.value}_${u}` }), void 0, !0)), 128))
|
|
2205
2221
|
])) : h("", !0),
|
|
2206
|
-
|
|
2207
|
-
(n(!0), r(d, null, w(
|
|
2222
|
+
va.value.length && !f.value.isStacked ? (n(), r("g", Lu, [
|
|
2223
|
+
(n(!0), r(d, null, w(va.value, (e) => (n(), r("path", {
|
|
2208
2224
|
key: e.key,
|
|
2209
2225
|
d: e.d,
|
|
2210
2226
|
fill: e.color,
|
|
@@ -2212,40 +2228,40 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2212
2228
|
stroke: "none",
|
|
2213
2229
|
"pointer-events": "none",
|
|
2214
2230
|
style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2215
|
-
}, null, 12,
|
|
2231
|
+
}, null, 12, Mu))), 128))
|
|
2216
2232
|
])) : h("", !0),
|
|
2217
|
-
(n(!0), r(d, null, w(
|
|
2233
|
+
(n(!0), r(d, null, w(ae.value, (e, u) => (n(), r("g", {
|
|
2218
2234
|
key: `serie_line_above_${e.id}`,
|
|
2219
2235
|
class: ll(`serie_line_${u}`),
|
|
2220
2236
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2221
2237
|
}, [
|
|
2222
|
-
e.useArea && e.plots.length > 1 ? (n(), r("g",
|
|
2223
|
-
e.smooth ? (n(!0), r(d, { key: 0 }, w(e.curveAreas, (
|
|
2224
|
-
|
|
2238
|
+
e.useArea && e.plots.length > 1 ? (n(), r("g", Au, [
|
|
2239
|
+
e.smooth ? (n(!0), r(d, { key: 0 }, w(e.curveAreas, (a, i) => (n(), r(d, { key: i }, [
|
|
2240
|
+
a ? (n(), r("path", {
|
|
2225
2241
|
key: 0,
|
|
2226
|
-
d:
|
|
2242
|
+
d: a,
|
|
2227
2243
|
fill: l.value.line.area.useGradient ? `url(#areaGradient_${u}_${D.value})` : v(Ce)(e.color, l.value.line.area.opacity),
|
|
2228
2244
|
style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2229
|
-
}, null, 12,
|
|
2230
|
-
|
|
2245
|
+
}, null, 12, Cu)) : h("", !0),
|
|
2246
|
+
t.$slots.pattern && a ? (n(), r("path", {
|
|
2231
2247
|
key: 1,
|
|
2232
|
-
d:
|
|
2248
|
+
d: a,
|
|
2233
2249
|
fill: `url(#pattern_${D.value}_${e.slotAbsoluteIndex})`,
|
|
2234
2250
|
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
|
-
|
|
2251
|
+
}, null, 12, Tu)) : h("", !0)
|
|
2252
|
+
], 64))), 128)) : (n(!0), r(d, { key: 1 }, w(e.area.split(";"), (a, i) => (n(), r(d, { key: i }, [
|
|
2253
|
+
a ? (n(), r("path", {
|
|
2238
2254
|
key: 0,
|
|
2239
|
-
d: `M${
|
|
2255
|
+
d: `M${a}Z`,
|
|
2240
2256
|
fill: l.value.line.area.useGradient ? `url(#areaGradient_${u}_${D.value})` : v(Ce)(e.color, l.value.line.area.opacity),
|
|
2241
2257
|
style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2242
|
-
}, null, 12,
|
|
2243
|
-
|
|
2258
|
+
}, null, 12, zu)) : h("", !0),
|
|
2259
|
+
t.$slots.pattern && a ? (n(), r("path", {
|
|
2244
2260
|
key: 1,
|
|
2245
|
-
d: `M${
|
|
2261
|
+
d: `M${a}Z`,
|
|
2246
2262
|
fill: `url(#pattern_${D.value}_${e.slotAbsoluteIndex})`,
|
|
2247
2263
|
style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2248
|
-
}, null, 12,
|
|
2264
|
+
}, null, 12, Iu)) : h("", !0)
|
|
2249
2265
|
], 64))), 128))
|
|
2250
2266
|
])) : h("", !0),
|
|
2251
2267
|
e.smooth && e.plots.length > 1 && e.curve ? (n(), r("path", {
|
|
@@ -2257,7 +2273,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2257
2273
|
fill: "none",
|
|
2258
2274
|
"stroke-linecap": "round",
|
|
2259
2275
|
style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2260
|
-
}, null, 12,
|
|
2276
|
+
}, null, 12, Ou)) : e.plots.length > 1 && e.straight ? (n(), r("path", {
|
|
2261
2277
|
key: 2,
|
|
2262
2278
|
d: `M${e.straight}`,
|
|
2263
2279
|
stroke: e.color,
|
|
@@ -2267,117 +2283,117 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2267
2283
|
"stroke-linecap": "round",
|
|
2268
2284
|
"stroke-linejoin": "round",
|
|
2269
2285
|
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, (
|
|
2286
|
+
}, null, 12, Nu)) : h("", !0),
|
|
2287
|
+
(n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
|
|
2272
2288
|
key: `circle_line_${u}_${i}`
|
|
2273
2289
|
}, [
|
|
2274
|
-
!
|
|
2290
|
+
!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(), Ae(Ql, {
|
|
2275
2291
|
key: 0,
|
|
2276
2292
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
2277
2293
|
color: l.value.line.useGradient ? `url(#lineGradient_${u}_${D.value})` : l.value.line.dot.useSerieColor ? e.color : l.value.line.dot.fill,
|
|
2278
|
-
plot: { x: v(P)(
|
|
2279
|
-
radius: _.value !== null && _.value === i || V.value !== null && V.value === i ? (
|
|
2294
|
+
plot: { x: v(P)(a.x), y: v(P)(a.y) },
|
|
2295
|
+
radius: _.value !== null && _.value === i || V.value !== null && V.value === i ? (Se.value.line || 6) * 1.5 : (ca(e.plots, i), Se.value.line || 6),
|
|
2280
2296
|
stroke: l.value.line.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
|
|
2281
2297
|
strokeWidth: l.value.line.dot.strokeWidth,
|
|
2282
2298
|
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
2299
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : h("", !0),
|
|
2284
|
-
|
|
2300
|
+
a.comment && l.value.chart.comments.show ? (n(), r("foreignObject", {
|
|
2285
2301
|
key: 1,
|
|
2286
2302
|
style: { overflow: "visible" },
|
|
2287
2303
|
height: "12",
|
|
2288
2304
|
width: l.value.chart.comments.width,
|
|
2289
|
-
x:
|
|
2290
|
-
y:
|
|
2305
|
+
x: a.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
|
|
2306
|
+
y: a.y + l.value.chart.comments.offsetY + 6
|
|
2291
2307
|
}, [
|
|
2292
|
-
p("div",
|
|
2293
|
-
W(
|
|
2294
|
-
plot: { ...
|
|
2308
|
+
p("div", Pu, [
|
|
2309
|
+
W(t.$slots, "plot-comment", {
|
|
2310
|
+
plot: { ...a, color: e.color, seriesIndex: u, datapointIndex: i }
|
|
2295
2311
|
}, void 0, !0)
|
|
2296
2312
|
])
|
|
2297
|
-
], 8,
|
|
2313
|
+
], 8, Vu)) : h("", !0)
|
|
2298
2314
|
], 64))), 128))
|
|
2299
2315
|
], 6))), 128)),
|
|
2300
|
-
(l.value.bar.labels.show || l.value.bar.serieName.show) && f.value.dataLabels.show ? (n(), r("g",
|
|
2316
|
+
(l.value.bar.labels.show || l.value.bar.serieName.show) && f.value.dataLabels.show ? (n(), r("g", Fu, [
|
|
2301
2317
|
(n(!0), r(d, null, w(Me.value, (e, u) => (n(), r(d, {
|
|
2302
2318
|
key: `xLabel_bar_${e.id}`
|
|
2303
2319
|
}, [
|
|
2304
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
2320
|
+
(n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
|
|
2305
2321
|
key: `xLabel_bar_${u}_${i}`
|
|
2306
2322
|
}, [
|
|
2307
|
-
|
|
2323
|
+
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
2324
|
key: 0,
|
|
2309
|
-
x: f.value.useIndividualScale && f.value.isStacked ?
|
|
2310
|
-
y: v(P)(
|
|
2325
|
+
x: f.value.useIndividualScale && f.value.isStacked ? a.x + q.value.line / 2 : Hl(a) + He() / 2 - Yl.value / 2,
|
|
2326
|
+
y: v(P)(a.y) + (a.value >= 0 ? l.value.bar.labels.offsetY : -l.value.bar.labels.offsetY * 3),
|
|
2311
2327
|
"text-anchor": "middle",
|
|
2312
2328
|
"font-size": y.value.plotLabels,
|
|
2313
2329
|
fill: l.value.bar.labels.color,
|
|
2314
2330
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2315
|
-
},
|
|
2331
|
+
}, te(be(a.value) ? v(se)(
|
|
2316
2332
|
l.value.bar.labels.formatter,
|
|
2317
|
-
|
|
2333
|
+
a.value,
|
|
2318
2334
|
v(Ve)({
|
|
2319
2335
|
p: e.prefix || l.value.chart.labels.prefix,
|
|
2320
|
-
v:
|
|
2336
|
+
v: a.value,
|
|
2321
2337
|
s: e.suffix || l.value.chart.labels.suffix,
|
|
2322
2338
|
r: l.value.bar.labels.rounding
|
|
2323
2339
|
}),
|
|
2324
2340
|
{
|
|
2325
|
-
datapoint:
|
|
2341
|
+
datapoint: a,
|
|
2326
2342
|
serie: e
|
|
2327
2343
|
}
|
|
2328
|
-
) : ""), 13,
|
|
2329
|
-
|
|
2344
|
+
) : ""), 13, Ru)) : h("", !0),
|
|
2345
|
+
a && l.value.bar.serieName.show ? (n(), r("text", {
|
|
2330
2346
|
key: 1,
|
|
2331
|
-
x: f.value.useIndividualScale && f.value.isStacked ?
|
|
2332
|
-
y:
|
|
2347
|
+
x: f.value.useIndividualScale && f.value.isStacked ? a.x + q.value.line / 2 : a.x + He() * 1.1,
|
|
2348
|
+
y: a.y + (a.value > 0 ? l.value.bar.serieName.offsetY : -l.value.bar.serieName.offsetY * 3),
|
|
2333
2349
|
"text-anchor": "middle",
|
|
2334
2350
|
"font-size": y.value.plotLabels,
|
|
2335
2351
|
fill: l.value.bar.serieName.useSerieColor ? e.color : l.value.bar.serieName.color,
|
|
2336
2352
|
"font-weight": l.value.bar.serieName.bold ? "bold" : "normal",
|
|
2337
2353
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2338
|
-
},
|
|
2354
|
+
}, te(l.value.bar.serieName.useAbbreviation ? v(ss)({
|
|
2339
2355
|
source: e.name,
|
|
2340
2356
|
length: l.value.bar.serieName.abbreviationSize
|
|
2341
|
-
}) : e.name), 13,
|
|
2357
|
+
}) : e.name), 13, Bu)) : h("", !0)
|
|
2342
2358
|
], 64))), 128))
|
|
2343
2359
|
], 64))), 128))
|
|
2344
2360
|
])) : h("", !0),
|
|
2345
|
-
l.value.plot.labels.show && f.value.dataLabels.show ? (n(), r("g",
|
|
2346
|
-
(n(!0), r(d, null, w(
|
|
2361
|
+
l.value.plot.labels.show && f.value.dataLabels.show ? (n(), r("g", Hu, [
|
|
2362
|
+
(n(!0), r(d, null, w(xe.value, (e, u) => (n(), r(d, {
|
|
2347
2363
|
key: `xLabel_plot_${e.id}`
|
|
2348
2364
|
}, [
|
|
2349
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
2365
|
+
(n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
|
|
2350
2366
|
key: `xLabel_plot_${u}_${i}`
|
|
2351
2367
|
}, [
|
|
2352
|
-
|
|
2368
|
+
a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === i || V.value !== null && V.value === i ? (n(), r("text", {
|
|
2353
2369
|
key: 0,
|
|
2354
|
-
x:
|
|
2355
|
-
y:
|
|
2370
|
+
x: a.x,
|
|
2371
|
+
y: a.y + l.value.plot.labels.offsetY,
|
|
2356
2372
|
"text-anchor": "middle",
|
|
2357
2373
|
"font-size": y.value.plotLabels,
|
|
2358
2374
|
fill: l.value.plot.labels.color,
|
|
2359
2375
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2360
|
-
},
|
|
2376
|
+
}, te(be(a.value) ? v(se)(
|
|
2361
2377
|
l.value.plot.labels.formatter,
|
|
2362
|
-
|
|
2378
|
+
a.value,
|
|
2363
2379
|
v(Ve)({
|
|
2364
2380
|
p: e.prefix || l.value.chart.labels.prefix,
|
|
2365
|
-
v:
|
|
2381
|
+
v: a.value,
|
|
2366
2382
|
s: e.suffix || l.value.chart.labels.suffix,
|
|
2367
2383
|
r: l.value.plot.labels.rounding
|
|
2368
2384
|
}),
|
|
2369
2385
|
{
|
|
2370
|
-
datapoint:
|
|
2386
|
+
datapoint: a,
|
|
2371
2387
|
serie: e
|
|
2372
2388
|
}
|
|
2373
|
-
) : ""), 13,
|
|
2389
|
+
) : ""), 13, Du)) : h("", !0)
|
|
2374
2390
|
], 64))), 128))
|
|
2375
2391
|
], 64))), 128))
|
|
2376
|
-
])) : (n(), r("g",
|
|
2377
|
-
(n(!0), r(d, null, w(
|
|
2392
|
+
])) : (n(), r("g", Eu, [
|
|
2393
|
+
(n(!0), r(d, null, w(xe.value, (e, u) => (n(), r(d, {
|
|
2378
2394
|
key: `xLabel_plot_${e.id}`
|
|
2379
2395
|
}, [
|
|
2380
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
2396
|
+
(n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
|
|
2381
2397
|
key: `xLabel_plot_${u}_${i}`
|
|
2382
2398
|
}, [
|
|
2383
2399
|
l.value.plot.tag.followValue ? (n(), r(d, { key: 1 }, [
|
|
@@ -2386,18 +2402,18 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2386
2402
|
class: "vue-ui-xy-tag-plot",
|
|
2387
2403
|
x1: c.value.left,
|
|
2388
2404
|
x2: c.value.right,
|
|
2389
|
-
y1:
|
|
2390
|
-
y2:
|
|
2405
|
+
y1: a.y,
|
|
2406
|
+
y2: a.y,
|
|
2391
2407
|
"stroke-width": 1,
|
|
2392
2408
|
"stroke-linecap": "round",
|
|
2393
2409
|
"stroke-dasharray": "2",
|
|
2394
2410
|
stroke: e.color
|
|
2395
|
-
}, null, 8,
|
|
2411
|
+
}, null, 8, Uu)) : h("", !0)
|
|
2396
2412
|
], 64)) : (n(), r(d, { key: 0 }, [
|
|
2397
|
-
|
|
2413
|
+
a && i === 0 && e.useTag && e.useTag === "start" ? (n(), r("foreignObject", {
|
|
2398
2414
|
key: 0,
|
|
2399
|
-
x:
|
|
2400
|
-
y:
|
|
2415
|
+
x: a.x,
|
|
2416
|
+
y: a.y - 20,
|
|
2401
2417
|
height: 24,
|
|
2402
2418
|
width: "150",
|
|
2403
2419
|
style: $(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
@@ -2406,20 +2422,20 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2406
2422
|
style: $(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
|
|
2407
2423
|
innerHTML: v(se)(
|
|
2408
2424
|
l.value.plot.tag.formatter,
|
|
2409
|
-
|
|
2425
|
+
a.value,
|
|
2410
2426
|
e.name,
|
|
2411
2427
|
{
|
|
2412
|
-
datapoint:
|
|
2428
|
+
datapoint: a,
|
|
2413
2429
|
seriesIndex: i,
|
|
2414
2430
|
serieName: e.name
|
|
2415
2431
|
}
|
|
2416
2432
|
)
|
|
2417
|
-
}, null, 12,
|
|
2418
|
-
], 12,
|
|
2419
|
-
|
|
2433
|
+
}, null, 12, Wu)
|
|
2434
|
+
], 12, Yu)) : h("", !0),
|
|
2435
|
+
a && i === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (n(), r("foreignObject", {
|
|
2420
2436
|
key: 1,
|
|
2421
|
-
x:
|
|
2422
|
-
y:
|
|
2437
|
+
x: a.x - e.name.length * (y.value.plotLabels / 2),
|
|
2438
|
+
y: a.y - 20,
|
|
2423
2439
|
height: 24,
|
|
2424
2440
|
width: "150",
|
|
2425
2441
|
style: $(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
@@ -2428,56 +2444,56 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2428
2444
|
style: $(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
|
|
2429
2445
|
innerHTML: v(se)(
|
|
2430
2446
|
l.value.plot.tag.formatter,
|
|
2431
|
-
|
|
2447
|
+
a.value,
|
|
2432
2448
|
e.name,
|
|
2433
2449
|
{
|
|
2434
|
-
datapoint:
|
|
2450
|
+
datapoint: a,
|
|
2435
2451
|
seriesIndex: i,
|
|
2436
2452
|
serieName: e.name
|
|
2437
2453
|
}
|
|
2438
2454
|
)
|
|
2439
|
-
}, null, 12,
|
|
2440
|
-
], 12,
|
|
2455
|
+
}, null, 12, Gu)
|
|
2456
|
+
], 12, Xu)) : h("", !0)
|
|
2441
2457
|
], 64))
|
|
2442
2458
|
], 64))), 128))
|
|
2443
2459
|
], 64))), 128))
|
|
2444
2460
|
])),
|
|
2445
|
-
l.value.line.labels.show && f.value.dataLabels.show ? (n(), r("g",
|
|
2446
|
-
(n(!0), r(d, null, w(
|
|
2461
|
+
l.value.line.labels.show && f.value.dataLabels.show ? (n(), r("g", qu, [
|
|
2462
|
+
(n(!0), r(d, null, w(ae.value, (e, u) => (n(), r(d, {
|
|
2447
2463
|
key: `xLabel_line_${e.id}`
|
|
2448
2464
|
}, [
|
|
2449
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
2465
|
+
(n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
|
|
2450
2466
|
key: `xLabel_line_${u}_${i}`
|
|
2451
2467
|
}, [
|
|
2452
|
-
|
|
2468
|
+
a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === i || V.value !== null && V.value === i ? (n(), r("text", {
|
|
2453
2469
|
key: 0,
|
|
2454
|
-
x:
|
|
2455
|
-
y:
|
|
2470
|
+
x: a.x,
|
|
2471
|
+
y: a.y + (a.value >= 0 ? l.value.line.labels.offsetY : -l.value.line.labels.offsetY * 3),
|
|
2456
2472
|
"text-anchor": "middle",
|
|
2457
2473
|
"font-size": y.value.plotLabels,
|
|
2458
2474
|
fill: l.value.line.labels.color,
|
|
2459
2475
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2460
|
-
},
|
|
2476
|
+
}, te(be(a.value) ? v(se)(
|
|
2461
2477
|
l.value.line.labels.formatter,
|
|
2462
|
-
|
|
2478
|
+
a.value,
|
|
2463
2479
|
v(Ve)({
|
|
2464
2480
|
p: e.prefix || l.value.chart.labels.prefix,
|
|
2465
|
-
v:
|
|
2481
|
+
v: a.value,
|
|
2466
2482
|
s: e.suffix || l.value.chart.labels.suffix,
|
|
2467
2483
|
r: l.value.line.labels.rounding
|
|
2468
2484
|
}),
|
|
2469
2485
|
{
|
|
2470
|
-
datapoint:
|
|
2486
|
+
datapoint: a,
|
|
2471
2487
|
serie: e
|
|
2472
2488
|
}
|
|
2473
|
-
) : ""), 13,
|
|
2489
|
+
) : ""), 13, Zu)) : h("", !0)
|
|
2474
2490
|
], 64))), 128))
|
|
2475
2491
|
], 64))), 128))
|
|
2476
|
-
])) : (n(), r("g",
|
|
2477
|
-
(n(!0), r(d, null, w(
|
|
2492
|
+
])) : (n(), r("g", Ju, [
|
|
2493
|
+
(n(!0), r(d, null, w(ae.value, (e, u) => (n(), r(d, {
|
|
2478
2494
|
key: `xLabel_line_${e.id}`
|
|
2479
2495
|
}, [
|
|
2480
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
2496
|
+
(n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
|
|
2481
2497
|
key: `xLabel_line_${u}_${i}`
|
|
2482
2498
|
}, [
|
|
2483
2499
|
l.value.line.tag.followValue ? (n(), r(d, { key: 1 }, [
|
|
@@ -2486,18 +2502,18 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2486
2502
|
class: "vue-ui-xy-tag-line",
|
|
2487
2503
|
x1: c.value.left,
|
|
2488
2504
|
x2: c.value.right,
|
|
2489
|
-
y1:
|
|
2490
|
-
y2:
|
|
2505
|
+
y1: a.y,
|
|
2506
|
+
y2: a.y,
|
|
2491
2507
|
"stroke-width": 1,
|
|
2492
2508
|
"stroke-linecap": "round",
|
|
2493
2509
|
"stroke-dasharray": "2",
|
|
2494
2510
|
stroke: e.color
|
|
2495
|
-
}, null, 8,
|
|
2511
|
+
}, null, 8, li)) : h("", !0)
|
|
2496
2512
|
], 64)) : (n(), r(d, { key: 0 }, [
|
|
2497
|
-
|
|
2513
|
+
a && i === 0 && e.useTag && e.useTag === "start" ? (n(), r("foreignObject", {
|
|
2498
2514
|
key: 0,
|
|
2499
|
-
x:
|
|
2500
|
-
y:
|
|
2515
|
+
x: a.x,
|
|
2516
|
+
y: a.y - 20,
|
|
2501
2517
|
height: 24,
|
|
2502
2518
|
width: "150",
|
|
2503
2519
|
style: $(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
@@ -2506,20 +2522,20 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2506
2522
|
style: $(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
|
|
2507
2523
|
innerHTML: v(se)(
|
|
2508
2524
|
l.value.line.tag.formatter,
|
|
2509
|
-
|
|
2525
|
+
a.value,
|
|
2510
2526
|
e.name,
|
|
2511
2527
|
{
|
|
2512
|
-
datapoint:
|
|
2528
|
+
datapoint: a,
|
|
2513
2529
|
seriesIndex: i,
|
|
2514
2530
|
serieName: e.name
|
|
2515
2531
|
}
|
|
2516
2532
|
)
|
|
2517
|
-
}, null, 12,
|
|
2518
|
-
], 12,
|
|
2519
|
-
|
|
2533
|
+
}, null, 12, Qu)
|
|
2534
|
+
], 12, Ku)) : h("", !0),
|
|
2535
|
+
a && i === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (n(), r("foreignObject", {
|
|
2520
2536
|
key: 1,
|
|
2521
|
-
x:
|
|
2522
|
-
y:
|
|
2537
|
+
x: a.x,
|
|
2538
|
+
y: a.y - 20,
|
|
2523
2539
|
height: 24,
|
|
2524
2540
|
width: "150",
|
|
2525
2541
|
style: $(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
@@ -2528,108 +2544,108 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2528
2544
|
style: $(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
|
|
2529
2545
|
innerHTML: v(se)(
|
|
2530
2546
|
l.value.line.tag.formatter,
|
|
2531
|
-
|
|
2547
|
+
a.value,
|
|
2532
2548
|
e.name,
|
|
2533
2549
|
{
|
|
2534
|
-
datapoint:
|
|
2550
|
+
datapoint: a,
|
|
2535
2551
|
seriesIndex: i,
|
|
2536
2552
|
serieName: e.name
|
|
2537
2553
|
}
|
|
2538
2554
|
)
|
|
2539
|
-
}, null, 12,
|
|
2540
|
-
], 12,
|
|
2555
|
+
}, null, 12, ei)
|
|
2556
|
+
], 12, ju)) : h("", !0)
|
|
2541
2557
|
], 64))
|
|
2542
2558
|
], 64))), 128))
|
|
2543
2559
|
], 64))), 128))
|
|
2544
2560
|
])),
|
|
2545
|
-
(n(!0), r(d, null, w(
|
|
2561
|
+
(n(!0), r(d, null, w(ae.value, (e, u) => (n(), r(d, {
|
|
2546
2562
|
key: `xLabel_line_${e.id}`
|
|
2547
2563
|
}, [
|
|
2548
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
2564
|
+
(n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
|
|
2549
2565
|
key: `xLabel_line_${u}_${i}`
|
|
2550
2566
|
}, [
|
|
2551
|
-
|
|
2567
|
+
a && i === 0 && e.showSerieName && e.showSerieName === "start" ? (n(), r("text", {
|
|
2552
2568
|
key: 0,
|
|
2553
|
-
x:
|
|
2554
|
-
y:
|
|
2569
|
+
x: a.x - y.value.plotLabels,
|
|
2570
|
+
y: a.y,
|
|
2555
2571
|
"font-size": y.value.plotLabels,
|
|
2556
2572
|
"text-anchor": "end",
|
|
2557
2573
|
fill: e.color,
|
|
2558
|
-
innerHTML: v(
|
|
2574
|
+
innerHTML: v(Jl)({
|
|
2559
2575
|
content: e.name,
|
|
2560
2576
|
fontSize: y.value.plotLabels,
|
|
2561
2577
|
fill: e.color,
|
|
2562
|
-
x:
|
|
2563
|
-
y:
|
|
2578
|
+
x: a.x - y.value.plotLabels,
|
|
2579
|
+
y: a.y,
|
|
2564
2580
|
maxWords: 2
|
|
2565
2581
|
}),
|
|
2566
2582
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2567
|
-
}, null, 12,
|
|
2568
|
-
|
|
2583
|
+
}, null, 12, ti)) : h("", !0),
|
|
2584
|
+
a && i === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (n(), r("text", {
|
|
2569
2585
|
key: 1,
|
|
2570
|
-
x:
|
|
2571
|
-
y:
|
|
2586
|
+
x: a.x + y.value.plotLabels,
|
|
2587
|
+
y: a.y,
|
|
2572
2588
|
"font-size": y.value.plotLabels,
|
|
2573
2589
|
"text-anchor": "start",
|
|
2574
2590
|
fill: e.color,
|
|
2575
|
-
innerHTML: v(
|
|
2591
|
+
innerHTML: v(Jl)({
|
|
2576
2592
|
content: e.name,
|
|
2577
2593
|
fontSize: y.value.plotLabels,
|
|
2578
2594
|
fill: e.color,
|
|
2579
|
-
x:
|
|
2580
|
-
y:
|
|
2595
|
+
x: a.x + y.value.plotLabels,
|
|
2596
|
+
y: a.y,
|
|
2581
2597
|
maxWords: 2
|
|
2582
2598
|
}),
|
|
2583
2599
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2584
|
-
}, null, 12,
|
|
2600
|
+
}, null, 12, ai)) : h("", !0)
|
|
2585
2601
|
], 64))), 128))
|
|
2586
2602
|
], 64))), 128)),
|
|
2587
|
-
(n(!0), r(d, null, w(
|
|
2603
|
+
(n(!0), r(d, null, w(xe.value, (e, u) => (n(), r(d, {
|
|
2588
2604
|
key: `xLabel_plot_${e.id}`
|
|
2589
2605
|
}, [
|
|
2590
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
2606
|
+
(n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
|
|
2591
2607
|
key: `xLabel_plot_${u}_${i}`
|
|
2592
2608
|
}, [
|
|
2593
|
-
|
|
2609
|
+
a && i === 0 && e.showSerieName && e.showSerieName === "start" ? (n(), r("text", {
|
|
2594
2610
|
key: 0,
|
|
2595
|
-
x:
|
|
2596
|
-
y:
|
|
2611
|
+
x: a.x - y.value.plotLabels,
|
|
2612
|
+
y: a.y,
|
|
2597
2613
|
"font-size": y.value.plotLabels,
|
|
2598
2614
|
"text-anchor": "end",
|
|
2599
2615
|
fill: e.color,
|
|
2600
|
-
innerHTML: v(
|
|
2616
|
+
innerHTML: v(Jl)({
|
|
2601
2617
|
content: e.name,
|
|
2602
2618
|
fontSize: y.value.plotLabels,
|
|
2603
2619
|
fill: e.color,
|
|
2604
|
-
x:
|
|
2605
|
-
y:
|
|
2620
|
+
x: a.x - y.value.plotLabels,
|
|
2621
|
+
y: a.y,
|
|
2606
2622
|
maxWords: 2
|
|
2607
2623
|
}),
|
|
2608
2624
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2609
|
-
}, null, 12,
|
|
2610
|
-
|
|
2625
|
+
}, null, 12, oi)) : h("", !0),
|
|
2626
|
+
a && i === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (n(), r("text", {
|
|
2611
2627
|
key: 1,
|
|
2612
|
-
x:
|
|
2613
|
-
y:
|
|
2628
|
+
x: a.x + y.value.plotLabels,
|
|
2629
|
+
y: a.y,
|
|
2614
2630
|
"font-size": y.value.plotLabels,
|
|
2615
2631
|
"text-anchor": "start",
|
|
2616
2632
|
fill: e.color,
|
|
2617
|
-
innerHTML: v(
|
|
2633
|
+
innerHTML: v(Jl)({
|
|
2618
2634
|
content: e.name,
|
|
2619
2635
|
fontSize: y.value.plotLabels,
|
|
2620
2636
|
fill: e.color,
|
|
2621
|
-
x:
|
|
2622
|
-
y:
|
|
2637
|
+
x: a.x + y.value.plotLabels,
|
|
2638
|
+
y: a.y,
|
|
2623
2639
|
maxWords: 2
|
|
2624
2640
|
}),
|
|
2625
2641
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2626
|
-
}, null, 12,
|
|
2642
|
+
}, null, 12, si)) : h("", !0)
|
|
2627
2643
|
], 64))), 128))
|
|
2628
2644
|
], 64))), 128)),
|
|
2629
|
-
(n(!0), r(d, null, w([...
|
|
2645
|
+
(n(!0), r(d, null, w([...xe.value, ...ae.value, ...Me.value], (e, u) => (n(), r(d, {
|
|
2630
2646
|
key: `progression-${u}`
|
|
2631
2647
|
}, [
|
|
2632
|
-
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(
|
|
2648
|
+
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(we)(e.plots).trend) ? (n(), r("g", ui, [
|
|
2633
2649
|
p("defs", null, [
|
|
2634
2650
|
p("marker", {
|
|
2635
2651
|
id: `progression_arrow_${u}`,
|
|
@@ -2648,40 +2664,40 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2648
2664
|
stroke: l.value.chart.backgroundColor,
|
|
2649
2665
|
"stroke-width": "1",
|
|
2650
2666
|
"stroke-linejoin": "round"
|
|
2651
|
-
}, null, 8,
|
|
2652
|
-
], 8,
|
|
2667
|
+
}, null, 8, ni)
|
|
2668
|
+
], 8, ii)
|
|
2653
2669
|
]),
|
|
2654
2670
|
e.plots.length > 1 ? (n(), r("line", {
|
|
2655
2671
|
key: 0,
|
|
2656
|
-
x1: v(
|
|
2657
|
-
x2: v(
|
|
2658
|
-
y1: v(E)(v(
|
|
2659
|
-
y2: v(E)(v(
|
|
2672
|
+
x1: v(we)(e.plots).x1 + (e.type === "bar" ? He() : 0),
|
|
2673
|
+
x2: v(we)(e.plots).x2 + (e.type === "bar" ? He() : 0),
|
|
2674
|
+
y1: v(E)(v(we)(e.plots).y1),
|
|
2675
|
+
y2: v(E)(v(we)(e.plots).y2),
|
|
2660
2676
|
"stroke-width": 1,
|
|
2661
2677
|
stroke: l.value.chart.backgroundColor,
|
|
2662
2678
|
"stroke-dasharray": 2,
|
|
2663
2679
|
"stroke-linecap": "round",
|
|
2664
2680
|
"stroke-linejoin": "round",
|
|
2665
2681
|
"marker-end": `url(#progression_arrow_${u})`
|
|
2666
|
-
}, null, 8,
|
|
2682
|
+
}, null, 8, ri)) : h("", !0),
|
|
2667
2683
|
e.plots.length > 1 ? (n(), r("line", {
|
|
2668
2684
|
key: 1,
|
|
2669
|
-
x1: v(
|
|
2670
|
-
x2: v(
|
|
2671
|
-
y1: v(E)(v(
|
|
2672
|
-
y2: v(E)(v(
|
|
2685
|
+
x1: v(we)(e.plots).x1 + (e.type === "bar" ? He() : 0),
|
|
2686
|
+
x2: v(we)(e.plots).x2 + (e.type === "bar" ? He() : 0),
|
|
2687
|
+
y1: v(E)(v(we)(e.plots).y1),
|
|
2688
|
+
y2: v(E)(v(we)(e.plots).y2),
|
|
2673
2689
|
"stroke-width": 1,
|
|
2674
2690
|
stroke: e.color,
|
|
2675
2691
|
"stroke-dasharray": 2,
|
|
2676
2692
|
"stroke-linecap": "round",
|
|
2677
2693
|
"stroke-linejoin": "round",
|
|
2678
2694
|
"marker-end": `url(#progression_arrow_${u})`
|
|
2679
|
-
}, null, 8,
|
|
2695
|
+
}, null, 8, ci)) : h("", !0),
|
|
2680
2696
|
e.plots.length > 1 ? (n(), r("text", {
|
|
2681
2697
|
key: 2,
|
|
2682
2698
|
"text-anchor": "middle",
|
|
2683
|
-
x: v(
|
|
2684
|
-
y: v(
|
|
2699
|
+
x: v(we)(e.plots).x2 + (e.type === "bar" ? He() : 0),
|
|
2700
|
+
y: v(we)(e.plots).y2 - 12,
|
|
2685
2701
|
"font-size": y.value.plotLabels,
|
|
2686
2702
|
fill: e.color,
|
|
2687
2703
|
stroke: l.value.chart.backgroundColor,
|
|
@@ -2689,11 +2705,11 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2689
2705
|
"stroke-linecap": "round",
|
|
2690
2706
|
"stroke-linejoin": "round",
|
|
2691
2707
|
"paint-order": "stroke fill"
|
|
2692
|
-
},
|
|
2693
|
-
v: v(
|
|
2708
|
+
}, te(v(Ve)({
|
|
2709
|
+
v: v(we)(e.plots).trend * 100,
|
|
2694
2710
|
s: "%",
|
|
2695
2711
|
r: 2
|
|
2696
|
-
})), 9,
|
|
2712
|
+
})), 9, vi)) : h("", !0)
|
|
2697
2713
|
])) : h("", !0)
|
|
2698
2714
|
], 64))), 128)),
|
|
2699
2715
|
f.value.useIndividualScale && !f.value.isStacked ? (n(), r(d, { key: 13 }, [
|
|
@@ -2709,13 +2725,13 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2709
2725
|
offset: "0%",
|
|
2710
2726
|
"stop-color": l.value.chart.backgroundColor,
|
|
2711
2727
|
"stop-opacity": "0"
|
|
2712
|
-
}, null, 8,
|
|
2728
|
+
}, null, 8, hi),
|
|
2713
2729
|
p("stop", {
|
|
2714
2730
|
offset: "100%",
|
|
2715
2731
|
"stop-color": e.color,
|
|
2716
2732
|
"stop-opacity": "0.2"
|
|
2717
|
-
}, null, 8,
|
|
2718
|
-
], 8,
|
|
2733
|
+
}, null, 8, fi)
|
|
2734
|
+
], 8, di))), 256))
|
|
2719
2735
|
]),
|
|
2720
2736
|
(n(!0), r(d, null, w(Sl.value, (e, u) => (n(), r("rect", {
|
|
2721
2737
|
x: e.x - l.value.chart.grid.labels.yAxis.labelWidth + G.value - c.value.individualOffsetX,
|
|
@@ -2723,38 +2739,38 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2723
2739
|
width: l.value.chart.grid.labels.yAxis.labelWidth + c.value.individualOffsetX,
|
|
2724
2740
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
2725
2741
|
fill: I.value === e.groupId ? `url(#individual_scale_gradient_${D.value}_${u})` : "transparent",
|
|
2726
|
-
onMouseenter: (
|
|
2727
|
-
onMouseleave: s[0] || (s[0] = (
|
|
2728
|
-
}, null, 40,
|
|
2742
|
+
onMouseenter: (a) => I.value = e.groupId,
|
|
2743
|
+
onMouseleave: s[0] || (s[0] = (a) => I.value = null)
|
|
2744
|
+
}, null, 40, gi))), 256))
|
|
2729
2745
|
], 64)) : h("", !0),
|
|
2730
2746
|
p("g", null, [
|
|
2731
2747
|
l.value.chart.grid.labels.axis.yLabel && !f.value.useIndividualScale ? (n(), r("text", {
|
|
2732
2748
|
key: 0,
|
|
2733
2749
|
ref_key: "yAxisLabel",
|
|
2734
|
-
ref:
|
|
2750
|
+
ref: tt,
|
|
2735
2751
|
"font-size": y.value.yAxis,
|
|
2736
2752
|
fill: l.value.chart.grid.labels.color,
|
|
2737
2753
|
transform: `translate(${l.value.chart.grid.labels.axis.fontSize}, ${c.value.top + c.value.height / 2}) rotate(-90)`,
|
|
2738
2754
|
"text-anchor": "middle",
|
|
2739
2755
|
style: { transition: "none" }
|
|
2740
|
-
},
|
|
2756
|
+
}, te(l.value.chart.grid.labels.axis.yLabel), 9, mi)) : h("", !0),
|
|
2741
2757
|
l.value.chart.grid.labels.axis.xLabel ? (n(), r("text", {
|
|
2742
2758
|
key: 1,
|
|
2743
2759
|
ref_key: "xAxisLabel",
|
|
2744
|
-
ref:
|
|
2760
|
+
ref: lt,
|
|
2745
2761
|
"text-anchor": "middle",
|
|
2746
|
-
x:
|
|
2762
|
+
x: ee.value / 2,
|
|
2747
2763
|
y: ve.value - 3,
|
|
2748
2764
|
"font-size": y.value.yAxis,
|
|
2749
2765
|
fill: l.value.chart.grid.labels.color
|
|
2750
|
-
},
|
|
2766
|
+
}, te(l.value.chart.grid.labels.axis.xLabel), 9, bi)) : h("", !0)
|
|
2751
2767
|
]),
|
|
2752
2768
|
l.value.chart.grid.labels.xAxisLabels.show ? (n(), r("g", {
|
|
2753
2769
|
key: 14,
|
|
2754
2770
|
ref_key: "timeLabelsEls",
|
|
2755
2771
|
ref: ul
|
|
2756
2772
|
}, [
|
|
2757
|
-
|
|
2773
|
+
t.$slots["time-label"] ? (n(!0), r(d, { key: 0 }, w(mt.value, (e, u) => W(t.$slots, "time-label", tl({
|
|
2758
2774
|
key: `time_label_${e.id}`,
|
|
2759
2775
|
ref_for: !0
|
|
2760
2776
|
}, {
|
|
@@ -2767,7 +2783,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2767
2783
|
content: e.text,
|
|
2768
2784
|
textAnchor: l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2769
2785
|
show: e && e.text
|
|
2770
|
-
}), void 0, !0)), 128)) : (n(!0), r(d, { key: 1 }, w(
|
|
2786
|
+
}), void 0, !0)), 128)) : (n(!0), r(d, { key: 1 }, w(mt.value, (e, u) => (n(), r("g", {
|
|
2771
2787
|
key: `time_label_${u}`
|
|
2772
2788
|
}, [
|
|
2773
2789
|
e && e.text ? (n(), r(d, { key: 0 }, [
|
|
@@ -2780,17 +2796,17 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2780
2796
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2781
2797
|
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
2798
|
style: $({
|
|
2783
|
-
cursor:
|
|
2799
|
+
cursor: Yt() ? "pointer" : "default"
|
|
2784
2800
|
}),
|
|
2785
|
-
innerHTML: v(
|
|
2801
|
+
innerHTML: v(us)({
|
|
2786
2802
|
content: String(e.text),
|
|
2787
2803
|
fontSize: y.value.xAxis,
|
|
2788
2804
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2789
2805
|
x: 0,
|
|
2790
2806
|
y: 0
|
|
2791
2807
|
}),
|
|
2792
|
-
onClick: () =>
|
|
2793
|
-
}, null, 12,
|
|
2808
|
+
onClick: () => Ut(e, u)
|
|
2809
|
+
}, null, 12, pi)) : (n(), r("text", {
|
|
2794
2810
|
key: 0,
|
|
2795
2811
|
class: "vue-data-ui-time-label",
|
|
2796
2812
|
"text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -2798,15 +2814,15 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2798
2814
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2799
2815
|
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
2816
|
style: $({
|
|
2801
|
-
cursor:
|
|
2817
|
+
cursor: Yt() ? "pointer" : "default"
|
|
2802
2818
|
}),
|
|
2803
|
-
onClick: () =>
|
|
2804
|
-
},
|
|
2819
|
+
onClick: () => Ut(e, u)
|
|
2820
|
+
}, te(e.text || ""), 13, xi))
|
|
2805
2821
|
], 64)) : h("", !0)
|
|
2806
2822
|
]))), 128))
|
|
2807
2823
|
], 512)) : h("", !0),
|
|
2808
|
-
|
|
2809
|
-
(n(!0), r(d, null, w(
|
|
2824
|
+
ra.value.length && !f.value.isStacked ? (n(), r("g", yi, [
|
|
2825
|
+
(n(!0), r(d, null, w(ra.value, (e) => (n(), r("g", {
|
|
2810
2826
|
key: e.uid
|
|
2811
2827
|
}, [
|
|
2812
2828
|
e.yTop && e.show && isFinite(e.yTop) ? (n(), r("line", {
|
|
@@ -2820,7 +2836,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2820
2836
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
2821
2837
|
"stroke-linecap": "round",
|
|
2822
2838
|
style: { animation: "none !important" }
|
|
2823
|
-
}, null, 8,
|
|
2839
|
+
}, null, 8, ki)) : h("", !0),
|
|
2824
2840
|
e.yBottom && e.show && isFinite(e.yBottom) ? (n(), r("line", {
|
|
2825
2841
|
key: 1,
|
|
2826
2842
|
x1: e.x1,
|
|
@@ -2832,7 +2848,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2832
2848
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
2833
2849
|
"stroke-linecap": "round",
|
|
2834
2850
|
style: { animation: "none !important" }
|
|
2835
|
-
}, null, 8,
|
|
2851
|
+
}, null, 8, _i)) : h("", !0),
|
|
2836
2852
|
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (n(), r("rect", {
|
|
2837
2853
|
key: 2,
|
|
2838
2854
|
y: Math.min(e.yTop, e.yBottom),
|
|
@@ -2841,8 +2857,8 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2841
2857
|
height: v(P)(e.areaHeight, 0),
|
|
2842
2858
|
fill: v(Ce)(e.config.area.fill, e.config.area.opacity),
|
|
2843
2859
|
style: { animation: "none !important" }
|
|
2844
|
-
}, null, 8,
|
|
2845
|
-
e.config.label.text && e.show && isFinite(e._box.y) ? (n(), r("rect",
|
|
2860
|
+
}, null, 8, wi)) : h("", !0),
|
|
2861
|
+
e.config.label.text && e.show && isFinite(e._box.y) ? (n(), r("rect", tl({
|
|
2846
2862
|
key: 3,
|
|
2847
2863
|
class: "vue-ui-xy-annotation-label-box"
|
|
2848
2864
|
}, { ref_for: !0 }, e._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : h("", !0),
|
|
@@ -2855,12 +2871,12 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2855
2871
|
"font-size": e.config.label.fontSize,
|
|
2856
2872
|
fill: e.config.label.color,
|
|
2857
2873
|
"text-anchor": e.config.label.textAnchor
|
|
2858
|
-
},
|
|
2874
|
+
}, te(e.config.label.text), 9, Si)) : h("", !0)
|
|
2859
2875
|
]))), 128))
|
|
2860
2876
|
])) : h("", !0),
|
|
2861
|
-
l.value.chart.timeTag.show && (![null, void 0].includes(_.value) || ![null, void 0].includes(V.value)) ? (n(), r("g",
|
|
2877
|
+
l.value.chart.timeTag.show && (![null, void 0].includes(_.value) || ![null, void 0].includes(V.value)) ? (n(), r("g", $i, [
|
|
2862
2878
|
(n(), r("foreignObject", {
|
|
2863
|
-
x:
|
|
2879
|
+
x: Po(),
|
|
2864
2880
|
y: c.value.bottom,
|
|
2865
2881
|
width: "200",
|
|
2866
2882
|
height: "40",
|
|
@@ -2868,40 +2884,40 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2868
2884
|
}, [
|
|
2869
2885
|
p("div", {
|
|
2870
2886
|
ref_key: "timeTagEl",
|
|
2871
|
-
ref:
|
|
2887
|
+
ref: _a,
|
|
2872
2888
|
class: "vue-ui-xy-time-tag",
|
|
2873
2889
|
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,
|
|
2890
|
+
innerHTML: Fo.value
|
|
2891
|
+
}, null, 12, Mi)
|
|
2892
|
+
], 8, Li)),
|
|
2877
2893
|
p("circle", {
|
|
2878
2894
|
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
2895
|
cy: c.value.bottom,
|
|
2880
2896
|
r: l.value.chart.timeTag.circleMarker.radius,
|
|
2881
2897
|
fill: l.value.chart.timeTag.circleMarker.color
|
|
2882
|
-
}, null, 8,
|
|
2898
|
+
}, null, 8, Ai)
|
|
2883
2899
|
])) : h("", !0)
|
|
2884
2900
|
])) : h("", !0),
|
|
2885
|
-
|
|
2901
|
+
Ft.value ? (n(), r("rect", tl({ key: 2 }, so.value, {
|
|
2886
2902
|
"data-start": m.value.start,
|
|
2887
2903
|
"data-end": m.value.end
|
|
2888
|
-
}), null, 16,
|
|
2889
|
-
W(
|
|
2904
|
+
}), null, 16, Ci)) : h("", !0),
|
|
2905
|
+
W(t.$slots, "svg", {
|
|
2890
2906
|
svg: {
|
|
2891
|
-
...
|
|
2892
|
-
data: [...
|
|
2907
|
+
...to.value,
|
|
2908
|
+
data: [...ae.value, ...Me.value, ...xe.value],
|
|
2893
2909
|
drawingArea: c.value
|
|
2894
2910
|
}
|
|
2895
2911
|
}, void 0, !0)
|
|
2896
2912
|
], 512)
|
|
2897
|
-
], 46,
|
|
2898
|
-
|
|
2899
|
-
W(
|
|
2913
|
+
], 46, Ms)),
|
|
2914
|
+
t.$slots.watermark ? (n(), r("div", Ti, [
|
|
2915
|
+
W(t.$slots, "watermark", We(Xe({ isPrinting: v(dt) || v(Bt) })), void 0, !0)
|
|
2900
2916
|
])) : h("", !0),
|
|
2901
|
-
(n(!0), r(d, null, w(
|
|
2917
|
+
(n(!0), r(d, null, w(ae.value, (e, u) => (n(), r(d, {
|
|
2902
2918
|
key: `tag_line_${e.id}`
|
|
2903
2919
|
}, [
|
|
2904
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
2920
|
+
(n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
|
|
2905
2921
|
key: `tag_line_${u}_${i}`
|
|
2906
2922
|
}, [
|
|
2907
2923
|
[V.value, _.value, Ze.value].includes(i) && e.useTag && e.useTag === "end" && l.value.line.tag.followValue ? (n(), r("div", {
|
|
@@ -2915,14 +2931,14 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2915
2931
|
top: v(Ue)({
|
|
2916
2932
|
svgElement: ue.value,
|
|
2917
2933
|
x: c.value.right + l.value.line.tag.fontSize / 1.5,
|
|
2918
|
-
y:
|
|
2934
|
+
y: a.y,
|
|
2919
2935
|
element: Pe.value[`${u}_${i}_right_line`],
|
|
2920
2936
|
position: "right"
|
|
2921
2937
|
}).top + "px",
|
|
2922
2938
|
left: v(Ue)({
|
|
2923
2939
|
svgElement: ue.value,
|
|
2924
2940
|
x: c.value.right + l.value.line.tag.fontSize / 1.5,
|
|
2925
|
-
y:
|
|
2941
|
+
y: a.y,
|
|
2926
2942
|
element: Pe.value[`${u}_${i}_right_line`],
|
|
2927
2943
|
position: "right"
|
|
2928
2944
|
}).left + "px",
|
|
@@ -2935,26 +2951,26 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2935
2951
|
opacity: 1
|
|
2936
2952
|
})
|
|
2937
2953
|
}, [
|
|
2938
|
-
(n(), r("svg",
|
|
2954
|
+
(n(), r("svg", zi, [
|
|
2939
2955
|
p("path", {
|
|
2940
2956
|
d: "M 0,10 10,0 10,20 Z",
|
|
2941
2957
|
fill: e.color,
|
|
2942
2958
|
stroke: "none"
|
|
2943
|
-
}, null, 8,
|
|
2959
|
+
}, null, 8, Ii)
|
|
2944
2960
|
])),
|
|
2945
2961
|
p("div", {
|
|
2946
2962
|
class: "vue-ui-xy-tag-content",
|
|
2947
2963
|
innerHTML: v(se)(
|
|
2948
2964
|
l.value.line.tag.formatter,
|
|
2949
|
-
|
|
2965
|
+
a.value,
|
|
2950
2966
|
e.name,
|
|
2951
2967
|
{
|
|
2952
|
-
datapoint:
|
|
2968
|
+
datapoint: a,
|
|
2953
2969
|
seriesIndex: i,
|
|
2954
2970
|
serieName: e.name
|
|
2955
2971
|
}
|
|
2956
2972
|
)
|
|
2957
|
-
}, null, 8,
|
|
2973
|
+
}, null, 8, Oi)
|
|
2958
2974
|
], 4)) : h("", !0),
|
|
2959
2975
|
[V.value, _.value, Ze.value].includes(i) && e.useTag && e.useTag === "start" && l.value.line.tag.followValue ? (n(), r("div", {
|
|
2960
2976
|
key: 1,
|
|
@@ -2967,14 +2983,14 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2967
2983
|
top: v(Ue)({
|
|
2968
2984
|
svgElement: ue.value,
|
|
2969
2985
|
x: c.value.left - l.value.line.tag.fontSize / 1.5,
|
|
2970
|
-
y:
|
|
2986
|
+
y: a.y,
|
|
2971
2987
|
element: Pe.value[`${u}_${i}_left_line`],
|
|
2972
2988
|
position: "left"
|
|
2973
2989
|
}).top + "px",
|
|
2974
2990
|
left: v(Ue)({
|
|
2975
2991
|
svgElement: ue.value,
|
|
2976
2992
|
x: c.value.left - l.value.line.tag.fontSize / 1.5,
|
|
2977
|
-
y:
|
|
2993
|
+
y: a.y,
|
|
2978
2994
|
element: Pe.value[`${u}_${i}_left_line`],
|
|
2979
2995
|
position: "left"
|
|
2980
2996
|
}).left + "px",
|
|
@@ -2987,33 +3003,33 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2987
3003
|
opacity: 1
|
|
2988
3004
|
})
|
|
2989
3005
|
}, [
|
|
2990
|
-
(n(), r("svg",
|
|
3006
|
+
(n(), r("svg", Ni, [
|
|
2991
3007
|
p("path", {
|
|
2992
3008
|
d: "M 0,0 10,10 0,20 Z",
|
|
2993
3009
|
fill: e.color,
|
|
2994
3010
|
stroke: "none"
|
|
2995
|
-
}, null, 8,
|
|
3011
|
+
}, null, 8, Vi)
|
|
2996
3012
|
])),
|
|
2997
3013
|
p("div", {
|
|
2998
3014
|
class: "vue-ui-xy-tag-content",
|
|
2999
3015
|
innerHTML: v(se)(
|
|
3000
3016
|
l.value.line.tag.formatter,
|
|
3001
|
-
|
|
3017
|
+
a.value,
|
|
3002
3018
|
e.name,
|
|
3003
3019
|
{
|
|
3004
|
-
datapoint:
|
|
3020
|
+
datapoint: a,
|
|
3005
3021
|
seriesIndex: i,
|
|
3006
3022
|
serieName: e.name
|
|
3007
3023
|
}
|
|
3008
3024
|
)
|
|
3009
|
-
}, null, 8,
|
|
3025
|
+
}, null, 8, Pi)
|
|
3010
3026
|
], 4)) : h("", !0)
|
|
3011
3027
|
], 64))), 128))
|
|
3012
3028
|
], 64))), 128)),
|
|
3013
|
-
(n(!0), r(d, null, w(
|
|
3029
|
+
(n(!0), r(d, null, w(xe.value, (e, u) => (n(), r(d, {
|
|
3014
3030
|
key: `tag_plot_${e.id}`
|
|
3015
3031
|
}, [
|
|
3016
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
3032
|
+
(n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
|
|
3017
3033
|
key: `tag_plot_${u}_${i}`
|
|
3018
3034
|
}, [
|
|
3019
3035
|
[V.value, _.value, Ze.value].includes(i) && e.useTag && e.useTag === "end" && l.value.plot.tag.followValue ? (n(), r("div", {
|
|
@@ -3027,14 +3043,14 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3027
3043
|
top: v(Ue)({
|
|
3028
3044
|
svgElement: ue.value,
|
|
3029
3045
|
x: c.value.right + l.value.plot.tag.fontSize / 1.5,
|
|
3030
|
-
y:
|
|
3046
|
+
y: a.y,
|
|
3031
3047
|
element: Pe.value[`${u}_${i}_right_plot`],
|
|
3032
3048
|
position: "right"
|
|
3033
3049
|
}).top + "px",
|
|
3034
3050
|
left: v(Ue)({
|
|
3035
3051
|
svgElement: ue.value,
|
|
3036
3052
|
x: c.value.right + l.value.plot.tag.fontSize / 1.5,
|
|
3037
|
-
y:
|
|
3053
|
+
y: a.y,
|
|
3038
3054
|
element: Pe.value[`${u}_${i}_right_plot`],
|
|
3039
3055
|
position: "right"
|
|
3040
3056
|
}).left + "px",
|
|
@@ -3047,26 +3063,26 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3047
3063
|
opacity: 1
|
|
3048
3064
|
})
|
|
3049
3065
|
}, [
|
|
3050
|
-
(n(), r("svg",
|
|
3066
|
+
(n(), r("svg", Fi, [
|
|
3051
3067
|
p("path", {
|
|
3052
3068
|
d: "M 0,10 10,0 10,20 Z",
|
|
3053
3069
|
fill: e.color,
|
|
3054
3070
|
stroke: "none"
|
|
3055
|
-
}, null, 8,
|
|
3071
|
+
}, null, 8, Ri)
|
|
3056
3072
|
])),
|
|
3057
3073
|
p("div", {
|
|
3058
3074
|
class: "vue-ui-xy-tag-content",
|
|
3059
3075
|
innerHTML: v(se)(
|
|
3060
3076
|
l.value.plot.tag.formatter,
|
|
3061
|
-
|
|
3077
|
+
a.value,
|
|
3062
3078
|
e.name,
|
|
3063
3079
|
{
|
|
3064
|
-
datapoint:
|
|
3080
|
+
datapoint: a,
|
|
3065
3081
|
seriesIndex: i,
|
|
3066
3082
|
serieName: e.name
|
|
3067
3083
|
}
|
|
3068
3084
|
)
|
|
3069
|
-
}, null, 8,
|
|
3085
|
+
}, null, 8, Bi)
|
|
3070
3086
|
], 4)) : h("", !0),
|
|
3071
3087
|
[V.value, _.value, Ze.value].includes(i) && e.useTag && e.useTag === "start" && l.value.plot.tag.followValue ? (n(), r("div", {
|
|
3072
3088
|
key: 1,
|
|
@@ -3079,14 +3095,14 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3079
3095
|
top: v(Ue)({
|
|
3080
3096
|
svgElement: ue.value,
|
|
3081
3097
|
x: c.value.left - l.value.plot.tag.fontSize / 1.5,
|
|
3082
|
-
y:
|
|
3098
|
+
y: a.y,
|
|
3083
3099
|
element: Pe.value[`${u}_${i}_left_plot`],
|
|
3084
3100
|
position: "left"
|
|
3085
3101
|
}).top + "px",
|
|
3086
3102
|
left: v(Ue)({
|
|
3087
3103
|
svgElement: ue.value,
|
|
3088
3104
|
x: c.value.left - l.value.plot.tag.fontSize / 1.5,
|
|
3089
|
-
y:
|
|
3105
|
+
y: a.y,
|
|
3090
3106
|
element: Pe.value[`${u}_${i}_left_plot`],
|
|
3091
3107
|
position: "left"
|
|
3092
3108
|
}).left + "px",
|
|
@@ -3099,34 +3115,34 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3099
3115
|
opacity: 1
|
|
3100
3116
|
})
|
|
3101
3117
|
}, [
|
|
3102
|
-
(n(), r("svg",
|
|
3118
|
+
(n(), r("svg", Hi, [
|
|
3103
3119
|
p("path", {
|
|
3104
3120
|
d: "M 0,0 10,10 0,20 Z",
|
|
3105
3121
|
fill: e.color,
|
|
3106
3122
|
stroke: "none"
|
|
3107
|
-
}, null, 8,
|
|
3123
|
+
}, null, 8, Di)
|
|
3108
3124
|
])),
|
|
3109
3125
|
p("div", {
|
|
3110
3126
|
class: "vue-ui-xy-tag-content",
|
|
3111
3127
|
innerHTML: v(se)(
|
|
3112
3128
|
l.value.plot.tag.formatter,
|
|
3113
|
-
|
|
3129
|
+
a.value,
|
|
3114
3130
|
e.name,
|
|
3115
3131
|
{
|
|
3116
|
-
datapoint:
|
|
3132
|
+
datapoint: a,
|
|
3117
3133
|
seriesIndex: i,
|
|
3118
3134
|
serieName: e.name
|
|
3119
3135
|
}
|
|
3120
3136
|
)
|
|
3121
|
-
}, null, 8,
|
|
3137
|
+
}, null, 8, Ei)
|
|
3122
3138
|
], 4)) : h("", !0)
|
|
3123
3139
|
], 64))), 128))
|
|
3124
3140
|
], 64))), 128)),
|
|
3125
|
-
l.value.chart.zoom.show && Ie.value > 6 &&
|
|
3141
|
+
l.value.chart.zoom.show && Ie.value > 6 && ct.value && Jt.value ? (n(), Ae(_s, {
|
|
3126
3142
|
key: 5,
|
|
3127
3143
|
ref_key: "chartSlicer",
|
|
3128
3144
|
ref: ze,
|
|
3129
|
-
allMinimaps:
|
|
3145
|
+
allMinimaps: Io.value,
|
|
3130
3146
|
background: l.value.chart.zoom.color,
|
|
3131
3147
|
borderColor: l.value.chart.backgroundColor,
|
|
3132
3148
|
customFormat: l.value.chart.zoom.customFormat,
|
|
@@ -3140,12 +3156,12 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3140
3156
|
useResetSlot: l.value.chart.zoom.useResetSlot,
|
|
3141
3157
|
immediate: !l.value.chart.zoom.preview.enable,
|
|
3142
3158
|
inputColor: l.value.chart.zoom.color,
|
|
3143
|
-
isPreview:
|
|
3159
|
+
isPreview: Ft.value,
|
|
3144
3160
|
labelLeft: de.value[0] ? de.value[0].text : "",
|
|
3145
3161
|
labelRight: de.value.at(-1) ? de.value.at(-1).text : "",
|
|
3146
3162
|
max: Ie.value,
|
|
3147
3163
|
min: 0,
|
|
3148
|
-
minimap:
|
|
3164
|
+
minimap: zo.value,
|
|
3149
3165
|
minimapCompact: l.value.chart.zoom.minimap.compact,
|
|
3150
3166
|
minimapFrameColor: l.value.chart.zoom.minimap.frameColor,
|
|
3151
3167
|
minimapIndicatorColor: l.value.chart.zoom.minimap.indicatorColor,
|
|
@@ -3155,35 +3171,35 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3155
3171
|
minimapSelectedColorOpacity: l.value.chart.zoom.minimap.selectedColorOpacity,
|
|
3156
3172
|
minimapSelectedIndex: _.value,
|
|
3157
3173
|
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(...
|
|
3174
|
+
preciseLabels: ha.value.length ? ha.value : gt.value,
|
|
3175
|
+
refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...jl.dataset.map((e) => Be(e.series).length)),
|
|
3160
3176
|
refreshStartPoint: l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex : 0,
|
|
3161
3177
|
selectColor: l.value.chart.zoom.highlightColor,
|
|
3162
3178
|
selectedSeries: je.value,
|
|
3163
3179
|
smoothMinimap: l.value.chart.zoom.minimap.smooth,
|
|
3164
3180
|
start: m.value.start,
|
|
3165
3181
|
textColor: l.value.chart.color,
|
|
3166
|
-
timeLabels:
|
|
3182
|
+
timeLabels: gt.value,
|
|
3167
3183
|
usePreciseLabels: l.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !l.value.chart.zoom.useDefaultFormat,
|
|
3168
3184
|
valueEnd: m.value.end,
|
|
3169
3185
|
valueStart: m.value.start,
|
|
3170
3186
|
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":
|
|
3187
|
+
onFutureEnd: s[1] || (s[1] = (e) => Rt("end", e)),
|
|
3188
|
+
onFutureStart: s[2] || (s[2] = (e) => Rt("start", e)),
|
|
3189
|
+
onReset: po,
|
|
3190
|
+
onTrapMouse: go,
|
|
3191
|
+
"onUpdate:end": xo,
|
|
3192
|
+
"onUpdate:start": bo
|
|
3177
3193
|
}, {
|
|
3178
|
-
"reset-action":
|
|
3179
|
-
W(
|
|
3194
|
+
"reset-action": j(({ reset: e }) => [
|
|
3195
|
+
W(t.$slots, "reset-action", We(Xe({ reset: e })), void 0, !0)
|
|
3180
3196
|
]),
|
|
3181
3197
|
_: 3
|
|
3182
3198
|
}, 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
3199
|
p("div", {
|
|
3184
3200
|
id: `legend-bottom-${D.value}`
|
|
3185
|
-
}, null, 8,
|
|
3186
|
-
|
|
3201
|
+
}, null, 8, Yi),
|
|
3202
|
+
Ot.value ? (n(), Ae(qo, {
|
|
3187
3203
|
key: 6,
|
|
3188
3204
|
to: l.value.chart.legend.position === "top" ? `#legend-top-${D.value}` : `#legend-bottom-${D.value}`
|
|
3189
3205
|
}, [
|
|
@@ -3196,12 +3212,12 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3196
3212
|
fontSize: `var(--legend-font-size, ${l.value.chart.legend.fontSize ?? 14}px)`
|
|
3197
3213
|
})
|
|
3198
3214
|
}, [
|
|
3199
|
-
(n(!0), r(d, null, w(
|
|
3215
|
+
(n(!0), r(d, null, w(me.value, (e, u) => (n(), r("div", {
|
|
3200
3216
|
key: `div_legend_item_${u}`,
|
|
3201
|
-
onClick: (
|
|
3202
|
-
class: ll({ "vue-ui-xy-legend-item-alone":
|
|
3217
|
+
onClick: (a) => El(e),
|
|
3218
|
+
class: ll({ "vue-ui-xy-legend-item-alone": me.value.length === 1, "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": Z.value.includes(e.id) })
|
|
3203
3219
|
}, [
|
|
3204
|
-
bl.value[e.type] === "line" ? (n(), r("svg",
|
|
3220
|
+
bl.value[e.type] === "line" ? (n(), r("svg", Xi, [
|
|
3205
3221
|
p("rect", {
|
|
3206
3222
|
x: "0",
|
|
3207
3223
|
y: "7.5",
|
|
@@ -3211,8 +3227,8 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3211
3227
|
height: "3",
|
|
3212
3228
|
width: "20",
|
|
3213
3229
|
fill: e.color
|
|
3214
|
-
}, null, 8,
|
|
3215
|
-
vl(
|
|
3230
|
+
}, null, 8, Gi),
|
|
3231
|
+
vl(Ql, {
|
|
3216
3232
|
plot: { x: 10, y: 9 },
|
|
3217
3233
|
radius: 4,
|
|
3218
3234
|
color: e.color,
|
|
@@ -3220,8 +3236,8 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3220
3236
|
stroke: l.value.chart.backgroundColor,
|
|
3221
3237
|
strokeWidth: 0.5
|
|
3222
3238
|
}, null, 8, ["color", "shape", "stroke"])
|
|
3223
|
-
])) : bl.value[e.type] === "bar" ? (n(), r("svg",
|
|
3224
|
-
bl.value[e.type] === "bar" &&
|
|
3239
|
+
])) : bl.value[e.type] === "bar" ? (n(), r("svg", Ui, [
|
|
3240
|
+
bl.value[e.type] === "bar" && t.$slots.pattern ? (n(), r("rect", {
|
|
3225
3241
|
key: 0,
|
|
3226
3242
|
x: "4",
|
|
3227
3243
|
y: "4",
|
|
@@ -3230,7 +3246,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3230
3246
|
width: "32",
|
|
3231
3247
|
stroke: "none",
|
|
3232
3248
|
fill: e.color
|
|
3233
|
-
}, null, 8,
|
|
3249
|
+
}, null, 8, qi)) : h("", !0),
|
|
3234
3250
|
bl.value[e.type] === "bar" ? (n(), r("rect", {
|
|
3235
3251
|
key: 1,
|
|
3236
3252
|
x: "4",
|
|
@@ -3239,10 +3255,10 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3239
3255
|
height: "32",
|
|
3240
3256
|
width: "32",
|
|
3241
3257
|
stroke: "none",
|
|
3242
|
-
fill:
|
|
3243
|
-
}, null, 8,
|
|
3244
|
-
])) : (n(), r("svg",
|
|
3245
|
-
vl(
|
|
3258
|
+
fill: t.$slots.pattern ? `url(#pattern_${D.value}_${e.slotAbsoluteIndex})` : e.color
|
|
3259
|
+
}, null, 8, Zi)) : h("", !0)
|
|
3260
|
+
])) : (n(), r("svg", Ji, [
|
|
3261
|
+
vl(Ql, {
|
|
3246
3262
|
plot: { x: 6, y: 6 },
|
|
3247
3263
|
radius: 5,
|
|
3248
3264
|
color: e.color,
|
|
@@ -3251,26 +3267,26 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3251
3267
|
])),
|
|
3252
3268
|
p("span", {
|
|
3253
3269
|
style: $(`color:${l.value.chart.legend.color}`)
|
|
3254
|
-
},
|
|
3255
|
-
], 10,
|
|
3270
|
+
}, te(e.name), 5)
|
|
3271
|
+
], 10, Wi))), 128))
|
|
3256
3272
|
], 4)) : (n(), r("div", {
|
|
3257
3273
|
key: 1,
|
|
3258
3274
|
ref_key: "chartLegend",
|
|
3259
3275
|
ref: sl
|
|
3260
3276
|
}, [
|
|
3261
|
-
W(
|
|
3277
|
+
W(t.$slots, "legend", { legend: me.value }, void 0, !0)
|
|
3262
3278
|
], 512))
|
|
3263
3279
|
], 8, ["to"])) : h("", !0),
|
|
3264
|
-
|
|
3280
|
+
t.$slots.source ? (n(), r("div", {
|
|
3265
3281
|
key: 7,
|
|
3266
3282
|
ref_key: "source",
|
|
3267
3283
|
ref: gl,
|
|
3268
3284
|
dir: "auto"
|
|
3269
3285
|
}, [
|
|
3270
|
-
W(
|
|
3286
|
+
W(t.$slots, "source", {}, void 0, !0)
|
|
3271
3287
|
], 512)) : h("", !0),
|
|
3272
|
-
vl(v(
|
|
3273
|
-
show: f.value.showTooltip &&
|
|
3288
|
+
vl(v(Ga), {
|
|
3289
|
+
show: f.value.showTooltip && At.value,
|
|
3274
3290
|
backgroundColor: l.value.chart.tooltip.backgroundColor,
|
|
3275
3291
|
color: l.value.chart.tooltip.color,
|
|
3276
3292
|
fontSize: l.value.chart.tooltip.fontSize,
|
|
@@ -3280,8 +3296,8 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3280
3296
|
backgroundOpacity: l.value.chart.tooltip.backgroundOpacity,
|
|
3281
3297
|
position: l.value.chart.tooltip.position,
|
|
3282
3298
|
offsetY: l.value.chart.tooltip.offsetY,
|
|
3283
|
-
parent:
|
|
3284
|
-
content:
|
|
3299
|
+
parent: t.$refs.chart,
|
|
3300
|
+
content: Oo.value,
|
|
3285
3301
|
isFullscreen: qe.value,
|
|
3286
3302
|
isCustom: l.value.chart.tooltip.customFormat && typeof l.value.chart.tooltip.customFormat == "function",
|
|
3287
3303
|
smooth: l.value.chart.tooltip.smooth,
|
|
@@ -3289,60 +3305,60 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3289
3305
|
smoothForce: l.value.chart.tooltip.smoothForce,
|
|
3290
3306
|
smoothSnapThreshold: l.value.chart.tooltip.smoothSnapThreshold
|
|
3291
3307
|
}, {
|
|
3292
|
-
"tooltip-before":
|
|
3293
|
-
W(
|
|
3308
|
+
"tooltip-before": j(() => [
|
|
3309
|
+
W(t.$slots, "tooltip-before", We(Xe({ ...da.value })), void 0, !0)
|
|
3294
3310
|
]),
|
|
3295
|
-
"tooltip-after":
|
|
3296
|
-
W(
|
|
3311
|
+
"tooltip-after": j(() => [
|
|
3312
|
+
W(t.$slots, "tooltip-after", We(Xe({ ...da.value })), void 0, !0)
|
|
3297
3313
|
]),
|
|
3298
3314
|
_: 3
|
|
3299
3315
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
3300
|
-
|
|
3316
|
+
ct.value && l.value.chart.userOptions.buttons.table ? (n(), Ae(Zo($l.value.component), tl({ key: 8 }, $l.value.props, {
|
|
3301
3317
|
ref_key: "tableUnit",
|
|
3302
3318
|
ref: il,
|
|
3303
|
-
onClose:
|
|
3304
|
-
}),
|
|
3305
|
-
content:
|
|
3319
|
+
onClose: $a
|
|
3320
|
+
}), Ca({
|
|
3321
|
+
content: j(() => [
|
|
3306
3322
|
p("div", {
|
|
3307
|
-
style: $(`${v(
|
|
3323
|
+
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
3324
|
}, [
|
|
3309
|
-
p("div",
|
|
3310
|
-
|
|
3325
|
+
p("div", Ki, [
|
|
3326
|
+
Jo(p("input", {
|
|
3311
3327
|
type: "checkbox",
|
|
3312
3328
|
"onUpdate:modelValue": s[4] || (s[4] = (e) => pl.value = e)
|
|
3313
3329
|
}, null, 512), [
|
|
3314
|
-
[
|
|
3330
|
+
[Ko, pl.value]
|
|
3315
3331
|
]),
|
|
3316
3332
|
p("div", {
|
|
3317
3333
|
onClick: s[5] || (s[5] = (e) => pl.value = !pl.value),
|
|
3318
3334
|
style: { cursor: "pointer" }
|
|
3319
3335
|
}, [
|
|
3320
|
-
vl(v(
|
|
3336
|
+
vl(v($t), {
|
|
3321
3337
|
name: "chartLine",
|
|
3322
3338
|
size: 20,
|
|
3323
3339
|
stroke: l.value.chart.color
|
|
3324
3340
|
}, null, 8, ["stroke"])
|
|
3325
3341
|
])
|
|
3326
3342
|
]),
|
|
3327
|
-
pl.value ? (n(), Ae(v(
|
|
3328
|
-
key: `sparkline_${
|
|
3329
|
-
dataset:
|
|
3330
|
-
config:
|
|
3331
|
-
}, null, 8, ["dataset", "config"])) : (n(), Ae(v(
|
|
3332
|
-
key: `table_${
|
|
3333
|
-
colNames:
|
|
3334
|
-
head:
|
|
3335
|
-
body:
|
|
3336
|
-
config:
|
|
3343
|
+
pl.value ? (n(), Ae(v(qa), {
|
|
3344
|
+
key: `sparkline_${ut.value}`,
|
|
3345
|
+
dataset: Ao.value,
|
|
3346
|
+
config: Co.value
|
|
3347
|
+
}, null, 8, ["dataset", "config"])) : (n(), Ae(v(Xa), {
|
|
3348
|
+
key: `table_${Tt.value}`,
|
|
3349
|
+
colNames: Gl.value.colNames,
|
|
3350
|
+
head: Gl.value.head,
|
|
3351
|
+
body: Gl.value.body,
|
|
3352
|
+
config: Gl.value.config,
|
|
3337
3353
|
title: l.value.table.useDialog ? "" : $l.value.title,
|
|
3338
3354
|
withCloseButton: !l.value.table.useDialog,
|
|
3339
|
-
onClose:
|
|
3355
|
+
onClose: $a
|
|
3340
3356
|
}, {
|
|
3341
|
-
th:
|
|
3342
|
-
p("div", { innerHTML: e }, null, 8,
|
|
3357
|
+
th: j(({ th: e }) => [
|
|
3358
|
+
p("div", { innerHTML: e }, null, 8, Qi)
|
|
3343
3359
|
]),
|
|
3344
|
-
td:
|
|
3345
|
-
|
|
3360
|
+
td: j(({ td: e }) => [
|
|
3361
|
+
Ta(te(isNaN(Number(e)) ? e : v(Ve)({
|
|
3346
3362
|
p: l.value.chart.labels.prefix,
|
|
3347
3363
|
v: e,
|
|
3348
3364
|
s: l.value.chart.labels.suffix,
|
|
@@ -3357,20 +3373,20 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3357
3373
|
}, [
|
|
3358
3374
|
l.value.table.useDialog ? {
|
|
3359
3375
|
name: "title",
|
|
3360
|
-
fn:
|
|
3361
|
-
|
|
3376
|
+
fn: j(() => [
|
|
3377
|
+
Ta(te($l.value.title), 1)
|
|
3362
3378
|
]),
|
|
3363
3379
|
key: "0"
|
|
3364
3380
|
} : void 0,
|
|
3365
3381
|
l.value.table.useDialog ? {
|
|
3366
3382
|
name: "actions",
|
|
3367
|
-
fn:
|
|
3383
|
+
fn: j(() => [
|
|
3368
3384
|
p("button", {
|
|
3369
3385
|
tabindex: "0",
|
|
3370
3386
|
class: "vue-ui-user-options-button",
|
|
3371
|
-
onClick: s[3] || (s[3] = (e) =>
|
|
3387
|
+
onClick: s[3] || (s[3] = (e) => xt(l.value.chart.userOptions.callbacks.csv))
|
|
3372
3388
|
}, [
|
|
3373
|
-
vl(v(
|
|
3389
|
+
vl(v($t), {
|
|
3374
3390
|
name: "excel",
|
|
3375
3391
|
stroke: $l.value.props.color
|
|
3376
3392
|
}, null, 8, ["stroke"])
|
|
@@ -3379,10 +3395,10 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3379
3395
|
key: "1"
|
|
3380
3396
|
} : void 0
|
|
3381
3397
|
]), 1040)) : h("", !0),
|
|
3382
|
-
v(ie) ? (n(), Ae(
|
|
3383
|
-
], 46,
|
|
3398
|
+
v(ie) ? (n(), Ae(fs, { key: 9 })) : h("", !0)
|
|
3399
|
+
], 46, $s));
|
|
3384
3400
|
}
|
|
3385
|
-
},
|
|
3401
|
+
}, bn = /* @__PURE__ */ Ss(ji, [["__scopeId", "data-v-76bab46a"]]);
|
|
3386
3402
|
export {
|
|
3387
|
-
|
|
3403
|
+
bn as default
|
|
3388
3404
|
};
|