vue-data-ui 3.4.1 → 3.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PackageVersion-VpPtLYhK.js → PackageVersion-Df-8U2yE.js} +1 -1
- package/dist/{Title-CFmv95In.js → Title-D7_5ICX_.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/{themes-Dw-dDudK.js → themes-AUNCOb2G.js} +5 -5
- package/dist/types/vue-data-ui.d.ts +8 -0
- package/dist/{useNestedProp-B7CiTRDS.js → useNestedProp-CtheCta-.js} +4 -2
- package/dist/{vue-data-ui-oDJui39L.js → vue-data-ui-OfJx8jSP.js} +63 -63
- package/dist/vue-data-ui.js +65 -65
- package/dist/{vue-ui-3d-bar-wycTM073.js → vue-ui-3d-bar-Bp-sqsyU.js} +4 -4
- package/dist/{vue-ui-accordion-BKkTS12x.js → vue-ui-accordion-DXdd_qAk.js} +1 -1
- package/dist/{vue-ui-age-pyramid-C5NUZ_Y7.js → vue-ui-age-pyramid-CUVtajBe.js} +4 -4
- package/dist/{vue-ui-annotator-DkSYrnwb.js → vue-ui-annotator-D5GKadj6.js} +2 -2
- package/dist/{vue-ui-bullet-CIsX5UJw.js → vue-ui-bullet-rQoLiK2b.js} +4 -4
- package/dist/{vue-ui-candlestick-BRFx3_KK.js → vue-ui-candlestick-D7eCxbQ8.js} +479 -456
- package/dist/{vue-ui-carousel-table-hJySHJTu.js → vue-ui-carousel-table-Bu8HSJRc.js} +2 -2
- package/dist/{vue-ui-chestnut-D4GjvQh0.js → vue-ui-chestnut-BqyduBAg.js} +3 -3
- package/dist/{vue-ui-chord-By2NOs0N.js → vue-ui-chord-VTRyVBx4.js} +4 -4
- package/dist/{vue-ui-circle-pack-OCmAkTNs.js → vue-ui-circle-pack-DIXUixuK.js} +4 -4
- package/dist/{vue-ui-cursor-iuati4v1.js → vue-ui-cursor-TFVxgVEa.js} +1 -1
- package/dist/{vue-ui-dashboard-C7fwU9xb.js → vue-ui-dashboard-DeFPygcZ.js} +63 -63
- package/dist/{vue-ui-digits-eYxf3UFN.js → vue-ui-digits-B6cIiy1Z.js} +1 -1
- package/dist/{vue-ui-donut-dVVBUQJz.js → vue-ui-donut-B3kaTm1I.js} +4 -4
- package/dist/{vue-ui-donut-evolution-BoWGaQP0.js → vue-ui-donut-evolution-CGxyHap0.js} +4 -4
- package/dist/{vue-ui-dumbbell-YMPZ3CVA.js → vue-ui-dumbbell-BpHU2gPm.js} +4 -4
- package/dist/{vue-ui-flow-BE62rVS3.js → vue-ui-flow-B1jwV-to.js} +4 -4
- package/dist/{vue-ui-funnel-kNpDFAWo.js → vue-ui-funnel-C07ghZCo.js} +4 -4
- package/dist/{vue-ui-galaxy-BBBiXXyk.js → vue-ui-galaxy-C2aCa9u0.js} +4 -4
- package/dist/{vue-ui-gauge-PQNTTl3Y.js → vue-ui-gauge-BymG1mO4.js} +4 -4
- package/dist/{vue-ui-gizmo-D3gQxQz3.js → vue-ui-gizmo-BjPbDZKf.js} +2 -2
- package/dist/{vue-ui-heatmap-CKWQButF.js → vue-ui-heatmap-D2udHyOO.js} +5 -5
- package/dist/{vue-ui-history-plot-DYFzdR4Z.js → vue-ui-history-plot-C1v5py9J.js} +4 -4
- package/dist/{vue-ui-kpi-N8s0i48S.js → vue-ui-kpi-4fToBGEE.js} +2 -2
- package/dist/{vue-ui-mini-loader-Db-9iQcC.js → vue-ui-mini-loader-o6xsgflK.js} +1 -1
- package/dist/{vue-ui-molecule-Cklyb74B.js → vue-ui-molecule-QJY9Jg--.js} +3 -3
- package/dist/{vue-ui-mood-radar-Cvq4ZuLe.js → vue-ui-mood-radar-CYz7t7cO.js} +4 -4
- package/dist/{vue-ui-nested-donuts-Bm78P1ES.js → vue-ui-nested-donuts-Cs_KVggH.js} +4 -4
- package/dist/{vue-ui-onion-Bh5jTb31.js → vue-ui-onion-DI__t0Yo.js} +4 -4
- package/dist/{vue-ui-parallel-coordinate-plot-BKdN2OsW.js → vue-ui-parallel-coordinate-plot-BUFBIY0H.js} +4 -4
- package/dist/{vue-ui-quadrant-BPhJzots.js → vue-ui-quadrant-q27Crjhv.js} +4 -4
- package/dist/{vue-ui-quick-chart-DbJR9CN3.js → vue-ui-quick-chart-vA-5-zU_.js} +3 -3
- package/dist/{vue-ui-radar-CrenQprr.js → vue-ui-radar-v6sFZlta.js} +66 -66
- package/dist/{vue-ui-rating-fR2WRHYO.js → vue-ui-rating-B1TGv80Y.js} +1 -1
- package/dist/{vue-ui-relation-circle-BJ5RuZ0j.js → vue-ui-relation-circle-C_7j_HC1.js} +4 -4
- package/dist/{vue-ui-ridgeline-CKuom5Bu.js → vue-ui-ridgeline-BaDr8YsQ.js} +4 -4
- package/dist/{vue-ui-rings-B84GAEf4.js → vue-ui-rings-BcsyGpD-.js} +4 -4
- package/dist/{vue-ui-scatter-CBX-g9w3.js → vue-ui-scatter-DsvtDcRf.js} +121 -112
- package/dist/{vue-ui-skeleton-CZ8xxpEU.js → vue-ui-skeleton-DJka_Bjy.js} +2 -2
- package/dist/{vue-ui-smiley-BKXuAviQ.js → vue-ui-smiley-D-W7GeoN.js} +1 -1
- package/dist/{vue-ui-spark-trend-DOf7-cIf.js → vue-ui-spark-trend-ufRxrEgv.js} +3 -3
- package/dist/{vue-ui-sparkbar-D-MPA2zf.js → vue-ui-sparkbar-C0hU8raA.js} +3 -3
- package/dist/{vue-ui-sparkgauge-B9xRiVSU.js → vue-ui-sparkgauge-1bi-EEqb.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BWb0lqQP.js → vue-ui-sparkhistogram-H1BSDVyx.js} +3 -3
- package/dist/{vue-ui-sparkline-BF-qr8Ti.js → vue-ui-sparkline-DElVjWGk.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DnCUpk50.js → vue-ui-sparkstackbar-DE3D2xTJ.js} +3 -3
- package/dist/{vue-ui-stackbar-DvJ8Hahn.js → vue-ui-stackbar-DVTV6JcM.js} +50 -45
- package/dist/{vue-ui-strip-plot-SAh1gIs5.js → vue-ui-strip-plot-0RudVLPB.js} +4 -4
- package/dist/{vue-ui-table-heatmap-DU6GKPVy.js → vue-ui-table-heatmap-BQgeM3lZ.js} +2 -2
- package/dist/{vue-ui-table-BJdDfMYD.js → vue-ui-table-jbkT9pG2.js} +3 -3
- package/dist/{vue-ui-table-sparkline-BBFEJ8c6.js → vue-ui-table-sparkline-Elk05A1j.js} +3 -3
- package/dist/{vue-ui-thermometer-D8DH6QSN.js → vue-ui-thermometer-6QNHvlxi.js} +4 -4
- package/dist/{vue-ui-timer-CaUdAHBE.js → vue-ui-timer-BvHuXOu1.js} +3 -3
- package/dist/{vue-ui-tiremarks-_sUH1d3J.js → vue-ui-tiremarks-CCfLSw7X.js} +4 -4
- package/dist/{vue-ui-treemap-DXduzuW4.js → vue-ui-treemap-DNimXWh4.js} +4 -4
- package/dist/{vue-ui-vertical-bar-JdjmgwQj.js → vue-ui-vertical-bar-C8UcI92_.js} +5 -5
- package/dist/{vue-ui-waffle-h8zoi4Rc.js → vue-ui-waffle-CMO0x41z.js} +4 -4
- package/dist/{vue-ui-wheel-Ck1Mx37j.js → vue-ui-wheel-CB2KRY13.js} +4 -4
- package/dist/{vue-ui-word-cloud-CjWvuukM.js → vue-ui-word-cloud-BDP2WP1p.js} +162 -151
- package/dist/{vue-ui-world-Dw71_Mu2.js → vue-ui-world-CobFs5Vm.js} +2 -2
- package/dist/{vue-ui-xy-tSMgXqqb.js → vue-ui-xy-DmWHarZg.js} +841 -835
- package/dist/{vue-ui-xy-canvas-Dct7tf8w.js → vue-ui-xy-canvas-BwhZD5_d.js} +4 -4
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineAsyncComponent as Ye, useSlots as Eo, getCurrentInstance as Yo, ref as x, computed as b, onMounted as Ul, toRefs as Wo, watch as Al, watchEffect as
|
|
2
|
-
import { c as
|
|
1
|
+
import { defineAsyncComponent as Ye, useSlots as Eo, getCurrentInstance as Yo, ref as x, computed as b, onMounted as Ul, toRefs as Wo, watch as Al, watchEffect as Lt, onBeforeUnmount as ya, nextTick as Mt, createElementBlock as r, openBlock as n, normalizeStyle as $, normalizeClass as je, createBlock as Ae, createCommentVNode as h, createElementVNode as p, createVNode as vl, unref as v, createSlots as At, withCtx as ee, renderSlot as X, normalizeProps as el, guardReactiveProps as ll, Fragment as d, renderList as w, mergeProps as al, toDisplayString as ae, Teleport as Xo, resolveDynamicComponent as Go, withDirectives as Uo, vModelCheckbox as qo, createTextVNode as Ct } from "vue";
|
|
2
|
+
import { c as ka, f as _a, t as Zo, e as Jo, m as Cl, n as tl, h as Tt, p as zt, q as ql, r as E, u as wa, v as Ko, w as Qo, x as P, y as It, z as Ot, A as Nt, B as Vt, C as jo, D as Pt, E as Ft, a as se, F as es, G as Rt, H as ls, j as Bt, k as Ne, d as Ve, i as ol, s as Ce, I as as, J as We, K as Zl, L as _e, M as ts, N as Xe, O as fe, b as os, o as Ht, P as ss, Q as us, R as dl } from "./lib-BcBZIm6u.js";
|
|
3
3
|
import { t as is } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as ns, a as Jl } from "./useNestedProp-
|
|
4
|
+
import { u as ns, a as Jl } from "./useNestedProp-CtheCta-.js";
|
|
5
5
|
import { u as rs } from "./usePrinter-C1GiglOH.js";
|
|
6
6
|
import { u as cs, B as vs } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
-
import { u as
|
|
7
|
+
import { u as Dt, a as ds, l as hs } from "./useTimeLabels-BGFjWgrv.js";
|
|
8
8
|
import { u as fs } from "./useSvgExport-DrjCWun4.js";
|
|
9
9
|
import { u as gs } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
10
10
|
import ms from "./img-CFY3JivG.js";
|
|
11
|
-
import bs from "./Title-
|
|
12
|
-
import { t as xs } from "./themes-
|
|
11
|
+
import bs from "./Title-D7_5ICX_.js";
|
|
12
|
+
import { t as xs } from "./themes-AUNCOb2G.js";
|
|
13
13
|
import { _ as Kl } from "./Shape-BhNvlGIN.js";
|
|
14
14
|
import { S as ps } from "./SlicerPreview-Cobmb_1S.js";
|
|
15
|
-
import ys from "./vue-ui-accordion-
|
|
15
|
+
import ys from "./vue-ui-accordion-DXdd_qAk.js";
|
|
16
16
|
import { _ as ks } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
-
const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y", "width", "height"], Ls = { key: 1 }, Ms = { class: "vue-ui-xy-grid" }, As = ["stroke", "x1", "x2", "y1", "y2"], Cs = ["stroke", "x1", "x2", "y1", "y2"], Ts = { key: 1 }, zs = ["x1", "x2", "y1", "y2", "stroke"], Is = ["x1", "x2", "y1", "y2", "stroke"], Os = ["x1", "x2", "y1", "y2", "stroke"], Ns = { key: 3 }, Vs = ["d", "stroke"], Ps = { key: 4 }, Fs = ["d", "stroke"], Rs = ["id"], Bs = ["stop-color"], Hs = ["stop-color"], Ds = ["stop-color"], Es = ["id"], Ys = ["stop-color"], Ws = ["stop-color"], Xs = ["stop-color"], Gs = ["id"], Us = ["stop-color"], qs = ["stop-color"], Zs = ["id"], Js = ["stop-color"], Ks = ["stop-color"], Qs = ["id"], js = ["stop-color"], eu = ["stop-color"], lu = ["x", "y", "height", "width", "fill"],
|
|
17
|
+
const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y", "width", "height"], Ls = { key: 1 }, Ms = { class: "vue-ui-xy-grid" }, As = ["stroke", "x1", "x2", "y1", "y2"], Cs = ["stroke", "x1", "x2", "y1", "y2"], Ts = { key: 1 }, zs = ["x1", "x2", "y1", "y2", "stroke"], Is = ["x1", "x2", "y1", "y2", "stroke"], Os = ["x1", "x2", "y1", "y2", "stroke"], Ns = { key: 3 }, Vs = ["d", "stroke"], Ps = { key: 4 }, Fs = ["d", "stroke"], Rs = ["id"], Bs = ["stop-color"], Hs = ["stop-color"], Ds = ["stop-color"], Es = ["id"], Ys = ["stop-color"], Ws = ["stop-color"], Xs = ["stop-color"], Gs = ["id"], Us = ["stop-color"], qs = ["stop-color"], Zs = ["id"], Js = ["stop-color"], Ks = ["stop-color"], Qs = ["id"], js = ["stop-color"], eu = ["stop-color"], lu = ["x", "y", "height", "width", "fill"], au = ["x", "y", "width"], tu = { key: 0 }, ou = ["x", "y", "height", "width", "fill"], su = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], uu = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], iu = ["width", "x", "y"], nu = ["stroke", "x1", "x2", "y1", "y2"], ru = { key: 3 }, cu = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], vu = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], du = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], hu = ["fill", "font-size", "transform"], fu = ["x1", "x2", "y1", "y2", "stroke"], gu = ["x", "y", "font-size", "fill"], mu = ["x1", "x2", "y1", "y2", "stroke"], bu = ["x", "y", "font-size", "fill"], xu = ["width", "x", "y"], pu = { style: { width: "100%" } }, yu = ["d", "stroke", "stroke-width", "stroke-dasharray"], ku = ["d", "stroke", "stroke-width", "stroke-dasharray"], _u = { key: 6 }, wu = { key: 7 }, Su = ["d", "fill", "fill-opacity"], $u = { key: 0 }, Lu = ["d", "fill"], Mu = ["d", "fill"], Au = ["d", "fill"], Cu = ["d", "fill"], Tu = ["d", "stroke", "stroke-width", "stroke-dasharray"], zu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Iu = ["width", "x", "y"], Ou = { style: { width: "100%" } }, Nu = { key: 8 }, Vu = ["x", "y", "font-size", "fill"], Pu = ["x", "y", "font-size", "fill", "font-weight"], Fu = { key: 9 }, Ru = ["x", "y", "font-size", "fill"], Bu = { key: 10 }, Hu = ["x", "y"], Du = ["innerHTML"], Eu = ["x", "y"], Yu = ["innerHTML"], Wu = ["x1", "x2", "y1", "y2", "stroke"], Xu = { key: 11 }, Gu = ["x", "y", "font-size", "fill"], Uu = { key: 12 }, qu = ["x", "y"], Zu = ["innerHTML"], Ju = ["x", "y"], Ku = ["innerHTML"], Qu = ["x1", "x2", "y1", "y2", "stroke"], ju = ["x", "y", "font-size", "fill", "innerHTML"], ei = ["x", "y", "font-size", "fill", "innerHTML"], li = ["x", "y", "font-size", "fill", "innerHTML"], ai = ["x", "y", "font-size", "fill", "innerHTML"], ti = { key: 0 }, oi = ["id"], si = ["fill", "stroke"], ui = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ii = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ni = ["x", "y", "font-size", "fill", "stroke"], ri = ["id"], ci = ["stop-color"], vi = ["stop-color"], di = ["x", "y", "width", "height", "fill", "onMouseenter"], hi = ["font-size", "fill", "transform"], fi = ["x", "y", "font-size", "fill"], gi = ["text-anchor", "font-size", "fill", "transform", "onClick"], mi = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], bi = { key: 15 }, xi = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], pi = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], yi = ["y", "x", "width", "height", "fill"], ki = ["id", "x", "y", "font-size", "fill", "text-anchor"], _i = {
|
|
18
18
|
key: 16,
|
|
19
19
|
style: { "pointer-events": "none" }
|
|
20
20
|
}, wi = ["x", "y"], Si = ["innerHTML"], $i = ["cx", "cy", "r", "fill"], Li = ["data-start", "data-end"], Mi = {
|
|
@@ -79,26 +79,26 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
emits: ["selectTimeLabel", "selectX", "selectLegend"],
|
|
82
|
-
setup(Ql, { expose:
|
|
83
|
-
const g = Ql,
|
|
82
|
+
setup(Ql, { expose: Et, emit: Yt }) {
|
|
83
|
+
const g = Ql, Wt = Ye(() => import("./DataTable-DOx3zgih.js")), Xt = Ye(() => import("./Tooltip-Cs4v8OnI.js")), Gt = Ye(() => import("./UserOptions-C0YT60JN.js")), Sa = Ye(() => import("./BaseIcon-B5KaGWWC.js")), Ut = Ye(() => import("./vue-ui-table-sparkline-Elk05A1j.js")), qt = Ye(() => import("./PackageVersion-Df-8U2yE.js")), Zt = Ye(() => import("./PenAndPaper-Dj2diYr0.js")), Jt = Ye(() => import("./BaseDraggableDialog-CbuLbfrc.js")), jl = Yt, $a = Eo(), Kt = Yo(), { vue_ui_xy: hl } = ns(), Te = x(null), fl = x(null), ze = x(null), sl = x(null), gl = x(null), ml = x(null), Qt = x(null), ea = x(null), la = x(null), ul = x(null), aa = x(null), ta = x(null), Re = x(null), oa = x(null), jt = x(0), I = x(null), La = x(!0), ve = x(600), Q = x(1e3), Tl = x("0 0 1000 600"), eo = x({ x: 0, y: 0 }), bl = x({ line: "line", bar: "bar", plot: "plot" }), xl = x(!1), Ge = x(!1), Ma = x(!1), Ue = x(null), j = x([]), D = x(ka()), Aa = x(0), Ca = x(0), Ta = x(0), pl = x(!0), sa = x(0), V = x(null), za = x(!1), ua = x(!0), zl = x(!0), ue = x(null), Pe = x({}), Il = x(null), Ia = x(!1), il = x(null), _ = x(null), lo = b(() => ({
|
|
84
84
|
height: ve.value,
|
|
85
85
|
width: Q.value
|
|
86
86
|
}));
|
|
87
|
-
function
|
|
88
|
-
return Number.isFinite(
|
|
87
|
+
function Oa(a) {
|
|
88
|
+
return Number.isFinite(a) ? Math.max(0, Math.floor(a)) : 0;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
91
|
-
return Number.isFinite(
|
|
90
|
+
function ia(a, s, e = 0) {
|
|
91
|
+
return Number.isFinite(a) && Number.isFinite(s) && Math.abs(s) > 1e-9 ? a / s : e;
|
|
92
92
|
}
|
|
93
|
-
const
|
|
93
|
+
const Na = x(!1), y = x({
|
|
94
94
|
xAxis: 18,
|
|
95
95
|
yAxis: 12,
|
|
96
96
|
dataLabels: 20,
|
|
97
97
|
plotLabels: 10
|
|
98
98
|
}), we = x({ plot: 3, line: 3 });
|
|
99
99
|
Ul(() => {
|
|
100
|
-
|
|
101
|
-
[null, void 0].includes(
|
|
100
|
+
Ia.value = !0, g.dataset.length && g.dataset.forEach((a, s) => {
|
|
101
|
+
[null, void 0].includes(a.series) && _a({
|
|
102
102
|
componentName: "VueUiXy",
|
|
103
103
|
type: "datasetSerieAttribute",
|
|
104
104
|
property: "series (number[])",
|
|
@@ -107,63 +107,63 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
107
107
|
});
|
|
108
108
|
});
|
|
109
109
|
});
|
|
110
|
-
function
|
|
110
|
+
function na() {
|
|
111
111
|
if (!Object.keys(g.config || {}).length)
|
|
112
112
|
return hl;
|
|
113
|
-
const
|
|
113
|
+
const a = Jl({
|
|
114
114
|
userConfig: g.config,
|
|
115
115
|
defaultConfig: hl
|
|
116
116
|
});
|
|
117
|
-
return g.config && fe(g.config, "chart.highlightArea") && (Array.isArray(g.config.chart.highlightArea) ?
|
|
117
|
+
return g.config && fe(g.config, "chart.highlightArea") && (Array.isArray(g.config.chart.highlightArea) ? a.chart.highlightArea = g.config.chart.highlightArea : a.chart.highlightArea = [g.config.chart.highlightArea]), g.config && fe(g.config, "chart.grid.labels.yAxis.scaleMin") ? a.chart.grid.labels.yAxis.scaleMin = g.config.chart.grid.labels.yAxis.scaleMin : a.chart.grid.labels.yAxis.scaleMin = null, g.config && fe(g.config, "chart.grid.labels.yAxis.scaleMax") ? a.chart.grid.labels.yAxis.scaleMax = g.config.chart.grid.labels.yAxis.scaleMax : a.chart.grid.labels.yAxis.scaleMax = null, g.config && fe(g.config, "chart.zoom.startIndex") ? a.chart.zoom.startIndex = g.config.chart.zoom.startIndex : a.chart.zoom.startIndex = null, g.config && fe(g.config, "chart.zoom.endIndex") ? a.chart.zoom.endIndex = g.config.chart.zoom.endIndex : a.chart.zoom.endIndex = null, g.config && fe(g.config, "chart.grid.labels.yAxis.groupColor") ? a.chart.grid.labels.yAxis.groupColor = g.config.chart.grid.labels.yAxis.groupColor : a.chart.grid.labels.yAxis.groupColor = null, g.config && fe(g.config, "chart.annotations") && Array.isArray(g.config.chart.annotations) && g.config.chart.annotations.length ? a.chart.annotations = g.config.chart.annotations.map((s) => Jl({
|
|
118
118
|
defaultConfig: hl.chart.annotations[0],
|
|
119
119
|
userConfig: s
|
|
120
|
-
})) :
|
|
120
|
+
})) : a.chart.annotations = [], g.config && fe(g.config, "chart.grid.position") && g.config.chart.grid.position === "start" && g.dataset.length && g.dataset.some((s) => s.type === "bar") && (a.chart.grid.position = "middle", fe(g.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), g.config && fe(g.config, "chart.grid.labels.yAxis.serieNameFormatter") ? a.chart.grid.labels.yAxis.serieNameFormatter = g.config.chart.grid.labels.yAxis.serieNameFormatter : a.chart.grid.labels.yAxis.serieNameFormatter = null, g.config && fe(g.config, "events.datapointEnter") ? a.events.datapointEnter = g.config.events.datapointEnter : a.events.datapointEnter = null, g.config && fe(g.config, "events.datapointLeave") ? a.events.datapointLeave = g.config.events.datapointLeave : a.events.datapointLeave = null, g.config && fe(g.config, "events.datapointClick") ? a.events.datapointClick = g.config.events.datapointClick : a.events.datapointClick = null, g.config && fe(g.config, "chart.highlightArea") && (Array.isArray(g.config.chart.highlightArea) ? a.chart.highlightArea = g.config.chart.highlightArea.map((s) => Va({
|
|
121
121
|
defaultConfig: hl.chart.highlightArea,
|
|
122
122
|
userConfig: s
|
|
123
|
-
})) :
|
|
123
|
+
})) : a.chart.highlightArea = Va({
|
|
124
124
|
defaultConfig: hl.chart.highlightArea,
|
|
125
125
|
userConfig: g.config.chart.highlightArea
|
|
126
|
-
})),
|
|
126
|
+
})), a.theme ? {
|
|
127
127
|
...Jl({
|
|
128
|
-
userConfig: xs.vue_ui_xy[
|
|
129
|
-
defaultConfig:
|
|
128
|
+
userConfig: xs.vue_ui_xy[a.theme] || g.config,
|
|
129
|
+
defaultConfig: a
|
|
130
130
|
}),
|
|
131
|
-
customPalette: os[
|
|
132
|
-
} :
|
|
131
|
+
customPalette: os[a.theme] || g.palette
|
|
132
|
+
} : a;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Va({ defaultConfig: a, userConfig: s }) {
|
|
135
135
|
return Jl({
|
|
136
|
-
defaultConfig:
|
|
136
|
+
defaultConfig: a,
|
|
137
137
|
userConfig: s
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
|
-
const
|
|
140
|
+
const ra = b({
|
|
141
141
|
get() {
|
|
142
142
|
return !!g.dataset && g.dataset.length;
|
|
143
143
|
},
|
|
144
|
-
set(
|
|
145
|
-
return
|
|
144
|
+
set(a) {
|
|
145
|
+
return a;
|
|
146
146
|
}
|
|
147
|
-
}), l = x(
|
|
147
|
+
}), l = x(na()), f = x({
|
|
148
148
|
dataLabels: { show: !0 },
|
|
149
149
|
showTooltip: !0,
|
|
150
150
|
showTable: !1,
|
|
151
151
|
isStacked: !1,
|
|
152
152
|
useIndividualScale: !1
|
|
153
153
|
});
|
|
154
|
-
function
|
|
155
|
-
|
|
154
|
+
function ca() {
|
|
155
|
+
Na.value ? (f.value.isStacked = l.value.chart.grid.labels.yAxis.stacked, f.value.useIndividualScale == null && (f.value.useIndividualScale = l.value.chart.grid.labels.yAxis.useIndividualScale)) : (f.value = {
|
|
156
156
|
dataLabels: { show: !0 },
|
|
157
157
|
showTooltip: l.value.chart.tooltip.show === !0,
|
|
158
158
|
showTable: l.value.showTable === !0,
|
|
159
159
|
isStacked: l.value.chart.grid.labels.yAxis.stacked,
|
|
160
160
|
useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
|
|
161
|
-
},
|
|
161
|
+
}, Na.value = !0);
|
|
162
162
|
}
|
|
163
|
-
const yl = b(() => !!l.value.debug), { loading:
|
|
163
|
+
const yl = b(() => !!l.value.debug), { loading: ie, FINAL_DATASET: ge, manualLoading: Ol } = cs({
|
|
164
164
|
...Wo(g),
|
|
165
165
|
FINAL_CONFIG: l,
|
|
166
|
-
prepareConfig:
|
|
166
|
+
prepareConfig: na,
|
|
167
167
|
callback: () => {
|
|
168
168
|
Promise.resolve().then(async () => {
|
|
169
169
|
await Rl(), f.value.showTable = l.value.showTable;
|
|
@@ -242,35 +242,35 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
242
242
|
}
|
|
243
243
|
})
|
|
244
244
|
});
|
|
245
|
-
function
|
|
245
|
+
function ao(a) {
|
|
246
246
|
const s = /* @__PURE__ */ new WeakMap();
|
|
247
247
|
return (e, ...u) => {
|
|
248
|
-
let
|
|
248
|
+
let t = s.get(e);
|
|
249
249
|
const i = JSON.stringify(u);
|
|
250
|
-
if (
|
|
251
|
-
const o =
|
|
252
|
-
return
|
|
250
|
+
if (t && t.has(i)) return t.get(i);
|
|
251
|
+
const o = a(e, ...u);
|
|
252
|
+
return t || (t = /* @__PURE__ */ new Map(), s.set(e, t)), t.set(i, o), o;
|
|
253
253
|
};
|
|
254
254
|
}
|
|
255
|
-
const
|
|
256
|
-
get: () => Math.max(...ge.value.map((
|
|
257
|
-
set: (
|
|
258
|
-
}), m = x({ start: 0, end:
|
|
259
|
-
function
|
|
260
|
-
Se.value[
|
|
255
|
+
const to = ao((a, s) => wa({ data: a, threshold: s })), Be = (a) => to(a, l.value.downsample.threshold), Ie = b({
|
|
256
|
+
get: () => Math.max(...ge.value.map((a) => Be(a.series).length)),
|
|
257
|
+
set: (a) => a
|
|
258
|
+
}), m = x({ start: 0, end: Ie.value }), Se = x({ start: 0, end: Ie.value }), Pa = b(() => l.value.chart.zoom.preview.enable && (Se.value.start !== m.value.start || Se.value.end !== m.value.end));
|
|
259
|
+
function Fa(a, s) {
|
|
260
|
+
Se.value[a] = s;
|
|
261
261
|
}
|
|
262
262
|
function nl() {
|
|
263
|
-
const
|
|
263
|
+
const a = Math.max(
|
|
264
264
|
1,
|
|
265
265
|
...ge.value.map((u) => Be(u.series).length)
|
|
266
266
|
);
|
|
267
|
-
let s = Math.max(0, Math.min(m.value.start ?? 0,
|
|
268
|
-
(!Number.isFinite(s) || !Number.isFinite(e) || e <= s) && (s = 0, e =
|
|
267
|
+
let s = Math.max(0, Math.min(m.value.start ?? 0, a - 1)), e = Math.max(s + 1, Math.min(m.value.end ?? a, a));
|
|
268
|
+
(!Number.isFinite(s) || !Number.isFinite(e) || e <= s) && (s = 0, e = a), m.value = { start: s, end: e }, Se.value.start = s, Se.value.end = e, ze.value && (ze.value.setStartValue(s), ze.value.setEndValue(e));
|
|
269
269
|
}
|
|
270
270
|
const oo = b(() => {
|
|
271
|
-
const { left:
|
|
271
|
+
const { left: a, top: s, width: e, height: u } = c.value, t = m.value.start, o = m.value.end - t, A = e / o, C = Se.value.start - t, O = Se.value.end - t, S = Math.max(0, Math.min(o, C)), T = Math.max(0, Math.min(o, O));
|
|
272
272
|
return {
|
|
273
|
-
x:
|
|
273
|
+
x: a + S * A,
|
|
274
274
|
y: s,
|
|
275
275
|
width: (T - S) * A,
|
|
276
276
|
height: u,
|
|
@@ -287,216 +287,216 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
287
287
|
}
|
|
288
288
|
};
|
|
289
289
|
});
|
|
290
|
-
Al(() => g.selectedXIndex, (
|
|
290
|
+
Al(() => g.selectedXIndex, (a) => {
|
|
291
291
|
if ([null, void 0].includes(g.selectedXIndex)) {
|
|
292
292
|
_.value = null;
|
|
293
293
|
return;
|
|
294
294
|
}
|
|
295
|
-
const s =
|
|
296
|
-
s < 0 ||
|
|
295
|
+
const s = a - m.value.start;
|
|
296
|
+
s < 0 || a >= m.value.end ? _.value = null : _.value = s ?? null;
|
|
297
297
|
}, { immediate: !0 });
|
|
298
|
-
const { isPrinting:
|
|
298
|
+
const { isPrinting: va, isImaging: Ra, generatePdf: Ba, generateImage: Ha } = rs({
|
|
299
299
|
elementId: `vue-ui-xy_${D.value}`,
|
|
300
300
|
fileName: l.value.chart.title.text || "vue-ui-xy",
|
|
301
301
|
options: l.value.chart.userOptions.print
|
|
302
302
|
}), so = x(!1), Nl = b(() => Jo(l.value.customPalette)), Vl = b(() => {
|
|
303
303
|
if (l.value.chart.grid.labels.yAxis.scaleMin !== null)
|
|
304
304
|
return l.value.chart.grid.labels.yAxis.scaleMin;
|
|
305
|
-
const
|
|
306
|
-
return
|
|
305
|
+
const a = Math.min(...Fe.value.filter((s) => !j.value.includes(s.id)).map((s) => Math.min(...s.series)));
|
|
306
|
+
return a > 0 ? 0 : a;
|
|
307
307
|
}), Pl = b(() => {
|
|
308
308
|
if (l.value.chart.grid.labels.yAxis.scaleMax)
|
|
309
309
|
return l.value.chart.grid.labels.yAxis.scaleMax;
|
|
310
|
-
const
|
|
311
|
-
return Vl.value ===
|
|
312
|
-
}), $e = b(() => l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(Vl.value, Pl.value < 0 ? 0 : Pl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps) :
|
|
313
|
-
const e = Be(
|
|
310
|
+
const a = Math.max(...Fe.value.filter((s) => !j.value.includes(s.id)).map((s) => Math.max(...s.series)));
|
|
311
|
+
return Vl.value === a ? a + 1 : a;
|
|
312
|
+
}), $e = b(() => l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(Vl.value, Pl.value < 0 ? 0 : Pl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps) : tl(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) ? $e.value.min >= 0 ? 0 : Math.abs($e.value.min) : -$e.value.min), Fe = b(() => La.value ? ge.value.map((a, s) => {
|
|
313
|
+
const e = Be(a.series), u = `uniqueId_${s}`;
|
|
314
314
|
return {
|
|
315
|
-
...
|
|
315
|
+
...a,
|
|
316
316
|
slotAbsoluteIndex: s,
|
|
317
|
-
series: e.map((
|
|
318
|
-
color:
|
|
317
|
+
series: e.map((t) => ql(t) ? t : null).slice(m.value.start, m.value.end),
|
|
318
|
+
color: Tt(a.color ? a.color : Nl.value[s] ? Nl.value[s] : zt[s]),
|
|
319
319
|
id: u,
|
|
320
|
-
scaleLabel:
|
|
320
|
+
scaleLabel: a.scaleLabel || u
|
|
321
321
|
};
|
|
322
|
-
}) : ge.value), Le = b(() => Fe.value.map((
|
|
322
|
+
}) : ge.value), Le = b(() => Fe.value.map((a, s) => ({
|
|
323
323
|
absoluteIndex: s,
|
|
324
|
-
...
|
|
325
|
-
series:
|
|
326
|
-
absoluteValues:
|
|
327
|
-
segregate: () =>
|
|
328
|
-
isSegregated: j.value.includes(
|
|
329
|
-
}))),
|
|
330
|
-
...
|
|
331
|
-
series:
|
|
332
|
-
absoluteValues:
|
|
333
|
-
})).filter((
|
|
324
|
+
...a,
|
|
325
|
+
series: a.series.map((e) => e + kl.value),
|
|
326
|
+
absoluteValues: a.series,
|
|
327
|
+
segregate: () => ot(a),
|
|
328
|
+
isSegregated: j.value.includes(a.id)
|
|
329
|
+
}))), ye = b(() => Fe.value.map((a, s) => ({
|
|
330
|
+
...a,
|
|
331
|
+
series: a.series.map((e) => e + kl.value),
|
|
332
|
+
absoluteValues: a.series
|
|
333
|
+
})).filter((a) => !j.value.includes(a.id)));
|
|
334
334
|
function uo() {
|
|
335
|
-
let
|
|
336
|
-
|
|
335
|
+
let a = 0;
|
|
336
|
+
aa.value && (a = Array.from(aa.value.querySelectorAll("text")).reduce((t, i) => {
|
|
337
337
|
const o = i.getComputedTextLength();
|
|
338
|
-
return (o >
|
|
338
|
+
return (o > t ? o : t) + l.value.chart.grid.labels.yAxis.scaleValueOffsetX;
|
|
339
339
|
}, 0));
|
|
340
|
-
const s =
|
|
341
|
-
return
|
|
340
|
+
const s = la.value ? la.value.getBoundingClientRect().width + l.value.chart.grid.labels.axis.yLabelOffsetX + y.value.yAxis : 0, e = l.value.chart.grid.labels.yAxis.crosshairSize;
|
|
341
|
+
return a + s + e;
|
|
342
342
|
}
|
|
343
|
-
const
|
|
344
|
-
|
|
343
|
+
const da = x(0), io = is((a) => {
|
|
344
|
+
da.value = a;
|
|
345
345
|
}, 100);
|
|
346
|
-
|
|
346
|
+
Lt((a) => {
|
|
347
347
|
const s = ul.value;
|
|
348
348
|
if (!s) return;
|
|
349
349
|
const e = new ResizeObserver((u) => {
|
|
350
350
|
io(u[0].contentRect.height);
|
|
351
351
|
});
|
|
352
|
-
e.observe(s),
|
|
353
|
-
}),
|
|
354
|
-
|
|
352
|
+
e.observe(s), a(() => e.disconnect());
|
|
353
|
+
}), ya(() => {
|
|
354
|
+
da.value = 0;
|
|
355
355
|
});
|
|
356
|
-
const
|
|
357
|
-
let
|
|
358
|
-
|
|
356
|
+
const Da = b(() => {
|
|
357
|
+
let a = 0;
|
|
358
|
+
ea.value && (a = ea.value.getBBox().height);
|
|
359
359
|
let s = 0;
|
|
360
|
-
return ul.value && (s =
|
|
361
|
-
}), no = b(() => ge.value.some((
|
|
362
|
-
let
|
|
360
|
+
return ul.value && (s = da.value), a + s + y.value.xAxis;
|
|
361
|
+
}), no = b(() => ge.value.some((a) => a.useProgression)), c = b(() => {
|
|
362
|
+
let a = 0;
|
|
363
363
|
const s = 36;
|
|
364
|
-
l.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ?
|
|
364
|
+
l.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ? a = (ge.value.length - j.value.length) * (l.value.chart.grid.labels.yAxis.labelWidth + s) : f.value.useIndividualScale && f.value.isStacked ? a = l.value.chart.grid.labels.yAxis.labelWidth + s : a = uo());
|
|
365
365
|
const e = l.value.chart.labels.fontSize * 1.1, u = no.value ? 24 : 6;
|
|
366
366
|
if (ul.value) {
|
|
367
367
|
const o = ul.value.getBBox().x;
|
|
368
|
-
o < 0 && (
|
|
368
|
+
o < 0 && (a += Math.abs(o));
|
|
369
369
|
}
|
|
370
|
-
const
|
|
370
|
+
const t = Q.value - a - l.value.chart.grid.labels.yAxis.crosshairSize - u - l.value.chart.padding.left - l.value.chart.padding.right, i = l.value.chart.grid.position === "middle" ? 0 : t / L.value / 2;
|
|
371
371
|
return {
|
|
372
372
|
top: l.value.chart.padding.top + e,
|
|
373
373
|
right: Q.value - u - l.value.chart.padding.right,
|
|
374
|
-
bottom: ve.value -
|
|
375
|
-
left:
|
|
376
|
-
height: ve.value -
|
|
377
|
-
width:
|
|
378
|
-
scaleLabelX:
|
|
374
|
+
bottom: ve.value - Da.value - l.value.chart.padding.bottom - l.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
375
|
+
left: a + l.value.chart.grid.labels.yAxis.crosshairSize - i + l.value.chart.padding.left,
|
|
376
|
+
height: ve.value - Da.value - l.value.chart.padding.top - l.value.chart.padding.bottom - e - l.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
377
|
+
width: t,
|
|
378
|
+
scaleLabelX: a,
|
|
379
379
|
individualOffsetX: s
|
|
380
380
|
};
|
|
381
381
|
}), ro = b(() => {
|
|
382
|
-
const
|
|
383
|
-
return Array.from({ length: s }).map((
|
|
382
|
+
const a = l.value.chart.grid.position === "middle" ? 1 : 0, s = L.value + a, e = E(c.value.top), u = E(c.value.bottom);
|
|
383
|
+
return Array.from({ length: s }).map((t, i) => {
|
|
384
384
|
const o = c.value.width / L.value * i + c.value.left + G.value;
|
|
385
385
|
return `M${o},${e} L${o},${u}`;
|
|
386
386
|
}).join(" ");
|
|
387
387
|
}), co = b(() => {
|
|
388
388
|
if (!l.value.chart.grid.labels.xAxis.showCrosshairs) return "";
|
|
389
|
-
const
|
|
390
|
-
return
|
|
389
|
+
const a = c.value.width / L.value, s = l.value.chart.grid.labels.xAxis.crosshairSize, e = l.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
|
|
390
|
+
return ga.value.map((u, t) => {
|
|
391
391
|
if (!u || !u.text) return null;
|
|
392
|
-
const i = c.value.left +
|
|
392
|
+
const i = c.value.left + a * t + a / 2, o = e ? ne.value - (ne.value === c.value.bottom ? 0 : s / 2) : c.value.bottom, A = e ? ne.value + s / (ne.value === c.value.bottom ? 1 : 2) : c.value.bottom + s;
|
|
393
393
|
return `M${i},${o} L${i},${A}`;
|
|
394
394
|
}).filter(Boolean).join(" ");
|
|
395
395
|
});
|
|
396
|
-
function
|
|
397
|
-
return !!
|
|
396
|
+
function Ea() {
|
|
397
|
+
return !!Kt?.vnode.props?.onSelectTimeLabel;
|
|
398
398
|
}
|
|
399
|
-
function vo(
|
|
399
|
+
function vo(a, s, e) {
|
|
400
400
|
if (!Il.value) {
|
|
401
401
|
const u = document.createElement("canvas");
|
|
402
402
|
Il.value = u.getContext("2d");
|
|
403
403
|
}
|
|
404
|
-
return Il.value.font = `normal ${
|
|
404
|
+
return Il.value.font = `normal ${a}px sans-serif`, Il.value;
|
|
405
405
|
}
|
|
406
|
-
function
|
|
407
|
-
const
|
|
408
|
-
|
|
406
|
+
function Ya() {
|
|
407
|
+
const a = Te.value.querySelectorAll(".vue-ui-xy-tag");
|
|
408
|
+
a.length && Array.from(a).forEach((s) => s.style.opacity = "0");
|
|
409
409
|
}
|
|
410
|
-
function Fl(
|
|
411
|
-
e && (Pe.value[`${
|
|
410
|
+
function Fl(a, s, e, u, t) {
|
|
411
|
+
e && (Pe.value[`${a}_${s}_${u}_${t}`] = e);
|
|
412
412
|
}
|
|
413
|
-
const
|
|
414
|
-
async function
|
|
415
|
-
await
|
|
413
|
+
const Wa = x(!1);
|
|
414
|
+
async function Xa(a = !1) {
|
|
415
|
+
await Mt(), Wa.value = a, za.value && (zl.value = a);
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function ha() {
|
|
418
418
|
xl.value = !xl.value;
|
|
419
419
|
}
|
|
420
420
|
const de = b(() => {
|
|
421
|
-
const
|
|
422
|
-
return
|
|
421
|
+
const a = Math.max(...ge.value.map((s) => wa({ data: s.series, threshold: l.value.downsample.threshold }).length));
|
|
422
|
+
return Dt({
|
|
423
423
|
values: l.value.chart.grid.labels.xAxisLabels.values,
|
|
424
|
-
maxDatapoints:
|
|
424
|
+
maxDatapoints: a,
|
|
425
425
|
formatter: l.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
426
426
|
start: m.value.start,
|
|
427
427
|
end: m.value.end
|
|
428
428
|
});
|
|
429
|
-
}),
|
|
430
|
-
const
|
|
431
|
-
return
|
|
429
|
+
}), fa = b(() => {
|
|
430
|
+
const a = Math.max(...ge.value.map((s) => wa({ data: s.series, threshold: l.value.downsample.threshold }).length));
|
|
431
|
+
return Dt({
|
|
432
432
|
values: l.value.chart.grid.labels.xAxisLabels.values,
|
|
433
|
-
maxDatapoints:
|
|
433
|
+
maxDatapoints: a,
|
|
434
434
|
formatter: l.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
435
435
|
start: 0,
|
|
436
|
-
end:
|
|
436
|
+
end: Ie.value
|
|
437
437
|
});
|
|
438
438
|
}), ho = b(() => {
|
|
439
|
-
const
|
|
440
|
-
return de.value.length ? Math.min(
|
|
441
|
-
}),
|
|
442
|
-
const
|
|
439
|
+
const a = l.value.chart.grid.labels.xAxisLabels.modulo;
|
|
440
|
+
return de.value.length ? Math.min(a, [...new Set(de.value.map((s) => s.text))].length) : a;
|
|
441
|
+
}), ga = b(() => {
|
|
442
|
+
const a = l.value.chart.grid.labels.xAxisLabels, s = de.value || [], e = fa.value || [], u = m.value.start ?? 0, t = _.value, i = L.value, o = s.map((C) => C?.text ?? ""), A = e.map((C) => C?.text ?? "");
|
|
443
443
|
return Ko(
|
|
444
|
-
!!
|
|
445
|
-
!!
|
|
444
|
+
!!a.showOnlyFirstAndLast,
|
|
445
|
+
!!a.showOnlyAtModulo,
|
|
446
446
|
Math.max(1, ho.value || 1),
|
|
447
447
|
o,
|
|
448
448
|
A,
|
|
449
449
|
u,
|
|
450
|
-
|
|
450
|
+
t,
|
|
451
451
|
i
|
|
452
452
|
);
|
|
453
453
|
});
|
|
454
|
-
function
|
|
455
|
-
const e =
|
|
454
|
+
function Ga(a, s) {
|
|
455
|
+
const e = ye.value.map((u) => ({
|
|
456
456
|
shape: u.shape || null,
|
|
457
457
|
name: u.name,
|
|
458
458
|
color: u.color,
|
|
459
459
|
type: u.type,
|
|
460
|
-
value: u.absoluteValues.find((
|
|
460
|
+
value: u.absoluteValues.find((t, i) => i === s),
|
|
461
461
|
comments: u.comments || [],
|
|
462
462
|
prefix: u.prefix || l.value.chart.labels.prefix,
|
|
463
463
|
suffix: u.suffix || l.value.chart.labels.suffix
|
|
464
464
|
}));
|
|
465
465
|
jl("selectTimeLabel", {
|
|
466
466
|
datapoint: e,
|
|
467
|
-
absoluteIndex:
|
|
468
|
-
label:
|
|
467
|
+
absoluteIndex: a.absoluteIndex,
|
|
468
|
+
label: a.text
|
|
469
469
|
});
|
|
470
470
|
}
|
|
471
471
|
const L = b(() => {
|
|
472
|
-
const
|
|
473
|
-
return Math.max(1,
|
|
472
|
+
const a = Oa((m.value.end ?? 0) - (m.value.start ?? 0));
|
|
473
|
+
return Math.max(1, a);
|
|
474
474
|
});
|
|
475
|
-
function fo(
|
|
476
|
-
V.value =
|
|
475
|
+
function fo(a) {
|
|
476
|
+
V.value = a;
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function Ua() {
|
|
479
479
|
f.value.isStacked = !f.value.isStacked, f.value.isStacked ? f.value.useIndividualScale = !0 : f.value.useIndividualScale = l.value.chart.grid.labels.yAxis.useIndividualScale;
|
|
480
480
|
}
|
|
481
|
-
function
|
|
482
|
-
yl.value &&
|
|
481
|
+
function ma(a) {
|
|
482
|
+
yl.value && a.autoScaling && (l.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), l.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
|
|
483
483
|
}
|
|
484
|
-
function go(
|
|
485
|
-
const e =
|
|
486
|
-
for (let
|
|
484
|
+
function go(a, s) {
|
|
485
|
+
const e = Oa(a), u = Array(e).fill(0);
|
|
486
|
+
for (let t = 0; t < s.length && t < e; t += 1) u[t] = s[t] ?? 0;
|
|
487
487
|
return u;
|
|
488
488
|
}
|
|
489
|
-
function
|
|
489
|
+
function qa(a) {
|
|
490
490
|
const s = Math.max(...ge.value.map((e) => Be(e.series).length));
|
|
491
|
-
return
|
|
491
|
+
return a > s ? s : a < 0 || l.value.chart.zoom.startIndex !== null && a < l.value.chart.zoom.startIndex ? l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex + 1 : 1 : a;
|
|
492
492
|
}
|
|
493
|
-
const _l = x(!1),
|
|
493
|
+
const _l = x(!1), Za = x(!1);
|
|
494
494
|
function Rl() {
|
|
495
495
|
if (!_l.value) {
|
|
496
496
|
_l.value = !0;
|
|
497
497
|
try {
|
|
498
|
-
const { startIndex:
|
|
499
|
-
Bl.value = !0, m.value.start = u, m.value.end =
|
|
498
|
+
const { startIndex: a, endIndex: s } = l.value.chart.zoom, e = Math.max(...ge.value.map((i) => Be(i.series).length)), u = a ?? 0, t = s != null ? Math.min(qa(s + 1), e) : e;
|
|
499
|
+
Bl.value = !0, m.value.start = u, m.value.end = t, Se.value.start = u, Se.value.end = t, nl(), Za.value = !0;
|
|
500
500
|
} finally {
|
|
501
501
|
queueMicrotask(() => {
|
|
502
502
|
Bl.value = !1;
|
|
@@ -505,107 +505,107 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
507
|
const Bl = x(!1);
|
|
508
|
-
function mo(
|
|
509
|
-
_l.value || Bl.value ||
|
|
508
|
+
function mo(a) {
|
|
509
|
+
_l.value || Bl.value || a !== m.value.start && (m.value.start = a, Se.value.start = a, nl());
|
|
510
510
|
}
|
|
511
|
-
function bo(
|
|
511
|
+
function bo(a) {
|
|
512
512
|
if (_l.value || Bl.value) return;
|
|
513
|
-
const s =
|
|
513
|
+
const s = qa(a);
|
|
514
514
|
s !== m.value.end && (m.value.end = s, Se.value.end = s, nl());
|
|
515
515
|
}
|
|
516
516
|
async function xo() {
|
|
517
517
|
await Rl();
|
|
518
518
|
}
|
|
519
|
-
function me(
|
|
520
|
-
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(
|
|
519
|
+
function me(a) {
|
|
520
|
+
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(a);
|
|
521
521
|
}
|
|
522
|
-
const
|
|
523
|
-
function qe(
|
|
524
|
-
return
|
|
522
|
+
const Ja = b(() => $e.value.max + kl.value);
|
|
523
|
+
function qe(a) {
|
|
524
|
+
return a / (me(Ja.value) ? Ja.value : 1);
|
|
525
525
|
}
|
|
526
|
-
const
|
|
527
|
-
function
|
|
528
|
-
const s = ![null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) && l.value.chart.grid.labels.yAxis.scaleMin > 0 && Vl.value >= 0 ? c.value.bottom :
|
|
529
|
-
return
|
|
526
|
+
const ne = b(() => isNaN(qe(kl.value)) ? c.value.bottom : c.value.bottom - c.value.height * qe(kl.value));
|
|
527
|
+
function Ka(a) {
|
|
528
|
+
const s = ![null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) && l.value.chart.grid.labels.yAxis.scaleMin > 0 && Vl.value >= 0 ? c.value.bottom : ne.value;
|
|
529
|
+
return a.value >= 0 ? P(s - a.y <= 0 ? 1e-5 : s - a.y) : P(a.y - ne.value <= 0 ? 1e-5 : a.y - ne.value);
|
|
530
530
|
}
|
|
531
|
-
function
|
|
532
|
-
return
|
|
531
|
+
function Qa(a) {
|
|
532
|
+
return a.value >= 0 ? P(a.zeroPosition - a.y <= 0 ? 1e-5 : a.zeroPosition - a.y) : P(a.y - a.zeroPosition <= 0 ? 1e-5 : a.zeroPosition - a.y);
|
|
533
533
|
}
|
|
534
534
|
const q = b(() => {
|
|
535
|
-
const
|
|
535
|
+
const a = Math.max(1, L.value), s = Math.max(1, c.value.width), e = Math.max(1, Fe.value.filter((u) => u.type === "bar" && !j.value.includes(u.id)).length);
|
|
536
536
|
return {
|
|
537
|
-
bar:
|
|
538
|
-
plot:
|
|
539
|
-
line:
|
|
537
|
+
bar: ia(s, a * e, 1),
|
|
538
|
+
plot: ia(s, a, 1),
|
|
539
|
+
line: ia(s, a, 1)
|
|
540
540
|
};
|
|
541
541
|
});
|
|
542
542
|
function He() {
|
|
543
543
|
return f.value.useIndividualScale && f.value.isStacked ? q.value.line - c.value.width / L.value * 0.1 : q.value.bar;
|
|
544
544
|
}
|
|
545
|
-
function Hl(
|
|
546
|
-
return f.value.useIndividualScale && f.value.isStacked ?
|
|
545
|
+
function Hl(a) {
|
|
546
|
+
return f.value.useIndividualScale && f.value.isStacked ? a.x + c.value.width / L.value * 0.05 : a.x + q.value.bar / 2;
|
|
547
547
|
}
|
|
548
|
-
function
|
|
549
|
-
return
|
|
548
|
+
function ja(a) {
|
|
549
|
+
return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(ne.value) ? c.bottom.value : ne.value;
|
|
550
550
|
}
|
|
551
|
-
function
|
|
552
|
-
return
|
|
551
|
+
function et(a) {
|
|
552
|
+
return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(a.zeroPosition) ? 0 : a.zeroPosition;
|
|
553
553
|
}
|
|
554
554
|
const wl = x(null);
|
|
555
|
-
function
|
|
556
|
-
const s =
|
|
555
|
+
function lt(a) {
|
|
556
|
+
const s = ue.value;
|
|
557
557
|
if (!s) return null;
|
|
558
558
|
if (s.createSVGPoint && s.getScreenCTM) {
|
|
559
559
|
const T = s.createSVGPoint();
|
|
560
|
-
T.x =
|
|
560
|
+
T.x = a.clientX, T.y = a.clientY;
|
|
561
561
|
const Y = s.getScreenCTM();
|
|
562
562
|
if (Y) {
|
|
563
563
|
const k = T.matrixTransform(Y.inverse());
|
|
564
564
|
return { x: k.x, y: k.y, ok: !0 };
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
|
-
const e = s.getBoundingClientRect(), u = s.viewBox?.baseVal || { x: 0, y: 0, width: e.width, height: e.height },
|
|
567
|
+
const e = s.getBoundingClientRect(), u = s.viewBox?.baseVal || { x: 0, y: 0, width: e.width, height: e.height }, t = Math.min(e.width / u.width, e.height / u.height), i = u.width * t, o = u.height * t, A = (e.width - i) / 2, C = (e.height - o) / 2, O = (a.clientX - e.left - A) / t + u.x, S = (a.clientY - e.top - C) / t + u.y;
|
|
568
568
|
return { x: O, y: S, ok: !0 };
|
|
569
569
|
}
|
|
570
570
|
let Ze = 0;
|
|
571
|
-
function po(
|
|
571
|
+
function po(a) {
|
|
572
572
|
xl.value || (Ze && cancelAnimationFrame(Ze), Ze = requestAnimationFrame(() => {
|
|
573
573
|
Ze = 0;
|
|
574
|
-
const s =
|
|
575
|
-
if (!s || !
|
|
574
|
+
const s = lt(a);
|
|
575
|
+
if (!s || !ue.value) {
|
|
576
576
|
Dl();
|
|
577
577
|
return;
|
|
578
578
|
}
|
|
579
|
-
const { left: e, right: u, top:
|
|
580
|
-
if (s.x < e || s.x > u || s.y <
|
|
579
|
+
const { left: e, right: u, top: t, bottom: i, width: o } = c.value;
|
|
580
|
+
if (s.x < e || s.x > u || s.y < t || s.y > i) {
|
|
581
581
|
Dl();
|
|
582
582
|
return;
|
|
583
583
|
}
|
|
584
584
|
const A = s.x - e, C = o / L.value, O = Math.floor(A / C);
|
|
585
|
-
O >= 0 && O < L.value ? wl.value !== O && (wl.value = O,
|
|
585
|
+
O >= 0 && O < L.value ? wl.value !== O && (wl.value = O, ft(!0, O)) : Dl();
|
|
586
586
|
}));
|
|
587
587
|
}
|
|
588
588
|
function Dl() {
|
|
589
|
-
Ze && (cancelAnimationFrame(Ze), Ze = 0), wl.value = null,
|
|
589
|
+
Ze && (cancelAnimationFrame(Ze), Ze = 0), wl.value = null, ft(!1, null);
|
|
590
590
|
}
|
|
591
|
-
function
|
|
592
|
-
const s =
|
|
593
|
-
if (s &&
|
|
594
|
-
const { left: e, right: u, top:
|
|
595
|
-
if (s.x >= e && s.x <= u && s.y >=
|
|
591
|
+
function at(a) {
|
|
592
|
+
const s = lt(a);
|
|
593
|
+
if (s && ue.value) {
|
|
594
|
+
const { left: e, right: u, top: t, bottom: i, width: o } = c.value;
|
|
595
|
+
if (s.x >= e && s.x <= u && s.y >= t && s.y <= i) {
|
|
596
596
|
const A = o / Math.max(1, L.value), C = Math.floor((s.x - e) / A);
|
|
597
597
|
if (C >= 0 && C < L.value) {
|
|
598
|
-
|
|
598
|
+
tt(C);
|
|
599
599
|
return;
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
602
|
}
|
|
603
|
-
wl.value != null &&
|
|
603
|
+
wl.value != null && tt(wl.value);
|
|
604
604
|
}
|
|
605
|
-
function
|
|
606
|
-
const s =
|
|
605
|
+
function tt(a) {
|
|
606
|
+
const s = ye.value.map((e) => ({
|
|
607
607
|
name: e.name,
|
|
608
|
-
value: [null, void 0, NaN].includes(e.absoluteValues[
|
|
608
|
+
value: [null, void 0, NaN].includes(e.absoluteValues[a]) ? null : e.absoluteValues[a],
|
|
609
609
|
color: e.color,
|
|
610
610
|
type: e.type
|
|
611
611
|
}));
|
|
@@ -613,24 +613,24 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
613
613
|
"selectX",
|
|
614
614
|
{
|
|
615
615
|
dataset: s,
|
|
616
|
-
index:
|
|
617
|
-
indexLabel: l.value.chart.grid.labels.xAxisLabels.values[
|
|
616
|
+
index: a,
|
|
617
|
+
indexLabel: l.value.chart.grid.labels.xAxisLabels.values[a]
|
|
618
618
|
}
|
|
619
|
-
), l.value.events.datapointClick && l.value.events.datapointClick({ datapoint: s, seriesIndex:
|
|
619
|
+
), l.value.events.datapointClick && l.value.events.datapointClick({ datapoint: s, seriesIndex: a + m.value.start });
|
|
620
620
|
}
|
|
621
621
|
function yo() {
|
|
622
|
-
return Le.value.map((
|
|
623
|
-
values:
|
|
624
|
-
color:
|
|
625
|
-
name:
|
|
626
|
-
type:
|
|
622
|
+
return Le.value.map((a) => ({
|
|
623
|
+
values: a.absoluteValues,
|
|
624
|
+
color: a.color,
|
|
625
|
+
name: a.name,
|
|
626
|
+
type: a.type
|
|
627
627
|
}));
|
|
628
628
|
}
|
|
629
|
-
async function ko({ scale:
|
|
630
|
-
if (!
|
|
631
|
-
const { width: s, height: e } =
|
|
629
|
+
async function ko({ scale: a = 2 } = {}) {
|
|
630
|
+
if (!Te.value) return;
|
|
631
|
+
const { width: s, height: e } = Te.value.getBoundingClientRect(), u = s / e, { imageUri: t, base64: i } = await ms({ domElement: Te.value, base64: !0, img: !0, scale: a });
|
|
632
632
|
return {
|
|
633
|
-
imageUri:
|
|
633
|
+
imageUri: t,
|
|
634
634
|
base64: i,
|
|
635
635
|
title: l.value.chart.title.text,
|
|
636
636
|
width: s,
|
|
@@ -638,50 +638,50 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
638
638
|
aspectRatio: u
|
|
639
639
|
};
|
|
640
640
|
}
|
|
641
|
-
function
|
|
642
|
-
if (j.value.includes(
|
|
643
|
-
j.value = j.value.filter((s) => s !==
|
|
641
|
+
function ot(a) {
|
|
642
|
+
if (j.value.includes(a.id))
|
|
643
|
+
j.value = j.value.filter((s) => s !== a.id);
|
|
644
644
|
else {
|
|
645
645
|
if (j.value.length + 1 === Fe.value.length) return;
|
|
646
|
-
j.value.push(
|
|
646
|
+
j.value.push(a.id);
|
|
647
647
|
}
|
|
648
|
-
jl("selectLegend",
|
|
648
|
+
jl("selectLegend", ye.value.map((s) => ({
|
|
649
649
|
name: s.name,
|
|
650
650
|
values: s.absoluteValues,
|
|
651
651
|
color: s.color,
|
|
652
652
|
type: s.type
|
|
653
|
-
}))),
|
|
653
|
+
}))), sa.value += 1;
|
|
654
654
|
}
|
|
655
655
|
const _o = b(() => {
|
|
656
|
-
const
|
|
657
|
-
return `${
|
|
658
|
-
}),
|
|
656
|
+
const a = l.value.chart.title.text || "Chart visualization", s = l.value.chart.title.subtitle.text || "";
|
|
657
|
+
return `${a}. ${s}`;
|
|
658
|
+
}), st = b(() => ({
|
|
659
659
|
linePlot: L.value > l.value.line.dot.hideAboveMaxSerieLength
|
|
660
660
|
})), wo = b(() => l.value.chart.userOptions.show && (!l.value.chart.title.show || !l.value.chart.title.text)), So = b(() => {
|
|
661
661
|
if (Array.isArray(l.value.chart.highlightArea))
|
|
662
662
|
return l.value.chart.highlightArea.map((s) => {
|
|
663
|
-
const e = Math.min(s.to,
|
|
663
|
+
const e = Math.min(s.to, Ie.value - 1);
|
|
664
664
|
return {
|
|
665
665
|
...s,
|
|
666
666
|
span: s.from === e ? 1 : e < s.from ? 0 : e - s.from + 1
|
|
667
667
|
};
|
|
668
668
|
});
|
|
669
|
-
const
|
|
669
|
+
const a = {
|
|
670
670
|
...l.value.chart.highlightArea,
|
|
671
|
-
to: Math.min(l.value.chart.highlightArea.to,
|
|
671
|
+
to: Math.min(l.value.chart.highlightArea.to, Ie.value - 1)
|
|
672
672
|
};
|
|
673
|
-
return [{ ...
|
|
674
|
-
}),
|
|
675
|
-
...
|
|
676
|
-
series: Be(
|
|
673
|
+
return [{ ...a, span: a.from === a.to ? 1 : a.to < a.from ? 0 : a.to - a.from + 1 }];
|
|
674
|
+
}), ut = b(() => La.value ? ge.value.map((a, s) => ({
|
|
675
|
+
...a,
|
|
676
|
+
series: Be(a.series),
|
|
677
677
|
id: `uniqueId_${s}`,
|
|
678
|
-
color:
|
|
679
|
-
})) : ge.value), $o = b(() =>
|
|
680
|
-
const s =
|
|
678
|
+
color: Tt(a.color ? a.color : Nl.value[s] ? Nl.value[s] : zt[s])
|
|
679
|
+
})) : ge.value), $o = b(() => ye.value.map((a) => {
|
|
680
|
+
const s = a.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
|
|
681
681
|
return {
|
|
682
|
-
id:
|
|
683
|
-
name:
|
|
684
|
-
color:
|
|
682
|
+
id: a.id,
|
|
683
|
+
name: a.name,
|
|
684
|
+
color: a.color,
|
|
685
685
|
values: go(L.value, s)
|
|
686
686
|
};
|
|
687
687
|
})), Lo = b(() => ({
|
|
@@ -693,7 +693,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
693
693
|
fontFamily: l.value.chart.fontFamily,
|
|
694
694
|
prefix: l.value.chart.labels.prefix,
|
|
695
695
|
suffix: l.value.chart.labels.suffix,
|
|
696
|
-
colNames: de.value.map((
|
|
696
|
+
colNames: de.value.map((a, s) => l.value.table.useDefaultTimeFormat ? a.text : rl.value(s + m.value.start, l.value.table.timeFormat)),
|
|
697
697
|
thead: {
|
|
698
698
|
backgroundColor: l.value.table.th.backgroundColor,
|
|
699
699
|
color: l.value.table.th.color,
|
|
@@ -710,66 +710,66 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
710
710
|
sparkline: {
|
|
711
711
|
animation: { show: !1 }
|
|
712
712
|
}
|
|
713
|
-
})), G = b(() => l.value.chart.grid.position === "middle" ? 0 : c.value.width / L.value / 2), Je = b(() => Qo(Le.value.filter((
|
|
714
|
-
const
|
|
715
|
-
for (const [e, u] of Object.entries(
|
|
716
|
-
const
|
|
713
|
+
})), G = b(() => l.value.chart.grid.position === "middle" ? 0 : c.value.width / L.value / 2), Je = b(() => Qo(Le.value.filter((a) => !j.value.includes(a.id)))), M = b(() => {
|
|
714
|
+
const a = Object.groupBy(Je.value, (e) => e.scaleLabel), s = {};
|
|
715
|
+
for (const [e, u] of Object.entries(a)) {
|
|
716
|
+
const t = u.flatMap((i) => i.absoluteValues);
|
|
717
717
|
s[e] = {
|
|
718
|
-
min: Math.min(...
|
|
719
|
-
max: Math.max(...
|
|
720
|
-
groupId: `scale_group_${
|
|
718
|
+
min: Math.min(...t) || 0,
|
|
719
|
+
max: Math.max(...t) || 1,
|
|
720
|
+
groupId: `scale_group_${ka()}`
|
|
721
721
|
};
|
|
722
722
|
}
|
|
723
723
|
return s;
|
|
724
724
|
}), Mo = b(() => {
|
|
725
|
-
const
|
|
726
|
-
return c.value.width / L.value /
|
|
725
|
+
const a = Fe.value.filter((s) => s.type === "bar").filter((s) => !j.value.includes(s.id)).length;
|
|
726
|
+
return c.value.width / L.value / a - El.value * a;
|
|
727
727
|
}), El = b(() => q.value.line * l.value.bar.periodGap), Yl = b(() => Math.max(1e-5, He() - (f.value.useIndividualScale && f.value.isStacked ? 0 : El.value))), Wl = b(() => Yl.value * Math.min(Math.abs(l.value.bar.innerGap), 0.95)), Ao = b(() => {
|
|
728
728
|
if (!l.value.chart.zoom.minimap.show) return [];
|
|
729
|
-
const
|
|
730
|
-
for (let
|
|
731
|
-
e.push(
|
|
729
|
+
const a = ut.value.filter((t) => !j.value.includes(t.id)), s = Math.max(...a.map((t) => t.series.length)), e = [];
|
|
730
|
+
for (let t = 0; t < s; t += 1)
|
|
731
|
+
e.push(a.map((i) => i.series[t] || 0).reduce((i, o) => (i || 0) + (o || 0), 0));
|
|
732
732
|
const u = Math.min(...e);
|
|
733
|
-
return e.map((
|
|
734
|
-
}), Co = b(() => l.value.chart.zoom.minimap.show ?
|
|
733
|
+
return e.map((t) => t + (u < 0 ? Math.abs(u) : 0));
|
|
734
|
+
}), Co = b(() => l.value.chart.zoom.minimap.show ? ut.value.map((s) => ({
|
|
735
735
|
...s,
|
|
736
736
|
isVisible: !j.value.includes(s.id)
|
|
737
|
-
})) : []), Ke = b(() =>
|
|
738
|
-
slotAbsoluteIndex:
|
|
739
|
-
shape:
|
|
740
|
-
name:
|
|
741
|
-
color:
|
|
742
|
-
type:
|
|
743
|
-
value:
|
|
744
|
-
comments:
|
|
745
|
-
prefix:
|
|
746
|
-
suffix:
|
|
747
|
-
}))),
|
|
748
|
-
y:
|
|
749
|
-
value:
|
|
737
|
+
})) : []), Ke = b(() => ye.value.map((a) => ({
|
|
738
|
+
slotAbsoluteIndex: a.slotAbsoluteIndex,
|
|
739
|
+
shape: a.shape || null,
|
|
740
|
+
name: a.name,
|
|
741
|
+
color: a.color,
|
|
742
|
+
type: a.type,
|
|
743
|
+
value: a.absoluteValues.find((s, e) => e === _.value),
|
|
744
|
+
comments: a.comments || [],
|
|
745
|
+
prefix: a.prefix || l.value.chart.labels.prefix,
|
|
746
|
+
suffix: a.suffix || l.value.chart.labels.suffix
|
|
747
|
+
}))), it = b(() => $e.value.ticks.map((a) => ({
|
|
748
|
+
y: a >= 0 ? ne.value - c.value.height * qe(a) : ne.value + c.value.height * qe(Math.abs(a)),
|
|
749
|
+
value: a,
|
|
750
750
|
prefix: l.value.chart.labels.prefix,
|
|
751
751
|
suffix: l.value.chart.labels.suffix
|
|
752
|
-
}))),
|
|
753
|
-
const
|
|
754
|
-
if (!
|
|
755
|
-
const s =
|
|
752
|
+
}))), nt = b(() => {
|
|
753
|
+
const a = l.value.chart.annotations;
|
|
754
|
+
if (!a || !Array.isArray(a) || a.every((S) => !S.show)) return [];
|
|
755
|
+
const s = a.filter(
|
|
756
756
|
(S) => S.show && (S.yAxis.yTop != null || S.yAxis.yBottom != null)
|
|
757
757
|
);
|
|
758
758
|
if (!s.length) return [];
|
|
759
|
-
const { left: e, right: u } = c.value,
|
|
759
|
+
const { left: e, right: u } = c.value, t = ne.value, i = c.value.height, o = $e.value.min, C = $e.value.max - o, O = (S) => {
|
|
760
760
|
const T = (S - 0) / C;
|
|
761
|
-
return
|
|
761
|
+
return t - T * i;
|
|
762
762
|
};
|
|
763
763
|
return s.map((S) => {
|
|
764
764
|
const { yAxis: { yTop: T, yBottom: Y, label: k } } = S, F = T != null && Y != null && T !== Y, z = T == null ? null : O(T), le = Y == null ? null : O(Y), re = vo(k.fontSize);
|
|
765
765
|
re.font = `${k.fontSize}px sans-serif`;
|
|
766
|
-
const U = re.measureText(k.text).width, ke = k.fontSize, Oe = (k.position === "start" ? e + k.padding.left : u - k.padding.right) + k.offsetX,
|
|
766
|
+
const U = re.measureText(k.text).width, ke = k.fontSize, Oe = (k.position === "start" ? e + k.padding.left : u - k.padding.right) + k.offsetX, xe = (z != null && le != null ? Math.min(z, le) : z ?? le) - k.fontSize / 3 + k.offsetY - k.padding.top;
|
|
767
767
|
let B;
|
|
768
768
|
k.textAnchor === "middle" ? B = Oe - U / 2 - k.padding.left : k.textAnchor === "end" ? B = Oe - U - k.padding.right : B = Oe - k.padding.left;
|
|
769
|
-
const H =
|
|
769
|
+
const H = xe - ke * 0.75 - k.padding.top;
|
|
770
770
|
return {
|
|
771
771
|
show: ![z, le, H].includes(NaN),
|
|
772
|
-
id: `annotation_y_${
|
|
772
|
+
id: `annotation_y_${ka()}`,
|
|
773
773
|
hasArea: F,
|
|
774
774
|
areaHeight: F ? Math.abs(z - le) : 0,
|
|
775
775
|
yTop: z,
|
|
@@ -777,7 +777,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
777
777
|
config: S.yAxis,
|
|
778
778
|
x1: e,
|
|
779
779
|
x2: u,
|
|
780
|
-
_text: { x: Oe, y:
|
|
780
|
+
_text: { x: Oe, y: xe },
|
|
781
781
|
_box: {
|
|
782
782
|
x: B,
|
|
783
783
|
y: H,
|
|
@@ -792,15 +792,15 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
792
792
|
};
|
|
793
793
|
});
|
|
794
794
|
});
|
|
795
|
-
function
|
|
796
|
-
const e =
|
|
797
|
-
let
|
|
798
|
-
return me(
|
|
795
|
+
function rt(a, s) {
|
|
796
|
+
const e = a[s - 1], u = a[s + 1];
|
|
797
|
+
let t = !!e && !!u && e.value == null && u.value == null || !e && !!u && u.value == null || !!e && !u && e.value == null;
|
|
798
|
+
return me(a[s].value) && t && l.value.line.cutNullValues;
|
|
799
799
|
}
|
|
800
|
-
const
|
|
801
|
-
const
|
|
802
|
-
return
|
|
803
|
-
|
|
800
|
+
const Me = b(() => {
|
|
801
|
+
const a = Je.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = a.length, e = l.value.chart.grid.labels.yAxis.gap, u = f.value.isStacked, t = u ? e * (s - 1) : 0, i = c.value.height - t;
|
|
802
|
+
return a.filter((o) => o.type === "bar").map((o, A) => {
|
|
803
|
+
ma(o);
|
|
804
804
|
const C = M.value[o.scaleLabel].min, O = M.value[o.scaleLabel].max;
|
|
805
805
|
o.absoluteValues.filter((R) => ![null, void 0].includes(R)).map((R) => (R - C) / (O - C));
|
|
806
806
|
const S = {
|
|
@@ -809,7 +809,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
809
809
|
}, T = {
|
|
810
810
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
811
811
|
min: o.scaleMin || Math.min(...o.absoluteValues.filter((R) => ![void 0, null].includes(R))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((R) => ![null, void 0].includes(R)))
|
|
812
|
-
}, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, F = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(T.min, T.max === T.min ? T.max * k : T.max, Y) :
|
|
812
|
+
}, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, F = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(T.min, T.max === T.min ? T.max * k : T.max, Y) : tl(T.min, T.max === T.min ? T.max * k : T.max, Y), z = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, Y) : tl(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, Y), le = F.min >= 0 ? 0 : Math.abs(F.min), re = 0, U = F.max + le, ke = z.max + Math.abs(re), Oe = o.stackIndex, cl = s - 1 - Oe, xe = u ? 1 - o.cumulatedStackRatio : 0, B = u ? i * xe + e * cl : 0, H = u ? i * o.stackRatio : c.value.height, Z = c.value.bottom - B - H * le / U, pe = c.value.bottom - B - H * re / ke, ce = Le.value.filter((R) => R.type === "bar").filter((R) => !j.value.includes(R.id)).length, Ll = o.series.map((R, K) => {
|
|
813
813
|
const Ee = f.value.useIndividualScale ? (o.absoluteValues[K] + le) / U : qe(R), Qe = f.value.useIndividualScale && f.value.isStacked ? c.value.left + c.value.width / L.value * K : c.value.left + q.value.bar * A + q.value.bar * K * ce - Mo.value / 2 - A * El.value;
|
|
814
814
|
return {
|
|
815
815
|
yOffset: P(B),
|
|
@@ -842,14 +842,14 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
842
842
|
})), J = z.ticks.map((R) => {
|
|
843
843
|
const K = (R - z.min) / (z.max - z.min);
|
|
844
844
|
return {
|
|
845
|
-
y: R >= 0 ?
|
|
845
|
+
y: R >= 0 ? pe - H * K : pe + H * K,
|
|
846
846
|
value: R,
|
|
847
847
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
848
848
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
849
849
|
datapoint: o
|
|
850
850
|
};
|
|
851
851
|
});
|
|
852
|
-
return M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ? J : W, M.value[o.scaleLabel].zeroPosition = o.autoScaling ?
|
|
852
|
+
return M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ? J : W, M.value[o.scaleLabel].zeroPosition = o.autoScaling ? pe : Z, M.value[o.scaleLabel].individualMax = o.autoScaling ? ke : U, M.value[o.scaleLabel].scaleLabel = o.scaleLabel, M.value[o.scaleLabel].id = o.id, M.value[o.scaleLabel].yOffset = B, M.value[o.scaleLabel].individualHeight = H, M.value[o.scaleLabel].autoScaleYLabels = J, M.value[o.scaleLabel].unique = Je.value.filter((R) => R.scaleLabel === o.scaleLabel).length === 1, {
|
|
853
853
|
...o,
|
|
854
854
|
yOffset: B,
|
|
855
855
|
autoScaleYLabels: J,
|
|
@@ -857,15 +857,15 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
857
857
|
scaleYLabels: o.autoScaling ? J : W,
|
|
858
858
|
individualScale: o.autoScaling ? z : F,
|
|
859
859
|
individualMax: o.autoScaling ? ke : U,
|
|
860
|
-
zeroPosition: o.autoScaling ?
|
|
860
|
+
zeroPosition: o.autoScaling ? pe : Z,
|
|
861
861
|
plots: o.autoScaling ? De : Ll,
|
|
862
862
|
groupId: M.value[o.scaleLabel].groupId
|
|
863
863
|
};
|
|
864
864
|
});
|
|
865
|
-
}),
|
|
866
|
-
const
|
|
867
|
-
return
|
|
868
|
-
|
|
865
|
+
}), te = b(() => {
|
|
866
|
+
const a = Je.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = a.length, e = l.value.chart.grid.labels.yAxis.gap, u = f.value.isStacked, t = u ? e * (s - 1) : 0, i = c.value.height - t;
|
|
867
|
+
return a.filter((o) => o.type === "line").map((o, A) => {
|
|
868
|
+
ma(o);
|
|
869
869
|
const C = M.value[o.scaleLabel].min, O = M.value[o.scaleLabel].max;
|
|
870
870
|
o.absoluteValues.filter((N) => ![null, void 0].includes(N)).map((N) => (N - C) / (O - C));
|
|
871
871
|
const S = {
|
|
@@ -874,42 +874,42 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
874
874
|
}, T = {
|
|
875
875
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
876
876
|
min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
|
|
877
|
-
}, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, F = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(T.min, T.max === T.min ? T.max * k : T.max, Y) :
|
|
878
|
-
const Do = f.value.useIndividualScale ? (o.absoluteValues[
|
|
877
|
+
}, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, F = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(T.min, T.max === T.min ? T.max * k : T.max, Y) : tl(T.min, T.max === T.min ? T.max * k : T.max, Y), z = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, Y) : tl(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, Y), le = F.min >= 0 ? 0 : Math.abs(F.min), re = 0, U = F.max + Math.abs(le), ke = z.max + Math.abs(re), Oe = o.stackIndex, cl = s - 1 - Oe, xe = u ? 1 - o.cumulatedStackRatio : 0, B = u ? i * xe + e * cl : 0, H = u ? i * o.stackRatio : c.value.height, Z = c.value.bottom - B - H * le / U, pe = c.value.bottom - B - H * re / ke, ce = o.series.map((N, oe) => {
|
|
878
|
+
const Do = f.value.useIndividualScale ? (o.absoluteValues[oe] + Math.abs(le)) / U : qe(N);
|
|
879
879
|
return {
|
|
880
|
-
x: P(c.value.left + q.value.line / 2 + q.value.line *
|
|
880
|
+
x: P(c.value.left + q.value.line / 2 + q.value.line * oe),
|
|
881
881
|
y: P(c.value.bottom - B - H * Do),
|
|
882
|
-
value: o.absoluteValues[
|
|
883
|
-
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[
|
|
882
|
+
value: o.absoluteValues[oe],
|
|
883
|
+
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[oe] || ""
|
|
884
884
|
};
|
|
885
|
-
}), 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,
|
|
886
|
-
x: P(c.value.left + q.value.line / 2 + q.value.line *
|
|
885
|
+
}), Ll = o.absoluteValues.map((N) => z.min >= 0 ? (N - Math.abs(z.min)) / (z.max - Math.abs(z.min)) : (N + Math.abs(z.min)) / (z.max + Math.abs(z.min))), he = o.series.map((N, oe) => [void 0, null].includes(o.absoluteValues[oe]) ? {
|
|
886
|
+
x: P(c.value.left + q.value.line / 2 + q.value.line * oe),
|
|
887
887
|
y: Z,
|
|
888
|
-
value: o.absoluteValues[
|
|
889
|
-
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[
|
|
888
|
+
value: o.absoluteValues[oe],
|
|
889
|
+
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[oe] || ""
|
|
890
890
|
} : {
|
|
891
|
-
x: P(c.value.left + q.value.line / 2 + q.value.line *
|
|
892
|
-
y: P(c.value.bottom - B - (H * Ll[
|
|
893
|
-
value: o.absoluteValues[
|
|
894
|
-
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[
|
|
895
|
-
}), De = l.value.line.cutNullValues ?
|
|
891
|
+
x: P(c.value.left + q.value.line / 2 + q.value.line * oe),
|
|
892
|
+
y: P(c.value.bottom - B - (H * Ll[oe] || 0)),
|
|
893
|
+
value: o.absoluteValues[oe],
|
|
894
|
+
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[oe] || ""
|
|
895
|
+
}), De = l.value.line.cutNullValues ? It(ce) : Ot(ce.filter((N) => N.value !== null)), W = l.value.line.cutNullValues ? It(he) : Ot(he.filter((N) => N.value !== null)), J = l.value.line.cutNullValues ? Nt(ce) : Vt(ce.filter((N) => N.value !== null)), R = l.value.line.cutNullValues ? Nt(he) : Vt(he.filter((N) => N.value !== null)), K = F.ticks.map((N) => ({
|
|
896
896
|
y: N >= 0 ? Z - H * (N / U) : Z + H * Math.abs(N) / U,
|
|
897
897
|
value: N,
|
|
898
898
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
899
899
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
900
900
|
datapoint: o
|
|
901
901
|
})), Ee = z.ticks.map((N) => {
|
|
902
|
-
const
|
|
902
|
+
const oe = (N - z.min) / (z.max - z.min);
|
|
903
903
|
return {
|
|
904
|
-
y: N >= 0 ?
|
|
904
|
+
y: N >= 0 ? pe - H * oe : pe + H * oe,
|
|
905
905
|
value: N,
|
|
906
906
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
907
907
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
908
908
|
datapoint: o
|
|
909
909
|
};
|
|
910
910
|
});
|
|
911
|
-
M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Ee : K, M.value[o.scaleLabel].zeroPosition = o.autoScaling ?
|
|
912
|
-
const Qe = f.value.useIndividualScale ? o.autoScaling ?
|
|
911
|
+
M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Ee : K, M.value[o.scaleLabel].zeroPosition = o.autoScaling ? pe : Z, M.value[o.scaleLabel].individualMax = o.autoScaling ? ke : U, M.value[o.scaleLabel].scaleLabel = o.scaleLabel, M.value[o.scaleLabel].id = o.id, M.value[o.scaleLabel].yOffset = B, M.value[o.scaleLabel].individualHeight = H, M.value[o.scaleLabel].autoScaleYLabels = Ee, M.value[o.scaleLabel].unique = Je.value.filter((N) => N.scaleLabel === o.scaleLabel).length === 1;
|
|
912
|
+
const Qe = f.value.useIndividualScale ? o.autoScaling ? pe : Z : ne.value, Ml = Math.max(Math.max(o.autoScaling ? pe : K.at(-1) ? K.at(-1).y : 0, c.value.top), Qe);
|
|
913
913
|
return {
|
|
914
914
|
...o,
|
|
915
915
|
yOffset: B,
|
|
@@ -918,16 +918,16 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
918
918
|
scaleYLabels: o.autoScaling ? Ee : K,
|
|
919
919
|
individualScale: o.autoScaling ? z : F,
|
|
920
920
|
individualMax: o.autoScaling ? ke : U,
|
|
921
|
-
zeroPosition: o.autoScaling ?
|
|
921
|
+
zeroPosition: o.autoScaling ? pe : Z,
|
|
922
922
|
curve: o.autoScaling ? W : De,
|
|
923
923
|
plots: o.autoScaling ? he : ce,
|
|
924
|
-
area: o.useArea ? f.value.useIndividualScale ? l.value.line.cutNullValues ?
|
|
924
|
+
area: o.useArea ? f.value.useIndividualScale ? l.value.line.cutNullValues ? Pt(
|
|
925
925
|
o.autoScaling ? he : ce,
|
|
926
926
|
Ml
|
|
927
|
-
) :
|
|
927
|
+
) : Ft(
|
|
928
928
|
o.autoScaling ? he.filter((N) => N.value !== null) : ce.filter((N) => N.value !== null),
|
|
929
929
|
Ml
|
|
930
|
-
) : l.value.line.cutNullValues ?
|
|
930
|
+
) : l.value.line.cutNullValues ? Pt(ce, Ml) : Ft(ce.filter((N) => N.value !== null), Ml) : "",
|
|
931
931
|
curveAreas: o.useArea ? jo(
|
|
932
932
|
o.autoScaling ? l.value.line.cutNullValues ? he : he.filter((N) => N.value !== null) : l.value.line.cutNullValues ? ce : ce.filter((N) => N.value !== null),
|
|
933
933
|
Ml,
|
|
@@ -937,10 +937,10 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
937
937
|
groupId: M.value[o.scaleLabel].groupId
|
|
938
938
|
};
|
|
939
939
|
});
|
|
940
|
-
}),
|
|
941
|
-
const
|
|
942
|
-
return
|
|
943
|
-
|
|
940
|
+
}), be = b(() => {
|
|
941
|
+
const a = Je.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = a.length, e = l.value.chart.grid.labels.yAxis.gap, u = f.value.isStacked, t = u ? e * (s - 1) : 0, i = c.value.height - t;
|
|
942
|
+
return a.filter((o) => o.type === "plot").map((o) => {
|
|
943
|
+
ma(o);
|
|
944
944
|
const A = M.value[o.scaleLabel].min, C = M.value[o.scaleLabel].max;
|
|
945
945
|
o.absoluteValues.filter((W) => ![null, void 0].includes(W)).map((W) => (W - A) / (C - A));
|
|
946
946
|
const O = {
|
|
@@ -949,17 +949,17 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
949
949
|
}, S = {
|
|
950
950
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
951
951
|
min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
|
|
952
|
-
}, T = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, Y = 1.0000001, k =
|
|
952
|
+
}, T = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, Y = 1.0000001, k = tl(S.min, S.max === S.min ? S.max * Y : S.max, T), F = tl(O.valueMin, O.valueMax === O.valueMin ? O.valueMax * Y : O.valueMax, T), z = k.min >= 0 ? 0 : Math.abs(k.min), le = 0, re = k.max + z, U = F.max + Math.abs(le), ke = o.stackIndex, Oe = s - 1 - ke, cl = u ? 1 - o.cumulatedStackRatio : 0, xe = u ? i * cl + e * Oe : 0, B = u ? i * o.stackRatio : c.value.height, H = c.value.bottom - xe - B * z / re, Z = c.value.bottom - xe - B * le / U, pe = o.series.map((W, J) => {
|
|
953
953
|
const R = f.value.useIndividualScale ? (o.absoluteValues[J] + Math.abs(z)) / re : qe(W);
|
|
954
954
|
return {
|
|
955
955
|
x: P(c.value.left + q.value.plot / 2 + q.value.plot * J),
|
|
956
|
-
y: P(c.value.bottom -
|
|
956
|
+
y: P(c.value.bottom - xe - B * R),
|
|
957
957
|
value: o.absoluteValues[J],
|
|
958
958
|
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[J] || ""
|
|
959
959
|
};
|
|
960
960
|
}), ce = o.absoluteValues.map((W) => F.min >= 0 ? (W - Math.abs(F.min)) / (F.max - Math.abs(F.min)) : (W + Math.abs(F.min)) / (F.max + Math.abs(F.min))), Ll = o.series.map((W, J) => ({
|
|
961
961
|
x: P(c.value.left + q.value.plot / 2 + q.value.plot * J),
|
|
962
|
-
y: P(c.value.bottom -
|
|
962
|
+
y: P(c.value.bottom - xe - (B * ce[J] || 0)),
|
|
963
963
|
value: o.absoluteValues[J],
|
|
964
964
|
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[J] || ""
|
|
965
965
|
})), he = k.ticks.map((W) => ({
|
|
@@ -978,21 +978,21 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
978
978
|
datapoint: o
|
|
979
979
|
};
|
|
980
980
|
});
|
|
981
|
-
return M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ? De : he, M.value[o.scaleLabel].zeroPosition = o.autoScaling ? Z : H, M.value[o.scaleLabel].individualMax = o.autoScaling ? U : re, M.value[o.scaleLabel].scaleLabel = o.scaleLabel, M.value[o.scaleLabel].id = o.id, M.value[o.scaleLabel].yOffset =
|
|
981
|
+
return M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ? De : he, M.value[o.scaleLabel].zeroPosition = o.autoScaling ? Z : H, M.value[o.scaleLabel].individualMax = o.autoScaling ? U : re, M.value[o.scaleLabel].scaleLabel = o.scaleLabel, M.value[o.scaleLabel].id = o.id, M.value[o.scaleLabel].yOffset = xe, M.value[o.scaleLabel].individualHeight = B, M.value[o.scaleLabel].autoScaleYLabels = De, M.value[o.scaleLabel].unique = Je.value.filter((W) => W.scaleLabel === o.scaleLabel).length === 1, {
|
|
982
982
|
...o,
|
|
983
|
-
yOffset:
|
|
983
|
+
yOffset: xe,
|
|
984
984
|
autoScaleYLabels: De,
|
|
985
985
|
individualHeight: B,
|
|
986
986
|
scaleYLabels: o.autoScaling ? De : he,
|
|
987
987
|
individualScale: o.autoScaling ? F : k,
|
|
988
988
|
individualMax: o.autoScaling ? U : re,
|
|
989
989
|
zeroPosition: o.autoScaling ? Z : H,
|
|
990
|
-
plots: o.autoScaling ? Ll :
|
|
990
|
+
plots: o.autoScaling ? Ll : pe,
|
|
991
991
|
groupId: M.value[o.scaleLabel].groupId
|
|
992
992
|
};
|
|
993
993
|
});
|
|
994
994
|
}), Sl = b(() => {
|
|
995
|
-
const
|
|
995
|
+
const a = te.value.map((i) => ({
|
|
996
996
|
name: i.name,
|
|
997
997
|
color: i.color,
|
|
998
998
|
scale: i.individualScale,
|
|
@@ -1004,7 +1004,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1004
1004
|
yOffset: i.yOffset || 0,
|
|
1005
1005
|
individualHeight: i.individualHeight || c.value.height,
|
|
1006
1006
|
autoScaleYLabels: i.autoScaleYLabels
|
|
1007
|
-
})), s =
|
|
1007
|
+
})), s = Me.value.map((i) => ({
|
|
1008
1008
|
name: i.name,
|
|
1009
1009
|
color: i.color,
|
|
1010
1010
|
scale: i.individualScale,
|
|
@@ -1015,7 +1015,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1015
1015
|
id: i.id,
|
|
1016
1016
|
yOffset: i.yOffset || 0,
|
|
1017
1017
|
individualHeight: i.individualHeight || c.value.height
|
|
1018
|
-
})), e =
|
|
1018
|
+
})), e = be.value.map((i) => ({
|
|
1019
1019
|
name: i.name,
|
|
1020
1020
|
color: i.color,
|
|
1021
1021
|
scale: i.individualScale,
|
|
@@ -1027,17 +1027,17 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1027
1027
|
id: i.id,
|
|
1028
1028
|
yOffset: i.yOffset || 0,
|
|
1029
1029
|
individualHeight: i.individualHeight || c.value.height
|
|
1030
|
-
})), u = f.value.useIndividualScale && !f.value.isStacked ? Object.values(M.value) : [...
|
|
1030
|
+
})), u = f.value.useIndividualScale && !f.value.isStacked ? Object.values(M.value) : [...a, ...s, ...e], t = u.flatMap((i) => i).length;
|
|
1031
1031
|
return u.flatMap((i, o) => {
|
|
1032
1032
|
let A = 0;
|
|
1033
|
-
A = f.value.isStacked ? c.value.left : c.value.left /
|
|
1033
|
+
A = f.value.isStacked ? c.value.left : c.value.left / t * (o + 1);
|
|
1034
1034
|
const C = f.value.useIndividualScale && !f.value.isStacked ? i.unique ? i.name : i.groupName : i.name;
|
|
1035
1035
|
return {
|
|
1036
1036
|
unique: i.unique,
|
|
1037
1037
|
id: i.id,
|
|
1038
1038
|
groupId: i.groupId,
|
|
1039
1039
|
scaleLabel: i.scaleLabel,
|
|
1040
|
-
name:
|
|
1040
|
+
name: se(
|
|
1041
1041
|
l.value.chart.grid.labels.yAxis.serieNameFormatter,
|
|
1042
1042
|
C,
|
|
1043
1043
|
C,
|
|
@@ -1054,14 +1054,14 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1054
1054
|
}))
|
|
1055
1055
|
};
|
|
1056
1056
|
});
|
|
1057
|
-
}),
|
|
1058
|
-
const
|
|
1057
|
+
}), ct = b(() => {
|
|
1058
|
+
const a = l.value.line.interLine || {}, s = a.pairs || [], e = a.colors || [];
|
|
1059
1059
|
if (!s.length) return [];
|
|
1060
1060
|
const u = [];
|
|
1061
|
-
return s.forEach((
|
|
1062
|
-
const [o, A] = Array.isArray(
|
|
1061
|
+
return s.forEach((t, i) => {
|
|
1062
|
+
const [o, A] = Array.isArray(t) ? t : [t.a, t.b];
|
|
1063
1063
|
if (!o || !A) return;
|
|
1064
|
-
const C =
|
|
1064
|
+
const C = te.value.find((k) => k.name === o), O = te.value.find((k) => k.name === A);
|
|
1065
1065
|
if (!C || !O || C.type !== "line" || O.type !== "line") return;
|
|
1066
1066
|
const S = e?.[i]?.[0] ?? C.color, T = e?.[i]?.[1] ?? O.color;
|
|
1067
1067
|
es({
|
|
@@ -1077,38 +1077,38 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1077
1077
|
u.push({ ...k, key: `inter_${o}_${A}_${i}_${F}` });
|
|
1078
1078
|
});
|
|
1079
1079
|
}), u;
|
|
1080
|
-
}),
|
|
1080
|
+
}), vt = b(() => ({
|
|
1081
1081
|
datapoint: Ke.value,
|
|
1082
1082
|
seriesIndex: _.value,
|
|
1083
1083
|
series: Le.value,
|
|
1084
|
-
bars:
|
|
1085
|
-
lines:
|
|
1086
|
-
plots:
|
|
1084
|
+
bars: Me.value,
|
|
1085
|
+
lines: te.value,
|
|
1086
|
+
plots: be.value,
|
|
1087
1087
|
config: l.value
|
|
1088
1088
|
})), rl = b(() => {
|
|
1089
|
-
const
|
|
1090
|
-
useUTC:
|
|
1091
|
-
locale: hs[
|
|
1092
|
-
januaryAsYear:
|
|
1089
|
+
const a = l.value.chart.grid.labels.xAxisLabels.datetimeFormatter, s = ds({
|
|
1090
|
+
useUTC: a.useUTC,
|
|
1091
|
+
locale: hs[a.locale] || { months: [], shortMonths: [], days: [], shortDays: [] },
|
|
1092
|
+
januaryAsYear: a.januaryAsYear
|
|
1093
1093
|
});
|
|
1094
1094
|
return (e, u) => {
|
|
1095
1095
|
const i = l.value.chart.grid.labels.xAxisLabels.values?.[e];
|
|
1096
1096
|
return i == null ? "" : s.formatDate(new Date(i), u);
|
|
1097
1097
|
};
|
|
1098
|
-
}),
|
|
1098
|
+
}), dt = b(() => (l.value.chart.grid.labels.xAxisLabels.values || []).map((s, e) => ({
|
|
1099
1099
|
text: rl.value(e, l.value.chart.zoom.timeFormat),
|
|
1100
1100
|
absoluteIndex: e
|
|
1101
1101
|
}))), To = b(() => {
|
|
1102
|
-
let
|
|
1102
|
+
let a = "", s = Ke.value.map((t) => t.value).filter((t) => ql(t) && t !== null).reduce((t, i) => Math.abs(t) + Math.abs(i), 0);
|
|
1103
1103
|
const e = de.value[_.value], u = l.value.chart.tooltip.customFormat;
|
|
1104
|
-
if (
|
|
1104
|
+
if (Rt(u) && ls(() => u({
|
|
1105
1105
|
absoluteIndex: _.value + m.value.start,
|
|
1106
1106
|
seriesIndex: _.value,
|
|
1107
1107
|
datapoint: Ke.value,
|
|
1108
1108
|
series: Le.value,
|
|
1109
|
-
bars:
|
|
1110
|
-
lines:
|
|
1111
|
-
plots:
|
|
1109
|
+
bars: Me.value,
|
|
1110
|
+
lines: te.value,
|
|
1111
|
+
plots: be.value,
|
|
1112
1112
|
config: l.value
|
|
1113
1113
|
})))
|
|
1114
1114
|
return u({
|
|
@@ -1116,97 +1116,97 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1116
1116
|
seriesIndex: _.value,
|
|
1117
1117
|
datapoint: Ke.value,
|
|
1118
1118
|
series: Le.value,
|
|
1119
|
-
bars:
|
|
1120
|
-
lines:
|
|
1121
|
-
plots:
|
|
1119
|
+
bars: Me.value,
|
|
1120
|
+
lines: te.value,
|
|
1121
|
+
plots: be.value,
|
|
1122
1122
|
config: l.value
|
|
1123
1123
|
});
|
|
1124
1124
|
if (e && e.text && l.value.chart.tooltip.showTimeLabel) {
|
|
1125
|
-
const
|
|
1126
|
-
|
|
1125
|
+
const t = rl.value(_.value + m.value.start, l.value.chart.tooltip.timeFormat);
|
|
1126
|
+
a += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${l.value.chart.tooltip.borderColor}; width:100%">${l.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !l.value.chart.tooltip.useDefaultTimeFormat ? t : e.text}</div>`;
|
|
1127
1127
|
}
|
|
1128
|
-
return Ke.value.forEach((
|
|
1129
|
-
if (ql(
|
|
1128
|
+
return Ke.value.forEach((t) => {
|
|
1129
|
+
if (ql(t.value)) {
|
|
1130
1130
|
let i = "", o = "";
|
|
1131
|
-
switch (bl.value[
|
|
1131
|
+
switch (bl.value[t.type]) {
|
|
1132
1132
|
case "bar":
|
|
1133
|
-
i = `<svg viewBox="0 0 40 40" height="14" width="14">${$
|
|
1133
|
+
i = `<svg viewBox="0 0 40 40" height="14" width="14">${$a.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${t.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${$a.pattern ? `url(#pattern_${D.value}_${t.slotAbsoluteIndex}` : t.color}" /></svg>`;
|
|
1134
1134
|
break;
|
|
1135
1135
|
case "line":
|
|
1136
|
-
!
|
|
1136
|
+
!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" />` : t.shape === "triangle" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "square" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "diamond" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "pentagon" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "hexagon" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "star" && (o = `<polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" points="${Bt({ 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="${t.color}" />${o}</svg>`;
|
|
1137
1137
|
break;
|
|
1138
1138
|
case "plot":
|
|
1139
|
-
if (!
|
|
1140
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${
|
|
1139
|
+
if (!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape)) {
|
|
1140
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" /></svg>`;
|
|
1141
1141
|
break;
|
|
1142
1142
|
}
|
|
1143
|
-
if (
|
|
1144
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${
|
|
1143
|
+
if (t.shape === "star") {
|
|
1144
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" points="${Bt({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
|
|
1145
1145
|
break;
|
|
1146
1146
|
}
|
|
1147
|
-
if (
|
|
1148
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${
|
|
1147
|
+
if (t.shape === "triangle") {
|
|
1148
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1149
1149
|
break;
|
|
1150
1150
|
}
|
|
1151
|
-
if (
|
|
1152
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${
|
|
1151
|
+
if (t.shape === "square") {
|
|
1152
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1153
1153
|
break;
|
|
1154
1154
|
}
|
|
1155
|
-
if (
|
|
1156
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${
|
|
1155
|
+
if (t.shape === "diamond") {
|
|
1156
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1157
1157
|
break;
|
|
1158
1158
|
}
|
|
1159
|
-
if (
|
|
1160
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${
|
|
1159
|
+
if (t.shape === "pentagon") {
|
|
1160
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1161
1161
|
break;
|
|
1162
1162
|
}
|
|
1163
|
-
if (
|
|
1164
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${
|
|
1163
|
+
if (t.shape === "hexagon") {
|
|
1164
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1165
1165
|
break;
|
|
1166
1166
|
}
|
|
1167
1167
|
}
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1168
|
+
a += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${i}</div> ${t.name}: <b>${l.value.chart.tooltip.showValue ? se(
|
|
1169
|
+
t.type === "line" ? l.value.line.labels.formatter : t.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
|
|
1170
|
+
t.value,
|
|
1171
1171
|
Ve({
|
|
1172
|
-
p:
|
|
1173
|
-
v:
|
|
1174
|
-
s:
|
|
1172
|
+
p: t.prefix,
|
|
1173
|
+
v: t.value,
|
|
1174
|
+
s: t.suffix,
|
|
1175
1175
|
r: l.value.chart.tooltip.roundingValue
|
|
1176
1176
|
}),
|
|
1177
|
-
{ datapoint:
|
|
1177
|
+
{ datapoint: t }
|
|
1178
1178
|
) : ""}</b> ${l.value.chart.tooltip.showPercentage ? `(${Ve({
|
|
1179
|
-
v: P(Math.abs(
|
|
1179
|
+
v: P(Math.abs(t.value) / s * 100),
|
|
1180
1180
|
s: "%",
|
|
1181
1181
|
r: l.value.chart.tooltip.roundingPercentage
|
|
1182
|
-
})})` : ""}</div>`, l.value.chart.comments.showInTooltip &&
|
|
1182
|
+
})})` : ""}</div>`, l.value.chart.comments.showInTooltip && t.comments.length && t.comments.slice(m.value.start, m.value.end)[_.value] && (a += `<div class="vue-data-ui-tooltip-comment" style="background:${t.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${t.color}">${t.comments.slice(m.value.start, m.value.end)[_.value]}</div>`);
|
|
1183
1183
|
}
|
|
1184
|
-
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${l.value.chart.tooltip.color}">${
|
|
1185
|
-
}),
|
|
1184
|
+
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${l.value.chart.tooltip.color}">${a}</div>`;
|
|
1185
|
+
}), ht = b(() => {
|
|
1186
1186
|
if (Fe.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
1187
|
-
const
|
|
1187
|
+
const a = ye.value.map((e) => ({
|
|
1188
1188
|
label: e.name,
|
|
1189
1189
|
color: e.color,
|
|
1190
1190
|
type: e.type
|
|
1191
1191
|
})), s = [];
|
|
1192
1192
|
return de.value.forEach((e, u) => {
|
|
1193
|
-
const
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
}), s.push(
|
|
1197
|
-
}), { head:
|
|
1193
|
+
const t = l.value.table.useDefaultTimeFormat ? [e.text] : [rl.value(u + m.value.start, l.value.table.timeFormat)];
|
|
1194
|
+
ye.value.forEach((i) => {
|
|
1195
|
+
t.push(me(i.absoluteValues[u]) ? Number(i.absoluteValues[u].toFixed(l.value.table.rounding)) : "");
|
|
1196
|
+
}), s.push(t);
|
|
1197
|
+
}), { head: a, body: s };
|
|
1198
1198
|
}), Xl = b(() => {
|
|
1199
|
-
const
|
|
1200
|
-
let s = [""].concat(
|
|
1201
|
-
|
|
1199
|
+
const a = l.value.table.showSum;
|
|
1200
|
+
let s = [""].concat(ye.value.map((i) => i.name));
|
|
1201
|
+
a && (s = s.concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'));
|
|
1202
1202
|
let e = [];
|
|
1203
1203
|
for (let i = 0; i < L.value; i += 1) {
|
|
1204
|
-
const o =
|
|
1204
|
+
const o = ye.value.map((A) => A.absoluteValues[i] ?? 0).reduce((A, C) => A + C, 0);
|
|
1205
1205
|
e.push(
|
|
1206
1206
|
[
|
|
1207
1207
|
l.value.table.useDefaultTimeFormat ? de.value[i].text ?? "-" : rl.value(i + m.value.start, l.value.table.timeFormat)
|
|
1208
|
-
].concat(
|
|
1209
|
-
(A) =>
|
|
1208
|
+
].concat(ye.value.map(
|
|
1209
|
+
(A) => se(
|
|
1210
1210
|
A.type === "line" ? l.value.line.labels.formatter : A.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
|
|
1211
1211
|
A.absoluteValues[i] ?? 0,
|
|
1212
1212
|
Ve({
|
|
@@ -1216,7 +1216,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1216
1216
|
r: l.value.table.rounding
|
|
1217
1217
|
})
|
|
1218
1218
|
)
|
|
1219
|
-
)).concat(
|
|
1219
|
+
)).concat(a ? (o ?? 0).toFixed(l.value.table.rounding) : [])
|
|
1220
1220
|
);
|
|
1221
1221
|
}
|
|
1222
1222
|
const u = {
|
|
@@ -1231,36 +1231,36 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1231
1231
|
outline: l.value.table.td.outline
|
|
1232
1232
|
},
|
|
1233
1233
|
breakpoint: l.value.table.responsiveBreakpoint
|
|
1234
|
-
},
|
|
1235
|
-
return { head: s, body: e, config: u, colNames:
|
|
1234
|
+
}, t = [l.value.table.columnNames.period].concat(ye.value.map((i) => i.name)).concat(l.value.table.columnNames.total);
|
|
1235
|
+
return { head: s, body: e, config: u, colNames: t };
|
|
1236
1236
|
});
|
|
1237
|
-
function
|
|
1238
|
-
const s = [[l.value.chart.title.text], [l.value.chart.title.subtitle.text], [""]], e = ["", ...
|
|
1239
|
-
|
|
1237
|
+
function ba(a = null) {
|
|
1238
|
+
const s = [[l.value.chart.title.text], [l.value.chart.title.subtitle.text], [""]], e = ["", ...ht.value.head.map((o) => o.label)], u = ht.value.body, t = s.concat([e]).concat(u), i = ss(t);
|
|
1239
|
+
a ? a(i) : us({ csvContent: i, title: l.value.chart.title.text || "vue-ui-xy" });
|
|
1240
1240
|
}
|
|
1241
|
-
function
|
|
1242
|
-
|
|
1243
|
-
const e =
|
|
1241
|
+
function ft(a, s = null) {
|
|
1242
|
+
Ma.value = a;
|
|
1243
|
+
const e = ye.value.map((u) => ({
|
|
1244
1244
|
name: u.name,
|
|
1245
1245
|
value: [null, void 0, NaN].includes(u.absoluteValues[s]) ? null : u.absoluteValues[s],
|
|
1246
1246
|
color: u.color,
|
|
1247
1247
|
type: u.type
|
|
1248
1248
|
}));
|
|
1249
|
-
|
|
1249
|
+
a ? (_.value = s, l.value.events.datapointEnter && l.value.events.datapointEnter({ datapoint: e, seriesIndex: s + m.value.start })) : (_.value = null, l.value.events.datapointLeave && l.value.events.datapointLeave({ datapoint: e, seriesIndex: s + m.value.start }));
|
|
1250
1250
|
}
|
|
1251
|
-
function
|
|
1251
|
+
function gt() {
|
|
1252
1252
|
f.value.showTable = !f.value.showTable;
|
|
1253
1253
|
}
|
|
1254
|
-
function
|
|
1254
|
+
function mt() {
|
|
1255
1255
|
f.value.dataLabels.show = !f.value.dataLabels.show;
|
|
1256
1256
|
}
|
|
1257
|
-
function
|
|
1257
|
+
function bt() {
|
|
1258
1258
|
f.value.showTooltip = !f.value.showTooltip;
|
|
1259
1259
|
}
|
|
1260
|
-
function
|
|
1261
|
-
Ge.value =
|
|
1260
|
+
function xt(a) {
|
|
1261
|
+
Ge.value = a, Aa.value += 1;
|
|
1262
1262
|
}
|
|
1263
|
-
function
|
|
1263
|
+
function pt() {
|
|
1264
1264
|
if (!l.value.responsiveProportionalSizing) {
|
|
1265
1265
|
y.value.dataLabels = l.value.chart.grid.labels.fontSize, y.value.yAxis = l.value.chart.grid.labels.axis.fontSize, y.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, y.value.plotLabels = l.value.chart.labels.fontSize, we.value.plot = l.value.plot.radius, we.value.line = l.value.line.radius;
|
|
1266
1266
|
return;
|
|
@@ -1303,13 +1303,13 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1303
1303
|
fallback: 1
|
|
1304
1304
|
});
|
|
1305
1305
|
}
|
|
1306
|
-
function
|
|
1307
|
-
|
|
1306
|
+
function xa() {
|
|
1307
|
+
Ht(g.dataset) ? (_a({
|
|
1308
1308
|
componentName: "VueUiXy",
|
|
1309
1309
|
type: "dataset",
|
|
1310
1310
|
debug: yl.value
|
|
1311
1311
|
}), Ol.value = !0) : g.dataset.forEach((s, e) => {
|
|
1312
|
-
[null, void 0].includes(s.name) && (
|
|
1312
|
+
[null, void 0].includes(s.name) && (_a({
|
|
1313
1313
|
componentName: "VueUiXy",
|
|
1314
1314
|
type: "datasetSerieAttribute",
|
|
1315
1315
|
property: "name (string)",
|
|
@@ -1322,42 +1322,42 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1322
1322
|
-----> The serie '${s.name}' contains the value '${e}' at index ${u}.
|
|
1323
1323
|
'${e}' was converted to null to allow the chart to display.`);
|
|
1324
1324
|
});
|
|
1325
|
-
}),
|
|
1326
|
-
const
|
|
1325
|
+
}), Ht(g.dataset) || (Ol.value = l.value.loading), za.value = l.value.chart.userOptions.showOnChartHover, ua.value = l.value.chart.userOptions.keepStateOnChartLeave, zl.value = !l.value.chart.userOptions.showOnChartHover, ca();
|
|
1326
|
+
const a = 12;
|
|
1327
1327
|
if (l.value.responsive) {
|
|
1328
|
-
const e =
|
|
1329
|
-
Re.value && (Re.value.unobserve(
|
|
1330
|
-
const { height: u, width:
|
|
1328
|
+
const e = Te.value.parentNode;
|
|
1329
|
+
Re.value && (Re.value.unobserve(oa.value), Re.value.disconnect());
|
|
1330
|
+
const { height: u, width: t } = e.getBoundingClientRect();
|
|
1331
1331
|
let i = null, o = 0;
|
|
1332
1332
|
l.value.chart.title.show && fl.value && (i = fl.value, o = i.getBoundingClientRect().height);
|
|
1333
1333
|
let A = null, C = 0;
|
|
1334
|
-
l.value.chart.zoom.show &&
|
|
1334
|
+
l.value.chart.zoom.show && Ie.value > 6 && ra.value && ze.value && ze.value.$el && (A = ze.value.$el, C = A.getBoundingClientRect().height);
|
|
1335
1335
|
let O = null, S = 0;
|
|
1336
1336
|
l.value.chart.legend.show && sl.value && (O = sl.value, S = O.getBoundingClientRect().height);
|
|
1337
1337
|
let T = 0;
|
|
1338
1338
|
gl.value && (T = gl.value.getBoundingClientRect().height);
|
|
1339
1339
|
let Y = 0;
|
|
1340
|
-
ml.value && (Y = ml.value.getBoundingClientRect().height), ve.value = u - o - S - C - T - Y -
|
|
1340
|
+
ml.value && (Y = ml.value.getBoundingClientRect().height), ve.value = u - o - S - C - T - Y - a, Q.value = t, Tl.value = `0 0 ${Q.value < 0 ? 10 : Q.value} ${ve.value < 0 ? 10 : ve.value}`, pt();
|
|
1341
1341
|
const k = new ResizeObserver((F) => {
|
|
1342
1342
|
for (const z of F)
|
|
1343
|
-
l.value.chart.title.show && fl.value ? o = fl.value.getBoundingClientRect().height : o = 0,
|
|
1344
|
-
ve.value = z.contentRect.height - o - S - C - T - Y -
|
|
1343
|
+
l.value.chart.title.show && fl.value ? o = fl.value.getBoundingClientRect().height : o = 0, ze.value && ze.value.$el ? C = ze.value.$el.getBoundingClientRect().height : C = 0, sl.value ? S = sl.value.getBoundingClientRect().height : S = 0, gl.value ? T = gl.value.getBoundingClientRect().height : T = 0, ml.value ? Y = ml.value.getBoundingClientRect().height : Y = 0, requestAnimationFrame(() => {
|
|
1344
|
+
ve.value = z.contentRect.height - o - S - C - T - Y - a, Q.value = z.contentBoxSize[0].inlineSize, Tl.value = `0 0 ${Q.value < 0 ? 10 : Q.value} ${ve.value < 0 ? 10 : ve.value}`, pt();
|
|
1345
1345
|
});
|
|
1346
1346
|
});
|
|
1347
|
-
Re.value = k,
|
|
1347
|
+
Re.value = k, oa.value = e, k.observe(e);
|
|
1348
1348
|
} else
|
|
1349
1349
|
ve.value = l.value.chart.height, Q.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, we.value.plot = l.value.plot.radius, we.value.line = l.value.line.radius, Tl.value = `0 0 ${Q.value} ${ve.value}`;
|
|
1350
1350
|
}
|
|
1351
|
-
function
|
|
1351
|
+
function yt(a) {
|
|
1352
1352
|
eo.value = {
|
|
1353
|
-
x:
|
|
1354
|
-
y:
|
|
1353
|
+
x: a.clientX,
|
|
1354
|
+
y: a.clientY
|
|
1355
1355
|
};
|
|
1356
1356
|
}
|
|
1357
1357
|
Ul(() => {
|
|
1358
|
-
|
|
1359
|
-
}),
|
|
1360
|
-
document.removeEventListener("scroll",
|
|
1358
|
+
xa(), Rl(), document.addEventListener("mousemove", yt, { passive: !0 }), document.addEventListener("scroll", Ya, { passive: !0 });
|
|
1359
|
+
}), ya(() => {
|
|
1360
|
+
document.removeEventListener("scroll", Ya, { passive: !0 }), document.removeEventListener("mousemove", yt, { passive: !0 }), Re.value && (Re.value.unobserve(oa.value), Re.value.disconnect(), Re.value = null);
|
|
1361
1361
|
}), gs({
|
|
1362
1362
|
timeLabelsEls: ul,
|
|
1363
1363
|
timeLabels: de,
|
|
@@ -1370,53 +1370,53 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1370
1370
|
width: Q,
|
|
1371
1371
|
rotation: l.value.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
1372
1372
|
});
|
|
1373
|
-
const Gl = x(!1),
|
|
1373
|
+
const Gl = x(!1), kt = x(null), _t = x(200), zo = b(
|
|
1374
1374
|
() => _.value ?? V.value ?? 0
|
|
1375
1375
|
);
|
|
1376
1376
|
function Io() {
|
|
1377
|
-
const
|
|
1378
|
-
return Math.min(Math.max(
|
|
1377
|
+
const a = Math.ceil(_t.value || 200);
|
|
1378
|
+
return Math.min(Math.max(a, 1), 200);
|
|
1379
1379
|
}
|
|
1380
1380
|
function Oo() {
|
|
1381
|
-
const
|
|
1381
|
+
const a = Io(), s = 200, e = Math.max(1, L.value), u = c.value.width / e, i = c.value.left + zo.value * u + u / 2 - a / 2 - (s - a) / 2, o = c.value.left - (s - a) / 2, A = c.value.right - (s + a) / 2, C = Math.max(o, Math.min(i, A));
|
|
1382
1382
|
return P(C);
|
|
1383
1383
|
}
|
|
1384
1384
|
Ul(() => {
|
|
1385
|
-
let
|
|
1385
|
+
let a = null, s = null;
|
|
1386
1386
|
const e = (i) => {
|
|
1387
1387
|
cancelAnimationFrame(s), s = requestAnimationFrame(() => {
|
|
1388
|
-
|
|
1388
|
+
_t.value = Math.min(Math.max(Math.ceil(i || 0), 1), 200);
|
|
1389
1389
|
});
|
|
1390
1390
|
}, u = new ResizeObserver((i) => {
|
|
1391
|
-
let o = i.find((A) => A.target ===
|
|
1391
|
+
let o = i.find((A) => A.target === a) || i[0];
|
|
1392
1392
|
o && e(o.contentRect.width || 200);
|
|
1393
|
-
}),
|
|
1394
|
-
const o =
|
|
1395
|
-
|
|
1393
|
+
}), t = Lt((i) => {
|
|
1394
|
+
const o = kt.value;
|
|
1395
|
+
a && a !== o && (u.unobserve(a), a = null), o && o !== a && (Mt(() => {
|
|
1396
1396
|
o.offsetParent !== null && e(o.offsetWidth || o.getBoundingClientRect().width || 200);
|
|
1397
|
-
}), u.observe(o),
|
|
1398
|
-
|
|
1397
|
+
}), u.observe(o), a = o), i(() => {
|
|
1398
|
+
a && (u.unobserve(a), a = null);
|
|
1399
1399
|
});
|
|
1400
1400
|
});
|
|
1401
|
-
|
|
1401
|
+
ya(() => {
|
|
1402
1402
|
try {
|
|
1403
|
-
|
|
1403
|
+
a && u.unobserve(a), u.disconnect(), t();
|
|
1404
1404
|
} catch {
|
|
1405
1405
|
}
|
|
1406
1406
|
});
|
|
1407
1407
|
});
|
|
1408
1408
|
const No = b(() => {
|
|
1409
1409
|
if ([null, void 0].includes(_.value) && [null, void 0].includes(V.value)) return "";
|
|
1410
|
-
const
|
|
1411
|
-
if (Gl.value = !1,
|
|
1410
|
+
const a = (_.value != null ? _.value : 0) || (V.value != null ? V.value : 0), s = l.value.chart.timeTag.customFormat;
|
|
1411
|
+
if (Gl.value = !1, Rt(s))
|
|
1412
1412
|
try {
|
|
1413
1413
|
const e = s({
|
|
1414
|
-
absoluteIndex:
|
|
1415
|
-
seriesIndex:
|
|
1414
|
+
absoluteIndex: a + m.value.start,
|
|
1415
|
+
seriesIndex: a,
|
|
1416
1416
|
datapoint: Ke.value,
|
|
1417
|
-
bars:
|
|
1418
|
-
lines:
|
|
1419
|
-
plots:
|
|
1417
|
+
bars: Me.value,
|
|
1418
|
+
lines: te.value,
|
|
1419
|
+
plots: be.value,
|
|
1420
1420
|
config: l.value
|
|
1421
1421
|
});
|
|
1422
1422
|
if (typeof e == "string")
|
|
@@ -1425,47 +1425,47 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1425
1425
|
console.warn("Custom format cannot be applied on timeTag."), Gl.value = !1;
|
|
1426
1426
|
}
|
|
1427
1427
|
if (!Gl.value)
|
|
1428
|
-
return [null, void 0].includes(de.value[
|
|
1428
|
+
return [null, void 0].includes(de.value[a]) ? "" : l.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !l.value.chart.timeTag.useDefaultFormat ? rl.value(a + m.value.start, l.value.chart.timeTag.timeFormat) : de.value[a].text;
|
|
1429
1429
|
});
|
|
1430
|
-
Al(() => g.dataset, (
|
|
1431
|
-
Array.isArray(
|
|
1430
|
+
Al(() => g.dataset, (a) => {
|
|
1431
|
+
Array.isArray(a) && a.length > 0 && (Ol.value = !1), Ie.value = Math.max(...ge.value.map((s) => Be(s.series).length)), m.value = {
|
|
1432
1432
|
start: 0,
|
|
1433
|
-
end:
|
|
1434
|
-
},
|
|
1435
|
-
}, { deep: !0 }), Al(() => g.config, (
|
|
1436
|
-
|
|
1433
|
+
end: Ie.value
|
|
1434
|
+
}, jt.value += 1, sa.value += 1, nl();
|
|
1435
|
+
}, { deep: !0 }), Al(() => g.config, (a) => {
|
|
1436
|
+
ie.value || (l.value = na()), xa(), Ta.value += 1, Ca.value += 1, ca(), nl();
|
|
1437
1437
|
}, { deep: !0 });
|
|
1438
|
-
const
|
|
1439
|
-
function
|
|
1440
|
-
const
|
|
1441
|
-
if (!
|
|
1442
|
-
|
|
1438
|
+
const pa = x(!1);
|
|
1439
|
+
function wt() {
|
|
1440
|
+
const a = Te.value?.parentNode;
|
|
1441
|
+
if (!a) {
|
|
1442
|
+
pa.value = !1;
|
|
1443
1443
|
return;
|
|
1444
1444
|
}
|
|
1445
|
-
const s =
|
|
1446
|
-
|
|
1445
|
+
const s = a.getBoundingClientRect();
|
|
1446
|
+
pa.value = s.width > 2 && s.height > 2;
|
|
1447
1447
|
}
|
|
1448
1448
|
Ul(() => {
|
|
1449
|
-
|
|
1450
|
-
const
|
|
1451
|
-
|
|
1449
|
+
wt();
|
|
1450
|
+
const a = new ResizeObserver(() => {
|
|
1451
|
+
wt(), pa.value && (xa(), nl(), Rl());
|
|
1452
1452
|
});
|
|
1453
|
-
|
|
1453
|
+
Te.value?.parentNode && a.observe(Te.value.parentNode);
|
|
1454
1454
|
}), Al(l, () => {
|
|
1455
|
-
|
|
1455
|
+
ca();
|
|
1456
1456
|
}, { immediate: !0 });
|
|
1457
1457
|
const $l = b(() => {
|
|
1458
|
-
const
|
|
1458
|
+
const a = l.value.table.useDialog && !l.value.showTable, s = f.value.showTable;
|
|
1459
1459
|
return {
|
|
1460
|
-
component:
|
|
1460
|
+
component: a ? Jt : ys,
|
|
1461
1461
|
title: `${l.value.chart.title.text}${l.value.chart.title.subtitle.text ? `: ${l.value.chart.title.subtitle.text}` : ""}`,
|
|
1462
|
-
props:
|
|
1462
|
+
props: a ? {
|
|
1463
1463
|
backgroundColor: l.value.table.th.backgroundColor,
|
|
1464
1464
|
color: l.value.table.th.color,
|
|
1465
1465
|
headerColor: l.value.table.th.color,
|
|
1466
1466
|
headerBg: l.value.table.th.backgroundColor,
|
|
1467
1467
|
isFullscreen: Ge.value,
|
|
1468
|
-
fullscreenParent:
|
|
1468
|
+
fullscreenParent: Te.value,
|
|
1469
1469
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
1470
1470
|
} : {
|
|
1471
1471
|
hideDetails: !0,
|
|
@@ -1484,60 +1484,60 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1484
1484
|
}
|
|
1485
1485
|
};
|
|
1486
1486
|
});
|
|
1487
|
-
Al(() => f.value.showTable, (
|
|
1488
|
-
l.value.showTable || (
|
|
1487
|
+
Al(() => f.value.showTable, (a) => {
|
|
1488
|
+
l.value.showTable || (a && l.value.table.useDialog && il.value ? il.value.open() : il.value && il.value.close && il.value.close());
|
|
1489
1489
|
});
|
|
1490
|
-
function
|
|
1491
|
-
f.value.showTable = !1,
|
|
1490
|
+
function St() {
|
|
1491
|
+
f.value.showTable = !1, ta.value && ta.value.setTableIconState(!1);
|
|
1492
1492
|
}
|
|
1493
|
-
const Vo = b(() => Le.value.map((
|
|
1494
|
-
shape:
|
|
1495
|
-
color:
|
|
1496
|
-
name:
|
|
1493
|
+
const Vo = b(() => Le.value.map((a) => ({
|
|
1494
|
+
shape: a.type === "bar" ? "square" : a.shape ?? "circle",
|
|
1495
|
+
color: a.color,
|
|
1496
|
+
name: a.name
|
|
1497
1497
|
}))), Po = b(() => l.value.chart.backgroundColor), Fo = b(() => l.value.chart.legend), Ro = b(() => l.value.chart.title), { exportSvg: Bo, getSvg: Ho } = fs({
|
|
1498
|
-
svg:
|
|
1498
|
+
svg: ue,
|
|
1499
1499
|
title: Ro,
|
|
1500
1500
|
legend: Fo,
|
|
1501
1501
|
legendItems: Vo,
|
|
1502
1502
|
backgroundColor: Po
|
|
1503
1503
|
});
|
|
1504
|
-
async function $
|
|
1505
|
-
if (
|
|
1506
|
-
const { blob: s, url: e, text: u, dataUrl:
|
|
1507
|
-
l.value.chart.userOptions.callbacks.svg({ blob: s, url: e, text: u, dataUrl:
|
|
1504
|
+
async function $t({ isCb: a }) {
|
|
1505
|
+
if (a) {
|
|
1506
|
+
const { blob: s, url: e, text: u, dataUrl: t } = await Ho();
|
|
1507
|
+
l.value.chart.userOptions.callbacks.svg({ blob: s, url: e, text: u, dataUrl: t });
|
|
1508
1508
|
} else
|
|
1509
1509
|
Bo();
|
|
1510
1510
|
}
|
|
1511
|
-
return
|
|
1511
|
+
return Et({
|
|
1512
1512
|
getData: yo,
|
|
1513
1513
|
getImage: ko,
|
|
1514
|
-
generatePdf:
|
|
1515
|
-
generateImage:
|
|
1516
|
-
generateSvg: $
|
|
1517
|
-
generateCsv:
|
|
1518
|
-
toggleStack:
|
|
1519
|
-
toggleTable:
|
|
1520
|
-
toggleLabels:
|
|
1521
|
-
toggleTooltip:
|
|
1522
|
-
toggleAnnotator:
|
|
1523
|
-
toggleFullscreen:
|
|
1524
|
-
}), (
|
|
1514
|
+
generatePdf: Ba,
|
|
1515
|
+
generateImage: Ha,
|
|
1516
|
+
generateSvg: $t,
|
|
1517
|
+
generateCsv: ba,
|
|
1518
|
+
toggleStack: Ua,
|
|
1519
|
+
toggleTable: gt,
|
|
1520
|
+
toggleLabels: mt,
|
|
1521
|
+
toggleTooltip: bt,
|
|
1522
|
+
toggleAnnotator: ha,
|
|
1523
|
+
toggleFullscreen: xt
|
|
1524
|
+
}), (a, s) => (n(), r("div", {
|
|
1525
1525
|
id: `vue-ui-xy_${D.value}`,
|
|
1526
1526
|
class: je(`vue-data-ui-component vue-ui-xy ${Ge.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${l.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1527
1527
|
ref_key: "chart",
|
|
1528
|
-
ref:
|
|
1528
|
+
ref: Te,
|
|
1529
1529
|
style: $(`background:${l.value.chart.backgroundColor}; color:${l.value.chart.color};width:100%;font-family:${l.value.chart.fontFamily};${l.value.responsive ? "height: 100%" : ""}`),
|
|
1530
|
-
onMouseenter: s[6] || (s[6] = () =>
|
|
1531
|
-
onMouseleave: s[7] || (s[7] = () =>
|
|
1532
|
-
onClick:
|
|
1530
|
+
onMouseenter: s[6] || (s[6] = () => Xa(!0)),
|
|
1531
|
+
onMouseleave: s[7] || (s[7] = () => Xa(!1)),
|
|
1532
|
+
onClick: at
|
|
1533
1533
|
}, [
|
|
1534
|
-
l.value.chart.userOptions.buttons.annotator &&
|
|
1534
|
+
l.value.chart.userOptions.buttons.annotator && ue.value ? (n(), Ae(v(Zt), {
|
|
1535
1535
|
key: 0,
|
|
1536
|
-
svgRef:
|
|
1536
|
+
svgRef: ue.value,
|
|
1537
1537
|
backgroundColor: l.value.chart.backgroundColor,
|
|
1538
1538
|
color: l.value.chart.color,
|
|
1539
1539
|
active: xl.value,
|
|
1540
|
-
onClose:
|
|
1540
|
+
onClose: ha
|
|
1541
1541
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
1542
1542
|
wo.value ? (n(), r("div", {
|
|
1543
1543
|
key: 1,
|
|
@@ -1553,8 +1553,8 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1553
1553
|
class: "vue-ui-xy-title",
|
|
1554
1554
|
style: $(`font-family:${l.value.chart.fontFamily}`)
|
|
1555
1555
|
}, [
|
|
1556
|
-
(n(),
|
|
1557
|
-
key: `title_${
|
|
1556
|
+
(n(), Ae(bs, {
|
|
1557
|
+
key: `title_${Ta.value}`,
|
|
1558
1558
|
config: {
|
|
1559
1559
|
title: {
|
|
1560
1560
|
cy: "xy-div-title",
|
|
@@ -1570,14 +1570,14 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1570
1570
|
p("div", {
|
|
1571
1571
|
id: `legend-top-${D.value}`
|
|
1572
1572
|
}, null, 8, ws),
|
|
1573
|
-
l.value.chart.userOptions.show && (
|
|
1573
|
+
l.value.chart.userOptions.show && (ua.value || zl.value) ? (n(), Ae(v(Gt), {
|
|
1574
1574
|
ref_key: "userOptionsRef",
|
|
1575
|
-
ref:
|
|
1576
|
-
key: `user_options_${
|
|
1575
|
+
ref: ta,
|
|
1576
|
+
key: `user_options_${Aa.value}`,
|
|
1577
1577
|
backgroundColor: l.value.chart.backgroundColor,
|
|
1578
1578
|
color: l.value.chart.color,
|
|
1579
|
-
isPrinting: v(
|
|
1580
|
-
isImaging: v(
|
|
1579
|
+
isPrinting: v(va),
|
|
1580
|
+
isImaging: v(Ra),
|
|
1581
1581
|
uid: D.value,
|
|
1582
1582
|
hasTooltip: l.value.chart.userOptions.buttons.tooltip && l.value.chart.tooltip.show,
|
|
1583
1583
|
hasPdf: l.value.chart.userOptions.buttons.pdf,
|
|
@@ -1590,7 +1590,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1590
1590
|
hasFullscreen: l.value.chart.userOptions.buttons.fullscreen,
|
|
1591
1591
|
isStacked: f.value.isStacked,
|
|
1592
1592
|
isFullscreen: Ge.value,
|
|
1593
|
-
chartElement:
|
|
1593
|
+
chartElement: a.$refs.chart,
|
|
1594
1594
|
position: l.value.chart.userOptions.position,
|
|
1595
1595
|
isTooltip: f.value.showTooltip,
|
|
1596
1596
|
titles: { ...l.value.chart.userOptions.buttonTitles },
|
|
@@ -1599,94 +1599,94 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1599
1599
|
callbacks: l.value.chart.userOptions.callbacks,
|
|
1600
1600
|
tableDialog: l.value.table.useDialog,
|
|
1601
1601
|
printScale: l.value.chart.userOptions.print.scale,
|
|
1602
|
-
onToggleFullscreen:
|
|
1603
|
-
onGeneratePdf: v(
|
|
1604
|
-
onGenerateCsv:
|
|
1605
|
-
onGenerateImage: v(
|
|
1606
|
-
onGenerateSvg: $
|
|
1607
|
-
onToggleTable:
|
|
1608
|
-
onToggleLabels:
|
|
1609
|
-
onToggleStack:
|
|
1610
|
-
onToggleTooltip:
|
|
1611
|
-
onToggleAnnotator:
|
|
1602
|
+
onToggleFullscreen: xt,
|
|
1603
|
+
onGeneratePdf: v(Ba),
|
|
1604
|
+
onGenerateCsv: ba,
|
|
1605
|
+
onGenerateImage: v(Ha),
|
|
1606
|
+
onGenerateSvg: $t,
|
|
1607
|
+
onToggleTable: gt,
|
|
1608
|
+
onToggleLabels: mt,
|
|
1609
|
+
onToggleStack: Ua,
|
|
1610
|
+
onToggleTooltip: bt,
|
|
1611
|
+
onToggleAnnotator: ha,
|
|
1612
1612
|
style: $({
|
|
1613
|
-
visibility:
|
|
1613
|
+
visibility: ua.value ? zl.value ? "visible" : "hidden" : "visible"
|
|
1614
1614
|
})
|
|
1615
|
-
},
|
|
1616
|
-
|
|
1615
|
+
}, At({ _: 2 }, [
|
|
1616
|
+
a.$slots.menuIcon ? {
|
|
1617
1617
|
name: "menuIcon",
|
|
1618
1618
|
fn: ee(({ isOpen: e, color: u }) => [
|
|
1619
|
-
X(
|
|
1619
|
+
X(a.$slots, "menuIcon", el(ll({ isOpen: e, color: u })), void 0, !0)
|
|
1620
1620
|
]),
|
|
1621
1621
|
key: "0"
|
|
1622
1622
|
} : void 0,
|
|
1623
|
-
|
|
1623
|
+
a.$slots.optionTooltip ? {
|
|
1624
1624
|
name: "optionTooltip",
|
|
1625
1625
|
fn: ee(() => [
|
|
1626
|
-
X(
|
|
1626
|
+
X(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
1627
1627
|
]),
|
|
1628
1628
|
key: "1"
|
|
1629
1629
|
} : void 0,
|
|
1630
|
-
|
|
1630
|
+
a.$slots.optionPdf ? {
|
|
1631
1631
|
name: "optionPdf",
|
|
1632
1632
|
fn: ee(() => [
|
|
1633
|
-
X(
|
|
1633
|
+
X(a.$slots, "optionPdf", {}, void 0, !0)
|
|
1634
1634
|
]),
|
|
1635
1635
|
key: "2"
|
|
1636
1636
|
} : void 0,
|
|
1637
|
-
|
|
1637
|
+
a.$slots.optionCsv ? {
|
|
1638
1638
|
name: "optionCsv",
|
|
1639
1639
|
fn: ee(() => [
|
|
1640
|
-
X(
|
|
1640
|
+
X(a.$slots, "optionCsv", {}, void 0, !0)
|
|
1641
1641
|
]),
|
|
1642
1642
|
key: "3"
|
|
1643
1643
|
} : void 0,
|
|
1644
|
-
|
|
1644
|
+
a.$slots.optionImg ? {
|
|
1645
1645
|
name: "optionImg",
|
|
1646
1646
|
fn: ee(() => [
|
|
1647
|
-
X(
|
|
1647
|
+
X(a.$slots, "optionImg", {}, void 0, !0)
|
|
1648
1648
|
]),
|
|
1649
1649
|
key: "4"
|
|
1650
1650
|
} : void 0,
|
|
1651
|
-
|
|
1651
|
+
a.$slots.optionTable ? {
|
|
1652
1652
|
name: "optionTable",
|
|
1653
1653
|
fn: ee(() => [
|
|
1654
|
-
X(
|
|
1654
|
+
X(a.$slots, "optionTable", {}, void 0, !0)
|
|
1655
1655
|
]),
|
|
1656
1656
|
key: "5"
|
|
1657
1657
|
} : void 0,
|
|
1658
|
-
|
|
1658
|
+
a.$slots.optionLabels ? {
|
|
1659
1659
|
name: "optionLabels",
|
|
1660
1660
|
fn: ee(() => [
|
|
1661
|
-
X(
|
|
1661
|
+
X(a.$slots, "optionLabels", {}, void 0, !0)
|
|
1662
1662
|
]),
|
|
1663
1663
|
key: "6"
|
|
1664
1664
|
} : void 0,
|
|
1665
|
-
|
|
1665
|
+
a.$slots.optionStack ? {
|
|
1666
1666
|
name: "optionStack",
|
|
1667
1667
|
fn: ee(() => [
|
|
1668
|
-
X(
|
|
1668
|
+
X(a.$slots, "optionStack", {}, void 0, !0)
|
|
1669
1669
|
]),
|
|
1670
1670
|
key: "7"
|
|
1671
1671
|
} : void 0,
|
|
1672
|
-
|
|
1672
|
+
a.$slots.optionFullscreen ? {
|
|
1673
1673
|
name: "optionFullscreen",
|
|
1674
1674
|
fn: ee(({ toggleFullscreen: e, isFullscreen: u }) => [
|
|
1675
|
-
X(
|
|
1675
|
+
X(a.$slots, "optionFullscreen", el(ll({ toggleFullscreen: e, isFullscreen: u })), void 0, !0)
|
|
1676
1676
|
]),
|
|
1677
1677
|
key: "8"
|
|
1678
1678
|
} : void 0,
|
|
1679
|
-
|
|
1679
|
+
a.$slots.optionAnnotator ? {
|
|
1680
1680
|
name: "optionAnnotator",
|
|
1681
1681
|
fn: ee(({ toggleAnnotator: e, isAnnotator: u }) => [
|
|
1682
|
-
X(
|
|
1682
|
+
X(a.$slots, "optionAnnotator", el(ll({ toggleAnnotator: e, isAnnotator: u })), void 0, !0)
|
|
1683
1683
|
]),
|
|
1684
1684
|
key: "9"
|
|
1685
1685
|
} : void 0
|
|
1686
1686
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "tableDialog", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
1687
1687
|
(n(), r("svg", {
|
|
1688
1688
|
ref_key: "svgRef",
|
|
1689
|
-
ref:
|
|
1689
|
+
ref: ue,
|
|
1690
1690
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1691
1691
|
class: je([{ "vue-data-ui-fullscreen--on": Ge.value, "vue-data-ui-fulscreen--off": !Ge.value }, "vue-ui-xy-svg vue-data-ui-svg"]),
|
|
1692
1692
|
width: "100%",
|
|
@@ -1702,15 +1702,15 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1702
1702
|
preserveAspectRatio: "xMidYMid",
|
|
1703
1703
|
onMousemove: po,
|
|
1704
1704
|
onMouseleave: Dl,
|
|
1705
|
-
onClick:
|
|
1705
|
+
onClick: at
|
|
1706
1706
|
}, [
|
|
1707
1707
|
p("g", {
|
|
1708
1708
|
ref_key: "G",
|
|
1709
|
-
ref:
|
|
1709
|
+
ref: Qt,
|
|
1710
1710
|
class: "vue-data-ui-g"
|
|
1711
1711
|
}, [
|
|
1712
|
-
vl(v(
|
|
1713
|
-
|
|
1712
|
+
vl(v(qt)),
|
|
1713
|
+
a.$slots["chart-background"] ? (n(), r("foreignObject", {
|
|
1714
1714
|
key: 0,
|
|
1715
1715
|
x: c.value.left + G.value < 0 ? 0 : c.value.left + G.value,
|
|
1716
1716
|
y: c.value.top,
|
|
@@ -1720,7 +1720,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1720
1720
|
pointerEvents: "none"
|
|
1721
1721
|
}
|
|
1722
1722
|
}, [
|
|
1723
|
-
X(
|
|
1723
|
+
X(a.$slots, "chart-background", {}, void 0, !0)
|
|
1724
1724
|
], 8, $s)) : h("", !0),
|
|
1725
1725
|
L.value > 0 ? (n(), r("g", Ls, [
|
|
1726
1726
|
p("g", Ms, [
|
|
@@ -1768,7 +1768,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1768
1768
|
style: { animation: "none !important" }
|
|
1769
1769
|
}, null, 8, Cs)) : h("", !0),
|
|
1770
1770
|
l.value.chart.grid.showHorizontalLines ? (n(), r("g", Ts, [
|
|
1771
|
-
(n(!0), r(d, null, w(
|
|
1771
|
+
(n(!0), r(d, null, w(it.value, (e) => (n(), r("line", {
|
|
1772
1772
|
x1: c.value.left + G.value,
|
|
1773
1773
|
x2: c.value.right,
|
|
1774
1774
|
y1: v(E)(e.y),
|
|
@@ -1799,10 +1799,10 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1799
1799
|
}, null, 8, Fs)
|
|
1800
1800
|
])) : h("", !0)
|
|
1801
1801
|
]),
|
|
1802
|
-
(n(!0), r(d, null, w(
|
|
1802
|
+
(n(!0), r(d, null, w(Me.value, (e, u) => (n(), r("defs", {
|
|
1803
1803
|
key: `def_rect_${u}`
|
|
1804
1804
|
}, [
|
|
1805
|
-
|
|
1805
|
+
a.$slots["bar-gradient"] ? X(a.$slots, "bar-gradient", al({
|
|
1806
1806
|
key: 0,
|
|
1807
1807
|
ref_for: !0
|
|
1808
1808
|
}, { series: e, positiveId: `rectGradient_pos_${u}_${D.value}`, negativeId: `rectGradient_neg_${u}_${D.value}` }), void 0, !0) : (n(), r(d, { key: 1 }, [
|
|
@@ -1844,7 +1844,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1844
1844
|
], 8, Es)
|
|
1845
1845
|
], 64))
|
|
1846
1846
|
]))), 128)),
|
|
1847
|
-
(n(!0), r(d, null, w(
|
|
1847
|
+
(n(!0), r(d, null, w(be.value, (e, u) => (n(), r("defs", {
|
|
1848
1848
|
key: `def_plot_${u}`
|
|
1849
1849
|
}, [
|
|
1850
1850
|
p("radialGradient", {
|
|
@@ -1865,7 +1865,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1865
1865
|
}, null, 8, qs)
|
|
1866
1866
|
], 8, Gs)
|
|
1867
1867
|
]))), 128)),
|
|
1868
|
-
(n(!0), r(d, null, w(
|
|
1868
|
+
(n(!0), r(d, null, w(te.value, (e, u) => (n(), r("defs", {
|
|
1869
1869
|
key: `def_line_${e.id}`
|
|
1870
1870
|
}, [
|
|
1871
1871
|
p("radialGradient", {
|
|
@@ -1885,7 +1885,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1885
1885
|
"stop-color": e.color
|
|
1886
1886
|
}, null, 8, Ks)
|
|
1887
1887
|
], 8, Zs),
|
|
1888
|
-
|
|
1888
|
+
a.$slots["area-gradient"] ? X(a.$slots, "area-gradient", al({
|
|
1889
1889
|
key: 0,
|
|
1890
1890
|
ref_for: !0
|
|
1891
1891
|
}, { series: e, id: `areaGradient_${u}_${D.value}` }), void 0, !0) : (n(), r("linearGradient", {
|
|
@@ -1898,33 +1898,33 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1898
1898
|
}, [
|
|
1899
1899
|
p("stop", {
|
|
1900
1900
|
offset: "0%",
|
|
1901
|
-
"stop-color": `${v(
|
|
1901
|
+
"stop-color": `${v(Ce)(v(ol)(e.color, 0.03), l.value.line.area.opacity)}`
|
|
1902
1902
|
}, null, 8, js),
|
|
1903
1903
|
p("stop", {
|
|
1904
1904
|
offset: "100%",
|
|
1905
|
-
"stop-color": `${v(
|
|
1905
|
+
"stop-color": `${v(Ce)(e.color, l.value.line.area.opacity)}`
|
|
1906
1906
|
}, null, 8, eu)
|
|
1907
1907
|
], 8, Qs))
|
|
1908
1908
|
]))), 128)),
|
|
1909
1909
|
(n(!0), r(d, null, w(So.value, (e) => (n(), r("g", null, [
|
|
1910
1910
|
e.show ? (n(), r(d, { key: 0 }, [
|
|
1911
|
-
(n(!0), r(d, null, w(e.span, (u,
|
|
1911
|
+
(n(!0), r(d, null, w(e.span, (u, t) => (n(), r("g", null, [
|
|
1912
1912
|
p("rect", {
|
|
1913
1913
|
style: $({
|
|
1914
1914
|
transition: "none",
|
|
1915
|
-
opacity: e.from +
|
|
1915
|
+
opacity: e.from + t >= m.value.start && e.from + t <= m.value.end - 1 ? 1 : 0
|
|
1916
1916
|
}),
|
|
1917
|
-
x: c.value.left + c.value.width / L.value * (e.from +
|
|
1917
|
+
x: c.value.left + c.value.width / L.value * (e.from + t - m.value.start),
|
|
1918
1918
|
y: c.value.top,
|
|
1919
1919
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
1920
1920
|
width: c.value.width / L.value < 0 ? 1e-5 : c.value.width / L.value,
|
|
1921
|
-
fill: v(
|
|
1921
|
+
fill: v(Ce)(e.color, e.opacity)
|
|
1922
1922
|
}, null, 12, lu)
|
|
1923
1923
|
]))), 256)),
|
|
1924
|
-
(n(!0), r(d, null, w(e.span, (u,
|
|
1925
|
-
e.caption.text &&
|
|
1924
|
+
(n(!0), r(d, null, w(e.span, (u, t) => (n(), r("g", null, [
|
|
1925
|
+
e.caption.text && t === 0 ? (n(), r("foreignObject", {
|
|
1926
1926
|
key: 0,
|
|
1927
|
-
x: c.value.left + c.value.width / L.value * (e.from +
|
|
1927
|
+
x: c.value.left + c.value.width / L.value * (e.from + t - m.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - c.value.width / L.value * e.span / 2),
|
|
1928
1928
|
y: c.value.top + e.caption.offsetY,
|
|
1929
1929
|
style: $({
|
|
1930
1930
|
overflow: "visible",
|
|
@@ -1935,12 +1935,12 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1935
1935
|
}, [
|
|
1936
1936
|
p("div", {
|
|
1937
1937
|
style: $(`padding:${e.caption.padding}px;text-align:${e.caption.textAlign};font-size:${e.caption.fontSize}px;color:${e.caption.color};font-weight:${e.caption.bold ? "bold" : "normal"}`)
|
|
1938
|
-
},
|
|
1939
|
-
], 12,
|
|
1938
|
+
}, ae(e.caption.text), 5)
|
|
1939
|
+
], 12, au)) : h("", !0)
|
|
1940
1940
|
]))), 256))
|
|
1941
1941
|
], 64)) : h("", !0)
|
|
1942
1942
|
]))), 256)),
|
|
1943
|
-
|
|
1943
|
+
Wa.value ? (n(), r("g", tu, [
|
|
1944
1944
|
(n(!0), r(d, null, w(L.value, (e, u) => (n(), r("g", {
|
|
1945
1945
|
key: `tooltip_trap_highlighter_${u}`
|
|
1946
1946
|
}, [
|
|
@@ -1949,55 +1949,55 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1949
1949
|
y: c.value.top,
|
|
1950
1950
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
1951
1951
|
width: c.value.width / L.value < 0 ? 1e-5 : c.value.width / L.value,
|
|
1952
|
-
fill: [V.value, _.value, Ue.value].includes(u) ? v(
|
|
1952
|
+
fill: [V.value, _.value, Ue.value].includes(u) ? v(Ce)(l.value.chart.highlighter.color, l.value.chart.highlighter.opacity) : "transparent",
|
|
1953
1953
|
style: { transition: "none !important", animation: "none !important" }
|
|
1954
1954
|
}, null, 8, ou)
|
|
1955
1955
|
]))), 128))
|
|
1956
1956
|
])) : h("", !0),
|
|
1957
|
-
|
|
1957
|
+
Me.value.length ? (n(!0), r(d, { key: 1 }, w(Me.value, (e, u) => (n(), r("g", {
|
|
1958
1958
|
key: `serie_bar_${e.id}`,
|
|
1959
1959
|
class: je(`serie_bar_${u}`),
|
|
1960
1960
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1961
1961
|
}, [
|
|
1962
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
1962
|
+
(n(!0), r(d, null, w(e.plots, (t, i) => (n(), r("g", {
|
|
1963
1963
|
key: `bar_plot_${u}_${i}`
|
|
1964
1964
|
}, [
|
|
1965
|
-
me(
|
|
1965
|
+
me(t.value) ? (n(), r("rect", {
|
|
1966
1966
|
key: 0,
|
|
1967
|
-
x: Hl(
|
|
1968
|
-
y: f.value.useIndividualScale ?
|
|
1969
|
-
height: f.value.useIndividualScale ? Math.abs(
|
|
1967
|
+
x: Hl(t) + Wl.value / 2,
|
|
1968
|
+
y: f.value.useIndividualScale ? et(t) : ja(t),
|
|
1969
|
+
height: f.value.useIndividualScale ? Math.abs(Qa(t)) : Math.abs(Ka(t)),
|
|
1970
1970
|
width: Yl.value - Wl.value,
|
|
1971
1971
|
rx: l.value.bar.borderRadius,
|
|
1972
|
-
fill: l.value.bar.useGradient ?
|
|
1972
|
+
fill: l.value.bar.useGradient ? t.value >= 0 ? `url(#rectGradient_pos_${u}_${D.value})` : `url(#rectGradient_neg_${u}_${D.value})` : e.color,
|
|
1973
1973
|
stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
|
|
1974
1974
|
"stroke-width": l.value.bar.border.strokeWidth,
|
|
1975
1975
|
style: $({
|
|
1976
|
-
transition: v(
|
|
1976
|
+
transition: v(ie) || !l.value.bar.showTransition ? void 0 : `all ${l.value.bar.transitionDurationMs}ms ease-in-out`
|
|
1977
1977
|
})
|
|
1978
1978
|
}, null, 12, su)) : h("", !0),
|
|
1979
|
-
me(
|
|
1979
|
+
me(t.value) && a.$slots.pattern ? (n(), r("rect", {
|
|
1980
1980
|
key: 1,
|
|
1981
|
-
x: Hl(
|
|
1982
|
-
y: f.value.useIndividualScale ?
|
|
1983
|
-
height: f.value.useIndividualScale ? Math.abs(
|
|
1981
|
+
x: Hl(t) - Wl.value / 2,
|
|
1982
|
+
y: f.value.useIndividualScale ? et(t) : ja(t),
|
|
1983
|
+
height: f.value.useIndividualScale ? Math.abs(Qa(t)) : Math.abs(Ka(t)),
|
|
1984
1984
|
width: Yl.value - Wl.value,
|
|
1985
1985
|
rx: l.value.bar.borderRadius,
|
|
1986
1986
|
fill: `url(#pattern_${D.value}_${e.slotAbsoluteIndex})`,
|
|
1987
1987
|
stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
|
|
1988
1988
|
"stroke-width": l.value.bar.border.strokeWidth,
|
|
1989
|
-
style: $({ transition: v(
|
|
1989
|
+
style: $({ transition: v(ie) || !l.value.bar.showTransition ? void 0 : `all ${l.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
1990
1990
|
}, null, 12, uu)) : h("", !0),
|
|
1991
|
-
|
|
1991
|
+
t.comment && l.value.chart.comments.show ? (n(), r("foreignObject", {
|
|
1992
1992
|
key: 2,
|
|
1993
1993
|
style: { overflow: "visible" },
|
|
1994
1994
|
height: "12",
|
|
1995
1995
|
width: Yl.value / 2 + l.value.chart.comments.width,
|
|
1996
|
-
x: Hl(
|
|
1997
|
-
y: v(P)(
|
|
1996
|
+
x: Hl(t) - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
|
|
1997
|
+
y: v(P)(t.y) + l.value.chart.comments.offsetY + 6
|
|
1998
1998
|
}, [
|
|
1999
|
-
X(
|
|
2000
|
-
plot: { ...
|
|
1999
|
+
X(a.$slots, "plot-comment", {
|
|
2000
|
+
plot: { ...t, color: e.color, seriesIndex: u, datapointIndex: i }
|
|
2001
2001
|
}, void 0, !0)
|
|
2002
2002
|
], 8, iu)) : h("", !0)
|
|
2003
2003
|
]))), 128))
|
|
@@ -2008,8 +2008,8 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2008
2008
|
"stroke-width": "1",
|
|
2009
2009
|
x1: c.value.left + G.value,
|
|
2010
2010
|
x2: c.value.right,
|
|
2011
|
-
y1: v(E)(
|
|
2012
|
-
y2: v(E)(
|
|
2011
|
+
y1: v(E)(ne.value),
|
|
2012
|
+
y2: v(E)(ne.value),
|
|
2013
2013
|
"stroke-linecap": "round",
|
|
2014
2014
|
style: { animation: "none !important" }
|
|
2015
2015
|
}, null, 8, nu)) : h("", !0),
|
|
@@ -2043,7 +2043,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2043
2043
|
l.value.chart.grid.labels.show ? (n(), r("g", {
|
|
2044
2044
|
key: 5,
|
|
2045
2045
|
ref_key: "scaleLabels",
|
|
2046
|
-
ref:
|
|
2046
|
+
ref: aa
|
|
2047
2047
|
}, [
|
|
2048
2048
|
f.value.useIndividualScale ? (n(), r(d, { key: 0 }, [
|
|
2049
2049
|
(n(!0), r(d, null, w(Sl.value, (e) => (n(), r("g", null, [
|
|
@@ -2066,9 +2066,9 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2066
2066
|
"font-size": y.value.dataLabels * 0.8,
|
|
2067
2067
|
"text-anchor": "middle",
|
|
2068
2068
|
transform: `translate(${e.x - y.value.dataLabels * 0.8 / 2 + G.value}, ${f.value.isStacked ? c.value.bottom - e.yOffset - e.individualHeight / 2 : c.value.top + c.value.height / 2}) rotate(-90)`
|
|
2069
|
-
},
|
|
2069
|
+
}, ae(e.name) + " " + ae(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
|
|
2070
2070
|
${e.scaleLabel}` : ""), 9, hu),
|
|
2071
|
-
(n(!0), r(d, null, w(e.yLabels, (u,
|
|
2071
|
+
(n(!0), r(d, null, w(e.yLabels, (u, t) => (n(), r(d, null, [
|
|
2072
2072
|
l.value.chart.grid.labels.yAxis.showCrosshairs ? (n(), r("line", {
|
|
2073
2073
|
key: 0,
|
|
2074
2074
|
x1: e.x + 3 + G.value - l.value.chart.grid.labels.yAxis.crosshairSize - c.value.individualOffsetX,
|
|
@@ -2081,13 +2081,13 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2081
2081
|
style: { animation: "none !important" }
|
|
2082
2082
|
}, null, 8, fu)) : h("", !0)
|
|
2083
2083
|
], 64))), 256)),
|
|
2084
|
-
(n(!0), r(d, null, w(e.yLabels, (u,
|
|
2084
|
+
(n(!0), r(d, null, w(e.yLabels, (u, t) => (n(), r("text", {
|
|
2085
2085
|
x: e.x - 5 + G.value - c.value.individualOffsetX,
|
|
2086
2086
|
y: v(E)(u.y) + y.value.dataLabels / 3,
|
|
2087
2087
|
"font-size": y.value.dataLabels,
|
|
2088
2088
|
"text-anchor": "end",
|
|
2089
2089
|
fill: e.color
|
|
2090
|
-
},
|
|
2090
|
+
}, ae(v(se)(
|
|
2091
2091
|
l.value.chart.grid.labels.yAxis.formatter,
|
|
2092
2092
|
u.value,
|
|
2093
2093
|
v(Ve)({
|
|
@@ -2096,10 +2096,10 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2096
2096
|
s: u.suffix,
|
|
2097
2097
|
r: l.value.chart.grid.labels.yAxis.rounding
|
|
2098
2098
|
}),
|
|
2099
|
-
{ datapoint: u.datapoint, seriesIndex:
|
|
2099
|
+
{ datapoint: u.datapoint, seriesIndex: t }
|
|
2100
2100
|
)), 9, gu))), 256))
|
|
2101
2101
|
], 4))), 256))
|
|
2102
|
-
], 64)) : (n(!0), r(d, { key: 1 }, w(
|
|
2102
|
+
], 64)) : (n(!0), r(d, { key: 1 }, w(it.value, (e, u) => (n(), r("g", {
|
|
2103
2103
|
key: `yLabel_${u}`
|
|
2104
2104
|
}, [
|
|
2105
2105
|
me(e) && e.value >= $e.value.min && e.value <= $e.value.max && l.value.chart.grid.labels.yAxis.showCrosshairs ? (n(), r("line", {
|
|
@@ -2120,7 +2120,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2120
2120
|
"font-size": y.value.dataLabels,
|
|
2121
2121
|
"text-anchor": "end",
|
|
2122
2122
|
fill: l.value.chart.grid.labels.color
|
|
2123
|
-
},
|
|
2123
|
+
}, ae(me(e.value) ? v(se)(
|
|
2124
2124
|
l.value.chart.grid.labels.yAxis.formatter,
|
|
2125
2125
|
e.value,
|
|
2126
2126
|
v(Ve)({
|
|
@@ -2132,41 +2132,41 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2132
2132
|
) : ""), 9, bu)) : h("", !0)
|
|
2133
2133
|
]))), 128))
|
|
2134
2134
|
], 512)) : h("", !0),
|
|
2135
|
-
(n(!0), r(d, null, w(
|
|
2135
|
+
(n(!0), r(d, null, w(be.value, (e, u) => (n(), r("g", {
|
|
2136
2136
|
key: `serie_plot_${e.id}`,
|
|
2137
2137
|
class: je(`serie_plot_${u}`),
|
|
2138
2138
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2139
2139
|
}, [
|
|
2140
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
2140
|
+
(n(!0), r(d, null, w(e.plots, (t, i) => (n(), r("g", {
|
|
2141
2141
|
key: `circle_plot_${u}_${i}`
|
|
2142
2142
|
}, [
|
|
2143
|
-
|
|
2143
|
+
t && me(t.value) ? (n(), Ae(Kl, {
|
|
2144
2144
|
key: 0,
|
|
2145
2145
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
2146
2146
|
color: l.value.plot.useGradient ? `url(#plotGradient_${u}_${D.value})` : l.value.plot.dot.useSerieColor ? e.color : l.value.plot.dot.fill,
|
|
2147
|
-
plot: { x: v(P)(
|
|
2147
|
+
plot: { x: v(P)(t.x), y: v(P)(t.y) },
|
|
2148
2148
|
radius: _.value !== null && _.value === i || V.value !== null && V.value === i ? (we.value.plot || 6) * 1.5 : we.value.plot || 6,
|
|
2149
2149
|
stroke: l.value.plot.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
|
|
2150
2150
|
strokeWidth: l.value.plot.dot.strokeWidth,
|
|
2151
|
-
transition: v(
|
|
2151
|
+
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`
|
|
2152
2152
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : h("", !0),
|
|
2153
|
-
|
|
2153
|
+
t.comment && l.value.chart.comments.show ? (n(), r("foreignObject", {
|
|
2154
2154
|
key: 1,
|
|
2155
2155
|
style: { overflow: "visible" },
|
|
2156
2156
|
height: "12",
|
|
2157
2157
|
width: l.value.chart.comments.width,
|
|
2158
|
-
x:
|
|
2159
|
-
y:
|
|
2158
|
+
x: t.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
|
|
2159
|
+
y: t.y + l.value.chart.comments.offsetY + 6
|
|
2160
2160
|
}, [
|
|
2161
2161
|
p("div", pu, [
|
|
2162
|
-
X(
|
|
2163
|
-
plot: { ...
|
|
2162
|
+
X(a.$slots, "plot-comment", {
|
|
2163
|
+
plot: { ...t, color: e.color, seriesIndex: u, datapointIndex: i }
|
|
2164
2164
|
}, void 0, !0)
|
|
2165
2165
|
])
|
|
2166
2166
|
], 8, xu)) : h("", !0)
|
|
2167
2167
|
]))), 128))
|
|
2168
2168
|
], 6))), 128)),
|
|
2169
|
-
(n(!0), r(d, null, w(
|
|
2169
|
+
(n(!0), r(d, null, w(te.value, (e, u) => (n(), r("g", {
|
|
2170
2170
|
key: `serie_line_${e.id}`,
|
|
2171
2171
|
class: je(`serie_line_${u}`),
|
|
2172
2172
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
@@ -2178,7 +2178,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2178
2178
|
"stroke-width": l.value.line.strokeWidth + 1,
|
|
2179
2179
|
"stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
|
|
2180
2180
|
fill: "none",
|
|
2181
|
-
style: $({ transition: v(
|
|
2181
|
+
style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2182
2182
|
}, null, 12, yu)) : e.plots.length > 1 && e.straight ? (n(), r("path", {
|
|
2183
2183
|
key: 1,
|
|
2184
2184
|
d: `M${e.straight}`,
|
|
@@ -2188,56 +2188,56 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2188
2188
|
fill: "none",
|
|
2189
2189
|
"stroke-linecap": "round",
|
|
2190
2190
|
"stroke-linejoin": "round",
|
|
2191
|
-
style: $({ transition: v(
|
|
2191
|
+
style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2192
2192
|
}, null, 12, ku)) : h("", !0)
|
|
2193
2193
|
], 6))), 128)),
|
|
2194
|
-
|
|
2195
|
-
(n(!0), r(d, null, w(Fe.value, (e, u) => X(
|
|
2194
|
+
a.$slots.pattern ? (n(), r("defs", _u, [
|
|
2195
|
+
(n(!0), r(d, null, w(Fe.value, (e, u) => X(a.$slots, "pattern", al({
|
|
2196
2196
|
key: `serie_pattern_slot_${e.id}`
|
|
2197
2197
|
}, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${D.value}_${u}` }), void 0, !0)), 128))
|
|
2198
2198
|
])) : h("", !0),
|
|
2199
|
-
|
|
2200
|
-
(n(!0), r(d, null, w(
|
|
2199
|
+
ct.value.length && !f.value.isStacked ? (n(), r("g", wu, [
|
|
2200
|
+
(n(!0), r(d, null, w(ct.value, (e) => (n(), r("path", {
|
|
2201
2201
|
key: e.key,
|
|
2202
2202
|
d: e.d,
|
|
2203
2203
|
fill: e.color,
|
|
2204
2204
|
"fill-opacity": l.value.line.interLine.fillOpacity,
|
|
2205
2205
|
stroke: "none",
|
|
2206
2206
|
"pointer-events": "none",
|
|
2207
|
-
style: $({ transition: v(
|
|
2207
|
+
style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2208
2208
|
}, null, 12, Su))), 128))
|
|
2209
2209
|
])) : h("", !0),
|
|
2210
|
-
(n(!0), r(d, null, w(
|
|
2210
|
+
(n(!0), r(d, null, w(te.value, (e, u) => (n(), r("g", {
|
|
2211
2211
|
key: `serie_line_above_${e.id}`,
|
|
2212
2212
|
class: je(`serie_line_${u}`),
|
|
2213
2213
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2214
2214
|
}, [
|
|
2215
2215
|
e.useArea && e.plots.length > 1 ? (n(), r("g", $u, [
|
|
2216
|
-
e.smooth ? (n(!0), r(d, { key: 0 }, w(e.curveAreas, (
|
|
2217
|
-
|
|
2216
|
+
e.smooth ? (n(!0), r(d, { key: 0 }, w(e.curveAreas, (t, i) => (n(), r(d, { key: i }, [
|
|
2217
|
+
t ? (n(), r("path", {
|
|
2218
2218
|
key: 0,
|
|
2219
|
-
d:
|
|
2220
|
-
fill: l.value.line.area.useGradient ? `url(#areaGradient_${u}_${D.value})` : v(
|
|
2221
|
-
style: $({ transition: v(
|
|
2219
|
+
d: t,
|
|
2220
|
+
fill: l.value.line.area.useGradient ? `url(#areaGradient_${u}_${D.value})` : v(Ce)(e.color, l.value.line.area.opacity),
|
|
2221
|
+
style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2222
2222
|
}, null, 12, Lu)) : h("", !0),
|
|
2223
|
-
|
|
2223
|
+
a.$slots.pattern && t ? (n(), r("path", {
|
|
2224
2224
|
key: 1,
|
|
2225
|
-
d:
|
|
2225
|
+
d: t,
|
|
2226
2226
|
fill: `url(#pattern_${D.value}_${e.slotAbsoluteIndex})`,
|
|
2227
|
-
style: $({ transition: v(
|
|
2227
|
+
style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2228
2228
|
}, null, 12, Mu)) : h("", !0)
|
|
2229
|
-
], 64))), 128)) : (n(!0), r(d, { key: 1 }, w(e.area.split(";"), (
|
|
2230
|
-
|
|
2229
|
+
], 64))), 128)) : (n(!0), r(d, { key: 1 }, w(e.area.split(";"), (t, i) => (n(), r(d, { key: i }, [
|
|
2230
|
+
t ? (n(), r("path", {
|
|
2231
2231
|
key: 0,
|
|
2232
|
-
d: `M${
|
|
2233
|
-
fill: l.value.line.area.useGradient ? `url(#areaGradient_${u}_${D.value})` : v(
|
|
2234
|
-
style: $({ transition: v(
|
|
2232
|
+
d: `M${t}Z`,
|
|
2233
|
+
fill: l.value.line.area.useGradient ? `url(#areaGradient_${u}_${D.value})` : v(Ce)(e.color, l.value.line.area.opacity),
|
|
2234
|
+
style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2235
2235
|
}, null, 12, Au)) : h("", !0),
|
|
2236
|
-
|
|
2236
|
+
a.$slots.pattern && t ? (n(), r("path", {
|
|
2237
2237
|
key: 1,
|
|
2238
|
-
d: `M${
|
|
2238
|
+
d: `M${t}Z`,
|
|
2239
2239
|
fill: `url(#pattern_${D.value}_${e.slotAbsoluteIndex})`,
|
|
2240
|
-
style: $({ transition: v(
|
|
2240
|
+
style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2241
2241
|
}, null, 12, Cu)) : h("", !0)
|
|
2242
2242
|
], 64))), 128))
|
|
2243
2243
|
])) : h("", !0),
|
|
@@ -2249,7 +2249,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2249
2249
|
"stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
|
|
2250
2250
|
fill: "none",
|
|
2251
2251
|
"stroke-linecap": "round",
|
|
2252
|
-
style: $({ transition: v(
|
|
2252
|
+
style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2253
2253
|
}, null, 12, Tu)) : e.plots.length > 1 && e.straight ? (n(), r("path", {
|
|
2254
2254
|
key: 2,
|
|
2255
2255
|
d: `M${e.straight}`,
|
|
@@ -2259,76 +2259,76 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2259
2259
|
fill: "none",
|
|
2260
2260
|
"stroke-linecap": "round",
|
|
2261
2261
|
"stroke-linejoin": "round",
|
|
2262
|
-
style: $({ transition: v(
|
|
2262
|
+
style: $({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2263
2263
|
}, null, 12, zu)) : h("", !0),
|
|
2264
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
2264
|
+
(n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
|
|
2265
2265
|
key: `circle_line_${u}_${i}`
|
|
2266
2266
|
}, [
|
|
2267
|
-
!
|
|
2267
|
+
!st.value.linePlot && t && me(t.value) || st.value.linePlot && t && me(t.value) && (_.value !== null && _.value === i || V.value !== null && V.value === i) || rt(e.plots, i) ? (n(), Ae(Kl, {
|
|
2268
2268
|
key: 0,
|
|
2269
2269
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
2270
2270
|
color: l.value.line.useGradient ? `url(#lineGradient_${u}_${D.value})` : l.value.line.dot.useSerieColor ? e.color : l.value.line.dot.fill,
|
|
2271
|
-
plot: { x: v(P)(
|
|
2272
|
-
radius: _.value !== null && _.value === i || V.value !== null && V.value === i ? (we.value.line || 6) * 1.5 : (
|
|
2271
|
+
plot: { x: v(P)(t.x), y: v(P)(t.y) },
|
|
2272
|
+
radius: _.value !== null && _.value === i || V.value !== null && V.value === i ? (we.value.line || 6) * 1.5 : (rt(e.plots, i), we.value.line || 6),
|
|
2273
2273
|
stroke: l.value.line.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
|
|
2274
2274
|
strokeWidth: l.value.line.dot.strokeWidth,
|
|
2275
|
-
transition: v(
|
|
2275
|
+
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`
|
|
2276
2276
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : h("", !0),
|
|
2277
|
-
|
|
2277
|
+
t.comment && l.value.chart.comments.show ? (n(), r("foreignObject", {
|
|
2278
2278
|
key: 1,
|
|
2279
2279
|
style: { overflow: "visible" },
|
|
2280
2280
|
height: "12",
|
|
2281
2281
|
width: l.value.chart.comments.width,
|
|
2282
|
-
x:
|
|
2283
|
-
y:
|
|
2282
|
+
x: t.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
|
|
2283
|
+
y: t.y + l.value.chart.comments.offsetY + 6
|
|
2284
2284
|
}, [
|
|
2285
2285
|
p("div", Ou, [
|
|
2286
|
-
X(
|
|
2287
|
-
plot: { ...
|
|
2286
|
+
X(a.$slots, "plot-comment", {
|
|
2287
|
+
plot: { ...t, color: e.color, seriesIndex: u, datapointIndex: i }
|
|
2288
2288
|
}, void 0, !0)
|
|
2289
2289
|
])
|
|
2290
2290
|
], 8, Iu)) : h("", !0)
|
|
2291
2291
|
], 64))), 128))
|
|
2292
2292
|
], 6))), 128)),
|
|
2293
2293
|
(l.value.bar.labels.show || l.value.bar.serieName.show) && f.value.dataLabels.show ? (n(), r("g", Nu, [
|
|
2294
|
-
(n(!0), r(d, null, w(
|
|
2294
|
+
(n(!0), r(d, null, w(Me.value, (e, u) => (n(), r(d, {
|
|
2295
2295
|
key: `xLabel_bar_${e.id}`
|
|
2296
2296
|
}, [
|
|
2297
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
2297
|
+
(n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
|
|
2298
2298
|
key: `xLabel_bar_${u}_${i}`
|
|
2299
2299
|
}, [
|
|
2300
|
-
|
|
2300
|
+
t && (!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", {
|
|
2301
2301
|
key: 0,
|
|
2302
|
-
x: f.value.useIndividualScale && f.value.isStacked ?
|
|
2303
|
-
y: v(P)(
|
|
2302
|
+
x: f.value.useIndividualScale && f.value.isStacked ? t.x + q.value.line / 2 : Hl(t) + He() / 2 - El.value / 2,
|
|
2303
|
+
y: v(P)(t.y) + (t.value >= 0 ? l.value.bar.labels.offsetY : -l.value.bar.labels.offsetY * 3),
|
|
2304
2304
|
"text-anchor": "middle",
|
|
2305
2305
|
"font-size": y.value.plotLabels,
|
|
2306
2306
|
fill: l.value.bar.labels.color,
|
|
2307
2307
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2308
|
-
},
|
|
2308
|
+
}, ae(me(t.value) ? v(se)(
|
|
2309
2309
|
l.value.bar.labels.formatter,
|
|
2310
|
-
|
|
2310
|
+
t.value,
|
|
2311
2311
|
v(Ve)({
|
|
2312
2312
|
p: e.prefix || l.value.chart.labels.prefix,
|
|
2313
|
-
v:
|
|
2313
|
+
v: t.value,
|
|
2314
2314
|
s: e.suffix || l.value.chart.labels.suffix,
|
|
2315
2315
|
r: l.value.bar.labels.rounding
|
|
2316
2316
|
}),
|
|
2317
2317
|
{
|
|
2318
|
-
datapoint:
|
|
2318
|
+
datapoint: t,
|
|
2319
2319
|
serie: e
|
|
2320
2320
|
}
|
|
2321
2321
|
) : ""), 13, Vu)) : h("", !0),
|
|
2322
|
-
|
|
2322
|
+
t && l.value.bar.serieName.show ? (n(), r("text", {
|
|
2323
2323
|
key: 1,
|
|
2324
|
-
x: f.value.useIndividualScale && f.value.isStacked ?
|
|
2325
|
-
y:
|
|
2324
|
+
x: f.value.useIndividualScale && f.value.isStacked ? t.x + q.value.line / 2 : t.x + He() * 1.1,
|
|
2325
|
+
y: t.y + (t.value > 0 ? l.value.bar.serieName.offsetY : -l.value.bar.serieName.offsetY * 3),
|
|
2326
2326
|
"text-anchor": "middle",
|
|
2327
2327
|
"font-size": y.value.plotLabels,
|
|
2328
2328
|
fill: l.value.bar.serieName.useSerieColor ? e.color : l.value.bar.serieName.color,
|
|
2329
2329
|
"font-weight": l.value.bar.serieName.bold ? "bold" : "normal",
|
|
2330
2330
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2331
|
-
},
|
|
2331
|
+
}, ae(l.value.bar.serieName.useAbbreviation ? v(as)({
|
|
2332
2332
|
source: e.name,
|
|
2333
2333
|
length: l.value.bar.serieName.abbreviationSize
|
|
2334
2334
|
}) : e.name), 13, Pu)) : h("", !0)
|
|
@@ -2336,41 +2336,41 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2336
2336
|
], 64))), 128))
|
|
2337
2337
|
])) : h("", !0),
|
|
2338
2338
|
l.value.plot.labels.show && f.value.dataLabels.show ? (n(), r("g", Fu, [
|
|
2339
|
-
(n(!0), r(d, null, w(
|
|
2339
|
+
(n(!0), r(d, null, w(be.value, (e, u) => (n(), r(d, {
|
|
2340
2340
|
key: `xLabel_plot_${e.id}`
|
|
2341
2341
|
}, [
|
|
2342
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
2342
|
+
(n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
|
|
2343
2343
|
key: `xLabel_plot_${u}_${i}`
|
|
2344
2344
|
}, [
|
|
2345
|
-
|
|
2345
|
+
t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === i || V.value !== null && V.value === i ? (n(), r("text", {
|
|
2346
2346
|
key: 0,
|
|
2347
|
-
x:
|
|
2348
|
-
y:
|
|
2347
|
+
x: t.x,
|
|
2348
|
+
y: t.y + l.value.plot.labels.offsetY,
|
|
2349
2349
|
"text-anchor": "middle",
|
|
2350
2350
|
"font-size": y.value.plotLabels,
|
|
2351
2351
|
fill: l.value.plot.labels.color,
|
|
2352
2352
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2353
|
-
},
|
|
2353
|
+
}, ae(me(t.value) ? v(se)(
|
|
2354
2354
|
l.value.plot.labels.formatter,
|
|
2355
|
-
|
|
2355
|
+
t.value,
|
|
2356
2356
|
v(Ve)({
|
|
2357
2357
|
p: e.prefix || l.value.chart.labels.prefix,
|
|
2358
|
-
v:
|
|
2358
|
+
v: t.value,
|
|
2359
2359
|
s: e.suffix || l.value.chart.labels.suffix,
|
|
2360
2360
|
r: l.value.plot.labels.rounding
|
|
2361
2361
|
}),
|
|
2362
2362
|
{
|
|
2363
|
-
datapoint:
|
|
2363
|
+
datapoint: t,
|
|
2364
2364
|
serie: e
|
|
2365
2365
|
}
|
|
2366
2366
|
) : ""), 13, Ru)) : h("", !0)
|
|
2367
2367
|
], 64))), 128))
|
|
2368
2368
|
], 64))), 128))
|
|
2369
2369
|
])) : (n(), r("g", Bu, [
|
|
2370
|
-
(n(!0), r(d, null, w(
|
|
2370
|
+
(n(!0), r(d, null, w(be.value, (e, u) => (n(), r(d, {
|
|
2371
2371
|
key: `xLabel_plot_${e.id}`
|
|
2372
2372
|
}, [
|
|
2373
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
2373
|
+
(n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
|
|
2374
2374
|
key: `xLabel_plot_${u}_${i}`
|
|
2375
2375
|
}, [
|
|
2376
2376
|
l.value.plot.tag.followValue ? (n(), r(d, { key: 1 }, [
|
|
@@ -2379,52 +2379,52 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2379
2379
|
class: "vue-ui-xy-tag-plot",
|
|
2380
2380
|
x1: c.value.left,
|
|
2381
2381
|
x2: c.value.right,
|
|
2382
|
-
y1:
|
|
2383
|
-
y2:
|
|
2382
|
+
y1: t.y,
|
|
2383
|
+
y2: t.y,
|
|
2384
2384
|
"stroke-width": 1,
|
|
2385
2385
|
"stroke-linecap": "round",
|
|
2386
2386
|
"stroke-dasharray": "2",
|
|
2387
2387
|
stroke: e.color
|
|
2388
2388
|
}, null, 8, Wu)) : h("", !0)
|
|
2389
2389
|
], 64)) : (n(), r(d, { key: 0 }, [
|
|
2390
|
-
|
|
2390
|
+
t && i === 0 && e.useTag && e.useTag === "start" ? (n(), r("foreignObject", {
|
|
2391
2391
|
key: 0,
|
|
2392
|
-
x:
|
|
2393
|
-
y:
|
|
2392
|
+
x: t.x,
|
|
2393
|
+
y: t.y - 20,
|
|
2394
2394
|
height: 24,
|
|
2395
2395
|
width: "150",
|
|
2396
2396
|
style: $(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2397
2397
|
}, [
|
|
2398
2398
|
p("div", {
|
|
2399
|
-
style: $(`padding: 3px; background:${v(
|
|
2400
|
-
innerHTML: v(
|
|
2399
|
+
style: $(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(We)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
|
|
2400
|
+
innerHTML: v(se)(
|
|
2401
2401
|
l.value.plot.tag.formatter,
|
|
2402
|
-
|
|
2402
|
+
t.value,
|
|
2403
2403
|
e.name,
|
|
2404
2404
|
{
|
|
2405
|
-
datapoint:
|
|
2405
|
+
datapoint: t,
|
|
2406
2406
|
seriesIndex: i,
|
|
2407
2407
|
serieName: e.name
|
|
2408
2408
|
}
|
|
2409
2409
|
)
|
|
2410
2410
|
}, null, 12, Du)
|
|
2411
2411
|
], 12, Hu)) : h("", !0),
|
|
2412
|
-
|
|
2412
|
+
t && i === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (n(), r("foreignObject", {
|
|
2413
2413
|
key: 1,
|
|
2414
|
-
x:
|
|
2415
|
-
y:
|
|
2414
|
+
x: t.x - e.name.length * (y.value.plotLabels / 2),
|
|
2415
|
+
y: t.y - 20,
|
|
2416
2416
|
height: 24,
|
|
2417
2417
|
width: "150",
|
|
2418
2418
|
style: $(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2419
2419
|
}, [
|
|
2420
2420
|
p("div", {
|
|
2421
|
-
style: $(`padding: 3px; background:${v(
|
|
2422
|
-
innerHTML: v(
|
|
2421
|
+
style: $(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(We)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
|
|
2422
|
+
innerHTML: v(se)(
|
|
2423
2423
|
l.value.plot.tag.formatter,
|
|
2424
|
-
|
|
2424
|
+
t.value,
|
|
2425
2425
|
e.name,
|
|
2426
2426
|
{
|
|
2427
|
-
datapoint:
|
|
2427
|
+
datapoint: t,
|
|
2428
2428
|
seriesIndex: i,
|
|
2429
2429
|
serieName: e.name
|
|
2430
2430
|
}
|
|
@@ -2436,41 +2436,41 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2436
2436
|
], 64))), 128))
|
|
2437
2437
|
])),
|
|
2438
2438
|
l.value.line.labels.show && f.value.dataLabels.show ? (n(), r("g", Xu, [
|
|
2439
|
-
(n(!0), r(d, null, w(
|
|
2439
|
+
(n(!0), r(d, null, w(te.value, (e, u) => (n(), r(d, {
|
|
2440
2440
|
key: `xLabel_line_${e.id}`
|
|
2441
2441
|
}, [
|
|
2442
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
2442
|
+
(n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
|
|
2443
2443
|
key: `xLabel_line_${u}_${i}`
|
|
2444
2444
|
}, [
|
|
2445
|
-
|
|
2445
|
+
t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === i || V.value !== null && V.value === i ? (n(), r("text", {
|
|
2446
2446
|
key: 0,
|
|
2447
|
-
x:
|
|
2448
|
-
y:
|
|
2447
|
+
x: t.x,
|
|
2448
|
+
y: t.y + (t.value >= 0 ? l.value.line.labels.offsetY : -l.value.line.labels.offsetY * 3),
|
|
2449
2449
|
"text-anchor": "middle",
|
|
2450
2450
|
"font-size": y.value.plotLabels,
|
|
2451
2451
|
fill: l.value.line.labels.color,
|
|
2452
2452
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2453
|
-
},
|
|
2453
|
+
}, ae(me(t.value) ? v(se)(
|
|
2454
2454
|
l.value.line.labels.formatter,
|
|
2455
|
-
|
|
2455
|
+
t.value,
|
|
2456
2456
|
v(Ve)({
|
|
2457
2457
|
p: e.prefix || l.value.chart.labels.prefix,
|
|
2458
|
-
v:
|
|
2458
|
+
v: t.value,
|
|
2459
2459
|
s: e.suffix || l.value.chart.labels.suffix,
|
|
2460
2460
|
r: l.value.line.labels.rounding
|
|
2461
2461
|
}),
|
|
2462
2462
|
{
|
|
2463
|
-
datapoint:
|
|
2463
|
+
datapoint: t,
|
|
2464
2464
|
serie: e
|
|
2465
2465
|
}
|
|
2466
2466
|
) : ""), 13, Gu)) : h("", !0)
|
|
2467
2467
|
], 64))), 128))
|
|
2468
2468
|
], 64))), 128))
|
|
2469
2469
|
])) : (n(), r("g", Uu, [
|
|
2470
|
-
(n(!0), r(d, null, w(
|
|
2470
|
+
(n(!0), r(d, null, w(te.value, (e, u) => (n(), r(d, {
|
|
2471
2471
|
key: `xLabel_line_${e.id}`
|
|
2472
2472
|
}, [
|
|
2473
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
2473
|
+
(n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
|
|
2474
2474
|
key: `xLabel_line_${u}_${i}`
|
|
2475
2475
|
}, [
|
|
2476
2476
|
l.value.line.tag.followValue ? (n(), r(d, { key: 1 }, [
|
|
@@ -2479,52 +2479,52 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2479
2479
|
class: "vue-ui-xy-tag-line",
|
|
2480
2480
|
x1: c.value.left,
|
|
2481
2481
|
x2: c.value.right,
|
|
2482
|
-
y1:
|
|
2483
|
-
y2:
|
|
2482
|
+
y1: t.y,
|
|
2483
|
+
y2: t.y,
|
|
2484
2484
|
"stroke-width": 1,
|
|
2485
2485
|
"stroke-linecap": "round",
|
|
2486
2486
|
"stroke-dasharray": "2",
|
|
2487
2487
|
stroke: e.color
|
|
2488
2488
|
}, null, 8, Qu)) : h("", !0)
|
|
2489
2489
|
], 64)) : (n(), r(d, { key: 0 }, [
|
|
2490
|
-
|
|
2490
|
+
t && i === 0 && e.useTag && e.useTag === "start" ? (n(), r("foreignObject", {
|
|
2491
2491
|
key: 0,
|
|
2492
|
-
x:
|
|
2493
|
-
y:
|
|
2492
|
+
x: t.x,
|
|
2493
|
+
y: t.y - 20,
|
|
2494
2494
|
height: 24,
|
|
2495
2495
|
width: "150",
|
|
2496
2496
|
style: $(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2497
2497
|
}, [
|
|
2498
2498
|
p("div", {
|
|
2499
|
-
style: $(`padding: 3px; background:${v(
|
|
2500
|
-
innerHTML: v(
|
|
2499
|
+
style: $(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(We)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
|
|
2500
|
+
innerHTML: v(se)(
|
|
2501
2501
|
l.value.line.tag.formatter,
|
|
2502
|
-
|
|
2502
|
+
t.value,
|
|
2503
2503
|
e.name,
|
|
2504
2504
|
{
|
|
2505
|
-
datapoint:
|
|
2505
|
+
datapoint: t,
|
|
2506
2506
|
seriesIndex: i,
|
|
2507
2507
|
serieName: e.name
|
|
2508
2508
|
}
|
|
2509
2509
|
)
|
|
2510
2510
|
}, null, 12, Zu)
|
|
2511
2511
|
], 12, qu)) : h("", !0),
|
|
2512
|
-
|
|
2512
|
+
t && i === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (n(), r("foreignObject", {
|
|
2513
2513
|
key: 1,
|
|
2514
|
-
x:
|
|
2515
|
-
y:
|
|
2514
|
+
x: t.x,
|
|
2515
|
+
y: t.y - 20,
|
|
2516
2516
|
height: 24,
|
|
2517
2517
|
width: "150",
|
|
2518
2518
|
style: $(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2519
2519
|
}, [
|
|
2520
2520
|
p("div", {
|
|
2521
|
-
style: $(`padding: 3px; background:${v(
|
|
2522
|
-
innerHTML: v(
|
|
2521
|
+
style: $(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(We)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
|
|
2522
|
+
innerHTML: v(se)(
|
|
2523
2523
|
l.value.line.tag.formatter,
|
|
2524
|
-
|
|
2524
|
+
t.value,
|
|
2525
2525
|
e.name,
|
|
2526
2526
|
{
|
|
2527
|
-
datapoint:
|
|
2527
|
+
datapoint: t,
|
|
2528
2528
|
seriesIndex: i,
|
|
2529
2529
|
serieName: e.name
|
|
2530
2530
|
}
|
|
@@ -2535,16 +2535,16 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2535
2535
|
], 64))), 128))
|
|
2536
2536
|
], 64))), 128))
|
|
2537
2537
|
])),
|
|
2538
|
-
(n(!0), r(d, null, w(
|
|
2538
|
+
(n(!0), r(d, null, w(te.value, (e, u) => (n(), r(d, {
|
|
2539
2539
|
key: `xLabel_line_${e.id}`
|
|
2540
2540
|
}, [
|
|
2541
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
2541
|
+
(n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
|
|
2542
2542
|
key: `xLabel_line_${u}_${i}`
|
|
2543
2543
|
}, [
|
|
2544
|
-
|
|
2544
|
+
t && i === 0 && e.showSerieName && e.showSerieName === "start" ? (n(), r("text", {
|
|
2545
2545
|
key: 0,
|
|
2546
|
-
x:
|
|
2547
|
-
y:
|
|
2546
|
+
x: t.x - y.value.plotLabels,
|
|
2547
|
+
y: t.y,
|
|
2548
2548
|
"font-size": y.value.plotLabels,
|
|
2549
2549
|
"text-anchor": "end",
|
|
2550
2550
|
fill: e.color,
|
|
@@ -2552,16 +2552,16 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2552
2552
|
content: e.name,
|
|
2553
2553
|
fontSize: y.value.plotLabels,
|
|
2554
2554
|
fill: e.color,
|
|
2555
|
-
x:
|
|
2556
|
-
y:
|
|
2555
|
+
x: t.x - y.value.plotLabels,
|
|
2556
|
+
y: t.y,
|
|
2557
2557
|
maxWords: 2
|
|
2558
2558
|
}),
|
|
2559
2559
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2560
2560
|
}, null, 12, ju)) : h("", !0),
|
|
2561
|
-
|
|
2561
|
+
t && i === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (n(), r("text", {
|
|
2562
2562
|
key: 1,
|
|
2563
|
-
x:
|
|
2564
|
-
y:
|
|
2563
|
+
x: t.x + y.value.plotLabels,
|
|
2564
|
+
y: t.y,
|
|
2565
2565
|
"font-size": y.value.plotLabels,
|
|
2566
2566
|
"text-anchor": "start",
|
|
2567
2567
|
fill: e.color,
|
|
@@ -2569,24 +2569,24 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2569
2569
|
content: e.name,
|
|
2570
2570
|
fontSize: y.value.plotLabels,
|
|
2571
2571
|
fill: e.color,
|
|
2572
|
-
x:
|
|
2573
|
-
y:
|
|
2572
|
+
x: t.x + y.value.plotLabels,
|
|
2573
|
+
y: t.y,
|
|
2574
2574
|
maxWords: 2
|
|
2575
2575
|
}),
|
|
2576
2576
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2577
2577
|
}, null, 12, ei)) : h("", !0)
|
|
2578
2578
|
], 64))), 128))
|
|
2579
2579
|
], 64))), 128)),
|
|
2580
|
-
(n(!0), r(d, null, w(
|
|
2580
|
+
(n(!0), r(d, null, w(be.value, (e, u) => (n(), r(d, {
|
|
2581
2581
|
key: `xLabel_plot_${e.id}`
|
|
2582
2582
|
}, [
|
|
2583
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
2583
|
+
(n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
|
|
2584
2584
|
key: `xLabel_plot_${u}_${i}`
|
|
2585
2585
|
}, [
|
|
2586
|
-
|
|
2586
|
+
t && i === 0 && e.showSerieName && e.showSerieName === "start" ? (n(), r("text", {
|
|
2587
2587
|
key: 0,
|
|
2588
|
-
x:
|
|
2589
|
-
y:
|
|
2588
|
+
x: t.x - y.value.plotLabels,
|
|
2589
|
+
y: t.y,
|
|
2590
2590
|
"font-size": y.value.plotLabels,
|
|
2591
2591
|
"text-anchor": "end",
|
|
2592
2592
|
fill: e.color,
|
|
@@ -2594,16 +2594,16 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2594
2594
|
content: e.name,
|
|
2595
2595
|
fontSize: y.value.plotLabels,
|
|
2596
2596
|
fill: e.color,
|
|
2597
|
-
x:
|
|
2598
|
-
y:
|
|
2597
|
+
x: t.x - y.value.plotLabels,
|
|
2598
|
+
y: t.y,
|
|
2599
2599
|
maxWords: 2
|
|
2600
2600
|
}),
|
|
2601
2601
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2602
2602
|
}, null, 12, li)) : h("", !0),
|
|
2603
|
-
|
|
2603
|
+
t && i === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (n(), r("text", {
|
|
2604
2604
|
key: 1,
|
|
2605
|
-
x:
|
|
2606
|
-
y:
|
|
2605
|
+
x: t.x + y.value.plotLabels,
|
|
2606
|
+
y: t.y,
|
|
2607
2607
|
"font-size": y.value.plotLabels,
|
|
2608
2608
|
"text-anchor": "start",
|
|
2609
2609
|
fill: e.color,
|
|
@@ -2611,18 +2611,18 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2611
2611
|
content: e.name,
|
|
2612
2612
|
fontSize: y.value.plotLabels,
|
|
2613
2613
|
fill: e.color,
|
|
2614
|
-
x:
|
|
2615
|
-
y:
|
|
2614
|
+
x: t.x + y.value.plotLabels,
|
|
2615
|
+
y: t.y,
|
|
2616
2616
|
maxWords: 2
|
|
2617
2617
|
}),
|
|
2618
2618
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2619
|
-
}, null, 12,
|
|
2619
|
+
}, null, 12, ai)) : h("", !0)
|
|
2620
2620
|
], 64))), 128))
|
|
2621
2621
|
], 64))), 128)),
|
|
2622
|
-
(n(!0), r(d, null, w([...
|
|
2622
|
+
(n(!0), r(d, null, w([...be.value, ...te.value, ...Me.value], (e, u) => (n(), r(d, {
|
|
2623
2623
|
key: `progression-${u}`
|
|
2624
2624
|
}, [
|
|
2625
|
-
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(_e)(e.plots).trend) ? (n(), r("g",
|
|
2625
|
+
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(_e)(e.plots).trend) ? (n(), r("g", ti, [
|
|
2626
2626
|
p("defs", null, [
|
|
2627
2627
|
p("marker", {
|
|
2628
2628
|
id: `progression_arrow_${u}`,
|
|
@@ -2682,7 +2682,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2682
2682
|
"stroke-linecap": "round",
|
|
2683
2683
|
"stroke-linejoin": "round",
|
|
2684
2684
|
"paint-order": "stroke fill"
|
|
2685
|
-
},
|
|
2685
|
+
}, ae(v(Ve)({
|
|
2686
2686
|
v: v(_e)(e.plots).trend * 100,
|
|
2687
2687
|
s: "%",
|
|
2688
2688
|
r: 2
|
|
@@ -2716,38 +2716,38 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2716
2716
|
width: l.value.chart.grid.labels.yAxis.labelWidth + c.value.individualOffsetX,
|
|
2717
2717
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
2718
2718
|
fill: I.value === e.groupId ? `url(#individual_scale_gradient_${D.value}_${u})` : "transparent",
|
|
2719
|
-
onMouseenter: (
|
|
2720
|
-
onMouseleave: s[0] || (s[0] = (
|
|
2719
|
+
onMouseenter: (t) => I.value = e.groupId,
|
|
2720
|
+
onMouseleave: s[0] || (s[0] = (t) => I.value = null)
|
|
2721
2721
|
}, null, 40, di))), 256))
|
|
2722
2722
|
], 64)) : h("", !0),
|
|
2723
2723
|
p("g", null, [
|
|
2724
2724
|
l.value.chart.grid.labels.axis.yLabel && !f.value.useIndividualScale ? (n(), r("text", {
|
|
2725
2725
|
key: 0,
|
|
2726
2726
|
ref_key: "yAxisLabel",
|
|
2727
|
-
ref:
|
|
2727
|
+
ref: la,
|
|
2728
2728
|
"font-size": y.value.yAxis,
|
|
2729
2729
|
fill: l.value.chart.grid.labels.color,
|
|
2730
2730
|
transform: `translate(${l.value.chart.grid.labels.axis.fontSize}, ${c.value.top + c.value.height / 2}) rotate(-90)`,
|
|
2731
2731
|
"text-anchor": "middle",
|
|
2732
2732
|
style: { transition: "none" }
|
|
2733
|
-
},
|
|
2733
|
+
}, ae(l.value.chart.grid.labels.axis.yLabel), 9, hi)) : h("", !0),
|
|
2734
2734
|
l.value.chart.grid.labels.axis.xLabel ? (n(), r("text", {
|
|
2735
2735
|
key: 1,
|
|
2736
2736
|
ref_key: "xAxisLabel",
|
|
2737
|
-
ref:
|
|
2737
|
+
ref: ea,
|
|
2738
2738
|
"text-anchor": "middle",
|
|
2739
2739
|
x: Q.value / 2,
|
|
2740
2740
|
y: ve.value - 3,
|
|
2741
2741
|
"font-size": y.value.yAxis,
|
|
2742
2742
|
fill: l.value.chart.grid.labels.color
|
|
2743
|
-
},
|
|
2743
|
+
}, ae(l.value.chart.grid.labels.axis.xLabel), 9, fi)) : h("", !0)
|
|
2744
2744
|
]),
|
|
2745
2745
|
l.value.chart.grid.labels.xAxisLabels.show ? (n(), r("g", {
|
|
2746
2746
|
key: 14,
|
|
2747
2747
|
ref_key: "timeLabelsEls",
|
|
2748
2748
|
ref: ul
|
|
2749
2749
|
}, [
|
|
2750
|
-
|
|
2750
|
+
a.$slots["time-label"] ? (n(!0), r(d, { key: 0 }, w(ga.value, (e, u) => X(a.$slots, "time-label", al({
|
|
2751
2751
|
key: `time_label_${e.id}`,
|
|
2752
2752
|
ref_for: !0
|
|
2753
2753
|
}, {
|
|
@@ -2760,7 +2760,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2760
2760
|
content: e.text,
|
|
2761
2761
|
textAnchor: l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2762
2762
|
show: e && e.text
|
|
2763
|
-
}), void 0, !0)), 128)) : (n(!0), r(d, { key: 1 }, w(
|
|
2763
|
+
}), void 0, !0)), 128)) : (n(!0), r(d, { key: 1 }, w(ga.value, (e, u) => (n(), r("g", {
|
|
2764
2764
|
key: `time_label_${u}`
|
|
2765
2765
|
}, [
|
|
2766
2766
|
e && e.text ? (n(), r(d, { key: 0 }, [
|
|
@@ -2773,16 +2773,16 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2773
2773
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2774
2774
|
transform: `translate(${c.value.left + c.value.width / L.value * u + c.value.width / L.value / 2}, ${c.value.bottom + y.value.xAxis * 1.5}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2775
2775
|
style: $({
|
|
2776
|
-
cursor:
|
|
2776
|
+
cursor: Ea() ? "pointer" : "default"
|
|
2777
2777
|
}),
|
|
2778
|
-
innerHTML: v(
|
|
2778
|
+
innerHTML: v(ts)({
|
|
2779
2779
|
content: String(e.text),
|
|
2780
2780
|
fontSize: y.value.xAxis,
|
|
2781
2781
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2782
2782
|
x: 0,
|
|
2783
2783
|
y: 0
|
|
2784
2784
|
}),
|
|
2785
|
-
onClick: () =>
|
|
2785
|
+
onClick: () => Ga(e, u)
|
|
2786
2786
|
}, null, 12, mi)) : (n(), r("text", {
|
|
2787
2787
|
key: 0,
|
|
2788
2788
|
class: "vue-data-ui-time-label",
|
|
@@ -2791,15 +2791,15 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2791
2791
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2792
2792
|
transform: `translate(${c.value.left + c.value.width / L.value * u + c.value.width / L.value / 2}, ${c.value.bottom + y.value.xAxis * 1.5}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2793
2793
|
style: $({
|
|
2794
|
-
cursor:
|
|
2794
|
+
cursor: Ea() ? "pointer" : "default"
|
|
2795
2795
|
}),
|
|
2796
|
-
onClick: () =>
|
|
2797
|
-
},
|
|
2796
|
+
onClick: () => Ga(e, u)
|
|
2797
|
+
}, ae(e.text || ""), 13, gi))
|
|
2798
2798
|
], 64)) : h("", !0)
|
|
2799
2799
|
]))), 128))
|
|
2800
2800
|
], 512)) : h("", !0),
|
|
2801
|
-
|
|
2802
|
-
(n(!0), r(d, null, w(
|
|
2801
|
+
nt.value.length && !f.value.isStacked ? (n(), r("g", bi, [
|
|
2802
|
+
(n(!0), r(d, null, w(nt.value, (e) => (n(), r("g", {
|
|
2803
2803
|
key: e.uid
|
|
2804
2804
|
}, [
|
|
2805
2805
|
e.yTop && e.show && isFinite(e.yTop) ? (n(), r("line", {
|
|
@@ -2832,10 +2832,10 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2832
2832
|
x: e.x1,
|
|
2833
2833
|
width: c.value.width,
|
|
2834
2834
|
height: v(P)(e.areaHeight, 0),
|
|
2835
|
-
fill: v(
|
|
2835
|
+
fill: v(Ce)(e.config.area.fill, e.config.area.opacity),
|
|
2836
2836
|
style: { animation: "none !important" }
|
|
2837
2837
|
}, null, 8, yi)) : h("", !0),
|
|
2838
|
-
e.config.label.text && e.show && isFinite(e._box.y) ? (n(), r("rect",
|
|
2838
|
+
e.config.label.text && e.show && isFinite(e._box.y) ? (n(), r("rect", al({
|
|
2839
2839
|
key: 3,
|
|
2840
2840
|
class: "vue-ui-xy-annotation-label-box"
|
|
2841
2841
|
}, { ref_for: !0 }, e._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : h("", !0),
|
|
@@ -2848,7 +2848,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2848
2848
|
"font-size": e.config.label.fontSize,
|
|
2849
2849
|
fill: e.config.label.color,
|
|
2850
2850
|
"text-anchor": e.config.label.textAnchor
|
|
2851
|
-
},
|
|
2851
|
+
}, ae(e.config.label.text), 9, ki)) : h("", !0)
|
|
2852
2852
|
]))), 128))
|
|
2853
2853
|
])) : h("", !0),
|
|
2854
2854
|
l.value.chart.timeTag.show && (![null, void 0].includes(_.value) || ![null, void 0].includes(V.value)) ? (n(), r("g", _i, [
|
|
@@ -2861,7 +2861,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2861
2861
|
}, [
|
|
2862
2862
|
p("div", {
|
|
2863
2863
|
ref_key: "timeTagEl",
|
|
2864
|
-
ref:
|
|
2864
|
+
ref: kt,
|
|
2865
2865
|
class: "vue-ui-xy-time-tag",
|
|
2866
2866
|
style: $(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${l.value.chart.timeTag.backgroundColor};color:${l.value.chart.timeTag.color};font-size:${l.value.chart.timeTag.fontSize}px`),
|
|
2867
2867
|
innerHTML: No.value
|
|
@@ -2875,20 +2875,26 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2875
2875
|
}, null, 8, $i)
|
|
2876
2876
|
])) : h("", !0)
|
|
2877
2877
|
])) : h("", !0),
|
|
2878
|
-
|
|
2878
|
+
Pa.value ? (n(), r("rect", al({ key: 2 }, oo.value, {
|
|
2879
2879
|
"data-start": m.value.start,
|
|
2880
2880
|
"data-end": m.value.end
|
|
2881
2881
|
}), null, 16, Li)) : h("", !0),
|
|
2882
|
-
X(
|
|
2882
|
+
X(a.$slots, "svg", {
|
|
2883
|
+
svg: {
|
|
2884
|
+
...lo.value,
|
|
2885
|
+
data: [...te.value, ...Me.value, ...be.value],
|
|
2886
|
+
drawingArea: c.value
|
|
2887
|
+
}
|
|
2888
|
+
}, void 0, !0)
|
|
2883
2889
|
], 512)
|
|
2884
2890
|
], 46, Ss)),
|
|
2885
|
-
|
|
2886
|
-
X(
|
|
2891
|
+
a.$slots.watermark ? (n(), r("div", Mi, [
|
|
2892
|
+
X(a.$slots, "watermark", el(ll({ isPrinting: v(va) || v(Ra) })), void 0, !0)
|
|
2887
2893
|
])) : h("", !0),
|
|
2888
|
-
(n(!0), r(d, null, w(
|
|
2894
|
+
(n(!0), r(d, null, w(te.value, (e, u) => (n(), r(d, {
|
|
2889
2895
|
key: `tag_line_${e.id}`
|
|
2890
2896
|
}, [
|
|
2891
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
2897
|
+
(n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
|
|
2892
2898
|
key: `tag_line_${u}_${i}`
|
|
2893
2899
|
}, [
|
|
2894
2900
|
[V.value, _.value, Ue.value].includes(i) && e.useTag && e.useTag === "end" && l.value.line.tag.followValue ? (n(), r("div", {
|
|
@@ -2900,16 +2906,16 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2900
2906
|
style: $({
|
|
2901
2907
|
position: "fixed",
|
|
2902
2908
|
top: v(Xe)({
|
|
2903
|
-
svgElement:
|
|
2909
|
+
svgElement: ue.value,
|
|
2904
2910
|
x: c.value.right + l.value.line.tag.fontSize / 1.5,
|
|
2905
|
-
y:
|
|
2911
|
+
y: t.y,
|
|
2906
2912
|
element: Pe.value[`${u}_${i}_right_line`],
|
|
2907
2913
|
position: "right"
|
|
2908
2914
|
}).top + "px",
|
|
2909
2915
|
left: v(Xe)({
|
|
2910
|
-
svgElement:
|
|
2916
|
+
svgElement: ue.value,
|
|
2911
2917
|
x: c.value.right + l.value.line.tag.fontSize / 1.5,
|
|
2912
|
-
y:
|
|
2918
|
+
y: t.y,
|
|
2913
2919
|
element: Pe.value[`${u}_${i}_right_line`],
|
|
2914
2920
|
position: "right"
|
|
2915
2921
|
}).left + "px",
|
|
@@ -2931,12 +2937,12 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2931
2937
|
])),
|
|
2932
2938
|
p("div", {
|
|
2933
2939
|
class: "vue-ui-xy-tag-content",
|
|
2934
|
-
innerHTML: v(
|
|
2940
|
+
innerHTML: v(se)(
|
|
2935
2941
|
l.value.line.tag.formatter,
|
|
2936
|
-
|
|
2942
|
+
t.value,
|
|
2937
2943
|
e.name,
|
|
2938
2944
|
{
|
|
2939
|
-
datapoint:
|
|
2945
|
+
datapoint: t,
|
|
2940
2946
|
seriesIndex: i,
|
|
2941
2947
|
serieName: e.name
|
|
2942
2948
|
}
|
|
@@ -2952,16 +2958,16 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2952
2958
|
style: $({
|
|
2953
2959
|
position: "fixed",
|
|
2954
2960
|
top: v(Xe)({
|
|
2955
|
-
svgElement:
|
|
2961
|
+
svgElement: ue.value,
|
|
2956
2962
|
x: c.value.left - l.value.line.tag.fontSize / 1.5,
|
|
2957
|
-
y:
|
|
2963
|
+
y: t.y,
|
|
2958
2964
|
element: Pe.value[`${u}_${i}_left_line`],
|
|
2959
2965
|
position: "left"
|
|
2960
2966
|
}).top + "px",
|
|
2961
2967
|
left: v(Xe)({
|
|
2962
|
-
svgElement:
|
|
2968
|
+
svgElement: ue.value,
|
|
2963
2969
|
x: c.value.left - l.value.line.tag.fontSize / 1.5,
|
|
2964
|
-
y:
|
|
2970
|
+
y: t.y,
|
|
2965
2971
|
element: Pe.value[`${u}_${i}_left_line`],
|
|
2966
2972
|
position: "left"
|
|
2967
2973
|
}).left + "px",
|
|
@@ -2983,12 +2989,12 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2983
2989
|
])),
|
|
2984
2990
|
p("div", {
|
|
2985
2991
|
class: "vue-ui-xy-tag-content",
|
|
2986
|
-
innerHTML: v(
|
|
2992
|
+
innerHTML: v(se)(
|
|
2987
2993
|
l.value.line.tag.formatter,
|
|
2988
|
-
|
|
2994
|
+
t.value,
|
|
2989
2995
|
e.name,
|
|
2990
2996
|
{
|
|
2991
|
-
datapoint:
|
|
2997
|
+
datapoint: t,
|
|
2992
2998
|
seriesIndex: i,
|
|
2993
2999
|
serieName: e.name
|
|
2994
3000
|
}
|
|
@@ -2997,10 +3003,10 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2997
3003
|
], 4)) : h("", !0)
|
|
2998
3004
|
], 64))), 128))
|
|
2999
3005
|
], 64))), 128)),
|
|
3000
|
-
(n(!0), r(d, null, w(
|
|
3006
|
+
(n(!0), r(d, null, w(be.value, (e, u) => (n(), r(d, {
|
|
3001
3007
|
key: `tag_plot_${e.id}`
|
|
3002
3008
|
}, [
|
|
3003
|
-
(n(!0), r(d, null, w(e.plots, (
|
|
3009
|
+
(n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
|
|
3004
3010
|
key: `tag_plot_${u}_${i}`
|
|
3005
3011
|
}, [
|
|
3006
3012
|
[V.value, _.value, Ue.value].includes(i) && e.useTag && e.useTag === "end" && l.value.plot.tag.followValue ? (n(), r("div", {
|
|
@@ -3012,16 +3018,16 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3012
3018
|
style: $({
|
|
3013
3019
|
position: "fixed",
|
|
3014
3020
|
top: v(Xe)({
|
|
3015
|
-
svgElement:
|
|
3021
|
+
svgElement: ue.value,
|
|
3016
3022
|
x: c.value.right + l.value.plot.tag.fontSize / 1.5,
|
|
3017
|
-
y:
|
|
3023
|
+
y: t.y,
|
|
3018
3024
|
element: Pe.value[`${u}_${i}_right_plot`],
|
|
3019
3025
|
position: "right"
|
|
3020
3026
|
}).top + "px",
|
|
3021
3027
|
left: v(Xe)({
|
|
3022
|
-
svgElement:
|
|
3028
|
+
svgElement: ue.value,
|
|
3023
3029
|
x: c.value.right + l.value.plot.tag.fontSize / 1.5,
|
|
3024
|
-
y:
|
|
3030
|
+
y: t.y,
|
|
3025
3031
|
element: Pe.value[`${u}_${i}_right_plot`],
|
|
3026
3032
|
position: "right"
|
|
3027
3033
|
}).left + "px",
|
|
@@ -3043,12 +3049,12 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3043
3049
|
])),
|
|
3044
3050
|
p("div", {
|
|
3045
3051
|
class: "vue-ui-xy-tag-content",
|
|
3046
|
-
innerHTML: v(
|
|
3052
|
+
innerHTML: v(se)(
|
|
3047
3053
|
l.value.plot.tag.formatter,
|
|
3048
|
-
|
|
3054
|
+
t.value,
|
|
3049
3055
|
e.name,
|
|
3050
3056
|
{
|
|
3051
|
-
datapoint:
|
|
3057
|
+
datapoint: t,
|
|
3052
3058
|
seriesIndex: i,
|
|
3053
3059
|
serieName: e.name
|
|
3054
3060
|
}
|
|
@@ -3064,16 +3070,16 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3064
3070
|
style: $({
|
|
3065
3071
|
position: "fixed",
|
|
3066
3072
|
top: v(Xe)({
|
|
3067
|
-
svgElement:
|
|
3073
|
+
svgElement: ue.value,
|
|
3068
3074
|
x: c.value.left - l.value.plot.tag.fontSize / 1.5,
|
|
3069
|
-
y:
|
|
3075
|
+
y: t.y,
|
|
3070
3076
|
element: Pe.value[`${u}_${i}_left_plot`],
|
|
3071
3077
|
position: "left"
|
|
3072
3078
|
}).top + "px",
|
|
3073
3079
|
left: v(Xe)({
|
|
3074
|
-
svgElement:
|
|
3080
|
+
svgElement: ue.value,
|
|
3075
3081
|
x: c.value.left - l.value.plot.tag.fontSize / 1.5,
|
|
3076
|
-
y:
|
|
3082
|
+
y: t.y,
|
|
3077
3083
|
element: Pe.value[`${u}_${i}_left_plot`],
|
|
3078
3084
|
position: "left"
|
|
3079
3085
|
}).left + "px",
|
|
@@ -3095,12 +3101,12 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3095
3101
|
])),
|
|
3096
3102
|
p("div", {
|
|
3097
3103
|
class: "vue-ui-xy-tag-content",
|
|
3098
|
-
innerHTML: v(
|
|
3104
|
+
innerHTML: v(se)(
|
|
3099
3105
|
l.value.plot.tag.formatter,
|
|
3100
|
-
|
|
3106
|
+
t.value,
|
|
3101
3107
|
e.name,
|
|
3102
3108
|
{
|
|
3103
|
-
datapoint:
|
|
3109
|
+
datapoint: t,
|
|
3104
3110
|
seriesIndex: i,
|
|
3105
3111
|
serieName: e.name
|
|
3106
3112
|
}
|
|
@@ -3109,10 +3115,10 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3109
3115
|
], 4)) : h("", !0)
|
|
3110
3116
|
], 64))), 128))
|
|
3111
3117
|
], 64))), 128)),
|
|
3112
|
-
l.value.chart.zoom.show &&
|
|
3118
|
+
l.value.chart.zoom.show && Ie.value > 6 && ra.value && Za.value ? (n(), Ae(ps, {
|
|
3113
3119
|
key: 5,
|
|
3114
3120
|
ref_key: "chartSlicer",
|
|
3115
|
-
ref:
|
|
3121
|
+
ref: ze,
|
|
3116
3122
|
allMinimaps: Co.value,
|
|
3117
3123
|
background: l.value.chart.zoom.color,
|
|
3118
3124
|
borderColor: l.value.chart.backgroundColor,
|
|
@@ -3127,10 +3133,10 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3127
3133
|
useResetSlot: l.value.chart.zoom.useResetSlot,
|
|
3128
3134
|
immediate: !l.value.chart.zoom.preview.enable,
|
|
3129
3135
|
inputColor: l.value.chart.zoom.color,
|
|
3130
|
-
isPreview:
|
|
3136
|
+
isPreview: Pa.value,
|
|
3131
3137
|
labelLeft: de.value[0] ? de.value[0].text : "",
|
|
3132
3138
|
labelRight: de.value.at(-1) ? de.value.at(-1).text : "",
|
|
3133
|
-
max:
|
|
3139
|
+
max: Ie.value,
|
|
3134
3140
|
min: 0,
|
|
3135
3141
|
minimap: Ao.value,
|
|
3136
3142
|
minimapCompact: l.value.chart.zoom.minimap.compact,
|
|
@@ -3142,7 +3148,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3142
3148
|
minimapSelectedColorOpacity: l.value.chart.zoom.minimap.selectedColorOpacity,
|
|
3143
3149
|
minimapSelectedIndex: _.value,
|
|
3144
3150
|
minimapSelectionRadius: l.value.chart.zoom.minimap.selectionRadius,
|
|
3145
|
-
preciseLabels:
|
|
3151
|
+
preciseLabels: dt.value.length ? dt.value : fa.value,
|
|
3146
3152
|
refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...Ql.dataset.map((e) => Be(e.series).length)),
|
|
3147
3153
|
refreshStartPoint: l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex : 0,
|
|
3148
3154
|
selectColor: l.value.chart.zoom.highlightColor,
|
|
@@ -3150,27 +3156,27 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3150
3156
|
smoothMinimap: l.value.chart.zoom.minimap.smooth,
|
|
3151
3157
|
start: m.value.start,
|
|
3152
3158
|
textColor: l.value.chart.color,
|
|
3153
|
-
timeLabels:
|
|
3159
|
+
timeLabels: fa.value,
|
|
3154
3160
|
usePreciseLabels: l.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !l.value.chart.zoom.useDefaultFormat,
|
|
3155
3161
|
valueEnd: m.value.end,
|
|
3156
3162
|
valueStart: m.value.start,
|
|
3157
3163
|
verticalHandles: l.value.chart.zoom.minimap.verticalHandles,
|
|
3158
|
-
onFutureEnd: s[1] || (s[1] = (e) =>
|
|
3159
|
-
onFutureStart: s[2] || (s[2] = (e) =>
|
|
3164
|
+
onFutureEnd: s[1] || (s[1] = (e) => Fa("end", e)),
|
|
3165
|
+
onFutureStart: s[2] || (s[2] = (e) => Fa("start", e)),
|
|
3160
3166
|
onReset: xo,
|
|
3161
3167
|
onTrapMouse: fo,
|
|
3162
3168
|
"onUpdate:end": bo,
|
|
3163
3169
|
"onUpdate:start": mo
|
|
3164
3170
|
}, {
|
|
3165
3171
|
"reset-action": ee(({ reset: e }) => [
|
|
3166
|
-
X(
|
|
3172
|
+
X(a.$slots, "reset-action", el(ll({ reset: e })), void 0, !0)
|
|
3167
3173
|
]),
|
|
3168
3174
|
_: 3
|
|
3169
3175
|
}, 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),
|
|
3170
3176
|
p("div", {
|
|
3171
3177
|
id: `legend-bottom-${D.value}`
|
|
3172
3178
|
}, null, 8, Hi),
|
|
3173
|
-
|
|
3179
|
+
Ia.value ? (n(), Ae(Xo, {
|
|
3174
3180
|
key: 6,
|
|
3175
3181
|
to: l.value.chart.legend.position === "top" ? `#legend-top-${D.value}` : `#legend-bottom-${D.value}`
|
|
3176
3182
|
}, [
|
|
@@ -3185,7 +3191,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3185
3191
|
}, [
|
|
3186
3192
|
(n(!0), r(d, null, w(Le.value, (e, u) => (n(), r("div", {
|
|
3187
3193
|
key: `div_legend_item_${u}`,
|
|
3188
|
-
onClick: (
|
|
3194
|
+
onClick: (t) => ot(e),
|
|
3189
3195
|
class: je({ "vue-ui-xy-legend-item-alone": Le.value.length === 1, "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": j.value.includes(e.id) })
|
|
3190
3196
|
}, [
|
|
3191
3197
|
bl.value[e.type] === "line" ? (n(), r("svg", Ei, [
|
|
@@ -3208,7 +3214,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3208
3214
|
strokeWidth: 0.5
|
|
3209
3215
|
}, null, 8, ["color", "shape", "stroke"])
|
|
3210
3216
|
])) : bl.value[e.type] === "bar" ? (n(), r("svg", Wi, [
|
|
3211
|
-
bl.value[e.type] === "bar" &&
|
|
3217
|
+
bl.value[e.type] === "bar" && a.$slots.pattern ? (n(), r("rect", {
|
|
3212
3218
|
key: 0,
|
|
3213
3219
|
x: "4",
|
|
3214
3220
|
y: "4",
|
|
@@ -3226,7 +3232,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3226
3232
|
height: "32",
|
|
3227
3233
|
width: "32",
|
|
3228
3234
|
stroke: "none",
|
|
3229
|
-
fill:
|
|
3235
|
+
fill: a.$slots.pattern ? `url(#pattern_${D.value}_${e.slotAbsoluteIndex})` : e.color
|
|
3230
3236
|
}, null, 8, Gi)) : h("", !0)
|
|
3231
3237
|
])) : (n(), r("svg", Ui, [
|
|
3232
3238
|
vl(Kl, {
|
|
@@ -3238,26 +3244,26 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3238
3244
|
])),
|
|
3239
3245
|
p("span", {
|
|
3240
3246
|
style: $(`color:${l.value.chart.legend.color}`)
|
|
3241
|
-
},
|
|
3247
|
+
}, ae(e.name), 5)
|
|
3242
3248
|
], 10, Di))), 128))
|
|
3243
3249
|
], 4)) : (n(), r("div", {
|
|
3244
3250
|
key: 1,
|
|
3245
3251
|
ref_key: "chartLegend",
|
|
3246
3252
|
ref: sl
|
|
3247
3253
|
}, [
|
|
3248
|
-
X(
|
|
3254
|
+
X(a.$slots, "legend", { legend: Le.value }, void 0, !0)
|
|
3249
3255
|
], 512))
|
|
3250
3256
|
], 8, ["to"])) : h("", !0),
|
|
3251
|
-
|
|
3257
|
+
a.$slots.source ? (n(), r("div", {
|
|
3252
3258
|
key: 7,
|
|
3253
3259
|
ref_key: "source",
|
|
3254
3260
|
ref: gl,
|
|
3255
3261
|
dir: "auto"
|
|
3256
3262
|
}, [
|
|
3257
|
-
X(
|
|
3263
|
+
X(a.$slots, "source", {}, void 0, !0)
|
|
3258
3264
|
], 512)) : h("", !0),
|
|
3259
|
-
vl(v(
|
|
3260
|
-
show: f.value.showTooltip &&
|
|
3265
|
+
vl(v(Xt), {
|
|
3266
|
+
show: f.value.showTooltip && Ma.value,
|
|
3261
3267
|
backgroundColor: l.value.chart.tooltip.backgroundColor,
|
|
3262
3268
|
color: l.value.chart.tooltip.color,
|
|
3263
3269
|
fontSize: l.value.chart.tooltip.fontSize,
|
|
@@ -3267,7 +3273,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3267
3273
|
backgroundOpacity: l.value.chart.tooltip.backgroundOpacity,
|
|
3268
3274
|
position: l.value.chart.tooltip.position,
|
|
3269
3275
|
offsetY: l.value.chart.tooltip.offsetY,
|
|
3270
|
-
parent:
|
|
3276
|
+
parent: a.$refs.chart,
|
|
3271
3277
|
content: To.value,
|
|
3272
3278
|
isFullscreen: Ge.value,
|
|
3273
3279
|
isCustom: l.value.chart.tooltip.customFormat && typeof l.value.chart.tooltip.customFormat == "function",
|
|
@@ -3277,21 +3283,21 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3277
3283
|
smoothSnapThreshold: l.value.chart.tooltip.smoothSnapThreshold
|
|
3278
3284
|
}, {
|
|
3279
3285
|
"tooltip-before": ee(() => [
|
|
3280
|
-
X(
|
|
3286
|
+
X(a.$slots, "tooltip-before", el(ll({ ...vt.value })), void 0, !0)
|
|
3281
3287
|
]),
|
|
3282
3288
|
"tooltip-after": ee(() => [
|
|
3283
|
-
X(
|
|
3289
|
+
X(a.$slots, "tooltip-after", el(ll({ ...vt.value })), void 0, !0)
|
|
3284
3290
|
]),
|
|
3285
3291
|
_: 3
|
|
3286
3292
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
3287
|
-
|
|
3293
|
+
ra.value && l.value.chart.userOptions.buttons.table ? (n(), Ae(Go($l.value.component), al({ key: 8 }, $l.value.props, {
|
|
3288
3294
|
ref_key: "tableUnit",
|
|
3289
3295
|
ref: il,
|
|
3290
|
-
onClose:
|
|
3291
|
-
}),
|
|
3296
|
+
onClose: St
|
|
3297
|
+
}), At({
|
|
3292
3298
|
content: ee(() => [
|
|
3293
3299
|
p("div", {
|
|
3294
|
-
style: $(`${v(
|
|
3300
|
+
style: $(`${v(va) || 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"}`)
|
|
3295
3301
|
}, [
|
|
3296
3302
|
p("div", qi, [
|
|
3297
3303
|
Uo(p("input", {
|
|
@@ -3304,32 +3310,32 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3304
3310
|
onClick: s[5] || (s[5] = (e) => pl.value = !pl.value),
|
|
3305
3311
|
style: { cursor: "pointer" }
|
|
3306
3312
|
}, [
|
|
3307
|
-
vl(v(
|
|
3313
|
+
vl(v(Sa), {
|
|
3308
3314
|
name: "chartLine",
|
|
3309
3315
|
size: 20,
|
|
3310
3316
|
stroke: l.value.chart.color
|
|
3311
3317
|
}, null, 8, ["stroke"])
|
|
3312
3318
|
])
|
|
3313
3319
|
]),
|
|
3314
|
-
pl.value ? (n(),
|
|
3315
|
-
key: `sparkline_${
|
|
3320
|
+
pl.value ? (n(), Ae(v(Ut), {
|
|
3321
|
+
key: `sparkline_${sa.value}`,
|
|
3316
3322
|
dataset: $o.value,
|
|
3317
3323
|
config: Lo.value
|
|
3318
|
-
}, null, 8, ["dataset", "config"])) : (n(),
|
|
3319
|
-
key: `table_${
|
|
3324
|
+
}, null, 8, ["dataset", "config"])) : (n(), Ae(v(Wt), {
|
|
3325
|
+
key: `table_${Ca.value}`,
|
|
3320
3326
|
colNames: Xl.value.colNames,
|
|
3321
3327
|
head: Xl.value.head,
|
|
3322
3328
|
body: Xl.value.body,
|
|
3323
3329
|
config: Xl.value.config,
|
|
3324
3330
|
title: l.value.table.useDialog ? "" : $l.value.title,
|
|
3325
3331
|
withCloseButton: !l.value.table.useDialog,
|
|
3326
|
-
onClose:
|
|
3332
|
+
onClose: St
|
|
3327
3333
|
}, {
|
|
3328
3334
|
th: ee(({ th: e }) => [
|
|
3329
3335
|
p("div", { innerHTML: e }, null, 8, Zi)
|
|
3330
3336
|
]),
|
|
3331
3337
|
td: ee(({ td: e }) => [
|
|
3332
|
-
|
|
3338
|
+
Ct(ae(isNaN(Number(e)) ? e : v(Ve)({
|
|
3333
3339
|
p: l.value.chart.labels.prefix,
|
|
3334
3340
|
v: e,
|
|
3335
3341
|
s: l.value.chart.labels.suffix,
|
|
@@ -3345,7 +3351,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3345
3351
|
l.value.table.useDialog ? {
|
|
3346
3352
|
name: "title",
|
|
3347
3353
|
fn: ee(() => [
|
|
3348
|
-
|
|
3354
|
+
Ct(ae($l.value.title), 1)
|
|
3349
3355
|
]),
|
|
3350
3356
|
key: "0"
|
|
3351
3357
|
} : void 0,
|
|
@@ -3355,9 +3361,9 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3355
3361
|
p("button", {
|
|
3356
3362
|
tabindex: "0",
|
|
3357
3363
|
class: "vue-ui-user-options-button",
|
|
3358
|
-
onClick: s[3] || (s[3] = (e) =>
|
|
3364
|
+
onClick: s[3] || (s[3] = (e) => ba(l.value.chart.userOptions.callbacks.csv))
|
|
3359
3365
|
}, [
|
|
3360
|
-
vl(v(
|
|
3366
|
+
vl(v(Sa), {
|
|
3361
3367
|
name: "excel",
|
|
3362
3368
|
stroke: $l.value.props.color
|
|
3363
3369
|
}, null, 8, ["stroke"])
|
|
@@ -3366,10 +3372,10 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3366
3372
|
key: "1"
|
|
3367
3373
|
} : void 0
|
|
3368
3374
|
]), 1040)) : h("", !0),
|
|
3369
|
-
v(
|
|
3375
|
+
v(ie) ? (n(), Ae(vs, { key: 9 })) : h("", !0)
|
|
3370
3376
|
], 46, _s));
|
|
3371
3377
|
}
|
|
3372
|
-
}, fn = /* @__PURE__ */ ks(Ji, [["__scopeId", "data-v-
|
|
3378
|
+
}, fn = /* @__PURE__ */ ks(Ji, [["__scopeId", "data-v-a62a27be"]]);
|
|
3373
3379
|
export {
|
|
3374
3380
|
fn as default
|
|
3375
3381
|
};
|