vue-data-ui 3.22.2 → 3.22.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-BGhJI-qh.js → Arrow-CgzmXCW_.js} +1 -1
- package/dist/{BaseDraggableDialog-a9xCKjW-.js → BaseDraggableDialog-DjzNWkiE.js} +2 -2
- package/dist/{BaseIcon-DEtwcvEH.js → BaseIcon-xBuW2jjI.js} +1 -1
- package/dist/{BaseLegendToggle-B-lM0iV1.js → BaseLegendToggle-C4Usj0LI.js} +1 -1
- package/dist/{BaseZoomControls-BjjT6vtB.js → BaseZoomControls-Cg9o2J-q.js} +2 -2
- package/dist/{ColorPicker-DMLahA2S.js → ColorPicker-Usv7badH.js} +2 -2
- package/dist/{DataTable-DJZgdnIn.js → DataTable-PidUPOit.js} +2 -2
- package/dist/Legend-DXOzbXb-.js +156 -0
- package/dist/{NonSvgPenAndPaper-Dwq_M6Bz.js → NonSvgPenAndPaper-OIs8I25K.js} +19 -19
- package/dist/{PackageVersion-Dx81ZIAL.js → PackageVersion-Cm-3hwIF.js} +1 -1
- package/dist/{PenAndPaper-DJIIG6dv.js → PenAndPaper-ISUbDKXq.js} +11 -11
- package/dist/{Shape-C5OvuwII.js → Shape-BnF9aMPX.js} +3 -3
- package/dist/Slicer-hEvKOLw3.js +1145 -0
- package/dist/{SlicerPreview-CAhqG_ZQ.js → SlicerPreview-BDI-aCXE.js} +36 -35
- package/dist/{SparkTooltip-DTzo8Sah.js → SparkTooltip-DaWSTzfA.js} +1 -1
- package/dist/{Title-CVYf1f8m.js → Title-DDEEO-Nr.js} +1 -1
- package/dist/{Tooltip-BmGCBJuU.js → Tooltip-BhKov422.js} +1 -1
- package/dist/{UserOptions-xqbNpHi2.js → UserOptions-BxT1XHzN.js} +2 -2
- package/dist/components/arrow.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/{dom-to-png-rjAIVHxa.js → dom-to-png-ZOysoMwu.js} +1 -1
- package/dist/exposedLib-C2U48XK7.js +19 -0
- package/dist/img-B29J8tV5.js +129 -0
- package/dist/{labelUtils-C0D1tjig.js → labelUtils-BFcL_t-A.js} +1 -1
- package/dist/{lib-CXicicWN.js → lib-CuwHGt1j.js} +143 -124
- package/dist/{package-CILLITOI.js → package-CRlwXCDr.js} +1 -1
- package/dist/{pdf-ChYv2jb6.js → pdf-ymYt9Lee.js} +1 -1
- package/dist/{render-common-bMAFQ_qf.js → render-common-D6ny-Fwu.js} +22 -22
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +69 -2
- package/dist/types/vue-ui-strip-plot.d.ts +2 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-B4-0yo3K.js → useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js} +1 -1
- package/dist/{useConfig-Bf_EBbe3.js → useConfig-pVLia3dt.js} +30 -2
- package/dist/{useNestedProp-APyFoLCQ.js → useNestedProp-BjkuFaz1.js} +1 -1
- package/dist/{useObjectBindings-Byts-nf-.js → useObjectBindings-C1XuDxFr.js} +2 -2
- package/dist/{usePrinter-Dng0UK-G.js → usePrinter-C0wAS8yc.js} +3 -3
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-DD-txoS1.js → vue-data-ui-DTWqd0R2.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-DBpSRV-C.js +1757 -0
- package/dist/{vue-ui-accordion-Di_givzQ.js → vue-ui-accordion-B64IJyPU.js} +4 -4
- package/dist/{vue-ui-age-pyramid-CTwMfsqS.js → vue-ui-age-pyramid-e09oK-Fp.js} +289 -289
- package/dist/{vue-ui-annotator-tRkLFMQ9.js → vue-ui-annotator-CU4CdKMm.js} +69 -69
- package/dist/vue-ui-bullet-tlj5_z_z.js +710 -0
- package/dist/{vue-ui-bump-BJ5O8Mps.js → vue-ui-bump-BD0Uq3As.js} +259 -259
- package/dist/vue-ui-candlestick-CZxsNGKS.js +1826 -0
- package/dist/{vue-ui-carousel-table-8s8BSy-K.js → vue-ui-carousel-table-ycbcmBKt.js} +122 -122
- package/dist/vue-ui-chestnut-CnEsjvh4.js +2010 -0
- package/dist/{vue-ui-chord-1BitQtEw.js → vue-ui-chord-BZhXsZXp.js} +53 -53
- package/dist/{vue-ui-circle-pack-DVMhDFKU.js → vue-ui-circle-pack-BPC6zUis.js} +46 -46
- package/dist/{vue-ui-cursor-D7yh10hX.js → vue-ui-cursor-DF_e5k1s.js} +4 -4
- package/dist/{vue-ui-dag--LFEAAf_.js → vue-ui-dag-BIo4-Oa8.js} +49 -49
- package/dist/{vue-ui-dashboard-COeO878g.js → vue-ui-dashboard-BEtF6UX2.js} +70 -70
- package/dist/{vue-ui-digits-C50FVr7C.js → vue-ui-digits-07IxTlNO.js} +4 -4
- package/dist/vue-ui-donut-C4FcvXm3.js +2410 -0
- package/dist/{vue-ui-donut-BzKXqQA2.js → vue-ui-donut-C5oRCxAO.js} +193 -193
- package/dist/{vue-ui-donut-evolution-lPkwit2C.js → vue-ui-donut-evolution-BSeyPC9k.js} +419 -419
- package/dist/{vue-ui-dumbbell-hlEfvbbf.js → vue-ui-dumbbell-Cykw4WYn.js} +341 -341
- package/dist/{vue-ui-flow-Bg_OSszc.js → vue-ui-flow-R_dLE1WS.js} +72 -72
- package/dist/vue-ui-funnel-Ct5xQdak.js +777 -0
- package/dist/vue-ui-galaxy-B5BkdIt5.js +1077 -0
- package/dist/vue-ui-gauge-AbzY-7Gg.js +920 -0
- package/dist/{vue-ui-geo-DtzXRvmx.js → vue-ui-geo-DVT9XEC3.js} +18 -18
- package/dist/{vue-ui-gizmo-hIFd7qck.js → vue-ui-gizmo-DJTRXao8.js} +62 -62
- package/dist/{vue-ui-heatmap-yPlwc3l_.js → vue-ui-heatmap-BCFId15K.js} +293 -293
- package/dist/vue-ui-history-plot-DCeroetw.js +1700 -0
- package/dist/{vue-ui-horizontal-bar-CJciNHpT.js → vue-ui-horizontal-bar-j3jszojt.js} +75 -75
- package/dist/{vue-ui-kpi-DmSe1QGb.js → vue-ui-kpi-DJjF6tcf.js} +12 -12
- package/dist/{vue-ui-mini-loader-CqxI6DwN.js → vue-ui-mini-loader-nOsOsA2V.js} +3 -3
- package/dist/{vue-ui-molecule-w-94Uktn.js → vue-ui-molecule-2pfoR63d.js} +213 -213
- package/dist/{vue-ui-mood-radar-B3OGWGHR.js → vue-ui-mood-radar-DP_4LHfZ.js} +40 -40
- package/dist/{vue-ui-nested-donuts-Dv_yE5EV.js → vue-ui-nested-donuts-DFsLZEqx.js} +255 -255
- package/dist/{vue-ui-onion-BQbI0Vxd.js → vue-ui-onion-CzXx3Rme.js} +293 -293
- package/dist/vue-ui-parallel-coordinate-plot-BY6dptUG.js +1416 -0
- package/dist/{vue-ui-quadrant-BB7qdXK0.js → vue-ui-quadrant-Br_iZmcw.js} +57 -57
- package/dist/{vue-ui-quick-chart-CGDeo3Fx.js → vue-ui-quick-chart-CnIFPFPv.js} +654 -654
- package/dist/vue-ui-radar-CNwKFbHc.js +1281 -0
- package/dist/{vue-ui-rating-ChDwpol2.js → vue-ui-rating-CRziryE2.js} +22 -22
- package/dist/vue-ui-relation-circle-BVDIikGi.js +924 -0
- package/dist/{vue-ui-ridgeline-Cq8z57xB.js → vue-ui-ridgeline-Kw50zROq.js} +468 -468
- package/dist/vue-ui-rings-BDJyoWvT.js +1246 -0
- package/dist/vue-ui-scatter-DoL5Kh1Y.js +2413 -0
- package/dist/{vue-ui-skeleton-DJ5KAbfV.js → vue-ui-skeleton-BOHwJSdz.js} +22 -22
- package/dist/{vue-ui-smiley-fFrNX-Gl.js → vue-ui-smiley-BTvDy8Fm.js} +5 -5
- package/dist/{vue-ui-spark-trend-D6OBWxmg.js → vue-ui-spark-trend-OgSFIFh0.js} +24 -24
- package/dist/{vue-ui-sparkbar-CtCP8O44.js → vue-ui-sparkbar-D8FdqMB_.js} +35 -35
- package/dist/{vue-ui-sparkgauge-CZDkyViI.js → vue-ui-sparkgauge-CBpPbVkw.js} +56 -56
- package/dist/vue-ui-sparkhistogram-BQjbLa2k.js +560 -0
- package/dist/{vue-ui-sparkline-CJKE7Xcl.js → vue-ui-sparkline-BJfh5Lje.js} +200 -200
- package/dist/{vue-ui-sparkstackbar-BSV0M-2u.js → vue-ui-sparkstackbar-1WUQrqd7.js} +126 -126
- package/dist/vue-ui-stackbar-Dqs7_g8D.js +2329 -0
- package/dist/{vue-ui-stackline-DS_MPmc1.js → vue-ui-stackline-IRjugedp.js} +406 -388
- package/dist/vue-ui-strip-plot-B7D6Hk8R.js +1729 -0
- package/dist/{vue-ui-table-c1FPEwLM.js → vue-ui-table-Bqi9XNvY.js} +64 -64
- package/dist/{vue-ui-table-heatmap-CMQJXnP8.js → vue-ui-table-heatmap-D38YSxhJ.js} +16 -16
- package/dist/{vue-ui-table-sparkline-CAS9Pk60.js → vue-ui-table-sparkline-0Ffb2jdf.js} +19 -19
- package/dist/vue-ui-thermometer-Di5PXtEO.js +763 -0
- package/dist/{vue-ui-timer-CSP48eS-.js → vue-ui-timer-9CDcd-gP.js} +6 -6
- package/dist/{vue-ui-tiremarks-DJvXj1P3.js → vue-ui-tiremarks-BAQ-cCSq.js} +10 -10
- package/dist/vue-ui-treemap-CLOlWiDE.js +1587 -0
- package/dist/vue-ui-waffle-DG2IfACo.js +1362 -0
- package/dist/{vue-ui-wheel-CbL52G-w.js → vue-ui-wheel-BfXJFCjv.js} +29 -29
- package/dist/{vue-ui-word-cloud-BqOCyp7c.js → vue-ui-word-cloud-3NJy1z6d.js} +28 -28
- package/dist/{vue-ui-world-BkjzCcVh.js → vue-ui-world-vrGT5g1H.js} +127 -127
- package/dist/{vue-ui-xy-CVDNhnDY.js → vue-ui-xy-Cb7u46JN.js} +410 -410
- package/dist/{vue-ui-xy-DuwLRfr4.js → vue-ui-xy-Dg0wxSeC.js} +760 -760
- package/dist/{vue-ui-xy-canvas-CXqGVMeQ.js → vue-ui-xy-canvas-CjbjJ70r.js} +60 -60
- package/dist/{vue_ui_strip_plot-CtJe8_gq.js → vue_ui_strip_plot-BaHbnnwN.js} +7 -0
- package/package.json +1 -1
- package/dist/Legend-BVDhEEsC.js +0 -115
- package/dist/Slicer-ClR833cP.js +0 -1144
- package/dist/exposedLib-CffbQxjN.js +0 -19
- package/dist/img-BCAOkqfM.js +0 -74
- package/dist/vue-ui-3d-bar-DxfNdF2e.js +0 -1757
- package/dist/vue-ui-bullet-9gtGJaGb.js +0 -710
- package/dist/vue-ui-candlestick-CJ_VVYbJ.js +0 -1826
- package/dist/vue-ui-chestnut-D3-ck2h2.js +0 -2010
- package/dist/vue-ui-donut-NHjQzFO5.js +0 -2410
- package/dist/vue-ui-funnel-B_bK0jJB.js +0 -777
- package/dist/vue-ui-galaxy-WVCUzcYc.js +0 -1077
- package/dist/vue-ui-gauge-Cqeko0wA.js +0 -920
- package/dist/vue-ui-history-plot-BGmcDg2w.js +0 -1554
- package/dist/vue-ui-parallel-coordinate-plot-ColST3Jj.js +0 -1416
- package/dist/vue-ui-radar-DqDn14DL.js +0 -1281
- package/dist/vue-ui-relation-circle-BvfZqcK0.js +0 -924
- package/dist/vue-ui-rings-Ds-sgNPK.js +0 -1246
- package/dist/vue-ui-scatter-BgOVUzQ3.js +0 -2413
- package/dist/vue-ui-sparkhistogram-DgruLf33.js +0 -560
- package/dist/vue-ui-stackbar-pnlYCnTj.js +0 -2270
- package/dist/vue-ui-strip-plot-DSKOrJZX.js +0 -1340
- package/dist/vue-ui-thermometer-w3eeJv9s.js +0 -763
- package/dist/vue-ui-treemap-BaOMXTR1.js +0 -1587
- package/dist/vue-ui-waffle-Bo22Ph8n.js +0 -1362
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
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 { A as t, B as n, Ct as r, D as i, E as a, Gt as o, H as s, Ht as c, I as l, It as u, L as d, Lt as f, N as ee, Ot as te, P as ne, Pt as p, Q as re, R as ie, Rt as ae, S as oe, Ut as se, V as ce, W as le, Wt as ue, X as de, a as m, b as fe, bt as h, c as pe, g as me, h as he, ht as ge, i as g, it as _, j as _e, jt as ve, k as ye, l as be, n as xe, q as Se, r as Ce, s as we, v, vt as Te, w as Ee, yt as De, z as Oe } from "./lib-CuwHGt1j.js";
|
|
3
|
+
import { n as ke, r as Ae, t as je } from "./useTimeLabels-BmBRv27Y.js";
|
|
4
|
+
import { t as Me } from "./useConfig-pVLia3dt.js";
|
|
5
|
+
import { t as Ne } from "./usePrinter-C0wAS8yc.js";
|
|
6
|
+
import { n as Pe, t as Fe } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as Ie } from "./useSvgExport-SVIsDot8.js";
|
|
8
|
+
import { t as Le } from "./useNestedProp-BjkuFaz1.js";
|
|
9
|
+
import { t as Re } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as ze } from "./useStableElementSize-C7KADDKj.js";
|
|
11
|
+
import { t as Be } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
12
|
+
import { t as Ve } from "./img-B29J8tV5.js";
|
|
13
|
+
import { n as He } from "./Title-DDEEO-Nr.js";
|
|
14
|
+
import { t as Ue } from "./vue_ui_xy-BA3-_LCx.js";
|
|
15
|
+
import { t as We } from "./Shape-BnF9aMPX.js";
|
|
16
|
+
import { t as Ge } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
17
|
+
import { t as Ke } from "./SlicerPreview-BDI-aCXE.js";
|
|
18
|
+
import { t as qe } from "./vue-ui-accordion-B64IJyPU.js";
|
|
19
|
+
import { t as Je } from "./BaseLegendToggle-C4Usj0LI.js";
|
|
20
|
+
import { t as Ye } from "./A11yDataTable-DdRsVULz.js";
|
|
21
|
+
import { Fragment as y, Teleport as Xe, computed as b, createBlock as Ze, createCommentVNode as x, createElementBlock as S, createElementVNode as C, createSlots as Qe, createTextVNode as $e, createVNode as et, defineAsyncComponent as tt, getCurrentInstance as nt, guardReactiveProps as rt, mergeProps as it, nextTick as at, normalizeClass as ot, normalizeProps as w, normalizeStyle as T, onBeforeUnmount as st, onMounted as ct, openBlock as E, ref as D, renderList as O, renderSlot as k, resolveDynamicComponent as lt, shallowRef as ut, toDisplayString as dt, toRefs as ft, unref as A, useSlots as pt, vModelCheckbox as mt, watch as ht, watchEffect as gt, withCtx as j, withDirectives as _t } from "vue";
|
|
22
22
|
//#region src/utils/xy.js
|
|
23
23
|
function vt(e) {
|
|
24
24
|
return ![
|
|
@@ -542,7 +542,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
542
542
|
"padding-left": "6px"
|
|
543
543
|
},
|
|
544
544
|
"data-dom-to-png-ignore": ""
|
|
545
|
-
}, wi = ["innerHTML"], M = /*#__PURE__*/
|
|
545
|
+
}, wi = ["innerHTML"], M = /*#__PURE__*/ Ge({
|
|
546
546
|
__name: "vue-ui-xy",
|
|
547
547
|
props: {
|
|
548
548
|
config: {
|
|
@@ -571,18 +571,18 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
571
571
|
"zoomReset",
|
|
572
572
|
"copyAlt"
|
|
573
573
|
],
|
|
574
|
-
setup(e, { expose:
|
|
575
|
-
let M = e, Ti =
|
|
574
|
+
setup(e, { expose: Ge, emit: Dt }) {
|
|
575
|
+
let M = e, Ti = tt(() => import("./DataTable-PidUPOit.js")), Ei = tt(() => import("./Tooltip-BhKov422.js")), Di = tt(() => import("./UserOptions-BxT1XHzN.js").then((e) => e.n)), Oi = tt(() => import("./BaseIcon-xBuW2jjI.js").then((e) => e.n)), ki = tt(() => import("./vue-ui-table-sparkline-0Ffb2jdf.js").then((e) => e.n)), Ai = tt(() => import("./PackageVersion-Cm-3hwIF.js").then((e) => e.t)), ji = tt(() => import("./PenAndPaper-ISUbDKXq.js").then((e) => e.t)), Mi = tt(() => import("./BaseDraggableDialog-DjzNWkiE.js").then((e) => e.n)), Ni = Dt, Pi = pt(), Fi = nt(), { vue_ui_xy: Ii } = Me(), { isThemeValid: Li, warnInvalidTheme: Ri } = Re(), zi = D(null), Bi = D(null), Vi = D(null), Hi = D(null), Ui = D(null), Wi = D(null), Gi = D(null), Ki = D(null), qi = D(null), Ji = D(null), Yi = D(null), Xi = D(null), Zi = D(null), Qi = D(null), $i = D(0), N = D(null), ea = D(!0), ta = D(600), P = D(1e3), na = D("0 0 1000 600"), ra = D({
|
|
576
576
|
x: 0,
|
|
577
577
|
y: 0
|
|
578
578
|
}), ia = D({
|
|
579
579
|
line: "line",
|
|
580
580
|
bar: "bar",
|
|
581
581
|
plot: "plot"
|
|
582
|
-
}), aa = D(!1), oa = D(!1), sa = D(!1), ca = D(null), la = D([]), ua =
|
|
582
|
+
}), aa = D(!1), oa = D(!1), sa = D(!1), ca = D(null), la = D([]), ua = b(() => new Set(la.value)), F = D(le()), da = D(0), fa = D(0), pa = D(0), ma = D(!0), ha = D(0), I = D(null), ga = D(!1), _a = D(!0), va = D(!0), L = D(null), ya = D({}), ba = D(null), xa = D(!1), Sa = D(null), Ca = D(!1), wa = D(!1), Ta = D(null), R = D(null), Ea = D(null), Da = D({
|
|
583
583
|
x: 0,
|
|
584
584
|
y: 0
|
|
585
|
-
}), Oa = D(null), ka = D(null), z = D(null), Aa = D(null), ja = D(null), Ma = ut(null), Na = D(!1), Pa = D(0), Fa = D(0), Ia =
|
|
585
|
+
}), Oa = D(null), ka = D(null), z = D(null), Aa = D(null), ja = D(null), Ma = ut(null), Na = D(!1), Pa = D(0), Fa = D(0), Ia = ze({
|
|
586
586
|
elementRef: Ma,
|
|
587
587
|
minimumWidth: 2,
|
|
588
588
|
minimumHeight: 2,
|
|
@@ -612,7 +612,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
612
612
|
Ba.value = !1, La(), za();
|
|
613
613
|
}));
|
|
614
614
|
}
|
|
615
|
-
let Ha =
|
|
615
|
+
let Ha = b(() => ({
|
|
616
616
|
height: ta.value,
|
|
617
617
|
width: P.value
|
|
618
618
|
})), Ua = D(!1), Wa = D(null), Ga = D(null), B = D({
|
|
@@ -624,10 +624,10 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
624
624
|
plot: 3,
|
|
625
625
|
line: 3,
|
|
626
626
|
selectedLine: 3
|
|
627
|
-
}), qa =
|
|
627
|
+
}), qa = b(() => Math.max(Ka.value.line * 1.5, Ka.value.selectedLine));
|
|
628
628
|
ct(() => {
|
|
629
629
|
xa.value = !0, M.dataset.length && M.dataset.forEach((e, t) => {
|
|
630
|
-
[null, void 0].includes(e.series) &&
|
|
630
|
+
[null, void 0].includes(e.series) && re({
|
|
631
631
|
componentName: "VueUiXy",
|
|
632
632
|
type: "datasetSerieAttribute",
|
|
633
633
|
property: "series (number[])",
|
|
@@ -638,14 +638,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
638
638
|
});
|
|
639
639
|
function Ja() {
|
|
640
640
|
if (!Object.keys(M.config || {}).length) return Ii;
|
|
641
|
-
let e =
|
|
641
|
+
let e = Le({
|
|
642
642
|
userConfig: M.config,
|
|
643
643
|
defaultConfig: Ii
|
|
644
644
|
});
|
|
645
|
-
M.config &&
|
|
645
|
+
M.config && ge(M.config, "chart.highlightArea") && (Array.isArray(M.config.chart.highlightArea) ? e.chart.highlightArea = M.config.chart.highlightArea : e.chart.highlightArea = [M.config.chart.highlightArea]), M.config && ge(M.config, "chart.annotations") && Array.isArray(M.config.chart.annotations) && M.config.chart.annotations.length ? e.chart.annotations = M.config.chart.annotations.map((e) => Le({
|
|
646
646
|
defaultConfig: Ii.chart.annotations[0],
|
|
647
647
|
userConfig: e
|
|
648
|
-
})) : e.chart.annotations = [], M.config &&
|
|
648
|
+
})) : e.chart.annotations = [], M.config && ge(M.config, "chart.grid.position") && M.config.chart.grid.position === "start" && M.dataset.length && M.dataset.some((e) => e.type === "bar") && (e.chart.grid.position = "middle", ge(M.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), M.config && ge(M.config, "chart.highlightArea") && (Array.isArray(M.config.chart.highlightArea) ? e.chart.highlightArea = M.config.chart.highlightArea.map((e) => Ya({
|
|
649
649
|
defaultConfig: Ii.chart.highlightArea,
|
|
650
650
|
userConfig: e
|
|
651
651
|
})) : e.chart.highlightArea = Ya({
|
|
@@ -655,32 +655,32 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
655
655
|
let t = e.theme;
|
|
656
656
|
if (!t) return e;
|
|
657
657
|
if (!Li.value(e)) return Ri(e), e;
|
|
658
|
-
let n =
|
|
659
|
-
userConfig:
|
|
658
|
+
let n = Le({
|
|
659
|
+
userConfig: Ue[t] || M.config,
|
|
660
660
|
defaultConfig: e
|
|
661
|
-
}), r =
|
|
661
|
+
}), r = Le({
|
|
662
662
|
userConfig: M.config,
|
|
663
663
|
defaultConfig: n
|
|
664
664
|
});
|
|
665
665
|
return {
|
|
666
666
|
...r,
|
|
667
|
-
customPalette: r.customPalette.length ? r.customPalette :
|
|
667
|
+
customPalette: r.customPalette.length ? r.customPalette : se[t] || ve
|
|
668
668
|
};
|
|
669
669
|
}
|
|
670
670
|
function Ya({ defaultConfig: e, userConfig: t }) {
|
|
671
|
-
return
|
|
671
|
+
return Le({
|
|
672
672
|
defaultConfig: e,
|
|
673
673
|
userConfig: t
|
|
674
674
|
});
|
|
675
675
|
}
|
|
676
|
-
let Xa =
|
|
676
|
+
let Xa = b({
|
|
677
677
|
get() {
|
|
678
678
|
return !!M.dataset && M.dataset.length;
|
|
679
679
|
},
|
|
680
680
|
set(e) {
|
|
681
681
|
return e;
|
|
682
682
|
}
|
|
683
|
-
}), V = D(Ja()), Za =
|
|
683
|
+
}), V = D(Ja()), Za = b(() => V.value.chart.userOptions.useCursorPointer), H = D({
|
|
684
684
|
dataLabels: { show: !0 },
|
|
685
685
|
showTooltip: !0,
|
|
686
686
|
showTable: !1,
|
|
@@ -701,7 +701,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
701
701
|
}
|
|
702
702
|
H.value.showTooltip = V.value.chart.tooltip.show === !0, e !== Wa.value && (H.value.isStacked = e, Wa.value = e), t !== Ga.value && (H.value.useIndividualScale = t, Ga.value = t), H.value.isStacked && (H.value.useIndividualScale = !0);
|
|
703
703
|
}
|
|
704
|
-
let $a =
|
|
704
|
+
let $a = b(() => !!V.value.debug), eo = b(() => o({
|
|
705
705
|
defaultConfig: {
|
|
706
706
|
useCssAnimation: !1,
|
|
707
707
|
showTable: !1,
|
|
@@ -757,7 +757,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
757
757
|
}
|
|
758
758
|
},
|
|
759
759
|
userConfig: V.value.skeletonConfig ?? {}
|
|
760
|
-
})), to =
|
|
760
|
+
})), to = b(() => M.config?.skeletonDataset ?? [{
|
|
761
761
|
name: "",
|
|
762
762
|
series: [
|
|
763
763
|
0,
|
|
@@ -794,7 +794,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
794
794
|
],
|
|
795
795
|
type: "bar",
|
|
796
796
|
color: "#CACACA"
|
|
797
|
-
}]), { loading: no, FINAL_DATASET: ro, manualLoading: io } =
|
|
797
|
+
}]), { loading: no, FINAL_DATASET: ro, manualLoading: io } = Pe({
|
|
798
798
|
...ft(M),
|
|
799
799
|
FINAL_CONFIG: V,
|
|
800
800
|
prepareConfig: Ja,
|
|
@@ -804,37 +804,37 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
804
804
|
});
|
|
805
805
|
},
|
|
806
806
|
skeletonDataset: to.value,
|
|
807
|
-
skeletonConfig:
|
|
807
|
+
skeletonConfig: o({
|
|
808
808
|
defaultConfig: V.value,
|
|
809
809
|
userConfig: eo.value
|
|
810
810
|
})
|
|
811
|
-
}), ao = Ct((e, t) =>
|
|
811
|
+
}), ao = Ct((e, t) => r({
|
|
812
812
|
data: e,
|
|
813
813
|
threshold: t
|
|
814
|
-
})), oo = (e) => ao(e, V.value.downsample.threshold), so =
|
|
814
|
+
})), oo = (e) => ao(e, V.value.downsample.threshold), so = b(() => {
|
|
815
815
|
let e = V.value.downsample.threshold;
|
|
816
816
|
return ro.value.map((t) => ao(t.series, e).length);
|
|
817
|
-
}), co =
|
|
817
|
+
}), co = b(() => {
|
|
818
818
|
let e = -Infinity;
|
|
819
819
|
for (let t = 0; t < so.value.length; t += 1) {
|
|
820
820
|
let n = so.value[t];
|
|
821
821
|
n > e && (e = n);
|
|
822
822
|
}
|
|
823
823
|
return e;
|
|
824
|
-
}), lo =
|
|
824
|
+
}), lo = b(() => {
|
|
825
825
|
let e = 0;
|
|
826
826
|
for (let t = 0; t < so.value.length; t += 1) {
|
|
827
827
|
let n = so.value[t];
|
|
828
828
|
n > e && (e = n);
|
|
829
829
|
}
|
|
830
830
|
return e;
|
|
831
|
-
}), uo =
|
|
831
|
+
}), uo = b(() => co.value), U = D({
|
|
832
832
|
start: 0,
|
|
833
833
|
end: uo.value
|
|
834
834
|
}), fo = D({
|
|
835
835
|
start: 0,
|
|
836
836
|
end: uo.value
|
|
837
|
-
}), po =
|
|
837
|
+
}), po = b(() => V.value.chart.zoom.preview.enable && (fo.value.start !== U.value.start || fo.value.end !== U.value.end));
|
|
838
838
|
function mo(e, t) {
|
|
839
839
|
fo.value[e] = t;
|
|
840
840
|
}
|
|
@@ -853,7 +853,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
853
853
|
end: n
|
|
854
854
|
}, fo.value.start = t, fo.value.end = n, Vi.value && (Vi.value.setStartValue(t), Vi.value.setEndValue(n));
|
|
855
855
|
}
|
|
856
|
-
let go =
|
|
856
|
+
let go = b(() => {
|
|
857
857
|
let { left: e, top: t, width: n, height: r } = J.value, i = U.value.start, a = U.value.end - i, o = n / a, s = fo.value.start - i, c = fo.value.end - i, l = Math.max(0, Math.min(a, s)), u = Math.max(0, Math.min(a, c));
|
|
858
858
|
return {
|
|
859
859
|
x: e + l * o,
|
|
@@ -881,21 +881,21 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
881
881
|
let t = e - U.value.start;
|
|
882
882
|
t < 0 || e >= U.value.end ? R.value = null : R.value = t ?? null;
|
|
883
883
|
}, { immediate: !0 });
|
|
884
|
-
let { isPrinting: _o, isImaging: vo, generatePdf: yo, generateImage: bo } =
|
|
884
|
+
let { isPrinting: _o, isImaging: vo, generatePdf: yo, generateImage: bo } = Ne({
|
|
885
885
|
elementId: `vue-ui-xy_${F.value}`,
|
|
886
886
|
fileName: V.value.chart.title.text || "vue-ui-xy",
|
|
887
887
|
options: V.value.chart.userOptions.print
|
|
888
|
-
}), xo = D(!1), So =
|
|
888
|
+
}), xo = D(!1), So = b(() => oe(V.value.customPalette)), Co = b(() => {
|
|
889
889
|
let e = V.value.chart.grid.labels.yAxis.scaleMin;
|
|
890
890
|
if (e == null) return null;
|
|
891
891
|
let t = Number(e);
|
|
892
892
|
return Number.isFinite(t) ? t : null;
|
|
893
|
-
}), wo =
|
|
893
|
+
}), wo = b(() => Co.value === null ? Hs.value : J.value.bottom), To = b(() => {
|
|
894
894
|
let e = V.value.chart.grid.labels.yAxis.scaleMax;
|
|
895
895
|
if (e == null) return null;
|
|
896
896
|
let t = Number(e);
|
|
897
897
|
return Number.isFinite(t) ? t : null;
|
|
898
|
-
}), Eo =
|
|
898
|
+
}), Eo = b(() => Co.value !== null || To.value !== null), Do = b(() => il(Io.value.filter((e) => !ua.value.has(e.id)), 0, 1)), Oo = b(() => {
|
|
899
899
|
let { min: e, max: t } = Do.value;
|
|
900
900
|
if (!Eo.value) {
|
|
901
901
|
let t = e;
|
|
@@ -903,7 +903,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
903
903
|
}
|
|
904
904
|
let n = Co.value === null ? e > 0 ? 0 : e : Co.value, r = To.value === null ? t : To.value;
|
|
905
905
|
return wt(e < n ? e : n, t > r ? t : r).min;
|
|
906
|
-
}), ko =
|
|
906
|
+
}), ko = b(() => {
|
|
907
907
|
let { min: e, max: t } = Do.value;
|
|
908
908
|
if (!Eo.value) {
|
|
909
909
|
let e = t;
|
|
@@ -911,7 +911,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
911
911
|
}
|
|
912
912
|
let n = Co.value === null ? e > 0 ? 0 : e : Co.value, r = To.value === null ? t : To.value;
|
|
913
913
|
return wt(e < n ? e : n, t > r ? t : r).max;
|
|
914
|
-
}), W =
|
|
914
|
+
}), W = b(() => V.value.chart.grid.labels.yAxis.useNiceScale ? he(Oo.value, ko.value < 0 ? 0 : ko.value, V.value.chart.grid.labels.yAxis.commonScaleSteps) : me(Oo.value, ko.value < 0 ? 0 : ko.value, V.value.chart.grid.labels.yAxis.commonScaleSteps)), Ao = b(() => [null, void 0].includes(V.value.chart.grid.labels.yAxis.scaleMin) ? W.value.min >= 0 ? 0 : Math.abs(W.value.min) : -W.value.min), G = b(() => ro.value.some((e) => Array.isArray(e.series) && e.series.some(xt)));
|
|
915
915
|
gt(() => {
|
|
916
916
|
G.value && ro.value.some((e) => !No(e)) && console.warn("Vue Data UI - VueUiXy: mixed continuous and non-continuous series are not supported in the same chart.\n\nContinuous mode requires all visible 'line' and 'plot' series to use coordinate-based datasets:\n[{ x: number, y: number }]\n\nSeries of type 'bar' and standard numeric series are ignored in continuous mode to prevent runtime errors.\n\nIf you need to mix 'bar', 'line', and 'plot' series in the same chart, all series must use the standard [number, number, number...] format.");
|
|
917
917
|
});
|
|
@@ -940,7 +940,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
940
940
|
isInvalid: !0
|
|
941
941
|
} : {
|
|
942
942
|
x: Number(e.x),
|
|
943
|
-
y:
|
|
943
|
+
y: De(e.y) ? Number(e.y) : null,
|
|
944
944
|
index: t,
|
|
945
945
|
raw: e,
|
|
946
946
|
isNull: !1,
|
|
@@ -950,17 +950,17 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
950
950
|
function Fo(e) {
|
|
951
951
|
return G.value ? e && typeof e == "object" ? e.y : null : e;
|
|
952
952
|
}
|
|
953
|
-
let Io =
|
|
953
|
+
let Io = b(() => !ea.value && !G.value ? ro.value : ro.value.map((e, t) => {
|
|
954
954
|
let n = `uniqueId_${t}`, r = No(e), i = G.value ? r ? e.series : [] : oo(e.series);
|
|
955
955
|
return {
|
|
956
956
|
...e,
|
|
957
957
|
slotAbsoluteIndex: t,
|
|
958
|
-
series: G.value ? i.map((e, t) => Po(e, t)).filter((e) => e.isInvalid ? !1 : e.x === null && e.y === null ? U.value.start <= 0 && U.value.end >= 0 : e.x >= U.value.start && e.x <= U.value.end) : i.map((e) =>
|
|
959
|
-
color:
|
|
958
|
+
series: G.value ? i.map((e, t) => Po(e, t)).filter((e) => e.isInvalid ? !1 : e.x === null && e.y === null ? U.value.start <= 0 && U.value.end >= 0 : e.x >= U.value.start && e.x <= U.value.end) : i.map((e) => De(e) ? e : null).slice(U.value.start, U.value.end),
|
|
959
|
+
color: fe(e.color ? e.color : So.value[t] ? So.value[t] : ve[t]),
|
|
960
960
|
id: n,
|
|
961
961
|
scaleLabel: e.scaleLabel || n
|
|
962
962
|
};
|
|
963
|
-
})), Lo =
|
|
963
|
+
})), Lo = b(() => Io.value.map((e, t) => ({
|
|
964
964
|
absoluteIndex: t,
|
|
965
965
|
...e,
|
|
966
966
|
series: G.value ? e.series.map((e) => ({
|
|
@@ -970,14 +970,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
970
970
|
absoluteValues: G.value ? e.series.map((e) => e.y) : e.series,
|
|
971
971
|
segregate: () => hc(e),
|
|
972
972
|
isSegregated: ua.value.has(e.id)
|
|
973
|
-
}))), K =
|
|
973
|
+
}))), K = b(() => Io.value.map((e) => ({
|
|
974
974
|
...e,
|
|
975
975
|
series: G.value ? e.series.map((e) => ({
|
|
976
976
|
...e,
|
|
977
977
|
y: e.y === null ? null : e.y + Ao.value
|
|
978
978
|
})) : e.series.map((e) => e + Ao.value),
|
|
979
979
|
absoluteValues: G.value ? e.series.map((e) => e.y) : e.series
|
|
980
|
-
})).filter((e) => !ua.value.has(e.id))), Ro =
|
|
980
|
+
})).filter((e) => !ua.value.has(e.id))), Ro = b(() => la.value.length === Lo.value.length), q = b(() => V.value.chart.grid.labels.yAxis.position === "right");
|
|
981
981
|
function zo() {
|
|
982
982
|
let e = 0;
|
|
983
983
|
Yi.value && (e = Array.from(Yi.value.querySelectorAll("text")).reduce((e, t) => {
|
|
@@ -1026,7 +1026,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1026
1026
|
Ho.value = 0, Uo.value = 0;
|
|
1027
1027
|
}
|
|
1028
1028
|
}
|
|
1029
|
-
let Go =
|
|
1029
|
+
let Go = b(() => {
|
|
1030
1030
|
let e = 0;
|
|
1031
1031
|
if (Ki.value) try {
|
|
1032
1032
|
e = Ki.value.getBBox().height || 0;
|
|
@@ -1034,11 +1034,11 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1034
1034
|
e = 0;
|
|
1035
1035
|
}
|
|
1036
1036
|
return e + Ho.value + B.value.xAxis;
|
|
1037
|
-
}), Ko =
|
|
1037
|
+
}), Ko = b(() => ro.value.some((e) => e.useProgression));
|
|
1038
1038
|
function qo() {
|
|
1039
1039
|
return V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + V.value.chart.grid.labels.yAxis.labelWidth + V.value.chart.grid.labels.axis.yLabelOffsetX + B.value.dataLabels * .8;
|
|
1040
1040
|
}
|
|
1041
|
-
let J =
|
|
1041
|
+
let J = b(() => {
|
|
1042
1042
|
Pa.value;
|
|
1043
1043
|
let e = 0, t = 0, n = 0, r = 0;
|
|
1044
1044
|
if (V.value.chart.grid.labels.show) if (H.value.useIndividualScale && !H.value.isStacked) q.value ? t = (ro.value.length - la.value.length) * qo() : e = (ro.value.length - la.value.length) * (V.value.chart.grid.labels.yAxis.labelWidth + 36);
|
|
@@ -1065,8 +1065,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1065
1065
|
yAxisLabelWidth: r,
|
|
1066
1066
|
individualOffsetX: 36
|
|
1067
1067
|
};
|
|
1068
|
-
}), Jo =
|
|
1069
|
-
let e = +(V.value.chart.grid.position === "middle"), t = X.value + e, n =
|
|
1068
|
+
}), Jo = b(() => {
|
|
1069
|
+
let e = +(V.value.chart.grid.position === "middle"), t = X.value + e, n = _(J.value?.top), r = _(J.value?.bottom);
|
|
1070
1070
|
return G.value ? V.value.chart.grid.position === "middle" ? fl.value.map((e, t, i) => {
|
|
1071
1071
|
if (t === 0) return null;
|
|
1072
1072
|
let a = i[t - 1], o = a.x + (e.x - a.x) / 2;
|
|
@@ -1075,7 +1075,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1075
1075
|
let i = V.value.chart.grid.position === "middle" ? kc(t) : Oc(t);
|
|
1076
1076
|
return `M${i},${n} L${i},${r}`;
|
|
1077
1077
|
}).join(" ");
|
|
1078
|
-
}), Yo =
|
|
1078
|
+
}), Yo = b(() => {
|
|
1079
1079
|
if (!V.value.chart.grid.labels.xAxis.showCrosshairs) return "";
|
|
1080
1080
|
let e = V.value.chart.grid.labels.xAxis.crosshairSize, t = V.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
|
|
1081
1081
|
return (G.value ? fl.value : ls.value).map((n, r) => {
|
|
@@ -1114,7 +1114,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1114
1114
|
gt(() => {
|
|
1115
1115
|
let e = ++os;
|
|
1116
1116
|
(async () => {
|
|
1117
|
-
let t = co.value, n = await
|
|
1117
|
+
let t = co.value, n = await je({
|
|
1118
1118
|
values: V.value.chart.grid.labels.xAxisLabels.values,
|
|
1119
1119
|
maxDatapoints: t,
|
|
1120
1120
|
formatter: V.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
@@ -1128,7 +1128,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1128
1128
|
gt(() => {
|
|
1129
1129
|
let e = ++ss;
|
|
1130
1130
|
(async () => {
|
|
1131
|
-
let t = co.value, n = await
|
|
1131
|
+
let t = co.value, n = await je({
|
|
1132
1132
|
values: V.value.chart.grid.labels.xAxisLabels.values,
|
|
1133
1133
|
maxDatapoints: t,
|
|
1134
1134
|
formatter: V.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
@@ -1138,13 +1138,13 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1138
1138
|
e === ss && (as.value = n);
|
|
1139
1139
|
})();
|
|
1140
1140
|
});
|
|
1141
|
-
let cs =
|
|
1141
|
+
let cs = b(() => {
|
|
1142
1142
|
let e = V.value.chart.grid.labels.xAxisLabels.modulo;
|
|
1143
1143
|
return Y.value.length ? Math.min(e, [...new Set(Y.value.map((e) => e.text))].length) : e;
|
|
1144
|
-
}), ls =
|
|
1144
|
+
}), ls = b(() => {
|
|
1145
1145
|
let e = V.value.chart.grid.labels.xAxisLabels, t = Y.value || [], n = as.value || [], r = U.value.start ?? 0, i = R.value, a = X.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
|
|
1146
1146
|
return we(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, cs.value || 1), o, s, r, i, a);
|
|
1147
|
-
}), us =
|
|
1147
|
+
}), us = b(() => (ls.value || []).map((e) => e?.text ?? "").join("|"));
|
|
1148
1148
|
ct(() => {
|
|
1149
1149
|
requestAnimationFrame(() => {
|
|
1150
1150
|
Wo();
|
|
@@ -1178,7 +1178,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1178
1178
|
label: e.text
|
|
1179
1179
|
});
|
|
1180
1180
|
}
|
|
1181
|
-
let X =
|
|
1181
|
+
let X = b(() => {
|
|
1182
1182
|
let e = Et((U.value.end ?? 0) - (U.value.start ?? 0));
|
|
1183
1183
|
return Math.max(1, e);
|
|
1184
1184
|
});
|
|
@@ -1186,13 +1186,13 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1186
1186
|
G.value || (I.value = e);
|
|
1187
1187
|
}
|
|
1188
1188
|
function ps(e) {
|
|
1189
|
-
if (!G.value || !
|
|
1189
|
+
if (!G.value || !h(e)) {
|
|
1190
1190
|
Ta.value = null, Z.value = [], $s.value = null;
|
|
1191
1191
|
return;
|
|
1192
1192
|
}
|
|
1193
1193
|
Ta.value = Number(e), Vo(Number(e));
|
|
1194
1194
|
}
|
|
1195
|
-
let ms =
|
|
1195
|
+
let ms = b(() => G.value ? h(Ta.value) || h($s.value) : ![null, void 0].includes(R.value) || ![null, void 0].includes(I.value));
|
|
1196
1196
|
function hs() {
|
|
1197
1197
|
H.value.isStacked = !H.value.isStacked, H.value.isStacked ? H.value.useIndividualScale = !0 : H.value.useIndividualScale = V.value.chart.grid.labels.yAxis.useIndividualScale;
|
|
1198
1198
|
}
|
|
@@ -1279,11 +1279,11 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1279
1279
|
ws.value = !1, Es = null;
|
|
1280
1280
|
})), Ni("zoomReset");
|
|
1281
1281
|
}
|
|
1282
|
-
let Ps =
|
|
1282
|
+
let Ps = b(() => W.value.max + Ao.value);
|
|
1283
1283
|
function Fs(e) {
|
|
1284
1284
|
return e / (vt(Ps.value) ? Ps.value : 1);
|
|
1285
1285
|
}
|
|
1286
|
-
let Is =
|
|
1286
|
+
let Is = b(() => V.value.chart.grid.labels.yAxis.reverse);
|
|
1287
1287
|
function Ls(e) {
|
|
1288
1288
|
return Is.value ? 1 - e : e;
|
|
1289
1289
|
}
|
|
@@ -1298,24 +1298,24 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1298
1298
|
individualHeight: i
|
|
1299
1299
|
});
|
|
1300
1300
|
}
|
|
1301
|
-
let Bs =
|
|
1301
|
+
let Bs = b(() => V.value.chart.grid.labels.xAxis.reverse);
|
|
1302
1302
|
function Vs(e) {
|
|
1303
1303
|
return Bs.value ? 1 - e : e;
|
|
1304
1304
|
}
|
|
1305
|
-
let Hs =
|
|
1305
|
+
let Hs = b(() => isNaN(Fs(Ao.value)) ? J.value?.bottom : J.value?.bottom - J.value.height * Fs(Ao.value));
|
|
1306
1306
|
function Us(e) {
|
|
1307
1307
|
let t = W.value.min, n = W.value.max - t;
|
|
1308
1308
|
return !Number.isFinite(e) || !Number.isFinite(n) || n === 0 ? J.value?.bottom : J.value?.bottom - J.value.height * ((e - t) / n);
|
|
1309
1309
|
}
|
|
1310
|
-
let Ws =
|
|
1310
|
+
let Ws = b(() => W.value.min <= 0 && W.value.max >= 0 ? Us(0) : W.value.min > 0 ? Us(W.value.min) : Us(W.value.max));
|
|
1311
1311
|
function Gs(e) {
|
|
1312
1312
|
let t = ![null, void 0].includes(V.value.chart.grid.labels.yAxis.scaleMin) && V.value.chart.grid.labels.yAxis.scaleMin > 0 && Oo.value >= 0 ? J.value?.bottom : Hs.value;
|
|
1313
|
-
return e.value >= 0 ?
|
|
1313
|
+
return e.value >= 0 ? v(t - e.y <= 0 ? 1e-5 : t - e.y) : v(e.y - Hs.value <= 0 ? 1e-5 : e.y - Hs.value);
|
|
1314
1314
|
}
|
|
1315
1315
|
function Ks(e) {
|
|
1316
|
-
return e.value >= 0 ?
|
|
1316
|
+
return e.value >= 0 ? v(e.zeroPosition - e.y <= 0 ? 1e-5 : e.zeroPosition - e.y) : v(e.y - e.zeroPosition <= 0 ? 1e-5 : e.zeroPosition - e.y);
|
|
1317
1317
|
}
|
|
1318
|
-
let qs =
|
|
1318
|
+
let qs = b(() => {
|
|
1319
1319
|
let e = Math.max(1, X.value);
|
|
1320
1320
|
return {
|
|
1321
1321
|
bar: Tt(Math.max(1, J.value.width), e * Wc.value, 1),
|
|
@@ -1347,7 +1347,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1347
1347
|
-Infinity
|
|
1348
1348
|
].includes(e.zeroPosition) ? 0 : e.zeroPosition;
|
|
1349
1349
|
}
|
|
1350
|
-
let Qs = D(null), Z = D([]), $s = D(null), ec =
|
|
1350
|
+
let Qs = D(null), Z = D([]), $s = D(null), ec = b(() => {
|
|
1351
1351
|
if (!G.value) return {
|
|
1352
1352
|
sortedPoints: [],
|
|
1353
1353
|
matchingPointsByXValue: /* @__PURE__ */ new Map()
|
|
@@ -1357,7 +1357,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1357
1357
|
let i = K.value[r];
|
|
1358
1358
|
if (["line", "plot"].includes(i.type) && Array.isArray(i.series)) for (let r = 0; r < i.series.length; r += 1) {
|
|
1359
1359
|
let a = i.series[r];
|
|
1360
|
-
if (!
|
|
1360
|
+
if (!h(a?.x) || !h(a?.y)) continue;
|
|
1361
1361
|
let o = Number(a.x), s = ml(a), c = {
|
|
1362
1362
|
datapoint: i,
|
|
1363
1363
|
point: a,
|
|
@@ -1397,16 +1397,16 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1397
1397
|
});
|
|
1398
1398
|
}), a;
|
|
1399
1399
|
}
|
|
1400
|
-
let nc =
|
|
1400
|
+
let nc = b(() => G.value ? Array.from(ec.value.matchingPointsByXValue.keys()).sort((e, t) => ml({ x: e }) - ml({ x: t })) : []);
|
|
1401
1401
|
function rc(e) {
|
|
1402
1402
|
let t = nc.value[e];
|
|
1403
|
-
if (!
|
|
1403
|
+
if (!h(t)) {
|
|
1404
1404
|
Z.value = [], $s.value = null, Ta.value = null, sa.value = !1;
|
|
1405
1405
|
return;
|
|
1406
1406
|
}
|
|
1407
1407
|
Vo(Number(t));
|
|
1408
|
-
let
|
|
1409
|
-
|
|
1408
|
+
let n = c(ml({ x: Number(t) }), J.value.top + J.value.height / 2, L.value);
|
|
1409
|
+
n && (Da.value = n), R.value = e, Ea.value = e, sa.value = !0;
|
|
1410
1410
|
}
|
|
1411
1411
|
function ic(e) {
|
|
1412
1412
|
let t = L.value;
|
|
@@ -1505,7 +1505,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1505
1505
|
}
|
|
1506
1506
|
async function dc({ scale: e = 2 } = {}) {
|
|
1507
1507
|
if (!zi.value) return;
|
|
1508
|
-
let { width: t, height: n } = zi.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await
|
|
1508
|
+
let { width: t, height: n } = zi.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ve({
|
|
1509
1509
|
domElement: zi.value,
|
|
1510
1510
|
base64: !0,
|
|
1511
1511
|
img: !0,
|
|
@@ -1555,7 +1555,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1555
1555
|
let t = gc(e);
|
|
1556
1556
|
t !== null && (ua.value.has(t.id) || hc({ id: t.id }));
|
|
1557
1557
|
}
|
|
1558
|
-
let yc =
|
|
1558
|
+
let yc = b(() => `${V.value.chart.title.text || "Chart visualization"}. ${V.value.chart.title.subtitle.text || ""}`), bc = b(() => ({ linePlot: X.value > V.value.line.dot.hideAboveMaxSerieLength })), xc = b(() => V.value.chart.userOptions.show && (!V.value.chart.title.show || !V.value.chart.title.text)), Sc = b(() => {
|
|
1559
1559
|
if (Array.isArray(V.value.chart.highlightArea)) return V.value.chart.highlightArea.map((e) => {
|
|
1560
1560
|
let t = Math.min(e.to, uo.value - 1);
|
|
1561
1561
|
return {
|
|
@@ -1571,12 +1571,12 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1571
1571
|
...e,
|
|
1572
1572
|
span: e.from === e.to ? 1 : e.to < e.from ? 0 : e.to - e.from + 1
|
|
1573
1573
|
}];
|
|
1574
|
-
}), Cc =
|
|
1574
|
+
}), Cc = b(() => ea.value ? ro.value.map((e, t) => ({
|
|
1575
1575
|
...e,
|
|
1576
1576
|
series: oo(e.series),
|
|
1577
1577
|
id: `uniqueId_${t}`,
|
|
1578
|
-
color:
|
|
1579
|
-
})) : ro.value), wc =
|
|
1578
|
+
color: fe(e.color ? e.color : So.value[t] ? So.value[t] : ve[t])
|
|
1579
|
+
})) : ro.value), wc = b(() => K.value.map((e) => {
|
|
1580
1580
|
let t = e.absoluteValues.map((e) => [void 0, null].includes(e) ? null : e);
|
|
1581
1581
|
return {
|
|
1582
1582
|
id: e.id,
|
|
@@ -1584,7 +1584,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1584
1584
|
color: e.color,
|
|
1585
1585
|
values: yt(X.value, t)
|
|
1586
1586
|
};
|
|
1587
|
-
})), Tc =
|
|
1587
|
+
})), Tc = b(() => ({
|
|
1588
1588
|
responsiveBreakpoint: V.value.table.responsiveBreakpoint,
|
|
1589
1589
|
roundingValues: V.value.table.rounding,
|
|
1590
1590
|
showAverage: !1,
|
|
@@ -1609,10 +1609,10 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1609
1609
|
animation: { show: !1 },
|
|
1610
1610
|
cutNullValues: V.value.line.cutNullValues
|
|
1611
1611
|
}
|
|
1612
|
-
})), Ec =
|
|
1612
|
+
})), Ec = b(() => {
|
|
1613
1613
|
let e = Math.max(0, J.value?.width || 0);
|
|
1614
1614
|
return V.value.chart.grid.position === "middle" ? Tt(e, Math.max(1, X.value), 1) : Tt(e, Math.max(1, X.value - 1), 0);
|
|
1615
|
-
}), Dc =
|
|
1615
|
+
}), Dc = b(() => V.value.chart.grid.position === "middle" ? Ec.value : X.value <= 1 ? Math.max(0, J.value?.width || 0) : Ec.value);
|
|
1616
1616
|
function Oc(e) {
|
|
1617
1617
|
let t = J.value?.left || 0;
|
|
1618
1618
|
return V.value.chart.grid.position === "middle" ? t + Ec.value / 2 + Ec.value * e : t + Ec.value * e;
|
|
@@ -1643,11 +1643,11 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1643
1643
|
function Pc(e) {
|
|
1644
1644
|
return Math.max(1e-5, Dc.value * e);
|
|
1645
1645
|
}
|
|
1646
|
-
let Fc =
|
|
1646
|
+
let Fc = b(() => m(Lo.value.filter((e) => !ua.value.has(e.id)))), Ic = [
|
|
1647
1647
|
"bar",
|
|
1648
1648
|
"line",
|
|
1649
1649
|
"plot"
|
|
1650
|
-
], Lc =
|
|
1650
|
+
], Lc = b(() => Fc.value.filter((e) => Ic.includes(e.type))), Rc = b(() => Lc.value.length), zc = b(() => Lc.value.filter((e) => e.type === "bar")), Bc = b(() => Lc.value.filter((e) => e.type === "line")), Vc = b(() => Lc.value.filter((e) => e.type === "plot")), Hc = b(() => Io.value.filter((e) => e.type === "bar" && !ua.value.has(e.id))), Uc = b(() => Hc.value.length), Wc = b(() => Math.max(1, Uc.value)), Gc = b(() => {
|
|
1651
1651
|
let e = bt(Fc.value, (e) => e.scaleLabel), t = {};
|
|
1652
1652
|
for (let [n, r] of Object.entries(e)) {
|
|
1653
1653
|
let e = Infinity, i = -Infinity, a = !1;
|
|
@@ -1670,7 +1670,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1670
1670
|
};
|
|
1671
1671
|
}
|
|
1672
1672
|
return t;
|
|
1673
|
-
}), Kc =
|
|
1673
|
+
}), Kc = b(() => Fc.value.reduce((e, t) => {
|
|
1674
1674
|
let n = t.scaleLabel || "";
|
|
1675
1675
|
return e[n] = (e[n] || 0) + 1, e;
|
|
1676
1676
|
}, {}));
|
|
@@ -1693,7 +1693,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1693
1693
|
unique: Kc.value[l] === 1
|
|
1694
1694
|
};
|
|
1695
1695
|
}
|
|
1696
|
-
let Jc =
|
|
1696
|
+
let Jc = b(() => J.value.width / X.value / Uc.value - Yc.value * Uc.value), Yc = b(() => qs.value.line * V.value.bar.periodGap), Xc = b(() => Math.max(1e-5, Js() - (H.value.useIndividualScale && H.value.isStacked ? 0 : Yc.value))), Zc = b(() => Xc.value * Math.min(Math.abs(V.value.bar.innerGap), .95)), Qc = b(() => {
|
|
1697
1697
|
if (!V.value.chart.zoom.minimap.show) return [];
|
|
1698
1698
|
let e = Cc.value.filter((e) => !ua.value.has(e.id)), t = 0;
|
|
1699
1699
|
for (let n = 0; n < e.length; n += 1) {
|
|
@@ -1708,10 +1708,10 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1708
1708
|
}
|
|
1709
1709
|
let r = ol(n, 0, 1).min;
|
|
1710
1710
|
return n.map((e) => e + (r < 0 ? Math.abs(r) : 0));
|
|
1711
|
-
}), $c =
|
|
1711
|
+
}), $c = b(() => V.value.chart.zoom.minimap.show ? Cc.value.map((e) => ({
|
|
1712
1712
|
...e,
|
|
1713
1713
|
isVisible: !ua.value.has(e.id)
|
|
1714
|
-
})) : []), el =
|
|
1714
|
+
})) : []), el = b(() => G.value ? Z.value.map((e) => ({
|
|
1715
1715
|
slotAbsoluteIndex: e.datapoint.slotAbsoluteIndex,
|
|
1716
1716
|
shape: e.datapoint.shape || e.datapoint.type === "bar" ? "square" : "circle",
|
|
1717
1717
|
name: e.datapoint.name,
|
|
@@ -1732,7 +1732,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1732
1732
|
comments: e.comments || [],
|
|
1733
1733
|
prefix: e.prefix || V.value.chart.labels.prefix,
|
|
1734
1734
|
suffix: e.suffix || V.value.chart.labels.suffix
|
|
1735
|
-
}))), tl =
|
|
1735
|
+
}))), tl = b(() => W.value.ticks.map((e) => {
|
|
1736
1736
|
let t = e >= 0 ? Hs.value - J.value.height * Fs(e) : Hs.value + J.value.height * Fs(Math.abs(e));
|
|
1737
1737
|
return {
|
|
1738
1738
|
y: Is.value ? J.value.top + J.value.bottom - t : t,
|
|
@@ -1740,7 +1740,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1740
1740
|
prefix: V.value.chart.labels.prefix,
|
|
1741
1741
|
suffix: V.value.chart.labels.suffix
|
|
1742
1742
|
};
|
|
1743
|
-
})), nl =
|
|
1743
|
+
})), nl = b(() => {
|
|
1744
1744
|
let e = V.value.chart.annotations;
|
|
1745
1745
|
if (!e || !Array.isArray(e) || e.every((e) => !e.show)) return [];
|
|
1746
1746
|
let t = e.filter((e) => e.show && (e.yAxis.yTop != null || e.yAxis.yBottom != null));
|
|
@@ -1749,14 +1749,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1749
1749
|
return t.map((e, t) => {
|
|
1750
1750
|
let { yAxis: { yTop: i, yBottom: a, label: o } } = e, s = i != null && a != null && i !== a, l = i == null ? null : c(i), u = a == null ? null : c(a), d = Zo(o.fontSize);
|
|
1751
1751
|
d.font = `${o.fontSize}px sans-serif`;
|
|
1752
|
-
let
|
|
1753
|
-
|
|
1754
|
-
let
|
|
1752
|
+
let f = d.measureText(o.text).width, ee = o.fontSize, te = (o.position === "start" ? n + o.padding?.left : r - o.padding?.right) + o.offsetX, ne = (l != null && u != null ? Math.min(l, u) : l ?? u) - o.fontSize / 3 + o.offsetY - o.padding?.top, p;
|
|
1753
|
+
p = o.textAnchor === "middle" ? te - f / 2 - o.padding?.left : o.textAnchor === "end" ? te - f - o.padding?.right : te - o.padding?.left;
|
|
1754
|
+
let re = ne - ee * .75 - o.padding?.top;
|
|
1755
1755
|
return {
|
|
1756
1756
|
show: ![
|
|
1757
1757
|
l,
|
|
1758
1758
|
u,
|
|
1759
|
-
|
|
1759
|
+
re
|
|
1760
1760
|
].includes(NaN),
|
|
1761
1761
|
id: cl("annotation_y", [
|
|
1762
1762
|
t,
|
|
@@ -1772,14 +1772,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1772
1772
|
x1: n,
|
|
1773
1773
|
x2: r,
|
|
1774
1774
|
_text: {
|
|
1775
|
-
x:
|
|
1776
|
-
y:
|
|
1775
|
+
x: te,
|
|
1776
|
+
y: ne
|
|
1777
1777
|
},
|
|
1778
1778
|
_box: {
|
|
1779
|
-
x:
|
|
1780
|
-
y:
|
|
1781
|
-
width:
|
|
1782
|
-
height:
|
|
1779
|
+
x: p,
|
|
1780
|
+
y: re,
|
|
1781
|
+
width: f + o.padding?.left + o.padding?.right,
|
|
1782
|
+
height: ee + o.padding?.top + o.padding?.bottom,
|
|
1783
1783
|
fill: o.backgroundColor,
|
|
1784
1784
|
stroke: o.border.stroke,
|
|
1785
1785
|
rx: o.border.rx,
|
|
@@ -1859,17 +1859,17 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1859
1859
|
function ll() {
|
|
1860
1860
|
return no.value || ws.value || !V.value.line.showTransition ? void 0 : `all ${V.value.line.transitionDurationMs}ms ease-in-out`;
|
|
1861
1861
|
}
|
|
1862
|
-
let ul =
|
|
1863
|
-
let e = V.value.chart.grid.labels.xAxis.commonScaleSteps, t = V.value.chart.grid.labels.xAxis.scaleMin, n = V.value.chart.grid.labels.xAxis.scaleMax, r = t !== null && Number.isFinite(Number(t)) ? Number(t) : ul.value.min, i = n !== null && Number.isFinite(Number(n)) ? Number(n) : ul.value.max, a = V.value.chart.grid.labels.xAxis.useNiceScale ?
|
|
1862
|
+
let ul = b(() => al(Io.value, 0, 1)), dl = b(() => {
|
|
1863
|
+
let e = V.value.chart.grid.labels.xAxis.commonScaleSteps, t = V.value.chart.grid.labels.xAxis.scaleMin, n = V.value.chart.grid.labels.xAxis.scaleMax, r = t !== null && Number.isFinite(Number(t)) ? Number(t) : ul.value.min, i = n !== null && Number.isFinite(Number(n)) ? Number(n) : ul.value.max, a = V.value.chart.grid.labels.xAxis.useNiceScale ? he(r, i, e) : me(r, i, e);
|
|
1864
1864
|
if (V.value.chart.grid.position !== "start") return a;
|
|
1865
1865
|
let o = a.ticks.length > 1 ? a.ticks[1] - a.ticks[0] : 1;
|
|
1866
1866
|
return {
|
|
1867
1867
|
...a,
|
|
1868
1868
|
max: a.max + o
|
|
1869
1869
|
};
|
|
1870
|
-
}), fl =
|
|
1870
|
+
}), fl = b(() => G.value ? (Bs.value ? [...dl.value.ticks].reverse() : [...dl.value.ticks]).map((e, t) => ({
|
|
1871
1871
|
id: `continuous_x_label_${t}`,
|
|
1872
|
-
text:
|
|
1872
|
+
text: g(V.value.chart.grid.labels.xAxis.formatter, e, Se({
|
|
1873
1873
|
v: e,
|
|
1874
1874
|
s: V.value.chart.labels.prefix,
|
|
1875
1875
|
p: V.value.chart.labels.suffix,
|
|
@@ -1889,7 +1889,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1889
1889
|
let t = dl.value.max - dl.value.min || 1, n = Vs((e - dl.value.min) / t);
|
|
1890
1890
|
return J.value.left + J.value.width * n;
|
|
1891
1891
|
}
|
|
1892
|
-
let hl =
|
|
1892
|
+
let hl = b(() => al(ro.value, 0, 1)), gl = b(() => G.value ? hl.value.min : 0), _l = b(() => G.value ? hl.value.max : uo.value);
|
|
1893
1893
|
function vl(e, t) {
|
|
1894
1894
|
return G.value ? e.x == null || e.y == null ? null : ml(e) : Oc(t);
|
|
1895
1895
|
}
|
|
@@ -1897,19 +1897,19 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1897
1897
|
return !G.value || !e ? null : e.x ?? null;
|
|
1898
1898
|
}
|
|
1899
1899
|
function bl({ datapoint: e, totalSeries: t, gap: n, usableHeight: r, autoScaleValueMin: i, autoScaleValueMax: a, individualExtremes: o, forceExactScale: s = !1 }) {
|
|
1900
|
-
let c = e.scaleSteps || V.value.chart.grid.labels.yAxis.commonScaleSteps, l = 1.0000001, u = s || !V.value.chart.grid.labels.yAxis.useNiceScale ? me :
|
|
1900
|
+
let c = e.scaleSteps || V.value.chart.grid.labels.yAxis.commonScaleSteps, l = 1.0000001, u = s || !V.value.chart.grid.labels.yAxis.useNiceScale ? me : he, d = o.max === o.min ? o.max * l : o.max, f = a === i ? a * l : a, ee = u(o.min, d, c), te = u(i, f, c), ne = ee.min >= 0 ? 0 : Math.abs(ee.min), p = ee.max + Math.abs(ne), re = te.max + 0, ie = e.stackIndex, ae = t - 1 - ie, oe = H.value.isStacked ? 1 - e.cumulatedStackRatio : 0, se = H.value.isStacked ? r * oe + n * ae : 0, ce = H.value.isStacked ? r * e.stackRatio : J.value.height;
|
|
1901
1901
|
return {
|
|
1902
1902
|
scaleSteps: c,
|
|
1903
|
-
individualScale:
|
|
1904
|
-
autoScaleSteps:
|
|
1905
|
-
individualZero:
|
|
1903
|
+
individualScale: ee,
|
|
1904
|
+
autoScaleSteps: te,
|
|
1905
|
+
individualZero: ne,
|
|
1906
1906
|
autoScaleZero: 0,
|
|
1907
|
-
individualMax:
|
|
1908
|
-
autoScaleMax:
|
|
1909
|
-
yOffset:
|
|
1910
|
-
individualHeight:
|
|
1911
|
-
zeroPosition: J.value?.bottom -
|
|
1912
|
-
autoScaleZeroPosition: J.value?.bottom -
|
|
1907
|
+
individualMax: p,
|
|
1908
|
+
autoScaleMax: re,
|
|
1909
|
+
yOffset: se,
|
|
1910
|
+
individualHeight: ce,
|
|
1911
|
+
zeroPosition: J.value?.bottom - se - ce * ne / p,
|
|
1912
|
+
autoScaleZeroPosition: J.value?.bottom - se - ce * 0 / re
|
|
1913
1913
|
};
|
|
1914
1914
|
}
|
|
1915
1915
|
function xl({ datapoint: e, clampNegativeAutoScaleMaximum: t = !1 }) {
|
|
@@ -2005,10 +2005,10 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2005
2005
|
function Ol(e, t) {
|
|
2006
2006
|
return Array.isArray(e) && e[t + U.value.start] || "";
|
|
2007
2007
|
}
|
|
2008
|
-
let kl =
|
|
2008
|
+
let kl = b(() => {
|
|
2009
2009
|
let e = Rc.value, t = V.value.chart.grid.labels.yAxis.gap, n = H.value.isStacked ? t * (e - 1) : 0, r = J.value.height - n;
|
|
2010
2010
|
return zc.value.map((n, i) => {
|
|
2011
|
-
let { individualScale: a, autoScaleSteps: o, individualZero: s, individualMax: c, autoScaleMax: l, yOffset: u, individualHeight: d, zeroPosition:
|
|
2011
|
+
let { individualScale: a, autoScaleSteps: o, individualZero: s, individualMax: c, autoScaleMax: l, yOffset: u, individualHeight: d, zeroPosition: f, autoScaleZeroPosition: ee, scaleYLabels: te, autoScaleYLabels: ne, autoScaleRatiosToNiceScale: p } = El({
|
|
2012
2012
|
datapoint: n,
|
|
2013
2013
|
totalSeries: e,
|
|
2014
2014
|
gap: t,
|
|
@@ -2016,44 +2016,44 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2016
2016
|
clampNegativeAutoScaleMaximum: !0,
|
|
2017
2017
|
filterMinimumValues: !0,
|
|
2018
2018
|
preserveLooseMinimumExpression: !0
|
|
2019
|
-
}),
|
|
2020
|
-
let r = H.value.useIndividualScale ? (n.absoluteValues[t] + s) / c : Fs(e), a = H.value.useIndividualScale && H.value.isStacked ? J.value?.left + J.value.width / X.value * t : J.value?.left + qs.value.bar * i + qs.value.bar * t *
|
|
2019
|
+
}), re = Uc.value, ie = Dl(n.comments), ae = n.series.map((e, t) => {
|
|
2020
|
+
let r = H.value.useIndividualScale ? (n.absoluteValues[t] + s) / c : Fs(e), a = H.value.useIndividualScale && H.value.isStacked ? J.value?.left + J.value.width / X.value * t : J.value?.left + qs.value.bar * i + qs.value.bar * t * re - Jc.value / 2 - i * Yc.value;
|
|
2021
2021
|
return {
|
|
2022
|
-
yOffset:
|
|
2023
|
-
individualHeight:
|
|
2024
|
-
x:
|
|
2022
|
+
yOffset: v(u),
|
|
2023
|
+
individualHeight: v(d),
|
|
2024
|
+
x: v(a),
|
|
2025
2025
|
y: Rs({
|
|
2026
2026
|
ratio: r,
|
|
2027
2027
|
yOffset: u,
|
|
2028
2028
|
individualHeight: d
|
|
2029
2029
|
}),
|
|
2030
2030
|
value: n.absoluteValues[t],
|
|
2031
|
-
zeroPosition:
|
|
2032
|
-
individualMax:
|
|
2033
|
-
comment:
|
|
2031
|
+
zeroPosition: v(f),
|
|
2032
|
+
individualMax: v(c),
|
|
2033
|
+
comment: ie[t] || ""
|
|
2034
2034
|
};
|
|
2035
|
-
}),
|
|
2035
|
+
}), oe = n.series.map((e, t) => {
|
|
2036
2036
|
let r = H.value.useIndividualScale && H.value.isStacked ? J.value?.left + J.value.width / X.value * t : J.value?.left - qs.value.bar / 2 + qs.value.bar * i + qs.value.bar * t * Lo.value.filter((e) => e.type === "bar").filter((e) => !ua.value.has(e.id)).length;
|
|
2037
2037
|
return {
|
|
2038
|
-
yOffset:
|
|
2039
|
-
individualHeight:
|
|
2040
|
-
x:
|
|
2041
|
-
y:
|
|
2042
|
-
ratio:
|
|
2043
|
-
yOffset:
|
|
2044
|
-
individualHeight:
|
|
2038
|
+
yOffset: v(u),
|
|
2039
|
+
individualHeight: v(d),
|
|
2040
|
+
x: v(r),
|
|
2041
|
+
y: v(Rs({
|
|
2042
|
+
ratio: p[t] || 0,
|
|
2043
|
+
yOffset: v(u),
|
|
2044
|
+
individualHeight: v(d)
|
|
2045
2045
|
})),
|
|
2046
2046
|
value: n.absoluteValues[t],
|
|
2047
|
-
zeroPosition:
|
|
2048
|
-
individualMax:
|
|
2049
|
-
comment:
|
|
2047
|
+
zeroPosition: v(f),
|
|
2048
|
+
individualMax: v(c),
|
|
2049
|
+
comment: ie[t] || ""
|
|
2050
2050
|
};
|
|
2051
|
-
}),
|
|
2051
|
+
}), se = qc({
|
|
2052
2052
|
datapoint: n,
|
|
2053
|
-
scaleYLabels:
|
|
2054
|
-
autoScaleYLabels:
|
|
2055
|
-
zeroPosition:
|
|
2056
|
-
autoScaleZeroPosition:
|
|
2053
|
+
scaleYLabels: te,
|
|
2054
|
+
autoScaleYLabels: ne,
|
|
2055
|
+
zeroPosition: f,
|
|
2056
|
+
autoScaleZeroPosition: ee,
|
|
2057
2057
|
individualMax: c,
|
|
2058
2058
|
autoScaleMax: l,
|
|
2059
2059
|
yOffset: u,
|
|
@@ -2062,165 +2062,165 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2062
2062
|
return {
|
|
2063
2063
|
...n,
|
|
2064
2064
|
yOffset: u,
|
|
2065
|
-
autoScaleYLabels:
|
|
2065
|
+
autoScaleYLabels: ne,
|
|
2066
2066
|
individualHeight: d,
|
|
2067
|
-
scaleYLabels: n.autoScaling ?
|
|
2067
|
+
scaleYLabels: n.autoScaling ? ne : te,
|
|
2068
2068
|
individualScale: n.autoScaling ? o : a,
|
|
2069
2069
|
individualMax: n.autoScaling ? l : c,
|
|
2070
|
-
zeroPosition: n.autoScaling ?
|
|
2071
|
-
plots: n.autoScaling ?
|
|
2072
|
-
scaleGroup:
|
|
2073
|
-
groupId:
|
|
2070
|
+
zeroPosition: n.autoScaling ? ee : f,
|
|
2071
|
+
plots: n.autoScaling ? oe : ae,
|
|
2072
|
+
scaleGroup: se,
|
|
2073
|
+
groupId: se.groupId
|
|
2074
2074
|
};
|
|
2075
2075
|
});
|
|
2076
|
-
}), Q =
|
|
2077
|
-
let e = Rc.value,
|
|
2078
|
-
return Bc.value.map((
|
|
2079
|
-
let { individualScale:
|
|
2080
|
-
datapoint:
|
|
2076
|
+
}), Q = b(() => {
|
|
2077
|
+
let e = Rc.value, r = V.value.chart.grid.labels.yAxis.gap, o = H.value.isStacked ? r * (e - 1) : 0, s = J.value.height - o;
|
|
2078
|
+
return Bc.value.map((o, c) => {
|
|
2079
|
+
let { individualScale: l, autoScaleSteps: u, individualZero: f, individualMax: te, autoScaleMax: p, yOffset: re, individualHeight: ae, zeroPosition: oe, autoScaleZeroPosition: se, scaleYLabels: ce, autoScaleYLabels: le, autoScaleRatiosToNiceScale: ue } = El({
|
|
2080
|
+
datapoint: o,
|
|
2081
2081
|
totalSeries: e,
|
|
2082
|
-
gap:
|
|
2083
|
-
usableHeight:
|
|
2084
|
-
}), de = Dl(
|
|
2082
|
+
gap: r,
|
|
2083
|
+
usableHeight: s
|
|
2084
|
+
}), de = Dl(o.comments), m = o.series.map((e, t) => {
|
|
2085
2085
|
if (G.value && (e.x == null || e.y == null)) return {
|
|
2086
2086
|
index: t,
|
|
2087
2087
|
x: null,
|
|
2088
2088
|
y: null,
|
|
2089
2089
|
value: null,
|
|
2090
2090
|
datasetXValue: yl(e),
|
|
2091
|
-
comment:
|
|
2091
|
+
comment: o.comments && o.comments.slice(U.value.start, U.value.end)[t] || ""
|
|
2092
2092
|
};
|
|
2093
|
-
let
|
|
2093
|
+
let n = H.value.useIndividualScale ? (o.absoluteValues[t] + Math.abs(f)) / te : Fs(Fo(e));
|
|
2094
2094
|
return {
|
|
2095
2095
|
index: t,
|
|
2096
|
-
x:
|
|
2096
|
+
x: v(vl(e, t)),
|
|
2097
2097
|
datasetXValue: yl(e),
|
|
2098
|
-
y:
|
|
2099
|
-
ratio:
|
|
2100
|
-
yOffset:
|
|
2101
|
-
individualHeight:
|
|
2098
|
+
y: v(Rs({
|
|
2099
|
+
ratio: n,
|
|
2100
|
+
yOffset: re,
|
|
2101
|
+
individualHeight: ae
|
|
2102
2102
|
})),
|
|
2103
|
-
value:
|
|
2103
|
+
value: o.absoluteValues[t],
|
|
2104
2104
|
comment: de[t] || ""
|
|
2105
2105
|
};
|
|
2106
|
-
}),
|
|
2106
|
+
}), h = o.series.map((e, t) => G.value && (e.x === null || e.y === null) ? {
|
|
2107
2107
|
index: t,
|
|
2108
2108
|
x: null,
|
|
2109
2109
|
y: null,
|
|
2110
2110
|
datasetXValue: yl(e),
|
|
2111
2111
|
value: null,
|
|
2112
2112
|
comment: de[t] || ""
|
|
2113
|
-
} : [void 0, null].includes(
|
|
2113
|
+
} : [void 0, null].includes(o.absoluteValues[t]) ? {
|
|
2114
2114
|
index: t,
|
|
2115
|
-
x:
|
|
2116
|
-
y:
|
|
2117
|
-
value:
|
|
2115
|
+
x: v(vl(e, t)),
|
|
2116
|
+
y: oe,
|
|
2117
|
+
value: o.absoluteValues[t],
|
|
2118
2118
|
comment: de[t] || ""
|
|
2119
2119
|
} : {
|
|
2120
2120
|
index: t,
|
|
2121
|
-
x:
|
|
2121
|
+
x: v(vl(e, t)),
|
|
2122
2122
|
datasetXValue: yl(e),
|
|
2123
|
-
y:
|
|
2123
|
+
y: v(Rs({
|
|
2124
2124
|
ratio: ue[t] || 0,
|
|
2125
|
-
yOffset:
|
|
2126
|
-
individualHeight:
|
|
2125
|
+
yOffset: re,
|
|
2126
|
+
individualHeight: ae
|
|
2127
2127
|
})),
|
|
2128
|
-
value:
|
|
2128
|
+
value: o.absoluteValues[t],
|
|
2129
2129
|
comment: de[t] || ""
|
|
2130
|
-
}), pe =
|
|
2131
|
-
datapoint:
|
|
2132
|
-
scaleYLabels:
|
|
2130
|
+
}), pe = o.dashIndices && Array.isArray(o.dashIndices) && o?.dashIndices?.length > 0, me = V.value.line.cutNullValues ? ee(m) : _e(m.filter((e) => e.value !== null)), he = V.value.line.cutNullValues ? ee(h) : _e(h.filter((e) => e.value !== null)), ge = V.value.line.cutNullValues ? Oe(m) : ie(m.filter((e) => e.value !== null)), g = V.value.line.cutNullValues ? Oe(h) : ie(h.filter((e) => e.value !== null)), _ = d(V.value.line.cutNullValues ? m : m.filter((e) => e.value !== null)), ve = d(V.value.line.cutNullValues ? h : h.filter((e) => e.value !== null)), ye = pe ? n(V.value.line.cutNullValues ? m : m.filter((e) => e.value !== null), o.dashIndices.map((e) => e - U.value.start)) : [], be = pe ? ne(V.value.line.cutNullValues ? m : m.filter((e) => e.value !== null), o.dashIndices.map((e) => e - U.value.start)) : [], xe = qc({
|
|
2131
|
+
datapoint: o,
|
|
2132
|
+
scaleYLabels: ce,
|
|
2133
2133
|
autoScaleYLabels: le,
|
|
2134
|
-
zeroPosition:
|
|
2135
|
-
autoScaleZeroPosition:
|
|
2136
|
-
individualMax:
|
|
2137
|
-
autoScaleMax:
|
|
2138
|
-
yOffset:
|
|
2139
|
-
individualHeight:
|
|
2140
|
-
}),
|
|
2134
|
+
zeroPosition: oe,
|
|
2135
|
+
autoScaleZeroPosition: se,
|
|
2136
|
+
individualMax: te,
|
|
2137
|
+
autoScaleMax: p,
|
|
2138
|
+
yOffset: re,
|
|
2139
|
+
individualHeight: ae
|
|
2140
|
+
}), Se = H.value.useIndividualScale ? o.autoScaling ? se : oe : wo.value, Ce = Math.max(Math.max(o.autoScaling ? se : ce.at(-1) ? ce.at(-1).y : 0, J.value?.top), Se), we = o.autoScaling ? h : m, Te = V.value.line.cutNullValues ? we : we.filter((e) => e.value !== null), Ee = o.absoluteValues.filter((e) => ![
|
|
2141
2141
|
null,
|
|
2142
2142
|
void 0,
|
|
2143
2143
|
NaN
|
|
2144
|
-
].includes(e)),
|
|
2144
|
+
].includes(e)), De = !!o.temperatureColors && new Set(Ee).size <= 1;
|
|
2145
2145
|
return {
|
|
2146
|
-
...
|
|
2147
|
-
isFlatTemperatureLine:
|
|
2148
|
-
temperatureColors:
|
|
2149
|
-
yOffset:
|
|
2146
|
+
...o,
|
|
2147
|
+
isFlatTemperatureLine: De,
|
|
2148
|
+
temperatureColors: o.temperatureColors ? o.temperatureColors.map((e) => fe(e)) : null,
|
|
2149
|
+
yOffset: re,
|
|
2150
2150
|
autoScaleYLabels: le,
|
|
2151
|
-
individualHeight:
|
|
2152
|
-
scaleYLabels:
|
|
2153
|
-
individualScale:
|
|
2154
|
-
individualMax:
|
|
2155
|
-
zeroPosition:
|
|
2156
|
-
curve:
|
|
2157
|
-
plots:
|
|
2158
|
-
dashedStraight:
|
|
2159
|
-
dashedSmooth:
|
|
2151
|
+
individualHeight: ae,
|
|
2152
|
+
scaleYLabels: o.autoScaling ? le : ce,
|
|
2153
|
+
individualScale: o.autoScaling ? u : l,
|
|
2154
|
+
individualMax: o.autoScaling ? p : te,
|
|
2155
|
+
zeroPosition: o.autoScaling ? se : oe,
|
|
2156
|
+
curve: o.useStepper ? o.autoScaling ? ve : _ : o.autoScaling ? he : me,
|
|
2157
|
+
plots: o.autoScaling ? h : m,
|
|
2158
|
+
dashedStraight: ye,
|
|
2159
|
+
dashedSmooth: be,
|
|
2160
2160
|
hasDashedSegments: pe,
|
|
2161
|
-
area:
|
|
2162
|
-
curveAreas:
|
|
2163
|
-
straight:
|
|
2164
|
-
scaleGroup:
|
|
2165
|
-
groupId:
|
|
2161
|
+
area: o.useArea ? o.useStepper ? d(Te, Ce) : H.value.useIndividualScale ? V.value.line.cutNullValues ? i(o.autoScaling ? h : m, Ce) : a(o.autoScaling ? h.filter((e) => e.value !== null) : m.filter((e) => e.value !== null), Ce) : V.value.line.cutNullValues ? i(m, Ce) : a(m.filter((e) => e.value !== null), Ce) : "",
|
|
2162
|
+
curveAreas: o.useArea ? o.useStepper ? d(Te, Ce).split(";").filter(Boolean).map((e) => `M${e}Z`) : t(o.autoScaling ? V.value.line.cutNullValues ? h : h.filter((e) => e.value !== null) : V.value.line.cutNullValues ? m : m.filter((e) => e.value !== null), Ce, V.value.line.cutNullValues) : [],
|
|
2163
|
+
straight: o.useStepper ? o.autoScaling ? ve : _ : o.autoScaling ? g : ge,
|
|
2164
|
+
scaleGroup: xe,
|
|
2165
|
+
groupId: xe.groupId
|
|
2166
2166
|
};
|
|
2167
2167
|
});
|
|
2168
|
-
}), $ =
|
|
2168
|
+
}), $ = b(() => {
|
|
2169
2169
|
let e = Rc.value, t = V.value.chart.grid.labels.yAxis.gap, n = H.value.isStacked ? t * (e - 1) : 0, r = J.value.height - n;
|
|
2170
2170
|
return Vc.value.map((n) => {
|
|
2171
|
-
let { individualScale: i, autoScaleSteps: a, individualZero: o, individualMax: s, autoScaleMax: c, yOffset: l, individualHeight: u, zeroPosition: d, autoScaleZeroPosition:
|
|
2171
|
+
let { individualScale: i, autoScaleSteps: a, individualZero: o, individualMax: s, autoScaleMax: c, yOffset: l, individualHeight: u, zeroPosition: d, autoScaleZeroPosition: f, scaleYLabels: ee, autoScaleYLabels: te, autoScaleRatiosToNiceScale: ne } = El({
|
|
2172
2172
|
datapoint: n,
|
|
2173
2173
|
totalSeries: e,
|
|
2174
2174
|
gap: t,
|
|
2175
2175
|
usableHeight: r,
|
|
2176
2176
|
forceExactScale: !0,
|
|
2177
2177
|
preserveLooseMinimumExpression: !0
|
|
2178
|
-
}),
|
|
2178
|
+
}), p = Dl(n.comments), re = n.series.map((e, t) => {
|
|
2179
2179
|
if (G.value && (e.x == null || e.y == null)) return {
|
|
2180
2180
|
index: t,
|
|
2181
2181
|
x: null,
|
|
2182
2182
|
datasetXValue: yl(e),
|
|
2183
2183
|
y: null,
|
|
2184
2184
|
value: null,
|
|
2185
|
-
comment:
|
|
2185
|
+
comment: p[t] || ""
|
|
2186
2186
|
};
|
|
2187
2187
|
let r = H.value.useIndividualScale ? (n.absoluteValues[t] + Math.abs(o)) / s : Fs(Fo(e));
|
|
2188
2188
|
return {
|
|
2189
2189
|
index: t,
|
|
2190
|
-
x:
|
|
2190
|
+
x: v(vl(e, t)),
|
|
2191
2191
|
datasetXValue: yl(e),
|
|
2192
|
-
y:
|
|
2192
|
+
y: v(Rs({
|
|
2193
2193
|
ratio: r,
|
|
2194
2194
|
yOffset: l,
|
|
2195
2195
|
individualHeight: u
|
|
2196
2196
|
})),
|
|
2197
2197
|
value: n.absoluteValues[t],
|
|
2198
|
-
comment:
|
|
2198
|
+
comment: p[t] || ""
|
|
2199
2199
|
};
|
|
2200
|
-
}),
|
|
2200
|
+
}), ie = n.series.map((e, t) => G.value && (e.x === null || e.y === null) ? {
|
|
2201
2201
|
index: t,
|
|
2202
2202
|
x: null,
|
|
2203
2203
|
datasetXValue: yl(e),
|
|
2204
2204
|
y: null,
|
|
2205
2205
|
value: null,
|
|
2206
|
-
comment:
|
|
2206
|
+
comment: p[t] || ""
|
|
2207
2207
|
} : {
|
|
2208
2208
|
index: t,
|
|
2209
|
-
x:
|
|
2209
|
+
x: v(vl(e, t)),
|
|
2210
2210
|
datasetXValue: yl(e),
|
|
2211
|
-
y:
|
|
2212
|
-
ratio:
|
|
2211
|
+
y: v(Rs({
|
|
2212
|
+
ratio: ne[t] || 0,
|
|
2213
2213
|
yOffset: l,
|
|
2214
2214
|
individualHeight: u
|
|
2215
2215
|
})),
|
|
2216
2216
|
value: n.absoluteValues[t],
|
|
2217
|
-
comment:
|
|
2218
|
-
}),
|
|
2217
|
+
comment: p[t] || ""
|
|
2218
|
+
}), ae = qc({
|
|
2219
2219
|
datapoint: n,
|
|
2220
|
-
scaleYLabels:
|
|
2221
|
-
autoScaleYLabels:
|
|
2220
|
+
scaleYLabels: ee,
|
|
2221
|
+
autoScaleYLabels: te,
|
|
2222
2222
|
zeroPosition: d,
|
|
2223
|
-
autoScaleZeroPosition:
|
|
2223
|
+
autoScaleZeroPosition: f,
|
|
2224
2224
|
individualMax: s,
|
|
2225
2225
|
autoScaleMax: c,
|
|
2226
2226
|
yOffset: l,
|
|
@@ -2229,18 +2229,18 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2229
2229
|
return {
|
|
2230
2230
|
...n,
|
|
2231
2231
|
yOffset: l,
|
|
2232
|
-
autoScaleYLabels:
|
|
2232
|
+
autoScaleYLabels: te,
|
|
2233
2233
|
individualHeight: u,
|
|
2234
|
-
scaleYLabels: n.autoScaling ?
|
|
2234
|
+
scaleYLabels: n.autoScaling ? te : ee,
|
|
2235
2235
|
individualScale: n.autoScaling ? a : i,
|
|
2236
2236
|
individualMax: n.autoScaling ? c : s,
|
|
2237
|
-
zeroPosition: n.autoScaling ?
|
|
2238
|
-
plots: n.autoScaling ?
|
|
2239
|
-
scaleGroup:
|
|
2240
|
-
groupId:
|
|
2237
|
+
zeroPosition: n.autoScaling ? f : d,
|
|
2238
|
+
plots: n.autoScaling ? ie : re,
|
|
2239
|
+
scaleGroup: ae,
|
|
2240
|
+
groupId: ae.groupId
|
|
2241
2241
|
};
|
|
2242
2242
|
});
|
|
2243
|
-
}), Al =
|
|
2243
|
+
}), Al = b(() => {
|
|
2244
2244
|
let e = Object.entries(Gc.value).reduce((e, [t, n]) => (e[t] = {
|
|
2245
2245
|
...n,
|
|
2246
2246
|
scaleLabel: t
|
|
@@ -2255,7 +2255,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2255
2255
|
...t.scaleGroup
|
|
2256
2256
|
});
|
|
2257
2257
|
}), e;
|
|
2258
|
-
}), jl =
|
|
2258
|
+
}), jl = b(() => {
|
|
2259
2259
|
let e = Q.value.map((e) => ({
|
|
2260
2260
|
name: e.name,
|
|
2261
2261
|
color: e.color,
|
|
@@ -2304,7 +2304,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2304
2304
|
id: e.id,
|
|
2305
2305
|
groupId: e.groupId,
|
|
2306
2306
|
scaleLabel: e.scaleLabel,
|
|
2307
|
-
name:
|
|
2307
|
+
name: g(V.value.chart.grid.labels.yAxis.serieNameFormatter, r, r, e),
|
|
2308
2308
|
color: H.value.useIndividualScale && !H.value.isStacked ? e.unique ? e.color : e.groupColor : e.color,
|
|
2309
2309
|
scale: e.scale,
|
|
2310
2310
|
yOffset: e.yOffset,
|
|
@@ -2322,7 +2322,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2322
2322
|
}))
|
|
2323
2323
|
};
|
|
2324
2324
|
});
|
|
2325
|
-
}), Ml =
|
|
2325
|
+
}), Ml = b(() => {
|
|
2326
2326
|
let e = V.value.line.interLine || {}, t = e.pairs || [], n = e.colors || [];
|
|
2327
2327
|
if (!t.length) return [];
|
|
2328
2328
|
let r = [];
|
|
@@ -2348,7 +2348,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2348
2348
|
});
|
|
2349
2349
|
});
|
|
2350
2350
|
}), r;
|
|
2351
|
-
}), Nl =
|
|
2351
|
+
}), Nl = b(() => {
|
|
2352
2352
|
let e = Z.value[0]?.index ?? null, t = G.value ? e : R.value;
|
|
2353
2353
|
return {
|
|
2354
2354
|
timeLabel: G.value ? {
|
|
@@ -2374,12 +2374,12 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2374
2374
|
gt(() => {
|
|
2375
2375
|
let e = ++Fl, t = V.value.chart.grid.labels.xAxisLabels.datetimeFormatter;
|
|
2376
2376
|
(async () => {
|
|
2377
|
-
let n = await
|
|
2377
|
+
let n = await Ae(t.locale).catch(() => Ae("en"));
|
|
2378
2378
|
e === Fl && (Pl.value = n.data);
|
|
2379
2379
|
})();
|
|
2380
2380
|
});
|
|
2381
|
-
let Il =
|
|
2382
|
-
let e = V.value.chart.grid.labels.xAxisLabels.datetimeFormatter, t =
|
|
2381
|
+
let Il = b(() => {
|
|
2382
|
+
let e = V.value.chart.grid.labels.xAxisLabels.datetimeFormatter, t = ke({
|
|
2383
2383
|
useUTC: e.useUTC,
|
|
2384
2384
|
locale: Pl.value,
|
|
2385
2385
|
januaryAsYear: e.januaryAsYear
|
|
@@ -2388,7 +2388,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2388
2388
|
let r = V.value.chart.grid.labels.xAxisLabels.values?.[e];
|
|
2389
2389
|
return r == null ? "" : t.formatDate(new Date(r), n);
|
|
2390
2390
|
};
|
|
2391
|
-
}), Ll =
|
|
2391
|
+
}), Ll = b(() => (V.value.chart.grid.labels.xAxisLabels.values || []).map((e, t) => ({
|
|
2392
2392
|
text: Il.value(t, V.value.chart.zoom.timeFormat),
|
|
2393
2393
|
absoluteIndex: t
|
|
2394
2394
|
}))), Rl = /* @__PURE__ */ new Map();
|
|
@@ -2419,10 +2419,10 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2419
2419
|
function Vl(e) {
|
|
2420
2420
|
let t = Bl(e);
|
|
2421
2421
|
if (Rl.has(t)) return Rl.get(t);
|
|
2422
|
-
let n = V.value.chart.tooltip.backgroundColor,
|
|
2422
|
+
let n = V.value.chart.tooltip.backgroundColor, r = "", i = "";
|
|
2423
2423
|
switch (ia.value[e.type]) {
|
|
2424
2424
|
case "bar":
|
|
2425
|
-
|
|
2425
|
+
r = `<svg viewBox="0 0 40 40" height="14" width="14">${Pi.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${e.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${Pi.pattern ? `url(#pattern_${F.value}_${e.slotAbsoluteIndex})` : e.color}" /></svg>`;
|
|
2426
2426
|
break;
|
|
2427
2427
|
case "line":
|
|
2428
2428
|
!e.shape || ![
|
|
@@ -2432,7 +2432,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2432
2432
|
"diamond",
|
|
2433
2433
|
"pentagon",
|
|
2434
2434
|
"hexagon"
|
|
2435
|
-
].includes(e.shape) ?
|
|
2435
|
+
].includes(e.shape) ? i = `<circle cx="10" cy="8" r="4" stroke="${n}" stroke-width="0.5" fill="${e.color}" />` : e.shape === "triangle" ? i = `<path d="${ye({
|
|
2436
2436
|
plot: {
|
|
2437
2437
|
x: 10,
|
|
2438
2438
|
y: 8
|
|
@@ -2440,7 +2440,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2440
2440
|
radius: 4,
|
|
2441
2441
|
sides: 3,
|
|
2442
2442
|
rotation: .52
|
|
2443
|
-
}).path}" fill="${e.color}" stroke="${n}" stroke-width="0.5" />` : e.shape === "square" ?
|
|
2443
|
+
}).path}" fill="${e.color}" stroke="${n}" stroke-width="0.5" />` : e.shape === "square" ? i = `<path d="${ye({
|
|
2444
2444
|
plot: {
|
|
2445
2445
|
x: 10,
|
|
2446
2446
|
y: 8
|
|
@@ -2448,7 +2448,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2448
2448
|
radius: 4,
|
|
2449
2449
|
sides: 4,
|
|
2450
2450
|
rotation: .8
|
|
2451
|
-
}).path}" fill="${e.color}" stroke="${n}" stroke-width="0.5" />` : e.shape === "diamond" ?
|
|
2451
|
+
}).path}" fill="${e.color}" stroke="${n}" stroke-width="0.5" />` : e.shape === "diamond" ? i = `<path d="${ye({
|
|
2452
2452
|
plot: {
|
|
2453
2453
|
x: 10,
|
|
2454
2454
|
y: 8
|
|
@@ -2456,7 +2456,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2456
2456
|
radius: 4,
|
|
2457
2457
|
sides: 4,
|
|
2458
2458
|
rotation: 0
|
|
2459
|
-
}).path}" fill="${e.color}" stroke="${n}" stroke-width="0.5" />` : e.shape === "pentagon" ?
|
|
2459
|
+
}).path}" fill="${e.color}" stroke="${n}" stroke-width="0.5" />` : e.shape === "pentagon" ? i = `<path d="${ye({
|
|
2460
2460
|
plot: {
|
|
2461
2461
|
x: 10,
|
|
2462
2462
|
y: 8
|
|
@@ -2464,7 +2464,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2464
2464
|
radius: 4,
|
|
2465
2465
|
sides: 5,
|
|
2466
2466
|
rotation: .95
|
|
2467
|
-
}).path}" fill="${e.color}" stroke="${n}" stroke-width="0.5" />` : e.shape === "hexagon" ?
|
|
2467
|
+
}).path}" fill="${e.color}" stroke="${n}" stroke-width="0.5" />` : e.shape === "hexagon" ? i = `<path d="${ye({
|
|
2468
2468
|
plot: {
|
|
2469
2469
|
x: 10,
|
|
2470
2470
|
y: 8
|
|
@@ -2472,13 +2472,13 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2472
2472
|
radius: 4,
|
|
2473
2473
|
sides: 6,
|
|
2474
2474
|
rotation: 0
|
|
2475
|
-
}).path}" fill="${e.color}" stroke="${n}" stroke-width="0.5" />` : e.shape === "star" && (
|
|
2475
|
+
}).path}" fill="${e.color}" stroke="${n}" stroke-width="0.5" />` : e.shape === "star" && (i = `<polygon stroke="${n}" stroke-width="0.5" fill="${e.color}" points="${l({
|
|
2476
2476
|
plot: {
|
|
2477
2477
|
x: 10,
|
|
2478
2478
|
y: 8
|
|
2479
2479
|
},
|
|
2480
2480
|
radius: 4
|
|
2481
|
-
})}" />`),
|
|
2481
|
+
})}" />`), r = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${n}" stroke-width="0.5" height="3" width="20" fill="${e.color}" />${i}</svg>`;
|
|
2482
2482
|
break;
|
|
2483
2483
|
case "plot":
|
|
2484
2484
|
if (!e.shape || ![
|
|
@@ -2489,11 +2489,11 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2489
2489
|
"pentagon",
|
|
2490
2490
|
"hexagon"
|
|
2491
2491
|
].includes(e.shape)) {
|
|
2492
|
-
|
|
2492
|
+
r = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${n}" stroke-width="1" fill="${e.color}" /></svg>`;
|
|
2493
2493
|
break;
|
|
2494
2494
|
}
|
|
2495
2495
|
if (e.shape === "star") {
|
|
2496
|
-
|
|
2496
|
+
r = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${n}" stroke-width="1" fill="${e.color}" points="${l({
|
|
2497
2497
|
plot: {
|
|
2498
2498
|
x: 6,
|
|
2499
2499
|
y: 6
|
|
@@ -2503,7 +2503,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2503
2503
|
break;
|
|
2504
2504
|
}
|
|
2505
2505
|
if (e.shape === "triangle") {
|
|
2506
|
-
|
|
2506
|
+
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${ye({
|
|
2507
2507
|
plot: {
|
|
2508
2508
|
x: 6,
|
|
2509
2509
|
y: 6
|
|
@@ -2515,7 +2515,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2515
2515
|
break;
|
|
2516
2516
|
}
|
|
2517
2517
|
if (e.shape === "square") {
|
|
2518
|
-
|
|
2518
|
+
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${ye({
|
|
2519
2519
|
plot: {
|
|
2520
2520
|
x: 6,
|
|
2521
2521
|
y: 6
|
|
@@ -2527,7 +2527,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2527
2527
|
break;
|
|
2528
2528
|
}
|
|
2529
2529
|
if (e.shape === "diamond") {
|
|
2530
|
-
|
|
2530
|
+
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${ye({
|
|
2531
2531
|
plot: {
|
|
2532
2532
|
x: 6,
|
|
2533
2533
|
y: 6
|
|
@@ -2539,7 +2539,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2539
2539
|
break;
|
|
2540
2540
|
}
|
|
2541
2541
|
if (e.shape === "pentagon") {
|
|
2542
|
-
|
|
2542
|
+
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${ye({
|
|
2543
2543
|
plot: {
|
|
2544
2544
|
x: 6,
|
|
2545
2545
|
y: 6
|
|
@@ -2551,7 +2551,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2551
2551
|
break;
|
|
2552
2552
|
}
|
|
2553
2553
|
if (e.shape === "hexagon") {
|
|
2554
|
-
|
|
2554
|
+
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${ye({
|
|
2555
2555
|
plot: {
|
|
2556
2556
|
x: 6,
|
|
2557
2557
|
y: 6
|
|
@@ -2565,17 +2565,17 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2565
2565
|
break;
|
|
2566
2566
|
default: break;
|
|
2567
2567
|
}
|
|
2568
|
-
return Rl.set(t,
|
|
2568
|
+
return Rl.set(t, r), r;
|
|
2569
2569
|
}
|
|
2570
|
-
let Hl =
|
|
2571
|
-
let e = "", t = el.value.map((e) => e.value).filter((e) =>
|
|
2570
|
+
let Hl = b(() => {
|
|
2571
|
+
let e = "", t = el.value.map((e) => e.value).filter((e) => De(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0), n = G.value ? { text: g(V.value.chart.grid.labels.xAxis.formatter, Z.value[0]?.point.raw?.x ?? Z.value[0]?.point.x, Se({
|
|
2572
2572
|
v: Z.value[0]?.point.raw?.x ?? Z.value[0]?.point.x,
|
|
2573
2573
|
r: V.value.chart.tooltip.roundingValue
|
|
2574
2574
|
}), {
|
|
2575
2575
|
datapoint: null,
|
|
2576
2576
|
serriesIndex: null
|
|
2577
2577
|
}) } : Y.value[R.value], r = V.value.chart.tooltip.customFormat;
|
|
2578
|
-
if (
|
|
2578
|
+
if (Te(r)) try {
|
|
2579
2579
|
let e = r(zl(n));
|
|
2580
2580
|
if (typeof e == "string") return e;
|
|
2581
2581
|
} catch (e) {
|
|
@@ -2586,13 +2586,13 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2586
2586
|
G.value || (e += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${V.value.chart.tooltip.borderColor}; width:100%">${V.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !V.value.chart.tooltip.useDefaultTimeFormat ? t : n.text}</div>`);
|
|
2587
2587
|
}
|
|
2588
2588
|
return el.value.forEach((r) => {
|
|
2589
|
-
if (
|
|
2590
|
-
let i = Vl(r), a = V.value.chart.tooltip.showValue ?
|
|
2589
|
+
if (De(r.value)) {
|
|
2590
|
+
let i = Vl(r), a = V.value.chart.tooltip.showValue ? g(r.type === "line" ? V.value.line.labels.formatter : r.type === "bar" ? V.value.bar.labels.formatter : V.value.plot.labels.formatter, r.value, Se({
|
|
2591
2591
|
p: r.prefix,
|
|
2592
2592
|
v: r.value,
|
|
2593
2593
|
s: r.suffix,
|
|
2594
2594
|
r: V.value.chart.tooltip.roundingValue
|
|
2595
|
-
}), { datapoint: r }) : "", o = V.value.chart.tooltip.showValue ? n?.text ?? "" : "",
|
|
2595
|
+
}), { datapoint: r }) : "", o = V.value.chart.tooltip.showValue ? n?.text ?? "" : "", s = G.value ? `
|
|
2596
2596
|
<span>${V.value.chart.grid.labels.axis.xLabel || "X"}: </span>
|
|
2597
2597
|
<span>${o}</span>,
|
|
2598
2598
|
<span>${V.value.chart.grid.labels.axis.yLabel || "Y"}: </span>
|
|
@@ -2604,20 +2604,20 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2604
2604
|
<div style="width:20px">${i}</div>
|
|
2605
2605
|
<div style="display:flex;flex-direction:column;">
|
|
2606
2606
|
<div>${r.name}</div>
|
|
2607
|
-
<div>${
|
|
2607
|
+
<div>${s}</div>
|
|
2608
2608
|
</div>
|
|
2609
2609
|
</div>
|
|
2610
2610
|
</div>
|
|
2611
|
-
` : e += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;white-space:nowrap;"><div style="width:20px">${i}</div> ${r.name}: <b>${
|
|
2612
|
-
v:
|
|
2611
|
+
` : e += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;white-space:nowrap;"><div style="width:20px">${i}</div> ${r.name}: <b>${s}</b> ${V.value.chart.tooltip.showPercentage ? `(${Se({
|
|
2612
|
+
v: v(Math.abs(r.value) / t * 100),
|
|
2613
2613
|
s: "%",
|
|
2614
2614
|
r: V.value.chart.tooltip.roundingPercentage
|
|
2615
2615
|
})})` : ""}</div>`;
|
|
2616
|
-
let
|
|
2617
|
-
V.value.chart.comments.showInTooltip &&
|
|
2616
|
+
let c = Ol(r.comments, R.value);
|
|
2617
|
+
V.value.chart.comments.showInTooltip && c && (e += `<div class="vue-data-ui-tooltip-comment" style="background:${r.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${r.color}">${c}</div>`);
|
|
2618
2618
|
}
|
|
2619
2619
|
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${V.value.chart.tooltip.color}">${e}</div>`;
|
|
2620
|
-
}), Ul =
|
|
2620
|
+
}), Ul = b(() => {
|
|
2621
2621
|
if (!G.value) return [];
|
|
2622
2622
|
let e = /* @__PURE__ */ new Set(), t = [];
|
|
2623
2623
|
return K.value.forEach((n) => {
|
|
@@ -2631,7 +2631,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2631
2631
|
});
|
|
2632
2632
|
function Wl(e) {
|
|
2633
2633
|
let t = Number(e);
|
|
2634
|
-
return Number.isFinite(t) ?
|
|
2634
|
+
return Number.isFinite(t) ? g(V.value.chart.grid.labels.xAxis.formatter, t, Se({
|
|
2635
2635
|
v: t,
|
|
2636
2636
|
r: V.value.table.rounding
|
|
2637
2637
|
}), {
|
|
@@ -2655,7 +2655,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2655
2655
|
}
|
|
2656
2656
|
function Jl(e, t) {
|
|
2657
2657
|
let n = Kl(e, t);
|
|
2658
|
-
return vt(n) ?
|
|
2658
|
+
return vt(n) ? g(e.type === "line" ? V.value.line.labels.formatter : e.type === "bar" ? V.value.bar.labels.formatter : V.value.plot.labels.formatter, n, Se({
|
|
2659
2659
|
p: e.prefix || V.value.chart.labels.prefix,
|
|
2660
2660
|
v: n,
|
|
2661
2661
|
s: e.suffix || V.value.chart.labels.suffix,
|
|
@@ -2665,7 +2665,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2665
2665
|
function Yl(e) {
|
|
2666
2666
|
return K.value.map((t) => Kl(t, e) ?? 0).reduce((e, t) => e + t, 0);
|
|
2667
2667
|
}
|
|
2668
|
-
let Xl =
|
|
2668
|
+
let Xl = b(() => {
|
|
2669
2669
|
if (G.value) return Ul.value.map((e) => {
|
|
2670
2670
|
let t = Yl(e);
|
|
2671
2671
|
return {
|
|
@@ -2688,7 +2688,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2688
2688
|
});
|
|
2689
2689
|
}
|
|
2690
2690
|
return e;
|
|
2691
|
-
}), Zl =
|
|
2691
|
+
}), Zl = b(() => Io.value.length === 0 ? {
|
|
2692
2692
|
head: [],
|
|
2693
2693
|
body: [],
|
|
2694
2694
|
config: {},
|
|
@@ -2700,7 +2700,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2700
2700
|
type: e.type
|
|
2701
2701
|
})),
|
|
2702
2702
|
body: Xl.value.map((e) => [e.period].concat(e.csvValues))
|
|
2703
|
-
}), Ql =
|
|
2703
|
+
}), Ql = b(() => {
|
|
2704
2704
|
let e = V.value.table.showSum, t = [G.value ? V.value.chart.grid.labels.axis.xLabel || "X" : ""].concat(K.value.map((e) => e.name));
|
|
2705
2705
|
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>"));
|
|
2706
2706
|
let n = Xl.value.map((t) => [t.period].concat(t.formattedValues, e ? t.formattedSum : [])), r = {
|
|
@@ -2728,8 +2728,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2728
2728
|
[V.value.chart.title.text],
|
|
2729
2729
|
[V.value.chart.title.subtitle.text],
|
|
2730
2730
|
[""]
|
|
2731
|
-
], n = [G.value ? V.value.chart.grid.labels.axis.xLabel || "X" : V.value.table.columnNames.period, ...Zl.value.head.map((e) => e.label)], r = Zl.value.body, i =
|
|
2732
|
-
e ? e(i) :
|
|
2731
|
+
], n = [G.value ? V.value.chart.grid.labels.axis.xLabel || "X" : V.value.table.columnNames.period, ...Zl.value.head.map((e) => e.label)], r = Zl.value.body, i = Ee(t.concat([n]).concat(r));
|
|
2732
|
+
e ? e(i) : de({
|
|
2733
2733
|
csvContent: i,
|
|
2734
2734
|
title: V.value.chart.title.text || "vue-ui-xy"
|
|
2735
2735
|
});
|
|
@@ -2772,43 +2772,43 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2772
2772
|
B.value.dataLabels = V.value.chart.grid.labels.fontSize, B.value.yAxis = V.value.chart.grid.labels.axis.fontSize, B.value.xAxis = V.value.chart.grid.labels.xAxisLabels.fontSize, B.value.plotLabels = V.value.chart.labels.fontSize, Ka.value.plot = V.value.plot.radius, Ka.value.line = V.value.line.radius, Ka.value.selectedLine = V.value.line.dot.selectedRadius;
|
|
2773
2773
|
return;
|
|
2774
2774
|
}
|
|
2775
|
-
B.value.dataLabels =
|
|
2775
|
+
B.value.dataLabels = ue({
|
|
2776
2776
|
relator: ta.value,
|
|
2777
2777
|
adjuster: 400,
|
|
2778
2778
|
source: V.value.chart.grid.labels.fontSize,
|
|
2779
2779
|
threshold: 10,
|
|
2780
2780
|
fallback: 10
|
|
2781
|
-
}), B.value.yAxis =
|
|
2781
|
+
}), B.value.yAxis = ue({
|
|
2782
2782
|
relator: P.value,
|
|
2783
2783
|
adjuster: 1e3,
|
|
2784
2784
|
source: V.value.chart.grid.labels.axis.fontSize,
|
|
2785
2785
|
threshold: 10,
|
|
2786
2786
|
fallback: 10
|
|
2787
|
-
}), B.value.xAxis =
|
|
2787
|
+
}), B.value.xAxis = ue({
|
|
2788
2788
|
relator: P.value,
|
|
2789
2789
|
adjuster: 1e3,
|
|
2790
2790
|
source: V.value.chart.grid.labels.xAxisLabels.fontSize,
|
|
2791
2791
|
threshold: 10,
|
|
2792
2792
|
fallback: 10
|
|
2793
|
-
}), B.value.plotLabels =
|
|
2793
|
+
}), B.value.plotLabels = ue({
|
|
2794
2794
|
relator: P.value,
|
|
2795
2795
|
adjuster: 800,
|
|
2796
2796
|
source: V.value.chart.labels.fontSize,
|
|
2797
2797
|
threshold: 10,
|
|
2798
2798
|
fallback: 10
|
|
2799
|
-
}), Ka.value.plot =
|
|
2799
|
+
}), Ka.value.plot = ue({
|
|
2800
2800
|
relator: P.value,
|
|
2801
2801
|
adjuster: 800,
|
|
2802
2802
|
source: V.value.plot.radius,
|
|
2803
2803
|
threshold: 1,
|
|
2804
2804
|
fallback: 1
|
|
2805
|
-
}), Ka.value.line =
|
|
2805
|
+
}), Ka.value.line = ue({
|
|
2806
2806
|
relator: P.value,
|
|
2807
2807
|
adjuster: 800,
|
|
2808
2808
|
source: V.value.line.radius,
|
|
2809
2809
|
threshold: 1,
|
|
2810
2810
|
fallback: 0
|
|
2811
|
-
}), Ka.value.selectedLine =
|
|
2811
|
+
}), Ka.value.selectedLine = ue({
|
|
2812
2812
|
relator: P.value,
|
|
2813
2813
|
adjuster: 800,
|
|
2814
2814
|
source: V.value.line.dot.selectedRadius,
|
|
@@ -2817,12 +2817,12 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2817
2817
|
});
|
|
2818
2818
|
}
|
|
2819
2819
|
function ou() {
|
|
2820
|
-
if (
|
|
2820
|
+
if (te(M.dataset) ? (re({
|
|
2821
2821
|
componentName: "VueUiXy",
|
|
2822
2822
|
type: "dataset",
|
|
2823
2823
|
debug: $a.value
|
|
2824
2824
|
}), io.value = !0) : M.dataset.forEach((e, t) => {
|
|
2825
|
-
[null, void 0].includes(e.name) && (
|
|
2825
|
+
[null, void 0].includes(e.name) && (re({
|
|
2826
2826
|
componentName: "VueUiXy",
|
|
2827
2827
|
type: "datasetSerieAttribute",
|
|
2828
2828
|
property: "name (string)",
|
|
@@ -2831,9 +2831,9 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2831
2831
|
}), io.value = !0);
|
|
2832
2832
|
}), $a.value && M.dataset.forEach((e) => {
|
|
2833
2833
|
e.series.forEach((t, n) => {
|
|
2834
|
-
|
|
2834
|
+
De(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.`);
|
|
2835
2835
|
});
|
|
2836
|
-
}),
|
|
2836
|
+
}), te(M.dataset) || (io.value = V.value.loading), ga.value = V.value.chart.userOptions.showOnChartHover, _a.value = V.value.chart.userOptions.keepStateOnChartLeave, va.value = !V.value.chart.userOptions.showOnChartHover, Qa(), V.value.responsive) {
|
|
2837
2837
|
let e = zi.value.parentNode;
|
|
2838
2838
|
Zi.value && (Qi.value && Zi.value.unobserve(Qi.value), Zi.value.disconnect(), Zi.value = null, Qi.value = null);
|
|
2839
2839
|
let { height: t, width: n } = e.getBoundingClientRect(), r = null, i = 0;
|
|
@@ -2865,7 +2865,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2865
2865
|
ou(), Ss(), document.addEventListener("mousemove", su, { passive: !0 }), document.addEventListener("scroll", Qo, { passive: !0 });
|
|
2866
2866
|
}), st(() => {
|
|
2867
2867
|
document.removeEventListener("scroll", Qo, { passive: !0 }), document.removeEventListener("mousemove", su, { passive: !0 }), Zi.value && (Qi.value && Zi.value.unobserve(Qi.value), Zi.value.disconnect(), Zi.value = null, Qi.value = null), hu(), ks();
|
|
2868
|
-
}),
|
|
2868
|
+
}), Be({
|
|
2869
2869
|
timeLabelsEls: Ji,
|
|
2870
2870
|
timeLabels: Y,
|
|
2871
2871
|
slicer: U,
|
|
@@ -2890,19 +2890,19 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2890
2890
|
width: P,
|
|
2891
2891
|
rotation: V.value.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
2892
2892
|
});
|
|
2893
|
-
let cu = D(!1), lu = D(null), uu = D(200), du =
|
|
2893
|
+
let cu = D(!1), lu = D(null), uu = D(200), du = b(() => R.value ?? I.value ?? 0), fu = b(() => {
|
|
2894
2894
|
if (!G.value) return null;
|
|
2895
|
-
if (
|
|
2895
|
+
if (h(Ta.value)) return Number(Ta.value);
|
|
2896
2896
|
let e = Z.value[0];
|
|
2897
|
-
return
|
|
2897
|
+
return h(e?.point?.x) ? Number(e.point.x) : null;
|
|
2898
2898
|
});
|
|
2899
2899
|
function pu() {
|
|
2900
2900
|
let e = Math.ceil(uu.value || 200);
|
|
2901
2901
|
return Math.min(Math.max(e, 1), 200);
|
|
2902
2902
|
}
|
|
2903
2903
|
function mu() {
|
|
2904
|
-
let e = pu(), t = (G.value &&
|
|
2905
|
-
return
|
|
2904
|
+
let e = pu(), t = (G.value && h(fu.value) ? ml({ x: fu.value }) : Oc(du.value)) - e / 2 - (200 - e) / 2, n = J.value?.left - (200 - e) / 2, r = J.value?.right - (200 + e) / 2;
|
|
2905
|
+
return v(Math.max(n, Math.min(t, r)));
|
|
2906
2906
|
}
|
|
2907
2907
|
function hu() {
|
|
2908
2908
|
Aa.value !== null && (cancelAnimationFrame(Aa.value), Aa.value = null), ka.value && z.value && ka.value.unobserve(z.value), ka.value &&= (ka.value.disconnect(), null), ja.value &&= (ja.value(), null), z.value = null;
|
|
@@ -2932,14 +2932,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2932
2932
|
});
|
|
2933
2933
|
});
|
|
2934
2934
|
});
|
|
2935
|
-
let vu =
|
|
2935
|
+
let vu = b(() => {
|
|
2936
2936
|
if (G.value) {
|
|
2937
2937
|
if (!Number.isFinite(Number(fu.value))) return "";
|
|
2938
2938
|
} else if ([null, void 0].includes(R.value) && [null, void 0].includes(I.value)) return "";
|
|
2939
2939
|
let e = (R.value == null ? 0 : R.value) || (I.value == null ? 0 : I.value), t = V.value.chart.timeTag.customFormat;
|
|
2940
2940
|
if (cu.value = !1, G.value) {
|
|
2941
2941
|
let e = fu.value;
|
|
2942
|
-
if (
|
|
2942
|
+
if (Te(t)) try {
|
|
2943
2943
|
let n = t({
|
|
2944
2944
|
absoluteIndex: e,
|
|
2945
2945
|
seriesIndex: e,
|
|
@@ -2953,12 +2953,12 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2953
2953
|
} catch {
|
|
2954
2954
|
console.warn("Custom format cannot be applied on timeTag."), cu.value = !1;
|
|
2955
2955
|
}
|
|
2956
|
-
return
|
|
2956
|
+
return Se({
|
|
2957
2957
|
v: e,
|
|
2958
2958
|
r: V.value.chart.grid.labels.xAxis.rounding
|
|
2959
2959
|
});
|
|
2960
2960
|
}
|
|
2961
|
-
if (
|
|
2961
|
+
if (Te(t)) try {
|
|
2962
2962
|
let n = t({
|
|
2963
2963
|
absoluteIndex: e + U.value.start,
|
|
2964
2964
|
seriesIndex: e,
|
|
@@ -2974,24 +2974,24 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2974
2974
|
}
|
|
2975
2975
|
if (!cu.value) return [null, void 0].includes(Y.value[e]) ? "" : V.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !V.value.chart.timeTag.useDefaultFormat ? Il.value(e + U.value.start, V.value.chart.timeTag.timeFormat) : Y.value[e].text;
|
|
2976
2976
|
});
|
|
2977
|
-
function yu({ serie: e, plot:
|
|
2978
|
-
if (!vt(
|
|
2979
|
-
let
|
|
2977
|
+
function yu({ serie: e, plot: t, type: n }) {
|
|
2978
|
+
if (!vt(t.value)) return "";
|
|
2979
|
+
let r = Se({
|
|
2980
2980
|
p: e.prefix || V.value.chart.labels.prefix,
|
|
2981
|
-
v:
|
|
2981
|
+
v: t.value,
|
|
2982
2982
|
s: e.suffix || V.value.chart.labels.suffix,
|
|
2983
|
-
r: V.value[
|
|
2984
|
-
}),
|
|
2985
|
-
return
|
|
2986
|
-
content: G.value &&
|
|
2987
|
-
v:
|
|
2983
|
+
r: V.value[n].labels.rounding
|
|
2984
|
+
}), i = t.datasetXValue;
|
|
2985
|
+
return s({
|
|
2986
|
+
content: G.value && h(i) ? `x: ${Se({
|
|
2987
|
+
v: i,
|
|
2988
2988
|
r: V.value.chart.grid.labels.xAxis.rounding
|
|
2989
|
-
})}\ny: ${
|
|
2990
|
-
datapoint:
|
|
2989
|
+
})}\ny: ${r}` : g(V.value[n].labels.formatter, t.value, r, {
|
|
2990
|
+
datapoint: t,
|
|
2991
2991
|
serie: e
|
|
2992
2992
|
}),
|
|
2993
2993
|
fontSize: B.value.plotLabels,
|
|
2994
|
-
fill: V.value[
|
|
2994
|
+
fill: V.value[n].labels.color,
|
|
2995
2995
|
x: 0,
|
|
2996
2996
|
y: 0
|
|
2997
2997
|
});
|
|
@@ -2999,14 +2999,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2999
2999
|
function bu({ plot: e }) {
|
|
3000
3000
|
let t = V.value.bar.labels.offsetY, n = Math.abs(Ks(e)), r = e.value < 0, i = {
|
|
3001
3001
|
x: (H.value.useIndividualScale && H.value.isStacked ? e.x + qs.value.line / 2 : Ys(e) + Js() / 2 - Yc.value / 2) + V.value.bar.labels.offsetX,
|
|
3002
|
-
y:
|
|
3002
|
+
y: v(e.y) + (V.value.bar.labels.alwaysOnTop ? t - (r ? n : 0) : e.value >= 0 ? t : -t * 3)
|
|
3003
3003
|
};
|
|
3004
3004
|
return `translate(${i.x}, ${i.y}) rotate(${V.value.bar.labels.rotation})`;
|
|
3005
3005
|
}
|
|
3006
3006
|
function xu({ plot: e, type: t }) {
|
|
3007
3007
|
let n = V.value[t].labels.offsetY, r = {
|
|
3008
3008
|
x: e.x + V.value[t].labels.offsetX,
|
|
3009
|
-
y:
|
|
3009
|
+
y: v(e.y) + (V.value[t].labels.alwaysOnTop || e.value >= 0 ? n : -n * 3)
|
|
3010
3010
|
};
|
|
3011
3011
|
return `translate(${r.x}, ${r.y}) rotate(${V.value[t].labels.rotation})`;
|
|
3012
3012
|
}
|
|
@@ -3015,22 +3015,22 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3015
3015
|
let n = e.value >= 0;
|
|
3016
3016
|
return V.value[t].labels.rotation === 0 ? "middle" : V.value[t].labels.alwaysOnTop || n ? "start" : "end";
|
|
3017
3017
|
}
|
|
3018
|
-
let Cu =
|
|
3018
|
+
let Cu = b(() => G.value ? h(Ta.value) ? ml({ x: Number(Ta.value) }) : h($s.value) ? $s.value : null : Oc((R.value === null ? 0 : R.value) || (I.value === null ? 0 : I.value))), wu = b(() => V.value.chart.highlighter.crosshairs.show && ms.value), Tu = b(() => [
|
|
3019
3019
|
...Q.value,
|
|
3020
3020
|
...$.value,
|
|
3021
3021
|
...kl.value
|
|
3022
3022
|
].flatMap((e) => (e.plots || []).filter((t, n) => Ou(e, t, n)).filter((e) => vt(e.value)).map((t) => ({
|
|
3023
3023
|
...t,
|
|
3024
3024
|
serie: e,
|
|
3025
|
-
x:
|
|
3026
|
-
y:
|
|
3027
|
-
})))), Eu =
|
|
3025
|
+
x: v(t.x),
|
|
3026
|
+
y: v(t.y)
|
|
3027
|
+
})))), Eu = b(() => {
|
|
3028
3028
|
if (!wu.value) return null;
|
|
3029
3029
|
if (G.value) {
|
|
3030
3030
|
let e = Z.value[0], t = e?.point?.raw?.x ?? e?.point?.x;
|
|
3031
|
-
return
|
|
3031
|
+
return h(t) ? {
|
|
3032
3032
|
x: Cu.value,
|
|
3033
|
-
text:
|
|
3033
|
+
text: g(V.value.chart.grid.labels.xAxis.formatter, t, Se({
|
|
3034
3034
|
v: t,
|
|
3035
3035
|
r: V.value.chart.tooltip.roundingValue
|
|
3036
3036
|
}))
|
|
@@ -3070,7 +3070,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3070
3070
|
});
|
|
3071
3071
|
}), n;
|
|
3072
3072
|
}
|
|
3073
|
-
let ju =
|
|
3073
|
+
let ju = b(() => Au(kl.value, "bar")), Mu = b(() => Au($.value, "plot")), Nu = b(() => Au(Q.value, "line"));
|
|
3074
3074
|
ht(() => M.dataset, (e) => {
|
|
3075
3075
|
if (Array.isArray(e) && e.length > 0 && (io.value = !1), V.value.chart.zoom.keepState) {
|
|
3076
3076
|
let e = uo.value;
|
|
@@ -3116,10 +3116,10 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3116
3116
|
}), ht(V, () => {
|
|
3117
3117
|
Qa();
|
|
3118
3118
|
}, { immediate: !0 });
|
|
3119
|
-
let Ru =
|
|
3119
|
+
let Ru = b(() => {
|
|
3120
3120
|
let e = V.value.table.useDialog && !V.value.showTable, t = H.value.showTable;
|
|
3121
3121
|
return {
|
|
3122
|
-
component: e ? Mi :
|
|
3122
|
+
component: e ? Mi : qe,
|
|
3123
3123
|
title: `${V.value.chart.title.text}${V.value.chart.title.subtitle.text ? `: ${V.value.chart.title.subtitle.text}` : ""}`,
|
|
3124
3124
|
props: e ? {
|
|
3125
3125
|
backgroundColor: V.value.table.th.backgroundColor,
|
|
@@ -3152,13 +3152,13 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3152
3152
|
function zu() {
|
|
3153
3153
|
H.value.showTable = !1, Xi.value && Xi.value.setTableIconState(!1);
|
|
3154
3154
|
}
|
|
3155
|
-
let Bu =
|
|
3155
|
+
let Bu = b(() => Lo.value.map((e) => ({
|
|
3156
3156
|
shape: e.type === "bar" ? "square" : e.shape ?? "circle",
|
|
3157
3157
|
color: e.color,
|
|
3158
3158
|
name: e.name
|
|
3159
|
-
}))), Vu =
|
|
3159
|
+
}))), Vu = b(() => V.value.chart.backgroundColor), Hu = b(() => V.value.chart.legend), { exportSvg: Uu, getSvg: Wu } = Ie({
|
|
3160
3160
|
svg: L,
|
|
3161
|
-
title:
|
|
3161
|
+
title: b(() => V.value.chart.title),
|
|
3162
3162
|
legend: Hu,
|
|
3163
3163
|
legendItems: Bu,
|
|
3164
3164
|
backgroundColor: Vu
|
|
@@ -3243,10 +3243,10 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3243
3243
|
function Qu(e) {
|
|
3244
3244
|
let t = U.value.end - U.value.start;
|
|
3245
3245
|
if (t <= 0) return;
|
|
3246
|
-
let
|
|
3247
|
-
|
|
3246
|
+
let n = J.value.width / t, r = c(J.value.left + n * e + n / 2, J.value.top + J.value.height / 2, L.value);
|
|
3247
|
+
r && (Da.value = r);
|
|
3248
3248
|
}
|
|
3249
|
-
let $u =
|
|
3249
|
+
let $u = b(() => {
|
|
3250
3250
|
if (!Ql.value) return null;
|
|
3251
3251
|
let e = V.value.table.showSum, t = [V.value.table.columnNames.period].concat(K.value.map((e) => e.name));
|
|
3252
3252
|
return e && (t = t.concat(V.value.table.columnNames.total)), {
|
|
@@ -3254,7 +3254,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3254
3254
|
rows: Ql.value.body
|
|
3255
3255
|
};
|
|
3256
3256
|
});
|
|
3257
|
-
return
|
|
3257
|
+
return Ge({
|
|
3258
3258
|
getData: uc,
|
|
3259
3259
|
getImage: dc,
|
|
3260
3260
|
generatePdf: yo,
|
|
@@ -3271,7 +3271,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3271
3271
|
toggleFullscreen: iu,
|
|
3272
3272
|
copyAlt: qu,
|
|
3273
3273
|
resetZoom: Ns
|
|
3274
|
-
}), (
|
|
3274
|
+
}), (t, n) => (E(), S("div", {
|
|
3275
3275
|
id: `vue-ui-xy_${F.value}`,
|
|
3276
3276
|
class: ot(`vue-data-ui-component vue-ui-xy ${oa.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${V.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
3277
3277
|
ref_key: "chart",
|
|
@@ -3281,11 +3281,11 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3281
3281
|
onMouseleave: rs,
|
|
3282
3282
|
onClick: cc
|
|
3283
3283
|
}, [
|
|
3284
|
-
|
|
3284
|
+
C("div", {
|
|
3285
3285
|
id: `chart-instructions-${F.value}`,
|
|
3286
3286
|
class: "sr-only"
|
|
3287
|
-
}, [
|
|
3288
|
-
$u.value?.rows?.length ? (E(),
|
|
3287
|
+
}, [C("p", null, dt(V.value.a11y.translations.keyboardNavigation), 1)], 8, kt),
|
|
3288
|
+
$u.value?.rows?.length ? (E(), Ze(Ye, {
|
|
3289
3289
|
key: 0,
|
|
3290
3290
|
uid: F.value,
|
|
3291
3291
|
head: $u.value.headers,
|
|
@@ -3298,8 +3298,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3298
3298
|
"body",
|
|
3299
3299
|
"notice",
|
|
3300
3300
|
"caption"
|
|
3301
|
-
])) :
|
|
3302
|
-
V.value.chart.userOptions.buttons.annotator && L.value ? (E(),
|
|
3301
|
+
])) : x("", !0),
|
|
3302
|
+
V.value.chart.userOptions.buttons.annotator && L.value ? (E(), Ze(A(ji), {
|
|
3303
3303
|
key: 1,
|
|
3304
3304
|
svgRef: L.value,
|
|
3305
3305
|
backgroundColor: V.value.chart.backgroundColor,
|
|
@@ -3308,12 +3308,12 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3308
3308
|
isCursorPointer: Za.value,
|
|
3309
3309
|
onClose: is
|
|
3310
3310
|
}, {
|
|
3311
|
-
"annotator-action-close": j(() => [k(
|
|
3312
|
-
"annotator-action-color": j(({ color: e }) => [k(
|
|
3313
|
-
"annotator-action-draw": j(({ mode: e }) => [k(
|
|
3314
|
-
"annotator-action-undo": j(({ disabled: e }) => [k(
|
|
3315
|
-
"annotator-action-redo": j(({ disabled: e }) => [k(
|
|
3316
|
-
"annotator-action-delete": j(({ disabled: e }) => [k(
|
|
3311
|
+
"annotator-action-close": j(() => [k(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
3312
|
+
"annotator-action-color": j(({ color: e }) => [k(t.$slots, "annotator-action-color", w(rt({ color: e })), void 0, !0)]),
|
|
3313
|
+
"annotator-action-draw": j(({ mode: e }) => [k(t.$slots, "annotator-action-draw", w(rt({ mode: e })), void 0, !0)]),
|
|
3314
|
+
"annotator-action-undo": j(({ disabled: e }) => [k(t.$slots, "annotator-action-undo", w(rt({ disabled: e })), void 0, !0)]),
|
|
3315
|
+
"annotator-action-redo": j(({ disabled: e }) => [k(t.$slots, "annotator-action-redo", w(rt({ disabled: e })), void 0, !0)]),
|
|
3316
|
+
"annotator-action-delete": j(({ disabled: e }) => [k(t.$slots, "annotator-action-delete", w(rt({ disabled: e })), void 0, !0)]),
|
|
3317
3317
|
_: 3
|
|
3318
3318
|
}, 8, [
|
|
3319
3319
|
"svgRef",
|
|
@@ -3321,21 +3321,21 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3321
3321
|
"color",
|
|
3322
3322
|
"active",
|
|
3323
3323
|
"isCursorPointer"
|
|
3324
|
-
])) :
|
|
3325
|
-
xc.value ? (E(),
|
|
3324
|
+
])) : x("", !0),
|
|
3325
|
+
xc.value ? (E(), S("div", {
|
|
3326
3326
|
key: 2,
|
|
3327
3327
|
ref_key: "noTitle",
|
|
3328
3328
|
ref: Wi,
|
|
3329
3329
|
class: "vue-data-ui-no-title-space",
|
|
3330
3330
|
style: "height:36px; width: 100%; background:transparent"
|
|
3331
|
-
}, null, 512)) :
|
|
3332
|
-
V.value.chart.title.show ? (E(),
|
|
3331
|
+
}, null, 512)) : x("", !0),
|
|
3332
|
+
V.value.chart.title.show ? (E(), S("div", {
|
|
3333
3333
|
key: 3,
|
|
3334
3334
|
ref_key: "chartTitle",
|
|
3335
3335
|
ref: Bi,
|
|
3336
3336
|
class: "vue-ui-xy-title",
|
|
3337
3337
|
style: T(`font-family:${V.value.chart.fontFamily}`)
|
|
3338
|
-
}, [(E(),
|
|
3338
|
+
}, [(E(), Ze(He, {
|
|
3339
3339
|
key: `title_${pa.value}`,
|
|
3340
3340
|
config: {
|
|
3341
3341
|
title: {
|
|
@@ -3347,9 +3347,9 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3347
3347
|
...V.value.chart.title.subtitle
|
|
3348
3348
|
}
|
|
3349
3349
|
}
|
|
3350
|
-
}, null, 8, ["config"]))], 4)) :
|
|
3351
|
-
|
|
3352
|
-
V.value.chart.userOptions.show && (_a.value || va.value) ? (E(),
|
|
3350
|
+
}, null, 8, ["config"]))], 4)) : x("", !0),
|
|
3351
|
+
C("div", { id: `legend-top-${F.value}` }, null, 8, At),
|
|
3352
|
+
V.value.chart.userOptions.show && (_a.value || va.value) ? (E(), Ze(A(Di), {
|
|
3353
3353
|
ref_key: "userOptionsRef",
|
|
3354
3354
|
ref: Xi,
|
|
3355
3355
|
key: `user_options_${da.value}`,
|
|
@@ -3370,7 +3370,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3370
3370
|
hasAltCopy: V.value.chart.userOptions.buttons.altCopy,
|
|
3371
3371
|
isStacked: H.value.isStacked,
|
|
3372
3372
|
isFullscreen: oa.value,
|
|
3373
|
-
chartElement:
|
|
3373
|
+
chartElement: t.$refs.chart,
|
|
3374
3374
|
position: V.value.chart.userOptions.position,
|
|
3375
3375
|
isTooltip: H.value.showTooltip,
|
|
3376
3376
|
titles: { ...V.value.chart.userOptions.buttonTitles },
|
|
@@ -3392,88 +3392,88 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3392
3392
|
onToggleAnnotator: is,
|
|
3393
3393
|
onCopyAlt: qu,
|
|
3394
3394
|
style: T({ visibility: _a.value ? va.value ? "visible" : "hidden" : "visible" })
|
|
3395
|
-
},
|
|
3396
|
-
|
|
3395
|
+
}, Qe({ _: 2 }, [
|
|
3396
|
+
t.$slots.menuIcon ? {
|
|
3397
3397
|
name: "menuIcon",
|
|
3398
|
-
fn: j(({ isOpen: e, color:
|
|
3398
|
+
fn: j(({ isOpen: e, color: n }) => [k(t.$slots, "menuIcon", w(rt({
|
|
3399
3399
|
isOpen: e,
|
|
3400
|
-
color:
|
|
3400
|
+
color: n
|
|
3401
3401
|
})), void 0, !0)]),
|
|
3402
3402
|
key: "0"
|
|
3403
3403
|
} : void 0,
|
|
3404
|
-
|
|
3404
|
+
t.$slots.optionTooltip ? {
|
|
3405
3405
|
name: "optionTooltip",
|
|
3406
|
-
fn: j(() => [k(
|
|
3406
|
+
fn: j(() => [k(t.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
3407
3407
|
key: "1"
|
|
3408
3408
|
} : void 0,
|
|
3409
|
-
|
|
3409
|
+
t.$slots.optionPdf ? {
|
|
3410
3410
|
name: "optionPdf",
|
|
3411
|
-
fn: j(() => [k(
|
|
3411
|
+
fn: j(() => [k(t.$slots, "optionPdf", {}, void 0, !0)]),
|
|
3412
3412
|
key: "2"
|
|
3413
3413
|
} : void 0,
|
|
3414
|
-
|
|
3414
|
+
t.$slots.optionCsv ? {
|
|
3415
3415
|
name: "optionCsv",
|
|
3416
|
-
fn: j(() => [k(
|
|
3416
|
+
fn: j(() => [k(t.$slots, "optionCsv", {}, void 0, !0)]),
|
|
3417
3417
|
key: "3"
|
|
3418
3418
|
} : void 0,
|
|
3419
|
-
|
|
3419
|
+
t.$slots.optionImg ? {
|
|
3420
3420
|
name: "optionImg",
|
|
3421
|
-
fn: j(() => [k(
|
|
3421
|
+
fn: j(() => [k(t.$slots, "optionImg", {}, void 0, !0)]),
|
|
3422
3422
|
key: "4"
|
|
3423
3423
|
} : void 0,
|
|
3424
|
-
|
|
3424
|
+
t.$slots.optionSvg ? {
|
|
3425
3425
|
name: "optionSvg",
|
|
3426
|
-
fn: j(() => [k(
|
|
3426
|
+
fn: j(() => [k(t.$slots, "optionSvg", {}, void 0, !0)]),
|
|
3427
3427
|
key: "5"
|
|
3428
3428
|
} : void 0,
|
|
3429
|
-
|
|
3429
|
+
t.$slots.optionTable ? {
|
|
3430
3430
|
name: "optionTable",
|
|
3431
|
-
fn: j(() => [k(
|
|
3431
|
+
fn: j(() => [k(t.$slots, "optionTable", {}, void 0, !0)]),
|
|
3432
3432
|
key: "6"
|
|
3433
3433
|
} : void 0,
|
|
3434
|
-
|
|
3434
|
+
t.$slots.optionLabels ? {
|
|
3435
3435
|
name: "optionLabels",
|
|
3436
|
-
fn: j(() => [k(
|
|
3436
|
+
fn: j(() => [k(t.$slots, "optionLabels", {}, void 0, !0)]),
|
|
3437
3437
|
key: "7"
|
|
3438
3438
|
} : void 0,
|
|
3439
|
-
|
|
3439
|
+
t.$slots.optionStack ? {
|
|
3440
3440
|
name: "optionStack",
|
|
3441
|
-
fn: j(({ isStack: e }) => [k(
|
|
3441
|
+
fn: j(({ isStack: e }) => [k(t.$slots, "optionStack", w(rt({ isStack: e })), void 0, !0)]),
|
|
3442
3442
|
key: "8"
|
|
3443
3443
|
} : void 0,
|
|
3444
|
-
|
|
3444
|
+
t.$slots.optionFullscreen ? {
|
|
3445
3445
|
name: "optionFullscreen",
|
|
3446
|
-
fn: j(({ toggleFullscreen: e, isFullscreen:
|
|
3446
|
+
fn: j(({ toggleFullscreen: e, isFullscreen: n }) => [k(t.$slots, "optionFullscreen", w(rt({
|
|
3447
3447
|
toggleFullscreen: e,
|
|
3448
|
-
isFullscreen:
|
|
3448
|
+
isFullscreen: n
|
|
3449
3449
|
})), void 0, !0)]),
|
|
3450
3450
|
key: "9"
|
|
3451
3451
|
} : void 0,
|
|
3452
|
-
|
|
3452
|
+
t.$slots.optionAnnotator ? {
|
|
3453
3453
|
name: "optionAnnotator",
|
|
3454
|
-
fn: j(({ toggleAnnotator: e, isAnnotator:
|
|
3454
|
+
fn: j(({ toggleAnnotator: e, isAnnotator: n }) => [k(t.$slots, "optionAnnotator", w(rt({
|
|
3455
3455
|
toggleAnnotator: e,
|
|
3456
|
-
isAnnotator:
|
|
3456
|
+
isAnnotator: n
|
|
3457
3457
|
})), void 0, !0)]),
|
|
3458
3458
|
key: "10"
|
|
3459
3459
|
} : void 0,
|
|
3460
|
-
|
|
3460
|
+
t.$slots.optionAltCopy ? {
|
|
3461
3461
|
name: "optionAltCopy",
|
|
3462
|
-
fn: j(({ altCopy: e }) => [k(
|
|
3462
|
+
fn: j(({ altCopy: e }) => [k(t.$slots, "optionAltCopy", w(rt({ altCopy: e })), void 0, !0)]),
|
|
3463
3463
|
key: "11"
|
|
3464
3464
|
} : void 0,
|
|
3465
|
-
|
|
3465
|
+
t.$slots["custom-menu-before"] ? {
|
|
3466
3466
|
name: "custom-menu-before",
|
|
3467
|
-
fn: j(() => [k(
|
|
3467
|
+
fn: j(() => [k(t.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
3468
3468
|
key: "12"
|
|
3469
3469
|
} : void 0,
|
|
3470
|
-
|
|
3470
|
+
t.$slots["custom-menu-after"] ? {
|
|
3471
3471
|
name: "custom-menu-after",
|
|
3472
|
-
fn: j(() => [k(
|
|
3472
|
+
fn: j(() => [k(t.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
3473
3473
|
key: "13"
|
|
3474
3474
|
} : void 0
|
|
3475
|
-
]), 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("."))) :
|
|
3476
|
-
|
|
3475
|
+
]), 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("."))) : x("", !0),
|
|
3476
|
+
C("div", jt, [(E(), S("svg", {
|
|
3477
3477
|
ref_key: "svgRef",
|
|
3478
3478
|
ref: L,
|
|
3479
3479
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3500,187 +3500,187 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3500
3500
|
onFocus: Yu,
|
|
3501
3501
|
onBlur: Xu,
|
|
3502
3502
|
onKeydown: Zu
|
|
3503
|
-
}, [
|
|
3503
|
+
}, [C("g", {
|
|
3504
3504
|
ref_key: "G",
|
|
3505
3505
|
ref: Gi,
|
|
3506
3506
|
class: "vue-data-ui-g"
|
|
3507
3507
|
}, [
|
|
3508
|
-
|
|
3509
|
-
|
|
3508
|
+
et(A(Ai)),
|
|
3509
|
+
t.$slots["chart-background"] ? (E(), S("foreignObject", {
|
|
3510
3510
|
key: 0,
|
|
3511
3511
|
x: Math.max(0, J.value?.left),
|
|
3512
3512
|
y: J.value?.top,
|
|
3513
3513
|
width: Math.max(0, J.value?.width),
|
|
3514
3514
|
height: Math.max(0, J.value?.height),
|
|
3515
3515
|
style: { pointerEvents: "none" }
|
|
3516
|
-
}, [k(
|
|
3517
|
-
X.value > 0 ? (E(),
|
|
3518
|
-
|
|
3519
|
-
V.value.chart.grid.labels.xAxis.showBaseline ? (E(),
|
|
3516
|
+
}, [k(t.$slots, "chart-background", {}, void 0, !0)], 8, Nt)) : x("", !0),
|
|
3517
|
+
X.value > 0 ? (E(), S("g", Pt, [
|
|
3518
|
+
C("g", Ft, [
|
|
3519
|
+
V.value.chart.grid.labels.xAxis.showBaseline ? (E(), S("line", {
|
|
3520
3520
|
key: 0,
|
|
3521
3521
|
stroke: V.value.chart.grid.stroke,
|
|
3522
3522
|
"stroke-width": "1",
|
|
3523
3523
|
x1: J.value?.left,
|
|
3524
3524
|
x2: J.value?.right,
|
|
3525
|
-
y1: A(
|
|
3526
|
-
y2: A(
|
|
3525
|
+
y1: A(_)(J.value?.bottom),
|
|
3526
|
+
y2: A(_)(J.value?.bottom),
|
|
3527
3527
|
"stroke-linecap": "round",
|
|
3528
3528
|
style: { animation: "none !important" }
|
|
3529
|
-
}, null, 8, It)) :
|
|
3530
|
-
H.value.useIndividualScale ? V.value.chart.grid.showHorizontalLines ? (E(!0),
|
|
3529
|
+
}, null, 8, It)) : x("", !0),
|
|
3530
|
+
H.value.useIndividualScale ? V.value.chart.grid.showHorizontalLines ? (E(!0), S(y, { key: 2 }, O(jl.value, (e) => (E(), S("g", { key: `individual_grid_${e.groupId || e.id}` }, [e.id === N.value && e.yLabels.length ? (E(!0), S(y, { key: 0 }, O(e.yLabels, (t) => (E(), S("line", {
|
|
3531
3531
|
key: `selected_individual_grid_line_${e.groupId || e.id}_${t.value}_${t.y}`,
|
|
3532
3532
|
x1: J.value?.left,
|
|
3533
3533
|
x2: J.value?.right,
|
|
3534
|
-
y1: A(
|
|
3535
|
-
y2: A(
|
|
3534
|
+
y1: A(_)(t.y),
|
|
3535
|
+
y2: A(_)(t.y),
|
|
3536
3536
|
stroke: e.color,
|
|
3537
3537
|
"stroke-width": .5,
|
|
3538
3538
|
"stroke-linecap": "round",
|
|
3539
3539
|
style: { animation: "none !important" }
|
|
3540
|
-
}, null, 8, Bt))), 128)) : e.yLabels.length ? (E(!0),
|
|
3540
|
+
}, null, 8, Bt))), 128)) : e.yLabels.length ? (E(!0), S(y, { key: 1 }, O(e.yLabels, (t) => (E(), S("line", {
|
|
3541
3541
|
key: `individual_grid_line_${e.groupId || e.id}_${t.value}_${t.y}`,
|
|
3542
3542
|
x1: J.value?.left,
|
|
3543
3543
|
x2: J.value?.right,
|
|
3544
|
-
y1: A(
|
|
3545
|
-
y2: A(
|
|
3544
|
+
y1: A(_)(t.y),
|
|
3545
|
+
y2: A(_)(t.y),
|
|
3546
3546
|
stroke: V.value.chart.grid.stroke,
|
|
3547
3547
|
"stroke-width": .5,
|
|
3548
3548
|
"stroke-linecap": "round",
|
|
3549
3549
|
style: { animation: "none !important" }
|
|
3550
|
-
}, null, 8, Vt))), 128)) :
|
|
3550
|
+
}, null, 8, Vt))), 128)) : x("", !0)]))), 128)) : x("", !0) : (E(), S(y, { key: 1 }, [V.value.chart.grid.labels.yAxis.showBaseline ? (E(), S("line", {
|
|
3551
3551
|
key: 0,
|
|
3552
3552
|
class: "vue-ui-xy-y-axis",
|
|
3553
3553
|
stroke: V.value.chart.grid.stroke,
|
|
3554
3554
|
"stroke-width": "1",
|
|
3555
3555
|
x1: q.value ? J.value?.right : J.value?.left,
|
|
3556
3556
|
x2: q.value ? J.value?.right : J.value?.left,
|
|
3557
|
-
y1: A(
|
|
3558
|
-
y2: A(
|
|
3557
|
+
y1: A(_)(J.value?.top),
|
|
3558
|
+
y2: A(_)(J.value?.bottom),
|
|
3559
3559
|
"stroke-linecap": "round",
|
|
3560
3560
|
style: { animation: "none !important" }
|
|
3561
|
-
}, null, 8, Lt)) :
|
|
3561
|
+
}, null, 8, Lt)) : x("", !0), V.value.chart.grid.showHorizontalLines ? (E(), S("g", Rt, [(E(!0), S(y, null, O(tl.value, (e) => (E(), S("line", {
|
|
3562
3562
|
key: `horizontal_grid_line_${e.value}_${e.y}`,
|
|
3563
3563
|
x1: J.value?.left,
|
|
3564
3564
|
x2: J.value?.right,
|
|
3565
|
-
y1: A(
|
|
3566
|
-
y2: A(
|
|
3565
|
+
y1: A(_)(e.y),
|
|
3566
|
+
y2: A(_)(e.y),
|
|
3567
3567
|
stroke: V.value.chart.grid.stroke,
|
|
3568
3568
|
"stroke-width": .5,
|
|
3569
3569
|
"stroke-linecap": "round",
|
|
3570
3570
|
style: { animation: "none !important" }
|
|
3571
|
-
}, null, 8, zt))), 128))])) :
|
|
3572
|
-
V.value.chart.grid.showVerticalLines ? (E(),
|
|
3571
|
+
}, null, 8, zt))), 128))])) : x("", !0)], 64)),
|
|
3572
|
+
V.value.chart.grid.showVerticalLines ? (E(), S("g", Ht, [C("path", {
|
|
3573
3573
|
d: Jo.value,
|
|
3574
3574
|
"stroke-width": .5,
|
|
3575
3575
|
stroke: V.value.chart.grid.stroke,
|
|
3576
3576
|
"stroke-linecap": "round",
|
|
3577
3577
|
style: { animation: "none !important" }
|
|
3578
|
-
}, null, 8, Ut)])) :
|
|
3579
|
-
V.value.chart.grid.labels.xAxisLabels.show ? (E(),
|
|
3578
|
+
}, null, 8, Ut)])) : x("", !0),
|
|
3579
|
+
V.value.chart.grid.labels.xAxisLabels.show ? (E(), S("g", Wt, [C("path", {
|
|
3580
3580
|
d: Yo.value,
|
|
3581
3581
|
stroke: V.value.chart.grid.stroke,
|
|
3582
3582
|
"stroke-width": 1,
|
|
3583
3583
|
"stroke-linecap": "round",
|
|
3584
3584
|
style: { animation: "none !important" }
|
|
3585
|
-
}, null, 8, Gt)])) :
|
|
3585
|
+
}, null, 8, Gt)])) : x("", !0)
|
|
3586
3586
|
]),
|
|
3587
|
-
(E(!0),
|
|
3587
|
+
(E(!0), S(y, null, O(kl.value, (e, n) => (E(), S("defs", { key: `def_rect_${n}` }, [t.$slots["bar-gradient"] ? k(t.$slots, "bar-gradient", it({
|
|
3588
3588
|
key: 0,
|
|
3589
3589
|
ref_for: !0
|
|
3590
3590
|
}, {
|
|
3591
3591
|
series: e,
|
|
3592
|
-
positiveId: `rectGradient_pos_${
|
|
3593
|
-
negativeId: `rectGradient_neg_${
|
|
3594
|
-
}), void 0, !0) : (E(),
|
|
3595
|
-
id: `rectGradient_pos_${
|
|
3592
|
+
positiveId: `rectGradient_pos_${n}_${F.value}`,
|
|
3593
|
+
negativeId: `rectGradient_neg_${n}_${F.value}`
|
|
3594
|
+
}), void 0, !0) : (E(), S(y, { key: 1 }, [C("linearGradient", {
|
|
3595
|
+
id: `rectGradient_pos_${n}_${F.value}`,
|
|
3596
3596
|
x2: "0%",
|
|
3597
3597
|
y2: "100%"
|
|
3598
3598
|
}, [
|
|
3599
|
-
|
|
3599
|
+
C("stop", {
|
|
3600
3600
|
offset: "0%",
|
|
3601
3601
|
"stop-color": e.color
|
|
3602
3602
|
}, null, 8, qt),
|
|
3603
|
-
|
|
3603
|
+
C("stop", {
|
|
3604
3604
|
offset: "62%",
|
|
3605
|
-
"stop-color": `${A(
|
|
3605
|
+
"stop-color": `${A(ae)(e.color, .02)}`
|
|
3606
3606
|
}, null, 8, Jt),
|
|
3607
|
-
|
|
3607
|
+
C("stop", {
|
|
3608
3608
|
offset: "100%",
|
|
3609
|
-
"stop-color": `${A(
|
|
3609
|
+
"stop-color": `${A(ae)(e.color, .05)}`
|
|
3610
3610
|
}, null, 8, Yt)
|
|
3611
|
-
], 8, Kt),
|
|
3612
|
-
id: `rectGradient_neg_${
|
|
3611
|
+
], 8, Kt), C("linearGradient", {
|
|
3612
|
+
id: `rectGradient_neg_${n}_${F.value}`,
|
|
3613
3613
|
x2: "0%",
|
|
3614
3614
|
y2: "100%"
|
|
3615
3615
|
}, [
|
|
3616
|
-
|
|
3616
|
+
C("stop", {
|
|
3617
3617
|
offset: "0%",
|
|
3618
|
-
"stop-color": `${A(
|
|
3618
|
+
"stop-color": `${A(ae)(e.color, .05)}`
|
|
3619
3619
|
}, null, 8, Zt),
|
|
3620
|
-
|
|
3620
|
+
C("stop", {
|
|
3621
3621
|
offset: "38%",
|
|
3622
|
-
"stop-color": `${A(
|
|
3622
|
+
"stop-color": `${A(ae)(e.color, .02)}`
|
|
3623
3623
|
}, null, 8, Qt),
|
|
3624
|
-
|
|
3624
|
+
C("stop", {
|
|
3625
3625
|
offset: "100%",
|
|
3626
3626
|
"stop-color": e.color
|
|
3627
3627
|
}, null, 8, $t)
|
|
3628
3628
|
], 8, Xt)], 64))]))), 128)),
|
|
3629
|
-
(E(!0),
|
|
3629
|
+
(E(!0), S(y, null, O($.value, (e, t) => (E(), S("defs", { key: `def_plot_${t}` }, [C("radialGradient", {
|
|
3630
3630
|
id: `plotGradient_${t}_${F.value}`,
|
|
3631
3631
|
cx: "50%",
|
|
3632
3632
|
cy: "50%",
|
|
3633
3633
|
r: "50%",
|
|
3634
3634
|
fx: "50%",
|
|
3635
3635
|
fy: "50%"
|
|
3636
|
-
}, [
|
|
3636
|
+
}, [C("stop", {
|
|
3637
3637
|
offset: "0%",
|
|
3638
|
-
"stop-color": `${A(
|
|
3639
|
-
}, null, 8, tn),
|
|
3638
|
+
"stop-color": `${A(ae)(e.color, .05)}`
|
|
3639
|
+
}, null, 8, tn), C("stop", {
|
|
3640
3640
|
offset: "100%",
|
|
3641
3641
|
"stop-color": e.color
|
|
3642
3642
|
}, null, 8, nn)], 8, en)]))), 128)),
|
|
3643
|
-
(E(!0),
|
|
3644
|
-
id: `lineGradient_${
|
|
3643
|
+
(E(!0), S(y, null, O(Q.value, (e, n) => (E(), S(y, { key: `def_line_${e.id}` }, [C("defs", null, [C("radialGradient", {
|
|
3644
|
+
id: `lineGradient_${n}_${F.value}`,
|
|
3645
3645
|
cx: "50%",
|
|
3646
3646
|
cy: "50%",
|
|
3647
3647
|
r: "50%",
|
|
3648
3648
|
fx: "50%",
|
|
3649
3649
|
fy: "50%"
|
|
3650
|
-
}, [
|
|
3650
|
+
}, [C("stop", {
|
|
3651
3651
|
offset: "0%",
|
|
3652
|
-
"stop-color": `${A(
|
|
3653
|
-
}, null, 8, an),
|
|
3652
|
+
"stop-color": `${A(ae)(e.color, .05)}`
|
|
3653
|
+
}, null, 8, an), C("stop", {
|
|
3654
3654
|
offset: "100%",
|
|
3655
3655
|
"stop-color": e.color
|
|
3656
|
-
}, null, 8, on)], 8, rn),
|
|
3656
|
+
}, null, 8, on)], 8, rn), t.$slots["area-gradient"] ? k(t.$slots, "area-gradient", it({
|
|
3657
3657
|
key: 0,
|
|
3658
3658
|
ref_for: !0
|
|
3659
3659
|
}, {
|
|
3660
3660
|
series: e,
|
|
3661
|
-
id: `areaGradient_${
|
|
3662
|
-
}), void 0, !0) : (E(),
|
|
3661
|
+
id: `areaGradient_${n}_${F.value}`
|
|
3662
|
+
}), void 0, !0) : (E(), S("linearGradient", {
|
|
3663
3663
|
key: 1,
|
|
3664
|
-
id: `areaGradient_${
|
|
3664
|
+
id: `areaGradient_${n}_${F.value}`,
|
|
3665
3665
|
x1: "0%",
|
|
3666
3666
|
x2: "100%",
|
|
3667
3667
|
y1: "0%",
|
|
3668
3668
|
y2: "0%"
|
|
3669
|
-
}, [
|
|
3669
|
+
}, [C("stop", {
|
|
3670
3670
|
offset: "0%",
|
|
3671
|
-
"stop-color": `${A(
|
|
3672
|
-
}, null, 8, cn),
|
|
3671
|
+
"stop-color": `${A(f)(A(ae)(e.color, .03), V.value.line.area.opacity)}`
|
|
3672
|
+
}, null, 8, cn), C("stop", {
|
|
3673
3673
|
offset: "100%",
|
|
3674
|
-
"stop-color": `${A(
|
|
3675
|
-
}, null, 8, ln)], 8, sn))]), e.temperatureColors && !e.isFlatTemperatureLine ? (E(),
|
|
3676
|
-
id: `temperature_grad_line_${
|
|
3674
|
+
"stop-color": `${A(f)(e.color, V.value.line.area.opacity)}`
|
|
3675
|
+
}, null, 8, ln)], 8, sn))]), e.temperatureColors && !e.isFlatTemperatureLine ? (E(), S("defs", un, [C("linearGradient", {
|
|
3676
|
+
id: `temperature_grad_line_${n}_${F.value}`,
|
|
3677
3677
|
gradientTransform: "rotate(90)"
|
|
3678
|
-
}, [(E(!0),
|
|
3679
|
-
key: `temperature_grad_stop_${
|
|
3680
|
-
"stop-color":
|
|
3681
|
-
offset: A(
|
|
3682
|
-
}, null, 8, fn))), 128))], 8, dn)])) :
|
|
3683
|
-
(E(!0),
|
|
3678
|
+
}, [(E(!0), S(y, null, O(e.temperatureColors, (t, r) => (E(), S("stop", {
|
|
3679
|
+
key: `temperature_grad_stop_${n}_${r}_${F.value}`,
|
|
3680
|
+
"stop-color": t,
|
|
3681
|
+
offset: A(u)(r, e.temperatureColors.length)
|
|
3682
|
+
}, null, 8, fn))), 128))], 8, dn)])) : x("", !0)], 64))), 128)),
|
|
3683
|
+
(E(!0), S(y, null, O(Sc.value, (e) => (E(), S("g", { key: `highlight_area_${e.from}_${e.span}_${e.color}` }, [e.show ? (E(), S(y, { key: 0 }, [(E(!0), S(y, null, O(e.span, (t, n) => (E(), S("g", { key: `highlight_area_rect_${e.from}_${n}` }, [C("rect", {
|
|
3684
3684
|
style: T({
|
|
3685
3685
|
transition: "none",
|
|
3686
3686
|
opacity: +(e.from + n >= U.value.start && e.from + n <= U.value.end - 1)
|
|
@@ -3689,8 +3689,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3689
3689
|
y: J.value?.top,
|
|
3690
3690
|
height: J.value.height < 0 ? 10 : J.value.height,
|
|
3691
3691
|
width: jc(e.from + n - U.value.start),
|
|
3692
|
-
fill: A(
|
|
3693
|
-
}, null, 12, pn)]))), 128)), (E(!0),
|
|
3692
|
+
fill: A(f)(e.color, e.opacity)
|
|
3693
|
+
}, null, 12, pn)]))), 128)), (E(!0), S(y, null, O(e.span, (t, n) => (E(), S("g", { key: `highlight_area_caption_${e.from}_${n}` }, [e.caption.text && n === 0 ? (E(), S("foreignObject", {
|
|
3694
3694
|
key: 0,
|
|
3695
3695
|
x: Ac(e.from + n - U.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - Pc(e.span) / 2),
|
|
3696
3696
|
y: J.value?.top + e.caption.offsetY,
|
|
@@ -3700,8 +3700,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3700
3700
|
}),
|
|
3701
3701
|
height: "1",
|
|
3702
3702
|
width: e.caption.width === "auto" ? Pc(e.span) : e.caption.width
|
|
3703
|
-
}, [
|
|
3704
|
-
es.value && !G.value ? (E(),
|
|
3703
|
+
}, [C("div", { style: T(`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"}`) }, dt(e.caption.text), 5)], 12, mn)) : x("", !0)]))), 128))], 64)) : x("", !0)]))), 128)),
|
|
3704
|
+
es.value && !G.value ? (E(), S("g", hn, [(E(!0), S(y, null, O(X.value, (e, t) => (E(), S("g", { key: `tooltip_trap_highlighter_${t}` }, [C("rect", {
|
|
3705
3705
|
x: Ac(t),
|
|
3706
3706
|
y: J.value?.top,
|
|
3707
3707
|
height: J.value.height < 0 ? 10 : J.value.height,
|
|
@@ -3710,30 +3710,30 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3710
3710
|
I.value,
|
|
3711
3711
|
R.value,
|
|
3712
3712
|
ca.value
|
|
3713
|
-
].includes(t) ? A(
|
|
3713
|
+
].includes(t) ? A(f)(V.value.chart.highlighter.color, V.value.chart.highlighter.crosshairs.show ? 0 : V.value.chart.highlighter.opacity) : "transparent",
|
|
3714
3714
|
style: {
|
|
3715
3715
|
transition: "none !important",
|
|
3716
3716
|
animation: "none !important"
|
|
3717
3717
|
}
|
|
3718
|
-
}, null, 8, gn)]))), 128))])) :
|
|
3719
|
-
kl.value.length ? (E(!0),
|
|
3718
|
+
}, null, 8, gn)]))), 128))])) : x("", !0),
|
|
3719
|
+
kl.value.length ? (E(!0), S(y, { key: 1 }, O(kl.value, (e, n) => (E(), S("g", {
|
|
3720
3720
|
key: `serie_bar_${e.id}`,
|
|
3721
|
-
class: ot(`serie_bar_${
|
|
3721
|
+
class: ot(`serie_bar_${n}`),
|
|
3722
3722
|
style: T(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3723
|
-
}, [(E(!0),
|
|
3724
|
-
A(vt)(r.value) ? (E(),
|
|
3723
|
+
}, [(E(!0), S(y, null, O(e.plots, (r, i) => (E(), S("g", { key: `bar_plot_${n}_${i}` }, [
|
|
3724
|
+
A(vt)(r.value) ? (E(), S("rect", {
|
|
3725
3725
|
key: 0,
|
|
3726
3726
|
x: Ys(r) + Zc.value / 2,
|
|
3727
3727
|
y: H.value.useIndividualScale ? Zs(r) : Xs(r),
|
|
3728
3728
|
height: H.value.useIndividualScale ? Math.abs(Ks(r)) : Math.abs(Gs(r)),
|
|
3729
3729
|
width: Xc.value - Zc.value,
|
|
3730
3730
|
rx: V.value.bar.borderRadius,
|
|
3731
|
-
fill: V.value.bar.useGradient ? r.value >= 0 ? `url(#rectGradient_pos_${
|
|
3731
|
+
fill: V.value.bar.useGradient ? r.value >= 0 ? `url(#rectGradient_pos_${n}_${F.value})` : `url(#rectGradient_neg_${n}_${F.value})` : e.color,
|
|
3732
3732
|
stroke: V.value.bar.border.useSerieColor ? e.color : V.value.bar.border.stroke,
|
|
3733
3733
|
"stroke-width": V.value.bar.border.strokeWidth,
|
|
3734
3734
|
style: T({ transition: A(no) || !V.value.bar.showTransition ? void 0 : `all ${V.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
3735
|
-
}, null, 12, _n)) :
|
|
3736
|
-
A(vt)(r.value) &&
|
|
3735
|
+
}, null, 12, _n)) : x("", !0),
|
|
3736
|
+
A(vt)(r.value) && t.$slots.pattern ? (E(), S("rect", {
|
|
3737
3737
|
key: 1,
|
|
3738
3738
|
x: Ys(r) - Zc.value / 2,
|
|
3739
3739
|
y: H.value.useIndividualScale ? Zs(r) : Xs(r),
|
|
@@ -3744,37 +3744,37 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3744
3744
|
stroke: V.value.bar.border.useSerieColor ? e.color : V.value.bar.border.stroke,
|
|
3745
3745
|
"stroke-width": V.value.bar.border.strokeWidth,
|
|
3746
3746
|
style: T({ transition: A(no) || !V.value.bar.showTransition ? void 0 : `all ${V.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
3747
|
-
}, null, 12, vn)) :
|
|
3748
|
-
r.comment && V.value.chart.comments.show ? (E(),
|
|
3747
|
+
}, null, 12, vn)) : x("", !0),
|
|
3748
|
+
r.comment && V.value.chart.comments.show ? (E(), S("foreignObject", {
|
|
3749
3749
|
key: 2,
|
|
3750
3750
|
style: { overflow: "visible" },
|
|
3751
3751
|
height: "12",
|
|
3752
3752
|
width: Xc.value + V.value.chart.comments.width,
|
|
3753
3753
|
x: Ys(r) - V.value.chart.comments.width / 2 + V.value.chart.comments.offsetX,
|
|
3754
|
-
y: A(
|
|
3755
|
-
}, [k(
|
|
3754
|
+
y: A(v)(r.y) + V.value.chart.comments.offsetY + 6
|
|
3755
|
+
}, [k(t.$slots, "plot-comment", { plot: {
|
|
3756
3756
|
...r,
|
|
3757
3757
|
color: e.color,
|
|
3758
|
-
seriesIndex:
|
|
3758
|
+
seriesIndex: n,
|
|
3759
3759
|
datapointIndex: i
|
|
3760
|
-
} }, void 0, !0)], 8, yn)) :
|
|
3761
|
-
]))), 128))], 6))), 128)) :
|
|
3762
|
-
!H.value.useIndividualScale && V.value.chart.grid.labels.zeroLine.show ? (E(),
|
|
3760
|
+
} }, void 0, !0)], 8, yn)) : x("", !0)
|
|
3761
|
+
]))), 128))], 6))), 128)) : x("", !0),
|
|
3762
|
+
!H.value.useIndividualScale && V.value.chart.grid.labels.zeroLine.show ? (E(), S("line", {
|
|
3763
3763
|
key: 2,
|
|
3764
3764
|
stroke: V.value.chart.grid.stroke,
|
|
3765
3765
|
"stroke-width": "1",
|
|
3766
3766
|
x1: J.value?.left,
|
|
3767
3767
|
x2: J.value?.right,
|
|
3768
|
-
y1: A(
|
|
3769
|
-
y2: A(
|
|
3768
|
+
y1: A(_)(Ws.value),
|
|
3769
|
+
y2: A(_)(Ws.value),
|
|
3770
3770
|
"stroke-linecap": "round",
|
|
3771
3771
|
style: { animation: "none !important" }
|
|
3772
|
-
}, null, 8, bn)) :
|
|
3773
|
-
!V.value.chart.highlighter.crosshairs.show && (V.value.chart.highlighter.useLine || G.value) && ms.value ? (E(),
|
|
3772
|
+
}, null, 8, bn)) : x("", !0),
|
|
3773
|
+
!V.value.chart.highlighter.crosshairs.show && (V.value.chart.highlighter.useLine || G.value) && ms.value ? (E(), S("g", xn, [C("line", {
|
|
3774
3774
|
x1: Cu.value,
|
|
3775
3775
|
x2: Cu.value,
|
|
3776
|
-
y1: A(
|
|
3777
|
-
y2: A(
|
|
3776
|
+
y1: A(_)(J.value?.top),
|
|
3777
|
+
y2: A(_)(J.value?.bottom),
|
|
3778
3778
|
stroke: V.value.chart.highlighter.color,
|
|
3779
3779
|
"stroke-width": V.value.chart.highlighter.lineWidth,
|
|
3780
3780
|
"stroke-dasharray": V.value.chart.highlighter.lineDasharray,
|
|
@@ -3784,41 +3784,41 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3784
3784
|
animation: "none !important",
|
|
3785
3785
|
"pointer-events": "none"
|
|
3786
3786
|
}
|
|
3787
|
-
}, null, 8, Sn)])) :
|
|
3788
|
-
wu.value ? (E(),
|
|
3789
|
-
|
|
3790
|
-
x1: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(
|
|
3791
|
-
x2: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(
|
|
3792
|
-
y1: A(
|
|
3793
|
-
y2: A(
|
|
3787
|
+
}, null, 8, Sn)])) : x("", !0),
|
|
3788
|
+
wu.value ? (E(), S("g", Cn, [(E(!0), S(y, null, O(Tu.value, (e) => (E(), S("g", { key: `crosshair_${e.serie.id}_${e.index}` }, [
|
|
3789
|
+
C("line", {
|
|
3790
|
+
x1: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(_)(e.x) : J.value.left,
|
|
3791
|
+
x2: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(_)(Du(e.x)) : J.value.right,
|
|
3792
|
+
y1: A(_)(e.y),
|
|
3793
|
+
y2: A(_)(e.y),
|
|
3794
3794
|
stroke: V.value.chart.highlighter.crosshairs.stroke,
|
|
3795
3795
|
"stroke-width": V.value.chart.highlighter.crosshairs.strokeWidth,
|
|
3796
3796
|
"stroke-dasharray": V.value.chart.highlighter.crosshairs.strokeDasharray,
|
|
3797
3797
|
"stroke-linecap": "round",
|
|
3798
3798
|
style: { "pointer-events": "none" }
|
|
3799
3799
|
}, null, 8, wn),
|
|
3800
|
-
|
|
3801
|
-
x1: A(
|
|
3802
|
-
x2: A(
|
|
3803
|
-
y1: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(
|
|
3804
|
-
y2: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(
|
|
3800
|
+
C("line", {
|
|
3801
|
+
x1: A(_)(e.x),
|
|
3802
|
+
x2: A(_)(e.x),
|
|
3803
|
+
y1: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(_)(e.y) : J.value.top,
|
|
3804
|
+
y2: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(_)(J.value.bottom) : J.value.bottom,
|
|
3805
3805
|
stroke: V.value.chart.highlighter.crosshairs.stroke,
|
|
3806
3806
|
"stroke-width": V.value.chart.highlighter.crosshairs.strokeWidth,
|
|
3807
3807
|
"stroke-dasharray": V.value.chart.highlighter.crosshairs.strokeDasharray,
|
|
3808
3808
|
"stroke-linecap": "round",
|
|
3809
3809
|
style: { "pointer-events": "none" }
|
|
3810
3810
|
}, null, 8, Tn),
|
|
3811
|
-
|
|
3812
|
-
cx: A(
|
|
3813
|
-
cy: A(
|
|
3811
|
+
C("circle", {
|
|
3812
|
+
cx: A(_)(Du(e.x)),
|
|
3813
|
+
cy: A(_)(e.y),
|
|
3814
3814
|
r: V.value.chart.highlighter.crosshairs.dot.radius,
|
|
3815
3815
|
fill: V.value.chart.highlighter.crosshairs.dot.fill,
|
|
3816
3816
|
stroke: V.value.chart.highlighter.crosshairs.dot.stroke,
|
|
3817
3817
|
"stroke-width": V.value.chart.highlighter.crosshairs.dot.strokeWidth,
|
|
3818
3818
|
style: { "pointer-events": "none" }
|
|
3819
3819
|
}, null, 8, En)
|
|
3820
|
-
]))), 128))])) :
|
|
3821
|
-
V.value.chart.grid.frame.show ? (E(),
|
|
3820
|
+
]))), 128))])) : x("", !0),
|
|
3821
|
+
V.value.chart.grid.frame.show ? (E(), S("rect", {
|
|
3822
3822
|
key: 5,
|
|
3823
3823
|
style: {
|
|
3824
3824
|
pointerEvents: "none",
|
|
@@ -3835,50 +3835,50 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3835
3835
|
"stroke-linecap": V.value.chart.grid.frame.strokeLinecap,
|
|
3836
3836
|
"stroke-linejoin": V.value.chart.grid.frame.strokeLinejoin,
|
|
3837
3837
|
"stroke-dasharray": V.value.chart.grid.frame.strokeDasharray
|
|
3838
|
-
}, null, 8, Dn)) :
|
|
3839
|
-
V.value.chart.grid.labels.show ? (E(),
|
|
3838
|
+
}, null, 8, Dn)) : x("", !0),
|
|
3839
|
+
V.value.chart.grid.labels.show ? (E(), S("g", {
|
|
3840
3840
|
key: 6,
|
|
3841
3841
|
ref_key: "scaleLabels",
|
|
3842
3842
|
ref: Yi,
|
|
3843
3843
|
opacity: wu.value ? .2 : 1,
|
|
3844
3844
|
style: { transition: "opacity 0.2s" }
|
|
3845
|
-
}, [H.value.useIndividualScale ? (E(),
|
|
3845
|
+
}, [H.value.useIndividualScale ? (E(), S(y, { key: 0 }, [(E(!0), S(y, null, O(jl.value, (e) => (E(), S("g", { key: `individual_scale_axis_${e.groupId || e.id}` }, [C("line", {
|
|
3846
3846
|
x1: H.value.isStacked ? q.value ? J.value.right : J.value.left : q.value ? e.x : e.x - J.value.individualOffsetX,
|
|
3847
3847
|
x2: H.value.isStacked ? q.value ? J.value.right : J.value.left : q.value ? e.x : e.x - J.value.individualOffsetX,
|
|
3848
|
-
y1: H.value.isStacked ? A(
|
|
3849
|
-
y2: H.value.isStacked ? A(
|
|
3848
|
+
y1: H.value.isStacked ? A(_)(J.value?.bottom - e.yOffset - e.individualHeight) : A(_)(J.value?.top),
|
|
3849
|
+
y2: H.value.isStacked ? A(_)(J.value?.bottom - e.yOffset) : A(_)(J.value?.bottom),
|
|
3850
3850
|
stroke: e.color,
|
|
3851
3851
|
"stroke-width": V.value.chart.grid.stroke,
|
|
3852
3852
|
"stroke-linecap": "round",
|
|
3853
3853
|
style: T(`opacity:${N.value ? N.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
3854
|
-
}, null, 12, kn)]))), 128)), (E(!0),
|
|
3854
|
+
}, null, 12, kn)]))), 128)), (E(!0), S(y, null, O(jl.value, (e) => (E(), S("g", {
|
|
3855
3855
|
key: `individual_scale_label_${e.groupId || e.id}`,
|
|
3856
3856
|
style: T(`opacity:${N.value ? N.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3857
3857
|
}, [
|
|
3858
|
-
|
|
3858
|
+
C("text", {
|
|
3859
3859
|
fill: e.color,
|
|
3860
3860
|
"font-size": B.value.dataLabels * .8,
|
|
3861
3861
|
"text-anchor": "middle",
|
|
3862
3862
|
transform: `translate(${H.value.isStacked ? q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + V.value.chart.grid.labels.yAxis.labelWidth + J.value.individualOffsetX + V.value.chart.grid.labels.axis.yLabelOffsetX : J.value.left - V.value.chart.grid.labels.yAxis.crosshairSize - V.value.chart.grid.labels.yAxis.scaleValueOffsetX - V.value.chart.grid.labels.yAxis.labelWidth - V.value.chart.grid.labels.axis.yLabelOffsetX : q.value ? e.x + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + V.value.chart.grid.labels.yAxis.labelWidth + V.value.chart.grid.labels.axis.yLabelOffsetX : e.x - B.value.dataLabels * .8 / 2}, ${H.value.isStacked ? J.value?.bottom - e.yOffset - e.individualHeight / 2 : J.value?.top + J.value.height / 2}) rotate(-90)`
|
|
3863
3863
|
}, dt(e.name) + " " + dt(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `- ${e.scaleLabel}` : ""), 9, An),
|
|
3864
|
-
(E(!0),
|
|
3864
|
+
(E(!0), S(y, null, O(e.yLabels, (t, n) => (E(), S(y, { key: `individual_scale_y_crosshair_${e.groupId || e.id}_${t.value}_${n}` }, [V.value.chart.grid.labels.yAxis.showCrosshairs ? (E(), S("line", {
|
|
3865
3865
|
key: 0,
|
|
3866
3866
|
x1: H.value.isStacked ? q.value ? J.value.right : J.value.left : q.value ? e.x : e.x + 3 - V.value.chart.grid.labels.yAxis.crosshairSize - J.value.individualOffsetX,
|
|
3867
3867
|
x2: H.value.isStacked ? q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize : J.value.left - V.value.chart.grid.labels.yAxis.crosshairSize : q.value ? e.x + V.value.chart.grid.labels.yAxis.crosshairSize : e.x - J.value.individualOffsetX,
|
|
3868
|
-
y1: A(
|
|
3869
|
-
y2: A(
|
|
3868
|
+
y1: A(_)(t.y),
|
|
3869
|
+
y2: A(_)(t.y),
|
|
3870
3870
|
stroke: e.color,
|
|
3871
3871
|
"stroke-width": 1,
|
|
3872
3872
|
"stroke-linecap": "round",
|
|
3873
3873
|
style: { animation: "none !important" }
|
|
3874
|
-
}, null, 8, jn)) :
|
|
3875
|
-
(E(!0),
|
|
3874
|
+
}, null, 8, jn)) : x("", !0)], 64))), 128)),
|
|
3875
|
+
(E(!0), S(y, null, O(e.yLabels, (t, n) => (E(), S("text", {
|
|
3876
3876
|
key: `individual_scale_y_label_${e.groupId || e.id}_${t.value}_${n}`,
|
|
3877
|
-
transform: `translate(${H.value.isStacked ? q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : J.value.left - V.value.chart.grid.labels.yAxis.crosshairSize - V.value.chart.grid.labels.yAxis.scaleValueOffsetX - 5 : q.value ? e.x + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : e.x - 5 - J.value.individualOffsetX}, ${A(
|
|
3877
|
+
transform: `translate(${H.value.isStacked ? q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : J.value.left - V.value.chart.grid.labels.yAxis.crosshairSize - V.value.chart.grid.labels.yAxis.scaleValueOffsetX - 5 : q.value ? e.x + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : e.x - 5 - J.value.individualOffsetX}, ${A(_)(t.y) + B.value.dataLabels / 3})`,
|
|
3878
3878
|
"text-anchor": q.value ? "start" : "end",
|
|
3879
3879
|
"font-size": B.value.dataLabels,
|
|
3880
3880
|
fill: e.color
|
|
3881
|
-
}, dt(A(
|
|
3881
|
+
}, dt(A(g)(V.value.chart.grid.labels.yAxis.formatter, t.value, A(Se)({
|
|
3882
3882
|
p: t.prefix,
|
|
3883
3883
|
v: t.value,
|
|
3884
3884
|
s: t.suffix,
|
|
@@ -3887,31 +3887,31 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3887
3887
|
datapoint: t.datapoint,
|
|
3888
3888
|
seriesIndex: n
|
|
3889
3889
|
})), 9, Mn))), 128))
|
|
3890
|
-
], 4))), 128))], 64)) : (E(!0),
|
|
3890
|
+
], 4))), 128))], 64)) : (E(!0), S(y, { key: 1 }, O(tl.value, (e, t) => (E(), S("g", { key: `yLabel_${t}` }, [A(vt)(e) && e.value >= W.value.min && e.value <= W.value.max && V.value.chart.grid.labels.yAxis.showCrosshairs ? (E(), S("line", {
|
|
3891
3891
|
key: 0,
|
|
3892
3892
|
x1: q.value ? J.value?.right : J.value?.left,
|
|
3893
3893
|
x2: q.value ? J.value?.right + V.value.chart.grid.labels.yAxis.crosshairSize : J.value?.left - V.value.chart.grid.labels.yAxis.crosshairSize,
|
|
3894
|
-
y1: A(
|
|
3895
|
-
y2: A(
|
|
3894
|
+
y1: A(_)(e.y),
|
|
3895
|
+
y2: A(_)(e.y),
|
|
3896
3896
|
stroke: V.value.chart.grid.stroke,
|
|
3897
3897
|
"stroke-width": "1",
|
|
3898
3898
|
"stroke-linecap": "round",
|
|
3899
3899
|
style: { animation: "none !important" }
|
|
3900
|
-
}, null, 8, Nn)) :
|
|
3900
|
+
}, null, 8, Nn)) : x("", !0), e.value >= W.value.min && e.value <= W.value.max ? (E(), S("text", {
|
|
3901
3901
|
key: 1,
|
|
3902
|
-
transform: `translate(${q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : J.value.scaleLabelX - V.value.chart.grid.labels.yAxis.crosshairSize}, ${A(
|
|
3902
|
+
transform: `translate(${q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : J.value.scaleLabelX - V.value.chart.grid.labels.yAxis.crosshairSize}, ${A(v)(e.y + B.value.dataLabels / 3)})`,
|
|
3903
3903
|
"font-size": B.value.dataLabels,
|
|
3904
3904
|
"text-anchor": q.value ? "start" : "end",
|
|
3905
3905
|
fill: V.value.chart.grid.labels.color
|
|
3906
|
-
}, dt(A(vt)(e.value) ? A(
|
|
3906
|
+
}, dt(A(vt)(e.value) ? A(g)(V.value.chart.grid.labels.yAxis.formatter, e.value, A(Se)({
|
|
3907
3907
|
p: e.prefix,
|
|
3908
3908
|
v: e.value,
|
|
3909
3909
|
s: e.suffix,
|
|
3910
3910
|
r: V.value.chart.grid.labels.yAxis.rounding
|
|
3911
|
-
})) : ""), 9, Pn)) :
|
|
3912
|
-
wu.value ? (E(),
|
|
3911
|
+
})) : ""), 9, Pn)) : x("", !0)]))), 128))], 8, On)) : x("", !0),
|
|
3912
|
+
wu.value ? (E(), S("g", Fn, [(E(!0), S(y, null, O(Tu.value, (e) => (E(), S("text", {
|
|
3913
3913
|
key: `crosshair_y_label_${e.serie.id}_${e.index}`,
|
|
3914
|
-
transform: `translate(${q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : J.value.scaleLabelX - V.value.chart.grid.labels.yAxis.crosshairSize}, ${A(
|
|
3914
|
+
transform: `translate(${q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : J.value.scaleLabelX - V.value.chart.grid.labels.yAxis.crosshairSize}, ${A(_)(e.y) + B.value.dataLabels / 3})`,
|
|
3915
3915
|
"font-size": B.value.dataLabels,
|
|
3916
3916
|
"text-anchor": q.value ? "start" : "end",
|
|
3917
3917
|
fill: V.value.chart.grid.labels.color,
|
|
@@ -3920,7 +3920,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3920
3920
|
animation: "none !important",
|
|
3921
3921
|
"pointer-events": "none"
|
|
3922
3922
|
}
|
|
3923
|
-
}, dt(A(
|
|
3923
|
+
}, dt(A(g)(V.value.chart.grid.labels.yAxis.formatter, e.value, A(Se)({
|
|
3924
3924
|
p: e.serie.prefix || V.value.chart.labels.prefix,
|
|
3925
3925
|
v: e.value,
|
|
3926
3926
|
s: e.serie.suffix || V.value.chart.labels.suffix,
|
|
@@ -3928,10 +3928,10 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3928
3928
|
}), {
|
|
3929
3929
|
datapoint: e.serie,
|
|
3930
3930
|
seriesIndex: e.index
|
|
3931
|
-
})), 9, In))), 128))])) :
|
|
3932
|
-
Eu.value ? (E(),
|
|
3931
|
+
})), 9, In))), 128))])) : x("", !0),
|
|
3932
|
+
Eu.value ? (E(), S("g", Ln, [C("circle", {
|
|
3933
3933
|
cx: Cu.value,
|
|
3934
|
-
cy: A(
|
|
3934
|
+
cy: A(_)(J.value?.bottom),
|
|
3935
3935
|
r: V.value.chart.highlighter.crosshairs.dot.radius,
|
|
3936
3936
|
fill: V.value.chart.highlighter.crosshairs.dot.fill,
|
|
3937
3937
|
stroke: V.value.chart.highlighter.crosshairs.dot.stroke,
|
|
@@ -3941,12 +3941,12 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3941
3941
|
animation: "none !important",
|
|
3942
3942
|
"pointer-events": "none"
|
|
3943
3943
|
}
|
|
3944
|
-
}, null, 8, Rn)])) :
|
|
3945
|
-
(E(!0),
|
|
3944
|
+
}, null, 8, Rn)])) : x("", !0),
|
|
3945
|
+
(E(!0), S(y, null, O($.value, (e, n) => (E(), S("g", {
|
|
3946
3946
|
key: `serie_plot_${e.id}`,
|
|
3947
|
-
class: ot(`serie_plot_${
|
|
3947
|
+
class: ot(`serie_plot_${n}`),
|
|
3948
3948
|
style: T(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3949
|
-
}, [(E(!0),
|
|
3949
|
+
}, [(E(!0), S(y, null, O(e.plots, (r, i) => (E(), S("g", { key: `circle_plot_${e.id}_${i}` }, [r && A(vt)(r.value) ? (E(), Ze(We, {
|
|
3950
3950
|
key: 0,
|
|
3951
3951
|
shape: [
|
|
3952
3952
|
"triangle",
|
|
@@ -3956,10 +3956,10 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3956
3956
|
"hexagon",
|
|
3957
3957
|
"star"
|
|
3958
3958
|
].includes(e.shape) ? e.shape : "circle",
|
|
3959
|
-
color: V.value.plot.useGradient ? `url(#plotGradient_${
|
|
3959
|
+
color: V.value.plot.useGradient ? `url(#plotGradient_${n}_${F.value})` : V.value.plot.dot.useSerieColor ? e.color : V.value.plot.dot.fill,
|
|
3960
3960
|
plot: {
|
|
3961
|
-
x: A(
|
|
3962
|
-
y: A(
|
|
3961
|
+
x: A(v)(r.x),
|
|
3962
|
+
y: A(v)(r.y)
|
|
3963
3963
|
},
|
|
3964
3964
|
radius: Ou(e, r, i) ? (Ka.value.plot || 6) * 1.5 : (rl(e.plots, i), Ka.value.plot || 6),
|
|
3965
3965
|
stroke: V.value.plot.dot.useSerieColor ? V.value.chart.backgroundColor : e.color,
|
|
@@ -3975,24 +3975,24 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3975
3975
|
"strokeWidth",
|
|
3976
3976
|
"transition",
|
|
3977
3977
|
"still"
|
|
3978
|
-
])) :
|
|
3978
|
+
])) : x("", !0), r.comment && V.value.chart.comments.show ? (E(), S("foreignObject", {
|
|
3979
3979
|
key: 1,
|
|
3980
3980
|
style: { overflow: "visible" },
|
|
3981
3981
|
height: "12",
|
|
3982
3982
|
width: V.value.chart.comments.width,
|
|
3983
3983
|
x: r.x - V.value.chart.comments.width / 2 + V.value.chart.comments.offsetX,
|
|
3984
3984
|
y: r.y + V.value.chart.comments.offsetY + 6
|
|
3985
|
-
}, [
|
|
3985
|
+
}, [C("div", Bn, [k(t.$slots, "plot-comment", { plot: {
|
|
3986
3986
|
...r,
|
|
3987
3987
|
color: e.color,
|
|
3988
|
-
seriesIndex:
|
|
3988
|
+
seriesIndex: n,
|
|
3989
3989
|
datapointIndex: i
|
|
3990
|
-
} }, void 0, !0)])], 8, zn)) :
|
|
3991
|
-
(E(!0),
|
|
3990
|
+
} }, void 0, !0)])], 8, zn)) : x("", !0)]))), 128))], 6))), 128)),
|
|
3991
|
+
(E(!0), S(y, null, O(Q.value, (e, t) => (E(), S("g", {
|
|
3992
3992
|
key: `serie_line_${e.id}`,
|
|
3993
3993
|
class: ot(`serie_line_${t}`),
|
|
3994
3994
|
style: T(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3995
|
-
}, [e.hasDashedSegments ? (E(),
|
|
3995
|
+
}, [e.hasDashedSegments ? (E(), S(y, { key: 0 }, [e.smooth ? (E(!0), S(y, { key: 0 }, O(e.dashedSmooth, (t, n) => (E(), S("path", {
|
|
3996
3996
|
key: `line_coating_smooth_segment_${e.id}_${n}`,
|
|
3997
3997
|
fill: "none",
|
|
3998
3998
|
"stroke-linecap": "round",
|
|
@@ -4002,7 +4002,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4002
4002
|
"stroke-width": V.value.line.strokeWidth + 1,
|
|
4003
4003
|
"stroke-dasharray": t.dashed ? V.value.line.strokeWidth * 2 : 0,
|
|
4004
4004
|
style: T({ transition: ll() })
|
|
4005
|
-
}, null, 12, Vn))), 128)) : (E(!0),
|
|
4005
|
+
}, null, 12, Vn))), 128)) : (E(!0), S(y, { key: 1 }, O(e.dashedStraight, (t, n) => (E(), S("path", {
|
|
4006
4006
|
key: `line_coating_straight_segment_${e.id}_${n}`,
|
|
4007
4007
|
fill: "none",
|
|
4008
4008
|
"stroke-linecap": "round",
|
|
@@ -4012,7 +4012,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4012
4012
|
"stroke-width": V.value.line.strokeWidth + 1,
|
|
4013
4013
|
"stroke-dasharray": t.dashed ? V.value.line.strokeWidth * 2 : 0,
|
|
4014
4014
|
style: T({ transition: ll() })
|
|
4015
|
-
}, null, 12, Hn))), 128))], 64)) : e.smooth && e.plots.length > 1 && e.curve ? (E(),
|
|
4015
|
+
}, null, 12, Hn))), 128))], 64)) : e.smooth && e.plots.length > 1 && e.curve ? (E(), S("path", {
|
|
4016
4016
|
key: 1,
|
|
4017
4017
|
d: `M${e.curve}`,
|
|
4018
4018
|
stroke: V.value.chart.backgroundColor,
|
|
@@ -4022,7 +4022,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4022
4022
|
"stroke-linecap": "round",
|
|
4023
4023
|
"stroke-linejoin": "round",
|
|
4024
4024
|
style: T({ transition: ll() })
|
|
4025
|
-
}, null, 12, Un)) : e.plots.length > 1 && e.straight ? (E(),
|
|
4025
|
+
}, null, 12, Un)) : e.plots.length > 1 && e.straight ? (E(), S("path", {
|
|
4026
4026
|
key: 2,
|
|
4027
4027
|
d: `M${e.straight}`,
|
|
4028
4028
|
stroke: V.value.chart.backgroundColor,
|
|
@@ -4032,13 +4032,13 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4032
4032
|
"stroke-linecap": "round",
|
|
4033
4033
|
"stroke-linejoin": "round",
|
|
4034
4034
|
style: T({ transition: ll() })
|
|
4035
|
-
}, null, 12, Wn)) :
|
|
4036
|
-
|
|
4035
|
+
}, null, 12, Wn)) : x("", !0)], 6))), 128)),
|
|
4036
|
+
t.$slots.pattern ? (E(), S("defs", Gn, [(E(!0), S(y, null, O(Io.value, (e, n) => k(t.$slots, "pattern", it({ key: `serie_pattern_slot_${e.id}` }, { ref_for: !0 }, {
|
|
4037
4037
|
...e,
|
|
4038
4038
|
seriesIndex: e.slotAbsoluteIndex,
|
|
4039
|
-
patternId: `pattern_${F.value}_${
|
|
4040
|
-
}), void 0, !0)), 128))])) :
|
|
4041
|
-
Ml.value.length && !H.value.isStacked ? (E(),
|
|
4039
|
+
patternId: `pattern_${F.value}_${n}`
|
|
4040
|
+
}), void 0, !0)), 128))])) : x("", !0),
|
|
4041
|
+
Ml.value.length && !H.value.isStacked ? (E(), S("g", Kn, [(E(!0), S(y, null, O(Ml.value, (e) => (E(), S("path", {
|
|
4042
4042
|
key: e.key,
|
|
4043
4043
|
d: e.d,
|
|
4044
4044
|
fill: e.color,
|
|
@@ -4046,74 +4046,74 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4046
4046
|
stroke: "none",
|
|
4047
4047
|
"pointer-events": "none",
|
|
4048
4048
|
style: T({ transition: ll() })
|
|
4049
|
-
}, null, 12, qn))), 128))])) :
|
|
4050
|
-
(E(!0),
|
|
4049
|
+
}, null, 12, qn))), 128))])) : x("", !0),
|
|
4050
|
+
(E(!0), S(y, null, O(Q.value, (e, n) => (E(), S("g", {
|
|
4051
4051
|
key: `serie_line_above_${e.id}`,
|
|
4052
|
-
class: ot(`serie_line_${
|
|
4052
|
+
class: ot(`serie_line_${n}`),
|
|
4053
4053
|
style: T(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4054
4054
|
}, [
|
|
4055
|
-
e.useArea && e.plots.length > 1 ? (E(),
|
|
4055
|
+
e.useArea && e.plots.length > 1 ? (E(), S("g", Jn, [e.smooth ? (E(!0), S(y, { key: 0 }, O(e.curveAreas, (r, i) => (E(), S(y, { key: i }, [r ? (E(), S("path", {
|
|
4056
4056
|
key: 0,
|
|
4057
4057
|
d: r,
|
|
4058
|
-
fill: V.value.line.area.useGradient ? `url(#areaGradient_${
|
|
4058
|
+
fill: V.value.line.area.useGradient ? `url(#areaGradient_${n}_${F.value})` : A(f)(e.color, V.value.line.area.opacity),
|
|
4059
4059
|
style: T({ transition: ll() })
|
|
4060
|
-
}, null, 12, Yn)) :
|
|
4060
|
+
}, null, 12, Yn)) : x("", !0), t.$slots.pattern && r ? (E(), S("path", {
|
|
4061
4061
|
key: 1,
|
|
4062
4062
|
d: r,
|
|
4063
4063
|
fill: `url(#pattern_${F.value}_${e.slotAbsoluteIndex})`,
|
|
4064
4064
|
style: T({ transition: ll() })
|
|
4065
|
-
}, null, 12, Xn)) :
|
|
4065
|
+
}, null, 12, Xn)) : x("", !0)], 64))), 128)) : (E(!0), S(y, { key: 1 }, O(e.area.split(";"), (r, i) => (E(), S(y, { key: i }, [r ? (E(), S("path", {
|
|
4066
4066
|
key: 0,
|
|
4067
4067
|
d: `M${r}Z`,
|
|
4068
|
-
fill: V.value.line.area.useGradient ? `url(#areaGradient_${
|
|
4068
|
+
fill: V.value.line.area.useGradient ? `url(#areaGradient_${n}_${F.value})` : A(f)(e.color, V.value.line.area.opacity),
|
|
4069
4069
|
style: T({ transition: ll() })
|
|
4070
|
-
}, null, 12, Zn)) :
|
|
4070
|
+
}, null, 12, Zn)) : x("", !0), t.$slots.pattern && r ? (E(), S("path", {
|
|
4071
4071
|
key: 1,
|
|
4072
4072
|
d: `M${r}Z`,
|
|
4073
4073
|
fill: `url(#pattern_${F.value}_${e.slotAbsoluteIndex})`,
|
|
4074
4074
|
style: T({ transition: ll() })
|
|
4075
|
-
}, null, 12, Qn)) :
|
|
4076
|
-
!e.hasDashedSegments && e.smooth && e.plots.length > 1 && e.curve ? (E(),
|
|
4075
|
+
}, null, 12, Qn)) : x("", !0)], 64))), 128))])) : x("", !0),
|
|
4076
|
+
!e.hasDashedSegments && e.smooth && e.plots.length > 1 && e.curve ? (E(), S("path", {
|
|
4077
4077
|
key: 1,
|
|
4078
4078
|
d: `M${e.curve}`,
|
|
4079
|
-
stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${
|
|
4079
|
+
stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${n}_${F.value})` : e.color,
|
|
4080
4080
|
"stroke-width": V.value.line.strokeWidth,
|
|
4081
4081
|
"stroke-dasharray": e.dashed ? V.value.line.strokeWidth * 2 : 0,
|
|
4082
4082
|
fill: "none",
|
|
4083
4083
|
"stroke-linecap": "round",
|
|
4084
4084
|
style: T({ transition: ll() })
|
|
4085
|
-
}, null, 12, $n)) : e.hasDashedSegments ? (E(),
|
|
4085
|
+
}, null, 12, $n)) : e.hasDashedSegments ? (E(), S(y, { key: 2 }, [e.smooth ? (E(!0), S(y, { key: 0 }, O(e.dashedSmooth, (t, r) => (E(), S("path", {
|
|
4086
4086
|
key: `line_smooth_segment_${e.id}_${r}`,
|
|
4087
4087
|
fill: "none",
|
|
4088
4088
|
"stroke-linecap": "round",
|
|
4089
4089
|
"stroke-linejoin": "round",
|
|
4090
|
-
d: `M ${
|
|
4091
|
-
stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${
|
|
4090
|
+
d: `M ${t.path}`,
|
|
4091
|
+
stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${n}_${F.value})` : e.color,
|
|
4092
4092
|
"stroke-width": V.value.line.strokeWidth,
|
|
4093
|
-
"stroke-dasharray":
|
|
4093
|
+
"stroke-dasharray": t.dashed ? V.value.line.strokeWidth * 2 : 0,
|
|
4094
4094
|
style: T({ transition: ll() })
|
|
4095
|
-
}, null, 12, er))), 128)) : (E(!0),
|
|
4095
|
+
}, null, 12, er))), 128)) : (E(!0), S(y, { key: 1 }, O(e.dashedStraight, (t, r) => (E(), S("path", {
|
|
4096
4096
|
key: `line_straight_segment_${e.id}_${r}`,
|
|
4097
4097
|
fill: "none",
|
|
4098
4098
|
"stroke-linecap": "round",
|
|
4099
4099
|
"stroke-linejoin": "round",
|
|
4100
|
-
d: `M ${
|
|
4101
|
-
stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${
|
|
4100
|
+
d: `M ${t.path}`,
|
|
4101
|
+
stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${n}_${F.value})` : e.color,
|
|
4102
4102
|
"stroke-width": V.value.line.strokeWidth,
|
|
4103
|
-
"stroke-dasharray":
|
|
4103
|
+
"stroke-dasharray": t.dashed ? V.value.line.strokeWidth * 2 : 0,
|
|
4104
4104
|
style: T({ transition: ll() })
|
|
4105
|
-
}, null, 12, tr))), 128))], 64)) : e.plots.length > 1 && e.straight ? (E(),
|
|
4105
|
+
}, null, 12, tr))), 128))], 64)) : e.plots.length > 1 && e.straight ? (E(), S("path", {
|
|
4106
4106
|
key: 3,
|
|
4107
4107
|
d: `M${e.straight}`,
|
|
4108
|
-
stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${
|
|
4108
|
+
stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${n}_${F.value})` : e.color,
|
|
4109
4109
|
"stroke-width": V.value.line.strokeWidth,
|
|
4110
4110
|
"stroke-dasharray": e.dashed ? V.value.line.strokeWidth * 2 : 0,
|
|
4111
4111
|
fill: "none",
|
|
4112
4112
|
"stroke-linecap": "round",
|
|
4113
4113
|
"stroke-linejoin": "round",
|
|
4114
4114
|
style: T({ transition: ll() })
|
|
4115
|
-
}, null, 12, nr)) :
|
|
4116
|
-
(E(!0),
|
|
4115
|
+
}, null, 12, nr)) : x("", !0),
|
|
4116
|
+
(E(!0), S(y, null, O(e.plots, (r, i) => (E(), S(y, { key: `circle_line_${e.id}_${i}` }, [!bc.value.linePlot && r && A(vt)(r.value) || bc.value.linePlot && r && A(vt)(r.value) && (R.value !== null && R.value === i || I.value !== null && I.value === i) || rl(e.plots, i) ? (E(), Ze(We, {
|
|
4117
4117
|
key: 0,
|
|
4118
4118
|
shape: [
|
|
4119
4119
|
"triangle",
|
|
@@ -4123,10 +4123,10 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4123
4123
|
"hexagon",
|
|
4124
4124
|
"star"
|
|
4125
4125
|
].includes(e.shape) ? e.shape : "circle",
|
|
4126
|
-
color: V.value.line.useGradient ? `url(#lineGradient_${
|
|
4126
|
+
color: V.value.line.useGradient ? `url(#lineGradient_${n}_${F.value})` : V.value.line.dot.useSerieColor ? e.color : V.value.line.dot.fill,
|
|
4127
4127
|
plot: {
|
|
4128
|
-
x: A(
|
|
4129
|
-
y: A(
|
|
4128
|
+
x: A(v)(r.x),
|
|
4129
|
+
y: A(v)(r.y)
|
|
4130
4130
|
},
|
|
4131
4131
|
radius: Ou(e, r, i) ? qa.value || 0 : (rl(e.plots, i), Ka.value.line || 0),
|
|
4132
4132
|
stroke: V.value.line.dot.useSerieColor ? V.value.chart.backgroundColor : e.color,
|
|
@@ -4142,21 +4142,21 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4142
4142
|
"strokeWidth",
|
|
4143
4143
|
"transition",
|
|
4144
4144
|
"still"
|
|
4145
|
-
])) :
|
|
4145
|
+
])) : x("", !0), r.comment && V.value.chart.comments.show ? (E(), S("foreignObject", {
|
|
4146
4146
|
key: 1,
|
|
4147
4147
|
style: { overflow: "visible" },
|
|
4148
4148
|
height: "12",
|
|
4149
4149
|
width: V.value.chart.comments.width,
|
|
4150
4150
|
x: r.x - V.value.chart.comments.width / 2 + V.value.chart.comments.offsetX,
|
|
4151
4151
|
y: r.y + V.value.chart.comments.offsetY + 6
|
|
4152
|
-
}, [
|
|
4152
|
+
}, [C("div", ir, [k(t.$slots, "plot-comment", { plot: {
|
|
4153
4153
|
...r,
|
|
4154
4154
|
color: e.color,
|
|
4155
|
-
seriesIndex:
|
|
4155
|
+
seriesIndex: n,
|
|
4156
4156
|
datapointIndex: i
|
|
4157
|
-
} }, void 0, !0)])], 8, rr)) :
|
|
4157
|
+
} }, void 0, !0)])], 8, rr)) : x("", !0)], 64))), 128))
|
|
4158
4158
|
], 6))), 128)),
|
|
4159
|
-
(V.value.bar.labels.show || V.value.bar.serieName.show) && H.value.dataLabels.show ? (E(),
|
|
4159
|
+
(V.value.bar.labels.show || V.value.bar.serieName.show) && H.value.dataLabels.show ? (E(), S("g", ar, [(E(!0), S(y, null, O(ju.value, (e) => (E(), S("text", {
|
|
4160
4160
|
key: e.key,
|
|
4161
4161
|
"text-anchor": Su({
|
|
4162
4162
|
plot: e.plot,
|
|
@@ -4173,7 +4173,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4173
4173
|
plot: e.plot,
|
|
4174
4174
|
type: "bar"
|
|
4175
4175
|
})
|
|
4176
|
-
}, null, 12, or))), 128)), (E(!0),
|
|
4176
|
+
}, null, 12, or))), 128)), (E(!0), S(y, null, O(kl.value, (e, t) => (E(), S(y, { key: `xLabel_bar_${e.id}` }, [(E(!0), S(y, null, O(e.plots, (n, r) => (E(), S(y, { key: `xLabel_bar_${t}_${r}` }, [n && V.value.bar.serieName.show ? (E(), S("text", {
|
|
4177
4177
|
key: 0,
|
|
4178
4178
|
x: H.value.useIndividualScale && H.value.isStacked ? n.x + qs.value.line / 2 : n.x + Js() * 1.1,
|
|
4179
4179
|
y: n.y + (n.value > 0 ? V.value.bar.serieName.offsetY : -V.value.bar.serieName.offsetY * 3),
|
|
@@ -4185,8 +4185,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4185
4185
|
}, dt(V.value.bar.serieName.useAbbreviation ? A(xe)({
|
|
4186
4186
|
source: e.name,
|
|
4187
4187
|
length: V.value.bar.serieName.abbreviationSize
|
|
4188
|
-
}) : e.name), 13, sr)) :
|
|
4189
|
-
V.value.plot.labels.show && H.value.dataLabels.show ? (E(),
|
|
4188
|
+
}) : e.name), 13, sr)) : x("", !0)], 64))), 128))], 64))), 128))])) : x("", !0),
|
|
4189
|
+
V.value.plot.labels.show && H.value.dataLabels.show ? (E(), S("g", cr, [(E(!0), S(y, null, O(Mu.value, (e) => (E(), S("text", {
|
|
4190
4190
|
key: e.key,
|
|
4191
4191
|
transform: xu({
|
|
4192
4192
|
plot: e.plot,
|
|
@@ -4206,11 +4206,11 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4206
4206
|
plot: e.plot,
|
|
4207
4207
|
type: "plot"
|
|
4208
4208
|
})
|
|
4209
|
-
}, null, 12, lr))), 128))])) : (E(),
|
|
4209
|
+
}, null, 12, lr))), 128))])) : (E(), S("g", ur, [(E(!0), S(y, null, O($.value, (e, t) => (E(), S(y, { key: `xLabel_plot_${e.id}` }, [(E(!0), S(y, null, O(e.plots, (n, r) => (E(), S(y, { key: `xLabel_plot_${t}_${r}` }, [V.value.plot.tag.followValue ? (E(), S(y, { key: 1 }, [[
|
|
4210
4210
|
I.value,
|
|
4211
4211
|
R.value,
|
|
4212
4212
|
ca.value
|
|
4213
|
-
].includes(r) && e.useTag ? (E(),
|
|
4213
|
+
].includes(r) && e.useTag ? (E(), S("line", {
|
|
4214
4214
|
key: 0,
|
|
4215
4215
|
class: "vue-ui-xy-tag-plot",
|
|
4216
4216
|
x1: J.value?.left,
|
|
@@ -4221,36 +4221,36 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4221
4221
|
"stroke-linecap": "round",
|
|
4222
4222
|
"stroke-dasharray": "2",
|
|
4223
4223
|
stroke: e.color
|
|
4224
|
-
}, null, 8, hr)) :
|
|
4224
|
+
}, null, 8, hr)) : x("", !0)], 64)) : (E(), S(y, { key: 0 }, [n && r === 0 && e.useTag && e.useTag === "start" ? (E(), S("foreignObject", {
|
|
4225
4225
|
key: 0,
|
|
4226
4226
|
x: n.x,
|
|
4227
4227
|
y: n.y - 20,
|
|
4228
4228
|
height: 24,
|
|
4229
4229
|
width: "150",
|
|
4230
4230
|
style: T(`overflow: visible; opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4231
|
-
}, [
|
|
4232
|
-
style: T(`padding: 3px; background:${A(
|
|
4233
|
-
innerHTML: A(
|
|
4231
|
+
}, [C("div", {
|
|
4232
|
+
style: T(`padding: 3px; background:${A(f)(e.color, 80)};color:${A(Ce)(e.color)};width:fit-content;font-size:${B.value.plotLabels}px;border-radius: 2px;`),
|
|
4233
|
+
innerHTML: A(g)(V.value.plot.tag.formatter, n.value, e.name, {
|
|
4234
4234
|
datapoint: n,
|
|
4235
4235
|
seriesIndex: r,
|
|
4236
4236
|
serieName: e.name
|
|
4237
4237
|
})
|
|
4238
|
-
}, null, 12, fr)], 12, dr)) :
|
|
4238
|
+
}, null, 12, fr)], 12, dr)) : x("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (E(), S("foreignObject", {
|
|
4239
4239
|
key: 1,
|
|
4240
4240
|
x: n.x - e.name.length * (B.value.plotLabels / 2),
|
|
4241
4241
|
y: n.y - 20,
|
|
4242
4242
|
height: 24,
|
|
4243
4243
|
width: "150",
|
|
4244
4244
|
style: T(`overflow: visible; opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4245
|
-
}, [
|
|
4246
|
-
style: T(`padding: 3px; background:${A(
|
|
4247
|
-
innerHTML: A(
|
|
4245
|
+
}, [C("div", {
|
|
4246
|
+
style: T(`padding: 3px; background:${A(f)(e.color, 80)};color:${A(Ce)(e.color)};width:fit-content;font-size:${B.value.plotLabels}px;border-radius: 2px;`),
|
|
4247
|
+
innerHTML: A(g)(V.value.plot.tag.formatter, n.value, e.name, {
|
|
4248
4248
|
datapoint: n,
|
|
4249
4249
|
seriesIndex: r,
|
|
4250
4250
|
serieName: e.name
|
|
4251
4251
|
})
|
|
4252
|
-
}, null, 12, mr)], 12, pr)) :
|
|
4253
|
-
V.value.line.labels.show && H.value.dataLabels.show ? (E(),
|
|
4252
|
+
}, null, 12, mr)], 12, pr)) : x("", !0)], 64))], 64))), 128))], 64))), 128))])),
|
|
4253
|
+
V.value.line.labels.show && H.value.dataLabels.show ? (E(), S("g", gr, [(E(!0), S(y, null, O(Nu.value, (e) => (E(), S("text", {
|
|
4254
4254
|
key: e.key,
|
|
4255
4255
|
transform: xu({
|
|
4256
4256
|
plot: e.plot,
|
|
@@ -4270,11 +4270,11 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4270
4270
|
plot: e.plot,
|
|
4271
4271
|
type: "line"
|
|
4272
4272
|
})
|
|
4273
|
-
}, null, 12, _r))), 128))])) : (E(),
|
|
4273
|
+
}, null, 12, _r))), 128))])) : (E(), S("g", vr, [(E(!0), S(y, null, O(Q.value, (e, t) => (E(), S(y, { key: `xLabel_line_${e.id}` }, [(E(!0), S(y, null, O(e.plots, (n, r) => (E(), S(y, { key: `xLabel_line_${t}_${r}` }, [V.value.line.tag.followValue ? (E(), S(y, { key: 1 }, [[
|
|
4274
4274
|
I.value,
|
|
4275
4275
|
R.value,
|
|
4276
4276
|
ca.value
|
|
4277
|
-
].includes(r) && e.useTag ? (E(),
|
|
4277
|
+
].includes(r) && e.useTag ? (E(), S("line", {
|
|
4278
4278
|
key: 0,
|
|
4279
4279
|
class: "vue-ui-xy-tag-line",
|
|
4280
4280
|
x1: J.value?.left,
|
|
@@ -4285,43 +4285,43 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4285
4285
|
"stroke-linecap": "round",
|
|
4286
4286
|
"stroke-dasharray": "2",
|
|
4287
4287
|
stroke: e.color
|
|
4288
|
-
}, null, 8, Cr)) :
|
|
4288
|
+
}, null, 8, Cr)) : x("", !0)], 64)) : (E(), S(y, { key: 0 }, [n && r === 0 && e.useTag && e.useTag === "start" ? (E(), S("foreignObject", {
|
|
4289
4289
|
key: 0,
|
|
4290
4290
|
x: n.x,
|
|
4291
4291
|
y: n.y - 20,
|
|
4292
4292
|
height: 24,
|
|
4293
4293
|
width: "150",
|
|
4294
4294
|
style: T(`overflow: visible; opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4295
|
-
}, [
|
|
4296
|
-
style: T(`padding: 3px; background:${A(
|
|
4297
|
-
innerHTML: A(
|
|
4295
|
+
}, [C("div", {
|
|
4296
|
+
style: T(`padding: 3px; background:${A(f)(e.color, 80)};color:${A(Ce)(e.color)};width:fit-content;font-size:${B.value.plotLabels}px;border-radius: 2px;`),
|
|
4297
|
+
innerHTML: A(g)(V.value.line.tag.formatter, n.value, e.name, {
|
|
4298
4298
|
datapoint: n,
|
|
4299
4299
|
seriesIndex: r,
|
|
4300
4300
|
serieName: e.name
|
|
4301
4301
|
})
|
|
4302
|
-
}, null, 12, br)], 12, yr)) :
|
|
4302
|
+
}, null, 12, br)], 12, yr)) : x("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (E(), S("foreignObject", {
|
|
4303
4303
|
key: 1,
|
|
4304
4304
|
x: n.x,
|
|
4305
4305
|
y: n.y - 20,
|
|
4306
4306
|
height: 24,
|
|
4307
4307
|
width: "150",
|
|
4308
4308
|
style: T(`overflow: visible; opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4309
|
-
}, [
|
|
4310
|
-
style: T(`padding: 3px; background:${A(
|
|
4311
|
-
innerHTML: A(
|
|
4309
|
+
}, [C("div", {
|
|
4310
|
+
style: T(`padding: 3px; background:${A(f)(e.color, 80)};color:${A(Ce)(e.color)};width:fit-content;font-size:${B.value.plotLabels}px;border-radius: 2px;`),
|
|
4311
|
+
innerHTML: A(g)(V.value.line.tag.formatter, n.value, e.name, {
|
|
4312
4312
|
datapoint: n,
|
|
4313
4313
|
seriesIndex: r,
|
|
4314
4314
|
serieName: e.name
|
|
4315
4315
|
})
|
|
4316
|
-
}, null, 12, Sr)], 12, xr)) :
|
|
4317
|
-
(E(!0),
|
|
4316
|
+
}, null, 12, Sr)], 12, xr)) : x("", !0)], 64))], 64))), 128))], 64))), 128))])),
|
|
4317
|
+
(E(!0), S(y, null, O(Q.value, (e, t) => (E(), S(y, { key: `xLabel_line_${e.id}` }, [(E(!0), S(y, null, O(e.plots, (n, r) => (E(), S(y, { key: `xLabel_line_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (E(), S("text", {
|
|
4318
4318
|
key: 0,
|
|
4319
4319
|
x: n.x - B.value.plotLabels,
|
|
4320
4320
|
y: n.y,
|
|
4321
4321
|
"font-size": B.value.plotLabels,
|
|
4322
4322
|
"text-anchor": "end",
|
|
4323
4323
|
fill: e.color,
|
|
4324
|
-
innerHTML: A(
|
|
4324
|
+
innerHTML: A(ce)({
|
|
4325
4325
|
content: e.name,
|
|
4326
4326
|
fontSize: B.value.plotLabels,
|
|
4327
4327
|
fill: e.color,
|
|
@@ -4330,14 +4330,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4330
4330
|
maxWords: 2
|
|
4331
4331
|
}),
|
|
4332
4332
|
style: T(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4333
|
-
}, null, 12, wr)) :
|
|
4333
|
+
}, null, 12, wr)) : x("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (E(), S("text", {
|
|
4334
4334
|
key: 1,
|
|
4335
4335
|
x: n.x + B.value.plotLabels,
|
|
4336
4336
|
y: n.y,
|
|
4337
4337
|
"font-size": B.value.plotLabels,
|
|
4338
4338
|
"text-anchor": "start",
|
|
4339
4339
|
fill: e.color,
|
|
4340
|
-
innerHTML: A(
|
|
4340
|
+
innerHTML: A(ce)({
|
|
4341
4341
|
content: e.name,
|
|
4342
4342
|
fontSize: B.value.plotLabels,
|
|
4343
4343
|
fill: e.color,
|
|
@@ -4346,15 +4346,15 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4346
4346
|
maxWords: 2
|
|
4347
4347
|
}),
|
|
4348
4348
|
style: T(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4349
|
-
}, null, 12, Tr)) :
|
|
4350
|
-
(E(!0),
|
|
4349
|
+
}, null, 12, Tr)) : x("", !0)], 64))), 128))], 64))), 128)),
|
|
4350
|
+
(E(!0), S(y, null, O($.value, (e, t) => (E(), S(y, { key: `xLabel_plot_${e.id}` }, [(E(!0), S(y, null, O(e.plots, (n, r) => (E(), S(y, { key: `xLabel_plot_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (E(), S("text", {
|
|
4351
4351
|
key: 0,
|
|
4352
4352
|
x: n.x - B.value.plotLabels,
|
|
4353
4353
|
y: n.y,
|
|
4354
4354
|
"font-size": B.value.plotLabels,
|
|
4355
4355
|
"text-anchor": "end",
|
|
4356
4356
|
fill: e.color,
|
|
4357
|
-
innerHTML: A(
|
|
4357
|
+
innerHTML: A(ce)({
|
|
4358
4358
|
content: e.name,
|
|
4359
4359
|
fontSize: B.value.plotLabels,
|
|
4360
4360
|
fill: e.color,
|
|
@@ -4363,14 +4363,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4363
4363
|
maxWords: 2
|
|
4364
4364
|
}),
|
|
4365
4365
|
style: T(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4366
|
-
}, null, 12, Er)) :
|
|
4366
|
+
}, null, 12, Er)) : x("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (E(), S("text", {
|
|
4367
4367
|
key: 1,
|
|
4368
4368
|
x: n.x + B.value.plotLabels,
|
|
4369
4369
|
y: n.y,
|
|
4370
4370
|
"font-size": B.value.plotLabels,
|
|
4371
4371
|
"text-anchor": "start",
|
|
4372
4372
|
fill: e.color,
|
|
4373
|
-
innerHTML: A(
|
|
4373
|
+
innerHTML: A(ce)({
|
|
4374
4374
|
content: e.name,
|
|
4375
4375
|
fontSize: B.value.plotLabels,
|
|
4376
4376
|
fill: e.color,
|
|
@@ -4379,13 +4379,13 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4379
4379
|
maxWords: 2
|
|
4380
4380
|
}),
|
|
4381
4381
|
style: T(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4382
|
-
}, null, 12, Dr)) :
|
|
4383
|
-
(E(!0),
|
|
4382
|
+
}, null, 12, Dr)) : x("", !0)], 64))), 128))], 64))), 128)),
|
|
4383
|
+
(E(!0), S(y, null, O([
|
|
4384
4384
|
...$.value,
|
|
4385
4385
|
...Q.value,
|
|
4386
4386
|
...kl.value
|
|
4387
|
-
], (e, t) => (E(),
|
|
4388
|
-
|
|
4387
|
+
], (e, t) => (E(), S(y, { key: `progression-${t}` }, [Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(A(be)(e.plots).trend) ? (E(), S("g", Or, [
|
|
4388
|
+
C("defs", null, [C("marker", {
|
|
4389
4389
|
id: `progression_arrow_${t}`,
|
|
4390
4390
|
markerWidth: "9",
|
|
4391
4391
|
markerHeight: "9",
|
|
@@ -4395,40 +4395,40 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4395
4395
|
refY: 7 / 2,
|
|
4396
4396
|
orient: "auto",
|
|
4397
4397
|
overflow: "visible"
|
|
4398
|
-
}, [
|
|
4398
|
+
}, [C("polygon", {
|
|
4399
4399
|
points: "0,0 7,3.5 0,7",
|
|
4400
4400
|
fill: e.color,
|
|
4401
4401
|
stroke: V.value.chart.backgroundColor,
|
|
4402
4402
|
"stroke-width": "1",
|
|
4403
4403
|
"stroke-linejoin": "round"
|
|
4404
4404
|
}, null, 8, Ar)], 8, kr)]),
|
|
4405
|
-
e.plots.length > 1 ? (E(),
|
|
4405
|
+
e.plots.length > 1 ? (E(), S("line", {
|
|
4406
4406
|
key: 0,
|
|
4407
4407
|
x1: A(be)(e.plots).x1 + (e.type === "bar" ? Js() : 0),
|
|
4408
4408
|
x2: A(be)(e.plots).x2 + (e.type === "bar" ? Js() : 0),
|
|
4409
|
-
y1: A(
|
|
4410
|
-
y2: A(
|
|
4409
|
+
y1: A(_)(A(be)(e.plots).y1),
|
|
4410
|
+
y2: A(_)(A(be)(e.plots).y2),
|
|
4411
4411
|
"stroke-width": 1,
|
|
4412
4412
|
stroke: V.value.chart.backgroundColor,
|
|
4413
4413
|
"stroke-dasharray": 2,
|
|
4414
4414
|
"stroke-linecap": "round",
|
|
4415
4415
|
"stroke-linejoin": "round",
|
|
4416
4416
|
"marker-end": `url(#progression_arrow_${t})`
|
|
4417
|
-
}, null, 8, jr)) :
|
|
4418
|
-
e.plots.length > 1 ? (E(),
|
|
4417
|
+
}, null, 8, jr)) : x("", !0),
|
|
4418
|
+
e.plots.length > 1 ? (E(), S("line", {
|
|
4419
4419
|
key: 1,
|
|
4420
4420
|
x1: A(be)(e.plots).x1 + (e.type === "bar" ? Js() : 0),
|
|
4421
4421
|
x2: A(be)(e.plots).x2 + (e.type === "bar" ? Js() : 0),
|
|
4422
|
-
y1: A(
|
|
4423
|
-
y2: A(
|
|
4422
|
+
y1: A(_)(A(be)(e.plots).y1),
|
|
4423
|
+
y2: A(_)(A(be)(e.plots).y2),
|
|
4424
4424
|
"stroke-width": 1,
|
|
4425
4425
|
stroke: e.color,
|
|
4426
4426
|
"stroke-dasharray": 2,
|
|
4427
4427
|
"stroke-linecap": "round",
|
|
4428
4428
|
"stroke-linejoin": "round",
|
|
4429
4429
|
"marker-end": `url(#progression_arrow_${t})`
|
|
4430
|
-
}, null, 8, Mr)) :
|
|
4431
|
-
e.plots.length > 1 ? (E(),
|
|
4430
|
+
}, null, 8, Mr)) : x("", !0),
|
|
4431
|
+
e.plots.length > 1 ? (E(), S("text", {
|
|
4432
4432
|
key: 2,
|
|
4433
4433
|
"text-anchor": "middle",
|
|
4434
4434
|
x: A(be)(e.plots).x2 + (e.type === "bar" ? Js() : 0),
|
|
@@ -4440,28 +4440,28 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4440
4440
|
"stroke-linecap": "round",
|
|
4441
4441
|
"stroke-linejoin": "round",
|
|
4442
4442
|
"paint-order": "stroke fill"
|
|
4443
|
-
}, dt(A(
|
|
4443
|
+
}, dt(A(Se)({
|
|
4444
4444
|
v: A(be)(e.plots).trend * 100,
|
|
4445
4445
|
s: "%",
|
|
4446
4446
|
r: 2
|
|
4447
|
-
})), 9, Nr)) :
|
|
4448
|
-
])) :
|
|
4449
|
-
H.value.useIndividualScale && !H.value.isStacked ? (E(),
|
|
4447
|
+
})), 9, Nr)) : x("", !0)
|
|
4448
|
+
])) : x("", !0)], 64))), 128)),
|
|
4449
|
+
H.value.useIndividualScale && !H.value.isStacked ? (E(), S(y, { key: 16 }, [C("defs", null, [(E(!0), S(y, null, O(jl.value, (e, t) => (E(), S("linearGradient", {
|
|
4450
4450
|
key: `individual_scale_gradient_${e.groupId || e.id || t}`,
|
|
4451
4451
|
id: `individual_scale_gradient_${F.value}_${t}`,
|
|
4452
4452
|
x1: q.value ? "100%" : "0%",
|
|
4453
4453
|
x2: q.value ? "0%" : "100%",
|
|
4454
4454
|
y1: "0%",
|
|
4455
4455
|
y2: "0%"
|
|
4456
|
-
}, [
|
|
4456
|
+
}, [C("stop", {
|
|
4457
4457
|
offset: "0%",
|
|
4458
4458
|
"stop-color": V.value.chart.backgroundColor,
|
|
4459
4459
|
"stop-opacity": "0"
|
|
4460
|
-
}, null, 8, Fr),
|
|
4460
|
+
}, null, 8, Fr), C("stop", {
|
|
4461
4461
|
offset: "100%",
|
|
4462
4462
|
"stop-color": e.color,
|
|
4463
4463
|
"stop-opacity": "0.2"
|
|
4464
|
-
}, null, 8, Ir)], 8, Pr))), 128))]), (E(!0),
|
|
4464
|
+
}, null, 8, Ir)], 8, Pr))), 128))]), (E(!0), S(y, null, O(jl.value, (e, t) => (E(), S("rect", {
|
|
4465
4465
|
key: `individual_scale_background_${e.groupId || e.id || t}`,
|
|
4466
4466
|
x: q.value ? e.x : e.x - V.value.chart.grid.labels.yAxis.labelWidth - J.value.individualOffsetX,
|
|
4467
4467
|
y: J.value?.top,
|
|
@@ -4469,9 +4469,9 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4469
4469
|
height: J.value.height < 0 ? 10 : J.value.height,
|
|
4470
4470
|
fill: N.value === e.groupId ? `url(#individual_scale_gradient_${F.value}_${t})` : "transparent",
|
|
4471
4471
|
onMouseenter: (t) => N.value = e.groupId,
|
|
4472
|
-
onMouseleave:
|
|
4473
|
-
}, null, 40, Lr))), 128))], 64)) :
|
|
4474
|
-
|
|
4472
|
+
onMouseleave: n[0] ||= (e) => N.value = null
|
|
4473
|
+
}, null, 40, Lr))), 128))], 64)) : x("", !0),
|
|
4474
|
+
C("g", null, [V.value.chart.grid.labels.axis.yLabel && !H.value.useIndividualScale ? (E(), S("text", {
|
|
4475
4475
|
key: 0,
|
|
4476
4476
|
ref_key: "yAxisLabel",
|
|
4477
4477
|
ref: qi,
|
|
@@ -4480,7 +4480,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4480
4480
|
transform: `translate(${q.value ? J.value.right + J.value.scaleLabelsOffset + V.value.chart.grid.labels.axis.yLabelOffsetX + B.value.yAxis : V.value.chart.grid.labels.axis.fontSize + V.value.chart.grid.labels.axis.yLabelOffsetX}, ${J.value?.top + J.value.height / 2}) rotate(-90)`,
|
|
4481
4481
|
"text-anchor": "middle",
|
|
4482
4482
|
style: { transition: "none" }
|
|
4483
|
-
}, dt(V.value.chart.grid.labels.axis.yLabel), 9, Rr)) :
|
|
4483
|
+
}, dt(V.value.chart.grid.labels.axis.yLabel), 9, Rr)) : x("", !0), V.value.chart.grid.labels.axis.xLabel ? (E(), S("text", {
|
|
4484
4484
|
key: 1,
|
|
4485
4485
|
ref_key: "xAxisLabel",
|
|
4486
4486
|
ref: Ki,
|
|
@@ -4489,53 +4489,53 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4489
4489
|
y: ta.value - 3,
|
|
4490
4490
|
"font-size": B.value.yAxis,
|
|
4491
4491
|
fill: V.value.chart.grid.labels.color
|
|
4492
|
-
}, dt(V.value.chart.grid.labels.axis.xLabel), 9, zr)) :
|
|
4493
|
-
V.value.chart.grid.labels.xAxisLabels.show ? (E(),
|
|
4492
|
+
}, dt(V.value.chart.grid.labels.axis.xLabel), 9, zr)) : x("", !0)]),
|
|
4493
|
+
V.value.chart.grid.labels.xAxisLabels.show ? (E(), S("g", {
|
|
4494
4494
|
key: 17,
|
|
4495
4495
|
ref_key: "timeLabelsEls",
|
|
4496
4496
|
ref: Ji,
|
|
4497
4497
|
opacity: wu.value ? .1 : 1,
|
|
4498
4498
|
style: { transition: "opacity 0.2s" }
|
|
4499
|
-
}, [
|
|
4499
|
+
}, [t.$slots["time-label"] ? (E(!0), S(y, { key: 0 }, O(fl.value, (e, n) => k(t.$slots, "time-label", it({
|
|
4500
4500
|
key: `time_label_${e.id}`,
|
|
4501
4501
|
ref_for: !0
|
|
4502
4502
|
}, {
|
|
4503
|
-
x: pl(e,
|
|
4503
|
+
x: pl(e, n),
|
|
4504
4504
|
y: J.value?.bottom,
|
|
4505
4505
|
fontSize: B.value.xAxis,
|
|
4506
4506
|
fill: V.value.chart.grid.labels.xAxisLabels.color,
|
|
4507
|
-
transform: `translate(${pl(e,
|
|
4507
|
+
transform: `translate(${pl(e, n)}, ${J.value?.bottom + B.value.xAxis * 1.3 + V.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${V.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
4508
4508
|
absoluteIndex: e.absoluteIndex,
|
|
4509
4509
|
content: e.text,
|
|
4510
4510
|
textAnchor: V.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : V.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
4511
4511
|
show: e && e.text
|
|
4512
|
-
}), void 0, !0)), 128)) : (E(!0),
|
|
4512
|
+
}), void 0, !0)), 128)) : (E(!0), S(y, { key: 1 }, O(fl.value, (e, t) => (E(), S("g", { key: `time_label_${t}` }, [e && e.text ? (E(), S(y, { key: 0 }, [String(e.text).includes("\n") ? (E(), S("text", {
|
|
4513
4513
|
key: 1,
|
|
4514
4514
|
class: "vue-data-ui-time-label",
|
|
4515
4515
|
"text-anchor": V.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : V.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
4516
4516
|
"font-size": B.value.xAxis,
|
|
4517
4517
|
fill: V.value.chart.grid.labels.xAxisLabels.color,
|
|
4518
|
-
transform: `translate(${pl(e,
|
|
4518
|
+
transform: `translate(${pl(e, t)}, ${J.value?.bottom + B.value.xAxis * 1.5}), rotate(${V.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
4519
4519
|
style: T({ cursor: Xo() && Za.value ? "pointer" : "default" }),
|
|
4520
|
-
innerHTML: A(
|
|
4520
|
+
innerHTML: A(s)({
|
|
4521
4521
|
content: String(e.text),
|
|
4522
4522
|
fontSize: B.value.xAxis,
|
|
4523
4523
|
fill: V.value.chart.grid.labels.xAxisLabels.color,
|
|
4524
4524
|
x: 0,
|
|
4525
4525
|
y: 0
|
|
4526
4526
|
}),
|
|
4527
|
-
onClick: (
|
|
4528
|
-
}, null, 12, Hr)) : (E(),
|
|
4527
|
+
onClick: (n) => ds(e, t)
|
|
4528
|
+
}, null, 12, Hr)) : (E(), S("text", {
|
|
4529
4529
|
key: 0,
|
|
4530
4530
|
class: "vue-data-ui-time-label",
|
|
4531
4531
|
"text-anchor": V.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : V.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
4532
4532
|
"font-size": B.value.xAxis,
|
|
4533
4533
|
fill: V.value.chart.grid.labels.xAxisLabels.color,
|
|
4534
|
-
transform: `translate(${pl(e,
|
|
4534
|
+
transform: `translate(${pl(e, t)}, ${J.value?.bottom + B.value.xAxis * 1.5}), rotate(${V.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
4535
4535
|
style: T({ cursor: Xo() && Za.value ? "pointer" : "default" }),
|
|
4536
|
-
onClick: (
|
|
4537
|
-
}, dt(e.text || ""), 13, Vr))], 64)) :
|
|
4538
|
-
Eu.value ? (E(),
|
|
4536
|
+
onClick: (n) => ds(e, t)
|
|
4537
|
+
}, dt(e.text || ""), 13, Vr))], 64)) : x("", !0)]))), 128))], 8, Br)) : x("", !0),
|
|
4538
|
+
Eu.value ? (E(), S("g", Ur, [C("text", {
|
|
4539
4539
|
class: "vue-data-ui-time-label",
|
|
4540
4540
|
"text-anchor": V.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : V.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
4541
4541
|
"font-size": B.value.xAxis,
|
|
@@ -4547,16 +4547,16 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4547
4547
|
animation: "none !important",
|
|
4548
4548
|
"pointer-events": "none"
|
|
4549
4549
|
},
|
|
4550
|
-
innerHTML: A(
|
|
4550
|
+
innerHTML: A(s)({
|
|
4551
4551
|
content: String(Eu.value.text),
|
|
4552
4552
|
fontSize: B.value.xAxis,
|
|
4553
4553
|
fill: V.value.chart.grid.labels.xAxisLabels.color,
|
|
4554
4554
|
x: 0,
|
|
4555
4555
|
y: 0
|
|
4556
4556
|
})
|
|
4557
|
-
}, null, 8, Wr)])) :
|
|
4558
|
-
nl.value.length && !H.value.isStacked ? (E(),
|
|
4559
|
-
e.yTop && e.show && isFinite(e.yTop) ? (E(),
|
|
4557
|
+
}, null, 8, Wr)])) : x("", !0),
|
|
4558
|
+
nl.value.length && !H.value.isStacked ? (E(), S("g", Gr, [(E(!0), S(y, null, O(nl.value, (e) => (E(), S("g", { key: e.id }, [
|
|
4559
|
+
e.yTop && e.show && isFinite(e.yTop) ? (E(), S("line", {
|
|
4560
4560
|
key: 0,
|
|
4561
4561
|
x1: e.x1,
|
|
4562
4562
|
y1: e.yTop,
|
|
@@ -4567,8 +4567,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4567
4567
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
4568
4568
|
"stroke-linecap": "round",
|
|
4569
4569
|
style: { animation: "none !important" }
|
|
4570
|
-
}, null, 8, Kr)) :
|
|
4571
|
-
e.yBottom && e.show && isFinite(e.yBottom) ? (E(),
|
|
4570
|
+
}, null, 8, Kr)) : x("", !0),
|
|
4571
|
+
e.yBottom && e.show && isFinite(e.yBottom) ? (E(), S("line", {
|
|
4572
4572
|
key: 1,
|
|
4573
4573
|
x1: e.x1,
|
|
4574
4574
|
y1: e.yBottom,
|
|
@@ -4579,24 +4579,24 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4579
4579
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
4580
4580
|
"stroke-linecap": "round",
|
|
4581
4581
|
style: { animation: "none !important" }
|
|
4582
|
-
}, null, 8, qr)) :
|
|
4583
|
-
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (E(),
|
|
4582
|
+
}, null, 8, qr)) : x("", !0),
|
|
4583
|
+
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (E(), S("rect", {
|
|
4584
4584
|
key: 2,
|
|
4585
4585
|
y: Math.min(e.yTop, e.yBottom),
|
|
4586
4586
|
x: e.x1,
|
|
4587
4587
|
width: J.value.width,
|
|
4588
|
-
height: A(
|
|
4589
|
-
fill: A(
|
|
4588
|
+
height: A(v)(e.areaHeight, 0),
|
|
4589
|
+
fill: A(f)(e.config.area.fill, e.config.area.opacity),
|
|
4590
4590
|
style: { animation: "none !important" }
|
|
4591
|
-
}, null, 8, Jr)) :
|
|
4592
|
-
e.config.label.text && e.show && isFinite(e._box.y) ? (E(),
|
|
4591
|
+
}, null, 8, Jr)) : x("", !0),
|
|
4592
|
+
e.config.label.text && e.show && isFinite(e._box.y) ? (E(), S("rect", it({
|
|
4593
4593
|
key: 3,
|
|
4594
4594
|
class: "vue-ui-xy-annotation-label-box"
|
|
4595
4595
|
}, { ref_for: !0 }, e._box, { style: {
|
|
4596
4596
|
animation: "none !important",
|
|
4597
4597
|
transition: "none !important"
|
|
4598
|
-
} }), null, 16)) :
|
|
4599
|
-
e.config.label.text && e.show && isFinite(e._text.y) ? (E(),
|
|
4598
|
+
} }), null, 16)) : x("", !0),
|
|
4599
|
+
e.config.label.text && e.show && isFinite(e._text.y) ? (E(), S("text", {
|
|
4600
4600
|
key: 4,
|
|
4601
4601
|
id: e.id,
|
|
4602
4602
|
class: "vue-ui-xy-annotation-label",
|
|
@@ -4605,32 +4605,32 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4605
4605
|
"font-size": e.config.label.fontSize,
|
|
4606
4606
|
fill: e.config.label.color,
|
|
4607
4607
|
"text-anchor": e.config.label.textAnchor
|
|
4608
|
-
}, dt(e.config.label.text), 9, Yr)) :
|
|
4609
|
-
]))), 128))])) :
|
|
4610
|
-
!wu.value && V.value.chart.timeTag.show && (G.value ? A(
|
|
4608
|
+
}, dt(e.config.label.text), 9, Yr)) : x("", !0)
|
|
4609
|
+
]))), 128))])) : x("", !0),
|
|
4610
|
+
!wu.value && V.value.chart.timeTag.show && (G.value ? A(h)(fu.value) : ![null, void 0].includes(R.value) || ![null, void 0].includes(I.value)) ? (E(), S("g", Xr, [(E(), S("foreignObject", {
|
|
4611
4611
|
x: mu(),
|
|
4612
4612
|
y: J.value?.bottom,
|
|
4613
4613
|
width: "200",
|
|
4614
4614
|
height: "40",
|
|
4615
4615
|
style: { overflow: "visible !important" }
|
|
4616
|
-
}, [
|
|
4616
|
+
}, [C("div", {
|
|
4617
4617
|
ref_key: "timeTagEl",
|
|
4618
4618
|
ref: lu,
|
|
4619
4619
|
class: "vue-ui-xy-time-tag",
|
|
4620
4620
|
style: T(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${V.value.chart.timeTag.backgroundColor};color:${V.value.chart.timeTag.color};font-size:${V.value.chart.timeTag.fontSize}px`),
|
|
4621
4621
|
innerHTML: vu.value
|
|
4622
|
-
}, null, 12, Qr)], 8, Zr)),
|
|
4623
|
-
cx: G.value && A(
|
|
4622
|
+
}, null, 12, Qr)], 8, Zr)), C("circle", {
|
|
4623
|
+
cx: G.value && A(h)(fu.value) ? ml({ x: fu.value }) : Oc((R.value === null ? 0 : R.value) || (I.value === null ? 0 : I.value)),
|
|
4624
4624
|
cy: J.value?.bottom,
|
|
4625
4625
|
r: V.value.chart.timeTag.circleMarker.radius,
|
|
4626
4626
|
fill: V.value.chart.timeTag.circleMarker.color
|
|
4627
|
-
}, null, 8, $r)])) :
|
|
4628
|
-
])) :
|
|
4629
|
-
po.value ? (E(),
|
|
4627
|
+
}, null, 8, $r)])) : x("", !0)
|
|
4628
|
+
])) : x("", !0),
|
|
4629
|
+
po.value ? (E(), S("rect", it({ key: 2 }, go.value, {
|
|
4630
4630
|
"data-start": U.value.start,
|
|
4631
4631
|
"data-end": U.value.end
|
|
4632
|
-
}), null, 16, ei)) :
|
|
4633
|
-
k(
|
|
4632
|
+
}), null, 16, ei)) : x("", !0),
|
|
4633
|
+
k(t.$slots, "svg", { svg: {
|
|
4634
4634
|
...Ha.value,
|
|
4635
4635
|
slicer: U.value,
|
|
4636
4636
|
isPrintingImg: A(_o) || A(vo) || Ca.value,
|
|
@@ -4642,16 +4642,16 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4642
4642
|
],
|
|
4643
4643
|
drawingArea: J.value
|
|
4644
4644
|
} }, void 0, !0)
|
|
4645
|
-
], 512)], 46, Mt)),
|
|
4645
|
+
], 512)], 46, Mt)), t.$slots.hint ? (E(), S("div", ti, [k(t.$slots, "hint", w(rt({
|
|
4646
4646
|
hint: V.value.a11y.translations.keyboardNavigation,
|
|
4647
4647
|
isVisible: Ju.value
|
|
4648
|
-
})), void 0, !0)])) :
|
|
4649
|
-
|
|
4650
|
-
(E(!0),
|
|
4648
|
+
})), void 0, !0)])) : x("", !0)]),
|
|
4649
|
+
t.$slots.watermark ? (E(), S("div", ni, [k(t.$slots, "watermark", w(rt({ isPrinting: A(_o) || A(vo) || Ca.value || wa.value })), void 0, !0)])) : x("", !0),
|
|
4650
|
+
(E(!0), S(y, null, O(Q.value, (e, t) => (E(), S(y, { key: `tag_line_${e.id}` }, [(E(!0), S(y, null, O(e.plots, (n, r) => (E(), S(y, { key: `tag_line_${t}_${r}` }, [[
|
|
4651
4651
|
I.value,
|
|
4652
4652
|
R.value,
|
|
4653
4653
|
ca.value
|
|
4654
|
-
].includes(r) && e.useTag && e.useTag === "end" && V.value.line.tag.followValue ? (E(),
|
|
4654
|
+
].includes(r) && e.useTag && e.useTag === "end" && V.value.line.tag.followValue ? (E(), S("div", {
|
|
4655
4655
|
key: 0,
|
|
4656
4656
|
ref_for: !0,
|
|
4657
4657
|
ref: (e) => $o(t, r, e, "right", "line"),
|
|
@@ -4659,14 +4659,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4659
4659
|
"data-tag": "right",
|
|
4660
4660
|
style: T({
|
|
4661
4661
|
position: "fixed",
|
|
4662
|
-
top: A(
|
|
4662
|
+
top: A(p)({
|
|
4663
4663
|
svgElement: L.value,
|
|
4664
4664
|
x: J.value?.right + V.value.line.tag.fontSize / 1.5,
|
|
4665
4665
|
y: n.y,
|
|
4666
4666
|
element: ya.value[`${t}_${r}_right_line`],
|
|
4667
4667
|
position: "right"
|
|
4668
4668
|
})?.top + "px",
|
|
4669
|
-
left: A(
|
|
4669
|
+
left: A(p)({
|
|
4670
4670
|
svgElement: L.value,
|
|
4671
4671
|
x: J.value?.right + V.value.line.tag.fontSize / 1.5,
|
|
4672
4672
|
y: n.y,
|
|
@@ -4681,22 +4681,22 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4681
4681
|
fontSize: V.value.line.tag.fontSize + "px",
|
|
4682
4682
|
opacity: 1
|
|
4683
4683
|
})
|
|
4684
|
-
}, [(E(),
|
|
4684
|
+
}, [(E(), S("svg", ri, [C("path", {
|
|
4685
4685
|
d: "M 0,10 10,0 10,20 Z",
|
|
4686
4686
|
fill: e.color,
|
|
4687
4687
|
stroke: "none"
|
|
4688
|
-
}, null, 8, ii)])),
|
|
4688
|
+
}, null, 8, ii)])), C("div", {
|
|
4689
4689
|
class: "vue-ui-xy-tag-content",
|
|
4690
|
-
innerHTML: A(
|
|
4690
|
+
innerHTML: A(g)(V.value.line.tag.formatter, n.value, e.name, {
|
|
4691
4691
|
datapoint: n,
|
|
4692
4692
|
seriesIndex: r,
|
|
4693
4693
|
serieName: e.name
|
|
4694
4694
|
})
|
|
4695
|
-
}, null, 8, ai)], 4)) :
|
|
4695
|
+
}, null, 8, ai)], 4)) : x("", !0), [
|
|
4696
4696
|
I.value,
|
|
4697
4697
|
R.value,
|
|
4698
4698
|
ca.value
|
|
4699
|
-
].includes(r) && e.useTag && e.useTag === "start" && V.value.line.tag.followValue ? (E(),
|
|
4699
|
+
].includes(r) && e.useTag && e.useTag === "start" && V.value.line.tag.followValue ? (E(), S("div", {
|
|
4700
4700
|
key: 1,
|
|
4701
4701
|
ref_for: !0,
|
|
4702
4702
|
ref: (e) => $o(t, r, e, "left", "line"),
|
|
@@ -4704,14 +4704,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4704
4704
|
"data-tag": "left",
|
|
4705
4705
|
style: T({
|
|
4706
4706
|
position: "fixed",
|
|
4707
|
-
top: A(
|
|
4707
|
+
top: A(p)({
|
|
4708
4708
|
svgElement: L.value,
|
|
4709
4709
|
x: J.value?.left - V.value.line.tag.fontSize / 1.5,
|
|
4710
4710
|
y: n.y,
|
|
4711
4711
|
element: ya.value[`${t}_${r}_left_line`],
|
|
4712
4712
|
position: "left"
|
|
4713
4713
|
})?.top + "px",
|
|
4714
|
-
left: A(
|
|
4714
|
+
left: A(p)({
|
|
4715
4715
|
svgElement: L.value,
|
|
4716
4716
|
x: J.value?.left - V.value.line.tag.fontSize / 1.5,
|
|
4717
4717
|
y: n.y,
|
|
@@ -4726,23 +4726,23 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4726
4726
|
fontSize: V.value.line.tag.fontSize + "px",
|
|
4727
4727
|
opacity: 1
|
|
4728
4728
|
})
|
|
4729
|
-
}, [(E(),
|
|
4729
|
+
}, [(E(), S("svg", oi, [C("path", {
|
|
4730
4730
|
d: "M 0,0 10,10 0,20 Z",
|
|
4731
4731
|
fill: e.color,
|
|
4732
4732
|
stroke: "none"
|
|
4733
|
-
}, null, 8, si)])),
|
|
4733
|
+
}, null, 8, si)])), C("div", {
|
|
4734
4734
|
class: "vue-ui-xy-tag-content",
|
|
4735
|
-
innerHTML: A(
|
|
4735
|
+
innerHTML: A(g)(V.value.line.tag.formatter, n.value, e.name, {
|
|
4736
4736
|
datapoint: n,
|
|
4737
4737
|
seriesIndex: r,
|
|
4738
4738
|
serieName: e.name
|
|
4739
4739
|
})
|
|
4740
|
-
}, null, 8, ci)], 4)) :
|
|
4741
|
-
(E(!0),
|
|
4740
|
+
}, null, 8, ci)], 4)) : x("", !0)], 64))), 128))], 64))), 128)),
|
|
4741
|
+
(E(!0), S(y, null, O($.value, (e, t) => (E(), S(y, { key: `tag_plot_${e.id}` }, [(E(!0), S(y, null, O(e.plots, (n, r) => (E(), S(y, { key: `tag_plot_${t}_${r}` }, [[
|
|
4742
4742
|
I.value,
|
|
4743
4743
|
R.value,
|
|
4744
4744
|
ca.value
|
|
4745
|
-
].includes(r) && e.useTag && e.useTag === "end" && V.value.plot.tag.followValue ? (E(),
|
|
4745
|
+
].includes(r) && e.useTag && e.useTag === "end" && V.value.plot.tag.followValue ? (E(), S("div", {
|
|
4746
4746
|
key: 0,
|
|
4747
4747
|
ref_for: !0,
|
|
4748
4748
|
ref: (e) => $o(t, r, e, "right", "plot"),
|
|
@@ -4750,14 +4750,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4750
4750
|
"data-tag": "right",
|
|
4751
4751
|
style: T({
|
|
4752
4752
|
position: "fixed",
|
|
4753
|
-
top: A(
|
|
4753
|
+
top: A(p)({
|
|
4754
4754
|
svgElement: L.value,
|
|
4755
4755
|
x: J.value?.right + V.value.plot.tag.fontSize / 1.5,
|
|
4756
4756
|
y: n.y,
|
|
4757
4757
|
element: ya.value[`${t}_${r}_right_plot`],
|
|
4758
4758
|
position: "right"
|
|
4759
4759
|
})?.top + "px",
|
|
4760
|
-
left: A(
|
|
4760
|
+
left: A(p)({
|
|
4761
4761
|
svgElement: L.value,
|
|
4762
4762
|
x: J.value?.right + V.value.plot.tag.fontSize / 1.5,
|
|
4763
4763
|
y: n.y,
|
|
@@ -4772,22 +4772,22 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4772
4772
|
fontSize: V.value.plot.tag.fontSize + "px",
|
|
4773
4773
|
opacity: 1
|
|
4774
4774
|
})
|
|
4775
|
-
}, [(E(),
|
|
4775
|
+
}, [(E(), S("svg", li, [C("path", {
|
|
4776
4776
|
d: "M 0,10 10,0 10,20 Z",
|
|
4777
4777
|
fill: e.color,
|
|
4778
4778
|
stroke: "none"
|
|
4779
|
-
}, null, 8, ui)])),
|
|
4779
|
+
}, null, 8, ui)])), C("div", {
|
|
4780
4780
|
class: "vue-ui-xy-tag-content",
|
|
4781
|
-
innerHTML: A(
|
|
4781
|
+
innerHTML: A(g)(V.value.plot.tag.formatter, n.value, e.name, {
|
|
4782
4782
|
datapoint: n,
|
|
4783
4783
|
seriesIndex: r,
|
|
4784
4784
|
serieName: e.name
|
|
4785
4785
|
})
|
|
4786
|
-
}, null, 8, di)], 4)) :
|
|
4786
|
+
}, null, 8, di)], 4)) : x("", !0), [
|
|
4787
4787
|
I.value,
|
|
4788
4788
|
R.value,
|
|
4789
4789
|
ca.value
|
|
4790
|
-
].includes(r) && e.useTag && e.useTag === "start" && V.value.plot.tag.followValue ? (E(),
|
|
4790
|
+
].includes(r) && e.useTag && e.useTag === "start" && V.value.plot.tag.followValue ? (E(), S("div", {
|
|
4791
4791
|
key: 1,
|
|
4792
4792
|
ref_for: !0,
|
|
4793
4793
|
ref: (e) => $o(t, r, e, "left", "plot"),
|
|
@@ -4795,14 +4795,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4795
4795
|
"data-tag": "left",
|
|
4796
4796
|
style: T({
|
|
4797
4797
|
position: "fixed",
|
|
4798
|
-
top: A(
|
|
4798
|
+
top: A(p)({
|
|
4799
4799
|
svgElement: L.value,
|
|
4800
4800
|
x: J.value?.left - V.value.plot.tag.fontSize / 1.5,
|
|
4801
4801
|
y: n.y,
|
|
4802
4802
|
element: ya.value[`${t}_${r}_left_plot`],
|
|
4803
4803
|
position: "left"
|
|
4804
4804
|
})?.top + "px",
|
|
4805
|
-
left: A(
|
|
4805
|
+
left: A(p)({
|
|
4806
4806
|
svgElement: L.value,
|
|
4807
4807
|
x: J.value?.left - V.value.plot.tag.fontSize / 1.5,
|
|
4808
4808
|
y: n.y,
|
|
@@ -4817,19 +4817,19 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4817
4817
|
fontSize: V.value.plot.tag.fontSize + "px",
|
|
4818
4818
|
opacity: 1
|
|
4819
4819
|
})
|
|
4820
|
-
}, [(E(),
|
|
4820
|
+
}, [(E(), S("svg", fi, [C("path", {
|
|
4821
4821
|
d: "M 0,0 10,10 0,20 Z",
|
|
4822
4822
|
fill: e.color,
|
|
4823
4823
|
stroke: "none"
|
|
4824
|
-
}, null, 8, pi)])),
|
|
4824
|
+
}, null, 8, pi)])), C("div", {
|
|
4825
4825
|
class: "vue-ui-xy-tag-content",
|
|
4826
|
-
innerHTML: A(
|
|
4826
|
+
innerHTML: A(g)(V.value.plot.tag.formatter, n.value, e.name, {
|
|
4827
4827
|
datapoint: n,
|
|
4828
4828
|
seriesIndex: r,
|
|
4829
4829
|
serieName: e.name
|
|
4830
4830
|
})
|
|
4831
|
-
}, null, 8, mi)], 4)) :
|
|
4832
|
-
V.value.chart.zoom.show && uo.value > 6 && Xa.value && ys.value ? (E(),
|
|
4831
|
+
}, null, 8, mi)], 4)) : x("", !0)], 64))), 128))], 64))), 128)),
|
|
4832
|
+
V.value.chart.zoom.show && uo.value > 6 && Xa.value && ys.value ? (E(), Ze(Ke, {
|
|
4833
4833
|
key: 6,
|
|
4834
4834
|
ref_key: "chartSlicer",
|
|
4835
4835
|
ref: Vi,
|
|
@@ -4889,29 +4889,29 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4889
4889
|
handleFill: V.value.chart.zoom.minimap.handleFill,
|
|
4890
4890
|
handleWidth: V.value.chart.zoom.minimap.handleWidth,
|
|
4891
4891
|
isCursorPointer: Za.value,
|
|
4892
|
-
onFutureEnd:
|
|
4893
|
-
onFutureStart:
|
|
4892
|
+
onFutureEnd: n[1] ||= (e) => mo("end", e),
|
|
4893
|
+
onFutureStart: n[2] ||= (e) => mo("start", e),
|
|
4894
4894
|
onReset: Ns,
|
|
4895
4895
|
onTrapMouse: fs,
|
|
4896
4896
|
onTrapMouseValue: ps,
|
|
4897
4897
|
"onUpdate:end": Ms,
|
|
4898
4898
|
"onUpdate:start": js
|
|
4899
4899
|
}, {
|
|
4900
|
-
"reset-action": j(({ reset: e }) => [k(
|
|
4900
|
+
"reset-action": j(({ reset: e }) => [k(t.$slots, "reset-action", w(rt({ reset: e })), void 0, !0)]),
|
|
4901
4901
|
_: 3
|
|
4902
|
-
}, 8, /* @__PURE__ */ "uuid.allMinimaps.background.borderColor.customFormat.cutNullValues.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.useResetSlot.immediate.inputColor.isPreview.labelLeft.labelRight.max.min.precision.useValueRange.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapLineColor.minimapMerged.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.minimapSelectionRadius.preciseLabels.refreshStartPoint.refreshEndPoint.selectColor.selectedSeries.smoothMinimap.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.minScale.maxScale.maxWidth.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth.isCursorPointer".split("."))) :
|
|
4903
|
-
|
|
4904
|
-
xa.value && (V.value.chart.legend.show ||
|
|
4902
|
+
}, 8, /* @__PURE__ */ "uuid.allMinimaps.background.borderColor.customFormat.cutNullValues.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.useResetSlot.immediate.inputColor.isPreview.labelLeft.labelRight.max.min.precision.useValueRange.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapLineColor.minimapMerged.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.minimapSelectionRadius.preciseLabels.refreshStartPoint.refreshEndPoint.selectColor.selectedSeries.smoothMinimap.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.minScale.maxScale.maxWidth.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth.isCursorPointer".split("."))) : x("", !0),
|
|
4903
|
+
C("div", { id: `legend-bottom-${F.value}` }, null, 8, hi),
|
|
4904
|
+
xa.value && (V.value.chart.legend.show || t.$slots.legend) ? (E(), Ze(Xe, {
|
|
4905
4905
|
key: 7,
|
|
4906
4906
|
to: V.value.chart.legend.position === "top" ? `#legend-top-${F.value}` : `#legend-bottom-${F.value}`
|
|
4907
|
-
}, [
|
|
4907
|
+
}, [C("div", {
|
|
4908
4908
|
ref_key: "chartLegend",
|
|
4909
4909
|
ref: Hi
|
|
4910
|
-
}, [k(
|
|
4910
|
+
}, [k(t.$slots, "legend", { legend: Lo.value }, () => [V.value.chart.legend.show ? (E(), S("div", {
|
|
4911
4911
|
key: 0,
|
|
4912
4912
|
class: "vue-ui-xy-legend",
|
|
4913
4913
|
style: T({ fontSize: `var(--legend-font-size, ${V.value.chart.legend.fontSize ?? 14}px)` })
|
|
4914
|
-
}, [V.value.chart.legend.selectAllToggle.show && Lo.value.length > 2 && !A(no) ? (E(),
|
|
4914
|
+
}, [V.value.chart.legend.selectAllToggle.show && Lo.value.length > 2 && !A(no) ? (E(), Ze(Je, {
|
|
4915
4915
|
key: 0,
|
|
4916
4916
|
backgroundColor: V.value.chart.legend.selectAllToggle.backgroundColor,
|
|
4917
4917
|
color: V.value.chart.legend.selectAllToggle.color,
|
|
@@ -4923,8 +4923,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4923
4923
|
"color",
|
|
4924
4924
|
"fontSize",
|
|
4925
4925
|
"checked"
|
|
4926
|
-
])) :
|
|
4927
|
-
key: `div_legend_item_${
|
|
4926
|
+
])) : x("", !0), (E(!0), S(y, null, O(Lo.value, (e, n) => (E(), S("div", {
|
|
4927
|
+
key: `div_legend_item_${n}`,
|
|
4928
4928
|
onClick: (t) => hc(e),
|
|
4929
4929
|
onKeydown: (t) => pc(t, e),
|
|
4930
4930
|
role: "button",
|
|
@@ -4935,7 +4935,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4935
4935
|
"vue-ui-xy-legend-item-segregated": ua.value.has(e.id)
|
|
4936
4936
|
}),
|
|
4937
4937
|
style: T({ cursor: Za.value ? "pointer" : "default" })
|
|
4938
|
-
}, [ia.value[e.type] === "line" ? (E(),
|
|
4938
|
+
}, [ia.value[e.type] === "line" ? (E(), S("svg", _i, [C("rect", {
|
|
4939
4939
|
x: "0",
|
|
4940
4940
|
y: "7.5",
|
|
4941
4941
|
rx: "1.5",
|
|
@@ -4944,7 +4944,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4944
4944
|
height: "3",
|
|
4945
4945
|
width: "20",
|
|
4946
4946
|
fill: e.color
|
|
4947
|
-
}, null, 8, vi),
|
|
4947
|
+
}, null, 8, vi), et(We, {
|
|
4948
4948
|
plot: {
|
|
4949
4949
|
x: 10,
|
|
4950
4950
|
y: 9
|
|
@@ -4965,7 +4965,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4965
4965
|
"color",
|
|
4966
4966
|
"shape",
|
|
4967
4967
|
"stroke"
|
|
4968
|
-
])])) : ia.value[e.type] === "bar" ? (E(),
|
|
4968
|
+
])])) : ia.value[e.type] === "bar" ? (E(), S("svg", yi, [ia.value[e.type] === "bar" && t.$slots.pattern ? (E(), S("rect", {
|
|
4969
4969
|
key: 0,
|
|
4970
4970
|
x: "4",
|
|
4971
4971
|
y: "4",
|
|
@@ -4974,7 +4974,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4974
4974
|
width: "32",
|
|
4975
4975
|
stroke: "none",
|
|
4976
4976
|
fill: e.color
|
|
4977
|
-
}, null, 8, bi)) :
|
|
4977
|
+
}, null, 8, bi)) : x("", !0), ia.value[e.type] === "bar" ? (E(), S("rect", {
|
|
4978
4978
|
key: 1,
|
|
4979
4979
|
x: "4",
|
|
4980
4980
|
y: "4",
|
|
@@ -4982,8 +4982,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4982
4982
|
height: "32",
|
|
4983
4983
|
width: "32",
|
|
4984
4984
|
stroke: "none",
|
|
4985
|
-
fill:
|
|
4986
|
-
}, null, 8, xi)) :
|
|
4985
|
+
fill: t.$slots.pattern ? `url(#pattern_${F.value}_${e.slotAbsoluteIndex})` : e.color
|
|
4986
|
+
}, null, 8, xi)) : x("", !0)])) : (E(), S("svg", Si, [et(We, {
|
|
4987
4987
|
plot: {
|
|
4988
4988
|
x: 6,
|
|
4989
4989
|
y: 6
|
|
@@ -4998,14 +4998,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4998
4998
|
"hexagon",
|
|
4999
4999
|
"star"
|
|
5000
5000
|
].includes(e.shape) ? e.shape : "circle"
|
|
5001
|
-
}, null, 8, ["color", "shape"])])),
|
|
5002
|
-
|
|
5001
|
+
}, null, 8, ["color", "shape"])])), C("span", { style: T(`color:${V.value.chart.legend.color}`) }, dt(e.name), 5)], 46, gi))), 128))], 4)) : x("", !0)], !0)], 512)], 8, ["to"])) : x("", !0),
|
|
5002
|
+
t.$slots.source ? (E(), S("div", {
|
|
5003
5003
|
key: 8,
|
|
5004
5004
|
ref_key: "source",
|
|
5005
5005
|
ref: Ui,
|
|
5006
5006
|
dir: "auto"
|
|
5007
|
-
}, [k(
|
|
5008
|
-
|
|
5007
|
+
}, [k(t.$slots, "source", {}, void 0, !0)], 512)) : x("", !0),
|
|
5008
|
+
et(A(Ei), {
|
|
5009
5009
|
teleportTo: V.value.chart.tooltip.teleportTo,
|
|
5010
5010
|
show: H.value.showTooltip && sa.value,
|
|
5011
5011
|
backgroundColor: V.value.chart.tooltip.backgroundColor,
|
|
@@ -5018,7 +5018,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
5018
5018
|
position: V.value.chart.tooltip.position,
|
|
5019
5019
|
offsetX: V.value.chart.tooltip.offsetX,
|
|
5020
5020
|
offsetY: V.value.chart.tooltip.offsetY,
|
|
5021
|
-
parent:
|
|
5021
|
+
parent: t.$refs.chart,
|
|
5022
5022
|
content: Hl.value,
|
|
5023
5023
|
isFullscreen: oa.value,
|
|
5024
5024
|
isCustom: V.value.chart.tooltip.customFormat && typeof V.value.chart.tooltip.customFormat == "function",
|
|
@@ -5029,9 +5029,9 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
5029
5029
|
isA11yMode: Ea.value != null,
|
|
5030
5030
|
a11yPosition: Da.value
|
|
5031
5031
|
}, {
|
|
5032
|
-
"tooltip-before": j(() => [k(
|
|
5033
|
-
tooltip: j(() => [k(
|
|
5034
|
-
"tooltip-after": j(() => [k(
|
|
5032
|
+
"tooltip-before": j(() => [k(t.$slots, "tooltip-before", w(rt({ ...Nl.value })), void 0, !0)]),
|
|
5033
|
+
tooltip: j(() => [k(t.$slots, "tooltip", w(rt({ ...Nl.value })), void 0, !0)]),
|
|
5034
|
+
"tooltip-after": j(() => [k(t.$slots, "tooltip-after", w(rt({ ...Nl.value })), void 0, !0)]),
|
|
5035
5035
|
_: 3
|
|
5036
5036
|
}, 8, [
|
|
5037
5037
|
"teleportTo",
|
|
@@ -5057,26 +5057,26 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
5057
5057
|
"isA11yMode",
|
|
5058
5058
|
"a11yPosition"
|
|
5059
5059
|
]),
|
|
5060
|
-
Xa.value && V.value.chart.userOptions.buttons.table ? (E(),
|
|
5060
|
+
Xa.value && V.value.chart.userOptions.buttons.table ? (E(), Ze(lt(Ru.value.component), it({ key: 9 }, Ru.value.props, {
|
|
5061
5061
|
ref_key: "tableUnit",
|
|
5062
5062
|
ref: Sa,
|
|
5063
5063
|
onClose: zu
|
|
5064
|
-
}),
|
|
5065
|
-
content: j(() => [
|
|
5064
|
+
}), Qe({
|
|
5065
|
+
content: j(() => [C("div", { style: T(`${A(_o) || V.value.table.useDialog ? "" : "max-height:400px"};${V.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${V.value.table.useDialog ? "" : "margin-top:48px"}`) }, [C("div", Ci, [_t(C("input", {
|
|
5066
5066
|
type: "checkbox",
|
|
5067
|
-
"onUpdate:modelValue":
|
|
5068
|
-
}, null, 512), [[mt, ma.value]]),
|
|
5069
|
-
onClick:
|
|
5067
|
+
"onUpdate:modelValue": n[4] ||= (e) => ma.value = e
|
|
5068
|
+
}, null, 512), [[mt, ma.value]]), C("div", {
|
|
5069
|
+
onClick: n[5] ||= (e) => ma.value = !ma.value,
|
|
5070
5070
|
style: T({ cursor: Za.value ? "pointer" : "default" })
|
|
5071
|
-
}, [
|
|
5071
|
+
}, [et(A(Oi), {
|
|
5072
5072
|
name: "chartLine",
|
|
5073
5073
|
size: 20,
|
|
5074
5074
|
stroke: V.value.chart.color
|
|
5075
|
-
}, null, 8, ["stroke"])], 4)]), ma.value ? (E(),
|
|
5075
|
+
}, null, 8, ["stroke"])], 4)]), ma.value ? (E(), Ze(A(ki), {
|
|
5076
5076
|
key: `sparkline_${ha.value}`,
|
|
5077
5077
|
dataset: wc.value,
|
|
5078
5078
|
config: Tc.value
|
|
5079
|
-
}, null, 8, ["dataset", "config"])) : (E(),
|
|
5079
|
+
}, null, 8, ["dataset", "config"])) : (E(), Ze(A(Ti), {
|
|
5080
5080
|
key: `table_${fa.value}`,
|
|
5081
5081
|
colNames: Ql.value.colNames,
|
|
5082
5082
|
head: Ql.value.head,
|
|
@@ -5086,8 +5086,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
5086
5086
|
withCloseButton: !V.value.table.useDialog,
|
|
5087
5087
|
onClose: zu
|
|
5088
5088
|
}, {
|
|
5089
|
-
th: j(({ th: e }) => [
|
|
5090
|
-
td: j(({ td: e }) => [
|
|
5089
|
+
th: j(({ th: e }) => [C("div", { innerHTML: e }, null, 8, wi)]),
|
|
5090
|
+
td: j(({ td: e }) => [$e(dt(isNaN(Number(e)) ? e : A(Se)({
|
|
5091
5091
|
p: V.value.chart.labels.prefix,
|
|
5092
5092
|
v: e,
|
|
5093
5093
|
s: V.value.chart.labels.suffix,
|
|
@@ -5105,21 +5105,21 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
5105
5105
|
_: 2
|
|
5106
5106
|
}, [V.value.table.useDialog ? {
|
|
5107
5107
|
name: "title",
|
|
5108
|
-
fn: j(() => [
|
|
5108
|
+
fn: j(() => [$e(dt(Ru.value.title), 1)]),
|
|
5109
5109
|
key: "0"
|
|
5110
5110
|
} : void 0, V.value.table.useDialog ? {
|
|
5111
5111
|
name: "actions",
|
|
5112
|
-
fn: j(() => [
|
|
5112
|
+
fn: j(() => [C("button", {
|
|
5113
5113
|
tabindex: "0",
|
|
5114
5114
|
class: "vue-ui-user-options-button",
|
|
5115
|
-
onClick:
|
|
5116
|
-
}, [
|
|
5115
|
+
onClick: n[3] ||= (e) => $l(V.value.chart.userOptions.callbacks.csv)
|
|
5116
|
+
}, [et(A(Oi), {
|
|
5117
5117
|
name: "fileCsv",
|
|
5118
5118
|
stroke: Ru.value.props.color
|
|
5119
5119
|
}, null, 8, ["stroke"])])]),
|
|
5120
5120
|
key: "1"
|
|
5121
|
-
} : void 0]), 1040)) :
|
|
5122
|
-
k(
|
|
5121
|
+
} : void 0]), 1040)) : x("", !0),
|
|
5122
|
+
k(t.$slots, "skeleton", {}, () => [A(no) ? (E(), Ze(Fe, { key: 0 })) : x("", !0)], !0)
|
|
5123
5123
|
], 46, Ot));
|
|
5124
5124
|
}
|
|
5125
5125
|
}, [["__scopeId", "data-v-e5c1dd1d"]]);
|