vue-data-ui 3.5.0 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -0
- package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
- package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
- package/dist/{PackageVersion-Cyx_s25h.js → PackageVersion-DQvyATVa.js} +1 -1
- package/dist/PenAndPaper-SZQIAgkg.js +388 -0
- package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +17 -8
- package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-DjGXw6S9.js} +22 -8
- package/dist/{vue-data-ui-DxgRqCAo.js → vue-data-ui-B_RxfmEm.js} +63 -63
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-DmNJp8SY.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
- package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CPAP3sNY.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
- package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
- package/dist/{vue-ui-bullet-Ce6uvCQJ.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
- package/dist/{vue-ui-candlestick-DewevWV_.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
- package/dist/{vue-ui-carousel-table-Dv1CDfE5.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
- package/dist/{vue-ui-chestnut-D9sdFZ4E.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
- package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
- package/dist/{vue-ui-circle-pack-Be74QB_0.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
- package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
- package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
- package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
- package/dist/{vue-ui-donut-BRGFcgxS.js → vue-ui-donut-CxZcJFTo.js} +462 -442
- package/dist/{vue-ui-donut-evolution-DJ0C-7jH.js → vue-ui-donut-evolution-BVYL-BUJ.js} +293 -273
- package/dist/{vue-ui-dumbbell-iQJ0BUhm.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
- package/dist/{vue-ui-flow-CTYFoib3.js → vue-ui-flow-DEI5LRch.js} +339 -319
- package/dist/{vue-ui-funnel-CG55Xcdy.js → vue-ui-funnel-B_A5orFg.js} +218 -198
- package/dist/{vue-ui-galaxy-BQrxjKZJ.js → vue-ui-galaxy-CUoDRr-O.js} +201 -181
- package/dist/{vue-ui-gauge-Tc-0NI0Y.js → vue-ui-gauge-46tSRZN5.js} +311 -291
- package/dist/{vue-ui-gizmo-P8h-gnLd.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
- package/dist/{vue-ui-heatmap-BZimPzsL.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
- package/dist/{vue-ui-history-plot-BVzbuqYY.js → vue-ui-history-plot-C6p_aThr.js} +229 -209
- package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
- package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
- package/dist/{vue-ui-molecule-BALqwB8c.js → vue-ui-molecule-L90GnHee.js} +156 -136
- package/dist/{vue-ui-mood-radar-QJ5nlZby.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
- package/dist/{vue-ui-nested-donuts-CmUabkkQ.js → vue-ui-nested-donuts-D0MCLs5n.js} +506 -486
- package/dist/{vue-ui-onion-DAOCf3f8.js → vue-ui-onion-B7yPJ3gL.js} +220 -200
- package/dist/{vue-ui-parallel-coordinate-plot-D8jTuFjq.js → vue-ui-parallel-coordinate-plot-DY21ivNe.js} +235 -215
- package/dist/{vue-ui-quadrant-CO52mSRY.js → vue-ui-quadrant-b0vMRaq-.js} +463 -443
- package/dist/{vue-ui-quick-chart-DEaVSldE.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
- package/dist/{vue-ui-radar-C5V4hhbW.js → vue-ui-radar-B5Vkoz9M.js} +331 -311
- package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
- package/dist/{vue-ui-relation-circle-CbMM0Jka.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
- package/dist/{vue-ui-ridgeline-CXCIRDq6.js → vue-ui-ridgeline-CAMNq-p_.js} +242 -222
- package/dist/{vue-ui-rings-BpUcyqo7.js → vue-ui-rings-ImGOqm_J.js} +189 -169
- package/dist/{vue-ui-scatter--Dxe-hfO.js → vue-ui-scatter-CterNJYe.js} +275 -255
- package/dist/{vue-ui-skeleton-BWq-VDzg.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
- package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
- package/dist/{vue-ui-spark-trend-T4J_YOa_.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
- package/dist/{vue-ui-sparkbar-DnKP55Vu.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
- package/dist/{vue-ui-sparkgauge-BDQLP-zi.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Dm7QXrA-.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
- package/dist/{vue-ui-sparkline-tXGDLHRy.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-M53Nt07M.js → vue-ui-sparkstackbar-BXNy6nuw.js} +2 -2
- package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
- package/dist/{vue-ui-strip-plot-BX9i3wMn.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
- package/dist/{vue-ui-table-7r02N9R9.js → vue-ui-table-DSsIrT4L.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DZaAh10E.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
- package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
- package/dist/{vue-ui-timer-Ds-MJoW2.js → vue-ui-timer-BpdCY_wg.js} +3 -3
- package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
- package/dist/{vue-ui-treemap-BEvl8hiw.js → vue-ui-treemap-DPE8SY0_.js} +453 -433
- package/dist/{vue-ui-vertical-bar-D8dtM8sw.js → vue-ui-vertical-bar-ZU1GCbX0.js} +323 -303
- package/dist/{vue-ui-waffle-B3q-2SCR.js → vue-ui-waffle-z7nuSuSV.js} +219 -199
- package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
- package/dist/{vue-ui-word-cloud-ChT7uLbN.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
- package/dist/{vue-ui-world-CdP4g_3_.js → vue-ui-world-goXYnTyM.js} +287 -267
- package/dist/{vue-ui-xy-B68qQ-gX.js → vue-ui-xy-NDDbNbds.js} +389 -369
- package/dist/{vue-ui-xy-canvas-DDngEA1s.js → vue-ui-xy-canvas-2a6NlQe3.js} +4 -4
- package/package.json +4 -4
- package/dist/PenAndPaper-DSvu9dwa.js +0 -373
- package/dist/vue-ui-chord-BG4dxKNA.js +0 -1133
- package/dist/vue-ui-dashboard-C4BLwHey.js +0 -412
- package/dist/vue-ui-stackbar-CkBOjryQ.js +0 -1724
- package/dist/vue-ui-thermometer-CFPt3MOv.js +0 -564
- package/dist/vue-ui-tiremarks-2eIQ6vxu.js +0 -430
- package/dist/vue-ui-wheel-BpirIgAG.js +0 -643
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
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
|
|
1
|
+
import { defineAsyncComponent as Xe, useSlots as Xo, getCurrentInstance as Go, ref as x, computed as b, onMounted as ql, toRefs as Uo, watch as Al, watchEffect as Ma, onBeforeUnmount as kt, nextTick as Aa, createElementBlock as r, openBlock as n, normalizeStyle as $, normalizeClass as ll, createBlock as Te, createCommentVNode as h, createElementVNode as p, createVNode as vl, unref as v, withCtx as G, renderSlot as B, normalizeProps as ke, guardReactiveProps as _e, createSlots as Ca, Fragment as d, renderList as w, mergeProps as tl, toDisplayString as te, Teleport as qo, resolveDynamicComponent as Zo, withDirectives as Jo, vModelCheckbox as Ko, createTextVNode as Ta } from "vue";
|
|
2
|
+
import { c as _t, f as wt, t as Qo, e as jo, m as Cl, n as al, h as za, p as Ia, q as Zl, r as Y, u as St, v as es, w as ls, x as P, y as Oa, z as Na, A as Va, B as Pa, C as ts, D as Fa, E as Ra, a as se, F as as, G as Ba, H as os, j as Ha, k as Pe, d as Fe, i as ol, s as ze, I as ss, J as Ge, K as Jl, L as $e, M as us, N as Ue, O as fe, b as is, o as Da, P as ns, Q as rs, R as dl } from "./lib-C_mNZmhD.js";
|
|
3
3
|
import { t as cs } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as vs, a as Kl } from "./useNestedProp-
|
|
4
|
+
import { u as vs, a as Kl } from "./useNestedProp-DjGXw6S9.js";
|
|
5
5
|
import { u as ds } from "./usePrinter-DTzqpYKF.js";
|
|
6
6
|
import { u as hs, B as fs } from "./BaseScanner-BgWxam9d.js";
|
|
7
7
|
import { u as Ea, a as gs, l as ms } from "./useTimeLabels-BGFjWgrv.js";
|
|
8
8
|
import { u as bs } from "./useSvgExport-DrjCWun4.js";
|
|
9
9
|
import { u as xs } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
10
10
|
import ps from "./img-BecE5qXd.js";
|
|
11
|
-
import ys from "./Title-
|
|
11
|
+
import ys from "./Title-isbiM8i8.js";
|
|
12
12
|
import { t as ks } from "./themes-AUNCOb2G.js";
|
|
13
13
|
import { _ as Ql } from "./Shape-CNXKB8O0.js";
|
|
14
14
|
import { S as _s } from "./SlicerPreview-ij72TAs6.js";
|
|
15
|
-
import ws from "./vue-ui-accordion-
|
|
15
|
+
import ws from "./vue-ui-accordion-CqhVCfc2.js";
|
|
16
16
|
import { _ as Ss } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
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,
|
|
@@ -80,7 +80,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
80
80
|
},
|
|
81
81
|
emits: ["selectTimeLabel", "selectX", "selectLegend"],
|
|
82
82
|
setup(jl, { expose: Ya, emit: Wa }) {
|
|
83
|
-
const g = jl, Xa =
|
|
83
|
+
const g = jl, Xa = Xe(() => import("./DataTable-BT7VF2ua.js")), Ga = Xe(() => import("./Tooltip-oWCO1HKy.js")), Ua = Xe(() => import("./UserOptions-CGnQt6Fd.js")), $t = Xe(() => import("./BaseIcon-BmMbm4d0.js")), qa = Xe(() => import("./vue-ui-table-sparkline-DpqY_4ay.js")), Za = Xe(() => import("./PackageVersion-DQvyATVa.js")), Ja = Xe(() => import("./PenAndPaper-SZQIAgkg.js")), Ka = Xe(() => import("./BaseDraggableDialog-ymf2sfB8.js")), et = Wa, Lt = Xo(), Qa = Go(), { vue_ui_xy: hl } = vs(), Ie = x(null), fl = x(null), Oe = x(null), sl = x(null), gl = x(null), ml = x(null), ja = x(null), lt = x(null), tt = x(null), ul = x(null), at = x(null), ot = x(null), He = x(null), st = x(null), eo = x(0), I = x(null), Mt = x(!0), ve = x(600), ee = x(1e3), Tl = x("0 0 1000 600"), lo = x({ x: 0, y: 0 }), bl = x({ line: "line", bar: "bar", plot: "plot" }), xl = x(!1), qe = x(!1), At = x(!1), Ze = x(null), J = x([]), E = x(_t()), Ct = x(0), Tt = x(0), zt = x(0), pl = x(!0), ut = x(0), V = x(null), It = x(!1), it = x(!0), zl = x(!0), ue = x(null), Re = x({}), Il = x(null), Ot = x(!1), il = x(null), _ = x(null), to = b(() => ({
|
|
84
84
|
height: ve.value,
|
|
85
85
|
width: ee.value
|
|
86
86
|
}));
|
|
@@ -95,7 +95,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
95
95
|
yAxis: 12,
|
|
96
96
|
dataLabels: 20,
|
|
97
97
|
plotLabels: 10
|
|
98
|
-
}),
|
|
98
|
+
}), Le = x({ plot: 3, line: 3 });
|
|
99
99
|
ql(() => {
|
|
100
100
|
Ot.value = !0, g.dataset.length && g.dataset.forEach((t, s) => {
|
|
101
101
|
[null, void 0].includes(t.series) && wt({
|
|
@@ -252,23 +252,23 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
252
252
|
return a || (a = /* @__PURE__ */ new Map(), s.set(e, a)), a.set(i, o), o;
|
|
253
253
|
};
|
|
254
254
|
}
|
|
255
|
-
const oo = ao((t, s) => St({ data: t, threshold: s })),
|
|
256
|
-
get: () => Math.max(...ge.value.map((t) =>
|
|
255
|
+
const oo = ao((t, s) => St({ data: t, threshold: s })), De = (t) => oo(t, l.value.downsample.threshold), Ne = b({
|
|
256
|
+
get: () => Math.max(...ge.value.map((t) => De(t.series).length)),
|
|
257
257
|
set: (t) => t
|
|
258
|
-
}), m = x({ start: 0, end:
|
|
258
|
+
}), m = x({ start: 0, end: Ne.value }), Me = x({ start: 0, end: Ne.value }), Ft = b(() => l.value.chart.zoom.preview.enable && (Me.value.start !== m.value.start || Me.value.end !== m.value.end));
|
|
259
259
|
function Rt(t, s) {
|
|
260
|
-
|
|
260
|
+
Me.value[t] = s;
|
|
261
261
|
}
|
|
262
262
|
function nl() {
|
|
263
263
|
const t = Math.max(
|
|
264
264
|
1,
|
|
265
|
-
...ge.value.map((u) =>
|
|
265
|
+
...ge.value.map((u) => De(u.series).length)
|
|
266
266
|
);
|
|
267
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 },
|
|
268
|
+
(!Number.isFinite(s) || !Number.isFinite(e) || e <= s) && (s = 0, e = t), m.value = { start: s, end: e }, Me.value.start = s, Me.value.end = e, Oe.value && (Oe.value.setStartValue(s), Oe.value.setEndValue(e));
|
|
269
269
|
}
|
|
270
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 =
|
|
271
|
+
const { left: t, top: s, width: e, height: u } = c.value, a = m.value.start, o = m.value.end - a, A = e / o, C = Me.value.start - a, O = Me.value.end - a, S = Math.max(0, Math.min(o, C)), T = Math.max(0, Math.min(o, O));
|
|
272
272
|
return {
|
|
273
273
|
x: t + S * A,
|
|
274
274
|
y: s,
|
|
@@ -296,21 +296,21 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
296
296
|
s < 0 || t >= m.value.end ? _.value = null : _.value = s ?? null;
|
|
297
297
|
}, { immediate: !0 });
|
|
298
298
|
const { isPrinting: dt, isImaging: Bt, generatePdf: Ht, generateImage: Dt } = ds({
|
|
299
|
-
elementId: `vue-ui-xy_${
|
|
299
|
+
elementId: `vue-ui-xy_${E.value}`,
|
|
300
300
|
fileName: l.value.chart.title.text || "vue-ui-xy",
|
|
301
301
|
options: l.value.chart.userOptions.print
|
|
302
302
|
}), uo = x(!1), Nl = b(() => jo(l.value.customPalette)), Vl = b(() => {
|
|
303
303
|
if (l.value.chart.grid.labels.yAxis.scaleMin !== null)
|
|
304
304
|
return l.value.chart.grid.labels.yAxis.scaleMin;
|
|
305
|
-
const t = Math.min(...
|
|
305
|
+
const t = Math.min(...Be.value.filter((s) => !J.value.includes(s.id)).map((s) => Math.min(...s.series)));
|
|
306
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 t = Math.max(...
|
|
310
|
+
const t = Math.max(...Be.value.filter((s) => !J.value.includes(s.id)).map((s) => Math.max(...s.series)));
|
|
311
311
|
return Vl.value === t ? t + 1 : t;
|
|
312
|
-
}),
|
|
313
|
-
const e =
|
|
312
|
+
}), Ae = b(() => l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(Vl.value, Pl.value < 0 ? 0 : Pl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps) : al(Vl.value, Pl.value < 0 ? 0 : Pl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps)), kl = b(() => [null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) ? Ae.value.min >= 0 ? 0 : Math.abs(Ae.value.min) : -Ae.value.min), Be = b(() => Mt.value ? ge.value.map((t, s) => {
|
|
313
|
+
const e = De(t.series), u = `uniqueId_${s}`;
|
|
314
314
|
return {
|
|
315
315
|
...t,
|
|
316
316
|
slotAbsoluteIndex: s,
|
|
@@ -319,18 +319,18 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
319
319
|
id: u,
|
|
320
320
|
scaleLabel: t.scaleLabel || u
|
|
321
321
|
};
|
|
322
|
-
}) : ge.value), me = b(() =>
|
|
322
|
+
}) : ge.value), me = b(() => Be.value.map((t, s) => ({
|
|
323
323
|
absoluteIndex: s,
|
|
324
324
|
...t,
|
|
325
325
|
series: t.series.map((e) => e + kl.value),
|
|
326
326
|
absoluteValues: t.series,
|
|
327
327
|
segregate: () => El(t),
|
|
328
|
-
isSegregated:
|
|
329
|
-
}))),
|
|
328
|
+
isSegregated: J.value.includes(t.id)
|
|
329
|
+
}))), we = b(() => Be.value.map((t, s) => ({
|
|
330
330
|
...t,
|
|
331
331
|
series: t.series.map((e) => e + kl.value),
|
|
332
332
|
absoluteValues: t.series
|
|
333
|
-
})).filter((t) => !
|
|
333
|
+
})).filter((t) => !J.value.includes(t.id)));
|
|
334
334
|
function io() {
|
|
335
335
|
let t = 0;
|
|
336
336
|
at.value && (t = Array.from(at.value.querySelectorAll("text")).reduce((a, i) => {
|
|
@@ -361,7 +361,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
361
361
|
}), ro = b(() => ge.value.some((t) => t.useProgression)), c = b(() => {
|
|
362
362
|
let t = 0;
|
|
363
363
|
const s = 36;
|
|
364
|
-
l.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ? t = (ge.value.length -
|
|
364
|
+
l.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ? t = (ge.value.length - J.value.length) * (l.value.chart.grid.labels.yAxis.labelWidth + s) : f.value.useIndividualScale && f.value.isStacked ? t = l.value.chart.grid.labels.yAxis.labelWidth + s : t = io());
|
|
365
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;
|
|
@@ -379,9 +379,9 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
379
379
|
individualOffsetX: s
|
|
380
380
|
};
|
|
381
381
|
}), co = b(() => {
|
|
382
|
-
const t = l.value.chart.grid.position === "middle" ? 1 : 0, s = L.value + t, e =
|
|
382
|
+
const t = l.value.chart.grid.position === "middle" ? 1 : 0, s = L.value + t, e = Y(c.value.top), u = Y(c.value.bottom);
|
|
383
383
|
return Array.from({ length: s }).map((a, i) => {
|
|
384
|
-
const o = c.value.width / L.value * i + c.value.left +
|
|
384
|
+
const o = c.value.width / L.value * i + c.value.left + U.value;
|
|
385
385
|
return `M${o},${e} L${o},${u}`;
|
|
386
386
|
}).join(" ");
|
|
387
387
|
}), vo = b(() => {
|
|
@@ -404,11 +404,11 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
404
404
|
return Il.value.font = `normal ${t}px sans-serif`, Il.value;
|
|
405
405
|
}
|
|
406
406
|
function Wt() {
|
|
407
|
-
const t =
|
|
407
|
+
const t = Ie.value.querySelectorAll(".vue-ui-xy-tag");
|
|
408
408
|
t.length && Array.from(t).forEach((s) => s.style.opacity = "0");
|
|
409
409
|
}
|
|
410
410
|
function Fl(t, s, e, u, a) {
|
|
411
|
-
e && (
|
|
411
|
+
e && (Re.value[`${t}_${s}_${u}_${a}`] = e);
|
|
412
412
|
}
|
|
413
413
|
const Xt = x(!1);
|
|
414
414
|
async function Gt(t = !1) {
|
|
@@ -433,7 +433,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
433
433
|
maxDatapoints: t,
|
|
434
434
|
formatter: l.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
435
435
|
start: 0,
|
|
436
|
-
end:
|
|
436
|
+
end: Ne.value
|
|
437
437
|
});
|
|
438
438
|
}), fo = b(() => {
|
|
439
439
|
const t = l.value.chart.grid.labels.xAxisLabels.modulo;
|
|
@@ -452,7 +452,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
452
452
|
);
|
|
453
453
|
});
|
|
454
454
|
function Ut(t, s) {
|
|
455
|
-
const e =
|
|
455
|
+
const e = we.value.map((u) => ({
|
|
456
456
|
shape: u.shape || null,
|
|
457
457
|
name: u.name,
|
|
458
458
|
color: u.color,
|
|
@@ -487,7 +487,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
487
487
|
return u;
|
|
488
488
|
}
|
|
489
489
|
function Zt(t) {
|
|
490
|
-
const s = Math.max(...ge.value.map((e) =>
|
|
490
|
+
const s = Math.max(...ge.value.map((e) => De(e.series).length));
|
|
491
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
493
|
const _l = x(!1), Jt = x(!1);
|
|
@@ -495,8 +495,8 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
495
495
|
if (!_l.value) {
|
|
496
496
|
_l.value = !0;
|
|
497
497
|
try {
|
|
498
|
-
const { startIndex: t, endIndex: s } = l.value.chart.zoom, e = Math.max(...ge.value.map((i) =>
|
|
499
|
-
Bl.value = !0, m.value.start = u, m.value.end = a,
|
|
498
|
+
const { startIndex: t, endIndex: s } = l.value.chart.zoom, e = Math.max(...ge.value.map((i) => De(i.series).length)), u = t ?? 0, a = s != null ? Math.min(Zt(s + 1), e) : e;
|
|
499
|
+
Bl.value = !0, m.value.start = u, m.value.end = a, Me.value.start = u, Me.value.end = a, nl(), Jt.value = !0;
|
|
500
500
|
} finally {
|
|
501
501
|
queueMicrotask(() => {
|
|
502
502
|
Bl.value = !1;
|
|
@@ -506,12 +506,12 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
506
506
|
}
|
|
507
507
|
const Bl = x(!1);
|
|
508
508
|
function bo(t) {
|
|
509
|
-
_l.value || Bl.value || t !== m.value.start && (m.value.start = t,
|
|
509
|
+
_l.value || Bl.value || t !== m.value.start && (m.value.start = t, Me.value.start = t, nl());
|
|
510
510
|
}
|
|
511
511
|
function xo(t) {
|
|
512
512
|
if (_l.value || Bl.value) return;
|
|
513
513
|
const s = Zt(t);
|
|
514
|
-
s !== m.value.end && (m.value.end = s,
|
|
514
|
+
s !== m.value.end && (m.value.end = s, Me.value.end = s, nl());
|
|
515
515
|
}
|
|
516
516
|
async function po() {
|
|
517
517
|
await Rl();
|
|
@@ -519,7 +519,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
519
519
|
function be(t) {
|
|
520
520
|
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(t);
|
|
521
521
|
}
|
|
522
|
-
const Kt = b(() =>
|
|
522
|
+
const Kt = b(() => Ae.value.max + kl.value);
|
|
523
523
|
function Je(t) {
|
|
524
524
|
return t / (be(Kt.value) ? Kt.value : 1);
|
|
525
525
|
}
|
|
@@ -531,19 +531,19 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
531
531
|
function jt(t) {
|
|
532
532
|
return t.value >= 0 ? P(t.zeroPosition - t.y <= 0 ? 1e-5 : t.zeroPosition - t.y) : P(t.y - t.zeroPosition <= 0 ? 1e-5 : t.zeroPosition - t.y);
|
|
533
533
|
}
|
|
534
|
-
const
|
|
535
|
-
const t = Math.max(1, L.value), s = Math.max(1, c.value.width), e = Math.max(1,
|
|
534
|
+
const Z = b(() => {
|
|
535
|
+
const t = Math.max(1, L.value), s = Math.max(1, c.value.width), e = Math.max(1, Be.value.filter((u) => u.type === "bar" && !J.value.includes(u.id)).length);
|
|
536
536
|
return {
|
|
537
537
|
bar: nt(s, t * e, 1),
|
|
538
538
|
plot: nt(s, t, 1),
|
|
539
539
|
line: nt(s, t, 1)
|
|
540
540
|
};
|
|
541
541
|
});
|
|
542
|
-
function
|
|
543
|
-
return f.value.useIndividualScale && f.value.isStacked ?
|
|
542
|
+
function Ee() {
|
|
543
|
+
return f.value.useIndividualScale && f.value.isStacked ? Z.value.line - c.value.width / L.value * 0.1 : Z.value.bar;
|
|
544
544
|
}
|
|
545
545
|
function Hl(t) {
|
|
546
|
-
return f.value.useIndividualScale && f.value.isStacked ? t.x + c.value.width / L.value * 0.05 : t.x +
|
|
546
|
+
return f.value.useIndividualScale && f.value.isStacked ? t.x + c.value.width / L.value * 0.05 : t.x + Z.value.bar / 2;
|
|
547
547
|
}
|
|
548
548
|
function ea(t) {
|
|
549
549
|
return t.value >= 0 ? t.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(ne.value) ? c.bottom.value : ne.value;
|
|
@@ -558,9 +558,9 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
558
558
|
if (s.createSVGPoint && s.getScreenCTM) {
|
|
559
559
|
const T = s.createSVGPoint();
|
|
560
560
|
T.x = t.clientX, T.y = t.clientY;
|
|
561
|
-
const
|
|
562
|
-
if (
|
|
563
|
-
const k = T.matrixTransform(
|
|
561
|
+
const W = s.getScreenCTM();
|
|
562
|
+
if (W) {
|
|
563
|
+
const k = T.matrixTransform(W.inverse());
|
|
564
564
|
return { x: k.x, y: k.y, ok: !0 };
|
|
565
565
|
}
|
|
566
566
|
}
|
|
@@ -603,7 +603,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
603
603
|
wl.value != null && oa(wl.value);
|
|
604
604
|
}
|
|
605
605
|
function oa(t) {
|
|
606
|
-
const s =
|
|
606
|
+
const s = we.value.map((e) => ({
|
|
607
607
|
name: e.name,
|
|
608
608
|
value: [null, void 0, NaN].includes(e.absoluteValues[t]) ? null : e.absoluteValues[t],
|
|
609
609
|
color: e.color,
|
|
@@ -627,8 +627,8 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
627
627
|
}));
|
|
628
628
|
}
|
|
629
629
|
async function _o({ scale: t = 2 } = {}) {
|
|
630
|
-
if (!
|
|
631
|
-
const { width: s, height: e } =
|
|
630
|
+
if (!Ie.value) return;
|
|
631
|
+
const { width: s, height: e } = Ie.value.getBoundingClientRect(), u = s / e, { imageUri: a, base64: i } = await ps({ domElement: Ie.value, base64: !0, img: !0, scale: t });
|
|
632
632
|
return {
|
|
633
633
|
imageUri: a,
|
|
634
634
|
base64: i,
|
|
@@ -639,13 +639,13 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
639
639
|
};
|
|
640
640
|
}
|
|
641
641
|
function El(t) {
|
|
642
|
-
if (
|
|
643
|
-
|
|
642
|
+
if (J.value.includes(t.id))
|
|
643
|
+
J.value = J.value.filter((s) => s !== t.id);
|
|
644
644
|
else {
|
|
645
|
-
if (
|
|
646
|
-
|
|
645
|
+
if (J.value.length + 1 === Be.value.length) return;
|
|
646
|
+
J.value.push(t.id);
|
|
647
647
|
}
|
|
648
|
-
et("selectLegend",
|
|
648
|
+
et("selectLegend", we.value.map((s) => ({
|
|
649
649
|
name: s.name,
|
|
650
650
|
values: s.absoluteValues,
|
|
651
651
|
color: s.color,
|
|
@@ -660,11 +660,11 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
660
660
|
}
|
|
661
661
|
function wo(t) {
|
|
662
662
|
const s = sa(t);
|
|
663
|
-
s !== null &&
|
|
663
|
+
s !== null && J.value.includes(s.id) && El({ id: s.id });
|
|
664
664
|
}
|
|
665
665
|
function So(t) {
|
|
666
666
|
const s = sa(t);
|
|
667
|
-
s !== null && (
|
|
667
|
+
s !== null && (J.value.includes(s.id) || El({ id: s.id }));
|
|
668
668
|
}
|
|
669
669
|
const $o = b(() => {
|
|
670
670
|
const t = l.value.chart.title.text || "Chart visualization", s = l.value.chart.title.subtitle.text || "";
|
|
@@ -674,7 +674,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
674
674
|
})), Lo = b(() => l.value.chart.userOptions.show && (!l.value.chart.title.show || !l.value.chart.title.text)), Mo = b(() => {
|
|
675
675
|
if (Array.isArray(l.value.chart.highlightArea))
|
|
676
676
|
return l.value.chart.highlightArea.map((s) => {
|
|
677
|
-
const e = Math.min(s.to,
|
|
677
|
+
const e = Math.min(s.to, Ne.value - 1);
|
|
678
678
|
return {
|
|
679
679
|
...s,
|
|
680
680
|
span: s.from === e ? 1 : e < s.from ? 0 : e - s.from + 1
|
|
@@ -682,15 +682,15 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
682
682
|
});
|
|
683
683
|
const t = {
|
|
684
684
|
...l.value.chart.highlightArea,
|
|
685
|
-
to: Math.min(l.value.chart.highlightArea.to,
|
|
685
|
+
to: Math.min(l.value.chart.highlightArea.to, Ne.value - 1)
|
|
686
686
|
};
|
|
687
687
|
return [{ ...t, span: t.from === t.to ? 1 : t.to < t.from ? 0 : t.to - t.from + 1 }];
|
|
688
688
|
}), ia = b(() => Mt.value ? ge.value.map((t, s) => ({
|
|
689
689
|
...t,
|
|
690
|
-
series:
|
|
690
|
+
series: De(t.series),
|
|
691
691
|
id: `uniqueId_${s}`,
|
|
692
692
|
color: za(t.color ? t.color : Nl.value[s] ? Nl.value[s] : Ia[s])
|
|
693
|
-
})) : ge.value), Ao = b(() =>
|
|
693
|
+
})) : ge.value), Ao = b(() => we.value.map((t) => {
|
|
694
694
|
const s = t.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
|
|
695
695
|
return {
|
|
696
696
|
id: t.id,
|
|
@@ -724,7 +724,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
724
724
|
sparkline: {
|
|
725
725
|
animation: { show: !1 }
|
|
726
726
|
}
|
|
727
|
-
})),
|
|
727
|
+
})), U = b(() => l.value.chart.grid.position === "middle" ? 0 : c.value.width / L.value / 2), Qe = b(() => ls(me.value.filter((t) => !J.value.includes(t.id)))), M = b(() => {
|
|
728
728
|
const t = Object.groupBy(Qe.value, (e) => e.scaleLabel), s = {};
|
|
729
729
|
for (const [e, u] of Object.entries(t)) {
|
|
730
730
|
const a = u.flatMap((i) => i.absoluteValues);
|
|
@@ -736,19 +736,19 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
736
736
|
}
|
|
737
737
|
return s;
|
|
738
738
|
}), To = b(() => {
|
|
739
|
-
const t =
|
|
739
|
+
const t = Be.value.filter((s) => s.type === "bar").filter((s) => !J.value.includes(s.id)).length;
|
|
740
740
|
return c.value.width / L.value / t - Yl.value * t;
|
|
741
|
-
}), Yl = b(() =>
|
|
741
|
+
}), Yl = b(() => Z.value.line * l.value.bar.periodGap), Wl = b(() => Math.max(1e-5, Ee() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Yl.value))), Xl = b(() => Wl.value * Math.min(Math.abs(l.value.bar.innerGap), 0.95)), zo = b(() => {
|
|
742
742
|
if (!l.value.chart.zoom.minimap.show) return [];
|
|
743
|
-
const t = ia.value.filter((a) => !
|
|
743
|
+
const t = ia.value.filter((a) => !J.value.includes(a.id)), s = Math.max(...t.map((a) => a.series.length)), e = [];
|
|
744
744
|
for (let a = 0; a < s; a += 1)
|
|
745
745
|
e.push(t.map((i) => i.series[a] || 0).reduce((i, o) => (i || 0) + (o || 0), 0));
|
|
746
746
|
const u = Math.min(...e);
|
|
747
747
|
return e.map((a) => a + (u < 0 ? Math.abs(u) : 0));
|
|
748
748
|
}), Io = b(() => l.value.chart.zoom.minimap.show ? ia.value.map((s) => ({
|
|
749
749
|
...s,
|
|
750
|
-
isVisible: !
|
|
751
|
-
})) : []), je = b(() =>
|
|
750
|
+
isVisible: !J.value.includes(s.id)
|
|
751
|
+
})) : []), je = b(() => we.value.map((t) => ({
|
|
752
752
|
slotAbsoluteIndex: t.slotAbsoluteIndex,
|
|
753
753
|
shape: t.shape || null,
|
|
754
754
|
name: t.name,
|
|
@@ -758,7 +758,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
758
758
|
comments: t.comments || [],
|
|
759
759
|
prefix: t.prefix || l.value.chart.labels.prefix,
|
|
760
760
|
suffix: t.suffix || l.value.chart.labels.suffix
|
|
761
|
-
}))), na = b(() =>
|
|
761
|
+
}))), na = b(() => Ae.value.ticks.map((t) => ({
|
|
762
762
|
y: t >= 0 ? ne.value - c.value.height * Je(t) : ne.value + c.value.height * Je(Math.abs(t)),
|
|
763
763
|
value: t,
|
|
764
764
|
prefix: l.value.chart.labels.prefix,
|
|
@@ -770,19 +770,19 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
770
770
|
(S) => S.show && (S.yAxis.yTop != null || S.yAxis.yBottom != null)
|
|
771
771
|
);
|
|
772
772
|
if (!s.length) return [];
|
|
773
|
-
const { left: e, right: u } = c.value, a = ne.value, i = c.value.height, o =
|
|
773
|
+
const { left: e, right: u } = c.value, a = ne.value, i = c.value.height, o = Ae.value.min, C = Ae.value.max - o, O = (S) => {
|
|
774
774
|
const T = (S - 0) / C;
|
|
775
775
|
return a - T * i;
|
|
776
776
|
};
|
|
777
777
|
return s.map((S) => {
|
|
778
|
-
const { yAxis: { yTop: T, yBottom:
|
|
778
|
+
const { yAxis: { yTop: T, yBottom: W, label: k } } = S, F = T != null && W != null && T !== W, z = T == null ? null : O(T), le = W == null ? null : O(W), re = ho(k.fontSize);
|
|
779
779
|
re.font = `${k.fontSize}px sans-serif`;
|
|
780
|
-
const
|
|
781
|
-
let
|
|
782
|
-
k.textAnchor === "middle" ?
|
|
783
|
-
const
|
|
780
|
+
const q = re.measureText(k.text).width, Se = k.fontSize, Ve = (k.position === "start" ? e + k.padding.left : u - k.padding.right) + k.offsetX, pe = (z != null && le != null ? Math.min(z, le) : z ?? le) - k.fontSize / 3 + k.offsetY - k.padding.top;
|
|
781
|
+
let H;
|
|
782
|
+
k.textAnchor === "middle" ? H = Ve - q / 2 - k.padding.left : k.textAnchor === "end" ? H = Ve - q - k.padding.right : H = Ve - k.padding.left;
|
|
783
|
+
const D = pe - Se * 0.75 - k.padding.top;
|
|
784
784
|
return {
|
|
785
|
-
show: ![z, le,
|
|
785
|
+
show: ![z, le, D].includes(NaN),
|
|
786
786
|
id: `annotation_y_${_t()}`,
|
|
787
787
|
hasArea: F,
|
|
788
788
|
areaHeight: F ? Math.abs(z - le) : 0,
|
|
@@ -791,12 +791,12 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
791
791
|
config: S.yAxis,
|
|
792
792
|
x1: e,
|
|
793
793
|
x2: u,
|
|
794
|
-
_text: { x:
|
|
794
|
+
_text: { x: Ve, y: pe },
|
|
795
795
|
_box: {
|
|
796
|
-
x:
|
|
797
|
-
y:
|
|
798
|
-
width:
|
|
799
|
-
height:
|
|
796
|
+
x: H,
|
|
797
|
+
y: D,
|
|
798
|
+
width: q + k.padding.left + k.padding.right,
|
|
799
|
+
height: Se + k.padding.top + k.padding.bottom,
|
|
800
800
|
fill: k.backgroundColor,
|
|
801
801
|
stroke: k.border.stroke,
|
|
802
802
|
rx: k.border.rx,
|
|
@@ -811,7 +811,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
811
811
|
let a = !!e && !!u && e.value == null && u.value == null || !e && !!u && u.value == null || !!e && !u && e.value == null;
|
|
812
812
|
return be(t[s].value) && a && l.value.line.cutNullValues;
|
|
813
813
|
}
|
|
814
|
-
const
|
|
814
|
+
const Ce = b(() => {
|
|
815
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
816
|
return t.filter((o) => o.type === "bar").map((o, A) => {
|
|
817
817
|
bt(o);
|
|
@@ -823,56 +823,56 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
823
823
|
}, T = {
|
|
824
824
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
825
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)))
|
|
826
|
-
},
|
|
827
|
-
const
|
|
826
|
+
}, W = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, F = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(T.min, T.max === T.min ? T.max * k : T.max, W) : al(T.min, T.max === T.min ? T.max * k : T.max, W), z = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, W) : al(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, W), le = F.min >= 0 ? 0 : Math.abs(F.min), re = 0, q = F.max + le, Se = z.max + Math.abs(re), Ve = o.stackIndex, cl = s - 1 - Ve, pe = u ? 1 - o.cumulatedStackRatio : 0, H = u ? i * pe + e * cl : 0, D = u ? i * o.stackRatio : c.value.height, K = c.value.bottom - H - D * le / q, ye = c.value.bottom - H - D * re / Se, ce = me.value.filter((R) => R.type === "bar").filter((R) => !J.value.includes(R.id)).length, Ll = o.series.map((R, j) => {
|
|
827
|
+
const We = f.value.useIndividualScale ? (o.absoluteValues[j] + le) / q : Je(R), el = f.value.useIndividualScale && f.value.isStacked ? c.value.left + c.value.width / L.value * j : c.value.left + Z.value.bar * A + Z.value.bar * j * ce - To.value / 2 - A * Yl.value;
|
|
828
828
|
return {
|
|
829
|
-
yOffset: P(
|
|
830
|
-
individualHeight: P(
|
|
829
|
+
yOffset: P(H),
|
|
830
|
+
individualHeight: P(D),
|
|
831
831
|
x: P(el),
|
|
832
|
-
y: c.value.bottom -
|
|
833
|
-
value: o.absoluteValues[
|
|
834
|
-
zeroPosition: P(
|
|
835
|
-
individualMax: P(
|
|
836
|
-
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[
|
|
832
|
+
y: c.value.bottom - H - D * We,
|
|
833
|
+
value: o.absoluteValues[j],
|
|
834
|
+
zeroPosition: P(K),
|
|
835
|
+
individualMax: P(q),
|
|
836
|
+
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[j] || ""
|
|
837
837
|
};
|
|
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))),
|
|
839
|
-
const
|
|
838
|
+
}), he = o.absoluteValues.map((R) => z.min >= 0 ? (R - Math.abs(z.min)) / (z.max - Math.abs(z.min)) : (R + Math.abs(z.min)) / (z.max + Math.abs(z.min))), Ye = o.series.map((R, j) => {
|
|
839
|
+
const We = f.value.useIndividualScale && f.value.isStacked ? c.value.left + c.value.width / L.value * j : c.value.left - Z.value.bar / 2 + Z.value.bar * A + Z.value.bar * j * me.value.filter((el) => el.type === "bar").filter((el) => !J.value.includes(el.id)).length;
|
|
840
840
|
return {
|
|
841
|
-
yOffset: P(
|
|
842
|
-
individualHeight: P(
|
|
843
|
-
x: P(
|
|
844
|
-
y: P(c.value.bottom - P(
|
|
845
|
-
value: o.absoluteValues[
|
|
846
|
-
zeroPosition: P(
|
|
847
|
-
individualMax: P(
|
|
848
|
-
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[
|
|
841
|
+
yOffset: P(H),
|
|
842
|
+
individualHeight: P(D),
|
|
843
|
+
x: P(We),
|
|
844
|
+
y: P(c.value.bottom - P(H) - (P(D) * he[j] || 0)),
|
|
845
|
+
value: o.absoluteValues[j],
|
|
846
|
+
zeroPosition: P(K),
|
|
847
|
+
individualMax: P(q),
|
|
848
|
+
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[j] || ""
|
|
849
849
|
};
|
|
850
850
|
}), X = F.ticks.map((R) => ({
|
|
851
|
-
y: R >= 0 ?
|
|
851
|
+
y: R >= 0 ? K - D * (R / q) : K + D * Math.abs(R) / q,
|
|
852
852
|
value: R,
|
|
853
853
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
854
854
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
855
855
|
datapoint: o
|
|
856
|
-
})),
|
|
857
|
-
const
|
|
856
|
+
})), Q = z.ticks.map((R) => {
|
|
857
|
+
const j = (R - z.min) / (z.max - z.min);
|
|
858
858
|
return {
|
|
859
|
-
y: R >= 0 ? ye -
|
|
859
|
+
y: R >= 0 ? ye - D * j : ye + D * j,
|
|
860
860
|
value: R,
|
|
861
861
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
862
862
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
863
863
|
datapoint: o
|
|
864
864
|
};
|
|
865
865
|
});
|
|
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 ?
|
|
866
|
+
return M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Q : X, M.value[o.scaleLabel].zeroPosition = o.autoScaling ? ye : K, M.value[o.scaleLabel].individualMax = o.autoScaling ? Se : q, M.value[o.scaleLabel].scaleLabel = o.scaleLabel, M.value[o.scaleLabel].id = o.id, M.value[o.scaleLabel].yOffset = H, M.value[o.scaleLabel].individualHeight = D, M.value[o.scaleLabel].autoScaleYLabels = Q, M.value[o.scaleLabel].unique = Qe.value.filter((R) => R.scaleLabel === o.scaleLabel).length === 1, {
|
|
867
867
|
...o,
|
|
868
|
-
yOffset:
|
|
869
|
-
autoScaleYLabels:
|
|
870
|
-
individualHeight:
|
|
871
|
-
scaleYLabels: o.autoScaling ?
|
|
868
|
+
yOffset: H,
|
|
869
|
+
autoScaleYLabels: Q,
|
|
870
|
+
individualHeight: D,
|
|
871
|
+
scaleYLabels: o.autoScaling ? Q : X,
|
|
872
872
|
individualScale: o.autoScaling ? z : F,
|
|
873
|
-
individualMax: o.autoScaling ?
|
|
874
|
-
zeroPosition: o.autoScaling ? ye :
|
|
875
|
-
plots: o.autoScaling ?
|
|
873
|
+
individualMax: o.autoScaling ? Se : q,
|
|
874
|
+
zeroPosition: o.autoScaling ? ye : K,
|
|
875
|
+
plots: o.autoScaling ? Ye : Ll,
|
|
876
876
|
groupId: M.value[o.scaleLabel].groupId
|
|
877
877
|
};
|
|
878
878
|
});
|
|
@@ -888,52 +888,52 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
888
888
|
}, T = {
|
|
889
889
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
890
890
|
min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
|
|
891
|
-
},
|
|
892
|
-
const Wo = f.value.useIndividualScale ? (o.absoluteValues[oe] + Math.abs(le)) /
|
|
891
|
+
}, W = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, F = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(T.min, T.max === T.min ? T.max * k : T.max, W) : al(T.min, T.max === T.min ? T.max * k : T.max, W), z = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, W) : al(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, W), le = F.min >= 0 ? 0 : Math.abs(F.min), re = 0, q = F.max + Math.abs(le), Se = z.max + Math.abs(re), Ve = o.stackIndex, cl = s - 1 - Ve, pe = u ? 1 - o.cumulatedStackRatio : 0, H = u ? i * pe + e * cl : 0, D = u ? i * o.stackRatio : c.value.height, K = c.value.bottom - H - D * le / q, ye = c.value.bottom - H - D * re / Se, ce = o.series.map((N, oe) => {
|
|
892
|
+
const Wo = f.value.useIndividualScale ? (o.absoluteValues[oe] + Math.abs(le)) / q : Je(N);
|
|
893
893
|
return {
|
|
894
|
-
x: P(c.value.left +
|
|
895
|
-
y: P(c.value.bottom -
|
|
894
|
+
x: P(c.value.left + Z.value.line / 2 + Z.value.line * oe),
|
|
895
|
+
y: P(c.value.bottom - H - D * Wo),
|
|
896
896
|
value: o.absoluteValues[oe],
|
|
897
897
|
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[oe] || ""
|
|
898
898
|
};
|
|
899
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]) ? {
|
|
900
|
-
x: P(c.value.left +
|
|
901
|
-
y:
|
|
900
|
+
x: P(c.value.left + Z.value.line / 2 + Z.value.line * oe),
|
|
901
|
+
y: K,
|
|
902
902
|
value: o.absoluteValues[oe],
|
|
903
903
|
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[oe] || ""
|
|
904
904
|
} : {
|
|
905
|
-
x: P(c.value.left +
|
|
906
|
-
y: P(c.value.bottom -
|
|
905
|
+
x: P(c.value.left + Z.value.line / 2 + Z.value.line * oe),
|
|
906
|
+
y: P(c.value.bottom - H - (D * Ll[oe] || 0)),
|
|
907
907
|
value: o.absoluteValues[oe],
|
|
908
908
|
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[oe] || ""
|
|
909
|
-
}),
|
|
910
|
-
y: N >= 0 ?
|
|
909
|
+
}), Ye = l.value.line.cutNullValues ? Oa(ce) : Na(ce.filter((N) => N.value !== null)), X = l.value.line.cutNullValues ? Oa(he) : Na(he.filter((N) => N.value !== null)), Q = l.value.line.cutNullValues ? Va(ce) : Pa(ce.filter((N) => N.value !== null)), R = l.value.line.cutNullValues ? Va(he) : Pa(he.filter((N) => N.value !== null)), j = F.ticks.map((N) => ({
|
|
910
|
+
y: N >= 0 ? K - D * (N / q) : K + D * Math.abs(N) / q,
|
|
911
911
|
value: N,
|
|
912
912
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
913
913
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
914
914
|
datapoint: o
|
|
915
|
-
})),
|
|
915
|
+
})), We = z.ticks.map((N) => {
|
|
916
916
|
const oe = (N - z.min) / (z.max - z.min);
|
|
917
917
|
return {
|
|
918
|
-
y: N >= 0 ? ye -
|
|
918
|
+
y: N >= 0 ? ye - D * oe : ye + D * oe,
|
|
919
919
|
value: N,
|
|
920
920
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
921
921
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
922
922
|
datapoint: o
|
|
923
923
|
};
|
|
924
924
|
});
|
|
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 ?
|
|
926
|
-
const el = f.value.useIndividualScale ? o.autoScaling ? ye :
|
|
925
|
+
M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ? We : j, M.value[o.scaleLabel].zeroPosition = o.autoScaling ? ye : K, M.value[o.scaleLabel].individualMax = o.autoScaling ? Se : q, M.value[o.scaleLabel].scaleLabel = o.scaleLabel, M.value[o.scaleLabel].id = o.id, M.value[o.scaleLabel].yOffset = H, M.value[o.scaleLabel].individualHeight = D, M.value[o.scaleLabel].autoScaleYLabels = We, M.value[o.scaleLabel].unique = Qe.value.filter((N) => N.scaleLabel === o.scaleLabel).length === 1;
|
|
926
|
+
const el = f.value.useIndividualScale ? o.autoScaling ? ye : K : ne.value, Ml = Math.max(Math.max(o.autoScaling ? ye : j.at(-1) ? j.at(-1).y : 0, c.value.top), el);
|
|
927
927
|
return {
|
|
928
928
|
...o,
|
|
929
|
-
yOffset:
|
|
930
|
-
autoScaleYLabels:
|
|
931
|
-
individualHeight:
|
|
932
|
-
scaleYLabels: o.autoScaling ?
|
|
929
|
+
yOffset: H,
|
|
930
|
+
autoScaleYLabels: We,
|
|
931
|
+
individualHeight: D,
|
|
932
|
+
scaleYLabels: o.autoScaling ? We : j,
|
|
933
933
|
individualScale: o.autoScaling ? z : F,
|
|
934
|
-
individualMax: o.autoScaling ?
|
|
935
|
-
zeroPosition: o.autoScaling ? ye :
|
|
936
|
-
curve: o.autoScaling ? X :
|
|
934
|
+
individualMax: o.autoScaling ? Se : q,
|
|
935
|
+
zeroPosition: o.autoScaling ? ye : K,
|
|
936
|
+
curve: o.autoScaling ? X : Ye,
|
|
937
937
|
plots: o.autoScaling ? he : ce,
|
|
938
938
|
area: o.useArea ? f.value.useIndividualScale ? l.value.line.cutNullValues ? Fa(
|
|
939
939
|
o.autoScaling ? he : ce,
|
|
@@ -947,7 +947,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
947
947
|
Ml,
|
|
948
948
|
l.value.line.cutNullValues
|
|
949
949
|
) : [],
|
|
950
|
-
straight: o.autoScaling ? R :
|
|
950
|
+
straight: o.autoScaling ? R : Q,
|
|
951
951
|
groupId: M.value[o.scaleLabel].groupId
|
|
952
952
|
};
|
|
953
953
|
});
|
|
@@ -963,44 +963,44 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
963
963
|
}, S = {
|
|
964
964
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
965
965
|
min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
|
|
966
|
-
}, T = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps,
|
|
967
|
-
const R = f.value.useIndividualScale ? (o.absoluteValues[
|
|
966
|
+
}, T = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, W = 1.0000001, k = al(S.min, S.max === S.min ? S.max * W : S.max, T), F = al(O.valueMin, O.valueMax === O.valueMin ? O.valueMax * W : O.valueMax, T), z = k.min >= 0 ? 0 : Math.abs(k.min), le = 0, re = k.max + z, q = F.max + Math.abs(le), Se = o.stackIndex, Ve = s - 1 - Se, cl = u ? 1 - o.cumulatedStackRatio : 0, pe = u ? i * cl + e * Ve : 0, H = u ? i * o.stackRatio : c.value.height, D = c.value.bottom - pe - H * z / re, K = c.value.bottom - pe - H * le / q, ye = o.series.map((X, Q) => {
|
|
967
|
+
const R = f.value.useIndividualScale ? (o.absoluteValues[Q] + Math.abs(z)) / re : Je(X);
|
|
968
968
|
return {
|
|
969
|
-
x: P(c.value.left +
|
|
970
|
-
y: P(c.value.bottom - pe -
|
|
971
|
-
value: o.absoluteValues[
|
|
972
|
-
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[
|
|
969
|
+
x: P(c.value.left + Z.value.plot / 2 + Z.value.plot * Q),
|
|
970
|
+
y: P(c.value.bottom - pe - H * R),
|
|
971
|
+
value: o.absoluteValues[Q],
|
|
972
|
+
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[Q] || ""
|
|
973
973
|
};
|
|
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,
|
|
975
|
-
x: P(c.value.left +
|
|
976
|
-
y: P(c.value.bottom - pe - (
|
|
977
|
-
value: o.absoluteValues[
|
|
978
|
-
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[
|
|
974
|
+
}), ce = o.absoluteValues.map((X) => F.min >= 0 ? (X - Math.abs(F.min)) / (F.max - Math.abs(F.min)) : (X + Math.abs(F.min)) / (F.max + Math.abs(F.min))), Ll = o.series.map((X, Q) => ({
|
|
975
|
+
x: P(c.value.left + Z.value.plot / 2 + Z.value.plot * Q),
|
|
976
|
+
y: P(c.value.bottom - pe - (H * ce[Q] || 0)),
|
|
977
|
+
value: o.absoluteValues[Q],
|
|
978
|
+
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[Q] || ""
|
|
979
979
|
})), he = k.ticks.map((X) => ({
|
|
980
|
-
y: X >= 0 ?
|
|
980
|
+
y: X >= 0 ? D - H * (X / re) : D + H * Math.abs(X) / re,
|
|
981
981
|
value: X,
|
|
982
982
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
983
983
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
984
984
|
datapoint: o
|
|
985
|
-
})),
|
|
986
|
-
const
|
|
985
|
+
})), Ye = F.ticks.map((X) => {
|
|
986
|
+
const Q = (X - F.min) / (F.max - F.min);
|
|
987
987
|
return {
|
|
988
|
-
y: X >= 0 ?
|
|
988
|
+
y: X >= 0 ? K - H * Q : K + H * Q,
|
|
989
989
|
value: X,
|
|
990
990
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
991
991
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
992
992
|
datapoint: o
|
|
993
993
|
};
|
|
994
994
|
});
|
|
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 ?
|
|
995
|
+
return M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Ye : he, M.value[o.scaleLabel].zeroPosition = o.autoScaling ? K : D, M.value[o.scaleLabel].individualMax = o.autoScaling ? q : re, M.value[o.scaleLabel].scaleLabel = o.scaleLabel, M.value[o.scaleLabel].id = o.id, M.value[o.scaleLabel].yOffset = pe, M.value[o.scaleLabel].individualHeight = H, M.value[o.scaleLabel].autoScaleYLabels = Ye, M.value[o.scaleLabel].unique = Qe.value.filter((X) => X.scaleLabel === o.scaleLabel).length === 1, {
|
|
996
996
|
...o,
|
|
997
997
|
yOffset: pe,
|
|
998
|
-
autoScaleYLabels:
|
|
999
|
-
individualHeight:
|
|
1000
|
-
scaleYLabels: o.autoScaling ?
|
|
998
|
+
autoScaleYLabels: Ye,
|
|
999
|
+
individualHeight: H,
|
|
1000
|
+
scaleYLabels: o.autoScaling ? Ye : he,
|
|
1001
1001
|
individualScale: o.autoScaling ? F : k,
|
|
1002
|
-
individualMax: o.autoScaling ?
|
|
1003
|
-
zeroPosition: o.autoScaling ?
|
|
1002
|
+
individualMax: o.autoScaling ? q : re,
|
|
1003
|
+
zeroPosition: o.autoScaling ? K : D,
|
|
1004
1004
|
plots: o.autoScaling ? Ll : ye,
|
|
1005
1005
|
groupId: M.value[o.scaleLabel].groupId
|
|
1006
1006
|
};
|
|
@@ -1018,7 +1018,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1018
1018
|
yOffset: i.yOffset || 0,
|
|
1019
1019
|
individualHeight: i.individualHeight || c.value.height,
|
|
1020
1020
|
autoScaleYLabels: i.autoScaleYLabels
|
|
1021
|
-
})), s =
|
|
1021
|
+
})), s = Ce.value.map((i) => ({
|
|
1022
1022
|
name: i.name,
|
|
1023
1023
|
color: i.color,
|
|
1024
1024
|
scale: i.individualScale,
|
|
@@ -1095,7 +1095,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1095
1095
|
datapoint: je.value,
|
|
1096
1096
|
seriesIndex: _.value,
|
|
1097
1097
|
series: me.value,
|
|
1098
|
-
bars:
|
|
1098
|
+
bars: Ce.value,
|
|
1099
1099
|
lines: ae.value,
|
|
1100
1100
|
plots: xe.value,
|
|
1101
1101
|
config: l.value
|
|
@@ -1120,7 +1120,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1120
1120
|
seriesIndex: _.value,
|
|
1121
1121
|
datapoint: je.value,
|
|
1122
1122
|
series: me.value,
|
|
1123
|
-
bars:
|
|
1123
|
+
bars: Ce.value,
|
|
1124
1124
|
lines: ae.value,
|
|
1125
1125
|
plots: xe.value,
|
|
1126
1126
|
config: l.value
|
|
@@ -1130,7 +1130,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1130
1130
|
seriesIndex: _.value,
|
|
1131
1131
|
datapoint: je.value,
|
|
1132
1132
|
series: me.value,
|
|
1133
|
-
bars:
|
|
1133
|
+
bars: Ce.value,
|
|
1134
1134
|
lines: ae.value,
|
|
1135
1135
|
plots: xe.value,
|
|
1136
1136
|
config: l.value
|
|
@@ -1144,10 +1144,10 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1144
1144
|
let i = "", o = "";
|
|
1145
1145
|
switch (bl.value[a.type]) {
|
|
1146
1146
|
case "bar":
|
|
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_${
|
|
1147
|
+
i = `<svg viewBox="0 0 40 40" height="14" width="14">${Lt.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${a.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${Lt.pattern ? `url(#pattern_${E.value}_${a.slotAbsoluteIndex}` : a.color}" /></svg>`;
|
|
1148
1148
|
break;
|
|
1149
1149
|
case "line":
|
|
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="${
|
|
1150
|
+
!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" />` : a.shape === "triangle" ? o = `<path d="${Pe({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "square" ? o = `<path d="${Pe({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "diamond" ? o = `<path d="${Pe({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "pentagon" ? o = `<path d="${Pe({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "hexagon" ? o = `<path d="${Pe({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "star" && (o = `<polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" points="${Ha({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), i = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${a.color}" />${o}</svg>`;
|
|
1151
1151
|
break;
|
|
1152
1152
|
case "plot":
|
|
1153
1153
|
if (!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape)) {
|
|
@@ -1159,37 +1159,37 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1159
1159
|
break;
|
|
1160
1160
|
}
|
|
1161
1161
|
if (a.shape === "triangle") {
|
|
1162
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
1162
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Pe({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1163
1163
|
break;
|
|
1164
1164
|
}
|
|
1165
1165
|
if (a.shape === "square") {
|
|
1166
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
1166
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Pe({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1167
1167
|
break;
|
|
1168
1168
|
}
|
|
1169
1169
|
if (a.shape === "diamond") {
|
|
1170
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
1170
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Pe({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1171
1171
|
break;
|
|
1172
1172
|
}
|
|
1173
1173
|
if (a.shape === "pentagon") {
|
|
1174
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
1174
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Pe({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1175
1175
|
break;
|
|
1176
1176
|
}
|
|
1177
1177
|
if (a.shape === "hexagon") {
|
|
1178
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
1178
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Pe({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1179
1179
|
break;
|
|
1180
1180
|
}
|
|
1181
1181
|
}
|
|
1182
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
1183
|
a.type === "line" ? l.value.line.labels.formatter : a.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
|
|
1184
1184
|
a.value,
|
|
1185
|
-
|
|
1185
|
+
Fe({
|
|
1186
1186
|
p: a.prefix,
|
|
1187
1187
|
v: a.value,
|
|
1188
1188
|
s: a.suffix,
|
|
1189
1189
|
r: l.value.chart.tooltip.roundingValue
|
|
1190
1190
|
}),
|
|
1191
1191
|
{ datapoint: a }
|
|
1192
|
-
) : ""}</b> ${l.value.chart.tooltip.showPercentage ? `(${
|
|
1192
|
+
) : ""}</b> ${l.value.chart.tooltip.showPercentage ? `(${Fe({
|
|
1193
1193
|
v: P(Math.abs(a.value) / s * 100),
|
|
1194
1194
|
s: "%",
|
|
1195
1195
|
r: l.value.chart.tooltip.roundingPercentage
|
|
@@ -1197,33 +1197,33 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1197
1197
|
}
|
|
1198
1198
|
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${l.value.chart.tooltip.color}">${t}</div>`;
|
|
1199
1199
|
}), fa = b(() => {
|
|
1200
|
-
if (
|
|
1201
|
-
const t =
|
|
1200
|
+
if (Be.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
1201
|
+
const t = we.value.map((e) => ({
|
|
1202
1202
|
label: e.name,
|
|
1203
1203
|
color: e.color,
|
|
1204
1204
|
type: e.type
|
|
1205
1205
|
})), s = [];
|
|
1206
1206
|
return de.value.forEach((e, u) => {
|
|
1207
1207
|
const a = l.value.table.useDefaultTimeFormat ? [e.text] : [rl.value(u + m.value.start, l.value.table.timeFormat)];
|
|
1208
|
-
|
|
1208
|
+
we.value.forEach((i) => {
|
|
1209
1209
|
a.push(be(i.absoluteValues[u]) ? Number(i.absoluteValues[u].toFixed(l.value.table.rounding)) : "");
|
|
1210
1210
|
}), s.push(a);
|
|
1211
1211
|
}), { head: t, body: s };
|
|
1212
1212
|
}), Gl = b(() => {
|
|
1213
1213
|
const t = l.value.table.showSum;
|
|
1214
|
-
let s = [""].concat(
|
|
1214
|
+
let s = [""].concat(we.value.map((i) => i.name));
|
|
1215
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>'));
|
|
1216
1216
|
let e = [];
|
|
1217
1217
|
for (let i = 0; i < L.value; i += 1) {
|
|
1218
|
-
const o =
|
|
1218
|
+
const o = we.value.map((A) => A.absoluteValues[i] ?? 0).reduce((A, C) => A + C, 0);
|
|
1219
1219
|
e.push(
|
|
1220
1220
|
[
|
|
1221
1221
|
l.value.table.useDefaultTimeFormat ? de.value[i].text ?? "-" : rl.value(i + m.value.start, l.value.table.timeFormat)
|
|
1222
|
-
].concat(
|
|
1222
|
+
].concat(we.value.map(
|
|
1223
1223
|
(A) => se(
|
|
1224
1224
|
A.type === "line" ? l.value.line.labels.formatter : A.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
|
|
1225
1225
|
A.absoluteValues[i] ?? 0,
|
|
1226
|
-
|
|
1226
|
+
Fe({
|
|
1227
1227
|
p: A.prefix || l.value.chart.labels.prefix,
|
|
1228
1228
|
v: A.absoluteValues[i] ?? 0,
|
|
1229
1229
|
s: A.suffix || l.value.chart.labels.suffix,
|
|
@@ -1245,7 +1245,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1245
1245
|
outline: l.value.table.td.outline
|
|
1246
1246
|
},
|
|
1247
1247
|
breakpoint: l.value.table.responsiveBreakpoint
|
|
1248
|
-
}, a = [l.value.table.columnNames.period].concat(
|
|
1248
|
+
}, a = [l.value.table.columnNames.period].concat(we.value.map((i) => i.name)).concat(l.value.table.columnNames.total);
|
|
1249
1249
|
return { head: s, body: e, config: u, colNames: a };
|
|
1250
1250
|
});
|
|
1251
1251
|
function xt(t = null) {
|
|
@@ -1254,7 +1254,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1254
1254
|
}
|
|
1255
1255
|
function ga(t, s = null) {
|
|
1256
1256
|
At.value = t;
|
|
1257
|
-
const e =
|
|
1257
|
+
const e = we.value.map((u) => ({
|
|
1258
1258
|
name: u.name,
|
|
1259
1259
|
value: [null, void 0, NaN].includes(u.absoluteValues[s]) ? null : u.absoluteValues[s],
|
|
1260
1260
|
color: u.color,
|
|
@@ -1276,7 +1276,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1276
1276
|
}
|
|
1277
1277
|
function ya() {
|
|
1278
1278
|
if (!l.value.responsiveProportionalSizing) {
|
|
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,
|
|
1279
|
+
y.value.dataLabels = l.value.chart.grid.labels.fontSize, y.value.yAxis = l.value.chart.grid.labels.axis.fontSize, y.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, y.value.plotLabels = l.value.chart.labels.fontSize, Le.value.plot = l.value.plot.radius, Le.value.line = l.value.line.radius;
|
|
1280
1280
|
return;
|
|
1281
1281
|
}
|
|
1282
1282
|
y.value.dataLabels = dl({
|
|
@@ -1303,13 +1303,13 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1303
1303
|
source: l.value.chart.labels.fontSize,
|
|
1304
1304
|
threshold: 10,
|
|
1305
1305
|
fallback: 10
|
|
1306
|
-
}),
|
|
1306
|
+
}), Le.value.plot = dl({
|
|
1307
1307
|
relator: ee.value,
|
|
1308
1308
|
adjuster: 800,
|
|
1309
1309
|
source: l.value.plot.radius,
|
|
1310
1310
|
threshold: 1,
|
|
1311
1311
|
fallback: 1
|
|
1312
|
-
}),
|
|
1312
|
+
}), Le.value.line = dl({
|
|
1313
1313
|
relator: ee.value,
|
|
1314
1314
|
adjuster: 800,
|
|
1315
1315
|
source: l.value.line.radius,
|
|
@@ -1339,28 +1339,28 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1339
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
1340
|
const t = 12;
|
|
1341
1341
|
if (l.value.responsive) {
|
|
1342
|
-
const e =
|
|
1343
|
-
|
|
1342
|
+
const e = Ie.value.parentNode;
|
|
1343
|
+
He.value && (He.value.unobserve(st.value), He.value.disconnect());
|
|
1344
1344
|
const { height: u, width: a } = e.getBoundingClientRect();
|
|
1345
1345
|
let i = null, o = 0;
|
|
1346
1346
|
l.value.chart.title.show && fl.value && (i = fl.value, o = i.getBoundingClientRect().height);
|
|
1347
1347
|
let A = null, C = 0;
|
|
1348
|
-
l.value.chart.zoom.show &&
|
|
1348
|
+
l.value.chart.zoom.show && Ne.value > 6 && ct.value && Oe.value && Oe.value.$el && (A = Oe.value.$el, C = A.getBoundingClientRect().height);
|
|
1349
1349
|
let O = null, S = 0;
|
|
1350
1350
|
l.value.chart.legend.show && sl.value && (O = sl.value, S = O.getBoundingClientRect().height);
|
|
1351
1351
|
let T = 0;
|
|
1352
1352
|
gl.value && (T = gl.value.getBoundingClientRect().height);
|
|
1353
|
-
let
|
|
1354
|
-
ml.value && (
|
|
1353
|
+
let W = 0;
|
|
1354
|
+
ml.value && (W = ml.value.getBoundingClientRect().height), ve.value = u - o - S - C - T - W - t, ee.value = a, Tl.value = `0 0 ${ee.value < 0 ? 10 : ee.value} ${ve.value < 0 ? 10 : ve.value}`, ya();
|
|
1355
1355
|
const k = new ResizeObserver((F) => {
|
|
1356
1356
|
for (const z of F)
|
|
1357
|
-
l.value.chart.title.show && fl.value ? o = fl.value.getBoundingClientRect().height : o = 0,
|
|
1358
|
-
ve.value = z.contentRect.height - o - S - C - T -
|
|
1357
|
+
l.value.chart.title.show && fl.value ? o = fl.value.getBoundingClientRect().height : o = 0, Oe.value && Oe.value.$el ? C = Oe.value.$el.getBoundingClientRect().height : C = 0, sl.value ? S = sl.value.getBoundingClientRect().height : S = 0, gl.value ? T = gl.value.getBoundingClientRect().height : T = 0, ml.value ? W = ml.value.getBoundingClientRect().height : W = 0, requestAnimationFrame(() => {
|
|
1358
|
+
ve.value = z.contentRect.height - o - S - C - T - W - t, ee.value = z.contentBoxSize[0].inlineSize, Tl.value = `0 0 ${ee.value < 0 ? 10 : ee.value} ${ve.value < 0 ? 10 : ve.value}`, ya();
|
|
1359
1359
|
});
|
|
1360
1360
|
});
|
|
1361
|
-
|
|
1361
|
+
He.value = k, st.value = e, k.observe(e);
|
|
1362
1362
|
} else
|
|
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,
|
|
1363
|
+
ve.value = l.value.chart.height, ee.value = l.value.chart.width, y.value.dataLabels = l.value.chart.grid.labels.fontSize, y.value.yAxis = l.value.chart.grid.labels.axis.fontSize, y.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, y.value.plotLabels = l.value.chart.labels.fontSize, Le.value.plot = l.value.plot.radius, Le.value.line = l.value.line.radius, Tl.value = `0 0 ${ee.value} ${ve.value}`;
|
|
1364
1364
|
}
|
|
1365
1365
|
function ka(t) {
|
|
1366
1366
|
lo.value = {
|
|
@@ -1371,7 +1371,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1371
1371
|
ql(() => {
|
|
1372
1372
|
pt(), Rl(), document.addEventListener("mousemove", ka, { passive: !0 }), document.addEventListener("scroll", Wt, { passive: !0 });
|
|
1373
1373
|
}), kt(() => {
|
|
1374
|
-
document.removeEventListener("scroll", Wt, { passive: !0 }), document.removeEventListener("mousemove", ka, { passive: !0 }),
|
|
1374
|
+
document.removeEventListener("scroll", Wt, { passive: !0 }), document.removeEventListener("mousemove", ka, { passive: !0 }), He.value && (He.value.unobserve(st.value), He.value.disconnect(), He.value = null);
|
|
1375
1375
|
}), xs({
|
|
1376
1376
|
timeLabelsEls: ul,
|
|
1377
1377
|
timeLabels: de,
|
|
@@ -1428,7 +1428,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1428
1428
|
absoluteIndex: t + m.value.start,
|
|
1429
1429
|
seriesIndex: t,
|
|
1430
1430
|
datapoint: je.value,
|
|
1431
|
-
bars:
|
|
1431
|
+
bars: Ce.value,
|
|
1432
1432
|
lines: ae.value,
|
|
1433
1433
|
plots: xe.value,
|
|
1434
1434
|
config: l.value
|
|
@@ -1442,16 +1442,16 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1442
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;
|
|
1443
1443
|
});
|
|
1444
1444
|
Al(() => g.dataset, (t) => {
|
|
1445
|
-
Array.isArray(t) && t.length > 0 && (Ol.value = !1),
|
|
1445
|
+
Array.isArray(t) && t.length > 0 && (Ol.value = !1), Ne.value = Math.max(...ge.value.map((s) => De(s.series).length)), m.value = {
|
|
1446
1446
|
start: 0,
|
|
1447
|
-
end:
|
|
1447
|
+
end: Ne.value
|
|
1448
1448
|
}, eo.value += 1, ut.value += 1, nl();
|
|
1449
1449
|
}, { deep: !0 }), Al(() => g.config, (t) => {
|
|
1450
1450
|
ie.value || (l.value = rt()), pt(), zt.value += 1, Tt.value += 1, vt(), nl();
|
|
1451
1451
|
}, { deep: !0 });
|
|
1452
1452
|
const yt = x(!1);
|
|
1453
1453
|
function Sa() {
|
|
1454
|
-
const t =
|
|
1454
|
+
const t = Ie.value?.parentNode;
|
|
1455
1455
|
if (!t) {
|
|
1456
1456
|
yt.value = !1;
|
|
1457
1457
|
return;
|
|
@@ -1464,7 +1464,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1464
1464
|
const t = new ResizeObserver(() => {
|
|
1465
1465
|
Sa(), yt.value && (pt(), nl(), Rl());
|
|
1466
1466
|
});
|
|
1467
|
-
|
|
1467
|
+
Ie.value?.parentNode && t.observe(Ie.value.parentNode);
|
|
1468
1468
|
}), Al(l, () => {
|
|
1469
1469
|
vt();
|
|
1470
1470
|
}, { immediate: !0 });
|
|
@@ -1479,7 +1479,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1479
1479
|
headerColor: l.value.table.th.color,
|
|
1480
1480
|
headerBg: l.value.table.th.backgroundColor,
|
|
1481
1481
|
isFullscreen: qe.value,
|
|
1482
|
-
fullscreenParent:
|
|
1482
|
+
fullscreenParent: Ie.value,
|
|
1483
1483
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
1484
1484
|
} : {
|
|
1485
1485
|
hideDetails: !0,
|
|
@@ -1538,23 +1538,43 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1538
1538
|
toggleAnnotator: ft,
|
|
1539
1539
|
toggleFullscreen: pa
|
|
1540
1540
|
}), (t, s) => (n(), r("div", {
|
|
1541
|
-
id: `vue-ui-xy_${
|
|
1541
|
+
id: `vue-ui-xy_${E.value}`,
|
|
1542
1542
|
class: ll(`vue-data-ui-component vue-ui-xy ${qe.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${l.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1543
1543
|
ref_key: "chart",
|
|
1544
|
-
ref:
|
|
1544
|
+
ref: Ie,
|
|
1545
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%" : ""}`),
|
|
1546
1546
|
onMouseenter: s[6] || (s[6] = () => Gt(!0)),
|
|
1547
1547
|
onMouseleave: s[7] || (s[7] = () => Gt(!1)),
|
|
1548
1548
|
onClick: aa
|
|
1549
1549
|
}, [
|
|
1550
|
-
l.value.chart.userOptions.buttons.annotator && ue.value ? (n(),
|
|
1550
|
+
l.value.chart.userOptions.buttons.annotator && ue.value ? (n(), Te(v(Ja), {
|
|
1551
1551
|
key: 0,
|
|
1552
1552
|
svgRef: ue.value,
|
|
1553
1553
|
backgroundColor: l.value.chart.backgroundColor,
|
|
1554
1554
|
color: l.value.chart.color,
|
|
1555
1555
|
active: xl.value,
|
|
1556
1556
|
onClose: ft
|
|
1557
|
-
},
|
|
1557
|
+
}, {
|
|
1558
|
+
"annotator-action-close": G(() => [
|
|
1559
|
+
B(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
1560
|
+
]),
|
|
1561
|
+
"annotator-action-color": G(({ color: e }) => [
|
|
1562
|
+
B(t.$slots, "annotator-action-color", ke(_e({ color: e })), void 0, !0)
|
|
1563
|
+
]),
|
|
1564
|
+
"annotator-action-draw": G(({ mode: e }) => [
|
|
1565
|
+
B(t.$slots, "annotator-action-draw", ke(_e({ mode: e })), void 0, !0)
|
|
1566
|
+
]),
|
|
1567
|
+
"annotator-action-undo": G(({ disabled: e }) => [
|
|
1568
|
+
B(t.$slots, "annotator-action-undo", ke(_e({ disabled: e })), void 0, !0)
|
|
1569
|
+
]),
|
|
1570
|
+
"annotator-action-redo": G(({ disabled: e }) => [
|
|
1571
|
+
B(t.$slots, "annotator-action-redo", ke(_e({ disabled: e })), void 0, !0)
|
|
1572
|
+
]),
|
|
1573
|
+
"annotator-action-delete": G(({ disabled: e }) => [
|
|
1574
|
+
B(t.$slots, "annotator-action-delete", ke(_e({ disabled: e })), void 0, !0)
|
|
1575
|
+
]),
|
|
1576
|
+
_: 3
|
|
1577
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
1558
1578
|
Lo.value ? (n(), r("div", {
|
|
1559
1579
|
key: 1,
|
|
1560
1580
|
ref_key: "noTitle",
|
|
@@ -1569,7 +1589,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1569
1589
|
class: "vue-ui-xy-title",
|
|
1570
1590
|
style: $(`font-family:${l.value.chart.fontFamily}`)
|
|
1571
1591
|
}, [
|
|
1572
|
-
(n(),
|
|
1592
|
+
(n(), Te(ys, {
|
|
1573
1593
|
key: `title_${zt.value}`,
|
|
1574
1594
|
config: {
|
|
1575
1595
|
title: {
|
|
@@ -1584,9 +1604,9 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1584
1604
|
}, null, 8, ["config"]))
|
|
1585
1605
|
], 4)) : h("", !0),
|
|
1586
1606
|
p("div", {
|
|
1587
|
-
id: `legend-top-${
|
|
1607
|
+
id: `legend-top-${E.value}`
|
|
1588
1608
|
}, null, 8, Ls),
|
|
1589
|
-
l.value.chart.userOptions.show && (it.value || zl.value) ? (n(),
|
|
1609
|
+
l.value.chart.userOptions.show && (it.value || zl.value) ? (n(), Te(v(Ua), {
|
|
1590
1610
|
ref_key: "userOptionsRef",
|
|
1591
1611
|
ref: ot,
|
|
1592
1612
|
key: `user_options_${Ct.value}`,
|
|
@@ -1594,7 +1614,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1594
1614
|
color: l.value.chart.color,
|
|
1595
1615
|
isPrinting: v(dt),
|
|
1596
1616
|
isImaging: v(Bt),
|
|
1597
|
-
uid:
|
|
1617
|
+
uid: E.value,
|
|
1598
1618
|
hasTooltip: l.value.chart.userOptions.buttons.tooltip && l.value.chart.tooltip.show,
|
|
1599
1619
|
hasPdf: l.value.chart.userOptions.buttons.pdf,
|
|
1600
1620
|
hasXls: l.value.chart.userOptions.buttons.csv,
|
|
@@ -1631,78 +1651,78 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1631
1651
|
}, Ca({ _: 2 }, [
|
|
1632
1652
|
t.$slots.menuIcon ? {
|
|
1633
1653
|
name: "menuIcon",
|
|
1634
|
-
fn:
|
|
1635
|
-
|
|
1654
|
+
fn: G(({ isOpen: e, color: u }) => [
|
|
1655
|
+
B(t.$slots, "menuIcon", ke(_e({ isOpen: e, color: u })), void 0, !0)
|
|
1636
1656
|
]),
|
|
1637
1657
|
key: "0"
|
|
1638
1658
|
} : void 0,
|
|
1639
1659
|
t.$slots.optionTooltip ? {
|
|
1640
1660
|
name: "optionTooltip",
|
|
1641
|
-
fn:
|
|
1642
|
-
|
|
1661
|
+
fn: G(() => [
|
|
1662
|
+
B(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
1643
1663
|
]),
|
|
1644
1664
|
key: "1"
|
|
1645
1665
|
} : void 0,
|
|
1646
1666
|
t.$slots.optionPdf ? {
|
|
1647
1667
|
name: "optionPdf",
|
|
1648
|
-
fn:
|
|
1649
|
-
|
|
1668
|
+
fn: G(() => [
|
|
1669
|
+
B(t.$slots, "optionPdf", {}, void 0, !0)
|
|
1650
1670
|
]),
|
|
1651
1671
|
key: "2"
|
|
1652
1672
|
} : void 0,
|
|
1653
1673
|
t.$slots.optionCsv ? {
|
|
1654
1674
|
name: "optionCsv",
|
|
1655
|
-
fn:
|
|
1656
|
-
|
|
1675
|
+
fn: G(() => [
|
|
1676
|
+
B(t.$slots, "optionCsv", {}, void 0, !0)
|
|
1657
1677
|
]),
|
|
1658
1678
|
key: "3"
|
|
1659
1679
|
} : void 0,
|
|
1660
1680
|
t.$slots.optionImg ? {
|
|
1661
1681
|
name: "optionImg",
|
|
1662
|
-
fn:
|
|
1663
|
-
|
|
1682
|
+
fn: G(() => [
|
|
1683
|
+
B(t.$slots, "optionImg", {}, void 0, !0)
|
|
1664
1684
|
]),
|
|
1665
1685
|
key: "4"
|
|
1666
1686
|
} : void 0,
|
|
1667
1687
|
t.$slots.optionSvg ? {
|
|
1668
1688
|
name: "optionSvg",
|
|
1669
|
-
fn:
|
|
1670
|
-
|
|
1689
|
+
fn: G(() => [
|
|
1690
|
+
B(t.$slots, "optionSvg", {}, void 0, !0)
|
|
1671
1691
|
]),
|
|
1672
1692
|
key: "5"
|
|
1673
1693
|
} : void 0,
|
|
1674
1694
|
t.$slots.optionTable ? {
|
|
1675
1695
|
name: "optionTable",
|
|
1676
|
-
fn:
|
|
1677
|
-
|
|
1696
|
+
fn: G(() => [
|
|
1697
|
+
B(t.$slots, "optionTable", {}, void 0, !0)
|
|
1678
1698
|
]),
|
|
1679
1699
|
key: "6"
|
|
1680
1700
|
} : void 0,
|
|
1681
1701
|
t.$slots.optionLabels ? {
|
|
1682
1702
|
name: "optionLabels",
|
|
1683
|
-
fn:
|
|
1684
|
-
|
|
1703
|
+
fn: G(() => [
|
|
1704
|
+
B(t.$slots, "optionLabels", {}, void 0, !0)
|
|
1685
1705
|
]),
|
|
1686
1706
|
key: "7"
|
|
1687
1707
|
} : void 0,
|
|
1688
1708
|
t.$slots.optionStack ? {
|
|
1689
1709
|
name: "optionStack",
|
|
1690
|
-
fn:
|
|
1691
|
-
|
|
1710
|
+
fn: G(({ isStack: e }) => [
|
|
1711
|
+
B(t.$slots, "optionStack", ke(_e({ isStack: e })), void 0, !0)
|
|
1692
1712
|
]),
|
|
1693
1713
|
key: "8"
|
|
1694
1714
|
} : void 0,
|
|
1695
1715
|
t.$slots.optionFullscreen ? {
|
|
1696
1716
|
name: "optionFullscreen",
|
|
1697
|
-
fn:
|
|
1698
|
-
|
|
1717
|
+
fn: G(({ toggleFullscreen: e, isFullscreen: u }) => [
|
|
1718
|
+
B(t.$slots, "optionFullscreen", ke(_e({ toggleFullscreen: e, isFullscreen: u })), void 0, !0)
|
|
1699
1719
|
]),
|
|
1700
1720
|
key: "9"
|
|
1701
1721
|
} : void 0,
|
|
1702
1722
|
t.$slots.optionAnnotator ? {
|
|
1703
1723
|
name: "optionAnnotator",
|
|
1704
|
-
fn:
|
|
1705
|
-
|
|
1724
|
+
fn: G(({ toggleAnnotator: e, isAnnotator: u }) => [
|
|
1725
|
+
B(t.$slots, "optionAnnotator", ke(_e({ toggleAnnotator: e, isAnnotator: u })), void 0, !0)
|
|
1706
1726
|
]),
|
|
1707
1727
|
key: "10"
|
|
1708
1728
|
} : void 0
|
|
@@ -1735,7 +1755,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1735
1755
|
vl(v(Za)),
|
|
1736
1756
|
t.$slots["chart-background"] ? (n(), r("foreignObject", {
|
|
1737
1757
|
key: 0,
|
|
1738
|
-
x: c.value.left +
|
|
1758
|
+
x: c.value.left + U.value < 0 ? 0 : c.value.left + U.value,
|
|
1739
1759
|
y: c.value.top,
|
|
1740
1760
|
width: c.value.width - (l.value.chart.grid.position === "middle" ? 0 : c.value.width / L.value) < 0 ? 0 : c.value.width - (l.value.chart.grid.position === "middle" ? 0 : c.value.width / L.value),
|
|
1741
1761
|
height: c.value.height < 0 ? 0 : c.value.height,
|
|
@@ -1743,7 +1763,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1743
1763
|
pointerEvents: "none"
|
|
1744
1764
|
}
|
|
1745
1765
|
}, [
|
|
1746
|
-
|
|
1766
|
+
B(t.$slots, "chart-background", {}, void 0, !0)
|
|
1747
1767
|
], 8, As)) : h("", !0),
|
|
1748
1768
|
L.value > 0 ? (n(), r("g", Cs, [
|
|
1749
1769
|
p("g", Ts, [
|
|
@@ -1751,28 +1771,28 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1751
1771
|
key: 0,
|
|
1752
1772
|
stroke: l.value.chart.grid.stroke,
|
|
1753
1773
|
"stroke-width": "1",
|
|
1754
|
-
x1: c.value.left +
|
|
1755
|
-
x2: c.value.right -
|
|
1756
|
-
y1: v(
|
|
1757
|
-
y2: v(
|
|
1774
|
+
x1: c.value.left + U.value,
|
|
1775
|
+
x2: c.value.right - U.value,
|
|
1776
|
+
y1: v(Y)(c.value.bottom),
|
|
1777
|
+
y2: v(Y)(c.value.bottom),
|
|
1758
1778
|
"stroke-linecap": "round",
|
|
1759
1779
|
style: { animation: "none !important" }
|
|
1760
1780
|
}, null, 8, zs)) : h("", !0),
|
|
1761
1781
|
f.value.useIndividualScale ? l.value.chart.grid.showHorizontalLines ? (n(!0), r(d, { key: 2 }, w(Sl.value, (e) => (n(), r("g", null, [
|
|
1762
1782
|
e.id === I.value && e.yLabels.length ? (n(!0), r(d, { key: 0 }, w(e.yLabels, (u) => (n(), r("line", {
|
|
1763
|
-
x1: c.value.left +
|
|
1764
|
-
x2: c.value.right -
|
|
1765
|
-
y1: v(
|
|
1766
|
-
y2: v(
|
|
1783
|
+
x1: c.value.left + U.value,
|
|
1784
|
+
x2: c.value.right - U.value,
|
|
1785
|
+
y1: v(Y)(u.y),
|
|
1786
|
+
y2: v(Y)(u.y),
|
|
1767
1787
|
stroke: e.color,
|
|
1768
1788
|
"stroke-width": 0.5,
|
|
1769
1789
|
"stroke-linecap": "round",
|
|
1770
1790
|
style: { animation: "none !important" }
|
|
1771
1791
|
}, null, 8, Vs))), 256)) : e.yLabels.length ? (n(!0), r(d, { key: 1 }, w(e.yLabels, (u) => (n(), r("line", {
|
|
1772
|
-
x1: c.value.left +
|
|
1773
|
-
x2: c.value.right -
|
|
1774
|
-
y1: v(
|
|
1775
|
-
y2: v(
|
|
1792
|
+
x1: c.value.left + U.value,
|
|
1793
|
+
x2: c.value.right - U.value,
|
|
1794
|
+
y1: v(Y)(u.y),
|
|
1795
|
+
y2: v(Y)(u.y),
|
|
1776
1796
|
stroke: l.value.chart.grid.stroke,
|
|
1777
1797
|
"stroke-width": 0.5,
|
|
1778
1798
|
"stroke-linecap": "round",
|
|
@@ -1783,19 +1803,19 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1783
1803
|
key: 0,
|
|
1784
1804
|
stroke: l.value.chart.grid.stroke,
|
|
1785
1805
|
"stroke-width": "1",
|
|
1786
|
-
x1: c.value.left +
|
|
1787
|
-
x2: c.value.left +
|
|
1788
|
-
y1: v(
|
|
1789
|
-
y2: v(
|
|
1806
|
+
x1: c.value.left + U.value,
|
|
1807
|
+
x2: c.value.left + U.value,
|
|
1808
|
+
y1: v(Y)(c.value.top),
|
|
1809
|
+
y2: v(Y)(c.value.bottom),
|
|
1790
1810
|
"stroke-linecap": "round",
|
|
1791
1811
|
style: { animation: "none !important" }
|
|
1792
1812
|
}, null, 8, Is)) : h("", !0),
|
|
1793
1813
|
l.value.chart.grid.showHorizontalLines ? (n(), r("g", Os, [
|
|
1794
1814
|
(n(!0), r(d, null, w(na.value, (e) => (n(), r("line", {
|
|
1795
|
-
x1: c.value.left +
|
|
1815
|
+
x1: c.value.left + U.value,
|
|
1796
1816
|
x2: c.value.right,
|
|
1797
|
-
y1: v(
|
|
1798
|
-
y2: v(
|
|
1817
|
+
y1: v(Y)(e.y),
|
|
1818
|
+
y2: v(Y)(e.y),
|
|
1799
1819
|
stroke: l.value.chart.grid.stroke,
|
|
1800
1820
|
"stroke-width": 0.5,
|
|
1801
1821
|
"stroke-linecap": "round",
|
|
@@ -1822,15 +1842,15 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1822
1842
|
}, null, 8, Hs)
|
|
1823
1843
|
])) : h("", !0)
|
|
1824
1844
|
]),
|
|
1825
|
-
(n(!0), r(d, null, w(
|
|
1845
|
+
(n(!0), r(d, null, w(Ce.value, (e, u) => (n(), r("defs", {
|
|
1826
1846
|
key: `def_rect_${u}`
|
|
1827
1847
|
}, [
|
|
1828
|
-
t.$slots["bar-gradient"] ?
|
|
1848
|
+
t.$slots["bar-gradient"] ? B(t.$slots, "bar-gradient", tl({
|
|
1829
1849
|
key: 0,
|
|
1830
1850
|
ref_for: !0
|
|
1831
|
-
}, { series: e, positiveId: `rectGradient_pos_${u}_${
|
|
1851
|
+
}, { series: e, positiveId: `rectGradient_pos_${u}_${E.value}`, negativeId: `rectGradient_neg_${u}_${E.value}` }), void 0, !0) : (n(), r(d, { key: 1 }, [
|
|
1832
1852
|
p("linearGradient", {
|
|
1833
|
-
id: `rectGradient_pos_${u}_${
|
|
1853
|
+
id: `rectGradient_pos_${u}_${E.value}`,
|
|
1834
1854
|
x2: "0%",
|
|
1835
1855
|
y2: "100%"
|
|
1836
1856
|
}, [
|
|
@@ -1848,7 +1868,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1848
1868
|
}, null, 8, Ws)
|
|
1849
1869
|
], 8, Ds),
|
|
1850
1870
|
p("linearGradient", {
|
|
1851
|
-
id: `rectGradient_neg_${u}_${
|
|
1871
|
+
id: `rectGradient_neg_${u}_${E.value}`,
|
|
1852
1872
|
x2: "0%",
|
|
1853
1873
|
y2: "100%"
|
|
1854
1874
|
}, [
|
|
@@ -1871,7 +1891,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1871
1891
|
key: `def_plot_${u}`
|
|
1872
1892
|
}, [
|
|
1873
1893
|
p("radialGradient", {
|
|
1874
|
-
id: `plotGradient_${u}_${
|
|
1894
|
+
id: `plotGradient_${u}_${E.value}`,
|
|
1875
1895
|
cx: "50%",
|
|
1876
1896
|
cy: "50%",
|
|
1877
1897
|
r: "50%",
|
|
@@ -1892,7 +1912,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1892
1912
|
key: `def_line_${e.id}`
|
|
1893
1913
|
}, [
|
|
1894
1914
|
p("radialGradient", {
|
|
1895
|
-
id: `lineGradient_${u}_${
|
|
1915
|
+
id: `lineGradient_${u}_${E.value}`,
|
|
1896
1916
|
cx: "50%",
|
|
1897
1917
|
cy: "50%",
|
|
1898
1918
|
r: "50%",
|
|
@@ -1908,12 +1928,12 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1908
1928
|
"stop-color": e.color
|
|
1909
1929
|
}, null, 8, eu)
|
|
1910
1930
|
], 8, Qs),
|
|
1911
|
-
t.$slots["area-gradient"] ?
|
|
1931
|
+
t.$slots["area-gradient"] ? B(t.$slots, "area-gradient", tl({
|
|
1912
1932
|
key: 0,
|
|
1913
1933
|
ref_for: !0
|
|
1914
|
-
}, { series: e, id: `areaGradient_${u}_${
|
|
1934
|
+
}, { series: e, id: `areaGradient_${u}_${E.value}` }), void 0, !0) : (n(), r("linearGradient", {
|
|
1915
1935
|
key: 1,
|
|
1916
|
-
id: `areaGradient_${u}_${
|
|
1936
|
+
id: `areaGradient_${u}_${E.value}`,
|
|
1917
1937
|
x1: "0%",
|
|
1918
1938
|
x2: "100%",
|
|
1919
1939
|
y1: "0%",
|
|
@@ -1921,11 +1941,11 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1921
1941
|
}, [
|
|
1922
1942
|
p("stop", {
|
|
1923
1943
|
offset: "0%",
|
|
1924
|
-
"stop-color": `${v(
|
|
1944
|
+
"stop-color": `${v(ze)(v(ol)(e.color, 0.03), l.value.line.area.opacity)}`
|
|
1925
1945
|
}, null, 8, tu),
|
|
1926
1946
|
p("stop", {
|
|
1927
1947
|
offset: "100%",
|
|
1928
|
-
"stop-color": `${v(
|
|
1948
|
+
"stop-color": `${v(ze)(e.color, l.value.line.area.opacity)}`
|
|
1929
1949
|
}, null, 8, au)
|
|
1930
1950
|
], 8, lu))
|
|
1931
1951
|
]))), 128)),
|
|
@@ -1941,7 +1961,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1941
1961
|
y: c.value.top,
|
|
1942
1962
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
1943
1963
|
width: c.value.width / L.value < 0 ? 1e-5 : c.value.width / L.value,
|
|
1944
|
-
fill: v(
|
|
1964
|
+
fill: v(ze)(e.color, e.opacity)
|
|
1945
1965
|
}, null, 12, ou)
|
|
1946
1966
|
]))), 256)),
|
|
1947
1967
|
(n(!0), r(d, null, w(e.span, (u, a) => (n(), r("g", null, [
|
|
@@ -1972,12 +1992,12 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1972
1992
|
y: c.value.top,
|
|
1973
1993
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
1974
1994
|
width: c.value.width / L.value < 0 ? 1e-5 : c.value.width / L.value,
|
|
1975
|
-
fill: [V.value, _.value, Ze.value].includes(u) ? v(
|
|
1995
|
+
fill: [V.value, _.value, Ze.value].includes(u) ? v(ze)(l.value.chart.highlighter.color, l.value.chart.highlighter.opacity) : "transparent",
|
|
1976
1996
|
style: { transition: "none !important", animation: "none !important" }
|
|
1977
1997
|
}, null, 8, iu)
|
|
1978
1998
|
]))), 128))
|
|
1979
1999
|
])) : h("", !0),
|
|
1980
|
-
|
|
2000
|
+
Ce.value.length ? (n(!0), r(d, { key: 1 }, w(Ce.value, (e, u) => (n(), r("g", {
|
|
1981
2001
|
key: `serie_bar_${e.id}`,
|
|
1982
2002
|
class: ll(`serie_bar_${u}`),
|
|
1983
2003
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
@@ -1992,7 +2012,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
1992
2012
|
height: f.value.useIndividualScale ? Math.abs(jt(a)) : Math.abs(Qt(a)),
|
|
1993
2013
|
width: Wl.value - Xl.value,
|
|
1994
2014
|
rx: l.value.bar.borderRadius,
|
|
1995
|
-
fill: l.value.bar.useGradient ? a.value >= 0 ? `url(#rectGradient_pos_${u}_${
|
|
2015
|
+
fill: l.value.bar.useGradient ? a.value >= 0 ? `url(#rectGradient_pos_${u}_${E.value})` : `url(#rectGradient_neg_${u}_${E.value})` : e.color,
|
|
1996
2016
|
stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
|
|
1997
2017
|
"stroke-width": l.value.bar.border.strokeWidth,
|
|
1998
2018
|
style: $({
|
|
@@ -2006,7 +2026,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2006
2026
|
height: f.value.useIndividualScale ? Math.abs(jt(a)) : Math.abs(Qt(a)),
|
|
2007
2027
|
width: Wl.value - Xl.value,
|
|
2008
2028
|
rx: l.value.bar.borderRadius,
|
|
2009
|
-
fill: `url(#pattern_${
|
|
2029
|
+
fill: `url(#pattern_${E.value}_${e.slotAbsoluteIndex})`,
|
|
2010
2030
|
stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
|
|
2011
2031
|
"stroke-width": l.value.bar.border.strokeWidth,
|
|
2012
2032
|
style: $({ transition: v(ie) || !l.value.bar.showTransition ? void 0 : `all ${l.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
@@ -2019,7 +2039,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2019
2039
|
x: Hl(a) - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
|
|
2020
2040
|
y: v(P)(a.y) + l.value.chart.comments.offsetY + 6
|
|
2021
2041
|
}, [
|
|
2022
|
-
|
|
2042
|
+
B(t.$slots, "plot-comment", {
|
|
2023
2043
|
plot: { ...a, color: e.color, seriesIndex: u, datapointIndex: i }
|
|
2024
2044
|
}, void 0, !0)
|
|
2025
2045
|
], 8, cu)) : h("", !0)
|
|
@@ -2029,10 +2049,10 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2029
2049
|
key: 2,
|
|
2030
2050
|
stroke: l.value.chart.grid.stroke,
|
|
2031
2051
|
"stroke-width": "1",
|
|
2032
|
-
x1: c.value.left +
|
|
2052
|
+
x1: c.value.left + U.value,
|
|
2033
2053
|
x2: c.value.right,
|
|
2034
|
-
y1: v(
|
|
2035
|
-
y2: v(
|
|
2054
|
+
y1: v(Y)(ne.value),
|
|
2055
|
+
y2: v(Y)(ne.value),
|
|
2036
2056
|
"stroke-linecap": "round",
|
|
2037
2057
|
style: { animation: "none !important" }
|
|
2038
2058
|
}, null, 8, vu)) : h("", !0),
|
|
@@ -2040,8 +2060,8 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2040
2060
|
p("line", {
|
|
2041
2061
|
x1: c.value.left + c.value.width / L.value * ((_.value !== null ? _.value : 0) || (V.value !== null ? V.value : 0)) + c.value.width / L.value / 2,
|
|
2042
2062
|
x2: c.value.left + c.value.width / L.value * ((_.value !== null ? _.value : 0) || (V.value !== null ? V.value : 0)) + c.value.width / L.value / 2,
|
|
2043
|
-
y1: v(
|
|
2044
|
-
y2: v(
|
|
2063
|
+
y1: v(Y)(c.value.top),
|
|
2064
|
+
y2: v(Y)(c.value.bottom),
|
|
2045
2065
|
stroke: l.value.chart.highlighter.color,
|
|
2046
2066
|
"stroke-width": l.value.chart.highlighter.lineWidth,
|
|
2047
2067
|
"stroke-dasharray": l.value.chart.highlighter.lineDasharray,
|
|
@@ -2052,7 +2072,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2052
2072
|
l.value.chart.grid.frame.show ? (n(), r("rect", {
|
|
2053
2073
|
key: 4,
|
|
2054
2074
|
style: { pointerEvents: "none", transition: "none", animation: "none !important" },
|
|
2055
|
-
x: c.value.left +
|
|
2075
|
+
x: c.value.left + U.value < 0 ? 0 : c.value.left + U.value,
|
|
2056
2076
|
y: c.value.top,
|
|
2057
2077
|
width: c.value.width - (l.value.chart.grid.position === "middle" ? 0 : c.value.width / L.value) < 0 ? 0 : c.value.width - (l.value.chart.grid.position === "middle" ? 0 : c.value.width / L.value),
|
|
2058
2078
|
height: c.value.height < 0 ? 0 : c.value.height,
|
|
@@ -2071,10 +2091,10 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2071
2091
|
f.value.useIndividualScale ? (n(), r(d, { key: 0 }, [
|
|
2072
2092
|
(n(!0), r(d, null, w(Sl.value, (e) => (n(), r("g", null, [
|
|
2073
2093
|
p("line", {
|
|
2074
|
-
x1: e.x +
|
|
2075
|
-
x2: e.x +
|
|
2076
|
-
y1: f.value.isStacked ? v(
|
|
2077
|
-
y2: f.value.isStacked ? v(
|
|
2094
|
+
x1: e.x + U.value - c.value.individualOffsetX,
|
|
2095
|
+
x2: e.x + U.value - c.value.individualOffsetX,
|
|
2096
|
+
y1: f.value.isStacked ? v(Y)(c.value.bottom - e.yOffset - e.individualHeight) : v(Y)(c.value.top),
|
|
2097
|
+
y2: f.value.isStacked ? v(Y)(c.value.bottom - e.yOffset) : v(Y)(c.value.bottom),
|
|
2078
2098
|
stroke: e.color,
|
|
2079
2099
|
"stroke-width": l.value.chart.grid.stroke,
|
|
2080
2100
|
"stroke-linecap": "round",
|
|
@@ -2088,16 +2108,16 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2088
2108
|
fill: e.color,
|
|
2089
2109
|
"font-size": y.value.dataLabels * 0.8,
|
|
2090
2110
|
"text-anchor": "middle",
|
|
2091
|
-
transform: `translate(${e.x - y.value.dataLabels * 0.8 / 2 +
|
|
2111
|
+
transform: `translate(${e.x - y.value.dataLabels * 0.8 / 2 + U.value}, ${f.value.isStacked ? c.value.bottom - e.yOffset - e.individualHeight / 2 : c.value.top + c.value.height / 2}) rotate(-90)`
|
|
2092
2112
|
}, te(e.name) + " " + te(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
|
|
2093
2113
|
${e.scaleLabel}` : ""), 9, mu),
|
|
2094
2114
|
(n(!0), r(d, null, w(e.yLabels, (u, a) => (n(), r(d, null, [
|
|
2095
2115
|
l.value.chart.grid.labels.yAxis.showCrosshairs ? (n(), r("line", {
|
|
2096
2116
|
key: 0,
|
|
2097
|
-
x1: e.x + 3 +
|
|
2098
|
-
x2: e.x +
|
|
2099
|
-
y1: v(
|
|
2100
|
-
y2: v(
|
|
2117
|
+
x1: e.x + 3 + U.value - l.value.chart.grid.labels.yAxis.crosshairSize - c.value.individualOffsetX,
|
|
2118
|
+
x2: e.x + U.value - c.value.individualOffsetX,
|
|
2119
|
+
y1: v(Y)(u.y),
|
|
2120
|
+
y2: v(Y)(u.y),
|
|
2101
2121
|
stroke: e.color,
|
|
2102
2122
|
"stroke-width": 1,
|
|
2103
2123
|
"stroke-linecap": "round",
|
|
@@ -2105,15 +2125,15 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2105
2125
|
}, null, 8, bu)) : h("", !0)
|
|
2106
2126
|
], 64))), 256)),
|
|
2107
2127
|
(n(!0), r(d, null, w(e.yLabels, (u, a) => (n(), r("text", {
|
|
2108
|
-
x: e.x - 5 +
|
|
2109
|
-
y: v(
|
|
2128
|
+
x: e.x - 5 + U.value - c.value.individualOffsetX,
|
|
2129
|
+
y: v(Y)(u.y) + y.value.dataLabels / 3,
|
|
2110
2130
|
"font-size": y.value.dataLabels,
|
|
2111
2131
|
"text-anchor": "end",
|
|
2112
2132
|
fill: e.color
|
|
2113
2133
|
}, te(v(se)(
|
|
2114
2134
|
l.value.chart.grid.labels.yAxis.formatter,
|
|
2115
2135
|
u.value,
|
|
2116
|
-
v(
|
|
2136
|
+
v(Fe)({
|
|
2117
2137
|
p: u.prefix,
|
|
2118
2138
|
v: u.value,
|
|
2119
2139
|
s: u.suffix,
|
|
@@ -2125,18 +2145,18 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2125
2145
|
], 64)) : (n(!0), r(d, { key: 1 }, w(na.value, (e, u) => (n(), r("g", {
|
|
2126
2146
|
key: `yLabel_${u}`
|
|
2127
2147
|
}, [
|
|
2128
|
-
be(e) && e.value >=
|
|
2148
|
+
be(e) && e.value >= Ae.value.min && e.value <= Ae.value.max && l.value.chart.grid.labels.yAxis.showCrosshairs ? (n(), r("line", {
|
|
2129
2149
|
key: 0,
|
|
2130
|
-
x1: c.value.left +
|
|
2131
|
-
x2: c.value.left +
|
|
2132
|
-
y1: v(
|
|
2133
|
-
y2: v(
|
|
2150
|
+
x1: c.value.left + U.value,
|
|
2151
|
+
x2: c.value.left + U.value - l.value.chart.grid.labels.yAxis.crosshairSize,
|
|
2152
|
+
y1: v(Y)(e.y),
|
|
2153
|
+
y2: v(Y)(e.y),
|
|
2134
2154
|
stroke: l.value.chart.grid.stroke,
|
|
2135
2155
|
"stroke-width": "1",
|
|
2136
2156
|
"stroke-linecap": "round",
|
|
2137
2157
|
style: { animation: "none !important" }
|
|
2138
2158
|
}, null, 8, pu)) : h("", !0),
|
|
2139
|
-
e.value >=
|
|
2159
|
+
e.value >= Ae.value.min && e.value <= Ae.value.max ? (n(), r("text", {
|
|
2140
2160
|
key: 1,
|
|
2141
2161
|
x: c.value.scaleLabelX - l.value.chart.grid.labels.yAxis.crosshairSize,
|
|
2142
2162
|
y: v(P)(e.y + y.value.dataLabels / 3),
|
|
@@ -2146,7 +2166,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2146
2166
|
}, te(be(e.value) ? v(se)(
|
|
2147
2167
|
l.value.chart.grid.labels.yAxis.formatter,
|
|
2148
2168
|
e.value,
|
|
2149
|
-
v(
|
|
2169
|
+
v(Fe)({
|
|
2150
2170
|
p: e.prefix,
|
|
2151
2171
|
v: e.value,
|
|
2152
2172
|
s: e.suffix,
|
|
@@ -2163,12 +2183,12 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2163
2183
|
(n(!0), r(d, null, w(e.plots, (a, i) => (n(), r("g", {
|
|
2164
2184
|
key: `circle_plot_${u}_${i}`
|
|
2165
2185
|
}, [
|
|
2166
|
-
a && be(a.value) ? (n(),
|
|
2186
|
+
a && be(a.value) ? (n(), Te(Ql, {
|
|
2167
2187
|
key: 0,
|
|
2168
2188
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
2169
|
-
color: l.value.plot.useGradient ? `url(#plotGradient_${u}_${
|
|
2189
|
+
color: l.value.plot.useGradient ? `url(#plotGradient_${u}_${E.value})` : l.value.plot.dot.useSerieColor ? e.color : l.value.plot.dot.fill,
|
|
2170
2190
|
plot: { x: v(P)(a.x), y: v(P)(a.y) },
|
|
2171
|
-
radius: _.value !== null && _.value === i || V.value !== null && V.value === i ? (
|
|
2191
|
+
radius: _.value !== null && _.value === i || V.value !== null && V.value === i ? (Le.value.plot || 6) * 1.5 : Le.value.plot || 6,
|
|
2172
2192
|
stroke: l.value.plot.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
|
|
2173
2193
|
strokeWidth: l.value.plot.dot.strokeWidth,
|
|
2174
2194
|
transition: v(ie) || !l.value.plot.showTransition || _.value !== null && _.value === i || V.value !== null && V.value === i ? void 0 : `all ${l.value.plot.transitionDurationMs}ms ease-in-out`
|
|
@@ -2182,7 +2202,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2182
2202
|
y: a.y + l.value.chart.comments.offsetY + 6
|
|
2183
2203
|
}, [
|
|
2184
2204
|
p("div", _u, [
|
|
2185
|
-
|
|
2205
|
+
B(t.$slots, "plot-comment", {
|
|
2186
2206
|
plot: { ...a, color: e.color, seriesIndex: u, datapointIndex: i }
|
|
2187
2207
|
}, void 0, !0)
|
|
2188
2208
|
])
|
|
@@ -2215,9 +2235,9 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2215
2235
|
}, null, 12, Su)) : h("", !0)
|
|
2216
2236
|
], 6))), 128)),
|
|
2217
2237
|
t.$slots.pattern ? (n(), r("defs", $u, [
|
|
2218
|
-
(n(!0), r(d, null, w(
|
|
2238
|
+
(n(!0), r(d, null, w(Be.value, (e, u) => B(t.$slots, "pattern", tl({
|
|
2219
2239
|
key: `serie_pattern_slot_${e.id}`
|
|
2220
|
-
}, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${
|
|
2240
|
+
}, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${E.value}_${u}` }), void 0, !0)), 128))
|
|
2221
2241
|
])) : h("", !0),
|
|
2222
2242
|
va.value.length && !f.value.isStacked ? (n(), r("g", Lu, [
|
|
2223
2243
|
(n(!0), r(d, null, w(va.value, (e) => (n(), r("path", {
|
|
@@ -2240,26 +2260,26 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2240
2260
|
a ? (n(), r("path", {
|
|
2241
2261
|
key: 0,
|
|
2242
2262
|
d: a,
|
|
2243
|
-
fill: l.value.line.area.useGradient ? `url(#areaGradient_${u}_${
|
|
2263
|
+
fill: l.value.line.area.useGradient ? `url(#areaGradient_${u}_${E.value})` : v(ze)(e.color, l.value.line.area.opacity),
|
|
2244
2264
|
style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2245
2265
|
}, null, 12, Cu)) : h("", !0),
|
|
2246
2266
|
t.$slots.pattern && a ? (n(), r("path", {
|
|
2247
2267
|
key: 1,
|
|
2248
2268
|
d: a,
|
|
2249
|
-
fill: `url(#pattern_${
|
|
2269
|
+
fill: `url(#pattern_${E.value}_${e.slotAbsoluteIndex})`,
|
|
2250
2270
|
style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2251
2271
|
}, null, 12, Tu)) : h("", !0)
|
|
2252
2272
|
], 64))), 128)) : (n(!0), r(d, { key: 1 }, w(e.area.split(";"), (a, i) => (n(), r(d, { key: i }, [
|
|
2253
2273
|
a ? (n(), r("path", {
|
|
2254
2274
|
key: 0,
|
|
2255
2275
|
d: `M${a}Z`,
|
|
2256
|
-
fill: l.value.line.area.useGradient ? `url(#areaGradient_${u}_${
|
|
2276
|
+
fill: l.value.line.area.useGradient ? `url(#areaGradient_${u}_${E.value})` : v(ze)(e.color, l.value.line.area.opacity),
|
|
2257
2277
|
style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2258
2278
|
}, null, 12, zu)) : h("", !0),
|
|
2259
2279
|
t.$slots.pattern && a ? (n(), r("path", {
|
|
2260
2280
|
key: 1,
|
|
2261
2281
|
d: `M${a}Z`,
|
|
2262
|
-
fill: `url(#pattern_${
|
|
2282
|
+
fill: `url(#pattern_${E.value}_${e.slotAbsoluteIndex})`,
|
|
2263
2283
|
style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2264
2284
|
}, null, 12, Iu)) : h("", !0)
|
|
2265
2285
|
], 64))), 128))
|
|
@@ -2287,12 +2307,12 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2287
2307
|
(n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
|
|
2288
2308
|
key: `circle_line_${u}_${i}`
|
|
2289
2309
|
}, [
|
|
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(),
|
|
2310
|
+
!ua.value.linePlot && a && be(a.value) || ua.value.linePlot && a && be(a.value) && (_.value !== null && _.value === i || V.value !== null && V.value === i) || ca(e.plots, i) ? (n(), Te(Ql, {
|
|
2291
2311
|
key: 0,
|
|
2292
2312
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
2293
|
-
color: l.value.line.useGradient ? `url(#lineGradient_${u}_${
|
|
2313
|
+
color: l.value.line.useGradient ? `url(#lineGradient_${u}_${E.value})` : l.value.line.dot.useSerieColor ? e.color : l.value.line.dot.fill,
|
|
2294
2314
|
plot: { x: v(P)(a.x), y: v(P)(a.y) },
|
|
2295
|
-
radius: _.value !== null && _.value === i || V.value !== null && V.value === i ? (
|
|
2315
|
+
radius: _.value !== null && _.value === i || V.value !== null && V.value === i ? (Le.value.line || 6) * 1.5 : (ca(e.plots, i), Le.value.line || 6),
|
|
2296
2316
|
stroke: l.value.line.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
|
|
2297
2317
|
strokeWidth: l.value.line.dot.strokeWidth,
|
|
2298
2318
|
transition: v(ie) || !l.value.line.showTransition || _.value !== null && _.value === i || V.value !== null && V.value === i ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out`
|
|
@@ -2306,7 +2326,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2306
2326
|
y: a.y + l.value.chart.comments.offsetY + 6
|
|
2307
2327
|
}, [
|
|
2308
2328
|
p("div", Pu, [
|
|
2309
|
-
|
|
2329
|
+
B(t.$slots, "plot-comment", {
|
|
2310
2330
|
plot: { ...a, color: e.color, seriesIndex: u, datapointIndex: i }
|
|
2311
2331
|
}, void 0, !0)
|
|
2312
2332
|
])
|
|
@@ -2314,7 +2334,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2314
2334
|
], 64))), 128))
|
|
2315
2335
|
], 6))), 128)),
|
|
2316
2336
|
(l.value.bar.labels.show || l.value.bar.serieName.show) && f.value.dataLabels.show ? (n(), r("g", Fu, [
|
|
2317
|
-
(n(!0), r(d, null, w(
|
|
2337
|
+
(n(!0), r(d, null, w(Ce.value, (e, u) => (n(), r(d, {
|
|
2318
2338
|
key: `xLabel_bar_${e.id}`
|
|
2319
2339
|
}, [
|
|
2320
2340
|
(n(!0), r(d, null, w(e.plots, (a, i) => (n(), r(d, {
|
|
@@ -2322,7 +2342,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2322
2342
|
}, [
|
|
2323
2343
|
a && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === i || V.value !== null && V.value === i) && l.value.bar.labels.show ? (n(), r("text", {
|
|
2324
2344
|
key: 0,
|
|
2325
|
-
x: f.value.useIndividualScale && f.value.isStacked ? a.x +
|
|
2345
|
+
x: f.value.useIndividualScale && f.value.isStacked ? a.x + Z.value.line / 2 : Hl(a) + Ee() / 2 - Yl.value / 2,
|
|
2326
2346
|
y: v(P)(a.y) + (a.value >= 0 ? l.value.bar.labels.offsetY : -l.value.bar.labels.offsetY * 3),
|
|
2327
2347
|
"text-anchor": "middle",
|
|
2328
2348
|
"font-size": y.value.plotLabels,
|
|
@@ -2331,7 +2351,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2331
2351
|
}, te(be(a.value) ? v(se)(
|
|
2332
2352
|
l.value.bar.labels.formatter,
|
|
2333
2353
|
a.value,
|
|
2334
|
-
v(
|
|
2354
|
+
v(Fe)({
|
|
2335
2355
|
p: e.prefix || l.value.chart.labels.prefix,
|
|
2336
2356
|
v: a.value,
|
|
2337
2357
|
s: e.suffix || l.value.chart.labels.suffix,
|
|
@@ -2344,7 +2364,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2344
2364
|
) : ""), 13, Ru)) : h("", !0),
|
|
2345
2365
|
a && l.value.bar.serieName.show ? (n(), r("text", {
|
|
2346
2366
|
key: 1,
|
|
2347
|
-
x: f.value.useIndividualScale && f.value.isStacked ? a.x +
|
|
2367
|
+
x: f.value.useIndividualScale && f.value.isStacked ? a.x + Z.value.line / 2 : a.x + Ee() * 1.1,
|
|
2348
2368
|
y: a.y + (a.value > 0 ? l.value.bar.serieName.offsetY : -l.value.bar.serieName.offsetY * 3),
|
|
2349
2369
|
"text-anchor": "middle",
|
|
2350
2370
|
"font-size": y.value.plotLabels,
|
|
@@ -2376,7 +2396,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2376
2396
|
}, te(be(a.value) ? v(se)(
|
|
2377
2397
|
l.value.plot.labels.formatter,
|
|
2378
2398
|
a.value,
|
|
2379
|
-
v(
|
|
2399
|
+
v(Fe)({
|
|
2380
2400
|
p: e.prefix || l.value.chart.labels.prefix,
|
|
2381
2401
|
v: a.value,
|
|
2382
2402
|
s: e.suffix || l.value.chart.labels.suffix,
|
|
@@ -2419,7 +2439,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2419
2439
|
style: $(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2420
2440
|
}, [
|
|
2421
2441
|
p("div", {
|
|
2422
|
-
style: $(`padding: 3px; background:${v(
|
|
2442
|
+
style: $(`padding: 3px; background:${v(ze)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
|
|
2423
2443
|
innerHTML: v(se)(
|
|
2424
2444
|
l.value.plot.tag.formatter,
|
|
2425
2445
|
a.value,
|
|
@@ -2441,7 +2461,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2441
2461
|
style: $(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2442
2462
|
}, [
|
|
2443
2463
|
p("div", {
|
|
2444
|
-
style: $(`padding: 3px; background:${v(
|
|
2464
|
+
style: $(`padding: 3px; background:${v(ze)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
|
|
2445
2465
|
innerHTML: v(se)(
|
|
2446
2466
|
l.value.plot.tag.formatter,
|
|
2447
2467
|
a.value,
|
|
@@ -2476,7 +2496,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2476
2496
|
}, te(be(a.value) ? v(se)(
|
|
2477
2497
|
l.value.line.labels.formatter,
|
|
2478
2498
|
a.value,
|
|
2479
|
-
v(
|
|
2499
|
+
v(Fe)({
|
|
2480
2500
|
p: e.prefix || l.value.chart.labels.prefix,
|
|
2481
2501
|
v: a.value,
|
|
2482
2502
|
s: e.suffix || l.value.chart.labels.suffix,
|
|
@@ -2519,7 +2539,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2519
2539
|
style: $(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2520
2540
|
}, [
|
|
2521
2541
|
p("div", {
|
|
2522
|
-
style: $(`padding: 3px; background:${v(
|
|
2542
|
+
style: $(`padding: 3px; background:${v(ze)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
|
|
2523
2543
|
innerHTML: v(se)(
|
|
2524
2544
|
l.value.line.tag.formatter,
|
|
2525
2545
|
a.value,
|
|
@@ -2541,7 +2561,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2541
2561
|
style: $(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2542
2562
|
}, [
|
|
2543
2563
|
p("div", {
|
|
2544
|
-
style: $(`padding: 3px; background:${v(
|
|
2564
|
+
style: $(`padding: 3px; background:${v(ze)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
|
|
2545
2565
|
innerHTML: v(se)(
|
|
2546
2566
|
l.value.line.tag.formatter,
|
|
2547
2567
|
a.value,
|
|
@@ -2642,10 +2662,10 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2642
2662
|
}, null, 12, si)) : h("", !0)
|
|
2643
2663
|
], 64))), 128))
|
|
2644
2664
|
], 64))), 128)),
|
|
2645
|
-
(n(!0), r(d, null, w([...xe.value, ...ae.value, ...
|
|
2665
|
+
(n(!0), r(d, null, w([...xe.value, ...ae.value, ...Ce.value], (e, u) => (n(), r(d, {
|
|
2646
2666
|
key: `progression-${u}`
|
|
2647
2667
|
}, [
|
|
2648
|
-
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(
|
|
2668
|
+
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v($e)(e.plots).trend) ? (n(), r("g", ui, [
|
|
2649
2669
|
p("defs", null, [
|
|
2650
2670
|
p("marker", {
|
|
2651
2671
|
id: `progression_arrow_${u}`,
|
|
@@ -2669,10 +2689,10 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2669
2689
|
]),
|
|
2670
2690
|
e.plots.length > 1 ? (n(), r("line", {
|
|
2671
2691
|
key: 0,
|
|
2672
|
-
x1: v(
|
|
2673
|
-
x2: v(
|
|
2674
|
-
y1: v(
|
|
2675
|
-
y2: v(
|
|
2692
|
+
x1: v($e)(e.plots).x1 + (e.type === "bar" ? Ee() : 0),
|
|
2693
|
+
x2: v($e)(e.plots).x2 + (e.type === "bar" ? Ee() : 0),
|
|
2694
|
+
y1: v(Y)(v($e)(e.plots).y1),
|
|
2695
|
+
y2: v(Y)(v($e)(e.plots).y2),
|
|
2676
2696
|
"stroke-width": 1,
|
|
2677
2697
|
stroke: l.value.chart.backgroundColor,
|
|
2678
2698
|
"stroke-dasharray": 2,
|
|
@@ -2682,10 +2702,10 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2682
2702
|
}, null, 8, ri)) : h("", !0),
|
|
2683
2703
|
e.plots.length > 1 ? (n(), r("line", {
|
|
2684
2704
|
key: 1,
|
|
2685
|
-
x1: v(
|
|
2686
|
-
x2: v(
|
|
2687
|
-
y1: v(
|
|
2688
|
-
y2: v(
|
|
2705
|
+
x1: v($e)(e.plots).x1 + (e.type === "bar" ? Ee() : 0),
|
|
2706
|
+
x2: v($e)(e.plots).x2 + (e.type === "bar" ? Ee() : 0),
|
|
2707
|
+
y1: v(Y)(v($e)(e.plots).y1),
|
|
2708
|
+
y2: v(Y)(v($e)(e.plots).y2),
|
|
2689
2709
|
"stroke-width": 1,
|
|
2690
2710
|
stroke: e.color,
|
|
2691
2711
|
"stroke-dasharray": 2,
|
|
@@ -2696,8 +2716,8 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2696
2716
|
e.plots.length > 1 ? (n(), r("text", {
|
|
2697
2717
|
key: 2,
|
|
2698
2718
|
"text-anchor": "middle",
|
|
2699
|
-
x: v(
|
|
2700
|
-
y: v(
|
|
2719
|
+
x: v($e)(e.plots).x2 + (e.type === "bar" ? Ee() : 0),
|
|
2720
|
+
y: v($e)(e.plots).y2 - 12,
|
|
2701
2721
|
"font-size": y.value.plotLabels,
|
|
2702
2722
|
fill: e.color,
|
|
2703
2723
|
stroke: l.value.chart.backgroundColor,
|
|
@@ -2705,8 +2725,8 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2705
2725
|
"stroke-linecap": "round",
|
|
2706
2726
|
"stroke-linejoin": "round",
|
|
2707
2727
|
"paint-order": "stroke fill"
|
|
2708
|
-
}, te(v(
|
|
2709
|
-
v: v(
|
|
2728
|
+
}, te(v(Fe)({
|
|
2729
|
+
v: v($e)(e.plots).trend * 100,
|
|
2710
2730
|
s: "%",
|
|
2711
2731
|
r: 2
|
|
2712
2732
|
})), 9, vi)) : h("", !0)
|
|
@@ -2715,7 +2735,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2715
2735
|
f.value.useIndividualScale && !f.value.isStacked ? (n(), r(d, { key: 13 }, [
|
|
2716
2736
|
p("defs", null, [
|
|
2717
2737
|
(n(!0), r(d, null, w(Sl.value, (e, u) => (n(), r("linearGradient", {
|
|
2718
|
-
id: `individual_scale_gradient_${
|
|
2738
|
+
id: `individual_scale_gradient_${E.value}_${u}`,
|
|
2719
2739
|
x1: "0%",
|
|
2720
2740
|
x2: "100%",
|
|
2721
2741
|
y1: "0%",
|
|
@@ -2734,11 +2754,11 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2734
2754
|
], 8, di))), 256))
|
|
2735
2755
|
]),
|
|
2736
2756
|
(n(!0), r(d, null, w(Sl.value, (e, u) => (n(), r("rect", {
|
|
2737
|
-
x: e.x - l.value.chart.grid.labels.yAxis.labelWidth +
|
|
2757
|
+
x: e.x - l.value.chart.grid.labels.yAxis.labelWidth + U.value - c.value.individualOffsetX,
|
|
2738
2758
|
y: c.value.top,
|
|
2739
2759
|
width: l.value.chart.grid.labels.yAxis.labelWidth + c.value.individualOffsetX,
|
|
2740
2760
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
2741
|
-
fill: I.value === e.groupId ? `url(#individual_scale_gradient_${
|
|
2761
|
+
fill: I.value === e.groupId ? `url(#individual_scale_gradient_${E.value}_${u})` : "transparent",
|
|
2742
2762
|
onMouseenter: (a) => I.value = e.groupId,
|
|
2743
2763
|
onMouseleave: s[0] || (s[0] = (a) => I.value = null)
|
|
2744
2764
|
}, null, 40, gi))), 256))
|
|
@@ -2770,7 +2790,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2770
2790
|
ref_key: "timeLabelsEls",
|
|
2771
2791
|
ref: ul
|
|
2772
2792
|
}, [
|
|
2773
|
-
t.$slots["time-label"] ? (n(!0), r(d, { key: 0 }, w(mt.value, (e, u) =>
|
|
2793
|
+
t.$slots["time-label"] ? (n(!0), r(d, { key: 0 }, w(mt.value, (e, u) => B(t.$slots, "time-label", tl({
|
|
2774
2794
|
key: `time_label_${e.id}`,
|
|
2775
2795
|
ref_for: !0
|
|
2776
2796
|
}, {
|
|
@@ -2855,7 +2875,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2855
2875
|
x: e.x1,
|
|
2856
2876
|
width: c.value.width,
|
|
2857
2877
|
height: v(P)(e.areaHeight, 0),
|
|
2858
|
-
fill: v(
|
|
2878
|
+
fill: v(ze)(e.config.area.fill, e.config.area.opacity),
|
|
2859
2879
|
style: { animation: "none !important" }
|
|
2860
2880
|
}, null, 8, wi)) : h("", !0),
|
|
2861
2881
|
e.config.label.text && e.show && isFinite(e._box.y) ? (n(), r("rect", tl({
|
|
@@ -2902,17 +2922,17 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2902
2922
|
"data-start": m.value.start,
|
|
2903
2923
|
"data-end": m.value.end
|
|
2904
2924
|
}), null, 16, Ci)) : h("", !0),
|
|
2905
|
-
|
|
2925
|
+
B(t.$slots, "svg", {
|
|
2906
2926
|
svg: {
|
|
2907
2927
|
...to.value,
|
|
2908
|
-
data: [...ae.value, ...
|
|
2928
|
+
data: [...ae.value, ...Ce.value, ...xe.value],
|
|
2909
2929
|
drawingArea: c.value
|
|
2910
2930
|
}
|
|
2911
2931
|
}, void 0, !0)
|
|
2912
2932
|
], 512)
|
|
2913
2933
|
], 46, Ms)),
|
|
2914
2934
|
t.$slots.watermark ? (n(), r("div", Ti, [
|
|
2915
|
-
|
|
2935
|
+
B(t.$slots, "watermark", ke(_e({ isPrinting: v(dt) || v(Bt) })), void 0, !0)
|
|
2916
2936
|
])) : h("", !0),
|
|
2917
2937
|
(n(!0), r(d, null, w(ae.value, (e, u) => (n(), r(d, {
|
|
2918
2938
|
key: `tag_line_${e.id}`
|
|
@@ -2932,14 +2952,14 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2932
2952
|
svgElement: ue.value,
|
|
2933
2953
|
x: c.value.right + l.value.line.tag.fontSize / 1.5,
|
|
2934
2954
|
y: a.y,
|
|
2935
|
-
element:
|
|
2955
|
+
element: Re.value[`${u}_${i}_right_line`],
|
|
2936
2956
|
position: "right"
|
|
2937
2957
|
}).top + "px",
|
|
2938
2958
|
left: v(Ue)({
|
|
2939
2959
|
svgElement: ue.value,
|
|
2940
2960
|
x: c.value.right + l.value.line.tag.fontSize / 1.5,
|
|
2941
2961
|
y: a.y,
|
|
2942
|
-
element:
|
|
2962
|
+
element: Re.value[`${u}_${i}_right_line`],
|
|
2943
2963
|
position: "right"
|
|
2944
2964
|
}).left + "px",
|
|
2945
2965
|
height: "fit-content",
|
|
@@ -2984,14 +3004,14 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
2984
3004
|
svgElement: ue.value,
|
|
2985
3005
|
x: c.value.left - l.value.line.tag.fontSize / 1.5,
|
|
2986
3006
|
y: a.y,
|
|
2987
|
-
element:
|
|
3007
|
+
element: Re.value[`${u}_${i}_left_line`],
|
|
2988
3008
|
position: "left"
|
|
2989
3009
|
}).top + "px",
|
|
2990
3010
|
left: v(Ue)({
|
|
2991
3011
|
svgElement: ue.value,
|
|
2992
3012
|
x: c.value.left - l.value.line.tag.fontSize / 1.5,
|
|
2993
3013
|
y: a.y,
|
|
2994
|
-
element:
|
|
3014
|
+
element: Re.value[`${u}_${i}_left_line`],
|
|
2995
3015
|
position: "left"
|
|
2996
3016
|
}).left + "px",
|
|
2997
3017
|
height: "fit-content",
|
|
@@ -3044,14 +3064,14 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
3044
3064
|
svgElement: ue.value,
|
|
3045
3065
|
x: c.value.right + l.value.plot.tag.fontSize / 1.5,
|
|
3046
3066
|
y: a.y,
|
|
3047
|
-
element:
|
|
3067
|
+
element: Re.value[`${u}_${i}_right_plot`],
|
|
3048
3068
|
position: "right"
|
|
3049
3069
|
}).top + "px",
|
|
3050
3070
|
left: v(Ue)({
|
|
3051
3071
|
svgElement: ue.value,
|
|
3052
3072
|
x: c.value.right + l.value.plot.tag.fontSize / 1.5,
|
|
3053
3073
|
y: a.y,
|
|
3054
|
-
element:
|
|
3074
|
+
element: Re.value[`${u}_${i}_right_plot`],
|
|
3055
3075
|
position: "right"
|
|
3056
3076
|
}).left + "px",
|
|
3057
3077
|
height: "fit-content",
|
|
@@ -3096,14 +3116,14 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
3096
3116
|
svgElement: ue.value,
|
|
3097
3117
|
x: c.value.left - l.value.plot.tag.fontSize / 1.5,
|
|
3098
3118
|
y: a.y,
|
|
3099
|
-
element:
|
|
3119
|
+
element: Re.value[`${u}_${i}_left_plot`],
|
|
3100
3120
|
position: "left"
|
|
3101
3121
|
}).top + "px",
|
|
3102
3122
|
left: v(Ue)({
|
|
3103
3123
|
svgElement: ue.value,
|
|
3104
3124
|
x: c.value.left - l.value.plot.tag.fontSize / 1.5,
|
|
3105
3125
|
y: a.y,
|
|
3106
|
-
element:
|
|
3126
|
+
element: Re.value[`${u}_${i}_left_plot`],
|
|
3107
3127
|
position: "left"
|
|
3108
3128
|
}).left + "px",
|
|
3109
3129
|
height: "fit-content",
|
|
@@ -3138,10 +3158,10 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
3138
3158
|
], 4)) : h("", !0)
|
|
3139
3159
|
], 64))), 128))
|
|
3140
3160
|
], 64))), 128)),
|
|
3141
|
-
l.value.chart.zoom.show &&
|
|
3161
|
+
l.value.chart.zoom.show && Ne.value > 6 && ct.value && Jt.value ? (n(), Te(_s, {
|
|
3142
3162
|
key: 5,
|
|
3143
3163
|
ref_key: "chartSlicer",
|
|
3144
|
-
ref:
|
|
3164
|
+
ref: Oe,
|
|
3145
3165
|
allMinimaps: Io.value,
|
|
3146
3166
|
background: l.value.chart.zoom.color,
|
|
3147
3167
|
borderColor: l.value.chart.backgroundColor,
|
|
@@ -3159,7 +3179,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
3159
3179
|
isPreview: Ft.value,
|
|
3160
3180
|
labelLeft: de.value[0] ? de.value[0].text : "",
|
|
3161
3181
|
labelRight: de.value.at(-1) ? de.value.at(-1).text : "",
|
|
3162
|
-
max:
|
|
3182
|
+
max: Ne.value,
|
|
3163
3183
|
min: 0,
|
|
3164
3184
|
minimap: zo.value,
|
|
3165
3185
|
minimapCompact: l.value.chart.zoom.minimap.compact,
|
|
@@ -3172,7 +3192,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
3172
3192
|
minimapSelectedIndex: _.value,
|
|
3173
3193
|
minimapSelectionRadius: l.value.chart.zoom.minimap.selectionRadius,
|
|
3174
3194
|
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) =>
|
|
3195
|
+
refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...jl.dataset.map((e) => De(e.series).length)),
|
|
3176
3196
|
refreshStartPoint: l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex : 0,
|
|
3177
3197
|
selectColor: l.value.chart.zoom.highlightColor,
|
|
3178
3198
|
selectedSeries: je.value,
|
|
@@ -3191,17 +3211,17 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
3191
3211
|
"onUpdate:end": xo,
|
|
3192
3212
|
"onUpdate:start": bo
|
|
3193
3213
|
}, {
|
|
3194
|
-
"reset-action":
|
|
3195
|
-
|
|
3214
|
+
"reset-action": G(({ reset: e }) => [
|
|
3215
|
+
B(t.$slots, "reset-action", ke(_e({ reset: e })), void 0, !0)
|
|
3196
3216
|
]),
|
|
3197
3217
|
_: 3
|
|
3198
3218
|
}, 8, ["allMinimaps", "background", "borderColor", "customFormat", "cutNullValues", "enableRangeHandles", "enableSelectionDrag", "end", "focusOnDrag", "focusRangeRatio", "fontSize", "useResetSlot", "immediate", "inputColor", "isPreview", "labelLeft", "labelRight", "max", "minimap", "minimapCompact", "minimapFrameColor", "minimapIndicatorColor", "minimapLineColor", "minimapMerged", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapSelectionRadius", "preciseLabels", "refreshEndPoint", "refreshStartPoint", "selectColor", "selectedSeries", "smoothMinimap", "start", "textColor", "timeLabels", "usePreciseLabels", "valueEnd", "valueStart", "verticalHandles"])) : h("", !0),
|
|
3199
3219
|
p("div", {
|
|
3200
|
-
id: `legend-bottom-${
|
|
3220
|
+
id: `legend-bottom-${E.value}`
|
|
3201
3221
|
}, null, 8, Yi),
|
|
3202
|
-
Ot.value ? (n(),
|
|
3222
|
+
Ot.value ? (n(), Te(qo, {
|
|
3203
3223
|
key: 6,
|
|
3204
|
-
to: l.value.chart.legend.position === "top" ? `#legend-top-${
|
|
3224
|
+
to: l.value.chart.legend.position === "top" ? `#legend-top-${E.value}` : `#legend-bottom-${E.value}`
|
|
3205
3225
|
}, [
|
|
3206
3226
|
l.value.chart.legend.show ? (n(), r("div", {
|
|
3207
3227
|
key: 0,
|
|
@@ -3215,7 +3235,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
3215
3235
|
(n(!0), r(d, null, w(me.value, (e, u) => (n(), r("div", {
|
|
3216
3236
|
key: `div_legend_item_${u}`,
|
|
3217
3237
|
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":
|
|
3238
|
+
class: ll({ "vue-ui-xy-legend-item-alone": me.value.length === 1, "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": J.value.includes(e.id) })
|
|
3219
3239
|
}, [
|
|
3220
3240
|
bl.value[e.type] === "line" ? (n(), r("svg", Xi, [
|
|
3221
3241
|
p("rect", {
|
|
@@ -3255,7 +3275,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
3255
3275
|
height: "32",
|
|
3256
3276
|
width: "32",
|
|
3257
3277
|
stroke: "none",
|
|
3258
|
-
fill: t.$slots.pattern ? `url(#pattern_${
|
|
3278
|
+
fill: t.$slots.pattern ? `url(#pattern_${E.value}_${e.slotAbsoluteIndex})` : e.color
|
|
3259
3279
|
}, null, 8, Zi)) : h("", !0)
|
|
3260
3280
|
])) : (n(), r("svg", Ji, [
|
|
3261
3281
|
vl(Ql, {
|
|
@@ -3274,7 +3294,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
3274
3294
|
ref_key: "chartLegend",
|
|
3275
3295
|
ref: sl
|
|
3276
3296
|
}, [
|
|
3277
|
-
|
|
3297
|
+
B(t.$slots, "legend", { legend: me.value }, void 0, !0)
|
|
3278
3298
|
], 512))
|
|
3279
3299
|
], 8, ["to"])) : h("", !0),
|
|
3280
3300
|
t.$slots.source ? (n(), r("div", {
|
|
@@ -3283,7 +3303,7 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
3283
3303
|
ref: gl,
|
|
3284
3304
|
dir: "auto"
|
|
3285
3305
|
}, [
|
|
3286
|
-
|
|
3306
|
+
B(t.$slots, "source", {}, void 0, !0)
|
|
3287
3307
|
], 512)) : h("", !0),
|
|
3288
3308
|
vl(v(Ga), {
|
|
3289
3309
|
show: f.value.showTooltip && At.value,
|
|
@@ -3305,20 +3325,20 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
3305
3325
|
smoothForce: l.value.chart.tooltip.smoothForce,
|
|
3306
3326
|
smoothSnapThreshold: l.value.chart.tooltip.smoothSnapThreshold
|
|
3307
3327
|
}, {
|
|
3308
|
-
"tooltip-before":
|
|
3309
|
-
|
|
3328
|
+
"tooltip-before": G(() => [
|
|
3329
|
+
B(t.$slots, "tooltip-before", ke(_e({ ...da.value })), void 0, !0)
|
|
3310
3330
|
]),
|
|
3311
|
-
"tooltip-after":
|
|
3312
|
-
|
|
3331
|
+
"tooltip-after": G(() => [
|
|
3332
|
+
B(t.$slots, "tooltip-after", ke(_e({ ...da.value })), void 0, !0)
|
|
3313
3333
|
]),
|
|
3314
3334
|
_: 3
|
|
3315
3335
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
3316
|
-
ct.value && l.value.chart.userOptions.buttons.table ? (n(),
|
|
3336
|
+
ct.value && l.value.chart.userOptions.buttons.table ? (n(), Te(Zo($l.value.component), tl({ key: 8 }, $l.value.props, {
|
|
3317
3337
|
ref_key: "tableUnit",
|
|
3318
3338
|
ref: il,
|
|
3319
3339
|
onClose: $a
|
|
3320
3340
|
}), Ca({
|
|
3321
|
-
content:
|
|
3341
|
+
content: G(() => [
|
|
3322
3342
|
p("div", {
|
|
3323
3343
|
style: $(`${v(dt) || l.value.table.useDialog ? "" : "max-height:400px"};${l.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${l.value.table.useDialog ? "" : "margin-top:48px"}`)
|
|
3324
3344
|
}, [
|
|
@@ -3340,11 +3360,11 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
3340
3360
|
}, null, 8, ["stroke"])
|
|
3341
3361
|
])
|
|
3342
3362
|
]),
|
|
3343
|
-
pl.value ? (n(),
|
|
3363
|
+
pl.value ? (n(), Te(v(qa), {
|
|
3344
3364
|
key: `sparkline_${ut.value}`,
|
|
3345
3365
|
dataset: Ao.value,
|
|
3346
3366
|
config: Co.value
|
|
3347
|
-
}, null, 8, ["dataset", "config"])) : (n(),
|
|
3367
|
+
}, null, 8, ["dataset", "config"])) : (n(), Te(v(Xa), {
|
|
3348
3368
|
key: `table_${Tt.value}`,
|
|
3349
3369
|
colNames: Gl.value.colNames,
|
|
3350
3370
|
head: Gl.value.head,
|
|
@@ -3354,11 +3374,11 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
3354
3374
|
withCloseButton: !l.value.table.useDialog,
|
|
3355
3375
|
onClose: $a
|
|
3356
3376
|
}, {
|
|
3357
|
-
th:
|
|
3377
|
+
th: G(({ th: e }) => [
|
|
3358
3378
|
p("div", { innerHTML: e }, null, 8, Qi)
|
|
3359
3379
|
]),
|
|
3360
|
-
td:
|
|
3361
|
-
Ta(te(isNaN(Number(e)) ? e : v(
|
|
3380
|
+
td: G(({ td: e }) => [
|
|
3381
|
+
Ta(te(isNaN(Number(e)) ? e : v(Fe)({
|
|
3362
3382
|
p: l.value.chart.labels.prefix,
|
|
3363
3383
|
v: e,
|
|
3364
3384
|
s: l.value.chart.labels.suffix,
|
|
@@ -3373,14 +3393,14 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
3373
3393
|
}, [
|
|
3374
3394
|
l.value.table.useDialog ? {
|
|
3375
3395
|
name: "title",
|
|
3376
|
-
fn:
|
|
3396
|
+
fn: G(() => [
|
|
3377
3397
|
Ta(te($l.value.title), 1)
|
|
3378
3398
|
]),
|
|
3379
3399
|
key: "0"
|
|
3380
3400
|
} : void 0,
|
|
3381
3401
|
l.value.table.useDialog ? {
|
|
3382
3402
|
name: "actions",
|
|
3383
|
-
fn:
|
|
3403
|
+
fn: G(() => [
|
|
3384
3404
|
p("button", {
|
|
3385
3405
|
tabindex: "0",
|
|
3386
3406
|
class: "vue-ui-user-options-button",
|
|
@@ -3395,10 +3415,10 @@ const $s = ["id"], Ls = ["id"], Ms = ["viewBox", "aria-label"], As = ["x", "y",
|
|
|
3395
3415
|
key: "1"
|
|
3396
3416
|
} : void 0
|
|
3397
3417
|
]), 1040)) : h("", !0),
|
|
3398
|
-
v(ie) ? (n(),
|
|
3418
|
+
v(ie) ? (n(), Te(fs, { key: 9 })) : h("", !0)
|
|
3399
3419
|
], 46, $s));
|
|
3400
3420
|
}
|
|
3401
|
-
}, bn = /* @__PURE__ */ Ss(ji, [["__scopeId", "data-v-
|
|
3421
|
+
}, bn = /* @__PURE__ */ Ss(ji, [["__scopeId", "data-v-71b071f4"]]);
|
|
3402
3422
|
export {
|
|
3403
3423
|
bn as default
|
|
3404
3424
|
};
|