vue-data-ui 3.0.0-next.29 → 3.0.0-next.30
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/{Arrow-CiuwQF8m.js → Arrow-gZkDqarC.js} +1 -1
- package/dist/{BaseDraggableDialog-Cu_9Wh21.js → BaseDraggableDialog-Cx7MDUn7.js} +2 -2
- package/dist/{BaseIcon-Ds5wm_lU.js → BaseIcon-DEGIw8ne.js} +1 -1
- package/dist/{ColorPicker-BoUMEIs2.js → ColorPicker-dVo9qgIk.js} +2 -2
- package/dist/{DataTable-BYNUm5Gf.js → DataTable-DjL9vVfm.js} +2 -2
- package/dist/{Legend-BisCjbG2.js → Legend-DNs8ZSxL.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CD5eBRSn.js → NonSvgPenAndPaper-Bmu00306.js} +3 -3
- package/dist/{PackageVersion-BzwYjMOW.js → PackageVersion-SqC1iXfO.js} +1 -1
- package/dist/{PenAndPaper-DTcaSmnI.js → PenAndPaper-C1bF0gIz.js} +3 -3
- package/dist/{Shape-EL8kKFHT.js → Shape-CNmKltYG.js} +1 -1
- package/dist/{Slicer-jLSY0Lnb.js → Slicer-DYffOkSj.js} +2 -2
- package/dist/{SparkTooltip-CZY7wxg6.js → SparkTooltip-BuPeepCP.js} +1 -1
- package/dist/{Title-DONRFCZQ.js → Title-B21jaJ0n.js} +1 -1
- package/dist/{Tooltip-cz9CUpDk.js → Tooltip-C4HWh3fx.js} +1 -1
- package/dist/{UserOptions-By5PgYu0.js → UserOptions-DQDPN9YO.js} +2 -2
- package/dist/{dom-to-png-Ds-_cp6X.js → dom-to-png-Z16yk8O6.js} +1 -1
- package/dist/{img-D3r3OOFG.js → img-UQKhhbxb.js} +1 -1
- package/dist/{index-Drw6d_8M.js → index-Bxh2efzz.js} +664 -655
- package/dist/{pdf-CVT2uMk-.js → pdf-D2K9GCDq.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +12 -4
- package/dist/types/vue-data-ui.d.ts +12 -4
- package/dist/{useNestedProp-DU20xu9g.js → useNestedProp-BGEUK51b.js} +1 -1
- package/dist/{usePrinter-QRK7y9fG.js → usePrinter-CfB_poc_.js} +2 -2
- package/dist/{vue-data-ui-DuuCpgPB.js → vue-data-ui-Em_nyncZ.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CWlFg9DD.js → vue-ui-3d-bar-KFXQhCpk.js} +6 -6
- package/dist/{vue-ui-accordion-DFtpDmPO.js → vue-ui-accordion-CXj3OfMj.js} +3 -3
- package/dist/{vue-ui-age-pyramid-is2_9zCy.js → vue-ui-age-pyramid-Bygd_6Lj.js} +6 -6
- package/dist/{vue-ui-annotator-Do3nQwyq.js → vue-ui-annotator-CaxhGvw9.js} +2 -2
- package/dist/{vue-ui-bullet-BCcEWGfk.js → vue-ui-bullet-xsVzeIGY.js} +7 -7
- package/dist/{vue-ui-candlestick-D75PUpAs.js → vue-ui-candlestick-DT3NblSj.js} +7 -7
- package/dist/{vue-ui-carousel-table-293Ej8CA.js → vue-ui-carousel-table-Bj6Blcps.js} +4 -4
- package/dist/{vue-ui-chestnut-CqevC3UI.js → vue-ui-chestnut-Bzi7pvOQ.js} +5 -5
- package/dist/{vue-ui-chord-Rp3K6Lii.js → vue-ui-chord-SN0lkfJI.js} +8 -8
- package/dist/{vue-ui-circle-pack-CXtlLhzT.js → vue-ui-circle-pack-BwH7JGeH.js} +6 -6
- package/dist/{vue-ui-cursor-DMJ3qvUm.js → vue-ui-cursor-BLHqKKuQ.js} +2 -2
- package/dist/{vue-ui-dashboard-CRBPcH6A.js → vue-ui-dashboard-C5ye3aO2.js} +62 -62
- package/dist/{vue-ui-digits-DH-Q4hVR.js → vue-ui-digits-fWW_yCiA.js} +2 -2
- package/dist/{vue-ui-donut-SfwmwqtT.js → vue-ui-donut-VI_2cil0.js} +8 -8
- package/dist/{vue-ui-donut-evolution-D0_XaBt0.js → vue-ui-donut-evolution-BMDGbLPk.js} +8 -8
- package/dist/{vue-ui-dumbbell-DstzNHet.js → vue-ui-dumbbell-DYVwpQdP.js} +7 -7
- package/dist/{vue-ui-flow-CINFQqZt.js → vue-ui-flow-BP3lwS2c.js} +7 -7
- package/dist/{vue-ui-funnel-BkiTiKQd.js → vue-ui-funnel-C2gKEJrg.js} +6 -6
- package/dist/{vue-ui-galaxy-DBFG7HdS.js → vue-ui-galaxy-CHu9EpUI.js} +5 -5
- package/dist/{vue-ui-gauge-CpitXRT_.js → vue-ui-gauge-DXoBEk4e.js} +6 -6
- package/dist/{vue-ui-gizmo-qNDblGTz.js → vue-ui-gizmo-DpWaeVxb.js} +3 -3
- package/dist/{vue-ui-heatmap-B_oEnnp5.js → vue-ui-heatmap-C6Xh5fmd.js} +7 -7
- package/dist/{vue-ui-history-plot-C0u_r6yx.js → vue-ui-history-plot-CH4RJSqN.js} +7 -7
- package/dist/{vue-ui-kpi-C3yPBtHe.js → vue-ui-kpi-DJrypxm5.js} +3 -3
- package/dist/{vue-ui-mini-loader-DKo5mbDP.js → vue-ui-mini-loader-BMaEgYp1.js} +2 -2
- package/dist/{vue-ui-molecule-B2mjoO1f.js → vue-ui-molecule-om_udncc.js} +5 -5
- package/dist/{vue-ui-mood-radar-Bz9hnSwG.js → vue-ui-mood-radar-BOd7BMa4.js} +7 -7
- package/dist/{vue-ui-nested-donuts-BG1-HO_j.js → vue-ui-nested-donuts-B6krlgFx.js} +9 -9
- package/dist/{vue-ui-onion-Bd8kKYgU.js → vue-ui-onion-COQ1H7Ft.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-AlccjyUy.js → vue-ui-parallel-coordinate-plot-CEKsfccd.js} +8 -8
- package/dist/{vue-ui-quadrant-lwBwsQGQ.js → vue-ui-quadrant-C88vkF8q.js} +8 -8
- package/dist/{vue-ui-quick-chart-ptglu1rg.js → vue-ui-quick-chart-CG2lY19C.js} +6 -6
- package/dist/{vue-ui-radar-CvfWH-X1.js → vue-ui-radar-CUAYzxM4.js} +7 -7
- package/dist/{vue-ui-rating-B62Mouk9.js → vue-ui-rating-DT0BLQ1G.js} +2 -2
- package/dist/{vue-ui-relation-circle-Dz5xbuMA.js → vue-ui-relation-circle-Ek_uAHpF.js} +6 -6
- package/dist/{vue-ui-ridgeline-rihpGXpL.js → vue-ui-ridgeline-73OXSMcJ.js} +8 -8
- package/dist/{vue-ui-rings-Bvkl_gGE.js → vue-ui-rings-D1gK_JVs.js} +8 -8
- package/dist/{vue-ui-scatter-iiBD78Rv.js → vue-ui-scatter-DCy4Vb84.js} +8 -8
- package/dist/{vue-ui-skeleton-Nk3lNLyJ.js → vue-ui-skeleton-DIb-2uan.js} +3 -3
- package/dist/{vue-ui-smiley-DW9VJtj5.js → vue-ui-smiley-DiIu0kjQ.js} +2 -2
- package/dist/{vue-ui-spark-trend-CGVoppzj.js → vue-ui-spark-trend-BPczzwfH.js} +3 -3
- package/dist/{vue-ui-sparkbar-DmrLheol.js → vue-ui-sparkbar-B4LpToMU.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CKperP9m.js → vue-ui-sparkgauge-D9KwmalJ.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-EzDfHOa5.js → vue-ui-sparkhistogram-h7qmzAe1.js} +4 -4
- package/dist/{vue-ui-sparkline-B37Xfywa.js → vue-ui-sparkline-DYYy38Fu.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-Cm6GOcMS.js → vue-ui-sparkstackbar-DIIyxzKM.js} +3 -3
- package/dist/{vue-ui-stackbar-uwRm8VIN.js → vue-ui-stackbar-BhPcAjIe.js} +9 -9
- package/dist/{vue-ui-strip-plot-Ct3KViHW.js → vue-ui-strip-plot-9wxxXL3R.js} +7 -7
- package/dist/{vue-ui-table-DK2l7UuW.js → vue-ui-table-FAEiGW1W.js} +3 -3
- package/dist/{vue-ui-table-heatmap-ClNGX-vt.js → vue-ui-table-heatmap-Cwbw5Rqy.js} +5 -5
- package/dist/{vue-ui-table-sparkline-uOKEV4lQ.js → vue-ui-table-sparkline-DnZ44NiP.js} +4 -4
- package/dist/{vue-ui-thermometer-7P2C_tYI.js → vue-ui-thermometer-CHFtR_VC.js} +6 -6
- package/dist/{vue-ui-timer-91k48mL9.js → vue-ui-timer-DWzZTLxC.js} +5 -5
- package/dist/{vue-ui-tiremarks-Q7YTYW8d.js → vue-ui-tiremarks-DTS-ZQRp.js} +6 -6
- package/dist/{vue-ui-treemap-Bec-ZUUL.js → vue-ui-treemap-B5OdGgS-.js} +8 -8
- package/dist/{vue-ui-vertical-bar-BYuzy6qw.js → vue-ui-vertical-bar-CcjDg9Bc.js} +9 -9
- package/dist/{vue-ui-waffle-C2iKJKJU.js → vue-ui-waffle-C1XVqncx.js} +8 -8
- package/dist/{vue-ui-wheel-qtyTFtKC.js → vue-ui-wheel-DEIJPpR4.js} +6 -6
- package/dist/{vue-ui-word-cloud-BKF4BkvX.js → vue-ui-word-cloud-CUzU4JpO.js} +6 -6
- package/dist/{vue-ui-world-DfHQKtGj.js → vue-ui-world-D0pONCg9.js} +6 -6
- package/dist/{vue-ui-xy-Bq3enVyu.js → vue-ui-xy-EoeoBLu2.js} +521 -500
- package/dist/{vue-ui-xy-canvas-Cq0zmNY0.js → vue-ui-xy-canvas-Do-IpmFr.js} +8 -8
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineAsyncComponent as Be, useSlots as Nt, getCurrentInstance as Vt, ref as
|
|
2
|
-
import { u as Et, c as ea, e as la, A as Wt, a5 as Ye, b as Xt, D as
|
|
3
|
-
import { u as aa } from "./useNestedProp-
|
|
1
|
+
import { defineAsyncComponent as Be, useSlots as Nt, getCurrentInstance as Vt, ref as S, computed as $, onMounted as Ba, toRefs as Pt, watch as Ml, watchEffect as Ht, onBeforeUnmount as Ya, createElementBlock as i, openBlock as u, normalizeStyle as z, normalizeClass as Ue, createBlock as Me, createCommentVNode as d, createVNode as xl, unref as v, createSlots as Rt, withCtx as ue, renderSlot as q, normalizeProps as Ze, guardReactiveProps as Je, createElementVNode as x, Fragment as h, renderList as k, toDisplayString as le, mergeProps as Ql, withDirectives as Bt, vModelCheckbox as Yt, createTextVNode as Ft, nextTick as jl } from "vue";
|
|
2
|
+
import { u as Et, c as ea, e as la, A as Wt, a5 as Ye, b as Xt, D as ml, ac as Ke, d as Gt, p as Dt, ad as zl, aa as R, ae as qt, v as T, af as Fa, V as Ea, ag as Wa, U as Xa, ah as Ut, ai as Ga, aj as Da, i as re, x as Zt, y as Jt, _ as qa, R as ze, f as me, w as Qe, s as Se, a8 as X, L as Kt, F as Fe, ak as Cl, I as Qt, al as Ee, C as be, t as jt, a as eo, o as Ua, q as lo, r as ao, E as ol } from "./index-Bxh2efzz.js";
|
|
3
|
+
import { u as aa } from "./useNestedProp-BGEUK51b.js";
|
|
4
4
|
import { u as to } from "./useTimeLabels-DFkUfjfs.js";
|
|
5
5
|
import { u as oo } from "./useTimeLabelCollider-V7AOiPLB.js";
|
|
6
|
-
import { S as so } from "./Slicer-
|
|
7
|
-
import uo from "./Title-
|
|
8
|
-
import { _ as
|
|
9
|
-
import ro from "./img-
|
|
10
|
-
import { u as io } from "./usePrinter-
|
|
6
|
+
import { S as so } from "./Slicer-DYffOkSj.js";
|
|
7
|
+
import uo from "./Title-B21jaJ0n.js";
|
|
8
|
+
import { _ as Il } from "./Shape-CNmKltYG.js";
|
|
9
|
+
import ro from "./img-UQKhhbxb.js";
|
|
10
|
+
import { u as io } from "./usePrinter-CfB_poc_.js";
|
|
11
11
|
import { u as no, B as co } from "./BaseScanner-DIK2NTdp.js";
|
|
12
12
|
import { t as vo } from "./useResponsive-DfdjqQps.js";
|
|
13
13
|
import { _ as ho } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
-
const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "height"],
|
|
14
|
+
const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "height"], mo = { key: 1 }, bo = { class: "vue-ui-xy-grid" }, yo = ["stroke", "x1", "x2", "y1", "y2"], po = ["stroke", "x1", "x2", "y1", "y2"], ko = { key: 1 }, _o = ["x1", "x2", "y1", "y2", "stroke"], wo = ["x1", "x2", "y1", "y2", "stroke"], So = ["x1", "x2", "y1", "y2", "stroke"], $o = { key: 3 }, Lo = ["d", "stroke"], Ao = { key: 4 }, Mo = ["d", "stroke"], zo = ["id"], Co = ["stop-color"], Io = ["stop-color"], To = ["stop-color"], Oo = ["id"], No = ["stop-color"], Vo = ["stop-color"], Po = ["stop-color"], Ho = ["id"], Ro = ["stop-color"], Bo = ["stop-color"], Yo = ["id"], Fo = ["stop-color"], Eo = ["stop-color"], Wo = ["id"], Xo = ["stop-color"], Go = ["stop-color"], Do = ["x", "y", "height", "width", "fill"], qo = ["x", "y", "width"], Uo = { key: 0 }, Zo = ["x", "y", "height", "width", "fill"], Jo = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Ko = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Qo = ["width", "x", "y"], jo = { key: 0 }, es = ["id"], ls = ["fill"], as = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ts = ["x", "y", "font-size", "fill"], os = ["stroke", "x1", "x2", "y1", "y2"], ss = { key: 3 }, us = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], rs = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], is = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ns = ["fill", "font-size", "transform"], cs = ["x1", "x2", "y1", "y2", "stroke"], vs = ["x", "y", "font-size", "fill"], ds = ["x1", "x2", "y1", "y2", "stroke"], hs = ["x", "y", "font-size", "fill"], fs = ["width", "x", "y"], gs = { style: { width: "100%" } }, xs = { key: 0 }, ms = ["id"], bs = ["fill"], ys = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ps = ["x", "y", "font-size", "fill"], ks = ["d", "stroke", "stroke-width", "stroke-dasharray"], _s = ["d", "stroke", "stroke-width", "stroke-dasharray"], ws = { key: 6 }, Ss = { key: 0 }, $s = ["d", "fill"], Ls = ["d", "fill"], As = ["d", "fill"], Ms = ["d", "fill"], zs = ["d", "stroke", "stroke-width", "stroke-dasharray"], Cs = ["d", "stroke", "stroke-width", "stroke-dasharray"], Is = ["width", "x", "y"], Ts = { style: { width: "100%" } }, Os = { key: 3 }, Ns = ["id"], Vs = ["fill"], Ps = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Hs = ["x", "y", "font-size", "fill"], Rs = { key: 7 }, Bs = ["x", "y", "font-size", "fill"], Ys = ["x", "y", "font-size", "fill", "font-weight"], Fs = { key: 8 }, Es = ["x", "y", "font-size", "fill"], Ws = { key: 9 }, Xs = ["x", "y"], Gs = ["innerHTML"], Ds = ["x", "y"], qs = ["innerHTML"], Us = ["x1", "x2", "y1", "y2", "stroke"], Zs = { key: 10 }, Js = ["x", "y", "font-size", "fill"], Ks = { key: 11 }, Qs = ["x", "y"], js = ["innerHTML"], eu = ["x", "y"], lu = ["innerHTML"], au = ["x1", "x2", "y1", "y2", "stroke"], tu = ["x", "y", "font-size", "fill", "innerHTML"], ou = ["x", "y", "font-size", "fill", "innerHTML"], su = ["x", "y", "font-size", "fill", "innerHTML"], uu = ["x", "y", "font-size", "fill", "innerHTML"], ru = ["id"], iu = ["stop-color"], nu = ["stop-color"], cu = ["x", "y", "width", "height", "fill", "onMouseenter"], vu = ["font-size", "fill", "transform"], du = ["x", "y", "font-size", "fill"], hu = ["text-anchor", "font-size", "fill", "transform", "onClick"], fu = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], gu = { key: 14 }, xu = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], mu = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], bu = ["y", "x", "width", "height", "fill"], yu = ["id", "x", "y", "font-size", "fill", "text-anchor"], pu = { key: 15 }, ku = ["x", "y", "height", "width", "onMouseenter", "onMouseleave", "onClick"], _u = {
|
|
15
15
|
key: 16,
|
|
16
16
|
style: { "pointer-events": "none" }
|
|
17
17
|
}, wu = ["x", "y"], Su = ["cx", "cy", "r", "fill"], $u = {
|
|
@@ -69,27 +69,31 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
69
69
|
default() {
|
|
70
70
|
return [];
|
|
71
71
|
}
|
|
72
|
+
},
|
|
73
|
+
selectedXIndex: {
|
|
74
|
+
type: Number,
|
|
75
|
+
default: void 0
|
|
72
76
|
}
|
|
73
77
|
},
|
|
74
78
|
emits: ["selectTimeLabel", "selectX", "selectLegend"],
|
|
75
|
-
setup(
|
|
76
|
-
const
|
|
79
|
+
setup(Tl, { expose: Za, emit: Ja }) {
|
|
80
|
+
const g = Tl, Ka = Be(() => import("./DataTable-DjL9vVfm.js")), Qa = Be(() => import("./Tooltip-C4HWh3fx.js")), ja = Be(() => import("./UserOptions-DQDPN9YO.js")), et = Be(() => import("./BaseIcon-DEGIw8ne.js")), lt = Be(() => import("./vue-ui-table-sparkline-DnZ44NiP.js")), at = Be(() => import("./vue-ui-accordion-CXj3OfMj.js")), tt = Be(() => import("./PackageVersion-SqC1iXfO.js")), ot = Be(() => import("./PenAndPaper-C1bF0gIz.js")), Ol = Ja, ta = Nt(), st = Vt(), { vue_ui_xy: Nl } = Et(), je = S(null), sl = S(null), Ne = S(null), el = S(null), ul = S(null), rl = S(null), ut = S(null), Vl = S(null), Pl = S(null), ll = S(null), Hl = S(null), We = S(null), Rl = S(null), Bl = S(0), M = S(null), oa = S(!0), ve = S(600), ae = S(1e3), bl = S("0 0 1000 600"), rt = S({ x: 0, y: 0 }), il = S({ line: "line", bar: "bar", plot: "plot" }), yl = S(!1), al = S(!1), sa = S(!1), Xe = S(null), te = S([]), U = S(ea()), ua = S(0), ra = S(0), ia = S(0), nl = S(!0), Yl = S(0), O = S(null), na = S(!1), Fl = S(!0), pl = S(!0), ye = S(null), Ce = S({}), kl = S(null), p = S(null), it = $(() => ({
|
|
77
81
|
height: ve.value,
|
|
78
82
|
width: ae.value
|
|
79
|
-
})), nt =
|
|
83
|
+
})), nt = g.config.downsample && g.config.downsample.threshold ? g.config.downsample.threshold : 500, f = S({
|
|
80
84
|
dataLabels: { show: !0 },
|
|
81
85
|
showTooltip: !0,
|
|
82
86
|
showTable: !1,
|
|
83
87
|
isStacked: !1,
|
|
84
88
|
useIndividualScale: !1
|
|
85
|
-
}),
|
|
89
|
+
}), m = S({
|
|
86
90
|
xAxis: 18,
|
|
87
91
|
yAxis: 12,
|
|
88
92
|
dataLabels: 20,
|
|
89
93
|
plotLabels: 10
|
|
90
|
-
}),
|
|
94
|
+
}), $e = S({ plot: 3, line: 3 });
|
|
91
95
|
Ba(() => {
|
|
92
|
-
|
|
96
|
+
g.dataset.length && g.dataset.forEach((a, c) => {
|
|
93
97
|
[null, void 0].includes(a.series) && la({
|
|
94
98
|
componentName: "VueUiXy",
|
|
95
99
|
type: "datasetSerieAttribute",
|
|
@@ -99,38 +103,38 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
99
103
|
});
|
|
100
104
|
});
|
|
101
105
|
});
|
|
102
|
-
function
|
|
103
|
-
if (!Object.keys(
|
|
104
|
-
return
|
|
106
|
+
function El() {
|
|
107
|
+
if (!Object.keys(g.config || {}).length)
|
|
108
|
+
return Nl;
|
|
105
109
|
const a = aa({
|
|
106
|
-
userConfig:
|
|
107
|
-
defaultConfig:
|
|
110
|
+
userConfig: g.config,
|
|
111
|
+
defaultConfig: Nl
|
|
108
112
|
});
|
|
109
|
-
return
|
|
110
|
-
defaultConfig:
|
|
113
|
+
return g.config && be(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 && be(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 && be(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 && be(g.config, "chart.zoom.startIndex") ? a.chart.zoom.startIndex = g.config.chart.zoom.startIndex : a.chart.zoom.startIndex = null, g.config && be(g.config, "chart.zoom.endIndex") ? a.chart.zoom.endIndex = g.config.chart.zoom.endIndex : a.chart.zoom.endIndex = null, g.config && be(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 && g.config.chart.annotations && Array.isArray(g.config.chart.annotations) && g.config.chart.annotations.length ? a.chart.annotations = g.config.chart.annotations.map((c) => aa({
|
|
114
|
+
defaultConfig: Nl.chart.annotations[0],
|
|
111
115
|
userConfig: c
|
|
112
|
-
})) : a.chart.annotations = [],
|
|
116
|
+
})) : a.chart.annotations = [], g.config && be(g.config, "chart.grid.position") && g.config.chart.grid.position === "start" && g.dataset.length && g.dataset.some((c) => c.type === "bar") && (a.chart.grid.position = "middle", be(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 && be(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 && be(g.config, "events.datapointEnter") ? a.events.datapointEnter = g.config.events.datapointEnter : a.events.datapointEnter = null, g.config && be(g.config, "events.datapointLeave") ? a.events.datapointLeave = g.config.events.datapointLeave : a.events.datapointLeave = null, g.config && be(g.config, "events.datapointClick") ? a.events.datapointClick = g.config.events.datapointClick : a.events.datapointClick = null, a.theme ? {
|
|
113
117
|
...aa({
|
|
114
|
-
userConfig: eo.vue_ui_xy[a.theme] ||
|
|
118
|
+
userConfig: eo.vue_ui_xy[a.theme] || g.config,
|
|
115
119
|
defaultConfig: a
|
|
116
120
|
}),
|
|
117
|
-
customPalette: jt[a.theme] ||
|
|
121
|
+
customPalette: jt[a.theme] || g.palette
|
|
118
122
|
} : a;
|
|
119
123
|
}
|
|
120
|
-
const
|
|
124
|
+
const Wl = $({
|
|
121
125
|
get() {
|
|
122
|
-
return !!
|
|
126
|
+
return !!g.dataset && g.dataset.length;
|
|
123
127
|
},
|
|
124
128
|
set(a) {
|
|
125
129
|
return a;
|
|
126
130
|
}
|
|
127
|
-
}), l =
|
|
128
|
-
...Pt(
|
|
131
|
+
}), l = S(El()), { loading: Xl, FINAL_DATASET: pe, manualLoading: _l } = no({
|
|
132
|
+
...Pt(g),
|
|
129
133
|
FINAL_CONFIG: l,
|
|
130
|
-
prepareConfig:
|
|
134
|
+
prepareConfig: El,
|
|
131
135
|
callback: () => {
|
|
132
136
|
Promise.resolve().then(async () => {
|
|
133
|
-
await
|
|
137
|
+
await Kl();
|
|
134
138
|
});
|
|
135
139
|
},
|
|
136
140
|
skeletonDataset: [
|
|
@@ -207,18 +211,27 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
207
211
|
}
|
|
208
212
|
})
|
|
209
213
|
}), Ve = $({
|
|
210
|
-
get: () => Math.max(...
|
|
214
|
+
get: () => Math.max(...pe.value.map((a) => Ye({ data: a.series, threshold: nt }).length)),
|
|
211
215
|
set: (a) => a
|
|
212
|
-
}),
|
|
216
|
+
}), y = S({ start: 0, end: Ve.value });
|
|
217
|
+
Ml(() => g.selectedXIndex, (a) => {
|
|
218
|
+
if ([null, void 0].includes(g.selectedXIndex)) {
|
|
219
|
+
p.value = null;
|
|
220
|
+
return;
|
|
221
|
+
}
|
|
222
|
+
const c = a - y.value.start;
|
|
223
|
+
c < 0 || a >= y.value.end ? p.value = null : p.value = c ?? null;
|
|
224
|
+
}, { immediate: !0 });
|
|
225
|
+
const { isPrinting: Gl, isImaging: ca, generatePdf: va, generateImage: da } = io({
|
|
213
226
|
elementId: `vue-ui-xy_${U.value}`,
|
|
214
227
|
fileName: l.value.chart.title.text || "vue-ui-xy",
|
|
215
228
|
options: l.value.chart.userOptions.print
|
|
216
|
-
}), ct =
|
|
229
|
+
}), ct = S(!1), ha = $(() => Xt(l.value.customPalette)), wl = $(() => l.value.chart.grid.labels.yAxis.scaleMax ? l.value.chart.grid.labels.yAxis.scaleMax : Math.max(...Ie.value.filter((a) => !te.value.includes(a.id)).map((a) => Math.max(...a.series)))), Dl = $(() => {
|
|
217
230
|
if (l.value.chart.grid.labels.yAxis.scaleMin !== null)
|
|
218
231
|
return l.value.chart.grid.labels.yAxis.scaleMin;
|
|
219
|
-
const a = Math.min(...
|
|
232
|
+
const a = Math.min(...Ie.value.filter((c) => !te.value.includes(c.id)).map((c) => Math.min(...c.series)));
|
|
220
233
|
return a > 0 ? 0 : a;
|
|
221
|
-
}),
|
|
234
|
+
}), ke = $(() => l.value.chart.grid.labels.yAxis.useNiceScale ? ml(Dl.value, wl.value < 0 ? 0 : wl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps) : Ke(Dl.value, wl.value < 0 ? 0 : wl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps)), cl = $(() => [null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) ? ke.value.min >= 0 ? 0 : Math.abs(ke.value.min) : -ke.value.min), Ie = $(() => oa.value ? pe.value.map((a, c) => {
|
|
222
235
|
const e = Ye({
|
|
223
236
|
data: a.series,
|
|
224
237
|
threshold: l.value.downsample.threshold
|
|
@@ -226,34 +239,34 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
226
239
|
return {
|
|
227
240
|
...a,
|
|
228
241
|
slotAbsoluteIndex: c,
|
|
229
|
-
series: e.map((t) =>
|
|
242
|
+
series: e.map((t) => zl(t) ? t : null).slice(y.value.start, y.value.end),
|
|
230
243
|
color: Gt(a.color ? a.color : ha.value[c] ? ha.value[c] : Dt[c]),
|
|
231
244
|
id: s,
|
|
232
245
|
scaleLabel: a.scaleLabel || s
|
|
233
246
|
};
|
|
234
|
-
}) :
|
|
247
|
+
}) : pe.value), Te = $(() => Ie.value.map((a, c) => ({
|
|
235
248
|
absoluteIndex: c,
|
|
236
249
|
...a,
|
|
237
250
|
series: a.series.map((e) => e + cl.value),
|
|
238
251
|
absoluteValues: a.series,
|
|
239
252
|
segregate: () => $a(a),
|
|
240
253
|
isSegregated: te.value.includes(a.id)
|
|
241
|
-
}))),
|
|
254
|
+
}))), fe = $(() => Ie.value.map((a, c) => ({
|
|
242
255
|
...a,
|
|
243
256
|
series: a.series.map((e) => e + cl.value),
|
|
244
257
|
absoluteValues: a.series
|
|
245
258
|
})).filter((a) => !te.value.includes(a.id)));
|
|
246
259
|
function vt() {
|
|
247
260
|
let a = 0;
|
|
248
|
-
|
|
261
|
+
Hl.value && (a = Array.from(Hl.value.querySelectorAll("text")).reduce((t, r) => {
|
|
249
262
|
const o = r.getComputedTextLength();
|
|
250
263
|
return (o > t ? o : t) + l.value.chart.grid.labels.yAxis.scaleValueOffsetX;
|
|
251
264
|
}, 0));
|
|
252
|
-
const c =
|
|
265
|
+
const c = Pl.value ? Pl.value.getBoundingClientRect().width + l.value.chart.grid.labels.axis.yLabelOffsetX + m.value.yAxis : 0, e = l.value.chart.grid.labels.yAxis.crosshairSize;
|
|
253
266
|
return a + c + e;
|
|
254
267
|
}
|
|
255
|
-
const
|
|
256
|
-
|
|
268
|
+
const ql = S(0), dt = vo((a) => {
|
|
269
|
+
ql.value = a;
|
|
257
270
|
}, 100);
|
|
258
271
|
Ht((a) => {
|
|
259
272
|
const c = ll.value;
|
|
@@ -263,17 +276,17 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
263
276
|
});
|
|
264
277
|
e.observe(c), a(() => e.disconnect());
|
|
265
278
|
}), Ya(() => {
|
|
266
|
-
|
|
279
|
+
ql.value = 0;
|
|
267
280
|
});
|
|
268
281
|
const fa = $(() => {
|
|
269
282
|
let a = 0;
|
|
270
|
-
|
|
283
|
+
Vl.value && (a = Vl.value.getBBox().height);
|
|
271
284
|
let c = 0;
|
|
272
|
-
return ll.value && (c =
|
|
273
|
-
}), ht = $(() =>
|
|
285
|
+
return ll.value && (c = ql.value), a + c + m.value.xAxis;
|
|
286
|
+
}), ht = $(() => pe.value.some((a) => a.useProgression)), n = $(() => {
|
|
274
287
|
let a = 0;
|
|
275
288
|
const c = 36;
|
|
276
|
-
l.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ? a = (
|
|
289
|
+
l.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ? a = (pe.value.length - te.value.length) * (l.value.chart.grid.labels.yAxis.labelWidth + c) : f.value.useIndividualScale && f.value.isStacked ? a = l.value.chart.grid.labels.yAxis.labelWidth + c : a = vt());
|
|
277
290
|
const e = l.value.chart.labels.fontSize * 1.1, s = ht.value ? 24 : 6;
|
|
278
291
|
if (ll.value) {
|
|
279
292
|
const o = ll.value.getBBox().x;
|
|
@@ -303,14 +316,14 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
303
316
|
showOnlyAtModulo: a,
|
|
304
317
|
showOnlyFirstAndLast: c,
|
|
305
318
|
modulo: e
|
|
306
|
-
} = l.value.chart.grid.labels.xAxisLabels, s = J.value.length ? Math.min(e, [...new Set(J.value.map((r) => r.text))].length) : e, t = Math.floor((
|
|
319
|
+
} = l.value.chart.grid.labels.xAxisLabels, s = J.value.length ? Math.min(e, [...new Set(J.value.map((r) => r.text))].length) : e, t = Math.floor((y.value.end - y.value.start) / s);
|
|
307
320
|
return J.value.map((r, o) => {
|
|
308
321
|
if (!r) return null;
|
|
309
|
-
const B = a && b.value <= s, F = !c && !a, E = c && !a && (o === 0 || o === J.value.length - 1), L = c && !a &&
|
|
322
|
+
const B = a && b.value <= s, F = !c && !a, E = c && !a && (o === 0 || o === J.value.length - 1), L = c && !a && p.value === o, C = !c && a && o % t === 0;
|
|
310
323
|
if (!(B || F || E || L || C))
|
|
311
324
|
return null;
|
|
312
|
-
const Y = n.value.width / b.value,
|
|
313
|
-
return `M${
|
|
325
|
+
const Y = n.value.width / b.value, w = n.value.left + Y * o + Y / 2, N = l.value.chart.grid.labels.xAxis.crosshairSize, A = l.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero, K = A ? ie.value - (ie.value === n.value.bottom ? 0 : N / 2) : n.value.bottom, oe = A ? ie.value + N / (ie.value === n.value.bottom ? 1 : 2) : n.value.bottom + N;
|
|
326
|
+
return `M${w},${K} L${w},${oe}`;
|
|
314
327
|
}).filter((r) => r !== null).join(" ");
|
|
315
328
|
});
|
|
316
329
|
function ga() {
|
|
@@ -328,30 +341,30 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
328
341
|
a.length && Array.from(a).forEach((c) => c.style.opacity = "0");
|
|
329
342
|
}
|
|
330
343
|
function Sl(a, c, e, s, t) {
|
|
331
|
-
e && (
|
|
344
|
+
e && (Ce.value[`${a}_${c}_${s}_${t}`] = e);
|
|
332
345
|
}
|
|
333
|
-
const
|
|
334
|
-
async function
|
|
335
|
-
await jl(),
|
|
346
|
+
const Ul = S(!1);
|
|
347
|
+
async function ma(a = !1) {
|
|
348
|
+
await jl(), Ul.value = a, na.value && (pl.value = a);
|
|
336
349
|
}
|
|
337
|
-
function
|
|
350
|
+
function Zl() {
|
|
338
351
|
yl.value = !yl.value;
|
|
339
352
|
}
|
|
340
353
|
const J = $(() => {
|
|
341
|
-
const a = Math.max(...
|
|
354
|
+
const a = Math.max(...pe.value.map((c) => Ye({ data: c.series, threshold: l.value.downsample.threshold }).length));
|
|
342
355
|
return to({
|
|
343
356
|
values: l.value.chart.grid.labels.xAxisLabels.values,
|
|
344
357
|
maxDatapoints: a,
|
|
345
358
|
formatter: l.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
346
|
-
start:
|
|
347
|
-
end:
|
|
359
|
+
start: y.value.start,
|
|
360
|
+
end: y.value.end
|
|
348
361
|
});
|
|
349
362
|
}), $l = $(() => {
|
|
350
363
|
const a = l.value.chart.grid.labels.xAxisLabels.modulo;
|
|
351
364
|
return J.value.length ? Math.min(a, [...new Set(J.value.map((c) => c.text))].length) : a;
|
|
352
365
|
});
|
|
353
|
-
function
|
|
354
|
-
const e =
|
|
366
|
+
function ba(a, c) {
|
|
367
|
+
const e = fe.value.map((s) => ({
|
|
355
368
|
shape: s.shape || null,
|
|
356
369
|
name: s.name,
|
|
357
370
|
color: s.color,
|
|
@@ -361,68 +374,68 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
361
374
|
prefix: s.prefix || l.value.chart.labels.prefix,
|
|
362
375
|
suffix: s.suffix || l.value.chart.labels.suffix
|
|
363
376
|
}));
|
|
364
|
-
|
|
377
|
+
Ol("selectTimeLabel", {
|
|
365
378
|
datapoint: e,
|
|
366
379
|
absoluteIndex: a.absoluteIndex,
|
|
367
380
|
label: a.text
|
|
368
381
|
});
|
|
369
382
|
}
|
|
370
|
-
const b = $(() =>
|
|
371
|
-
function
|
|
383
|
+
const b = $(() => y.value.end - y.value.start);
|
|
384
|
+
function mt(a) {
|
|
372
385
|
O.value = a;
|
|
373
386
|
}
|
|
374
387
|
function ya() {
|
|
375
388
|
f.value.isStacked = !f.value.isStacked, f.value.isStacked ? f.value.useIndividualScale = !0 : f.value.useIndividualScale = l.value.chart.grid.labels.yAxis.useIndividualScale;
|
|
376
389
|
}
|
|
377
|
-
function
|
|
390
|
+
function Jl(a) {
|
|
378
391
|
hl.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`));
|
|
379
392
|
}
|
|
380
|
-
function
|
|
393
|
+
function bt(a, c) {
|
|
381
394
|
let e = Array(Math.abs(a)).fill(0);
|
|
382
395
|
for (let s = 0; s < c.length && s < a; s += 1)
|
|
383
396
|
e[s] = c[s];
|
|
384
397
|
return e;
|
|
385
398
|
}
|
|
386
399
|
function yt(a) {
|
|
387
|
-
const c = Math.max(...
|
|
400
|
+
const c = Math.max(...pe.value.map((e) => Ye({ data: e.series, threshold: l.value.downsample.threshold }).length));
|
|
388
401
|
return a > c ? c : 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;
|
|
389
402
|
}
|
|
390
|
-
async function
|
|
403
|
+
async function Kl() {
|
|
391
404
|
await jl(), await jl();
|
|
392
405
|
const { startIndex: a, endIndex: c } = l.value.chart.zoom, e = Ne.value, s = Math.max(
|
|
393
|
-
...
|
|
406
|
+
...pe.value.map(
|
|
394
407
|
(t) => Ye({
|
|
395
408
|
data: t.series,
|
|
396
409
|
threshold: l.value.downsample.threshold
|
|
397
410
|
}).length
|
|
398
411
|
)
|
|
399
412
|
);
|
|
400
|
-
(a != null || c != null) && e ? (a != null && e.setStartValue(a), c != null && e.setEndValue(yt(c + 1))) : (
|
|
413
|
+
(a != null || c != null) && e ? (a != null && e.setStartValue(a), c != null && e.setEndValue(yt(c + 1))) : (y.value = { start: 0, end: s }, Bl.value += 1);
|
|
401
414
|
}
|
|
402
415
|
function pt() {
|
|
403
|
-
|
|
416
|
+
Kl();
|
|
404
417
|
}
|
|
405
|
-
function
|
|
418
|
+
function ge(a) {
|
|
406
419
|
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(a);
|
|
407
420
|
}
|
|
408
|
-
const pa = $(() =>
|
|
421
|
+
const pa = $(() => ke.value.max + cl.value);
|
|
409
422
|
function Ge(a) {
|
|
410
|
-
return a / (
|
|
423
|
+
return a / (ge(pa.value) ? pa.value : 1);
|
|
411
424
|
}
|
|
412
425
|
const ie = $(() => isNaN(Ge(cl.value)) ? n.value.bottom : n.value.bottom - n.value.height * Ge(cl.value));
|
|
413
426
|
function ka(a) {
|
|
414
|
-
const c = ![null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) && l.value.chart.grid.labels.yAxis.scaleMin > 0 &&
|
|
427
|
+
const c = ![null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) && l.value.chart.grid.labels.yAxis.scaleMin > 0 && Dl.value >= 0 ? n.value.bottom : ie.value;
|
|
415
428
|
return a.value >= 0 ? T(c - a.y <= 0 ? 1e-5 : c - a.y) : T(a.y - ie.value <= 0 ? 1e-5 : a.y - ie.value);
|
|
416
429
|
}
|
|
417
430
|
function _a(a) {
|
|
418
431
|
return a.value >= 0 ? T(a.zeroPosition - a.y <= 0 ? 1e-5 : a.zeroPosition - a.y) : T(a.y - a.zeroPosition <= 0 ? 1e-5 : a.zeroPosition - a.y);
|
|
419
432
|
}
|
|
420
433
|
const Z = $(() => ({
|
|
421
|
-
bar: n.value.width / b.value /
|
|
434
|
+
bar: n.value.width / b.value / Ie.value.filter((a) => a.type === "bar").filter((a) => !te.value.includes(a.id)).length,
|
|
422
435
|
plot: n.value.width / b.value,
|
|
423
436
|
line: n.value.width / b.value
|
|
424
437
|
}));
|
|
425
|
-
function
|
|
438
|
+
function _e() {
|
|
426
439
|
return f.value.useIndividualScale && f.value.isStacked ? Z.value.line - n.value.width / b.value * 0.1 : Z.value.bar;
|
|
427
440
|
}
|
|
428
441
|
function Ll(a) {
|
|
@@ -435,22 +448,23 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
435
448
|
return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(a.zeroPosition) ? 0 : a.zeroPosition;
|
|
436
449
|
}
|
|
437
450
|
function kt(a) {
|
|
438
|
-
|
|
451
|
+
const c = fe.value.map((e) => ({
|
|
452
|
+
name: e.name,
|
|
453
|
+
value: [null, void 0, NaN].includes(e.absoluteValues[a]) ? null : e.absoluteValues[a],
|
|
454
|
+
color: e.color,
|
|
455
|
+
type: e.type
|
|
456
|
+
}));
|
|
457
|
+
Ol(
|
|
439
458
|
"selectX",
|
|
440
459
|
{
|
|
441
|
-
dataset:
|
|
442
|
-
name: c.name,
|
|
443
|
-
value: [null, void 0, NaN].includes(c.absoluteValues[a]) ? null : c.absoluteValues[a],
|
|
444
|
-
color: c.color,
|
|
445
|
-
type: c.type
|
|
446
|
-
})),
|
|
460
|
+
dataset: c,
|
|
447
461
|
index: a,
|
|
448
462
|
indexLabel: l.value.chart.grid.labels.xAxisLabels.values[a]
|
|
449
463
|
}
|
|
450
|
-
);
|
|
464
|
+
), l.value.events.datapointClick && l.value.events.datapointClick({ datapoint: c, seriesIndex: a + y.value.start });
|
|
451
465
|
}
|
|
452
466
|
function _t() {
|
|
453
|
-
return
|
|
467
|
+
return Te.value.map((a) => ({
|
|
454
468
|
values: a.absoluteValues,
|
|
455
469
|
color: a.color,
|
|
456
470
|
name: a.name,
|
|
@@ -473,15 +487,15 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
473
487
|
if (te.value.includes(a.id))
|
|
474
488
|
te.value = te.value.filter((c) => c !== a.id);
|
|
475
489
|
else {
|
|
476
|
-
if (te.value.length + 1 ===
|
|
490
|
+
if (te.value.length + 1 === Ie.value.length) return;
|
|
477
491
|
te.value.push(a.id);
|
|
478
492
|
}
|
|
479
|
-
|
|
493
|
+
Ol("selectLegend", fe.value.map((c) => ({
|
|
480
494
|
name: c.name,
|
|
481
495
|
values: c.absoluteValues,
|
|
482
496
|
color: c.color,
|
|
483
497
|
type: c.type
|
|
484
|
-
}))),
|
|
498
|
+
}))), Yl.value += 1;
|
|
485
499
|
}
|
|
486
500
|
const St = $(() => {
|
|
487
501
|
const a = l.value.chart.title.text || "Chart visualization", c = l.value.chart.title.subtitle.text || "";
|
|
@@ -502,20 +516,20 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
502
516
|
to: Math.min(l.value.chart.highlightArea.to, Ve.value - 1)
|
|
503
517
|
};
|
|
504
518
|
return [{ ...a, span: a.from === a.to ? 1 : a.to < a.from ? 0 : a.to - a.from + 1 }];
|
|
505
|
-
}), At = $(() => oa.value ?
|
|
519
|
+
}), At = $(() => oa.value ? pe.value.map((a, c) => ({
|
|
506
520
|
...a,
|
|
507
521
|
series: Ye({
|
|
508
522
|
data: a.series,
|
|
509
523
|
threshold: l.value.downsample.threshold
|
|
510
524
|
}),
|
|
511
525
|
id: `uniqueId_${c}`
|
|
512
|
-
})) :
|
|
526
|
+
})) : pe.value), Mt = $(() => fe.value.map((a) => {
|
|
513
527
|
const c = a.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
|
|
514
528
|
return {
|
|
515
529
|
id: a.id,
|
|
516
530
|
name: a.name,
|
|
517
531
|
color: a.color,
|
|
518
|
-
values:
|
|
532
|
+
values: bt(b.value, c)
|
|
519
533
|
};
|
|
520
534
|
})), zt = $(() => ({
|
|
521
535
|
responsiveBreakpoint: l.value.table.responsiveBreakpoint,
|
|
@@ -540,7 +554,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
540
554
|
userOptions: {
|
|
541
555
|
show: !1
|
|
542
556
|
}
|
|
543
|
-
})), G = $(() => l.value.chart.grid.position === "middle" ? 0 : n.value.width / b.value / 2), De = $(() => qt(
|
|
557
|
+
})), G = $(() => l.value.chart.grid.position === "middle" ? 0 : n.value.width / b.value / 2), De = $(() => qt(Te.value.filter((a) => !te.value.includes(a.id)))), _ = $(() => {
|
|
544
558
|
const a = Object.groupBy(De.value, (e) => e.scaleLabel), c = {};
|
|
545
559
|
for (const [e, s] of Object.entries(a)) {
|
|
546
560
|
const t = s.flatMap((r) => r.absoluteValues);
|
|
@@ -552,26 +566,26 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
552
566
|
}
|
|
553
567
|
return c;
|
|
554
568
|
}), Ct = $(() => {
|
|
555
|
-
const a =
|
|
556
|
-
return n.value.width / b.value / a -
|
|
557
|
-
}),
|
|
569
|
+
const a = Ie.value.filter((c) => c.type === "bar").filter((c) => !te.value.includes(c.id)).length;
|
|
570
|
+
return n.value.width / b.value / a - Oe.value * a;
|
|
571
|
+
}), Oe = $(() => Z.value.line * l.value.bar.periodGap), It = $(() => {
|
|
558
572
|
if (!l.value.chart.zoom.minimap.show) return [];
|
|
559
573
|
const a = At.value.filter((t) => !te.value.includes(t.id)), c = Math.max(...a.map((t) => t.series.length)), e = [];
|
|
560
574
|
for (let t = 0; t < c; t += 1)
|
|
561
575
|
e.push(a.map((r) => r.series[t] || 0).reduce((r, o) => (r || 0) + (o || 0), 0));
|
|
562
576
|
const s = Math.min(...e);
|
|
563
577
|
return e.map((t) => t + (s < 0 ? Math.abs(s) : 0));
|
|
564
|
-
}), vl = $(() =>
|
|
578
|
+
}), vl = $(() => fe.value.map((a) => ({
|
|
565
579
|
slotAbsoluteIndex: a.slotAbsoluteIndex,
|
|
566
580
|
shape: a.shape || null,
|
|
567
581
|
name: a.name,
|
|
568
582
|
color: a.color,
|
|
569
583
|
type: a.type,
|
|
570
|
-
value: a.absoluteValues.find((c, e) => e ===
|
|
584
|
+
value: a.absoluteValues.find((c, e) => e === p.value),
|
|
571
585
|
comments: a.comments || [],
|
|
572
586
|
prefix: a.prefix || l.value.chart.labels.prefix,
|
|
573
587
|
suffix: a.suffix || l.value.chart.labels.suffix
|
|
574
|
-
}))), Aa = $(() =>
|
|
588
|
+
}))), Aa = $(() => ke.value.ticks.map((a) => ({
|
|
575
589
|
y: a >= 0 ? ie.value - n.value.height * Ge(a) : ie.value + n.value.height * Ge(Math.abs(a)),
|
|
576
590
|
value: a,
|
|
577
591
|
prefix: l.value.chart.labels.prefix,
|
|
@@ -583,17 +597,17 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
583
597
|
(L) => L.show && (L.yAxis.yTop != null || L.yAxis.yBottom != null)
|
|
584
598
|
);
|
|
585
599
|
if (!c.length) return [];
|
|
586
|
-
const { left: e, right: s } = n.value, t = ie.value, r = n.value.height, o =
|
|
600
|
+
const { left: e, right: s } = n.value, t = ie.value, r = n.value.height, o = ke.value.min, F = ke.value.max - o, E = (L) => {
|
|
587
601
|
const C = (L - 0) / F;
|
|
588
602
|
return t - C * r;
|
|
589
603
|
};
|
|
590
604
|
return c.map((L) => {
|
|
591
|
-
const { yAxis: { yTop: C, yBottom: Y, label:
|
|
592
|
-
oe.font = `${
|
|
593
|
-
const D = oe.measureText(
|
|
605
|
+
const { yAxis: { yTop: C, yBottom: Y, label: w } } = L, N = C != null && Y != null && C !== Y, A = C == null ? null : E(C), K = Y == null ? null : E(Y), oe = xt(w.fontSize);
|
|
606
|
+
oe.font = `${w.fontSize}px sans-serif`;
|
|
607
|
+
const D = oe.measureText(w.text).width, xe = w.fontSize, Ae = (w.position === "start" ? e + w.padding.left : s - w.padding.right) + w.offsetX, de = (A != null && K != null ? Math.min(A, K) : A ?? K) - w.fontSize / 3 + w.offsetY - w.padding.top;
|
|
594
608
|
let P;
|
|
595
|
-
|
|
596
|
-
const H = de -
|
|
609
|
+
w.textAnchor === "middle" ? P = Ae - D / 2 - w.padding.left : w.textAnchor === "end" ? P = Ae - D - w.padding.right : P = Ae - w.padding.left;
|
|
610
|
+
const H = de - xe * 0.75 - w.padding.top;
|
|
597
611
|
return {
|
|
598
612
|
show: ![A, K, H].includes(NaN),
|
|
599
613
|
id: `annotation_y_${ea()}`,
|
|
@@ -604,25 +618,25 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
604
618
|
config: L.yAxis,
|
|
605
619
|
x1: e,
|
|
606
620
|
x2: s,
|
|
607
|
-
_text: { x:
|
|
621
|
+
_text: { x: Ae, y: de },
|
|
608
622
|
_box: {
|
|
609
623
|
x: P,
|
|
610
624
|
y: H,
|
|
611
|
-
width: D +
|
|
612
|
-
height:
|
|
613
|
-
fill:
|
|
614
|
-
stroke:
|
|
615
|
-
rx:
|
|
616
|
-
ry:
|
|
617
|
-
strokeWidth:
|
|
625
|
+
width: D + w.padding.left + w.padding.right,
|
|
626
|
+
height: xe + w.padding.top + w.padding.bottom,
|
|
627
|
+
fill: w.backgroundColor,
|
|
628
|
+
stroke: w.border.stroke,
|
|
629
|
+
rx: w.border.rx,
|
|
630
|
+
ry: w.border.ry,
|
|
631
|
+
strokeWidth: w.border.strokeWidth
|
|
618
632
|
}
|
|
619
633
|
};
|
|
620
634
|
});
|
|
621
635
|
}), Pe = $(() => {
|
|
622
636
|
const a = De.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (c - 1) : 0, r = n.value.height - t;
|
|
623
637
|
return a.filter((o) => o.type === "bar").map((o, B) => {
|
|
624
|
-
|
|
625
|
-
const F =
|
|
638
|
+
Jl(o);
|
|
639
|
+
const F = _.value[o.scaleLabel].min, E = _.value[o.scaleLabel].max;
|
|
626
640
|
o.absoluteValues.filter((V) => ![null, void 0].includes(V)).map((V) => (V - F) / (E - F));
|
|
627
641
|
const L = {
|
|
628
642
|
valueMin: F,
|
|
@@ -630,8 +644,8 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
630
644
|
}, C = {
|
|
631
645
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
632
646
|
min: o.scaleMin || Math.min(...o.absoluteValues.filter((V) => ![void 0, null].includes(V))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((V) => ![null, void 0].includes(V)))
|
|
633
|
-
}, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps,
|
|
634
|
-
const Re = f.value.useIndividualScale ? (o.absoluteValues[ee] + K) / D : Ge(V), qe = f.value.useIndividualScale && f.value.isStacked ? n.value.left + n.value.width / b.value * ee : n.value.left + Z.value.bar * B + Z.value.bar * ee * ne - Ct.value / 2 - B *
|
|
647
|
+
}, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, w = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ? ml(C.min, C.max === C.min ? C.max * w : C.max, Y) : Ke(C.min, C.max === C.min ? C.max * w : C.max, Y), A = l.value.chart.grid.labels.yAxis.useNiceScale ? ml(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * w : L.valueMax, Y) : Ke(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * w : L.valueMax, Y), K = N.min >= 0 ? 0 : Math.abs(N.min), oe = 0, D = N.max + K, xe = A.max + Math.abs(oe), Ae = o.stackIndex, tl = c - 1 - Ae, de = s ? 1 - o.cumulatedStackRatio : 0, P = s ? r * de + e * tl : 0, H = s ? r * o.stackRatio : n.value.height, Q = n.value.bottom - P - H * K / D, he = n.value.bottom - P - H * oe / xe, ne = Te.value.filter((V) => V.type === "bar").filter((V) => !te.value.includes(V.id)).length, fl = o.series.map((V, ee) => {
|
|
648
|
+
const Re = f.value.useIndividualScale ? (o.absoluteValues[ee] + K) / D : Ge(V), qe = f.value.useIndividualScale && f.value.isStacked ? n.value.left + n.value.width / b.value * ee : n.value.left + Z.value.bar * B + Z.value.bar * ee * ne - Ct.value / 2 - B * Oe.value;
|
|
635
649
|
return {
|
|
636
650
|
yOffset: T(P),
|
|
637
651
|
individualHeight: T(H),
|
|
@@ -640,10 +654,10 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
640
654
|
value: o.absoluteValues[ee],
|
|
641
655
|
zeroPosition: T(Q),
|
|
642
656
|
individualMax: T(D),
|
|
643
|
-
comment: o.comments && o.comments.slice(
|
|
657
|
+
comment: o.comments && o.comments.slice(y.value.start, y.value.end)[ee] || ""
|
|
644
658
|
};
|
|
645
659
|
}), ce = o.absoluteValues.map((V) => A.min >= 0 ? (V - Math.abs(A.min)) / (A.max - Math.abs(A.min)) : (V + Math.abs(A.min)) / (A.max + Math.abs(A.min))), He = o.series.map((V, ee) => {
|
|
646
|
-
const Re = f.value.useIndividualScale && f.value.isStacked ? n.value.left + n.value.width / b.value * ee : n.value.left - Z.value.bar / 2 + Z.value.bar * B + Z.value.bar * ee *
|
|
660
|
+
const Re = f.value.useIndividualScale && f.value.isStacked ? n.value.left + n.value.width / b.value * ee : n.value.left - Z.value.bar / 2 + Z.value.bar * B + Z.value.bar * ee * Te.value.filter((qe) => qe.type === "bar").filter((qe) => !te.value.includes(qe.id)).length;
|
|
647
661
|
return {
|
|
648
662
|
yOffset: T(P),
|
|
649
663
|
individualHeight: T(H),
|
|
@@ -652,7 +666,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
652
666
|
value: o.absoluteValues[ee],
|
|
653
667
|
zeroPosition: T(Q),
|
|
654
668
|
individualMax: T(D),
|
|
655
|
-
comment: o.comments && o.comments.slice(
|
|
669
|
+
comment: o.comments && o.comments.slice(y.value.start, y.value.end)[ee] || ""
|
|
656
670
|
};
|
|
657
671
|
}), W = N.ticks.map((V) => ({
|
|
658
672
|
y: V >= 0 ? Q - H * (V / D) : Q + H * Math.abs(V) / D,
|
|
@@ -670,24 +684,24 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
670
684
|
datapoint: o
|
|
671
685
|
};
|
|
672
686
|
});
|
|
673
|
-
return
|
|
687
|
+
return _.value[o.scaleLabel].name = o.name, _.value[o.scaleLabel].groupName = o.scaleLabel, _.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, _.value[o.scaleLabel].color = o.color, _.value[o.scaleLabel].scaleYLabels = o.autoScaling ? j : W, _.value[o.scaleLabel].zeroPosition = o.autoScaling ? he : Q, _.value[o.scaleLabel].individualMax = o.autoScaling ? xe : D, _.value[o.scaleLabel].scaleLabel = o.scaleLabel, _.value[o.scaleLabel].id = o.id, _.value[o.scaleLabel].yOffset = P, _.value[o.scaleLabel].individualHeight = H, _.value[o.scaleLabel].autoScaleYLabels = j, _.value[o.scaleLabel].unique = De.value.filter((V) => V.scaleLabel === o.scaleLabel).length === 1, {
|
|
674
688
|
...o,
|
|
675
689
|
yOffset: P,
|
|
676
690
|
autoScaleYLabels: j,
|
|
677
691
|
individualHeight: H,
|
|
678
692
|
scaleYLabels: o.autoScaling ? j : W,
|
|
679
693
|
individualScale: o.autoScaling ? A : N,
|
|
680
|
-
individualMax: o.autoScaling ?
|
|
694
|
+
individualMax: o.autoScaling ? xe : D,
|
|
681
695
|
zeroPosition: o.autoScaling ? he : Q,
|
|
682
696
|
plots: o.autoScaling ? He : fl,
|
|
683
|
-
groupId:
|
|
697
|
+
groupId: _.value[o.scaleLabel].groupId
|
|
684
698
|
};
|
|
685
699
|
});
|
|
686
|
-
}),
|
|
700
|
+
}), we = $(() => {
|
|
687
701
|
const a = De.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (c - 1) : 0, r = n.value.height - t;
|
|
688
702
|
return a.filter((o) => o.type === "line").map((o, B) => {
|
|
689
|
-
|
|
690
|
-
const F =
|
|
703
|
+
Jl(o);
|
|
704
|
+
const F = _.value[o.scaleLabel].min, E = _.value[o.scaleLabel].max;
|
|
691
705
|
o.absoluteValues.filter((I) => ![null, void 0].includes(I)).map((I) => (I - F) / (E - F));
|
|
692
706
|
const L = {
|
|
693
707
|
valueMin: F,
|
|
@@ -695,24 +709,24 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
695
709
|
}, C = {
|
|
696
710
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
697
711
|
min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
|
|
698
|
-
}, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps,
|
|
712
|
+
}, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, w = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ? ml(C.min, C.max === C.min ? C.max * w : C.max, Y) : Ke(C.min, C.max === C.min ? C.max * w : C.max, Y), A = l.value.chart.grid.labels.yAxis.useNiceScale ? ml(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * w : L.valueMax, Y) : Ke(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * w : L.valueMax, Y), K = N.min >= 0 ? 0 : Math.abs(N.min), oe = 0, D = N.max + Math.abs(K), xe = A.max + Math.abs(oe), Ae = o.stackIndex, tl = c - 1 - Ae, de = s ? 1 - o.cumulatedStackRatio : 0, P = s ? r * de + e * tl : 0, H = s ? r * o.stackRatio : n.value.height, Q = n.value.bottom - P - H * K / D, he = n.value.bottom - P - H * oe / xe, ne = o.series.map((I, se) => {
|
|
699
713
|
const Ot = f.value.useIndividualScale ? (o.absoluteValues[se] + Math.abs(K)) / D : Ge(I);
|
|
700
714
|
return {
|
|
701
715
|
x: T(n.value.left + Z.value.line / 2 + Z.value.line * se),
|
|
702
716
|
y: T(n.value.bottom - P - H * Ot),
|
|
703
717
|
value: o.absoluteValues[se],
|
|
704
|
-
comment: o.comments && o.comments.slice(
|
|
718
|
+
comment: o.comments && o.comments.slice(y.value.start, y.value.end)[se] || ""
|
|
705
719
|
};
|
|
706
720
|
}), fl = o.absoluteValues.map((I) => A.min >= 0 ? (I - Math.abs(A.min)) / (A.max - Math.abs(A.min)) : (I + Math.abs(A.min)) / (A.max + Math.abs(A.min))), ce = o.series.map((I, se) => [void 0, null].includes(o.absoluteValues[se]) ? {
|
|
707
721
|
x: T(n.value.left + Z.value.line / 2 + Z.value.line * se),
|
|
708
722
|
y: Q,
|
|
709
723
|
value: o.absoluteValues[se],
|
|
710
|
-
comment: o.comments && o.comments.slice(
|
|
724
|
+
comment: o.comments && o.comments.slice(y.value.start, y.value.end)[se] || ""
|
|
711
725
|
} : {
|
|
712
726
|
x: T(n.value.left + Z.value.line / 2 + Z.value.line * se),
|
|
713
727
|
y: T(n.value.bottom - P - (H * fl[se] || 0)),
|
|
714
728
|
value: o.absoluteValues[se],
|
|
715
|
-
comment: o.comments && o.comments.slice(
|
|
729
|
+
comment: o.comments && o.comments.slice(y.value.start, y.value.end)[se] || ""
|
|
716
730
|
}), He = l.value.line.cutNullValues ? Fa(ne) : Ea(ne.filter((I) => I.value !== null)), W = l.value.line.cutNullValues ? Fa(ce) : Ea(ce.filter((I) => I.value !== null)), j = l.value.line.cutNullValues ? Wa(ne) : Xa(ne.filter((I) => I.value !== null)), V = l.value.line.cutNullValues ? Wa(ce) : Xa(ce.filter((I) => I.value !== null)), ee = N.ticks.map((I) => ({
|
|
717
731
|
y: I >= 0 ? Q - H * (I / D) : Q + H * Math.abs(I) / D,
|
|
718
732
|
value: I,
|
|
@@ -729,7 +743,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
729
743
|
datapoint: o
|
|
730
744
|
};
|
|
731
745
|
});
|
|
732
|
-
|
|
746
|
+
_.value[o.scaleLabel].name = o.name, _.value[o.scaleLabel].groupName = o.scaleLabel, _.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, _.value[o.scaleLabel].color = o.color, _.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Re : ee, _.value[o.scaleLabel].zeroPosition = o.autoScaling ? he : Q, _.value[o.scaleLabel].individualMax = o.autoScaling ? xe : D, _.value[o.scaleLabel].scaleLabel = o.scaleLabel, _.value[o.scaleLabel].id = o.id, _.value[o.scaleLabel].yOffset = P, _.value[o.scaleLabel].individualHeight = H, _.value[o.scaleLabel].autoScaleYLabels = Re, _.value[o.scaleLabel].unique = De.value.filter((I) => I.scaleLabel === o.scaleLabel).length === 1;
|
|
733
747
|
const qe = f.value.useIndividualScale ? o.autoScaling ? he : Q : ie.value, gl = Math.max(Math.max(o.autoScaling ? he : ee.at(-1) ? ee.at(-1).y : 0, n.value.top), qe);
|
|
734
748
|
return {
|
|
735
749
|
...o,
|
|
@@ -738,7 +752,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
738
752
|
individualHeight: H,
|
|
739
753
|
scaleYLabels: o.autoScaling ? Re : ee,
|
|
740
754
|
individualScale: o.autoScaling ? A : N,
|
|
741
|
-
individualMax: o.autoScaling ?
|
|
755
|
+
individualMax: o.autoScaling ? xe : D,
|
|
742
756
|
zeroPosition: o.autoScaling ? he : Q,
|
|
743
757
|
curve: o.autoScaling ? W : He,
|
|
744
758
|
plots: o.autoScaling ? ce : ne,
|
|
@@ -755,14 +769,14 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
755
769
|
l.value.line.cutNullValues
|
|
756
770
|
) : [],
|
|
757
771
|
straight: o.autoScaling ? V : j,
|
|
758
|
-
groupId:
|
|
772
|
+
groupId: _.value[o.scaleLabel].groupId
|
|
759
773
|
};
|
|
760
774
|
});
|
|
761
|
-
}),
|
|
775
|
+
}), Le = $(() => {
|
|
762
776
|
const a = De.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (c - 1) : 0, r = n.value.height - t;
|
|
763
777
|
return a.filter((o) => o.type === "plot").map((o) => {
|
|
764
|
-
|
|
765
|
-
const B =
|
|
778
|
+
Jl(o);
|
|
779
|
+
const B = _.value[o.scaleLabel].min, F = _.value[o.scaleLabel].max;
|
|
766
780
|
o.absoluteValues.filter((W) => ![null, void 0].includes(W)).map((W) => (W - B) / (F - B));
|
|
767
781
|
const E = {
|
|
768
782
|
valueMin: B,
|
|
@@ -770,20 +784,20 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
770
784
|
}, L = {
|
|
771
785
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
772
786
|
min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
|
|
773
|
-
}, C = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, Y = 1.0000001,
|
|
787
|
+
}, C = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, Y = 1.0000001, w = Ke(L.min, L.max === L.min ? L.max * Y : L.max, C), N = Ke(E.valueMin, E.valueMax === E.valueMin ? E.valueMax * Y : E.valueMax, C), A = w.min >= 0 ? 0 : Math.abs(w.min), K = 0, oe = w.max + A, D = N.max + Math.abs(K), xe = o.stackIndex, Ae = c - 1 - xe, tl = s ? 1 - o.cumulatedStackRatio : 0, de = s ? r * tl + e * Ae : 0, P = s ? r * o.stackRatio : n.value.height, H = n.value.bottom - de - P * A / oe, Q = n.value.bottom - de - P * K / D, he = o.series.map((W, j) => {
|
|
774
788
|
const V = f.value.useIndividualScale ? (o.absoluteValues[j] + Math.abs(A)) / oe : Ge(W);
|
|
775
789
|
return {
|
|
776
790
|
x: T(n.value.left + Z.value.plot / 2 + Z.value.plot * j),
|
|
777
791
|
y: T(n.value.bottom - de - P * V),
|
|
778
792
|
value: o.absoluteValues[j],
|
|
779
|
-
comment: o.comments && o.comments.slice(
|
|
793
|
+
comment: o.comments && o.comments.slice(y.value.start, y.value.end)[j] || ""
|
|
780
794
|
};
|
|
781
795
|
}), ne = o.absoluteValues.map((W) => N.min >= 0 ? (W - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (W + Math.abs(N.min)) / (N.max + Math.abs(N.min))), fl = o.series.map((W, j) => ({
|
|
782
796
|
x: T(n.value.left + Z.value.plot / 2 + Z.value.plot * j),
|
|
783
797
|
y: T(n.value.bottom - de - (P * ne[j] || 0)),
|
|
784
798
|
value: o.absoluteValues[j],
|
|
785
|
-
comment: o.comments && o.comments.slice(
|
|
786
|
-
})), ce =
|
|
799
|
+
comment: o.comments && o.comments.slice(y.value.start, y.value.end)[j] || ""
|
|
800
|
+
})), ce = w.ticks.map((W) => ({
|
|
787
801
|
y: W >= 0 ? H - P * (W / oe) : H + P * Math.abs(W) / oe,
|
|
788
802
|
value: W,
|
|
789
803
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
@@ -799,21 +813,21 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
799
813
|
datapoint: o
|
|
800
814
|
};
|
|
801
815
|
});
|
|
802
|
-
return
|
|
816
|
+
return _.value[o.scaleLabel].name = o.name, _.value[o.scaleLabel].groupName = o.scaleLabel, _.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, _.value[o.scaleLabel].color = o.color, _.value[o.scaleLabel].scaleYLabels = o.autoScaling ? He : ce, _.value[o.scaleLabel].zeroPosition = o.autoScaling ? Q : H, _.value[o.scaleLabel].individualMax = o.autoScaling ? D : oe, _.value[o.scaleLabel].scaleLabel = o.scaleLabel, _.value[o.scaleLabel].id = o.id, _.value[o.scaleLabel].yOffset = de, _.value[o.scaleLabel].individualHeight = P, _.value[o.scaleLabel].autoScaleYLabels = He, _.value[o.scaleLabel].unique = De.value.filter((W) => W.scaleLabel === o.scaleLabel).length === 1, {
|
|
803
817
|
...o,
|
|
804
818
|
yOffset: de,
|
|
805
819
|
autoScaleYLabels: He,
|
|
806
820
|
individualHeight: P,
|
|
807
821
|
scaleYLabels: o.autoScaling ? He : ce,
|
|
808
|
-
individualScale: o.autoScaling ? N :
|
|
822
|
+
individualScale: o.autoScaling ? N : w,
|
|
809
823
|
individualMax: o.autoScaling ? D : oe,
|
|
810
824
|
zeroPosition: o.autoScaling ? Q : H,
|
|
811
825
|
plots: o.autoScaling ? fl : he,
|
|
812
|
-
groupId:
|
|
826
|
+
groupId: _.value[o.scaleLabel].groupId
|
|
813
827
|
};
|
|
814
828
|
});
|
|
815
829
|
}), dl = $(() => {
|
|
816
|
-
const a =
|
|
830
|
+
const a = we.value.map((r) => ({
|
|
817
831
|
name: r.name,
|
|
818
832
|
color: r.color,
|
|
819
833
|
scale: r.individualScale,
|
|
@@ -836,7 +850,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
836
850
|
id: r.id,
|
|
837
851
|
yOffset: r.yOffset || 0,
|
|
838
852
|
individualHeight: r.individualHeight || n.value.height
|
|
839
|
-
})), e =
|
|
853
|
+
})), e = Le.value.map((r) => ({
|
|
840
854
|
name: r.name,
|
|
841
855
|
color: r.color,
|
|
842
856
|
scale: r.individualScale,
|
|
@@ -848,7 +862,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
848
862
|
id: r.id,
|
|
849
863
|
yOffset: r.yOffset || 0,
|
|
850
864
|
individualHeight: r.individualHeight || n.value.height
|
|
851
|
-
})), s = f.value.useIndividualScale && !f.value.isStacked ? Object.values(
|
|
865
|
+
})), s = f.value.useIndividualScale && !f.value.isStacked ? Object.values(_.value) : [...a, ...c, ...e], t = s.flatMap((r) => r).length;
|
|
852
866
|
return s.flatMap((r, o) => {
|
|
853
867
|
let B = 0;
|
|
854
868
|
B = f.value.isStacked ? n.value.left : n.value.left / t * (o + 1);
|
|
@@ -877,42 +891,42 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
877
891
|
});
|
|
878
892
|
}), za = $(() => ({
|
|
879
893
|
datapoint: vl.value,
|
|
880
|
-
seriesIndex:
|
|
881
|
-
series:
|
|
894
|
+
seriesIndex: p.value,
|
|
895
|
+
series: Te.value,
|
|
882
896
|
bars: Pe.value,
|
|
883
|
-
lines:
|
|
884
|
-
plots:
|
|
897
|
+
lines: we.value,
|
|
898
|
+
plots: Le.value,
|
|
885
899
|
config: l.value
|
|
886
900
|
})), Tt = $(() => {
|
|
887
|
-
let a = "", c = vl.value.map((t) => t.value).filter((t) =>
|
|
888
|
-
const e = J.value[
|
|
901
|
+
let a = "", c = vl.value.map((t) => t.value).filter((t) => zl(t) && t !== null).reduce((t, r) => Math.abs(t) + Math.abs(r), 0);
|
|
902
|
+
const e = J.value[p.value], s = l.value.chart.tooltip.customFormat;
|
|
889
903
|
return Zt(s) && Jt(() => s({
|
|
890
|
-
absoluteIndex:
|
|
891
|
-
seriesIndex:
|
|
904
|
+
absoluteIndex: p.value + y.value.start,
|
|
905
|
+
seriesIndex: p.value,
|
|
892
906
|
datapoint: vl.value,
|
|
893
|
-
series:
|
|
907
|
+
series: Te.value,
|
|
894
908
|
bars: Pe.value,
|
|
895
|
-
lines:
|
|
896
|
-
plots:
|
|
909
|
+
lines: we.value,
|
|
910
|
+
plots: Le.value,
|
|
897
911
|
config: l.value
|
|
898
912
|
})) ? s({
|
|
899
|
-
absoluteIndex:
|
|
900
|
-
seriesIndex:
|
|
913
|
+
absoluteIndex: p.value + y.value.start,
|
|
914
|
+
seriesIndex: p.value,
|
|
901
915
|
datapoint: vl.value,
|
|
902
|
-
series:
|
|
916
|
+
series: Te.value,
|
|
903
917
|
bars: Pe.value,
|
|
904
|
-
lines:
|
|
905
|
-
plots:
|
|
918
|
+
lines: we.value,
|
|
919
|
+
plots: Le.value,
|
|
906
920
|
config: l.value
|
|
907
921
|
}) : (e && e.text && l.value.chart.tooltip.showTimeLabel && (a += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${l.value.chart.tooltip.borderColor}; width:100%">${e.text}</div>`), vl.value.forEach((t) => {
|
|
908
|
-
if (
|
|
922
|
+
if (zl(t.value)) {
|
|
909
923
|
let r = "", o = "";
|
|
910
924
|
switch (il.value[t.type]) {
|
|
911
925
|
case "bar":
|
|
912
926
|
r = `<svg viewBox="0 0 40 40" height="14" width="14">${ta.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="${ta.pattern ? `url(#pattern_${U.value}_${t.slotAbsoluteIndex}` : t.color}" /></svg>`;
|
|
913
927
|
break;
|
|
914
928
|
case "line":
|
|
915
|
-
!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="${
|
|
929
|
+
!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="${ze({ 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="${ze({ 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="${ze({ 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="${ze({ 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="${ze({ 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="${qa({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), r = `<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>`;
|
|
916
930
|
break;
|
|
917
931
|
case "plot":
|
|
918
932
|
if (!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape)) {
|
|
@@ -924,71 +938,71 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
924
938
|
break;
|
|
925
939
|
}
|
|
926
940
|
if (t.shape === "triangle") {
|
|
927
|
-
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
941
|
+
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${ze({ 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>`;
|
|
928
942
|
break;
|
|
929
943
|
}
|
|
930
944
|
if (t.shape === "square") {
|
|
931
|
-
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
945
|
+
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${ze({ 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>`;
|
|
932
946
|
break;
|
|
933
947
|
}
|
|
934
948
|
if (t.shape === "diamond") {
|
|
935
|
-
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
949
|
+
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${ze({ 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>`;
|
|
936
950
|
break;
|
|
937
951
|
}
|
|
938
952
|
if (t.shape === "pentagon") {
|
|
939
|
-
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
953
|
+
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${ze({ 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>`;
|
|
940
954
|
break;
|
|
941
955
|
}
|
|
942
956
|
if (t.shape === "hexagon") {
|
|
943
|
-
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
957
|
+
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${ze({ 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>`;
|
|
944
958
|
break;
|
|
945
959
|
}
|
|
946
960
|
}
|
|
947
961
|
a += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${r}</div> ${t.name}: <b>${l.value.chart.tooltip.showValue ? re(
|
|
948
962
|
t.type === "line" ? l.value.line.labels.formatter : t.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
|
|
949
963
|
t.value,
|
|
950
|
-
|
|
964
|
+
me({
|
|
951
965
|
p: t.prefix,
|
|
952
966
|
v: t.value,
|
|
953
967
|
s: t.suffix,
|
|
954
968
|
r: l.value.chart.tooltip.roundingValue
|
|
955
969
|
}),
|
|
956
970
|
{ datapoint: t }
|
|
957
|
-
) : ""}</b> ${l.value.chart.tooltip.showPercentage ? `(${
|
|
971
|
+
) : ""}</b> ${l.value.chart.tooltip.showPercentage ? `(${me({
|
|
958
972
|
v: T(Math.abs(t.value) / c * 100),
|
|
959
973
|
s: "%",
|
|
960
974
|
r: l.value.chart.tooltip.roundingPercentage
|
|
961
|
-
})})` : ""}</div>`, l.value.chart.comments.showInTooltip && t.comments.length && t.comments.slice(
|
|
975
|
+
})})` : ""}</div>`, l.value.chart.comments.showInTooltip && t.comments.length && t.comments.slice(y.value.start, y.value.end)[p.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(y.value.start, y.value.end)[p.value]}</div>`);
|
|
962
976
|
}
|
|
963
977
|
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${l.value.chart.tooltip.color}">${a}</div>`);
|
|
964
978
|
}), Ca = $(() => {
|
|
965
|
-
if (
|
|
966
|
-
const a =
|
|
979
|
+
if (Ie.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
980
|
+
const a = fe.value.map((e) => ({
|
|
967
981
|
label: e.name,
|
|
968
982
|
color: e.color,
|
|
969
983
|
type: e.type
|
|
970
984
|
})), c = [];
|
|
971
985
|
return J.value.forEach((e, s) => {
|
|
972
986
|
const t = [e.text];
|
|
973
|
-
|
|
974
|
-
t.push(
|
|
987
|
+
fe.value.forEach((r) => {
|
|
988
|
+
t.push(ge(r.absoluteValues[s]) ? Number(r.absoluteValues[s].toFixed(l.value.table.rounding)) : "");
|
|
975
989
|
}), c.push(t);
|
|
976
990
|
}), { head: a, body: c };
|
|
977
991
|
}), Al = $(() => {
|
|
978
992
|
const a = l.value.table.showSum;
|
|
979
|
-
let c = [""].concat(
|
|
993
|
+
let c = [""].concat(fe.value.map((r) => r.name));
|
|
980
994
|
a && (c = c.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>'));
|
|
981
995
|
let e = [];
|
|
982
996
|
for (let r = 0; r < b.value; r += 1) {
|
|
983
|
-
const o =
|
|
997
|
+
const o = fe.value.map((B) => B.absoluteValues[r] ?? 0).reduce((B, F) => B + F, 0);
|
|
984
998
|
e.push(
|
|
985
999
|
[
|
|
986
1000
|
J.value[r].text ?? "-"
|
|
987
|
-
].concat(
|
|
1001
|
+
].concat(fe.value.map(
|
|
988
1002
|
(B) => re(
|
|
989
1003
|
B.type === "line" ? l.value.line.labels.formatter : B.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
|
|
990
1004
|
B.absoluteValues[r] ?? 0,
|
|
991
|
-
|
|
1005
|
+
me({
|
|
992
1006
|
p: B.prefix || l.value.chart.labels.prefix,
|
|
993
1007
|
v: B.absoluteValues[r] ?? 0,
|
|
994
1008
|
s: B.suffix || l.value.chart.labels.suffix,
|
|
@@ -1010,7 +1024,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1010
1024
|
outline: l.value.table.td.outline
|
|
1011
1025
|
},
|
|
1012
1026
|
breakpoint: l.value.table.responsiveBreakpoint
|
|
1013
|
-
}, t = [l.value.table.columnNames.period].concat(
|
|
1027
|
+
}, t = [l.value.table.columnNames.period].concat(fe.value.map((r) => r.name)).concat(l.value.table.columnNames.total);
|
|
1014
1028
|
return { head: c, body: e, config: s, colNames: t };
|
|
1015
1029
|
});
|
|
1016
1030
|
function Ia(a = null) {
|
|
@@ -1018,7 +1032,14 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1018
1032
|
a ? a(r) : ao({ csvContent: r, title: l.value.chart.title.text || "vue-ui-xy" });
|
|
1019
1033
|
}
|
|
1020
1034
|
function Ta(a, c = null) {
|
|
1021
|
-
sa.value = a
|
|
1035
|
+
sa.value = a;
|
|
1036
|
+
const e = fe.value.map((s) => ({
|
|
1037
|
+
name: s.name,
|
|
1038
|
+
value: [null, void 0, NaN].includes(s.absoluteValues[c]) ? null : s.absoluteValues[c],
|
|
1039
|
+
color: s.color,
|
|
1040
|
+
type: s.type
|
|
1041
|
+
}));
|
|
1042
|
+
a ? (p.value = c, l.value.events.datapointEnter && l.value.events.datapointEnter({ datapoint: e, seriesIndex: c + y.value.start })) : (p.value = null, l.value.events.datapointLeave && l.value.events.datapointLeave({ datapoint: e, seriesIndex: c + y.value.start }));
|
|
1022
1043
|
}
|
|
1023
1044
|
function Oa() {
|
|
1024
1045
|
f.value.showTable = !f.value.showTable;
|
|
@@ -1034,40 +1055,40 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1034
1055
|
}
|
|
1035
1056
|
function Ha() {
|
|
1036
1057
|
if (!l.value.responsiveProportionalSizing) {
|
|
1037
|
-
|
|
1058
|
+
m.value.dataLabels = l.value.chart.grid.labels.fontSize, m.value.yAxis = l.value.chart.grid.labels.axis.fontSize, m.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, m.value.plotLabels = l.value.chart.labels.fontSize, $e.value.plot = l.value.plot.radius, $e.value.line = l.value.line.radius;
|
|
1038
1059
|
return;
|
|
1039
1060
|
}
|
|
1040
|
-
|
|
1061
|
+
m.value.dataLabels = ol({
|
|
1041
1062
|
relator: ve.value,
|
|
1042
1063
|
adjuster: 400,
|
|
1043
1064
|
source: l.value.chart.grid.labels.fontSize,
|
|
1044
1065
|
threshold: 10,
|
|
1045
1066
|
fallback: 10
|
|
1046
|
-
}),
|
|
1067
|
+
}), m.value.yAxis = ol({
|
|
1047
1068
|
relator: ae.value,
|
|
1048
1069
|
adjuster: 1e3,
|
|
1049
1070
|
source: l.value.chart.grid.labels.axis.fontSize,
|
|
1050
1071
|
threshold: 10,
|
|
1051
1072
|
fallback: 10
|
|
1052
|
-
}),
|
|
1073
|
+
}), m.value.xAxis = ol({
|
|
1053
1074
|
relator: ae.value,
|
|
1054
1075
|
adjuster: 1e3,
|
|
1055
1076
|
source: l.value.chart.grid.labels.xAxisLabels.fontSize,
|
|
1056
1077
|
threshold: 10,
|
|
1057
1078
|
fallback: 10
|
|
1058
|
-
}),
|
|
1079
|
+
}), m.value.plotLabels = ol({
|
|
1059
1080
|
relator: ae.value,
|
|
1060
1081
|
adjuster: 800,
|
|
1061
1082
|
source: l.value.chart.labels.fontSize,
|
|
1062
1083
|
threshold: 10,
|
|
1063
1084
|
fallback: 10
|
|
1064
|
-
}),
|
|
1085
|
+
}), $e.value.plot = ol({
|
|
1065
1086
|
relator: ae.value,
|
|
1066
1087
|
adjuster: 800,
|
|
1067
1088
|
source: l.value.plot.radius,
|
|
1068
1089
|
threshold: 1,
|
|
1069
1090
|
fallback: 1
|
|
1070
|
-
}),
|
|
1091
|
+
}), $e.value.line = ol({
|
|
1071
1092
|
relator: ae.value,
|
|
1072
1093
|
adjuster: 800,
|
|
1073
1094
|
source: l.value.line.radius,
|
|
@@ -1077,11 +1098,11 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1077
1098
|
}
|
|
1078
1099
|
const hl = $(() => !!l.value.debug);
|
|
1079
1100
|
function Ra() {
|
|
1080
|
-
Ua(
|
|
1101
|
+
Ua(g.dataset) ? (la({
|
|
1081
1102
|
componentName: "VueUiXy",
|
|
1082
1103
|
type: "dataset",
|
|
1083
1104
|
debug: hl.value
|
|
1084
|
-
}), _l.value = !0) :
|
|
1105
|
+
}), _l.value = !0) : g.dataset.forEach((c, e) => {
|
|
1085
1106
|
[null, void 0].includes(c.name) && (la({
|
|
1086
1107
|
componentName: "VueUiXy",
|
|
1087
1108
|
type: "datasetSerieAttribute",
|
|
@@ -1089,13 +1110,13 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1089
1110
|
index: e,
|
|
1090
1111
|
debug: hl.value
|
|
1091
1112
|
}), _l.value = !0);
|
|
1092
|
-
}), hl.value &&
|
|
1113
|
+
}), hl.value && g.dataset.forEach((c) => {
|
|
1093
1114
|
c.series.forEach((e, s) => {
|
|
1094
|
-
|
|
1115
|
+
zl(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
1095
1116
|
-----> The serie '${c.name}' contains the value '${e}' at index ${s}.
|
|
1096
1117
|
'${e}' was converted to null to allow the chart to display.`);
|
|
1097
1118
|
});
|
|
1098
|
-
}), Ua(
|
|
1119
|
+
}), Ua(g.dataset) || (_l.value = l.value.loading), na.value = l.value.chart.userOptions.showOnChartHover, Fl.value = l.value.chart.userOptions.keepStateOnChartLeave, pl.value = !l.value.chart.userOptions.showOnChartHover, f.value = {
|
|
1099
1120
|
dataLabels: {
|
|
1100
1121
|
show: !0
|
|
1101
1122
|
},
|
|
@@ -1107,55 +1128,55 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1107
1128
|
const a = 12;
|
|
1108
1129
|
if (l.value.responsive) {
|
|
1109
1130
|
const e = je.value.parentNode;
|
|
1110
|
-
We.value && (We.value.unobserve(
|
|
1131
|
+
We.value && (We.value.unobserve(Rl.value), We.value.disconnect());
|
|
1111
1132
|
const { height: s, width: t } = e.getBoundingClientRect();
|
|
1112
1133
|
let r = null, o = 0;
|
|
1113
1134
|
l.value.chart.title.show && sl.value && (r = sl.value, o = r.getBoundingClientRect().height);
|
|
1114
1135
|
let B = null, F = 0;
|
|
1115
|
-
l.value.chart.zoom.show && Ve.value > 6 &&
|
|
1136
|
+
l.value.chart.zoom.show && Ve.value > 6 && Wl.value && Ne.value && Ne.value.$el && (B = Ne.value.$el, F = B.getBoundingClientRect().height);
|
|
1116
1137
|
let E = null, L = 0;
|
|
1117
1138
|
l.value.chart.legend.show && el.value && (E = el.value, L = E.getBoundingClientRect().height);
|
|
1118
1139
|
let C = 0;
|
|
1119
1140
|
ul.value && (C = ul.value.getBoundingClientRect().height);
|
|
1120
1141
|
let Y = 0;
|
|
1121
|
-
rl.value && (Y = rl.value.getBoundingClientRect().height), ve.value = s - o - L - F - C - Y - a, ae.value = t,
|
|
1122
|
-
const
|
|
1142
|
+
rl.value && (Y = rl.value.getBoundingClientRect().height), ve.value = s - o - L - F - C - Y - a, ae.value = t, bl.value = `0 0 ${ae.value < 0 ? 10 : ae.value} ${ve.value < 0 ? 10 : ve.value}`, Ha();
|
|
1143
|
+
const w = new ResizeObserver((N) => {
|
|
1123
1144
|
for (const A of N)
|
|
1124
1145
|
l.value.chart.title.show && sl.value ? o = sl.value.getBoundingClientRect().height : o = 0, Ne.value && Ne.value.$el ? F = Ne.value.$el.getBoundingClientRect().height : F = 0, el.value ? L = el.value.getBoundingClientRect().height : L = 0, ul.value ? C = ul.value.getBoundingClientRect().height : C = 0, rl.value ? Y = rl.value.getBoundingClientRect().height : Y = 0, requestAnimationFrame(() => {
|
|
1125
|
-
ve.value = A.contentRect.height - o - L - F - C - Y - a, ae.value = A.contentBoxSize[0].inlineSize,
|
|
1146
|
+
ve.value = A.contentRect.height - o - L - F - C - Y - a, ae.value = A.contentBoxSize[0].inlineSize, bl.value = `0 0 ${ae.value < 0 ? 10 : ae.value} ${ve.value < 0 ? 10 : ve.value}`, Ha();
|
|
1126
1147
|
});
|
|
1127
1148
|
});
|
|
1128
|
-
We.value =
|
|
1149
|
+
We.value = w, Rl.value = e, w.observe(e);
|
|
1129
1150
|
} else
|
|
1130
|
-
ve.value = l.value.chart.height, ae.value = l.value.chart.width,
|
|
1151
|
+
ve.value = l.value.chart.height, ae.value = l.value.chart.width, m.value.dataLabels = l.value.chart.grid.labels.fontSize, m.value.yAxis = l.value.chart.grid.labels.axis.fontSize, m.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, m.value.plotLabels = l.value.chart.labels.fontSize, $e.value.plot = l.value.plot.radius, $e.value.line = l.value.line.radius, bl.value = `0 0 ${ae.value} ${ve.value}`;
|
|
1131
1152
|
}
|
|
1132
1153
|
return Ba(() => {
|
|
1133
|
-
Ra(),
|
|
1154
|
+
Ra(), Kl(), document.addEventListener("mousemove", (a) => {
|
|
1134
1155
|
rt.value = {
|
|
1135
1156
|
x: a.clientX,
|
|
1136
1157
|
y: a.clientY
|
|
1137
1158
|
};
|
|
1138
1159
|
}), document.addEventListener("scroll", xa);
|
|
1139
1160
|
}), Ya(() => {
|
|
1140
|
-
document.removeEventListener("scroll", xa), We.value && (We.value.unobserve(
|
|
1161
|
+
document.removeEventListener("scroll", xa), We.value && (We.value.unobserve(Rl.value), We.value.disconnect());
|
|
1141
1162
|
}), oo({
|
|
1142
1163
|
timeLabelsEls: ll,
|
|
1143
1164
|
timeLabels: J,
|
|
1144
|
-
slicer:
|
|
1165
|
+
slicer: y,
|
|
1145
1166
|
configRef: l,
|
|
1146
1167
|
rotationPath: ["chart", "grid", "labels", "xAxisLabels", "rotation"],
|
|
1147
1168
|
autoRotatePath: ["chart", "grid", "labels", "xAxisLabels", "autoRotate"],
|
|
1148
1169
|
isAutoSize: ct
|
|
1149
|
-
}),
|
|
1150
|
-
Array.isArray(a) && a.length > 0 && (_l.value = !1), Ve.value = Math.max(...
|
|
1170
|
+
}), Ml(() => g.dataset, (a) => {
|
|
1171
|
+
Array.isArray(a) && a.length > 0 && (_l.value = !1), Ve.value = Math.max(...pe.value.map((c) => Ye({
|
|
1151
1172
|
data: c.series,
|
|
1152
1173
|
threshold: l.value.downsample.threshold
|
|
1153
|
-
}).length)),
|
|
1174
|
+
}).length)), y.value = {
|
|
1154
1175
|
start: 0,
|
|
1155
1176
|
end: Ve.value
|
|
1156
|
-
},
|
|
1157
|
-
}, { deep: !0 }),
|
|
1158
|
-
|
|
1177
|
+
}, Bl.value += 1, Yl.value += 1;
|
|
1178
|
+
}, { deep: !0 }), Ml(() => g.config, (a) => {
|
|
1179
|
+
Xl.value || (l.value = El()), Ra(), ia.value += 1, ra.value += 1, f.value = {
|
|
1159
1180
|
dataLabels: {
|
|
1160
1181
|
show: !0
|
|
1161
1182
|
},
|
|
@@ -1164,7 +1185,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1164
1185
|
isStacked: l.value.chart.grid.labels.yAxis.stacked,
|
|
1165
1186
|
useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
|
|
1166
1187
|
};
|
|
1167
|
-
}, { deep: !0 }),
|
|
1188
|
+
}, { deep: !0 }), Ml(l, () => {
|
|
1168
1189
|
f.value = {
|
|
1169
1190
|
dataLabels: {
|
|
1170
1191
|
show: !0
|
|
@@ -1184,7 +1205,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1184
1205
|
toggleTable: Oa,
|
|
1185
1206
|
toggleLabels: Na,
|
|
1186
1207
|
toggleTooltip: Va,
|
|
1187
|
-
toggleAnnotator:
|
|
1208
|
+
toggleAnnotator: Zl,
|
|
1188
1209
|
toggleFullscreen: Pa
|
|
1189
1210
|
}), (a, c) => (u(), i("div", {
|
|
1190
1211
|
id: `vue-ui-xy_${U.value}`,
|
|
@@ -1192,16 +1213,16 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1192
1213
|
ref_key: "chart",
|
|
1193
1214
|
ref: je,
|
|
1194
1215
|
style: z(`background:${l.value.chart.backgroundColor}; color:${l.value.chart.color};width:100%;font-family:${l.value.chart.fontFamily};${l.value.responsive ? "height: 100%" : ""}`),
|
|
1195
|
-
onMouseenter: c[
|
|
1196
|
-
onMouseleave: c[
|
|
1216
|
+
onMouseenter: c[6] || (c[6] = () => ma(!0)),
|
|
1217
|
+
onMouseleave: c[7] || (c[7] = () => ma(!1))
|
|
1197
1218
|
}, [
|
|
1198
|
-
l.value.chart.userOptions.buttons.annotator &&
|
|
1219
|
+
l.value.chart.userOptions.buttons.annotator && ye.value ? (u(), Me(v(ot), {
|
|
1199
1220
|
key: 0,
|
|
1200
|
-
svgRef:
|
|
1221
|
+
svgRef: ye.value,
|
|
1201
1222
|
backgroundColor: l.value.chart.backgroundColor,
|
|
1202
1223
|
color: l.value.chart.color,
|
|
1203
1224
|
active: yl.value,
|
|
1204
|
-
onClose:
|
|
1225
|
+
onClose: Zl
|
|
1205
1226
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
1206
1227
|
$t.value ? (u(), i("div", {
|
|
1207
1228
|
key: 1,
|
|
@@ -1217,7 +1238,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1217
1238
|
class: "vue-ui-xy-title",
|
|
1218
1239
|
style: z(`font-family:${l.value.chart.fontFamily}`)
|
|
1219
1240
|
}, [
|
|
1220
|
-
(u(),
|
|
1241
|
+
(u(), Me(uo, {
|
|
1221
1242
|
key: `title_${ia.value}`,
|
|
1222
1243
|
config: {
|
|
1223
1244
|
title: {
|
|
@@ -1231,12 +1252,12 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1231
1252
|
}
|
|
1232
1253
|
}, null, 8, ["config"]))
|
|
1233
1254
|
], 4)) : d("", !0),
|
|
1234
|
-
l.value.chart.userOptions.show && (
|
|
1255
|
+
l.value.chart.userOptions.show && (Fl.value || pl.value) ? (u(), Me(v(ja), {
|
|
1235
1256
|
ref: "defails",
|
|
1236
1257
|
key: `user_options_${ua.value}`,
|
|
1237
1258
|
backgroundColor: l.value.chart.backgroundColor,
|
|
1238
1259
|
color: l.value.chart.color,
|
|
1239
|
-
isPrinting: v(
|
|
1260
|
+
isPrinting: v(Gl),
|
|
1240
1261
|
isImaging: v(ca),
|
|
1241
1262
|
uid: U.value,
|
|
1242
1263
|
hasTooltip: l.value.chart.userOptions.buttons.tooltip && l.value.chart.tooltip.show,
|
|
@@ -1245,7 +1266,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1245
1266
|
hasImg: l.value.chart.userOptions.buttons.img,
|
|
1246
1267
|
hasLabel: l.value.chart.userOptions.buttons.labels,
|
|
1247
1268
|
hasTable: l.value.chart.userOptions.buttons.table,
|
|
1248
|
-
hasStack:
|
|
1269
|
+
hasStack: Tl.dataset.length > 1 && l.value.chart.userOptions.buttons.stack,
|
|
1249
1270
|
hasFullscreen: l.value.chart.userOptions.buttons.fullscreen,
|
|
1250
1271
|
isStacked: f.value.isStacked,
|
|
1251
1272
|
isFullscreen: al.value,
|
|
@@ -1265,9 +1286,9 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1265
1286
|
onToggleLabels: Na,
|
|
1266
1287
|
onToggleStack: ya,
|
|
1267
1288
|
onToggleTooltip: Va,
|
|
1268
|
-
onToggleAnnotator:
|
|
1289
|
+
onToggleAnnotator: Zl,
|
|
1269
1290
|
style: z({
|
|
1270
|
-
visibility:
|
|
1291
|
+
visibility: Fl.value ? pl.value ? "visible" : "hidden" : "visible"
|
|
1271
1292
|
})
|
|
1272
1293
|
}, Rt({ _: 2 }, [
|
|
1273
1294
|
a.$slots.menuIcon ? {
|
|
@@ -1343,11 +1364,11 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1343
1364
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
1344
1365
|
(u(), i("svg", {
|
|
1345
1366
|
ref_key: "svgRef",
|
|
1346
|
-
ref:
|
|
1367
|
+
ref: ye,
|
|
1347
1368
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1348
1369
|
class: Ue([{ "vue-data-ui-fullscreen--on": al.value, "vue-data-ui-fulscreen--off": !al.value }, "vue-ui-xy-svg vue-data-ui-svg"]),
|
|
1349
1370
|
width: "100%",
|
|
1350
|
-
viewBox:
|
|
1371
|
+
viewBox: bl.value,
|
|
1351
1372
|
style: z({
|
|
1352
1373
|
background: "transparent",
|
|
1353
1374
|
color: l.value.chart.color,
|
|
@@ -1358,7 +1379,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1358
1379
|
"aria-live": "polite",
|
|
1359
1380
|
preserveAspectRatio: "xMidYMid"
|
|
1360
1381
|
}, [
|
|
1361
|
-
|
|
1382
|
+
x("g", {
|
|
1362
1383
|
ref_key: "G",
|
|
1363
1384
|
ref: ut,
|
|
1364
1385
|
class: "vue-data-ui-g"
|
|
@@ -1376,8 +1397,8 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1376
1397
|
}, [
|
|
1377
1398
|
q(a.$slots, "chart-background", {}, void 0, !0)
|
|
1378
1399
|
], 8, xo)) : d("", !0),
|
|
1379
|
-
b.value > 0 ? (u(), i("g",
|
|
1380
|
-
|
|
1400
|
+
b.value > 0 ? (u(), i("g", mo, [
|
|
1401
|
+
x("g", bo, [
|
|
1381
1402
|
l.value.chart.grid.labels.xAxis.showBaseline ? (u(), i("line", {
|
|
1382
1403
|
key: 0,
|
|
1383
1404
|
stroke: l.value.chart.grid.stroke,
|
|
@@ -1389,8 +1410,8 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1389
1410
|
"stroke-linecap": "round",
|
|
1390
1411
|
style: { animation: "none !important" }
|
|
1391
1412
|
}, null, 8, yo)) : d("", !0),
|
|
1392
|
-
f.value.useIndividualScale ? l.value.chart.grid.showHorizontalLines ? (u(!0), i(h, { key: 2 },
|
|
1393
|
-
e.id === M.value && e.yLabels.length ? (u(!0), i(h, { key: 0 },
|
|
1413
|
+
f.value.useIndividualScale ? l.value.chart.grid.showHorizontalLines ? (u(!0), i(h, { key: 2 }, k(dl.value, (e) => (u(), i("g", null, [
|
|
1414
|
+
e.id === M.value && e.yLabels.length ? (u(!0), i(h, { key: 0 }, k(e.yLabels, (s) => (u(), i("line", {
|
|
1394
1415
|
x1: n.value.left + G.value,
|
|
1395
1416
|
x2: n.value.right - G.value,
|
|
1396
1417
|
y1: v(R)(s.y),
|
|
@@ -1399,7 +1420,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1399
1420
|
"stroke-width": 0.5,
|
|
1400
1421
|
"stroke-linecap": "round",
|
|
1401
1422
|
style: { animation: "none !important" }
|
|
1402
|
-
}, null, 8, wo))), 256)) : e.yLabels.length ? (u(!0), i(h, { key: 1 },
|
|
1423
|
+
}, null, 8, wo))), 256)) : e.yLabels.length ? (u(!0), i(h, { key: 1 }, k(e.yLabels, (s) => (u(), i("line", {
|
|
1403
1424
|
x1: n.value.left + G.value,
|
|
1404
1425
|
x2: n.value.right - G.value,
|
|
1405
1426
|
y1: v(R)(s.y),
|
|
@@ -1422,7 +1443,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1422
1443
|
style: { animation: "none !important" }
|
|
1423
1444
|
}, null, 8, po)) : d("", !0),
|
|
1424
1445
|
l.value.chart.grid.showHorizontalLines ? (u(), i("g", ko, [
|
|
1425
|
-
(u(!0), i(h, null,
|
|
1446
|
+
(u(!0), i(h, null, k(Aa.value, (e) => (u(), i("line", {
|
|
1426
1447
|
x1: n.value.left + G.value,
|
|
1427
1448
|
x2: n.value.right,
|
|
1428
1449
|
y1: v(R)(e.y),
|
|
@@ -1435,7 +1456,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1435
1456
|
])) : d("", !0)
|
|
1436
1457
|
], 64)),
|
|
1437
1458
|
l.value.chart.grid.showVerticalLines ? (u(), i("g", $o, [
|
|
1438
|
-
|
|
1459
|
+
x("path", {
|
|
1439
1460
|
d: ft.value,
|
|
1440
1461
|
"stroke-width": 0.5,
|
|
1441
1462
|
stroke: l.value.chart.grid.stroke,
|
|
@@ -1444,7 +1465,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1444
1465
|
}, null, 8, Lo)
|
|
1445
1466
|
])) : d("", !0),
|
|
1446
1467
|
l.value.chart.grid.labels.xAxisLabels.show ? (u(), i("g", Ao, [
|
|
1447
|
-
|
|
1468
|
+
x("path", {
|
|
1448
1469
|
d: gt.value,
|
|
1449
1470
|
stroke: l.value.chart.grid.stroke,
|
|
1450
1471
|
"stroke-width": 1,
|
|
@@ -1453,50 +1474,50 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1453
1474
|
}, null, 8, Mo)
|
|
1454
1475
|
])) : d("", !0)
|
|
1455
1476
|
]),
|
|
1456
|
-
(u(!0), i(h, null,
|
|
1477
|
+
(u(!0), i(h, null, k(Pe.value, (e, s) => (u(), i("defs", {
|
|
1457
1478
|
key: `def_rect_${s}`
|
|
1458
1479
|
}, [
|
|
1459
|
-
|
|
1480
|
+
x("linearGradient", {
|
|
1460
1481
|
id: `rectGradient_pos_${s}_${U.value}`,
|
|
1461
1482
|
x2: "0%",
|
|
1462
1483
|
y2: "100%"
|
|
1463
1484
|
}, [
|
|
1464
|
-
|
|
1485
|
+
x("stop", {
|
|
1465
1486
|
offset: "0%",
|
|
1466
1487
|
"stop-color": e.color
|
|
1467
1488
|
}, null, 8, Co),
|
|
1468
|
-
|
|
1489
|
+
x("stop", {
|
|
1469
1490
|
offset: "62%",
|
|
1470
1491
|
"stop-color": `${v(Qe)(e.color, 0.02)}`
|
|
1471
1492
|
}, null, 8, Io),
|
|
1472
|
-
|
|
1493
|
+
x("stop", {
|
|
1473
1494
|
offset: "100%",
|
|
1474
1495
|
"stop-color": `${v(Qe)(e.color, 0.05)}`
|
|
1475
1496
|
}, null, 8, To)
|
|
1476
1497
|
], 8, zo),
|
|
1477
|
-
|
|
1498
|
+
x("linearGradient", {
|
|
1478
1499
|
id: `rectGradient_neg_${s}_${U.value}`,
|
|
1479
1500
|
x2: "0%",
|
|
1480
1501
|
y2: "100%"
|
|
1481
1502
|
}, [
|
|
1482
|
-
|
|
1503
|
+
x("stop", {
|
|
1483
1504
|
offset: "0%",
|
|
1484
1505
|
"stop-color": `${v(Qe)(e.color, 0.05)}`
|
|
1485
1506
|
}, null, 8, No),
|
|
1486
|
-
|
|
1507
|
+
x("stop", {
|
|
1487
1508
|
offset: "38%",
|
|
1488
1509
|
"stop-color": `${v(Qe)(e.color, 0.02)}`
|
|
1489
1510
|
}, null, 8, Vo),
|
|
1490
|
-
|
|
1511
|
+
x("stop", {
|
|
1491
1512
|
offset: "100%",
|
|
1492
1513
|
"stop-color": e.color
|
|
1493
1514
|
}, null, 8, Po)
|
|
1494
1515
|
], 8, Oo)
|
|
1495
1516
|
]))), 128)),
|
|
1496
|
-
(u(!0), i(h, null,
|
|
1517
|
+
(u(!0), i(h, null, k(Le.value, (e, s) => (u(), i("defs", {
|
|
1497
1518
|
key: `def_plot_${s}`
|
|
1498
1519
|
}, [
|
|
1499
|
-
|
|
1520
|
+
x("radialGradient", {
|
|
1500
1521
|
id: `plotGradient_${s}_${U.value}`,
|
|
1501
1522
|
cx: "50%",
|
|
1502
1523
|
cy: "50%",
|
|
@@ -1504,20 +1525,20 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1504
1525
|
fx: "50%",
|
|
1505
1526
|
fy: "50%"
|
|
1506
1527
|
}, [
|
|
1507
|
-
|
|
1528
|
+
x("stop", {
|
|
1508
1529
|
offset: "0%",
|
|
1509
1530
|
"stop-color": `${v(Qe)(e.color, 0.05)}`
|
|
1510
1531
|
}, null, 8, Ro),
|
|
1511
|
-
|
|
1532
|
+
x("stop", {
|
|
1512
1533
|
offset: "100%",
|
|
1513
1534
|
"stop-color": e.color
|
|
1514
1535
|
}, null, 8, Bo)
|
|
1515
1536
|
], 8, Ho)
|
|
1516
1537
|
]))), 128)),
|
|
1517
|
-
(u(!0), i(h, null,
|
|
1538
|
+
(u(!0), i(h, null, k(we.value, (e, s) => (u(), i("defs", {
|
|
1518
1539
|
key: `def_line_${s}`
|
|
1519
1540
|
}, [
|
|
1520
|
-
|
|
1541
|
+
x("radialGradient", {
|
|
1521
1542
|
id: `lineGradient_${s}_${U.value}`,
|
|
1522
1543
|
cx: "50%",
|
|
1523
1544
|
cy: "50%",
|
|
@@ -1525,105 +1546,105 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1525
1546
|
fx: "50%",
|
|
1526
1547
|
fy: "50%"
|
|
1527
1548
|
}, [
|
|
1528
|
-
|
|
1549
|
+
x("stop", {
|
|
1529
1550
|
offset: "0%",
|
|
1530
1551
|
"stop-color": `${v(Qe)(e.color, 0.05)}`
|
|
1531
1552
|
}, null, 8, Fo),
|
|
1532
|
-
|
|
1553
|
+
x("stop", {
|
|
1533
1554
|
offset: "100%",
|
|
1534
1555
|
"stop-color": e.color
|
|
1535
1556
|
}, null, 8, Eo)
|
|
1536
1557
|
], 8, Yo),
|
|
1537
|
-
|
|
1558
|
+
x("linearGradient", {
|
|
1538
1559
|
id: `areaGradient_${s}_${U.value}`,
|
|
1539
1560
|
x1: "0%",
|
|
1540
1561
|
x2: "100%",
|
|
1541
1562
|
y1: "0%",
|
|
1542
1563
|
y2: "0%"
|
|
1543
1564
|
}, [
|
|
1544
|
-
|
|
1565
|
+
x("stop", {
|
|
1545
1566
|
offset: "0%",
|
|
1546
|
-
"stop-color": `${v(
|
|
1567
|
+
"stop-color": `${v(Se)(v(Qe)(e.color, 0.03), l.value.line.area.opacity)}`
|
|
1547
1568
|
}, null, 8, Xo),
|
|
1548
|
-
|
|
1569
|
+
x("stop", {
|
|
1549
1570
|
offset: "100%",
|
|
1550
|
-
"stop-color": `${v(
|
|
1571
|
+
"stop-color": `${v(Se)(e.color, l.value.line.area.opacity)}`
|
|
1551
1572
|
}, null, 8, Go)
|
|
1552
1573
|
], 8, Wo)
|
|
1553
1574
|
]))), 128)),
|
|
1554
|
-
(u(!0), i(h, null,
|
|
1575
|
+
(u(!0), i(h, null, k(Lt.value, (e) => (u(), i("g", null, [
|
|
1555
1576
|
e.show ? (u(), i(h, { key: 0 }, [
|
|
1556
|
-
(u(!0), i(h, null,
|
|
1557
|
-
|
|
1577
|
+
(u(!0), i(h, null, k(e.span, (s, t) => (u(), i("g", null, [
|
|
1578
|
+
x("rect", {
|
|
1558
1579
|
style: z({
|
|
1559
1580
|
transition: "none",
|
|
1560
|
-
opacity: e.from + t >=
|
|
1581
|
+
opacity: e.from + t >= y.value.start && e.from + t <= y.value.end - 1 ? 1 : 0
|
|
1561
1582
|
}),
|
|
1562
|
-
x: n.value.left + n.value.width / b.value * (e.from + t -
|
|
1583
|
+
x: n.value.left + n.value.width / b.value * (e.from + t - y.value.start),
|
|
1563
1584
|
y: n.value.top,
|
|
1564
1585
|
height: n.value.height < 0 ? 10 : n.value.height,
|
|
1565
1586
|
width: n.value.width / b.value < 0 ? 1e-5 : n.value.width / b.value,
|
|
1566
|
-
fill: v(
|
|
1587
|
+
fill: v(Se)(e.color, e.opacity)
|
|
1567
1588
|
}, null, 12, Do)
|
|
1568
1589
|
]))), 256)),
|
|
1569
|
-
(u(!0), i(h, null,
|
|
1590
|
+
(u(!0), i(h, null, k(e.span, (s, t) => (u(), i("g", null, [
|
|
1570
1591
|
e.caption.text && t === 0 ? (u(), i("foreignObject", {
|
|
1571
1592
|
key: 0,
|
|
1572
|
-
x: n.value.left + n.value.width / b.value * (e.from + t -
|
|
1593
|
+
x: n.value.left + n.value.width / b.value * (e.from + t - y.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - n.value.width / b.value * e.span / 2),
|
|
1573
1594
|
y: n.value.top + e.caption.offsetY,
|
|
1574
1595
|
style: z({
|
|
1575
1596
|
overflow: "visible",
|
|
1576
|
-
opacity: e.to >=
|
|
1597
|
+
opacity: e.to >= y.value.start && e.from < y.value.end ? 1 : 0
|
|
1577
1598
|
}),
|
|
1578
1599
|
height: "1",
|
|
1579
1600
|
width: e.caption.width === "auto" ? n.value.width / b.value * e.span : e.caption.width
|
|
1580
1601
|
}, [
|
|
1581
|
-
|
|
1602
|
+
x("div", {
|
|
1582
1603
|
style: z(`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"}`)
|
|
1583
1604
|
}, le(e.caption.text), 5)
|
|
1584
1605
|
], 12, qo)) : d("", !0)
|
|
1585
1606
|
]))), 256))
|
|
1586
1607
|
], 64)) : d("", !0)
|
|
1587
1608
|
]))), 256)),
|
|
1588
|
-
|
|
1589
|
-
(u(!0), i(h, null,
|
|
1609
|
+
Ul.value ? (u(), i("g", Uo, [
|
|
1610
|
+
(u(!0), i(h, null, k(b.value, (e, s) => (u(), i("g", {
|
|
1590
1611
|
key: `tooltip_trap_highlighter_${s}`
|
|
1591
1612
|
}, [
|
|
1592
|
-
|
|
1613
|
+
x("rect", {
|
|
1593
1614
|
x: n.value.left + n.value.width / b.value * s,
|
|
1594
1615
|
y: n.value.top,
|
|
1595
1616
|
height: n.value.height < 0 ? 10 : n.value.height,
|
|
1596
1617
|
width: n.value.width / b.value < 0 ? 1e-5 : n.value.width / b.value,
|
|
1597
|
-
fill: [O.value,
|
|
1618
|
+
fill: [O.value, p.value, Xe.value].includes(s) ? v(Se)(l.value.chart.highlighter.color, l.value.chart.highlighter.opacity) : "transparent"
|
|
1598
1619
|
}, null, 8, Zo)
|
|
1599
1620
|
]))), 128))
|
|
1600
1621
|
])) : d("", !0),
|
|
1601
|
-
Pe.value.length ? (u(!0), i(h, { key: 1 },
|
|
1622
|
+
Pe.value.length ? (u(!0), i(h, { key: 1 }, k(Pe.value, (e, s) => (u(), i("g", {
|
|
1602
1623
|
key: `serie_bar_${s}`,
|
|
1603
1624
|
class: Ue(`serie_bar_${s}`),
|
|
1604
1625
|
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1605
1626
|
}, [
|
|
1606
|
-
(u(!0), i(h, null,
|
|
1627
|
+
(u(!0), i(h, null, k(e.plots, (t, r) => (u(), i("g", {
|
|
1607
1628
|
key: `bar_plot_${s}_${r}`
|
|
1608
1629
|
}, [
|
|
1609
|
-
|
|
1630
|
+
ge(t.value) ? (u(), i("rect", {
|
|
1610
1631
|
key: 0,
|
|
1611
1632
|
x: Ll(t),
|
|
1612
1633
|
y: f.value.useIndividualScale ? Sa(t) : wa(t),
|
|
1613
1634
|
height: f.value.useIndividualScale ? Math.abs(_a(t)) : Math.abs(ka(t)),
|
|
1614
|
-
width:
|
|
1635
|
+
width: _e() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Oe.value) < 0 ? 1e-5 : _e() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Oe.value),
|
|
1615
1636
|
rx: l.value.bar.borderRadius,
|
|
1616
1637
|
fill: l.value.bar.useGradient ? t.value >= 0 ? `url(#rectGradient_pos_${s}_${U.value})` : `url(#rectGradient_neg_${s}_${U.value})` : e.color,
|
|
1617
1638
|
stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
|
|
1618
1639
|
"stroke-width": l.value.bar.border.strokeWidth,
|
|
1619
|
-
style: z(`${v(
|
|
1640
|
+
style: z(`${v(Xl) ? "transition:none !important" : ""}`)
|
|
1620
1641
|
}, null, 12, Jo)) : d("", !0),
|
|
1621
|
-
|
|
1642
|
+
ge(t.value) && a.$slots.pattern ? (u(), i("rect", {
|
|
1622
1643
|
key: 1,
|
|
1623
1644
|
x: Ll(t),
|
|
1624
1645
|
y: f.value.useIndividualScale ? Sa(t) : wa(t),
|
|
1625
1646
|
height: f.value.useIndividualScale ? Math.abs(_a(t)) : Math.abs(ka(t)),
|
|
1626
|
-
width:
|
|
1647
|
+
width: _e() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Oe.value) < 0 ? 1e-5 : _e() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Oe.value),
|
|
1627
1648
|
rx: l.value.bar.borderRadius,
|
|
1628
1649
|
fill: `url(#pattern_${U.value}_${e.slotAbsoluteIndex})`,
|
|
1629
1650
|
stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
|
|
@@ -1633,7 +1654,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1633
1654
|
key: 2,
|
|
1634
1655
|
style: { overflow: "visible" },
|
|
1635
1656
|
height: "12",
|
|
1636
|
-
width: (
|
|
1657
|
+
width: (_e() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Oe.value) < 0 ? 1e-5 : _e() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Oe.value) / 2) + l.value.chart.comments.width,
|
|
1637
1658
|
x: Ll(t) - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
|
|
1638
1659
|
y: v(T)(t.y) + l.value.chart.comments.offsetY + 6
|
|
1639
1660
|
}, [
|
|
@@ -1643,8 +1664,8 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1643
1664
|
], 8, Qo)) : d("", !0)
|
|
1644
1665
|
]))), 128)),
|
|
1645
1666
|
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(X)(e.plots).trend) ? (u(), i("g", jo, [
|
|
1646
|
-
|
|
1647
|
-
|
|
1667
|
+
x("defs", null, [
|
|
1668
|
+
x("marker", {
|
|
1648
1669
|
id: `bar_arrow_${s}`,
|
|
1649
1670
|
markerWidth: 7,
|
|
1650
1671
|
markerHeight: 7,
|
|
@@ -1652,7 +1673,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1652
1673
|
refY: 7 / 2,
|
|
1653
1674
|
orient: "auto"
|
|
1654
1675
|
}, [
|
|
1655
|
-
|
|
1676
|
+
x("polygon", {
|
|
1656
1677
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1657
1678
|
fill: e.color
|
|
1658
1679
|
}, null, 8, ls)
|
|
@@ -1660,8 +1681,8 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1660
1681
|
]),
|
|
1661
1682
|
e.plots.length > 1 ? (u(), i("line", {
|
|
1662
1683
|
key: 0,
|
|
1663
|
-
x1: v(X)(e.plots).x1 +
|
|
1664
|
-
x2: v(X)(e.plots).x2 +
|
|
1684
|
+
x1: v(X)(e.plots).x1 + _e(),
|
|
1685
|
+
x2: v(X)(e.plots).x2 + _e(),
|
|
1665
1686
|
y1: v(R)(v(X)(e.plots).y1),
|
|
1666
1687
|
y2: v(R)(v(X)(e.plots).y2),
|
|
1667
1688
|
"stroke-width": 1,
|
|
@@ -1672,11 +1693,11 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1672
1693
|
e.plots.length > 1 ? (u(), i("text", {
|
|
1673
1694
|
key: 1,
|
|
1674
1695
|
"text-anchor": "middle",
|
|
1675
|
-
x: v(X)(e.plots).x2 +
|
|
1696
|
+
x: v(X)(e.plots).x2 + _e(),
|
|
1676
1697
|
y: v(X)(e.plots).y2 - 6,
|
|
1677
|
-
"font-size":
|
|
1698
|
+
"font-size": m.value.plotLabels,
|
|
1678
1699
|
fill: e.color
|
|
1679
|
-
}, le(v(
|
|
1700
|
+
}, le(v(me)({
|
|
1680
1701
|
v: v(X)(e.plots).trend * 100,
|
|
1681
1702
|
s: "%",
|
|
1682
1703
|
r: 2
|
|
@@ -1694,10 +1715,10 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1694
1715
|
"stroke-linecap": "round",
|
|
1695
1716
|
style: { animation: "none !important" }
|
|
1696
1717
|
}, null, 8, os)) : d("", !0),
|
|
1697
|
-
l.value.chart.highlighter.useLine && (![null, void 0].includes(
|
|
1698
|
-
|
|
1699
|
-
x1: n.value.left + n.value.width / b.value * ((
|
|
1700
|
-
x2: n.value.left + n.value.width / b.value * ((
|
|
1718
|
+
l.value.chart.highlighter.useLine && (![null, void 0].includes(p.value) || ![null, void 0].includes(O.value)) ? (u(), i("g", ss, [
|
|
1719
|
+
x("line", {
|
|
1720
|
+
x1: n.value.left + n.value.width / b.value * ((p.value !== null ? p.value : 0) || (O.value !== null ? O.value : 0)) + n.value.width / b.value / 2,
|
|
1721
|
+
x2: n.value.left + n.value.width / b.value * ((p.value !== null ? p.value : 0) || (O.value !== null ? O.value : 0)) + n.value.width / b.value / 2,
|
|
1701
1722
|
y1: v(R)(n.value.top),
|
|
1702
1723
|
y2: v(R)(n.value.bottom),
|
|
1703
1724
|
stroke: l.value.chart.highlighter.color,
|
|
@@ -1724,11 +1745,11 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1724
1745
|
l.value.chart.grid.labels.show ? (u(), i("g", {
|
|
1725
1746
|
key: 5,
|
|
1726
1747
|
ref_key: "scaleLabels",
|
|
1727
|
-
ref:
|
|
1748
|
+
ref: Hl
|
|
1728
1749
|
}, [
|
|
1729
1750
|
f.value.useIndividualScale ? (u(), i(h, { key: 0 }, [
|
|
1730
|
-
(u(!0), i(h, null,
|
|
1731
|
-
|
|
1751
|
+
(u(!0), i(h, null, k(dl.value, (e) => (u(), i("g", null, [
|
|
1752
|
+
x("line", {
|
|
1732
1753
|
x1: e.x + G.value - n.value.individualOffsetX,
|
|
1733
1754
|
x2: e.x + G.value - n.value.individualOffsetX,
|
|
1734
1755
|
y1: f.value.isStacked ? v(R)(n.value.bottom - e.yOffset - e.individualHeight) : v(R)(n.value.top),
|
|
@@ -1739,17 +1760,17 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1739
1760
|
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
1740
1761
|
}, null, 12, is)
|
|
1741
1762
|
]))), 256)),
|
|
1742
|
-
(u(!0), i(h, null,
|
|
1763
|
+
(u(!0), i(h, null, k(dl.value, (e) => (u(), i("g", {
|
|
1743
1764
|
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1744
1765
|
}, [
|
|
1745
|
-
|
|
1766
|
+
x("text", {
|
|
1746
1767
|
fill: e.color,
|
|
1747
|
-
"font-size":
|
|
1768
|
+
"font-size": m.value.dataLabels * 0.8,
|
|
1748
1769
|
"text-anchor": "middle",
|
|
1749
|
-
transform: `translate(${e.x -
|
|
1770
|
+
transform: `translate(${e.x - m.value.dataLabels * 0.8 / 2 + G.value}, ${f.value.isStacked ? n.value.bottom - e.yOffset - e.individualHeight / 2 : n.value.top + n.value.height / 2}) rotate(-90)`
|
|
1750
1771
|
}, le(e.name) + " " + le(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
|
|
1751
1772
|
${e.scaleLabel}` : ""), 9, ns),
|
|
1752
|
-
(u(!0), i(h, null,
|
|
1773
|
+
(u(!0), i(h, null, k(e.yLabels, (s, t) => (u(), i(h, null, [
|
|
1753
1774
|
l.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), i("line", {
|
|
1754
1775
|
key: 0,
|
|
1755
1776
|
x1: e.x + 3 + G.value - l.value.chart.grid.labels.yAxis.crosshairSize - n.value.individualOffsetX,
|
|
@@ -1762,16 +1783,16 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1762
1783
|
style: { animation: "none !important" }
|
|
1763
1784
|
}, null, 8, cs)) : d("", !0)
|
|
1764
1785
|
], 64))), 256)),
|
|
1765
|
-
(u(!0), i(h, null,
|
|
1786
|
+
(u(!0), i(h, null, k(e.yLabels, (s, t) => (u(), i("text", {
|
|
1766
1787
|
x: e.x - 5 + G.value - n.value.individualOffsetX,
|
|
1767
|
-
y: v(R)(s.y) +
|
|
1768
|
-
"font-size":
|
|
1788
|
+
y: v(R)(s.y) + m.value.dataLabels / 3,
|
|
1789
|
+
"font-size": m.value.dataLabels,
|
|
1769
1790
|
"text-anchor": "end",
|
|
1770
1791
|
fill: e.color
|
|
1771
1792
|
}, le(v(re)(
|
|
1772
1793
|
l.value.chart.grid.labels.yAxis.formatter,
|
|
1773
1794
|
s.value,
|
|
1774
|
-
v(
|
|
1795
|
+
v(me)({
|
|
1775
1796
|
p: s.prefix,
|
|
1776
1797
|
v: s.value,
|
|
1777
1798
|
s: s.suffix,
|
|
@@ -1780,10 +1801,10 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1780
1801
|
{ datapoint: s.datapoint, seriesIndex: t }
|
|
1781
1802
|
)), 9, vs))), 256))
|
|
1782
1803
|
], 4))), 256))
|
|
1783
|
-
], 64)) : (u(!0), i(h, { key: 1 },
|
|
1804
|
+
], 64)) : (u(!0), i(h, { key: 1 }, k(Aa.value, (e, s) => (u(), i("g", {
|
|
1784
1805
|
key: `yLabel_${s}`
|
|
1785
1806
|
}, [
|
|
1786
|
-
|
|
1807
|
+
ge(e) && e.value >= ke.value.min && e.value <= ke.value.max && l.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), i("line", {
|
|
1787
1808
|
key: 0,
|
|
1788
1809
|
x1: n.value.left,
|
|
1789
1810
|
x2: n.value.left - l.value.chart.grid.labels.yAxis.crosshairSize,
|
|
@@ -1794,17 +1815,17 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1794
1815
|
"stroke-linecap": "round",
|
|
1795
1816
|
style: { animation: "none !important" }
|
|
1796
1817
|
}, null, 8, ds)) : d("", !0),
|
|
1797
|
-
e.value >=
|
|
1818
|
+
e.value >= ke.value.min && e.value <= ke.value.max ? (u(), i("text", {
|
|
1798
1819
|
key: 1,
|
|
1799
1820
|
x: n.value.scaleLabelX - l.value.chart.grid.labels.yAxis.crosshairSize,
|
|
1800
|
-
y: v(T)(e.y +
|
|
1801
|
-
"font-size":
|
|
1821
|
+
y: v(T)(e.y + m.value.dataLabels / 3),
|
|
1822
|
+
"font-size": m.value.dataLabels,
|
|
1802
1823
|
"text-anchor": "end",
|
|
1803
1824
|
fill: l.value.chart.grid.labels.color
|
|
1804
|
-
}, le(
|
|
1825
|
+
}, le(ge(e.value) ? v(re)(
|
|
1805
1826
|
l.value.chart.grid.labels.yAxis.formatter,
|
|
1806
1827
|
e.value,
|
|
1807
|
-
v(
|
|
1828
|
+
v(me)({
|
|
1808
1829
|
p: e.prefix,
|
|
1809
1830
|
v: e.value,
|
|
1810
1831
|
s: e.suffix,
|
|
@@ -1813,20 +1834,20 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1813
1834
|
) : ""), 9, hs)) : d("", !0)
|
|
1814
1835
|
]))), 128))
|
|
1815
1836
|
], 512)) : d("", !0),
|
|
1816
|
-
(u(!0), i(h, null,
|
|
1837
|
+
(u(!0), i(h, null, k(Le.value, (e, s) => (u(), i("g", {
|
|
1817
1838
|
key: `serie_plot_${s}`,
|
|
1818
1839
|
class: Ue(`serie_plot_${s}`),
|
|
1819
1840
|
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1820
1841
|
}, [
|
|
1821
|
-
(u(!0), i(h, null,
|
|
1842
|
+
(u(!0), i(h, null, k(e.plots, (t, r) => (u(), i("g", {
|
|
1822
1843
|
key: `circle_plot_${s}_${r}`
|
|
1823
1844
|
}, [
|
|
1824
|
-
t &&
|
|
1845
|
+
t && ge(t.value) ? (u(), Me(Il, {
|
|
1825
1846
|
key: 0,
|
|
1826
1847
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
1827
1848
|
color: l.value.plot.useGradient ? `url(#plotGradient_${s}_${U.value})` : l.value.plot.dot.useSerieColor ? e.color : l.value.plot.dot.fill,
|
|
1828
1849
|
plot: { x: v(T)(t.x), y: v(T)(t.y) },
|
|
1829
|
-
radius:
|
|
1850
|
+
radius: p.value !== null && p.value === r || O.value !== null && O.value === r ? ($e.value.plot || 6) * 1.5 : $e.value.plot || 6,
|
|
1830
1851
|
stroke: l.value.plot.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
|
|
1831
1852
|
strokeWidth: l.value.plot.dot.strokeWidth
|
|
1832
1853
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : d("", !0),
|
|
@@ -1838,7 +1859,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1838
1859
|
x: t.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
|
|
1839
1860
|
y: t.y + l.value.chart.comments.offsetY + 6
|
|
1840
1861
|
}, [
|
|
1841
|
-
|
|
1862
|
+
x("div", gs, [
|
|
1842
1863
|
q(a.$slots, "plot-comment", {
|
|
1843
1864
|
plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: r }
|
|
1844
1865
|
}, void 0, !0)
|
|
@@ -1846,8 +1867,8 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1846
1867
|
], 8, fs)) : d("", !0)
|
|
1847
1868
|
]))), 128)),
|
|
1848
1869
|
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(X)(e.plots).trend) ? (u(), i("g", xs, [
|
|
1849
|
-
|
|
1850
|
-
|
|
1870
|
+
x("defs", null, [
|
|
1871
|
+
x("marker", {
|
|
1851
1872
|
id: `plot_arrow_${s}`,
|
|
1852
1873
|
markerWidth: 7,
|
|
1853
1874
|
markerHeight: 7,
|
|
@@ -1855,11 +1876,11 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1855
1876
|
refY: 7 / 2,
|
|
1856
1877
|
orient: "auto"
|
|
1857
1878
|
}, [
|
|
1858
|
-
|
|
1879
|
+
x("polygon", {
|
|
1859
1880
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1860
1881
|
fill: e.color
|
|
1861
|
-
}, null, 8,
|
|
1862
|
-
], 8,
|
|
1882
|
+
}, null, 8, bs)
|
|
1883
|
+
], 8, ms)
|
|
1863
1884
|
]),
|
|
1864
1885
|
e.plots.length > 1 ? (u(), i("line", {
|
|
1865
1886
|
key: 0,
|
|
@@ -1877,16 +1898,16 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1877
1898
|
"text-anchor": "middle",
|
|
1878
1899
|
x: v(X)(e.plots).x2,
|
|
1879
1900
|
y: v(X)(e.plots).y2 - 6,
|
|
1880
|
-
"font-size":
|
|
1901
|
+
"font-size": m.value.plotLabels,
|
|
1881
1902
|
fill: e.color
|
|
1882
|
-
}, le(v(
|
|
1903
|
+
}, le(v(me)({
|
|
1883
1904
|
v: v(X)(e.plots).trend * 100,
|
|
1884
1905
|
s: "%",
|
|
1885
1906
|
r: 2
|
|
1886
1907
|
})), 9, ps)) : d("", !0)
|
|
1887
1908
|
])) : d("", !0)
|
|
1888
1909
|
], 6))), 128)),
|
|
1889
|
-
(u(!0), i(h, null,
|
|
1910
|
+
(u(!0), i(h, null, k(we.value, (e, s) => (u(), i("g", {
|
|
1890
1911
|
key: `serie_line_${s}`,
|
|
1891
1912
|
class: Ue(`serie_line_${s}`),
|
|
1892
1913
|
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
@@ -1910,32 +1931,32 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1910
1931
|
}, null, 8, _s)) : d("", !0)
|
|
1911
1932
|
], 6))), 128)),
|
|
1912
1933
|
a.$slots.pattern ? (u(), i("defs", ws, [
|
|
1913
|
-
(u(!0), i(h, null,
|
|
1934
|
+
(u(!0), i(h, null, k(Ie.value, (e, s) => q(a.$slots, "pattern", Ql({
|
|
1914
1935
|
key: `serie_pattern_slot_${s}`
|
|
1915
1936
|
}, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${U.value}_${s}` }), void 0, !0)), 128))
|
|
1916
1937
|
])) : d("", !0),
|
|
1917
|
-
(u(!0), i(h, null,
|
|
1938
|
+
(u(!0), i(h, null, k(we.value, (e, s) => (u(), i("g", {
|
|
1918
1939
|
key: `serie_line_${s}`,
|
|
1919
1940
|
class: Ue(`serie_line_${s}`),
|
|
1920
1941
|
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1921
1942
|
}, [
|
|
1922
1943
|
e.useArea && e.plots.length > 1 ? (u(), i("g", Ss, [
|
|
1923
|
-
e.smooth ? (u(!0), i(h, { key: 0 },
|
|
1944
|
+
e.smooth ? (u(!0), i(h, { key: 0 }, k(e.curveAreas, (t, r) => (u(), i(h, { key: r }, [
|
|
1924
1945
|
t ? (u(), i("path", {
|
|
1925
1946
|
key: 0,
|
|
1926
1947
|
d: t,
|
|
1927
|
-
fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${U.value})` : v(
|
|
1948
|
+
fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${U.value})` : v(Se)(e.color, l.value.line.area.opacity)
|
|
1928
1949
|
}, null, 8, $s)) : d("", !0),
|
|
1929
1950
|
a.$slots.pattern && t ? (u(), i("path", {
|
|
1930
1951
|
key: 1,
|
|
1931
1952
|
d: t,
|
|
1932
1953
|
fill: `url(#pattern_${U.value}_${e.slotAbsoluteIndex})`
|
|
1933
1954
|
}, null, 8, Ls)) : d("", !0)
|
|
1934
|
-
], 64))), 128)) : (u(!0), i(h, { key: 1 },
|
|
1955
|
+
], 64))), 128)) : (u(!0), i(h, { key: 1 }, k(e.area.split(";"), (t, r) => (u(), i(h, { key: r }, [
|
|
1935
1956
|
t ? (u(), i("path", {
|
|
1936
1957
|
key: 0,
|
|
1937
1958
|
d: `M${t}Z`,
|
|
1938
|
-
fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${U.value})` : v(
|
|
1959
|
+
fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${U.value})` : v(Se)(e.color, l.value.line.area.opacity)
|
|
1939
1960
|
}, null, 8, As)) : d("", !0),
|
|
1940
1961
|
a.$slots.pattern && t ? (u(), i("path", {
|
|
1941
1962
|
key: 1,
|
|
@@ -1962,15 +1983,15 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1962
1983
|
"stroke-linecap": "round",
|
|
1963
1984
|
"stroke-linejoin": "round"
|
|
1964
1985
|
}, null, 8, Cs)) : d("", !0),
|
|
1965
|
-
(u(!0), i(h, null,
|
|
1986
|
+
(u(!0), i(h, null, k(e.plots, (t, r) => (u(), i(h, {
|
|
1966
1987
|
key: `circle_line_${s}_${r}`
|
|
1967
1988
|
}, [
|
|
1968
|
-
!La.value.linePlot && t &&
|
|
1989
|
+
!La.value.linePlot && t && ge(t.value) || La.value.linePlot && t && ge(t.value) && (p.value !== null && p.value === r || O.value !== null && O.value === r) ? (u(), Me(Il, {
|
|
1969
1990
|
key: 0,
|
|
1970
1991
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
1971
1992
|
color: l.value.line.useGradient ? `url(#lineGradient_${s}_${U.value})` : l.value.line.dot.useSerieColor ? e.color : l.value.line.dot.fill,
|
|
1972
1993
|
plot: { x: v(T)(t.x), y: v(T)(t.y) },
|
|
1973
|
-
radius:
|
|
1994
|
+
radius: p.value !== null && p.value === r || O.value !== null && O.value === r ? ($e.value.line || 6) * 1.5 : $e.value.line || 6,
|
|
1974
1995
|
stroke: l.value.line.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
|
|
1975
1996
|
strokeWidth: l.value.line.dot.strokeWidth
|
|
1976
1997
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : d("", !0),
|
|
@@ -1982,7 +2003,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1982
2003
|
x: t.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
|
|
1983
2004
|
y: t.y + l.value.chart.comments.offsetY + 6
|
|
1984
2005
|
}, [
|
|
1985
|
-
|
|
2006
|
+
x("div", Ts, [
|
|
1986
2007
|
q(a.$slots, "plot-comment", {
|
|
1987
2008
|
plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: r }
|
|
1988
2009
|
}, void 0, !0)
|
|
@@ -1990,8 +2011,8 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1990
2011
|
], 8, Is)) : d("", !0)
|
|
1991
2012
|
], 64))), 128)),
|
|
1992
2013
|
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(X)(e.plots).trend) ? (u(), i("g", Os, [
|
|
1993
|
-
|
|
1994
|
-
|
|
2014
|
+
x("defs", null, [
|
|
2015
|
+
x("marker", {
|
|
1995
2016
|
id: `line_arrow_${s}`,
|
|
1996
2017
|
markerWidth: 7,
|
|
1997
2018
|
markerHeight: 7,
|
|
@@ -1999,7 +2020,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
1999
2020
|
refY: 7 / 2,
|
|
2000
2021
|
orient: "auto"
|
|
2001
2022
|
}, [
|
|
2002
|
-
|
|
2023
|
+
x("polygon", {
|
|
2003
2024
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
2004
2025
|
fill: e.color
|
|
2005
2026
|
}, null, 8, Vs)
|
|
@@ -2021,9 +2042,9 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2021
2042
|
"text-anchor": "middle",
|
|
2022
2043
|
x: v(X)(e.plots).x2,
|
|
2023
2044
|
y: v(X)(e.plots).y2 - 6,
|
|
2024
|
-
"font-size":
|
|
2045
|
+
"font-size": m.value.plotLabels,
|
|
2025
2046
|
fill: e.color
|
|
2026
|
-
}, le(v(
|
|
2047
|
+
}, le(v(me)({
|
|
2027
2048
|
v: v(X)(e.plots).trend * 100,
|
|
2028
2049
|
s: "%",
|
|
2029
2050
|
r: 2
|
|
@@ -2031,24 +2052,24 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2031
2052
|
])) : d("", !0)
|
|
2032
2053
|
], 6))), 128)),
|
|
2033
2054
|
(l.value.bar.labels.show || l.value.bar.serieName.show) && f.value.dataLabels.show ? (u(), i("g", Rs, [
|
|
2034
|
-
(u(!0), i(h, null,
|
|
2055
|
+
(u(!0), i(h, null, k(Pe.value, (e, s) => (u(), i(h, {
|
|
2035
2056
|
key: `xLabel_bar_${s}`
|
|
2036
2057
|
}, [
|
|
2037
|
-
(u(!0), i(h, null,
|
|
2058
|
+
(u(!0), i(h, null, k(e.plots, (t, r) => (u(), i(h, {
|
|
2038
2059
|
key: `xLabel_bar_${s}_${r}`
|
|
2039
2060
|
}, [
|
|
2040
|
-
t && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 ||
|
|
2061
|
+
t && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || p.value !== null && p.value === r || O.value !== null && O.value === r) && l.value.bar.labels.show ? (u(), i("text", {
|
|
2041
2062
|
key: 0,
|
|
2042
|
-
x: f.value.useIndividualScale && f.value.isStacked ? t.x + Z.value.line / 2 : Ll(t) +
|
|
2063
|
+
x: f.value.useIndividualScale && f.value.isStacked ? t.x + Z.value.line / 2 : Ll(t) + _e() / 2 - Oe.value / 2,
|
|
2043
2064
|
y: v(T)(t.y) + (t.value >= 0 ? l.value.bar.labels.offsetY : -l.value.bar.labels.offsetY * 3),
|
|
2044
2065
|
"text-anchor": "middle",
|
|
2045
|
-
"font-size":
|
|
2066
|
+
"font-size": m.value.plotLabels,
|
|
2046
2067
|
fill: l.value.bar.labels.color,
|
|
2047
2068
|
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2048
|
-
}, le(
|
|
2069
|
+
}, le(ge(t.value) ? v(re)(
|
|
2049
2070
|
l.value.bar.labels.formatter,
|
|
2050
2071
|
t.value,
|
|
2051
|
-
v(
|
|
2072
|
+
v(me)({
|
|
2052
2073
|
p: e.prefix || l.value.chart.labels.prefix,
|
|
2053
2074
|
v: t.value,
|
|
2054
2075
|
s: e.suffix || l.value.chart.labels.suffix,
|
|
@@ -2061,10 +2082,10 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2061
2082
|
) : ""), 13, Bs)) : d("", !0),
|
|
2062
2083
|
t && l.value.bar.serieName.show ? (u(), i("text", {
|
|
2063
2084
|
key: 1,
|
|
2064
|
-
x: f.value.useIndividualScale && f.value.isStacked ? t.x + Z.value.line / 2 : t.x +
|
|
2085
|
+
x: f.value.useIndividualScale && f.value.isStacked ? t.x + Z.value.line / 2 : t.x + _e() * 1.1,
|
|
2065
2086
|
y: t.y + (t.value > 0 ? l.value.bar.serieName.offsetY : -l.value.bar.serieName.offsetY * 3),
|
|
2066
2087
|
"text-anchor": "middle",
|
|
2067
|
-
"font-size":
|
|
2088
|
+
"font-size": m.value.plotLabels,
|
|
2068
2089
|
fill: l.value.bar.serieName.useSerieColor ? e.color : l.value.bar.serieName.color,
|
|
2069
2090
|
"font-weight": l.value.bar.serieName.bold ? "bold" : "normal",
|
|
2070
2091
|
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
@@ -2076,24 +2097,24 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2076
2097
|
], 64))), 128))
|
|
2077
2098
|
])) : d("", !0),
|
|
2078
2099
|
l.value.plot.labels.show && f.value.dataLabels.show ? (u(), i("g", Fs, [
|
|
2079
|
-
(u(!0), i(h, null,
|
|
2100
|
+
(u(!0), i(h, null, k(Le.value, (e, s) => (u(), i(h, {
|
|
2080
2101
|
key: `xLabel_plot_${s}`
|
|
2081
2102
|
}, [
|
|
2082
|
-
(u(!0), i(h, null,
|
|
2103
|
+
(u(!0), i(h, null, k(e.plots, (t, r) => (u(), i(h, {
|
|
2083
2104
|
key: `xLabel_plot_${s}_${r}`
|
|
2084
2105
|
}, [
|
|
2085
|
-
t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 ||
|
|
2106
|
+
t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || p.value !== null && p.value === r || O.value !== null && O.value === r ? (u(), i("text", {
|
|
2086
2107
|
key: 0,
|
|
2087
2108
|
x: t.x,
|
|
2088
2109
|
y: t.y + l.value.plot.labels.offsetY,
|
|
2089
2110
|
"text-anchor": "middle",
|
|
2090
|
-
"font-size":
|
|
2111
|
+
"font-size": m.value.plotLabels,
|
|
2091
2112
|
fill: l.value.plot.labels.color,
|
|
2092
2113
|
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2093
|
-
}, le(
|
|
2114
|
+
}, le(ge(t.value) ? v(re)(
|
|
2094
2115
|
l.value.plot.labels.formatter,
|
|
2095
2116
|
t.value,
|
|
2096
|
-
v(
|
|
2117
|
+
v(me)({
|
|
2097
2118
|
p: e.prefix || l.value.chart.labels.prefix,
|
|
2098
2119
|
v: t.value,
|
|
2099
2120
|
s: e.suffix || l.value.chart.labels.suffix,
|
|
@@ -2107,14 +2128,14 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2107
2128
|
], 64))), 128))
|
|
2108
2129
|
], 64))), 128))
|
|
2109
2130
|
])) : (u(), i("g", Ws, [
|
|
2110
|
-
(u(!0), i(h, null,
|
|
2131
|
+
(u(!0), i(h, null, k(Le.value, (e, s) => (u(), i(h, {
|
|
2111
2132
|
key: `xLabel_plot_${s}`
|
|
2112
2133
|
}, [
|
|
2113
|
-
(u(!0), i(h, null,
|
|
2134
|
+
(u(!0), i(h, null, k(e.plots, (t, r) => (u(), i(h, {
|
|
2114
2135
|
key: `xLabel_plot_${s}_${r}`
|
|
2115
2136
|
}, [
|
|
2116
2137
|
l.value.plot.tag.followValue ? (u(), i(h, { key: 1 }, [
|
|
2117
|
-
[O.value,
|
|
2138
|
+
[O.value, p.value, Xe.value].includes(r) && e.useTag ? (u(), i("line", {
|
|
2118
2139
|
key: 0,
|
|
2119
2140
|
class: "vue-ui-xy-tag-plot",
|
|
2120
2141
|
x1: n.value.left,
|
|
@@ -2135,8 +2156,8 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2135
2156
|
width: "150",
|
|
2136
2157
|
style: z(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2137
2158
|
}, [
|
|
2138
|
-
|
|
2139
|
-
style: z(`padding: 3px; background:${v(
|
|
2159
|
+
x("div", {
|
|
2160
|
+
style: z(`padding: 3px; background:${v(Se)(e.color, 80)};color:${v(Fe)(e.color)};width:fit-content;font-size:${m.value.plotLabels}px;border-radius: 2px;`),
|
|
2140
2161
|
innerHTML: v(re)(
|
|
2141
2162
|
l.value.plot.tag.formatter,
|
|
2142
2163
|
t.value,
|
|
@@ -2151,14 +2172,14 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2151
2172
|
], 12, Xs)) : d("", !0),
|
|
2152
2173
|
t && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (u(), i("foreignObject", {
|
|
2153
2174
|
key: 1,
|
|
2154
|
-
x: t.x - e.name.length * (
|
|
2175
|
+
x: t.x - e.name.length * (m.value.plotLabels / 2),
|
|
2155
2176
|
y: t.y - 20,
|
|
2156
2177
|
height: 24,
|
|
2157
2178
|
width: "150",
|
|
2158
2179
|
style: z(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2159
2180
|
}, [
|
|
2160
|
-
|
|
2161
|
-
style: z(`padding: 3px; background:${v(
|
|
2181
|
+
x("div", {
|
|
2182
|
+
style: z(`padding: 3px; background:${v(Se)(e.color, 80)};color:${v(Fe)(e.color)};width:fit-content;font-size:${m.value.plotLabels}px;border-radius: 2px;`),
|
|
2162
2183
|
innerHTML: v(re)(
|
|
2163
2184
|
l.value.plot.tag.formatter,
|
|
2164
2185
|
t.value,
|
|
@@ -2176,24 +2197,24 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2176
2197
|
], 64))), 128))
|
|
2177
2198
|
])),
|
|
2178
2199
|
l.value.line.labels.show && f.value.dataLabels.show ? (u(), i("g", Zs, [
|
|
2179
|
-
(u(!0), i(h, null,
|
|
2200
|
+
(u(!0), i(h, null, k(we.value, (e, s) => (u(), i(h, {
|
|
2180
2201
|
key: `xLabel_line_${s}`
|
|
2181
2202
|
}, [
|
|
2182
|
-
(u(!0), i(h, null,
|
|
2203
|
+
(u(!0), i(h, null, k(e.plots, (t, r) => (u(), i(h, {
|
|
2183
2204
|
key: `xLabel_line_${s}_${r}`
|
|
2184
2205
|
}, [
|
|
2185
|
-
t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 ||
|
|
2206
|
+
t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || p.value !== null && p.value === r || O.value !== null && O.value === r ? (u(), i("text", {
|
|
2186
2207
|
key: 0,
|
|
2187
2208
|
x: t.x,
|
|
2188
2209
|
y: t.y + (t.value >= 0 ? l.value.line.labels.offsetY : -l.value.line.labels.offsetY * 3),
|
|
2189
2210
|
"text-anchor": "middle",
|
|
2190
|
-
"font-size":
|
|
2211
|
+
"font-size": m.value.plotLabels,
|
|
2191
2212
|
fill: l.value.line.labels.color,
|
|
2192
2213
|
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2193
|
-
}, le(
|
|
2214
|
+
}, le(ge(t.value) ? v(re)(
|
|
2194
2215
|
l.value.line.labels.formatter,
|
|
2195
2216
|
t.value,
|
|
2196
|
-
v(
|
|
2217
|
+
v(me)({
|
|
2197
2218
|
p: e.prefix || l.value.chart.labels.prefix,
|
|
2198
2219
|
v: t.value,
|
|
2199
2220
|
s: e.suffix || l.value.chart.labels.suffix,
|
|
@@ -2207,14 +2228,14 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2207
2228
|
], 64))), 128))
|
|
2208
2229
|
], 64))), 128))
|
|
2209
2230
|
])) : (u(), i("g", Ks, [
|
|
2210
|
-
(u(!0), i(h, null,
|
|
2231
|
+
(u(!0), i(h, null, k(we.value, (e, s) => (u(), i(h, {
|
|
2211
2232
|
key: `xLabel_line_${s}`
|
|
2212
2233
|
}, [
|
|
2213
|
-
(u(!0), i(h, null,
|
|
2234
|
+
(u(!0), i(h, null, k(e.plots, (t, r) => (u(), i(h, {
|
|
2214
2235
|
key: `xLabel_line_${s}_${r}`
|
|
2215
2236
|
}, [
|
|
2216
2237
|
l.value.line.tag.followValue ? (u(), i(h, { key: 1 }, [
|
|
2217
|
-
[O.value,
|
|
2238
|
+
[O.value, p.value, Xe.value].includes(r) && e.useTag ? (u(), i("line", {
|
|
2218
2239
|
key: 0,
|
|
2219
2240
|
class: "vue-ui-xy-tag-line",
|
|
2220
2241
|
x1: n.value.left,
|
|
@@ -2235,8 +2256,8 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2235
2256
|
width: "150",
|
|
2236
2257
|
style: z(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2237
2258
|
}, [
|
|
2238
|
-
|
|
2239
|
-
style: z(`padding: 3px; background:${v(
|
|
2259
|
+
x("div", {
|
|
2260
|
+
style: z(`padding: 3px; background:${v(Se)(e.color, 80)};color:${v(Fe)(e.color)};width:fit-content;font-size:${m.value.plotLabels}px;border-radius: 2px;`),
|
|
2240
2261
|
innerHTML: v(re)(
|
|
2241
2262
|
l.value.line.tag.formatter,
|
|
2242
2263
|
t.value,
|
|
@@ -2257,8 +2278,8 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2257
2278
|
width: "150",
|
|
2258
2279
|
style: z(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2259
2280
|
}, [
|
|
2260
|
-
|
|
2261
|
-
style: z(`padding: 3px; background:${v(
|
|
2281
|
+
x("div", {
|
|
2282
|
+
style: z(`padding: 3px; background:${v(Se)(e.color, 80)};color:${v(Fe)(e.color)};width:fit-content;font-size:${m.value.plotLabels}px;border-radius: 2px;`),
|
|
2262
2283
|
innerHTML: v(re)(
|
|
2263
2284
|
l.value.line.tag.formatter,
|
|
2264
2285
|
t.value,
|
|
@@ -2275,24 +2296,24 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2275
2296
|
], 64))), 128))
|
|
2276
2297
|
], 64))), 128))
|
|
2277
2298
|
])),
|
|
2278
|
-
(u(!0), i(h, null,
|
|
2299
|
+
(u(!0), i(h, null, k(we.value, (e, s) => (u(), i(h, {
|
|
2279
2300
|
key: `xLabel_line_${s}`
|
|
2280
2301
|
}, [
|
|
2281
|
-
(u(!0), i(h, null,
|
|
2302
|
+
(u(!0), i(h, null, k(e.plots, (t, r) => (u(), i(h, {
|
|
2282
2303
|
key: `xLabel_line_${s}_${r}`
|
|
2283
2304
|
}, [
|
|
2284
2305
|
t && r === 0 && e.showSerieName && e.showSerieName === "start" ? (u(), i("text", {
|
|
2285
2306
|
key: 0,
|
|
2286
|
-
x: t.x -
|
|
2307
|
+
x: t.x - m.value.plotLabels,
|
|
2287
2308
|
y: t.y,
|
|
2288
|
-
"font-size":
|
|
2309
|
+
"font-size": m.value.plotLabels,
|
|
2289
2310
|
"text-anchor": "end",
|
|
2290
2311
|
fill: e.color,
|
|
2291
|
-
innerHTML: v(
|
|
2312
|
+
innerHTML: v(Cl)({
|
|
2292
2313
|
content: e.name,
|
|
2293
|
-
fontSize:
|
|
2314
|
+
fontSize: m.value.plotLabels,
|
|
2294
2315
|
fill: e.color,
|
|
2295
|
-
x: t.x -
|
|
2316
|
+
x: t.x - m.value.plotLabels,
|
|
2296
2317
|
y: t.y,
|
|
2297
2318
|
maxWords: 2
|
|
2298
2319
|
}),
|
|
@@ -2300,16 +2321,16 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2300
2321
|
}, null, 12, tu)) : d("", !0),
|
|
2301
2322
|
t && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), i("text", {
|
|
2302
2323
|
key: 1,
|
|
2303
|
-
x: t.x +
|
|
2324
|
+
x: t.x + m.value.plotLabels,
|
|
2304
2325
|
y: t.y,
|
|
2305
|
-
"font-size":
|
|
2326
|
+
"font-size": m.value.plotLabels,
|
|
2306
2327
|
"text-anchor": "start",
|
|
2307
2328
|
fill: e.color,
|
|
2308
|
-
innerHTML: v(
|
|
2329
|
+
innerHTML: v(Cl)({
|
|
2309
2330
|
content: e.name,
|
|
2310
|
-
fontSize:
|
|
2331
|
+
fontSize: m.value.plotLabels,
|
|
2311
2332
|
fill: e.color,
|
|
2312
|
-
x: t.x +
|
|
2333
|
+
x: t.x + m.value.plotLabels,
|
|
2313
2334
|
y: t.y,
|
|
2314
2335
|
maxWords: 2
|
|
2315
2336
|
}),
|
|
@@ -2317,24 +2338,24 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2317
2338
|
}, null, 12, ou)) : d("", !0)
|
|
2318
2339
|
], 64))), 128))
|
|
2319
2340
|
], 64))), 128)),
|
|
2320
|
-
(u(!0), i(h, null,
|
|
2341
|
+
(u(!0), i(h, null, k(Le.value, (e, s) => (u(), i(h, {
|
|
2321
2342
|
key: `xLabel_plot_${s}`
|
|
2322
2343
|
}, [
|
|
2323
|
-
(u(!0), i(h, null,
|
|
2344
|
+
(u(!0), i(h, null, k(e.plots, (t, r) => (u(), i(h, {
|
|
2324
2345
|
key: `xLabel_plot_${s}_${r}`
|
|
2325
2346
|
}, [
|
|
2326
2347
|
t && r === 0 && e.showSerieName && e.showSerieName === "start" ? (u(), i("text", {
|
|
2327
2348
|
key: 0,
|
|
2328
|
-
x: t.x -
|
|
2349
|
+
x: t.x - m.value.plotLabels,
|
|
2329
2350
|
y: t.y,
|
|
2330
|
-
"font-size":
|
|
2351
|
+
"font-size": m.value.plotLabels,
|
|
2331
2352
|
"text-anchor": "end",
|
|
2332
2353
|
fill: e.color,
|
|
2333
|
-
innerHTML: v(
|
|
2354
|
+
innerHTML: v(Cl)({
|
|
2334
2355
|
content: e.name,
|
|
2335
|
-
fontSize:
|
|
2356
|
+
fontSize: m.value.plotLabels,
|
|
2336
2357
|
fill: e.color,
|
|
2337
|
-
x: t.x -
|
|
2358
|
+
x: t.x - m.value.plotLabels,
|
|
2338
2359
|
y: t.y,
|
|
2339
2360
|
maxWords: 2
|
|
2340
2361
|
}),
|
|
@@ -2342,16 +2363,16 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2342
2363
|
}, null, 12, su)) : d("", !0),
|
|
2343
2364
|
t && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), i("text", {
|
|
2344
2365
|
key: 1,
|
|
2345
|
-
x: t.x +
|
|
2366
|
+
x: t.x + m.value.plotLabels,
|
|
2346
2367
|
y: t.y,
|
|
2347
|
-
"font-size":
|
|
2368
|
+
"font-size": m.value.plotLabels,
|
|
2348
2369
|
"text-anchor": "start",
|
|
2349
2370
|
fill: e.color,
|
|
2350
|
-
innerHTML: v(
|
|
2371
|
+
innerHTML: v(Cl)({
|
|
2351
2372
|
content: e.name,
|
|
2352
|
-
fontSize:
|
|
2373
|
+
fontSize: m.value.plotLabels,
|
|
2353
2374
|
fill: e.color,
|
|
2354
|
-
x: t.x +
|
|
2375
|
+
x: t.x + m.value.plotLabels,
|
|
2355
2376
|
y: t.y,
|
|
2356
2377
|
maxWords: 2
|
|
2357
2378
|
}),
|
|
@@ -2360,27 +2381,27 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2360
2381
|
], 64))), 128))
|
|
2361
2382
|
], 64))), 128)),
|
|
2362
2383
|
f.value.useIndividualScale && !f.value.isStacked ? (u(), i(h, { key: 12 }, [
|
|
2363
|
-
|
|
2364
|
-
(u(!0), i(h, null,
|
|
2384
|
+
x("defs", null, [
|
|
2385
|
+
(u(!0), i(h, null, k(dl.value, (e, s) => (u(), i("linearGradient", {
|
|
2365
2386
|
id: `individual_scale_gradient_${U.value}_${s}`,
|
|
2366
2387
|
x1: "0%",
|
|
2367
2388
|
x2: "100%",
|
|
2368
2389
|
y1: "0%",
|
|
2369
2390
|
y2: "0%"
|
|
2370
2391
|
}, [
|
|
2371
|
-
|
|
2392
|
+
x("stop", {
|
|
2372
2393
|
offset: "0%",
|
|
2373
2394
|
"stop-color": l.value.chart.backgroundColor,
|
|
2374
2395
|
"stop-opacity": "0"
|
|
2375
2396
|
}, null, 8, iu),
|
|
2376
|
-
|
|
2397
|
+
x("stop", {
|
|
2377
2398
|
offset: "100%",
|
|
2378
2399
|
"stop-color": e.color,
|
|
2379
2400
|
"stop-opacity": "0.2"
|
|
2380
2401
|
}, null, 8, nu)
|
|
2381
2402
|
], 8, ru))), 256))
|
|
2382
2403
|
]),
|
|
2383
|
-
(u(!0), i(h, null,
|
|
2404
|
+
(u(!0), i(h, null, k(dl.value, (e, s) => (u(), i("rect", {
|
|
2384
2405
|
x: e.x - l.value.chart.grid.labels.yAxis.labelWidth + G.value - n.value.individualOffsetX,
|
|
2385
2406
|
y: n.value.top,
|
|
2386
2407
|
width: l.value.chart.grid.labels.yAxis.labelWidth + n.value.individualOffsetX,
|
|
@@ -2390,12 +2411,12 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2390
2411
|
onMouseleave: c[0] || (c[0] = (t) => M.value = null)
|
|
2391
2412
|
}, null, 40, cu))), 256))
|
|
2392
2413
|
], 64)) : d("", !0),
|
|
2393
|
-
|
|
2414
|
+
x("g", null, [
|
|
2394
2415
|
l.value.chart.grid.labels.axis.yLabel && !f.value.useIndividualScale ? (u(), i("text", {
|
|
2395
2416
|
key: 0,
|
|
2396
2417
|
ref_key: "yAxisLabel",
|
|
2397
|
-
ref:
|
|
2398
|
-
"font-size":
|
|
2418
|
+
ref: Pl,
|
|
2419
|
+
"font-size": m.value.yAxis,
|
|
2399
2420
|
fill: l.value.chart.grid.labels.color,
|
|
2400
2421
|
transform: `translate(${l.value.chart.grid.labels.axis.fontSize}, ${n.value.top + n.value.height / 2}) rotate(-90)`,
|
|
2401
2422
|
"text-anchor": "middle",
|
|
@@ -2404,11 +2425,11 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2404
2425
|
l.value.chart.grid.labels.axis.xLabel ? (u(), i("text", {
|
|
2405
2426
|
key: 1,
|
|
2406
2427
|
ref_key: "xAxisLabel",
|
|
2407
|
-
ref:
|
|
2428
|
+
ref: Vl,
|
|
2408
2429
|
"text-anchor": "middle",
|
|
2409
2430
|
x: ae.value / 2,
|
|
2410
2431
|
y: ve.value - 3,
|
|
2411
|
-
"font-size":
|
|
2432
|
+
"font-size": m.value.yAxis,
|
|
2412
2433
|
fill: l.value.chart.grid.labels.color
|
|
2413
2434
|
}, le(l.value.chart.grid.labels.axis.xLabel), 9, du)) : d("", !0)
|
|
2414
2435
|
]),
|
|
@@ -2417,58 +2438,58 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2417
2438
|
ref_key: "timeLabelsEls",
|
|
2418
2439
|
ref: ll
|
|
2419
2440
|
}, [
|
|
2420
|
-
a.$slots["time-label"] ? (u(!0), i(h, { key: 0 },
|
|
2441
|
+
a.$slots["time-label"] ? (u(!0), i(h, { key: 0 }, k(J.value, (e, s) => q(a.$slots, "time-label", Ql({
|
|
2421
2442
|
key: `time_label_${s}`,
|
|
2422
2443
|
ref_for: !0
|
|
2423
2444
|
}, {
|
|
2424
2445
|
x: n.value.left + n.value.width / b.value * s + n.value.width / b.value / 2,
|
|
2425
2446
|
y: n.value.bottom,
|
|
2426
|
-
fontSize:
|
|
2447
|
+
fontSize: m.value.xAxis,
|
|
2427
2448
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2428
|
-
transform: `translate(${n.value.left + n.value.width / b.value * s + n.value.width / b.value / 2}, ${n.value.bottom +
|
|
2449
|
+
transform: `translate(${n.value.left + n.value.width / b.value * s + n.value.width / b.value / 2}, ${n.value.bottom + m.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2429
2450
|
absoluteIndex: e.absoluteIndex,
|
|
2430
2451
|
content: e.text,
|
|
2431
2452
|
textAnchor: l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2432
|
-
show: e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= $l.value || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === J.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast &&
|
|
2433
|
-
}), void 0, !0)), 128)) : (u(!0), i(h, { key: 1 },
|
|
2453
|
+
show: e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= $l.value || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === J.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && p.value === s && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((y.value.end - y.value.start) / $l.value) === 0
|
|
2454
|
+
}), void 0, !0)), 128)) : (u(!0), i(h, { key: 1 }, k(J.value, (e, s) => (u(), i("g", {
|
|
2434
2455
|
key: `time_label_${s}`
|
|
2435
2456
|
}, [
|
|
2436
|
-
e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= $l.value || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === J.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast &&
|
|
2457
|
+
e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= $l.value || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === J.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && p.value === s && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((y.value.end - y.value.start) / $l.value) === 0 ? (u(), i(h, { key: 0 }, [
|
|
2437
2458
|
String(e.text).includes(`
|
|
2438
2459
|
`) ? (u(), i("text", {
|
|
2439
2460
|
key: 1,
|
|
2440
2461
|
"text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2441
|
-
"font-size":
|
|
2462
|
+
"font-size": m.value.xAxis,
|
|
2442
2463
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2443
|
-
transform: `translate(${n.value.left + n.value.width / b.value * s + n.value.width / b.value / 2}, ${n.value.bottom +
|
|
2464
|
+
transform: `translate(${n.value.left + n.value.width / b.value * s + n.value.width / b.value / 2}, ${n.value.bottom + m.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2444
2465
|
style: z({
|
|
2445
2466
|
cursor: ga() ? "pointer" : "default"
|
|
2446
2467
|
}),
|
|
2447
2468
|
innerHTML: v(Qt)({
|
|
2448
2469
|
content: String(e.text),
|
|
2449
|
-
fontSize:
|
|
2470
|
+
fontSize: m.value.xAxis,
|
|
2450
2471
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2451
2472
|
x: 0,
|
|
2452
2473
|
y: 0
|
|
2453
2474
|
}),
|
|
2454
|
-
onClick: () =>
|
|
2475
|
+
onClick: () => ba(e, s)
|
|
2455
2476
|
}, null, 12, fu)) : (u(), i("text", {
|
|
2456
2477
|
key: 0,
|
|
2457
2478
|
class: "vue-data-ui-time-label",
|
|
2458
2479
|
"text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2459
|
-
"font-size":
|
|
2480
|
+
"font-size": m.value.xAxis,
|
|
2460
2481
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2461
|
-
transform: `translate(${n.value.left + n.value.width / b.value * s + n.value.width / b.value / 2}, ${n.value.bottom +
|
|
2482
|
+
transform: `translate(${n.value.left + n.value.width / b.value * s + n.value.width / b.value / 2}, ${n.value.bottom + m.value.xAxis * 1.5}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2462
2483
|
style: z({
|
|
2463
2484
|
cursor: ga() ? "pointer" : "default"
|
|
2464
2485
|
}),
|
|
2465
|
-
onClick: () =>
|
|
2486
|
+
onClick: () => ba(e, s)
|
|
2466
2487
|
}, le(e.text || ""), 13, hu))
|
|
2467
2488
|
], 64)) : d("", !0)
|
|
2468
2489
|
]))), 128))
|
|
2469
2490
|
], 512)) : d("", !0),
|
|
2470
2491
|
Ma.value.length && !f.value.isStacked ? (u(), i("g", gu, [
|
|
2471
|
-
(u(!0), i(h, null,
|
|
2492
|
+
(u(!0), i(h, null, k(Ma.value, (e) => (u(), i("g", {
|
|
2472
2493
|
key: e.uid
|
|
2473
2494
|
}, [
|
|
2474
2495
|
e.yTop && e.show && isFinite(e.yTop) ? (u(), i("line", {
|
|
@@ -2494,16 +2515,16 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2494
2515
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
2495
2516
|
"stroke-linecap": "round",
|
|
2496
2517
|
style: { animation: "none !important" }
|
|
2497
|
-
}, null, 8,
|
|
2518
|
+
}, null, 8, mu)) : d("", !0),
|
|
2498
2519
|
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (u(), i("rect", {
|
|
2499
2520
|
key: 2,
|
|
2500
2521
|
y: Math.min(e.yTop, e.yBottom),
|
|
2501
2522
|
x: e.x1,
|
|
2502
2523
|
width: n.value.width,
|
|
2503
2524
|
height: v(T)(e.areaHeight, 0),
|
|
2504
|
-
fill: v(
|
|
2525
|
+
fill: v(Se)(e.config.area.fill, e.config.area.opacity),
|
|
2505
2526
|
style: { animation: "none !important" }
|
|
2506
|
-
}, null, 8,
|
|
2527
|
+
}, null, 8, bu)) : d("", !0),
|
|
2507
2528
|
e.config.label.text && e.show && isFinite(e._box.y) ? (u(), i("rect", Ql({
|
|
2508
2529
|
key: 3,
|
|
2509
2530
|
class: "vue-ui-xy-annotation-label-box"
|
|
@@ -2520,8 +2541,8 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2520
2541
|
}, le(e.config.label.text), 9, yu)) : d("", !0)
|
|
2521
2542
|
]))), 128))
|
|
2522
2543
|
])) : d("", !0),
|
|
2523
|
-
|
|
2524
|
-
(u(!0), i(h, null,
|
|
2544
|
+
Ul.value ? (u(), i("g", pu, [
|
|
2545
|
+
(u(!0), i(h, null, k(b.value, (e, s) => (u(), i("rect", {
|
|
2525
2546
|
key: `tooltip_trap_${s}`,
|
|
2526
2547
|
x: n.value.left + n.value.width / b.value * s,
|
|
2527
2548
|
y: n.value.top,
|
|
@@ -2529,25 +2550,25 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2529
2550
|
width: n.value.width / b.value < 0 ? 1e-5 : n.value.width / b.value,
|
|
2530
2551
|
fill: "transparent",
|
|
2531
2552
|
onMouseenter: (t) => Ta(!0, s),
|
|
2532
|
-
onMouseleave:
|
|
2553
|
+
onMouseleave: (t) => Ta(!1, s),
|
|
2533
2554
|
onClick: (t) => kt(s)
|
|
2534
2555
|
}, null, 40, ku))), 128))
|
|
2535
2556
|
])) : d("", !0),
|
|
2536
|
-
l.value.chart.timeTag.show && (![null, void 0].includes(
|
|
2557
|
+
l.value.chart.timeTag.show && (![null, void 0].includes(p.value) || ![null, void 0].includes(O.value)) ? (u(), i("g", _u, [
|
|
2537
2558
|
(u(), i("foreignObject", {
|
|
2538
|
-
x: n.value.left + n.value.width / b.value * ((
|
|
2559
|
+
x: n.value.left + n.value.width / b.value * ((p.value !== null ? p.value : 0) || (O.value !== null ? O.value : 0)) - 100 + n.value.width / b.value / 2,
|
|
2539
2560
|
y: n.value.bottom,
|
|
2540
2561
|
width: "200",
|
|
2541
2562
|
height: "40",
|
|
2542
2563
|
style: { overflow: "visible !important" }
|
|
2543
2564
|
}, [
|
|
2544
|
-
|
|
2565
|
+
x("div", {
|
|
2545
2566
|
class: "vue-ui-xy-time-tag",
|
|
2546
2567
|
style: z(`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`)
|
|
2547
|
-
}, le(J.value[(
|
|
2568
|
+
}, le(J.value[(p.value !== null ? p.value : 0) || (O.value !== null ? O.value : 0)].text || (p.value !== null ? p.value : 0) || (O.value !== null ? O.value : 0)), 5)
|
|
2548
2569
|
], 8, wu)),
|
|
2549
|
-
|
|
2550
|
-
cx: n.value.left + n.value.width / b.value * ((
|
|
2570
|
+
x("circle", {
|
|
2571
|
+
cx: n.value.left + n.value.width / b.value * ((p.value !== null ? p.value : 0) || (O.value !== null ? O.value : 0)) + n.value.width / b.value / 2,
|
|
2551
2572
|
cy: n.value.bottom,
|
|
2552
2573
|
r: l.value.chart.timeTag.circleMarker.radius,
|
|
2553
2574
|
fill: l.value.chart.timeTag.circleMarker.color
|
|
@@ -2558,15 +2579,15 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2558
2579
|
], 512)
|
|
2559
2580
|
], 14, go)),
|
|
2560
2581
|
a.$slots.watermark ? (u(), i("div", $u, [
|
|
2561
|
-
q(a.$slots, "watermark", Ze(Je({ isPrinting: v(
|
|
2582
|
+
q(a.$slots, "watermark", Ze(Je({ isPrinting: v(Gl) || v(ca) })), void 0, !0)
|
|
2562
2583
|
])) : d("", !0),
|
|
2563
|
-
(u(!0), i(h, null,
|
|
2584
|
+
(u(!0), i(h, null, k(we.value, (e, s) => (u(), i(h, {
|
|
2564
2585
|
key: `tag_line_${s}`
|
|
2565
2586
|
}, [
|
|
2566
|
-
(u(!0), i(h, null,
|
|
2587
|
+
(u(!0), i(h, null, k(e.plots, (t, r) => (u(), i(h, {
|
|
2567
2588
|
key: `tag_line_${s}_${r}`
|
|
2568
2589
|
}, [
|
|
2569
|
-
[O.value,
|
|
2590
|
+
[O.value, p.value, Xe.value].includes(r) && e.useTag && e.useTag === "end" && l.value.line.tag.followValue ? (u(), i("div", {
|
|
2570
2591
|
key: 0,
|
|
2571
2592
|
ref_for: !0,
|
|
2572
2593
|
ref: (o) => Sl(s, r, o, "right", "line"),
|
|
@@ -2575,17 +2596,17 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2575
2596
|
style: z({
|
|
2576
2597
|
position: "fixed",
|
|
2577
2598
|
top: v(Ee)({
|
|
2578
|
-
svgElement:
|
|
2599
|
+
svgElement: ye.value,
|
|
2579
2600
|
x: n.value.right + l.value.line.tag.fontSize / 1.5,
|
|
2580
2601
|
y: t.y,
|
|
2581
|
-
element:
|
|
2602
|
+
element: Ce.value[`${s}_${r}_right_line`],
|
|
2582
2603
|
position: "right"
|
|
2583
2604
|
}).top + "px",
|
|
2584
2605
|
left: v(Ee)({
|
|
2585
|
-
svgElement:
|
|
2606
|
+
svgElement: ye.value,
|
|
2586
2607
|
x: n.value.right + l.value.line.tag.fontSize / 1.5,
|
|
2587
2608
|
y: t.y,
|
|
2588
|
-
element:
|
|
2609
|
+
element: Ce.value[`${s}_${r}_right_line`],
|
|
2589
2610
|
position: "right"
|
|
2590
2611
|
}).left + "px",
|
|
2591
2612
|
height: "fit-content",
|
|
@@ -2598,13 +2619,13 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2598
2619
|
})
|
|
2599
2620
|
}, [
|
|
2600
2621
|
(u(), i("svg", Lu, [
|
|
2601
|
-
|
|
2622
|
+
x("path", {
|
|
2602
2623
|
d: "M 0,10 10,0 10,20 Z",
|
|
2603
2624
|
fill: e.color,
|
|
2604
2625
|
stroke: "none"
|
|
2605
2626
|
}, null, 8, Au)
|
|
2606
2627
|
])),
|
|
2607
|
-
|
|
2628
|
+
x("div", {
|
|
2608
2629
|
class: "vue-ui-xy-tag-content",
|
|
2609
2630
|
innerHTML: v(re)(
|
|
2610
2631
|
l.value.line.tag.formatter,
|
|
@@ -2618,7 +2639,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2618
2639
|
)
|
|
2619
2640
|
}, null, 8, Mu)
|
|
2620
2641
|
], 4)) : d("", !0),
|
|
2621
|
-
[O.value,
|
|
2642
|
+
[O.value, p.value, Xe.value].includes(r) && e.useTag && e.useTag === "start" && l.value.line.tag.followValue ? (u(), i("div", {
|
|
2622
2643
|
key: 1,
|
|
2623
2644
|
ref_for: !0,
|
|
2624
2645
|
ref: (o) => Sl(s, r, o, "left", "line"),
|
|
@@ -2627,17 +2648,17 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2627
2648
|
style: z({
|
|
2628
2649
|
position: "fixed",
|
|
2629
2650
|
top: v(Ee)({
|
|
2630
|
-
svgElement:
|
|
2651
|
+
svgElement: ye.value,
|
|
2631
2652
|
x: n.value.left - l.value.line.tag.fontSize / 1.5,
|
|
2632
2653
|
y: t.y,
|
|
2633
|
-
element:
|
|
2654
|
+
element: Ce.value[`${s}_${r}_left_line`],
|
|
2634
2655
|
position: "left"
|
|
2635
2656
|
}).top + "px",
|
|
2636
2657
|
left: v(Ee)({
|
|
2637
|
-
svgElement:
|
|
2658
|
+
svgElement: ye.value,
|
|
2638
2659
|
x: n.value.left - l.value.line.tag.fontSize / 1.5,
|
|
2639
2660
|
y: t.y,
|
|
2640
|
-
element:
|
|
2661
|
+
element: Ce.value[`${s}_${r}_left_line`],
|
|
2641
2662
|
position: "left"
|
|
2642
2663
|
}).left + "px",
|
|
2643
2664
|
height: "fit-content",
|
|
@@ -2650,13 +2671,13 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2650
2671
|
})
|
|
2651
2672
|
}, [
|
|
2652
2673
|
(u(), i("svg", zu, [
|
|
2653
|
-
|
|
2674
|
+
x("path", {
|
|
2654
2675
|
d: "M 0,0 10,10 0,20 Z",
|
|
2655
2676
|
fill: e.color,
|
|
2656
2677
|
stroke: "none"
|
|
2657
2678
|
}, null, 8, Cu)
|
|
2658
2679
|
])),
|
|
2659
|
-
|
|
2680
|
+
x("div", {
|
|
2660
2681
|
class: "vue-ui-xy-tag-content",
|
|
2661
2682
|
innerHTML: v(re)(
|
|
2662
2683
|
l.value.line.tag.formatter,
|
|
@@ -2672,13 +2693,13 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2672
2693
|
], 4)) : d("", !0)
|
|
2673
2694
|
], 64))), 128))
|
|
2674
2695
|
], 64))), 128)),
|
|
2675
|
-
(u(!0), i(h, null,
|
|
2696
|
+
(u(!0), i(h, null, k(Le.value, (e, s) => (u(), i(h, {
|
|
2676
2697
|
key: `tag_plot_${s}`
|
|
2677
2698
|
}, [
|
|
2678
|
-
(u(!0), i(h, null,
|
|
2699
|
+
(u(!0), i(h, null, k(e.plots, (t, r) => (u(), i(h, {
|
|
2679
2700
|
key: `tag_plot_${s}_${r}`
|
|
2680
2701
|
}, [
|
|
2681
|
-
[O.value,
|
|
2702
|
+
[O.value, p.value, Xe.value].includes(r) && e.useTag && e.useTag === "end" && l.value.plot.tag.followValue ? (u(), i("div", {
|
|
2682
2703
|
key: 0,
|
|
2683
2704
|
ref_for: !0,
|
|
2684
2705
|
ref: (o) => Sl(s, r, o, "right", "plot"),
|
|
@@ -2687,17 +2708,17 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2687
2708
|
style: z({
|
|
2688
2709
|
position: "fixed",
|
|
2689
2710
|
top: v(Ee)({
|
|
2690
|
-
svgElement:
|
|
2711
|
+
svgElement: ye.value,
|
|
2691
2712
|
x: n.value.right + l.value.plot.tag.fontSize / 1.5,
|
|
2692
2713
|
y: t.y,
|
|
2693
|
-
element:
|
|
2714
|
+
element: Ce.value[`${s}_${r}_right_plot`],
|
|
2694
2715
|
position: "right"
|
|
2695
2716
|
}).top + "px",
|
|
2696
2717
|
left: v(Ee)({
|
|
2697
|
-
svgElement:
|
|
2718
|
+
svgElement: ye.value,
|
|
2698
2719
|
x: n.value.right + l.value.plot.tag.fontSize / 1.5,
|
|
2699
2720
|
y: t.y,
|
|
2700
|
-
element:
|
|
2721
|
+
element: Ce.value[`${s}_${r}_right_plot`],
|
|
2701
2722
|
position: "right"
|
|
2702
2723
|
}).left + "px",
|
|
2703
2724
|
height: "fit-content",
|
|
@@ -2710,13 +2731,13 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2710
2731
|
})
|
|
2711
2732
|
}, [
|
|
2712
2733
|
(u(), i("svg", Tu, [
|
|
2713
|
-
|
|
2734
|
+
x("path", {
|
|
2714
2735
|
d: "M 0,10 10,0 10,20 Z",
|
|
2715
2736
|
fill: e.color,
|
|
2716
2737
|
stroke: "none"
|
|
2717
2738
|
}, null, 8, Ou)
|
|
2718
2739
|
])),
|
|
2719
|
-
|
|
2740
|
+
x("div", {
|
|
2720
2741
|
class: "vue-ui-xy-tag-content",
|
|
2721
2742
|
innerHTML: v(re)(
|
|
2722
2743
|
l.value.plot.tag.formatter,
|
|
@@ -2730,7 +2751,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2730
2751
|
)
|
|
2731
2752
|
}, null, 8, Nu)
|
|
2732
2753
|
], 4)) : d("", !0),
|
|
2733
|
-
[O.value,
|
|
2754
|
+
[O.value, p.value, Xe.value].includes(r) && e.useTag && e.useTag === "start" && l.value.plot.tag.followValue ? (u(), i("div", {
|
|
2734
2755
|
key: 1,
|
|
2735
2756
|
ref_for: !0,
|
|
2736
2757
|
ref: (o) => Sl(s, r, o, "left", "plot"),
|
|
@@ -2739,17 +2760,17 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2739
2760
|
style: z({
|
|
2740
2761
|
position: "fixed",
|
|
2741
2762
|
top: v(Ee)({
|
|
2742
|
-
svgElement:
|
|
2763
|
+
svgElement: ye.value,
|
|
2743
2764
|
x: n.value.left - l.value.plot.tag.fontSize / 1.5,
|
|
2744
2765
|
y: t.y,
|
|
2745
|
-
element:
|
|
2766
|
+
element: Ce.value[`${s}_${r}_left_plot`],
|
|
2746
2767
|
position: "left"
|
|
2747
2768
|
}).top + "px",
|
|
2748
2769
|
left: v(Ee)({
|
|
2749
|
-
svgElement:
|
|
2770
|
+
svgElement: ye.value,
|
|
2750
2771
|
x: n.value.left - l.value.plot.tag.fontSize / 1.5,
|
|
2751
2772
|
y: t.y,
|
|
2752
|
-
element:
|
|
2773
|
+
element: Ce.value[`${s}_${r}_left_plot`],
|
|
2753
2774
|
position: "left"
|
|
2754
2775
|
}).left + "px",
|
|
2755
2776
|
height: "fit-content",
|
|
@@ -2762,13 +2783,13 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2762
2783
|
})
|
|
2763
2784
|
}, [
|
|
2764
2785
|
(u(), i("svg", Vu, [
|
|
2765
|
-
|
|
2786
|
+
x("path", {
|
|
2766
2787
|
d: "M 0,0 10,10 0,20 Z",
|
|
2767
2788
|
fill: e.color,
|
|
2768
2789
|
stroke: "none"
|
|
2769
2790
|
}, null, 8, Pu)
|
|
2770
2791
|
])),
|
|
2771
|
-
|
|
2792
|
+
x("div", {
|
|
2772
2793
|
class: "vue-ui-xy-tag-content",
|
|
2773
2794
|
innerHTML: v(re)(
|
|
2774
2795
|
l.value.plot.tag.formatter,
|
|
@@ -2784,10 +2805,10 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2784
2805
|
], 4)) : d("", !0)
|
|
2785
2806
|
], 64))), 128))
|
|
2786
2807
|
], 64))), 128)),
|
|
2787
|
-
l.value.chart.zoom.show && Ve.value > 6 &&
|
|
2808
|
+
l.value.chart.zoom.show && Ve.value > 6 && Wl.value ? (u(), Me(so, {
|
|
2788
2809
|
ref_key: "chartSlicer",
|
|
2789
2810
|
ref: Ne,
|
|
2790
|
-
key: `slicer_${
|
|
2811
|
+
key: `slicer_${Bl.value}`,
|
|
2791
2812
|
background: l.value.chart.zoom.color,
|
|
2792
2813
|
fontSize: l.value.chart.zoom.fontSize,
|
|
2793
2814
|
useResetSlot: l.value.chart.zoom.useResetSlot,
|
|
@@ -2803,23 +2824,23 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2803
2824
|
minimapSelectionRadius: l.value.chart.zoom.minimap.selectionRadius,
|
|
2804
2825
|
minimapLineColor: l.value.chart.zoom.minimap.lineColor,
|
|
2805
2826
|
minimapSelectedColorOpacity: l.value.chart.zoom.minimap.selectedColorOpacity,
|
|
2806
|
-
minimapSelectedIndex:
|
|
2827
|
+
minimapSelectedIndex: p.value,
|
|
2807
2828
|
minimapIndicatorColor: l.value.chart.zoom.minimap.indicatorColor,
|
|
2808
2829
|
verticalHandles: l.value.chart.zoom.minimap.verticalHandles,
|
|
2809
2830
|
max: Ve.value,
|
|
2810
2831
|
min: 0,
|
|
2811
|
-
valueStart:
|
|
2812
|
-
valueEnd:
|
|
2813
|
-
start:
|
|
2814
|
-
"onUpdate:start": c[
|
|
2815
|
-
end:
|
|
2816
|
-
"onUpdate:end": c[
|
|
2832
|
+
valueStart: y.value.start,
|
|
2833
|
+
valueEnd: y.value.end,
|
|
2834
|
+
start: y.value.start,
|
|
2835
|
+
"onUpdate:start": c[1] || (c[1] = (e) => y.value.start = e),
|
|
2836
|
+
end: y.value.end,
|
|
2837
|
+
"onUpdate:end": c[2] || (c[2] = (e) => y.value.end = e),
|
|
2817
2838
|
refreshStartPoint: l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex : 0,
|
|
2818
|
-
refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...
|
|
2839
|
+
refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...Tl.dataset.map((e) => v(Ye)({ data: e.series, threshold: l.value.downsample.threshold }).length)),
|
|
2819
2840
|
enableRangeHandles: l.value.chart.zoom.enableRangeHandles,
|
|
2820
2841
|
enableSelectionDrag: l.value.chart.zoom.enableSelectionDrag,
|
|
2821
2842
|
onReset: pt,
|
|
2822
|
-
onTrapMouse:
|
|
2843
|
+
onTrapMouse: mt
|
|
2823
2844
|
}, {
|
|
2824
2845
|
"reset-action": ue(({ reset: e }) => [
|
|
2825
2846
|
q(a.$slots, "reset-action", Ze(Je({ reset: e })), void 0, !0)
|
|
@@ -2833,13 +2854,13 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2833
2854
|
class: "vue-ui-xy-legend",
|
|
2834
2855
|
style: z(`font-size:${l.value.chart.legend.fontSize}px`)
|
|
2835
2856
|
}, [
|
|
2836
|
-
(u(!0), i(h, null,
|
|
2857
|
+
(u(!0), i(h, null, k(Te.value, (e, s) => (u(), i("div", {
|
|
2837
2858
|
key: `div_legend_item_${s}`,
|
|
2838
2859
|
onClick: (t) => $a(e),
|
|
2839
2860
|
class: Ue({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": te.value.includes(e.id) })
|
|
2840
2861
|
}, [
|
|
2841
2862
|
il.value[e.type] === "line" ? (u(), i("svg", Bu, [
|
|
2842
|
-
|
|
2863
|
+
x("rect", {
|
|
2843
2864
|
x: "0",
|
|
2844
2865
|
y: "7.5",
|
|
2845
2866
|
rx: "1.5",
|
|
@@ -2849,7 +2870,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2849
2870
|
width: "20",
|
|
2850
2871
|
fill: e.color
|
|
2851
2872
|
}, null, 8, Yu),
|
|
2852
|
-
xl(
|
|
2873
|
+
xl(Il, {
|
|
2853
2874
|
plot: { x: 10, y: 9 },
|
|
2854
2875
|
radius: 4,
|
|
2855
2876
|
color: e.color,
|
|
@@ -2879,14 +2900,14 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2879
2900
|
fill: a.$slots.pattern ? `url(#pattern_${U.value}_${e.slotAbsoluteIndex})` : e.color
|
|
2880
2901
|
}, null, 8, Wu)) : d("", !0)
|
|
2881
2902
|
])) : (u(), i("svg", Xu, [
|
|
2882
|
-
xl(
|
|
2903
|
+
xl(Il, {
|
|
2883
2904
|
plot: { x: 6, y: 6 },
|
|
2884
2905
|
radius: 5,
|
|
2885
2906
|
color: e.color,
|
|
2886
2907
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle"
|
|
2887
2908
|
}, null, 8, ["color", "shape"])
|
|
2888
2909
|
])),
|
|
2889
|
-
|
|
2910
|
+
x("span", {
|
|
2890
2911
|
style: z(`color:${l.value.chart.legend.color}`)
|
|
2891
2912
|
}, le(e.name), 5)
|
|
2892
2913
|
], 10, Ru))), 128))
|
|
@@ -2895,7 +2916,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2895
2916
|
ref_key: "chartLegend",
|
|
2896
2917
|
ref: el
|
|
2897
2918
|
}, [
|
|
2898
|
-
q(a.$slots, "legend", { legend:
|
|
2919
|
+
q(a.$slots, "legend", { legend: Te.value }, void 0, !0)
|
|
2899
2920
|
], 512)),
|
|
2900
2921
|
a.$slots.source ? (u(), i("div", {
|
|
2901
2922
|
key: 8,
|
|
@@ -2929,7 +2950,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2929
2950
|
]),
|
|
2930
2951
|
_: 3
|
|
2931
2952
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
2932
|
-
|
|
2953
|
+
Wl.value ? (u(), Me(v(at), {
|
|
2933
2954
|
key: 9,
|
|
2934
2955
|
hideDetails: "",
|
|
2935
2956
|
config: {
|
|
@@ -2946,18 +2967,18 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2946
2967
|
}
|
|
2947
2968
|
}, {
|
|
2948
2969
|
content: ue(() => [
|
|
2949
|
-
|
|
2950
|
-
style: z(`${v(
|
|
2970
|
+
x("div", {
|
|
2971
|
+
style: z(`${v(Gl) ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
2951
2972
|
}, [
|
|
2952
|
-
|
|
2953
|
-
Bt(
|
|
2973
|
+
x("div", Gu, [
|
|
2974
|
+
Bt(x("input", {
|
|
2954
2975
|
type: "checkbox",
|
|
2955
|
-
"onUpdate:modelValue": c[
|
|
2976
|
+
"onUpdate:modelValue": c[3] || (c[3] = (e) => nl.value = e)
|
|
2956
2977
|
}, null, 512), [
|
|
2957
2978
|
[Yt, nl.value]
|
|
2958
2979
|
]),
|
|
2959
|
-
|
|
2960
|
-
onClick: c[
|
|
2980
|
+
x("div", {
|
|
2981
|
+
onClick: c[4] || (c[4] = (e) => nl.value = !nl.value),
|
|
2961
2982
|
style: { cursor: "pointer" }
|
|
2962
2983
|
}, [
|
|
2963
2984
|
xl(v(et), {
|
|
@@ -2967,24 +2988,24 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2967
2988
|
}, null, 8, ["stroke"])
|
|
2968
2989
|
])
|
|
2969
2990
|
]),
|
|
2970
|
-
nl.value ? (u(),
|
|
2971
|
-
key: `sparkline_${
|
|
2991
|
+
nl.value ? (u(), Me(v(lt), {
|
|
2992
|
+
key: `sparkline_${Yl.value}`,
|
|
2972
2993
|
dataset: Mt.value,
|
|
2973
2994
|
config: zt.value
|
|
2974
|
-
}, null, 8, ["dataset", "config"])) : (u(),
|
|
2995
|
+
}, null, 8, ["dataset", "config"])) : (u(), Me(v(Ka), {
|
|
2975
2996
|
key: `table_${ra.value}`,
|
|
2976
2997
|
colNames: Al.value.colNames,
|
|
2977
2998
|
head: Al.value.head,
|
|
2978
2999
|
body: Al.value.body,
|
|
2979
3000
|
config: Al.value.config,
|
|
2980
3001
|
title: `${l.value.chart.title.text}${l.value.chart.title.subtitle.text ? ` : ${l.value.chart.title.subtitle.text}` : ""}`,
|
|
2981
|
-
onClose: c[
|
|
3002
|
+
onClose: c[5] || (c[5] = (e) => f.value.showTable = !1)
|
|
2982
3003
|
}, {
|
|
2983
3004
|
th: ue(({ th: e }) => [
|
|
2984
|
-
|
|
3005
|
+
x("div", { innerHTML: e }, null, 8, Du)
|
|
2985
3006
|
]),
|
|
2986
3007
|
td: ue(({ td: e }) => [
|
|
2987
|
-
Ft(le(isNaN(Number(e)) ? e : v(
|
|
3008
|
+
Ft(le(isNaN(Number(e)) ? e : v(me)({
|
|
2988
3009
|
p: l.value.chart.labels.prefix,
|
|
2989
3010
|
v: e,
|
|
2990
3011
|
s: l.value.chart.labels.suffix,
|
|
@@ -2997,10 +3018,10 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
|
|
|
2997
3018
|
]),
|
|
2998
3019
|
_: 1
|
|
2999
3020
|
}, 8, ["config"])) : d("", !0),
|
|
3000
|
-
v(
|
|
3021
|
+
v(Xl) ? (u(), Me(co, { key: 10 })) : d("", !0)
|
|
3001
3022
|
], 46, fo));
|
|
3002
3023
|
}
|
|
3003
|
-
}, rr = /* @__PURE__ */ ho(qu, [["__scopeId", "data-v-
|
|
3024
|
+
}, rr = /* @__PURE__ */ ho(qu, [["__scopeId", "data-v-0e1aac69"]]);
|
|
3004
3025
|
export {
|
|
3005
3026
|
rr as default
|
|
3006
3027
|
};
|