vue-data-ui 3.19.6 → 3.19.8
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/{BaseDraggableDialog-BQcmQAK5.js → BaseDraggableDialog-DUUu2E2Q.js} +1 -1
- package/dist/{BaseIcon-CEmt3Ifx.js → BaseIcon-DM1x8hQF.js} +6 -3
- package/dist/{BaseLegendToggle-DUIqQmwM.js → BaseLegendToggle-CJTwLGXL.js} +1 -1
- package/dist/{BaseZoomControls-Ce1yqas1.js → BaseZoomControls-BkajQ8q9.js} +1 -1
- package/dist/{ColorPicker-DS_QkH3W.js → ColorPicker-DTQeqKUV.js} +1 -1
- package/dist/{DataTable-BvDJEAma.js → DataTable-DmE8Oo4i.js} +1 -1
- package/dist/{NonSvgPenAndPaper-D4Gh7O43.js → NonSvgPenAndPaper-tvWXeCsd.js} +2 -2
- package/dist/{PackageVersion-C7CvErYQ.js → PackageVersion-zJAUEmyB.js} +1 -1
- package/dist/{PenAndPaper-DwpL8Z0l.js → PenAndPaper-DNgm6y3l.js} +2 -2
- package/dist/{Slicer-BlfyiHHD.js → Slicer-CPWGgGSp.js} +1 -1
- package/dist/{SlicerPreview-CG1jpZqZ.js → SlicerPreview-BU3ZeHjR.js} +1 -1
- package/dist/{UserOptions-B57xo6D2.js → UserOptions-D7zR0tnR.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-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-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +11 -0
- package/dist/{useConfig-lKgU652n.js → useConfig-ByaaSKhz.js} +5 -0
- package/dist/{useObjectBindings-C3q0I8Zm.js → useObjectBindings-BR1sGimd.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-BBnKbdCT.js → vue-data-ui-Dv8MNDbS.js} +68 -68
- package/dist/vue-data-ui.js +69 -69
- package/dist/{vue-ui-3d-bar-gMuK6OMP.js → vue-ui-3d-bar-DVsF4qGd.js} +2 -2
- package/dist/{vue-ui-accordion-CNtzLReQ.js → vue-ui-accordion-BX9WL-QF.js} +2 -2
- package/dist/{vue-ui-age-pyramid-B_D1wPY4.js → vue-ui-age-pyramid-Bu3bocZx.js} +2 -2
- package/dist/{vue-ui-annotator-KPkeXw8q.js → vue-ui-annotator-Be3VpH8Z.js} +4 -4
- package/dist/{vue-ui-bullet-Ci3tqx6A.js → vue-ui-bullet-COSSZ7RU.js} +2 -2
- package/dist/{vue-ui-bump-31Kryh02.js → vue-ui-bump-C1w-a4ad.js} +3 -3
- package/dist/vue-ui-candlestick-zO0Jmsen.js +1826 -0
- package/dist/{vue-ui-carousel-table-D3j0UTQ1.js → vue-ui-carousel-table-Q2uTIELA.js} +2 -2
- package/dist/{vue-ui-chestnut-Cgf0vAxo.js → vue-ui-chestnut-DdNKhXkN.js} +2 -2
- package/dist/{vue-ui-chord-DGma5NsS.js → vue-ui-chord-CYzGIRtA.js} +2 -2
- package/dist/{vue-ui-circle-pack-EvRfcXnZ.js → vue-ui-circle-pack-Dp5_ugXW.js} +2 -2
- package/dist/{vue-ui-cursor-BX8kHXVE.js → vue-ui-cursor-DBViygOD.js} +2 -2
- package/dist/{vue-ui-dag-DuOokTx4.js → vue-ui-dag-BA2vr2Ub.js} +3 -3
- package/dist/{vue-ui-dashboard-BeZCujZv.js → vue-ui-dashboard-D11FCHnp.js} +67 -67
- package/dist/{vue-ui-digits-nIgbeL-K.js → vue-ui-digits-CIXbRR97.js} +2 -2
- package/dist/{vue-ui-donut-FzQwgIbN.js → vue-ui-donut-BSanYbqb.js} +3 -3
- package/dist/{vue-ui-donut-evolution-CwLYRDws.js → vue-ui-donut-evolution-BVttNIzH.js} +228 -218
- package/dist/{vue-ui-dumbbell-BmujSKH2.js → vue-ui-dumbbell-D-KcBLOF.js} +2 -2
- package/dist/{vue-ui-flow-D4jeyY5a.js → vue-ui-flow-Dly7N0Nb.js} +2 -2
- package/dist/{vue-ui-funnel-DQ1fOfXW.js → vue-ui-funnel-COwXzAbB.js} +2 -2
- package/dist/{vue-ui-galaxy-Wldw6HHG.js → vue-ui-galaxy-Cg9VStNF.js} +3 -3
- package/dist/{vue-ui-gauge-BzV3y_h3.js → vue-ui-gauge-DHWCS6jR.js} +2 -2
- package/dist/{vue-ui-geo-WLEkf2a9.js → vue-ui-geo-CV0FBeuB.js} +3 -3
- package/dist/{vue-ui-gizmo-C0vr-wLL.js → vue-ui-gizmo-5rdIvscj.js} +2 -2
- package/dist/{vue-ui-heatmap-RmaAnr9m.js → vue-ui-heatmap-kiQ6q3q4.js} +3 -3
- package/dist/{vue-ui-history-plot-Dyf2Atb2.js → vue-ui-history-plot-CgPjudHv.js} +3 -3
- package/dist/{vue-ui-horizontal-bar-DG4paRTj.js → vue-ui-horizontal-bar-CpQCmBQD.js} +4 -4
- package/dist/{vue-ui-kpi-TBQhSM0a.js → vue-ui-kpi-Bz7QeCTV.js} +2 -2
- package/dist/{vue-ui-mini-loader-BpLz9pDO.js → vue-ui-mini-loader-DDJUya9e.js} +1 -1
- package/dist/{vue-ui-molecule-Df4zCHL5.js → vue-ui-molecule-CvfwMxYY.js} +2 -2
- package/dist/{vue-ui-mood-radar-RQqmJU_9.js → vue-ui-mood-radar-D0lanJ__.js} +2 -2
- package/dist/{vue-ui-nested-donuts-C7VIp7mz.js → vue-ui-nested-donuts-C-LWBXmg.js} +3 -3
- package/dist/{vue-ui-onion-DP4NWU3Y.js → vue-ui-onion-u9hGe4VA.js} +3 -3
- package/dist/{vue-ui-parallel-coordinate-plot-a7OvbsVh.js → vue-ui-parallel-coordinate-plot-BJ5OjYTH.js} +3 -3
- package/dist/{vue-ui-quadrant-C4GxyyE3.js → vue-ui-quadrant-BVFJ5Vur.js} +3 -3
- package/dist/{vue-ui-quick-chart-BNCkZiiG.js → vue-ui-quick-chart-Cd5lGyph.js} +4 -4
- package/dist/{vue-ui-radar-Dcq3bWA4.js → vue-ui-radar-BsRGxgXN.js} +3 -3
- package/dist/{vue-ui-rating-DBxf9Vwv.js → vue-ui-rating-D_QR_A3V.js} +1 -1
- package/dist/{vue-ui-relation-circle-CZ1UtEIM.js → vue-ui-relation-circle-MxYh6hSt.js} +2 -2
- package/dist/{vue-ui-ridgeline-CsNDB48W.js → vue-ui-ridgeline-BtNEP6ba.js} +3 -3
- package/dist/{vue-ui-rings-Bwd_i2eo.js → vue-ui-rings-Pj7yMeOV.js} +3 -3
- package/dist/{vue-ui-scatter-DAa8MnhH.js → vue-ui-scatter-DrS1nrwL.js} +3 -3
- package/dist/{vue-ui-skeleton-CPy9DsSC.js → vue-ui-skeleton-Cqv1KG4y.js} +2 -2
- package/dist/{vue-ui-smiley-2xc8AwPP.js → vue-ui-smiley-rFdGxZK6.js} +1 -1
- package/dist/{vue-ui-spark-trend-CM06cEvG.js → vue-ui-spark-trend-eHleRq-z.js} +2 -2
- package/dist/{vue-ui-sparkbar-CSDRWMhb.js → vue-ui-sparkbar-BHJTG_on.js} +2 -2
- package/dist/{vue-ui-sparkgauge-CKeKTyBH.js → vue-ui-sparkgauge-DpAEwvLX.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-BSnU2_Q0.js → vue-ui-sparkhistogram-BlMH_NJk.js} +2 -2
- package/dist/{vue-ui-sparkline-DhkrfLYf.js → vue-ui-sparkline-BAWc3ROJ.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-D3vn49rn.js → vue-ui-sparkstackbar-BI8zG-DG.js} +3 -3
- package/dist/vue-ui-stackbar-28FVVqVu.js +2267 -0
- package/dist/vue-ui-stackline-DwtlEdOE.js +2395 -0
- package/dist/{vue-ui-strip-plot-DLH2Jc91.js → vue-ui-strip-plot-DX36qFKk.js} +2 -2
- package/dist/{vue-ui-table-DBWGRgw6.js → vue-ui-table-DdZ_DkqT.js} +5 -5
- package/dist/{vue-ui-table-heatmap-D0SM6A1L.js → vue-ui-table-heatmap-BFKyJTr1.js} +2 -2
- package/dist/{vue-ui-table-sparkline-BShpt1UR.js → vue-ui-table-sparkline-BSV1jn7r.js} +2 -2
- package/dist/{vue-ui-thermometer-BIH00QYu.js → vue-ui-thermometer-Io8LdW1o.js} +2 -2
- package/dist/{vue-ui-timer-vcaC2CGp.js → vue-ui-timer-BkdpZ-lw.js} +3 -3
- package/dist/{vue-ui-tiremarks-BmhvsqeP.js → vue-ui-tiremarks-GC773Hw1.js} +2 -2
- package/dist/{vue-ui-treemap-C-M5PHTS.js → vue-ui-treemap-C0dtbfbZ.js} +4 -4
- package/dist/{vue-ui-waffle-DnpUe9aj.js → vue-ui-waffle-BvzfNmJC.js} +3 -3
- package/dist/{vue-ui-wheel-D21hTOn0.js → vue-ui-wheel-Dm9V8TAH.js} +2 -2
- package/dist/{vue-ui-word-cloud-C4SPxSlX.js → vue-ui-word-cloud-Ne_B9Elc.js} +3 -3
- package/dist/{vue-ui-world-DSq_cPCv.js → vue-ui-world-Bp38MZij.js} +3 -3
- package/dist/{vue-ui-xy-Iep0AjyV.js → vue-ui-xy-BCeOqJYR.js} +1169 -1104
- package/dist/{vue-ui-xy-canvas-DjTurM4m.js → vue-ui-xy-canvas-B06Rit63.js} +6 -6
- package/package.json +1 -1
- package/dist/vue-ui-candlestick-DU0MXtKT.js +0 -1814
- package/dist/vue-ui-stackbar-BR7tZmWR.js +0 -2253
- package/dist/vue-ui-stackline-Dj9N60Js.js +0 -2381
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
-
import { At as t, B as n, D as r, F as i, G as a, H as o, I as s, It as c, J as l, L as u, Lt as ee, M as te, Mt as d, O as f, Ot as p, P as m, R as ne, Rt as re, S as ie, St as ae, T as oe, Tt 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 { At as t, B as n, D as r, F as i, G as a, H as o, I as s, It as c, J as l, L as u, Lt as ee, M as te, Mt as d, O as f, Ot as p, P as m, R as ne, Rt as re, S as ie, St as ae, T as oe, Tt as h, X as se, _t as ce, a as g, c as le, dt as _, et as v, g as ue, h as de, i as fe, j as pe, jt as me, k as he, l as ge, mt as _e, n as ve, nt as ye, pt as be, r as xe, s as Se, v as y, w as Ce, x as we, y as Te, z as Ee, zt as De } from "./lib-BkiwukKO.js";
|
|
3
|
+
import { n as Oe, r as ke, t as Ae } from "./useTimeLabels-C0x7zUXP.js";
|
|
4
|
+
import { t as je } from "./useConfig-ByaaSKhz.js";
|
|
5
|
+
import { t as Me } from "./usePrinter-X0yWOynH.js";
|
|
6
|
+
import { n as Ne, t as Pe } from "./BaseScanner-C7dmAref.js";
|
|
7
|
+
import { t as Fe } from "./useSvgExport-Dtu973wa.js";
|
|
8
|
+
import { t as Ie } from "./useNestedProp-Ck4hsrpu.js";
|
|
9
|
+
import { t as Le } from "./useThemeCheck-rFK9Zlb_.js";
|
|
10
|
+
import { t as Re } from "./useStableElementSize-0I1IpHPl.js";
|
|
11
|
+
import { t as ze } from "./useTimeLabelCollider-Dm55Emzg.js";
|
|
12
|
+
import { t as Be } from "./img-BjOr008R.js";
|
|
13
|
+
import { n as Ve } from "./Title-__gWq2g6.js";
|
|
14
|
+
import { t as He } from "./vue_ui_xy-BYPqfYyx.js";
|
|
15
|
+
import { t as Ue } from "./Shape-DEGOZ6GG.js";
|
|
16
|
+
import { t as We } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
17
|
+
import { t as Ge } from "./SlicerPreview-BU3ZeHjR.js";
|
|
18
|
+
import { t as Ke } from "./vue-ui-accordion-BX9WL-QF.js";
|
|
19
|
+
import { t as qe } from "./BaseLegendToggle-CJTwLGXL.js";
|
|
20
|
+
import { t as Je } from "./A11yDataTable-q2-8fSlJ.js";
|
|
21
|
+
import { Fragment as b, Teleport as Ye, computed as x, createBlock as Xe, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as Ze, createTextVNode as Qe, createVNode as $e, defineAsyncComponent as et, getCurrentInstance as tt, guardReactiveProps as T, mergeProps as nt, nextTick as rt, normalizeClass as it, normalizeProps as at, normalizeStyle as E, onBeforeUnmount as ot, onMounted as st, openBlock as D, ref as O, renderList as k, renderSlot as A, resolveDynamicComponent as ct, shallowRef as lt, toDisplayString as ut, toRefs as dt, unref as j, useSlots as ft, vModelCheckbox as pt, watch as mt, watchEffect as ht, withCtx as M, withDirectives as gt } from "vue";
|
|
22
22
|
//#region src/components/vue-ui-xy.vue
|
|
23
23
|
var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt = ["id"], xt = { style: { position: "relative" } }, St = [
|
|
24
24
|
"viewBox",
|
|
@@ -140,6 +140,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
140
140
|
"stroke"
|
|
141
141
|
], _n = [
|
|
142
142
|
"transform",
|
|
143
|
+
"text-anchor",
|
|
143
144
|
"font-size",
|
|
144
145
|
"fill"
|
|
145
146
|
], vn = [
|
|
@@ -151,6 +152,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
151
152
|
], yn = [
|
|
152
153
|
"transform",
|
|
153
154
|
"font-size",
|
|
155
|
+
"text-anchor",
|
|
154
156
|
"fill"
|
|
155
157
|
], bn = [
|
|
156
158
|
"width",
|
|
@@ -277,7 +279,11 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
277
279
|
"font-size",
|
|
278
280
|
"fill",
|
|
279
281
|
"stroke"
|
|
280
|
-
], pr = [
|
|
282
|
+
], pr = [
|
|
283
|
+
"id",
|
|
284
|
+
"x1",
|
|
285
|
+
"x2"
|
|
286
|
+
], mr = ["stop-color"], hr = ["stop-color"], gr = [
|
|
281
287
|
"x",
|
|
282
288
|
"y",
|
|
283
289
|
"width",
|
|
@@ -423,7 +429,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
423
429
|
"padding-left": "6px"
|
|
424
430
|
},
|
|
425
431
|
"data-dom-to-png-ignore": ""
|
|
426
|
-
}, ei = ["innerHTML"], N = /* @__PURE__ */
|
|
432
|
+
}, ei = ["innerHTML"], N = /* @__PURE__ */ We({
|
|
427
433
|
__name: "vue-ui-xy",
|
|
428
434
|
props: {
|
|
429
435
|
config: {
|
|
@@ -452,8 +458,8 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
452
458
|
"zoomReset",
|
|
453
459
|
"copyAlt"
|
|
454
460
|
],
|
|
455
|
-
setup(e, { expose:
|
|
456
|
-
let N = e, ti =
|
|
461
|
+
setup(e, { expose: We, emit: _t }) {
|
|
462
|
+
let N = e, ti = et(() => import("./DataTable-DmE8Oo4i.js")), ni = et(() => import("./Tooltip-CuWEYGr3.js")), ri = et(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), ii = et(() => import("./BaseIcon-DM1x8hQF.js").then((e) => e.n)), ai = et(() => import("./vue-ui-table-sparkline-BSV1jn7r.js").then((e) => e.n)), oi = et(() => import("./PackageVersion-zJAUEmyB.js").then((e) => e.t)), si = et(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), ci = et(() => import("./BaseDraggableDialog-DUUu2E2Q.js").then((e) => e.n)), li = _t, ui = ft(), di = tt(), { vue_ui_xy: fi } = je(), { isThemeValid: pi, warnInvalidTheme: mi } = Le(), hi = O(null), gi = O(null), _i = O(null), vi = O(null), yi = O(null), bi = O(null), xi = O(null), Si = O(null), Ci = O(null), wi = O(null), Ti = O(null), Ei = O(null), Di = O(null), Oi = O(null), ki = O(0), P = O(null), Ai = O(!0), ji = O(600), F = O(1e3), Mi = O("0 0 1000 600"), Ni = O({
|
|
457
463
|
x: 0,
|
|
458
464
|
y: 0
|
|
459
465
|
}), Pi = O({
|
|
@@ -463,7 +469,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
463
469
|
}), Fi = O(!1), Ii = O(!1), Li = O(!1), Ri = O(null), I = O([]), L = O(o()), zi = O(0), Bi = O(0), Vi = O(0), Hi = O(!0), Ui = O(0), R = O(null), Wi = O(!1), Gi = O(!0), Ki = O(!0), z = O(null), qi = O({}), Ji = O(null), Yi = O(!1), Xi = O(null), Zi = O(!1), Qi = O(!1), B = O(null), $i = O(null), ea = O({
|
|
464
470
|
x: 0,
|
|
465
471
|
y: 0
|
|
466
|
-
}), ta = lt(null), na = O(!1), ra = O(0), ia = O(0), aa =
|
|
472
|
+
}), ta = lt(null), na = O(!1), ra = O(0), ia = O(0), aa = Re({
|
|
467
473
|
elementRef: ta,
|
|
468
474
|
minimumWidth: 2,
|
|
469
475
|
minimumHeight: 2,
|
|
@@ -485,9 +491,9 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
485
491
|
}
|
|
486
492
|
async function ca() {
|
|
487
493
|
let e = ++ia.value;
|
|
488
|
-
na.value = !1, await
|
|
494
|
+
na.value = !1, await rt(), await sa(), await sa(), e === ia.value && (ra.value += 1, na.value = !0);
|
|
489
495
|
}
|
|
490
|
-
let la =
|
|
496
|
+
let la = x(() => ({
|
|
491
497
|
height: ji.value,
|
|
492
498
|
width: F.value
|
|
493
499
|
}));
|
|
@@ -497,87 +503,92 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
497
503
|
function da(e, t, n = 0) {
|
|
498
504
|
return Number.isFinite(e) && Number.isFinite(t) && Math.abs(t) > 1e-9 ? e / t : n;
|
|
499
505
|
}
|
|
500
|
-
let fa = O(!1), V = O({
|
|
506
|
+
let fa = O(!1), pa = O(null), ma = O(null), V = O({
|
|
501
507
|
xAxis: 18,
|
|
502
508
|
yAxis: 12,
|
|
503
509
|
dataLabels: 20,
|
|
504
510
|
plotLabels: 10
|
|
505
|
-
}),
|
|
511
|
+
}), ha = O({
|
|
506
512
|
plot: 3,
|
|
507
513
|
line: 3
|
|
508
514
|
});
|
|
509
515
|
st(() => {
|
|
510
516
|
Yi.value = !0, N.dataset.length && N.dataset.forEach((e, t) => {
|
|
511
|
-
[null, void 0].includes(e.series) &&
|
|
517
|
+
[null, void 0].includes(e.series) && se({
|
|
512
518
|
componentName: "VueUiXy",
|
|
513
519
|
type: "datasetSerieAttribute",
|
|
514
520
|
property: "series (number[])",
|
|
515
521
|
index: t,
|
|
516
|
-
debug:
|
|
522
|
+
debug: xa.value
|
|
517
523
|
});
|
|
518
524
|
}), oa(), aa.start(), ca();
|
|
519
525
|
});
|
|
520
|
-
function
|
|
526
|
+
function ga() {
|
|
521
527
|
if (!Object.keys(N.config || {}).length) return fi;
|
|
522
|
-
let e =
|
|
528
|
+
let e = Ie({
|
|
523
529
|
userConfig: N.config,
|
|
524
530
|
defaultConfig: fi
|
|
525
531
|
});
|
|
526
|
-
N.config &&
|
|
532
|
+
N.config && _(N.config, "chart.highlightArea") && (Array.isArray(N.config.chart.highlightArea) ? e.chart.highlightArea = N.config.chart.highlightArea : e.chart.highlightArea = [N.config.chart.highlightArea]), N.config && _(N.config, "chart.annotations") && Array.isArray(N.config.chart.annotations) && N.config.chart.annotations.length ? e.chart.annotations = N.config.chart.annotations.map((e) => Ie({
|
|
527
533
|
defaultConfig: fi.chart.annotations[0],
|
|
528
534
|
userConfig: e
|
|
529
|
-
})) : e.chart.annotations = [], N.config &&
|
|
535
|
+
})) : e.chart.annotations = [], N.config && _(N.config, "chart.grid.position") && N.config.chart.grid.position === "start" && N.dataset.length && N.dataset.some((e) => e.type === "bar") && (e.chart.grid.position = "middle", _(N.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), N.config && _(N.config, "chart.highlightArea") && (Array.isArray(N.config.chart.highlightArea) ? e.chart.highlightArea = N.config.chart.highlightArea.map((e) => _a({
|
|
530
536
|
defaultConfig: fi.chart.highlightArea,
|
|
531
537
|
userConfig: e
|
|
532
|
-
})) : e.chart.highlightArea =
|
|
538
|
+
})) : e.chart.highlightArea = _a({
|
|
533
539
|
defaultConfig: fi.chart.highlightArea,
|
|
534
540
|
userConfig: N.config.chart.highlightArea
|
|
535
541
|
}));
|
|
536
542
|
let t = e.theme;
|
|
537
543
|
if (!t) return e;
|
|
538
544
|
if (!pi.value(e)) return mi(e), e;
|
|
539
|
-
let n =
|
|
540
|
-
userConfig:
|
|
545
|
+
let n = Ie({
|
|
546
|
+
userConfig: He[t] || N.config,
|
|
541
547
|
defaultConfig: e
|
|
542
|
-
}), r =
|
|
548
|
+
}), r = Ie({
|
|
543
549
|
userConfig: N.config,
|
|
544
550
|
defaultConfig: n
|
|
545
551
|
});
|
|
546
552
|
return {
|
|
547
553
|
...r,
|
|
548
|
-
customPalette: r.customPalette.length ? r.customPalette : ee[t] ||
|
|
554
|
+
customPalette: r.customPalette.length ? r.customPalette : ee[t] || h
|
|
549
555
|
};
|
|
550
556
|
}
|
|
551
|
-
function
|
|
552
|
-
return
|
|
557
|
+
function _a({ defaultConfig: e, userConfig: t }) {
|
|
558
|
+
return Ie({
|
|
553
559
|
defaultConfig: e,
|
|
554
560
|
userConfig: t
|
|
555
561
|
});
|
|
556
562
|
}
|
|
557
|
-
let
|
|
563
|
+
let va = x({
|
|
558
564
|
get() {
|
|
559
565
|
return !!N.dataset && N.dataset.length;
|
|
560
566
|
},
|
|
561
567
|
set(e) {
|
|
562
568
|
return e;
|
|
563
569
|
}
|
|
564
|
-
}), H = O(
|
|
570
|
+
}), H = O(ga()), ya = x(() => H.value.chart.userOptions.useCursorPointer), U = O({
|
|
565
571
|
dataLabels: { show: !0 },
|
|
566
572
|
showTooltip: !0,
|
|
567
573
|
showTable: !1,
|
|
568
574
|
isStacked: !1,
|
|
569
575
|
useIndividualScale: !1
|
|
570
576
|
});
|
|
571
|
-
function
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
577
|
+
function ba() {
|
|
578
|
+
let e = H.value.chart.grid.labels.yAxis.stacked, t = H.value.chart.grid.labels.yAxis.useIndividualScale;
|
|
579
|
+
if (!fa.value) {
|
|
580
|
+
U.value = {
|
|
581
|
+
dataLabels: { show: !0 },
|
|
582
|
+
showTooltip: H.value.chart.tooltip.show === !0,
|
|
583
|
+
showTable: H.value.showTable === !0,
|
|
584
|
+
isStacked: e,
|
|
585
|
+
useIndividualScale: t
|
|
586
|
+
}, pa.value = e, ma.value = t, fa.value = !0;
|
|
587
|
+
return;
|
|
588
|
+
}
|
|
589
|
+
U.value.showTooltip = H.value.chart.tooltip.show === !0, e !== pa.value && (U.value.isStacked = e, pa.value = e), t !== ma.value && (U.value.useIndividualScale = t, ma.value = t), U.value.isStacked && (U.value.useIndividualScale = !0);
|
|
579
590
|
}
|
|
580
|
-
let
|
|
591
|
+
let xa = x(() => !!H.value.debug), Sa = x(() => De({
|
|
581
592
|
defaultConfig: {
|
|
582
593
|
useCssAnimation: !1,
|
|
583
594
|
showTable: !1,
|
|
@@ -633,7 +644,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
633
644
|
}
|
|
634
645
|
},
|
|
635
646
|
userConfig: H.value.skeletonConfig ?? {}
|
|
636
|
-
})),
|
|
647
|
+
})), Ca = x(() => N.config?.skeletonDataset ?? [{
|
|
637
648
|
name: "",
|
|
638
649
|
series: [
|
|
639
650
|
0,
|
|
@@ -670,22 +681,22 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
670
681
|
],
|
|
671
682
|
type: "bar",
|
|
672
683
|
color: "#CACACA"
|
|
673
|
-
}]), { loading:
|
|
684
|
+
}]), { loading: wa, FINAL_DATASET: W, manualLoading: Ta } = Ne({
|
|
674
685
|
...dt(N),
|
|
675
686
|
FINAL_CONFIG: H,
|
|
676
|
-
prepareConfig:
|
|
687
|
+
prepareConfig: ga,
|
|
677
688
|
callback: () => {
|
|
678
689
|
Promise.resolve().then(async () => {
|
|
679
|
-
(!H.value.chart.zoom.keepState || !
|
|
690
|
+
(!H.value.chart.zoom.keepState || !ko.value || K.value.start === 0 && K.value.end === 0) && await No(), U.value.showTable = H.value.showTable;
|
|
680
691
|
});
|
|
681
692
|
},
|
|
682
|
-
skeletonDataset:
|
|
683
|
-
skeletonConfig:
|
|
693
|
+
skeletonDataset: Ca.value,
|
|
694
|
+
skeletonConfig: De({
|
|
684
695
|
defaultConfig: H.value,
|
|
685
|
-
userConfig:
|
|
696
|
+
userConfig: Sa.value
|
|
686
697
|
})
|
|
687
698
|
});
|
|
688
|
-
function
|
|
699
|
+
function Ea(e) {
|
|
689
700
|
let t = /* @__PURE__ */ new WeakMap();
|
|
690
701
|
return (n, ...r) => {
|
|
691
702
|
let i = t.get(n), a = JSON.stringify(r);
|
|
@@ -694,31 +705,31 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
694
705
|
return i || (i = /* @__PURE__ */ new Map(), t.set(n, i)), i.set(a, o), o;
|
|
695
706
|
};
|
|
696
707
|
}
|
|
697
|
-
let
|
|
708
|
+
let Da = Ea((e, t) => ce({
|
|
698
709
|
data: e,
|
|
699
710
|
threshold: t
|
|
700
|
-
})),
|
|
701
|
-
get: () => Math.max(...
|
|
711
|
+
})), Oa = (e) => Da(e, H.value.downsample.threshold), G = x({
|
|
712
|
+
get: () => Math.max(...W.value.map((e) => Oa(e.series).length)),
|
|
702
713
|
set: (e) => e
|
|
703
|
-
}),
|
|
714
|
+
}), K = O({
|
|
704
715
|
start: 0,
|
|
705
|
-
end:
|
|
706
|
-
}),
|
|
716
|
+
end: G.value
|
|
717
|
+
}), ka = O({
|
|
707
718
|
start: 0,
|
|
708
|
-
end:
|
|
709
|
-
}),
|
|
710
|
-
function
|
|
711
|
-
|
|
719
|
+
end: G.value
|
|
720
|
+
}), Aa = x(() => H.value.chart.zoom.preview.enable && (ka.value.start !== K.value.start || ka.value.end !== K.value.end));
|
|
721
|
+
function ja(e, t) {
|
|
722
|
+
ka.value[e] = t;
|
|
712
723
|
}
|
|
713
|
-
function
|
|
714
|
-
let e = Math.max(1, ...
|
|
715
|
-
(!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e),
|
|
724
|
+
function Ma() {
|
|
725
|
+
let e = Math.max(1, ...W.value.map((e) => Oa(e.series).length)), t = Math.max(0, Math.min(K.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(K.value.end ?? e, e));
|
|
726
|
+
(!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), K.value = {
|
|
716
727
|
start: t,
|
|
717
728
|
end: n
|
|
718
|
-
},
|
|
729
|
+
}, ka.value.start = t, ka.value.end = n, _i.value && (_i.value.setStartValue(t), _i.value.setEndValue(n));
|
|
719
730
|
}
|
|
720
|
-
let
|
|
721
|
-
let { left: e, top: t, width: n, height: r } =
|
|
731
|
+
let Na = x(() => {
|
|
732
|
+
let { left: e, top: t, width: n, height: r } = Y.value, i = K.value.start, a = K.value.end - i, o = n / a, s = ka.value.start - i, c = ka.value.end - i, l = Math.max(0, Math.min(a, s)), u = Math.max(0, Math.min(a, c));
|
|
722
733
|
return {
|
|
723
734
|
x: e + l * o,
|
|
724
735
|
y: t,
|
|
@@ -742,25 +753,25 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
742
753
|
B.value = null;
|
|
743
754
|
return;
|
|
744
755
|
}
|
|
745
|
-
let t = e -
|
|
746
|
-
t < 0 || e >=
|
|
756
|
+
let t = e - K.value.start;
|
|
757
|
+
t < 0 || e >= K.value.end ? B.value = null : B.value = t ?? null;
|
|
747
758
|
}, { immediate: !0 });
|
|
748
|
-
let { isPrinting:
|
|
759
|
+
let { isPrinting: Pa, isImaging: Fa, generatePdf: Ia, generateImage: La } = Me({
|
|
749
760
|
elementId: `vue-ui-xy_${L.value}`,
|
|
750
761
|
fileName: H.value.chart.title.text || "vue-ui-xy",
|
|
751
762
|
options: H.value.chart.userOptions.print
|
|
752
|
-
}),
|
|
763
|
+
}), Ra = O(!1), za = x(() => we(H.value.customPalette)), Ba = x(() => {
|
|
753
764
|
let e = H.value.chart.grid.labels.yAxis.scaleMin;
|
|
754
765
|
if (e == null) return null;
|
|
755
766
|
let t = Number(e);
|
|
756
767
|
return Number.isFinite(t) ? t : null;
|
|
757
|
-
}),
|
|
768
|
+
}), Va = x(() => Ba.value === null ? Vo.value : Y.value.bottom), Ha = x(() => {
|
|
758
769
|
let e = H.value.chart.grid.labels.yAxis.scaleMax;
|
|
759
770
|
if (e == null) return null;
|
|
760
771
|
let t = Number(e);
|
|
761
772
|
return Number.isFinite(t) ? t : null;
|
|
762
|
-
}),
|
|
763
|
-
let e =
|
|
773
|
+
}), Ua = x(() => Ba.value !== null || Ha.value !== null), Wa = x(() => {
|
|
774
|
+
let e = Ya.value.filter((e) => !I.value.includes(e.id)).flatMap((e) => Array.isArray(e.series) ? e.series : []).filter(Number.isFinite);
|
|
764
775
|
return e.length ? {
|
|
765
776
|
min: Math.min(...e),
|
|
766
777
|
max: Math.max(...e)
|
|
@@ -769,195 +780,215 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
769
780
|
max: 1
|
|
770
781
|
};
|
|
771
782
|
});
|
|
772
|
-
function
|
|
783
|
+
function Ga(e, t) {
|
|
773
784
|
let n = Number.isFinite(e) ? e : 0, r = Number.isFinite(t) ? t : 1;
|
|
774
785
|
return n === r ? r = n + 1 : n > r && ([n, r] = [r, n]), {
|
|
775
786
|
min: n,
|
|
776
787
|
max: r
|
|
777
788
|
};
|
|
778
789
|
}
|
|
779
|
-
let
|
|
780
|
-
let { min: e, max: t } =
|
|
781
|
-
if (!
|
|
790
|
+
let Ka = x(() => {
|
|
791
|
+
let { min: e, max: t } = Wa.value;
|
|
792
|
+
if (!Ua.value) {
|
|
782
793
|
let t = e;
|
|
783
794
|
return t > 0 ? 0 : t;
|
|
784
795
|
}
|
|
785
|
-
let n =
|
|
786
|
-
return
|
|
787
|
-
}),
|
|
788
|
-
let { min: e, max: t } =
|
|
789
|
-
if (!
|
|
796
|
+
let n = Ba.value === null ? e > 0 ? 0 : e : Ba.value, r = Ha.value === null ? t : Ha.value;
|
|
797
|
+
return Ga(e < n ? e : n, t > r ? t : r).min;
|
|
798
|
+
}), qa = x(() => {
|
|
799
|
+
let { min: e, max: t } = Wa.value;
|
|
800
|
+
if (!Ua.value) {
|
|
790
801
|
let e = t;
|
|
791
|
-
return
|
|
802
|
+
return Ka.value === e ? e + 1 : e;
|
|
792
803
|
}
|
|
793
|
-
let n =
|
|
794
|
-
return
|
|
795
|
-
}),
|
|
796
|
-
let n =
|
|
804
|
+
let n = Ba.value === null ? e > 0 ? 0 : e : Ba.value, r = Ha.value === null ? t : Ha.value;
|
|
805
|
+
return Ga(e < n ? e : n, t > r ? t : r).max;
|
|
806
|
+
}), q = x(() => H.value.chart.grid.labels.yAxis.useNiceScale ? de(Ka.value, qa.value < 0 ? 0 : qa.value, H.value.chart.grid.labels.yAxis.commonScaleSteps) : ue(Ka.value, qa.value < 0 ? 0 : qa.value, H.value.chart.grid.labels.yAxis.commonScaleSteps)), Ja = x(() => [null, void 0].includes(H.value.chart.grid.labels.yAxis.scaleMin) ? q.value.min >= 0 ? 0 : Math.abs(q.value.min) : -q.value.min), Ya = x(() => Ai.value ? W.value.map((e, t) => {
|
|
807
|
+
let n = Oa(e.series), r = `uniqueId_${t}`;
|
|
797
808
|
return {
|
|
798
809
|
...e,
|
|
799
810
|
slotAbsoluteIndex: t,
|
|
800
|
-
series: n.map((e) =>
|
|
801
|
-
color:
|
|
811
|
+
series: n.map((e) => _e(e) ? e : null).slice(K.value.start, K.value.end),
|
|
812
|
+
color: Te(e.color ? e.color : za.value[t] ? za.value[t] : h[t]),
|
|
802
813
|
id: r,
|
|
803
814
|
scaleLabel: e.scaleLabel || r
|
|
804
815
|
};
|
|
805
|
-
}) :
|
|
816
|
+
}) : W.value), Xa = x(() => Ya.value.map((e, t) => ({
|
|
806
817
|
absoluteIndex: t,
|
|
807
818
|
...e,
|
|
808
|
-
series: e.series.map((e) => e +
|
|
819
|
+
series: e.series.map((e) => e + Ja.value),
|
|
809
820
|
absoluteValues: e.series,
|
|
810
|
-
segregate: () =>
|
|
821
|
+
segregate: () => cs(e),
|
|
811
822
|
isSegregated: I.value.includes(e.id)
|
|
812
|
-
}))),
|
|
823
|
+
}))), Za = x(() => Ya.value.map((e, t) => ({
|
|
813
824
|
...e,
|
|
814
|
-
series: e.series.map((e) => e +
|
|
825
|
+
series: e.series.map((e) => e + Ja.value),
|
|
815
826
|
absoluteValues: e.series
|
|
816
|
-
})).filter((e) => !I.value.includes(e.id))),
|
|
817
|
-
function
|
|
827
|
+
})).filter((e) => !I.value.includes(e.id))), Qa = x(() => I.value.length === Xa.value.length), J = x(() => H.value.chart.grid.labels.yAxis.position === "right");
|
|
828
|
+
function $a() {
|
|
818
829
|
let e = 0;
|
|
819
830
|
Ti.value && (e = Array.from(Ti.value.querySelectorAll("text")).reduce((e, t) => {
|
|
820
831
|
let n = t.getComputedTextLength();
|
|
821
|
-
return
|
|
832
|
+
return n > e ? n : e;
|
|
822
833
|
}, 0));
|
|
823
|
-
let t = Ci.value ? Ci.value.getBoundingClientRect().width + H.value.chart.grid.labels.axis.yLabelOffsetX + V.value.yAxis : 0, n = H.value.chart.grid.labels.yAxis.crosshairSize;
|
|
824
|
-
return
|
|
834
|
+
let t = Ci.value ? Ci.value.getBoundingClientRect().width + H.value.chart.grid.labels.axis.yLabelOffsetX + V.value.yAxis : 0, n = e + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + H.value.chart.grid.labels.yAxis.crosshairSize;
|
|
835
|
+
return {
|
|
836
|
+
left: J.value ? 0 : n + t,
|
|
837
|
+
right: J.value ? n + t : 0,
|
|
838
|
+
scaleLabelsOffset: n,
|
|
839
|
+
yAxisLabelWidth: t
|
|
840
|
+
};
|
|
825
841
|
}
|
|
826
|
-
let
|
|
827
|
-
function
|
|
842
|
+
let eo = O(0), to = O(0);
|
|
843
|
+
function no() {
|
|
828
844
|
let e = wi.value;
|
|
829
845
|
if (!e) {
|
|
830
|
-
|
|
846
|
+
eo.value = 0, to.value = 0;
|
|
831
847
|
return;
|
|
832
848
|
}
|
|
833
849
|
try {
|
|
834
850
|
let t = e.getBBox();
|
|
835
|
-
|
|
851
|
+
eo.value = t?.height ?? 0, to.value = t?.x ?? 0;
|
|
836
852
|
} catch {
|
|
837
|
-
|
|
853
|
+
eo.value = 0, to.value = 0;
|
|
838
854
|
}
|
|
839
855
|
}
|
|
840
|
-
let
|
|
856
|
+
let ro = x(() => {
|
|
841
857
|
let e = 0;
|
|
842
858
|
if (Si.value) try {
|
|
843
859
|
e = Si.value.getBBox().height || 0;
|
|
844
860
|
} catch {
|
|
845
861
|
e = 0;
|
|
846
862
|
}
|
|
847
|
-
return e +
|
|
848
|
-
}),
|
|
863
|
+
return e + eo.value + V.value.xAxis;
|
|
864
|
+
}), io = x(() => W.value.some((e) => e.useProgression));
|
|
865
|
+
function ao() {
|
|
866
|
+
return H.value.chart.grid.labels.yAxis.crosshairSize + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + H.value.chart.grid.labels.yAxis.labelWidth + H.value.chart.grid.labels.axis.yLabelOffsetX + V.value.dataLabels * .8;
|
|
867
|
+
}
|
|
868
|
+
let Y = x(() => {
|
|
849
869
|
ra.value;
|
|
850
|
-
let e = 0;
|
|
851
|
-
H.value.chart.grid.labels.show
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
870
|
+
let e = 0, t = 0, n = 0, r = 0;
|
|
871
|
+
if (H.value.chart.grid.labels.show) if (U.value.useIndividualScale && !U.value.isStacked) J.value ? t = (W.value.length - I.value.length) * ao() : e = (W.value.length - I.value.length) * (H.value.chart.grid.labels.yAxis.labelWidth + 36);
|
|
872
|
+
else if (U.value.useIndividualScale && U.value.isStacked) {
|
|
873
|
+
let n = H.value.chart.grid.labels.yAxis.labelWidth + 36;
|
|
874
|
+
J.value ? t = n : e = n;
|
|
875
|
+
} else {
|
|
876
|
+
let i = $a();
|
|
877
|
+
e = i.left, t = i.right, n = i.scaleLabelsOffset, r = i.yAxisLabelWidth;
|
|
878
|
+
}
|
|
879
|
+
let i = H.value.chart.labels.fontSize * 1.1, a = io.value ? 24 : 6;
|
|
880
|
+
wi.value && to.value < 0 && (e += Math.abs(to.value));
|
|
881
|
+
let o = F.value - e - t - a - H.value.chart.padding?.left - H.value.chart.padding?.right;
|
|
855
882
|
return {
|
|
856
|
-
top: H.value.chart.padding?.top +
|
|
857
|
-
right:
|
|
858
|
-
bottom: ji.value -
|
|
859
|
-
left: e + H.value.chart.grid.labels.yAxis.crosshairSize
|
|
860
|
-
height: ji.value -
|
|
861
|
-
width:
|
|
883
|
+
top: H.value.chart.padding?.top + i,
|
|
884
|
+
right: e + (J.value ? 0 : H.value.chart.grid.labels.yAxis.crosshairSize) + H.value.chart.padding?.left + o,
|
|
885
|
+
bottom: ji.value - ro.value - H.value.chart.padding?.bottom - H.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
886
|
+
left: e + (J.value ? 0 : H.value.chart.grid.labels.yAxis.crosshairSize) + H.value.chart.padding?.left,
|
|
887
|
+
height: ji.value - ro.value - H.value.chart.padding?.top - H.value.chart.padding?.bottom - i - H.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
888
|
+
width: o,
|
|
862
889
|
scaleLabelX: e,
|
|
890
|
+
rightScaleLabelX: t,
|
|
891
|
+
scaleLabelsOffset: n,
|
|
892
|
+
yAxisLabelWidth: r,
|
|
863
893
|
individualOffsetX: 36
|
|
864
894
|
};
|
|
865
|
-
}),
|
|
866
|
-
let e = +(H.value.chart.grid.position === "middle"), t =
|
|
895
|
+
}), oo = x(() => {
|
|
896
|
+
let e = +(H.value.chart.grid.position === "middle"), t = Z.value + e, n = v(Y.value?.top), r = v(Y.value?.bottom);
|
|
867
897
|
return Array.from({ length: t }).map((e, t) => {
|
|
868
|
-
let i =
|
|
898
|
+
let i = H.value.chart.grid.position === "middle" ? Ss(t) : xs(t);
|
|
869
899
|
return `M${i},${n} L${i},${r}`;
|
|
870
900
|
}).join(" ");
|
|
871
|
-
}),
|
|
901
|
+
}), so = x(() => {
|
|
872
902
|
if (!H.value.chart.grid.labels.xAxis.showCrosshairs) return "";
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
903
|
+
bs.value;
|
|
904
|
+
let e = H.value.chart.grid.labels.xAxis.crosshairSize, t = H.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
|
|
905
|
+
return bo.value.map((n, r) => {
|
|
906
|
+
if (!n || !n.text) return null;
|
|
907
|
+
let i = xs(r);
|
|
908
|
+
return `M${i},${t ? Vo.value - (Vo.value === Y.value?.bottom ? 0 : e / 2) : Y.value?.bottom} L${i},${t ? Vo.value + e / (Vo.value === Y.value?.bottom ? 1 : 2) : Y.value?.bottom + e}`;
|
|
878
909
|
}).filter(Boolean).join(" ");
|
|
879
910
|
});
|
|
880
|
-
function
|
|
911
|
+
function co() {
|
|
881
912
|
return !!di?.vnode.props?.onSelectTimeLabel;
|
|
882
913
|
}
|
|
883
|
-
function
|
|
914
|
+
function lo(e, t, n) {
|
|
884
915
|
return Ji.value ||= document.createElement("canvas").getContext("2d"), Ji.value.font = `${n || "normal"} ${e}px ${t || "sans-serif"}`, Ji.value;
|
|
885
916
|
}
|
|
886
|
-
function
|
|
917
|
+
function uo() {
|
|
887
918
|
let e = hi.value.querySelectorAll(".vue-ui-xy-tag");
|
|
888
919
|
e.length && Array.from(e).forEach((e) => e.style.opacity = "0");
|
|
889
920
|
}
|
|
890
|
-
function
|
|
921
|
+
function fo(e, t, n, r, i) {
|
|
891
922
|
n && (qi.value[`${e}_${t}_${r}_${i}`] = n);
|
|
892
923
|
}
|
|
893
|
-
let
|
|
894
|
-
async function
|
|
895
|
-
await
|
|
924
|
+
let po = O(!1);
|
|
925
|
+
async function mo(e = !1) {
|
|
926
|
+
await rt(), po.value = e, Wi.value && (Ki.value = e);
|
|
896
927
|
}
|
|
897
|
-
function
|
|
928
|
+
function ho() {
|
|
898
929
|
Fi.value = !Fi.value;
|
|
899
930
|
}
|
|
900
|
-
let
|
|
931
|
+
let X = O([]), go = O([]), _o = 0;
|
|
901
932
|
ht(() => {
|
|
902
|
-
let e = ++
|
|
933
|
+
let e = ++_o;
|
|
903
934
|
(async () => {
|
|
904
|
-
let t = Math.max(...
|
|
935
|
+
let t = Math.max(...W.value.map((e) => ce({
|
|
905
936
|
data: e.series,
|
|
906
937
|
threshold: H.value.downsample.threshold
|
|
907
|
-
}).length)), n = await
|
|
938
|
+
}).length)), n = await Ae({
|
|
908
939
|
values: H.value.chart.grid.labels.xAxisLabels.values,
|
|
909
940
|
maxDatapoints: t,
|
|
910
941
|
formatter: H.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
911
|
-
start:
|
|
912
|
-
end:
|
|
942
|
+
start: K.value.start,
|
|
943
|
+
end: K.value.end
|
|
913
944
|
});
|
|
914
|
-
e ===
|
|
945
|
+
e === _o && (X.value = n);
|
|
915
946
|
})();
|
|
916
947
|
});
|
|
917
|
-
let
|
|
948
|
+
let vo = 0;
|
|
918
949
|
ht(() => {
|
|
919
|
-
let e = ++
|
|
950
|
+
let e = ++vo;
|
|
920
951
|
(async () => {
|
|
921
|
-
let t = Math.max(...
|
|
952
|
+
let t = Math.max(...W.value.map((e) => ce({
|
|
922
953
|
data: e.series,
|
|
923
954
|
threshold: H.value.downsample.threshold
|
|
924
|
-
}).length)), n = await
|
|
955
|
+
}).length)), n = await Ae({
|
|
925
956
|
values: H.value.chart.grid.labels.xAxisLabels.values,
|
|
926
957
|
maxDatapoints: t,
|
|
927
958
|
formatter: H.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
928
959
|
start: 0,
|
|
929
|
-
end:
|
|
960
|
+
end: G.value
|
|
930
961
|
});
|
|
931
|
-
e ===
|
|
962
|
+
e === vo && (go.value = n);
|
|
932
963
|
})();
|
|
933
964
|
});
|
|
934
|
-
let
|
|
965
|
+
let yo = x(() => {
|
|
935
966
|
let e = H.value.chart.grid.labels.xAxisLabels.modulo;
|
|
936
|
-
return
|
|
937
|
-
}),
|
|
938
|
-
let e = H.value.chart.grid.labels.xAxisLabels, t =
|
|
939
|
-
return
|
|
940
|
-
}),
|
|
967
|
+
return X.value.length ? Math.min(e, [...new Set(X.value.map((e) => e.text))].length) : e;
|
|
968
|
+
}), bo = x(() => {
|
|
969
|
+
let e = H.value.chart.grid.labels.xAxisLabels, t = X.value || [], n = go.value || [], r = K.value.start ?? 0, i = B.value, a = Z.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
|
|
970
|
+
return Se(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, yo.value || 1), o, s, r, i, a);
|
|
971
|
+
}), xo = x(() => (bo.value || []).map((e) => e?.text ?? "").join("|"));
|
|
941
972
|
st(() => {
|
|
942
973
|
requestAnimationFrame(() => {
|
|
943
|
-
|
|
974
|
+
no();
|
|
944
975
|
}), mt([
|
|
945
|
-
() =>
|
|
976
|
+
() => xo.value,
|
|
946
977
|
() => H.value.chart.grid.labels.xAxisLabels.rotation,
|
|
947
978
|
() => V.value.xAxis,
|
|
948
979
|
() => F.value,
|
|
949
980
|
() => ji.value
|
|
950
981
|
], async () => {
|
|
951
|
-
await
|
|
952
|
-
|
|
982
|
+
await rt(), requestAnimationFrame(() => {
|
|
983
|
+
no();
|
|
953
984
|
});
|
|
954
985
|
}, { flush: "post" });
|
|
955
986
|
}), ot(() => {
|
|
956
|
-
|
|
987
|
+
eo.value = 0, to.value = 0, aa.stop();
|
|
957
988
|
});
|
|
958
|
-
function
|
|
989
|
+
function So(e, t) {
|
|
959
990
|
li("selectTimeLabel", {
|
|
960
|
-
datapoint:
|
|
991
|
+
datapoint: Za.value.map((e) => ({
|
|
961
992
|
shape: e.shape ?? e.type === "bar" ? "square" : "circle",
|
|
962
993
|
name: e.name,
|
|
963
994
|
color: e.color,
|
|
@@ -971,70 +1002,70 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
971
1002
|
label: e.text
|
|
972
1003
|
});
|
|
973
1004
|
}
|
|
974
|
-
let
|
|
975
|
-
let e = ua((
|
|
1005
|
+
let Z = x(() => {
|
|
1006
|
+
let e = ua((K.value.end ?? 0) - (K.value.start ?? 0));
|
|
976
1007
|
return Math.max(1, e);
|
|
977
1008
|
});
|
|
978
|
-
function
|
|
1009
|
+
function Co(e) {
|
|
979
1010
|
R.value = e;
|
|
980
1011
|
}
|
|
981
|
-
function
|
|
1012
|
+
function wo() {
|
|
982
1013
|
U.value.isStacked = !U.value.isStacked, U.value.isStacked ? U.value.useIndividualScale = !0 : U.value.useIndividualScale = H.value.chart.grid.labels.yAxis.useIndividualScale;
|
|
983
1014
|
}
|
|
984
|
-
function
|
|
985
|
-
|
|
1015
|
+
function To(e) {
|
|
1016
|
+
xa.value && e.autoScaling && (H.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${e.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), H.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${e.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
|
|
986
1017
|
}
|
|
987
|
-
function
|
|
1018
|
+
function Eo(e, t) {
|
|
988
1019
|
let n = ua(e), r = Array(n).fill(0);
|
|
989
1020
|
for (let e = 0; e < t.length && e < n; e += 1) r[e] = t[e] ?? 0;
|
|
990
1021
|
return r;
|
|
991
1022
|
}
|
|
992
|
-
function
|
|
993
|
-
let t = Math.max(...
|
|
1023
|
+
function Do(e) {
|
|
1024
|
+
let t = Math.max(...W.value.map((e) => Oa(e.series).length));
|
|
994
1025
|
return e > t ? t : e < 0 || H.value.chart.zoom.startIndex !== null && e < H.value.chart.zoom.startIndex ? H.value.chart.zoom.startIndex === null ? 1 : H.value.chart.zoom.startIndex + 1 : e;
|
|
995
1026
|
}
|
|
996
|
-
let
|
|
997
|
-
function
|
|
1027
|
+
let Oo = O(!1), ko = O(!1), Ao = O(0), jo = O(0);
|
|
1028
|
+
function Mo(e, t) {
|
|
998
1029
|
let n = Number(e), r = Number(t);
|
|
999
1030
|
return !Number.isFinite(n) || !Number.isFinite(r) ? !1 : !Object.is(n, r);
|
|
1000
1031
|
}
|
|
1001
|
-
function
|
|
1002
|
-
if (!
|
|
1003
|
-
|
|
1032
|
+
function No() {
|
|
1033
|
+
if (!Oo.value) {
|
|
1034
|
+
Oo.value = !0;
|
|
1004
1035
|
try {
|
|
1005
|
-
let { startIndex: e, endIndex: t } = H.value.chart.zoom, n = H.value.chart.zoom.keepState ? Math.max(0, ...
|
|
1036
|
+
let { startIndex: e, endIndex: t } = H.value.chart.zoom, n = H.value.chart.zoom.keepState ? Math.max(0, ...W.value.map((e) => Oa(e.series).length)) : Math.max(...W.value.map((e) => Oa(e.series).length));
|
|
1006
1037
|
if (H.value.chart.zoom.keepState && n <= 0) return;
|
|
1007
|
-
|
|
1008
|
-
let r = e ?? 0, i = t == null ? n : Math.min(
|
|
1009
|
-
|
|
1038
|
+
Ao.value = 0, jo.value = n;
|
|
1039
|
+
let r = e ?? 0, i = t == null ? n : Math.min(Do(t + 1), n);
|
|
1040
|
+
Po.value = !0, K.value.start = r, K.value.end = i, ka.value.start = r, ka.value.end = i, Ma(), ko.value = !0;
|
|
1010
1041
|
} finally {
|
|
1011
1042
|
queueMicrotask(() => {
|
|
1012
|
-
|
|
1013
|
-
}),
|
|
1043
|
+
Po.value = !1;
|
|
1044
|
+
}), Oo.value = !1;
|
|
1014
1045
|
}
|
|
1015
1046
|
}
|
|
1016
1047
|
}
|
|
1017
|
-
let
|
|
1018
|
-
function
|
|
1019
|
-
if (
|
|
1048
|
+
let Po = O(!1);
|
|
1049
|
+
function Fo(e) {
|
|
1050
|
+
if (Oo.value || Po.value) return;
|
|
1020
1051
|
let t = Number(e);
|
|
1021
1052
|
li("zoomStart", {
|
|
1022
1053
|
index: t,
|
|
1023
|
-
isZoom:
|
|
1024
|
-
}), Number.isFinite(t) && t !==
|
|
1054
|
+
isZoom: Mo(t, Ao.value)
|
|
1055
|
+
}), Number.isFinite(t) && t !== K.value.start && (K.value.start = t, ka.value.start = t, Ma());
|
|
1025
1056
|
}
|
|
1026
|
-
function
|
|
1027
|
-
if (
|
|
1028
|
-
let t =
|
|
1057
|
+
function Io(e) {
|
|
1058
|
+
if (Oo.value || Po.value) return;
|
|
1059
|
+
let t = Do(e);
|
|
1029
1060
|
li("zoomEnd", {
|
|
1030
1061
|
index: t,
|
|
1031
|
-
isZoom:
|
|
1032
|
-
}), t !==
|
|
1062
|
+
isZoom: Mo(t, jo.value)
|
|
1063
|
+
}), t !== K.value.end && (K.value.end = t, ka.value.end = t, Ma());
|
|
1033
1064
|
}
|
|
1034
|
-
async function
|
|
1035
|
-
await
|
|
1065
|
+
async function Lo() {
|
|
1066
|
+
await No(), li("zoomReset");
|
|
1036
1067
|
}
|
|
1037
|
-
function
|
|
1068
|
+
function Ro(e) {
|
|
1038
1069
|
return ![
|
|
1039
1070
|
null,
|
|
1040
1071
|
void 0,
|
|
@@ -1043,47 +1074,47 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1043
1074
|
-Infinity
|
|
1044
1075
|
].includes(e);
|
|
1045
1076
|
}
|
|
1046
|
-
let
|
|
1047
|
-
function Ro(e) {
|
|
1048
|
-
return e / (Io(Lo.value) ? Lo.value : 1);
|
|
1049
|
-
}
|
|
1050
|
-
let zo = b(() => isNaN(Ro(qa.value)) ? q.value?.bottom : q.value?.bottom - q.value.height * Ro(qa.value));
|
|
1077
|
+
let zo = x(() => q.value.max + Ja.value);
|
|
1051
1078
|
function Bo(e) {
|
|
1052
|
-
|
|
1053
|
-
return !Number.isFinite(e) || !Number.isFinite(n) || n === 0 ? q.value?.bottom : q.value?.bottom - q.value.height * ((e - t) / n);
|
|
1079
|
+
return e / (Ro(zo.value) ? zo.value : 1);
|
|
1054
1080
|
}
|
|
1055
|
-
let Vo =
|
|
1081
|
+
let Vo = x(() => isNaN(Bo(Ja.value)) ? Y.value?.bottom : Y.value?.bottom - Y.value.height * Bo(Ja.value));
|
|
1056
1082
|
function Ho(e) {
|
|
1057
|
-
let t =
|
|
1058
|
-
return e
|
|
1083
|
+
let t = q.value.min, n = q.value.max - t;
|
|
1084
|
+
return !Number.isFinite(e) || !Number.isFinite(n) || n === 0 ? Y.value?.bottom : Y.value?.bottom - Y.value.height * ((e - t) / n);
|
|
1059
1085
|
}
|
|
1060
|
-
|
|
1061
|
-
|
|
1086
|
+
let Uo = x(() => q.value.min <= 0 && q.value.max >= 0 ? Ho(0) : q.value.min > 0 ? Ho(q.value.min) : Ho(q.value.max));
|
|
1087
|
+
function Wo(e) {
|
|
1088
|
+
let t = ![null, void 0].includes(H.value.chart.grid.labels.yAxis.scaleMin) && H.value.chart.grid.labels.yAxis.scaleMin > 0 && Ka.value >= 0 ? Y.value?.bottom : Vo.value;
|
|
1089
|
+
return e.value >= 0 ? y(t - e.y <= 0 ? 1e-5 : t - e.y) : y(e.y - Vo.value <= 0 ? 1e-5 : e.y - Vo.value);
|
|
1062
1090
|
}
|
|
1063
|
-
|
|
1064
|
-
|
|
1091
|
+
function Go(e) {
|
|
1092
|
+
return e.value >= 0 ? y(e.zeroPosition - e.y <= 0 ? 1e-5 : e.zeroPosition - e.y) : y(e.y - e.zeroPosition <= 0 ? 1e-5 : e.zeroPosition - e.y);
|
|
1093
|
+
}
|
|
1094
|
+
let Ko = x(() => {
|
|
1095
|
+
let e = Math.max(1, Z.value);
|
|
1065
1096
|
return {
|
|
1066
|
-
bar: da(
|
|
1067
|
-
plot:
|
|
1068
|
-
line:
|
|
1097
|
+
bar: da(Math.max(1, Y.value.width), e * Math.max(1, Ya.value.filter((e) => e.type === "bar" && !I.value.includes(e.id)).length), 1),
|
|
1098
|
+
plot: ys.value,
|
|
1099
|
+
line: ys.value
|
|
1069
1100
|
};
|
|
1070
1101
|
});
|
|
1071
|
-
function
|
|
1072
|
-
return U.value.useIndividualScale && U.value.isStacked ?
|
|
1102
|
+
function qo() {
|
|
1103
|
+
return U.value.useIndividualScale && U.value.isStacked ? Ko.value.line - Y.value.width / Z.value * .1 : Ko.value.bar;
|
|
1073
1104
|
}
|
|
1074
|
-
function
|
|
1075
|
-
return U.value.useIndividualScale && U.value.isStacked ? e.x +
|
|
1105
|
+
function Jo(e) {
|
|
1106
|
+
return U.value.useIndividualScale && U.value.isStacked ? e.x + Y.value.width / Z.value * .05 : e.x + Ko.value.bar / 2;
|
|
1076
1107
|
}
|
|
1077
|
-
function
|
|
1108
|
+
function Yo(e) {
|
|
1078
1109
|
return e.value >= 0 ? e.y : [
|
|
1079
1110
|
null,
|
|
1080
1111
|
void 0,
|
|
1081
1112
|
NaN,
|
|
1082
1113
|
Infinity,
|
|
1083
1114
|
-Infinity
|
|
1084
|
-
].includes(
|
|
1115
|
+
].includes(Vo.value) ? Y?.bottom.value : Vo.value;
|
|
1085
1116
|
}
|
|
1086
|
-
function
|
|
1117
|
+
function Xo(e) {
|
|
1087
1118
|
return e.value >= 0 ? e.y : [
|
|
1088
1119
|
null,
|
|
1089
1120
|
void 0,
|
|
@@ -1092,8 +1123,8 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1092
1123
|
-Infinity
|
|
1093
1124
|
].includes(e.zeroPosition) ? 0 : e.zeroPosition;
|
|
1094
1125
|
}
|
|
1095
|
-
let
|
|
1096
|
-
function
|
|
1126
|
+
let Zo = O(null);
|
|
1127
|
+
function Qo(e) {
|
|
1097
1128
|
let t = z.value;
|
|
1098
1129
|
if (!t) return null;
|
|
1099
1130
|
if (t.createSVGPoint && t.getScreenCTM) {
|
|
@@ -1121,43 +1152,43 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1121
1152
|
ok: !0
|
|
1122
1153
|
};
|
|
1123
1154
|
}
|
|
1124
|
-
let
|
|
1125
|
-
function
|
|
1126
|
-
$i.value = null, !Fi.value && (
|
|
1127
|
-
|
|
1128
|
-
let t =
|
|
1155
|
+
let $o = 0;
|
|
1156
|
+
function es(e) {
|
|
1157
|
+
$i.value = null, !Fi.value && ($o && cancelAnimationFrame($o), $o = requestAnimationFrame(() => {
|
|
1158
|
+
$o = 0;
|
|
1159
|
+
let t = Qo(e);
|
|
1129
1160
|
if (!t || !z.value) {
|
|
1130
|
-
|
|
1161
|
+
ts();
|
|
1131
1162
|
return;
|
|
1132
1163
|
}
|
|
1133
|
-
let { left: n, right: r, top: i, bottom: a, width: o } =
|
|
1164
|
+
let { left: n, right: r, top: i, bottom: a, width: o } = Y.value;
|
|
1134
1165
|
if (t.x < n || t.x > r || t.y < i || t.y > a) {
|
|
1135
|
-
|
|
1166
|
+
ts();
|
|
1136
1167
|
return;
|
|
1137
1168
|
}
|
|
1138
|
-
let s = t.x
|
|
1139
|
-
|
|
1169
|
+
let s = Ts(t.x);
|
|
1170
|
+
s == null ? ts() : Zo.value !== s && (Zo.value = s, ec(!0, s));
|
|
1140
1171
|
}));
|
|
1141
1172
|
}
|
|
1142
|
-
function
|
|
1143
|
-
|
|
1173
|
+
function ts() {
|
|
1174
|
+
$o &&= (cancelAnimationFrame($o), 0), Zo.value = null, ec(!1, null);
|
|
1144
1175
|
}
|
|
1145
|
-
function
|
|
1146
|
-
let t =
|
|
1176
|
+
function ns(e) {
|
|
1177
|
+
let t = Qo(e);
|
|
1147
1178
|
if (t && z.value) {
|
|
1148
|
-
let { left: e, right: n, top: r, bottom: i, width: a } =
|
|
1179
|
+
let { left: e, right: n, top: r, bottom: i, width: a } = Y.value;
|
|
1149
1180
|
if (t.x >= e && t.x <= n && t.y >= r && t.y <= i) {
|
|
1150
|
-
let
|
|
1151
|
-
if (
|
|
1152
|
-
|
|
1181
|
+
let e = Ts(t.x);
|
|
1182
|
+
if (e != null) {
|
|
1183
|
+
rs(e);
|
|
1153
1184
|
return;
|
|
1154
1185
|
}
|
|
1155
1186
|
}
|
|
1156
1187
|
}
|
|
1157
|
-
|
|
1188
|
+
Zo.value != null && rs(Zo.value);
|
|
1158
1189
|
}
|
|
1159
|
-
function
|
|
1160
|
-
let t =
|
|
1190
|
+
function rs(e) {
|
|
1191
|
+
let t = Za.value.map((t) => ({
|
|
1161
1192
|
name: t.name,
|
|
1162
1193
|
value: [
|
|
1163
1194
|
null,
|
|
@@ -1173,20 +1204,20 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1173
1204
|
indexLabel: H.value.chart.grid.labels.xAxisLabels.values[e]
|
|
1174
1205
|
}), H.value.events.datapointClick && H.value.events.datapointClick({
|
|
1175
1206
|
datapoint: t,
|
|
1176
|
-
seriesIndex: e +
|
|
1207
|
+
seriesIndex: e + K.value.start
|
|
1177
1208
|
});
|
|
1178
1209
|
}
|
|
1179
|
-
function
|
|
1180
|
-
return
|
|
1210
|
+
function is() {
|
|
1211
|
+
return Xa.value.map((e) => ({
|
|
1181
1212
|
values: e.absoluteValues,
|
|
1182
1213
|
color: e.color,
|
|
1183
1214
|
name: e.name,
|
|
1184
1215
|
type: e.type
|
|
1185
1216
|
}));
|
|
1186
1217
|
}
|
|
1187
|
-
async function
|
|
1218
|
+
async function as({ scale: e = 2 } = {}) {
|
|
1188
1219
|
if (!hi.value) return;
|
|
1189
|
-
let { width: t, height: n } = hi.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await
|
|
1220
|
+
let { width: t, height: n } = hi.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Be({
|
|
1190
1221
|
domElement: hi.value,
|
|
1191
1222
|
base64: !0,
|
|
1192
1223
|
img: !0,
|
|
@@ -1201,41 +1232,41 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1201
1232
|
aspectRatio: r
|
|
1202
1233
|
};
|
|
1203
1234
|
}
|
|
1204
|
-
function
|
|
1205
|
-
I.value.length ? I.value = [] :
|
|
1235
|
+
function os() {
|
|
1236
|
+
I.value.length ? I.value = [] : Xa.value.forEach((e) => {
|
|
1206
1237
|
I.value.push(e.id);
|
|
1207
1238
|
});
|
|
1208
1239
|
}
|
|
1209
|
-
function
|
|
1210
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(),
|
|
1240
|
+
function ss(e, t) {
|
|
1241
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), cs(t));
|
|
1211
1242
|
}
|
|
1212
|
-
function
|
|
1243
|
+
function cs(e) {
|
|
1213
1244
|
if (I.value.includes(e.id)) I.value = I.value.filter((t) => t !== e.id);
|
|
1214
1245
|
else {
|
|
1215
|
-
if (I.value.length + 1 ===
|
|
1246
|
+
if (I.value.length + 1 === Ya.value.length) return;
|
|
1216
1247
|
I.value.push(e.id);
|
|
1217
1248
|
}
|
|
1218
|
-
li("selectLegend",
|
|
1249
|
+
li("selectLegend", Za.value.map((e) => ({
|
|
1219
1250
|
name: e.name,
|
|
1220
1251
|
values: e.absoluteValues,
|
|
1221
1252
|
color: e.color,
|
|
1222
1253
|
type: e.type
|
|
1223
1254
|
}))), Ui.value += 1;
|
|
1224
1255
|
}
|
|
1225
|
-
function
|
|
1226
|
-
return
|
|
1256
|
+
function ls(e) {
|
|
1257
|
+
return Xa.value.length ? Xa.value.find((t) => t.name === e) || (H.value.debug && console.warn(`VueUiXy - Series name not found "${e}"`), null) : (H.value.debug && console.warn("VueUiXy - There are no series to show."), null);
|
|
1227
1258
|
}
|
|
1228
|
-
function
|
|
1229
|
-
let t =
|
|
1230
|
-
t !== null && I.value.includes(t.id) &&
|
|
1259
|
+
function us(e) {
|
|
1260
|
+
let t = ls(e);
|
|
1261
|
+
t !== null && I.value.includes(t.id) && cs({ id: t.id });
|
|
1231
1262
|
}
|
|
1232
|
-
function
|
|
1233
|
-
let t =
|
|
1234
|
-
t !== null && (I.value.includes(t.id) ||
|
|
1263
|
+
function ds(e) {
|
|
1264
|
+
let t = ls(e);
|
|
1265
|
+
t !== null && (I.value.includes(t.id) || cs({ id: t.id }));
|
|
1235
1266
|
}
|
|
1236
|
-
let
|
|
1267
|
+
let fs = x(() => `${H.value.chart.title.text || "Chart visualization"}. ${H.value.chart.title.subtitle.text || ""}`), ps = x(() => ({ linePlot: Z.value > H.value.line.dot.hideAboveMaxSerieLength })), ms = x(() => H.value.chart.userOptions.show && (!H.value.chart.title.show || !H.value.chart.title.text)), hs = x(() => {
|
|
1237
1268
|
if (Array.isArray(H.value.chart.highlightArea)) return H.value.chart.highlightArea.map((e) => {
|
|
1238
|
-
let t = Math.min(e.to,
|
|
1269
|
+
let t = Math.min(e.to, G.value - 1);
|
|
1239
1270
|
return {
|
|
1240
1271
|
...e,
|
|
1241
1272
|
span: e.from === t ? 1 : t < e.from ? 0 : t - e.from + 1
|
|
@@ -1243,26 +1274,26 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1243
1274
|
});
|
|
1244
1275
|
let e = {
|
|
1245
1276
|
...H.value.chart.highlightArea,
|
|
1246
|
-
to: Math.min(H.value.chart.highlightArea.to,
|
|
1277
|
+
to: Math.min(H.value.chart.highlightArea.to, G.value - 1)
|
|
1247
1278
|
};
|
|
1248
1279
|
return [{
|
|
1249
1280
|
...e,
|
|
1250
1281
|
span: e.from === e.to ? 1 : e.to < e.from ? 0 : e.to - e.from + 1
|
|
1251
1282
|
}];
|
|
1252
|
-
}),
|
|
1283
|
+
}), gs = x(() => Ai.value ? W.value.map((e, t) => ({
|
|
1253
1284
|
...e,
|
|
1254
|
-
series:
|
|
1285
|
+
series: Oa(e.series),
|
|
1255
1286
|
id: `uniqueId_${t}`,
|
|
1256
|
-
color:
|
|
1257
|
-
})) :
|
|
1287
|
+
color: Te(e.color ? e.color : za.value[t] ? za.value[t] : h[t])
|
|
1288
|
+
})) : W.value), _s = x(() => Za.value.map((e) => {
|
|
1258
1289
|
let t = e.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
|
|
1259
1290
|
return {
|
|
1260
1291
|
id: e.id,
|
|
1261
1292
|
name: e.name,
|
|
1262
1293
|
color: e.color,
|
|
1263
|
-
values:
|
|
1294
|
+
values: Eo(Z.value, t)
|
|
1264
1295
|
};
|
|
1265
|
-
})),
|
|
1296
|
+
})), vs = x(() => ({
|
|
1266
1297
|
responsiveBreakpoint: H.value.table.responsiveBreakpoint,
|
|
1267
1298
|
roundingValues: H.value.table.rounding,
|
|
1268
1299
|
showAverage: !1,
|
|
@@ -1271,7 +1302,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1271
1302
|
fontFamily: H.value.chart.fontFamily,
|
|
1272
1303
|
prefix: H.value.chart.labels.prefix,
|
|
1273
1304
|
suffix: H.value.chart.labels.suffix,
|
|
1274
|
-
colNames:
|
|
1305
|
+
colNames: X.value.map((e, t) => H.value.table.useDefaultTimeFormat ? e.text : Js.value(t + K.value.start, H.value.table.timeFormat)),
|
|
1275
1306
|
thead: {
|
|
1276
1307
|
backgroundColor: H.value.table.th.backgroundColor,
|
|
1277
1308
|
color: H.value.table.th.color,
|
|
@@ -1284,8 +1315,42 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1284
1315
|
},
|
|
1285
1316
|
userOptions: { show: !1 },
|
|
1286
1317
|
sparkline: { animation: { show: !1 } }
|
|
1287
|
-
})),
|
|
1288
|
-
|
|
1318
|
+
})), ys = x(() => {
|
|
1319
|
+
let e = Math.max(0, Y.value?.width || 0);
|
|
1320
|
+
return H.value.chart.grid.position === "middle" ? da(e, Math.max(1, Z.value), 1) : da(e, Math.max(1, Z.value - 1), 0);
|
|
1321
|
+
}), bs = x(() => H.value.chart.grid.position === "middle" ? ys.value : Z.value <= 1 ? Math.max(0, Y.value?.width || 0) : ys.value);
|
|
1322
|
+
function xs(e) {
|
|
1323
|
+
let t = Y.value?.left || 0;
|
|
1324
|
+
return H.value.chart.grid.position === "middle" ? t + ys.value / 2 + ys.value * e : t + ys.value * e;
|
|
1325
|
+
}
|
|
1326
|
+
function Ss(e) {
|
|
1327
|
+
let t = Y.value?.left || 0;
|
|
1328
|
+
return H.value.chart.grid.position === "middle" ? t + ys.value * e : Z.value <= 1 ? t : t + ys.value * e - ys.value / 2;
|
|
1329
|
+
}
|
|
1330
|
+
function Cs(e) {
|
|
1331
|
+
return Math.max(Y.value?.left || 0, Ss(e));
|
|
1332
|
+
}
|
|
1333
|
+
function ws(e) {
|
|
1334
|
+
let t = Y.value?.left || 0, n = Y.value?.right || 0, r = Ss(e), i = r + bs.value;
|
|
1335
|
+
return Math.max(1e-5, Math.min(n, i) - Math.max(t, r));
|
|
1336
|
+
}
|
|
1337
|
+
function Ts(e) {
|
|
1338
|
+
let t = Y.value?.left || 0, n = Y.value?.right || 0;
|
|
1339
|
+
for (let r = 0; r < Z.value; r += 1) {
|
|
1340
|
+
let i = Math.max(t, Ss(r)), a = Math.min(n, Ss(r) + bs.value);
|
|
1341
|
+
if (e >= i && e <= a) return r;
|
|
1342
|
+
}
|
|
1343
|
+
return null;
|
|
1344
|
+
}
|
|
1345
|
+
function Es(e) {
|
|
1346
|
+
let t = Y.value?.left || 0, n = Y.value?.right || 0, r = Ss(e), i = r + bs.value;
|
|
1347
|
+
return Math.max(1e-5, Math.min(n, i) - Math.max(t, r));
|
|
1348
|
+
}
|
|
1349
|
+
function Ds(e) {
|
|
1350
|
+
return Math.max(1e-5, bs.value * e);
|
|
1351
|
+
}
|
|
1352
|
+
let Os = x(() => g(Xa.value.filter((e) => !I.value.includes(e.id))));
|
|
1353
|
+
function ks(e, t) {
|
|
1289
1354
|
let n = Object.create(null);
|
|
1290
1355
|
for (let r = 0; r < e.length; r += 1) {
|
|
1291
1356
|
let i = e[r], a = String(t(i));
|
|
@@ -1293,8 +1358,8 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1293
1358
|
}
|
|
1294
1359
|
return n;
|
|
1295
1360
|
}
|
|
1296
|
-
let Q =
|
|
1297
|
-
let e =
|
|
1361
|
+
let Q = x(() => {
|
|
1362
|
+
let e = ks(Os.value, (e) => e.scaleLabel), t = {};
|
|
1298
1363
|
for (let [n, r] of Object.entries(e)) {
|
|
1299
1364
|
let e = r.flatMap((e) => e.absoluteValues);
|
|
1300
1365
|
t[n] = {
|
|
@@ -1304,19 +1369,19 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1304
1369
|
};
|
|
1305
1370
|
}
|
|
1306
1371
|
return t;
|
|
1307
|
-
}),
|
|
1308
|
-
let e =
|
|
1309
|
-
return
|
|
1310
|
-
}),
|
|
1372
|
+
}), As = x(() => {
|
|
1373
|
+
let e = Ya.value.filter((e) => e.type === "bar").filter((e) => !I.value.includes(e.id)).length;
|
|
1374
|
+
return Y.value.width / Z.value / e - js.value * e;
|
|
1375
|
+
}), js = x(() => Ko.value.line * H.value.bar.periodGap), Ms = x(() => Math.max(1e-5, qo() - (U.value.useIndividualScale && U.value.isStacked ? 0 : js.value))), Ns = x(() => Ms.value * Math.min(Math.abs(H.value.bar.innerGap), .95)), Ps = x(() => {
|
|
1311
1376
|
if (!H.value.chart.zoom.minimap.show) return [];
|
|
1312
|
-
let e =
|
|
1377
|
+
let e = gs.value.filter((e) => !I.value.includes(e.id)), t = Math.max(...e.map((e) => e.series.length)), n = [];
|
|
1313
1378
|
for (let r = 0; r < t; r += 1) n.push(e.map((e) => e.series[r] || 0).reduce((e, t) => (e || 0) + (t || 0), 0));
|
|
1314
1379
|
let r = Math.min(...n);
|
|
1315
1380
|
return n.map((e) => e + (r < 0 ? Math.abs(r) : 0));
|
|
1316
|
-
}),
|
|
1381
|
+
}), Fs = x(() => H.value.chart.zoom.minimap.show ? gs.value.map((e) => ({
|
|
1317
1382
|
...e,
|
|
1318
1383
|
isVisible: !I.value.includes(e.id)
|
|
1319
|
-
})) : []),
|
|
1384
|
+
})) : []), Is = x(() => Za.value.map((e) => ({
|
|
1320
1385
|
slotAbsoluteIndex: e.slotAbsoluteIndex,
|
|
1321
1386
|
shape: e.shape || e.type === "bar" ? "square" : "circle",
|
|
1322
1387
|
name: e.name,
|
|
@@ -1326,19 +1391,19 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1326
1391
|
comments: e.comments || [],
|
|
1327
1392
|
prefix: e.prefix || H.value.chart.labels.prefix,
|
|
1328
1393
|
suffix: e.suffix || H.value.chart.labels.suffix
|
|
1329
|
-
}))),
|
|
1330
|
-
y: e >= 0 ?
|
|
1394
|
+
}))), Ls = x(() => q.value.ticks.map((e) => ({
|
|
1395
|
+
y: e >= 0 ? Vo.value - Y.value.height * Bo(e) : Vo.value + Y.value.height * Bo(Math.abs(e)),
|
|
1331
1396
|
value: e,
|
|
1332
1397
|
prefix: H.value.chart.labels.prefix,
|
|
1333
1398
|
suffix: H.value.chart.labels.suffix
|
|
1334
|
-
}))),
|
|
1399
|
+
}))), Rs = x(() => {
|
|
1335
1400
|
let e = H.value.chart.annotations;
|
|
1336
1401
|
if (!e || !Array.isArray(e) || e.every((e) => !e.show)) return [];
|
|
1337
1402
|
let t = e.filter((e) => e.show && (e.yAxis.yTop != null || e.yAxis.yBottom != null));
|
|
1338
1403
|
if (!t.length) return [];
|
|
1339
|
-
let { left: n, right: r } =
|
|
1404
|
+
let { left: n, right: r } = Y.value, i = Vo.value, a = Y.value.height, s = q.value.min, c = q.value.max - s, l = (e) => i - (e - 0) / c * a;
|
|
1340
1405
|
return t.map((e) => {
|
|
1341
|
-
let { yAxis: { yTop: t, yBottom: i, label: a } } = e, s = t != null && i != null && t !== i, c = t == null ? null : l(t), u = i == null ? null : l(i), ee =
|
|
1406
|
+
let { yAxis: { yTop: t, yBottom: i, label: a } } = e, s = t != null && i != null && t !== i, c = t == null ? null : l(t), u = i == null ? null : l(i), ee = lo(a.fontSize);
|
|
1342
1407
|
ee.font = `${a.fontSize}px sans-serif`;
|
|
1343
1408
|
let te = ee.measureText(a.text).width, d = a.fontSize, f = (a.position === "start" ? n + a.padding?.left : r - a.padding?.right) + a.offsetX, p = (c != null && u != null ? Math.min(c, u) : c ?? u) - a.fontSize / 3 + a.offsetY - a.padding?.top, m;
|
|
1344
1409
|
m = a.textAnchor === "middle" ? f - te / 2 - a.padding?.left : a.textAnchor === "end" ? f - te - a.padding?.right : f - a.padding?.left;
|
|
@@ -1375,12 +1440,12 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1375
1440
|
};
|
|
1376
1441
|
});
|
|
1377
1442
|
});
|
|
1378
|
-
function
|
|
1443
|
+
function zs(e, t) {
|
|
1379
1444
|
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;
|
|
1380
|
-
return
|
|
1445
|
+
return Ro(e[t].value) && i && H.value.line.cutNullValues;
|
|
1381
1446
|
}
|
|
1382
|
-
function
|
|
1383
|
-
let c = e.scaleSteps || H.value.chart.grid.labels.yAxis.commonScaleSteps, l = 1.0000001, u = s || !H.value.chart.grid.labels.yAxis.useNiceScale ?
|
|
1447
|
+
function Bs({ datapoint: e, totalSeries: t, gap: n, usableHeight: r, autoScaleValueMin: i, autoScaleValueMax: a, individualExtremes: o, forceExactScale: s = !1 }) {
|
|
1448
|
+
let c = e.scaleSteps || H.value.chart.grid.labels.yAxis.commonScaleSteps, l = 1.0000001, u = s || !H.value.chart.grid.labels.yAxis.useNiceScale ? ue : de, ee = o.max === o.min ? o.max * l : o.max, te = a === i ? a * l : a, d = u(o.min, ee, c), f = u(i, te, c), p = d.min >= 0 ? 0 : Math.abs(d.min), m = d.max + Math.abs(p), ne = f.max + 0, re = e.stackIndex, ie = t - 1 - re, ae = U.value.isStacked ? 1 - e.cumulatedStackRatio : 0, oe = U.value.isStacked ? r * ae + n * ie : 0, h = U.value.isStacked ? r * e.stackRatio : Y.value.height;
|
|
1384
1449
|
return {
|
|
1385
1450
|
scaleSteps: c,
|
|
1386
1451
|
individualScale: d,
|
|
@@ -1390,19 +1455,19 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1390
1455
|
individualMax: m,
|
|
1391
1456
|
autoScaleMax: ne,
|
|
1392
1457
|
yOffset: oe,
|
|
1393
|
-
individualHeight:
|
|
1394
|
-
zeroPosition:
|
|
1395
|
-
autoScaleZeroPosition:
|
|
1458
|
+
individualHeight: h,
|
|
1459
|
+
zeroPosition: Y.value?.bottom - oe - h * p / m,
|
|
1460
|
+
autoScaleZeroPosition: Y.value?.bottom - oe - h * 0 / ne
|
|
1396
1461
|
};
|
|
1397
1462
|
}
|
|
1398
|
-
let
|
|
1399
|
-
let e =
|
|
1463
|
+
let Vs = x(() => {
|
|
1464
|
+
let e = Os.value.filter((e) => [
|
|
1400
1465
|
"bar",
|
|
1401
1466
|
"line",
|
|
1402
1467
|
"plot"
|
|
1403
|
-
].includes(e.type)), t = e.length, n = H.value.chart.grid.labels.yAxis.gap, r = U.value.isStacked ? n * (t - 1) : 0, i =
|
|
1468
|
+
].includes(e.type)), t = e.length, n = H.value.chart.grid.labels.yAxis.gap, r = U.value.isStacked ? n * (t - 1) : 0, i = Y.value.height - r;
|
|
1404
1469
|
return e.filter((e) => e.type === "bar").map((e, r) => {
|
|
1405
|
-
|
|
1470
|
+
To(e);
|
|
1406
1471
|
let a = Q.value[e.scaleLabel].min, o = Q.value[e.scaleLabel].max, s = {
|
|
1407
1472
|
ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - a) / (o - a)),
|
|
1408
1473
|
valueMin: a,
|
|
@@ -1410,7 +1475,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1410
1475
|
}, c = {
|
|
1411
1476
|
max: e.scaleMax || Math.max(...e.absoluteValues) || 1,
|
|
1412
1477
|
min: e.scaleMin || Math.min(...e.absoluteValues.filter((e) => ![void 0, null].includes(e))) > 0 ? 0 : Math.min(...e.absoluteValues.filter((e) => ![null, void 0].includes(e)))
|
|
1413
|
-
}, { individualScale: l, autoScaleSteps: u, individualZero: ee, individualMax: te, autoScaleMax: d, yOffset: f, individualHeight: p, zeroPosition: m, autoScaleZeroPosition: ne } =
|
|
1478
|
+
}, { individualScale: l, autoScaleSteps: u, individualZero: ee, individualMax: te, autoScaleMax: d, yOffset: f, individualHeight: p, zeroPosition: m, autoScaleZeroPosition: ne } = Bs({
|
|
1414
1479
|
datapoint: e,
|
|
1415
1480
|
totalSeries: t,
|
|
1416
1481
|
gap: n,
|
|
@@ -1418,37 +1483,37 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1418
1483
|
autoScaleValueMin: s.valueMin,
|
|
1419
1484
|
autoScaleValueMax: s.valueMax,
|
|
1420
1485
|
individualExtremes: c
|
|
1421
|
-
}), re =
|
|
1422
|
-
let i = U.value.useIndividualScale ? (e.absoluteValues[n] + ee) / te :
|
|
1486
|
+
}), re = Xa.value.filter((e) => e.type === "bar").filter((e) => !I.value.includes(e.id)).length, ie = e.series.map((t, n) => {
|
|
1487
|
+
let i = U.value.useIndividualScale ? (e.absoluteValues[n] + ee) / te : Bo(t), a = U.value.useIndividualScale && U.value.isStacked ? Y.value?.left + Y.value.width / Z.value * n : Y.value?.left + Ko.value.bar * r + Ko.value.bar * n * re - As.value / 2 - r * js.value;
|
|
1423
1488
|
return {
|
|
1424
|
-
yOffset:
|
|
1425
|
-
individualHeight:
|
|
1426
|
-
x:
|
|
1427
|
-
y:
|
|
1489
|
+
yOffset: y(f),
|
|
1490
|
+
individualHeight: y(p),
|
|
1491
|
+
x: y(a),
|
|
1492
|
+
y: Y.value?.bottom - f - p * i,
|
|
1428
1493
|
value: e.absoluteValues[n],
|
|
1429
|
-
zeroPosition:
|
|
1430
|
-
individualMax:
|
|
1431
|
-
comment: e.comments && e.comments.slice(
|
|
1494
|
+
zeroPosition: y(m),
|
|
1495
|
+
individualMax: y(te),
|
|
1496
|
+
comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
|
|
1432
1497
|
};
|
|
1433
1498
|
}), ae = e.absoluteValues.map((e) => u.min >= 0 ? (e - Math.abs(u.min)) / (u.max - Math.abs(u.min)) : (e + Math.abs(u.min)) / (u.max + Math.abs(u.min))), oe = e.series.map((t, n) => {
|
|
1434
|
-
let i = U.value.useIndividualScale && U.value.isStacked ?
|
|
1499
|
+
let i = U.value.useIndividualScale && U.value.isStacked ? Y.value?.left + Y.value.width / Z.value * n : Y.value?.left - Ko.value.bar / 2 + Ko.value.bar * r + Ko.value.bar * n * Xa.value.filter((e) => e.type === "bar").filter((e) => !I.value.includes(e.id)).length;
|
|
1435
1500
|
return {
|
|
1436
|
-
yOffset:
|
|
1437
|
-
individualHeight:
|
|
1438
|
-
x:
|
|
1439
|
-
y:
|
|
1501
|
+
yOffset: y(f),
|
|
1502
|
+
individualHeight: y(p),
|
|
1503
|
+
x: y(i),
|
|
1504
|
+
y: y(Y.value?.bottom - y(f) - (y(p) * ae[n] || 0)),
|
|
1440
1505
|
value: e.absoluteValues[n],
|
|
1441
|
-
zeroPosition:
|
|
1442
|
-
individualMax:
|
|
1443
|
-
comment: e.comments && e.comments.slice(
|
|
1506
|
+
zeroPosition: y(m),
|
|
1507
|
+
individualMax: y(te),
|
|
1508
|
+
comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
|
|
1444
1509
|
};
|
|
1445
|
-
}),
|
|
1510
|
+
}), h = l.ticks.map((t) => ({
|
|
1446
1511
|
y: t >= 0 ? m - t / te * p : m + p * Math.abs(t) / te,
|
|
1447
1512
|
value: t,
|
|
1448
1513
|
prefix: e.prefix || H.value.chart.labels.prefix,
|
|
1449
1514
|
suffix: e.suffix || H.value.chart.labels.suffix,
|
|
1450
1515
|
datapoint: e
|
|
1451
|
-
})),
|
|
1516
|
+
})), se = u.ticks.map((t) => {
|
|
1452
1517
|
let n = (t - u.min) / (u.max - u.min);
|
|
1453
1518
|
return {
|
|
1454
1519
|
y: t >= 0 ? ne - p * n : ne + p * n,
|
|
@@ -1458,12 +1523,12 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1458
1523
|
datapoint: e
|
|
1459
1524
|
};
|
|
1460
1525
|
});
|
|
1461
|
-
return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = H.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ?
|
|
1526
|
+
return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = H.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? se : h, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? ne : m, Q.value[e.scaleLabel].individualMax = e.autoScaling ? d : te, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = f, Q.value[e.scaleLabel].individualHeight = p, Q.value[e.scaleLabel].autoScaleYLabels = se, Q.value[e.scaleLabel].unique = Os.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1, {
|
|
1462
1527
|
...e,
|
|
1463
1528
|
yOffset: f,
|
|
1464
|
-
autoScaleYLabels:
|
|
1529
|
+
autoScaleYLabels: se,
|
|
1465
1530
|
individualHeight: p,
|
|
1466
|
-
scaleYLabels: e.autoScaling ?
|
|
1531
|
+
scaleYLabels: e.autoScaling ? se : h,
|
|
1467
1532
|
individualScale: e.autoScaling ? u : l,
|
|
1468
1533
|
individualMax: e.autoScaling ? d : te,
|
|
1469
1534
|
zeroPosition: e.autoScaling ? ne : m,
|
|
@@ -1471,14 +1536,14 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1471
1536
|
groupId: Q.value[e.scaleLabel].groupId
|
|
1472
1537
|
};
|
|
1473
1538
|
});
|
|
1474
|
-
}), $ =
|
|
1475
|
-
let e =
|
|
1539
|
+
}), $ = x(() => {
|
|
1540
|
+
let e = Os.value.filter((e) => [
|
|
1476
1541
|
"bar",
|
|
1477
1542
|
"line",
|
|
1478
1543
|
"plot"
|
|
1479
|
-
].includes(e.type)), t = e.length, n = H.value.chart.grid.labels.yAxis.gap, r = U.value.isStacked ? n * (t - 1) : 0, a =
|
|
1544
|
+
].includes(e.type)), t = e.length, n = H.value.chart.grid.labels.yAxis.gap, r = U.value.isStacked ? n * (t - 1) : 0, a = Y.value.height - r;
|
|
1480
1545
|
return e.filter((e) => e.type === "line").map((e, r) => {
|
|
1481
|
-
|
|
1546
|
+
To(e);
|
|
1482
1547
|
let o = Q.value[e.scaleLabel].min, c = Q.value[e.scaleLabel].max, l = {
|
|
1483
1548
|
ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - o) / (c - o)),
|
|
1484
1549
|
valueMin: o,
|
|
@@ -1486,7 +1551,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1486
1551
|
}, ee = {
|
|
1487
1552
|
max: e.scaleMax || Math.max(...e.absoluteValues) || 1,
|
|
1488
1553
|
min: e.scaleMin || (Math.min(...e.absoluteValues) > 0 ? 0 : Math.min(...e.absoluteValues))
|
|
1489
|
-
}, { individualScale: d, autoScaleSteps: p, individualZero: m, individualMax: re, autoScaleMax: ie, yOffset: ae, individualHeight:
|
|
1554
|
+
}, { individualScale: d, autoScaleSteps: p, individualZero: m, individualMax: re, autoScaleMax: ie, yOffset: ae, individualHeight: h, zeroPosition: se, autoScaleZeroPosition: ce } = Bs({
|
|
1490
1555
|
datapoint: e,
|
|
1491
1556
|
totalSeries: t,
|
|
1492
1557
|
gap: n,
|
|
@@ -1494,76 +1559,76 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1494
1559
|
autoScaleValueMin: l.valueMin,
|
|
1495
1560
|
autoScaleValueMax: l.valueMax,
|
|
1496
1561
|
individualExtremes: ee
|
|
1497
|
-
}),
|
|
1498
|
-
let r = U.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(m)) / re :
|
|
1562
|
+
}), g = e.series.map((t, n) => {
|
|
1563
|
+
let r = U.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(m)) / re : Bo(t);
|
|
1499
1564
|
return {
|
|
1500
|
-
x:
|
|
1501
|
-
y:
|
|
1565
|
+
x: y(xs(n)),
|
|
1566
|
+
y: y(Y.value?.bottom - ae - h * r),
|
|
1502
1567
|
value: e.absoluteValues[n],
|
|
1503
|
-
comment: e.comments && e.comments.slice(
|
|
1568
|
+
comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
|
|
1504
1569
|
};
|
|
1505
|
-
}),
|
|
1506
|
-
x:
|
|
1507
|
-
y:
|
|
1570
|
+
}), le = e.absoluteValues.map((e) => p.min >= 0 ? (e - Math.abs(p.min)) / (p.max - Math.abs(p.min)) : (e + Math.abs(p.min)) / (p.max + Math.abs(p.min))), _ = e.series.map((t, n) => [void 0, null].includes(e.absoluteValues[n]) ? {
|
|
1571
|
+
x: y(xs(n)),
|
|
1572
|
+
y: se,
|
|
1508
1573
|
value: e.absoluteValues[n],
|
|
1509
|
-
comment: e.comments && e.comments.slice(
|
|
1574
|
+
comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
|
|
1510
1575
|
} : {
|
|
1511
|
-
x:
|
|
1512
|
-
y:
|
|
1576
|
+
x: y(xs(n)),
|
|
1577
|
+
y: y(Y.value?.bottom - ae - (h * le[n] || 0)),
|
|
1513
1578
|
value: e.absoluteValues[n],
|
|
1514
|
-
comment: e.comments && e.comments.slice(
|
|
1515
|
-
}),
|
|
1516
|
-
y: t >= 0 ?
|
|
1579
|
+
comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
|
|
1580
|
+
}), v = e.dashIndices && Array.isArray(e.dashIndices) && e?.dashIndices?.length > 0, ue = H.value.line.cutNullValues ? pe(g) : he(g.filter((e) => e.value !== null)), de = H.value.line.cutNullValues ? pe(_) : he(_.filter((e) => e.value !== null)), fe = H.value.line.cutNullValues ? u(g) : s(g.filter((e) => e.value !== null)), me = H.value.line.cutNullValues ? u(_) : s(_.filter((e) => e.value !== null)), ge = i(H.value.line.cutNullValues ? g : g.filter((e) => e.value !== null)), _e = i(H.value.line.cutNullValues ? _ : _.filter((e) => e.value !== null)), ve = v ? ne(H.value.line.cutNullValues ? g : g.filter((e) => e.value !== null), e.dashIndices.map((e) => e - K.value.start)) : [], ye = v ? te(H.value.line.cutNullValues ? g : g.filter((e) => e.value !== null), e.dashIndices.map((e) => e - K.value.start)) : [], be = d.ticks.map((t) => ({
|
|
1581
|
+
y: t >= 0 ? se - t / re * h : se + h * Math.abs(t) / re,
|
|
1517
1582
|
value: t,
|
|
1518
1583
|
prefix: e.prefix || H.value.chart.labels.prefix,
|
|
1519
1584
|
suffix: e.suffix || H.value.chart.labels.suffix,
|
|
1520
1585
|
datapoint: e
|
|
1521
|
-
})),
|
|
1586
|
+
})), xe = p.ticks.map((t) => {
|
|
1522
1587
|
let n = (t - p.min) / (p.max - p.min);
|
|
1523
1588
|
return {
|
|
1524
|
-
y: t >= 0 ?
|
|
1589
|
+
y: t >= 0 ? ce - h * n : ce + h * n,
|
|
1525
1590
|
value: t,
|
|
1526
1591
|
prefix: e.prefix || H.value.chart.labels.prefix,
|
|
1527
1592
|
suffix: e.suffix || H.value.chart.labels.suffix,
|
|
1528
1593
|
datapoint: e
|
|
1529
1594
|
};
|
|
1530
1595
|
});
|
|
1531
|
-
Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = H.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ?
|
|
1532
|
-
let
|
|
1596
|
+
Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = H.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? xe : be, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? ce : se, Q.value[e.scaleLabel].individualMax = e.autoScaling ? ie : re, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = ae, Q.value[e.scaleLabel].individualHeight = h, Q.value[e.scaleLabel].autoScaleYLabels = xe, Q.value[e.scaleLabel].unique = Os.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1;
|
|
1597
|
+
let Se = U.value.useIndividualScale ? e.autoScaling ? ce : se : Va.value, we = Math.max(Math.max(e.autoScaling ? ce : be.at(-1) ? be.at(-1).y : 0, Y.value?.top), Se), Ee = e.autoScaling ? _ : g, De = H.value.line.cutNullValues ? Ee : Ee.filter((e) => e.value !== null), Oe = e.absoluteValues.filter((e) => ![
|
|
1533
1598
|
null,
|
|
1534
1599
|
void 0,
|
|
1535
1600
|
NaN
|
|
1536
|
-
].includes(e)),
|
|
1601
|
+
].includes(e)), ke = !!e.temperatureColors && new Set(Oe).size <= 1;
|
|
1537
1602
|
return {
|
|
1538
1603
|
...e,
|
|
1539
|
-
isFlatTemperatureLine:
|
|
1540
|
-
temperatureColors: e.temperatureColors ? e.temperatureColors.map((e) =>
|
|
1604
|
+
isFlatTemperatureLine: ke,
|
|
1605
|
+
temperatureColors: e.temperatureColors ? e.temperatureColors.map((e) => Te(e)) : null,
|
|
1541
1606
|
yOffset: ae,
|
|
1542
|
-
autoScaleYLabels:
|
|
1543
|
-
individualHeight:
|
|
1544
|
-
scaleYLabels: e.autoScaling ?
|
|
1607
|
+
autoScaleYLabels: xe,
|
|
1608
|
+
individualHeight: h,
|
|
1609
|
+
scaleYLabels: e.autoScaling ? xe : be,
|
|
1545
1610
|
individualScale: e.autoScaling ? p : d,
|
|
1546
1611
|
individualMax: e.autoScaling ? ie : re,
|
|
1547
|
-
zeroPosition: e.autoScaling ?
|
|
1548
|
-
curve: e.useStepper ? e.autoScaling ?
|
|
1549
|
-
plots: e.autoScaling ?
|
|
1550
|
-
dashedStraight:
|
|
1551
|
-
dashedSmooth:
|
|
1552
|
-
hasDashedSegments:
|
|
1553
|
-
area: e.useArea ? e.useStepper ? i(
|
|
1554
|
-
curveAreas: e.useArea ? e.useStepper ? i(
|
|
1555
|
-
straight: e.useStepper ? e.autoScaling ?
|
|
1612
|
+
zeroPosition: e.autoScaling ? ce : se,
|
|
1613
|
+
curve: e.useStepper ? e.autoScaling ? _e : ge : e.autoScaling ? de : ue,
|
|
1614
|
+
plots: e.autoScaling ? _ : g,
|
|
1615
|
+
dashedStraight: ve,
|
|
1616
|
+
dashedSmooth: ye,
|
|
1617
|
+
hasDashedSegments: v,
|
|
1618
|
+
area: e.useArea ? e.useStepper ? i(De, we) : U.value.useIndividualScale ? H.value.line.cutNullValues ? oe(e.autoScaling ? _ : g, we) : Ce(e.autoScaling ? _.filter((e) => e.value !== null) : g.filter((e) => e.value !== null), we) : H.value.line.cutNullValues ? oe(g, we) : Ce(g.filter((e) => e.value !== null), we) : "",
|
|
1619
|
+
curveAreas: e.useArea ? e.useStepper ? i(De, we).split(";").filter(Boolean).map((e) => `M${e}Z`) : f(e.autoScaling ? H.value.line.cutNullValues ? _ : _.filter((e) => e.value !== null) : H.value.line.cutNullValues ? g : g.filter((e) => e.value !== null), we, H.value.line.cutNullValues) : [],
|
|
1620
|
+
straight: e.useStepper ? e.autoScaling ? _e : ge : e.autoScaling ? me : fe,
|
|
1556
1621
|
groupId: Q.value[e.scaleLabel].groupId
|
|
1557
1622
|
};
|
|
1558
1623
|
});
|
|
1559
|
-
}),
|
|
1560
|
-
let e =
|
|
1624
|
+
}), Hs = x(() => {
|
|
1625
|
+
let e = Os.value.filter((e) => [
|
|
1561
1626
|
"bar",
|
|
1562
1627
|
"line",
|
|
1563
1628
|
"plot"
|
|
1564
|
-
].includes(e.type)), t = e.length, n = H.value.chart.grid.labels.yAxis.gap, r = U.value.isStacked ? n * (t - 1) : 0, i =
|
|
1629
|
+
].includes(e.type)), t = e.length, n = H.value.chart.grid.labels.yAxis.gap, r = U.value.isStacked ? n * (t - 1) : 0, i = Y.value.height - r;
|
|
1565
1630
|
return e.filter((e) => e.type === "plot").map((e) => {
|
|
1566
|
-
|
|
1631
|
+
To(e);
|
|
1567
1632
|
let r = Q.value[e.scaleLabel].min, a = Q.value[e.scaleLabel].max, o = {
|
|
1568
1633
|
ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - r) / (a - r)),
|
|
1569
1634
|
valueMin: r,
|
|
@@ -1571,7 +1636,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1571
1636
|
}, s = {
|
|
1572
1637
|
max: e.scaleMax || Math.max(...e.absoluteValues) || 1,
|
|
1573
1638
|
min: e.scaleMin || Math.min(...e.absoluteValues) > 0 ? 0 : Math.min(...e.absoluteValues)
|
|
1574
|
-
}, { individualScale: c, autoScaleSteps: l, individualZero: u, individualMax: ee, autoScaleMax: te, yOffset: d, individualHeight: f, zeroPosition: p, autoScaleZeroPosition: m } =
|
|
1639
|
+
}, { individualScale: c, autoScaleSteps: l, individualZero: u, individualMax: ee, autoScaleMax: te, yOffset: d, individualHeight: f, zeroPosition: p, autoScaleZeroPosition: m } = Bs({
|
|
1575
1640
|
datapoint: e,
|
|
1576
1641
|
totalSeries: t,
|
|
1577
1642
|
gap: n,
|
|
@@ -1581,18 +1646,18 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1581
1646
|
individualExtremes: s,
|
|
1582
1647
|
forceExactScale: !0
|
|
1583
1648
|
}), ne = e.series.map((t, n) => {
|
|
1584
|
-
let r = U.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(u)) / ee :
|
|
1649
|
+
let r = U.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(u)) / ee : Bo(t);
|
|
1585
1650
|
return {
|
|
1586
|
-
x:
|
|
1587
|
-
y:
|
|
1651
|
+
x: y(xs(n)),
|
|
1652
|
+
y: y(Y.value?.bottom - d - f * r),
|
|
1588
1653
|
value: e.absoluteValues[n],
|
|
1589
|
-
comment: e.comments && e.comments.slice(
|
|
1654
|
+
comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
|
|
1590
1655
|
};
|
|
1591
1656
|
}), re = e.absoluteValues.map((e) => l.min >= 0 ? (e - Math.abs(l.min)) / (l.max - Math.abs(l.min)) : (e + Math.abs(l.min)) / (l.max + Math.abs(l.min))), ie = e.series.map((t, n) => ({
|
|
1592
|
-
x:
|
|
1593
|
-
y:
|
|
1657
|
+
x: y(xs(n)),
|
|
1658
|
+
y: y(Y.value?.bottom - d - (f * re[n] || 0)),
|
|
1594
1659
|
value: e.absoluteValues[n],
|
|
1595
|
-
comment: e.comments && e.comments.slice(
|
|
1660
|
+
comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
|
|
1596
1661
|
})), ae = c.ticks.map((t) => ({
|
|
1597
1662
|
y: t >= 0 ? p - t / ee * f : p + f * Math.abs(t) / ee,
|
|
1598
1663
|
value: t,
|
|
@@ -1609,7 +1674,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1609
1674
|
datapoint: e
|
|
1610
1675
|
};
|
|
1611
1676
|
});
|
|
1612
|
-
return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = H.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? oe : ae, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? m : p, Q.value[e.scaleLabel].individualMax = e.autoScaling ? te : ee, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = d, Q.value[e.scaleLabel].individualHeight = f, Q.value[e.scaleLabel].autoScaleYLabels = oe, Q.value[e.scaleLabel].unique =
|
|
1677
|
+
return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = H.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? oe : ae, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? m : p, Q.value[e.scaleLabel].individualMax = e.autoScaling ? te : ee, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = d, Q.value[e.scaleLabel].individualHeight = f, Q.value[e.scaleLabel].autoScaleYLabels = oe, Q.value[e.scaleLabel].unique = Os.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1, {
|
|
1613
1678
|
...e,
|
|
1614
1679
|
yOffset: d,
|
|
1615
1680
|
autoScaleYLabels: oe,
|
|
@@ -1622,7 +1687,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1622
1687
|
groupId: Q.value[e.scaleLabel].groupId
|
|
1623
1688
|
};
|
|
1624
1689
|
});
|
|
1625
|
-
}),
|
|
1690
|
+
}), Us = x(() => {
|
|
1626
1691
|
let e = $.value.map((e) => ({
|
|
1627
1692
|
name: e.name,
|
|
1628
1693
|
color: e.color,
|
|
@@ -1633,9 +1698,9 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1633
1698
|
scaleLabel: e.scaleLabel || "",
|
|
1634
1699
|
id: e.id,
|
|
1635
1700
|
yOffset: e.yOffset || 0,
|
|
1636
|
-
individualHeight: e.individualHeight ||
|
|
1701
|
+
individualHeight: e.individualHeight || Y.value.height,
|
|
1637
1702
|
autoScaleYLabels: e.autoScaleYLabels
|
|
1638
|
-
})), t =
|
|
1703
|
+
})), t = Vs.value.map((e) => ({
|
|
1639
1704
|
name: e.name,
|
|
1640
1705
|
color: e.color,
|
|
1641
1706
|
scale: e.individualScale,
|
|
@@ -1645,8 +1710,8 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1645
1710
|
scaleLabel: e.scaleLabel || "",
|
|
1646
1711
|
id: e.id,
|
|
1647
1712
|
yOffset: e.yOffset || 0,
|
|
1648
|
-
individualHeight: e.individualHeight ||
|
|
1649
|
-
})), n =
|
|
1713
|
+
individualHeight: e.individualHeight || Y.value.height
|
|
1714
|
+
})), n = Hs.value.map((e) => ({
|
|
1650
1715
|
name: e.name,
|
|
1651
1716
|
color: e.color,
|
|
1652
1717
|
scale: e.individualScale,
|
|
@@ -1656,7 +1721,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1656
1721
|
scaleLabel: e.scaleLabel || "",
|
|
1657
1722
|
id: e.id,
|
|
1658
1723
|
yOffset: e.yOffset || 0,
|
|
1659
|
-
individualHeight: e.individualHeight ||
|
|
1724
|
+
individualHeight: e.individualHeight || Y.value.height
|
|
1660
1725
|
})), r = U.value.useIndividualScale && !U.value.isStacked ? Object.values(Q.value) : [
|
|
1661
1726
|
...e,
|
|
1662
1727
|
...t,
|
|
@@ -1664,14 +1729,14 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1664
1729
|
], i = r.flatMap((e) => e).length;
|
|
1665
1730
|
return r.flatMap((e, t) => {
|
|
1666
1731
|
let n = 0;
|
|
1667
|
-
n = U.value.isStacked ?
|
|
1732
|
+
n = U.value.isStacked ? J.value ? Y.value?.right : Y.value?.left : J.value ? Y.value?.right + ao() * t : Y.value?.left / i * (t + 1);
|
|
1668
1733
|
let r = U.value.useIndividualScale && !U.value.isStacked ? e.unique ? e.name : e.groupName : e.name;
|
|
1669
1734
|
return {
|
|
1670
1735
|
unique: e.unique,
|
|
1671
1736
|
id: e.id,
|
|
1672
1737
|
groupId: e.groupId,
|
|
1673
1738
|
scaleLabel: e.scaleLabel,
|
|
1674
|
-
name:
|
|
1739
|
+
name: fe(H.value.chart.grid.labels.yAxis.serieNameFormatter, r, r, e),
|
|
1675
1740
|
color: U.value.useIndividualScale && !U.value.isStacked ? e.unique ? e.color : e.groupColor : e.color,
|
|
1676
1741
|
scale: e.scale,
|
|
1677
1742
|
yOffset: e.yOffset,
|
|
@@ -1683,7 +1748,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1683
1748
|
}))
|
|
1684
1749
|
};
|
|
1685
1750
|
});
|
|
1686
|
-
}),
|
|
1751
|
+
}), Ws = x(() => {
|
|
1687
1752
|
let e = H.value.line.interLine || {}, t = e.pairs || [], n = e.colors || [];
|
|
1688
1753
|
if (!t.length) return [];
|
|
1689
1754
|
let r = [];
|
|
@@ -1693,7 +1758,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1693
1758
|
let o = $.value.find((e) => e.name === i), s = $.value.find((e) => e.name === a);
|
|
1694
1759
|
if (!o || !s || o.type !== "line" || s.type !== "line") return;
|
|
1695
1760
|
let c = n?.[t]?.[0] ?? o.color, l = n?.[t]?.[1] ?? s.color;
|
|
1696
|
-
|
|
1761
|
+
le({
|
|
1697
1762
|
lineA: o.plots,
|
|
1698
1763
|
lineB: s.plots,
|
|
1699
1764
|
smoothA: !!o.smooth,
|
|
@@ -1709,70 +1774,70 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1709
1774
|
});
|
|
1710
1775
|
});
|
|
1711
1776
|
}), r;
|
|
1712
|
-
}),
|
|
1713
|
-
timeLabel:
|
|
1714
|
-
datapoint:
|
|
1777
|
+
}), Gs = x(() => ({
|
|
1778
|
+
timeLabel: X.value[B.value],
|
|
1779
|
+
datapoint: Is.value,
|
|
1715
1780
|
seriesIndex: B.value,
|
|
1716
|
-
series:
|
|
1717
|
-
bars:
|
|
1781
|
+
series: Xa.value,
|
|
1782
|
+
bars: Vs.value,
|
|
1718
1783
|
lines: $.value,
|
|
1719
|
-
plots:
|
|
1784
|
+
plots: Hs.value,
|
|
1720
1785
|
config: H.value
|
|
1721
|
-
})),
|
|
1786
|
+
})), Ks = O({
|
|
1722
1787
|
months: [],
|
|
1723
1788
|
shortMonths: [],
|
|
1724
1789
|
days: [],
|
|
1725
1790
|
shortDays: []
|
|
1726
|
-
}),
|
|
1791
|
+
}), qs = 0;
|
|
1727
1792
|
ht(() => {
|
|
1728
|
-
let e = ++
|
|
1793
|
+
let e = ++qs, t = H.value.chart.grid.labels.xAxisLabels.datetimeFormatter;
|
|
1729
1794
|
(async () => {
|
|
1730
|
-
let n = await
|
|
1731
|
-
e ===
|
|
1795
|
+
let n = await ke(t.locale).catch(() => ke("en"));
|
|
1796
|
+
e === qs && (Ks.value = n.data);
|
|
1732
1797
|
})();
|
|
1733
1798
|
});
|
|
1734
|
-
let
|
|
1735
|
-
let e = H.value.chart.grid.labels.xAxisLabels.datetimeFormatter, t =
|
|
1799
|
+
let Js = x(() => {
|
|
1800
|
+
let e = H.value.chart.grid.labels.xAxisLabels.datetimeFormatter, t = Oe({
|
|
1736
1801
|
useUTC: e.useUTC,
|
|
1737
|
-
locale:
|
|
1802
|
+
locale: Ks.value,
|
|
1738
1803
|
januaryAsYear: e.januaryAsYear
|
|
1739
1804
|
});
|
|
1740
1805
|
return (e, n) => {
|
|
1741
1806
|
let r = H.value.chart.grid.labels.xAxisLabels.values?.[e];
|
|
1742
1807
|
return r == null ? "" : t.formatDate(new Date(r), n);
|
|
1743
1808
|
};
|
|
1744
|
-
}),
|
|
1745
|
-
text:
|
|
1809
|
+
}), Ys = x(() => (H.value.chart.grid.labels.xAxisLabels.values || []).map((e, t) => ({
|
|
1810
|
+
text: Js.value(t, H.value.chart.zoom.timeFormat),
|
|
1746
1811
|
absoluteIndex: t
|
|
1747
|
-
}))),
|
|
1748
|
-
let e = "", t =
|
|
1749
|
-
if (
|
|
1750
|
-
absoluteIndex: B.value +
|
|
1812
|
+
}))), Xs = x(() => {
|
|
1813
|
+
let e = "", t = Is.value.map((e) => e.value).filter((e) => _e(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0), n = X.value[B.value], i = H.value.chart.tooltip.customFormat;
|
|
1814
|
+
if (be(i) && ye(() => i({
|
|
1815
|
+
absoluteIndex: B.value + K.value.start,
|
|
1751
1816
|
seriesIndex: B.value,
|
|
1752
|
-
datapoint:
|
|
1753
|
-
series:
|
|
1754
|
-
bars:
|
|
1817
|
+
datapoint: Is.value,
|
|
1818
|
+
series: Xa.value,
|
|
1819
|
+
bars: Vs.value,
|
|
1755
1820
|
lines: $.value,
|
|
1756
|
-
plots:
|
|
1821
|
+
plots: Hs.value,
|
|
1757
1822
|
config: H.value,
|
|
1758
1823
|
dateLabel: n
|
|
1759
1824
|
}))) return i({
|
|
1760
|
-
absoluteIndex: B.value +
|
|
1825
|
+
absoluteIndex: B.value + K.value.start,
|
|
1761
1826
|
seriesIndex: B.value,
|
|
1762
|
-
datapoint:
|
|
1763
|
-
series:
|
|
1764
|
-
bars:
|
|
1827
|
+
datapoint: Is.value,
|
|
1828
|
+
series: Xa.value,
|
|
1829
|
+
bars: Vs.value,
|
|
1765
1830
|
lines: $.value,
|
|
1766
|
-
plots:
|
|
1831
|
+
plots: Hs.value,
|
|
1767
1832
|
config: H.value,
|
|
1768
1833
|
dateLabel: n
|
|
1769
1834
|
});
|
|
1770
1835
|
if (n && n.text && H.value.chart.tooltip.showTimeLabel) {
|
|
1771
|
-
let t =
|
|
1836
|
+
let t = Js.value(B.value + K.value.start, H.value.chart.tooltip.timeFormat);
|
|
1772
1837
|
e += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${H.value.chart.tooltip.borderColor}; width:100%">${H.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !H.value.chart.tooltip.useDefaultTimeFormat ? t : n.text}</div>`;
|
|
1773
1838
|
}
|
|
1774
|
-
return
|
|
1775
|
-
if (
|
|
1839
|
+
return Is.value.forEach((n) => {
|
|
1840
|
+
if (_e(n.value)) {
|
|
1776
1841
|
let i = "", o = "";
|
|
1777
1842
|
switch (Pi.value[n.type]) {
|
|
1778
1843
|
case "bar":
|
|
@@ -1918,46 +1983,46 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1918
1983
|
}
|
|
1919
1984
|
default: break;
|
|
1920
1985
|
}
|
|
1921
|
-
e += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${i}</div> ${n.name}: <b>${H.value.chart.tooltip.showValue ?
|
|
1986
|
+
e += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${i}</div> ${n.name}: <b>${H.value.chart.tooltip.showValue ? fe(n.type === "line" ? H.value.line.labels.formatter : n.type === "bar" ? H.value.bar.labels.formatter : H.value.plot.labels.formatter, n.value, a({
|
|
1922
1987
|
p: n.prefix,
|
|
1923
1988
|
v: n.value,
|
|
1924
1989
|
s: n.suffix,
|
|
1925
1990
|
r: H.value.chart.tooltip.roundingValue
|
|
1926
1991
|
}), { datapoint: n }) : ""}</b> ${H.value.chart.tooltip.showPercentage ? `(${a({
|
|
1927
|
-
v:
|
|
1992
|
+
v: y(Math.abs(n.value) / t * 100),
|
|
1928
1993
|
s: "%",
|
|
1929
1994
|
r: H.value.chart.tooltip.roundingPercentage
|
|
1930
|
-
})})` : ""}</div>`, H.value.chart.comments.showInTooltip && n.comments.length && n.comments.slice(
|
|
1995
|
+
})})` : ""}</div>`, H.value.chart.comments.showInTooltip && n.comments.length && n.comments.slice(K.value.start, K.value.end)[B.value] && (e += `<div class="vue-data-ui-tooltip-comment" style="background:${n.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${n.color}">${n.comments.slice(K.value.start, K.value.end)[B.value]}</div>`);
|
|
1931
1996
|
}
|
|
1932
1997
|
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${H.value.chart.tooltip.color}">${e}</div>`;
|
|
1933
|
-
}),
|
|
1934
|
-
if (
|
|
1998
|
+
}), Zs = x(() => {
|
|
1999
|
+
if (Ya.value.length === 0) return {
|
|
1935
2000
|
head: [],
|
|
1936
2001
|
body: [],
|
|
1937
2002
|
config: {},
|
|
1938
2003
|
columnNames: []
|
|
1939
2004
|
};
|
|
1940
|
-
let e =
|
|
2005
|
+
let e = Za.value.map((e) => ({
|
|
1941
2006
|
label: e.name,
|
|
1942
2007
|
color: e.color,
|
|
1943
2008
|
type: e.type
|
|
1944
2009
|
})), t = [];
|
|
1945
|
-
return
|
|
1946
|
-
let r = H.value.table.useDefaultTimeFormat ? [e.text] : [
|
|
1947
|
-
|
|
1948
|
-
r.push(
|
|
2010
|
+
return X.value.forEach((e, n) => {
|
|
2011
|
+
let r = H.value.table.useDefaultTimeFormat ? [e.text] : [Js.value(n + K.value.start, H.value.table.timeFormat)];
|
|
2012
|
+
Za.value.forEach((e) => {
|
|
2013
|
+
r.push(Ro(e.absoluteValues[n]) ? Number(e.absoluteValues[n].toFixed(H.value.table.rounding)) : "");
|
|
1949
2014
|
}), t.push(r);
|
|
1950
2015
|
}), {
|
|
1951
2016
|
head: e,
|
|
1952
2017
|
body: t
|
|
1953
2018
|
};
|
|
1954
|
-
}),
|
|
1955
|
-
let e = H.value.table.showSum, t = [""].concat(
|
|
2019
|
+
}), Qs = x(() => {
|
|
2020
|
+
let e = H.value.table.showSum, t = [""].concat(Za.value.map((e) => e.name));
|
|
1956
2021
|
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>"));
|
|
1957
2022
|
let n = [];
|
|
1958
|
-
for (let t = 0; t <
|
|
1959
|
-
let r =
|
|
1960
|
-
n.push([H.value.table.useDefaultTimeFormat ?
|
|
2023
|
+
for (let t = 0; t < Z.value; t += 1) {
|
|
2024
|
+
let r = Za.value.map((e) => e.absoluteValues[t] ?? 0).reduce((e, t) => e + t, 0);
|
|
2025
|
+
n.push([H.value.table.useDefaultTimeFormat ? X.value[t]?.text ?? "-" : Js.value(t + K.value.start, H.value.table.timeFormat)].concat(Za.value.map((e) => fe(e.type === "line" ? H.value.line.labels.formatter : e.type === "bar" ? H.value.bar.labels.formatter : H.value.plot.labels.formatter, e.absoluteValues[t] ?? 0, a({
|
|
1961
2026
|
p: e.prefix || H.value.chart.labels.prefix,
|
|
1962
2027
|
v: e.absoluteValues[t] ?? 0,
|
|
1963
2028
|
s: e.suffix || H.value.chart.labels.suffix,
|
|
@@ -1976,7 +2041,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1976
2041
|
outline: H.value.table.td.outline
|
|
1977
2042
|
},
|
|
1978
2043
|
breakpoint: H.value.table.responsiveBreakpoint
|
|
1979
|
-
}, i = [H.value.table.columnNames.period].concat(
|
|
2044
|
+
}, i = [H.value.table.columnNames.period].concat(Za.value.map((e) => e.name), H.value.table.columnNames.total);
|
|
1980
2045
|
return {
|
|
1981
2046
|
head: t,
|
|
1982
2047
|
body: n,
|
|
@@ -1984,21 +2049,21 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
1984
2049
|
colNames: i
|
|
1985
2050
|
};
|
|
1986
2051
|
});
|
|
1987
|
-
function
|
|
2052
|
+
function $s(e = null) {
|
|
1988
2053
|
let t = [
|
|
1989
2054
|
[H.value.chart.title.text],
|
|
1990
2055
|
[H.value.chart.title.subtitle.text],
|
|
1991
2056
|
[""]
|
|
1992
|
-
], n = ["", ...
|
|
2057
|
+
], n = ["", ...Zs.value.head.map((e) => e.label)], r = Zs.value.body, i = ie(t.concat([n]).concat(r));
|
|
1993
2058
|
e ? e(i) : l({
|
|
1994
2059
|
csvContent: i,
|
|
1995
2060
|
title: H.value.chart.title.text || "vue-ui-xy"
|
|
1996
2061
|
});
|
|
1997
2062
|
}
|
|
1998
|
-
function
|
|
1999
|
-
if (
|
|
2063
|
+
function ec(e, t = null) {
|
|
2064
|
+
if (Qa.value) return;
|
|
2000
2065
|
Li.value = e;
|
|
2001
|
-
let n =
|
|
2066
|
+
let n = Za.value.map((e) => ({
|
|
2002
2067
|
name: e.name,
|
|
2003
2068
|
value: [
|
|
2004
2069
|
null,
|
|
@@ -2010,27 +2075,27 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
2010
2075
|
}));
|
|
2011
2076
|
e ? (B.value = t, H.value.events.datapointEnter && H.value.events.datapointEnter({
|
|
2012
2077
|
datapoint: n,
|
|
2013
|
-
seriesIndex: t +
|
|
2078
|
+
seriesIndex: t + K.value.start
|
|
2014
2079
|
})) : (B.value = null, H.value.events.datapointLeave && H.value.events.datapointLeave({
|
|
2015
2080
|
datapoint: n,
|
|
2016
|
-
seriesIndex: t +
|
|
2081
|
+
seriesIndex: t + K.value.start
|
|
2017
2082
|
}));
|
|
2018
2083
|
}
|
|
2019
|
-
function
|
|
2084
|
+
function tc() {
|
|
2020
2085
|
U.value.showTable = !U.value.showTable;
|
|
2021
2086
|
}
|
|
2022
|
-
function
|
|
2087
|
+
function nc() {
|
|
2023
2088
|
U.value.dataLabels.show = !U.value.dataLabels.show;
|
|
2024
2089
|
}
|
|
2025
|
-
function
|
|
2090
|
+
function rc() {
|
|
2026
2091
|
U.value.showTooltip = !U.value.showTooltip;
|
|
2027
2092
|
}
|
|
2028
|
-
function
|
|
2093
|
+
function ic(e) {
|
|
2029
2094
|
Ii.value = e, zi.value += 1;
|
|
2030
2095
|
}
|
|
2031
|
-
function
|
|
2096
|
+
function ac() {
|
|
2032
2097
|
if (!H.value.responsiveProportionalSizing) {
|
|
2033
|
-
V.value.dataLabels = H.value.chart.grid.labels.fontSize, V.value.yAxis = H.value.chart.grid.labels.axis.fontSize, V.value.xAxis = H.value.chart.grid.labels.xAxisLabels.fontSize, V.value.plotLabels = H.value.chart.labels.fontSize,
|
|
2098
|
+
V.value.dataLabels = H.value.chart.grid.labels.fontSize, V.value.yAxis = H.value.chart.grid.labels.axis.fontSize, V.value.xAxis = H.value.chart.grid.labels.xAxisLabels.fontSize, V.value.plotLabels = H.value.chart.labels.fontSize, ha.value.plot = H.value.plot.radius, ha.value.line = H.value.line.radius;
|
|
2034
2099
|
return;
|
|
2035
2100
|
}
|
|
2036
2101
|
V.value.dataLabels = re({
|
|
@@ -2057,13 +2122,13 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
2057
2122
|
source: H.value.chart.labels.fontSize,
|
|
2058
2123
|
threshold: 10,
|
|
2059
2124
|
fallback: 10
|
|
2060
|
-
}),
|
|
2125
|
+
}), ha.value.plot = re({
|
|
2061
2126
|
relator: F.value,
|
|
2062
2127
|
adjuster: 800,
|
|
2063
2128
|
source: H.value.plot.radius,
|
|
2064
2129
|
threshold: 1,
|
|
2065
2130
|
fallback: 1
|
|
2066
|
-
}),
|
|
2131
|
+
}), ha.value.line = re({
|
|
2067
2132
|
relator: F.value,
|
|
2068
2133
|
adjuster: 800,
|
|
2069
2134
|
source: H.value.line.radius,
|
|
@@ -2071,59 +2136,59 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
2071
2136
|
fallback: 1
|
|
2072
2137
|
});
|
|
2073
2138
|
}
|
|
2074
|
-
function
|
|
2075
|
-
if (ae(N.dataset) ? (
|
|
2139
|
+
function oc() {
|
|
2140
|
+
if (ae(N.dataset) ? (se({
|
|
2076
2141
|
componentName: "VueUiXy",
|
|
2077
2142
|
type: "dataset",
|
|
2078
|
-
debug:
|
|
2079
|
-
}),
|
|
2080
|
-
[null, void 0].includes(e.name) && (
|
|
2143
|
+
debug: xa.value
|
|
2144
|
+
}), Ta.value = !0) : N.dataset.forEach((e, t) => {
|
|
2145
|
+
[null, void 0].includes(e.name) && (se({
|
|
2081
2146
|
componentName: "VueUiXy",
|
|
2082
2147
|
type: "datasetSerieAttribute",
|
|
2083
2148
|
property: "name (string)",
|
|
2084
2149
|
index: t,
|
|
2085
|
-
debug:
|
|
2086
|
-
}),
|
|
2087
|
-
}),
|
|
2150
|
+
debug: xa.value
|
|
2151
|
+
}), Ta.value = !0);
|
|
2152
|
+
}), xa.value && N.dataset.forEach((e) => {
|
|
2088
2153
|
e.series.forEach((t, n) => {
|
|
2089
|
-
|
|
2154
|
+
_e(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.`);
|
|
2090
2155
|
});
|
|
2091
|
-
}), ae(N.dataset) || (
|
|
2156
|
+
}), ae(N.dataset) || (Ta.value = H.value.loading), Wi.value = H.value.chart.userOptions.showOnChartHover, Gi.value = H.value.chart.userOptions.keepStateOnChartLeave, Ki.value = !H.value.chart.userOptions.showOnChartHover, ba(), H.value.responsive) {
|
|
2092
2157
|
let e = hi.value.parentNode;
|
|
2093
2158
|
Di.value && (Di.value.unobserve(Oi.value), Di.value.disconnect());
|
|
2094
2159
|
let { height: t, width: n } = e.getBoundingClientRect(), r = null, i = 0;
|
|
2095
2160
|
H.value.chart.title.show && gi.value && (r = gi.value, i = r.getBoundingClientRect().height);
|
|
2096
2161
|
let a = null, o = 0;
|
|
2097
|
-
H.value.chart.zoom.show &&
|
|
2162
|
+
H.value.chart.zoom.show && G.value > 6 && va.value && _i.value && _i.value.$el && (a = _i.value.$el, o = a.getBoundingClientRect().height);
|
|
2098
2163
|
let s = null, c = 0;
|
|
2099
2164
|
H.value.chart.legend.show && vi.value && (s = vi.value, c = s.getBoundingClientRect().height);
|
|
2100
2165
|
let l = 0;
|
|
2101
2166
|
yi.value && (l = yi.value.getBoundingClientRect().height);
|
|
2102
2167
|
let u = 0;
|
|
2103
|
-
bi.value && (u = bi.value.getBoundingClientRect().height), ji.value = t - i - c - o - l - u - 12, F.value = n, Mi.value = `0 0 ${F.value < 0 ? 10 : F.value} ${ji.value < 0 ? 10 : ji.value}`,
|
|
2168
|
+
bi.value && (u = bi.value.getBoundingClientRect().height), ji.value = t - i - c - o - l - u - 12, F.value = n, Mi.value = `0 0 ${F.value < 0 ? 10 : F.value} ${ji.value < 0 ? 10 : ji.value}`, ac();
|
|
2104
2169
|
let ee = new ResizeObserver((e) => {
|
|
2105
2170
|
for (let t of e) i = H.value.chart.title.show && gi.value ? gi.value.getBoundingClientRect().height : 0, o = _i.value && _i.value.$el ? _i.value.$el.getBoundingClientRect().height : 0, c = vi.value ? vi.value.getBoundingClientRect().height : 0, l = yi.value ? yi.value.getBoundingClientRect().height : 0, u = bi.value ? bi.value.getBoundingClientRect().height : 0, requestAnimationFrame(() => {
|
|
2106
|
-
ji.value = t.contentRect.height - i - c - o - l - u - 12, F.value = t.contentBoxSize[0].inlineSize ?? t.contentRect.width, Mi.value = `0 0 ${F.value < 0 ? 10 : F.value} ${ji.value < 0 ? 10 : ji.value}`,
|
|
2171
|
+
ji.value = t.contentRect.height - i - c - o - l - u - 12, F.value = t.contentBoxSize[0].inlineSize ?? t.contentRect.width, Mi.value = `0 0 ${F.value < 0 ? 10 : F.value} ${ji.value < 0 ? 10 : ji.value}`, ac(), oa(), ca();
|
|
2107
2172
|
});
|
|
2108
2173
|
});
|
|
2109
2174
|
Di.value = ee, Oi.value = e, ee.observe(e);
|
|
2110
|
-
} else ji.value = H.value.chart.height, F.value = H.value.chart.width, V.value.dataLabels = H.value.chart.grid.labels.fontSize, V.value.yAxis = H.value.chart.grid.labels.axis.fontSize, V.value.xAxis = H.value.chart.grid.labels.xAxisLabels.fontSize, V.value.plotLabels = H.value.chart.labels.fontSize,
|
|
2175
|
+
} else ji.value = H.value.chart.height, F.value = H.value.chart.width, V.value.dataLabels = H.value.chart.grid.labels.fontSize, V.value.yAxis = H.value.chart.grid.labels.axis.fontSize, V.value.xAxis = H.value.chart.grid.labels.xAxisLabels.fontSize, V.value.plotLabels = H.value.chart.labels.fontSize, ha.value.plot = H.value.plot.radius, ha.value.line = H.value.line.radius, Mi.value = `0 0 ${F.value} ${ji.value}`;
|
|
2111
2176
|
oa(), ca();
|
|
2112
2177
|
}
|
|
2113
|
-
function
|
|
2178
|
+
function sc(e) {
|
|
2114
2179
|
Ni.value = {
|
|
2115
2180
|
x: e.clientX,
|
|
2116
2181
|
y: e.clientY
|
|
2117
2182
|
};
|
|
2118
2183
|
}
|
|
2119
2184
|
st(() => {
|
|
2120
|
-
|
|
2185
|
+
oc(), No(), document.addEventListener("mousemove", sc, { passive: !0 }), document.addEventListener("scroll", uo, { passive: !0 });
|
|
2121
2186
|
}), ot(() => {
|
|
2122
|
-
document.removeEventListener("scroll",
|
|
2123
|
-
}),
|
|
2187
|
+
document.removeEventListener("scroll", uo, { passive: !0 }), document.removeEventListener("mousemove", sc, { passive: !0 }), Di.value &&= (Di.value.unobserve(Oi.value), Di.value.disconnect(), null);
|
|
2188
|
+
}), ze({
|
|
2124
2189
|
timeLabelsEls: wi,
|
|
2125
|
-
timeLabels:
|
|
2126
|
-
slicer:
|
|
2190
|
+
timeLabels: X,
|
|
2191
|
+
slicer: K,
|
|
2127
2192
|
configRef: H,
|
|
2128
2193
|
rotationPath: [
|
|
2129
2194
|
"chart",
|
|
@@ -2140,31 +2205,31 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
2140
2205
|
"autoRotate",
|
|
2141
2206
|
"enable"
|
|
2142
2207
|
],
|
|
2143
|
-
isAutoSize:
|
|
2208
|
+
isAutoSize: Ra,
|
|
2144
2209
|
height: ji,
|
|
2145
2210
|
width: F,
|
|
2146
2211
|
rotation: H.value.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
2147
2212
|
});
|
|
2148
|
-
let
|
|
2149
|
-
function
|
|
2150
|
-
let e = Math.ceil(
|
|
2213
|
+
let cc = O(!1), lc = O(null), uc = O(200), dc = x(() => B.value ?? R.value ?? 0);
|
|
2214
|
+
function fc() {
|
|
2215
|
+
let e = Math.ceil(uc.value || 200);
|
|
2151
2216
|
return Math.min(Math.max(e, 1), 200);
|
|
2152
2217
|
}
|
|
2153
|
-
function
|
|
2154
|
-
let e =
|
|
2155
|
-
return
|
|
2218
|
+
function pc() {
|
|
2219
|
+
let e = fc(), t = xs(dc.value) - e / 2 - (200 - e) / 2, n = Y.value?.left - (200 - e) / 2, r = Y.value?.right - (200 + e) / 2;
|
|
2220
|
+
return y(Math.max(n, Math.min(t, r)));
|
|
2156
2221
|
}
|
|
2157
2222
|
st(() => {
|
|
2158
2223
|
let e = null, t = null, n = (e) => {
|
|
2159
2224
|
cancelAnimationFrame(t), t = requestAnimationFrame(() => {
|
|
2160
|
-
|
|
2225
|
+
uc.value = Math.min(Math.max(Math.ceil(e || 0), 1), 200);
|
|
2161
2226
|
});
|
|
2162
2227
|
}, r = new ResizeObserver((t) => {
|
|
2163
2228
|
let r = t.find((t) => t.target === e) || t[0];
|
|
2164
2229
|
r && n(r.contentRect.width || 200);
|
|
2165
2230
|
}), i = ht((t) => {
|
|
2166
|
-
let i =
|
|
2167
|
-
e && e !== i && (r.unobserve(e), e = null), i && i !== e && (
|
|
2231
|
+
let i = lc.value;
|
|
2232
|
+
e && e !== i && (r.unobserve(e), e = null), i && i !== e && (rt(() => {
|
|
2168
2233
|
i.offsetParent !== null && n(i.offsetWidth || i.getBoundingClientRect().width || 200);
|
|
2169
2234
|
}), r.observe(i), e = i), t(() => {
|
|
2170
2235
|
e &&= (r.unobserve(e), null);
|
|
@@ -2176,28 +2241,28 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
2176
2241
|
} catch {}
|
|
2177
2242
|
});
|
|
2178
2243
|
});
|
|
2179
|
-
let
|
|
2244
|
+
let mc = x(() => {
|
|
2180
2245
|
if ([null, void 0].includes(B.value) && [null, void 0].includes(R.value)) return "";
|
|
2181
2246
|
let e = (B.value == null ? 0 : B.value) || (R.value == null ? 0 : R.value), t = H.value.chart.timeTag.customFormat;
|
|
2182
|
-
if (
|
|
2247
|
+
if (cc.value = !1, be(t)) try {
|
|
2183
2248
|
let n = t({
|
|
2184
|
-
absoluteIndex: e +
|
|
2249
|
+
absoluteIndex: e + K.value.start,
|
|
2185
2250
|
seriesIndex: e,
|
|
2186
|
-
datapoint:
|
|
2187
|
-
bars:
|
|
2251
|
+
datapoint: Is.value,
|
|
2252
|
+
bars: Vs.value,
|
|
2188
2253
|
lines: $.value,
|
|
2189
|
-
plots:
|
|
2254
|
+
plots: Hs.value,
|
|
2190
2255
|
config: H.value
|
|
2191
2256
|
});
|
|
2192
|
-
if (typeof n == "string") return
|
|
2257
|
+
if (typeof n == "string") return cc.value = !0, n;
|
|
2193
2258
|
} catch {
|
|
2194
|
-
console.warn("Custom format cannot be applied on timeTag."),
|
|
2259
|
+
console.warn("Custom format cannot be applied on timeTag."), cc.value = !1;
|
|
2195
2260
|
}
|
|
2196
|
-
if (!
|
|
2261
|
+
if (!cc.value) return [null, void 0].includes(X.value[e]) ? "" : H.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !H.value.chart.timeTag.useDefaultFormat ? Js.value(e + K.value.start, H.value.chart.timeTag.timeFormat) : X.value[e].text;
|
|
2197
2262
|
});
|
|
2198
|
-
function
|
|
2199
|
-
return
|
|
2200
|
-
content:
|
|
2263
|
+
function hc({ serie: e, plot: t, type: r }) {
|
|
2264
|
+
return Ro(t.value) ? n({
|
|
2265
|
+
content: fe(H.value[r].labels.formatter, t.value, a({
|
|
2201
2266
|
p: e.prefix || H.value.chart.labels.prefix,
|
|
2202
2267
|
v: t.value,
|
|
2203
2268
|
x: e.suffix || H.value.chart.labels.suffix,
|
|
@@ -2212,72 +2277,72 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
2212
2277
|
y: 0
|
|
2213
2278
|
}) : "";
|
|
2214
2279
|
}
|
|
2215
|
-
function
|
|
2216
|
-
let t = H.value.bar.labels.offsetY, n = Math.abs(
|
|
2217
|
-
x: (U.value.useIndividualScale && U.value.isStacked ? e.x +
|
|
2218
|
-
y:
|
|
2280
|
+
function gc({ plot: e }) {
|
|
2281
|
+
let t = H.value.bar.labels.offsetY, n = Math.abs(Go(e)), r = e.value < 0, i = {
|
|
2282
|
+
x: (U.value.useIndividualScale && U.value.isStacked ? e.x + Ko.value.line / 2 : Jo(e) + qo() / 2 - js.value / 2) + H.value.bar.labels.offsetX,
|
|
2283
|
+
y: y(e.y) + (H.value.bar.labels.alwaysOnTop ? t - (r ? n : 0) : e.value >= 0 ? t : -t * 3)
|
|
2219
2284
|
};
|
|
2220
2285
|
return `translate(${i.x}, ${i.y}) rotate(${H.value.bar.labels.rotation})`;
|
|
2221
2286
|
}
|
|
2222
|
-
function
|
|
2287
|
+
function _c({ plot: e, type: t }) {
|
|
2223
2288
|
let n = H.value[t].labels.offsetY, r = {
|
|
2224
2289
|
x: e.x + H.value[t].labels.offsetX,
|
|
2225
|
-
y:
|
|
2290
|
+
y: y(e.y) + (H.value[t].labels.alwaysOnTop || e.value >= 0 ? n : -n * 3)
|
|
2226
2291
|
};
|
|
2227
2292
|
return `translate(${r.x}, ${r.y}) rotate(${H.value[t].labels.rotation})`;
|
|
2228
2293
|
}
|
|
2229
|
-
function
|
|
2294
|
+
function vc({ plot: e, type: t }) {
|
|
2230
2295
|
if (H.value[t].labels.textAnchor != null) return H.value[t].labels.textAnchor;
|
|
2231
2296
|
let n = e.value >= 0;
|
|
2232
2297
|
return H.value[t].labels.rotation === 0 ? "middle" : H.value[t].labels.alwaysOnTop || n ? "start" : "end";
|
|
2233
2298
|
}
|
|
2234
2299
|
mt(() => N.dataset, (e) => {
|
|
2235
|
-
if (Array.isArray(e) && e.length > 0 && (
|
|
2236
|
-
if (
|
|
2237
|
-
let e =
|
|
2238
|
-
if (!
|
|
2300
|
+
if (Array.isArray(e) && e.length > 0 && (Ta.value = !1), H.value.chart.zoom.keepState) {
|
|
2301
|
+
if (G.value = Math.max(0, ...W.value.map((e) => Oa(e.series).length)), G.value > 0) {
|
|
2302
|
+
let e = K.value.start, t = K.value.end;
|
|
2303
|
+
if (!ko.value || e === 0 && t === 0) No();
|
|
2239
2304
|
else {
|
|
2240
|
-
let n = Math.max(0, Math.min(e,
|
|
2241
|
-
|
|
2305
|
+
let n = Math.max(0, Math.min(e, G.value - 1)), r = Math.max(n + 1, Math.min(t, G.value));
|
|
2306
|
+
K.value = {
|
|
2242
2307
|
start: n,
|
|
2243
2308
|
end: r
|
|
2244
|
-
},
|
|
2309
|
+
}, ka.value = {
|
|
2245
2310
|
start: n,
|
|
2246
2311
|
end: r
|
|
2247
|
-
},
|
|
2312
|
+
}, Ao.value = 0, jo.value = G.value;
|
|
2248
2313
|
}
|
|
2249
2314
|
}
|
|
2250
|
-
} else
|
|
2315
|
+
} else G.value = Math.max(...W.value.map((e) => Oa(e.series).length)), K.value = {
|
|
2251
2316
|
start: 0,
|
|
2252
|
-
end:
|
|
2317
|
+
end: G.value
|
|
2253
2318
|
};
|
|
2254
|
-
ki.value += 1, Ui.value += 1, oa(), ca(),
|
|
2319
|
+
ki.value += 1, Ui.value += 1, oa(), ca(), Ma();
|
|
2255
2320
|
}, { deep: !0 }), mt(() => N.config, (e) => {
|
|
2256
|
-
|
|
2321
|
+
wa.value || (H.value = ga()), oc(), Vi.value += 1, Bi.value += 1, ba(), oa(), ca(), H.value.chart.zoom.keepState && (G.value = Math.max(0, ...W.value.map((e) => Oa(e.series).length)), G.value > 0 && (!ko.value || K.value.start === 0 && K.value.end === 0) && No()), Ma();
|
|
2257
2322
|
}, { deep: !0 });
|
|
2258
|
-
let
|
|
2259
|
-
function
|
|
2323
|
+
let yc = O(!1);
|
|
2324
|
+
function bc() {
|
|
2260
2325
|
let e = hi.value?.parentNode;
|
|
2261
2326
|
if (!e) {
|
|
2262
|
-
|
|
2327
|
+
yc.value = !1;
|
|
2263
2328
|
return;
|
|
2264
2329
|
}
|
|
2265
2330
|
let t = e.getBoundingClientRect();
|
|
2266
|
-
|
|
2331
|
+
yc.value = t.width > 2 && t.height > 2;
|
|
2267
2332
|
}
|
|
2268
2333
|
st(() => {
|
|
2269
|
-
|
|
2334
|
+
bc();
|
|
2270
2335
|
let e = new ResizeObserver(() => {
|
|
2271
|
-
|
|
2336
|
+
bc(), yc.value && (oc(), Ma(), H.value.chart.zoom.keepState || No());
|
|
2272
2337
|
});
|
|
2273
2338
|
hi.value?.parentNode && e.observe(hi.value.parentNode);
|
|
2274
2339
|
}), mt(H, () => {
|
|
2275
|
-
|
|
2340
|
+
ba();
|
|
2276
2341
|
}, { immediate: !0 });
|
|
2277
|
-
let
|
|
2342
|
+
let xc = x(() => {
|
|
2278
2343
|
let e = H.value.table.useDialog && !H.value.showTable, t = U.value.showTable;
|
|
2279
2344
|
return {
|
|
2280
|
-
component: e ? ci :
|
|
2345
|
+
component: e ? ci : Ke,
|
|
2281
2346
|
title: `${H.value.chart.title.text}${H.value.chart.title.subtitle.text ? `: ${H.value.chart.title.subtitle.text}` : ""}`,
|
|
2282
2347
|
props: e ? {
|
|
2283
2348
|
backgroundColor: H.value.table.th.backgroundColor,
|
|
@@ -2307,37 +2372,37 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
2307
2372
|
mt(() => U.value.showTable, (e) => {
|
|
2308
2373
|
H.value.showTable || (e && H.value.table.useDialog && Xi.value ? Xi.value.open() : Xi.value && Xi.value.close && Xi.value.close());
|
|
2309
2374
|
});
|
|
2310
|
-
function
|
|
2375
|
+
function Sc() {
|
|
2311
2376
|
U.value.showTable = !1, Ei.value && Ei.value.setTableIconState(!1);
|
|
2312
2377
|
}
|
|
2313
|
-
let
|
|
2378
|
+
let Cc = x(() => Xa.value.map((e) => ({
|
|
2314
2379
|
shape: e.type === "bar" ? "square" : e.shape ?? "circle",
|
|
2315
2380
|
color: e.color,
|
|
2316
2381
|
name: e.name
|
|
2317
|
-
}))),
|
|
2382
|
+
}))), wc = x(() => H.value.chart.backgroundColor), Tc = x(() => H.value.chart.legend), { exportSvg: Ec, getSvg: Dc } = Fe({
|
|
2318
2383
|
svg: z,
|
|
2319
|
-
title:
|
|
2320
|
-
legend:
|
|
2321
|
-
legendItems:
|
|
2322
|
-
backgroundColor:
|
|
2384
|
+
title: x(() => H.value.chart.title),
|
|
2385
|
+
legend: Tc,
|
|
2386
|
+
legendItems: Cc,
|
|
2387
|
+
backgroundColor: wc
|
|
2323
2388
|
});
|
|
2324
|
-
async function
|
|
2325
|
-
Qi.value = !0, await
|
|
2389
|
+
async function Oc({ isCb: e }) {
|
|
2390
|
+
Qi.value = !0, await rt();
|
|
2326
2391
|
try {
|
|
2327
2392
|
if (e) {
|
|
2328
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
2393
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Dc();
|
|
2329
2394
|
await Promise.resolve(H.value.chart.userOptions.callbacks.svg({
|
|
2330
2395
|
blob: e,
|
|
2331
2396
|
url: t,
|
|
2332
2397
|
text: n,
|
|
2333
2398
|
dataUrl: r
|
|
2334
2399
|
}));
|
|
2335
|
-
} else await Promise.resolve(
|
|
2400
|
+
} else await Promise.resolve(Ec());
|
|
2336
2401
|
} finally {
|
|
2337
2402
|
Qi.value = !1;
|
|
2338
2403
|
}
|
|
2339
2404
|
}
|
|
2340
|
-
function
|
|
2405
|
+
function kc(e) {
|
|
2341
2406
|
if (e?.stage === "start") {
|
|
2342
2407
|
Zi.value = !0;
|
|
2343
2408
|
return;
|
|
@@ -2346,18 +2411,18 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
2346
2411
|
Zi.value = !1;
|
|
2347
2412
|
return;
|
|
2348
2413
|
}
|
|
2349
|
-
|
|
2414
|
+
La();
|
|
2350
2415
|
}
|
|
2351
|
-
async function
|
|
2416
|
+
async function Ac() {
|
|
2352
2417
|
if (li("copyAlt", {
|
|
2353
2418
|
config: {
|
|
2354
2419
|
...H.value,
|
|
2355
|
-
formattedDates:
|
|
2420
|
+
formattedDates: X.value
|
|
2356
2421
|
},
|
|
2357
2422
|
dataset: {
|
|
2358
2423
|
lines: $.value,
|
|
2359
|
-
bars:
|
|
2360
|
-
plots:
|
|
2424
|
+
bars: Vs.value,
|
|
2425
|
+
plots: Hs.value
|
|
2361
2426
|
}
|
|
2362
2427
|
}), !H.value.chart.userOptions.callbacks.altCopy) {
|
|
2363
2428
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
@@ -2366,84 +2431,84 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
2366
2431
|
await Promise.resolve(H.value.chart.userOptions.callbacks.altCopy({
|
|
2367
2432
|
config: {
|
|
2368
2433
|
...H.value,
|
|
2369
|
-
formattedDates:
|
|
2434
|
+
formattedDates: X.value
|
|
2370
2435
|
},
|
|
2371
2436
|
dataset: {
|
|
2372
2437
|
lines: $.value,
|
|
2373
|
-
bars:
|
|
2374
|
-
plots:
|
|
2438
|
+
bars: Vs.value,
|
|
2439
|
+
plots: Hs.value
|
|
2375
2440
|
}
|
|
2376
2441
|
}));
|
|
2377
2442
|
}
|
|
2378
|
-
let
|
|
2379
|
-
function
|
|
2380
|
-
|
|
2443
|
+
let jc = O(!1);
|
|
2444
|
+
function Mc() {
|
|
2445
|
+
K.value.end > K.value.start && ($i.value = null), po.value = !0, jc.value = !0;
|
|
2381
2446
|
}
|
|
2382
|
-
function
|
|
2383
|
-
$i.value = null,
|
|
2447
|
+
function Nc() {
|
|
2448
|
+
$i.value = null, ts(), jc.value = !1, po.value = !1;
|
|
2384
2449
|
}
|
|
2385
|
-
function
|
|
2450
|
+
function Pc(e) {
|
|
2386
2451
|
if (!z.value || Fi.value || document.activeElement !== z.value) return;
|
|
2387
2452
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
|
|
2388
|
-
if (!t && !n || !
|
|
2389
|
-
let r =
|
|
2453
|
+
if (!t && !n || !K.value.end && K.value.end !== 0) return;
|
|
2454
|
+
let r = K.value.end - K.value.start;
|
|
2390
2455
|
if (r <= 0) return;
|
|
2391
2456
|
e.preventDefault(), e.stopPropagation();
|
|
2392
|
-
let i = $i.value, a =
|
|
2393
|
-
i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : t && (--i, i < 0 && (i = r - 1)) : a !== null && a >= 0 && a < r ? (i = n ? a + 1 : a - 1, i >= r && (i = 0), i < 0 && (i = r - 1)) : i = n ? 0 : r - 1, $i.value = i,
|
|
2457
|
+
let i = $i.value, a = Zo.value;
|
|
2458
|
+
i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : t && (--i, i < 0 && (i = r - 1)) : a !== null && a >= 0 && a < r ? (i = n ? a + 1 : a - 1, i >= r && (i = 0), i < 0 && (i = r - 1)) : i = n ? 0 : r - 1, $i.value = i, Fc(i), ec(!0, i);
|
|
2394
2459
|
}
|
|
2395
|
-
function
|
|
2396
|
-
let t =
|
|
2460
|
+
function Fc(e) {
|
|
2461
|
+
let t = K.value.end - K.value.start;
|
|
2397
2462
|
if (t <= 0) return;
|
|
2398
|
-
let n =
|
|
2463
|
+
let n = Y.value.width / t, r = c(Y.value.left + n * e + n / 2, Y.value.top + Y.value.height / 2, z.value);
|
|
2399
2464
|
r && (ea.value = r);
|
|
2400
2465
|
}
|
|
2401
|
-
let
|
|
2402
|
-
if (!
|
|
2403
|
-
let e = H.value.table.showSum, t = [H.value.table.columnNames.period].concat(
|
|
2466
|
+
let Ic = x(() => {
|
|
2467
|
+
if (!Qs.value) return null;
|
|
2468
|
+
let e = H.value.table.showSum, t = [H.value.table.columnNames.period].concat(Za.value.map((e) => e.name));
|
|
2404
2469
|
e && (t = t.concat(H.value.table.columnNames.total));
|
|
2405
|
-
let n =
|
|
2470
|
+
let n = Qs.value.body.slice(K.value.start, K.value.end);
|
|
2406
2471
|
return {
|
|
2407
2472
|
headers: t,
|
|
2408
2473
|
rows: n
|
|
2409
2474
|
};
|
|
2410
2475
|
});
|
|
2411
|
-
return
|
|
2412
|
-
getData:
|
|
2413
|
-
getImage:
|
|
2414
|
-
generatePdf:
|
|
2415
|
-
generateImage:
|
|
2416
|
-
generateSvg:
|
|
2417
|
-
generateCsv:
|
|
2418
|
-
hideSeries:
|
|
2419
|
-
showSeries:
|
|
2420
|
-
toggleStack:
|
|
2421
|
-
toggleTable:
|
|
2422
|
-
toggleLabels:
|
|
2423
|
-
toggleTooltip:
|
|
2424
|
-
toggleAnnotator:
|
|
2425
|
-
toggleFullscreen:
|
|
2426
|
-
copyAlt:
|
|
2427
|
-
resetZoom:
|
|
2428
|
-
}), (r, i) => (D(),
|
|
2476
|
+
return We({
|
|
2477
|
+
getData: is,
|
|
2478
|
+
getImage: as,
|
|
2479
|
+
generatePdf: Ia,
|
|
2480
|
+
generateImage: La,
|
|
2481
|
+
generateSvg: Oc,
|
|
2482
|
+
generateCsv: $s,
|
|
2483
|
+
hideSeries: ds,
|
|
2484
|
+
showSeries: us,
|
|
2485
|
+
toggleStack: wo,
|
|
2486
|
+
toggleTable: tc,
|
|
2487
|
+
toggleLabels: nc,
|
|
2488
|
+
toggleTooltip: rc,
|
|
2489
|
+
toggleAnnotator: ho,
|
|
2490
|
+
toggleFullscreen: ic,
|
|
2491
|
+
copyAlt: Ac,
|
|
2492
|
+
resetZoom: Lo
|
|
2493
|
+
}), (r, i) => (D(), C("div", {
|
|
2429
2494
|
id: `vue-ui-xy_${L.value}`,
|
|
2430
|
-
class:
|
|
2495
|
+
class: it(`vue-data-ui-component vue-ui-xy ${Ii.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${H.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
2431
2496
|
ref_key: "chart",
|
|
2432
2497
|
ref: hi,
|
|
2433
2498
|
style: E(`background:${H.value.chart.backgroundColor}; color:${H.value.chart.color};width:100%;font-family:${H.value.chart.fontFamily};${H.value.responsive ? "height: 100%" : ""}`),
|
|
2434
|
-
onMouseenter: i[6] ||= () =>
|
|
2435
|
-
onMouseleave: i[7] ||= () =>
|
|
2436
|
-
onClick:
|
|
2499
|
+
onMouseenter: i[6] ||= () => mo(!0),
|
|
2500
|
+
onMouseleave: i[7] ||= () => mo(!1),
|
|
2501
|
+
onClick: ns
|
|
2437
2502
|
}, [
|
|
2438
|
-
|
|
2503
|
+
w("div", {
|
|
2439
2504
|
id: `chart-instructions-${L.value}`,
|
|
2440
2505
|
class: "sr-only"
|
|
2441
|
-
}, [
|
|
2442
|
-
|
|
2506
|
+
}, [w("p", null, ut(H.value.a11y.translations.keyboardNavigation), 1)], 8, yt),
|
|
2507
|
+
Ic.value?.rows?.length ? (D(), Xe(Je, {
|
|
2443
2508
|
key: 0,
|
|
2444
2509
|
uid: L.value,
|
|
2445
|
-
head:
|
|
2446
|
-
body:
|
|
2510
|
+
head: Ic.value.headers,
|
|
2511
|
+
body: Ic.value.rows,
|
|
2447
2512
|
notice: H.value.a11y.translations.tableAvailable,
|
|
2448
2513
|
caption: H.value.a11y.translations.tableCaption
|
|
2449
2514
|
}, null, 8, [
|
|
@@ -2452,22 +2517,22 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
2452
2517
|
"body",
|
|
2453
2518
|
"notice",
|
|
2454
2519
|
"caption"
|
|
2455
|
-
])) :
|
|
2456
|
-
H.value.chart.userOptions.buttons.annotator && z.value ? (D(),
|
|
2520
|
+
])) : S("", !0),
|
|
2521
|
+
H.value.chart.userOptions.buttons.annotator && z.value ? (D(), Xe(j(si), {
|
|
2457
2522
|
key: 1,
|
|
2458
2523
|
svgRef: z.value,
|
|
2459
2524
|
backgroundColor: H.value.chart.backgroundColor,
|
|
2460
2525
|
color: H.value.chart.color,
|
|
2461
2526
|
active: Fi.value,
|
|
2462
|
-
isCursorPointer:
|
|
2463
|
-
onClose:
|
|
2527
|
+
isCursorPointer: ya.value,
|
|
2528
|
+
onClose: ho
|
|
2464
2529
|
}, {
|
|
2465
2530
|
"annotator-action-close": M(() => [A(r.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
2466
|
-
"annotator-action-color": M(({ color: e }) => [A(r.$slots, "annotator-action-color", T(
|
|
2467
|
-
"annotator-action-draw": M(({ mode: e }) => [A(r.$slots, "annotator-action-draw", T(
|
|
2468
|
-
"annotator-action-undo": M(({ disabled: e }) => [A(r.$slots, "annotator-action-undo", T(
|
|
2469
|
-
"annotator-action-redo": M(({ disabled: e }) => [A(r.$slots, "annotator-action-redo", T(
|
|
2470
|
-
"annotator-action-delete": M(({ disabled: e }) => [A(r.$slots, "annotator-action-delete", T(
|
|
2531
|
+
"annotator-action-color": M(({ color: e }) => [A(r.$slots, "annotator-action-color", at(T({ color: e })), void 0, !0)]),
|
|
2532
|
+
"annotator-action-draw": M(({ mode: e }) => [A(r.$slots, "annotator-action-draw", at(T({ mode: e })), void 0, !0)]),
|
|
2533
|
+
"annotator-action-undo": M(({ disabled: e }) => [A(r.$slots, "annotator-action-undo", at(T({ disabled: e })), void 0, !0)]),
|
|
2534
|
+
"annotator-action-redo": M(({ disabled: e }) => [A(r.$slots, "annotator-action-redo", at(T({ disabled: e })), void 0, !0)]),
|
|
2535
|
+
"annotator-action-delete": M(({ disabled: e }) => [A(r.$slots, "annotator-action-delete", at(T({ disabled: e })), void 0, !0)]),
|
|
2471
2536
|
_: 3
|
|
2472
2537
|
}, 8, [
|
|
2473
2538
|
"svgRef",
|
|
@@ -2475,21 +2540,21 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
2475
2540
|
"color",
|
|
2476
2541
|
"active",
|
|
2477
2542
|
"isCursorPointer"
|
|
2478
|
-
])) :
|
|
2479
|
-
|
|
2543
|
+
])) : S("", !0),
|
|
2544
|
+
ms.value ? (D(), C("div", {
|
|
2480
2545
|
key: 2,
|
|
2481
2546
|
ref_key: "noTitle",
|
|
2482
2547
|
ref: bi,
|
|
2483
2548
|
class: "vue-data-ui-no-title-space",
|
|
2484
2549
|
style: "height:36px; width: 100%; background:transparent"
|
|
2485
|
-
}, null, 512)) :
|
|
2486
|
-
H.value.chart.title.show ? (D(),
|
|
2550
|
+
}, null, 512)) : S("", !0),
|
|
2551
|
+
H.value.chart.title.show ? (D(), C("div", {
|
|
2487
2552
|
key: 3,
|
|
2488
2553
|
ref_key: "chartTitle",
|
|
2489
2554
|
ref: gi,
|
|
2490
2555
|
class: "vue-ui-xy-title",
|
|
2491
2556
|
style: E(`font-family:${H.value.chart.fontFamily}`)
|
|
2492
|
-
}, [(D(),
|
|
2557
|
+
}, [(D(), Xe(Ve, {
|
|
2493
2558
|
key: `title_${Vi.value}`,
|
|
2494
2559
|
config: {
|
|
2495
2560
|
title: {
|
|
@@ -2501,16 +2566,16 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
2501
2566
|
...H.value.chart.title.subtitle
|
|
2502
2567
|
}
|
|
2503
2568
|
}
|
|
2504
|
-
}, null, 8, ["config"]))], 4)) :
|
|
2505
|
-
|
|
2506
|
-
H.value.chart.userOptions.show && (Gi.value || Ki.value) ? (D(),
|
|
2569
|
+
}, null, 8, ["config"]))], 4)) : S("", !0),
|
|
2570
|
+
w("div", { id: `legend-top-${L.value}` }, null, 8, bt),
|
|
2571
|
+
H.value.chart.userOptions.show && (Gi.value || Ki.value) ? (D(), Xe(j(ri), {
|
|
2507
2572
|
ref_key: "userOptionsRef",
|
|
2508
2573
|
ref: Ei,
|
|
2509
2574
|
key: `user_options_${zi.value}`,
|
|
2510
2575
|
backgroundColor: H.value.chart.backgroundColor,
|
|
2511
2576
|
color: H.value.chart.color,
|
|
2512
|
-
isPrinting: j(
|
|
2513
|
-
isImaging: j(
|
|
2577
|
+
isPrinting: j(Pa),
|
|
2578
|
+
isImaging: j(Fa),
|
|
2514
2579
|
uid: L.value,
|
|
2515
2580
|
hasTooltip: H.value.chart.userOptions.buttons.tooltip && H.value.chart.tooltip.show,
|
|
2516
2581
|
hasPdf: H.value.chart.userOptions.buttons.pdf,
|
|
@@ -2533,23 +2598,23 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
2533
2598
|
callbacks: H.value.chart.userOptions.callbacks,
|
|
2534
2599
|
tableDialog: H.value.table.useDialog,
|
|
2535
2600
|
printScale: H.value.chart.userOptions.print.scale,
|
|
2536
|
-
isCursorPointer:
|
|
2537
|
-
onToggleFullscreen:
|
|
2538
|
-
onGeneratePdf: j(
|
|
2539
|
-
onGenerateCsv:
|
|
2540
|
-
onGenerateImage:
|
|
2541
|
-
onGenerateSvg:
|
|
2542
|
-
onToggleTable:
|
|
2543
|
-
onToggleLabels:
|
|
2544
|
-
onToggleStack:
|
|
2545
|
-
onToggleTooltip:
|
|
2546
|
-
onToggleAnnotator:
|
|
2547
|
-
onCopyAlt:
|
|
2601
|
+
isCursorPointer: ya.value,
|
|
2602
|
+
onToggleFullscreen: ic,
|
|
2603
|
+
onGeneratePdf: j(Ia),
|
|
2604
|
+
onGenerateCsv: $s,
|
|
2605
|
+
onGenerateImage: kc,
|
|
2606
|
+
onGenerateSvg: Oc,
|
|
2607
|
+
onToggleTable: tc,
|
|
2608
|
+
onToggleLabels: nc,
|
|
2609
|
+
onToggleStack: wo,
|
|
2610
|
+
onToggleTooltip: rc,
|
|
2611
|
+
onToggleAnnotator: ho,
|
|
2612
|
+
onCopyAlt: Ac,
|
|
2548
2613
|
style: E({ visibility: Gi.value ? Ki.value ? "visible" : "hidden" : "visible" })
|
|
2549
|
-
},
|
|
2614
|
+
}, Ze({ _: 2 }, [
|
|
2550
2615
|
r.$slots.menuIcon ? {
|
|
2551
2616
|
name: "menuIcon",
|
|
2552
|
-
fn: M(({ isOpen: e, color: t }) => [A(r.$slots, "menuIcon", T(
|
|
2617
|
+
fn: M(({ isOpen: e, color: t }) => [A(r.$slots, "menuIcon", at(T({
|
|
2553
2618
|
isOpen: e,
|
|
2554
2619
|
color: t
|
|
2555
2620
|
})), void 0, !0)]),
|
|
@@ -2592,12 +2657,12 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
2592
2657
|
} : void 0,
|
|
2593
2658
|
r.$slots.optionStack ? {
|
|
2594
2659
|
name: "optionStack",
|
|
2595
|
-
fn: M(({ isStack: e }) => [A(r.$slots, "optionStack", T(
|
|
2660
|
+
fn: M(({ isStack: e }) => [A(r.$slots, "optionStack", at(T({ isStack: e })), void 0, !0)]),
|
|
2596
2661
|
key: "8"
|
|
2597
2662
|
} : void 0,
|
|
2598
2663
|
r.$slots.optionFullscreen ? {
|
|
2599
2664
|
name: "optionFullscreen",
|
|
2600
|
-
fn: M(({ toggleFullscreen: e, isFullscreen: t }) => [A(r.$slots, "optionFullscreen", T(
|
|
2665
|
+
fn: M(({ toggleFullscreen: e, isFullscreen: t }) => [A(r.$slots, "optionFullscreen", at(T({
|
|
2601
2666
|
toggleFullscreen: e,
|
|
2602
2667
|
isFullscreen: t
|
|
2603
2668
|
})), void 0, !0)]),
|
|
@@ -2605,7 +2670,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
2605
2670
|
} : void 0,
|
|
2606
2671
|
r.$slots.optionAnnotator ? {
|
|
2607
2672
|
name: "optionAnnotator",
|
|
2608
|
-
fn: M(({ toggleAnnotator: e, isAnnotator: t }) => [A(r.$slots, "optionAnnotator", T(
|
|
2673
|
+
fn: M(({ toggleAnnotator: e, isAnnotator: t }) => [A(r.$slots, "optionAnnotator", at(T({
|
|
2609
2674
|
toggleAnnotator: e,
|
|
2610
2675
|
isAnnotator: t
|
|
2611
2676
|
})), void 0, !0)]),
|
|
@@ -2613,7 +2678,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
2613
2678
|
} : void 0,
|
|
2614
2679
|
r.$slots.optionAltCopy ? {
|
|
2615
2680
|
name: "optionAltCopy",
|
|
2616
|
-
fn: M(({ altCopy: e }) => [A(r.$slots, "optionAltCopy", T(
|
|
2681
|
+
fn: M(({ altCopy: e }) => [A(r.$slots, "optionAltCopy", at(T({ altCopy: e })), void 0, !0)]),
|
|
2617
2682
|
key: "11"
|
|
2618
2683
|
} : void 0,
|
|
2619
2684
|
r.$slots["custom-menu-before"] ? {
|
|
@@ -2626,12 +2691,12 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
2626
2691
|
fn: M(() => [A(r.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
2627
2692
|
key: "13"
|
|
2628
2693
|
} : void 0
|
|
2629
|
-
]), 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("."))) :
|
|
2630
|
-
|
|
2694
|
+
]), 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("."))) : S("", !0),
|
|
2695
|
+
w("div", xt, [(D(), C("svg", {
|
|
2631
2696
|
ref_key: "svgRef",
|
|
2632
2697
|
ref: z,
|
|
2633
2698
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2634
|
-
class:
|
|
2699
|
+
class: it([{
|
|
2635
2700
|
"vue-data-ui-fullscreen--on": Ii.value,
|
|
2636
2701
|
"vue-data-ui-fulscreen--off": !Ii.value
|
|
2637
2702
|
}, "vue-ui-xy-svg vue-data-ui-svg"]),
|
|
@@ -2642,289 +2707,290 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
2642
2707
|
color: H.value.chart.color,
|
|
2643
2708
|
fontFamily: H.value.chart.fontFamily
|
|
2644
2709
|
}),
|
|
2645
|
-
"aria-label":
|
|
2710
|
+
"aria-label": fs.value,
|
|
2646
2711
|
"aria-describedby": `chart-instructions-${L.value}`,
|
|
2647
2712
|
"aria-live": "polite",
|
|
2648
2713
|
role: "img",
|
|
2649
2714
|
tabindex: "0",
|
|
2650
2715
|
preserveAspectRatio: "xMidYMid",
|
|
2651
|
-
onMousemove:
|
|
2652
|
-
onMouseleave:
|
|
2653
|
-
onClick:
|
|
2654
|
-
onFocus:
|
|
2655
|
-
onBlur:
|
|
2656
|
-
onKeydown:
|
|
2657
|
-
}, [
|
|
2716
|
+
onMousemove: es,
|
|
2717
|
+
onMouseleave: ts,
|
|
2718
|
+
onClick: ns,
|
|
2719
|
+
onFocus: Mc,
|
|
2720
|
+
onBlur: Nc,
|
|
2721
|
+
onKeydown: Pc
|
|
2722
|
+
}, [w("g", {
|
|
2658
2723
|
ref_key: "G",
|
|
2659
2724
|
ref: xi,
|
|
2660
2725
|
class: "vue-data-ui-g"
|
|
2661
2726
|
}, [
|
|
2662
|
-
|
|
2663
|
-
r.$slots["chart-background"] ? (D(),
|
|
2727
|
+
$e(j(oi)),
|
|
2728
|
+
r.$slots["chart-background"] ? (D(), C("foreignObject", {
|
|
2664
2729
|
key: 0,
|
|
2665
|
-
x:
|
|
2666
|
-
y:
|
|
2667
|
-
width:
|
|
2668
|
-
height:
|
|
2730
|
+
x: Math.max(0, Y.value?.left),
|
|
2731
|
+
y: Y.value?.top,
|
|
2732
|
+
width: Math.max(0, Y.value?.width),
|
|
2733
|
+
height: Math.max(0, Y.value?.height),
|
|
2669
2734
|
style: { pointerEvents: "none" }
|
|
2670
|
-
}, [A(r.$slots, "chart-background", {}, void 0, !0)], 8, Ct)) :
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
H.value.chart.grid.labels.xAxis.showBaseline ? (D(),
|
|
2735
|
+
}, [A(r.$slots, "chart-background", {}, void 0, !0)], 8, Ct)) : S("", !0),
|
|
2736
|
+
Z.value > 0 ? (D(), C("g", wt, [
|
|
2737
|
+
w("g", Tt, [
|
|
2738
|
+
H.value.chart.grid.labels.xAxis.showBaseline ? (D(), C("line", {
|
|
2674
2739
|
key: 0,
|
|
2675
2740
|
stroke: H.value.chart.grid.stroke,
|
|
2676
2741
|
"stroke-width": "1",
|
|
2677
|
-
x1:
|
|
2678
|
-
x2:
|
|
2679
|
-
y1: j(
|
|
2680
|
-
y2: j(
|
|
2742
|
+
x1: Y.value?.left,
|
|
2743
|
+
x2: Y.value?.right,
|
|
2744
|
+
y1: j(v)(Y.value?.bottom),
|
|
2745
|
+
y2: j(v)(Y.value?.bottom),
|
|
2681
2746
|
"stroke-linecap": "round",
|
|
2682
2747
|
style: { animation: "none !important" }
|
|
2683
|
-
}, null, 8, Et)) :
|
|
2684
|
-
U.value.useIndividualScale ? H.value.chart.grid.showHorizontalLines ? (D(!0),
|
|
2685
|
-
x1:
|
|
2686
|
-
x2:
|
|
2687
|
-
y1: j(
|
|
2688
|
-
y2: j(
|
|
2748
|
+
}, null, 8, Et)) : S("", !0),
|
|
2749
|
+
U.value.useIndividualScale ? H.value.chart.grid.showHorizontalLines ? (D(!0), C(b, { key: 2 }, k(Us.value, (e) => (D(), C("g", null, [e.id === P.value && e.yLabels.length ? (D(!0), C(b, { key: 0 }, k(e.yLabels, (t) => (D(), C("line", {
|
|
2750
|
+
x1: Y.value?.left,
|
|
2751
|
+
x2: Y.value?.right,
|
|
2752
|
+
y1: j(v)(t.y),
|
|
2753
|
+
y2: j(v)(t.y),
|
|
2689
2754
|
stroke: e.color,
|
|
2690
2755
|
"stroke-width": .5,
|
|
2691
2756
|
"stroke-linecap": "round",
|
|
2692
2757
|
style: { animation: "none !important" }
|
|
2693
|
-
}, null, 8, At))), 256)) : e.yLabels.length ? (D(!0),
|
|
2694
|
-
x1:
|
|
2695
|
-
x2:
|
|
2696
|
-
y1: j(
|
|
2697
|
-
y2: j(
|
|
2758
|
+
}, null, 8, At))), 256)) : e.yLabels.length ? (D(!0), C(b, { key: 1 }, k(e.yLabels, (e) => (D(), C("line", {
|
|
2759
|
+
x1: Y.value?.left,
|
|
2760
|
+
x2: Y.value?.right,
|
|
2761
|
+
y1: j(v)(e.y),
|
|
2762
|
+
y2: j(v)(e.y),
|
|
2698
2763
|
stroke: H.value.chart.grid.stroke,
|
|
2699
2764
|
"stroke-width": .5,
|
|
2700
2765
|
"stroke-linecap": "round",
|
|
2701
2766
|
style: { animation: "none !important" }
|
|
2702
|
-
}, null, 8, jt))), 256)) :
|
|
2767
|
+
}, null, 8, jt))), 256)) : S("", !0)]))), 256)) : S("", !0) : (D(), C(b, { key: 1 }, [H.value.chart.grid.labels.yAxis.showBaseline ? (D(), C("line", {
|
|
2703
2768
|
key: 0,
|
|
2769
|
+
class: "vue-ui-xy-y-axis",
|
|
2704
2770
|
stroke: H.value.chart.grid.stroke,
|
|
2705
2771
|
"stroke-width": "1",
|
|
2706
|
-
x1:
|
|
2707
|
-
x2:
|
|
2708
|
-
y1: j(
|
|
2709
|
-
y2: j(
|
|
2772
|
+
x1: J.value ? Y.value?.right : Y.value?.left,
|
|
2773
|
+
x2: J.value ? Y.value?.right : Y.value?.left,
|
|
2774
|
+
y1: j(v)(Y.value?.top),
|
|
2775
|
+
y2: j(v)(Y.value?.bottom),
|
|
2710
2776
|
"stroke-linecap": "round",
|
|
2711
2777
|
style: { animation: "none !important" }
|
|
2712
|
-
}, null, 8, Dt)) :
|
|
2713
|
-
x1:
|
|
2714
|
-
x2:
|
|
2715
|
-
y1: j(
|
|
2716
|
-
y2: j(
|
|
2778
|
+
}, null, 8, Dt)) : S("", !0), H.value.chart.grid.showHorizontalLines ? (D(), C("g", Ot, [(D(!0), C(b, null, k(Ls.value, (e) => (D(), C("line", {
|
|
2779
|
+
x1: Y.value?.left,
|
|
2780
|
+
x2: Y.value?.right,
|
|
2781
|
+
y1: j(v)(e.y),
|
|
2782
|
+
y2: j(v)(e.y),
|
|
2717
2783
|
stroke: H.value.chart.grid.stroke,
|
|
2718
2784
|
"stroke-width": .5,
|
|
2719
2785
|
"stroke-linecap": "round",
|
|
2720
2786
|
style: { animation: "none !important" }
|
|
2721
|
-
}, null, 8, kt))), 256))])) :
|
|
2722
|
-
H.value.chart.grid.showVerticalLines ? (D(),
|
|
2723
|
-
d:
|
|
2787
|
+
}, null, 8, kt))), 256))])) : S("", !0)], 64)),
|
|
2788
|
+
H.value.chart.grid.showVerticalLines ? (D(), C("g", Mt, [w("path", {
|
|
2789
|
+
d: oo.value,
|
|
2724
2790
|
"stroke-width": .5,
|
|
2725
2791
|
stroke: H.value.chart.grid.stroke,
|
|
2726
2792
|
"stroke-linecap": "round",
|
|
2727
2793
|
style: { animation: "none !important" }
|
|
2728
|
-
}, null, 8, Nt)])) :
|
|
2729
|
-
H.value.chart.grid.labels.xAxisLabels.show ? (D(),
|
|
2730
|
-
d:
|
|
2794
|
+
}, null, 8, Nt)])) : S("", !0),
|
|
2795
|
+
H.value.chart.grid.labels.xAxisLabels.show ? (D(), C("g", Pt, [w("path", {
|
|
2796
|
+
d: so.value,
|
|
2731
2797
|
stroke: H.value.chart.grid.stroke,
|
|
2732
2798
|
"stroke-width": 1,
|
|
2733
2799
|
"stroke-linecap": "round",
|
|
2734
2800
|
style: { animation: "none !important" }
|
|
2735
|
-
}, null, 8, Ft)])) :
|
|
2801
|
+
}, null, 8, Ft)])) : S("", !0)
|
|
2736
2802
|
]),
|
|
2737
|
-
(D(!0),
|
|
2803
|
+
(D(!0), C(b, null, k(Vs.value, (e, t) => (D(), C("defs", { key: `def_rect_${t}` }, [r.$slots["bar-gradient"] ? A(r.$slots, "bar-gradient", nt({
|
|
2738
2804
|
key: 0,
|
|
2739
2805
|
ref_for: !0
|
|
2740
2806
|
}, {
|
|
2741
2807
|
series: e,
|
|
2742
2808
|
positiveId: `rectGradient_pos_${t}_${L.value}`,
|
|
2743
2809
|
negativeId: `rectGradient_neg_${t}_${L.value}`
|
|
2744
|
-
}), void 0, !0) : (D(),
|
|
2810
|
+
}), void 0, !0) : (D(), C(b, { key: 1 }, [w("linearGradient", {
|
|
2745
2811
|
id: `rectGradient_pos_${t}_${L.value}`,
|
|
2746
2812
|
x2: "0%",
|
|
2747
2813
|
y2: "100%"
|
|
2748
2814
|
}, [
|
|
2749
|
-
|
|
2815
|
+
w("stop", {
|
|
2750
2816
|
offset: "0%",
|
|
2751
2817
|
"stop-color": e.color
|
|
2752
2818
|
}, null, 8, Lt),
|
|
2753
|
-
|
|
2819
|
+
w("stop", {
|
|
2754
2820
|
offset: "62%",
|
|
2755
2821
|
"stop-color": `${j(d)(e.color, .02)}`
|
|
2756
2822
|
}, null, 8, Rt),
|
|
2757
|
-
|
|
2823
|
+
w("stop", {
|
|
2758
2824
|
offset: "100%",
|
|
2759
2825
|
"stop-color": `${j(d)(e.color, .05)}`
|
|
2760
2826
|
}, null, 8, zt)
|
|
2761
|
-
], 8, It),
|
|
2827
|
+
], 8, It), w("linearGradient", {
|
|
2762
2828
|
id: `rectGradient_neg_${t}_${L.value}`,
|
|
2763
2829
|
x2: "0%",
|
|
2764
2830
|
y2: "100%"
|
|
2765
2831
|
}, [
|
|
2766
|
-
|
|
2832
|
+
w("stop", {
|
|
2767
2833
|
offset: "0%",
|
|
2768
2834
|
"stop-color": `${j(d)(e.color, .05)}`
|
|
2769
2835
|
}, null, 8, Vt),
|
|
2770
|
-
|
|
2836
|
+
w("stop", {
|
|
2771
2837
|
offset: "38%",
|
|
2772
2838
|
"stop-color": `${j(d)(e.color, .02)}`
|
|
2773
2839
|
}, null, 8, Ht),
|
|
2774
|
-
|
|
2840
|
+
w("stop", {
|
|
2775
2841
|
offset: "100%",
|
|
2776
2842
|
"stop-color": e.color
|
|
2777
2843
|
}, null, 8, Ut)
|
|
2778
2844
|
], 8, Bt)], 64))]))), 128)),
|
|
2779
|
-
(D(!0),
|
|
2845
|
+
(D(!0), C(b, null, k(Hs.value, (e, t) => (D(), C("defs", { key: `def_plot_${t}` }, [w("radialGradient", {
|
|
2780
2846
|
id: `plotGradient_${t}_${L.value}`,
|
|
2781
2847
|
cx: "50%",
|
|
2782
2848
|
cy: "50%",
|
|
2783
2849
|
r: "50%",
|
|
2784
2850
|
fx: "50%",
|
|
2785
2851
|
fy: "50%"
|
|
2786
|
-
}, [
|
|
2852
|
+
}, [w("stop", {
|
|
2787
2853
|
offset: "0%",
|
|
2788
2854
|
"stop-color": `${j(d)(e.color, .05)}`
|
|
2789
|
-
}, null, 8, Gt),
|
|
2855
|
+
}, null, 8, Gt), w("stop", {
|
|
2790
2856
|
offset: "100%",
|
|
2791
2857
|
"stop-color": e.color
|
|
2792
2858
|
}, null, 8, Kt)], 8, Wt)]))), 128)),
|
|
2793
|
-
(D(!0),
|
|
2859
|
+
(D(!0), C(b, null, k($.value, (e, n) => (D(), C(b, { key: `def_line_${e.id}` }, [w("defs", null, [w("radialGradient", {
|
|
2794
2860
|
id: `lineGradient_${n}_${L.value}`,
|
|
2795
2861
|
cx: "50%",
|
|
2796
2862
|
cy: "50%",
|
|
2797
2863
|
r: "50%",
|
|
2798
2864
|
fx: "50%",
|
|
2799
2865
|
fy: "50%"
|
|
2800
|
-
}, [
|
|
2866
|
+
}, [w("stop", {
|
|
2801
2867
|
offset: "0%",
|
|
2802
2868
|
"stop-color": `${j(d)(e.color, .05)}`
|
|
2803
|
-
}, null, 8, Jt),
|
|
2869
|
+
}, null, 8, Jt), w("stop", {
|
|
2804
2870
|
offset: "100%",
|
|
2805
2871
|
"stop-color": e.color
|
|
2806
|
-
}, null, 8, Yt)], 8, qt), r.$slots["area-gradient"] ? A(r.$slots, "area-gradient",
|
|
2872
|
+
}, null, 8, Yt)], 8, qt), r.$slots["area-gradient"] ? A(r.$slots, "area-gradient", nt({
|
|
2807
2873
|
key: 0,
|
|
2808
2874
|
ref_for: !0
|
|
2809
2875
|
}, {
|
|
2810
2876
|
series: e,
|
|
2811
2877
|
id: `areaGradient_${n}_${L.value}`
|
|
2812
|
-
}), void 0, !0) : (D(),
|
|
2878
|
+
}), void 0, !0) : (D(), C("linearGradient", {
|
|
2813
2879
|
key: 1,
|
|
2814
2880
|
id: `areaGradient_${n}_${L.value}`,
|
|
2815
2881
|
x1: "0%",
|
|
2816
2882
|
x2: "100%",
|
|
2817
2883
|
y1: "0%",
|
|
2818
2884
|
y2: "0%"
|
|
2819
|
-
}, [
|
|
2885
|
+
}, [w("stop", {
|
|
2820
2886
|
offset: "0%",
|
|
2821
|
-
"stop-color": `${j(
|
|
2822
|
-
}, null, 8, Zt),
|
|
2887
|
+
"stop-color": `${j(me)(j(d)(e.color, .03), H.value.line.area.opacity)}`
|
|
2888
|
+
}, null, 8, Zt), w("stop", {
|
|
2823
2889
|
offset: "100%",
|
|
2824
|
-
"stop-color": `${j(
|
|
2825
|
-
}, null, 8, Qt)], 8, Xt))]), e.temperatureColors && !e.isFlatTemperatureLine ? (D(),
|
|
2890
|
+
"stop-color": `${j(me)(e.color, H.value.line.area.opacity)}`
|
|
2891
|
+
}, null, 8, Qt)], 8, Xt))]), e.temperatureColors && !e.isFlatTemperatureLine ? (D(), C("defs", $t, [w("linearGradient", {
|
|
2826
2892
|
id: `temperature_grad_line_${n}_${L.value}`,
|
|
2827
2893
|
gradientTransform: "rotate(90)"
|
|
2828
|
-
}, [(D(!0),
|
|
2894
|
+
}, [(D(!0), C(b, null, k(e.temperatureColors, (r, i) => (D(), C("stop", {
|
|
2829
2895
|
key: `temperature_grad_stop_${n}_${i}_${L.value}`,
|
|
2830
2896
|
"stop-color": r,
|
|
2831
2897
|
offset: j(t)(i, e.temperatureColors.length)
|
|
2832
|
-
}, null, 8, tn))), 128))], 8, en)])) :
|
|
2833
|
-
(D(!0),
|
|
2898
|
+
}, null, 8, tn))), 128))], 8, en)])) : S("", !0)], 64))), 128)),
|
|
2899
|
+
(D(!0), C(b, null, k(hs.value, (e) => (D(), C("g", null, [e.show ? (D(), C(b, { key: 0 }, [(D(!0), C(b, null, k(e.span, (t, n) => (D(), C("g", null, [w("rect", {
|
|
2834
2900
|
style: E({
|
|
2835
2901
|
transition: "none",
|
|
2836
|
-
opacity: +(e.from + n >=
|
|
2902
|
+
opacity: +(e.from + n >= K.value.start && e.from + n <= K.value.end - 1)
|
|
2837
2903
|
}),
|
|
2838
|
-
x:
|
|
2839
|
-
y:
|
|
2840
|
-
height:
|
|
2841
|
-
width:
|
|
2842
|
-
fill: j(
|
|
2843
|
-
}, null, 12, nn)]))), 256)), (D(!0),
|
|
2904
|
+
x: Cs(e.from + n - K.value.start),
|
|
2905
|
+
y: Y.value?.top,
|
|
2906
|
+
height: Y.value.height < 0 ? 10 : Y.value.height,
|
|
2907
|
+
width: ws(e.from + n - K.value.start),
|
|
2908
|
+
fill: j(me)(e.color, e.opacity)
|
|
2909
|
+
}, null, 12, nn)]))), 256)), (D(!0), C(b, null, k(e.span, (t, n) => (D(), C("g", null, [e.caption.text && n === 0 ? (D(), C("foreignObject", {
|
|
2844
2910
|
key: 0,
|
|
2845
|
-
x:
|
|
2846
|
-
y:
|
|
2911
|
+
x: Cs(e.from + n - K.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - Ds(e.span) / 2),
|
|
2912
|
+
y: Y.value?.top + e.caption.offsetY,
|
|
2847
2913
|
style: E({
|
|
2848
2914
|
overflow: "visible",
|
|
2849
|
-
opacity: +(e.to >=
|
|
2915
|
+
opacity: +(e.to >= K.value.start && e.from < K.value.end)
|
|
2850
2916
|
}),
|
|
2851
2917
|
height: "1",
|
|
2852
|
-
width: e.caption.width === "auto" ?
|
|
2853
|
-
}, [
|
|
2854
|
-
|
|
2855
|
-
x:
|
|
2856
|
-
y:
|
|
2857
|
-
height:
|
|
2858
|
-
width:
|
|
2918
|
+
width: e.caption.width === "auto" ? Ds(e.span) : e.caption.width
|
|
2919
|
+
}, [w("div", { style: E(`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"}`) }, ut(e.caption.text), 5)], 12, rn)) : S("", !0)]))), 256))], 64)) : S("", !0)]))), 256)),
|
|
2920
|
+
po.value ? (D(), C("g", an, [(D(!0), C(b, null, k(Z.value, (e, t) => (D(), C("g", { key: `tooltip_trap_highlighter_${t}` }, [w("rect", {
|
|
2921
|
+
x: Cs(t),
|
|
2922
|
+
y: Y.value?.top,
|
|
2923
|
+
height: Y.value.height < 0 ? 10 : Y.value.height,
|
|
2924
|
+
width: Es(t),
|
|
2859
2925
|
fill: [
|
|
2860
2926
|
R.value,
|
|
2861
2927
|
B.value,
|
|
2862
2928
|
Ri.value
|
|
2863
|
-
].includes(t) ? j(
|
|
2929
|
+
].includes(t) ? j(me)(H.value.chart.highlighter.color, H.value.chart.highlighter.opacity) : "transparent",
|
|
2864
2930
|
style: {
|
|
2865
2931
|
transition: "none !important",
|
|
2866
2932
|
animation: "none !important"
|
|
2867
2933
|
}
|
|
2868
|
-
}, null, 8, on)]))), 128))])) :
|
|
2869
|
-
|
|
2934
|
+
}, null, 8, on)]))), 128))])) : S("", !0),
|
|
2935
|
+
Vs.value.length ? (D(!0), C(b, { key: 1 }, k(Vs.value, (e, t) => (D(), C("g", {
|
|
2870
2936
|
key: `serie_bar_${e.id}`,
|
|
2871
|
-
class:
|
|
2937
|
+
class: it(`serie_bar_${t}`),
|
|
2872
2938
|
style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2873
|
-
}, [(D(!0),
|
|
2874
|
-
|
|
2939
|
+
}, [(D(!0), C(b, null, k(e.plots, (n, i) => (D(), C("g", { key: `bar_plot_${t}_${i}` }, [
|
|
2940
|
+
Ro(n.value) ? (D(), C("rect", {
|
|
2875
2941
|
key: 0,
|
|
2876
|
-
x:
|
|
2877
|
-
y: U.value.useIndividualScale ?
|
|
2878
|
-
height: U.value.useIndividualScale ? Math.abs(
|
|
2879
|
-
width:
|
|
2942
|
+
x: Jo(n) + Ns.value / 2,
|
|
2943
|
+
y: U.value.useIndividualScale ? Xo(n) : Yo(n),
|
|
2944
|
+
height: U.value.useIndividualScale ? Math.abs(Go(n)) : Math.abs(Wo(n)),
|
|
2945
|
+
width: Ms.value - Ns.value,
|
|
2880
2946
|
rx: H.value.bar.borderRadius,
|
|
2881
2947
|
fill: H.value.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${t}_${L.value})` : `url(#rectGradient_neg_${t}_${L.value})` : e.color,
|
|
2882
2948
|
stroke: H.value.bar.border.useSerieColor ? e.color : H.value.bar.border.stroke,
|
|
2883
2949
|
"stroke-width": H.value.bar.border.strokeWidth,
|
|
2884
|
-
style: E({ transition: j(
|
|
2885
|
-
}, null, 12, sn)) :
|
|
2886
|
-
|
|
2950
|
+
style: E({ transition: j(wa) || !H.value.bar.showTransition ? void 0 : `all ${H.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
2951
|
+
}, null, 12, sn)) : S("", !0),
|
|
2952
|
+
Ro(n.value) && r.$slots.pattern ? (D(), C("rect", {
|
|
2887
2953
|
key: 1,
|
|
2888
|
-
x:
|
|
2889
|
-
y: U.value.useIndividualScale ?
|
|
2890
|
-
height: U.value.useIndividualScale ? Math.abs(
|
|
2891
|
-
width:
|
|
2954
|
+
x: Jo(n) - Ns.value / 2,
|
|
2955
|
+
y: U.value.useIndividualScale ? Xo(n) : Yo(n),
|
|
2956
|
+
height: U.value.useIndividualScale ? Math.abs(Go(n)) : Math.abs(Wo(n)),
|
|
2957
|
+
width: Ms.value - Ns.value,
|
|
2892
2958
|
rx: H.value.bar.borderRadius,
|
|
2893
2959
|
fill: `url(#pattern_${L.value}_${e.slotAbsoluteIndex})`,
|
|
2894
2960
|
stroke: H.value.bar.border.useSerieColor ? e.color : H.value.bar.border.stroke,
|
|
2895
2961
|
"stroke-width": H.value.bar.border.strokeWidth,
|
|
2896
|
-
style: E({ transition: j(
|
|
2897
|
-
}, null, 12, cn)) :
|
|
2898
|
-
n.comment && H.value.chart.comments.show ? (D(),
|
|
2962
|
+
style: E({ transition: j(wa) || !H.value.bar.showTransition ? void 0 : `all ${H.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
2963
|
+
}, null, 12, cn)) : S("", !0),
|
|
2964
|
+
n.comment && H.value.chart.comments.show ? (D(), C("foreignObject", {
|
|
2899
2965
|
key: 2,
|
|
2900
2966
|
style: { overflow: "visible" },
|
|
2901
2967
|
height: "12",
|
|
2902
|
-
width:
|
|
2903
|
-
x:
|
|
2904
|
-
y: j(
|
|
2968
|
+
width: Ms.value + H.value.chart.comments.width,
|
|
2969
|
+
x: Jo(n) - H.value.chart.comments.width / 2 + H.value.chart.comments.offsetX,
|
|
2970
|
+
y: j(y)(n.y) + H.value.chart.comments.offsetY + 6
|
|
2905
2971
|
}, [A(r.$slots, "plot-comment", { plot: {
|
|
2906
2972
|
...n,
|
|
2907
2973
|
color: e.color,
|
|
2908
2974
|
seriesIndex: t,
|
|
2909
2975
|
datapointIndex: i
|
|
2910
|
-
} }, void 0, !0)], 8, ln)) :
|
|
2911
|
-
]))), 128))], 6))), 128)) :
|
|
2912
|
-
!U.value.useIndividualScale && H.value.chart.grid.labels.zeroLine.show ? (D(),
|
|
2976
|
+
} }, void 0, !0)], 8, ln)) : S("", !0)
|
|
2977
|
+
]))), 128))], 6))), 128)) : S("", !0),
|
|
2978
|
+
!U.value.useIndividualScale && H.value.chart.grid.labels.zeroLine.show ? (D(), C("line", {
|
|
2913
2979
|
key: 2,
|
|
2914
2980
|
stroke: H.value.chart.grid.stroke,
|
|
2915
2981
|
"stroke-width": "1",
|
|
2916
|
-
x1:
|
|
2917
|
-
x2:
|
|
2918
|
-
y1: j(
|
|
2919
|
-
y2: j(
|
|
2982
|
+
x1: Y.value?.left,
|
|
2983
|
+
x2: Y.value?.right,
|
|
2984
|
+
y1: j(v)(Uo.value),
|
|
2985
|
+
y2: j(v)(Uo.value),
|
|
2920
2986
|
"stroke-linecap": "round",
|
|
2921
2987
|
style: { animation: "none !important" }
|
|
2922
|
-
}, null, 8, un)) :
|
|
2923
|
-
H.value.chart.highlighter.useLine && (![null, void 0].includes(B.value) || ![null, void 0].includes(R.value)) ? (D(),
|
|
2924
|
-
x1:
|
|
2925
|
-
x2:
|
|
2926
|
-
y1: j(
|
|
2927
|
-
y2: j(
|
|
2988
|
+
}, null, 8, un)) : S("", !0),
|
|
2989
|
+
H.value.chart.highlighter.useLine && (![null, void 0].includes(B.value) || ![null, void 0].includes(R.value)) ? (D(), C("g", dn, [w("line", {
|
|
2990
|
+
x1: xs((B.value === null ? 0 : B.value) || (R.value === null ? 0 : R.value)),
|
|
2991
|
+
x2: xs((B.value === null ? 0 : B.value) || (R.value === null ? 0 : R.value)),
|
|
2992
|
+
y1: j(v)(Y.value?.top),
|
|
2993
|
+
y2: j(v)(Y.value?.bottom),
|
|
2928
2994
|
stroke: H.value.chart.highlighter.color,
|
|
2929
2995
|
"stroke-width": H.value.chart.highlighter.lineWidth,
|
|
2930
2996
|
"stroke-dasharray": H.value.chart.highlighter.lineDasharray,
|
|
@@ -2934,63 +3000,62 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
2934
3000
|
animation: "none !important",
|
|
2935
3001
|
"pointer-events": "none"
|
|
2936
3002
|
}
|
|
2937
|
-
}, null, 8, fn)])) :
|
|
2938
|
-
H.value.chart.grid.frame.show ? (D(),
|
|
3003
|
+
}, null, 8, fn)])) : S("", !0),
|
|
3004
|
+
H.value.chart.grid.frame.show ? (D(), C("rect", {
|
|
2939
3005
|
key: 4,
|
|
2940
3006
|
style: {
|
|
2941
3007
|
pointerEvents: "none",
|
|
2942
3008
|
transition: "none",
|
|
2943
3009
|
animation: "none !important"
|
|
2944
3010
|
},
|
|
2945
|
-
x:
|
|
2946
|
-
y:
|
|
2947
|
-
width:
|
|
2948
|
-
height:
|
|
3011
|
+
x: Math.max(0, Y.value?.left),
|
|
3012
|
+
y: Y.value?.top,
|
|
3013
|
+
width: Math.max(0, Y.value?.width),
|
|
3014
|
+
height: Y.value.height < 0 ? 0 : Y.value.height,
|
|
2949
3015
|
fill: "transparent",
|
|
2950
3016
|
stroke: H.value.chart.grid.frame.stroke,
|
|
2951
3017
|
"stroke-width": H.value.chart.grid.frame.strokeWidth,
|
|
2952
3018
|
"stroke-linecap": H.value.chart.grid.frame.strokeLinecap,
|
|
2953
3019
|
"stroke-linejoin": H.value.chart.grid.frame.strokeLinejoin,
|
|
2954
3020
|
"stroke-dasharray": H.value.chart.grid.frame.strokeDasharray
|
|
2955
|
-
}, null, 8, pn)) :
|
|
2956
|
-
H.value.chart.grid.labels.show ? (D(),
|
|
3021
|
+
}, null, 8, pn)) : S("", !0),
|
|
3022
|
+
H.value.chart.grid.labels.show ? (D(), C("g", {
|
|
2957
3023
|
key: 5,
|
|
2958
3024
|
ref_key: "scaleLabels",
|
|
2959
3025
|
ref: Ti
|
|
2960
|
-
}, [U.value.useIndividualScale ? (D(),
|
|
2961
|
-
x1: e.x
|
|
2962
|
-
x2: e.x
|
|
2963
|
-
y1: U.value.isStacked ? j(
|
|
2964
|
-
y2: U.value.isStacked ? j(
|
|
3026
|
+
}, [U.value.useIndividualScale ? (D(), C(b, { key: 0 }, [(D(!0), C(b, null, k(Us.value, (e) => (D(), C("g", null, [w("line", {
|
|
3027
|
+
x1: U.value.isStacked ? J.value ? Y.value.right : Y.value.left : J.value ? e.x : e.x - Y.value.individualOffsetX,
|
|
3028
|
+
x2: U.value.isStacked ? J.value ? Y.value.right : Y.value.left : J.value ? e.x : e.x - Y.value.individualOffsetX,
|
|
3029
|
+
y1: U.value.isStacked ? j(v)(Y.value?.bottom - e.yOffset - e.individualHeight) : j(v)(Y.value?.top),
|
|
3030
|
+
y2: U.value.isStacked ? j(v)(Y.value?.bottom - e.yOffset) : j(v)(Y.value?.bottom),
|
|
2965
3031
|
stroke: e.color,
|
|
2966
3032
|
"stroke-width": H.value.chart.grid.stroke,
|
|
2967
3033
|
"stroke-linecap": "round",
|
|
2968
3034
|
style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
2969
|
-
}, null, 12, mn)]))), 256)), (D(!0),
|
|
2970
|
-
|
|
3035
|
+
}, null, 12, mn)]))), 256)), (D(!0), C(b, null, k(Us.value, (e) => (D(), C("g", { style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out`) }, [
|
|
3036
|
+
w("text", {
|
|
2971
3037
|
fill: e.color,
|
|
2972
3038
|
"font-size": V.value.dataLabels * .8,
|
|
2973
3039
|
"text-anchor": "middle",
|
|
2974
|
-
transform: `translate(${e.x - V.value.dataLabels * .8 / 2
|
|
2975
|
-
}, ut(e.name) + " " + ut(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
|
|
2976
|
-
|
|
2977
|
-
(D(!0), S(y, null, k(e.yLabels, (t, n) => (D(), S(y, null, [H.value.chart.grid.labels.yAxis.showCrosshairs ? (D(), S("line", {
|
|
3040
|
+
transform: `translate(${U.value.isStacked ? J.value ? Y.value.right + H.value.chart.grid.labels.yAxis.crosshairSize + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + H.value.chart.grid.labels.yAxis.labelWidth + Y.value.individualOffsetX + H.value.chart.grid.labels.axis.yLabelOffsetX : Y.value.left - H.value.chart.grid.labels.yAxis.crosshairSize - H.value.chart.grid.labels.yAxis.scaleValueOffsetX - H.value.chart.grid.labels.yAxis.labelWidth - H.value.chart.grid.labels.axis.yLabelOffsetX : J.value ? e.x + H.value.chart.grid.labels.yAxis.crosshairSize + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + H.value.chart.grid.labels.yAxis.labelWidth + H.value.chart.grid.labels.axis.yLabelOffsetX : e.x - V.value.dataLabels * .8 / 2}, ${U.value.isStacked ? Y.value?.bottom - e.yOffset - e.individualHeight / 2 : Y.value?.top + Y.value.height / 2}) rotate(-90)`
|
|
3041
|
+
}, ut(e.name) + " " + ut(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `- ${e.scaleLabel}` : ""), 9, hn),
|
|
3042
|
+
(D(!0), C(b, null, k(e.yLabels, (t, n) => (D(), C(b, null, [H.value.chart.grid.labels.yAxis.showCrosshairs ? (D(), C("line", {
|
|
2978
3043
|
key: 0,
|
|
2979
|
-
x1: e.x
|
|
2980
|
-
x2: e.x +
|
|
2981
|
-
y1: j(
|
|
2982
|
-
y2: j(
|
|
3044
|
+
x1: U.value.isStacked ? J.value ? Y.value.right : Y.value.left : J.value ? e.x : e.x + 3 - H.value.chart.grid.labels.yAxis.crosshairSize - Y.value.individualOffsetX,
|
|
3045
|
+
x2: U.value.isStacked ? J.value ? Y.value.right + H.value.chart.grid.labels.yAxis.crosshairSize : Y.value.left - H.value.chart.grid.labels.yAxis.crosshairSize : J.value ? e.x + H.value.chart.grid.labels.yAxis.crosshairSize : e.x - Y.value.individualOffsetX,
|
|
3046
|
+
y1: j(v)(t.y),
|
|
3047
|
+
y2: j(v)(t.y),
|
|
2983
3048
|
stroke: e.color,
|
|
2984
3049
|
"stroke-width": 1,
|
|
2985
3050
|
"stroke-linecap": "round",
|
|
2986
3051
|
style: { animation: "none !important" }
|
|
2987
|
-
}, null, 8, gn)) :
|
|
2988
|
-
(D(!0),
|
|
2989
|
-
transform: `translate(${
|
|
3052
|
+
}, null, 8, gn)) : S("", !0)], 64))), 256)),
|
|
3053
|
+
(D(!0), C(b, null, k(e.yLabels, (t, n) => (D(), C("text", {
|
|
3054
|
+
transform: `translate(${U.value.isStacked ? J.value ? Y.value.right + H.value.chart.grid.labels.yAxis.crosshairSize + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : Y.value.left - H.value.chart.grid.labels.yAxis.crosshairSize - H.value.chart.grid.labels.yAxis.scaleValueOffsetX - 5 : J.value ? e.x + H.value.chart.grid.labels.yAxis.crosshairSize + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : e.x - 5 - Y.value.individualOffsetX}, ${j(v)(t.y) + V.value.dataLabels / 3})`,
|
|
3055
|
+
"text-anchor": J.value ? "start" : "end",
|
|
2990
3056
|
"font-size": V.value.dataLabels,
|
|
2991
|
-
"text-anchor": "end",
|
|
2992
3057
|
fill: e.color
|
|
2993
|
-
}, ut(j(
|
|
3058
|
+
}, ut(j(fe)(H.value.chart.grid.labels.yAxis.formatter, t.value, j(a)({
|
|
2994
3059
|
p: t.prefix,
|
|
2995
3060
|
v: t.value,
|
|
2996
3061
|
s: t.suffix,
|
|
@@ -2999,33 +3064,33 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
2999
3064
|
datapoint: t.datapoint,
|
|
3000
3065
|
seriesIndex: n
|
|
3001
3066
|
})), 9, _n))), 256))
|
|
3002
|
-
], 4))), 256))], 64)) : (D(!0),
|
|
3067
|
+
], 4))), 256))], 64)) : (D(!0), C(b, { key: 1 }, k(Ls.value, (e, t) => (D(), C("g", { key: `yLabel_${t}` }, [Ro(e) && e.value >= q.value.min && e.value <= q.value.max && H.value.chart.grid.labels.yAxis.showCrosshairs ? (D(), C("line", {
|
|
3003
3068
|
key: 0,
|
|
3004
|
-
x1:
|
|
3005
|
-
x2:
|
|
3006
|
-
y1: j(
|
|
3007
|
-
y2: j(
|
|
3069
|
+
x1: J.value ? Y.value?.right : Y.value?.left,
|
|
3070
|
+
x2: J.value ? Y.value?.right + H.value.chart.grid.labels.yAxis.crosshairSize : Y.value?.left - H.value.chart.grid.labels.yAxis.crosshairSize,
|
|
3071
|
+
y1: j(v)(e.y),
|
|
3072
|
+
y2: j(v)(e.y),
|
|
3008
3073
|
stroke: H.value.chart.grid.stroke,
|
|
3009
3074
|
"stroke-width": "1",
|
|
3010
3075
|
"stroke-linecap": "round",
|
|
3011
3076
|
style: { animation: "none !important" }
|
|
3012
|
-
}, null, 8, vn)) :
|
|
3077
|
+
}, null, 8, vn)) : S("", !0), e.value >= q.value.min && e.value <= q.value.max ? (D(), C("text", {
|
|
3013
3078
|
key: 1,
|
|
3014
|
-
transform: `translate(${
|
|
3079
|
+
transform: `translate(${J.value ? Y.value.right + H.value.chart.grid.labels.yAxis.crosshairSize + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : Y.value.scaleLabelX - H.value.chart.grid.labels.yAxis.crosshairSize}, ${j(y)(e.y + V.value.dataLabels / 3)})`,
|
|
3015
3080
|
"font-size": V.value.dataLabels,
|
|
3016
|
-
"text-anchor": "end",
|
|
3081
|
+
"text-anchor": J.value ? "start" : "end",
|
|
3017
3082
|
fill: H.value.chart.grid.labels.color
|
|
3018
|
-
}, ut(
|
|
3083
|
+
}, ut(Ro(e.value) ? j(fe)(H.value.chart.grid.labels.yAxis.formatter, e.value, j(a)({
|
|
3019
3084
|
p: e.prefix,
|
|
3020
3085
|
v: e.value,
|
|
3021
3086
|
s: e.suffix,
|
|
3022
3087
|
r: H.value.chart.grid.labels.yAxis.rounding
|
|
3023
|
-
})) : ""), 9, yn)) :
|
|
3024
|
-
(D(!0),
|
|
3088
|
+
})) : ""), 9, yn)) : S("", !0)]))), 128))], 512)) : S("", !0),
|
|
3089
|
+
(D(!0), C(b, null, k(Hs.value, (e, t) => (D(), C("g", {
|
|
3025
3090
|
key: `serie_plot_${e.id}`,
|
|
3026
|
-
class:
|
|
3091
|
+
class: it(`serie_plot_${t}`),
|
|
3027
3092
|
style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3028
|
-
}, [(D(!0),
|
|
3093
|
+
}, [(D(!0), C(b, null, k(e.plots, (n, i) => (D(), C("g", { key: `circle_plot_${t}_${i}` }, [n && Ro(n.value) ? (D(), Xe(Ue, {
|
|
3029
3094
|
key: 0,
|
|
3030
3095
|
shape: [
|
|
3031
3096
|
"triangle",
|
|
@@ -3037,13 +3102,13 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
3037
3102
|
].includes(e.shape) ? e.shape : "circle",
|
|
3038
3103
|
color: H.value.plot.useGradient ? `url(#plotGradient_${t}_${L.value})` : H.value.plot.dot.useSerieColor ? e.color : H.value.plot.dot.fill,
|
|
3039
3104
|
plot: {
|
|
3040
|
-
x: j(
|
|
3041
|
-
y: j(
|
|
3105
|
+
x: j(y)(n.x),
|
|
3106
|
+
y: j(y)(n.y)
|
|
3042
3107
|
},
|
|
3043
|
-
radius: B.value !== null && B.value === i || R.value !== null && R.value === i ? (
|
|
3108
|
+
radius: B.value !== null && B.value === i || R.value !== null && R.value === i ? (ha.value.plot || 6) * 1.5 : ha.value.plot || 6,
|
|
3044
3109
|
stroke: H.value.plot.dot.useSerieColor ? H.value.chart.backgroundColor : e.color,
|
|
3045
3110
|
strokeWidth: H.value.plot.dot.strokeWidth,
|
|
3046
|
-
transition: j(
|
|
3111
|
+
transition: j(wa) || !H.value.plot.showTransition || B.value !== null && B.value === i || R.value !== null && R.value === i ? void 0 : `all ${H.value.plot.transitionDurationMs}ms ease-in-out`
|
|
3047
3112
|
}, null, 8, [
|
|
3048
3113
|
"shape",
|
|
3049
3114
|
"color",
|
|
@@ -3052,32 +3117,32 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
3052
3117
|
"stroke",
|
|
3053
3118
|
"strokeWidth",
|
|
3054
3119
|
"transition"
|
|
3055
|
-
])) :
|
|
3120
|
+
])) : S("", !0), n.comment && H.value.chart.comments.show ? (D(), C("foreignObject", {
|
|
3056
3121
|
key: 1,
|
|
3057
3122
|
style: { overflow: "visible" },
|
|
3058
3123
|
height: "12",
|
|
3059
3124
|
width: H.value.chart.comments.width,
|
|
3060
3125
|
x: n.x - H.value.chart.comments.width / 2 + H.value.chart.comments.offsetX,
|
|
3061
3126
|
y: n.y + H.value.chart.comments.offsetY + 6
|
|
3062
|
-
}, [
|
|
3127
|
+
}, [w("div", xn, [A(r.$slots, "plot-comment", { plot: {
|
|
3063
3128
|
...n,
|
|
3064
3129
|
color: e.color,
|
|
3065
3130
|
seriesIndex: t,
|
|
3066
3131
|
datapointIndex: i
|
|
3067
|
-
} }, void 0, !0)])], 8, bn)) :
|
|
3068
|
-
(D(!0),
|
|
3132
|
+
} }, void 0, !0)])], 8, bn)) : S("", !0)]))), 128))], 6))), 128)),
|
|
3133
|
+
(D(!0), C(b, null, k($.value, (e, t) => (D(), C("g", {
|
|
3069
3134
|
key: `serie_line_${e.id}`,
|
|
3070
|
-
class:
|
|
3135
|
+
class: it(`serie_line_${t}`),
|
|
3071
3136
|
style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3072
|
-
}, [e.smooth && e.plots.length > 1 && e.curve ? (D(),
|
|
3137
|
+
}, [e.smooth && e.plots.length > 1 && e.curve ? (D(), C("path", {
|
|
3073
3138
|
key: 0,
|
|
3074
3139
|
d: `M${e.curve}`,
|
|
3075
3140
|
stroke: H.value.chart.backgroundColor,
|
|
3076
3141
|
"stroke-width": H.value.line.strokeWidth + 1,
|
|
3077
3142
|
"stroke-dasharray": e.dashed ? H.value.line.strokeWidth * 2 : 0,
|
|
3078
3143
|
fill: "none",
|
|
3079
|
-
style: E({ transition: j(
|
|
3080
|
-
}, null, 12, Sn)) : e.plots.length > 1 && e.straight ? (D(),
|
|
3144
|
+
style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3145
|
+
}, null, 12, Sn)) : e.plots.length > 1 && e.straight ? (D(), C("path", {
|
|
3081
3146
|
key: 1,
|
|
3082
3147
|
d: `M${e.straight}`,
|
|
3083
3148
|
stroke: H.value.chart.backgroundColor,
|
|
@@ -3086,49 +3151,49 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
3086
3151
|
fill: "none",
|
|
3087
3152
|
"stroke-linecap": "round",
|
|
3088
3153
|
"stroke-linejoin": "round",
|
|
3089
|
-
style: E({ transition: j(
|
|
3090
|
-
}, null, 12, Cn)) :
|
|
3091
|
-
r.$slots.pattern ? (D(),
|
|
3154
|
+
style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3155
|
+
}, null, 12, Cn)) : S("", !0)], 6))), 128)),
|
|
3156
|
+
r.$slots.pattern ? (D(), C("defs", wn, [(D(!0), C(b, null, k(Ya.value, (e, t) => A(r.$slots, "pattern", nt({ key: `serie_pattern_slot_${e.id}` }, { ref_for: !0 }, {
|
|
3092
3157
|
...e,
|
|
3093
3158
|
seriesIndex: e.slotAbsoluteIndex,
|
|
3094
3159
|
patternId: `pattern_${L.value}_${t}`
|
|
3095
|
-
}), void 0, !0)), 128))])) :
|
|
3096
|
-
|
|
3160
|
+
}), void 0, !0)), 128))])) : S("", !0),
|
|
3161
|
+
Ws.value.length && !U.value.isStacked ? (D(), C("g", Tn, [(D(!0), C(b, null, k(Ws.value, (e) => (D(), C("path", {
|
|
3097
3162
|
key: e.key,
|
|
3098
3163
|
d: e.d,
|
|
3099
3164
|
fill: e.color,
|
|
3100
3165
|
"fill-opacity": H.value.line.interLine.fillOpacity,
|
|
3101
3166
|
stroke: "none",
|
|
3102
3167
|
"pointer-events": "none",
|
|
3103
|
-
style: E({ transition: j(
|
|
3104
|
-
}, null, 12, En))), 128))])) :
|
|
3105
|
-
(D(!0),
|
|
3168
|
+
style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3169
|
+
}, null, 12, En))), 128))])) : S("", !0),
|
|
3170
|
+
(D(!0), C(b, null, k($.value, (e, t) => (D(), C("g", {
|
|
3106
3171
|
key: `serie_line_above_${e.id}`,
|
|
3107
|
-
class:
|
|
3172
|
+
class: it(`serie_line_${t}`),
|
|
3108
3173
|
style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3109
3174
|
}, [
|
|
3110
|
-
e.useArea && e.plots.length > 1 ? (D(),
|
|
3175
|
+
e.useArea && e.plots.length > 1 ? (D(), C("g", Dn, [e.smooth ? (D(!0), C(b, { key: 0 }, k(e.curveAreas, (n, i) => (D(), C(b, { key: i }, [n ? (D(), C("path", {
|
|
3111
3176
|
key: 0,
|
|
3112
3177
|
d: n,
|
|
3113
|
-
fill: H.value.line.area.useGradient ? `url(#areaGradient_${t}_${L.value})` : j(
|
|
3114
|
-
style: E({ transition: j(
|
|
3115
|
-
}, null, 12, On)) :
|
|
3178
|
+
fill: H.value.line.area.useGradient ? `url(#areaGradient_${t}_${L.value})` : j(me)(e.color, H.value.line.area.opacity),
|
|
3179
|
+
style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3180
|
+
}, null, 12, On)) : S("", !0), r.$slots.pattern && n ? (D(), C("path", {
|
|
3116
3181
|
key: 1,
|
|
3117
3182
|
d: n,
|
|
3118
3183
|
fill: `url(#pattern_${L.value}_${e.slotAbsoluteIndex})`,
|
|
3119
|
-
style: E({ transition: j(
|
|
3120
|
-
}, null, 12, kn)) :
|
|
3184
|
+
style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3185
|
+
}, null, 12, kn)) : S("", !0)], 64))), 128)) : (D(!0), C(b, { key: 1 }, k(e.area.split(";"), (n, i) => (D(), C(b, { key: i }, [n ? (D(), C("path", {
|
|
3121
3186
|
key: 0,
|
|
3122
3187
|
d: `M${n}Z`,
|
|
3123
|
-
fill: H.value.line.area.useGradient ? `url(#areaGradient_${t}_${L.value})` : j(
|
|
3124
|
-
style: E({ transition: j(
|
|
3125
|
-
}, null, 12, An)) :
|
|
3188
|
+
fill: H.value.line.area.useGradient ? `url(#areaGradient_${t}_${L.value})` : j(me)(e.color, H.value.line.area.opacity),
|
|
3189
|
+
style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3190
|
+
}, null, 12, An)) : S("", !0), r.$slots.pattern && n ? (D(), C("path", {
|
|
3126
3191
|
key: 1,
|
|
3127
3192
|
d: `M${n}Z`,
|
|
3128
3193
|
fill: `url(#pattern_${L.value}_${e.slotAbsoluteIndex})`,
|
|
3129
|
-
style: E({ transition: j(
|
|
3130
|
-
}, null, 12, jn)) :
|
|
3131
|
-
!e.hasDashedSegments && e.smooth && e.plots.length > 1 && e.curve ? (D(),
|
|
3194
|
+
style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3195
|
+
}, null, 12, jn)) : S("", !0)], 64))), 128))])) : S("", !0),
|
|
3196
|
+
!e.hasDashedSegments && e.smooth && e.plots.length > 1 && e.curve ? (D(), C("path", {
|
|
3132
3197
|
key: 1,
|
|
3133
3198
|
d: `M${e.curve}`,
|
|
3134
3199
|
stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${L.value})` : e.color,
|
|
@@ -3136,8 +3201,8 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
3136
3201
|
"stroke-dasharray": e.dashed ? H.value.line.strokeWidth * 2 : 0,
|
|
3137
3202
|
fill: "none",
|
|
3138
3203
|
"stroke-linecap": "round",
|
|
3139
|
-
style: E({ transition: j(
|
|
3140
|
-
}, null, 12, Mn)) : e.hasDashedSegments ? (D(),
|
|
3204
|
+
style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3205
|
+
}, null, 12, Mn)) : e.hasDashedSegments ? (D(), C(b, { key: 2 }, [e.smooth ? (D(!0), C(b, { key: 0 }, k(e.dashedSmooth, (n) => (D(), C("path", {
|
|
3141
3206
|
key: n.path,
|
|
3142
3207
|
fill: "none",
|
|
3143
3208
|
"stroke-linecap": "round",
|
|
@@ -3146,7 +3211,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
3146
3211
|
stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${L.value})` : e.color,
|
|
3147
3212
|
"stroke-width": H.value.line.strokeWidth,
|
|
3148
3213
|
"stroke-dasharray": n.dashed ? H.value.line.strokeWidth * 2 : 0
|
|
3149
|
-
}, null, 8, Nn))), 128)) : (D(!0),
|
|
3214
|
+
}, null, 8, Nn))), 128)) : (D(!0), C(b, { key: 1 }, k(e.dashedStraight, (n) => (D(), C("path", {
|
|
3150
3215
|
key: n.path,
|
|
3151
3216
|
fill: "none",
|
|
3152
3217
|
"stroke-linecap": "round",
|
|
@@ -3155,7 +3220,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
3155
3220
|
stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${L.value})` : e.color,
|
|
3156
3221
|
"stroke-width": H.value.line.strokeWidth,
|
|
3157
3222
|
"stroke-dasharray": n.dashed ? H.value.line.strokeWidth * 2 : 0
|
|
3158
|
-
}, null, 8, Pn))), 128))], 64)) : e.plots.length > 1 && e.straight ? (D(),
|
|
3223
|
+
}, null, 8, Pn))), 128))], 64)) : e.plots.length > 1 && e.straight ? (D(), C("path", {
|
|
3159
3224
|
key: 3,
|
|
3160
3225
|
d: `M${e.straight}`,
|
|
3161
3226
|
stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${L.value})` : e.color,
|
|
@@ -3164,9 +3229,9 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
3164
3229
|
fill: "none",
|
|
3165
3230
|
"stroke-linecap": "round",
|
|
3166
3231
|
"stroke-linejoin": "round",
|
|
3167
|
-
style: E({ transition: j(
|
|
3168
|
-
}, null, 12, Fn)) :
|
|
3169
|
-
(D(!0),
|
|
3232
|
+
style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3233
|
+
}, null, 12, Fn)) : S("", !0),
|
|
3234
|
+
(D(!0), C(b, null, k(e.plots, (n, i) => (D(), C(b, { key: `circle_line_${t}_${i}` }, [!ps.value.linePlot && n && Ro(n.value) || ps.value.linePlot && n && Ro(n.value) && (B.value !== null && B.value === i || R.value !== null && R.value === i) || zs(e.plots, i) ? (D(), Xe(Ue, {
|
|
3170
3235
|
key: 0,
|
|
3171
3236
|
shape: [
|
|
3172
3237
|
"triangle",
|
|
@@ -3178,13 +3243,13 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
3178
3243
|
].includes(e.shape) ? e.shape : "circle",
|
|
3179
3244
|
color: H.value.line.useGradient ? `url(#lineGradient_${t}_${L.value})` : H.value.line.dot.useSerieColor ? e.color : H.value.line.dot.fill,
|
|
3180
3245
|
plot: {
|
|
3181
|
-
x: j(
|
|
3182
|
-
y: j(
|
|
3246
|
+
x: j(y)(n.x),
|
|
3247
|
+
y: j(y)(n.y)
|
|
3183
3248
|
},
|
|
3184
|
-
radius: B.value !== null && B.value === i || R.value !== null && R.value === i ? (
|
|
3249
|
+
radius: B.value !== null && B.value === i || R.value !== null && R.value === i ? (ha.value.line || 6) * 1.5 : (zs(e.plots, i), ha.value.line || 6),
|
|
3185
3250
|
stroke: H.value.line.dot.useSerieColor ? H.value.chart.backgroundColor : e.color,
|
|
3186
3251
|
strokeWidth: H.value.line.dot.strokeWidth,
|
|
3187
|
-
transition: j(
|
|
3252
|
+
transition: j(wa) || !H.value.line.showTransition || B.value !== null && B.value === i || R.value !== null && R.value === i ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out`
|
|
3188
3253
|
}, null, 8, [
|
|
3189
3254
|
"shape",
|
|
3190
3255
|
"color",
|
|
@@ -3193,57 +3258,57 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
3193
3258
|
"stroke",
|
|
3194
3259
|
"strokeWidth",
|
|
3195
3260
|
"transition"
|
|
3196
|
-
])) :
|
|
3261
|
+
])) : S("", !0), n.comment && H.value.chart.comments.show ? (D(), C("foreignObject", {
|
|
3197
3262
|
key: 1,
|
|
3198
3263
|
style: { overflow: "visible" },
|
|
3199
3264
|
height: "12",
|
|
3200
3265
|
width: H.value.chart.comments.width,
|
|
3201
3266
|
x: n.x - H.value.chart.comments.width / 2 + H.value.chart.comments.offsetX,
|
|
3202
3267
|
y: n.y + H.value.chart.comments.offsetY + 6
|
|
3203
|
-
}, [
|
|
3268
|
+
}, [w("div", Ln, [A(r.$slots, "plot-comment", { plot: {
|
|
3204
3269
|
...n,
|
|
3205
3270
|
color: e.color,
|
|
3206
3271
|
seriesIndex: t,
|
|
3207
3272
|
datapointIndex: i
|
|
3208
|
-
} }, void 0, !0)])], 8, In)) :
|
|
3273
|
+
} }, void 0, !0)])], 8, In)) : S("", !0)], 64))), 128))
|
|
3209
3274
|
], 6))), 128)),
|
|
3210
|
-
(H.value.bar.labels.show || H.value.bar.serieName.show) && U.value.dataLabels.show ? (D(),
|
|
3275
|
+
(H.value.bar.labels.show || H.value.bar.serieName.show) && U.value.dataLabels.show ? (D(), C("g", Rn, [(D(!0), C(b, null, k(Vs.value, (e, t) => (D(), C(b, { key: `xLabel_bar_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `xLabel_bar_${t}_${r}` }, [n && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || B.value !== null && B.value === r || R.value !== null && R.value === r) && H.value.bar.labels.show ? (D(), C("text", {
|
|
3211
3276
|
key: 0,
|
|
3212
|
-
"text-anchor":
|
|
3277
|
+
"text-anchor": vc({
|
|
3213
3278
|
plot: n,
|
|
3214
3279
|
type: "bar"
|
|
3215
3280
|
}),
|
|
3216
3281
|
"font-size": V.value.plotLabels,
|
|
3217
|
-
transform:
|
|
3282
|
+
transform: gc({ plot: n }),
|
|
3218
3283
|
fill: H.value.bar.labels.color,
|
|
3219
3284
|
stroke: H.value.chart.backgroundColor,
|
|
3220
3285
|
"paint-order": "stroke",
|
|
3221
3286
|
style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`),
|
|
3222
|
-
innerHTML:
|
|
3287
|
+
innerHTML: hc({
|
|
3223
3288
|
serie: e,
|
|
3224
3289
|
plot: n,
|
|
3225
3290
|
type: "bar"
|
|
3226
3291
|
})
|
|
3227
|
-
}, null, 12, zn)) :
|
|
3292
|
+
}, null, 12, zn)) : S("", !0), n && H.value.bar.serieName.show ? (D(), C("text", {
|
|
3228
3293
|
key: 1,
|
|
3229
|
-
x: U.value.useIndividualScale && U.value.isStacked ? n.x +
|
|
3294
|
+
x: U.value.useIndividualScale && U.value.isStacked ? n.x + Ko.value.line / 2 : n.x + qo() * 1.1,
|
|
3230
3295
|
y: n.y + (n.value > 0 ? H.value.bar.serieName.offsetY : -H.value.bar.serieName.offsetY * 3),
|
|
3231
3296
|
"text-anchor": "middle",
|
|
3232
3297
|
"font-size": V.value.plotLabels,
|
|
3233
3298
|
fill: H.value.bar.serieName.useSerieColor ? e.color : H.value.bar.serieName.color,
|
|
3234
3299
|
"font-weight": H.value.bar.serieName.bold ? "bold" : "normal",
|
|
3235
3300
|
style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3236
|
-
}, ut(H.value.bar.serieName.useAbbreviation ? j(
|
|
3301
|
+
}, ut(H.value.bar.serieName.useAbbreviation ? j(ve)({
|
|
3237
3302
|
source: e.name,
|
|
3238
3303
|
length: H.value.bar.serieName.abbreviationSize
|
|
3239
|
-
}) : e.name), 13, Bn)) :
|
|
3240
|
-
H.value.plot.labels.show && U.value.dataLabels.show ? (D(),
|
|
3304
|
+
}) : e.name), 13, Bn)) : S("", !0)], 64))), 128))], 64))), 128))])) : S("", !0),
|
|
3305
|
+
H.value.plot.labels.show && U.value.dataLabels.show ? (D(), C("g", Vn, [(D(!0), C(b, null, k(Hs.value, (e, t) => (D(), C(b, { key: `xLabel_plot_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `xLabel_plot_${t}_${r}` }, [n && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || B.value !== null && B.value === r || R.value !== null && R.value === r ? (D(), C("text", {
|
|
3241
3306
|
key: 0,
|
|
3242
|
-
transform:
|
|
3307
|
+
transform: _c({
|
|
3243
3308
|
plot: n,
|
|
3244
3309
|
type: "plot"
|
|
3245
3310
|
}),
|
|
3246
|
-
"text-anchor":
|
|
3311
|
+
"text-anchor": vc({
|
|
3247
3312
|
plot: n,
|
|
3248
3313
|
type: "plot"
|
|
3249
3314
|
}),
|
|
@@ -3252,62 +3317,62 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
3252
3317
|
stroke: H.value.chart.backgroundColor,
|
|
3253
3318
|
"paint-order": "stroke",
|
|
3254
3319
|
style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`),
|
|
3255
|
-
innerHTML:
|
|
3320
|
+
innerHTML: hc({
|
|
3256
3321
|
serie: e,
|
|
3257
3322
|
plot: n,
|
|
3258
3323
|
type: "plot"
|
|
3259
3324
|
})
|
|
3260
|
-
}, null, 12, Hn)) :
|
|
3325
|
+
}, null, 12, Hn)) : S("", !0)], 64))), 128))], 64))), 128))])) : (D(), C("g", Un, [(D(!0), C(b, null, k(Hs.value, (e, t) => (D(), C(b, { key: `xLabel_plot_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `xLabel_plot_${t}_${r}` }, [H.value.plot.tag.followValue ? (D(), C(b, { key: 1 }, [[
|
|
3261
3326
|
R.value,
|
|
3262
3327
|
B.value,
|
|
3263
3328
|
Ri.value
|
|
3264
|
-
].includes(r) && e.useTag ? (D(),
|
|
3329
|
+
].includes(r) && e.useTag ? (D(), C("line", {
|
|
3265
3330
|
key: 0,
|
|
3266
3331
|
class: "vue-ui-xy-tag-plot",
|
|
3267
|
-
x1:
|
|
3268
|
-
x2:
|
|
3332
|
+
x1: Y.value?.left,
|
|
3333
|
+
x2: Y.value?.right,
|
|
3269
3334
|
y1: n.y,
|
|
3270
3335
|
y2: n.y,
|
|
3271
3336
|
"stroke-width": 1,
|
|
3272
3337
|
"stroke-linecap": "round",
|
|
3273
3338
|
"stroke-dasharray": "2",
|
|
3274
3339
|
stroke: e.color
|
|
3275
|
-
}, null, 8, Jn)) :
|
|
3340
|
+
}, null, 8, Jn)) : S("", !0)], 64)) : (D(), C(b, { key: 0 }, [n && r === 0 && e.useTag && e.useTag === "start" ? (D(), C("foreignObject", {
|
|
3276
3341
|
key: 0,
|
|
3277
3342
|
x: n.x,
|
|
3278
3343
|
y: n.y - 20,
|
|
3279
3344
|
height: 24,
|
|
3280
3345
|
width: "150",
|
|
3281
3346
|
style: E(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3282
|
-
}, [
|
|
3283
|
-
style: E(`padding: 3px; background:${j(
|
|
3284
|
-
innerHTML: j(
|
|
3347
|
+
}, [w("div", {
|
|
3348
|
+
style: E(`padding: 3px; background:${j(me)(e.color, 80)};color:${j(xe)(e.color)};width:fit-content;font-size:${V.value.plotLabels}px;border-radius: 2px;`),
|
|
3349
|
+
innerHTML: j(fe)(H.value.plot.tag.formatter, n.value, e.name, {
|
|
3285
3350
|
datapoint: n,
|
|
3286
3351
|
seriesIndex: r,
|
|
3287
3352
|
serieName: e.name
|
|
3288
3353
|
})
|
|
3289
|
-
}, null, 12, Gn)], 12, Wn)) :
|
|
3354
|
+
}, null, 12, Gn)], 12, Wn)) : S("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (D(), C("foreignObject", {
|
|
3290
3355
|
key: 1,
|
|
3291
3356
|
x: n.x - e.name.length * (V.value.plotLabels / 2),
|
|
3292
3357
|
y: n.y - 20,
|
|
3293
3358
|
height: 24,
|
|
3294
3359
|
width: "150",
|
|
3295
3360
|
style: E(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3296
|
-
}, [
|
|
3297
|
-
style: E(`padding: 3px; background:${j(
|
|
3298
|
-
innerHTML: j(
|
|
3361
|
+
}, [w("div", {
|
|
3362
|
+
style: E(`padding: 3px; background:${j(me)(e.color, 80)};color:${j(xe)(e.color)};width:fit-content;font-size:${V.value.plotLabels}px;border-radius: 2px;`),
|
|
3363
|
+
innerHTML: j(fe)(H.value.plot.tag.formatter, n.value, e.name, {
|
|
3299
3364
|
datapoint: n,
|
|
3300
3365
|
seriesIndex: r,
|
|
3301
3366
|
serieName: e.name
|
|
3302
3367
|
})
|
|
3303
|
-
}, null, 12, qn)], 12, Kn)) :
|
|
3304
|
-
H.value.line.labels.show && U.value.dataLabels.show ? (D(),
|
|
3368
|
+
}, null, 12, qn)], 12, Kn)) : S("", !0)], 64))], 64))), 128))], 64))), 128))])),
|
|
3369
|
+
H.value.line.labels.show && U.value.dataLabels.show ? (D(), C("g", Yn, [(D(!0), C(b, null, k($.value, (e, t) => (D(), C(b, { key: `xLabel_line_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `xLabel_line_${t}_${r}` }, [n && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || B.value !== null && B.value === r || R.value !== null && R.value === r ? (D(), C("text", {
|
|
3305
3370
|
key: 0,
|
|
3306
|
-
transform:
|
|
3371
|
+
transform: _c({
|
|
3307
3372
|
plot: n,
|
|
3308
3373
|
type: "line"
|
|
3309
3374
|
}),
|
|
3310
|
-
"text-anchor":
|
|
3375
|
+
"text-anchor": vc({
|
|
3311
3376
|
plot: n,
|
|
3312
3377
|
type: "line"
|
|
3313
3378
|
}),
|
|
@@ -3316,63 +3381,63 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
3316
3381
|
stroke: H.value.chart.backgroundColor,
|
|
3317
3382
|
"paint-order": "stroke",
|
|
3318
3383
|
style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`),
|
|
3319
|
-
innerHTML:
|
|
3384
|
+
innerHTML: hc({
|
|
3320
3385
|
serie: e,
|
|
3321
3386
|
plot: n,
|
|
3322
3387
|
type: "line"
|
|
3323
3388
|
})
|
|
3324
|
-
}, null, 12, Xn)) :
|
|
3389
|
+
}, null, 12, Xn)) : S("", !0)], 64))), 128))], 64))), 128))])) : (D(), C("g", Zn, [(D(!0), C(b, null, k($.value, (e, t) => (D(), C(b, { key: `xLabel_line_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `xLabel_line_${t}_${r}` }, [H.value.line.tag.followValue ? (D(), C(b, { key: 1 }, [[
|
|
3325
3390
|
R.value,
|
|
3326
3391
|
B.value,
|
|
3327
3392
|
Ri.value
|
|
3328
|
-
].includes(r) && e.useTag ? (D(),
|
|
3393
|
+
].includes(r) && e.useTag ? (D(), C("line", {
|
|
3329
3394
|
key: 0,
|
|
3330
3395
|
class: "vue-ui-xy-tag-line",
|
|
3331
|
-
x1:
|
|
3332
|
-
x2:
|
|
3396
|
+
x1: Y.value?.left,
|
|
3397
|
+
x2: Y.value?.right,
|
|
3333
3398
|
y1: n.y,
|
|
3334
3399
|
y2: n.y,
|
|
3335
3400
|
"stroke-width": 1,
|
|
3336
3401
|
"stroke-linecap": "round",
|
|
3337
3402
|
"stroke-dasharray": "2",
|
|
3338
3403
|
stroke: e.color
|
|
3339
|
-
}, null, 8, nr)) :
|
|
3404
|
+
}, null, 8, nr)) : S("", !0)], 64)) : (D(), C(b, { key: 0 }, [n && r === 0 && e.useTag && e.useTag === "start" ? (D(), C("foreignObject", {
|
|
3340
3405
|
key: 0,
|
|
3341
3406
|
x: n.x,
|
|
3342
3407
|
y: n.y - 20,
|
|
3343
3408
|
height: 24,
|
|
3344
3409
|
width: "150",
|
|
3345
3410
|
style: E(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3346
|
-
}, [
|
|
3347
|
-
style: E(`padding: 3px; background:${j(
|
|
3348
|
-
innerHTML: j(
|
|
3411
|
+
}, [w("div", {
|
|
3412
|
+
style: E(`padding: 3px; background:${j(me)(e.color, 80)};color:${j(xe)(e.color)};width:fit-content;font-size:${V.value.plotLabels}px;border-radius: 2px;`),
|
|
3413
|
+
innerHTML: j(fe)(H.value.line.tag.formatter, n.value, e.name, {
|
|
3349
3414
|
datapoint: n,
|
|
3350
3415
|
seriesIndex: r,
|
|
3351
3416
|
serieName: e.name
|
|
3352
3417
|
})
|
|
3353
|
-
}, null, 12, $n)], 12, Qn)) :
|
|
3418
|
+
}, null, 12, $n)], 12, Qn)) : S("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (D(), C("foreignObject", {
|
|
3354
3419
|
key: 1,
|
|
3355
3420
|
x: n.x,
|
|
3356
3421
|
y: n.y - 20,
|
|
3357
3422
|
height: 24,
|
|
3358
3423
|
width: "150",
|
|
3359
3424
|
style: E(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3360
|
-
}, [
|
|
3361
|
-
style: E(`padding: 3px; background:${j(
|
|
3362
|
-
innerHTML: j(
|
|
3425
|
+
}, [w("div", {
|
|
3426
|
+
style: E(`padding: 3px; background:${j(me)(e.color, 80)};color:${j(xe)(e.color)};width:fit-content;font-size:${V.value.plotLabels}px;border-radius: 2px;`),
|
|
3427
|
+
innerHTML: j(fe)(H.value.line.tag.formatter, n.value, e.name, {
|
|
3363
3428
|
datapoint: n,
|
|
3364
3429
|
seriesIndex: r,
|
|
3365
3430
|
serieName: e.name
|
|
3366
3431
|
})
|
|
3367
|
-
}, null, 12, tr)], 12, er)) :
|
|
3368
|
-
(D(!0),
|
|
3432
|
+
}, null, 12, tr)], 12, er)) : S("", !0)], 64))], 64))), 128))], 64))), 128))])),
|
|
3433
|
+
(D(!0), C(b, null, k($.value, (e, t) => (D(), C(b, { key: `xLabel_line_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `xLabel_line_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (D(), C("text", {
|
|
3369
3434
|
key: 0,
|
|
3370
3435
|
x: n.x - V.value.plotLabels,
|
|
3371
3436
|
y: n.y,
|
|
3372
3437
|
"font-size": V.value.plotLabels,
|
|
3373
3438
|
"text-anchor": "end",
|
|
3374
3439
|
fill: e.color,
|
|
3375
|
-
innerHTML: j(
|
|
3440
|
+
innerHTML: j(Ee)({
|
|
3376
3441
|
content: e.name,
|
|
3377
3442
|
fontSize: V.value.plotLabels,
|
|
3378
3443
|
fill: e.color,
|
|
@@ -3381,14 +3446,14 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
3381
3446
|
maxWords: 2
|
|
3382
3447
|
}),
|
|
3383
3448
|
style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3384
|
-
}, null, 12, rr)) :
|
|
3449
|
+
}, null, 12, rr)) : S("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (D(), C("text", {
|
|
3385
3450
|
key: 1,
|
|
3386
3451
|
x: n.x + V.value.plotLabels,
|
|
3387
3452
|
y: n.y,
|
|
3388
3453
|
"font-size": V.value.plotLabels,
|
|
3389
3454
|
"text-anchor": "start",
|
|
3390
3455
|
fill: e.color,
|
|
3391
|
-
innerHTML: j(
|
|
3456
|
+
innerHTML: j(Ee)({
|
|
3392
3457
|
content: e.name,
|
|
3393
3458
|
fontSize: V.value.plotLabels,
|
|
3394
3459
|
fill: e.color,
|
|
@@ -3397,15 +3462,15 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
3397
3462
|
maxWords: 2
|
|
3398
3463
|
}),
|
|
3399
3464
|
style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3400
|
-
}, null, 12, ir)) :
|
|
3401
|
-
(D(!0),
|
|
3465
|
+
}, null, 12, ir)) : S("", !0)], 64))), 128))], 64))), 128)),
|
|
3466
|
+
(D(!0), C(b, null, k(Hs.value, (e, t) => (D(), C(b, { key: `xLabel_plot_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `xLabel_plot_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (D(), C("text", {
|
|
3402
3467
|
key: 0,
|
|
3403
3468
|
x: n.x - V.value.plotLabels,
|
|
3404
3469
|
y: n.y,
|
|
3405
3470
|
"font-size": V.value.plotLabels,
|
|
3406
3471
|
"text-anchor": "end",
|
|
3407
3472
|
fill: e.color,
|
|
3408
|
-
innerHTML: j(
|
|
3473
|
+
innerHTML: j(Ee)({
|
|
3409
3474
|
content: e.name,
|
|
3410
3475
|
fontSize: V.value.plotLabels,
|
|
3411
3476
|
fill: e.color,
|
|
@@ -3414,14 +3479,14 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
3414
3479
|
maxWords: 2
|
|
3415
3480
|
}),
|
|
3416
3481
|
style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3417
|
-
}, null, 12, ar)) :
|
|
3482
|
+
}, null, 12, ar)) : S("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (D(), C("text", {
|
|
3418
3483
|
key: 1,
|
|
3419
3484
|
x: n.x + V.value.plotLabels,
|
|
3420
3485
|
y: n.y,
|
|
3421
3486
|
"font-size": V.value.plotLabels,
|
|
3422
3487
|
"text-anchor": "start",
|
|
3423
3488
|
fill: e.color,
|
|
3424
|
-
innerHTML: j(
|
|
3489
|
+
innerHTML: j(Ee)({
|
|
3425
3490
|
content: e.name,
|
|
3426
3491
|
fontSize: V.value.plotLabels,
|
|
3427
3492
|
fill: e.color,
|
|
@@ -3430,13 +3495,13 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
3430
3495
|
maxWords: 2
|
|
3431
3496
|
}),
|
|
3432
3497
|
style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3433
|
-
}, null, 12, or)) :
|
|
3434
|
-
(D(!0),
|
|
3435
|
-
...
|
|
3498
|
+
}, null, 12, or)) : S("", !0)], 64))), 128))], 64))), 128)),
|
|
3499
|
+
(D(!0), C(b, null, k([
|
|
3500
|
+
...Hs.value,
|
|
3436
3501
|
...$.value,
|
|
3437
|
-
...
|
|
3438
|
-
], (e, t) => (D(),
|
|
3439
|
-
|
|
3502
|
+
...Vs.value
|
|
3503
|
+
], (e, t) => (D(), C(b, { key: `progression-${t}` }, [Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(j(ge)(e.plots).trend) ? (D(), C("g", sr, [
|
|
3504
|
+
w("defs", null, [w("marker", {
|
|
3440
3505
|
id: `progression_arrow_${t}`,
|
|
3441
3506
|
markerWidth: "9",
|
|
3442
3507
|
markerHeight: "9",
|
|
@@ -3446,44 +3511,44 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
3446
3511
|
refY: 7 / 2,
|
|
3447
3512
|
orient: "auto",
|
|
3448
3513
|
overflow: "visible"
|
|
3449
|
-
}, [
|
|
3514
|
+
}, [w("polygon", {
|
|
3450
3515
|
points: "0,0 7,3.5 0,7",
|
|
3451
3516
|
fill: e.color,
|
|
3452
3517
|
stroke: H.value.chart.backgroundColor,
|
|
3453
3518
|
"stroke-width": "1",
|
|
3454
3519
|
"stroke-linejoin": "round"
|
|
3455
3520
|
}, null, 8, lr)], 8, cr)]),
|
|
3456
|
-
e.plots.length > 1 ? (D(),
|
|
3521
|
+
e.plots.length > 1 ? (D(), C("line", {
|
|
3457
3522
|
key: 0,
|
|
3458
|
-
x1: j(
|
|
3459
|
-
x2: j(
|
|
3460
|
-
y1: j(
|
|
3461
|
-
y2: j(
|
|
3523
|
+
x1: j(ge)(e.plots).x1 + (e.type === "bar" ? qo() : 0),
|
|
3524
|
+
x2: j(ge)(e.plots).x2 + (e.type === "bar" ? qo() : 0),
|
|
3525
|
+
y1: j(v)(j(ge)(e.plots).y1),
|
|
3526
|
+
y2: j(v)(j(ge)(e.plots).y2),
|
|
3462
3527
|
"stroke-width": 1,
|
|
3463
3528
|
stroke: H.value.chart.backgroundColor,
|
|
3464
3529
|
"stroke-dasharray": 2,
|
|
3465
3530
|
"stroke-linecap": "round",
|
|
3466
3531
|
"stroke-linejoin": "round",
|
|
3467
3532
|
"marker-end": `url(#progression_arrow_${t})`
|
|
3468
|
-
}, null, 8, ur)) :
|
|
3469
|
-
e.plots.length > 1 ? (D(),
|
|
3533
|
+
}, null, 8, ur)) : S("", !0),
|
|
3534
|
+
e.plots.length > 1 ? (D(), C("line", {
|
|
3470
3535
|
key: 1,
|
|
3471
|
-
x1: j(
|
|
3472
|
-
x2: j(
|
|
3473
|
-
y1: j(
|
|
3474
|
-
y2: j(
|
|
3536
|
+
x1: j(ge)(e.plots).x1 + (e.type === "bar" ? qo() : 0),
|
|
3537
|
+
x2: j(ge)(e.plots).x2 + (e.type === "bar" ? qo() : 0),
|
|
3538
|
+
y1: j(v)(j(ge)(e.plots).y1),
|
|
3539
|
+
y2: j(v)(j(ge)(e.plots).y2),
|
|
3475
3540
|
"stroke-width": 1,
|
|
3476
3541
|
stroke: e.color,
|
|
3477
3542
|
"stroke-dasharray": 2,
|
|
3478
3543
|
"stroke-linecap": "round",
|
|
3479
3544
|
"stroke-linejoin": "round",
|
|
3480
3545
|
"marker-end": `url(#progression_arrow_${t})`
|
|
3481
|
-
}, null, 8, dr)) :
|
|
3482
|
-
e.plots.length > 1 ? (D(),
|
|
3546
|
+
}, null, 8, dr)) : S("", !0),
|
|
3547
|
+
e.plots.length > 1 ? (D(), C("text", {
|
|
3483
3548
|
key: 2,
|
|
3484
3549
|
"text-anchor": "middle",
|
|
3485
|
-
x: j(
|
|
3486
|
-
y: j(
|
|
3550
|
+
x: j(ge)(e.plots).x2 + (e.type === "bar" ? qo() : 0),
|
|
3551
|
+
y: j(ge)(e.plots).y2 - 12,
|
|
3487
3552
|
"font-size": V.value.plotLabels,
|
|
3488
3553
|
fill: e.color,
|
|
3489
3554
|
stroke: H.value.chart.backgroundColor,
|
|
@@ -3492,44 +3557,44 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
3492
3557
|
"stroke-linejoin": "round",
|
|
3493
3558
|
"paint-order": "stroke fill"
|
|
3494
3559
|
}, ut(j(a)({
|
|
3495
|
-
v: j(
|
|
3560
|
+
v: j(ge)(e.plots).trend * 100,
|
|
3496
3561
|
s: "%",
|
|
3497
3562
|
r: 2
|
|
3498
|
-
})), 9, fr)) :
|
|
3499
|
-
])) :
|
|
3500
|
-
U.value.useIndividualScale && !U.value.isStacked ? (D(),
|
|
3563
|
+
})), 9, fr)) : S("", !0)
|
|
3564
|
+
])) : S("", !0)], 64))), 128)),
|
|
3565
|
+
U.value.useIndividualScale && !U.value.isStacked ? (D(), C(b, { key: 13 }, [w("defs", null, [(D(!0), C(b, null, k(Us.value, (e, t) => (D(), C("linearGradient", {
|
|
3501
3566
|
id: `individual_scale_gradient_${L.value}_${t}`,
|
|
3502
|
-
x1: "0%",
|
|
3503
|
-
x2: "100%",
|
|
3567
|
+
x1: J.value ? "100%" : "0%",
|
|
3568
|
+
x2: J.value ? "0%" : "100%",
|
|
3504
3569
|
y1: "0%",
|
|
3505
3570
|
y2: "0%"
|
|
3506
|
-
}, [
|
|
3571
|
+
}, [w("stop", {
|
|
3507
3572
|
offset: "0%",
|
|
3508
3573
|
"stop-color": H.value.chart.backgroundColor,
|
|
3509
3574
|
"stop-opacity": "0"
|
|
3510
|
-
}, null, 8, mr),
|
|
3575
|
+
}, null, 8, mr), w("stop", {
|
|
3511
3576
|
offset: "100%",
|
|
3512
3577
|
"stop-color": e.color,
|
|
3513
3578
|
"stop-opacity": "0.2"
|
|
3514
|
-
}, null, 8, hr)], 8, pr))), 256))]), (D(!0),
|
|
3515
|
-
x: e.x - H.value.chart.grid.labels.yAxis.labelWidth
|
|
3516
|
-
y:
|
|
3517
|
-
width: H.value.chart.grid.labels.yAxis.labelWidth +
|
|
3518
|
-
height:
|
|
3579
|
+
}, null, 8, hr)], 8, pr))), 256))]), (D(!0), C(b, null, k(Us.value, (e, t) => (D(), C("rect", {
|
|
3580
|
+
x: J.value ? e.x : e.x - H.value.chart.grid.labels.yAxis.labelWidth - Y.value.individualOffsetX,
|
|
3581
|
+
y: Y.value?.top,
|
|
3582
|
+
width: (J.value, H.value.chart.grid.labels.yAxis.labelWidth + Y.value.individualOffsetX),
|
|
3583
|
+
height: Y.value.height < 0 ? 10 : Y.value.height,
|
|
3519
3584
|
fill: P.value === e.groupId ? `url(#individual_scale_gradient_${L.value}_${t})` : "transparent",
|
|
3520
3585
|
onMouseenter: (t) => P.value = e.groupId,
|
|
3521
3586
|
onMouseleave: i[0] ||= (e) => P.value = null
|
|
3522
|
-
}, null, 40, gr))), 256))], 64)) :
|
|
3523
|
-
|
|
3587
|
+
}, null, 40, gr))), 256))], 64)) : S("", !0),
|
|
3588
|
+
w("g", null, [H.value.chart.grid.labels.axis.yLabel && !U.value.useIndividualScale ? (D(), C("text", {
|
|
3524
3589
|
key: 0,
|
|
3525
3590
|
ref_key: "yAxisLabel",
|
|
3526
3591
|
ref: Ci,
|
|
3527
3592
|
"font-size": V.value.yAxis,
|
|
3528
3593
|
fill: H.value.chart.grid.labels.color,
|
|
3529
|
-
transform: `translate(${H.value.chart.grid.labels.axis.fontSize}, ${
|
|
3594
|
+
transform: `translate(${J.value ? Y.value.right + Y.value.scaleLabelsOffset + H.value.chart.grid.labels.axis.yLabelOffsetX + V.value.yAxis : H.value.chart.grid.labels.axis.fontSize + H.value.chart.grid.labels.axis.yLabelOffsetX}, ${Y.value?.top + Y.value.height / 2}) rotate(-90)`,
|
|
3530
3595
|
"text-anchor": "middle",
|
|
3531
3596
|
style: { transition: "none" }
|
|
3532
|
-
}, ut(H.value.chart.grid.labels.axis.yLabel), 9, _r)) :
|
|
3597
|
+
}, ut(H.value.chart.grid.labels.axis.yLabel), 9, _r)) : S("", !0), H.value.chart.grid.labels.axis.xLabel ? (D(), C("text", {
|
|
3533
3598
|
key: 1,
|
|
3534
3599
|
ref_key: "xAxisLabel",
|
|
3535
3600
|
ref: Si,
|
|
@@ -3538,32 +3603,32 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
3538
3603
|
y: ji.value - 3,
|
|
3539
3604
|
"font-size": V.value.yAxis,
|
|
3540
3605
|
fill: H.value.chart.grid.labels.color
|
|
3541
|
-
}, ut(H.value.chart.grid.labels.axis.xLabel), 9, vr)) :
|
|
3542
|
-
H.value.chart.grid.labels.xAxisLabels.show ? (D(),
|
|
3606
|
+
}, ut(H.value.chart.grid.labels.axis.xLabel), 9, vr)) : S("", !0)]),
|
|
3607
|
+
H.value.chart.grid.labels.xAxisLabels.show ? (D(), C("g", {
|
|
3543
3608
|
key: 14,
|
|
3544
3609
|
ref_key: "timeLabelsEls",
|
|
3545
3610
|
ref: wi
|
|
3546
|
-
}, [r.$slots["time-label"] ? (D(!0),
|
|
3611
|
+
}, [r.$slots["time-label"] ? (D(!0), C(b, { key: 0 }, k(bo.value, (e, t) => A(r.$slots, "time-label", nt({
|
|
3547
3612
|
key: `time_label_${e.id}`,
|
|
3548
3613
|
ref_for: !0
|
|
3549
3614
|
}, {
|
|
3550
|
-
x:
|
|
3551
|
-
y:
|
|
3615
|
+
x: xs(t),
|
|
3616
|
+
y: Y.value?.bottom,
|
|
3552
3617
|
fontSize: V.value.xAxis,
|
|
3553
3618
|
fill: H.value.chart.grid.labels.xAxisLabels.color,
|
|
3554
|
-
transform: `translate(${
|
|
3619
|
+
transform: `translate(${xs(t)}, ${Y.value?.bottom + V.value.xAxis * 1.3 + H.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${H.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3555
3620
|
absoluteIndex: e.absoluteIndex,
|
|
3556
3621
|
content: e.text,
|
|
3557
3622
|
textAnchor: H.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : H.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3558
3623
|
show: e && e.text
|
|
3559
|
-
}), void 0, !0)), 128)) : (D(!0),
|
|
3624
|
+
}), void 0, !0)), 128)) : (D(!0), C(b, { key: 1 }, k(bo.value, (e, t) => (D(), C("g", { key: `time_label_${t}` }, [e && e.text ? (D(), C(b, { key: 0 }, [String(e.text).includes("\n") ? (D(), C("text", {
|
|
3560
3625
|
key: 1,
|
|
3561
3626
|
class: "vue-data-ui-time-label",
|
|
3562
3627
|
"text-anchor": H.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : H.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3563
3628
|
"font-size": V.value.xAxis,
|
|
3564
3629
|
fill: H.value.chart.grid.labels.xAxisLabels.color,
|
|
3565
|
-
transform: `translate(${
|
|
3566
|
-
style: E({ cursor:
|
|
3630
|
+
transform: `translate(${xs(t)}, ${Y.value?.bottom + V.value.xAxis * 1.5}), rotate(${H.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3631
|
+
style: E({ cursor: co() && ya.value ? "pointer" : "default" }),
|
|
3567
3632
|
innerHTML: j(n)({
|
|
3568
3633
|
content: String(e.text),
|
|
3569
3634
|
fontSize: V.value.xAxis,
|
|
@@ -3571,19 +3636,19 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
3571
3636
|
x: 0,
|
|
3572
3637
|
y: 0
|
|
3573
3638
|
}),
|
|
3574
|
-
onClick: () =>
|
|
3575
|
-
}, null, 12, br)) : (D(),
|
|
3639
|
+
onClick: () => So(e, t)
|
|
3640
|
+
}, null, 12, br)) : (D(), C("text", {
|
|
3576
3641
|
key: 0,
|
|
3577
3642
|
class: "vue-data-ui-time-label",
|
|
3578
3643
|
"text-anchor": H.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : H.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3579
3644
|
"font-size": V.value.xAxis,
|
|
3580
3645
|
fill: H.value.chart.grid.labels.xAxisLabels.color,
|
|
3581
|
-
transform: `translate(${
|
|
3582
|
-
style: E({ cursor:
|
|
3583
|
-
onClick: () =>
|
|
3584
|
-
}, ut(e.text || ""), 13, yr))], 64)) :
|
|
3585
|
-
|
|
3586
|
-
e.yTop && e.show && isFinite(e.yTop) ? (D(),
|
|
3646
|
+
transform: `translate(${xs(t)}, ${Y.value?.bottom + V.value.xAxis * 1.5}), rotate(${H.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3647
|
+
style: E({ cursor: co() && ya.value ? "pointer" : "default" }),
|
|
3648
|
+
onClick: () => So(e, t)
|
|
3649
|
+
}, ut(e.text || ""), 13, yr))], 64)) : S("", !0)]))), 128))], 512)) : S("", !0),
|
|
3650
|
+
Rs.value.length && !U.value.isStacked ? (D(), C("g", xr, [(D(!0), C(b, null, k(Rs.value, (e) => (D(), C("g", { key: e.uid }, [
|
|
3651
|
+
e.yTop && e.show && isFinite(e.yTop) ? (D(), C("line", {
|
|
3587
3652
|
key: 0,
|
|
3588
3653
|
x1: e.x1,
|
|
3589
3654
|
y1: e.yTop,
|
|
@@ -3594,8 +3659,8 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
3594
3659
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
3595
3660
|
"stroke-linecap": "round",
|
|
3596
3661
|
style: { animation: "none !important" }
|
|
3597
|
-
}, null, 8, Sr)) :
|
|
3598
|
-
e.yBottom && e.show && isFinite(e.yBottom) ? (D(),
|
|
3662
|
+
}, null, 8, Sr)) : S("", !0),
|
|
3663
|
+
e.yBottom && e.show && isFinite(e.yBottom) ? (D(), C("line", {
|
|
3599
3664
|
key: 1,
|
|
3600
3665
|
x1: e.x1,
|
|
3601
3666
|
y1: e.yBottom,
|
|
@@ -3606,24 +3671,24 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
3606
3671
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
3607
3672
|
"stroke-linecap": "round",
|
|
3608
3673
|
style: { animation: "none !important" }
|
|
3609
|
-
}, null, 8, Cr)) :
|
|
3610
|
-
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (D(),
|
|
3674
|
+
}, null, 8, Cr)) : S("", !0),
|
|
3675
|
+
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (D(), C("rect", {
|
|
3611
3676
|
key: 2,
|
|
3612
3677
|
y: Math.min(e.yTop, e.yBottom),
|
|
3613
3678
|
x: e.x1,
|
|
3614
|
-
width:
|
|
3615
|
-
height: j(
|
|
3616
|
-
fill: j(
|
|
3679
|
+
width: Y.value.width,
|
|
3680
|
+
height: j(y)(e.areaHeight, 0),
|
|
3681
|
+
fill: j(me)(e.config.area.fill, e.config.area.opacity),
|
|
3617
3682
|
style: { animation: "none !important" }
|
|
3618
|
-
}, null, 8, wr)) :
|
|
3619
|
-
e.config.label.text && e.show && isFinite(e._box.y) ? (D(),
|
|
3683
|
+
}, null, 8, wr)) : S("", !0),
|
|
3684
|
+
e.config.label.text && e.show && isFinite(e._box.y) ? (D(), C("rect", nt({
|
|
3620
3685
|
key: 3,
|
|
3621
3686
|
class: "vue-ui-xy-annotation-label-box"
|
|
3622
3687
|
}, { ref_for: !0 }, e._box, { style: {
|
|
3623
3688
|
animation: "none !important",
|
|
3624
3689
|
transition: "none !important"
|
|
3625
|
-
} }), null, 16)) :
|
|
3626
|
-
e.config.label.text && e.show && isFinite(e._text.y) ? (D(),
|
|
3690
|
+
} }), null, 16)) : S("", !0),
|
|
3691
|
+
e.config.label.text && e.show && isFinite(e._text.y) ? (D(), C("text", {
|
|
3627
3692
|
key: 4,
|
|
3628
3693
|
id: e.id,
|
|
3629
3694
|
class: "vue-ui-xy-annotation-label",
|
|
@@ -3632,70 +3697,70 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
3632
3697
|
"font-size": e.config.label.fontSize,
|
|
3633
3698
|
fill: e.config.label.color,
|
|
3634
3699
|
"text-anchor": e.config.label.textAnchor
|
|
3635
|
-
}, ut(e.config.label.text), 9, Tr)) :
|
|
3636
|
-
]))), 128))])) :
|
|
3637
|
-
H.value.chart.timeTag.show && (![null, void 0].includes(B.value) || ![null, void 0].includes(R.value)) ? (D(),
|
|
3638
|
-
x:
|
|
3639
|
-
y:
|
|
3700
|
+
}, ut(e.config.label.text), 9, Tr)) : S("", !0)
|
|
3701
|
+
]))), 128))])) : S("", !0),
|
|
3702
|
+
H.value.chart.timeTag.show && (![null, void 0].includes(B.value) || ![null, void 0].includes(R.value)) ? (D(), C("g", Er, [(D(), C("foreignObject", {
|
|
3703
|
+
x: pc(),
|
|
3704
|
+
y: Y.value?.bottom,
|
|
3640
3705
|
width: "200",
|
|
3641
3706
|
height: "40",
|
|
3642
3707
|
style: { overflow: "visible !important" }
|
|
3643
|
-
}, [
|
|
3708
|
+
}, [w("div", {
|
|
3644
3709
|
ref_key: "timeTagEl",
|
|
3645
|
-
ref:
|
|
3710
|
+
ref: lc,
|
|
3646
3711
|
class: "vue-ui-xy-time-tag",
|
|
3647
3712
|
style: E(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${H.value.chart.timeTag.backgroundColor};color:${H.value.chart.timeTag.color};font-size:${H.value.chart.timeTag.fontSize}px`),
|
|
3648
|
-
innerHTML:
|
|
3649
|
-
}, null, 12, Or)], 8, Dr)),
|
|
3650
|
-
cx:
|
|
3651
|
-
cy:
|
|
3713
|
+
innerHTML: mc.value
|
|
3714
|
+
}, null, 12, Or)], 8, Dr)), w("circle", {
|
|
3715
|
+
cx: xs((B.value === null ? 0 : B.value) || (R.value === null ? 0 : R.value)),
|
|
3716
|
+
cy: Y.value?.bottom,
|
|
3652
3717
|
r: H.value.chart.timeTag.circleMarker.radius,
|
|
3653
3718
|
fill: H.value.chart.timeTag.circleMarker.color
|
|
3654
|
-
}, null, 8, kr)])) :
|
|
3655
|
-
])) :
|
|
3656
|
-
|
|
3657
|
-
"data-start":
|
|
3658
|
-
"data-end":
|
|
3659
|
-
}), null, 16, Ar)) :
|
|
3719
|
+
}, null, 8, kr)])) : S("", !0)
|
|
3720
|
+
])) : S("", !0),
|
|
3721
|
+
Aa.value ? (D(), C("rect", nt({ key: 2 }, Na.value, {
|
|
3722
|
+
"data-start": K.value.start,
|
|
3723
|
+
"data-end": K.value.end
|
|
3724
|
+
}), null, 16, Ar)) : S("", !0),
|
|
3660
3725
|
A(r.$slots, "svg", { svg: {
|
|
3661
3726
|
...la.value,
|
|
3662
|
-
slicer:
|
|
3663
|
-
isPrintingImg: j(
|
|
3727
|
+
slicer: K.value,
|
|
3728
|
+
isPrintingImg: j(Pa) || j(Fa) || Zi.value,
|
|
3664
3729
|
isPrintingSvg: Qi.value,
|
|
3665
3730
|
data: [
|
|
3666
3731
|
...$.value,
|
|
3667
|
-
...
|
|
3668
|
-
...
|
|
3732
|
+
...Vs.value,
|
|
3733
|
+
...Hs.value
|
|
3669
3734
|
],
|
|
3670
|
-
drawingArea:
|
|
3735
|
+
drawingArea: Y.value
|
|
3671
3736
|
} }, void 0, !0)
|
|
3672
|
-
], 512)], 46, St)), r.$slots.hint ? (D(),
|
|
3737
|
+
], 512)], 46, St)), r.$slots.hint ? (D(), C("div", jr, [A(r.$slots, "hint", at(T({
|
|
3673
3738
|
hint: H.value.a11y.translations.keyboardNavigation,
|
|
3674
|
-
isVisible:
|
|
3675
|
-
})), void 0, !0)])) :
|
|
3676
|
-
r.$slots.watermark ? (D(),
|
|
3677
|
-
(D(!0),
|
|
3739
|
+
isVisible: jc.value
|
|
3740
|
+
})), void 0, !0)])) : S("", !0)]),
|
|
3741
|
+
r.$slots.watermark ? (D(), C("div", Mr, [A(r.$slots, "watermark", at(T({ isPrinting: j(Pa) || j(Fa) || Zi.value || Qi.value })), void 0, !0)])) : S("", !0),
|
|
3742
|
+
(D(!0), C(b, null, k($.value, (e, t) => (D(), C(b, { key: `tag_line_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `tag_line_${t}_${r}` }, [[
|
|
3678
3743
|
R.value,
|
|
3679
3744
|
B.value,
|
|
3680
3745
|
Ri.value
|
|
3681
|
-
].includes(r) && e.useTag && e.useTag === "end" && H.value.line.tag.followValue ? (D(),
|
|
3746
|
+
].includes(r) && e.useTag && e.useTag === "end" && H.value.line.tag.followValue ? (D(), C("div", {
|
|
3682
3747
|
key: 0,
|
|
3683
3748
|
ref_for: !0,
|
|
3684
|
-
ref: (e) =>
|
|
3749
|
+
ref: (e) => fo(t, r, e, "right", "line"),
|
|
3685
3750
|
class: "vue-ui-xy-tag",
|
|
3686
3751
|
"data-tag": "right",
|
|
3687
3752
|
style: E({
|
|
3688
3753
|
position: "fixed",
|
|
3689
3754
|
top: j(p)({
|
|
3690
3755
|
svgElement: z.value,
|
|
3691
|
-
x:
|
|
3756
|
+
x: Y.value?.right + H.value.line.tag.fontSize / 1.5,
|
|
3692
3757
|
y: n.y,
|
|
3693
3758
|
element: qi.value[`${t}_${r}_right_line`],
|
|
3694
3759
|
position: "right"
|
|
3695
3760
|
})?.top + "px",
|
|
3696
3761
|
left: j(p)({
|
|
3697
3762
|
svgElement: z.value,
|
|
3698
|
-
x:
|
|
3763
|
+
x: Y.value?.right + H.value.line.tag.fontSize / 1.5,
|
|
3699
3764
|
y: n.y,
|
|
3700
3765
|
element: qi.value[`${t}_${r}_right_line`],
|
|
3701
3766
|
position: "right"
|
|
@@ -3703,44 +3768,44 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
3703
3768
|
height: "fit-content",
|
|
3704
3769
|
width: "fit-content",
|
|
3705
3770
|
background: e.color,
|
|
3706
|
-
color: j(
|
|
3771
|
+
color: j(xe)(e.color),
|
|
3707
3772
|
padding: "0 6px",
|
|
3708
3773
|
fontSize: H.value.line.tag.fontSize + "px",
|
|
3709
3774
|
opacity: 1
|
|
3710
3775
|
})
|
|
3711
|
-
}, [(D(),
|
|
3776
|
+
}, [(D(), C("svg", Nr, [w("path", {
|
|
3712
3777
|
d: "M 0,10 10,0 10,20 Z",
|
|
3713
3778
|
fill: e.color,
|
|
3714
3779
|
stroke: "none"
|
|
3715
|
-
}, null, 8, Pr)])),
|
|
3780
|
+
}, null, 8, Pr)])), w("div", {
|
|
3716
3781
|
class: "vue-ui-xy-tag-content",
|
|
3717
|
-
innerHTML: j(
|
|
3782
|
+
innerHTML: j(fe)(H.value.line.tag.formatter, n.value, e.name, {
|
|
3718
3783
|
datapoint: n,
|
|
3719
3784
|
seriesIndex: r,
|
|
3720
3785
|
serieName: e.name
|
|
3721
3786
|
})
|
|
3722
|
-
}, null, 8, Fr)], 4)) :
|
|
3787
|
+
}, null, 8, Fr)], 4)) : S("", !0), [
|
|
3723
3788
|
R.value,
|
|
3724
3789
|
B.value,
|
|
3725
3790
|
Ri.value
|
|
3726
|
-
].includes(r) && e.useTag && e.useTag === "start" && H.value.line.tag.followValue ? (D(),
|
|
3791
|
+
].includes(r) && e.useTag && e.useTag === "start" && H.value.line.tag.followValue ? (D(), C("div", {
|
|
3727
3792
|
key: 1,
|
|
3728
3793
|
ref_for: !0,
|
|
3729
|
-
ref: (e) =>
|
|
3794
|
+
ref: (e) => fo(t, r, e, "left", "line"),
|
|
3730
3795
|
class: "vue-ui-xy-tag",
|
|
3731
3796
|
"data-tag": "left",
|
|
3732
3797
|
style: E({
|
|
3733
3798
|
position: "fixed",
|
|
3734
3799
|
top: j(p)({
|
|
3735
3800
|
svgElement: z.value,
|
|
3736
|
-
x:
|
|
3801
|
+
x: Y.value?.left - H.value.line.tag.fontSize / 1.5,
|
|
3737
3802
|
y: n.y,
|
|
3738
3803
|
element: qi.value[`${t}_${r}_left_line`],
|
|
3739
3804
|
position: "left"
|
|
3740
3805
|
})?.top + "px",
|
|
3741
3806
|
left: j(p)({
|
|
3742
3807
|
svgElement: z.value,
|
|
3743
|
-
x:
|
|
3808
|
+
x: Y.value?.left - H.value.line.tag.fontSize / 1.5,
|
|
3744
3809
|
y: n.y,
|
|
3745
3810
|
element: qi.value[`${t}_${r}_left_line`],
|
|
3746
3811
|
position: "left"
|
|
@@ -3748,45 +3813,45 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
3748
3813
|
height: "fit-content",
|
|
3749
3814
|
width: "fit-content",
|
|
3750
3815
|
background: e.color,
|
|
3751
|
-
color: j(
|
|
3816
|
+
color: j(xe)(e.color),
|
|
3752
3817
|
padding: "0 6px",
|
|
3753
3818
|
fontSize: H.value.line.tag.fontSize + "px",
|
|
3754
3819
|
opacity: 1
|
|
3755
3820
|
})
|
|
3756
|
-
}, [(D(),
|
|
3821
|
+
}, [(D(), C("svg", Ir, [w("path", {
|
|
3757
3822
|
d: "M 0,0 10,10 0,20 Z",
|
|
3758
3823
|
fill: e.color,
|
|
3759
3824
|
stroke: "none"
|
|
3760
|
-
}, null, 8, Lr)])),
|
|
3825
|
+
}, null, 8, Lr)])), w("div", {
|
|
3761
3826
|
class: "vue-ui-xy-tag-content",
|
|
3762
|
-
innerHTML: j(
|
|
3827
|
+
innerHTML: j(fe)(H.value.line.tag.formatter, n.value, e.name, {
|
|
3763
3828
|
datapoint: n,
|
|
3764
3829
|
seriesIndex: r,
|
|
3765
3830
|
serieName: e.name
|
|
3766
3831
|
})
|
|
3767
|
-
}, null, 8, Rr)], 4)) :
|
|
3768
|
-
(D(!0),
|
|
3832
|
+
}, null, 8, Rr)], 4)) : S("", !0)], 64))), 128))], 64))), 128)),
|
|
3833
|
+
(D(!0), C(b, null, k(Hs.value, (e, t) => (D(), C(b, { key: `tag_plot_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `tag_plot_${t}_${r}` }, [[
|
|
3769
3834
|
R.value,
|
|
3770
3835
|
B.value,
|
|
3771
3836
|
Ri.value
|
|
3772
|
-
].includes(r) && e.useTag && e.useTag === "end" && H.value.plot.tag.followValue ? (D(),
|
|
3837
|
+
].includes(r) && e.useTag && e.useTag === "end" && H.value.plot.tag.followValue ? (D(), C("div", {
|
|
3773
3838
|
key: 0,
|
|
3774
3839
|
ref_for: !0,
|
|
3775
|
-
ref: (e) =>
|
|
3840
|
+
ref: (e) => fo(t, r, e, "right", "plot"),
|
|
3776
3841
|
class: "vue-ui-xy-tag",
|
|
3777
3842
|
"data-tag": "right",
|
|
3778
3843
|
style: E({
|
|
3779
3844
|
position: "fixed",
|
|
3780
3845
|
top: j(p)({
|
|
3781
3846
|
svgElement: z.value,
|
|
3782
|
-
x:
|
|
3847
|
+
x: Y.value?.right + H.value.plot.tag.fontSize / 1.5,
|
|
3783
3848
|
y: n.y,
|
|
3784
3849
|
element: qi.value[`${t}_${r}_right_plot`],
|
|
3785
3850
|
position: "right"
|
|
3786
3851
|
})?.top + "px",
|
|
3787
3852
|
left: j(p)({
|
|
3788
3853
|
svgElement: z.value,
|
|
3789
|
-
x:
|
|
3854
|
+
x: Y.value?.right + H.value.plot.tag.fontSize / 1.5,
|
|
3790
3855
|
y: n.y,
|
|
3791
3856
|
element: qi.value[`${t}_${r}_right_plot`],
|
|
3792
3857
|
position: "right"
|
|
@@ -3794,44 +3859,44 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
3794
3859
|
height: "fit-content",
|
|
3795
3860
|
width: "fit-content",
|
|
3796
3861
|
background: e.color,
|
|
3797
|
-
color: j(
|
|
3862
|
+
color: j(xe)(e.color),
|
|
3798
3863
|
padding: "0 6px",
|
|
3799
3864
|
fontSize: H.value.plot.tag.fontSize + "px",
|
|
3800
3865
|
opacity: 1
|
|
3801
3866
|
})
|
|
3802
|
-
}, [(D(),
|
|
3867
|
+
}, [(D(), C("svg", zr, [w("path", {
|
|
3803
3868
|
d: "M 0,10 10,0 10,20 Z",
|
|
3804
3869
|
fill: e.color,
|
|
3805
3870
|
stroke: "none"
|
|
3806
|
-
}, null, 8, Br)])),
|
|
3871
|
+
}, null, 8, Br)])), w("div", {
|
|
3807
3872
|
class: "vue-ui-xy-tag-content",
|
|
3808
|
-
innerHTML: j(
|
|
3873
|
+
innerHTML: j(fe)(H.value.plot.tag.formatter, n.value, e.name, {
|
|
3809
3874
|
datapoint: n,
|
|
3810
3875
|
seriesIndex: r,
|
|
3811
3876
|
serieName: e.name
|
|
3812
3877
|
})
|
|
3813
|
-
}, null, 8, Vr)], 4)) :
|
|
3878
|
+
}, null, 8, Vr)], 4)) : S("", !0), [
|
|
3814
3879
|
R.value,
|
|
3815
3880
|
B.value,
|
|
3816
3881
|
Ri.value
|
|
3817
|
-
].includes(r) && e.useTag && e.useTag === "start" && H.value.plot.tag.followValue ? (D(),
|
|
3882
|
+
].includes(r) && e.useTag && e.useTag === "start" && H.value.plot.tag.followValue ? (D(), C("div", {
|
|
3818
3883
|
key: 1,
|
|
3819
3884
|
ref_for: !0,
|
|
3820
|
-
ref: (e) =>
|
|
3885
|
+
ref: (e) => fo(t, r, e, "left", "plot"),
|
|
3821
3886
|
class: "vue-ui-xy-tag",
|
|
3822
3887
|
"data-tag": "left",
|
|
3823
3888
|
style: E({
|
|
3824
3889
|
position: "fixed",
|
|
3825
3890
|
top: j(p)({
|
|
3826
3891
|
svgElement: z.value,
|
|
3827
|
-
x:
|
|
3892
|
+
x: Y.value?.left - H.value.plot.tag.fontSize / 1.5,
|
|
3828
3893
|
y: n.y,
|
|
3829
3894
|
element: qi.value[`${t}_${r}_left_plot`],
|
|
3830
3895
|
position: "left"
|
|
3831
3896
|
})?.top + "px",
|
|
3832
3897
|
left: j(p)({
|
|
3833
3898
|
svgElement: z.value,
|
|
3834
|
-
x:
|
|
3899
|
+
x: Y.value?.left - H.value.plot.tag.fontSize / 1.5,
|
|
3835
3900
|
y: n.y,
|
|
3836
3901
|
element: qi.value[`${t}_${r}_left_plot`],
|
|
3837
3902
|
position: "left"
|
|
@@ -3839,48 +3904,48 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
3839
3904
|
height: "fit-content",
|
|
3840
3905
|
width: "fit-content",
|
|
3841
3906
|
background: e.color,
|
|
3842
|
-
color: j(
|
|
3907
|
+
color: j(xe)(e.color),
|
|
3843
3908
|
padding: "0 6px",
|
|
3844
3909
|
fontSize: H.value.plot.tag.fontSize + "px",
|
|
3845
3910
|
opacity: 1
|
|
3846
3911
|
})
|
|
3847
|
-
}, [(D(),
|
|
3912
|
+
}, [(D(), C("svg", Hr, [w("path", {
|
|
3848
3913
|
d: "M 0,0 10,10 0,20 Z",
|
|
3849
3914
|
fill: e.color,
|
|
3850
3915
|
stroke: "none"
|
|
3851
|
-
}, null, 8, Ur)])),
|
|
3916
|
+
}, null, 8, Ur)])), w("div", {
|
|
3852
3917
|
class: "vue-ui-xy-tag-content",
|
|
3853
|
-
innerHTML: j(
|
|
3918
|
+
innerHTML: j(fe)(H.value.plot.tag.formatter, n.value, e.name, {
|
|
3854
3919
|
datapoint: n,
|
|
3855
3920
|
seriesIndex: r,
|
|
3856
3921
|
serieName: e.name
|
|
3857
3922
|
})
|
|
3858
|
-
}, null, 8, Wr)], 4)) :
|
|
3859
|
-
H.value.chart.zoom.show &&
|
|
3923
|
+
}, null, 8, Wr)], 4)) : S("", !0)], 64))), 128))], 64))), 128)),
|
|
3924
|
+
H.value.chart.zoom.show && G.value > 6 && va.value && ko.value ? (D(), Xe(Ge, {
|
|
3860
3925
|
key: 6,
|
|
3861
3926
|
ref_key: "chartSlicer",
|
|
3862
3927
|
ref: _i,
|
|
3863
3928
|
uuid: L.value,
|
|
3864
|
-
allMinimaps:
|
|
3929
|
+
allMinimaps: Fs.value,
|
|
3865
3930
|
background: H.value.chart.zoom.color,
|
|
3866
3931
|
borderColor: H.value.chart.backgroundColor,
|
|
3867
3932
|
customFormat: H.value.chart.zoom.customFormat,
|
|
3868
3933
|
cutNullValues: H.value.line.cutNullValues,
|
|
3869
3934
|
enableRangeHandles: H.value.chart.zoom.enableRangeHandles,
|
|
3870
3935
|
enableSelectionDrag: H.value.chart.zoom.enableSelectionDrag,
|
|
3871
|
-
end:
|
|
3936
|
+
end: K.value.end,
|
|
3872
3937
|
focusOnDrag: H.value.chart.zoom.focusOnDrag,
|
|
3873
3938
|
focusRangeRatio: H.value.chart.zoom.focusRangeRatio,
|
|
3874
3939
|
fontSize: H.value.chart.zoom.fontSize,
|
|
3875
3940
|
useResetSlot: H.value.chart.zoom.useResetSlot,
|
|
3876
3941
|
immediate: !H.value.chart.zoom.preview.enable,
|
|
3877
3942
|
inputColor: H.value.chart.zoom.color,
|
|
3878
|
-
isPreview:
|
|
3879
|
-
labelLeft:
|
|
3880
|
-
labelRight:
|
|
3881
|
-
max:
|
|
3943
|
+
isPreview: Aa.value,
|
|
3944
|
+
labelLeft: X.value[0] ? X.value[0].text : "",
|
|
3945
|
+
labelRight: X.value.at(-1) ? X.value.at(-1).text : "",
|
|
3946
|
+
max: G.value,
|
|
3882
3947
|
min: 0,
|
|
3883
|
-
minimap:
|
|
3948
|
+
minimap: Ps.value,
|
|
3884
3949
|
minimapCompact: H.value.chart.zoom.minimap.compact,
|
|
3885
3950
|
minimapFrameColor: H.value.chart.zoom.minimap.frameColor,
|
|
3886
3951
|
minimapIndicatorColor: H.value.chart.zoom.minimap.indicatorColor,
|
|
@@ -3890,18 +3955,18 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
3890
3955
|
minimapSelectedColorOpacity: H.value.chart.zoom.minimap.selectedColorOpacity,
|
|
3891
3956
|
minimapSelectedIndex: B.value,
|
|
3892
3957
|
minimapSelectionRadius: H.value.chart.zoom.minimap.selectionRadius,
|
|
3893
|
-
preciseLabels:
|
|
3894
|
-
refreshEndPoint: H.value.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) =>
|
|
3958
|
+
preciseLabels: Ys.value.length ? Ys.value : go.value,
|
|
3959
|
+
refreshEndPoint: H.value.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => Oa(e.series).length)) : H.value.chart.zoom.endIndex + 1,
|
|
3895
3960
|
refreshStartPoint: H.value.chart.zoom.startIndex === null ? 0 : H.value.chart.zoom.startIndex,
|
|
3896
3961
|
selectColor: H.value.chart.zoom.highlightColor,
|
|
3897
|
-
selectedSeries:
|
|
3962
|
+
selectedSeries: Is.value,
|
|
3898
3963
|
smoothMinimap: H.value.chart.zoom.minimap.smooth,
|
|
3899
|
-
start:
|
|
3964
|
+
start: K.value.start,
|
|
3900
3965
|
textColor: H.value.chart.color,
|
|
3901
|
-
timeLabels:
|
|
3966
|
+
timeLabels: go.value,
|
|
3902
3967
|
usePreciseLabels: H.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !H.value.chart.zoom.useDefaultFormat,
|
|
3903
|
-
valueEnd:
|
|
3904
|
-
valueStart:
|
|
3968
|
+
valueEnd: K.value.end,
|
|
3969
|
+
valueStart: K.value.start,
|
|
3905
3970
|
verticalHandles: H.value.chart.zoom.minimap.verticalHandles,
|
|
3906
3971
|
minScale: H.value.chart.grid.labels.yAxis.scaleMin,
|
|
3907
3972
|
maxScale: H.value.chart.grid.labels.yAxis.scaleMax,
|
|
@@ -3913,53 +3978,53 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
3913
3978
|
handleBorderColor: H.value.chart.zoom.minimap.handleBorderColor,
|
|
3914
3979
|
handleFill: H.value.chart.zoom.minimap.handleFill,
|
|
3915
3980
|
handleWidth: H.value.chart.zoom.minimap.handleWidth,
|
|
3916
|
-
isCursorPointer:
|
|
3917
|
-
onFutureEnd: i[1] ||= (e) =>
|
|
3918
|
-
onFutureStart: i[2] ||= (e) =>
|
|
3919
|
-
onReset:
|
|
3920
|
-
onTrapMouse:
|
|
3921
|
-
"onUpdate:end":
|
|
3922
|
-
"onUpdate:start":
|
|
3981
|
+
isCursorPointer: ya.value,
|
|
3982
|
+
onFutureEnd: i[1] ||= (e) => ja("end", e),
|
|
3983
|
+
onFutureStart: i[2] ||= (e) => ja("start", e),
|
|
3984
|
+
onReset: Lo,
|
|
3985
|
+
onTrapMouse: Co,
|
|
3986
|
+
"onUpdate:end": Io,
|
|
3987
|
+
"onUpdate:start": Fo
|
|
3923
3988
|
}, {
|
|
3924
|
-
"reset-action": M(({ reset: e }) => [A(r.$slots, "reset-action", T(
|
|
3989
|
+
"reset-action": M(({ reset: e }) => [A(r.$slots, "reset-action", at(T({ reset: e })), void 0, !0)]),
|
|
3925
3990
|
_: 3
|
|
3926
|
-
}, 8, /* @__PURE__ */ "uuid.allMinimaps.background.borderColor.customFormat.cutNullValues.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.useResetSlot.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapLineColor.minimapMerged.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.minimapSelectionRadius.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.smoothMinimap.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.minScale.maxScale.maxWidth.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth.isCursorPointer".split("."))) :
|
|
3927
|
-
|
|
3928
|
-
Yi.value && (H.value.chart.legend.show || r.$slots.legend) ? (D(),
|
|
3991
|
+
}, 8, /* @__PURE__ */ "uuid.allMinimaps.background.borderColor.customFormat.cutNullValues.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.useResetSlot.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapLineColor.minimapMerged.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.minimapSelectionRadius.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.smoothMinimap.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.minScale.maxScale.maxWidth.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth.isCursorPointer".split("."))) : S("", !0),
|
|
3992
|
+
w("div", { id: `legend-bottom-${L.value}` }, null, 8, Gr),
|
|
3993
|
+
Yi.value && (H.value.chart.legend.show || r.$slots.legend) ? (D(), Xe(Ye, {
|
|
3929
3994
|
key: 7,
|
|
3930
3995
|
to: H.value.chart.legend.position === "top" ? `#legend-top-${L.value}` : `#legend-bottom-${L.value}`
|
|
3931
|
-
}, [
|
|
3996
|
+
}, [w("div", {
|
|
3932
3997
|
ref_key: "chartLegend",
|
|
3933
3998
|
ref: vi
|
|
3934
|
-
}, [A(r.$slots, "legend", { legend:
|
|
3999
|
+
}, [A(r.$slots, "legend", { legend: Xa.value }, () => [H.value.chart.legend.show ? (D(), C("div", {
|
|
3935
4000
|
key: 0,
|
|
3936
4001
|
class: "vue-ui-xy-legend",
|
|
3937
4002
|
style: E({ fontSize: `var(--legend-font-size, ${H.value.chart.legend.fontSize ?? 14}px)` })
|
|
3938
|
-
}, [H.value.chart.legend.selectAllToggle.show &&
|
|
4003
|
+
}, [H.value.chart.legend.selectAllToggle.show && Xa.value.length > 2 && !j(wa) ? (D(), Xe(qe, {
|
|
3939
4004
|
key: 0,
|
|
3940
4005
|
backgroundColor: H.value.chart.legend.selectAllToggle.backgroundColor,
|
|
3941
4006
|
color: H.value.chart.legend.selectAllToggle.color,
|
|
3942
4007
|
fontSize: H.value.chart.legend.fontSize,
|
|
3943
4008
|
checked: I.value.length > 0,
|
|
3944
|
-
onToggle:
|
|
4009
|
+
onToggle: os
|
|
3945
4010
|
}, null, 8, [
|
|
3946
4011
|
"backgroundColor",
|
|
3947
4012
|
"color",
|
|
3948
4013
|
"fontSize",
|
|
3949
4014
|
"checked"
|
|
3950
|
-
])) :
|
|
4015
|
+
])) : S("", !0), (D(!0), C(b, null, k(Xa.value, (e, t) => (D(), C("div", {
|
|
3951
4016
|
key: `div_legend_item_${t}`,
|
|
3952
|
-
onClick: (t) =>
|
|
3953
|
-
onKeydown: (t) =>
|
|
4017
|
+
onClick: (t) => cs(e),
|
|
4018
|
+
onKeydown: (t) => ss(t, e),
|
|
3954
4019
|
role: "button",
|
|
3955
4020
|
tabindex: "0",
|
|
3956
|
-
class:
|
|
3957
|
-
"vue-ui-xy-legend-item-alone":
|
|
4021
|
+
class: it({
|
|
4022
|
+
"vue-ui-xy-legend-item-alone": Xa.value.length === 1,
|
|
3958
4023
|
"vue-ui-xy-legend-item": !0,
|
|
3959
4024
|
"vue-ui-xy-legend-item-segregated": I.value.includes(e.id)
|
|
3960
4025
|
}),
|
|
3961
|
-
style: E({ cursor:
|
|
3962
|
-
}, [Pi.value[e.type] === "line" ? (D(),
|
|
4026
|
+
style: E({ cursor: ya.value ? "pointer" : "default" })
|
|
4027
|
+
}, [Pi.value[e.type] === "line" ? (D(), C("svg", qr, [w("rect", {
|
|
3963
4028
|
x: "0",
|
|
3964
4029
|
y: "7.5",
|
|
3965
4030
|
rx: "1.5",
|
|
@@ -3968,7 +4033,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
3968
4033
|
height: "3",
|
|
3969
4034
|
width: "20",
|
|
3970
4035
|
fill: e.color
|
|
3971
|
-
}, null, 8, Jr),
|
|
4036
|
+
}, null, 8, Jr), $e(Ue, {
|
|
3972
4037
|
plot: {
|
|
3973
4038
|
x: 10,
|
|
3974
4039
|
y: 9
|
|
@@ -3989,7 +4054,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
3989
4054
|
"color",
|
|
3990
4055
|
"shape",
|
|
3991
4056
|
"stroke"
|
|
3992
|
-
])])) : Pi.value[e.type] === "bar" ? (D(),
|
|
4057
|
+
])])) : Pi.value[e.type] === "bar" ? (D(), C("svg", Yr, [Pi.value[e.type] === "bar" && r.$slots.pattern ? (D(), C("rect", {
|
|
3993
4058
|
key: 0,
|
|
3994
4059
|
x: "4",
|
|
3995
4060
|
y: "4",
|
|
@@ -3998,7 +4063,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
3998
4063
|
width: "32",
|
|
3999
4064
|
stroke: "none",
|
|
4000
4065
|
fill: e.color
|
|
4001
|
-
}, null, 8, Xr)) :
|
|
4066
|
+
}, null, 8, Xr)) : S("", !0), Pi.value[e.type] === "bar" ? (D(), C("rect", {
|
|
4002
4067
|
key: 1,
|
|
4003
4068
|
x: "4",
|
|
4004
4069
|
y: "4",
|
|
@@ -4007,7 +4072,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
4007
4072
|
width: "32",
|
|
4008
4073
|
stroke: "none",
|
|
4009
4074
|
fill: r.$slots.pattern ? `url(#pattern_${L.value}_${e.slotAbsoluteIndex})` : e.color
|
|
4010
|
-
}, null, 8, Zr)) :
|
|
4075
|
+
}, null, 8, Zr)) : S("", !0)])) : (D(), C("svg", Qr, [$e(Ue, {
|
|
4011
4076
|
plot: {
|
|
4012
4077
|
x: 6,
|
|
4013
4078
|
y: 6
|
|
@@ -4022,14 +4087,14 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
4022
4087
|
"hexagon",
|
|
4023
4088
|
"star"
|
|
4024
4089
|
].includes(e.shape) ? e.shape : "circle"
|
|
4025
|
-
}, null, 8, ["color", "shape"])])),
|
|
4026
|
-
r.$slots.source ? (D(),
|
|
4090
|
+
}, null, 8, ["color", "shape"])])), w("span", { style: E(`color:${H.value.chart.legend.color}`) }, ut(e.name), 5)], 46, Kr))), 128))], 4)) : S("", !0)], !0)], 512)], 8, ["to"])) : S("", !0),
|
|
4091
|
+
r.$slots.source ? (D(), C("div", {
|
|
4027
4092
|
key: 8,
|
|
4028
4093
|
ref_key: "source",
|
|
4029
4094
|
ref: yi,
|
|
4030
4095
|
dir: "auto"
|
|
4031
|
-
}, [A(r.$slots, "source", {}, void 0, !0)], 512)) :
|
|
4032
|
-
|
|
4096
|
+
}, [A(r.$slots, "source", {}, void 0, !0)], 512)) : S("", !0),
|
|
4097
|
+
$e(j(ni), {
|
|
4033
4098
|
teleportTo: H.value.chart.tooltip.teleportTo,
|
|
4034
4099
|
show: U.value.showTooltip && Li.value,
|
|
4035
4100
|
backgroundColor: H.value.chart.tooltip.backgroundColor,
|
|
@@ -4043,7 +4108,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
4043
4108
|
offsetX: H.value.chart.tooltip.offsetX,
|
|
4044
4109
|
offsetY: H.value.chart.tooltip.offsetY,
|
|
4045
4110
|
parent: r.$refs.chart,
|
|
4046
|
-
content:
|
|
4111
|
+
content: Xs.value,
|
|
4047
4112
|
isFullscreen: Ii.value,
|
|
4048
4113
|
isCustom: H.value.chart.tooltip.customFormat && typeof H.value.chart.tooltip.customFormat == "function",
|
|
4049
4114
|
smooth: H.value.chart.tooltip.smooth,
|
|
@@ -4053,9 +4118,9 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
4053
4118
|
isA11yMode: $i.value != null,
|
|
4054
4119
|
a11yPosition: ea.value
|
|
4055
4120
|
}, {
|
|
4056
|
-
"tooltip-before": M(() => [A(r.$slots, "tooltip-before", T(
|
|
4057
|
-
tooltip: M(() => [A(r.$slots, "tooltip", T(
|
|
4058
|
-
"tooltip-after": M(() => [A(r.$slots, "tooltip-after", T(
|
|
4121
|
+
"tooltip-before": M(() => [A(r.$slots, "tooltip-before", at(T({ ...Gs.value })), void 0, !0)]),
|
|
4122
|
+
tooltip: M(() => [A(r.$slots, "tooltip", at(T({ ...Gs.value })), void 0, !0)]),
|
|
4123
|
+
"tooltip-after": M(() => [A(r.$slots, "tooltip-after", at(T({ ...Gs.value })), void 0, !0)]),
|
|
4059
4124
|
_: 3
|
|
4060
4125
|
}, 8, [
|
|
4061
4126
|
"teleportTo",
|
|
@@ -4081,37 +4146,37 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
4081
4146
|
"isA11yMode",
|
|
4082
4147
|
"a11yPosition"
|
|
4083
4148
|
]),
|
|
4084
|
-
|
|
4149
|
+
va.value && H.value.chart.userOptions.buttons.table ? (D(), Xe(ct(xc.value.component), nt({ key: 9 }, xc.value.props, {
|
|
4085
4150
|
ref_key: "tableUnit",
|
|
4086
4151
|
ref: Xi,
|
|
4087
|
-
onClose:
|
|
4088
|
-
}),
|
|
4089
|
-
content: M(() => [
|
|
4152
|
+
onClose: Sc
|
|
4153
|
+
}), Ze({
|
|
4154
|
+
content: M(() => [w("div", { style: E(`${j(Pa) || H.value.table.useDialog ? "" : "max-height:400px"};${H.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${H.value.table.useDialog ? "" : "margin-top:48px"}`) }, [w("div", $r, [gt(w("input", {
|
|
4090
4155
|
type: "checkbox",
|
|
4091
4156
|
"onUpdate:modelValue": i[4] ||= (e) => Hi.value = e
|
|
4092
|
-
}, null, 512), [[pt, Hi.value]]),
|
|
4157
|
+
}, null, 512), [[pt, Hi.value]]), w("div", {
|
|
4093
4158
|
onClick: i[5] ||= (e) => Hi.value = !Hi.value,
|
|
4094
|
-
style: E({ cursor:
|
|
4095
|
-
}, [
|
|
4159
|
+
style: E({ cursor: ya.value ? "pointer" : "default" })
|
|
4160
|
+
}, [$e(j(ii), {
|
|
4096
4161
|
name: "chartLine",
|
|
4097
4162
|
size: 20,
|
|
4098
4163
|
stroke: H.value.chart.color
|
|
4099
|
-
}, null, 8, ["stroke"])], 4)]), Hi.value ? (D(),
|
|
4164
|
+
}, null, 8, ["stroke"])], 4)]), Hi.value ? (D(), Xe(j(ai), {
|
|
4100
4165
|
key: `sparkline_${Ui.value}`,
|
|
4101
|
-
dataset:
|
|
4102
|
-
config:
|
|
4103
|
-
}, null, 8, ["dataset", "config"])) : (D(),
|
|
4166
|
+
dataset: _s.value,
|
|
4167
|
+
config: vs.value
|
|
4168
|
+
}, null, 8, ["dataset", "config"])) : (D(), Xe(j(ti), {
|
|
4104
4169
|
key: `table_${Bi.value}`,
|
|
4105
|
-
colNames:
|
|
4106
|
-
head:
|
|
4107
|
-
body:
|
|
4108
|
-
config:
|
|
4109
|
-
title: H.value.table.useDialog ? "" :
|
|
4170
|
+
colNames: Qs.value.colNames,
|
|
4171
|
+
head: Qs.value.head,
|
|
4172
|
+
body: Qs.value.body,
|
|
4173
|
+
config: Qs.value.config,
|
|
4174
|
+
title: H.value.table.useDialog ? "" : xc.value.title,
|
|
4110
4175
|
withCloseButton: !H.value.table.useDialog,
|
|
4111
|
-
onClose:
|
|
4176
|
+
onClose: Sc
|
|
4112
4177
|
}, {
|
|
4113
|
-
th: M(({ th: e }) => [
|
|
4114
|
-
td: M(({ td: e }) => [
|
|
4178
|
+
th: M(({ th: e }) => [w("div", { innerHTML: e }, null, 8, ei)]),
|
|
4179
|
+
td: M(({ td: e }) => [Qe(ut(isNaN(Number(e)) ? e : j(a)({
|
|
4115
4180
|
p: H.value.chart.labels.prefix,
|
|
4116
4181
|
v: e,
|
|
4117
4182
|
s: H.value.chart.labels.suffix,
|
|
@@ -4129,23 +4194,23 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
|
|
|
4129
4194
|
_: 2
|
|
4130
4195
|
}, [H.value.table.useDialog ? {
|
|
4131
4196
|
name: "title",
|
|
4132
|
-
fn: M(() => [
|
|
4197
|
+
fn: M(() => [Qe(ut(xc.value.title), 1)]),
|
|
4133
4198
|
key: "0"
|
|
4134
4199
|
} : void 0, H.value.table.useDialog ? {
|
|
4135
4200
|
name: "actions",
|
|
4136
|
-
fn: M(() => [
|
|
4201
|
+
fn: M(() => [w("button", {
|
|
4137
4202
|
tabindex: "0",
|
|
4138
4203
|
class: "vue-ui-user-options-button",
|
|
4139
|
-
onClick: i[3] ||= (e) =>
|
|
4140
|
-
}, [
|
|
4204
|
+
onClick: i[3] ||= (e) => $s(H.value.chart.userOptions.callbacks.csv)
|
|
4205
|
+
}, [$e(j(ii), {
|
|
4141
4206
|
name: "fileCsv",
|
|
4142
|
-
stroke:
|
|
4207
|
+
stroke: xc.value.props.color
|
|
4143
4208
|
}, null, 8, ["stroke"])])]),
|
|
4144
4209
|
key: "1"
|
|
4145
|
-
} : void 0]), 1040)) :
|
|
4146
|
-
A(r.$slots, "skeleton", {}, () => [j(
|
|
4210
|
+
} : void 0]), 1040)) : S("", !0),
|
|
4211
|
+
A(r.$slots, "skeleton", {}, () => [j(wa) ? (D(), Xe(Pe, { key: 0 })) : S("", !0)], !0)
|
|
4147
4212
|
], 46, vt));
|
|
4148
4213
|
}
|
|
4149
|
-
}, [["__scopeId", "data-v-
|
|
4214
|
+
}, [["__scopeId", "data-v-25ca945c"]]);
|
|
4150
4215
|
//#endregion
|
|
4151
4216
|
export { _t as n, N as t };
|