vue-data-ui 3.21.8 → 3.21.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PackageVersion-B2Vn0OB1.js → PackageVersion-B5nhq8qZ.js} +1 -1
- package/dist/{SlicerPreview-CZOlZJWD.js → SlicerPreview-BA_RDgVn.js} +574 -568
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{package-Bdjd3B6r.js → package-DVlow_N3.js} +1 -1
- package/dist/{render-common-CQ7sM-Ax.js → render-common-DeW6Cjh5.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/{vue-data-ui-B7WMDcGm.js → vue-data-ui-aTXHuue7.js} +61 -61
- package/dist/vue-data-ui.js +61 -61
- package/dist/{vue-ui-3d-bar-Cl8u5O4U.js → vue-ui-3d-bar-BtOf_bBY.js} +1 -1
- package/dist/{vue-ui-age-pyramid-BkuSVhqv.js → vue-ui-age-pyramid-BykZGzIl.js} +1 -1
- package/dist/{vue-ui-bullet-xBSBu9Ge.js → vue-ui-bullet-DVwUBkxK.js} +1 -1
- package/dist/{vue-ui-bump-C4tiSwbO.js → vue-ui-bump-BF6JQnwo.js} +1 -1
- package/dist/{vue-ui-candlestick-BM81VjBn.js → vue-ui-candlestick-BgjLnRhs.js} +2 -2
- package/dist/{vue-ui-carousel-table-uoAnXC-V.js → vue-ui-carousel-table-DhsxkpMY.js} +1 -1
- package/dist/{vue-ui-chestnut-CHSx-IpC.js → vue-ui-chestnut-D-HgOk4p.js} +1 -1
- package/dist/{vue-ui-chord-D4k-PuJ1.js → vue-ui-chord-Du1GLWyH.js} +1 -1
- package/dist/{vue-ui-circle-pack-CNJDd73X.js → vue-ui-circle-pack-CLufGHlE.js} +1 -1
- package/dist/{vue-ui-cursor-C48mZIqt.js → vue-ui-cursor-CWwzkSlM.js} +1 -1
- package/dist/{vue-ui-dag-DCyVK5EG.js → vue-ui-dag-CVPnqgqo.js} +1 -1
- package/dist/{vue-ui-dashboard-Dbk4mPdY.js → vue-ui-dashboard-br5nOObp.js} +58 -58
- package/dist/{vue-ui-digits-CHY0FoUC.js → vue-ui-digits-BnmAIDCU.js} +1 -1
- package/dist/{vue-ui-donut-DllBy01g.js → vue-ui-donut-CD6dYF1s.js} +1 -1
- package/dist/{vue-ui-donut-BUDgin-w.js → vue-ui-donut-DbcXY5II.js} +1 -1
- package/dist/{vue-ui-donut-evolution-B8paXmn4.js → vue-ui-donut-evolution-BtV8cDv6.js} +1 -1
- package/dist/{vue-ui-dumbbell-DoiVQgXA.js → vue-ui-dumbbell-rM9BzUtU.js} +1 -1
- package/dist/{vue-ui-flow-CZ9JsWZ5.js → vue-ui-flow-CWZWCU77.js} +1 -1
- package/dist/{vue-ui-funnel-DOFoFpiJ.js → vue-ui-funnel-MjqZdBv8.js} +1 -1
- package/dist/{vue-ui-galaxy-L-9ZDRyL.js → vue-ui-galaxy-UmM7jDTM.js} +1 -1
- package/dist/{vue-ui-gauge-Dnome-s2.js → vue-ui-gauge-Cfr79Cbf.js} +1 -1
- package/dist/{vue-ui-geo-CH0DQHNg.js → vue-ui-geo-BylKAdA5.js} +1 -1
- package/dist/{vue-ui-gizmo-DhWQWyxr.js → vue-ui-gizmo-1OxCNhwu.js} +1 -1
- package/dist/{vue-ui-heatmap-AMJA28Au.js → vue-ui-heatmap-BIeKHW1h.js} +1 -1
- package/dist/{vue-ui-history-plot-E13nqAS3.js → vue-ui-history-plot-CxkHExN-.js} +1 -1
- package/dist/{vue-ui-horizontal-bar-BkYhWy8c.js → vue-ui-horizontal-bar-9zgfh71b.js} +1 -1
- package/dist/{vue-ui-kpi-BNfKOx4a.js → vue-ui-kpi-Cm8jjtzx.js} +1 -1
- package/dist/{vue-ui-molecule-8CdjiyX9.js → vue-ui-molecule-Bgv3WLvn.js} +1 -1
- package/dist/{vue-ui-mood-radar-CCZUNSDY.js → vue-ui-mood-radar-QXU8ST95.js} +1 -1
- package/dist/{vue-ui-nested-donuts-CbZMHC2K.js → vue-ui-nested-donuts-D2pU46kh.js} +1 -1
- package/dist/{vue-ui-onion-D4BwvgUi.js → vue-ui-onion-BHWPFv-0.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-DdUQ5Xh9.js → vue-ui-parallel-coordinate-plot-s7yZAT3W.js} +1 -1
- package/dist/{vue-ui-quadrant-D383Uxs2.js → vue-ui-quadrant-CKRRuGCF.js} +1 -1
- package/dist/{vue-ui-quick-chart-BrktKX4C.js → vue-ui-quick-chart-D8fm9T3A.js} +1 -1
- package/dist/{vue-ui-radar-DB6xIrPZ.js → vue-ui-radar-BPz21YAk.js} +1 -1
- package/dist/{vue-ui-relation-circle-Doq-NXaj.js → vue-ui-relation-circle-C6Mio1JL.js} +1 -1
- package/dist/{vue-ui-ridgeline-DuLm8fVl.js → vue-ui-ridgeline-AJ5uGbWy.js} +1 -1
- package/dist/{vue-ui-rings-BP5SPTij.js → vue-ui-rings-DU_0odfi.js} +1 -1
- package/dist/{vue-ui-scatter-BEoyg30k.js → vue-ui-scatter-BF9H3xLI.js} +1 -1
- package/dist/{vue-ui-skeleton-CZDoASj7.js → vue-ui-skeleton-BMYHExcG.js} +1 -1
- package/dist/{vue-ui-spark-trend-DrNXRkLk.js → vue-ui-spark-trend-BwWCrl2j.js} +1 -1
- package/dist/{vue-ui-sparkbar-DSVuOwor.js → vue-ui-sparkbar-BBzET58q.js} +1 -1
- package/dist/{vue-ui-sparkgauge-BsUaNmCQ.js → vue-ui-sparkgauge-CKdbsQU-.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-BXj15EA9.js → vue-ui-sparkhistogram-CkIUUsvX.js} +1 -1
- package/dist/{vue-ui-sparkline-C4w1Vd1V.js → vue-ui-sparkline-D6-Xl3qa.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-B0NEKxiv.js → vue-ui-sparkstackbar-DipFsCWm.js} +1 -1
- package/dist/{vue-ui-stackbar-BUHPE5eI.js → vue-ui-stackbar-CRA3NMRP.js} +2 -2
- package/dist/{vue-ui-stackline-DalNSaWc.js → vue-ui-stackline-C9rAMrSg.js} +2 -2
- package/dist/{vue-ui-strip-plot-CZ3uOw21.js → vue-ui-strip-plot-DbU-sxvD.js} +1 -1
- package/dist/{vue-ui-table-KIch8E1Y.js → vue-ui-table-CN9X7iMX.js} +2 -2
- package/dist/{vue-ui-table-sparkline-DTOnP9r9.js → vue-ui-table-sparkline-nGC8nrgh.js} +1 -1
- package/dist/{vue-ui-thermometer-DaUJbKY5.js → vue-ui-thermometer-l4jYbztY.js} +1 -1
- package/dist/{vue-ui-timer-Bvi2QE0f.js → vue-ui-timer-D22cu-e4.js} +1 -1
- package/dist/{vue-ui-tiremarks-BcGtzhao.js → vue-ui-tiremarks-BwVpjA0x.js} +1 -1
- package/dist/{vue-ui-treemap-Ch2frB5I.js → vue-ui-treemap-Bt6RETYZ.js} +1 -1
- package/dist/{vue-ui-waffle-C2qRE9Ra.js → vue-ui-waffle-DLK0MFGY.js} +1 -1
- package/dist/{vue-ui-wheel-JYykCxs1.js → vue-ui-wheel-BcpPx5zx.js} +1 -1
- package/dist/{vue-ui-word-cloud-CwKRUJaj.js → vue-ui-word-cloud-Bgtzkl4m.js} +1 -1
- package/dist/{vue-ui-world-DCfKaanB.js → vue-ui-world-Cpfb4MQx.js} +1 -1
- package/dist/{vue-ui-xy-lUvFSV7v.js → vue-ui-xy-BPGRTHTA.js} +703 -736
- package/dist/{vue-ui-xy-8AveFEFa.js → vue-ui-xy-BRLKyCkI.js} +1 -1
- package/dist/{vue-ui-xy-canvas-CJG8yIx5.js → vue-ui-xy-canvas-CYQF5hVa.js} +1 -1
- package/package.json +1 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { B as t, Bt as n, D as r, F as i, Ft as a, G as o, H as s, Ht as c, I as l, J as u, L as ee, M as te, Nt as ne, O as re, Ot as
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { n as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { Fragment as
|
|
2
|
+
import { B as t, Bt as n, D as r, F as i, Ft as a, G as o, H as s, Ht as c, I as l, J as u, L as ee, M as te, Nt as ne, O as re, Ot as d, P as ie, Pt as f, R as ae, S as oe, T as se, Tt as ce, Vt as le, X as ue, _t as p, a as m, bt as de, c as fe, g as pe, gt as me, h as he, ht as ge, i as h, j as _e, jt as ve, k as ye, l as be, n as xe, nt as g, pt as Se, r as Ce, s as we, v as _, w as Te, x as Ee, y as De, z as Oe, zt as ke } from "./lib-AJRHFE5U.js";
|
|
3
|
+
import { n as Ae, r as je, t as Me } from "./useTimeLabels-BmBRv27Y.js";
|
|
4
|
+
import { t as Ne } from "./useConfig-Br1uzq_L.js";
|
|
5
|
+
import { t as Pe } from "./usePrinter-6n2MzVyV.js";
|
|
6
|
+
import { n as Fe, t as Ie } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as Le } from "./useSvgExport-SVIsDot8.js";
|
|
8
|
+
import { t as Re } from "./useNestedProp-DtcXIg7n.js";
|
|
9
|
+
import { t as ze } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as Be } from "./useStableElementSize-C7KADDKj.js";
|
|
11
|
+
import { t as Ve } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
12
|
+
import { t as He } from "./img-C_RNNswI.js";
|
|
13
|
+
import { n as Ue } from "./Title-DH6G8_cZ.js";
|
|
14
|
+
import { t as We } from "./vue_ui_xy-BA3-_LCx.js";
|
|
15
|
+
import { t as Ge } from "./Shape-BubavoqO.js";
|
|
16
|
+
import { t as Ke } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
17
|
+
import { t as qe } from "./SlicerPreview-BA_RDgVn.js";
|
|
18
|
+
import { t as Je } from "./vue-ui-accordion-HvsT8_RM.js";
|
|
19
|
+
import { t as Ye } from "./BaseLegendToggle-CUYal8mC.js";
|
|
20
|
+
import { t as Xe } from "./A11yDataTable-DdRsVULz.js";
|
|
21
|
+
import { Fragment as v, Teleport as Ze, computed as y, createBlock as Qe, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createSlots as $e, createTextVNode as et, createVNode as tt, defineAsyncComponent as nt, getCurrentInstance as rt, guardReactiveProps as C, mergeProps as it, nextTick as at, normalizeClass as ot, normalizeProps as st, normalizeStyle as w, onBeforeUnmount as ct, onMounted as lt, openBlock as T, ref as E, renderList as D, renderSlot as O, resolveDynamicComponent as ut, shallowRef as dt, toDisplayString as k, toRefs as ft, unref as A, useSlots as pt, vModelCheckbox as mt, watch as ht, watchEffect as gt, withCtx as j, withDirectives as _t } from "vue";
|
|
22
22
|
//#region src/utils/xy.js
|
|
23
|
-
function
|
|
23
|
+
function vt(e) {
|
|
24
24
|
return ![
|
|
25
25
|
null,
|
|
26
26
|
void 0,
|
|
@@ -303,7 +303,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
303
303
|
"width",
|
|
304
304
|
"x",
|
|
305
305
|
"y"
|
|
306
|
-
], ir = { style: { width: "100%" } }, ar = { key:
|
|
306
|
+
], ir = { style: { width: "100%" } }, ar = { key: 11 }, or = [
|
|
307
307
|
"text-anchor",
|
|
308
308
|
"font-size",
|
|
309
309
|
"transform",
|
|
@@ -316,27 +316,27 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
316
316
|
"font-size",
|
|
317
317
|
"fill",
|
|
318
318
|
"font-weight"
|
|
319
|
-
], cr = { key:
|
|
319
|
+
], cr = { key: 12 }, lr = [
|
|
320
320
|
"transform",
|
|
321
321
|
"text-anchor",
|
|
322
322
|
"font-size",
|
|
323
323
|
"fill",
|
|
324
324
|
"stroke",
|
|
325
325
|
"innerHTML"
|
|
326
|
-
], ur = { key:
|
|
326
|
+
], ur = { key: 13 }, dr = ["x", "y"], fr = ["innerHTML"], pr = ["x", "y"], mr = ["innerHTML"], hr = [
|
|
327
327
|
"x1",
|
|
328
328
|
"x2",
|
|
329
329
|
"y1",
|
|
330
330
|
"y2",
|
|
331
331
|
"stroke"
|
|
332
|
-
], gr = { key:
|
|
332
|
+
], gr = { key: 14 }, _r = [
|
|
333
333
|
"transform",
|
|
334
334
|
"text-anchor",
|
|
335
335
|
"font-size",
|
|
336
336
|
"fill",
|
|
337
337
|
"stroke",
|
|
338
338
|
"innerHTML"
|
|
339
|
-
], vr = { key:
|
|
339
|
+
], vr = { key: 15 }, yr = ["x", "y"], br = ["innerHTML"], xr = ["x", "y"], Sr = ["innerHTML"], Cr = [
|
|
340
340
|
"x1",
|
|
341
341
|
"x2",
|
|
342
342
|
"y1",
|
|
@@ -419,13 +419,13 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
419
419
|
"transform",
|
|
420
420
|
"innerHTML",
|
|
421
421
|
"onClick"
|
|
422
|
-
], Ur = { key:
|
|
422
|
+
], Ur = { key: 18 }, Wr = [
|
|
423
423
|
"text-anchor",
|
|
424
424
|
"font-size",
|
|
425
425
|
"fill",
|
|
426
426
|
"transform",
|
|
427
427
|
"innerHTML"
|
|
428
|
-
], Gr = { key:
|
|
428
|
+
], Gr = { key: 19 }, Kr = [
|
|
429
429
|
"x1",
|
|
430
430
|
"y1",
|
|
431
431
|
"x2",
|
|
@@ -455,7 +455,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
455
455
|
"fill",
|
|
456
456
|
"text-anchor"
|
|
457
457
|
], Xr = {
|
|
458
|
-
key:
|
|
458
|
+
key: 20,
|
|
459
459
|
style: { "pointer-events": "none" }
|
|
460
460
|
}, Zr = ["x", "y"], Qr = ["innerHTML"], $r = [
|
|
461
461
|
"cx",
|
|
@@ -542,7 +542,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
542
542
|
"padding-left": "6px"
|
|
543
543
|
},
|
|
544
544
|
"data-dom-to-png-ignore": ""
|
|
545
|
-
}, wi = ["innerHTML"], M = /*#__PURE__*/
|
|
545
|
+
}, wi = ["innerHTML"], M = /*#__PURE__*/ Ke({
|
|
546
546
|
__name: "vue-ui-xy",
|
|
547
547
|
props: {
|
|
548
548
|
config: {
|
|
@@ -571,18 +571,18 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
571
571
|
"zoomReset",
|
|
572
572
|
"copyAlt"
|
|
573
573
|
],
|
|
574
|
-
setup(e, { expose:
|
|
575
|
-
let M = e, Ti =
|
|
574
|
+
setup(e, { expose: Ke, emit: Dt }) {
|
|
575
|
+
let M = e, Ti = nt(() => import("./DataTable-G9aclxhk.js")), Ei = nt(() => import("./Tooltip-979Ytd8R.js")), Di = nt(() => import("./UserOptions-rx9hUnOy.js").then((e) => e.n)), Oi = nt(() => import("./BaseIcon-CWXbczu_.js").then((e) => e.n)), ki = nt(() => import("./vue-ui-table-sparkline-nGC8nrgh.js").then((e) => e.n)), Ai = nt(() => import("./PackageVersion-B5nhq8qZ.js").then((e) => e.t)), ji = nt(() => import("./PenAndPaper-z1woaB1V.js").then((e) => e.t)), Mi = nt(() => import("./BaseDraggableDialog-O8jn9Lvi.js").then((e) => e.n)), Ni = Dt, Pi = pt(), Fi = rt(), { vue_ui_xy: Ii } = Ne(), { isThemeValid: Li, warnInvalidTheme: Ri } = ze(), zi = E(null), Bi = E(null), Vi = E(null), Hi = E(null), Ui = E(null), Wi = E(null), Gi = E(null), Ki = E(null), qi = E(null), Ji = E(null), Yi = E(null), Xi = E(null), Zi = E(null), Qi = E(null), $i = E(0), N = E(null), ea = E(!0), ta = E(600), P = E(1e3), na = E("0 0 1000 600"), ra = E({
|
|
576
576
|
x: 0,
|
|
577
577
|
y: 0
|
|
578
578
|
}), ia = E({
|
|
579
579
|
line: "line",
|
|
580
580
|
bar: "bar",
|
|
581
581
|
plot: "plot"
|
|
582
|
-
}), aa = E(!1), oa = E(!1), sa = E(!1), ca = E(null), la = E([]), ua =
|
|
582
|
+
}), aa = E(!1), oa = E(!1), sa = E(!1), ca = E(null), la = E([]), ua = y(() => new Set(la.value)), F = E(s()), da = E(0), fa = E(0), pa = E(0), ma = E(!0), ha = E(0), I = E(null), ga = E(!1), _a = E(!0), va = E(!0), L = E(null), ya = E({}), ba = E(null), xa = E(!1), Sa = E(null), Ca = E(!1), wa = E(!1), Ta = E(null), R = E(null), Ea = E(null), Da = E({
|
|
583
583
|
x: 0,
|
|
584
584
|
y: 0
|
|
585
|
-
}), Oa = E(null), ka = E(null), z = E(null), Aa = E(null), ja = E(null), Ma = dt(null), Na = E(!1), Pa = E(0), Fa = E(0), Ia =
|
|
585
|
+
}), Oa = E(null), ka = E(null), z = E(null), Aa = E(null), ja = E(null), Ma = dt(null), Na = E(!1), Pa = E(0), Fa = E(0), Ia = Be({
|
|
586
586
|
elementRef: Ma,
|
|
587
587
|
minimumWidth: 2,
|
|
588
588
|
minimumHeight: 2,
|
|
@@ -604,15 +604,15 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
604
604
|
}
|
|
605
605
|
async function za() {
|
|
606
606
|
let e = ++Fa.value;
|
|
607
|
-
Na.value = !1, await
|
|
607
|
+
Na.value = !1, await at(), await Ra(), await Ra(), e === Fa.value && (Pa.value += 1, Na.value = !0);
|
|
608
608
|
}
|
|
609
609
|
let Ba = E(!1);
|
|
610
610
|
function Va() {
|
|
611
|
-
Ba.value || (Ba.value = !0,
|
|
611
|
+
Ba.value || (Ba.value = !0, at(() => {
|
|
612
612
|
Ba.value = !1, La(), za();
|
|
613
613
|
}));
|
|
614
614
|
}
|
|
615
|
-
let Ha =
|
|
615
|
+
let Ha = y(() => ({
|
|
616
616
|
height: ta.value,
|
|
617
617
|
width: P.value
|
|
618
618
|
})), Ua = E(!1), Wa = E(null), Ga = E(null), B = E({
|
|
@@ -624,10 +624,10 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
624
624
|
plot: 3,
|
|
625
625
|
line: 3,
|
|
626
626
|
selectedLine: 3
|
|
627
|
-
}), qa =
|
|
627
|
+
}), qa = y(() => Math.max(Ka.value.line * 1.5, Ka.value.selectedLine));
|
|
628
628
|
lt(() => {
|
|
629
629
|
xa.value = !0, M.dataset.length && M.dataset.forEach((e, t) => {
|
|
630
|
-
[null, void 0].includes(e.series) &&
|
|
630
|
+
[null, void 0].includes(e.series) && ue({
|
|
631
631
|
componentName: "VueUiXy",
|
|
632
632
|
type: "datasetSerieAttribute",
|
|
633
633
|
property: "series (number[])",
|
|
@@ -638,14 +638,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
638
638
|
});
|
|
639
639
|
function Ja() {
|
|
640
640
|
if (!Object.keys(M.config || {}).length) return Ii;
|
|
641
|
-
let e =
|
|
641
|
+
let e = Re({
|
|
642
642
|
userConfig: M.config,
|
|
643
643
|
defaultConfig: Ii
|
|
644
644
|
});
|
|
645
|
-
M.config &&
|
|
645
|
+
M.config && Se(M.config, "chart.highlightArea") && (Array.isArray(M.config.chart.highlightArea) ? e.chart.highlightArea = M.config.chart.highlightArea : e.chart.highlightArea = [M.config.chart.highlightArea]), M.config && Se(M.config, "chart.annotations") && Array.isArray(M.config.chart.annotations) && M.config.chart.annotations.length ? e.chart.annotations = M.config.chart.annotations.map((e) => Re({
|
|
646
646
|
defaultConfig: Ii.chart.annotations[0],
|
|
647
647
|
userConfig: e
|
|
648
|
-
})) : e.chart.annotations = [], M.config &&
|
|
648
|
+
})) : e.chart.annotations = [], M.config && Se(M.config, "chart.grid.position") && M.config.chart.grid.position === "start" && M.dataset.length && M.dataset.some((e) => e.type === "bar") && (e.chart.grid.position = "middle", Se(M.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), M.config && Se(M.config, "chart.highlightArea") && (Array.isArray(M.config.chart.highlightArea) ? e.chart.highlightArea = M.config.chart.highlightArea.map((e) => Ya({
|
|
649
649
|
defaultConfig: Ii.chart.highlightArea,
|
|
650
650
|
userConfig: e
|
|
651
651
|
})) : e.chart.highlightArea = Ya({
|
|
@@ -655,32 +655,32 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
655
655
|
let t = e.theme;
|
|
656
656
|
if (!t) return e;
|
|
657
657
|
if (!Li.value(e)) return Ri(e), e;
|
|
658
|
-
let r =
|
|
659
|
-
userConfig:
|
|
658
|
+
let r = Re({
|
|
659
|
+
userConfig: We[t] || M.config,
|
|
660
660
|
defaultConfig: e
|
|
661
|
-
}), i =
|
|
661
|
+
}), i = Re({
|
|
662
662
|
userConfig: M.config,
|
|
663
663
|
defaultConfig: r
|
|
664
664
|
});
|
|
665
665
|
return {
|
|
666
666
|
...i,
|
|
667
|
-
customPalette: i.customPalette.length ? i.customPalette : n[t] ||
|
|
667
|
+
customPalette: i.customPalette.length ? i.customPalette : n[t] || d
|
|
668
668
|
};
|
|
669
669
|
}
|
|
670
670
|
function Ya({ defaultConfig: e, userConfig: t }) {
|
|
671
|
-
return
|
|
671
|
+
return Re({
|
|
672
672
|
defaultConfig: e,
|
|
673
673
|
userConfig: t
|
|
674
674
|
});
|
|
675
675
|
}
|
|
676
|
-
let Xa =
|
|
676
|
+
let Xa = y({
|
|
677
677
|
get() {
|
|
678
678
|
return !!M.dataset && M.dataset.length;
|
|
679
679
|
},
|
|
680
680
|
set(e) {
|
|
681
681
|
return e;
|
|
682
682
|
}
|
|
683
|
-
}), V = E(Ja()), Za =
|
|
683
|
+
}), V = E(Ja()), Za = y(() => V.value.chart.userOptions.useCursorPointer), H = E({
|
|
684
684
|
dataLabels: { show: !0 },
|
|
685
685
|
showTooltip: !0,
|
|
686
686
|
showTable: !1,
|
|
@@ -701,7 +701,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
701
701
|
}
|
|
702
702
|
H.value.showTooltip = V.value.chart.tooltip.show === !0, e !== Wa.value && (H.value.isStacked = e, Wa.value = e), t !== Ga.value && (H.value.useIndividualScale = t, Ga.value = t), H.value.isStacked && (H.value.useIndividualScale = !0);
|
|
703
703
|
}
|
|
704
|
-
let $a =
|
|
704
|
+
let $a = y(() => !!V.value.debug), eo = y(() => c({
|
|
705
705
|
defaultConfig: {
|
|
706
706
|
useCssAnimation: !1,
|
|
707
707
|
showTable: !1,
|
|
@@ -757,7 +757,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
757
757
|
}
|
|
758
758
|
},
|
|
759
759
|
userConfig: V.value.skeletonConfig ?? {}
|
|
760
|
-
})), to =
|
|
760
|
+
})), to = y(() => M.config?.skeletonDataset ?? [{
|
|
761
761
|
name: "",
|
|
762
762
|
series: [
|
|
763
763
|
0,
|
|
@@ -794,8 +794,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
794
794
|
],
|
|
795
795
|
type: "bar",
|
|
796
796
|
color: "#CACACA"
|
|
797
|
-
}]), { loading: no, FINAL_DATASET: ro, manualLoading: io } =
|
|
798
|
-
...
|
|
797
|
+
}]), { loading: no, FINAL_DATASET: ro, manualLoading: io } = Fe({
|
|
798
|
+
...ft(M),
|
|
799
799
|
FINAL_CONFIG: V,
|
|
800
800
|
prepareConfig: Ja,
|
|
801
801
|
callback: () => {
|
|
@@ -808,33 +808,33 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
808
808
|
defaultConfig: V.value,
|
|
809
809
|
userConfig: eo.value
|
|
810
810
|
})
|
|
811
|
-
}), ao = Ct((e, t) =>
|
|
811
|
+
}), ao = Ct((e, t) => de({
|
|
812
812
|
data: e,
|
|
813
813
|
threshold: t
|
|
814
|
-
})), oo = (e) => ao(e, V.value.downsample.threshold), so =
|
|
814
|
+
})), oo = (e) => ao(e, V.value.downsample.threshold), so = y(() => {
|
|
815
815
|
let e = V.value.downsample.threshold;
|
|
816
816
|
return ro.value.map((t) => ao(t.series, e).length);
|
|
817
|
-
}), co =
|
|
817
|
+
}), co = y(() => {
|
|
818
818
|
let e = -Infinity;
|
|
819
819
|
for (let t = 0; t < so.value.length; t += 1) {
|
|
820
820
|
let n = so.value[t];
|
|
821
821
|
n > e && (e = n);
|
|
822
822
|
}
|
|
823
823
|
return e;
|
|
824
|
-
}), lo =
|
|
824
|
+
}), lo = y(() => {
|
|
825
825
|
let e = 0;
|
|
826
826
|
for (let t = 0; t < so.value.length; t += 1) {
|
|
827
827
|
let n = so.value[t];
|
|
828
828
|
n > e && (e = n);
|
|
829
829
|
}
|
|
830
830
|
return e;
|
|
831
|
-
}), uo =
|
|
831
|
+
}), uo = y(() => co.value), U = E({
|
|
832
832
|
start: 0,
|
|
833
833
|
end: uo.value
|
|
834
834
|
}), fo = E({
|
|
835
835
|
start: 0,
|
|
836
836
|
end: uo.value
|
|
837
|
-
}), po =
|
|
837
|
+
}), po = y(() => V.value.chart.zoom.preview.enable && (fo.value.start !== U.value.start || fo.value.end !== U.value.end));
|
|
838
838
|
function mo(e, t) {
|
|
839
839
|
fo.value[e] = t;
|
|
840
840
|
}
|
|
@@ -853,7 +853,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
853
853
|
end: n
|
|
854
854
|
}, fo.value.start = t, fo.value.end = n, Vi.value && (Vi.value.setStartValue(t), Vi.value.setEndValue(n));
|
|
855
855
|
}
|
|
856
|
-
let go =
|
|
856
|
+
let go = y(() => {
|
|
857
857
|
let { left: e, top: t, width: n, height: r } = J.value, i = U.value.start, a = U.value.end - i, o = n / a, s = fo.value.start - i, c = fo.value.end - i, l = Math.max(0, Math.min(a, s)), u = Math.max(0, Math.min(a, c));
|
|
858
858
|
return {
|
|
859
859
|
x: e + l * o,
|
|
@@ -873,7 +873,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
873
873
|
}
|
|
874
874
|
};
|
|
875
875
|
});
|
|
876
|
-
|
|
876
|
+
ht(() => M.selectedXIndex, (e) => {
|
|
877
877
|
if ([null, void 0].includes(M.selectedXIndex)) {
|
|
878
878
|
R.value = null;
|
|
879
879
|
return;
|
|
@@ -881,21 +881,21 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
881
881
|
let t = e - U.value.start;
|
|
882
882
|
t < 0 || e >= U.value.end ? R.value = null : R.value = t ?? null;
|
|
883
883
|
}, { immediate: !0 });
|
|
884
|
-
let { isPrinting: _o, isImaging: vo, generatePdf: yo, generateImage: bo } =
|
|
884
|
+
let { isPrinting: _o, isImaging: vo, generatePdf: yo, generateImage: bo } = Pe({
|
|
885
885
|
elementId: `vue-ui-xy_${F.value}`,
|
|
886
886
|
fileName: V.value.chart.title.text || "vue-ui-xy",
|
|
887
887
|
options: V.value.chart.userOptions.print
|
|
888
|
-
}), xo = E(!1), So =
|
|
888
|
+
}), xo = E(!1), So = y(() => Ee(V.value.customPalette)), Co = y(() => {
|
|
889
889
|
let e = V.value.chart.grid.labels.yAxis.scaleMin;
|
|
890
890
|
if (e == null) return null;
|
|
891
891
|
let t = Number(e);
|
|
892
892
|
return Number.isFinite(t) ? t : null;
|
|
893
|
-
}), wo =
|
|
893
|
+
}), wo = y(() => Co.value === null ? Hs.value : J.value.bottom), To = y(() => {
|
|
894
894
|
let e = V.value.chart.grid.labels.yAxis.scaleMax;
|
|
895
895
|
if (e == null) return null;
|
|
896
896
|
let t = Number(e);
|
|
897
897
|
return Number.isFinite(t) ? t : null;
|
|
898
|
-
}), Eo =
|
|
898
|
+
}), Eo = y(() => Co.value !== null || To.value !== null), Do = y(() => il(Io.value.filter((e) => !ua.value.has(e.id)), 0, 1)), Oo = y(() => {
|
|
899
899
|
let { min: e, max: t } = Do.value;
|
|
900
900
|
if (!Eo.value) {
|
|
901
901
|
let t = e;
|
|
@@ -903,7 +903,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
903
903
|
}
|
|
904
904
|
let n = Co.value === null ? e > 0 ? 0 : e : Co.value, r = To.value === null ? t : To.value;
|
|
905
905
|
return wt(e < n ? e : n, t > r ? t : r).min;
|
|
906
|
-
}), ko =
|
|
906
|
+
}), ko = y(() => {
|
|
907
907
|
let { min: e, max: t } = Do.value;
|
|
908
908
|
if (!Eo.value) {
|
|
909
909
|
let e = t;
|
|
@@ -911,8 +911,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
911
911
|
}
|
|
912
912
|
let n = Co.value === null ? e > 0 ? 0 : e : Co.value, r = To.value === null ? t : To.value;
|
|
913
913
|
return wt(e < n ? e : n, t > r ? t : r).max;
|
|
914
|
-
}), W =
|
|
915
|
-
|
|
914
|
+
}), W = y(() => V.value.chart.grid.labels.yAxis.useNiceScale ? he(Oo.value, ko.value < 0 ? 0 : ko.value, V.value.chart.grid.labels.yAxis.commonScaleSteps) : pe(Oo.value, ko.value < 0 ? 0 : ko.value, V.value.chart.grid.labels.yAxis.commonScaleSteps)), Ao = y(() => [null, void 0].includes(V.value.chart.grid.labels.yAxis.scaleMin) ? W.value.min >= 0 ? 0 : Math.abs(W.value.min) : -W.value.min), G = y(() => ro.value.some((e) => Array.isArray(e.series) && e.series.some(xt)));
|
|
915
|
+
gt(() => {
|
|
916
916
|
G.value && ro.value.some((e) => !No(e)) && console.warn("Vue Data UI - VueUiXy: mixed continuous and non-continuous series are not supported in the same chart.\n\nContinuous mode requires all visible 'line' and 'plot' series to use coordinate-based datasets:\n[{ x: number, y: number }]\n\nSeries of type 'bar' and standard numeric series are ignored in continuous mode to prevent runtime errors.\n\nIf you need to mix 'bar', 'line', and 'plot' series in the same chart, all series must use the standard [number, number, number...] format.");
|
|
917
917
|
});
|
|
918
918
|
function jo(e) {
|
|
@@ -940,7 +940,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
940
940
|
isInvalid: !0
|
|
941
941
|
} : {
|
|
942
942
|
x: Number(e.x),
|
|
943
|
-
y:
|
|
943
|
+
y: me(e.y) ? Number(e.y) : null,
|
|
944
944
|
index: t,
|
|
945
945
|
raw: e,
|
|
946
946
|
isNull: !1,
|
|
@@ -950,17 +950,17 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
950
950
|
function Fo(e) {
|
|
951
951
|
return G.value ? e && typeof e == "object" ? e.y : null : e;
|
|
952
952
|
}
|
|
953
|
-
let Io =
|
|
953
|
+
let Io = y(() => !ea.value && !G.value ? ro.value : ro.value.map((e, t) => {
|
|
954
954
|
let n = `uniqueId_${t}`, r = No(e), i = G.value ? r ? e.series : [] : oo(e.series);
|
|
955
955
|
return {
|
|
956
956
|
...e,
|
|
957
957
|
slotAbsoluteIndex: t,
|
|
958
|
-
series: G.value ? i.map((e, t) => Po(e, t)).filter((e) => e.isInvalid ? !1 : e.x === null && e.y === null ? U.value.start <= 0 && U.value.end >= 0 : e.x >= U.value.start && e.x <= U.value.end) : i.map((e) =>
|
|
959
|
-
color:
|
|
958
|
+
series: G.value ? i.map((e, t) => Po(e, t)).filter((e) => e.isInvalid ? !1 : e.x === null && e.y === null ? U.value.start <= 0 && U.value.end >= 0 : e.x >= U.value.start && e.x <= U.value.end) : i.map((e) => me(e) ? e : null).slice(U.value.start, U.value.end),
|
|
959
|
+
color: De(e.color ? e.color : So.value[t] ? So.value[t] : d[t]),
|
|
960
960
|
id: n,
|
|
961
961
|
scaleLabel: e.scaleLabel || n
|
|
962
962
|
};
|
|
963
|
-
})), Lo =
|
|
963
|
+
})), Lo = y(() => Io.value.map((e, t) => ({
|
|
964
964
|
absoluteIndex: t,
|
|
965
965
|
...e,
|
|
966
966
|
series: G.value ? e.series.map((e) => ({
|
|
@@ -970,14 +970,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
970
970
|
absoluteValues: G.value ? e.series.map((e) => e.y) : e.series,
|
|
971
971
|
segregate: () => hc(e),
|
|
972
972
|
isSegregated: ua.value.has(e.id)
|
|
973
|
-
}))), K =
|
|
973
|
+
}))), K = y(() => Io.value.map((e) => ({
|
|
974
974
|
...e,
|
|
975
975
|
series: G.value ? e.series.map((e) => ({
|
|
976
976
|
...e,
|
|
977
977
|
y: e.y === null ? null : e.y + Ao.value
|
|
978
978
|
})) : e.series.map((e) => e + Ao.value),
|
|
979
979
|
absoluteValues: G.value ? e.series.map((e) => e.y) : e.series
|
|
980
|
-
})).filter((e) => !ua.value.has(e.id))), Ro =
|
|
980
|
+
})).filter((e) => !ua.value.has(e.id))), Ro = y(() => la.value.length === Lo.value.length), q = y(() => V.value.chart.grid.labels.yAxis.position === "right");
|
|
981
981
|
function zo() {
|
|
982
982
|
let e = 0;
|
|
983
983
|
Yi.value && (e = Array.from(Yi.value.querySelectorAll("text")).reduce((e, t) => {
|
|
@@ -1026,7 +1026,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1026
1026
|
Ho.value = 0, Uo.value = 0;
|
|
1027
1027
|
}
|
|
1028
1028
|
}
|
|
1029
|
-
let Go =
|
|
1029
|
+
let Go = y(() => {
|
|
1030
1030
|
let e = 0;
|
|
1031
1031
|
if (Ki.value) try {
|
|
1032
1032
|
e = Ki.value.getBBox().height || 0;
|
|
@@ -1034,11 +1034,11 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1034
1034
|
e = 0;
|
|
1035
1035
|
}
|
|
1036
1036
|
return e + Ho.value + B.value.xAxis;
|
|
1037
|
-
}), Ko =
|
|
1037
|
+
}), Ko = y(() => ro.value.some((e) => e.useProgression));
|
|
1038
1038
|
function qo() {
|
|
1039
1039
|
return V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + V.value.chart.grid.labels.yAxis.labelWidth + V.value.chart.grid.labels.axis.yLabelOffsetX + B.value.dataLabels * .8;
|
|
1040
1040
|
}
|
|
1041
|
-
let J =
|
|
1041
|
+
let J = y(() => {
|
|
1042
1042
|
Pa.value;
|
|
1043
1043
|
let e = 0, t = 0, n = 0, r = 0;
|
|
1044
1044
|
if (V.value.chart.grid.labels.show) if (H.value.useIndividualScale && !H.value.isStacked) q.value ? t = (ro.value.length - la.value.length) * qo() : e = (ro.value.length - la.value.length) * (V.value.chart.grid.labels.yAxis.labelWidth + 36);
|
|
@@ -1065,8 +1065,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1065
1065
|
yAxisLabelWidth: r,
|
|
1066
1066
|
individualOffsetX: 36
|
|
1067
1067
|
};
|
|
1068
|
-
}), Jo =
|
|
1069
|
-
let e = +(V.value.chart.grid.position === "middle"), t = X.value + e, n =
|
|
1068
|
+
}), Jo = y(() => {
|
|
1069
|
+
let e = +(V.value.chart.grid.position === "middle"), t = X.value + e, n = g(J.value?.top), r = g(J.value?.bottom);
|
|
1070
1070
|
return G.value ? V.value.chart.grid.position === "middle" ? fl.value.map((e, t, i) => {
|
|
1071
1071
|
if (t === 0) return null;
|
|
1072
1072
|
let a = i[t - 1], o = a.x + (e.x - a.x) / 2;
|
|
@@ -1075,7 +1075,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1075
1075
|
let i = V.value.chart.grid.position === "middle" ? kc(t) : Oc(t);
|
|
1076
1076
|
return `M${i},${n} L${i},${r}`;
|
|
1077
1077
|
}).join(" ");
|
|
1078
|
-
}), Yo =
|
|
1078
|
+
}), Yo = y(() => {
|
|
1079
1079
|
if (!V.value.chart.grid.labels.xAxis.showCrosshairs) return "";
|
|
1080
1080
|
let e = V.value.chart.grid.labels.xAxis.crosshairSize, t = V.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
|
|
1081
1081
|
return (G.value ? fl.value : ls.value).map((n, r) => {
|
|
@@ -1099,7 +1099,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1099
1099
|
}
|
|
1100
1100
|
let es = E(!1);
|
|
1101
1101
|
async function ts(e = !1) {
|
|
1102
|
-
await
|
|
1102
|
+
await at(), es.value = e, ga.value && (va.value = e);
|
|
1103
1103
|
}
|
|
1104
1104
|
function ns() {
|
|
1105
1105
|
ts(!0);
|
|
@@ -1111,10 +1111,10 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1111
1111
|
aa.value = !aa.value;
|
|
1112
1112
|
}
|
|
1113
1113
|
let Y = E([]), as = E([]), os = 0;
|
|
1114
|
-
|
|
1114
|
+
gt(() => {
|
|
1115
1115
|
let e = ++os;
|
|
1116
1116
|
(async () => {
|
|
1117
|
-
let t = co.value, n = await
|
|
1117
|
+
let t = co.value, n = await Me({
|
|
1118
1118
|
values: V.value.chart.grid.labels.xAxisLabels.values,
|
|
1119
1119
|
maxDatapoints: t,
|
|
1120
1120
|
formatter: V.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
@@ -1125,10 +1125,10 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1125
1125
|
})();
|
|
1126
1126
|
});
|
|
1127
1127
|
let ss = 0;
|
|
1128
|
-
|
|
1128
|
+
gt(() => {
|
|
1129
1129
|
let e = ++ss;
|
|
1130
1130
|
(async () => {
|
|
1131
|
-
let t = co.value, n = await
|
|
1131
|
+
let t = co.value, n = await Me({
|
|
1132
1132
|
values: V.value.chart.grid.labels.xAxisLabels.values,
|
|
1133
1133
|
maxDatapoints: t,
|
|
1134
1134
|
formatter: V.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
@@ -1138,24 +1138,24 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1138
1138
|
e === ss && (as.value = n);
|
|
1139
1139
|
})();
|
|
1140
1140
|
});
|
|
1141
|
-
let cs =
|
|
1141
|
+
let cs = y(() => {
|
|
1142
1142
|
let e = V.value.chart.grid.labels.xAxisLabels.modulo;
|
|
1143
1143
|
return Y.value.length ? Math.min(e, [...new Set(Y.value.map((e) => e.text))].length) : e;
|
|
1144
|
-
}), ls =
|
|
1144
|
+
}), ls = y(() => {
|
|
1145
1145
|
let e = V.value.chart.grid.labels.xAxisLabels, t = Y.value || [], n = as.value || [], r = U.value.start ?? 0, i = R.value, a = X.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
|
|
1146
|
-
return
|
|
1147
|
-
}), us =
|
|
1146
|
+
return we(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, cs.value || 1), o, s, r, i, a);
|
|
1147
|
+
}), us = y(() => (ls.value || []).map((e) => e?.text ?? "").join("|"));
|
|
1148
1148
|
lt(() => {
|
|
1149
1149
|
requestAnimationFrame(() => {
|
|
1150
1150
|
Wo();
|
|
1151
|
-
}),
|
|
1151
|
+
}), ht([
|
|
1152
1152
|
() => us.value,
|
|
1153
1153
|
() => V.value.chart.grid.labels.xAxisLabels.rotation,
|
|
1154
1154
|
() => B.value.xAxis,
|
|
1155
1155
|
() => P.value,
|
|
1156
1156
|
() => ta.value
|
|
1157
1157
|
], async () => {
|
|
1158
|
-
await
|
|
1158
|
+
await at(), requestAnimationFrame(() => {
|
|
1159
1159
|
Wo();
|
|
1160
1160
|
});
|
|
1161
1161
|
}, { flush: "post" });
|
|
@@ -1178,7 +1178,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1178
1178
|
label: e.text
|
|
1179
1179
|
});
|
|
1180
1180
|
}
|
|
1181
|
-
let X =
|
|
1181
|
+
let X = y(() => {
|
|
1182
1182
|
let e = Et((U.value.end ?? 0) - (U.value.start ?? 0));
|
|
1183
1183
|
return Math.max(1, e);
|
|
1184
1184
|
});
|
|
@@ -1186,13 +1186,13 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1186
1186
|
G.value || (I.value = e);
|
|
1187
1187
|
}
|
|
1188
1188
|
function ps(e) {
|
|
1189
|
-
if (!G.value || !
|
|
1189
|
+
if (!G.value || !p(e)) {
|
|
1190
1190
|
Ta.value = null, Z.value = [], $s.value = null;
|
|
1191
1191
|
return;
|
|
1192
1192
|
}
|
|
1193
1193
|
Ta.value = Number(e), Vo(Number(e));
|
|
1194
1194
|
}
|
|
1195
|
-
let ms =
|
|
1195
|
+
let ms = y(() => G.value ? p(Ta.value) || p($s.value) : ![null, void 0].includes(R.value) || ![null, void 0].includes(I.value));
|
|
1196
1196
|
function hs() {
|
|
1197
1197
|
H.value.isStacked = !H.value.isStacked, H.value.isStacked ? H.value.useIndividualScale = !0 : H.value.useIndividualScale = V.value.chart.grid.labels.yAxis.useIndividualScale;
|
|
1198
1198
|
}
|
|
@@ -1275,15 +1275,15 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1275
1275
|
}
|
|
1276
1276
|
async function Ns() {
|
|
1277
1277
|
let e = Os();
|
|
1278
|
-
ws.value = !0, await Ss(), Os() === e ? ws.value = !1 : (await
|
|
1278
|
+
ws.value = !0, await Ss(), Os() === e ? ws.value = !1 : (await at(), Es && cancelAnimationFrame(Es), Es = requestAnimationFrame(() => {
|
|
1279
1279
|
ws.value = !1, Es = null;
|
|
1280
1280
|
})), Ni("zoomReset");
|
|
1281
1281
|
}
|
|
1282
|
-
let Ps =
|
|
1282
|
+
let Ps = y(() => W.value.max + Ao.value);
|
|
1283
1283
|
function Fs(e) {
|
|
1284
|
-
return e / (
|
|
1284
|
+
return e / (vt(Ps.value) ? Ps.value : 1);
|
|
1285
1285
|
}
|
|
1286
|
-
let Is =
|
|
1286
|
+
let Is = y(() => V.value.chart.grid.labels.yAxis.reverse);
|
|
1287
1287
|
function Ls(e) {
|
|
1288
1288
|
return Is.value ? 1 - e : e;
|
|
1289
1289
|
}
|
|
@@ -1298,24 +1298,24 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1298
1298
|
individualHeight: i
|
|
1299
1299
|
});
|
|
1300
1300
|
}
|
|
1301
|
-
let Bs =
|
|
1301
|
+
let Bs = y(() => V.value.chart.grid.labels.xAxis.reverse);
|
|
1302
1302
|
function Vs(e) {
|
|
1303
1303
|
return Bs.value ? 1 - e : e;
|
|
1304
1304
|
}
|
|
1305
|
-
let Hs =
|
|
1305
|
+
let Hs = y(() => isNaN(Fs(Ao.value)) ? J.value?.bottom : J.value?.bottom - J.value.height * Fs(Ao.value));
|
|
1306
1306
|
function Us(e) {
|
|
1307
1307
|
let t = W.value.min, n = W.value.max - t;
|
|
1308
1308
|
return !Number.isFinite(e) || !Number.isFinite(n) || n === 0 ? J.value?.bottom : J.value?.bottom - J.value.height * ((e - t) / n);
|
|
1309
1309
|
}
|
|
1310
|
-
let Ws =
|
|
1310
|
+
let Ws = y(() => W.value.min <= 0 && W.value.max >= 0 ? Us(0) : W.value.min > 0 ? Us(W.value.min) : Us(W.value.max));
|
|
1311
1311
|
function Gs(e) {
|
|
1312
1312
|
let t = ![null, void 0].includes(V.value.chart.grid.labels.yAxis.scaleMin) && V.value.chart.grid.labels.yAxis.scaleMin > 0 && Oo.value >= 0 ? J.value?.bottom : Hs.value;
|
|
1313
|
-
return e.value >= 0 ?
|
|
1313
|
+
return e.value >= 0 ? _(t - e.y <= 0 ? 1e-5 : t - e.y) : _(e.y - Hs.value <= 0 ? 1e-5 : e.y - Hs.value);
|
|
1314
1314
|
}
|
|
1315
1315
|
function Ks(e) {
|
|
1316
|
-
return e.value >= 0 ?
|
|
1316
|
+
return e.value >= 0 ? _(e.zeroPosition - e.y <= 0 ? 1e-5 : e.zeroPosition - e.y) : _(e.y - e.zeroPosition <= 0 ? 1e-5 : e.zeroPosition - e.y);
|
|
1317
1317
|
}
|
|
1318
|
-
let qs =
|
|
1318
|
+
let qs = y(() => {
|
|
1319
1319
|
let e = Math.max(1, X.value);
|
|
1320
1320
|
return {
|
|
1321
1321
|
bar: Tt(Math.max(1, J.value.width), e * Wc.value, 1),
|
|
@@ -1347,7 +1347,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1347
1347
|
-Infinity
|
|
1348
1348
|
].includes(e.zeroPosition) ? 0 : e.zeroPosition;
|
|
1349
1349
|
}
|
|
1350
|
-
let Qs = E(null), Z = E([]), $s = E(null), ec =
|
|
1350
|
+
let Qs = E(null), Z = E([]), $s = E(null), ec = y(() => {
|
|
1351
1351
|
if (!G.value) return {
|
|
1352
1352
|
sortedPoints: [],
|
|
1353
1353
|
matchingPointsByXValue: /* @__PURE__ */ new Map()
|
|
@@ -1357,7 +1357,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1357
1357
|
let i = K.value[r];
|
|
1358
1358
|
if (["line", "plot"].includes(i.type) && Array.isArray(i.series)) for (let r = 0; r < i.series.length; r += 1) {
|
|
1359
1359
|
let a = i.series[r];
|
|
1360
|
-
if (!
|
|
1360
|
+
if (!p(a?.x) || !p(a?.y)) continue;
|
|
1361
1361
|
let o = Number(a.x), s = ml(a), c = {
|
|
1362
1362
|
datapoint: i,
|
|
1363
1363
|
point: a,
|
|
@@ -1397,15 +1397,15 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1397
1397
|
});
|
|
1398
1398
|
}), a;
|
|
1399
1399
|
}
|
|
1400
|
-
let nc =
|
|
1400
|
+
let nc = y(() => G.value ? Array.from(ec.value.matchingPointsByXValue.keys()).sort((e, t) => ml({ x: e }) - ml({ x: t })) : []);
|
|
1401
1401
|
function rc(e) {
|
|
1402
1402
|
let t = nc.value[e];
|
|
1403
|
-
if (!
|
|
1403
|
+
if (!p(t)) {
|
|
1404
1404
|
Z.value = [], $s.value = null, Ta.value = null, sa.value = !1;
|
|
1405
1405
|
return;
|
|
1406
1406
|
}
|
|
1407
1407
|
Vo(Number(t));
|
|
1408
|
-
let n =
|
|
1408
|
+
let n = ke(ml({ x: Number(t) }), J.value.top + J.value.height / 2, L.value);
|
|
1409
1409
|
n && (Da.value = n), R.value = e, Ea.value = e, sa.value = !0;
|
|
1410
1410
|
}
|
|
1411
1411
|
function ic(e) {
|
|
@@ -1505,7 +1505,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1505
1505
|
}
|
|
1506
1506
|
async function dc({ scale: e = 2 } = {}) {
|
|
1507
1507
|
if (!zi.value) return;
|
|
1508
|
-
let { width: t, height: n } = zi.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await
|
|
1508
|
+
let { width: t, height: n } = zi.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await He({
|
|
1509
1509
|
domElement: zi.value,
|
|
1510
1510
|
base64: !0,
|
|
1511
1511
|
img: !0,
|
|
@@ -1555,7 +1555,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1555
1555
|
let t = gc(e);
|
|
1556
1556
|
t !== null && (ua.value.has(t.id) || hc({ id: t.id }));
|
|
1557
1557
|
}
|
|
1558
|
-
let yc =
|
|
1558
|
+
let yc = y(() => `${V.value.chart.title.text || "Chart visualization"}. ${V.value.chart.title.subtitle.text || ""}`), bc = y(() => ({ linePlot: X.value > V.value.line.dot.hideAboveMaxSerieLength })), xc = y(() => V.value.chart.userOptions.show && (!V.value.chart.title.show || !V.value.chart.title.text)), Sc = y(() => {
|
|
1559
1559
|
if (Array.isArray(V.value.chart.highlightArea)) return V.value.chart.highlightArea.map((e) => {
|
|
1560
1560
|
let t = Math.min(e.to, uo.value - 1);
|
|
1561
1561
|
return {
|
|
@@ -1571,12 +1571,12 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1571
1571
|
...e,
|
|
1572
1572
|
span: e.from === e.to ? 1 : e.to < e.from ? 0 : e.to - e.from + 1
|
|
1573
1573
|
}];
|
|
1574
|
-
}), Cc =
|
|
1574
|
+
}), Cc = y(() => ea.value ? ro.value.map((e, t) => ({
|
|
1575
1575
|
...e,
|
|
1576
1576
|
series: oo(e.series),
|
|
1577
1577
|
id: `uniqueId_${t}`,
|
|
1578
|
-
color:
|
|
1579
|
-
})) : ro.value), wc =
|
|
1578
|
+
color: De(e.color ? e.color : So.value[t] ? So.value[t] : d[t])
|
|
1579
|
+
})) : ro.value), wc = y(() => K.value.map((e) => {
|
|
1580
1580
|
let t = e.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
|
|
1581
1581
|
return {
|
|
1582
1582
|
id: e.id,
|
|
@@ -1584,7 +1584,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1584
1584
|
color: e.color,
|
|
1585
1585
|
values: yt(X.value, t)
|
|
1586
1586
|
};
|
|
1587
|
-
})), Tc =
|
|
1587
|
+
})), Tc = y(() => ({
|
|
1588
1588
|
responsiveBreakpoint: V.value.table.responsiveBreakpoint,
|
|
1589
1589
|
roundingValues: V.value.table.rounding,
|
|
1590
1590
|
showAverage: !1,
|
|
@@ -1606,10 +1606,10 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1606
1606
|
},
|
|
1607
1607
|
userOptions: { show: !1 },
|
|
1608
1608
|
sparkline: { animation: { show: !1 } }
|
|
1609
|
-
})), Ec =
|
|
1609
|
+
})), Ec = y(() => {
|
|
1610
1610
|
let e = Math.max(0, J.value?.width || 0);
|
|
1611
1611
|
return V.value.chart.grid.position === "middle" ? Tt(e, Math.max(1, X.value), 1) : Tt(e, Math.max(1, X.value - 1), 0);
|
|
1612
|
-
}), Dc =
|
|
1612
|
+
}), Dc = y(() => V.value.chart.grid.position === "middle" ? Ec.value : X.value <= 1 ? Math.max(0, J.value?.width || 0) : Ec.value);
|
|
1613
1613
|
function Oc(e) {
|
|
1614
1614
|
let t = J.value?.left || 0;
|
|
1615
1615
|
return V.value.chart.grid.position === "middle" ? t + Ec.value / 2 + Ec.value * e : t + Ec.value * e;
|
|
@@ -1640,11 +1640,11 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1640
1640
|
function Pc(e) {
|
|
1641
1641
|
return Math.max(1e-5, Dc.value * e);
|
|
1642
1642
|
}
|
|
1643
|
-
let Fc =
|
|
1643
|
+
let Fc = y(() => m(Lo.value.filter((e) => !ua.value.has(e.id)))), Ic = [
|
|
1644
1644
|
"bar",
|
|
1645
1645
|
"line",
|
|
1646
1646
|
"plot"
|
|
1647
|
-
], Lc =
|
|
1647
|
+
], Lc = y(() => Fc.value.filter((e) => Ic.includes(e.type))), Rc = y(() => Lc.value.length), zc = y(() => Lc.value.filter((e) => e.type === "bar")), Bc = y(() => Lc.value.filter((e) => e.type === "line")), Vc = y(() => Lc.value.filter((e) => e.type === "plot")), Hc = y(() => Io.value.filter((e) => e.type === "bar" && !ua.value.has(e.id))), Uc = y(() => Hc.value.length), Wc = y(() => Math.max(1, Uc.value)), Gc = y(() => {
|
|
1648
1648
|
let e = bt(Fc.value, (e) => e.scaleLabel), t = {};
|
|
1649
1649
|
for (let [n, r] of Object.entries(e)) {
|
|
1650
1650
|
let e = Infinity, i = -Infinity, a = !1;
|
|
@@ -1667,7 +1667,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1667
1667
|
};
|
|
1668
1668
|
}
|
|
1669
1669
|
return t;
|
|
1670
|
-
}), Kc =
|
|
1670
|
+
}), Kc = y(() => Fc.value.reduce((e, t) => {
|
|
1671
1671
|
let n = t.scaleLabel || "";
|
|
1672
1672
|
return e[n] = (e[n] || 0) + 1, e;
|
|
1673
1673
|
}, {}));
|
|
@@ -1690,7 +1690,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1690
1690
|
unique: Kc.value[l] === 1
|
|
1691
1691
|
};
|
|
1692
1692
|
}
|
|
1693
|
-
let Jc =
|
|
1693
|
+
let Jc = y(() => J.value.width / X.value / Uc.value - Yc.value * Uc.value), Yc = y(() => qs.value.line * V.value.bar.periodGap), Xc = y(() => Math.max(1e-5, Js() - (H.value.useIndividualScale && H.value.isStacked ? 0 : Yc.value))), Zc = y(() => Xc.value * Math.min(Math.abs(V.value.bar.innerGap), .95)), Qc = y(() => {
|
|
1694
1694
|
if (!V.value.chart.zoom.minimap.show) return [];
|
|
1695
1695
|
let e = Cc.value.filter((e) => !ua.value.has(e.id)), t = 0;
|
|
1696
1696
|
for (let n = 0; n < e.length; n += 1) {
|
|
@@ -1705,10 +1705,10 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1705
1705
|
}
|
|
1706
1706
|
let r = ol(n, 0, 1).min;
|
|
1707
1707
|
return n.map((e) => e + (r < 0 ? Math.abs(r) : 0));
|
|
1708
|
-
}), $c =
|
|
1708
|
+
}), $c = y(() => V.value.chart.zoom.minimap.show ? Cc.value.map((e) => ({
|
|
1709
1709
|
...e,
|
|
1710
1710
|
isVisible: !ua.value.has(e.id)
|
|
1711
|
-
})) : []), el =
|
|
1711
|
+
})) : []), el = y(() => G.value ? Z.value.map((e) => ({
|
|
1712
1712
|
slotAbsoluteIndex: e.datapoint.slotAbsoluteIndex,
|
|
1713
1713
|
shape: e.datapoint.shape || e.datapoint.type === "bar" ? "square" : "circle",
|
|
1714
1714
|
name: e.datapoint.name,
|
|
@@ -1729,7 +1729,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1729
1729
|
comments: e.comments || [],
|
|
1730
1730
|
prefix: e.prefix || V.value.chart.labels.prefix,
|
|
1731
1731
|
suffix: e.suffix || V.value.chart.labels.suffix
|
|
1732
|
-
}))), tl =
|
|
1732
|
+
}))), tl = y(() => W.value.ticks.map((e) => {
|
|
1733
1733
|
let t = e >= 0 ? Hs.value - J.value.height * Fs(e) : Hs.value + J.value.height * Fs(Math.abs(e));
|
|
1734
1734
|
return {
|
|
1735
1735
|
y: Is.value ? J.value.top + J.value.bottom - t : t,
|
|
@@ -1737,7 +1737,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1737
1737
|
prefix: V.value.chart.labels.prefix,
|
|
1738
1738
|
suffix: V.value.chart.labels.suffix
|
|
1739
1739
|
};
|
|
1740
|
-
})), nl =
|
|
1740
|
+
})), nl = y(() => {
|
|
1741
1741
|
let e = V.value.chart.annotations;
|
|
1742
1742
|
if (!e || !Array.isArray(e) || e.every((e) => !e.show)) return [];
|
|
1743
1743
|
let t = e.filter((e) => e.show && (e.yAxis.yTop != null || e.yAxis.yBottom != null));
|
|
@@ -1746,14 +1746,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1746
1746
|
return t.map((e, t) => {
|
|
1747
1747
|
let { yAxis: { yTop: i, yBottom: a, label: o } } = e, s = i != null && a != null && i !== a, l = i == null ? null : c(i), u = a == null ? null : c(a), ee = Zo(o.fontSize);
|
|
1748
1748
|
ee.font = `${o.fontSize}px sans-serif`;
|
|
1749
|
-
let te = ee.measureText(o.text).width, ne = o.fontSize, re = (o.position === "start" ? n + o.padding?.left : r - o.padding?.right) + o.offsetX,
|
|
1750
|
-
|
|
1751
|
-
let
|
|
1749
|
+
let te = ee.measureText(o.text).width, ne = o.fontSize, re = (o.position === "start" ? n + o.padding?.left : r - o.padding?.right) + o.offsetX, d = (l != null && u != null ? Math.min(l, u) : l ?? u) - o.fontSize / 3 + o.offsetY - o.padding?.top, ie;
|
|
1750
|
+
ie = o.textAnchor === "middle" ? re - te / 2 - o.padding?.left : o.textAnchor === "end" ? re - te - o.padding?.right : re - o.padding?.left;
|
|
1751
|
+
let f = d - ne * .75 - o.padding?.top;
|
|
1752
1752
|
return {
|
|
1753
1753
|
show: ![
|
|
1754
1754
|
l,
|
|
1755
1755
|
u,
|
|
1756
|
-
|
|
1756
|
+
f
|
|
1757
1757
|
].includes(NaN),
|
|
1758
1758
|
id: cl("annotation_y", [
|
|
1759
1759
|
t,
|
|
@@ -1770,11 +1770,11 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1770
1770
|
x2: r,
|
|
1771
1771
|
_text: {
|
|
1772
1772
|
x: re,
|
|
1773
|
-
y:
|
|
1773
|
+
y: d
|
|
1774
1774
|
},
|
|
1775
1775
|
_box: {
|
|
1776
|
-
x:
|
|
1777
|
-
y:
|
|
1776
|
+
x: ie,
|
|
1777
|
+
y: f,
|
|
1778
1778
|
width: te + o.padding?.left + o.padding?.right,
|
|
1779
1779
|
height: ne + o.padding?.top + o.padding?.bottom,
|
|
1780
1780
|
fill: o.backgroundColor,
|
|
@@ -1788,7 +1788,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1788
1788
|
});
|
|
1789
1789
|
function rl(e, t) {
|
|
1790
1790
|
let n = e[t - 1], r = e[t + 1], i = !!n && !!r && n.value == null && r.value == null || !n && !!r && r.value == null || !!n && !r && n.value == null;
|
|
1791
|
-
return
|
|
1791
|
+
return vt(e[t].value) && i && V.value.line.cutNullValues;
|
|
1792
1792
|
}
|
|
1793
1793
|
function il(e, t = 0, n = 1) {
|
|
1794
1794
|
let r = Infinity, i = -Infinity, a = !1;
|
|
@@ -1856,17 +1856,17 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1856
1856
|
function ll() {
|
|
1857
1857
|
return no.value || ws.value || !V.value.line.showTransition ? void 0 : `all ${V.value.line.transitionDurationMs}ms ease-in-out`;
|
|
1858
1858
|
}
|
|
1859
|
-
let ul =
|
|
1860
|
-
let e = V.value.chart.grid.labels.xAxis.commonScaleSteps, t = V.value.chart.grid.labels.xAxis.scaleMin, n = V.value.chart.grid.labels.xAxis.scaleMax, r = t !== null && Number.isFinite(Number(t)) ? Number(t) : ul.value.min, i = n !== null && Number.isFinite(Number(n)) ? Number(n) : ul.value.max, a = V.value.chart.grid.labels.xAxis.useNiceScale ?
|
|
1859
|
+
let ul = y(() => al(Io.value, 0, 1)), dl = y(() => {
|
|
1860
|
+
let e = V.value.chart.grid.labels.xAxis.commonScaleSteps, t = V.value.chart.grid.labels.xAxis.scaleMin, n = V.value.chart.grid.labels.xAxis.scaleMax, r = t !== null && Number.isFinite(Number(t)) ? Number(t) : ul.value.min, i = n !== null && Number.isFinite(Number(n)) ? Number(n) : ul.value.max, a = V.value.chart.grid.labels.xAxis.useNiceScale ? he(r, i, e) : pe(r, i, e);
|
|
1861
1861
|
if (V.value.chart.grid.position !== "start") return a;
|
|
1862
1862
|
let o = a.ticks.length > 1 ? a.ticks[1] - a.ticks[0] : 1;
|
|
1863
1863
|
return {
|
|
1864
1864
|
...a,
|
|
1865
1865
|
max: a.max + o
|
|
1866
1866
|
};
|
|
1867
|
-
}), fl =
|
|
1867
|
+
}), fl = y(() => G.value ? (Bs.value ? [...dl.value.ticks].reverse() : [...dl.value.ticks]).map((e, t) => ({
|
|
1868
1868
|
id: `continuous_x_label_${t}`,
|
|
1869
|
-
text:
|
|
1869
|
+
text: h(V.value.chart.grid.labels.xAxis.formatter, e, o({
|
|
1870
1870
|
v: e,
|
|
1871
1871
|
s: V.value.chart.labels.prefix,
|
|
1872
1872
|
p: V.value.chart.labels.suffix,
|
|
@@ -1886,7 +1886,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1886
1886
|
let t = dl.value.max - dl.value.min || 1, n = Vs((e - dl.value.min) / t);
|
|
1887
1887
|
return J.value.left + J.value.width * n;
|
|
1888
1888
|
}
|
|
1889
|
-
let hl =
|
|
1889
|
+
let hl = y(() => al(ro.value, 0, 1)), gl = y(() => G.value ? hl.value.min : 0), _l = y(() => G.value ? hl.value.max : uo.value);
|
|
1890
1890
|
function vl(e, t) {
|
|
1891
1891
|
return G.value ? e.x == null || e.y == null ? null : ml(e) : Oc(t);
|
|
1892
1892
|
}
|
|
@@ -1894,19 +1894,19 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1894
1894
|
return !G.value || !e ? null : e.x ?? null;
|
|
1895
1895
|
}
|
|
1896
1896
|
function bl({ datapoint: e, totalSeries: t, gap: n, usableHeight: r, autoScaleValueMin: i, autoScaleValueMax: a, individualExtremes: o, forceExactScale: s = !1 }) {
|
|
1897
|
-
let c = e.scaleSteps || V.value.chart.grid.labels.yAxis.commonScaleSteps, l = 1.0000001, u = s || !V.value.chart.grid.labels.yAxis.useNiceScale ?
|
|
1897
|
+
let c = e.scaleSteps || V.value.chart.grid.labels.yAxis.commonScaleSteps, l = 1.0000001, u = s || !V.value.chart.grid.labels.yAxis.useNiceScale ? pe : he, ee = o.max === o.min ? o.max * l : o.max, te = a === i ? a * l : a, ne = u(o.min, ee, c), re = u(i, te, c), d = ne.min >= 0 ? 0 : Math.abs(ne.min), ie = ne.max + Math.abs(d), f = re.max + 0, ae = e.stackIndex, oe = t - 1 - ae, se = H.value.isStacked ? 1 - e.cumulatedStackRatio : 0, ce = H.value.isStacked ? r * se + n * oe : 0, le = H.value.isStacked ? r * e.stackRatio : J.value.height;
|
|
1898
1898
|
return {
|
|
1899
1899
|
scaleSteps: c,
|
|
1900
1900
|
individualScale: ne,
|
|
1901
1901
|
autoScaleSteps: re,
|
|
1902
|
-
individualZero:
|
|
1902
|
+
individualZero: d,
|
|
1903
1903
|
autoScaleZero: 0,
|
|
1904
|
-
individualMax:
|
|
1905
|
-
autoScaleMax:
|
|
1906
|
-
yOffset:
|
|
1907
|
-
individualHeight:
|
|
1908
|
-
zeroPosition: J.value?.bottom -
|
|
1909
|
-
autoScaleZeroPosition: J.value?.bottom -
|
|
1904
|
+
individualMax: ie,
|
|
1905
|
+
autoScaleMax: f,
|
|
1906
|
+
yOffset: ce,
|
|
1907
|
+
individualHeight: le,
|
|
1908
|
+
zeroPosition: J.value?.bottom - ce - le * d / ie,
|
|
1909
|
+
autoScaleZeroPosition: J.value?.bottom - ce - le * 0 / f
|
|
1910
1910
|
};
|
|
1911
1911
|
}
|
|
1912
1912
|
function xl({ datapoint: e, clampNegativeAutoScaleMaximum: t = !1 }) {
|
|
@@ -2002,10 +2002,10 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2002
2002
|
function Ol(e, t) {
|
|
2003
2003
|
return Array.isArray(e) && e[t + U.value.start] || "";
|
|
2004
2004
|
}
|
|
2005
|
-
let kl =
|
|
2005
|
+
let kl = y(() => {
|
|
2006
2006
|
let e = Rc.value, t = V.value.chart.grid.labels.yAxis.gap, n = H.value.isStacked ? t * (e - 1) : 0, r = J.value.height - n;
|
|
2007
2007
|
return zc.value.map((n, i) => {
|
|
2008
|
-
let { individualScale: a, autoScaleSteps: o, individualZero: s, individualMax: c, autoScaleMax: l, yOffset: u, individualHeight: ee, zeroPosition: te, autoScaleZeroPosition: ne, scaleYLabels: re, autoScaleYLabels:
|
|
2008
|
+
let { individualScale: a, autoScaleSteps: o, individualZero: s, individualMax: c, autoScaleMax: l, yOffset: u, individualHeight: ee, zeroPosition: te, autoScaleZeroPosition: ne, scaleYLabels: re, autoScaleYLabels: d, autoScaleRatiosToNiceScale: ie } = El({
|
|
2009
2009
|
datapoint: n,
|
|
2010
2010
|
totalSeries: e,
|
|
2011
2011
|
gap: t,
|
|
@@ -2013,42 +2013,42 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2013
2013
|
clampNegativeAutoScaleMaximum: !0,
|
|
2014
2014
|
filterMinimumValues: !0,
|
|
2015
2015
|
preserveLooseMinimumExpression: !0
|
|
2016
|
-
}),
|
|
2017
|
-
let r = H.value.useIndividualScale ? (n.absoluteValues[t] + s) / c : Fs(e), a = H.value.useIndividualScale && H.value.isStacked ? J.value?.left + J.value.width / X.value * t : J.value?.left + qs.value.bar * i + qs.value.bar * t *
|
|
2016
|
+
}), f = Uc.value, ae = Dl(n.comments), oe = n.series.map((e, t) => {
|
|
2017
|
+
let r = H.value.useIndividualScale ? (n.absoluteValues[t] + s) / c : Fs(e), a = H.value.useIndividualScale && H.value.isStacked ? J.value?.left + J.value.width / X.value * t : J.value?.left + qs.value.bar * i + qs.value.bar * t * f - Jc.value / 2 - i * Yc.value;
|
|
2018
2018
|
return {
|
|
2019
|
-
yOffset:
|
|
2020
|
-
individualHeight:
|
|
2021
|
-
x:
|
|
2019
|
+
yOffset: _(u),
|
|
2020
|
+
individualHeight: _(ee),
|
|
2021
|
+
x: _(a),
|
|
2022
2022
|
y: Rs({
|
|
2023
2023
|
ratio: r,
|
|
2024
2024
|
yOffset: u,
|
|
2025
2025
|
individualHeight: ee
|
|
2026
2026
|
}),
|
|
2027
2027
|
value: n.absoluteValues[t],
|
|
2028
|
-
zeroPosition:
|
|
2029
|
-
individualMax:
|
|
2030
|
-
comment:
|
|
2028
|
+
zeroPosition: _(te),
|
|
2029
|
+
individualMax: _(c),
|
|
2030
|
+
comment: ae[t] || ""
|
|
2031
2031
|
};
|
|
2032
|
-
}),
|
|
2032
|
+
}), se = n.series.map((e, t) => {
|
|
2033
2033
|
let r = H.value.useIndividualScale && H.value.isStacked ? J.value?.left + J.value.width / X.value * t : J.value?.left - qs.value.bar / 2 + qs.value.bar * i + qs.value.bar * t * Lo.value.filter((e) => e.type === "bar").filter((e) => !ua.value.has(e.id)).length;
|
|
2034
2034
|
return {
|
|
2035
|
-
yOffset:
|
|
2036
|
-
individualHeight:
|
|
2037
|
-
x:
|
|
2038
|
-
y:
|
|
2039
|
-
ratio:
|
|
2040
|
-
yOffset:
|
|
2041
|
-
individualHeight:
|
|
2035
|
+
yOffset: _(u),
|
|
2036
|
+
individualHeight: _(ee),
|
|
2037
|
+
x: _(r),
|
|
2038
|
+
y: _(Rs({
|
|
2039
|
+
ratio: ie[t] || 0,
|
|
2040
|
+
yOffset: _(u),
|
|
2041
|
+
individualHeight: _(ee)
|
|
2042
2042
|
})),
|
|
2043
2043
|
value: n.absoluteValues[t],
|
|
2044
|
-
zeroPosition:
|
|
2045
|
-
individualMax:
|
|
2046
|
-
comment:
|
|
2044
|
+
zeroPosition: _(te),
|
|
2045
|
+
individualMax: _(c),
|
|
2046
|
+
comment: ae[t] || ""
|
|
2047
2047
|
};
|
|
2048
|
-
}),
|
|
2048
|
+
}), ce = qc({
|
|
2049
2049
|
datapoint: n,
|
|
2050
2050
|
scaleYLabels: re,
|
|
2051
|
-
autoScaleYLabels:
|
|
2051
|
+
autoScaleYLabels: d,
|
|
2052
2052
|
zeroPosition: te,
|
|
2053
2053
|
autoScaleZeroPosition: ne,
|
|
2054
2054
|
individualMax: c,
|
|
@@ -2059,26 +2059,26 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2059
2059
|
return {
|
|
2060
2060
|
...n,
|
|
2061
2061
|
yOffset: u,
|
|
2062
|
-
autoScaleYLabels:
|
|
2062
|
+
autoScaleYLabels: d,
|
|
2063
2063
|
individualHeight: ee,
|
|
2064
|
-
scaleYLabels: n.autoScaling ?
|
|
2064
|
+
scaleYLabels: n.autoScaling ? d : re,
|
|
2065
2065
|
individualScale: n.autoScaling ? o : a,
|
|
2066
2066
|
individualMax: n.autoScaling ? l : c,
|
|
2067
2067
|
zeroPosition: n.autoScaling ? ne : te,
|
|
2068
|
-
plots: n.autoScaling ?
|
|
2069
|
-
scaleGroup:
|
|
2070
|
-
groupId:
|
|
2068
|
+
plots: n.autoScaling ? se : oe,
|
|
2069
|
+
scaleGroup: ce,
|
|
2070
|
+
groupId: ce.groupId
|
|
2071
2071
|
};
|
|
2072
2072
|
});
|
|
2073
|
-
}), Q =
|
|
2073
|
+
}), Q = y(() => {
|
|
2074
2074
|
let e = Rc.value, t = V.value.chart.grid.labels.yAxis.gap, n = H.value.isStacked ? t * (e - 1) : 0, r = J.value.height - n;
|
|
2075
2075
|
return Bc.value.map((n, a) => {
|
|
2076
|
-
let { individualScale: o, autoScaleSteps: s, individualZero: c, individualMax: u, autoScaleMax: ne, yOffset:
|
|
2076
|
+
let { individualScale: o, autoScaleSteps: s, individualZero: c, individualMax: u, autoScaleMax: ne, yOffset: d, individualHeight: ie, zeroPosition: f, autoScaleZeroPosition: oe, scaleYLabels: ce, autoScaleYLabels: le, autoScaleRatiosToNiceScale: ue } = El({
|
|
2077
2077
|
datapoint: n,
|
|
2078
2078
|
totalSeries: e,
|
|
2079
2079
|
gap: t,
|
|
2080
2080
|
usableHeight: r
|
|
2081
|
-
}),
|
|
2081
|
+
}), p = Dl(n.comments), m = n.series.map((e, t) => {
|
|
2082
2082
|
if (G.value && (e.x == null || e.y == null)) return {
|
|
2083
2083
|
index: t,
|
|
2084
2084
|
x: null,
|
|
@@ -2090,129 +2090,129 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2090
2090
|
let r = H.value.useIndividualScale ? (n.absoluteValues[t] + Math.abs(c)) / u : Fs(Fo(e));
|
|
2091
2091
|
return {
|
|
2092
2092
|
index: t,
|
|
2093
|
-
x:
|
|
2093
|
+
x: _(vl(e, t)),
|
|
2094
2094
|
datasetXValue: yl(e),
|
|
2095
|
-
y:
|
|
2095
|
+
y: _(Rs({
|
|
2096
2096
|
ratio: r,
|
|
2097
|
-
yOffset:
|
|
2098
|
-
individualHeight:
|
|
2097
|
+
yOffset: d,
|
|
2098
|
+
individualHeight: ie
|
|
2099
2099
|
})),
|
|
2100
2100
|
value: n.absoluteValues[t],
|
|
2101
|
-
comment:
|
|
2101
|
+
comment: p[t] || ""
|
|
2102
2102
|
};
|
|
2103
|
-
}),
|
|
2103
|
+
}), de = n.series.map((e, t) => G.value && (e.x === null || e.y === null) ? {
|
|
2104
2104
|
index: t,
|
|
2105
2105
|
x: null,
|
|
2106
2106
|
y: null,
|
|
2107
2107
|
datasetXValue: yl(e),
|
|
2108
2108
|
value: null,
|
|
2109
|
-
comment:
|
|
2109
|
+
comment: p[t] || ""
|
|
2110
2110
|
} : [void 0, null].includes(n.absoluteValues[t]) ? {
|
|
2111
2111
|
index: t,
|
|
2112
|
-
x:
|
|
2113
|
-
y:
|
|
2112
|
+
x: _(vl(e, t)),
|
|
2113
|
+
y: f,
|
|
2114
2114
|
value: n.absoluteValues[t],
|
|
2115
|
-
comment:
|
|
2115
|
+
comment: p[t] || ""
|
|
2116
2116
|
} : {
|
|
2117
2117
|
index: t,
|
|
2118
|
-
x:
|
|
2118
|
+
x: _(vl(e, t)),
|
|
2119
2119
|
datasetXValue: yl(e),
|
|
2120
|
-
y:
|
|
2121
|
-
ratio:
|
|
2122
|
-
yOffset:
|
|
2123
|
-
individualHeight:
|
|
2120
|
+
y: _(Rs({
|
|
2121
|
+
ratio: ue[t] || 0,
|
|
2122
|
+
yOffset: d,
|
|
2123
|
+
individualHeight: ie
|
|
2124
2124
|
})),
|
|
2125
2125
|
value: n.absoluteValues[t],
|
|
2126
|
-
comment:
|
|
2127
|
-
}),
|
|
2126
|
+
comment: p[t] || ""
|
|
2127
|
+
}), fe = n.dashIndices && Array.isArray(n.dashIndices) && n?.dashIndices?.length > 0, pe = V.value.line.cutNullValues ? _e(m) : ye(m.filter((e) => e.value !== null)), me = V.value.line.cutNullValues ? _e(de) : ye(de.filter((e) => e.value !== null)), he = V.value.line.cutNullValues ? ee(m) : l(m.filter((e) => e.value !== null)), ge = V.value.line.cutNullValues ? ee(de) : l(de.filter((e) => e.value !== null)), h = i(V.value.line.cutNullValues ? m : m.filter((e) => e.value !== null)), ve = i(V.value.line.cutNullValues ? de : de.filter((e) => e.value !== null)), be = fe ? ae(V.value.line.cutNullValues ? m : m.filter((e) => e.value !== null), n.dashIndices.map((e) => e - U.value.start)) : [], xe = fe ? te(V.value.line.cutNullValues ? m : m.filter((e) => e.value !== null), n.dashIndices.map((e) => e - U.value.start)) : [], g = qc({
|
|
2128
2128
|
datapoint: n,
|
|
2129
|
-
scaleYLabels:
|
|
2130
|
-
autoScaleYLabels:
|
|
2131
|
-
zeroPosition:
|
|
2132
|
-
autoScaleZeroPosition:
|
|
2129
|
+
scaleYLabels: ce,
|
|
2130
|
+
autoScaleYLabels: le,
|
|
2131
|
+
zeroPosition: f,
|
|
2132
|
+
autoScaleZeroPosition: oe,
|
|
2133
2133
|
individualMax: u,
|
|
2134
2134
|
autoScaleMax: ne,
|
|
2135
|
-
yOffset:
|
|
2136
|
-
individualHeight:
|
|
2137
|
-
}),
|
|
2135
|
+
yOffset: d,
|
|
2136
|
+
individualHeight: ie
|
|
2137
|
+
}), Se = H.value.useIndividualScale ? n.autoScaling ? oe : f : wo.value, Ce = Math.max(Math.max(n.autoScaling ? oe : ce.at(-1) ? ce.at(-1).y : 0, J.value?.top), Se), we = n.autoScaling ? de : m, Ee = V.value.line.cutNullValues ? we : we.filter((e) => e.value !== null), Oe = n.absoluteValues.filter((e) => ![
|
|
2138
2138
|
null,
|
|
2139
2139
|
void 0,
|
|
2140
2140
|
NaN
|
|
2141
|
-
].includes(e)),
|
|
2141
|
+
].includes(e)), ke = !!n.temperatureColors && new Set(Oe).size <= 1;
|
|
2142
2142
|
return {
|
|
2143
2143
|
...n,
|
|
2144
|
-
isFlatTemperatureLine:
|
|
2145
|
-
temperatureColors: n.temperatureColors ? n.temperatureColors.map((e) =>
|
|
2146
|
-
yOffset:
|
|
2147
|
-
autoScaleYLabels:
|
|
2148
|
-
individualHeight:
|
|
2149
|
-
scaleYLabels: n.autoScaling ?
|
|
2144
|
+
isFlatTemperatureLine: ke,
|
|
2145
|
+
temperatureColors: n.temperatureColors ? n.temperatureColors.map((e) => De(e)) : null,
|
|
2146
|
+
yOffset: d,
|
|
2147
|
+
autoScaleYLabels: le,
|
|
2148
|
+
individualHeight: ie,
|
|
2149
|
+
scaleYLabels: n.autoScaling ? le : ce,
|
|
2150
2150
|
individualScale: n.autoScaling ? s : o,
|
|
2151
2151
|
individualMax: n.autoScaling ? ne : u,
|
|
2152
|
-
zeroPosition: n.autoScaling ?
|
|
2153
|
-
curve: n.useStepper ? n.autoScaling ?
|
|
2154
|
-
plots: n.autoScaling ?
|
|
2155
|
-
dashedStraight:
|
|
2156
|
-
dashedSmooth:
|
|
2157
|
-
hasDashedSegments:
|
|
2158
|
-
area: n.useArea ? n.useStepper ? i(
|
|
2159
|
-
curveAreas: n.useArea ? n.useStepper ? i(
|
|
2160
|
-
straight: n.useStepper ? n.autoScaling ?
|
|
2161
|
-
scaleGroup:
|
|
2162
|
-
groupId:
|
|
2152
|
+
zeroPosition: n.autoScaling ? oe : f,
|
|
2153
|
+
curve: n.useStepper ? n.autoScaling ? ve : h : n.autoScaling ? me : pe,
|
|
2154
|
+
plots: n.autoScaling ? de : m,
|
|
2155
|
+
dashedStraight: be,
|
|
2156
|
+
dashedSmooth: xe,
|
|
2157
|
+
hasDashedSegments: fe,
|
|
2158
|
+
area: n.useArea ? n.useStepper ? i(Ee, Ce) : H.value.useIndividualScale ? V.value.line.cutNullValues ? se(n.autoScaling ? de : m, Ce) : Te(n.autoScaling ? de.filter((e) => e.value !== null) : m.filter((e) => e.value !== null), Ce) : V.value.line.cutNullValues ? se(m, Ce) : Te(m.filter((e) => e.value !== null), Ce) : "",
|
|
2159
|
+
curveAreas: n.useArea ? n.useStepper ? i(Ee, Ce).split(";").filter(Boolean).map((e) => `M${e}Z`) : re(n.autoScaling ? V.value.line.cutNullValues ? de : de.filter((e) => e.value !== null) : V.value.line.cutNullValues ? m : m.filter((e) => e.value !== null), Ce, V.value.line.cutNullValues) : [],
|
|
2160
|
+
straight: n.useStepper ? n.autoScaling ? ve : h : n.autoScaling ? ge : he,
|
|
2161
|
+
scaleGroup: g,
|
|
2162
|
+
groupId: g.groupId
|
|
2163
2163
|
};
|
|
2164
2164
|
});
|
|
2165
|
-
}), $ =
|
|
2165
|
+
}), $ = y(() => {
|
|
2166
2166
|
let e = Rc.value, t = V.value.chart.grid.labels.yAxis.gap, n = H.value.isStacked ? t * (e - 1) : 0, r = J.value.height - n;
|
|
2167
2167
|
return Vc.value.map((n) => {
|
|
2168
|
-
let { individualScale: i, autoScaleSteps: a, individualZero: o, individualMax: s, autoScaleMax: c, yOffset: l, individualHeight: u, zeroPosition: ee, autoScaleZeroPosition: te, scaleYLabels: ne, autoScaleYLabels: re, autoScaleRatiosToNiceScale:
|
|
2168
|
+
let { individualScale: i, autoScaleSteps: a, individualZero: o, individualMax: s, autoScaleMax: c, yOffset: l, individualHeight: u, zeroPosition: ee, autoScaleZeroPosition: te, scaleYLabels: ne, autoScaleYLabels: re, autoScaleRatiosToNiceScale: d } = El({
|
|
2169
2169
|
datapoint: n,
|
|
2170
2170
|
totalSeries: e,
|
|
2171
2171
|
gap: t,
|
|
2172
2172
|
usableHeight: r,
|
|
2173
2173
|
forceExactScale: !0,
|
|
2174
2174
|
preserveLooseMinimumExpression: !0
|
|
2175
|
-
}),
|
|
2175
|
+
}), ie = Dl(n.comments), f = n.series.map((e, t) => {
|
|
2176
2176
|
if (G.value && (e.x == null || e.y == null)) return {
|
|
2177
2177
|
index: t,
|
|
2178
2178
|
x: null,
|
|
2179
2179
|
datasetXValue: yl(e),
|
|
2180
2180
|
y: null,
|
|
2181
2181
|
value: null,
|
|
2182
|
-
comment:
|
|
2182
|
+
comment: ie[t] || ""
|
|
2183
2183
|
};
|
|
2184
2184
|
let r = H.value.useIndividualScale ? (n.absoluteValues[t] + Math.abs(o)) / s : Fs(Fo(e));
|
|
2185
2185
|
return {
|
|
2186
2186
|
index: t,
|
|
2187
|
-
x:
|
|
2187
|
+
x: _(vl(e, t)),
|
|
2188
2188
|
datasetXValue: yl(e),
|
|
2189
|
-
y:
|
|
2189
|
+
y: _(Rs({
|
|
2190
2190
|
ratio: r,
|
|
2191
2191
|
yOffset: l,
|
|
2192
2192
|
individualHeight: u
|
|
2193
2193
|
})),
|
|
2194
2194
|
value: n.absoluteValues[t],
|
|
2195
|
-
comment:
|
|
2195
|
+
comment: ie[t] || ""
|
|
2196
2196
|
};
|
|
2197
|
-
}),
|
|
2197
|
+
}), ae = n.series.map((e, t) => G.value && (e.x === null || e.y === null) ? {
|
|
2198
2198
|
index: t,
|
|
2199
2199
|
x: null,
|
|
2200
2200
|
datasetXValue: yl(e),
|
|
2201
2201
|
y: null,
|
|
2202
2202
|
value: null,
|
|
2203
|
-
comment:
|
|
2203
|
+
comment: ie[t] || ""
|
|
2204
2204
|
} : {
|
|
2205
2205
|
index: t,
|
|
2206
|
-
x:
|
|
2206
|
+
x: _(vl(e, t)),
|
|
2207
2207
|
datasetXValue: yl(e),
|
|
2208
|
-
y:
|
|
2209
|
-
ratio:
|
|
2208
|
+
y: _(Rs({
|
|
2209
|
+
ratio: d[t] || 0,
|
|
2210
2210
|
yOffset: l,
|
|
2211
2211
|
individualHeight: u
|
|
2212
2212
|
})),
|
|
2213
2213
|
value: n.absoluteValues[t],
|
|
2214
|
-
comment:
|
|
2215
|
-
}),
|
|
2214
|
+
comment: ie[t] || ""
|
|
2215
|
+
}), oe = qc({
|
|
2216
2216
|
datapoint: n,
|
|
2217
2217
|
scaleYLabels: ne,
|
|
2218
2218
|
autoScaleYLabels: re,
|
|
@@ -2232,12 +2232,12 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2232
2232
|
individualScale: n.autoScaling ? a : i,
|
|
2233
2233
|
individualMax: n.autoScaling ? c : s,
|
|
2234
2234
|
zeroPosition: n.autoScaling ? te : ee,
|
|
2235
|
-
plots: n.autoScaling ?
|
|
2236
|
-
scaleGroup:
|
|
2237
|
-
groupId:
|
|
2235
|
+
plots: n.autoScaling ? ae : f,
|
|
2236
|
+
scaleGroup: oe,
|
|
2237
|
+
groupId: oe.groupId
|
|
2238
2238
|
};
|
|
2239
2239
|
});
|
|
2240
|
-
}), Al =
|
|
2240
|
+
}), Al = y(() => {
|
|
2241
2241
|
let e = Object.entries(Gc.value).reduce((e, [t, n]) => (e[t] = {
|
|
2242
2242
|
...n,
|
|
2243
2243
|
scaleLabel: t
|
|
@@ -2252,7 +2252,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2252
2252
|
...t.scaleGroup
|
|
2253
2253
|
});
|
|
2254
2254
|
}), e;
|
|
2255
|
-
}), jl =
|
|
2255
|
+
}), jl = y(() => {
|
|
2256
2256
|
let e = Q.value.map((e) => ({
|
|
2257
2257
|
name: e.name,
|
|
2258
2258
|
color: e.color,
|
|
@@ -2301,7 +2301,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2301
2301
|
id: e.id,
|
|
2302
2302
|
groupId: e.groupId,
|
|
2303
2303
|
scaleLabel: e.scaleLabel,
|
|
2304
|
-
name:
|
|
2304
|
+
name: h(V.value.chart.grid.labels.yAxis.serieNameFormatter, r, r, e),
|
|
2305
2305
|
color: H.value.useIndividualScale && !H.value.isStacked ? e.unique ? e.color : e.groupColor : e.color,
|
|
2306
2306
|
scale: e.scale,
|
|
2307
2307
|
yOffset: e.yOffset,
|
|
@@ -2319,7 +2319,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2319
2319
|
}))
|
|
2320
2320
|
};
|
|
2321
2321
|
});
|
|
2322
|
-
}), Ml =
|
|
2322
|
+
}), Ml = y(() => {
|
|
2323
2323
|
let e = V.value.line.interLine || {}, t = e.pairs || [], n = e.colors || [];
|
|
2324
2324
|
if (!t.length) return [];
|
|
2325
2325
|
let r = [];
|
|
@@ -2329,7 +2329,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2329
2329
|
let o = Q.value.find((e) => e.name === i), s = Q.value.find((e) => e.name === a);
|
|
2330
2330
|
if (!o || !s || o.type !== "line" || s.type !== "line") return;
|
|
2331
2331
|
let c = n?.[t]?.[0] ?? o.color, l = n?.[t]?.[1] ?? s.color;
|
|
2332
|
-
|
|
2332
|
+
fe({
|
|
2333
2333
|
lineA: o.plots,
|
|
2334
2334
|
lineB: s.plots,
|
|
2335
2335
|
smoothA: !!o.smooth,
|
|
@@ -2345,7 +2345,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2345
2345
|
});
|
|
2346
2346
|
});
|
|
2347
2347
|
}), r;
|
|
2348
|
-
}), Nl =
|
|
2348
|
+
}), Nl = y(() => {
|
|
2349
2349
|
let e = Z.value[0]?.index ?? null, t = G.value ? e : R.value;
|
|
2350
2350
|
return {
|
|
2351
2351
|
timeLabel: G.value ? {
|
|
@@ -2368,15 +2368,15 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2368
2368
|
days: [],
|
|
2369
2369
|
shortDays: []
|
|
2370
2370
|
}), Fl = 0;
|
|
2371
|
-
|
|
2371
|
+
gt(() => {
|
|
2372
2372
|
let e = ++Fl, t = V.value.chart.grid.labels.xAxisLabels.datetimeFormatter;
|
|
2373
2373
|
(async () => {
|
|
2374
|
-
let n = await
|
|
2374
|
+
let n = await je(t.locale).catch(() => je("en"));
|
|
2375
2375
|
e === Fl && (Pl.value = n.data);
|
|
2376
2376
|
})();
|
|
2377
2377
|
});
|
|
2378
|
-
let Il =
|
|
2379
|
-
let e = V.value.chart.grid.labels.xAxisLabels.datetimeFormatter, t =
|
|
2378
|
+
let Il = y(() => {
|
|
2379
|
+
let e = V.value.chart.grid.labels.xAxisLabels.datetimeFormatter, t = Ae({
|
|
2380
2380
|
useUTC: e.useUTC,
|
|
2381
2381
|
locale: Pl.value,
|
|
2382
2382
|
januaryAsYear: e.januaryAsYear
|
|
@@ -2385,7 +2385,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2385
2385
|
let r = V.value.chart.grid.labels.xAxisLabels.values?.[e];
|
|
2386
2386
|
return r == null ? "" : t.formatDate(new Date(r), n);
|
|
2387
2387
|
};
|
|
2388
|
-
}), Ll =
|
|
2388
|
+
}), Ll = y(() => (V.value.chart.grid.labels.xAxisLabels.values || []).map((e, t) => ({
|
|
2389
2389
|
text: Il.value(t, V.value.chart.zoom.timeFormat),
|
|
2390
2390
|
absoluteIndex: t
|
|
2391
2391
|
}))), Rl = /* @__PURE__ */ new Map();
|
|
@@ -2469,7 +2469,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2469
2469
|
radius: 4,
|
|
2470
2470
|
sides: 6,
|
|
2471
2471
|
rotation: 0
|
|
2472
|
-
}).path}" fill="${e.color}" stroke="${n}" stroke-width="0.5" />` : e.shape === "star" && (a = `<polygon stroke="${n}" stroke-width="0.5" fill="${e.color}" points="${
|
|
2472
|
+
}).path}" fill="${e.color}" stroke="${n}" stroke-width="0.5" />` : e.shape === "star" && (a = `<polygon stroke="${n}" stroke-width="0.5" fill="${e.color}" points="${ie({
|
|
2473
2473
|
plot: {
|
|
2474
2474
|
x: 10,
|
|
2475
2475
|
y: 8
|
|
@@ -2490,7 +2490,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2490
2490
|
break;
|
|
2491
2491
|
}
|
|
2492
2492
|
if (e.shape === "star") {
|
|
2493
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${n}" stroke-width="1" fill="${e.color}" points="${
|
|
2493
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${n}" stroke-width="1" fill="${e.color}" points="${ie({
|
|
2494
2494
|
plot: {
|
|
2495
2495
|
x: 6,
|
|
2496
2496
|
y: 6
|
|
@@ -2564,15 +2564,15 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2564
2564
|
}
|
|
2565
2565
|
return Rl.set(t, i), i;
|
|
2566
2566
|
}
|
|
2567
|
-
let Hl =
|
|
2568
|
-
let e = "", t = el.value.map((e) => e.value).filter((e) =>
|
|
2567
|
+
let Hl = y(() => {
|
|
2568
|
+
let e = "", t = el.value.map((e) => e.value).filter((e) => me(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0), n = G.value ? { text: h(V.value.chart.grid.labels.xAxis.formatter, Z.value[0]?.point.raw?.x ?? Z.value[0]?.point.x, o({
|
|
2569
2569
|
v: Z.value[0]?.point.raw?.x ?? Z.value[0]?.point.x,
|
|
2570
2570
|
r: V.value.chart.tooltip.roundingValue
|
|
2571
2571
|
}), {
|
|
2572
2572
|
datapoint: null,
|
|
2573
2573
|
serriesIndex: null
|
|
2574
2574
|
}) } : Y.value[R.value], r = V.value.chart.tooltip.customFormat;
|
|
2575
|
-
if (
|
|
2575
|
+
if (ge(r)) try {
|
|
2576
2576
|
let e = r(zl(n));
|
|
2577
2577
|
if (typeof e == "string") return e;
|
|
2578
2578
|
} catch (e) {
|
|
@@ -2583,8 +2583,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2583
2583
|
G.value || (e += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${V.value.chart.tooltip.borderColor}; width:100%">${V.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !V.value.chart.tooltip.useDefaultTimeFormat ? t : n.text}</div>`);
|
|
2584
2584
|
}
|
|
2585
2585
|
return el.value.forEach((r) => {
|
|
2586
|
-
if (
|
|
2587
|
-
let i = Vl(r), a = V.value.chart.tooltip.showValue ?
|
|
2586
|
+
if (me(r.value)) {
|
|
2587
|
+
let i = Vl(r), a = V.value.chart.tooltip.showValue ? h(r.type === "line" ? V.value.line.labels.formatter : r.type === "bar" ? V.value.bar.labels.formatter : V.value.plot.labels.formatter, r.value, o({
|
|
2588
2588
|
p: r.prefix,
|
|
2589
2589
|
v: r.value,
|
|
2590
2590
|
s: r.suffix,
|
|
@@ -2606,7 +2606,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2606
2606
|
</div>
|
|
2607
2607
|
</div>
|
|
2608
2608
|
` : e += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;white-space:nowrap;"><div style="width:20px">${i}</div> ${r.name}: <b>${c}</b> ${V.value.chart.tooltip.showPercentage ? `(${o({
|
|
2609
|
-
v:
|
|
2609
|
+
v: _(Math.abs(r.value) / t * 100),
|
|
2610
2610
|
s: "%",
|
|
2611
2611
|
r: V.value.chart.tooltip.roundingPercentage
|
|
2612
2612
|
})})` : ""}</div>`;
|
|
@@ -2614,7 +2614,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2614
2614
|
V.value.chart.comments.showInTooltip && l && (e += `<div class="vue-data-ui-tooltip-comment" style="background:${r.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${r.color}">${l}</div>`);
|
|
2615
2615
|
}
|
|
2616
2616
|
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${V.value.chart.tooltip.color}">${e}</div>`;
|
|
2617
|
-
}), Ul =
|
|
2617
|
+
}), Ul = y(() => {
|
|
2618
2618
|
if (!G.value) return [];
|
|
2619
2619
|
let e = /* @__PURE__ */ new Set(), t = [];
|
|
2620
2620
|
return K.value.forEach((n) => {
|
|
@@ -2628,7 +2628,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2628
2628
|
});
|
|
2629
2629
|
function Wl(e) {
|
|
2630
2630
|
let t = Number(e);
|
|
2631
|
-
return Number.isFinite(t) ?
|
|
2631
|
+
return Number.isFinite(t) ? h(V.value.chart.grid.labels.xAxis.formatter, t, o({
|
|
2632
2632
|
v: t,
|
|
2633
2633
|
r: V.value.table.rounding
|
|
2634
2634
|
}), {
|
|
@@ -2648,11 +2648,11 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2648
2648
|
}
|
|
2649
2649
|
function ql(e, t) {
|
|
2650
2650
|
let n = Kl(e, t);
|
|
2651
|
-
return
|
|
2651
|
+
return vt(n) ? Number(n.toFixed(V.value.table.rounding)) : "";
|
|
2652
2652
|
}
|
|
2653
2653
|
function Jl(e, t) {
|
|
2654
2654
|
let n = Kl(e, t);
|
|
2655
|
-
return
|
|
2655
|
+
return vt(n) ? h(e.type === "line" ? V.value.line.labels.formatter : e.type === "bar" ? V.value.bar.labels.formatter : V.value.plot.labels.formatter, n, o({
|
|
2656
2656
|
p: e.prefix || V.value.chart.labels.prefix,
|
|
2657
2657
|
v: n,
|
|
2658
2658
|
s: e.suffix || V.value.chart.labels.suffix,
|
|
@@ -2662,7 +2662,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2662
2662
|
function Yl(e) {
|
|
2663
2663
|
return K.value.map((t) => Kl(t, e) ?? 0).reduce((e, t) => e + t, 0);
|
|
2664
2664
|
}
|
|
2665
|
-
let Xl =
|
|
2665
|
+
let Xl = y(() => {
|
|
2666
2666
|
if (G.value) return Ul.value.map((e) => {
|
|
2667
2667
|
let t = Yl(e);
|
|
2668
2668
|
return {
|
|
@@ -2685,7 +2685,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2685
2685
|
});
|
|
2686
2686
|
}
|
|
2687
2687
|
return e;
|
|
2688
|
-
}), Zl =
|
|
2688
|
+
}), Zl = y(() => Io.value.length === 0 ? {
|
|
2689
2689
|
head: [],
|
|
2690
2690
|
body: [],
|
|
2691
2691
|
config: {},
|
|
@@ -2697,7 +2697,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2697
2697
|
type: e.type
|
|
2698
2698
|
})),
|
|
2699
2699
|
body: Xl.value.map((e) => [e.period].concat(e.csvValues))
|
|
2700
|
-
}), Ql =
|
|
2700
|
+
}), Ql = y(() => {
|
|
2701
2701
|
let e = V.value.table.showSum, t = [G.value ? V.value.chart.grid.labels.axis.xLabel || "X" : ""].concat(K.value.map((e) => e.name));
|
|
2702
2702
|
e && (t = t.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>"));
|
|
2703
2703
|
let n = Xl.value.map((t) => [t.period].concat(t.formattedValues, e ? t.formattedSum : [])), r = {
|
|
@@ -2725,7 +2725,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2725
2725
|
[V.value.chart.title.text],
|
|
2726
2726
|
[V.value.chart.title.subtitle.text],
|
|
2727
2727
|
[""]
|
|
2728
|
-
], n = [G.value ? V.value.chart.grid.labels.axis.xLabel || "X" : V.value.table.columnNames.period, ...Zl.value.head.map((e) => e.label)], r = Zl.value.body, i =
|
|
2728
|
+
], n = [G.value ? V.value.chart.grid.labels.axis.xLabel || "X" : V.value.table.columnNames.period, ...Zl.value.head.map((e) => e.label)], r = Zl.value.body, i = oe(t.concat([n]).concat(r));
|
|
2729
2729
|
e ? e(i) : u({
|
|
2730
2730
|
csvContent: i,
|
|
2731
2731
|
title: V.value.chart.title.text || "vue-ui-xy"
|
|
@@ -2769,43 +2769,43 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2769
2769
|
B.value.dataLabels = V.value.chart.grid.labels.fontSize, B.value.yAxis = V.value.chart.grid.labels.axis.fontSize, B.value.xAxis = V.value.chart.grid.labels.xAxisLabels.fontSize, B.value.plotLabels = V.value.chart.labels.fontSize, Ka.value.plot = V.value.plot.radius, Ka.value.line = V.value.line.radius, Ka.value.selectedLine = V.value.line.dot.selectedRadius;
|
|
2770
2770
|
return;
|
|
2771
2771
|
}
|
|
2772
|
-
B.value.dataLabels =
|
|
2772
|
+
B.value.dataLabels = le({
|
|
2773
2773
|
relator: ta.value,
|
|
2774
2774
|
adjuster: 400,
|
|
2775
2775
|
source: V.value.chart.grid.labels.fontSize,
|
|
2776
2776
|
threshold: 10,
|
|
2777
2777
|
fallback: 10
|
|
2778
|
-
}), B.value.yAxis =
|
|
2778
|
+
}), B.value.yAxis = le({
|
|
2779
2779
|
relator: P.value,
|
|
2780
2780
|
adjuster: 1e3,
|
|
2781
2781
|
source: V.value.chart.grid.labels.axis.fontSize,
|
|
2782
2782
|
threshold: 10,
|
|
2783
2783
|
fallback: 10
|
|
2784
|
-
}), B.value.xAxis =
|
|
2784
|
+
}), B.value.xAxis = le({
|
|
2785
2785
|
relator: P.value,
|
|
2786
2786
|
adjuster: 1e3,
|
|
2787
2787
|
source: V.value.chart.grid.labels.xAxisLabels.fontSize,
|
|
2788
2788
|
threshold: 10,
|
|
2789
2789
|
fallback: 10
|
|
2790
|
-
}), B.value.plotLabels =
|
|
2790
|
+
}), B.value.plotLabels = le({
|
|
2791
2791
|
relator: P.value,
|
|
2792
2792
|
adjuster: 800,
|
|
2793
2793
|
source: V.value.chart.labels.fontSize,
|
|
2794
2794
|
threshold: 10,
|
|
2795
2795
|
fallback: 10
|
|
2796
|
-
}), Ka.value.plot =
|
|
2796
|
+
}), Ka.value.plot = le({
|
|
2797
2797
|
relator: P.value,
|
|
2798
2798
|
adjuster: 800,
|
|
2799
2799
|
source: V.value.plot.radius,
|
|
2800
2800
|
threshold: 1,
|
|
2801
2801
|
fallback: 1
|
|
2802
|
-
}), Ka.value.line =
|
|
2802
|
+
}), Ka.value.line = le({
|
|
2803
2803
|
relator: P.value,
|
|
2804
2804
|
adjuster: 800,
|
|
2805
2805
|
source: V.value.line.radius,
|
|
2806
2806
|
threshold: 1,
|
|
2807
2807
|
fallback: 0
|
|
2808
|
-
}), Ka.value.selectedLine =
|
|
2808
|
+
}), Ka.value.selectedLine = le({
|
|
2809
2809
|
relator: P.value,
|
|
2810
2810
|
adjuster: 800,
|
|
2811
2811
|
source: V.value.line.dot.selectedRadius,
|
|
@@ -2814,12 +2814,12 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2814
2814
|
});
|
|
2815
2815
|
}
|
|
2816
2816
|
function ou() {
|
|
2817
|
-
if (
|
|
2817
|
+
if (ce(M.dataset) ? (ue({
|
|
2818
2818
|
componentName: "VueUiXy",
|
|
2819
2819
|
type: "dataset",
|
|
2820
2820
|
debug: $a.value
|
|
2821
2821
|
}), io.value = !0) : M.dataset.forEach((e, t) => {
|
|
2822
|
-
[null, void 0].includes(e.name) && (
|
|
2822
|
+
[null, void 0].includes(e.name) && (ue({
|
|
2823
2823
|
componentName: "VueUiXy",
|
|
2824
2824
|
type: "datasetSerieAttribute",
|
|
2825
2825
|
property: "name (string)",
|
|
@@ -2828,9 +2828,9 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2828
2828
|
}), io.value = !0);
|
|
2829
2829
|
}), $a.value && M.dataset.forEach((e) => {
|
|
2830
2830
|
e.series.forEach((t, n) => {
|
|
2831
|
-
|
|
2831
|
+
me(t) || console.warn(`VueUiXy has detected an unsafe value in your dataset:\n-----> The serie '${e.name}' contains the value '${t}' at index ${n}.\n'${t}' was converted to null to allow the chart to display.`);
|
|
2832
2832
|
});
|
|
2833
|
-
}),
|
|
2833
|
+
}), ce(M.dataset) || (io.value = V.value.loading), ga.value = V.value.chart.userOptions.showOnChartHover, _a.value = V.value.chart.userOptions.keepStateOnChartLeave, va.value = !V.value.chart.userOptions.showOnChartHover, Qa(), V.value.responsive) {
|
|
2834
2834
|
let e = zi.value.parentNode;
|
|
2835
2835
|
Zi.value && (Qi.value && Zi.value.unobserve(Qi.value), Zi.value.disconnect(), Zi.value = null, Qi.value = null);
|
|
2836
2836
|
let { height: t, width: n } = e.getBoundingClientRect(), r = null, i = 0;
|
|
@@ -2862,7 +2862,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2862
2862
|
ou(), Ss(), document.addEventListener("mousemove", su, { passive: !0 }), document.addEventListener("scroll", Qo, { passive: !0 });
|
|
2863
2863
|
}), ct(() => {
|
|
2864
2864
|
document.removeEventListener("scroll", Qo, { passive: !0 }), document.removeEventListener("mousemove", su, { passive: !0 }), Zi.value && (Qi.value && Zi.value.unobserve(Qi.value), Zi.value.disconnect(), Zi.value = null, Qi.value = null), hu(), ks();
|
|
2865
|
-
}),
|
|
2865
|
+
}), Ve({
|
|
2866
2866
|
timeLabelsEls: Ji,
|
|
2867
2867
|
timeLabels: Y,
|
|
2868
2868
|
slicer: U,
|
|
@@ -2887,19 +2887,19 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2887
2887
|
width: P,
|
|
2888
2888
|
rotation: V.value.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
2889
2889
|
});
|
|
2890
|
-
let cu = E(!1), lu = E(null), uu = E(200), du =
|
|
2890
|
+
let cu = E(!1), lu = E(null), uu = E(200), du = y(() => R.value ?? I.value ?? 0), fu = y(() => {
|
|
2891
2891
|
if (!G.value) return null;
|
|
2892
|
-
if (
|
|
2892
|
+
if (p(Ta.value)) return Number(Ta.value);
|
|
2893
2893
|
let e = Z.value[0];
|
|
2894
|
-
return
|
|
2894
|
+
return p(e?.point?.x) ? Number(e.point.x) : null;
|
|
2895
2895
|
});
|
|
2896
2896
|
function pu() {
|
|
2897
2897
|
let e = Math.ceil(uu.value || 200);
|
|
2898
2898
|
return Math.min(Math.max(e, 1), 200);
|
|
2899
2899
|
}
|
|
2900
2900
|
function mu() {
|
|
2901
|
-
let e = pu(), t = (G.value &&
|
|
2902
|
-
return
|
|
2901
|
+
let e = pu(), t = (G.value && p(fu.value) ? ml({ x: fu.value }) : Oc(du.value)) - e / 2 - (200 - e) / 2, n = J.value?.left - (200 - e) / 2, r = J.value?.right - (200 + e) / 2;
|
|
2902
|
+
return _(Math.max(n, Math.min(t, r)));
|
|
2903
2903
|
}
|
|
2904
2904
|
function hu() {
|
|
2905
2905
|
Aa.value !== null && (cancelAnimationFrame(Aa.value), Aa.value = null), ka.value && z.value && ka.value.unobserve(z.value), ka.value &&= (ka.value.disconnect(), null), ja.value &&= (ja.value(), null), z.value = null;
|
|
@@ -2910,7 +2910,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2910
2910
|
});
|
|
2911
2911
|
}
|
|
2912
2912
|
function _u(e) {
|
|
2913
|
-
!ka.value || !e || (z.value && z.value !== e && (ka.value.unobserve(z.value), z.value = null), e !== z.value && (
|
|
2913
|
+
!ka.value || !e || (z.value && z.value !== e && (ka.value.unobserve(z.value), z.value = null), e !== z.value && (at(() => {
|
|
2914
2914
|
e.offsetParent !== null && gu(e.offsetWidth || e.getBoundingClientRect().width || 200);
|
|
2915
2915
|
}), ka.value.observe(e), z.value = e));
|
|
2916
2916
|
}
|
|
@@ -2918,7 +2918,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2918
2918
|
ka.value = new ResizeObserver((e) => {
|
|
2919
2919
|
let t = e.find((e) => e.target === z.value) || e[0];
|
|
2920
2920
|
t && gu(t.contentRect.width || 200);
|
|
2921
|
-
}), ja.value =
|
|
2921
|
+
}), ja.value = gt((e) => {
|
|
2922
2922
|
let t = lu.value;
|
|
2923
2923
|
if (!t) {
|
|
2924
2924
|
ka.value && z.value && (ka.value.unobserve(z.value), z.value = null);
|
|
@@ -2929,14 +2929,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2929
2929
|
});
|
|
2930
2930
|
});
|
|
2931
2931
|
});
|
|
2932
|
-
let vu =
|
|
2932
|
+
let vu = y(() => {
|
|
2933
2933
|
if (G.value) {
|
|
2934
2934
|
if (!Number.isFinite(Number(fu.value))) return "";
|
|
2935
2935
|
} else if ([null, void 0].includes(R.value) && [null, void 0].includes(I.value)) return "";
|
|
2936
2936
|
let e = (R.value == null ? 0 : R.value) || (I.value == null ? 0 : I.value), t = V.value.chart.timeTag.customFormat;
|
|
2937
2937
|
if (cu.value = !1, G.value) {
|
|
2938
2938
|
let e = fu.value;
|
|
2939
|
-
if (
|
|
2939
|
+
if (ge(t)) try {
|
|
2940
2940
|
let n = t({
|
|
2941
2941
|
absoluteIndex: e,
|
|
2942
2942
|
seriesIndex: e,
|
|
@@ -2955,7 +2955,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2955
2955
|
r: V.value.chart.grid.labels.xAxis.rounding
|
|
2956
2956
|
});
|
|
2957
2957
|
}
|
|
2958
|
-
if (
|
|
2958
|
+
if (ge(t)) try {
|
|
2959
2959
|
let n = t({
|
|
2960
2960
|
absoluteIndex: e + U.value.start,
|
|
2961
2961
|
seriesIndex: e,
|
|
@@ -2972,7 +2972,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2972
2972
|
if (!cu.value) return [null, void 0].includes(Y.value[e]) ? "" : V.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !V.value.chart.timeTag.useDefaultFormat ? Il.value(e + U.value.start, V.value.chart.timeTag.timeFormat) : Y.value[e].text;
|
|
2973
2973
|
});
|
|
2974
2974
|
function yu({ serie: e, plot: n, type: r }) {
|
|
2975
|
-
if (!
|
|
2975
|
+
if (!vt(n.value)) return "";
|
|
2976
2976
|
let i = o({
|
|
2977
2977
|
p: e.prefix || V.value.chart.labels.prefix,
|
|
2978
2978
|
v: n.value,
|
|
@@ -2980,10 +2980,10 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2980
2980
|
r: V.value[r].labels.rounding
|
|
2981
2981
|
}), a = n.datasetXValue;
|
|
2982
2982
|
return t({
|
|
2983
|
-
content: G.value &&
|
|
2983
|
+
content: G.value && p(a) ? `x: ${o({
|
|
2984
2984
|
v: a,
|
|
2985
2985
|
r: V.value.chart.grid.labels.xAxis.rounding
|
|
2986
|
-
})}\ny: ${i}` :
|
|
2986
|
+
})}\ny: ${i}` : h(V.value[r].labels.formatter, n.value, i, {
|
|
2987
2987
|
datapoint: n,
|
|
2988
2988
|
serie: e
|
|
2989
2989
|
}),
|
|
@@ -2996,14 +2996,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2996
2996
|
function bu({ plot: e }) {
|
|
2997
2997
|
let t = V.value.bar.labels.offsetY, n = Math.abs(Ks(e)), r = e.value < 0, i = {
|
|
2998
2998
|
x: (H.value.useIndividualScale && H.value.isStacked ? e.x + qs.value.line / 2 : Ys(e) + Js() / 2 - Yc.value / 2) + V.value.bar.labels.offsetX,
|
|
2999
|
-
y:
|
|
2999
|
+
y: _(e.y) + (V.value.bar.labels.alwaysOnTop ? t - (r ? n : 0) : e.value >= 0 ? t : -t * 3)
|
|
3000
3000
|
};
|
|
3001
3001
|
return `translate(${i.x}, ${i.y}) rotate(${V.value.bar.labels.rotation})`;
|
|
3002
3002
|
}
|
|
3003
3003
|
function xu({ plot: e, type: t }) {
|
|
3004
3004
|
let n = V.value[t].labels.offsetY, r = {
|
|
3005
3005
|
x: e.x + V.value[t].labels.offsetX,
|
|
3006
|
-
y:
|
|
3006
|
+
y: _(e.y) + (V.value[t].labels.alwaysOnTop || e.value >= 0 ? n : -n * 3)
|
|
3007
3007
|
};
|
|
3008
3008
|
return `translate(${r.x}, ${r.y}) rotate(${V.value[t].labels.rotation})`;
|
|
3009
3009
|
}
|
|
@@ -3012,22 +3012,22 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3012
3012
|
let n = e.value >= 0;
|
|
3013
3013
|
return V.value[t].labels.rotation === 0 ? "middle" : V.value[t].labels.alwaysOnTop || n ? "start" : "end";
|
|
3014
3014
|
}
|
|
3015
|
-
let Cu =
|
|
3015
|
+
let Cu = y(() => G.value ? p(Ta.value) ? ml({ x: Number(Ta.value) }) : p($s.value) ? $s.value : null : Oc((R.value === null ? 0 : R.value) || (I.value === null ? 0 : I.value))), wu = y(() => V.value.chart.highlighter.crosshairs.show && ms.value), Tu = y(() => [
|
|
3016
3016
|
...Q.value,
|
|
3017
3017
|
...$.value,
|
|
3018
3018
|
...kl.value
|
|
3019
|
-
].flatMap((e) => (e.plots || []).filter((t, n) => Ou(e, t, n)).filter((e) =>
|
|
3019
|
+
].flatMap((e) => (e.plots || []).filter((t, n) => Ou(e, t, n)).filter((e) => vt(e.value)).map((t) => ({
|
|
3020
3020
|
...t,
|
|
3021
3021
|
serie: e,
|
|
3022
|
-
x:
|
|
3023
|
-
y:
|
|
3024
|
-
})))), Eu =
|
|
3022
|
+
x: _(t.x),
|
|
3023
|
+
y: _(t.y)
|
|
3024
|
+
})))), Eu = y(() => {
|
|
3025
3025
|
if (!wu.value) return null;
|
|
3026
3026
|
if (G.value) {
|
|
3027
3027
|
let e = Z.value[0], t = e?.point?.raw?.x ?? e?.point?.x;
|
|
3028
|
-
return
|
|
3028
|
+
return p(t) ? {
|
|
3029
3029
|
x: Cu.value,
|
|
3030
|
-
text:
|
|
3030
|
+
text: h(V.value.chart.grid.labels.xAxis.formatter, t, o({
|
|
3031
3031
|
v: t,
|
|
3032
3032
|
r: V.value.chart.tooltip.roundingValue
|
|
3033
3033
|
}))
|
|
@@ -3046,7 +3046,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3046
3046
|
return G.value ? Z.value.some((n) => n.datapoint.id === e.id && n.index === t.index) : R.value !== null && R.value === n || I.value !== null && I.value === n;
|
|
3047
3047
|
}
|
|
3048
3048
|
function ku({ serie: e, plot: t, index: n, type: r }) {
|
|
3049
|
-
return !t || !
|
|
3049
|
+
return !t || !vt(t.value) || !V.value[r].labels.show || !H.value.dataLabels.show ? !1 : !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || Ou(e, t, n);
|
|
3050
3050
|
}
|
|
3051
3051
|
function Au(e, t) {
|
|
3052
3052
|
let n = [];
|
|
@@ -3067,8 +3067,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3067
3067
|
});
|
|
3068
3068
|
}), n;
|
|
3069
3069
|
}
|
|
3070
|
-
let ju =
|
|
3071
|
-
|
|
3070
|
+
let ju = y(() => Au(kl.value, "bar")), Mu = y(() => Au($.value, "plot")), Nu = y(() => Au(Q.value, "line"));
|
|
3071
|
+
ht(() => M.dataset, (e) => {
|
|
3072
3072
|
if (Array.isArray(e) && e.length > 0 && (io.value = !1), V.value.chart.zoom.keepState) {
|
|
3073
3073
|
let e = uo.value;
|
|
3074
3074
|
if (e > 0) {
|
|
@@ -3090,7 +3090,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3090
3090
|
end: uo.value
|
|
3091
3091
|
};
|
|
3092
3092
|
$i.value += 1, ha.value += 1, Va(), ho();
|
|
3093
|
-
}, { deep: !0 }),
|
|
3093
|
+
}, { deep: !0 }), ht(() => M.config, (e) => {
|
|
3094
3094
|
no.value || (V.value = Ja()), ou(), pa.value += 1, fa.value += 1, Qa(), V.value.chart.zoom.keepState && uo.value > 0 && (!ys.value || U.value.start === 0 && U.value.end === 0) && Ss(), ho();
|
|
3095
3095
|
}, { deep: !0 });
|
|
3096
3096
|
let Pu = E(!1), Fu = E(!1);
|
|
@@ -3110,13 +3110,13 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3110
3110
|
Iu(), Oa.value = new ResizeObserver(() => {
|
|
3111
3111
|
Iu(), Pu.value && (ou(), ho(), Lu() && Ss());
|
|
3112
3112
|
}), zi.value?.parentNode && Oa.value.observe(zi.value.parentNode);
|
|
3113
|
-
}),
|
|
3113
|
+
}), ht(V, () => {
|
|
3114
3114
|
Qa();
|
|
3115
3115
|
}, { immediate: !0 });
|
|
3116
|
-
let Ru =
|
|
3116
|
+
let Ru = y(() => {
|
|
3117
3117
|
let e = V.value.table.useDialog && !V.value.showTable, t = H.value.showTable;
|
|
3118
3118
|
return {
|
|
3119
|
-
component: e ? Mi :
|
|
3119
|
+
component: e ? Mi : Je,
|
|
3120
3120
|
title: `${V.value.chart.title.text}${V.value.chart.title.subtitle.text ? `: ${V.value.chart.title.subtitle.text}` : ""}`,
|
|
3121
3121
|
props: e ? {
|
|
3122
3122
|
backgroundColor: V.value.table.th.backgroundColor,
|
|
@@ -3143,25 +3143,25 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3143
3143
|
}
|
|
3144
3144
|
};
|
|
3145
3145
|
});
|
|
3146
|
-
|
|
3146
|
+
ht(() => H.value.showTable, (e) => {
|
|
3147
3147
|
V.value.showTable || (e && V.value.table.useDialog && Sa.value ? Sa.value.open() : Sa.value && Sa.value.close && Sa.value.close());
|
|
3148
3148
|
});
|
|
3149
3149
|
function zu() {
|
|
3150
3150
|
H.value.showTable = !1, Xi.value && Xi.value.setTableIconState(!1);
|
|
3151
3151
|
}
|
|
3152
|
-
let Bu =
|
|
3152
|
+
let Bu = y(() => Lo.value.map((e) => ({
|
|
3153
3153
|
shape: e.type === "bar" ? "square" : e.shape ?? "circle",
|
|
3154
3154
|
color: e.color,
|
|
3155
3155
|
name: e.name
|
|
3156
|
-
}))), Vu =
|
|
3156
|
+
}))), Vu = y(() => V.value.chart.backgroundColor), Hu = y(() => V.value.chart.legend), { exportSvg: Uu, getSvg: Wu } = Le({
|
|
3157
3157
|
svg: L,
|
|
3158
|
-
title:
|
|
3158
|
+
title: y(() => V.value.chart.title),
|
|
3159
3159
|
legend: Hu,
|
|
3160
3160
|
legendItems: Bu,
|
|
3161
3161
|
backgroundColor: Vu
|
|
3162
3162
|
});
|
|
3163
3163
|
async function Gu({ isCb: e }) {
|
|
3164
|
-
wa.value = !0, await
|
|
3164
|
+
wa.value = !0, await at();
|
|
3165
3165
|
try {
|
|
3166
3166
|
if (e) {
|
|
3167
3167
|
let { blob: e, url: t, text: n, dataUrl: r } = await Wu();
|
|
@@ -3240,10 +3240,10 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3240
3240
|
function Qu(e) {
|
|
3241
3241
|
let t = U.value.end - U.value.start;
|
|
3242
3242
|
if (t <= 0) return;
|
|
3243
|
-
let n = J.value.width / t, r =
|
|
3243
|
+
let n = J.value.width / t, r = ke(J.value.left + n * e + n / 2, J.value.top + J.value.height / 2, L.value);
|
|
3244
3244
|
r && (Da.value = r);
|
|
3245
3245
|
}
|
|
3246
|
-
let $u =
|
|
3246
|
+
let $u = y(() => {
|
|
3247
3247
|
if (!Ql.value) return null;
|
|
3248
3248
|
let e = V.value.table.showSum, t = [V.value.table.columnNames.period].concat(K.value.map((e) => e.name));
|
|
3249
3249
|
return e && (t = t.concat(V.value.table.columnNames.total)), {
|
|
@@ -3251,7 +3251,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3251
3251
|
rows: Ql.value.body
|
|
3252
3252
|
};
|
|
3253
3253
|
});
|
|
3254
|
-
return
|
|
3254
|
+
return Ke({
|
|
3255
3255
|
getData: uc,
|
|
3256
3256
|
getImage: dc,
|
|
3257
3257
|
generatePdf: yo,
|
|
@@ -3268,9 +3268,9 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3268
3268
|
toggleFullscreen: iu,
|
|
3269
3269
|
copyAlt: qu,
|
|
3270
3270
|
resetZoom: Ns
|
|
3271
|
-
}), (n, r) => (T(),
|
|
3271
|
+
}), (n, r) => (T(), x("div", {
|
|
3272
3272
|
id: `vue-ui-xy_${F.value}`,
|
|
3273
|
-
class:
|
|
3273
|
+
class: ot(`vue-data-ui-component vue-ui-xy ${oa.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${V.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
3274
3274
|
ref_key: "chart",
|
|
3275
3275
|
ref: zi,
|
|
3276
3276
|
style: w(`background:${V.value.chart.backgroundColor}; color:${V.value.chart.color};width:100%;font-family:${V.value.chart.fontFamily};${V.value.responsive ? "height: 100%" : ""}`),
|
|
@@ -3278,11 +3278,11 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3278
3278
|
onMouseleave: rs,
|
|
3279
3279
|
onClick: cc
|
|
3280
3280
|
}, [
|
|
3281
|
-
|
|
3281
|
+
S("div", {
|
|
3282
3282
|
id: `chart-instructions-${F.value}`,
|
|
3283
3283
|
class: "sr-only"
|
|
3284
|
-
}, [
|
|
3285
|
-
$u.value?.rows?.length ? (T(),
|
|
3284
|
+
}, [S("p", null, k(V.value.a11y.translations.keyboardNavigation), 1)], 8, kt),
|
|
3285
|
+
$u.value?.rows?.length ? (T(), Qe(Xe, {
|
|
3286
3286
|
key: 0,
|
|
3287
3287
|
uid: F.value,
|
|
3288
3288
|
head: $u.value.headers,
|
|
@@ -3295,8 +3295,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3295
3295
|
"body",
|
|
3296
3296
|
"notice",
|
|
3297
3297
|
"caption"
|
|
3298
|
-
])) :
|
|
3299
|
-
V.value.chart.userOptions.buttons.annotator && L.value ? (T(),
|
|
3298
|
+
])) : b("", !0),
|
|
3299
|
+
V.value.chart.userOptions.buttons.annotator && L.value ? (T(), Qe(A(ji), {
|
|
3300
3300
|
key: 1,
|
|
3301
3301
|
svgRef: L.value,
|
|
3302
3302
|
backgroundColor: V.value.chart.backgroundColor,
|
|
@@ -3305,12 +3305,12 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3305
3305
|
isCursorPointer: Za.value,
|
|
3306
3306
|
onClose: is
|
|
3307
3307
|
}, {
|
|
3308
|
-
"annotator-action-close":
|
|
3309
|
-
"annotator-action-color":
|
|
3310
|
-
"annotator-action-draw":
|
|
3311
|
-
"annotator-action-undo":
|
|
3312
|
-
"annotator-action-redo":
|
|
3313
|
-
"annotator-action-delete":
|
|
3308
|
+
"annotator-action-close": j(() => [O(n.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
3309
|
+
"annotator-action-color": j(({ color: e }) => [O(n.$slots, "annotator-action-color", st(C({ color: e })), void 0, !0)]),
|
|
3310
|
+
"annotator-action-draw": j(({ mode: e }) => [O(n.$slots, "annotator-action-draw", st(C({ mode: e })), void 0, !0)]),
|
|
3311
|
+
"annotator-action-undo": j(({ disabled: e }) => [O(n.$slots, "annotator-action-undo", st(C({ disabled: e })), void 0, !0)]),
|
|
3312
|
+
"annotator-action-redo": j(({ disabled: e }) => [O(n.$slots, "annotator-action-redo", st(C({ disabled: e })), void 0, !0)]),
|
|
3313
|
+
"annotator-action-delete": j(({ disabled: e }) => [O(n.$slots, "annotator-action-delete", st(C({ disabled: e })), void 0, !0)]),
|
|
3314
3314
|
_: 3
|
|
3315
3315
|
}, 8, [
|
|
3316
3316
|
"svgRef",
|
|
@@ -3318,21 +3318,21 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3318
3318
|
"color",
|
|
3319
3319
|
"active",
|
|
3320
3320
|
"isCursorPointer"
|
|
3321
|
-
])) :
|
|
3322
|
-
xc.value ? (T(),
|
|
3321
|
+
])) : b("", !0),
|
|
3322
|
+
xc.value ? (T(), x("div", {
|
|
3323
3323
|
key: 2,
|
|
3324
3324
|
ref_key: "noTitle",
|
|
3325
3325
|
ref: Wi,
|
|
3326
3326
|
class: "vue-data-ui-no-title-space",
|
|
3327
3327
|
style: "height:36px; width: 100%; background:transparent"
|
|
3328
|
-
}, null, 512)) :
|
|
3329
|
-
V.value.chart.title.show ? (T(),
|
|
3328
|
+
}, null, 512)) : b("", !0),
|
|
3329
|
+
V.value.chart.title.show ? (T(), x("div", {
|
|
3330
3330
|
key: 3,
|
|
3331
3331
|
ref_key: "chartTitle",
|
|
3332
3332
|
ref: Bi,
|
|
3333
3333
|
class: "vue-ui-xy-title",
|
|
3334
3334
|
style: w(`font-family:${V.value.chart.fontFamily}`)
|
|
3335
|
-
}, [(T(),
|
|
3335
|
+
}, [(T(), Qe(Ue, {
|
|
3336
3336
|
key: `title_${pa.value}`,
|
|
3337
3337
|
config: {
|
|
3338
3338
|
title: {
|
|
@@ -3344,16 +3344,16 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3344
3344
|
...V.value.chart.title.subtitle
|
|
3345
3345
|
}
|
|
3346
3346
|
}
|
|
3347
|
-
}, null, 8, ["config"]))], 4)) :
|
|
3348
|
-
|
|
3349
|
-
V.value.chart.userOptions.show && (_a.value || va.value) ? (T(),
|
|
3347
|
+
}, null, 8, ["config"]))], 4)) : b("", !0),
|
|
3348
|
+
S("div", { id: `legend-top-${F.value}` }, null, 8, At),
|
|
3349
|
+
V.value.chart.userOptions.show && (_a.value || va.value) ? (T(), Qe(A(Di), {
|
|
3350
3350
|
ref_key: "userOptionsRef",
|
|
3351
3351
|
ref: Xi,
|
|
3352
3352
|
key: `user_options_${da.value}`,
|
|
3353
3353
|
backgroundColor: V.value.chart.backgroundColor,
|
|
3354
3354
|
color: V.value.chart.color,
|
|
3355
|
-
isPrinting:
|
|
3356
|
-
isImaging:
|
|
3355
|
+
isPrinting: A(_o),
|
|
3356
|
+
isImaging: A(vo),
|
|
3357
3357
|
uid: F.value,
|
|
3358
3358
|
hasTooltip: V.value.chart.userOptions.buttons.tooltip && V.value.chart.tooltip.show,
|
|
3359
3359
|
hasPdf: V.value.chart.userOptions.buttons.pdf,
|
|
@@ -3378,7 +3378,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3378
3378
|
printScale: V.value.chart.userOptions.print.scale,
|
|
3379
3379
|
isCursorPointer: Za.value,
|
|
3380
3380
|
onToggleFullscreen: iu,
|
|
3381
|
-
onGeneratePdf:
|
|
3381
|
+
onGeneratePdf: A(yo),
|
|
3382
3382
|
onGenerateCsv: $l,
|
|
3383
3383
|
onGenerateImage: Ku,
|
|
3384
3384
|
onGenerateSvg: Gu,
|
|
@@ -3389,10 +3389,10 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3389
3389
|
onToggleAnnotator: is,
|
|
3390
3390
|
onCopyAlt: qu,
|
|
3391
3391
|
style: w({ visibility: _a.value ? va.value ? "visible" : "hidden" : "visible" })
|
|
3392
|
-
},
|
|
3392
|
+
}, $e({ _: 2 }, [
|
|
3393
3393
|
n.$slots.menuIcon ? {
|
|
3394
3394
|
name: "menuIcon",
|
|
3395
|
-
fn:
|
|
3395
|
+
fn: j(({ isOpen: e, color: t }) => [O(n.$slots, "menuIcon", st(C({
|
|
3396
3396
|
isOpen: e,
|
|
3397
3397
|
color: t
|
|
3398
3398
|
})), void 0, !0)]),
|
|
@@ -3400,47 +3400,47 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3400
3400
|
} : void 0,
|
|
3401
3401
|
n.$slots.optionTooltip ? {
|
|
3402
3402
|
name: "optionTooltip",
|
|
3403
|
-
fn:
|
|
3403
|
+
fn: j(() => [O(n.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
3404
3404
|
key: "1"
|
|
3405
3405
|
} : void 0,
|
|
3406
3406
|
n.$slots.optionPdf ? {
|
|
3407
3407
|
name: "optionPdf",
|
|
3408
|
-
fn:
|
|
3408
|
+
fn: j(() => [O(n.$slots, "optionPdf", {}, void 0, !0)]),
|
|
3409
3409
|
key: "2"
|
|
3410
3410
|
} : void 0,
|
|
3411
3411
|
n.$slots.optionCsv ? {
|
|
3412
3412
|
name: "optionCsv",
|
|
3413
|
-
fn:
|
|
3413
|
+
fn: j(() => [O(n.$slots, "optionCsv", {}, void 0, !0)]),
|
|
3414
3414
|
key: "3"
|
|
3415
3415
|
} : void 0,
|
|
3416
3416
|
n.$slots.optionImg ? {
|
|
3417
3417
|
name: "optionImg",
|
|
3418
|
-
fn:
|
|
3418
|
+
fn: j(() => [O(n.$slots, "optionImg", {}, void 0, !0)]),
|
|
3419
3419
|
key: "4"
|
|
3420
3420
|
} : void 0,
|
|
3421
3421
|
n.$slots.optionSvg ? {
|
|
3422
3422
|
name: "optionSvg",
|
|
3423
|
-
fn:
|
|
3423
|
+
fn: j(() => [O(n.$slots, "optionSvg", {}, void 0, !0)]),
|
|
3424
3424
|
key: "5"
|
|
3425
3425
|
} : void 0,
|
|
3426
3426
|
n.$slots.optionTable ? {
|
|
3427
3427
|
name: "optionTable",
|
|
3428
|
-
fn:
|
|
3428
|
+
fn: j(() => [O(n.$slots, "optionTable", {}, void 0, !0)]),
|
|
3429
3429
|
key: "6"
|
|
3430
3430
|
} : void 0,
|
|
3431
3431
|
n.$slots.optionLabels ? {
|
|
3432
3432
|
name: "optionLabels",
|
|
3433
|
-
fn:
|
|
3433
|
+
fn: j(() => [O(n.$slots, "optionLabels", {}, void 0, !0)]),
|
|
3434
3434
|
key: "7"
|
|
3435
3435
|
} : void 0,
|
|
3436
3436
|
n.$slots.optionStack ? {
|
|
3437
3437
|
name: "optionStack",
|
|
3438
|
-
fn:
|
|
3438
|
+
fn: j(({ isStack: e }) => [O(n.$slots, "optionStack", st(C({ isStack: e })), void 0, !0)]),
|
|
3439
3439
|
key: "8"
|
|
3440
3440
|
} : void 0,
|
|
3441
3441
|
n.$slots.optionFullscreen ? {
|
|
3442
3442
|
name: "optionFullscreen",
|
|
3443
|
-
fn:
|
|
3443
|
+
fn: j(({ toggleFullscreen: e, isFullscreen: t }) => [O(n.$slots, "optionFullscreen", st(C({
|
|
3444
3444
|
toggleFullscreen: e,
|
|
3445
3445
|
isFullscreen: t
|
|
3446
3446
|
})), void 0, !0)]),
|
|
@@ -3448,7 +3448,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3448
3448
|
} : void 0,
|
|
3449
3449
|
n.$slots.optionAnnotator ? {
|
|
3450
3450
|
name: "optionAnnotator",
|
|
3451
|
-
fn:
|
|
3451
|
+
fn: j(({ toggleAnnotator: e, isAnnotator: t }) => [O(n.$slots, "optionAnnotator", st(C({
|
|
3452
3452
|
toggleAnnotator: e,
|
|
3453
3453
|
isAnnotator: t
|
|
3454
3454
|
})), void 0, !0)]),
|
|
@@ -3456,25 +3456,25 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3456
3456
|
} : void 0,
|
|
3457
3457
|
n.$slots.optionAltCopy ? {
|
|
3458
3458
|
name: "optionAltCopy",
|
|
3459
|
-
fn:
|
|
3459
|
+
fn: j(({ altCopy: e }) => [O(n.$slots, "optionAltCopy", st(C({ altCopy: e })), void 0, !0)]),
|
|
3460
3460
|
key: "11"
|
|
3461
3461
|
} : void 0,
|
|
3462
3462
|
n.$slots["custom-menu-before"] ? {
|
|
3463
3463
|
name: "custom-menu-before",
|
|
3464
|
-
fn:
|
|
3464
|
+
fn: j(() => [O(n.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
3465
3465
|
key: "12"
|
|
3466
3466
|
} : void 0,
|
|
3467
3467
|
n.$slots["custom-menu-after"] ? {
|
|
3468
3468
|
name: "custom-menu-after",
|
|
3469
|
-
fn:
|
|
3469
|
+
fn: j(() => [O(n.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
3470
3470
|
key: "13"
|
|
3471
3471
|
} : void 0
|
|
3472
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasLabel.hasTable.hasStack.hasFullscreen.hasAltCopy.isStacked.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.tableDialog.printScale.isCursorPointer.onGeneratePdf.style".split("."))) :
|
|
3473
|
-
|
|
3472
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasLabel.hasTable.hasStack.hasFullscreen.hasAltCopy.isStacked.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.tableDialog.printScale.isCursorPointer.onGeneratePdf.style".split("."))) : b("", !0),
|
|
3473
|
+
S("div", jt, [(T(), x("svg", {
|
|
3474
3474
|
ref_key: "svgRef",
|
|
3475
3475
|
ref: L,
|
|
3476
3476
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3477
|
-
class:
|
|
3477
|
+
class: ot([{
|
|
3478
3478
|
"vue-data-ui-fullscreen--on": oa.value,
|
|
3479
3479
|
"vue-data-ui-fulscreen--off": !oa.value
|
|
3480
3480
|
}, "vue-ui-xy-svg vue-data-ui-svg"]),
|
|
@@ -3497,187 +3497,187 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3497
3497
|
onFocus: Yu,
|
|
3498
3498
|
onBlur: Xu,
|
|
3499
3499
|
onKeydown: Zu
|
|
3500
|
-
}, [
|
|
3500
|
+
}, [S("g", {
|
|
3501
3501
|
ref_key: "G",
|
|
3502
3502
|
ref: Gi,
|
|
3503
3503
|
class: "vue-data-ui-g"
|
|
3504
3504
|
}, [
|
|
3505
|
-
|
|
3506
|
-
n.$slots["chart-background"] ? (T(),
|
|
3505
|
+
tt(A(Ai)),
|
|
3506
|
+
n.$slots["chart-background"] ? (T(), x("foreignObject", {
|
|
3507
3507
|
key: 0,
|
|
3508
3508
|
x: Math.max(0, J.value?.left),
|
|
3509
3509
|
y: J.value?.top,
|
|
3510
3510
|
width: Math.max(0, J.value?.width),
|
|
3511
3511
|
height: Math.max(0, J.value?.height),
|
|
3512
3512
|
style: { pointerEvents: "none" }
|
|
3513
|
-
}, [O(n.$slots, "chart-background", {}, void 0, !0)], 8, Nt)) :
|
|
3514
|
-
X.value > 0 ? (T(),
|
|
3515
|
-
|
|
3516
|
-
V.value.chart.grid.labels.xAxis.showBaseline ? (T(),
|
|
3513
|
+
}, [O(n.$slots, "chart-background", {}, void 0, !0)], 8, Nt)) : b("", !0),
|
|
3514
|
+
X.value > 0 ? (T(), x("g", Pt, [
|
|
3515
|
+
S("g", Ft, [
|
|
3516
|
+
V.value.chart.grid.labels.xAxis.showBaseline ? (T(), x("line", {
|
|
3517
3517
|
key: 0,
|
|
3518
3518
|
stroke: V.value.chart.grid.stroke,
|
|
3519
3519
|
"stroke-width": "1",
|
|
3520
3520
|
x1: J.value?.left,
|
|
3521
3521
|
x2: J.value?.right,
|
|
3522
|
-
y1:
|
|
3523
|
-
y2:
|
|
3522
|
+
y1: A(g)(J.value?.bottom),
|
|
3523
|
+
y2: A(g)(J.value?.bottom),
|
|
3524
3524
|
"stroke-linecap": "round",
|
|
3525
3525
|
style: { animation: "none !important" }
|
|
3526
|
-
}, null, 8, It)) :
|
|
3527
|
-
H.value.useIndividualScale ? V.value.chart.grid.showHorizontalLines ? (T(!0),
|
|
3526
|
+
}, null, 8, It)) : b("", !0),
|
|
3527
|
+
H.value.useIndividualScale ? V.value.chart.grid.showHorizontalLines ? (T(!0), x(v, { key: 2 }, D(jl.value, (e) => (T(), x("g", { key: `individual_grid_${e.groupId || e.id}` }, [e.id === N.value && e.yLabels.length ? (T(!0), x(v, { key: 0 }, D(e.yLabels, (t) => (T(), x("line", {
|
|
3528
3528
|
key: `selected_individual_grid_line_${e.groupId || e.id}_${t.value}_${t.y}`,
|
|
3529
3529
|
x1: J.value?.left,
|
|
3530
3530
|
x2: J.value?.right,
|
|
3531
|
-
y1:
|
|
3532
|
-
y2:
|
|
3531
|
+
y1: A(g)(t.y),
|
|
3532
|
+
y2: A(g)(t.y),
|
|
3533
3533
|
stroke: e.color,
|
|
3534
3534
|
"stroke-width": .5,
|
|
3535
3535
|
"stroke-linecap": "round",
|
|
3536
3536
|
style: { animation: "none !important" }
|
|
3537
|
-
}, null, 8, Bt))), 128)) : e.yLabels.length ? (T(!0),
|
|
3537
|
+
}, null, 8, Bt))), 128)) : e.yLabels.length ? (T(!0), x(v, { key: 1 }, D(e.yLabels, (t) => (T(), x("line", {
|
|
3538
3538
|
key: `individual_grid_line_${e.groupId || e.id}_${t.value}_${t.y}`,
|
|
3539
3539
|
x1: J.value?.left,
|
|
3540
3540
|
x2: J.value?.right,
|
|
3541
|
-
y1:
|
|
3542
|
-
y2:
|
|
3541
|
+
y1: A(g)(t.y),
|
|
3542
|
+
y2: A(g)(t.y),
|
|
3543
3543
|
stroke: V.value.chart.grid.stroke,
|
|
3544
3544
|
"stroke-width": .5,
|
|
3545
3545
|
"stroke-linecap": "round",
|
|
3546
3546
|
style: { animation: "none !important" }
|
|
3547
|
-
}, null, 8, Vt))), 128)) :
|
|
3547
|
+
}, null, 8, Vt))), 128)) : b("", !0)]))), 128)) : b("", !0) : (T(), x(v, { key: 1 }, [V.value.chart.grid.labels.yAxis.showBaseline ? (T(), x("line", {
|
|
3548
3548
|
key: 0,
|
|
3549
3549
|
class: "vue-ui-xy-y-axis",
|
|
3550
3550
|
stroke: V.value.chart.grid.stroke,
|
|
3551
3551
|
"stroke-width": "1",
|
|
3552
3552
|
x1: q.value ? J.value?.right : J.value?.left,
|
|
3553
3553
|
x2: q.value ? J.value?.right : J.value?.left,
|
|
3554
|
-
y1:
|
|
3555
|
-
y2:
|
|
3554
|
+
y1: A(g)(J.value?.top),
|
|
3555
|
+
y2: A(g)(J.value?.bottom),
|
|
3556
3556
|
"stroke-linecap": "round",
|
|
3557
3557
|
style: { animation: "none !important" }
|
|
3558
|
-
}, null, 8, Lt)) :
|
|
3558
|
+
}, null, 8, Lt)) : b("", !0), V.value.chart.grid.showHorizontalLines ? (T(), x("g", Rt, [(T(!0), x(v, null, D(tl.value, (e) => (T(), x("line", {
|
|
3559
3559
|
key: `horizontal_grid_line_${e.value}_${e.y}`,
|
|
3560
3560
|
x1: J.value?.left,
|
|
3561
3561
|
x2: J.value?.right,
|
|
3562
|
-
y1:
|
|
3563
|
-
y2:
|
|
3562
|
+
y1: A(g)(e.y),
|
|
3563
|
+
y2: A(g)(e.y),
|
|
3564
3564
|
stroke: V.value.chart.grid.stroke,
|
|
3565
3565
|
"stroke-width": .5,
|
|
3566
3566
|
"stroke-linecap": "round",
|
|
3567
3567
|
style: { animation: "none !important" }
|
|
3568
|
-
}, null, 8, zt))), 128))])) :
|
|
3569
|
-
V.value.chart.grid.showVerticalLines ? (T(),
|
|
3568
|
+
}, null, 8, zt))), 128))])) : b("", !0)], 64)),
|
|
3569
|
+
V.value.chart.grid.showVerticalLines ? (T(), x("g", Ht, [S("path", {
|
|
3570
3570
|
d: Jo.value,
|
|
3571
3571
|
"stroke-width": .5,
|
|
3572
3572
|
stroke: V.value.chart.grid.stroke,
|
|
3573
3573
|
"stroke-linecap": "round",
|
|
3574
3574
|
style: { animation: "none !important" }
|
|
3575
|
-
}, null, 8, Ut)])) :
|
|
3576
|
-
V.value.chart.grid.labels.xAxisLabels.show ? (T(),
|
|
3575
|
+
}, null, 8, Ut)])) : b("", !0),
|
|
3576
|
+
V.value.chart.grid.labels.xAxisLabels.show ? (T(), x("g", Wt, [S("path", {
|
|
3577
3577
|
d: Yo.value,
|
|
3578
3578
|
stroke: V.value.chart.grid.stroke,
|
|
3579
3579
|
"stroke-width": 1,
|
|
3580
3580
|
"stroke-linecap": "round",
|
|
3581
3581
|
style: { animation: "none !important" }
|
|
3582
|
-
}, null, 8, Gt)])) :
|
|
3582
|
+
}, null, 8, Gt)])) : b("", !0)
|
|
3583
3583
|
]),
|
|
3584
|
-
(T(!0),
|
|
3584
|
+
(T(!0), x(v, null, D(kl.value, (e, t) => (T(), x("defs", { key: `def_rect_${t}` }, [n.$slots["bar-gradient"] ? O(n.$slots, "bar-gradient", it({
|
|
3585
3585
|
key: 0,
|
|
3586
3586
|
ref_for: !0
|
|
3587
3587
|
}, {
|
|
3588
3588
|
series: e,
|
|
3589
3589
|
positiveId: `rectGradient_pos_${t}_${F.value}`,
|
|
3590
3590
|
negativeId: `rectGradient_neg_${t}_${F.value}`
|
|
3591
|
-
}), void 0, !0) : (T(),
|
|
3591
|
+
}), void 0, !0) : (T(), x(v, { key: 1 }, [S("linearGradient", {
|
|
3592
3592
|
id: `rectGradient_pos_${t}_${F.value}`,
|
|
3593
3593
|
x2: "0%",
|
|
3594
3594
|
y2: "100%"
|
|
3595
3595
|
}, [
|
|
3596
|
-
|
|
3596
|
+
S("stop", {
|
|
3597
3597
|
offset: "0%",
|
|
3598
3598
|
"stop-color": e.color
|
|
3599
3599
|
}, null, 8, qt),
|
|
3600
|
-
|
|
3600
|
+
S("stop", {
|
|
3601
3601
|
offset: "62%",
|
|
3602
|
-
"stop-color": `${
|
|
3602
|
+
"stop-color": `${A(a)(e.color, .02)}`
|
|
3603
3603
|
}, null, 8, Jt),
|
|
3604
|
-
|
|
3604
|
+
S("stop", {
|
|
3605
3605
|
offset: "100%",
|
|
3606
|
-
"stop-color": `${
|
|
3606
|
+
"stop-color": `${A(a)(e.color, .05)}`
|
|
3607
3607
|
}, null, 8, Yt)
|
|
3608
|
-
], 8, Kt),
|
|
3608
|
+
], 8, Kt), S("linearGradient", {
|
|
3609
3609
|
id: `rectGradient_neg_${t}_${F.value}`,
|
|
3610
3610
|
x2: "0%",
|
|
3611
3611
|
y2: "100%"
|
|
3612
3612
|
}, [
|
|
3613
|
-
|
|
3613
|
+
S("stop", {
|
|
3614
3614
|
offset: "0%",
|
|
3615
|
-
"stop-color": `${
|
|
3615
|
+
"stop-color": `${A(a)(e.color, .05)}`
|
|
3616
3616
|
}, null, 8, Zt),
|
|
3617
|
-
|
|
3617
|
+
S("stop", {
|
|
3618
3618
|
offset: "38%",
|
|
3619
|
-
"stop-color": `${
|
|
3619
|
+
"stop-color": `${A(a)(e.color, .02)}`
|
|
3620
3620
|
}, null, 8, Qt),
|
|
3621
|
-
|
|
3621
|
+
S("stop", {
|
|
3622
3622
|
offset: "100%",
|
|
3623
3623
|
"stop-color": e.color
|
|
3624
3624
|
}, null, 8, $t)
|
|
3625
3625
|
], 8, Xt)], 64))]))), 128)),
|
|
3626
|
-
(T(!0),
|
|
3626
|
+
(T(!0), x(v, null, D($.value, (e, t) => (T(), x("defs", { key: `def_plot_${t}` }, [S("radialGradient", {
|
|
3627
3627
|
id: `plotGradient_${t}_${F.value}`,
|
|
3628
3628
|
cx: "50%",
|
|
3629
3629
|
cy: "50%",
|
|
3630
3630
|
r: "50%",
|
|
3631
3631
|
fx: "50%",
|
|
3632
3632
|
fy: "50%"
|
|
3633
|
-
}, [
|
|
3633
|
+
}, [S("stop", {
|
|
3634
3634
|
offset: "0%",
|
|
3635
|
-
"stop-color": `${
|
|
3636
|
-
}, null, 8, tn),
|
|
3635
|
+
"stop-color": `${A(a)(e.color, .05)}`
|
|
3636
|
+
}, null, 8, tn), S("stop", {
|
|
3637
3637
|
offset: "100%",
|
|
3638
3638
|
"stop-color": e.color
|
|
3639
3639
|
}, null, 8, nn)], 8, en)]))), 128)),
|
|
3640
|
-
(T(!0),
|
|
3640
|
+
(T(!0), x(v, null, D(Q.value, (e, t) => (T(), x(v, { key: `def_line_${e.id}` }, [S("defs", null, [S("radialGradient", {
|
|
3641
3641
|
id: `lineGradient_${t}_${F.value}`,
|
|
3642
3642
|
cx: "50%",
|
|
3643
3643
|
cy: "50%",
|
|
3644
3644
|
r: "50%",
|
|
3645
3645
|
fx: "50%",
|
|
3646
3646
|
fy: "50%"
|
|
3647
|
-
}, [
|
|
3647
|
+
}, [S("stop", {
|
|
3648
3648
|
offset: "0%",
|
|
3649
|
-
"stop-color": `${
|
|
3650
|
-
}, null, 8, an),
|
|
3649
|
+
"stop-color": `${A(a)(e.color, .05)}`
|
|
3650
|
+
}, null, 8, an), S("stop", {
|
|
3651
3651
|
offset: "100%",
|
|
3652
3652
|
"stop-color": e.color
|
|
3653
|
-
}, null, 8, on)], 8, rn), n.$slots["area-gradient"] ? O(n.$slots, "area-gradient",
|
|
3653
|
+
}, null, 8, on)], 8, rn), n.$slots["area-gradient"] ? O(n.$slots, "area-gradient", it({
|
|
3654
3654
|
key: 0,
|
|
3655
3655
|
ref_for: !0
|
|
3656
3656
|
}, {
|
|
3657
3657
|
series: e,
|
|
3658
3658
|
id: `areaGradient_${t}_${F.value}`
|
|
3659
|
-
}), void 0, !0) : (T(),
|
|
3659
|
+
}), void 0, !0) : (T(), x("linearGradient", {
|
|
3660
3660
|
key: 1,
|
|
3661
3661
|
id: `areaGradient_${t}_${F.value}`,
|
|
3662
3662
|
x1: "0%",
|
|
3663
3663
|
x2: "100%",
|
|
3664
3664
|
y1: "0%",
|
|
3665
3665
|
y2: "0%"
|
|
3666
|
-
}, [
|
|
3666
|
+
}, [S("stop", {
|
|
3667
3667
|
offset: "0%",
|
|
3668
|
-
"stop-color": `${
|
|
3669
|
-
}, null, 8, cn),
|
|
3668
|
+
"stop-color": `${A(f)(A(a)(e.color, .03), V.value.line.area.opacity)}`
|
|
3669
|
+
}, null, 8, cn), S("stop", {
|
|
3670
3670
|
offset: "100%",
|
|
3671
|
-
"stop-color": `${
|
|
3672
|
-
}, null, 8, ln)], 8, sn))]), e.temperatureColors && !e.isFlatTemperatureLine ? (T(),
|
|
3671
|
+
"stop-color": `${A(f)(e.color, V.value.line.area.opacity)}`
|
|
3672
|
+
}, null, 8, ln)], 8, sn))]), e.temperatureColors && !e.isFlatTemperatureLine ? (T(), x("defs", un, [S("linearGradient", {
|
|
3673
3673
|
id: `temperature_grad_line_${t}_${F.value}`,
|
|
3674
3674
|
gradientTransform: "rotate(90)"
|
|
3675
|
-
}, [(T(!0),
|
|
3675
|
+
}, [(T(!0), x(v, null, D(e.temperatureColors, (n, r) => (T(), x("stop", {
|
|
3676
3676
|
key: `temperature_grad_stop_${t}_${r}_${F.value}`,
|
|
3677
3677
|
"stop-color": n,
|
|
3678
|
-
offset:
|
|
3679
|
-
}, null, 8, fn))), 128))], 8, dn)])) :
|
|
3680
|
-
(T(!0),
|
|
3678
|
+
offset: A(ne)(r, e.temperatureColors.length)
|
|
3679
|
+
}, null, 8, fn))), 128))], 8, dn)])) : b("", !0)], 64))), 128)),
|
|
3680
|
+
(T(!0), x(v, null, D(Sc.value, (e) => (T(), x("g", { key: `highlight_area_${e.from}_${e.span}_${e.color}` }, [e.show ? (T(), x(v, { key: 0 }, [(T(!0), x(v, null, D(e.span, (t, n) => (T(), x("g", { key: `highlight_area_rect_${e.from}_${n}` }, [S("rect", {
|
|
3681
3681
|
style: w({
|
|
3682
3682
|
transition: "none",
|
|
3683
3683
|
opacity: +(e.from + n >= U.value.start && e.from + n <= U.value.end - 1)
|
|
@@ -3686,8 +3686,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3686
3686
|
y: J.value?.top,
|
|
3687
3687
|
height: J.value.height < 0 ? 10 : J.value.height,
|
|
3688
3688
|
width: jc(e.from + n - U.value.start),
|
|
3689
|
-
fill:
|
|
3690
|
-
}, null, 12, pn)]))), 128)), (T(!0),
|
|
3689
|
+
fill: A(f)(e.color, e.opacity)
|
|
3690
|
+
}, null, 12, pn)]))), 128)), (T(!0), x(v, null, D(e.span, (t, n) => (T(), x("g", { key: `highlight_area_caption_${e.from}_${n}` }, [e.caption.text && n === 0 ? (T(), x("foreignObject", {
|
|
3691
3691
|
key: 0,
|
|
3692
3692
|
x: Ac(e.from + n - U.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - Pc(e.span) / 2),
|
|
3693
3693
|
y: J.value?.top + e.caption.offsetY,
|
|
@@ -3697,8 +3697,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3697
3697
|
}),
|
|
3698
3698
|
height: "1",
|
|
3699
3699
|
width: e.caption.width === "auto" ? Pc(e.span) : e.caption.width
|
|
3700
|
-
}, [
|
|
3701
|
-
es.value && !G.value ? (T(),
|
|
3700
|
+
}, [S("div", { style: w(`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"}`) }, k(e.caption.text), 5)], 12, mn)) : b("", !0)]))), 128))], 64)) : b("", !0)]))), 128)),
|
|
3701
|
+
es.value && !G.value ? (T(), x("g", hn, [(T(!0), x(v, null, D(X.value, (e, t) => (T(), x("g", { key: `tooltip_trap_highlighter_${t}` }, [S("rect", {
|
|
3702
3702
|
x: Ac(t),
|
|
3703
3703
|
y: J.value?.top,
|
|
3704
3704
|
height: J.value.height < 0 ? 10 : J.value.height,
|
|
@@ -3707,18 +3707,18 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3707
3707
|
I.value,
|
|
3708
3708
|
R.value,
|
|
3709
3709
|
ca.value
|
|
3710
|
-
].includes(t) ?
|
|
3710
|
+
].includes(t) ? A(f)(V.value.chart.highlighter.color, V.value.chart.highlighter.crosshairs.show ? 0 : V.value.chart.highlighter.opacity) : "transparent",
|
|
3711
3711
|
style: {
|
|
3712
3712
|
transition: "none !important",
|
|
3713
3713
|
animation: "none !important"
|
|
3714
3714
|
}
|
|
3715
|
-
}, null, 8, gn)]))), 128))])) :
|
|
3716
|
-
kl.value.length ? (T(!0),
|
|
3715
|
+
}, null, 8, gn)]))), 128))])) : b("", !0),
|
|
3716
|
+
kl.value.length ? (T(!0), x(v, { key: 1 }, D(kl.value, (e, t) => (T(), x("g", {
|
|
3717
3717
|
key: `serie_bar_${e.id}`,
|
|
3718
|
-
class:
|
|
3718
|
+
class: ot(`serie_bar_${t}`),
|
|
3719
3719
|
style: w(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3720
|
-
}, [(T(!0),
|
|
3721
|
-
|
|
3720
|
+
}, [(T(!0), x(v, null, D(e.plots, (r, i) => (T(), x("g", { key: `bar_plot_${t}_${i}` }, [
|
|
3721
|
+
A(vt)(r.value) ? (T(), x("rect", {
|
|
3722
3722
|
key: 0,
|
|
3723
3723
|
x: Ys(r) + Zc.value / 2,
|
|
3724
3724
|
y: H.value.useIndividualScale ? Zs(r) : Xs(r),
|
|
@@ -3728,9 +3728,9 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3728
3728
|
fill: V.value.bar.useGradient ? r.value >= 0 ? `url(#rectGradient_pos_${t}_${F.value})` : `url(#rectGradient_neg_${t}_${F.value})` : e.color,
|
|
3729
3729
|
stroke: V.value.bar.border.useSerieColor ? e.color : V.value.bar.border.stroke,
|
|
3730
3730
|
"stroke-width": V.value.bar.border.strokeWidth,
|
|
3731
|
-
style: w({ transition:
|
|
3732
|
-
}, null, 12, _n)) :
|
|
3733
|
-
|
|
3731
|
+
style: w({ transition: A(no) || !V.value.bar.showTransition ? void 0 : `all ${V.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
3732
|
+
}, null, 12, _n)) : b("", !0),
|
|
3733
|
+
A(vt)(r.value) && n.$slots.pattern ? (T(), x("rect", {
|
|
3734
3734
|
key: 1,
|
|
3735
3735
|
x: Ys(r) - Zc.value / 2,
|
|
3736
3736
|
y: H.value.useIndividualScale ? Zs(r) : Xs(r),
|
|
@@ -3740,38 +3740,38 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3740
3740
|
fill: `url(#pattern_${F.value}_${e.slotAbsoluteIndex})`,
|
|
3741
3741
|
stroke: V.value.bar.border.useSerieColor ? e.color : V.value.bar.border.stroke,
|
|
3742
3742
|
"stroke-width": V.value.bar.border.strokeWidth,
|
|
3743
|
-
style: w({ transition:
|
|
3744
|
-
}, null, 12, vn)) :
|
|
3745
|
-
r.comment && V.value.chart.comments.show ? (T(),
|
|
3743
|
+
style: w({ transition: A(no) || !V.value.bar.showTransition ? void 0 : `all ${V.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
3744
|
+
}, null, 12, vn)) : b("", !0),
|
|
3745
|
+
r.comment && V.value.chart.comments.show ? (T(), x("foreignObject", {
|
|
3746
3746
|
key: 2,
|
|
3747
3747
|
style: { overflow: "visible" },
|
|
3748
3748
|
height: "12",
|
|
3749
3749
|
width: Xc.value + V.value.chart.comments.width,
|
|
3750
3750
|
x: Ys(r) - V.value.chart.comments.width / 2 + V.value.chart.comments.offsetX,
|
|
3751
|
-
y:
|
|
3751
|
+
y: A(_)(r.y) + V.value.chart.comments.offsetY + 6
|
|
3752
3752
|
}, [O(n.$slots, "plot-comment", { plot: {
|
|
3753
3753
|
...r,
|
|
3754
3754
|
color: e.color,
|
|
3755
3755
|
seriesIndex: t,
|
|
3756
3756
|
datapointIndex: i
|
|
3757
|
-
} }, void 0, !0)], 8, yn)) :
|
|
3758
|
-
]))), 128))], 6))), 128)) :
|
|
3759
|
-
!H.value.useIndividualScale && V.value.chart.grid.labels.zeroLine.show ? (T(),
|
|
3757
|
+
} }, void 0, !0)], 8, yn)) : b("", !0)
|
|
3758
|
+
]))), 128))], 6))), 128)) : b("", !0),
|
|
3759
|
+
!H.value.useIndividualScale && V.value.chart.grid.labels.zeroLine.show ? (T(), x("line", {
|
|
3760
3760
|
key: 2,
|
|
3761
3761
|
stroke: V.value.chart.grid.stroke,
|
|
3762
3762
|
"stroke-width": "1",
|
|
3763
3763
|
x1: J.value?.left,
|
|
3764
3764
|
x2: J.value?.right,
|
|
3765
|
-
y1:
|
|
3766
|
-
y2:
|
|
3765
|
+
y1: A(g)(Ws.value),
|
|
3766
|
+
y2: A(g)(Ws.value),
|
|
3767
3767
|
"stroke-linecap": "round",
|
|
3768
3768
|
style: { animation: "none !important" }
|
|
3769
|
-
}, null, 8, bn)) :
|
|
3770
|
-
!V.value.chart.highlighter.crosshairs.show && (V.value.chart.highlighter.useLine || G.value) && ms.value ? (T(),
|
|
3769
|
+
}, null, 8, bn)) : b("", !0),
|
|
3770
|
+
!V.value.chart.highlighter.crosshairs.show && (V.value.chart.highlighter.useLine || G.value) && ms.value ? (T(), x("g", xn, [S("line", {
|
|
3771
3771
|
x1: Cu.value,
|
|
3772
3772
|
x2: Cu.value,
|
|
3773
|
-
y1:
|
|
3774
|
-
y2:
|
|
3773
|
+
y1: A(g)(J.value?.top),
|
|
3774
|
+
y2: A(g)(J.value?.bottom),
|
|
3775
3775
|
stroke: V.value.chart.highlighter.color,
|
|
3776
3776
|
"stroke-width": V.value.chart.highlighter.lineWidth,
|
|
3777
3777
|
"stroke-dasharray": V.value.chart.highlighter.lineDasharray,
|
|
@@ -3781,41 +3781,41 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3781
3781
|
animation: "none !important",
|
|
3782
3782
|
"pointer-events": "none"
|
|
3783
3783
|
}
|
|
3784
|
-
}, null, 8, Sn)])) :
|
|
3785
|
-
wu.value ? (T(),
|
|
3786
|
-
|
|
3787
|
-
x1: V.value.chart.highlighter.crosshairs.stopOnPoint ?
|
|
3788
|
-
x2: V.value.chart.highlighter.crosshairs.stopOnPoint ?
|
|
3789
|
-
y1:
|
|
3790
|
-
y2:
|
|
3784
|
+
}, null, 8, Sn)])) : b("", !0),
|
|
3785
|
+
wu.value ? (T(), x("g", Cn, [(T(!0), x(v, null, D(Tu.value, (e) => (T(), x("g", { key: `crosshair_${e.serie.id}_${e.index}` }, [
|
|
3786
|
+
S("line", {
|
|
3787
|
+
x1: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(g)(e.x) : J.value.left,
|
|
3788
|
+
x2: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(g)(Du(e.x)) : J.value.right,
|
|
3789
|
+
y1: A(g)(e.y),
|
|
3790
|
+
y2: A(g)(e.y),
|
|
3791
3791
|
stroke: V.value.chart.highlighter.crosshairs.stroke,
|
|
3792
3792
|
"stroke-width": V.value.chart.highlighter.crosshairs.strokeWidth,
|
|
3793
3793
|
"stroke-dasharray": V.value.chart.highlighter.crosshairs.strokeDasharray,
|
|
3794
3794
|
"stroke-linecap": "round",
|
|
3795
3795
|
style: { "pointer-events": "none" }
|
|
3796
3796
|
}, null, 8, wn),
|
|
3797
|
-
|
|
3798
|
-
x1:
|
|
3799
|
-
x2:
|
|
3800
|
-
y1: V.value.chart.highlighter.crosshairs.stopOnPoint ?
|
|
3801
|
-
y2: V.value.chart.highlighter.crosshairs.stopOnPoint ?
|
|
3797
|
+
S("line", {
|
|
3798
|
+
x1: A(g)(e.x),
|
|
3799
|
+
x2: A(g)(e.x),
|
|
3800
|
+
y1: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(g)(e.y) : J.value.top,
|
|
3801
|
+
y2: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(g)(J.value.bottom) : J.value.bottom,
|
|
3802
3802
|
stroke: V.value.chart.highlighter.crosshairs.stroke,
|
|
3803
3803
|
"stroke-width": V.value.chart.highlighter.crosshairs.strokeWidth,
|
|
3804
3804
|
"stroke-dasharray": V.value.chart.highlighter.crosshairs.strokeDasharray,
|
|
3805
3805
|
"stroke-linecap": "round",
|
|
3806
3806
|
style: { "pointer-events": "none" }
|
|
3807
3807
|
}, null, 8, Tn),
|
|
3808
|
-
|
|
3809
|
-
cx:
|
|
3810
|
-
cy:
|
|
3808
|
+
S("circle", {
|
|
3809
|
+
cx: A(g)(Du(e.x)),
|
|
3810
|
+
cy: A(g)(e.y),
|
|
3811
3811
|
r: V.value.chart.highlighter.crosshairs.dot.radius,
|
|
3812
3812
|
fill: V.value.chart.highlighter.crosshairs.dot.fill,
|
|
3813
3813
|
stroke: V.value.chart.highlighter.crosshairs.dot.stroke,
|
|
3814
3814
|
"stroke-width": V.value.chart.highlighter.crosshairs.dot.strokeWidth,
|
|
3815
3815
|
style: { "pointer-events": "none" }
|
|
3816
3816
|
}, null, 8, En)
|
|
3817
|
-
]))), 128))])) :
|
|
3818
|
-
V.value.chart.grid.frame.show ? (T(),
|
|
3817
|
+
]))), 128))])) : b("", !0),
|
|
3818
|
+
V.value.chart.grid.frame.show ? (T(), x("rect", {
|
|
3819
3819
|
key: 5,
|
|
3820
3820
|
style: {
|
|
3821
3821
|
pointerEvents: "none",
|
|
@@ -3832,50 +3832,50 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3832
3832
|
"stroke-linecap": V.value.chart.grid.frame.strokeLinecap,
|
|
3833
3833
|
"stroke-linejoin": V.value.chart.grid.frame.strokeLinejoin,
|
|
3834
3834
|
"stroke-dasharray": V.value.chart.grid.frame.strokeDasharray
|
|
3835
|
-
}, null, 8, Dn)) :
|
|
3836
|
-
V.value.chart.grid.labels.show ? (T(),
|
|
3835
|
+
}, null, 8, Dn)) : b("", !0),
|
|
3836
|
+
V.value.chart.grid.labels.show ? (T(), x("g", {
|
|
3837
3837
|
key: 6,
|
|
3838
3838
|
ref_key: "scaleLabels",
|
|
3839
3839
|
ref: Yi,
|
|
3840
3840
|
opacity: wu.value ? .2 : 1,
|
|
3841
3841
|
style: { transition: "opacity 0.2s" }
|
|
3842
|
-
}, [H.value.useIndividualScale ? (T(),
|
|
3842
|
+
}, [H.value.useIndividualScale ? (T(), x(v, { key: 0 }, [(T(!0), x(v, null, D(jl.value, (e) => (T(), x("g", { key: `individual_scale_axis_${e.groupId || e.id}` }, [S("line", {
|
|
3843
3843
|
x1: H.value.isStacked ? q.value ? J.value.right : J.value.left : q.value ? e.x : e.x - J.value.individualOffsetX,
|
|
3844
3844
|
x2: H.value.isStacked ? q.value ? J.value.right : J.value.left : q.value ? e.x : e.x - J.value.individualOffsetX,
|
|
3845
|
-
y1: H.value.isStacked ?
|
|
3846
|
-
y2: H.value.isStacked ?
|
|
3845
|
+
y1: H.value.isStacked ? A(g)(J.value?.bottom - e.yOffset - e.individualHeight) : A(g)(J.value?.top),
|
|
3846
|
+
y2: H.value.isStacked ? A(g)(J.value?.bottom - e.yOffset) : A(g)(J.value?.bottom),
|
|
3847
3847
|
stroke: e.color,
|
|
3848
3848
|
"stroke-width": V.value.chart.grid.stroke,
|
|
3849
3849
|
"stroke-linecap": "round",
|
|
3850
3850
|
style: w(`opacity:${N.value ? N.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
3851
|
-
}, null, 12, kn)]))), 128)), (T(!0),
|
|
3851
|
+
}, null, 12, kn)]))), 128)), (T(!0), x(v, null, D(jl.value, (e) => (T(), x("g", {
|
|
3852
3852
|
key: `individual_scale_label_${e.groupId || e.id}`,
|
|
3853
3853
|
style: w(`opacity:${N.value ? N.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3854
3854
|
}, [
|
|
3855
|
-
|
|
3855
|
+
S("text", {
|
|
3856
3856
|
fill: e.color,
|
|
3857
3857
|
"font-size": B.value.dataLabels * .8,
|
|
3858
3858
|
"text-anchor": "middle",
|
|
3859
3859
|
transform: `translate(${H.value.isStacked ? q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + V.value.chart.grid.labels.yAxis.labelWidth + J.value.individualOffsetX + V.value.chart.grid.labels.axis.yLabelOffsetX : J.value.left - V.value.chart.grid.labels.yAxis.crosshairSize - V.value.chart.grid.labels.yAxis.scaleValueOffsetX - V.value.chart.grid.labels.yAxis.labelWidth - V.value.chart.grid.labels.axis.yLabelOffsetX : q.value ? e.x + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + V.value.chart.grid.labels.yAxis.labelWidth + V.value.chart.grid.labels.axis.yLabelOffsetX : e.x - B.value.dataLabels * .8 / 2}, ${H.value.isStacked ? J.value?.bottom - e.yOffset - e.individualHeight / 2 : J.value?.top + J.value.height / 2}) rotate(-90)`
|
|
3860
|
-
},
|
|
3861
|
-
(T(!0),
|
|
3860
|
+
}, k(e.name) + " " + k(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `- ${e.scaleLabel}` : ""), 9, An),
|
|
3861
|
+
(T(!0), x(v, null, D(e.yLabels, (t, n) => (T(), x(v, { key: `individual_scale_y_crosshair_${e.groupId || e.id}_${t.value}_${n}` }, [V.value.chart.grid.labels.yAxis.showCrosshairs ? (T(), x("line", {
|
|
3862
3862
|
key: 0,
|
|
3863
3863
|
x1: H.value.isStacked ? q.value ? J.value.right : J.value.left : q.value ? e.x : e.x + 3 - V.value.chart.grid.labels.yAxis.crosshairSize - J.value.individualOffsetX,
|
|
3864
3864
|
x2: H.value.isStacked ? q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize : J.value.left - V.value.chart.grid.labels.yAxis.crosshairSize : q.value ? e.x + V.value.chart.grid.labels.yAxis.crosshairSize : e.x - J.value.individualOffsetX,
|
|
3865
|
-
y1:
|
|
3866
|
-
y2:
|
|
3865
|
+
y1: A(g)(t.y),
|
|
3866
|
+
y2: A(g)(t.y),
|
|
3867
3867
|
stroke: e.color,
|
|
3868
3868
|
"stroke-width": 1,
|
|
3869
3869
|
"stroke-linecap": "round",
|
|
3870
3870
|
style: { animation: "none !important" }
|
|
3871
|
-
}, null, 8, jn)) :
|
|
3872
|
-
(T(!0),
|
|
3871
|
+
}, null, 8, jn)) : b("", !0)], 64))), 128)),
|
|
3872
|
+
(T(!0), x(v, null, D(e.yLabels, (t, n) => (T(), x("text", {
|
|
3873
3873
|
key: `individual_scale_y_label_${e.groupId || e.id}_${t.value}_${n}`,
|
|
3874
|
-
transform: `translate(${H.value.isStacked ? q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : J.value.left - V.value.chart.grid.labels.yAxis.crosshairSize - V.value.chart.grid.labels.yAxis.scaleValueOffsetX - 5 : q.value ? e.x + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : e.x - 5 - J.value.individualOffsetX}, ${
|
|
3874
|
+
transform: `translate(${H.value.isStacked ? q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : J.value.left - V.value.chart.grid.labels.yAxis.crosshairSize - V.value.chart.grid.labels.yAxis.scaleValueOffsetX - 5 : q.value ? e.x + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : e.x - 5 - J.value.individualOffsetX}, ${A(g)(t.y) + B.value.dataLabels / 3})`,
|
|
3875
3875
|
"text-anchor": q.value ? "start" : "end",
|
|
3876
3876
|
"font-size": B.value.dataLabels,
|
|
3877
3877
|
fill: e.color
|
|
3878
|
-
},
|
|
3878
|
+
}, k(A(h)(V.value.chart.grid.labels.yAxis.formatter, t.value, A(o)({
|
|
3879
3879
|
p: t.prefix,
|
|
3880
3880
|
v: t.value,
|
|
3881
3881
|
s: t.suffix,
|
|
@@ -3884,31 +3884,31 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3884
3884
|
datapoint: t.datapoint,
|
|
3885
3885
|
seriesIndex: n
|
|
3886
3886
|
})), 9, Mn))), 128))
|
|
3887
|
-
], 4))), 128))], 64)) : (T(!0),
|
|
3887
|
+
], 4))), 128))], 64)) : (T(!0), x(v, { key: 1 }, D(tl.value, (e, t) => (T(), x("g", { key: `yLabel_${t}` }, [A(vt)(e) && e.value >= W.value.min && e.value <= W.value.max && V.value.chart.grid.labels.yAxis.showCrosshairs ? (T(), x("line", {
|
|
3888
3888
|
key: 0,
|
|
3889
3889
|
x1: q.value ? J.value?.right : J.value?.left,
|
|
3890
3890
|
x2: q.value ? J.value?.right + V.value.chart.grid.labels.yAxis.crosshairSize : J.value?.left - V.value.chart.grid.labels.yAxis.crosshairSize,
|
|
3891
|
-
y1:
|
|
3892
|
-
y2:
|
|
3891
|
+
y1: A(g)(e.y),
|
|
3892
|
+
y2: A(g)(e.y),
|
|
3893
3893
|
stroke: V.value.chart.grid.stroke,
|
|
3894
3894
|
"stroke-width": "1",
|
|
3895
3895
|
"stroke-linecap": "round",
|
|
3896
3896
|
style: { animation: "none !important" }
|
|
3897
|
-
}, null, 8, Nn)) :
|
|
3897
|
+
}, null, 8, Nn)) : b("", !0), e.value >= W.value.min && e.value <= W.value.max ? (T(), x("text", {
|
|
3898
3898
|
key: 1,
|
|
3899
|
-
transform: `translate(${q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : J.value.scaleLabelX - V.value.chart.grid.labels.yAxis.crosshairSize}, ${
|
|
3899
|
+
transform: `translate(${q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : J.value.scaleLabelX - V.value.chart.grid.labels.yAxis.crosshairSize}, ${A(_)(e.y + B.value.dataLabels / 3)})`,
|
|
3900
3900
|
"font-size": B.value.dataLabels,
|
|
3901
3901
|
"text-anchor": q.value ? "start" : "end",
|
|
3902
3902
|
fill: V.value.chart.grid.labels.color
|
|
3903
|
-
},
|
|
3903
|
+
}, k(A(vt)(e.value) ? A(h)(V.value.chart.grid.labels.yAxis.formatter, e.value, A(o)({
|
|
3904
3904
|
p: e.prefix,
|
|
3905
3905
|
v: e.value,
|
|
3906
3906
|
s: e.suffix,
|
|
3907
3907
|
r: V.value.chart.grid.labels.yAxis.rounding
|
|
3908
|
-
})) : ""), 9, Pn)) :
|
|
3909
|
-
wu.value ? (T(),
|
|
3908
|
+
})) : ""), 9, Pn)) : b("", !0)]))), 128))], 8, On)) : b("", !0),
|
|
3909
|
+
wu.value ? (T(), x("g", Fn, [(T(!0), x(v, null, D(Tu.value, (e) => (T(), x("text", {
|
|
3910
3910
|
key: `crosshair_y_label_${e.serie.id}_${e.index}`,
|
|
3911
|
-
transform: `translate(${q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : J.value.scaleLabelX - V.value.chart.grid.labels.yAxis.crosshairSize}, ${
|
|
3911
|
+
transform: `translate(${q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : J.value.scaleLabelX - V.value.chart.grid.labels.yAxis.crosshairSize}, ${A(g)(e.y) + B.value.dataLabels / 3})`,
|
|
3912
3912
|
"font-size": B.value.dataLabels,
|
|
3913
3913
|
"text-anchor": q.value ? "start" : "end",
|
|
3914
3914
|
fill: V.value.chart.grid.labels.color,
|
|
@@ -3917,7 +3917,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3917
3917
|
animation: "none !important",
|
|
3918
3918
|
"pointer-events": "none"
|
|
3919
3919
|
}
|
|
3920
|
-
},
|
|
3920
|
+
}, k(A(h)(V.value.chart.grid.labels.yAxis.formatter, e.value, A(o)({
|
|
3921
3921
|
p: e.serie.prefix || V.value.chart.labels.prefix,
|
|
3922
3922
|
v: e.value,
|
|
3923
3923
|
s: e.serie.suffix || V.value.chart.labels.suffix,
|
|
@@ -3925,10 +3925,10 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3925
3925
|
}), {
|
|
3926
3926
|
datapoint: e.serie,
|
|
3927
3927
|
seriesIndex: e.index
|
|
3928
|
-
})), 9, In))), 128))])) :
|
|
3929
|
-
Eu.value ? (T(),
|
|
3928
|
+
})), 9, In))), 128))])) : b("", !0),
|
|
3929
|
+
Eu.value ? (T(), x("g", Ln, [S("circle", {
|
|
3930
3930
|
cx: Cu.value,
|
|
3931
|
-
cy:
|
|
3931
|
+
cy: A(g)(J.value?.bottom),
|
|
3932
3932
|
r: V.value.chart.highlighter.crosshairs.dot.radius,
|
|
3933
3933
|
fill: V.value.chart.highlighter.crosshairs.dot.fill,
|
|
3934
3934
|
stroke: V.value.chart.highlighter.crosshairs.dot.stroke,
|
|
@@ -3938,12 +3938,12 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3938
3938
|
animation: "none !important",
|
|
3939
3939
|
"pointer-events": "none"
|
|
3940
3940
|
}
|
|
3941
|
-
}, null, 8, Rn)])) :
|
|
3942
|
-
(T(!0),
|
|
3941
|
+
}, null, 8, Rn)])) : b("", !0),
|
|
3942
|
+
(T(!0), x(v, null, D($.value, (e, t) => (T(), x("g", {
|
|
3943
3943
|
key: `serie_plot_${e.id}`,
|
|
3944
|
-
class:
|
|
3944
|
+
class: ot(`serie_plot_${t}`),
|
|
3945
3945
|
style: w(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3946
|
-
}, [(T(!0),
|
|
3946
|
+
}, [(T(!0), x(v, null, D(e.plots, (r, i) => (T(), x("g", { key: `circle_plot_${e.id}_${i}` }, [r && A(vt)(r.value) ? (T(), Qe(Ge, {
|
|
3947
3947
|
key: 0,
|
|
3948
3948
|
shape: [
|
|
3949
3949
|
"triangle",
|
|
@@ -3955,13 +3955,13 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3955
3955
|
].includes(e.shape) ? e.shape : "circle",
|
|
3956
3956
|
color: V.value.plot.useGradient ? `url(#plotGradient_${t}_${F.value})` : V.value.plot.dot.useSerieColor ? e.color : V.value.plot.dot.fill,
|
|
3957
3957
|
plot: {
|
|
3958
|
-
x:
|
|
3959
|
-
y:
|
|
3958
|
+
x: A(_)(r.x),
|
|
3959
|
+
y: A(_)(r.y)
|
|
3960
3960
|
},
|
|
3961
3961
|
radius: Ou(e, r, i) ? (Ka.value.plot || 6) * 1.5 : (rl(e.plots, i), Ka.value.plot || 6),
|
|
3962
3962
|
stroke: V.value.plot.dot.useSerieColor ? V.value.chart.backgroundColor : e.color,
|
|
3963
3963
|
strokeWidth: V.value.plot.dot.strokeWidth,
|
|
3964
|
-
transition:
|
|
3964
|
+
transition: A(no) || ws.value || !V.value.plot.showTransition ? void 0 : `all ${V.value.plot.transitionDurationMs}ms ease-in-out`,
|
|
3965
3965
|
still: ws.value
|
|
3966
3966
|
}, null, 8, [
|
|
3967
3967
|
"shape",
|
|
@@ -3972,24 +3972,24 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3972
3972
|
"strokeWidth",
|
|
3973
3973
|
"transition",
|
|
3974
3974
|
"still"
|
|
3975
|
-
])) :
|
|
3975
|
+
])) : b("", !0), r.comment && V.value.chart.comments.show ? (T(), x("foreignObject", {
|
|
3976
3976
|
key: 1,
|
|
3977
3977
|
style: { overflow: "visible" },
|
|
3978
3978
|
height: "12",
|
|
3979
3979
|
width: V.value.chart.comments.width,
|
|
3980
3980
|
x: r.x - V.value.chart.comments.width / 2 + V.value.chart.comments.offsetX,
|
|
3981
3981
|
y: r.y + V.value.chart.comments.offsetY + 6
|
|
3982
|
-
}, [
|
|
3982
|
+
}, [S("div", Bn, [O(n.$slots, "plot-comment", { plot: {
|
|
3983
3983
|
...r,
|
|
3984
3984
|
color: e.color,
|
|
3985
3985
|
seriesIndex: t,
|
|
3986
3986
|
datapointIndex: i
|
|
3987
|
-
} }, void 0, !0)])], 8, zn)) :
|
|
3988
|
-
(T(!0),
|
|
3987
|
+
} }, void 0, !0)])], 8, zn)) : b("", !0)]))), 128))], 6))), 128)),
|
|
3988
|
+
(T(!0), x(v, null, D(Q.value, (e, t) => (T(), x("g", {
|
|
3989
3989
|
key: `serie_line_${e.id}`,
|
|
3990
|
-
class:
|
|
3990
|
+
class: ot(`serie_line_${t}`),
|
|
3991
3991
|
style: w(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3992
|
-
}, [e.hasDashedSegments ? (T(),
|
|
3992
|
+
}, [e.hasDashedSegments ? (T(), x(v, { key: 0 }, [e.smooth ? (T(!0), x(v, { key: 0 }, D(e.dashedSmooth, (t, n) => (T(), x("path", {
|
|
3993
3993
|
key: `line_coating_smooth_segment_${e.id}_${n}`,
|
|
3994
3994
|
fill: "none",
|
|
3995
3995
|
"stroke-linecap": "round",
|
|
@@ -3999,7 +3999,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3999
3999
|
"stroke-width": V.value.line.strokeWidth + 1,
|
|
4000
4000
|
"stroke-dasharray": t.dashed ? V.value.line.strokeWidth * 2 : 0,
|
|
4001
4001
|
style: w({ transition: ll() })
|
|
4002
|
-
}, null, 12, Vn))), 128)) : (T(!0),
|
|
4002
|
+
}, null, 12, Vn))), 128)) : (T(!0), x(v, { key: 1 }, D(e.dashedStraight, (t, n) => (T(), x("path", {
|
|
4003
4003
|
key: `line_coating_straight_segment_${e.id}_${n}`,
|
|
4004
4004
|
fill: "none",
|
|
4005
4005
|
"stroke-linecap": "round",
|
|
@@ -4009,7 +4009,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4009
4009
|
"stroke-width": V.value.line.strokeWidth + 1,
|
|
4010
4010
|
"stroke-dasharray": t.dashed ? V.value.line.strokeWidth * 2 : 0,
|
|
4011
4011
|
style: w({ transition: ll() })
|
|
4012
|
-
}, null, 12, Hn))), 128))], 64)) : e.smooth && e.plots.length > 1 && e.curve ? (T(),
|
|
4012
|
+
}, null, 12, Hn))), 128))], 64)) : e.smooth && e.plots.length > 1 && e.curve ? (T(), x("path", {
|
|
4013
4013
|
key: 1,
|
|
4014
4014
|
d: `M${e.curve}`,
|
|
4015
4015
|
stroke: V.value.chart.backgroundColor,
|
|
@@ -4019,7 +4019,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4019
4019
|
"stroke-linecap": "round",
|
|
4020
4020
|
"stroke-linejoin": "round",
|
|
4021
4021
|
style: w({ transition: ll() })
|
|
4022
|
-
}, null, 12, Un)) : e.plots.length > 1 && e.straight ? (T(),
|
|
4022
|
+
}, null, 12, Un)) : e.plots.length > 1 && e.straight ? (T(), x("path", {
|
|
4023
4023
|
key: 2,
|
|
4024
4024
|
d: `M${e.straight}`,
|
|
4025
4025
|
stroke: V.value.chart.backgroundColor,
|
|
@@ -4029,13 +4029,13 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4029
4029
|
"stroke-linecap": "round",
|
|
4030
4030
|
"stroke-linejoin": "round",
|
|
4031
4031
|
style: w({ transition: ll() })
|
|
4032
|
-
}, null, 12, Wn)) :
|
|
4033
|
-
n.$slots.pattern ? (T(),
|
|
4032
|
+
}, null, 12, Wn)) : b("", !0)], 6))), 128)),
|
|
4033
|
+
n.$slots.pattern ? (T(), x("defs", Gn, [(T(!0), x(v, null, D(Io.value, (e, t) => O(n.$slots, "pattern", it({ key: `serie_pattern_slot_${e.id}` }, { ref_for: !0 }, {
|
|
4034
4034
|
...e,
|
|
4035
4035
|
seriesIndex: e.slotAbsoluteIndex,
|
|
4036
4036
|
patternId: `pattern_${F.value}_${t}`
|
|
4037
|
-
}), void 0, !0)), 128))])) :
|
|
4038
|
-
Ml.value.length && !H.value.isStacked ? (T(),
|
|
4037
|
+
}), void 0, !0)), 128))])) : b("", !0),
|
|
4038
|
+
Ml.value.length && !H.value.isStacked ? (T(), x("g", Kn, [(T(!0), x(v, null, D(Ml.value, (e) => (T(), x("path", {
|
|
4039
4039
|
key: e.key,
|
|
4040
4040
|
d: e.d,
|
|
4041
4041
|
fill: e.color,
|
|
@@ -4043,34 +4043,34 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4043
4043
|
stroke: "none",
|
|
4044
4044
|
"pointer-events": "none",
|
|
4045
4045
|
style: w({ transition: ll() })
|
|
4046
|
-
}, null, 12, qn))), 128))])) :
|
|
4047
|
-
(T(!0),
|
|
4046
|
+
}, null, 12, qn))), 128))])) : b("", !0),
|
|
4047
|
+
(T(!0), x(v, null, D(Q.value, (e, t) => (T(), x("g", {
|
|
4048
4048
|
key: `serie_line_above_${e.id}`,
|
|
4049
|
-
class:
|
|
4049
|
+
class: ot(`serie_line_${t}`),
|
|
4050
4050
|
style: w(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4051
4051
|
}, [
|
|
4052
|
-
e.useArea && e.plots.length > 1 ? (T(),
|
|
4052
|
+
e.useArea && e.plots.length > 1 ? (T(), x("g", Jn, [e.smooth ? (T(!0), x(v, { key: 0 }, D(e.curveAreas, (r, i) => (T(), x(v, { key: i }, [r ? (T(), x("path", {
|
|
4053
4053
|
key: 0,
|
|
4054
4054
|
d: r,
|
|
4055
|
-
fill: V.value.line.area.useGradient ? `url(#areaGradient_${t}_${F.value})` :
|
|
4055
|
+
fill: V.value.line.area.useGradient ? `url(#areaGradient_${t}_${F.value})` : A(f)(e.color, V.value.line.area.opacity),
|
|
4056
4056
|
style: w({ transition: ll() })
|
|
4057
|
-
}, null, 12, Yn)) :
|
|
4057
|
+
}, null, 12, Yn)) : b("", !0), n.$slots.pattern && r ? (T(), x("path", {
|
|
4058
4058
|
key: 1,
|
|
4059
4059
|
d: r,
|
|
4060
4060
|
fill: `url(#pattern_${F.value}_${e.slotAbsoluteIndex})`,
|
|
4061
4061
|
style: w({ transition: ll() })
|
|
4062
|
-
}, null, 12, Xn)) :
|
|
4062
|
+
}, null, 12, Xn)) : b("", !0)], 64))), 128)) : (T(!0), x(v, { key: 1 }, D(e.area.split(";"), (r, i) => (T(), x(v, { key: i }, [r ? (T(), x("path", {
|
|
4063
4063
|
key: 0,
|
|
4064
4064
|
d: `M${r}Z`,
|
|
4065
|
-
fill: V.value.line.area.useGradient ? `url(#areaGradient_${t}_${F.value})` :
|
|
4065
|
+
fill: V.value.line.area.useGradient ? `url(#areaGradient_${t}_${F.value})` : A(f)(e.color, V.value.line.area.opacity),
|
|
4066
4066
|
style: w({ transition: ll() })
|
|
4067
|
-
}, null, 12, Zn)) :
|
|
4067
|
+
}, null, 12, Zn)) : b("", !0), n.$slots.pattern && r ? (T(), x("path", {
|
|
4068
4068
|
key: 1,
|
|
4069
4069
|
d: `M${r}Z`,
|
|
4070
4070
|
fill: `url(#pattern_${F.value}_${e.slotAbsoluteIndex})`,
|
|
4071
4071
|
style: w({ transition: ll() })
|
|
4072
|
-
}, null, 12, Qn)) :
|
|
4073
|
-
!e.hasDashedSegments && e.smooth && e.plots.length > 1 && e.curve ? (T(),
|
|
4072
|
+
}, null, 12, Qn)) : b("", !0)], 64))), 128))])) : b("", !0),
|
|
4073
|
+
!e.hasDashedSegments && e.smooth && e.plots.length > 1 && e.curve ? (T(), x("path", {
|
|
4074
4074
|
key: 1,
|
|
4075
4075
|
d: `M${e.curve}`,
|
|
4076
4076
|
stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${F.value})` : e.color,
|
|
@@ -4079,7 +4079,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4079
4079
|
fill: "none",
|
|
4080
4080
|
"stroke-linecap": "round",
|
|
4081
4081
|
style: w({ transition: ll() })
|
|
4082
|
-
}, null, 12, $n)) : e.hasDashedSegments ? (T(),
|
|
4082
|
+
}, null, 12, $n)) : e.hasDashedSegments ? (T(), x(v, { key: 2 }, [e.smooth ? (T(!0), x(v, { key: 0 }, D(e.dashedSmooth, (n, r) => (T(), x("path", {
|
|
4083
4083
|
key: `line_smooth_segment_${e.id}_${r}`,
|
|
4084
4084
|
fill: "none",
|
|
4085
4085
|
"stroke-linecap": "round",
|
|
@@ -4089,7 +4089,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4089
4089
|
"stroke-width": V.value.line.strokeWidth,
|
|
4090
4090
|
"stroke-dasharray": n.dashed ? V.value.line.strokeWidth * 2 : 0,
|
|
4091
4091
|
style: w({ transition: ll() })
|
|
4092
|
-
}, null, 12, er))), 128)) : (T(!0),
|
|
4092
|
+
}, null, 12, er))), 128)) : (T(!0), x(v, { key: 1 }, D(e.dashedStraight, (n, r) => (T(), x("path", {
|
|
4093
4093
|
key: `line_straight_segment_${e.id}_${r}`,
|
|
4094
4094
|
fill: "none",
|
|
4095
4095
|
"stroke-linecap": "round",
|
|
@@ -4099,7 +4099,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4099
4099
|
"stroke-width": V.value.line.strokeWidth,
|
|
4100
4100
|
"stroke-dasharray": n.dashed ? V.value.line.strokeWidth * 2 : 0,
|
|
4101
4101
|
style: w({ transition: ll() })
|
|
4102
|
-
}, null, 12, tr))), 128))], 64)) : e.plots.length > 1 && e.straight ? (T(),
|
|
4102
|
+
}, null, 12, tr))), 128))], 64)) : e.plots.length > 1 && e.straight ? (T(), x("path", {
|
|
4103
4103
|
key: 3,
|
|
4104
4104
|
d: `M${e.straight}`,
|
|
4105
4105
|
stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${F.value})` : e.color,
|
|
@@ -4109,8 +4109,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4109
4109
|
"stroke-linecap": "round",
|
|
4110
4110
|
"stroke-linejoin": "round",
|
|
4111
4111
|
style: w({ transition: ll() })
|
|
4112
|
-
}, null, 12, nr)) :
|
|
4113
|
-
(T(!0),
|
|
4112
|
+
}, null, 12, nr)) : b("", !0),
|
|
4113
|
+
(T(!0), x(v, null, D(e.plots, (r, i) => (T(), x(v, { key: `circle_line_${e.id}_${i}` }, [!bc.value.linePlot && r && A(vt)(r.value) || bc.value.linePlot && r && A(vt)(r.value) && (R.value !== null && R.value === i || I.value !== null && I.value === i) || rl(e.plots, i) ? (T(), Qe(Ge, {
|
|
4114
4114
|
key: 0,
|
|
4115
4115
|
shape: [
|
|
4116
4116
|
"triangle",
|
|
@@ -4122,13 +4122,13 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4122
4122
|
].includes(e.shape) ? e.shape : "circle",
|
|
4123
4123
|
color: V.value.line.useGradient ? `url(#lineGradient_${t}_${F.value})` : V.value.line.dot.useSerieColor ? e.color : V.value.line.dot.fill,
|
|
4124
4124
|
plot: {
|
|
4125
|
-
x:
|
|
4126
|
-
y:
|
|
4125
|
+
x: A(_)(r.x),
|
|
4126
|
+
y: A(_)(r.y)
|
|
4127
4127
|
},
|
|
4128
4128
|
radius: Ou(e, r, i) ? qa.value || 0 : (rl(e.plots, i), Ka.value.line || 0),
|
|
4129
4129
|
stroke: V.value.line.dot.useSerieColor ? V.value.chart.backgroundColor : e.color,
|
|
4130
4130
|
strokeWidth: V.value.line.dot.strokeWidth,
|
|
4131
|
-
transition:
|
|
4131
|
+
transition: A(no) || ws.value || !V.value.line.showTransition ? void 0 : `all ${V.value.line.transitionDurationMs}ms ease-in-out`,
|
|
4132
4132
|
still: ws.value
|
|
4133
4133
|
}, null, 8, [
|
|
4134
4134
|
"shape",
|
|
@@ -4139,54 +4139,21 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4139
4139
|
"strokeWidth",
|
|
4140
4140
|
"transition",
|
|
4141
4141
|
"still"
|
|
4142
|
-
])) :
|
|
4142
|
+
])) : b("", !0), r.comment && V.value.chart.comments.show ? (T(), x("foreignObject", {
|
|
4143
4143
|
key: 1,
|
|
4144
4144
|
style: { overflow: "visible" },
|
|
4145
4145
|
height: "12",
|
|
4146
4146
|
width: V.value.chart.comments.width,
|
|
4147
4147
|
x: r.x - V.value.chart.comments.width / 2 + V.value.chart.comments.offsetX,
|
|
4148
4148
|
y: r.y + V.value.chart.comments.offsetY + 6
|
|
4149
|
-
}, [
|
|
4149
|
+
}, [S("div", ir, [O(n.$slots, "plot-comment", { plot: {
|
|
4150
4150
|
...r,
|
|
4151
4151
|
color: e.color,
|
|
4152
4152
|
seriesIndex: t,
|
|
4153
4153
|
datapointIndex: i
|
|
4154
|
-
} }, void 0, !0)])], 8, rr)) :
|
|
4154
|
+
} }, void 0, !0)])], 8, rr)) : b("", !0)], 64))), 128))
|
|
4155
4155
|
], 6))), 128)),
|
|
4156
|
-
|
|
4157
|
-
key: `original_first_line_overlay_${n.originalFirstLineSeriesDotOverlay.id}`,
|
|
4158
|
-
style: w(`opacity:${N.value ? N.value === n.originalFirstLineSeriesDotOverlay.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4159
|
-
}, [(T(!0), b(_, null, D(n.originalFirstLineSeriesDotOverlay.plots, (e, t) => (T(), b(_, { key: `original_first_line_overlay_dot_${n.originalFirstLineSeriesDotOverlay.id}_${t}` }, [!bc.value.linePlot && e && k(j)(e.value) || bc.value.linePlot && e && k(j)(e.value) && (R.value !== null && R.value === t || I.value !== null && I.value === t) || rl(n.originalFirstLineSeriesDotOverlay.plots, t) ? (T(), $e(Ke, {
|
|
4160
|
-
key: 0,
|
|
4161
|
-
shape: [
|
|
4162
|
-
"triangle",
|
|
4163
|
-
"square",
|
|
4164
|
-
"diamond",
|
|
4165
|
-
"pentagon",
|
|
4166
|
-
"hexagon",
|
|
4167
|
-
"star"
|
|
4168
|
-
].includes(n.originalFirstLineSeriesDotOverlay.shape) ? n.originalFirstLineSeriesDotOverlay.shape : "circle",
|
|
4169
|
-
color: V.value.line.useGradient ? `url(#lineGradient_0_${F.value})` : V.value.line.dot.useSerieColor ? n.originalFirstLineSeriesDotOverlay.color : V.value.line.dot.fill,
|
|
4170
|
-
plot: {
|
|
4171
|
-
x: k(g)(e.x),
|
|
4172
|
-
y: k(g)(e.y)
|
|
4173
|
-
},
|
|
4174
|
-
radius: Ou(n.originalFirstLineSeriesDotOverlay, e, t) ? qa.value || 0 : (rl(n.originalFirstLineSeriesDotOverlay.plots, t), Ka.value.line || 0),
|
|
4175
|
-
stroke: V.value.line.dot.useSerieColor ? V.value.chart.backgroundColor : n.originalFirstLineSeriesDotOverlay.color,
|
|
4176
|
-
strokeWidth: V.value.line.dot.strokeWidth,
|
|
4177
|
-
transition: k(no) || ws.value || !V.value.line.showTransition || Ou(n.originalFirstLineSeriesDotOverlay, e, t) ? void 0 : `all ${V.value.line.transitionDurationMs}ms ease-in-out`,
|
|
4178
|
-
still: ws.value
|
|
4179
|
-
}, null, 8, [
|
|
4180
|
-
"shape",
|
|
4181
|
-
"color",
|
|
4182
|
-
"plot",
|
|
4183
|
-
"radius",
|
|
4184
|
-
"stroke",
|
|
4185
|
-
"strokeWidth",
|
|
4186
|
-
"transition",
|
|
4187
|
-
"still"
|
|
4188
|
-
])) : y("", !0)], 64))), 128))], 4)) : y("", !0),
|
|
4189
|
-
(V.value.bar.labels.show || V.value.bar.serieName.show) && H.value.dataLabels.show ? (T(), b("g", ar, [(T(!0), b(_, null, D(ju.value, (e) => (T(), b("text", {
|
|
4156
|
+
(V.value.bar.labels.show || V.value.bar.serieName.show) && H.value.dataLabels.show ? (T(), x("g", ar, [(T(!0), x(v, null, D(ju.value, (e) => (T(), x("text", {
|
|
4190
4157
|
key: e.key,
|
|
4191
4158
|
"text-anchor": Su({
|
|
4192
4159
|
plot: e.plot,
|
|
@@ -4203,7 +4170,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4203
4170
|
plot: e.plot,
|
|
4204
4171
|
type: "bar"
|
|
4205
4172
|
})
|
|
4206
|
-
}, null, 12, or))), 128)), (T(!0),
|
|
4173
|
+
}, null, 12, or))), 128)), (T(!0), x(v, null, D(kl.value, (e, t) => (T(), x(v, { key: `xLabel_bar_${e.id}` }, [(T(!0), x(v, null, D(e.plots, (n, r) => (T(), x(v, { key: `xLabel_bar_${t}_${r}` }, [n && V.value.bar.serieName.show ? (T(), x("text", {
|
|
4207
4174
|
key: 0,
|
|
4208
4175
|
x: H.value.useIndividualScale && H.value.isStacked ? n.x + qs.value.line / 2 : n.x + Js() * 1.1,
|
|
4209
4176
|
y: n.y + (n.value > 0 ? V.value.bar.serieName.offsetY : -V.value.bar.serieName.offsetY * 3),
|
|
@@ -4212,11 +4179,11 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4212
4179
|
fill: V.value.bar.serieName.useSerieColor ? e.color : V.value.bar.serieName.color,
|
|
4213
4180
|
"font-weight": V.value.bar.serieName.bold ? "bold" : "normal",
|
|
4214
4181
|
style: w(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4215
|
-
},
|
|
4182
|
+
}, k(V.value.bar.serieName.useAbbreviation ? A(xe)({
|
|
4216
4183
|
source: e.name,
|
|
4217
4184
|
length: V.value.bar.serieName.abbreviationSize
|
|
4218
|
-
}) : e.name), 13, sr)) :
|
|
4219
|
-
V.value.plot.labels.show && H.value.dataLabels.show ? (T(),
|
|
4185
|
+
}) : e.name), 13, sr)) : b("", !0)], 64))), 128))], 64))), 128))])) : b("", !0),
|
|
4186
|
+
V.value.plot.labels.show && H.value.dataLabels.show ? (T(), x("g", cr, [(T(!0), x(v, null, D(Mu.value, (e) => (T(), x("text", {
|
|
4220
4187
|
key: e.key,
|
|
4221
4188
|
transform: xu({
|
|
4222
4189
|
plot: e.plot,
|
|
@@ -4236,11 +4203,11 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4236
4203
|
plot: e.plot,
|
|
4237
4204
|
type: "plot"
|
|
4238
4205
|
})
|
|
4239
|
-
}, null, 12, lr))), 128))])) : (T(),
|
|
4206
|
+
}, null, 12, lr))), 128))])) : (T(), x("g", ur, [(T(!0), x(v, null, D($.value, (e, t) => (T(), x(v, { key: `xLabel_plot_${e.id}` }, [(T(!0), x(v, null, D(e.plots, (n, r) => (T(), x(v, { key: `xLabel_plot_${t}_${r}` }, [V.value.plot.tag.followValue ? (T(), x(v, { key: 1 }, [[
|
|
4240
4207
|
I.value,
|
|
4241
4208
|
R.value,
|
|
4242
4209
|
ca.value
|
|
4243
|
-
].includes(r) && e.useTag ? (T(),
|
|
4210
|
+
].includes(r) && e.useTag ? (T(), x("line", {
|
|
4244
4211
|
key: 0,
|
|
4245
4212
|
class: "vue-ui-xy-tag-plot",
|
|
4246
4213
|
x1: J.value?.left,
|
|
@@ -4251,36 +4218,36 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4251
4218
|
"stroke-linecap": "round",
|
|
4252
4219
|
"stroke-dasharray": "2",
|
|
4253
4220
|
stroke: e.color
|
|
4254
|
-
}, null, 8, hr)) :
|
|
4221
|
+
}, null, 8, hr)) : b("", !0)], 64)) : (T(), x(v, { key: 0 }, [n && r === 0 && e.useTag && e.useTag === "start" ? (T(), x("foreignObject", {
|
|
4255
4222
|
key: 0,
|
|
4256
4223
|
x: n.x,
|
|
4257
4224
|
y: n.y - 20,
|
|
4258
4225
|
height: 24,
|
|
4259
4226
|
width: "150",
|
|
4260
4227
|
style: w(`overflow: visible; opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4261
|
-
}, [
|
|
4262
|
-
style: w(`padding: 3px; background:${
|
|
4263
|
-
innerHTML:
|
|
4228
|
+
}, [S("div", {
|
|
4229
|
+
style: w(`padding: 3px; background:${A(f)(e.color, 80)};color:${A(Ce)(e.color)};width:fit-content;font-size:${B.value.plotLabels}px;border-radius: 2px;`),
|
|
4230
|
+
innerHTML: A(h)(V.value.plot.tag.formatter, n.value, e.name, {
|
|
4264
4231
|
datapoint: n,
|
|
4265
4232
|
seriesIndex: r,
|
|
4266
4233
|
serieName: e.name
|
|
4267
4234
|
})
|
|
4268
|
-
}, null, 12, fr)], 12, dr)) :
|
|
4235
|
+
}, null, 12, fr)], 12, dr)) : b("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (T(), x("foreignObject", {
|
|
4269
4236
|
key: 1,
|
|
4270
4237
|
x: n.x - e.name.length * (B.value.plotLabels / 2),
|
|
4271
4238
|
y: n.y - 20,
|
|
4272
4239
|
height: 24,
|
|
4273
4240
|
width: "150",
|
|
4274
4241
|
style: w(`overflow: visible; opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4275
|
-
}, [
|
|
4276
|
-
style: w(`padding: 3px; background:${
|
|
4277
|
-
innerHTML:
|
|
4242
|
+
}, [S("div", {
|
|
4243
|
+
style: w(`padding: 3px; background:${A(f)(e.color, 80)};color:${A(Ce)(e.color)};width:fit-content;font-size:${B.value.plotLabels}px;border-radius: 2px;`),
|
|
4244
|
+
innerHTML: A(h)(V.value.plot.tag.formatter, n.value, e.name, {
|
|
4278
4245
|
datapoint: n,
|
|
4279
4246
|
seriesIndex: r,
|
|
4280
4247
|
serieName: e.name
|
|
4281
4248
|
})
|
|
4282
|
-
}, null, 12, mr)], 12, pr)) :
|
|
4283
|
-
V.value.line.labels.show && H.value.dataLabels.show ? (T(),
|
|
4249
|
+
}, null, 12, mr)], 12, pr)) : b("", !0)], 64))], 64))), 128))], 64))), 128))])),
|
|
4250
|
+
V.value.line.labels.show && H.value.dataLabels.show ? (T(), x("g", gr, [(T(!0), x(v, null, D(Nu.value, (e) => (T(), x("text", {
|
|
4284
4251
|
key: e.key,
|
|
4285
4252
|
transform: xu({
|
|
4286
4253
|
plot: e.plot,
|
|
@@ -4300,11 +4267,11 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4300
4267
|
plot: e.plot,
|
|
4301
4268
|
type: "line"
|
|
4302
4269
|
})
|
|
4303
|
-
}, null, 12, _r))), 128))])) : (T(),
|
|
4270
|
+
}, null, 12, _r))), 128))])) : (T(), x("g", vr, [(T(!0), x(v, null, D(Q.value, (e, t) => (T(), x(v, { key: `xLabel_line_${e.id}` }, [(T(!0), x(v, null, D(e.plots, (n, r) => (T(), x(v, { key: `xLabel_line_${t}_${r}` }, [V.value.line.tag.followValue ? (T(), x(v, { key: 1 }, [[
|
|
4304
4271
|
I.value,
|
|
4305
4272
|
R.value,
|
|
4306
4273
|
ca.value
|
|
4307
|
-
].includes(r) && e.useTag ? (T(),
|
|
4274
|
+
].includes(r) && e.useTag ? (T(), x("line", {
|
|
4308
4275
|
key: 0,
|
|
4309
4276
|
class: "vue-ui-xy-tag-line",
|
|
4310
4277
|
x1: J.value?.left,
|
|
@@ -4315,43 +4282,43 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4315
4282
|
"stroke-linecap": "round",
|
|
4316
4283
|
"stroke-dasharray": "2",
|
|
4317
4284
|
stroke: e.color
|
|
4318
|
-
}, null, 8, Cr)) :
|
|
4285
|
+
}, null, 8, Cr)) : b("", !0)], 64)) : (T(), x(v, { key: 0 }, [n && r === 0 && e.useTag && e.useTag === "start" ? (T(), x("foreignObject", {
|
|
4319
4286
|
key: 0,
|
|
4320
4287
|
x: n.x,
|
|
4321
4288
|
y: n.y - 20,
|
|
4322
4289
|
height: 24,
|
|
4323
4290
|
width: "150",
|
|
4324
4291
|
style: w(`overflow: visible; opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4325
|
-
}, [
|
|
4326
|
-
style: w(`padding: 3px; background:${
|
|
4327
|
-
innerHTML:
|
|
4292
|
+
}, [S("div", {
|
|
4293
|
+
style: w(`padding: 3px; background:${A(f)(e.color, 80)};color:${A(Ce)(e.color)};width:fit-content;font-size:${B.value.plotLabels}px;border-radius: 2px;`),
|
|
4294
|
+
innerHTML: A(h)(V.value.line.tag.formatter, n.value, e.name, {
|
|
4328
4295
|
datapoint: n,
|
|
4329
4296
|
seriesIndex: r,
|
|
4330
4297
|
serieName: e.name
|
|
4331
4298
|
})
|
|
4332
|
-
}, null, 12, br)], 12, yr)) :
|
|
4299
|
+
}, null, 12, br)], 12, yr)) : b("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (T(), x("foreignObject", {
|
|
4333
4300
|
key: 1,
|
|
4334
4301
|
x: n.x,
|
|
4335
4302
|
y: n.y - 20,
|
|
4336
4303
|
height: 24,
|
|
4337
4304
|
width: "150",
|
|
4338
4305
|
style: w(`overflow: visible; opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4339
|
-
}, [
|
|
4340
|
-
style: w(`padding: 3px; background:${
|
|
4341
|
-
innerHTML:
|
|
4306
|
+
}, [S("div", {
|
|
4307
|
+
style: w(`padding: 3px; background:${A(f)(e.color, 80)};color:${A(Ce)(e.color)};width:fit-content;font-size:${B.value.plotLabels}px;border-radius: 2px;`),
|
|
4308
|
+
innerHTML: A(h)(V.value.line.tag.formatter, n.value, e.name, {
|
|
4342
4309
|
datapoint: n,
|
|
4343
4310
|
seriesIndex: r,
|
|
4344
4311
|
serieName: e.name
|
|
4345
4312
|
})
|
|
4346
|
-
}, null, 12, Sr)], 12, xr)) :
|
|
4347
|
-
(T(!0),
|
|
4313
|
+
}, null, 12, Sr)], 12, xr)) : b("", !0)], 64))], 64))), 128))], 64))), 128))])),
|
|
4314
|
+
(T(!0), x(v, null, D(Q.value, (e, t) => (T(), x(v, { key: `xLabel_line_${e.id}` }, [(T(!0), x(v, null, D(e.plots, (n, r) => (T(), x(v, { key: `xLabel_line_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (T(), x("text", {
|
|
4348
4315
|
key: 0,
|
|
4349
4316
|
x: n.x - B.value.plotLabels,
|
|
4350
4317
|
y: n.y,
|
|
4351
4318
|
"font-size": B.value.plotLabels,
|
|
4352
4319
|
"text-anchor": "end",
|
|
4353
4320
|
fill: e.color,
|
|
4354
|
-
innerHTML:
|
|
4321
|
+
innerHTML: A(Oe)({
|
|
4355
4322
|
content: e.name,
|
|
4356
4323
|
fontSize: B.value.plotLabels,
|
|
4357
4324
|
fill: e.color,
|
|
@@ -4360,14 +4327,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4360
4327
|
maxWords: 2
|
|
4361
4328
|
}),
|
|
4362
4329
|
style: w(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4363
|
-
}, null, 12, wr)) :
|
|
4330
|
+
}, null, 12, wr)) : b("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (T(), x("text", {
|
|
4364
4331
|
key: 1,
|
|
4365
4332
|
x: n.x + B.value.plotLabels,
|
|
4366
4333
|
y: n.y,
|
|
4367
4334
|
"font-size": B.value.plotLabels,
|
|
4368
4335
|
"text-anchor": "start",
|
|
4369
4336
|
fill: e.color,
|
|
4370
|
-
innerHTML:
|
|
4337
|
+
innerHTML: A(Oe)({
|
|
4371
4338
|
content: e.name,
|
|
4372
4339
|
fontSize: B.value.plotLabels,
|
|
4373
4340
|
fill: e.color,
|
|
@@ -4376,15 +4343,15 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4376
4343
|
maxWords: 2
|
|
4377
4344
|
}),
|
|
4378
4345
|
style: w(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4379
|
-
}, null, 12, Tr)) :
|
|
4380
|
-
(T(!0),
|
|
4346
|
+
}, null, 12, Tr)) : b("", !0)], 64))), 128))], 64))), 128)),
|
|
4347
|
+
(T(!0), x(v, null, D($.value, (e, t) => (T(), x(v, { key: `xLabel_plot_${e.id}` }, [(T(!0), x(v, null, D(e.plots, (n, r) => (T(), x(v, { key: `xLabel_plot_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (T(), x("text", {
|
|
4381
4348
|
key: 0,
|
|
4382
4349
|
x: n.x - B.value.plotLabels,
|
|
4383
4350
|
y: n.y,
|
|
4384
4351
|
"font-size": B.value.plotLabels,
|
|
4385
4352
|
"text-anchor": "end",
|
|
4386
4353
|
fill: e.color,
|
|
4387
|
-
innerHTML:
|
|
4354
|
+
innerHTML: A(Oe)({
|
|
4388
4355
|
content: e.name,
|
|
4389
4356
|
fontSize: B.value.plotLabels,
|
|
4390
4357
|
fill: e.color,
|
|
@@ -4393,14 +4360,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4393
4360
|
maxWords: 2
|
|
4394
4361
|
}),
|
|
4395
4362
|
style: w(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4396
|
-
}, null, 12, Er)) :
|
|
4363
|
+
}, null, 12, Er)) : b("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (T(), x("text", {
|
|
4397
4364
|
key: 1,
|
|
4398
4365
|
x: n.x + B.value.plotLabels,
|
|
4399
4366
|
y: n.y,
|
|
4400
4367
|
"font-size": B.value.plotLabels,
|
|
4401
4368
|
"text-anchor": "start",
|
|
4402
4369
|
fill: e.color,
|
|
4403
|
-
innerHTML:
|
|
4370
|
+
innerHTML: A(Oe)({
|
|
4404
4371
|
content: e.name,
|
|
4405
4372
|
fontSize: B.value.plotLabels,
|
|
4406
4373
|
fill: e.color,
|
|
@@ -4409,13 +4376,13 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4409
4376
|
maxWords: 2
|
|
4410
4377
|
}),
|
|
4411
4378
|
style: w(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4412
|
-
}, null, 12, Dr)) :
|
|
4413
|
-
(T(!0),
|
|
4379
|
+
}, null, 12, Dr)) : b("", !0)], 64))), 128))], 64))), 128)),
|
|
4380
|
+
(T(!0), x(v, null, D([
|
|
4414
4381
|
...$.value,
|
|
4415
4382
|
...Q.value,
|
|
4416
4383
|
...kl.value
|
|
4417
|
-
], (e, t) => (T(),
|
|
4418
|
-
|
|
4384
|
+
], (e, t) => (T(), x(v, { key: `progression-${t}` }, [Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(A(be)(e.plots).trend) ? (T(), x("g", Or, [
|
|
4385
|
+
S("defs", null, [S("marker", {
|
|
4419
4386
|
id: `progression_arrow_${t}`,
|
|
4420
4387
|
markerWidth: "9",
|
|
4421
4388
|
markerHeight: "9",
|
|
@@ -4425,44 +4392,44 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4425
4392
|
refY: 7 / 2,
|
|
4426
4393
|
orient: "auto",
|
|
4427
4394
|
overflow: "visible"
|
|
4428
|
-
}, [
|
|
4395
|
+
}, [S("polygon", {
|
|
4429
4396
|
points: "0,0 7,3.5 0,7",
|
|
4430
4397
|
fill: e.color,
|
|
4431
4398
|
stroke: V.value.chart.backgroundColor,
|
|
4432
4399
|
"stroke-width": "1",
|
|
4433
4400
|
"stroke-linejoin": "round"
|
|
4434
4401
|
}, null, 8, Ar)], 8, kr)]),
|
|
4435
|
-
e.plots.length > 1 ? (T(),
|
|
4402
|
+
e.plots.length > 1 ? (T(), x("line", {
|
|
4436
4403
|
key: 0,
|
|
4437
|
-
x1:
|
|
4438
|
-
x2:
|
|
4439
|
-
y1:
|
|
4440
|
-
y2:
|
|
4404
|
+
x1: A(be)(e.plots).x1 + (e.type === "bar" ? Js() : 0),
|
|
4405
|
+
x2: A(be)(e.plots).x2 + (e.type === "bar" ? Js() : 0),
|
|
4406
|
+
y1: A(g)(A(be)(e.plots).y1),
|
|
4407
|
+
y2: A(g)(A(be)(e.plots).y2),
|
|
4441
4408
|
"stroke-width": 1,
|
|
4442
4409
|
stroke: V.value.chart.backgroundColor,
|
|
4443
4410
|
"stroke-dasharray": 2,
|
|
4444
4411
|
"stroke-linecap": "round",
|
|
4445
4412
|
"stroke-linejoin": "round",
|
|
4446
4413
|
"marker-end": `url(#progression_arrow_${t})`
|
|
4447
|
-
}, null, 8, jr)) :
|
|
4448
|
-
e.plots.length > 1 ? (T(),
|
|
4414
|
+
}, null, 8, jr)) : b("", !0),
|
|
4415
|
+
e.plots.length > 1 ? (T(), x("line", {
|
|
4449
4416
|
key: 1,
|
|
4450
|
-
x1:
|
|
4451
|
-
x2:
|
|
4452
|
-
y1:
|
|
4453
|
-
y2:
|
|
4417
|
+
x1: A(be)(e.plots).x1 + (e.type === "bar" ? Js() : 0),
|
|
4418
|
+
x2: A(be)(e.plots).x2 + (e.type === "bar" ? Js() : 0),
|
|
4419
|
+
y1: A(g)(A(be)(e.plots).y1),
|
|
4420
|
+
y2: A(g)(A(be)(e.plots).y2),
|
|
4454
4421
|
"stroke-width": 1,
|
|
4455
4422
|
stroke: e.color,
|
|
4456
4423
|
"stroke-dasharray": 2,
|
|
4457
4424
|
"stroke-linecap": "round",
|
|
4458
4425
|
"stroke-linejoin": "round",
|
|
4459
4426
|
"marker-end": `url(#progression_arrow_${t})`
|
|
4460
|
-
}, null, 8, Mr)) :
|
|
4461
|
-
e.plots.length > 1 ? (T(),
|
|
4427
|
+
}, null, 8, Mr)) : b("", !0),
|
|
4428
|
+
e.plots.length > 1 ? (T(), x("text", {
|
|
4462
4429
|
key: 2,
|
|
4463
4430
|
"text-anchor": "middle",
|
|
4464
|
-
x:
|
|
4465
|
-
y:
|
|
4431
|
+
x: A(be)(e.plots).x2 + (e.type === "bar" ? Js() : 0),
|
|
4432
|
+
y: A(be)(e.plots).y2 - 12,
|
|
4466
4433
|
"font-size": B.value.plotLabels,
|
|
4467
4434
|
fill: e.color,
|
|
4468
4435
|
stroke: V.value.chart.backgroundColor,
|
|
@@ -4470,28 +4437,28 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4470
4437
|
"stroke-linecap": "round",
|
|
4471
4438
|
"stroke-linejoin": "round",
|
|
4472
4439
|
"paint-order": "stroke fill"
|
|
4473
|
-
},
|
|
4474
|
-
v:
|
|
4440
|
+
}, k(A(o)({
|
|
4441
|
+
v: A(be)(e.plots).trend * 100,
|
|
4475
4442
|
s: "%",
|
|
4476
4443
|
r: 2
|
|
4477
|
-
})), 9, Nr)) :
|
|
4478
|
-
])) :
|
|
4479
|
-
H.value.useIndividualScale && !H.value.isStacked ? (T(),
|
|
4444
|
+
})), 9, Nr)) : b("", !0)
|
|
4445
|
+
])) : b("", !0)], 64))), 128)),
|
|
4446
|
+
H.value.useIndividualScale && !H.value.isStacked ? (T(), x(v, { key: 16 }, [S("defs", null, [(T(!0), x(v, null, D(jl.value, (e, t) => (T(), x("linearGradient", {
|
|
4480
4447
|
key: `individual_scale_gradient_${e.groupId || e.id || t}`,
|
|
4481
4448
|
id: `individual_scale_gradient_${F.value}_${t}`,
|
|
4482
4449
|
x1: q.value ? "100%" : "0%",
|
|
4483
4450
|
x2: q.value ? "0%" : "100%",
|
|
4484
4451
|
y1: "0%",
|
|
4485
4452
|
y2: "0%"
|
|
4486
|
-
}, [
|
|
4453
|
+
}, [S("stop", {
|
|
4487
4454
|
offset: "0%",
|
|
4488
4455
|
"stop-color": V.value.chart.backgroundColor,
|
|
4489
4456
|
"stop-opacity": "0"
|
|
4490
|
-
}, null, 8, Fr),
|
|
4457
|
+
}, null, 8, Fr), S("stop", {
|
|
4491
4458
|
offset: "100%",
|
|
4492
4459
|
"stop-color": e.color,
|
|
4493
4460
|
"stop-opacity": "0.2"
|
|
4494
|
-
}, null, 8, Ir)], 8, Pr))), 128))]), (T(!0),
|
|
4461
|
+
}, null, 8, Ir)], 8, Pr))), 128))]), (T(!0), x(v, null, D(jl.value, (e, t) => (T(), x("rect", {
|
|
4495
4462
|
key: `individual_scale_background_${e.groupId || e.id || t}`,
|
|
4496
4463
|
x: q.value ? e.x : e.x - V.value.chart.grid.labels.yAxis.labelWidth - J.value.individualOffsetX,
|
|
4497
4464
|
y: J.value?.top,
|
|
@@ -4500,8 +4467,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4500
4467
|
fill: N.value === e.groupId ? `url(#individual_scale_gradient_${F.value}_${t})` : "transparent",
|
|
4501
4468
|
onMouseenter: (t) => N.value = e.groupId,
|
|
4502
4469
|
onMouseleave: r[0] ||= (e) => N.value = null
|
|
4503
|
-
}, null, 40, Lr))), 128))], 64)) :
|
|
4504
|
-
|
|
4470
|
+
}, null, 40, Lr))), 128))], 64)) : b("", !0),
|
|
4471
|
+
S("g", null, [V.value.chart.grid.labels.axis.yLabel && !H.value.useIndividualScale ? (T(), x("text", {
|
|
4505
4472
|
key: 0,
|
|
4506
4473
|
ref_key: "yAxisLabel",
|
|
4507
4474
|
ref: qi,
|
|
@@ -4510,7 +4477,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4510
4477
|
transform: `translate(${q.value ? J.value.right + J.value.scaleLabelsOffset + V.value.chart.grid.labels.axis.yLabelOffsetX + B.value.yAxis : V.value.chart.grid.labels.axis.fontSize + V.value.chart.grid.labels.axis.yLabelOffsetX}, ${J.value?.top + J.value.height / 2}) rotate(-90)`,
|
|
4511
4478
|
"text-anchor": "middle",
|
|
4512
4479
|
style: { transition: "none" }
|
|
4513
|
-
},
|
|
4480
|
+
}, k(V.value.chart.grid.labels.axis.yLabel), 9, Rr)) : b("", !0), V.value.chart.grid.labels.axis.xLabel ? (T(), x("text", {
|
|
4514
4481
|
key: 1,
|
|
4515
4482
|
ref_key: "xAxisLabel",
|
|
4516
4483
|
ref: Ki,
|
|
@@ -4519,14 +4486,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4519
4486
|
y: ta.value - 3,
|
|
4520
4487
|
"font-size": B.value.yAxis,
|
|
4521
4488
|
fill: V.value.chart.grid.labels.color
|
|
4522
|
-
},
|
|
4523
|
-
V.value.chart.grid.labels.xAxisLabels.show ? (T(),
|
|
4524
|
-
key:
|
|
4489
|
+
}, k(V.value.chart.grid.labels.axis.xLabel), 9, zr)) : b("", !0)]),
|
|
4490
|
+
V.value.chart.grid.labels.xAxisLabels.show ? (T(), x("g", {
|
|
4491
|
+
key: 17,
|
|
4525
4492
|
ref_key: "timeLabelsEls",
|
|
4526
4493
|
ref: Ji,
|
|
4527
4494
|
opacity: wu.value ? .1 : 1,
|
|
4528
4495
|
style: { transition: "opacity 0.2s" }
|
|
4529
|
-
}, [n.$slots["time-label"] ? (T(!0),
|
|
4496
|
+
}, [n.$slots["time-label"] ? (T(!0), x(v, { key: 0 }, D(fl.value, (e, t) => O(n.$slots, "time-label", it({
|
|
4530
4497
|
key: `time_label_${e.id}`,
|
|
4531
4498
|
ref_for: !0
|
|
4532
4499
|
}, {
|
|
@@ -4539,7 +4506,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4539
4506
|
content: e.text,
|
|
4540
4507
|
textAnchor: V.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : V.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
4541
4508
|
show: e && e.text
|
|
4542
|
-
}), void 0, !0)), 128)) : (T(!0),
|
|
4509
|
+
}), void 0, !0)), 128)) : (T(!0), x(v, { key: 1 }, D(fl.value, (e, n) => (T(), x("g", { key: `time_label_${n}` }, [e && e.text ? (T(), x(v, { key: 0 }, [String(e.text).includes("\n") ? (T(), x("text", {
|
|
4543
4510
|
key: 1,
|
|
4544
4511
|
class: "vue-data-ui-time-label",
|
|
4545
4512
|
"text-anchor": V.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : V.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -4547,7 +4514,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4547
4514
|
fill: V.value.chart.grid.labels.xAxisLabels.color,
|
|
4548
4515
|
transform: `translate(${pl(e, n)}, ${J.value?.bottom + B.value.xAxis * 1.5}), rotate(${V.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
4549
4516
|
style: w({ cursor: Xo() && Za.value ? "pointer" : "default" }),
|
|
4550
|
-
innerHTML:
|
|
4517
|
+
innerHTML: A(t)({
|
|
4551
4518
|
content: String(e.text),
|
|
4552
4519
|
fontSize: B.value.xAxis,
|
|
4553
4520
|
fill: V.value.chart.grid.labels.xAxisLabels.color,
|
|
@@ -4555,7 +4522,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4555
4522
|
y: 0
|
|
4556
4523
|
}),
|
|
4557
4524
|
onClick: (t) => ds(e, n)
|
|
4558
|
-
}, null, 12, Hr)) : (T(),
|
|
4525
|
+
}, null, 12, Hr)) : (T(), x("text", {
|
|
4559
4526
|
key: 0,
|
|
4560
4527
|
class: "vue-data-ui-time-label",
|
|
4561
4528
|
"text-anchor": V.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : V.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -4564,8 +4531,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4564
4531
|
transform: `translate(${pl(e, n)}, ${J.value?.bottom + B.value.xAxis * 1.5}), rotate(${V.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
4565
4532
|
style: w({ cursor: Xo() && Za.value ? "pointer" : "default" }),
|
|
4566
4533
|
onClick: (t) => ds(e, n)
|
|
4567
|
-
},
|
|
4568
|
-
Eu.value ? (T(),
|
|
4534
|
+
}, k(e.text || ""), 13, Vr))], 64)) : b("", !0)]))), 128))], 8, Br)) : b("", !0),
|
|
4535
|
+
Eu.value ? (T(), x("g", Ur, [S("text", {
|
|
4569
4536
|
class: "vue-data-ui-time-label",
|
|
4570
4537
|
"text-anchor": V.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : V.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
4571
4538
|
"font-size": B.value.xAxis,
|
|
@@ -4577,16 +4544,16 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4577
4544
|
animation: "none !important",
|
|
4578
4545
|
"pointer-events": "none"
|
|
4579
4546
|
},
|
|
4580
|
-
innerHTML:
|
|
4547
|
+
innerHTML: A(t)({
|
|
4581
4548
|
content: String(Eu.value.text),
|
|
4582
4549
|
fontSize: B.value.xAxis,
|
|
4583
4550
|
fill: V.value.chart.grid.labels.xAxisLabels.color,
|
|
4584
4551
|
x: 0,
|
|
4585
4552
|
y: 0
|
|
4586
4553
|
})
|
|
4587
|
-
}, null, 8, Wr)])) :
|
|
4588
|
-
nl.value.length && !H.value.isStacked ? (T(),
|
|
4589
|
-
e.yTop && e.show && isFinite(e.yTop) ? (T(),
|
|
4554
|
+
}, null, 8, Wr)])) : b("", !0),
|
|
4555
|
+
nl.value.length && !H.value.isStacked ? (T(), x("g", Gr, [(T(!0), x(v, null, D(nl.value, (e) => (T(), x("g", { key: e.id }, [
|
|
4556
|
+
e.yTop && e.show && isFinite(e.yTop) ? (T(), x("line", {
|
|
4590
4557
|
key: 0,
|
|
4591
4558
|
x1: e.x1,
|
|
4592
4559
|
y1: e.yTop,
|
|
@@ -4597,8 +4564,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4597
4564
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
4598
4565
|
"stroke-linecap": "round",
|
|
4599
4566
|
style: { animation: "none !important" }
|
|
4600
|
-
}, null, 8, Kr)) :
|
|
4601
|
-
e.yBottom && e.show && isFinite(e.yBottom) ? (T(),
|
|
4567
|
+
}, null, 8, Kr)) : b("", !0),
|
|
4568
|
+
e.yBottom && e.show && isFinite(e.yBottom) ? (T(), x("line", {
|
|
4602
4569
|
key: 1,
|
|
4603
4570
|
x1: e.x1,
|
|
4604
4571
|
y1: e.yBottom,
|
|
@@ -4609,24 +4576,24 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4609
4576
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
4610
4577
|
"stroke-linecap": "round",
|
|
4611
4578
|
style: { animation: "none !important" }
|
|
4612
|
-
}, null, 8, qr)) :
|
|
4613
|
-
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (T(),
|
|
4579
|
+
}, null, 8, qr)) : b("", !0),
|
|
4580
|
+
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (T(), x("rect", {
|
|
4614
4581
|
key: 2,
|
|
4615
4582
|
y: Math.min(e.yTop, e.yBottom),
|
|
4616
4583
|
x: e.x1,
|
|
4617
4584
|
width: J.value.width,
|
|
4618
|
-
height:
|
|
4619
|
-
fill:
|
|
4585
|
+
height: A(_)(e.areaHeight, 0),
|
|
4586
|
+
fill: A(f)(e.config.area.fill, e.config.area.opacity),
|
|
4620
4587
|
style: { animation: "none !important" }
|
|
4621
|
-
}, null, 8, Jr)) :
|
|
4622
|
-
e.config.label.text && e.show && isFinite(e._box.y) ? (T(),
|
|
4588
|
+
}, null, 8, Jr)) : b("", !0),
|
|
4589
|
+
e.config.label.text && e.show && isFinite(e._box.y) ? (T(), x("rect", it({
|
|
4623
4590
|
key: 3,
|
|
4624
4591
|
class: "vue-ui-xy-annotation-label-box"
|
|
4625
4592
|
}, { ref_for: !0 }, e._box, { style: {
|
|
4626
4593
|
animation: "none !important",
|
|
4627
4594
|
transition: "none !important"
|
|
4628
|
-
} }), null, 16)) :
|
|
4629
|
-
e.config.label.text && e.show && isFinite(e._text.y) ? (T(),
|
|
4595
|
+
} }), null, 16)) : b("", !0),
|
|
4596
|
+
e.config.label.text && e.show && isFinite(e._text.y) ? (T(), x("text", {
|
|
4630
4597
|
key: 4,
|
|
4631
4598
|
id: e.id,
|
|
4632
4599
|
class: "vue-ui-xy-annotation-label",
|
|
@@ -4635,35 +4602,35 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4635
4602
|
"font-size": e.config.label.fontSize,
|
|
4636
4603
|
fill: e.config.label.color,
|
|
4637
4604
|
"text-anchor": e.config.label.textAnchor
|
|
4638
|
-
},
|
|
4639
|
-
]))), 128))])) :
|
|
4640
|
-
!wu.value && V.value.chart.timeTag.show && (G.value ?
|
|
4605
|
+
}, k(e.config.label.text), 9, Yr)) : b("", !0)
|
|
4606
|
+
]))), 128))])) : b("", !0),
|
|
4607
|
+
!wu.value && V.value.chart.timeTag.show && (G.value ? A(p)(fu.value) : ![null, void 0].includes(R.value) || ![null, void 0].includes(I.value)) ? (T(), x("g", Xr, [(T(), x("foreignObject", {
|
|
4641
4608
|
x: mu(),
|
|
4642
4609
|
y: J.value?.bottom,
|
|
4643
4610
|
width: "200",
|
|
4644
4611
|
height: "40",
|
|
4645
4612
|
style: { overflow: "visible !important" }
|
|
4646
|
-
}, [
|
|
4613
|
+
}, [S("div", {
|
|
4647
4614
|
ref_key: "timeTagEl",
|
|
4648
4615
|
ref: lu,
|
|
4649
4616
|
class: "vue-ui-xy-time-tag",
|
|
4650
4617
|
style: w(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${V.value.chart.timeTag.backgroundColor};color:${V.value.chart.timeTag.color};font-size:${V.value.chart.timeTag.fontSize}px`),
|
|
4651
4618
|
innerHTML: vu.value
|
|
4652
|
-
}, null, 12, Qr)], 8, Zr)),
|
|
4653
|
-
cx: G.value &&
|
|
4619
|
+
}, null, 12, Qr)], 8, Zr)), S("circle", {
|
|
4620
|
+
cx: G.value && A(p)(fu.value) ? ml({ x: fu.value }) : Oc((R.value === null ? 0 : R.value) || (I.value === null ? 0 : I.value)),
|
|
4654
4621
|
cy: J.value?.bottom,
|
|
4655
4622
|
r: V.value.chart.timeTag.circleMarker.radius,
|
|
4656
4623
|
fill: V.value.chart.timeTag.circleMarker.color
|
|
4657
|
-
}, null, 8, $r)])) :
|
|
4658
|
-
])) :
|
|
4659
|
-
po.value ? (T(),
|
|
4624
|
+
}, null, 8, $r)])) : b("", !0)
|
|
4625
|
+
])) : b("", !0),
|
|
4626
|
+
po.value ? (T(), x("rect", it({ key: 2 }, go.value, {
|
|
4660
4627
|
"data-start": U.value.start,
|
|
4661
4628
|
"data-end": U.value.end
|
|
4662
|
-
}), null, 16, ei)) :
|
|
4629
|
+
}), null, 16, ei)) : b("", !0),
|
|
4663
4630
|
O(n.$slots, "svg", { svg: {
|
|
4664
4631
|
...Ha.value,
|
|
4665
4632
|
slicer: U.value,
|
|
4666
|
-
isPrintingImg:
|
|
4633
|
+
isPrintingImg: A(_o) || A(vo) || Ca.value,
|
|
4667
4634
|
isPrintingSvg: wa.value,
|
|
4668
4635
|
data: [
|
|
4669
4636
|
...Q.value,
|
|
@@ -4672,16 +4639,16 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4672
4639
|
],
|
|
4673
4640
|
drawingArea: J.value
|
|
4674
4641
|
} }, void 0, !0)
|
|
4675
|
-
], 512)], 46, Mt)), n.$slots.hint ? (T(),
|
|
4642
|
+
], 512)], 46, Mt)), n.$slots.hint ? (T(), x("div", ti, [O(n.$slots, "hint", st(C({
|
|
4676
4643
|
hint: V.value.a11y.translations.keyboardNavigation,
|
|
4677
4644
|
isVisible: Ju.value
|
|
4678
|
-
})), void 0, !0)])) :
|
|
4679
|
-
n.$slots.watermark ? (T(),
|
|
4680
|
-
(T(!0),
|
|
4645
|
+
})), void 0, !0)])) : b("", !0)]),
|
|
4646
|
+
n.$slots.watermark ? (T(), x("div", ni, [O(n.$slots, "watermark", st(C({ isPrinting: A(_o) || A(vo) || Ca.value || wa.value })), void 0, !0)])) : b("", !0),
|
|
4647
|
+
(T(!0), x(v, null, D(Q.value, (e, t) => (T(), x(v, { key: `tag_line_${e.id}` }, [(T(!0), x(v, null, D(e.plots, (n, r) => (T(), x(v, { key: `tag_line_${t}_${r}` }, [[
|
|
4681
4648
|
I.value,
|
|
4682
4649
|
R.value,
|
|
4683
4650
|
ca.value
|
|
4684
|
-
].includes(r) && e.useTag && e.useTag === "end" && V.value.line.tag.followValue ? (T(),
|
|
4651
|
+
].includes(r) && e.useTag && e.useTag === "end" && V.value.line.tag.followValue ? (T(), x("div", {
|
|
4685
4652
|
key: 0,
|
|
4686
4653
|
ref_for: !0,
|
|
4687
4654
|
ref: (e) => $o(t, r, e, "right", "line"),
|
|
@@ -4689,14 +4656,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4689
4656
|
"data-tag": "right",
|
|
4690
4657
|
style: w({
|
|
4691
4658
|
position: "fixed",
|
|
4692
|
-
top:
|
|
4659
|
+
top: A(ve)({
|
|
4693
4660
|
svgElement: L.value,
|
|
4694
4661
|
x: J.value?.right + V.value.line.tag.fontSize / 1.5,
|
|
4695
4662
|
y: n.y,
|
|
4696
4663
|
element: ya.value[`${t}_${r}_right_line`],
|
|
4697
4664
|
position: "right"
|
|
4698
4665
|
})?.top + "px",
|
|
4699
|
-
left:
|
|
4666
|
+
left: A(ve)({
|
|
4700
4667
|
svgElement: L.value,
|
|
4701
4668
|
x: J.value?.right + V.value.line.tag.fontSize / 1.5,
|
|
4702
4669
|
y: n.y,
|
|
@@ -4706,27 +4673,27 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4706
4673
|
height: "fit-content",
|
|
4707
4674
|
width: "fit-content",
|
|
4708
4675
|
background: e.color,
|
|
4709
|
-
color:
|
|
4676
|
+
color: A(Ce)(e.color),
|
|
4710
4677
|
padding: "0 6px",
|
|
4711
4678
|
fontSize: V.value.line.tag.fontSize + "px",
|
|
4712
4679
|
opacity: 1
|
|
4713
4680
|
})
|
|
4714
|
-
}, [(T(),
|
|
4681
|
+
}, [(T(), x("svg", ri, [S("path", {
|
|
4715
4682
|
d: "M 0,10 10,0 10,20 Z",
|
|
4716
4683
|
fill: e.color,
|
|
4717
4684
|
stroke: "none"
|
|
4718
|
-
}, null, 8, ii)])),
|
|
4685
|
+
}, null, 8, ii)])), S("div", {
|
|
4719
4686
|
class: "vue-ui-xy-tag-content",
|
|
4720
|
-
innerHTML:
|
|
4687
|
+
innerHTML: A(h)(V.value.line.tag.formatter, n.value, e.name, {
|
|
4721
4688
|
datapoint: n,
|
|
4722
4689
|
seriesIndex: r,
|
|
4723
4690
|
serieName: e.name
|
|
4724
4691
|
})
|
|
4725
|
-
}, null, 8, ai)], 4)) :
|
|
4692
|
+
}, null, 8, ai)], 4)) : b("", !0), [
|
|
4726
4693
|
I.value,
|
|
4727
4694
|
R.value,
|
|
4728
4695
|
ca.value
|
|
4729
|
-
].includes(r) && e.useTag && e.useTag === "start" && V.value.line.tag.followValue ? (T(),
|
|
4696
|
+
].includes(r) && e.useTag && e.useTag === "start" && V.value.line.tag.followValue ? (T(), x("div", {
|
|
4730
4697
|
key: 1,
|
|
4731
4698
|
ref_for: !0,
|
|
4732
4699
|
ref: (e) => $o(t, r, e, "left", "line"),
|
|
@@ -4734,14 +4701,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4734
4701
|
"data-tag": "left",
|
|
4735
4702
|
style: w({
|
|
4736
4703
|
position: "fixed",
|
|
4737
|
-
top:
|
|
4704
|
+
top: A(ve)({
|
|
4738
4705
|
svgElement: L.value,
|
|
4739
4706
|
x: J.value?.left - V.value.line.tag.fontSize / 1.5,
|
|
4740
4707
|
y: n.y,
|
|
4741
4708
|
element: ya.value[`${t}_${r}_left_line`],
|
|
4742
4709
|
position: "left"
|
|
4743
4710
|
})?.top + "px",
|
|
4744
|
-
left:
|
|
4711
|
+
left: A(ve)({
|
|
4745
4712
|
svgElement: L.value,
|
|
4746
4713
|
x: J.value?.left - V.value.line.tag.fontSize / 1.5,
|
|
4747
4714
|
y: n.y,
|
|
@@ -4751,28 +4718,28 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4751
4718
|
height: "fit-content",
|
|
4752
4719
|
width: "fit-content",
|
|
4753
4720
|
background: e.color,
|
|
4754
|
-
color:
|
|
4721
|
+
color: A(Ce)(e.color),
|
|
4755
4722
|
padding: "0 6px",
|
|
4756
4723
|
fontSize: V.value.line.tag.fontSize + "px",
|
|
4757
4724
|
opacity: 1
|
|
4758
4725
|
})
|
|
4759
|
-
}, [(T(),
|
|
4726
|
+
}, [(T(), x("svg", oi, [S("path", {
|
|
4760
4727
|
d: "M 0,0 10,10 0,20 Z",
|
|
4761
4728
|
fill: e.color,
|
|
4762
4729
|
stroke: "none"
|
|
4763
|
-
}, null, 8, si)])),
|
|
4730
|
+
}, null, 8, si)])), S("div", {
|
|
4764
4731
|
class: "vue-ui-xy-tag-content",
|
|
4765
|
-
innerHTML:
|
|
4732
|
+
innerHTML: A(h)(V.value.line.tag.formatter, n.value, e.name, {
|
|
4766
4733
|
datapoint: n,
|
|
4767
4734
|
seriesIndex: r,
|
|
4768
4735
|
serieName: e.name
|
|
4769
4736
|
})
|
|
4770
|
-
}, null, 8, ci)], 4)) :
|
|
4771
|
-
(T(!0),
|
|
4737
|
+
}, null, 8, ci)], 4)) : b("", !0)], 64))), 128))], 64))), 128)),
|
|
4738
|
+
(T(!0), x(v, null, D($.value, (e, t) => (T(), x(v, { key: `tag_plot_${e.id}` }, [(T(!0), x(v, null, D(e.plots, (n, r) => (T(), x(v, { key: `tag_plot_${t}_${r}` }, [[
|
|
4772
4739
|
I.value,
|
|
4773
4740
|
R.value,
|
|
4774
4741
|
ca.value
|
|
4775
|
-
].includes(r) && e.useTag && e.useTag === "end" && V.value.plot.tag.followValue ? (T(),
|
|
4742
|
+
].includes(r) && e.useTag && e.useTag === "end" && V.value.plot.tag.followValue ? (T(), x("div", {
|
|
4776
4743
|
key: 0,
|
|
4777
4744
|
ref_for: !0,
|
|
4778
4745
|
ref: (e) => $o(t, r, e, "right", "plot"),
|
|
@@ -4780,14 +4747,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4780
4747
|
"data-tag": "right",
|
|
4781
4748
|
style: w({
|
|
4782
4749
|
position: "fixed",
|
|
4783
|
-
top:
|
|
4750
|
+
top: A(ve)({
|
|
4784
4751
|
svgElement: L.value,
|
|
4785
4752
|
x: J.value?.right + V.value.plot.tag.fontSize / 1.5,
|
|
4786
4753
|
y: n.y,
|
|
4787
4754
|
element: ya.value[`${t}_${r}_right_plot`],
|
|
4788
4755
|
position: "right"
|
|
4789
4756
|
})?.top + "px",
|
|
4790
|
-
left:
|
|
4757
|
+
left: A(ve)({
|
|
4791
4758
|
svgElement: L.value,
|
|
4792
4759
|
x: J.value?.right + V.value.plot.tag.fontSize / 1.5,
|
|
4793
4760
|
y: n.y,
|
|
@@ -4797,27 +4764,27 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4797
4764
|
height: "fit-content",
|
|
4798
4765
|
width: "fit-content",
|
|
4799
4766
|
background: e.color,
|
|
4800
|
-
color:
|
|
4767
|
+
color: A(Ce)(e.color),
|
|
4801
4768
|
padding: "0 6px",
|
|
4802
4769
|
fontSize: V.value.plot.tag.fontSize + "px",
|
|
4803
4770
|
opacity: 1
|
|
4804
4771
|
})
|
|
4805
|
-
}, [(T(),
|
|
4772
|
+
}, [(T(), x("svg", li, [S("path", {
|
|
4806
4773
|
d: "M 0,10 10,0 10,20 Z",
|
|
4807
4774
|
fill: e.color,
|
|
4808
4775
|
stroke: "none"
|
|
4809
|
-
}, null, 8, ui)])),
|
|
4776
|
+
}, null, 8, ui)])), S("div", {
|
|
4810
4777
|
class: "vue-ui-xy-tag-content",
|
|
4811
|
-
innerHTML:
|
|
4778
|
+
innerHTML: A(h)(V.value.plot.tag.formatter, n.value, e.name, {
|
|
4812
4779
|
datapoint: n,
|
|
4813
4780
|
seriesIndex: r,
|
|
4814
4781
|
serieName: e.name
|
|
4815
4782
|
})
|
|
4816
|
-
}, null, 8, di)], 4)) :
|
|
4783
|
+
}, null, 8, di)], 4)) : b("", !0), [
|
|
4817
4784
|
I.value,
|
|
4818
4785
|
R.value,
|
|
4819
4786
|
ca.value
|
|
4820
|
-
].includes(r) && e.useTag && e.useTag === "start" && V.value.plot.tag.followValue ? (T(),
|
|
4787
|
+
].includes(r) && e.useTag && e.useTag === "start" && V.value.plot.tag.followValue ? (T(), x("div", {
|
|
4821
4788
|
key: 1,
|
|
4822
4789
|
ref_for: !0,
|
|
4823
4790
|
ref: (e) => $o(t, r, e, "left", "plot"),
|
|
@@ -4825,14 +4792,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4825
4792
|
"data-tag": "left",
|
|
4826
4793
|
style: w({
|
|
4827
4794
|
position: "fixed",
|
|
4828
|
-
top:
|
|
4795
|
+
top: A(ve)({
|
|
4829
4796
|
svgElement: L.value,
|
|
4830
4797
|
x: J.value?.left - V.value.plot.tag.fontSize / 1.5,
|
|
4831
4798
|
y: n.y,
|
|
4832
4799
|
element: ya.value[`${t}_${r}_left_plot`],
|
|
4833
4800
|
position: "left"
|
|
4834
4801
|
})?.top + "px",
|
|
4835
|
-
left:
|
|
4802
|
+
left: A(ve)({
|
|
4836
4803
|
svgElement: L.value,
|
|
4837
4804
|
x: J.value?.left - V.value.plot.tag.fontSize / 1.5,
|
|
4838
4805
|
y: n.y,
|
|
@@ -4842,24 +4809,24 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4842
4809
|
height: "fit-content",
|
|
4843
4810
|
width: "fit-content",
|
|
4844
4811
|
background: e.color,
|
|
4845
|
-
color:
|
|
4812
|
+
color: A(Ce)(e.color),
|
|
4846
4813
|
padding: "0 6px",
|
|
4847
4814
|
fontSize: V.value.plot.tag.fontSize + "px",
|
|
4848
4815
|
opacity: 1
|
|
4849
4816
|
})
|
|
4850
|
-
}, [(T(),
|
|
4817
|
+
}, [(T(), x("svg", fi, [S("path", {
|
|
4851
4818
|
d: "M 0,0 10,10 0,20 Z",
|
|
4852
4819
|
fill: e.color,
|
|
4853
4820
|
stroke: "none"
|
|
4854
|
-
}, null, 8, pi)])),
|
|
4821
|
+
}, null, 8, pi)])), S("div", {
|
|
4855
4822
|
class: "vue-ui-xy-tag-content",
|
|
4856
|
-
innerHTML:
|
|
4823
|
+
innerHTML: A(h)(V.value.plot.tag.formatter, n.value, e.name, {
|
|
4857
4824
|
datapoint: n,
|
|
4858
4825
|
seriesIndex: r,
|
|
4859
4826
|
serieName: e.name
|
|
4860
4827
|
})
|
|
4861
|
-
}, null, 8, mi)], 4)) :
|
|
4862
|
-
V.value.chart.zoom.show && uo.value > 6 && Xa.value && ys.value ? (T(),
|
|
4828
|
+
}, null, 8, mi)], 4)) : b("", !0)], 64))), 128))], 64))), 128)),
|
|
4829
|
+
V.value.chart.zoom.show && uo.value > 6 && Xa.value && ys.value ? (T(), Qe(qe, {
|
|
4863
4830
|
key: 6,
|
|
4864
4831
|
ref_key: "chartSlicer",
|
|
4865
4832
|
ref: Vi,
|
|
@@ -4927,21 +4894,21 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4927
4894
|
"onUpdate:end": Ms,
|
|
4928
4895
|
"onUpdate:start": js
|
|
4929
4896
|
}, {
|
|
4930
|
-
"reset-action":
|
|
4897
|
+
"reset-action": j(({ reset: e }) => [O(n.$slots, "reset-action", st(C({ reset: e })), void 0, !0)]),
|
|
4931
4898
|
_: 3
|
|
4932
|
-
}, 8, /* @__PURE__ */ "uuid.allMinimaps.background.borderColor.customFormat.cutNullValues.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.useResetSlot.immediate.inputColor.isPreview.labelLeft.labelRight.max.min.precision.useValueRange.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapLineColor.minimapMerged.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.minimapSelectionRadius.preciseLabels.refreshStartPoint.refreshEndPoint.selectColor.selectedSeries.smoothMinimap.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.minScale.maxScale.maxWidth.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth.isCursorPointer".split("."))) :
|
|
4933
|
-
|
|
4934
|
-
xa.value && (V.value.chart.legend.show || n.$slots.legend) ? (T(),
|
|
4899
|
+
}, 8, /* @__PURE__ */ "uuid.allMinimaps.background.borderColor.customFormat.cutNullValues.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.useResetSlot.immediate.inputColor.isPreview.labelLeft.labelRight.max.min.precision.useValueRange.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapLineColor.minimapMerged.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.minimapSelectionRadius.preciseLabels.refreshStartPoint.refreshEndPoint.selectColor.selectedSeries.smoothMinimap.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.minScale.maxScale.maxWidth.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth.isCursorPointer".split("."))) : b("", !0),
|
|
4900
|
+
S("div", { id: `legend-bottom-${F.value}` }, null, 8, hi),
|
|
4901
|
+
xa.value && (V.value.chart.legend.show || n.$slots.legend) ? (T(), Qe(Ze, {
|
|
4935
4902
|
key: 7,
|
|
4936
4903
|
to: V.value.chart.legend.position === "top" ? `#legend-top-${F.value}` : `#legend-bottom-${F.value}`
|
|
4937
|
-
}, [
|
|
4904
|
+
}, [S("div", {
|
|
4938
4905
|
ref_key: "chartLegend",
|
|
4939
4906
|
ref: Hi
|
|
4940
|
-
}, [O(n.$slots, "legend", { legend: Lo.value }, () => [V.value.chart.legend.show ? (T(),
|
|
4907
|
+
}, [O(n.$slots, "legend", { legend: Lo.value }, () => [V.value.chart.legend.show ? (T(), x("div", {
|
|
4941
4908
|
key: 0,
|
|
4942
4909
|
class: "vue-ui-xy-legend",
|
|
4943
4910
|
style: w({ fontSize: `var(--legend-font-size, ${V.value.chart.legend.fontSize ?? 14}px)` })
|
|
4944
|
-
}, [V.value.chart.legend.selectAllToggle.show && Lo.value.length > 2 && !
|
|
4911
|
+
}, [V.value.chart.legend.selectAllToggle.show && Lo.value.length > 2 && !A(no) ? (T(), Qe(Ye, {
|
|
4945
4912
|
key: 0,
|
|
4946
4913
|
backgroundColor: V.value.chart.legend.selectAllToggle.backgroundColor,
|
|
4947
4914
|
color: V.value.chart.legend.selectAllToggle.color,
|
|
@@ -4953,19 +4920,19 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4953
4920
|
"color",
|
|
4954
4921
|
"fontSize",
|
|
4955
4922
|
"checked"
|
|
4956
|
-
])) :
|
|
4923
|
+
])) : b("", !0), (T(!0), x(v, null, D(Lo.value, (e, t) => (T(), x("div", {
|
|
4957
4924
|
key: `div_legend_item_${t}`,
|
|
4958
4925
|
onClick: (t) => hc(e),
|
|
4959
4926
|
onKeydown: (t) => pc(t, e),
|
|
4960
4927
|
role: "button",
|
|
4961
4928
|
tabindex: "0",
|
|
4962
|
-
class:
|
|
4929
|
+
class: ot({
|
|
4963
4930
|
"vue-ui-xy-legend-item-alone": Lo.value.length === 1,
|
|
4964
4931
|
"vue-ui-xy-legend-item": !0,
|
|
4965
4932
|
"vue-ui-xy-legend-item-segregated": ua.value.has(e.id)
|
|
4966
4933
|
}),
|
|
4967
4934
|
style: w({ cursor: Za.value ? "pointer" : "default" })
|
|
4968
|
-
}, [ia.value[e.type] === "line" ? (T(),
|
|
4935
|
+
}, [ia.value[e.type] === "line" ? (T(), x("svg", _i, [S("rect", {
|
|
4969
4936
|
x: "0",
|
|
4970
4937
|
y: "7.5",
|
|
4971
4938
|
rx: "1.5",
|
|
@@ -4974,7 +4941,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4974
4941
|
height: "3",
|
|
4975
4942
|
width: "20",
|
|
4976
4943
|
fill: e.color
|
|
4977
|
-
}, null, 8, vi),
|
|
4944
|
+
}, null, 8, vi), tt(Ge, {
|
|
4978
4945
|
plot: {
|
|
4979
4946
|
x: 10,
|
|
4980
4947
|
y: 9
|
|
@@ -4995,7 +4962,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4995
4962
|
"color",
|
|
4996
4963
|
"shape",
|
|
4997
4964
|
"stroke"
|
|
4998
|
-
])])) : ia.value[e.type] === "bar" ? (T(),
|
|
4965
|
+
])])) : ia.value[e.type] === "bar" ? (T(), x("svg", yi, [ia.value[e.type] === "bar" && n.$slots.pattern ? (T(), x("rect", {
|
|
4999
4966
|
key: 0,
|
|
5000
4967
|
x: "4",
|
|
5001
4968
|
y: "4",
|
|
@@ -5004,7 +4971,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
5004
4971
|
width: "32",
|
|
5005
4972
|
stroke: "none",
|
|
5006
4973
|
fill: e.color
|
|
5007
|
-
}, null, 8, bi)) :
|
|
4974
|
+
}, null, 8, bi)) : b("", !0), ia.value[e.type] === "bar" ? (T(), x("rect", {
|
|
5008
4975
|
key: 1,
|
|
5009
4976
|
x: "4",
|
|
5010
4977
|
y: "4",
|
|
@@ -5013,7 +4980,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
5013
4980
|
width: "32",
|
|
5014
4981
|
stroke: "none",
|
|
5015
4982
|
fill: n.$slots.pattern ? `url(#pattern_${F.value}_${e.slotAbsoluteIndex})` : e.color
|
|
5016
|
-
}, null, 8, xi)) :
|
|
4983
|
+
}, null, 8, xi)) : b("", !0)])) : (T(), x("svg", Si, [tt(Ge, {
|
|
5017
4984
|
plot: {
|
|
5018
4985
|
x: 6,
|
|
5019
4986
|
y: 6
|
|
@@ -5028,14 +4995,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
5028
4995
|
"hexagon",
|
|
5029
4996
|
"star"
|
|
5030
4997
|
].includes(e.shape) ? e.shape : "circle"
|
|
5031
|
-
}, null, 8, ["color", "shape"])])),
|
|
5032
|
-
n.$slots.source ? (T(),
|
|
4998
|
+
}, null, 8, ["color", "shape"])])), S("span", { style: w(`color:${V.value.chart.legend.color}`) }, k(e.name), 5)], 46, gi))), 128))], 4)) : b("", !0)], !0)], 512)], 8, ["to"])) : b("", !0),
|
|
4999
|
+
n.$slots.source ? (T(), x("div", {
|
|
5033
5000
|
key: 8,
|
|
5034
5001
|
ref_key: "source",
|
|
5035
5002
|
ref: Ui,
|
|
5036
5003
|
dir: "auto"
|
|
5037
|
-
}, [O(n.$slots, "source", {}, void 0, !0)], 512)) :
|
|
5038
|
-
|
|
5004
|
+
}, [O(n.$slots, "source", {}, void 0, !0)], 512)) : b("", !0),
|
|
5005
|
+
tt(A(Ei), {
|
|
5039
5006
|
teleportTo: V.value.chart.tooltip.teleportTo,
|
|
5040
5007
|
show: H.value.showTooltip && sa.value,
|
|
5041
5008
|
backgroundColor: V.value.chart.tooltip.backgroundColor,
|
|
@@ -5059,9 +5026,9 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
5059
5026
|
isA11yMode: Ea.value != null,
|
|
5060
5027
|
a11yPosition: Da.value
|
|
5061
5028
|
}, {
|
|
5062
|
-
"tooltip-before":
|
|
5063
|
-
tooltip:
|
|
5064
|
-
"tooltip-after":
|
|
5029
|
+
"tooltip-before": j(() => [O(n.$slots, "tooltip-before", st(C({ ...Nl.value })), void 0, !0)]),
|
|
5030
|
+
tooltip: j(() => [O(n.$slots, "tooltip", st(C({ ...Nl.value })), void 0, !0)]),
|
|
5031
|
+
"tooltip-after": j(() => [O(n.$slots, "tooltip-after", st(C({ ...Nl.value })), void 0, !0)]),
|
|
5065
5032
|
_: 3
|
|
5066
5033
|
}, 8, [
|
|
5067
5034
|
"teleportTo",
|
|
@@ -5087,26 +5054,26 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
5087
5054
|
"isA11yMode",
|
|
5088
5055
|
"a11yPosition"
|
|
5089
5056
|
]),
|
|
5090
|
-
Xa.value && V.value.chart.userOptions.buttons.table ? (T(),
|
|
5057
|
+
Xa.value && V.value.chart.userOptions.buttons.table ? (T(), Qe(ut(Ru.value.component), it({ key: 9 }, Ru.value.props, {
|
|
5091
5058
|
ref_key: "tableUnit",
|
|
5092
5059
|
ref: Sa,
|
|
5093
5060
|
onClose: zu
|
|
5094
|
-
}),
|
|
5095
|
-
content:
|
|
5061
|
+
}), $e({
|
|
5062
|
+
content: j(() => [S("div", { style: w(`${A(_o) || V.value.table.useDialog ? "" : "max-height:400px"};${V.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${V.value.table.useDialog ? "" : "margin-top:48px"}`) }, [S("div", Ci, [_t(S("input", {
|
|
5096
5063
|
type: "checkbox",
|
|
5097
5064
|
"onUpdate:modelValue": r[4] ||= (e) => ma.value = e
|
|
5098
|
-
}, null, 512), [[
|
|
5065
|
+
}, null, 512), [[mt, ma.value]]), S("div", {
|
|
5099
5066
|
onClick: r[5] ||= (e) => ma.value = !ma.value,
|
|
5100
5067
|
style: w({ cursor: Za.value ? "pointer" : "default" })
|
|
5101
|
-
}, [
|
|
5068
|
+
}, [tt(A(Oi), {
|
|
5102
5069
|
name: "chartLine",
|
|
5103
5070
|
size: 20,
|
|
5104
5071
|
stroke: V.value.chart.color
|
|
5105
|
-
}, null, 8, ["stroke"])], 4)]), ma.value ? (T(),
|
|
5072
|
+
}, null, 8, ["stroke"])], 4)]), ma.value ? (T(), Qe(A(ki), {
|
|
5106
5073
|
key: `sparkline_${ha.value}`,
|
|
5107
5074
|
dataset: wc.value,
|
|
5108
5075
|
config: Tc.value
|
|
5109
|
-
}, null, 8, ["dataset", "config"])) : (T(),
|
|
5076
|
+
}, null, 8, ["dataset", "config"])) : (T(), Qe(A(Ti), {
|
|
5110
5077
|
key: `table_${fa.value}`,
|
|
5111
5078
|
colNames: Ql.value.colNames,
|
|
5112
5079
|
head: Ql.value.head,
|
|
@@ -5116,8 +5083,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
5116
5083
|
withCloseButton: !V.value.table.useDialog,
|
|
5117
5084
|
onClose: zu
|
|
5118
5085
|
}, {
|
|
5119
|
-
th:
|
|
5120
|
-
td:
|
|
5086
|
+
th: j(({ th: e }) => [S("div", { innerHTML: e }, null, 8, wi)]),
|
|
5087
|
+
td: j(({ td: e }) => [et(k(isNaN(Number(e)) ? e : A(o)({
|
|
5121
5088
|
p: V.value.chart.labels.prefix,
|
|
5122
5089
|
v: e,
|
|
5123
5090
|
s: V.value.chart.labels.suffix,
|
|
@@ -5135,23 +5102,23 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
5135
5102
|
_: 2
|
|
5136
5103
|
}, [V.value.table.useDialog ? {
|
|
5137
5104
|
name: "title",
|
|
5138
|
-
fn:
|
|
5105
|
+
fn: j(() => [et(k(Ru.value.title), 1)]),
|
|
5139
5106
|
key: "0"
|
|
5140
5107
|
} : void 0, V.value.table.useDialog ? {
|
|
5141
5108
|
name: "actions",
|
|
5142
|
-
fn:
|
|
5109
|
+
fn: j(() => [S("button", {
|
|
5143
5110
|
tabindex: "0",
|
|
5144
5111
|
class: "vue-ui-user-options-button",
|
|
5145
5112
|
onClick: r[3] ||= (e) => $l(V.value.chart.userOptions.callbacks.csv)
|
|
5146
|
-
}, [
|
|
5113
|
+
}, [tt(A(Oi), {
|
|
5147
5114
|
name: "fileCsv",
|
|
5148
5115
|
stroke: Ru.value.props.color
|
|
5149
5116
|
}, null, 8, ["stroke"])])]),
|
|
5150
5117
|
key: "1"
|
|
5151
|
-
} : void 0]), 1040)) :
|
|
5152
|
-
O(n.$slots, "skeleton", {}, () => [
|
|
5118
|
+
} : void 0]), 1040)) : b("", !0),
|
|
5119
|
+
O(n.$slots, "skeleton", {}, () => [A(no) ? (T(), Qe(Ie, { key: 0 })) : b("", !0)], !0)
|
|
5153
5120
|
], 46, Ot));
|
|
5154
5121
|
}
|
|
5155
|
-
}, [["__scopeId", "data-v-
|
|
5122
|
+
}, [["__scopeId", "data-v-bc467ca3"]]);
|
|
5156
5123
|
//#endregion
|
|
5157
5124
|
export { Dt as n, M as t };
|