vue-data-ui 3.0.0-next.7 → 3.0.0-next.9
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-Bl8urcli.js → Arrow-B6OlqyCG.js} +1 -1
- package/dist/{BaseDraggableDialog-CyhpaZU5.js → BaseDraggableDialog-CA8QOk7L.js} +2 -2
- package/dist/{BaseIcon-BCZfTCeM.js → BaseIcon-DxUUKVlt.js} +1 -1
- package/dist/{ColorPicker-CSJf42vx.js → ColorPicker-Bh1dfgXt.js} +2 -2
- package/dist/{DataTable-mQ6Wd-rR.js → DataTable--paavNqF.js} +2 -2
- package/dist/{Legend-B2hrDh4G.js → Legend-BZ06qU55.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DQ8KsK4W.js → NonSvgPenAndPaper-DN9XjEHv.js} +3 -3
- package/dist/{PackageVersion-CeEYZfaH.js → PackageVersion-2QvaZf9_.js} +1 -1
- package/dist/{PenAndPaper-DhSxfUrQ.js → PenAndPaper-hGgW0EHz.js} +3 -3
- package/dist/{Shape-C2qH26wh.js → Shape-Mr1eIp_G.js} +1 -1
- package/dist/{Slicer-BD8Z8VCW.js → Slicer-3t0HimeE.js} +2 -2
- package/dist/{SparkTooltip-BcHgW6YX.js → SparkTooltip-Czhz446b.js} +1 -1
- package/dist/{Title-B7Xb3YuE.js → Title-B2dA6-uH.js} +1 -1
- package/dist/{Tooltip-BidRoM5E.js → Tooltip-O_hCvqgF.js} +1 -1
- package/dist/{UserOptions-0tvMM8PF.js → UserOptions-Bk03FRqW.js} +2 -2
- package/dist/{dom-to-png-CTrlbKHr.js → dom-to-png-Bt5F9TXw.js} +1 -1
- package/dist/{img-D72yZNUg.js → img-C_9wps3s.js} +1 -1
- package/dist/{index-Cg-RjxqH.js → index-CgShIRes.js} +5 -2
- package/dist/{pdf-DgX01_wu.js → pdf-CXdbjyRJ.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1 -0
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useNestedProp-C_G5E08Y.js → useNestedProp-BC4Ciblw.js} +1 -1
- package/dist/{usePrinter-BUzmyQf9.js → usePrinter-rIrqBbbm.js} +2 -2
- package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DG97x2hL.js} +139 -132
- package/dist/{vue-data-ui-DpO93ey5.js → vue-data-ui-DiwfJSwC.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-D8imUwEz.js → vue-ui-3d-bar-BqmzX9u4.js} +6 -6
- package/dist/{vue-ui-accordion-CRomxzaL.js → vue-ui-accordion-hlzscmAS.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CV7gtFOC.js → vue-ui-age-pyramid-eRPt0BJb.js} +6 -6
- package/dist/{vue-ui-annotator-BAOxPiFx.js → vue-ui-annotator-BHwBUNRO.js} +2 -2
- package/dist/{vue-ui-bullet-BtuMMBF7.js → vue-ui-bullet-BSnF2gql.js} +7 -7
- package/dist/{vue-ui-candlestick-BsRtXKrv.js → vue-ui-candlestick-kMbNnoYe.js} +8 -8
- package/dist/{vue-ui-carousel-table-DVGlPZIa.js → vue-ui-carousel-table-6MTDYf-H.js} +4 -4
- package/dist/{vue-ui-chestnut-P1v4ffD0.js → vue-ui-chestnut-Cr6dK21e.js} +5 -5
- package/dist/{vue-ui-chord-CIuzYmpM.js → vue-ui-chord-Dxy_bfIE.js} +8 -8
- package/dist/{vue-ui-circle-pack-FXmemXgl.js → vue-ui-circle-pack-I_p4FPiW.js} +6 -6
- package/dist/{vue-ui-cursor-CdvMgIrP.js → vue-ui-cursor-Ch5yUxNn.js} +2 -2
- package/dist/{vue-ui-dashboard-Vke0452J.js → vue-ui-dashboard-tVZ9aEHo.js} +62 -62
- package/dist/{vue-ui-digits-BVhyYqCs.js → vue-ui-digits-BOlYLluF.js} +2 -2
- package/dist/{vue-ui-donut-BpIivKcf.js → vue-ui-donut-BKwAnTKA.js} +11 -11
- package/dist/{vue-ui-donut-evolution-BRlsCA4U.js → vue-ui-donut-evolution-DQhZJ4Sa.js} +9 -9
- package/dist/{vue-ui-dumbbell-D87Dumjh.js → vue-ui-dumbbell-DdN-7b3g.js} +7 -7
- package/dist/{vue-ui-flow-D_L_xssL.js → vue-ui-flow-MvORTthN.js} +7 -7
- package/dist/{vue-ui-funnel-BbFmbsft.js → vue-ui-funnel-CAV6A--C.js} +6 -6
- package/dist/{vue-ui-galaxy-Cn6vHbaw.js → vue-ui-galaxy-B0PLMAn8.js} +5 -5
- package/dist/{vue-ui-gauge-Ds4terqY.js → vue-ui-gauge-C4FTzDFt.js} +6 -6
- package/dist/{vue-ui-gizmo-BTncpI62.js → vue-ui-gizmo-Dl5FHFb4.js} +3 -3
- package/dist/{vue-ui-heatmap-B6GpjeWC.js → vue-ui-heatmap-C3dee43W.js} +7 -7
- package/dist/{vue-ui-history-plot-DTDzEeGq.js → vue-ui-history-plot-dqv4u1Oa.js} +7 -7
- package/dist/{vue-ui-kpi-jN_yMnLj.js → vue-ui-kpi-DjHXc1Z9.js} +3 -3
- package/dist/{vue-ui-mini-loader-rYr76x8g.js → vue-ui-mini-loader-C68r9wbr.js} +2 -2
- package/dist/{vue-ui-molecule-BWZHOQLi.js → vue-ui-molecule-DtRAlfhC.js} +5 -5
- package/dist/{vue-ui-mood-radar-CPfS6f1L.js → vue-ui-mood-radar-BZj2G0zE.js} +7 -7
- package/dist/{vue-ui-nested-donuts-Bsd2kGoJ.js → vue-ui-nested-donuts-OqJTwMb2.js} +452 -417
- package/dist/{vue-ui-onion-BQ4nISXW.js → vue-ui-onion-DXLokGec.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-BoHgVgbn.js → vue-ui-parallel-coordinate-plot-tg7QhtIE.js} +8 -8
- package/dist/{vue-ui-quadrant-BFFzfDw3.js → vue-ui-quadrant-ULvVhjjq.js} +8 -8
- package/dist/{vue-ui-quick-chart-oNMTeOAL.js → vue-ui-quick-chart-4EODniQ3.js} +7 -7
- package/dist/{vue-ui-radar-98mXFZe-.js → vue-ui-radar-Dt5p5oSy.js} +7 -7
- package/dist/{vue-ui-rating-BAauyqTn.js → vue-ui-rating-CkdVnYpj.js} +2 -2
- package/dist/{vue-ui-relation-circle-6oDCSxkO.js → vue-ui-relation-circle-_SysXj9T.js} +6 -6
- package/dist/{vue-ui-ridgeline-CugMGjOU.js → vue-ui-ridgeline-Cs5UihNN.js} +9 -9
- package/dist/{vue-ui-rings-bsGXaD2m.js → vue-ui-rings-Duay-EmS.js} +8 -8
- package/dist/{vue-ui-scatter-7ssLliGg.js → vue-ui-scatter-C6oGQcbL.js} +8 -8
- package/dist/{vue-ui-skeleton-CUOhCY4p.js → vue-ui-skeleton-BsBaCvoE.js} +3 -3
- package/dist/{vue-ui-smiley-B6SqWMov.js → vue-ui-smiley-B2sBY2Q-.js} +2 -2
- package/dist/{vue-ui-spark-trend-jauInkkN.js → vue-ui-spark-trend-CEAqGu3d.js} +3 -3
- package/dist/{vue-ui-sparkbar-DXByIxQH.js → vue-ui-sparkbar-ByPUDc6x.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BMrV2gDi.js → vue-ui-sparkgauge-C-GKwevJ.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CoNM4G7o.js → vue-ui-sparkhistogram-Dz0DdaVW.js} +4 -4
- package/dist/{vue-ui-sparkline-DrN3_wS0.js → vue-ui-sparkline-BULntz_U.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-W1a0JQi9.js → vue-ui-sparkstackbar-DXjHOeeU.js} +3 -3
- package/dist/{vue-ui-stackbar-D1-gbUgE.js → vue-ui-stackbar-CeP9n7zy.js} +10 -10
- package/dist/{vue-ui-strip-plot-KhfvrVuN.js → vue-ui-strip-plot-CaFQkWV8.js} +7 -7
- package/dist/{vue-ui-table-Dwjl3L0p.js → vue-ui-table-DaE8lQuo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DazTE3fa.js → vue-ui-table-heatmap--dSEG8cU.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BXMPUEpN.js → vue-ui-table-sparkline-D4DkGvDP.js} +4 -4
- package/dist/{vue-ui-thermometer-Cn6lJRs3.js → vue-ui-thermometer-BXf14CYH.js} +6 -6
- package/dist/{vue-ui-timer-yLvNAZL_.js → vue-ui-timer-CYXTAh6x.js} +5 -5
- package/dist/{vue-ui-tiremarks-BYsWePfK.js → vue-ui-tiremarks-D6hJ1cd4.js} +6 -6
- package/dist/{vue-ui-treemap-Ce7RVFG3.js → vue-ui-treemap-tBurCrdn.js} +8 -8
- package/dist/{vue-ui-vertical-bar-BrYCoVym.js → vue-ui-vertical-bar-CO9eR1ty.js} +14 -14
- package/dist/{vue-ui-waffle-CCrR2T1G.js → vue-ui-waffle-BNzs_BxY.js} +8 -8
- package/dist/{vue-ui-wheel-BuxjnrDN.js → vue-ui-wheel-tydUATi8.js} +6 -6
- package/dist/{vue-ui-word-cloud-C6fawHJE.js → vue-ui-word-cloud-DUUc_tj6.js} +6 -6
- package/dist/{vue-ui-world-B4Dqrk4l.js → vue-ui-world-P45Plcqw.js} +6 -6
- package/dist/{vue-ui-xy-ubRnv9iJ.js → vue-ui-xy--HToGdle.js} +195 -193
- package/dist/{vue-ui-xy-canvas-D7fL36kT.js → vue-ui-xy-canvas-DgNBgUak.js} +9 -9
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineAsyncComponent as Fe, useSlots as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as oa } from "./useNestedProp-
|
|
4
|
-
import { u as eo } from "./useTimeLabels-
|
|
5
|
-
import { S as lo } from "./Slicer-
|
|
6
|
-
import ao from "./Title-
|
|
7
|
-
import { _ as Ol } from "./Shape-
|
|
8
|
-
import to from "./img-
|
|
9
|
-
import { u as oo } from "./usePrinter-
|
|
1
|
+
import { defineAsyncComponent as Fe, useSlots as Tt, getCurrentInstance as Ot, ref as w, computed as A, onMounted as ea, toRefs as Nt, onBeforeUnmount as Fa, watch as Cl, nextTick as Se, createElementBlock as r, openBlock as u, normalizeStyle as z, normalizeClass as Ke, createBlock as Ie, createCommentVNode as d, createVNode as yl, unref as c, createSlots as Vt, withCtx as se, renderSlot as U, normalizeProps as Qe, guardReactiveProps as je, createElementVNode as g, Fragment as h, renderList as m, toDisplayString as j, mergeProps as la, withDirectives as Pt, vModelCheckbox as Ht, createTextVNode as Rt } from "vue";
|
|
2
|
+
import { u as Bt, c as aa, e as ta, A as Yt, a5 as Ee, b as Ft, D as pl, ab as el, d as Et, p as Wt, ac as Il, ad as Gt, v as T, ae as Ea, V as Wa, af as Ga, U as Xa, ag as Xt, ah as Da, ai as Ua, x as Dt, y as Ut, _ as qa, R as Te, i as ce, f as me, aa as H, w as ll, s as $e, a8 as W, L as qt, F as We, aj as Tl, I as Zt, ak as Ge, C as ul, t as Jt, a as Kt, o as Za, q as Qt, r as jt, E as il } from "./index-CgShIRes.js";
|
|
3
|
+
import { u as oa } from "./useNestedProp-BC4Ciblw.js";
|
|
4
|
+
import { u as eo } from "./useTimeLabels-DG97x2hL.js";
|
|
5
|
+
import { S as lo } from "./Slicer-3t0HimeE.js";
|
|
6
|
+
import ao from "./Title-B2dA6-uH.js";
|
|
7
|
+
import { _ as Ol } from "./Shape-Mr1eIp_G.js";
|
|
8
|
+
import to from "./img-C_9wps3s.js";
|
|
9
|
+
import { u as oo } from "./usePrinter-rIrqBbbm.js";
|
|
10
10
|
import { u as so, B as uo } from "./useLoading-Bt5Doa8m.js";
|
|
11
11
|
import { _ as io } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "width", "height"], vo = { key: 1 }, ho = { class: "vue-ui-xy-grid" }, fo = ["stroke", "x1", "x2", "y1", "y2"], go = ["stroke", "x1", "x2", "y1", "y2"], xo = { key: 1 }, bo = ["x1", "x2", "y1", "y2", "stroke"], mo = ["x1", "x2", "y1", "y2", "stroke"], yo = ["x1", "x2", "y1", "y2", "stroke"], po = { key: 3 }, ko = ["x1", "x2", "y1", "y2", "stroke"], _o = { key: 4 }, wo = ["y1", "y2", "x1", "x2", "stroke"], So = ["id"], $o = ["stop-color"], Lo = ["stop-color"], Ao = ["stop-color"], Mo = ["id"], zo = ["stop-color"], Co = ["stop-color"], Io = ["stop-color"], To = ["id"], Oo = ["stop-color"], No = ["stop-color"], Vo = ["id"], Po = ["stop-color"], Ho = ["stop-color"], Ro = ["id"], Bo = ["stop-color"], Yo = ["stop-color"], Fo = ["x", "y", "height", "width", "fill"], Eo = ["x", "y", "width"], Wo = ["x", "y", "height", "width", "fill"], Go = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Xo = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Do = ["width", "x", "y"], Uo = { key: 0 }, qo = ["id"], Zo = ["fill"], Jo = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Ko = ["x", "y", "font-size", "fill"], Qo = ["stroke", "x1", "x2", "y1", "y2"], jo = { key: 2 }, es = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ls = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], as = {
|
|
@@ -73,22 +73,22 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
emits: ["selectTimeLabel", "selectX", "selectLegend"],
|
|
76
|
-
setup(Nl, { expose:
|
|
77
|
-
const y = Nl,
|
|
76
|
+
setup(Nl, { expose: Ja, emit: Ka }) {
|
|
77
|
+
const y = Nl, Qa = Fe(() => import("./DataTable--paavNqF.js")), ja = Fe(() => import("./Tooltip-O_hCvqgF.js")), et = Fe(() => import("./UserOptions-Bk03FRqW.js")), lt = Fe(() => import("./BaseIcon-DxUUKVlt.js")), at = Fe(() => import("./vue-ui-table-sparkline-D4DkGvDP.js")), tt = Fe(() => import("./vue-ui-accordion-hlzscmAS.js")), ot = Fe(() => import("./PackageVersion-2QvaZf9_.js")), st = Fe(() => import("./PenAndPaper-hGgW0EHz.js")), Vl = Ka, sa = Tt(), ut = Ot(), { vue_ui_xy: Pl } = Bt(), ge = w(null), rl = w(null), Le = w(null), al = w(null), nl = w(null), cl = w(null), ua = w(null), Hl = w(null), Rl = w(null), Bl = w(null), Xe = w(null), Yl = w(null), Fl = w(0), M = w(null), ia = w(!0), ue = w(600), Z = w(1e3), De = w("0 0 1000 600"), it = w({ x: 0, y: 0 }), vl = w({ line: "line", bar: "bar", plot: "plot" }), kl = w(!1), tl = w(!1), ra = w(!1), k = w(null), Ue = w(null), ae = w([]), q = w(aa()), na = w(0), ca = w(0), va = w(0), dl = w(!0), El = w(0), O = w(null), da = w(!1), Wl = w(!0), _l = w(!0), ye = w(null), Oe = w({}), wl = w(null), ha = w(0), rt = w(1), nt = A(() => ({
|
|
78
78
|
height: ue.value,
|
|
79
79
|
width: Z.value
|
|
80
|
-
})),
|
|
80
|
+
})), ct = y.config.downsample && y.config.downsample.threshold ? y.config.downsample.threshold : 500, f = w({
|
|
81
81
|
dataLabels: { show: !0 },
|
|
82
82
|
showTooltip: !0,
|
|
83
83
|
showTable: !1,
|
|
84
84
|
isStacked: !1,
|
|
85
85
|
useIndividualScale: !1
|
|
86
|
-
}), x =
|
|
86
|
+
}), x = w({
|
|
87
87
|
xAxis: 18,
|
|
88
88
|
yAxis: 12,
|
|
89
89
|
dataLabels: 20,
|
|
90
90
|
plotLabels: 10
|
|
91
|
-
}), Ae =
|
|
91
|
+
}), Ae = w({ plot: 3, line: 3 });
|
|
92
92
|
ea(() => {
|
|
93
93
|
y.dataset.length && y.dataset.forEach((a, v) => {
|
|
94
94
|
[null, void 0].includes(a.series) && ta({
|
|
@@ -130,8 +130,8 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
130
130
|
set(a) {
|
|
131
131
|
return a;
|
|
132
132
|
}
|
|
133
|
-
}), e =
|
|
134
|
-
...
|
|
133
|
+
}), e = w(Gl()), { loading: Dl, FINAL_DATASET: Ne, manualLoading: Sl } = so({
|
|
134
|
+
...Nt(y),
|
|
135
135
|
FINAL_CONFIG: e,
|
|
136
136
|
prepareConfig: Gl,
|
|
137
137
|
callback: () => {
|
|
@@ -154,7 +154,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
154
154
|
color: "#CACACA"
|
|
155
155
|
}
|
|
156
156
|
],
|
|
157
|
-
skeletonConfig:
|
|
157
|
+
skeletonConfig: Yt({
|
|
158
158
|
defaultConfig: e.value,
|
|
159
159
|
userConfig: {
|
|
160
160
|
autoSize: !1,
|
|
@@ -163,7 +163,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
163
163
|
chart: {
|
|
164
164
|
annotations: [],
|
|
165
165
|
highlightArea: [],
|
|
166
|
-
backgroundColor: "#
|
|
166
|
+
backgroundColor: "#99999930",
|
|
167
167
|
grid: {
|
|
168
168
|
stroke: "#6A6A6A",
|
|
169
169
|
labels: {
|
|
@@ -211,21 +211,21 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
211
211
|
}
|
|
212
212
|
})
|
|
213
213
|
}), He = A({
|
|
214
|
-
get: () => Math.max(...Ne.value.map((a) => Ee({ data: a.series, threshold:
|
|
214
|
+
get: () => Math.max(...Ne.value.map((a) => Ee({ data: a.series, threshold: ct }).length)),
|
|
215
215
|
set: (a) => a
|
|
216
|
-
}),
|
|
216
|
+
}), _ = w({ start: 0, end: He.value }), { isPrinting: Ul, isImaging: fa, generatePdf: ga, generateImage: xa } = oo({
|
|
217
217
|
elementId: `vue-ui-xy_${q.value}`,
|
|
218
218
|
fileName: e.value.chart.title.text || "vue-ui-xy",
|
|
219
219
|
options: e.value.chart.userOptions.print
|
|
220
220
|
}), G = A(() => e.value.autoSize), ql = A(() => {
|
|
221
221
|
const [a, v, l, s] = De.value.split(" ").map(Number);
|
|
222
222
|
return { x: a, y: v, width: l, height: s };
|
|
223
|
-
}), ba = A(() =>
|
|
223
|
+
}), ba = A(() => Ft(e.value.customPalette)), $l = A(() => e.value.chart.grid.labels.yAxis.scaleMax ? e.value.chart.grid.labels.yAxis.scaleMax : Math.max(...Ve.value.filter((a) => !ae.value.includes(a.id)).map((a) => Math.max(...a.series)))), Zl = A(() => {
|
|
224
224
|
if (e.value.chart.grid.labels.yAxis.scaleMin !== null)
|
|
225
225
|
return e.value.chart.grid.labels.yAxis.scaleMin;
|
|
226
226
|
const a = Math.min(...Ve.value.filter((v) => !ae.value.includes(v.id)).map((v) => Math.min(...v.series)));
|
|
227
227
|
return a > 0 ? 0 : a;
|
|
228
|
-
}), pe = A(() => e.value.chart.grid.labels.yAxis.useNiceScale ?
|
|
228
|
+
}), pe = A(() => e.value.chart.grid.labels.yAxis.useNiceScale ? pl(Zl.value, $l.value < 0 ? 0 : $l.value, e.value.chart.grid.labels.yAxis.commonScaleSteps) : el(Zl.value, $l.value < 0 ? 0 : $l.value, e.value.chart.grid.labels.yAxis.commonScaleSteps)), hl = A(() => [null, void 0].includes(e.value.chart.grid.labels.yAxis.scaleMin) ? pe.value.min >= 0 ? 0 : Math.abs(pe.value.min) : -pe.value.min), Ve = A(() => ia.value ? Ne.value.map((a, v) => {
|
|
229
229
|
const l = Ee({
|
|
230
230
|
data: a.series,
|
|
231
231
|
threshold: e.value.downsample.threshold
|
|
@@ -233,8 +233,8 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
233
233
|
return {
|
|
234
234
|
...a,
|
|
235
235
|
slotAbsoluteIndex: v,
|
|
236
|
-
series: l.map((t) => Il(t) ? t : null).slice(
|
|
237
|
-
color:
|
|
236
|
+
series: l.map((t) => Il(t) ? t : null).slice(_.value.start, _.value.end),
|
|
237
|
+
color: Et(a.color ? a.color : ba.value[v] ? ba.value[v] : Wt[v]),
|
|
238
238
|
id: s,
|
|
239
239
|
scaleLabel: a.scaleLabel || s
|
|
240
240
|
};
|
|
@@ -268,27 +268,27 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
268
268
|
};
|
|
269
269
|
});
|
|
270
270
|
function ma() {
|
|
271
|
-
return !!
|
|
271
|
+
return !!ut?.vnode.props?.onSelectTimeLabel;
|
|
272
272
|
}
|
|
273
|
-
function
|
|
274
|
-
if (!
|
|
273
|
+
function vt(a, v, l) {
|
|
274
|
+
if (!wl.value) {
|
|
275
275
|
const s = document.createElement("canvas");
|
|
276
|
-
|
|
276
|
+
wl.value = s.getContext("2d");
|
|
277
277
|
}
|
|
278
|
-
return
|
|
278
|
+
return wl.value.font = `normal ${a}px sans-serif`, wl.value;
|
|
279
279
|
}
|
|
280
280
|
function ya() {
|
|
281
281
|
const a = ge.value.querySelectorAll(".vue-ui-xy-tag");
|
|
282
282
|
a.length && Array.from(a).forEach((v) => v.style.opacity = "0");
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function Ll(a, v, l, s, t) {
|
|
285
285
|
l && (Oe.value[`${a}_${v}_${s}_${t}`] = l);
|
|
286
286
|
}
|
|
287
287
|
function pa(a = !1) {
|
|
288
|
-
da.value && (
|
|
288
|
+
da.value && (_l.value = a);
|
|
289
289
|
}
|
|
290
290
|
function Jl() {
|
|
291
|
-
|
|
291
|
+
kl.value = !kl.value;
|
|
292
292
|
}
|
|
293
293
|
const de = A(() => {
|
|
294
294
|
const a = Math.max(...Ne.value.map((v) => Ee({ data: v.series, threshold: e.value.downsample.threshold }).length));
|
|
@@ -296,8 +296,8 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
296
296
|
values: e.value.chart.grid.labels.xAxisLabels.values,
|
|
297
297
|
maxDatapoints: a,
|
|
298
298
|
formatter: e.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
299
|
-
start:
|
|
300
|
-
end:
|
|
299
|
+
start: _.value.start,
|
|
300
|
+
end: _.value.end
|
|
301
301
|
});
|
|
302
302
|
});
|
|
303
303
|
function ka(a, v) {
|
|
@@ -317,21 +317,21 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
317
317
|
label: a.text
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
|
-
const b = A(() =>
|
|
321
|
-
async function
|
|
320
|
+
const b = A(() => _.value.end - _.value.start);
|
|
321
|
+
async function dt() {
|
|
322
322
|
if (!Hl.value) return;
|
|
323
323
|
await Se();
|
|
324
324
|
let a = i.value.bottom;
|
|
325
325
|
Bl.value && (a += Bl.value.getBBox().height), Hl.value.setAttribute("y", a + x.value.xAxis * 1.3 + e.value.chart.grid.labels.axis.xLabelOffsetY);
|
|
326
326
|
}
|
|
327
|
-
async function
|
|
327
|
+
async function ht() {
|
|
328
328
|
Rl.value && (await Se(), Rl.value.setAttribute("transform", `translate(${ql.value.x + e.value.chart.grid.labels.axis.yLabelOffsetX + x.value.yAxis}, ${i.value.top + i.value.height / 2}) rotate(-90)`));
|
|
329
329
|
}
|
|
330
330
|
async function ol() {
|
|
331
331
|
await Se();
|
|
332
332
|
const a = ua.value;
|
|
333
333
|
if (!a) return;
|
|
334
|
-
De.value = `0 0 ${e.value.chart.width} ${e.value.chart.height}`,
|
|
334
|
+
De.value = `0 0 ${e.value.chart.width} ${e.value.chart.height}`, dt(), await Se(), ht();
|
|
335
335
|
const v = a.getBBox();
|
|
336
336
|
De.value = `${v.x} ${v.y - x.value.plotLabels} ${v.width + e.value.chart.padding.left} ${v.height + x.value.plotLabels + e.value.chart.padding.top}`, await Se(), ge.value.classList.remove("no-transition");
|
|
337
337
|
}
|
|
@@ -346,7 +346,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function ft(a) {
|
|
350
350
|
O.value = a;
|
|
351
351
|
}
|
|
352
352
|
function _a() {
|
|
@@ -355,23 +355,23 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
355
355
|
function Ql(a) {
|
|
356
356
|
xl.value && a.autoScaling && (e.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`), e.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`));
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function gt(a, v) {
|
|
359
359
|
let l = Array(a).fill(0);
|
|
360
360
|
for (let s = 0; s < v.length && s < a; s += 1)
|
|
361
361
|
l[s] = v[s];
|
|
362
362
|
return l;
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function xt(a) {
|
|
365
365
|
const v = Math.max(...Ne.value.map((l) => Ee({ data: l.series, threshold: e.value.downsample.threshold }).length));
|
|
366
366
|
return a > v ? v : a < 0 || e.value.chart.zoom.startIndex !== null && a < e.value.chart.zoom.startIndex ? e.value.chart.zoom.startIndex !== null ? e.value.chart.zoom.startIndex + 1 : 1 : a;
|
|
367
367
|
}
|
|
368
368
|
async function jl() {
|
|
369
|
-
(e.value.chart.zoom.startIndex !== null || e.value.chart.zoom.endIndex !== null) && Le.value ? (e.value.chart.zoom.startIndex !== null && (await Se(), await Se(), Le.value.setStartValue(e.value.chart.zoom.startIndex)), e.value.chart.zoom.endIndex !== null && (await Se(), await Se(), Le.value.setEndValue(
|
|
369
|
+
(e.value.chart.zoom.startIndex !== null || e.value.chart.zoom.endIndex !== null) && Le.value ? (e.value.chart.zoom.startIndex !== null && (await Se(), await Se(), Le.value.setStartValue(e.value.chart.zoom.startIndex)), e.value.chart.zoom.endIndex !== null && (await Se(), await Se(), Le.value.setEndValue(xt(e.value.chart.zoom.endIndex + 1)))) : (_.value = {
|
|
370
370
|
start: 0,
|
|
371
371
|
end: Math.max(...Ne.value.map((a) => Ee({ data: a.series, threshold: e.value.downsample.threshold }).length))
|
|
372
372
|
}, Fl.value += 1);
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function bt() {
|
|
375
375
|
jl();
|
|
376
376
|
}
|
|
377
377
|
function xe(a) {
|
|
@@ -397,7 +397,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
397
397
|
function _e() {
|
|
398
398
|
return f.value.useIndividualScale && f.value.isStacked ? J.value.line - i.value.width / b.value * 0.1 : J.value.bar;
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function Al(a) {
|
|
401
401
|
return f.value.useIndividualScale && f.value.isStacked ? a.x + i.value.width / b.value * 0.05 : a.x + J.value.bar / 2;
|
|
402
402
|
}
|
|
403
403
|
function La(a) {
|
|
@@ -406,7 +406,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
406
406
|
function Aa(a) {
|
|
407
407
|
return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(a.zeroPosition) ? 0 : a.zeroPosition;
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function mt(a) {
|
|
410
410
|
Vl(
|
|
411
411
|
"selectX",
|
|
412
412
|
{
|
|
@@ -421,7 +421,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
421
421
|
}
|
|
422
422
|
);
|
|
423
423
|
}
|
|
424
|
-
function
|
|
424
|
+
function yt() {
|
|
425
425
|
return Me.value.map((a) => ({
|
|
426
426
|
values: a.absoluteValues,
|
|
427
427
|
color: a.color,
|
|
@@ -429,7 +429,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
429
429
|
type: a.type
|
|
430
430
|
}));
|
|
431
431
|
}
|
|
432
|
-
async function
|
|
432
|
+
async function pt({ scale: a = 2 } = {}) {
|
|
433
433
|
if (!ge.value) return;
|
|
434
434
|
const { width: v, height: l } = ge.value.getBoundingClientRect(), s = v / l, { imageUri: t, base64: n } = await to({ domElement: ge.value, base64: !0, img: !0, scale: a });
|
|
435
435
|
return {
|
|
@@ -455,12 +455,12 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
455
455
|
type: v.type
|
|
456
456
|
}))), El.value += 1;
|
|
457
457
|
}
|
|
458
|
-
const
|
|
458
|
+
const kt = A(() => {
|
|
459
459
|
const a = e.value.chart.title.text || "Chart visualization", v = e.value.chart.title.subtitle.text || "";
|
|
460
460
|
return `${a}. ${v}`;
|
|
461
461
|
}), za = A(() => ({
|
|
462
462
|
linePlot: b.value > e.value.line.dot.hideAboveMaxSerieLength
|
|
463
|
-
})),
|
|
463
|
+
})), _t = A(() => e.value.chart.userOptions.show && (!e.value.chart.title.show || !e.value.chart.title.text)), wt = A(() => {
|
|
464
464
|
if (Array.isArray(e.value.chart.highlightArea))
|
|
465
465
|
return e.value.chart.highlightArea.map((v) => {
|
|
466
466
|
const l = Math.min(v.to, He.value - 1);
|
|
@@ -474,22 +474,22 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
474
474
|
to: Math.min(e.value.chart.highlightArea.to, He.value - 1)
|
|
475
475
|
};
|
|
476
476
|
return [{ ...a, span: a.from === a.to ? 1 : a.to < a.from ? 0 : a.to - a.from + 1 }];
|
|
477
|
-
}),
|
|
477
|
+
}), St = A(() => ia.value ? Ne.value.map((a, v) => ({
|
|
478
478
|
...a,
|
|
479
479
|
series: Ee({
|
|
480
480
|
data: a.series,
|
|
481
481
|
threshold: e.value.downsample.threshold
|
|
482
482
|
}),
|
|
483
483
|
id: `uniqueId_${v}`
|
|
484
|
-
})) : Ne.value),
|
|
484
|
+
})) : Ne.value), $t = A(() => ke.value.map((a) => {
|
|
485
485
|
const v = a.absoluteValues.map((l) => [void 0, null].includes(l) ? 0 : l);
|
|
486
486
|
return {
|
|
487
487
|
id: a.id,
|
|
488
488
|
name: a.name,
|
|
489
489
|
color: a.color,
|
|
490
|
-
values:
|
|
490
|
+
values: gt(b.value, v)
|
|
491
491
|
};
|
|
492
|
-
})),
|
|
492
|
+
})), Lt = A(() => ({
|
|
493
493
|
responsiveBreakpoint: e.value.table.responsiveBreakpoint,
|
|
494
494
|
roundingValues: e.value.table.rounding,
|
|
495
495
|
showAverage: !1,
|
|
@@ -512,7 +512,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
512
512
|
userOptions: {
|
|
513
513
|
show: !1
|
|
514
514
|
}
|
|
515
|
-
})), B = A(() => e.value.chart.grid.position === "middle" ? 0 : i.value.width / b.value / 2), Ze = A(() =>
|
|
515
|
+
})), B = A(() => e.value.chart.grid.position === "middle" ? 0 : i.value.width / b.value / 2), Ze = A(() => Gt(Me.value.filter((a) => !ae.value.includes(a.id)))), p = A(() => {
|
|
516
516
|
const a = Object.groupBy(Ze.value, (l) => l.scaleLabel), v = {};
|
|
517
517
|
for (const [l, s] of Object.entries(a)) {
|
|
518
518
|
const t = s.flatMap((n) => n.absoluteValues);
|
|
@@ -523,12 +523,12 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
523
523
|
};
|
|
524
524
|
}
|
|
525
525
|
return v;
|
|
526
|
-
}),
|
|
526
|
+
}), At = A(() => {
|
|
527
527
|
const a = Ve.value.filter((v) => v.type === "bar").filter((v) => !ae.value.includes(v.id)).length;
|
|
528
528
|
return i.value.width / b.value / a - Pe.value * a;
|
|
529
|
-
}), Pe = A(() => J.value.line * e.value.bar.periodGap),
|
|
529
|
+
}), Pe = A(() => J.value.line * e.value.bar.periodGap), Mt = A(() => {
|
|
530
530
|
if (!e.value.chart.zoom.minimap.show) return [];
|
|
531
|
-
const a =
|
|
531
|
+
const a = St.value.filter((t) => !ae.value.includes(t.id)), v = Math.max(...a.map((t) => t.series.length)), l = [];
|
|
532
532
|
for (let t = 0; t < v; t += 1)
|
|
533
533
|
l.push(a.map((n) => n.series[t] || 0).reduce((n, o) => (n || 0) + (o || 0), 0));
|
|
534
534
|
const s = Math.min(...l);
|
|
@@ -560,12 +560,12 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
560
560
|
return t - I * n;
|
|
561
561
|
};
|
|
562
562
|
return v.map(($) => {
|
|
563
|
-
const { yAxis: { yTop: I, yBottom: X, label:
|
|
564
|
-
re.font = `${
|
|
565
|
-
const D = re.measureText(
|
|
563
|
+
const { yAxis: { yTop: I, yBottom: X, label: S } } = $, R = I != null && X != null && I !== X, L = I == null ? null : ee(I), te = X == null ? null : ee(X), re = vt(S.fontSize);
|
|
564
|
+
re.font = `${S.fontSize}px sans-serif`;
|
|
565
|
+
const D = re.measureText(S.text).width, be = S.fontSize, Ce = (S.position === "start" ? l + S.padding.left : s - S.padding.right) + S.offsetX, he = (L != null && te != null ? Math.min(L, te) : L ?? te) - S.fontSize / 3 + S.offsetY - S.padding.top;
|
|
566
566
|
let V;
|
|
567
|
-
|
|
568
|
-
const P = he - be * 0.75 -
|
|
567
|
+
S.textAnchor === "middle" ? V = Ce - D / 2 - S.padding.left : S.textAnchor === "end" ? V = Ce - D - S.padding.right : V = Ce - S.padding.left;
|
|
568
|
+
const P = he - be * 0.75 - S.padding.top;
|
|
569
569
|
return {
|
|
570
570
|
show: ![L, te, P].includes(NaN),
|
|
571
571
|
id: `annotation_y_${aa()}`,
|
|
@@ -580,13 +580,13 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
580
580
|
_box: {
|
|
581
581
|
x: V,
|
|
582
582
|
y: P,
|
|
583
|
-
width: D +
|
|
584
|
-
height: be +
|
|
585
|
-
fill:
|
|
586
|
-
stroke:
|
|
587
|
-
rx:
|
|
588
|
-
ry:
|
|
589
|
-
strokeWidth:
|
|
583
|
+
width: D + S.padding.left + S.padding.right,
|
|
584
|
+
height: be + S.padding.top + S.padding.bottom,
|
|
585
|
+
fill: S.backgroundColor,
|
|
586
|
+
stroke: S.border.stroke,
|
|
587
|
+
rx: S.border.rx,
|
|
588
|
+
ry: S.border.ry,
|
|
589
|
+
strokeWidth: S.border.strokeWidth
|
|
590
590
|
}
|
|
591
591
|
};
|
|
592
592
|
});
|
|
@@ -602,8 +602,8 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
602
602
|
}, I = {
|
|
603
603
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
604
604
|
min: o.scaleMin || Math.min(...o.absoluteValues.filter((N) => ![void 0, null].includes(N))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((N) => ![null, void 0].includes(N)))
|
|
605
|
-
}, X = o.scaleSteps || e.value.chart.grid.labels.yAxis.commonScaleSteps,
|
|
606
|
-
const Ye = f.value.useIndividualScale ? (o.absoluteValues[le] + te) / D : qe(N), Je = f.value.useIndividualScale && f.value.isStacked ? i.value.left + i.value.width / b.value * le : i.value.left + J.value.bar * Y + J.value.bar * le *
|
|
605
|
+
}, X = o.scaleSteps || e.value.chart.grid.labels.yAxis.commonScaleSteps, S = 1.0000001, R = e.value.chart.grid.labels.yAxis.useNiceScale ? pl(I.min, I.max === I.min ? I.max * S : I.max, X) : el(I.min, I.max === I.min ? I.max * S : I.max, X), L = e.value.chart.grid.labels.yAxis.useNiceScale ? pl($.valueMin, $.valueMax === $.valueMin ? $.valueMax * S : $.valueMax, X) : el($.valueMin, $.valueMax === $.valueMin ? $.valueMax * S : $.valueMax, X), te = R.min >= 0 ? 0 : Math.abs(R.min), re = 0, D = R.max + te, be = L.max + Math.abs(re), Ce = o.stackIndex, sl = v - 1 - Ce, he = s ? 1 - o.cumulatedStackRatio : 0, V = s ? n * he + l * sl : 0, P = s ? n * o.stackRatio : i.value.height, K = i.value.bottom - V - P * te / D, fe = i.value.bottom - V - P * re / be, ne = Me.value.filter((N) => N.type === "bar").filter((N) => !ae.value.includes(N.id)).length, bl = o.series.map((N, le) => {
|
|
606
|
+
const Ye = f.value.useIndividualScale ? (o.absoluteValues[le] + te) / D : qe(N), Je = f.value.useIndividualScale && f.value.isStacked ? i.value.left + i.value.width / b.value * le : i.value.left + J.value.bar * Y + J.value.bar * le * ne - At.value / 2 - Y * Pe.value;
|
|
607
607
|
return {
|
|
608
608
|
yOffset: T(V),
|
|
609
609
|
individualHeight: T(P),
|
|
@@ -612,7 +612,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
612
612
|
value: o.absoluteValues[le],
|
|
613
613
|
zeroPosition: T(K),
|
|
614
614
|
individualMax: T(D),
|
|
615
|
-
comment: o.comments && o.comments.slice(
|
|
615
|
+
comment: o.comments && o.comments.slice(_.value.start, _.value.end)[le] || ""
|
|
616
616
|
};
|
|
617
617
|
}), ve = o.absoluteValues.map((N) => L.min >= 0 ? (N - Math.abs(L.min)) / (L.max - Math.abs(L.min)) : (N + Math.abs(L.min)) / (L.max + Math.abs(L.min))), Be = o.series.map((N, le) => {
|
|
618
618
|
const Ye = f.value.useIndividualScale && f.value.isStacked ? i.value.left + i.value.width / b.value * le : i.value.left - J.value.bar / 2 + J.value.bar * Y + J.value.bar * le * Me.value.filter((Je) => Je.type === "bar").filter((Je) => !ae.value.includes(Je.id)).length;
|
|
@@ -624,7 +624,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
624
624
|
value: o.absoluteValues[le],
|
|
625
625
|
zeroPosition: T(K),
|
|
626
626
|
individualMax: T(D),
|
|
627
|
-
comment: o.comments && o.comments.slice(
|
|
627
|
+
comment: o.comments && o.comments.slice(_.value.start, _.value.end)[le] || ""
|
|
628
628
|
};
|
|
629
629
|
}), E = R.ticks.map((N) => ({
|
|
630
630
|
y: N >= 0 ? K - P * (N / D) : K + P * Math.abs(N) / D,
|
|
@@ -667,25 +667,25 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
667
667
|
}, I = {
|
|
668
668
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
669
669
|
min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
|
|
670
|
-
}, X = o.scaleSteps || e.value.chart.grid.labels.yAxis.commonScaleSteps,
|
|
671
|
-
const
|
|
670
|
+
}, X = o.scaleSteps || e.value.chart.grid.labels.yAxis.commonScaleSteps, S = 1.0000001, R = e.value.chart.grid.labels.yAxis.useNiceScale ? pl(I.min, I.max === I.min ? I.max * S : I.max, X) : el(I.min, I.max === I.min ? I.max * S : I.max, X), L = e.value.chart.grid.labels.yAxis.useNiceScale ? pl($.valueMin, $.valueMax === $.valueMin ? $.valueMax * S : $.valueMax, X) : el($.valueMin, $.valueMax === $.valueMin ? $.valueMax * S : $.valueMax, X), te = R.min >= 0 ? 0 : Math.abs(R.min), re = 0, D = R.max + Math.abs(te), be = L.max + Math.abs(re), Ce = o.stackIndex, sl = v - 1 - Ce, he = s ? 1 - o.cumulatedStackRatio : 0, V = s ? n * he + l * sl : 0, P = s ? n * o.stackRatio : i.value.height, K = i.value.bottom - V - P * te / D, fe = i.value.bottom - V - P * re / be, ne = o.series.map((C, oe) => {
|
|
671
|
+
const It = f.value.useIndividualScale ? (o.absoluteValues[oe] + Math.abs(te)) / D : qe(C);
|
|
672
672
|
return {
|
|
673
673
|
x: T(i.value.left + J.value.line / 2 + J.value.line * oe),
|
|
674
|
-
y: T(i.value.bottom - V - P *
|
|
674
|
+
y: T(i.value.bottom - V - P * It),
|
|
675
675
|
value: o.absoluteValues[oe],
|
|
676
|
-
comment: o.comments && o.comments.slice(
|
|
676
|
+
comment: o.comments && o.comments.slice(_.value.start, _.value.end)[oe] || ""
|
|
677
677
|
};
|
|
678
678
|
}), bl = o.absoluteValues.map((C) => L.min >= 0 ? (C - Math.abs(L.min)) / (L.max - Math.abs(L.min)) : (C + Math.abs(L.min)) / (L.max + Math.abs(L.min))), ve = o.series.map((C, oe) => [void 0, null].includes(o.absoluteValues[oe]) ? {
|
|
679
679
|
x: T(i.value.left + J.value.line / 2 + J.value.line * oe),
|
|
680
680
|
y: K,
|
|
681
681
|
value: o.absoluteValues[oe],
|
|
682
|
-
comment: o.comments && o.comments.slice(
|
|
682
|
+
comment: o.comments && o.comments.slice(_.value.start, _.value.end)[oe] || ""
|
|
683
683
|
} : {
|
|
684
684
|
x: T(i.value.left + J.value.line / 2 + J.value.line * oe),
|
|
685
685
|
y: T(i.value.bottom - V - (P * bl[oe] || 0)),
|
|
686
686
|
value: o.absoluteValues[oe],
|
|
687
|
-
comment: o.comments && o.comments.slice(
|
|
688
|
-
}), Be = e.value.line.cutNullValues ? Ea(
|
|
687
|
+
comment: o.comments && o.comments.slice(_.value.start, _.value.end)[oe] || ""
|
|
688
|
+
}), Be = e.value.line.cutNullValues ? Ea(ne) : Wa(ne.filter((C) => C.value !== null)), E = e.value.line.cutNullValues ? Ea(ve) : Wa(ve.filter((C) => C.value !== null)), Q = e.value.line.cutNullValues ? Ga(ne) : Xa(ne.filter((C) => C.value !== null)), N = e.value.line.cutNullValues ? Ga(ve) : Xa(ve.filter((C) => C.value !== null)), le = R.ticks.map((C) => ({
|
|
689
689
|
y: C >= 0 ? K - P * (C / D) : K + P * Math.abs(C) / D,
|
|
690
690
|
value: C,
|
|
691
691
|
prefix: o.prefix || e.value.chart.labels.prefix,
|
|
@@ -702,7 +702,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
702
702
|
};
|
|
703
703
|
});
|
|
704
704
|
p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = e.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Ye : le, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? fe : K, p.value[o.scaleLabel].individualMax = o.autoScaling ? be : D, p.value[o.scaleLabel].scaleLabel = o.scaleLabel, p.value[o.scaleLabel].id = o.id, p.value[o.scaleLabel].yOffset = V, p.value[o.scaleLabel].individualHeight = P, p.value[o.scaleLabel].autoScaleYLabels = Ye, p.value[o.scaleLabel].unique = Ze.value.filter((C) => C.scaleLabel === o.scaleLabel).length === 1;
|
|
705
|
-
const Je = f.value.useIndividualScale ? o.autoScaling ? fe : K : ie.value,
|
|
705
|
+
const Je = f.value.useIndividualScale ? o.autoScaling ? fe : K : ie.value, ml = Math.max(Math.max(o.autoScaling ? fe : le.at(-1).y || 0, i.value.top), Je);
|
|
706
706
|
return {
|
|
707
707
|
...o,
|
|
708
708
|
yOffset: V,
|
|
@@ -713,17 +713,17 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
713
713
|
individualMax: o.autoScaling ? be : D,
|
|
714
714
|
zeroPosition: o.autoScaling ? fe : K,
|
|
715
715
|
curve: o.autoScaling ? E : Be,
|
|
716
|
-
plots: o.autoScaling ? ve :
|
|
717
|
-
area: o.useArea ? f.value.useIndividualScale ? e.value.line.cutNullValues ?
|
|
718
|
-
o.autoScaling ? ve :
|
|
719
|
-
|
|
720
|
-
) :
|
|
721
|
-
o.autoScaling ? ve.filter((C) => C.value !== null) :
|
|
722
|
-
|
|
723
|
-
) : Da(
|
|
724
|
-
curveAreas: o.useArea ?
|
|
725
|
-
o.autoScaling ? e.value.line.cutNullValues ? ve : ve.filter((C) => C.value !== null) : e.value.line.cutNullValues ?
|
|
726
|
-
|
|
716
|
+
plots: o.autoScaling ? ve : ne,
|
|
717
|
+
area: o.useArea ? f.value.useIndividualScale ? e.value.line.cutNullValues ? Da(
|
|
718
|
+
o.autoScaling ? ve : ne,
|
|
719
|
+
ml
|
|
720
|
+
) : Ua(
|
|
721
|
+
o.autoScaling ? ve.filter((C) => C.value !== null) : ne.filter((C) => C.value !== null),
|
|
722
|
+
ml
|
|
723
|
+
) : e.value.line.cutNullValues ? Da(ne, ml) : Ua(ne.filter((C) => C.value !== null), ml) : "",
|
|
724
|
+
curveAreas: o.useArea ? Xt(
|
|
725
|
+
o.autoScaling ? e.value.line.cutNullValues ? ve : ve.filter((C) => C.value !== null) : e.value.line.cutNullValues ? ne : ne.filter((C) => C.value !== null),
|
|
726
|
+
ml,
|
|
727
727
|
e.value.line.cutNullValues
|
|
728
728
|
) : [],
|
|
729
729
|
straight: o.autoScaling ? N : Q,
|
|
@@ -742,20 +742,20 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
742
742
|
}, $ = {
|
|
743
743
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
744
744
|
min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
|
|
745
|
-
}, I = o.scaleSteps || e.value.chart.grid.labels.yAxis.commonScaleSteps, X = 1.0000001,
|
|
745
|
+
}, I = o.scaleSteps || e.value.chart.grid.labels.yAxis.commonScaleSteps, X = 1.0000001, S = el($.min, $.max === $.min ? $.max * X : $.max, I), R = el(ee.valueMin, ee.valueMax === ee.valueMin ? ee.valueMax * X : ee.valueMax, I), L = S.min >= 0 ? 0 : Math.abs(S.min), te = 0, re = S.max + L, D = R.max + Math.abs(te), be = o.stackIndex, Ce = v - 1 - be, sl = s ? 1 - o.cumulatedStackRatio : 0, he = s ? n * sl + l * Ce : 0, V = s ? n * o.stackRatio : i.value.height, P = i.value.bottom - he - V * L / re, K = i.value.bottom - he - V * te / D, fe = o.series.map((E, Q) => {
|
|
746
746
|
const N = f.value.useIndividualScale ? (o.absoluteValues[Q] + Math.abs(L)) / re : qe(E);
|
|
747
747
|
return {
|
|
748
748
|
x: T(i.value.left + J.value.plot / 2 + J.value.plot * Q),
|
|
749
749
|
y: T(i.value.bottom - he - V * N),
|
|
750
750
|
value: o.absoluteValues[Q],
|
|
751
|
-
comment: o.comments && o.comments.slice(
|
|
751
|
+
comment: o.comments && o.comments.slice(_.value.start, _.value.end)[Q] || ""
|
|
752
752
|
};
|
|
753
|
-
}),
|
|
753
|
+
}), ne = o.absoluteValues.map((E) => R.min >= 0 ? (E - Math.abs(R.min)) / (R.max - Math.abs(R.min)) : (E + Math.abs(R.min)) / (R.max + Math.abs(R.min))), bl = o.series.map((E, Q) => ({
|
|
754
754
|
x: T(i.value.left + J.value.plot / 2 + J.value.plot * Q),
|
|
755
|
-
y: T(i.value.bottom - he - (V *
|
|
755
|
+
y: T(i.value.bottom - he - (V * ne[Q] || 0)),
|
|
756
756
|
value: o.absoluteValues[Q],
|
|
757
|
-
comment: o.comments && o.comments.slice(
|
|
758
|
-
})), ve =
|
|
757
|
+
comment: o.comments && o.comments.slice(_.value.start, _.value.end)[Q] || ""
|
|
758
|
+
})), ve = S.ticks.map((E) => ({
|
|
759
759
|
y: E >= 0 ? P - V * (E / re) : P + V * Math.abs(E) / re,
|
|
760
760
|
value: E,
|
|
761
761
|
prefix: o.prefix || e.value.chart.labels.prefix,
|
|
@@ -777,7 +777,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
777
777
|
autoScaleYLabels: Be,
|
|
778
778
|
individualHeight: V,
|
|
779
779
|
scaleYLabels: o.autoScaling ? Be : ve,
|
|
780
|
-
individualScale: o.autoScaling ? R :
|
|
780
|
+
individualScale: o.autoScaling ? R : S,
|
|
781
781
|
individualMax: o.autoScaling ? D : re,
|
|
782
782
|
zeroPosition: o.autoScaling ? K : P,
|
|
783
783
|
plots: o.autoScaling ? bl : fe,
|
|
@@ -848,10 +848,11 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
848
848
|
lines: we.value,
|
|
849
849
|
plots: ze.value,
|
|
850
850
|
config: e.value
|
|
851
|
-
})),
|
|
851
|
+
})), zt = A(() => {
|
|
852
852
|
let a = "", v = fl.value.map((t) => t.value).filter((t) => Il(t) && t !== null).reduce((t, n) => Math.abs(t) + Math.abs(n), 0);
|
|
853
853
|
const l = de.value[k.value], s = e.value.chart.tooltip.customFormat;
|
|
854
854
|
return Dt(s) && Ut(() => s({
|
|
855
|
+
absoluteIndex: k.value + _.value.start,
|
|
855
856
|
seriesIndex: k.value,
|
|
856
857
|
datapoint: fl.value,
|
|
857
858
|
series: Me.value,
|
|
@@ -860,6 +861,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
860
861
|
plots: ze.value,
|
|
861
862
|
config: e.value
|
|
862
863
|
})) ? s({
|
|
864
|
+
absoluteIndex: k.value + _.value.start,
|
|
863
865
|
seriesIndex: k.value,
|
|
864
866
|
datapoint: fl.value,
|
|
865
867
|
series: Me.value,
|
|
@@ -875,7 +877,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
875
877
|
n = `<svg viewBox="0 0 40 40" height="14" width="14">${sa.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="${sa.pattern ? `url(#pattern_${q.value}_${t.slotAbsoluteIndex}` : t.color}" /></svg>`;
|
|
876
878
|
break;
|
|
877
879
|
case "line":
|
|
878
|
-
!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" />` : t.shape === "triangle" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "square" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "diamond" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "pentagon" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "hexagon" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "star" && (o = `<polygon stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" points="${
|
|
880
|
+
!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" />` : t.shape === "triangle" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "square" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "diamond" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "pentagon" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "hexagon" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "star" && (o = `<polygon stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" points="${qa({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), n = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${t.color}" />${o}</svg>`;
|
|
879
881
|
break;
|
|
880
882
|
case "plot":
|
|
881
883
|
if (!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape)) {
|
|
@@ -883,7 +885,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
883
885
|
break;
|
|
884
886
|
}
|
|
885
887
|
if (t.shape === "star") {
|
|
886
|
-
n = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" points="${
|
|
888
|
+
n = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" points="${qa({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
|
|
887
889
|
break;
|
|
888
890
|
}
|
|
889
891
|
if (t.shape === "triangle") {
|
|
@@ -907,7 +909,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
907
909
|
break;
|
|
908
910
|
}
|
|
909
911
|
}
|
|
910
|
-
a += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${n}</div> ${t.name}: <b>${e.value.chart.tooltip.showValue ?
|
|
912
|
+
a += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${n}</div> ${t.name}: <b>${e.value.chart.tooltip.showValue ? ce(
|
|
911
913
|
t.type === "line" ? e.value.line.labels.formatter : t.type === "bar" ? e.value.bar.labels.formatter : e.value.plot.labels.formatter,
|
|
912
914
|
t.value,
|
|
913
915
|
me({
|
|
@@ -921,7 +923,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
921
923
|
v: T(Math.abs(t.value) / v * 100),
|
|
922
924
|
s: "%",
|
|
923
925
|
r: e.value.chart.tooltip.roundingPercentage
|
|
924
|
-
})})` : ""}</div>`, e.value.chart.comments.showInTooltip && t.comments.length && t.comments.slice(
|
|
926
|
+
})})` : ""}</div>`, e.value.chart.comments.showInTooltip && t.comments.length && t.comments.slice(_.value.start, _.value.end)[k.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(_.value.start, _.value.end)[k.value]}</div>`);
|
|
925
927
|
}
|
|
926
928
|
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${e.value.chart.tooltip.color}">${a}</div>`);
|
|
927
929
|
});
|
|
@@ -939,7 +941,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
939
941
|
}), v.push(t);
|
|
940
942
|
}), { head: a, body: v };
|
|
941
943
|
});
|
|
942
|
-
const
|
|
944
|
+
const Ml = A(() => {
|
|
943
945
|
const a = e.value.table.showSum;
|
|
944
946
|
let v = [""].concat(ke.value.map((n) => n.name));
|
|
945
947
|
a && (v = v.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>'));
|
|
@@ -950,7 +952,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
950
952
|
[
|
|
951
953
|
de.value[n].text ?? "-"
|
|
952
954
|
].concat(ke.value.map(
|
|
953
|
-
(Y) =>
|
|
955
|
+
(Y) => ce(
|
|
954
956
|
Y.type === "line" ? e.value.line.labels.formatter : Y.type === "bar" ? e.value.bar.labels.formatter : e.value.plot.labels.formatter,
|
|
955
957
|
Y.absoluteValues[n] ?? 0,
|
|
956
958
|
me({
|
|
@@ -1042,25 +1044,25 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1042
1044
|
}
|
|
1043
1045
|
const xl = A(() => !!e.value.debug);
|
|
1044
1046
|
function Ya() {
|
|
1045
|
-
|
|
1047
|
+
Za(y.dataset) ? (ta({
|
|
1046
1048
|
componentName: "VueUiXy",
|
|
1047
1049
|
type: "dataset",
|
|
1048
1050
|
debug: xl.value
|
|
1049
|
-
}),
|
|
1051
|
+
}), Sl.value = !0) : y.dataset.forEach((v, l) => {
|
|
1050
1052
|
[null, void 0].includes(v.name) && (ta({
|
|
1051
1053
|
componentName: "VueUiXy",
|
|
1052
1054
|
type: "datasetSerieAttribute",
|
|
1053
1055
|
property: "name (string)",
|
|
1054
1056
|
index: l,
|
|
1055
1057
|
debug: xl.value
|
|
1056
|
-
}),
|
|
1058
|
+
}), Sl.value = !0);
|
|
1057
1059
|
}), xl.value && y.dataset.forEach((v) => {
|
|
1058
1060
|
v.series.forEach((l, s) => {
|
|
1059
1061
|
Il(l) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
1060
1062
|
-----> The serie '${v.name}' contains the value '${l}' at index ${s}.
|
|
1061
1063
|
'${l}' was converted to null to allow the chart to display.`);
|
|
1062
1064
|
});
|
|
1063
|
-
}),
|
|
1065
|
+
}), Za(y.dataset) || (Sl.value = e.value.loading), da.value = e.value.chart.userOptions.showOnChartHover, Wl.value = e.value.chart.userOptions.keepStateOnChartLeave, _l.value = !e.value.chart.userOptions.showOnChartHover, f.value = {
|
|
1064
1066
|
dataLabels: {
|
|
1065
1067
|
show: !0
|
|
1066
1068
|
},
|
|
@@ -1084,19 +1086,19 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1084
1086
|
nl.value && (I = nl.value.getBoundingClientRect().height);
|
|
1085
1087
|
let X = 0;
|
|
1086
1088
|
cl.value && (X = cl.value.getBoundingClientRect().height), ue.value = s - o - $ - F - I - X - a, Z.value = t, G.value ? ol() : De.value = `0 0 ${Z.value < 0 ? 10 : Z.value} ${ue.value < 0 ? 10 : ue.value}`, Ba();
|
|
1087
|
-
const
|
|
1089
|
+
const S = new ResizeObserver((R) => {
|
|
1088
1090
|
for (const L of R)
|
|
1089
1091
|
e.value.chart.title.show && rl.value ? o = rl.value.getBoundingClientRect().height : o = 0, Le.value && Le.value.$el ? F = Le.value.$el.getBoundingClientRect().height : F = 0, al.value ? $ = al.value.getBoundingClientRect().height : $ = 0, nl.value ? I = nl.value.getBoundingClientRect().height : I = 0, cl.value ? X = cl.value.getBoundingClientRect().height : X = 0, G.value && ge.value.classList.add("no-transition"), requestAnimationFrame(() => {
|
|
1090
|
-
ue.value = L.contentRect.height - o - $ - F - I - X - (G.value ? 48 : a), G.value ? (ha.value = L.contentRect.height - ue.value, Z.value = L.contentBoxSize[0].inlineSize,
|
|
1092
|
+
ue.value = L.contentRect.height - o - $ - F - I - X - (G.value ? 48 : a), G.value ? (ha.value = L.contentRect.height - ue.value, Z.value = L.contentBoxSize[0].inlineSize, rt.value = Z.value / ha.value, ol()) : (Z.value = L.contentBoxSize[0].inlineSize, De.value = `0 0 ${Z.value < 0 ? 10 : Z.value} ${ue.value < 0 ? 10 : ue.value}`), Ba();
|
|
1091
1093
|
});
|
|
1092
1094
|
});
|
|
1093
|
-
Xe.value =
|
|
1095
|
+
Xe.value = S, Yl.value = l, S.observe(l);
|
|
1094
1096
|
} else
|
|
1095
1097
|
ue.value = e.value.chart.height, Z.value = e.value.chart.width, x.value.dataLabels = e.value.chart.grid.labels.fontSize, x.value.yAxis = e.value.chart.grid.labels.axis.fontSize, x.value.xAxis = e.value.chart.grid.labels.xAxisLabels.fontSize, x.value.plotLabels = e.value.chart.labels.fontSize, Ae.value.plot = e.value.plot.radius, Ae.value.line = e.value.line.radius, G.value ? ol() : De.value = `0 0 ${Z.value} ${ue.value}`;
|
|
1096
1098
|
}
|
|
1097
1099
|
ea(() => {
|
|
1098
1100
|
Ya(), jl(), document.addEventListener("mousemove", (a) => {
|
|
1099
|
-
|
|
1101
|
+
it.value = {
|
|
1100
1102
|
x: a.clientX,
|
|
1101
1103
|
y: a.clientY
|
|
1102
1104
|
};
|
|
@@ -1106,27 +1108,27 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1106
1108
|
}), Cl(() => f.value.isStacked, async () => {
|
|
1107
1109
|
G.value && (await Se(), ol(), Kl());
|
|
1108
1110
|
});
|
|
1109
|
-
let
|
|
1110
|
-
async function
|
|
1111
|
-
await Se(), ol(), Kl(),
|
|
1111
|
+
let zl;
|
|
1112
|
+
async function Ct() {
|
|
1113
|
+
await Se(), ol(), Kl(), zl.disconnect();
|
|
1112
1114
|
}
|
|
1113
1115
|
return ea(() => {
|
|
1114
|
-
ge.value && (
|
|
1116
|
+
ge.value && (zl = new ResizeObserver((a) => {
|
|
1115
1117
|
for (const v of a) {
|
|
1116
1118
|
const { width: l, height: s } = v.contentRect;
|
|
1117
1119
|
if (l > 0 && s > 0) {
|
|
1118
|
-
|
|
1120
|
+
Ct();
|
|
1119
1121
|
break;
|
|
1120
1122
|
}
|
|
1121
1123
|
}
|
|
1122
|
-
}),
|
|
1124
|
+
}), zl.observe(ge.value.parentElement));
|
|
1123
1125
|
}), Fa(() => {
|
|
1124
|
-
|
|
1126
|
+
zl?.disconnect();
|
|
1125
1127
|
}), Cl(() => y.dataset, (a) => {
|
|
1126
|
-
Array.isArray(a) && a.length > 0 && (
|
|
1128
|
+
Array.isArray(a) && a.length > 0 && (Sl.value = !1), He.value = Math.max(...Ne.value.map((v) => Ee({
|
|
1127
1129
|
data: v.series,
|
|
1128
1130
|
threshold: e.value.downsample.threshold
|
|
1129
|
-
}).length)),
|
|
1131
|
+
}).length)), _.value = {
|
|
1130
1132
|
start: 0,
|
|
1131
1133
|
end: He.value
|
|
1132
1134
|
}, Fl.value += 1, El.value += 1;
|
|
@@ -1150,9 +1152,9 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1150
1152
|
isStacked: e.value.chart.grid.labels.yAxis.stacked,
|
|
1151
1153
|
useIndividualScale: e.value.chart.grid.labels.yAxis.useIndividualScale
|
|
1152
1154
|
};
|
|
1153
|
-
}, { immediate: !0 }),
|
|
1154
|
-
getData:
|
|
1155
|
-
getImage:
|
|
1155
|
+
}, { immediate: !0 }), Ja({
|
|
1156
|
+
getData: yt,
|
|
1157
|
+
getImage: pt,
|
|
1156
1158
|
generatePdf: ga,
|
|
1157
1159
|
generateImage: xa,
|
|
1158
1160
|
generateCsv: Oa,
|
|
@@ -1171,15 +1173,15 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1171
1173
|
onMouseenter: v[7] || (v[7] = () => pa(!0)),
|
|
1172
1174
|
onMouseleave: v[8] || (v[8] = () => pa(!1))
|
|
1173
1175
|
}, [
|
|
1174
|
-
e.value.chart.userOptions.buttons.annotator && ye.value ? (u(), Ie(c(
|
|
1176
|
+
e.value.chart.userOptions.buttons.annotator && ye.value ? (u(), Ie(c(st), {
|
|
1175
1177
|
key: 0,
|
|
1176
1178
|
svgRef: ye.value,
|
|
1177
1179
|
backgroundColor: e.value.chart.backgroundColor,
|
|
1178
1180
|
color: e.value.chart.color,
|
|
1179
|
-
active:
|
|
1181
|
+
active: kl.value,
|
|
1180
1182
|
onClose: Jl
|
|
1181
1183
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
1182
|
-
|
|
1184
|
+
_t.value ? (u(), r("div", {
|
|
1183
1185
|
key: 1,
|
|
1184
1186
|
ref_key: "noTitle",
|
|
1185
1187
|
ref: cl,
|
|
@@ -1207,7 +1209,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1207
1209
|
}
|
|
1208
1210
|
}, null, 8, ["config"]))
|
|
1209
1211
|
], 4)) : d("", !0),
|
|
1210
|
-
e.value.chart.userOptions.show && (Wl.value ||
|
|
1212
|
+
e.value.chart.userOptions.show && (Wl.value || _l.value) ? (u(), Ie(c(et), {
|
|
1211
1213
|
ref: "defails",
|
|
1212
1214
|
key: `user_options_${na.value}`,
|
|
1213
1215
|
backgroundColor: e.value.chart.backgroundColor,
|
|
@@ -1230,7 +1232,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1230
1232
|
isTooltip: f.value.showTooltip,
|
|
1231
1233
|
titles: { ...e.value.chart.userOptions.buttonTitles },
|
|
1232
1234
|
hasAnnotator: e.value.chart.userOptions.buttons.annotator,
|
|
1233
|
-
isAnnotation:
|
|
1235
|
+
isAnnotation: kl.value,
|
|
1234
1236
|
callbacks: e.value.chart.userOptions.callbacks,
|
|
1235
1237
|
printScale: e.value.chart.userOptions.print.scale,
|
|
1236
1238
|
onToggleFullscreen: Ra,
|
|
@@ -1243,9 +1245,9 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1243
1245
|
onToggleTooltip: Ha,
|
|
1244
1246
|
onToggleAnnotator: Jl,
|
|
1245
1247
|
style: z({
|
|
1246
|
-
visibility: Wl.value ?
|
|
1248
|
+
visibility: Wl.value ? _l.value ? "visible" : "hidden" : "visible"
|
|
1247
1249
|
})
|
|
1248
|
-
},
|
|
1250
|
+
}, Vt({ _: 2 }, [
|
|
1249
1251
|
a.$slots.menuIcon ? {
|
|
1250
1252
|
name: "menuIcon",
|
|
1251
1253
|
fn: se(({ isOpen: l, color: s }) => [
|
|
@@ -1325,7 +1327,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1325
1327
|
width: G.value ? void 0 : "100%",
|
|
1326
1328
|
viewBox: De.value,
|
|
1327
1329
|
style: z(`background: transparent; color:${e.value.chart.color}; font-family:${e.value.chart.fontFamily}`),
|
|
1328
|
-
"aria-label":
|
|
1330
|
+
"aria-label": kt.value,
|
|
1329
1331
|
role: "img",
|
|
1330
1332
|
"aria-live": "polite",
|
|
1331
1333
|
preserveAspectRatio: "xMidYMid"
|
|
@@ -1335,7 +1337,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1335
1337
|
ref: ua,
|
|
1336
1338
|
class: "vue-data-ui-g"
|
|
1337
1339
|
}, [
|
|
1338
|
-
|
|
1340
|
+
yl(c(ot)),
|
|
1339
1341
|
a.$slots["chart-background"] ? (u(), r("foreignObject", {
|
|
1340
1342
|
key: 0,
|
|
1341
1343
|
x: i.value.left + B.value < 0 ? 0 : i.value.left + B.value,
|
|
@@ -1422,7 +1424,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1422
1424
|
(u(!0), r(h, null, m(de.value, (l, s) => (u(), r("g", {
|
|
1423
1425
|
key: `time_label_${s}`
|
|
1424
1426
|
}, [
|
|
1425
|
-
l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === de.value.length - 1) && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && k.value === s && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((
|
|
1427
|
+
l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === de.value.length - 1) && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && k.value === s && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((_.value.end - _.value.start) / e.value.chart.grid.labels.xAxisLabels.modulo) === 0 || l && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= e.value.chart.grid.labels.xAxisLabels.modulo ? (u(), r(h, { key: 0 }, [
|
|
1426
1428
|
e.value.chart.grid.labels.xAxis.showCrosshairs ? (u(), r("line", {
|
|
1427
1429
|
key: 0,
|
|
1428
1430
|
y1: e.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero ? ie.value - (ie.value === i.value.bottom ? 0 : e.value.chart.grid.labels.xAxis.crosshairSize / 2) : i.value.bottom,
|
|
@@ -1536,15 +1538,15 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1536
1538
|
}, null, 8, Yo)
|
|
1537
1539
|
], 8, Ro)
|
|
1538
1540
|
]))), 128)),
|
|
1539
|
-
(u(!0), r(h, null, m(
|
|
1541
|
+
(u(!0), r(h, null, m(wt.value, (l) => (u(), r("g", null, [
|
|
1540
1542
|
l.show ? (u(), r(h, { key: 0 }, [
|
|
1541
1543
|
(u(!0), r(h, null, m(l.span, (s, t) => (u(), r("g", null, [
|
|
1542
1544
|
g("rect", {
|
|
1543
1545
|
style: z({
|
|
1544
1546
|
transition: "none",
|
|
1545
|
-
opacity: l.from + t >=
|
|
1547
|
+
opacity: l.from + t >= _.value.start && l.from + t <= _.value.end - 1 ? 1 : 0
|
|
1546
1548
|
}),
|
|
1547
|
-
x: i.value.left + i.value.width / b.value * (l.from + t -
|
|
1549
|
+
x: i.value.left + i.value.width / b.value * (l.from + t - _.value.start),
|
|
1548
1550
|
y: i.value.top,
|
|
1549
1551
|
height: i.value.height < 0 ? 10 : i.value.height,
|
|
1550
1552
|
width: i.value.width / b.value < 0 ? 1e-5 : i.value.width / b.value,
|
|
@@ -1554,11 +1556,11 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1554
1556
|
(u(!0), r(h, null, m(l.span, (s, t) => (u(), r("g", null, [
|
|
1555
1557
|
l.caption.text && t === 0 ? (u(), r("foreignObject", {
|
|
1556
1558
|
key: 0,
|
|
1557
|
-
x: i.value.left + i.value.width / b.value * (l.from + t -
|
|
1559
|
+
x: i.value.left + i.value.width / b.value * (l.from + t - _.value.start) - (l.caption.width === "auto" ? 0 : l.caption.width / 2 - i.value.width / b.value * l.span / 2),
|
|
1558
1560
|
y: i.value.top + l.caption.offsetY,
|
|
1559
1561
|
style: z({
|
|
1560
1562
|
overflow: "visible",
|
|
1561
|
-
opacity: l.to >=
|
|
1563
|
+
opacity: l.to >= _.value.start && l.from < _.value.end ? 1 : 0
|
|
1562
1564
|
}),
|
|
1563
1565
|
height: "1",
|
|
1564
1566
|
width: l.caption.width === "auto" ? i.value.width / b.value * l.span : l.caption.width
|
|
@@ -1593,7 +1595,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1593
1595
|
}, [
|
|
1594
1596
|
xe(t.value) ? (u(), r("rect", {
|
|
1595
1597
|
key: 0,
|
|
1596
|
-
x:
|
|
1598
|
+
x: Al(t),
|
|
1597
1599
|
y: f.value.useIndividualScale ? Aa(t) : La(t),
|
|
1598
1600
|
height: f.value.useIndividualScale ? Math.abs($a(t)) : Math.abs(Sa(t)),
|
|
1599
1601
|
width: _e() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Pe.value) < 0 ? 1e-5 : _e() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Pe.value),
|
|
@@ -1605,7 +1607,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1605
1607
|
}, null, 12, Go)) : d("", !0),
|
|
1606
1608
|
xe(t.value) && a.$slots.pattern ? (u(), r("rect", {
|
|
1607
1609
|
key: 1,
|
|
1608
|
-
x:
|
|
1610
|
+
x: Al(t),
|
|
1609
1611
|
y: f.value.useIndividualScale ? Aa(t) : La(t),
|
|
1610
1612
|
height: f.value.useIndividualScale ? Math.abs($a(t)) : Math.abs(Sa(t)),
|
|
1611
1613
|
width: _e() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Pe.value) < 0 ? 1e-5 : _e() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Pe.value),
|
|
@@ -1619,7 +1621,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1619
1621
|
style: { overflow: "visible" },
|
|
1620
1622
|
height: "12",
|
|
1621
1623
|
width: (_e() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Pe.value) < 0 ? 1e-5 : _e() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Pe.value) / 2) + e.value.chart.comments.width,
|
|
1622
|
-
x:
|
|
1624
|
+
x: Al(t) - e.value.chart.comments.width / 2 + e.value.chart.comments.offsetX,
|
|
1623
1625
|
y: c(T)(t.y) + e.value.chart.comments.offsetY + 6
|
|
1624
1626
|
}, [
|
|
1625
1627
|
U(a.$slots, "plot-comment", {
|
|
@@ -1748,7 +1750,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1748
1750
|
"font-size": x.value.dataLabels,
|
|
1749
1751
|
"text-anchor": "end",
|
|
1750
1752
|
fill: l.color
|
|
1751
|
-
}, j(c(
|
|
1753
|
+
}, j(c(ce)(
|
|
1752
1754
|
e.value.chart.grid.labels.yAxis.formatter,
|
|
1753
1755
|
s.value,
|
|
1754
1756
|
c(me)({
|
|
@@ -1781,7 +1783,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1781
1783
|
"font-size": x.value.dataLabels,
|
|
1782
1784
|
"text-anchor": "end",
|
|
1783
1785
|
fill: e.value.chart.grid.labels.color
|
|
1784
|
-
}, j(xe(l.value) ? c(
|
|
1786
|
+
}, j(xe(l.value) ? c(ce)(
|
|
1785
1787
|
e.value.chart.grid.labels.yAxis.formatter,
|
|
1786
1788
|
l.value,
|
|
1787
1789
|
c(me)({
|
|
@@ -2017,13 +2019,13 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2017
2019
|
}, [
|
|
2018
2020
|
t && (!Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || k.value !== null && k.value === n || O.value !== null && O.value === n) && e.value.bar.labels.show ? (u(), r("text", {
|
|
2019
2021
|
key: 0,
|
|
2020
|
-
x: f.value.useIndividualScale && f.value.isStacked ? t.x + J.value.line / 2 :
|
|
2022
|
+
x: f.value.useIndividualScale && f.value.isStacked ? t.x + J.value.line / 2 : Al(t) + _e() / 2 - Pe.value / 2,
|
|
2021
2023
|
y: c(T)(t.y) + (t.value >= 0 ? e.value.bar.labels.offsetY : -e.value.bar.labels.offsetY * 3),
|
|
2022
2024
|
"text-anchor": "middle",
|
|
2023
2025
|
"font-size": x.value.plotLabels,
|
|
2024
2026
|
fill: e.value.bar.labels.color,
|
|
2025
2027
|
style: z(`opacity:${M.value ? M.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2026
|
-
}, j(xe(t.value) ? c(
|
|
2028
|
+
}, j(xe(t.value) ? c(ce)(
|
|
2027
2029
|
e.value.bar.labels.formatter,
|
|
2028
2030
|
t.value,
|
|
2029
2031
|
c(me)({
|
|
@@ -2065,7 +2067,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2065
2067
|
"font-size": x.value.plotLabels,
|
|
2066
2068
|
fill: e.value.plot.labels.color,
|
|
2067
2069
|
style: z(`opacity:${M.value ? M.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2068
|
-
}, j(xe(t.value) ? c(
|
|
2070
|
+
}, j(xe(t.value) ? c(ce)(
|
|
2069
2071
|
e.value.plot.labels.formatter,
|
|
2070
2072
|
t.value,
|
|
2071
2073
|
c(me)({
|
|
@@ -2112,7 +2114,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2112
2114
|
}, [
|
|
2113
2115
|
g("div", {
|
|
2114
2116
|
style: z(`padding: 3px; background:${c($e)(l.color, 80)};color:${c(We)(l.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
|
|
2115
|
-
innerHTML: c(
|
|
2117
|
+
innerHTML: c(ce)(
|
|
2116
2118
|
e.value.plot.tag.formatter,
|
|
2117
2119
|
t.value,
|
|
2118
2120
|
l.name,
|
|
@@ -2134,7 +2136,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2134
2136
|
}, [
|
|
2135
2137
|
g("div", {
|
|
2136
2138
|
style: z(`padding: 3px; background:${c($e)(l.color, 80)};color:${c(We)(l.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
|
|
2137
|
-
innerHTML: c(
|
|
2139
|
+
innerHTML: c(ce)(
|
|
2138
2140
|
e.value.plot.tag.formatter,
|
|
2139
2141
|
t.value,
|
|
2140
2142
|
l.name,
|
|
@@ -2165,7 +2167,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2165
2167
|
"font-size": x.value.plotLabels,
|
|
2166
2168
|
fill: e.value.line.labels.color,
|
|
2167
2169
|
style: z(`opacity:${M.value ? M.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2168
|
-
}, j(xe(t.value) ? c(
|
|
2170
|
+
}, j(xe(t.value) ? c(ce)(
|
|
2169
2171
|
e.value.line.labels.formatter,
|
|
2170
2172
|
t.value,
|
|
2171
2173
|
c(me)({
|
|
@@ -2212,7 +2214,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2212
2214
|
}, [
|
|
2213
2215
|
g("div", {
|
|
2214
2216
|
style: z(`padding: 3px; background:${c($e)(l.color, 80)};color:${c(We)(l.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
|
|
2215
|
-
innerHTML: c(
|
|
2217
|
+
innerHTML: c(ce)(
|
|
2216
2218
|
e.value.line.tag.formatter,
|
|
2217
2219
|
t.value,
|
|
2218
2220
|
l.name,
|
|
@@ -2234,7 +2236,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2234
2236
|
}, [
|
|
2235
2237
|
g("div", {
|
|
2236
2238
|
style: z(`padding: 3px; background:${c($e)(l.color, 80)};color:${c(We)(l.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
|
|
2237
|
-
innerHTML: c(
|
|
2239
|
+
innerHTML: c(ce)(
|
|
2238
2240
|
e.value.line.tag.formatter,
|
|
2239
2241
|
t.value,
|
|
2240
2242
|
l.name,
|
|
@@ -2404,11 +2406,11 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2404
2406
|
absoluteIndex: l.absoluteIndex,
|
|
2405
2407
|
content: l.text,
|
|
2406
2408
|
textAnchor: e.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2407
|
-
show: l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === de.value.length - 1) && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && k.value === s && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((
|
|
2409
|
+
show: l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === de.value.length - 1) && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && k.value === s && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((_.value.end - _.value.start) / e.value.chart.grid.labels.xAxisLabels.modulo) === 0 || l && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= e.value.chart.grid.labels.xAxisLabels.modulo
|
|
2408
2410
|
}), void 0, !0)), 128)) : (u(!0), r(h, { key: 1 }, m(de.value, (l, s) => (u(), r("g", {
|
|
2409
2411
|
key: `time_label_${s}`
|
|
2410
2412
|
}, [
|
|
2411
|
-
l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === de.value.length - 1) && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && k.value === s && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((
|
|
2413
|
+
l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === de.value.length - 1) && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && k.value === s && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((_.value.end - _.value.start) / e.value.chart.grid.labels.xAxisLabels.modulo) === 0 || l && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= e.value.chart.grid.labels.xAxisLabels.modulo ? (u(), r(h, { key: 0 }, [
|
|
2412
2414
|
String(l.text).includes(`
|
|
2413
2415
|
`) ? (u(), r("text", {
|
|
2414
2416
|
key: 1,
|
|
@@ -2504,7 +2506,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2504
2506
|
fill: "transparent",
|
|
2505
2507
|
onMouseenter: (t) => Na(!0, s),
|
|
2506
2508
|
onMouseleave: v[1] || (v[1] = (t) => Na(!1)),
|
|
2507
|
-
onClick: (t) =>
|
|
2509
|
+
onClick: (t) => mt(s)
|
|
2508
2510
|
}, null, 40, gu))), 128))
|
|
2509
2511
|
]),
|
|
2510
2512
|
e.value.chart.timeTag.show && (![null, void 0].includes(k.value) || ![null, void 0].includes(O.value)) ? (u(), r("g", xu, [
|
|
@@ -2528,7 +2530,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2528
2530
|
}, null, 8, mu)
|
|
2529
2531
|
])) : d("", !0)
|
|
2530
2532
|
])) : d("", !0),
|
|
2531
|
-
U(a.$slots, "svg", { svg:
|
|
2533
|
+
U(a.$slots, "svg", { svg: nt.value }, void 0, !0)
|
|
2532
2534
|
], 512)
|
|
2533
2535
|
], 14, no)),
|
|
2534
2536
|
a.$slots.watermark ? (u(), r("div", yu, [
|
|
@@ -2543,7 +2545,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2543
2545
|
[O.value, k.value, Ue.value].includes(n) && l.useTag && l.useTag === "end" && e.value.line.tag.followValue ? (u(), r("div", {
|
|
2544
2546
|
key: 0,
|
|
2545
2547
|
ref_for: !0,
|
|
2546
|
-
ref: (o) =>
|
|
2548
|
+
ref: (o) => Ll(s, n, o, "right", "line"),
|
|
2547
2549
|
class: "vue-ui-xy-tag",
|
|
2548
2550
|
"data-tag": "right",
|
|
2549
2551
|
style: z({
|
|
@@ -2580,7 +2582,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2580
2582
|
])),
|
|
2581
2583
|
g("div", {
|
|
2582
2584
|
class: "vue-ui-xy-tag-content",
|
|
2583
|
-
innerHTML: c(
|
|
2585
|
+
innerHTML: c(ce)(
|
|
2584
2586
|
e.value.line.tag.formatter,
|
|
2585
2587
|
t.value,
|
|
2586
2588
|
l.name,
|
|
@@ -2595,7 +2597,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2595
2597
|
[O.value, k.value, Ue.value].includes(n) && l.useTag && l.useTag === "start" && e.value.line.tag.followValue ? (u(), r("div", {
|
|
2596
2598
|
key: 1,
|
|
2597
2599
|
ref_for: !0,
|
|
2598
|
-
ref: (o) =>
|
|
2600
|
+
ref: (o) => Ll(s, n, o, "left", "line"),
|
|
2599
2601
|
class: "vue-ui-xy-tag",
|
|
2600
2602
|
"data-tag": "left",
|
|
2601
2603
|
style: z({
|
|
@@ -2632,7 +2634,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2632
2634
|
])),
|
|
2633
2635
|
g("div", {
|
|
2634
2636
|
class: "vue-ui-xy-tag-content",
|
|
2635
|
-
innerHTML: c(
|
|
2637
|
+
innerHTML: c(ce)(
|
|
2636
2638
|
e.value.line.tag.formatter,
|
|
2637
2639
|
t.value,
|
|
2638
2640
|
l.name,
|
|
@@ -2655,7 +2657,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2655
2657
|
[O.value, k.value, Ue.value].includes(n) && l.useTag && l.useTag === "end" && e.value.plot.tag.followValue ? (u(), r("div", {
|
|
2656
2658
|
key: 0,
|
|
2657
2659
|
ref_for: !0,
|
|
2658
|
-
ref: (o) =>
|
|
2660
|
+
ref: (o) => Ll(s, n, o, "right", "plot"),
|
|
2659
2661
|
class: "vue-ui-xy-tag",
|
|
2660
2662
|
"data-tag": "right",
|
|
2661
2663
|
style: z({
|
|
@@ -2692,7 +2694,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2692
2694
|
])),
|
|
2693
2695
|
g("div", {
|
|
2694
2696
|
class: "vue-ui-xy-tag-content",
|
|
2695
|
-
innerHTML: c(
|
|
2697
|
+
innerHTML: c(ce)(
|
|
2696
2698
|
e.value.plot.tag.formatter,
|
|
2697
2699
|
t.value,
|
|
2698
2700
|
l.name,
|
|
@@ -2707,7 +2709,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2707
2709
|
[O.value, k.value, Ue.value].includes(n) && l.useTag && l.useTag === "start" && e.value.plot.tag.followValue ? (u(), r("div", {
|
|
2708
2710
|
key: 1,
|
|
2709
2711
|
ref_for: !0,
|
|
2710
|
-
ref: (o) =>
|
|
2712
|
+
ref: (o) => Ll(s, n, o, "left", "plot"),
|
|
2711
2713
|
class: "vue-ui-xy-tag",
|
|
2712
2714
|
"data-tag": "left",
|
|
2713
2715
|
style: z({
|
|
@@ -2744,7 +2746,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2744
2746
|
])),
|
|
2745
2747
|
g("div", {
|
|
2746
2748
|
class: "vue-ui-xy-tag-content",
|
|
2747
|
-
innerHTML: c(
|
|
2749
|
+
innerHTML: c(ce)(
|
|
2748
2750
|
e.value.plot.tag.formatter,
|
|
2749
2751
|
t.value,
|
|
2750
2752
|
l.name,
|
|
@@ -2771,7 +2773,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2771
2773
|
inputColor: e.value.chart.zoom.color,
|
|
2772
2774
|
selectColor: e.value.chart.zoom.highlightColor,
|
|
2773
2775
|
borderColor: e.value.chart.backgroundColor,
|
|
2774
|
-
minimap:
|
|
2776
|
+
minimap: Mt.value,
|
|
2775
2777
|
smoothMinimap: e.value.chart.zoom.minimap.smooth,
|
|
2776
2778
|
minimapSelectedColor: e.value.chart.zoom.minimap.selectedColor,
|
|
2777
2779
|
minimapSelectionRadius: e.value.chart.zoom.minimap.selectionRadius,
|
|
@@ -2782,18 +2784,18 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2782
2784
|
verticalHandles: e.value.chart.zoom.minimap.verticalHandles,
|
|
2783
2785
|
max: He.value,
|
|
2784
2786
|
min: 0,
|
|
2785
|
-
valueStart:
|
|
2786
|
-
valueEnd:
|
|
2787
|
-
start:
|
|
2788
|
-
"onUpdate:start": v[2] || (v[2] = (l) =>
|
|
2789
|
-
end:
|
|
2790
|
-
"onUpdate:end": v[3] || (v[3] = (l) =>
|
|
2787
|
+
valueStart: _.value.start,
|
|
2788
|
+
valueEnd: _.value.end,
|
|
2789
|
+
start: _.value.start,
|
|
2790
|
+
"onUpdate:start": v[2] || (v[2] = (l) => _.value.start = l),
|
|
2791
|
+
end: _.value.end,
|
|
2792
|
+
"onUpdate:end": v[3] || (v[3] = (l) => _.value.end = l),
|
|
2791
2793
|
refreshStartPoint: e.value.chart.zoom.startIndex !== null ? e.value.chart.zoom.startIndex : 0,
|
|
2792
2794
|
refreshEndPoint: e.value.chart.zoom.endIndex !== null ? e.value.chart.zoom.endIndex + 1 : Math.max(...Nl.dataset.map((l) => c(Ee)({ data: l.series, threshold: e.value.downsample.threshold }).length)),
|
|
2793
2795
|
enableRangeHandles: e.value.chart.zoom.enableRangeHandles,
|
|
2794
2796
|
enableSelectionDrag: e.value.chart.zoom.enableSelectionDrag,
|
|
2795
|
-
onReset:
|
|
2796
|
-
onTrapMouse:
|
|
2797
|
+
onReset: bt,
|
|
2798
|
+
onTrapMouse: ft
|
|
2797
2799
|
}, {
|
|
2798
2800
|
"reset-action": se(({ reset: l }) => [
|
|
2799
2801
|
U(a.$slots, "reset-action", Qe(je({ reset: l })), void 0, !0)
|
|
@@ -2823,7 +2825,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2823
2825
|
width: "20",
|
|
2824
2826
|
fill: l.color
|
|
2825
2827
|
}, null, 8, Nu),
|
|
2826
|
-
|
|
2828
|
+
yl(Ol, {
|
|
2827
2829
|
plot: { x: 10, y: 9 },
|
|
2828
2830
|
radius: 4,
|
|
2829
2831
|
color: l.color,
|
|
@@ -2853,7 +2855,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2853
2855
|
fill: a.$slots.pattern ? `url(#pattern_${q.value}_${l.slotAbsoluteIndex})` : l.color
|
|
2854
2856
|
}, null, 8, Hu)) : d("", !0)
|
|
2855
2857
|
])) : (u(), r("svg", Ru, [
|
|
2856
|
-
|
|
2858
|
+
yl(Ol, {
|
|
2857
2859
|
plot: { x: 6, y: 6 },
|
|
2858
2860
|
radius: 5,
|
|
2859
2861
|
color: l.color,
|
|
@@ -2879,7 +2881,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2879
2881
|
}, [
|
|
2880
2882
|
U(a.$slots, "source", {}, void 0, !0)
|
|
2881
2883
|
], 512)) : d("", !0),
|
|
2882
|
-
|
|
2884
|
+
yl(c(ja), {
|
|
2883
2885
|
show: f.value.showTooltip && ra.value,
|
|
2884
2886
|
backgroundColor: e.value.chart.tooltip.backgroundColor,
|
|
2885
2887
|
color: e.value.chart.tooltip.color,
|
|
@@ -2891,7 +2893,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2891
2893
|
position: e.value.chart.tooltip.position,
|
|
2892
2894
|
offsetY: e.value.chart.tooltip.offsetY,
|
|
2893
2895
|
parent: a.$refs.chart,
|
|
2894
|
-
content:
|
|
2896
|
+
content: zt.value,
|
|
2895
2897
|
isFullscreen: tl.value,
|
|
2896
2898
|
isCustom: e.value.chart.tooltip.customFormat && typeof e.value.chart.tooltip.customFormat == "function"
|
|
2897
2899
|
}, {
|
|
@@ -2903,7 +2905,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2903
2905
|
]),
|
|
2904
2906
|
_: 3
|
|
2905
2907
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
2906
|
-
Xl.value ? (u(), Ie(c(
|
|
2908
|
+
Xl.value ? (u(), Ie(c(tt), {
|
|
2907
2909
|
key: 9,
|
|
2908
2910
|
hideDetails: "",
|
|
2909
2911
|
config: {
|
|
@@ -2924,33 +2926,33 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2924
2926
|
style: z(`${c(Ul) ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
2925
2927
|
}, [
|
|
2926
2928
|
g("div", Bu, [
|
|
2927
|
-
|
|
2929
|
+
Pt(g("input", {
|
|
2928
2930
|
type: "checkbox",
|
|
2929
2931
|
"onUpdate:modelValue": v[4] || (v[4] = (l) => dl.value = l)
|
|
2930
2932
|
}, null, 512), [
|
|
2931
|
-
[
|
|
2933
|
+
[Ht, dl.value]
|
|
2932
2934
|
]),
|
|
2933
2935
|
g("div", {
|
|
2934
2936
|
onClick: v[5] || (v[5] = (l) => dl.value = !dl.value),
|
|
2935
2937
|
style: { cursor: "pointer" }
|
|
2936
2938
|
}, [
|
|
2937
|
-
|
|
2939
|
+
yl(c(lt), {
|
|
2938
2940
|
name: "chartLine",
|
|
2939
2941
|
size: 20,
|
|
2940
2942
|
stroke: e.value.chart.color
|
|
2941
2943
|
}, null, 8, ["stroke"])
|
|
2942
2944
|
])
|
|
2943
2945
|
]),
|
|
2944
|
-
dl.value ? (u(), Ie(c(
|
|
2946
|
+
dl.value ? (u(), Ie(c(at), {
|
|
2945
2947
|
key: `sparkline_${El.value}`,
|
|
2946
|
-
dataset:
|
|
2947
|
-
config:
|
|
2948
|
-
}, null, 8, ["dataset", "config"])) : (u(), Ie(c(
|
|
2948
|
+
dataset: $t.value,
|
|
2949
|
+
config: Lt.value
|
|
2950
|
+
}, null, 8, ["dataset", "config"])) : (u(), Ie(c(Qa), {
|
|
2949
2951
|
key: `table_${ca.value}`,
|
|
2950
|
-
colNames:
|
|
2951
|
-
head:
|
|
2952
|
-
body:
|
|
2953
|
-
config:
|
|
2952
|
+
colNames: Ml.value.colNames,
|
|
2953
|
+
head: Ml.value.head,
|
|
2954
|
+
body: Ml.value.body,
|
|
2955
|
+
config: Ml.value.config,
|
|
2954
2956
|
title: `${e.value.chart.title.text}${e.value.chart.title.subtitle.text ? ` : ${e.value.chart.title.subtitle.text}` : ""}`,
|
|
2955
2957
|
onClose: v[6] || (v[6] = (l) => f.value.showTable = !1)
|
|
2956
2958
|
}, {
|
|
@@ -2958,7 +2960,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2958
2960
|
g("div", { innerHTML: l }, null, 8, Yu)
|
|
2959
2961
|
]),
|
|
2960
2962
|
td: se(({ td: l }) => [
|
|
2961
|
-
|
|
2963
|
+
Rt(j(isNaN(Number(l)) ? l : c(me)({
|
|
2962
2964
|
p: e.value.chart.labels.prefix,
|
|
2963
2965
|
v: l,
|
|
2964
2966
|
s: e.value.chart.labels.suffix,
|
|
@@ -2974,7 +2976,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2974
2976
|
c(Dl) ? (u(), Ie(uo, { key: 10 })) : d("", !0)
|
|
2975
2977
|
], 46, ro));
|
|
2976
2978
|
}
|
|
2977
|
-
}, ju = /* @__PURE__ */ io(Fu, [["__scopeId", "data-v-
|
|
2979
|
+
}, ju = /* @__PURE__ */ io(Fu, [["__scopeId", "data-v-82f3ba26"]]);
|
|
2978
2980
|
export {
|
|
2979
2981
|
ju as default
|
|
2980
2982
|
};
|