vue-data-ui 3.22.0 → 3.22.2
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-_pDGXl76.js → Arrow-BGhJI-qh.js} +1 -1
- package/dist/{BaseDraggableDialog-O8jn9Lvi.js → BaseDraggableDialog-a9xCKjW-.js} +2 -2
- package/dist/{BaseIcon-CWXbczu_.js → BaseIcon-DEtwcvEH.js} +1 -1
- package/dist/{BaseLegendToggle-CUYal8mC.js → BaseLegendToggle-B-lM0iV1.js} +1 -1
- package/dist/{BaseZoomControls-JwSGzoKi.js → BaseZoomControls-BjjT6vtB.js} +2 -2
- package/dist/{ColorPicker-CCqmzGGo.js → ColorPicker-DMLahA2S.js} +2 -2
- package/dist/{DataTable-G9aclxhk.js → DataTable-DJZgdnIn.js} +2 -2
- package/dist/{Legend-CAStwHdx.js → Legend-BVDhEEsC.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BLy8zMox.js → NonSvgPenAndPaper-Dwq_M6Bz.js} +13 -13
- package/dist/{PackageVersion-DxBQctV8.js → PackageVersion-Dx81ZIAL.js} +1 -1
- package/dist/{PenAndPaper-z1woaB1V.js → PenAndPaper-DJIIG6dv.js} +13 -13
- package/dist/{Shape-BubavoqO.js → Shape-C5OvuwII.js} +1 -1
- package/dist/{Slicer-JCOpjPU7.js → Slicer-ClR833cP.js} +2 -2
- package/dist/{SlicerPreview-BA_RDgVn.js → SlicerPreview-CAhqG_ZQ.js} +12 -12
- package/dist/{SparkTooltip-DMFXQmFi.js → SparkTooltip-DTzo8Sah.js} +6 -6
- package/dist/{Title-DH6G8_cZ.js → Title-CVYf1f8m.js} +1 -1
- package/dist/{Tooltip-979Ytd8R.js → Tooltip-BmGCBJuU.js} +1 -1
- package/dist/{UserOptions-rx9hUnOy.js → UserOptions-xqbNpHi2.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-CtV3uxDJ.js → dom-to-png-rjAIVHxa.js} +1 -1
- package/dist/exposedLib-CffbQxjN.js +19 -0
- package/dist/{img-C_RNNswI.js → img-BCAOkqfM.js} +1 -1
- package/dist/{labelUtils-Bycs-017.js → labelUtils-C0D1tjig.js} +1 -1
- package/dist/{lib-AJRHFE5U.js → lib-CXicicWN.js} +155 -126
- package/dist/{package-0oRlvBuX.js → package-CILLITOI.js} +1 -1
- package/dist/{pdf-CdX23zf1.js → pdf-ChYv2jb6.js} +1 -1
- package/dist/{render-common-DSiH7qj-.js → render-common-bMAFQ_qf.js} +2 -2
- 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 +7 -10
- package/dist/{useAutoSizeLabelsInsideViewbox-kjVKQz36.js → useAutoSizeLabelsInsideViewbox-B4-0yo3K.js} +1 -1
- package/dist/{useConfig-Br1uzq_L.js → useConfig-Bf_EBbe3.js} +4 -1
- package/dist/{useNestedProp-DtcXIg7n.js → useNestedProp-APyFoLCQ.js} +1 -1
- package/dist/{useObjectBindings-CxQ6A5pi.js → useObjectBindings-Byts-nf-.js} +1 -1
- package/dist/{usePrinter-6n2MzVyV.js → usePrinter-Dng0UK-G.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-DoViN_4r.js → vue-data-ui-DD-txoS1.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-DxfNdF2e.js +1757 -0
- package/dist/{vue-ui-accordion-HvsT8_RM.js → vue-ui-accordion-Di_givzQ.js} +4 -4
- package/dist/vue-ui-age-pyramid-CTwMfsqS.js +1238 -0
- package/dist/{vue-ui-annotator-7s5ly6XJ.js → vue-ui-annotator-tRkLFMQ9.js} +60 -60
- package/dist/{vue-ui-bullet-B-bWGz6d.js → vue-ui-bullet-9gtGJaGb.js} +23 -23
- package/dist/{vue-ui-bump-DM-hF-AK.js → vue-ui-bump-BJ5O8Mps.js} +400 -400
- package/dist/{vue-ui-candlestick-BfOvntqR.js → vue-ui-candlestick-CJ_VVYbJ.js} +50 -50
- package/dist/vue-ui-carousel-table-8s8BSy-K.js +455 -0
- package/dist/vue-ui-chestnut-D3-ck2h2.js +2010 -0
- package/dist/vue-ui-chord-1BitQtEw.js +1391 -0
- package/dist/{vue-ui-circle-pack-BBaRLELd.js → vue-ui-circle-pack-DVMhDFKU.js} +44 -44
- package/dist/{vue-ui-cursor-DWlKtcab.js → vue-ui-cursor-D7yh10hX.js} +61 -61
- package/dist/{vue-ui-dag-BAKU4jBj.js → vue-ui-dag--LFEAAf_.js} +18 -18
- package/dist/{vue-ui-dashboard-DE4R55nU.js → vue-ui-dashboard-COeO878g.js} +70 -70
- package/dist/{vue-ui-digits-B416Mj46.js → vue-ui-digits-C50FVr7C.js} +4 -4
- package/dist/{vue-ui-donut-BuGSF4pM.js → vue-ui-donut-BzKXqQA2.js} +160 -160
- package/dist/{vue-ui-donut-BugVAUHv.js → vue-ui-donut-NHjQzFO5.js} +474 -474
- package/dist/vue-ui-donut-evolution-lPkwit2C.js +1510 -0
- package/dist/vue-ui-dumbbell-hlEfvbbf.js +1530 -0
- package/dist/{vue-ui-flow-BoEP6hmg.js → vue-ui-flow-Bg_OSszc.js} +43 -43
- package/dist/vue-ui-funnel-B_bK0jJB.js +777 -0
- package/dist/{vue-ui-galaxy-CB5F8Q-u.js → vue-ui-galaxy-WVCUzcYc.js} +301 -301
- package/dist/vue-ui-gauge-Cqeko0wA.js +920 -0
- package/dist/{vue-ui-geo-BAy4kNv-.js → vue-ui-geo-DtzXRvmx.js} +22 -22
- package/dist/{vue-ui-gizmo-DjA8cqcl.js → vue-ui-gizmo-hIFd7qck.js} +4 -4
- package/dist/{vue-ui-heatmap-CMlxUI7Q.js → vue-ui-heatmap-yPlwc3l_.js} +95 -95
- package/dist/vue-ui-history-plot-BGmcDg2w.js +1554 -0
- package/dist/{vue-ui-horizontal-bar-XgzEVwOK.js → vue-ui-horizontal-bar-CJciNHpT.js} +264 -264
- package/dist/{vue-ui-kpi-B5Lu5U1S.js → vue-ui-kpi-DmSe1QGb.js} +4 -4
- package/dist/{vue-ui-mini-loader-CyYpLcrt.js → vue-ui-mini-loader-CqxI6DwN.js} +3 -3
- package/dist/{vue-ui-molecule-DzpgAmZn.js → vue-ui-molecule-w-94Uktn.js} +181 -181
- package/dist/{vue-ui-mood-radar-DMgYQtOw.js → vue-ui-mood-radar-B3OGWGHR.js} +29 -29
- package/dist/{vue-ui-nested-donuts-BHX0QqvR.js → vue-ui-nested-donuts-Dv_yE5EV.js} +211 -211
- package/dist/{vue-ui-onion-CYh7tdS0.js → vue-ui-onion-BQbI0Vxd.js} +34 -34
- package/dist/{vue-ui-parallel-coordinate-plot-BTaG92hV.js → vue-ui-parallel-coordinate-plot-ColST3Jj.js} +40 -40
- package/dist/vue-ui-quadrant-BB7qdXK0.js +1978 -0
- package/dist/{vue-ui-quick-chart-CHSUGLTx.js → vue-ui-quick-chart-CGDeo3Fx.js} +358 -358
- package/dist/vue-ui-radar-DqDn14DL.js +1281 -0
- package/dist/{vue-ui-rating-BoBLJm55.js → vue-ui-rating-ChDwpol2.js} +34 -34
- package/dist/vue-ui-relation-circle-BvfZqcK0.js +924 -0
- package/dist/{vue-ui-ridgeline-q_UhtM4M.js → vue-ui-ridgeline-Cq8z57xB.js} +219 -219
- package/dist/{vue-ui-rings-VOjUZu2b.js → vue-ui-rings-Ds-sgNPK.js} +36 -36
- package/dist/{vue-ui-scatter-DETMofE2.js → vue-ui-scatter-BgOVUzQ3.js} +75 -75
- package/dist/{vue-ui-skeleton-D36VILNm.js → vue-ui-skeleton-DJ5KAbfV.js} +42 -42
- package/dist/{vue-ui-smiley-CPbUSUTQ.js → vue-ui-smiley-fFrNX-Gl.js} +17 -17
- package/dist/{vue-ui-spark-trend-XpEbgNeK.js → vue-ui-spark-trend-D6OBWxmg.js} +92 -92
- package/dist/{vue-ui-sparkbar-Dq1hnBhL.js → vue-ui-sparkbar-CtCP8O44.js} +78 -78
- package/dist/{vue-ui-sparkgauge-CbAakuhB.js → vue-ui-sparkgauge-CZDkyViI.js} +38 -38
- package/dist/vue-ui-sparkhistogram-DgruLf33.js +560 -0
- package/dist/vue-ui-sparkline-CJKE7Xcl.js +1547 -0
- package/dist/{vue-ui-sparkstackbar-OprYrGQQ.js → vue-ui-sparkstackbar-BSV0M-2u.js} +162 -162
- package/dist/{vue-ui-stackbar-Bt0FKlf7.js → vue-ui-stackbar-pnlYCnTj.js} +67 -67
- package/dist/vue-ui-stackline-DS_MPmc1.js +2398 -0
- package/dist/{vue-ui-strip-plot-DdzflSOm.js → vue-ui-strip-plot-DSKOrJZX.js} +49 -49
- package/dist/{vue-ui-table-BZbLau0d.js → vue-ui-table-c1FPEwLM.js} +87 -87
- package/dist/{vue-ui-table-heatmap-DX80uRHe.js → vue-ui-table-heatmap-CMQJXnP8.js} +17 -17
- package/dist/vue-ui-table-sparkline-CAS9Pk60.js +712 -0
- package/dist/vue-ui-thermometer-w3eeJv9s.js +763 -0
- package/dist/{vue-ui-timer-smc39MBP.js → vue-ui-timer-CSP48eS-.js} +6 -6
- package/dist/{vue-ui-tiremarks-MwPUc9H4.js → vue-ui-tiremarks-DJvXj1P3.js} +19 -19
- package/dist/vue-ui-treemap-BaOMXTR1.js +1587 -0
- package/dist/vue-ui-waffle-Bo22Ph8n.js +1362 -0
- package/dist/{vue-ui-wheel-VQ5Sc_Kt.js → vue-ui-wheel-CbL52G-w.js} +51 -51
- package/dist/vue-ui-word-cloud-BqOCyp7c.js +1723 -0
- package/dist/{vue-ui-world-Dq9I3omC.js → vue-ui-world-BkjzCcVh.js} +445 -445
- package/dist/{vue-ui-xy-BRITAMZZ.js → vue-ui-xy-CVDNhnDY.js} +162 -162
- package/dist/{vue-ui-xy-D4D9tjiY.js → vue-ui-xy-DuwLRfr4.js} +537 -534
- package/dist/{vue-ui-xy-canvas-CYQF5hVa.js → vue-ui-xy-canvas-CXqGVMeQ.js} +65 -65
- package/package.json +2 -2
- package/dist/exposedLib-BJbE_A8E.js +0 -19
- package/dist/vue-ui-3d-bar-BUEcrSrc.js +0 -1757
- package/dist/vue-ui-age-pyramid-Zw5otO78.js +0 -1238
- package/dist/vue-ui-carousel-table-CrmVyfym.js +0 -455
- package/dist/vue-ui-chestnut-BQq65pNh.js +0 -2010
- package/dist/vue-ui-chord-BA2jFRMP.js +0 -1391
- package/dist/vue-ui-donut-evolution-C6fXP7QH.js +0 -1510
- package/dist/vue-ui-dumbbell-1K5kOirf.js +0 -1530
- package/dist/vue-ui-funnel-CheSqvyj.js +0 -777
- package/dist/vue-ui-gauge-Cjtovl1s.js +0 -920
- package/dist/vue-ui-history-plot-PkrNUPpp.js +0 -1554
- package/dist/vue-ui-quadrant-C00cEk5o.js +0 -1978
- package/dist/vue-ui-radar-jNxRTIur.js +0 -1281
- package/dist/vue-ui-relation-circle-Ne_rI2jS.js +0 -924
- package/dist/vue-ui-sparkhistogram-DpPjIA7n.js +0 -560
- package/dist/vue-ui-sparkline-DLay6Hog.js +0 -1513
- package/dist/vue-ui-stackline-CrUTz-k1.js +0 -2398
- package/dist/vue-ui-table-sparkline-C3_J575b.js +0 -707
- package/dist/vue-ui-thermometer-Bo32hwAO.js +0 -763
- package/dist/vue-ui-treemap-BNG7Zc04.js +0 -1587
- package/dist/vue-ui-waffle-D-9Ny9vN.js +0 -1362
- package/dist/vue-ui-word-cloud-BqsUdsCY.js +0 -1656
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { B as t, Bt as n, D as r,
|
|
2
|
+
import { B as t, Bt as n, D as r, Et as i, F as a, Ft as o, G as s, H as c, Ht as l, I as u, It as d, J as ee, L as te, M as ne, Mt as f, O as re, P as ie, Pt as ae, R as oe, S as se, T as ce, Ut as le, Vt as ue, X as de, _t as p, a as fe, c as pe, g as me, gt as he, h as ge, i as m, j as _e, k as ve, kt as ye, l as be, n as xe, nt as h, pt as Se, r as Ce, s as we, v as g, vt as _, w as Te, x as Ee, xt as De, y as Oe, z as ke } from "./lib-CXicicWN.js";
|
|
3
3
|
import { n as Ae, r as je, t as Me } from "./useTimeLabels-BmBRv27Y.js";
|
|
4
|
-
import { t as Ne } from "./useConfig-
|
|
5
|
-
import { t as Pe } from "./usePrinter-
|
|
4
|
+
import { t as Ne } from "./useConfig-Bf_EBbe3.js";
|
|
5
|
+
import { t as Pe } from "./usePrinter-Dng0UK-G.js";
|
|
6
6
|
import { n as Fe, t as Ie } from "./BaseScanner-DZvpgOjM.js";
|
|
7
7
|
import { t as Le } from "./useSvgExport-SVIsDot8.js";
|
|
8
|
-
import { t as Re } from "./useNestedProp-
|
|
8
|
+
import { t as Re } from "./useNestedProp-APyFoLCQ.js";
|
|
9
9
|
import { t as ze } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
10
|
import { t as Be } from "./useStableElementSize-C7KADDKj.js";
|
|
11
11
|
import { t as Ve } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
12
|
-
import { t as He } from "./img-
|
|
13
|
-
import { n as Ue } from "./Title-
|
|
12
|
+
import { t as He } from "./img-BCAOkqfM.js";
|
|
13
|
+
import { n as Ue } from "./Title-CVYf1f8m.js";
|
|
14
14
|
import { t as We } from "./vue_ui_xy-BA3-_LCx.js";
|
|
15
|
-
import { t as Ge } from "./Shape-
|
|
15
|
+
import { t as Ge } from "./Shape-C5OvuwII.js";
|
|
16
16
|
import { t as Ke } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
17
|
-
import { t as qe } from "./SlicerPreview-
|
|
18
|
-
import { t as Je } from "./vue-ui-accordion-
|
|
19
|
-
import { t as Ye } from "./BaseLegendToggle-
|
|
17
|
+
import { t as qe } from "./SlicerPreview-CAhqG_ZQ.js";
|
|
18
|
+
import { t as Je } from "./vue-ui-accordion-Di_givzQ.js";
|
|
19
|
+
import { t as Ye } from "./BaseLegendToggle-B-lM0iV1.js";
|
|
20
20
|
import { t as Xe } from "./A11yDataTable-DdRsVULz.js";
|
|
21
|
-
import { Fragment as v, Teleport as Ze, computed as y, createBlock as Qe, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createSlots as $e, createTextVNode as et, createVNode as tt, defineAsyncComponent as nt, getCurrentInstance as rt, guardReactiveProps as C, mergeProps as it, nextTick as at, normalizeClass as ot, normalizeProps as
|
|
21
|
+
import { Fragment as v, Teleport as Ze, computed as y, createBlock as Qe, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createSlots as $e, createTextVNode as et, createVNode as tt, defineAsyncComponent as nt, getCurrentInstance as rt, guardReactiveProps as C, mergeProps as it, nextTick as at, normalizeClass as ot, normalizeProps as 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 ![
|
|
@@ -31,7 +31,7 @@ function vt(e) {
|
|
|
31
31
|
}
|
|
32
32
|
function yt(e, t) {
|
|
33
33
|
let n = Et(e), r = Array(n).fill(0);
|
|
34
|
-
for (let e = 0; e < t.length && e < n; e += 1) r[e] = t[e] ??
|
|
34
|
+
for (let e = 0; e < t.length && e < n; e += 1) r[e] = t[e] ?? null;
|
|
35
35
|
return r;
|
|
36
36
|
}
|
|
37
37
|
function bt(e, t) {
|
|
@@ -572,17 +572,17 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
572
572
|
"copyAlt"
|
|
573
573
|
],
|
|
574
574
|
setup(e, { expose: Ke, emit: Dt }) {
|
|
575
|
-
let M = e, Ti = nt(() => import("./DataTable-
|
|
575
|
+
let M = e, Ti = nt(() => import("./DataTable-DJZgdnIn.js")), Ei = nt(() => import("./Tooltip-BmGCBJuU.js")), Di = nt(() => import("./UserOptions-xqbNpHi2.js").then((e) => e.n)), Oi = nt(() => import("./BaseIcon-DEtwcvEH.js").then((e) => e.n)), ki = nt(() => import("./vue-ui-table-sparkline-CAS9Pk60.js").then((e) => e.n)), Ai = nt(() => import("./PackageVersion-Dx81ZIAL.js").then((e) => e.t)), ji = nt(() => import("./PenAndPaper-DJIIG6dv.js").then((e) => e.t)), Mi = nt(() => import("./BaseDraggableDialog-a9xCKjW-.js").then((e) => e.n)), Ni = Dt, Pi = pt(), Fi = rt(), { vue_ui_xy: Ii } = Ne(), { isThemeValid: Li, warnInvalidTheme: Ri } = ze(), 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
|
-
}), ia =
|
|
578
|
+
}), ia = D({
|
|
579
579
|
line: "line",
|
|
580
580
|
bar: "bar",
|
|
581
581
|
plot: "plot"
|
|
582
|
-
}), aa =
|
|
582
|
+
}), aa = D(!1), oa = D(!1), sa = D(!1), ca = D(null), la = D([]), ua = y(() => new Set(la.value)), F = D(c()), 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 =
|
|
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 = Be({
|
|
586
586
|
elementRef: Ma,
|
|
587
587
|
minimumWidth: 2,
|
|
588
588
|
minimumHeight: 2,
|
|
@@ -606,7 +606,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
606
606
|
let e = ++Fa.value;
|
|
607
607
|
Na.value = !1, await at(), await Ra(), await Ra(), e === Fa.value && (Pa.value += 1, Na.value = !0);
|
|
608
608
|
}
|
|
609
|
-
let Ba =
|
|
609
|
+
let Ba = D(!1);
|
|
610
610
|
function Va() {
|
|
611
611
|
Ba.value || (Ba.value = !0, at(() => {
|
|
612
612
|
Ba.value = !1, La(), za();
|
|
@@ -615,19 +615,19 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
615
615
|
let Ha = y(() => ({
|
|
616
616
|
height: ta.value,
|
|
617
617
|
width: P.value
|
|
618
|
-
})), Ua =
|
|
618
|
+
})), Ua = D(!1), Wa = D(null), Ga = D(null), B = D({
|
|
619
619
|
xAxis: 18,
|
|
620
620
|
yAxis: 12,
|
|
621
621
|
dataLabels: 20,
|
|
622
622
|
plotLabels: 10
|
|
623
|
-
}), Ka =
|
|
623
|
+
}), Ka = D({
|
|
624
624
|
plot: 3,
|
|
625
625
|
line: 3,
|
|
626
626
|
selectedLine: 3
|
|
627
627
|
}), qa = y(() => 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) && de({
|
|
631
631
|
componentName: "VueUiXy",
|
|
632
632
|
type: "datasetSerieAttribute",
|
|
633
633
|
property: "series (number[])",
|
|
@@ -655,16 +655,16 @@ 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
|
|
658
|
+
let n = Re({
|
|
659
659
|
userConfig: We[t] || M.config,
|
|
660
660
|
defaultConfig: e
|
|
661
|
-
}),
|
|
661
|
+
}), r = Re({
|
|
662
662
|
userConfig: M.config,
|
|
663
|
-
defaultConfig:
|
|
663
|
+
defaultConfig: n
|
|
664
664
|
});
|
|
665
665
|
return {
|
|
666
|
-
...
|
|
667
|
-
customPalette:
|
|
666
|
+
...r,
|
|
667
|
+
customPalette: r.customPalette.length ? r.customPalette : ue[t] || ye
|
|
668
668
|
};
|
|
669
669
|
}
|
|
670
670
|
function Ya({ defaultConfig: e, userConfig: t }) {
|
|
@@ -680,7 +680,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
680
680
|
set(e) {
|
|
681
681
|
return e;
|
|
682
682
|
}
|
|
683
|
-
}), V =
|
|
683
|
+
}), V = D(Ja()), Za = y(() => 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 = y(() => !!V.value.debug), eo = y(() =>
|
|
704
|
+
let $a = y(() => !!V.value.debug), eo = y(() => le({
|
|
705
705
|
defaultConfig: {
|
|
706
706
|
useCssAnimation: !1,
|
|
707
707
|
showTable: !1,
|
|
@@ -804,11 +804,11 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
804
804
|
});
|
|
805
805
|
},
|
|
806
806
|
skeletonDataset: to.value,
|
|
807
|
-
skeletonConfig:
|
|
807
|
+
skeletonConfig: le({
|
|
808
808
|
defaultConfig: V.value,
|
|
809
809
|
userConfig: eo.value
|
|
810
810
|
})
|
|
811
|
-
}), ao = Ct((e, t) =>
|
|
811
|
+
}), ao = Ct((e, t) => De({
|
|
812
812
|
data: e,
|
|
813
813
|
threshold: t
|
|
814
814
|
})), oo = (e) => ao(e, V.value.downsample.threshold), so = y(() => {
|
|
@@ -828,10 +828,10 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
828
828
|
n > e && (e = n);
|
|
829
829
|
}
|
|
830
830
|
return e;
|
|
831
|
-
}), uo = y(() => co.value), U =
|
|
831
|
+
}), uo = y(() => co.value), U = D({
|
|
832
832
|
start: 0,
|
|
833
833
|
end: uo.value
|
|
834
|
-
}), fo =
|
|
834
|
+
}), fo = D({
|
|
835
835
|
start: 0,
|
|
836
836
|
end: uo.value
|
|
837
837
|
}), po = y(() => V.value.chart.zoom.preview.enable && (fo.value.start !== U.value.start || fo.value.end !== U.value.end));
|
|
@@ -885,7 +885,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
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 =
|
|
888
|
+
}), xo = D(!1), So = y(() => Ee(V.value.customPalette)), Co = y(() => {
|
|
889
889
|
let e = V.value.chart.grid.labels.yAxis.scaleMin;
|
|
890
890
|
if (e == null) return null;
|
|
891
891
|
let t = Number(e);
|
|
@@ -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 = y(() => V.value.chart.grid.labels.yAxis.useNiceScale ?
|
|
914
|
+
}), W = y(() => V.value.chart.grid.labels.yAxis.useNiceScale ? ge(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 = y(() => [null, void 0].includes(V.value.chart.grid.labels.yAxis.scaleMin) ? W.value.min >= 0 ? 0 : Math.abs(W.value.min) : -W.value.min), G = y(() => ro.value.some((e) => Array.isArray(e.series) && e.series.some(xt)));
|
|
915
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: p(e.y) ? Number(e.y) : null,
|
|
944
944
|
index: t,
|
|
945
945
|
raw: e,
|
|
946
946
|
isNull: !1,
|
|
@@ -955,8 +955,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
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) => p(e) ? e : null).slice(U.value.start, U.value.end),
|
|
959
|
+
color: Oe(e.color ? e.color : So.value[t] ? So.value[t] : ye[t]),
|
|
960
960
|
id: n,
|
|
961
961
|
scaleLabel: e.scaleLabel || n
|
|
962
962
|
};
|
|
@@ -1012,7 +1012,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1012
1012
|
let t = ml({ x: Number(e) });
|
|
1013
1013
|
Bo(t), $s.value = t;
|
|
1014
1014
|
}
|
|
1015
|
-
let Ho =
|
|
1015
|
+
let Ho = D(0), Uo = D(0);
|
|
1016
1016
|
function Wo() {
|
|
1017
1017
|
let e = Ji.value;
|
|
1018
1018
|
if (!e) {
|
|
@@ -1066,7 +1066,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1066
1066
|
individualOffsetX: 36
|
|
1067
1067
|
};
|
|
1068
1068
|
}), Jo = y(() => {
|
|
1069
|
-
let e = +(V.value.chart.grid.position === "middle"), t = X.value + e, n =
|
|
1069
|
+
let e = +(V.value.chart.grid.position === "middle"), t = X.value + e, n = h(J.value?.top), r = h(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;
|
|
@@ -1097,7 +1097,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1097
1097
|
function $o(e, t, n, r, i) {
|
|
1098
1098
|
n && (ya.value[`${e}_${t}_${r}_${i}`] = n);
|
|
1099
1099
|
}
|
|
1100
|
-
let es =
|
|
1100
|
+
let es = D(!1);
|
|
1101
1101
|
async function ts(e = !1) {
|
|
1102
1102
|
await at(), es.value = e, ga.value && (va.value = e);
|
|
1103
1103
|
}
|
|
@@ -1110,7 +1110,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1110
1110
|
function is() {
|
|
1111
1111
|
aa.value = !aa.value;
|
|
1112
1112
|
}
|
|
1113
|
-
let Y =
|
|
1113
|
+
let Y = D([]), as = D([]), os = 0;
|
|
1114
1114
|
gt(() => {
|
|
1115
1115
|
let e = ++os;
|
|
1116
1116
|
(async () => {
|
|
@@ -1145,7 +1145,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
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
1147
|
}), us = y(() => (ls.value || []).map((e) => e?.text ?? "").join("|"));
|
|
1148
|
-
|
|
1148
|
+
ct(() => {
|
|
1149
1149
|
requestAnimationFrame(() => {
|
|
1150
1150
|
Wo();
|
|
1151
1151
|
}), ht([
|
|
@@ -1159,7 +1159,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1159
1159
|
Wo();
|
|
1160
1160
|
});
|
|
1161
1161
|
}, { flush: "post" });
|
|
1162
|
-
}),
|
|
1162
|
+
}), st(() => {
|
|
1163
1163
|
Ho.value = 0, Uo.value = 0, Ia.stop(), Oa.value &&= (Oa.value.disconnect(), null);
|
|
1164
1164
|
});
|
|
1165
1165
|
function ds(e, t) {
|
|
@@ -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 || !_(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 = y(() => G.value ?
|
|
1195
|
+
let ms = y(() => G.value ? _(Ta.value) || _($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
|
}
|
|
@@ -1203,7 +1203,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1203
1203
|
let t = co.value;
|
|
1204
1204
|
return e > t ? t : e < 0 || V.value.chart.zoom.startIndex !== null && e < V.value.chart.zoom.startIndex ? V.value.chart.zoom.startIndex === null ? 1 : V.value.chart.zoom.startIndex + 1 : e;
|
|
1205
1205
|
}
|
|
1206
|
-
let vs =
|
|
1206
|
+
let vs = D(!1), ys = D(!1), bs = D(0), xs = D(0);
|
|
1207
1207
|
function Ss() {
|
|
1208
1208
|
if (!vs.value) {
|
|
1209
1209
|
vs.value = !0;
|
|
@@ -1225,7 +1225,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1225
1225
|
}
|
|
1226
1226
|
}
|
|
1227
1227
|
}
|
|
1228
|
-
let Cs =
|
|
1228
|
+
let Cs = D(!1), ws = D(!1), Ts = null, Es = null, Ds = {};
|
|
1229
1229
|
function Os(e = U.value) {
|
|
1230
1230
|
return Number(e.end) - Number(e.start);
|
|
1231
1231
|
}
|
|
@@ -1310,10 +1310,10 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1310
1310
|
let Ws = y(() => W.value.min <= 0 && W.value.max >= 0 ? Us(0) : W.value.min > 0 ? Us(W.value.min) : Us(W.value.max));
|
|
1311
1311
|
function Gs(e) {
|
|
1312
1312
|
let t = ![null, void 0].includes(V.value.chart.grid.labels.yAxis.scaleMin) && V.value.chart.grid.labels.yAxis.scaleMin > 0 && Oo.value >= 0 ? J.value?.bottom : Hs.value;
|
|
1313
|
-
return e.value >= 0 ?
|
|
1313
|
+
return e.value >= 0 ? g(t - e.y <= 0 ? 1e-5 : t - e.y) : g(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 ? g(e.zeroPosition - e.y <= 0 ? 1e-5 : e.zeroPosition - e.y) : g(e.y - e.zeroPosition <= 0 ? 1e-5 : e.zeroPosition - e.y);
|
|
1317
1317
|
}
|
|
1318
1318
|
let qs = y(() => {
|
|
1319
1319
|
let e = Math.max(1, X.value);
|
|
@@ -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 =
|
|
1350
|
+
let Qs = D(null), Z = D([]), $s = D(null), ec = y(() => {
|
|
1351
1351
|
if (!G.value) return {
|
|
1352
1352
|
sortedPoints: [],
|
|
1353
1353
|
matchingPointsByXValue: /* @__PURE__ */ new Map()
|
|
@@ -1357,7 +1357,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1357
1357
|
let i = K.value[r];
|
|
1358
1358
|
if (["line", "plot"].includes(i.type) && Array.isArray(i.series)) for (let r = 0; r < i.series.length; r += 1) {
|
|
1359
1359
|
let a = i.series[r];
|
|
1360
|
-
if (!
|
|
1360
|
+
if (!_(a?.x) || !_(a?.y)) continue;
|
|
1361
1361
|
let o = Number(a.x), s = ml(a), c = {
|
|
1362
1362
|
datapoint: i,
|
|
1363
1363
|
point: a,
|
|
@@ -1400,13 +1400,13 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1400
1400
|
let nc = y(() => G.value ? Array.from(ec.value.matchingPointsByXValue.keys()).sort((e, t) => ml({ x: e }) - ml({ x: t })) : []);
|
|
1401
1401
|
function rc(e) {
|
|
1402
1402
|
let t = nc.value[e];
|
|
1403
|
-
if (!
|
|
1403
|
+
if (!_(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 r = n(ml({ x: Number(t) }), J.value.top + J.value.height / 2, L.value);
|
|
1409
|
+
r && (Da.value = r), R.value = e, Ea.value = e, sa.value = !0;
|
|
1410
1410
|
}
|
|
1411
1411
|
function ic(e) {
|
|
1412
1412
|
let t = L.value;
|
|
@@ -1575,9 +1575,9 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1575
1575
|
...e,
|
|
1576
1576
|
series: oo(e.series),
|
|
1577
1577
|
id: `uniqueId_${t}`,
|
|
1578
|
-
color:
|
|
1578
|
+
color: Oe(e.color ? e.color : So.value[t] ? So.value[t] : ye[t])
|
|
1579
1579
|
})) : ro.value), wc = y(() => K.value.map((e) => {
|
|
1580
|
-
let t = e.absoluteValues.map((e) => [void 0, null].includes(e) ?
|
|
1580
|
+
let t = e.absoluteValues.map((e) => [void 0, null].includes(e) ? null : e);
|
|
1581
1581
|
return {
|
|
1582
1582
|
id: e.id,
|
|
1583
1583
|
name: e.name,
|
|
@@ -1605,7 +1605,10 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1605
1605
|
outline: V.value.table.td.outline
|
|
1606
1606
|
},
|
|
1607
1607
|
userOptions: { show: !1 },
|
|
1608
|
-
sparkline: {
|
|
1608
|
+
sparkline: {
|
|
1609
|
+
animation: { show: !1 },
|
|
1610
|
+
cutNullValues: V.value.line.cutNullValues
|
|
1611
|
+
}
|
|
1609
1612
|
})), Ec = y(() => {
|
|
1610
1613
|
let e = Math.max(0, J.value?.width || 0);
|
|
1611
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);
|
|
@@ -1640,7 +1643,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1640
1643
|
function Pc(e) {
|
|
1641
1644
|
return Math.max(1e-5, Dc.value * e);
|
|
1642
1645
|
}
|
|
1643
|
-
let Fc = y(() =>
|
|
1646
|
+
let Fc = y(() => fe(Lo.value.filter((e) => !ua.value.has(e.id)))), Ic = [
|
|
1644
1647
|
"bar",
|
|
1645
1648
|
"line",
|
|
1646
1649
|
"plot"
|
|
@@ -1744,16 +1747,16 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1744
1747
|
if (!t.length) return [];
|
|
1745
1748
|
let { left: n, right: r } = J.value, i = Hs.value, a = J.value.height, o = W.value.min, s = W.value.max - o, c = (e) => i - (e - 0) / s * a;
|
|
1746
1749
|
return t.map((e, t) => {
|
|
1747
|
-
let { yAxis: { yTop: i, yBottom: a, label: o } } = e, s = i != null && a != null && i !== a, l = i == null ? null : c(i), u = a == null ? null : c(a),
|
|
1748
|
-
|
|
1749
|
-
let
|
|
1750
|
-
|
|
1751
|
-
let
|
|
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
|
+
d.font = `${o.fontSize}px sans-serif`;
|
|
1752
|
+
let ee = d.measureText(o.text).width, te = o.fontSize, ne = (o.position === "start" ? n + o.padding?.left : r - o.padding?.right) + o.offsetX, f = (l != null && u != null ? Math.min(l, u) : l ?? u) - o.fontSize / 3 + o.offsetY - o.padding?.top, re;
|
|
1753
|
+
re = o.textAnchor === "middle" ? ne - ee / 2 - o.padding?.left : o.textAnchor === "end" ? ne - ee - o.padding?.right : ne - o.padding?.left;
|
|
1754
|
+
let ie = f - te * .75 - o.padding?.top;
|
|
1752
1755
|
return {
|
|
1753
1756
|
show: ![
|
|
1754
1757
|
l,
|
|
1755
1758
|
u,
|
|
1756
|
-
|
|
1759
|
+
ie
|
|
1757
1760
|
].includes(NaN),
|
|
1758
1761
|
id: cl("annotation_y", [
|
|
1759
1762
|
t,
|
|
@@ -1769,14 +1772,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1769
1772
|
x1: n,
|
|
1770
1773
|
x2: r,
|
|
1771
1774
|
_text: {
|
|
1772
|
-
x:
|
|
1773
|
-
y:
|
|
1775
|
+
x: ne,
|
|
1776
|
+
y: f
|
|
1774
1777
|
},
|
|
1775
1778
|
_box: {
|
|
1776
|
-
x:
|
|
1777
|
-
y:
|
|
1778
|
-
width:
|
|
1779
|
-
height:
|
|
1779
|
+
x: re,
|
|
1780
|
+
y: ie,
|
|
1781
|
+
width: ee + o.padding?.left + o.padding?.right,
|
|
1782
|
+
height: te + o.padding?.top + o.padding?.bottom,
|
|
1780
1783
|
fill: o.backgroundColor,
|
|
1781
1784
|
stroke: o.border.stroke,
|
|
1782
1785
|
rx: o.border.rx,
|
|
@@ -1857,7 +1860,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1857
1860
|
return no.value || ws.value || !V.value.line.showTransition ? void 0 : `all ${V.value.line.transitionDurationMs}ms ease-in-out`;
|
|
1858
1861
|
}
|
|
1859
1862
|
let ul = y(() => al(Io.value, 0, 1)), dl = y(() => {
|
|
1860
|
-
let e = V.value.chart.grid.labels.xAxis.commonScaleSteps, t = V.value.chart.grid.labels.xAxis.scaleMin, n = V.value.chart.grid.labels.xAxis.scaleMax, r = t !== null && Number.isFinite(Number(t)) ? Number(t) : ul.value.min, i = n !== null && Number.isFinite(Number(n)) ? Number(n) : ul.value.max, a = V.value.chart.grid.labels.xAxis.useNiceScale ?
|
|
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 ? ge(r, i, e) : me(r, i, e);
|
|
1861
1864
|
if (V.value.chart.grid.position !== "start") return a;
|
|
1862
1865
|
let o = a.ticks.length > 1 ? a.ticks[1] - a.ticks[0] : 1;
|
|
1863
1866
|
return {
|
|
@@ -1866,7 +1869,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1866
1869
|
};
|
|
1867
1870
|
}), fl = y(() => G.value ? (Bs.value ? [...dl.value.ticks].reverse() : [...dl.value.ticks]).map((e, t) => ({
|
|
1868
1871
|
id: `continuous_x_label_${t}`,
|
|
1869
|
-
text:
|
|
1872
|
+
text: m(V.value.chart.grid.labels.xAxis.formatter, e, s({
|
|
1870
1873
|
v: e,
|
|
1871
1874
|
s: V.value.chart.labels.prefix,
|
|
1872
1875
|
p: V.value.chart.labels.suffix,
|
|
@@ -1894,19 +1897,19 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
1894
1897
|
return !G.value || !e ? null : e.x ?? null;
|
|
1895
1898
|
}
|
|
1896
1899
|
function bl({ datapoint: e, totalSeries: t, gap: n, usableHeight: r, autoScaleValueMin: i, autoScaleValueMax: a, individualExtremes: o, forceExactScale: s = !1 }) {
|
|
1897
|
-
let c = e.scaleSteps || V.value.chart.grid.labels.yAxis.commonScaleSteps, l = 1.0000001, u = s || !V.value.chart.grid.labels.yAxis.useNiceScale ?
|
|
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 : ge, d = o.max === o.min ? o.max * l : o.max, ee = a === i ? a * l : a, te = u(o.min, d, c), ne = u(i, ee, c), f = te.min >= 0 ? 0 : Math.abs(te.min), re = te.max + Math.abs(f), ie = ne.max + 0, ae = e.stackIndex, oe = t - 1 - ae, se = H.value.isStacked ? 1 - e.cumulatedStackRatio : 0, ce = H.value.isStacked ? r * se + n * oe : 0, le = H.value.isStacked ? r * e.stackRatio : J.value.height;
|
|
1898
1901
|
return {
|
|
1899
1902
|
scaleSteps: c,
|
|
1900
|
-
individualScale:
|
|
1901
|
-
autoScaleSteps:
|
|
1902
|
-
individualZero:
|
|
1903
|
+
individualScale: te,
|
|
1904
|
+
autoScaleSteps: ne,
|
|
1905
|
+
individualZero: f,
|
|
1903
1906
|
autoScaleZero: 0,
|
|
1904
|
-
individualMax:
|
|
1905
|
-
autoScaleMax:
|
|
1907
|
+
individualMax: re,
|
|
1908
|
+
autoScaleMax: ie,
|
|
1906
1909
|
yOffset: ce,
|
|
1907
1910
|
individualHeight: le,
|
|
1908
|
-
zeroPosition: J.value?.bottom - ce - le *
|
|
1909
|
-
autoScaleZeroPosition: J.value?.bottom - ce - le * 0 /
|
|
1911
|
+
zeroPosition: J.value?.bottom - ce - le * f / re,
|
|
1912
|
+
autoScaleZeroPosition: J.value?.bottom - ce - le * 0 / ie
|
|
1910
1913
|
};
|
|
1911
1914
|
}
|
|
1912
1915
|
function xl({ datapoint: e, clampNegativeAutoScaleMaximum: t = !1 }) {
|
|
@@ -2005,7 +2008,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2005
2008
|
let kl = y(() => {
|
|
2006
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;
|
|
2007
2010
|
return zc.value.map((n, i) => {
|
|
2008
|
-
let { individualScale: a, autoScaleSteps: o, individualZero: s, individualMax: c, autoScaleMax: l, yOffset: u, individualHeight:
|
|
2011
|
+
let { individualScale: a, autoScaleSteps: o, individualZero: s, individualMax: c, autoScaleMax: l, yOffset: u, individualHeight: d, zeroPosition: ee, autoScaleZeroPosition: te, scaleYLabels: ne, autoScaleYLabels: f, autoScaleRatiosToNiceScale: re } = El({
|
|
2009
2012
|
datapoint: n,
|
|
2010
2013
|
totalSeries: e,
|
|
2011
2014
|
gap: t,
|
|
@@ -2013,58 +2016,58 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2013
2016
|
clampNegativeAutoScaleMaximum: !0,
|
|
2014
2017
|
filterMinimumValues: !0,
|
|
2015
2018
|
preserveLooseMinimumExpression: !0
|
|
2016
|
-
}),
|
|
2017
|
-
let r = H.value.useIndividualScale ? (n.absoluteValues[t] + s) / c : Fs(e), a = H.value.useIndividualScale && H.value.isStacked ? J.value?.left + J.value.width / X.value * t : J.value?.left + qs.value.bar * i + qs.value.bar * t *
|
|
2019
|
+
}), ie = Uc.value, ae = Dl(n.comments), oe = 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 * ie - Jc.value / 2 - i * Yc.value;
|
|
2018
2021
|
return {
|
|
2019
|
-
yOffset:
|
|
2020
|
-
individualHeight:
|
|
2021
|
-
x:
|
|
2022
|
+
yOffset: g(u),
|
|
2023
|
+
individualHeight: g(d),
|
|
2024
|
+
x: g(a),
|
|
2022
2025
|
y: Rs({
|
|
2023
2026
|
ratio: r,
|
|
2024
2027
|
yOffset: u,
|
|
2025
|
-
individualHeight:
|
|
2028
|
+
individualHeight: d
|
|
2026
2029
|
}),
|
|
2027
2030
|
value: n.absoluteValues[t],
|
|
2028
|
-
zeroPosition:
|
|
2029
|
-
individualMax:
|
|
2031
|
+
zeroPosition: g(ee),
|
|
2032
|
+
individualMax: g(c),
|
|
2030
2033
|
comment: ae[t] || ""
|
|
2031
2034
|
};
|
|
2032
2035
|
}), se = n.series.map((e, t) => {
|
|
2033
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;
|
|
2034
2037
|
return {
|
|
2035
|
-
yOffset:
|
|
2036
|
-
individualHeight:
|
|
2037
|
-
x:
|
|
2038
|
-
y:
|
|
2039
|
-
ratio:
|
|
2040
|
-
yOffset:
|
|
2041
|
-
individualHeight:
|
|
2038
|
+
yOffset: g(u),
|
|
2039
|
+
individualHeight: g(d),
|
|
2040
|
+
x: g(r),
|
|
2041
|
+
y: g(Rs({
|
|
2042
|
+
ratio: re[t] || 0,
|
|
2043
|
+
yOffset: g(u),
|
|
2044
|
+
individualHeight: g(d)
|
|
2042
2045
|
})),
|
|
2043
2046
|
value: n.absoluteValues[t],
|
|
2044
|
-
zeroPosition:
|
|
2045
|
-
individualMax:
|
|
2047
|
+
zeroPosition: g(ee),
|
|
2048
|
+
individualMax: g(c),
|
|
2046
2049
|
comment: ae[t] || ""
|
|
2047
2050
|
};
|
|
2048
2051
|
}), ce = qc({
|
|
2049
2052
|
datapoint: n,
|
|
2050
|
-
scaleYLabels:
|
|
2051
|
-
autoScaleYLabels:
|
|
2052
|
-
zeroPosition:
|
|
2053
|
-
autoScaleZeroPosition:
|
|
2053
|
+
scaleYLabels: ne,
|
|
2054
|
+
autoScaleYLabels: f,
|
|
2055
|
+
zeroPosition: ee,
|
|
2056
|
+
autoScaleZeroPosition: te,
|
|
2054
2057
|
individualMax: c,
|
|
2055
2058
|
autoScaleMax: l,
|
|
2056
2059
|
yOffset: u,
|
|
2057
|
-
individualHeight:
|
|
2060
|
+
individualHeight: d
|
|
2058
2061
|
});
|
|
2059
2062
|
return {
|
|
2060
2063
|
...n,
|
|
2061
2064
|
yOffset: u,
|
|
2062
|
-
autoScaleYLabels:
|
|
2063
|
-
individualHeight:
|
|
2064
|
-
scaleYLabels: n.autoScaling ?
|
|
2065
|
+
autoScaleYLabels: f,
|
|
2066
|
+
individualHeight: d,
|
|
2067
|
+
scaleYLabels: n.autoScaling ? f : ne,
|
|
2065
2068
|
individualScale: n.autoScaling ? o : a,
|
|
2066
2069
|
individualMax: n.autoScaling ? l : c,
|
|
2067
|
-
zeroPosition: n.autoScaling ?
|
|
2070
|
+
zeroPosition: n.autoScaling ? te : ee,
|
|
2068
2071
|
plots: n.autoScaling ? se : oe,
|
|
2069
2072
|
scaleGroup: ce,
|
|
2070
2073
|
groupId: ce.groupId
|
|
@@ -2072,13 +2075,13 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2072
2075
|
});
|
|
2073
2076
|
}), Q = y(() => {
|
|
2074
2077
|
let e = Rc.value, t = V.value.chart.grid.labels.yAxis.gap, n = H.value.isStacked ? t * (e - 1) : 0, r = J.value.height - n;
|
|
2075
|
-
return Bc.value.map((n,
|
|
2076
|
-
let { individualScale: o, autoScaleSteps: s, individualZero: c, individualMax:
|
|
2078
|
+
return Bc.value.map((n, i) => {
|
|
2079
|
+
let { individualScale: o, autoScaleSteps: s, individualZero: c, individualMax: l, autoScaleMax: d, yOffset: ee, individualHeight: f, zeroPosition: ie, autoScaleZeroPosition: ae, scaleYLabels: se, autoScaleYLabels: le, autoScaleRatiosToNiceScale: ue } = El({
|
|
2077
2080
|
datapoint: n,
|
|
2078
2081
|
totalSeries: e,
|
|
2079
2082
|
gap: t,
|
|
2080
2083
|
usableHeight: r
|
|
2081
|
-
}),
|
|
2084
|
+
}), de = Dl(n.comments), p = n.series.map((e, t) => {
|
|
2082
2085
|
if (G.value && (e.x == null || e.y == null)) return {
|
|
2083
2086
|
index: t,
|
|
2084
2087
|
x: null,
|
|
@@ -2087,112 +2090,112 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2087
2090
|
datasetXValue: yl(e),
|
|
2088
2091
|
comment: n.comments && n.comments.slice(U.value.start, U.value.end)[t] || ""
|
|
2089
2092
|
};
|
|
2090
|
-
let r = H.value.useIndividualScale ? (n.absoluteValues[t] + Math.abs(c)) /
|
|
2093
|
+
let r = H.value.useIndividualScale ? (n.absoluteValues[t] + Math.abs(c)) / l : Fs(Fo(e));
|
|
2091
2094
|
return {
|
|
2092
2095
|
index: t,
|
|
2093
|
-
x:
|
|
2096
|
+
x: g(vl(e, t)),
|
|
2094
2097
|
datasetXValue: yl(e),
|
|
2095
|
-
y:
|
|
2098
|
+
y: g(Rs({
|
|
2096
2099
|
ratio: r,
|
|
2097
|
-
yOffset:
|
|
2098
|
-
individualHeight:
|
|
2100
|
+
yOffset: ee,
|
|
2101
|
+
individualHeight: f
|
|
2099
2102
|
})),
|
|
2100
2103
|
value: n.absoluteValues[t],
|
|
2101
|
-
comment:
|
|
2104
|
+
comment: de[t] || ""
|
|
2102
2105
|
};
|
|
2103
|
-
}),
|
|
2106
|
+
}), fe = n.series.map((e, t) => G.value && (e.x === null || e.y === null) ? {
|
|
2104
2107
|
index: t,
|
|
2105
2108
|
x: null,
|
|
2106
2109
|
y: null,
|
|
2107
2110
|
datasetXValue: yl(e),
|
|
2108
2111
|
value: null,
|
|
2109
|
-
comment:
|
|
2112
|
+
comment: de[t] || ""
|
|
2110
2113
|
} : [void 0, null].includes(n.absoluteValues[t]) ? {
|
|
2111
2114
|
index: t,
|
|
2112
|
-
x:
|
|
2113
|
-
y:
|
|
2115
|
+
x: g(vl(e, t)),
|
|
2116
|
+
y: ie,
|
|
2114
2117
|
value: n.absoluteValues[t],
|
|
2115
|
-
comment:
|
|
2118
|
+
comment: de[t] || ""
|
|
2116
2119
|
} : {
|
|
2117
2120
|
index: t,
|
|
2118
|
-
x:
|
|
2121
|
+
x: g(vl(e, t)),
|
|
2119
2122
|
datasetXValue: yl(e),
|
|
2120
|
-
y:
|
|
2123
|
+
y: g(Rs({
|
|
2121
2124
|
ratio: ue[t] || 0,
|
|
2122
|
-
yOffset:
|
|
2123
|
-
individualHeight:
|
|
2125
|
+
yOffset: ee,
|
|
2126
|
+
individualHeight: f
|
|
2124
2127
|
})),
|
|
2125
2128
|
value: n.absoluteValues[t],
|
|
2126
|
-
comment:
|
|
2127
|
-
}),
|
|
2129
|
+
comment: de[t] || ""
|
|
2130
|
+
}), pe = n.dashIndices && Array.isArray(n.dashIndices) && n?.dashIndices?.length > 0, me = V.value.line.cutNullValues ? _e(p) : ve(p.filter((e) => e.value !== null)), he = V.value.line.cutNullValues ? _e(fe) : ve(fe.filter((e) => e.value !== null)), ge = V.value.line.cutNullValues ? te(p) : u(p.filter((e) => e.value !== null)), m = V.value.line.cutNullValues ? te(fe) : u(fe.filter((e) => e.value !== null)), ye = a(V.value.line.cutNullValues ? p : p.filter((e) => e.value !== null)), be = a(V.value.line.cutNullValues ? fe : fe.filter((e) => e.value !== null)), xe = pe ? oe(V.value.line.cutNullValues ? p : p.filter((e) => e.value !== null), n.dashIndices.map((e) => e - U.value.start)) : [], h = pe ? ne(V.value.line.cutNullValues ? p : p.filter((e) => e.value !== null), n.dashIndices.map((e) => e - U.value.start)) : [], Se = qc({
|
|
2128
2131
|
datapoint: n,
|
|
2129
|
-
scaleYLabels:
|
|
2132
|
+
scaleYLabels: se,
|
|
2130
2133
|
autoScaleYLabels: le,
|
|
2131
|
-
zeroPosition:
|
|
2132
|
-
autoScaleZeroPosition:
|
|
2133
|
-
individualMax:
|
|
2134
|
-
autoScaleMax:
|
|
2135
|
-
yOffset:
|
|
2136
|
-
individualHeight:
|
|
2137
|
-
}),
|
|
2134
|
+
zeroPosition: ie,
|
|
2135
|
+
autoScaleZeroPosition: ae,
|
|
2136
|
+
individualMax: l,
|
|
2137
|
+
autoScaleMax: d,
|
|
2138
|
+
yOffset: ee,
|
|
2139
|
+
individualHeight: f
|
|
2140
|
+
}), Ce = H.value.useIndividualScale ? n.autoScaling ? ae : ie : wo.value, we = Math.max(Math.max(n.autoScaling ? ae : se.at(-1) ? se.at(-1).y : 0, J.value?.top), Ce), _ = n.autoScaling ? fe : p, Ee = V.value.line.cutNullValues ? _ : _.filter((e) => e.value !== null), De = n.absoluteValues.filter((e) => ![
|
|
2138
2141
|
null,
|
|
2139
2142
|
void 0,
|
|
2140
2143
|
NaN
|
|
2141
|
-
].includes(e)), ke = !!n.temperatureColors && new Set(
|
|
2144
|
+
].includes(e)), ke = !!n.temperatureColors && new Set(De).size <= 1;
|
|
2142
2145
|
return {
|
|
2143
2146
|
...n,
|
|
2144
2147
|
isFlatTemperatureLine: ke,
|
|
2145
|
-
temperatureColors: n.temperatureColors ? n.temperatureColors.map((e) =>
|
|
2146
|
-
yOffset:
|
|
2148
|
+
temperatureColors: n.temperatureColors ? n.temperatureColors.map((e) => Oe(e)) : null,
|
|
2149
|
+
yOffset: ee,
|
|
2147
2150
|
autoScaleYLabels: le,
|
|
2148
|
-
individualHeight:
|
|
2149
|
-
scaleYLabels: n.autoScaling ? le :
|
|
2151
|
+
individualHeight: f,
|
|
2152
|
+
scaleYLabels: n.autoScaling ? le : se,
|
|
2150
2153
|
individualScale: n.autoScaling ? s : o,
|
|
2151
|
-
individualMax: n.autoScaling ?
|
|
2152
|
-
zeroPosition: n.autoScaling ?
|
|
2153
|
-
curve: n.useStepper ? n.autoScaling ?
|
|
2154
|
-
plots: n.autoScaling ?
|
|
2155
|
-
dashedStraight:
|
|
2156
|
-
dashedSmooth:
|
|
2157
|
-
hasDashedSegments:
|
|
2158
|
-
area: n.useArea ? n.useStepper ?
|
|
2159
|
-
curveAreas: n.useArea ? n.useStepper ?
|
|
2160
|
-
straight: n.useStepper ? n.autoScaling ?
|
|
2161
|
-
scaleGroup:
|
|
2162
|
-
groupId:
|
|
2154
|
+
individualMax: n.autoScaling ? d : l,
|
|
2155
|
+
zeroPosition: n.autoScaling ? ae : ie,
|
|
2156
|
+
curve: n.useStepper ? n.autoScaling ? be : ye : n.autoScaling ? he : me,
|
|
2157
|
+
plots: n.autoScaling ? fe : p,
|
|
2158
|
+
dashedStraight: xe,
|
|
2159
|
+
dashedSmooth: h,
|
|
2160
|
+
hasDashedSegments: pe,
|
|
2161
|
+
area: n.useArea ? n.useStepper ? a(Ee, we) : H.value.useIndividualScale ? V.value.line.cutNullValues ? ce(n.autoScaling ? fe : p, we) : Te(n.autoScaling ? fe.filter((e) => e.value !== null) : p.filter((e) => e.value !== null), we) : V.value.line.cutNullValues ? ce(p, we) : Te(p.filter((e) => e.value !== null), we) : "",
|
|
2162
|
+
curveAreas: n.useArea ? n.useStepper ? a(Ee, we).split(";").filter(Boolean).map((e) => `M${e}Z`) : re(n.autoScaling ? V.value.line.cutNullValues ? fe : fe.filter((e) => e.value !== null) : V.value.line.cutNullValues ? p : p.filter((e) => e.value !== null), we, V.value.line.cutNullValues) : [],
|
|
2163
|
+
straight: n.useStepper ? n.autoScaling ? be : ye : n.autoScaling ? m : ge,
|
|
2164
|
+
scaleGroup: Se,
|
|
2165
|
+
groupId: Se.groupId
|
|
2163
2166
|
};
|
|
2164
2167
|
});
|
|
2165
2168
|
}), $ = y(() => {
|
|
2166
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;
|
|
2167
2170
|
return Vc.value.map((n) => {
|
|
2168
|
-
let { individualScale: i, autoScaleSteps: a, individualZero: o, individualMax: s, autoScaleMax: c, yOffset: l, individualHeight: u, zeroPosition:
|
|
2171
|
+
let { individualScale: i, autoScaleSteps: a, individualZero: o, individualMax: s, autoScaleMax: c, yOffset: l, individualHeight: u, zeroPosition: d, autoScaleZeroPosition: ee, scaleYLabels: te, autoScaleYLabels: ne, autoScaleRatiosToNiceScale: f } = El({
|
|
2169
2172
|
datapoint: n,
|
|
2170
2173
|
totalSeries: e,
|
|
2171
2174
|
gap: t,
|
|
2172
2175
|
usableHeight: r,
|
|
2173
2176
|
forceExactScale: !0,
|
|
2174
2177
|
preserveLooseMinimumExpression: !0
|
|
2175
|
-
}),
|
|
2178
|
+
}), re = Dl(n.comments), ie = n.series.map((e, t) => {
|
|
2176
2179
|
if (G.value && (e.x == null || e.y == null)) return {
|
|
2177
2180
|
index: t,
|
|
2178
2181
|
x: null,
|
|
2179
2182
|
datasetXValue: yl(e),
|
|
2180
2183
|
y: null,
|
|
2181
2184
|
value: null,
|
|
2182
|
-
comment:
|
|
2185
|
+
comment: re[t] || ""
|
|
2183
2186
|
};
|
|
2184
2187
|
let r = H.value.useIndividualScale ? (n.absoluteValues[t] + Math.abs(o)) / s : Fs(Fo(e));
|
|
2185
2188
|
return {
|
|
2186
2189
|
index: t,
|
|
2187
|
-
x:
|
|
2190
|
+
x: g(vl(e, t)),
|
|
2188
2191
|
datasetXValue: yl(e),
|
|
2189
|
-
y:
|
|
2192
|
+
y: g(Rs({
|
|
2190
2193
|
ratio: r,
|
|
2191
2194
|
yOffset: l,
|
|
2192
2195
|
individualHeight: u
|
|
2193
2196
|
})),
|
|
2194
2197
|
value: n.absoluteValues[t],
|
|
2195
|
-
comment:
|
|
2198
|
+
comment: re[t] || ""
|
|
2196
2199
|
};
|
|
2197
2200
|
}), ae = n.series.map((e, t) => G.value && (e.x === null || e.y === null) ? {
|
|
2198
2201
|
index: t,
|
|
@@ -2200,24 +2203,24 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2200
2203
|
datasetXValue: yl(e),
|
|
2201
2204
|
y: null,
|
|
2202
2205
|
value: null,
|
|
2203
|
-
comment:
|
|
2206
|
+
comment: re[t] || ""
|
|
2204
2207
|
} : {
|
|
2205
2208
|
index: t,
|
|
2206
|
-
x:
|
|
2209
|
+
x: g(vl(e, t)),
|
|
2207
2210
|
datasetXValue: yl(e),
|
|
2208
|
-
y:
|
|
2209
|
-
ratio:
|
|
2211
|
+
y: g(Rs({
|
|
2212
|
+
ratio: f[t] || 0,
|
|
2210
2213
|
yOffset: l,
|
|
2211
2214
|
individualHeight: u
|
|
2212
2215
|
})),
|
|
2213
2216
|
value: n.absoluteValues[t],
|
|
2214
|
-
comment:
|
|
2217
|
+
comment: re[t] || ""
|
|
2215
2218
|
}), oe = qc({
|
|
2216
2219
|
datapoint: n,
|
|
2217
|
-
scaleYLabels:
|
|
2218
|
-
autoScaleYLabels:
|
|
2219
|
-
zeroPosition:
|
|
2220
|
-
autoScaleZeroPosition:
|
|
2220
|
+
scaleYLabels: te,
|
|
2221
|
+
autoScaleYLabels: ne,
|
|
2222
|
+
zeroPosition: d,
|
|
2223
|
+
autoScaleZeroPosition: ee,
|
|
2221
2224
|
individualMax: s,
|
|
2222
2225
|
autoScaleMax: c,
|
|
2223
2226
|
yOffset: l,
|
|
@@ -2226,13 +2229,13 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2226
2229
|
return {
|
|
2227
2230
|
...n,
|
|
2228
2231
|
yOffset: l,
|
|
2229
|
-
autoScaleYLabels:
|
|
2232
|
+
autoScaleYLabels: ne,
|
|
2230
2233
|
individualHeight: u,
|
|
2231
|
-
scaleYLabels: n.autoScaling ?
|
|
2234
|
+
scaleYLabels: n.autoScaling ? ne : te,
|
|
2232
2235
|
individualScale: n.autoScaling ? a : i,
|
|
2233
2236
|
individualMax: n.autoScaling ? c : s,
|
|
2234
|
-
zeroPosition: n.autoScaling ?
|
|
2235
|
-
plots: n.autoScaling ? ae :
|
|
2237
|
+
zeroPosition: n.autoScaling ? ee : d,
|
|
2238
|
+
plots: n.autoScaling ? ae : ie,
|
|
2236
2239
|
scaleGroup: oe,
|
|
2237
2240
|
groupId: oe.groupId
|
|
2238
2241
|
};
|
|
@@ -2301,7 +2304,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2301
2304
|
id: e.id,
|
|
2302
2305
|
groupId: e.groupId,
|
|
2303
2306
|
scaleLabel: e.scaleLabel,
|
|
2304
|
-
name:
|
|
2307
|
+
name: m(V.value.chart.grid.labels.yAxis.serieNameFormatter, r, r, e),
|
|
2305
2308
|
color: H.value.useIndividualScale && !H.value.isStacked ? e.unique ? e.color : e.groupColor : e.color,
|
|
2306
2309
|
scale: e.scale,
|
|
2307
2310
|
yOffset: e.yOffset,
|
|
@@ -2329,7 +2332,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2329
2332
|
let o = Q.value.find((e) => e.name === i), s = Q.value.find((e) => e.name === a);
|
|
2330
2333
|
if (!o || !s || o.type !== "line" || s.type !== "line") return;
|
|
2331
2334
|
let c = n?.[t]?.[0] ?? o.color, l = n?.[t]?.[1] ?? s.color;
|
|
2332
|
-
|
|
2335
|
+
pe({
|
|
2333
2336
|
lineA: o.plots,
|
|
2334
2337
|
lineB: s.plots,
|
|
2335
2338
|
smoothA: !!o.smooth,
|
|
@@ -2362,7 +2365,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2362
2365
|
plots: $.value,
|
|
2363
2366
|
config: V.value
|
|
2364
2367
|
};
|
|
2365
|
-
}), Pl =
|
|
2368
|
+
}), Pl = D({
|
|
2366
2369
|
months: [],
|
|
2367
2370
|
shortMonths: [],
|
|
2368
2371
|
days: [],
|
|
@@ -2565,14 +2568,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2565
2568
|
return Rl.set(t, i), i;
|
|
2566
2569
|
}
|
|
2567
2570
|
let Hl = y(() => {
|
|
2568
|
-
let e = "", t = el.value.map((e) => e.value).filter((e) =>
|
|
2571
|
+
let e = "", t = el.value.map((e) => e.value).filter((e) => p(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0), n = G.value ? { text: m(V.value.chart.grid.labels.xAxis.formatter, Z.value[0]?.point.raw?.x ?? Z.value[0]?.point.x, s({
|
|
2569
2572
|
v: Z.value[0]?.point.raw?.x ?? Z.value[0]?.point.x,
|
|
2570
2573
|
r: V.value.chart.tooltip.roundingValue
|
|
2571
2574
|
}), {
|
|
2572
2575
|
datapoint: null,
|
|
2573
2576
|
serriesIndex: null
|
|
2574
2577
|
}) } : Y.value[R.value], r = V.value.chart.tooltip.customFormat;
|
|
2575
|
-
if (
|
|
2578
|
+
if (he(r)) try {
|
|
2576
2579
|
let e = r(zl(n));
|
|
2577
2580
|
if (typeof e == "string") return e;
|
|
2578
2581
|
} catch (e) {
|
|
@@ -2583,15 +2586,15 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2583
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>`);
|
|
2584
2587
|
}
|
|
2585
2588
|
return el.value.forEach((r) => {
|
|
2586
|
-
if (
|
|
2587
|
-
let i = Vl(r), a = V.value.chart.tooltip.showValue ?
|
|
2589
|
+
if (p(r.value)) {
|
|
2590
|
+
let i = Vl(r), a = V.value.chart.tooltip.showValue ? m(r.type === "line" ? V.value.line.labels.formatter : r.type === "bar" ? V.value.bar.labels.formatter : V.value.plot.labels.formatter, r.value, s({
|
|
2588
2591
|
p: r.prefix,
|
|
2589
2592
|
v: r.value,
|
|
2590
2593
|
s: r.suffix,
|
|
2591
2594
|
r: V.value.chart.tooltip.roundingValue
|
|
2592
|
-
}), { datapoint: r }) : "",
|
|
2595
|
+
}), { datapoint: r }) : "", o = V.value.chart.tooltip.showValue ? n?.text ?? "" : "", c = G.value ? `
|
|
2593
2596
|
<span>${V.value.chart.grid.labels.axis.xLabel || "X"}: </span>
|
|
2594
|
-
<span>${
|
|
2597
|
+
<span>${o}</span>,
|
|
2595
2598
|
<span>${V.value.chart.grid.labels.axis.yLabel || "Y"}: </span>
|
|
2596
2599
|
<span>${a}</span>
|
|
2597
2600
|
` : a;
|
|
@@ -2605,8 +2608,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2605
2608
|
</div>
|
|
2606
2609
|
</div>
|
|
2607
2610
|
</div>
|
|
2608
|
-
` : e += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;white-space:nowrap;"><div style="width:20px">${i}</div> ${r.name}: <b>${c}</b> ${V.value.chart.tooltip.showPercentage ? `(${
|
|
2609
|
-
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>${c}</b> ${V.value.chart.tooltip.showPercentage ? `(${s({
|
|
2612
|
+
v: g(Math.abs(r.value) / t * 100),
|
|
2610
2613
|
s: "%",
|
|
2611
2614
|
r: V.value.chart.tooltip.roundingPercentage
|
|
2612
2615
|
})})` : ""}</div>`;
|
|
@@ -2628,7 +2631,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2628
2631
|
});
|
|
2629
2632
|
function Wl(e) {
|
|
2630
2633
|
let t = Number(e);
|
|
2631
|
-
return Number.isFinite(t) ?
|
|
2634
|
+
return Number.isFinite(t) ? m(V.value.chart.grid.labels.xAxis.formatter, t, s({
|
|
2632
2635
|
v: t,
|
|
2633
2636
|
r: V.value.table.rounding
|
|
2634
2637
|
}), {
|
|
@@ -2652,7 +2655,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2652
2655
|
}
|
|
2653
2656
|
function Jl(e, t) {
|
|
2654
2657
|
let n = Kl(e, t);
|
|
2655
|
-
return vt(n) ?
|
|
2658
|
+
return vt(n) ? m(e.type === "line" ? V.value.line.labels.formatter : e.type === "bar" ? V.value.bar.labels.formatter : V.value.plot.labels.formatter, n, s({
|
|
2656
2659
|
p: e.prefix || V.value.chart.labels.prefix,
|
|
2657
2660
|
v: n,
|
|
2658
2661
|
s: e.suffix || V.value.chart.labels.suffix,
|
|
@@ -2725,8 +2728,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2725
2728
|
[V.value.chart.title.text],
|
|
2726
2729
|
[V.value.chart.title.subtitle.text],
|
|
2727
2730
|
[""]
|
|
2728
|
-
], n = [G.value ? V.value.chart.grid.labels.axis.xLabel || "X" : V.value.table.columnNames.period, ...Zl.value.head.map((e) => e.label)], r = Zl.value.body, i =
|
|
2729
|
-
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 = se(t.concat([n]).concat(r));
|
|
2732
|
+
e ? e(i) : ee({
|
|
2730
2733
|
csvContent: i,
|
|
2731
2734
|
title: V.value.chart.title.text || "vue-ui-xy"
|
|
2732
2735
|
});
|
|
@@ -2769,43 +2772,43 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2769
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;
|
|
2770
2773
|
return;
|
|
2771
2774
|
}
|
|
2772
|
-
B.value.dataLabels =
|
|
2775
|
+
B.value.dataLabels = l({
|
|
2773
2776
|
relator: ta.value,
|
|
2774
2777
|
adjuster: 400,
|
|
2775
2778
|
source: V.value.chart.grid.labels.fontSize,
|
|
2776
2779
|
threshold: 10,
|
|
2777
2780
|
fallback: 10
|
|
2778
|
-
}), B.value.yAxis =
|
|
2781
|
+
}), B.value.yAxis = l({
|
|
2779
2782
|
relator: P.value,
|
|
2780
2783
|
adjuster: 1e3,
|
|
2781
2784
|
source: V.value.chart.grid.labels.axis.fontSize,
|
|
2782
2785
|
threshold: 10,
|
|
2783
2786
|
fallback: 10
|
|
2784
|
-
}), B.value.xAxis =
|
|
2787
|
+
}), B.value.xAxis = l({
|
|
2785
2788
|
relator: P.value,
|
|
2786
2789
|
adjuster: 1e3,
|
|
2787
2790
|
source: V.value.chart.grid.labels.xAxisLabels.fontSize,
|
|
2788
2791
|
threshold: 10,
|
|
2789
2792
|
fallback: 10
|
|
2790
|
-
}), B.value.plotLabels =
|
|
2793
|
+
}), B.value.plotLabels = l({
|
|
2791
2794
|
relator: P.value,
|
|
2792
2795
|
adjuster: 800,
|
|
2793
2796
|
source: V.value.chart.labels.fontSize,
|
|
2794
2797
|
threshold: 10,
|
|
2795
2798
|
fallback: 10
|
|
2796
|
-
}), Ka.value.plot =
|
|
2799
|
+
}), Ka.value.plot = l({
|
|
2797
2800
|
relator: P.value,
|
|
2798
2801
|
adjuster: 800,
|
|
2799
2802
|
source: V.value.plot.radius,
|
|
2800
2803
|
threshold: 1,
|
|
2801
2804
|
fallback: 1
|
|
2802
|
-
}), Ka.value.line =
|
|
2805
|
+
}), Ka.value.line = l({
|
|
2803
2806
|
relator: P.value,
|
|
2804
2807
|
adjuster: 800,
|
|
2805
2808
|
source: V.value.line.radius,
|
|
2806
2809
|
threshold: 1,
|
|
2807
2810
|
fallback: 0
|
|
2808
|
-
}), Ka.value.selectedLine =
|
|
2811
|
+
}), Ka.value.selectedLine = l({
|
|
2809
2812
|
relator: P.value,
|
|
2810
2813
|
adjuster: 800,
|
|
2811
2814
|
source: V.value.line.dot.selectedRadius,
|
|
@@ -2814,12 +2817,12 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2814
2817
|
});
|
|
2815
2818
|
}
|
|
2816
2819
|
function ou() {
|
|
2817
|
-
if (
|
|
2820
|
+
if (i(M.dataset) ? (de({
|
|
2818
2821
|
componentName: "VueUiXy",
|
|
2819
2822
|
type: "dataset",
|
|
2820
2823
|
debug: $a.value
|
|
2821
2824
|
}), io.value = !0) : M.dataset.forEach((e, t) => {
|
|
2822
|
-
[null, void 0].includes(e.name) && (
|
|
2825
|
+
[null, void 0].includes(e.name) && (de({
|
|
2823
2826
|
componentName: "VueUiXy",
|
|
2824
2827
|
type: "datasetSerieAttribute",
|
|
2825
2828
|
property: "name (string)",
|
|
@@ -2828,9 +2831,9 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2828
2831
|
}), io.value = !0);
|
|
2829
2832
|
}), $a.value && M.dataset.forEach((e) => {
|
|
2830
2833
|
e.series.forEach((t, n) => {
|
|
2831
|
-
|
|
2834
|
+
p(t) || console.warn(`VueUiXy has detected an unsafe value in your dataset:\n-----> The serie '${e.name}' contains the value '${t}' at index ${n}.\n'${t}' was converted to null to allow the chart to display.`);
|
|
2832
2835
|
});
|
|
2833
|
-
}),
|
|
2836
|
+
}), i(M.dataset) || (io.value = V.value.loading), ga.value = V.value.chart.userOptions.showOnChartHover, _a.value = V.value.chart.userOptions.keepStateOnChartLeave, va.value = !V.value.chart.userOptions.showOnChartHover, Qa(), V.value.responsive) {
|
|
2834
2837
|
let e = zi.value.parentNode;
|
|
2835
2838
|
Zi.value && (Qi.value && Zi.value.unobserve(Qi.value), Zi.value.disconnect(), Zi.value = null, Qi.value = null);
|
|
2836
2839
|
let { height: t, width: n } = e.getBoundingClientRect(), r = null, i = 0;
|
|
@@ -2843,12 +2846,12 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2843
2846
|
Ui.value && (l = Ui.value.getBoundingClientRect().height);
|
|
2844
2847
|
let u = 0;
|
|
2845
2848
|
Wi.value && (u = Wi.value.getBoundingClientRect().height), ta.value = t - i - c - o - l - u - 12, P.value = n, na.value = `0 0 ${P.value < 0 ? 10 : P.value} ${ta.value < 0 ? 10 : ta.value}`, au();
|
|
2846
|
-
let
|
|
2849
|
+
let d = new ResizeObserver((e) => {
|
|
2847
2850
|
for (let t of e) i = V.value.chart.title.show && Bi.value ? Bi.value.getBoundingClientRect().height : 0, o = Vi.value && Vi.value.$el ? Vi.value.$el.getBoundingClientRect().height : 0, c = Hi.value ? Hi.value.getBoundingClientRect().height : 0, l = Ui.value ? Ui.value.getBoundingClientRect().height : 0, u = Wi.value ? Wi.value.getBoundingClientRect().height : 0, requestAnimationFrame(() => {
|
|
2848
2851
|
ta.value = t.contentRect.height - i - c - o - l - u - 12, P.value = t.contentBoxSize[0].inlineSize ?? t.contentRect.width, na.value = `0 0 ${P.value < 0 ? 10 : P.value} ${ta.value < 0 ? 10 : ta.value}`, au(), Va();
|
|
2849
2852
|
});
|
|
2850
2853
|
});
|
|
2851
|
-
Zi.value =
|
|
2854
|
+
Zi.value = d, Qi.value = e, d.observe(e);
|
|
2852
2855
|
} else ta.value = V.value.chart.height, P.value = V.value.chart.width, 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, na.value = `0 0 ${P.value} ${ta.value}`;
|
|
2853
2856
|
Va();
|
|
2854
2857
|
}
|
|
@@ -2858,9 +2861,9 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2858
2861
|
y: e.clientY
|
|
2859
2862
|
};
|
|
2860
2863
|
}
|
|
2861
|
-
|
|
2864
|
+
ct(() => {
|
|
2862
2865
|
ou(), Ss(), document.addEventListener("mousemove", su, { passive: !0 }), document.addEventListener("scroll", Qo, { passive: !0 });
|
|
2863
|
-
}),
|
|
2866
|
+
}), st(() => {
|
|
2864
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();
|
|
2865
2868
|
}), Ve({
|
|
2866
2869
|
timeLabelsEls: Ji,
|
|
@@ -2887,19 +2890,19 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2887
2890
|
width: P,
|
|
2888
2891
|
rotation: V.value.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
2889
2892
|
});
|
|
2890
|
-
let cu =
|
|
2893
|
+
let cu = D(!1), lu = D(null), uu = D(200), du = y(() => R.value ?? I.value ?? 0), fu = y(() => {
|
|
2891
2894
|
if (!G.value) return null;
|
|
2892
|
-
if (
|
|
2895
|
+
if (_(Ta.value)) return Number(Ta.value);
|
|
2893
2896
|
let e = Z.value[0];
|
|
2894
|
-
return
|
|
2897
|
+
return _(e?.point?.x) ? Number(e.point.x) : null;
|
|
2895
2898
|
});
|
|
2896
2899
|
function pu() {
|
|
2897
2900
|
let e = Math.ceil(uu.value || 200);
|
|
2898
2901
|
return Math.min(Math.max(e, 1), 200);
|
|
2899
2902
|
}
|
|
2900
2903
|
function mu() {
|
|
2901
|
-
let e = pu(), t = (G.value &&
|
|
2902
|
-
return
|
|
2904
|
+
let e = pu(), t = (G.value && _(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 g(Math.max(n, Math.min(t, r)));
|
|
2903
2906
|
}
|
|
2904
2907
|
function hu() {
|
|
2905
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;
|
|
@@ -2914,7 +2917,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2914
2917
|
e.offsetParent !== null && gu(e.offsetWidth || e.getBoundingClientRect().width || 200);
|
|
2915
2918
|
}), ka.value.observe(e), z.value = e));
|
|
2916
2919
|
}
|
|
2917
|
-
|
|
2920
|
+
ct(() => {
|
|
2918
2921
|
ka.value = new ResizeObserver((e) => {
|
|
2919
2922
|
let t = e.find((e) => e.target === z.value) || e[0];
|
|
2920
2923
|
t && gu(t.contentRect.width || 200);
|
|
@@ -2936,7 +2939,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2936
2939
|
let e = (R.value == null ? 0 : R.value) || (I.value == null ? 0 : I.value), t = V.value.chart.timeTag.customFormat;
|
|
2937
2940
|
if (cu.value = !1, G.value) {
|
|
2938
2941
|
let e = fu.value;
|
|
2939
|
-
if (
|
|
2942
|
+
if (he(t)) try {
|
|
2940
2943
|
let n = t({
|
|
2941
2944
|
absoluteIndex: e,
|
|
2942
2945
|
seriesIndex: e,
|
|
@@ -2950,12 +2953,12 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2950
2953
|
} catch {
|
|
2951
2954
|
console.warn("Custom format cannot be applied on timeTag."), cu.value = !1;
|
|
2952
2955
|
}
|
|
2953
|
-
return
|
|
2956
|
+
return s({
|
|
2954
2957
|
v: e,
|
|
2955
2958
|
r: V.value.chart.grid.labels.xAxis.rounding
|
|
2956
2959
|
});
|
|
2957
2960
|
}
|
|
2958
|
-
if (
|
|
2961
|
+
if (he(t)) try {
|
|
2959
2962
|
let n = t({
|
|
2960
2963
|
absoluteIndex: e + U.value.start,
|
|
2961
2964
|
seriesIndex: e,
|
|
@@ -2973,17 +2976,17 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2973
2976
|
});
|
|
2974
2977
|
function yu({ serie: e, plot: n, type: r }) {
|
|
2975
2978
|
if (!vt(n.value)) return "";
|
|
2976
|
-
let i =
|
|
2979
|
+
let i = s({
|
|
2977
2980
|
p: e.prefix || V.value.chart.labels.prefix,
|
|
2978
2981
|
v: n.value,
|
|
2979
2982
|
s: e.suffix || V.value.chart.labels.suffix,
|
|
2980
2983
|
r: V.value[r].labels.rounding
|
|
2981
2984
|
}), a = n.datasetXValue;
|
|
2982
2985
|
return t({
|
|
2983
|
-
content: G.value &&
|
|
2986
|
+
content: G.value && _(a) ? `x: ${s({
|
|
2984
2987
|
v: a,
|
|
2985
2988
|
r: V.value.chart.grid.labels.xAxis.rounding
|
|
2986
|
-
})}\ny: ${i}` :
|
|
2989
|
+
})}\ny: ${i}` : m(V.value[r].labels.formatter, n.value, i, {
|
|
2987
2990
|
datapoint: n,
|
|
2988
2991
|
serie: e
|
|
2989
2992
|
}),
|
|
@@ -2996,14 +2999,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
2996
2999
|
function bu({ plot: e }) {
|
|
2997
3000
|
let t = V.value.bar.labels.offsetY, n = Math.abs(Ks(e)), r = e.value < 0, i = {
|
|
2998
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,
|
|
2999
|
-
y:
|
|
3002
|
+
y: g(e.y) + (V.value.bar.labels.alwaysOnTop ? t - (r ? n : 0) : e.value >= 0 ? t : -t * 3)
|
|
3000
3003
|
};
|
|
3001
3004
|
return `translate(${i.x}, ${i.y}) rotate(${V.value.bar.labels.rotation})`;
|
|
3002
3005
|
}
|
|
3003
3006
|
function xu({ plot: e, type: t }) {
|
|
3004
3007
|
let n = V.value[t].labels.offsetY, r = {
|
|
3005
3008
|
x: e.x + V.value[t].labels.offsetX,
|
|
3006
|
-
y:
|
|
3009
|
+
y: g(e.y) + (V.value[t].labels.alwaysOnTop || e.value >= 0 ? n : -n * 3)
|
|
3007
3010
|
};
|
|
3008
3011
|
return `translate(${r.x}, ${r.y}) rotate(${V.value[t].labels.rotation})`;
|
|
3009
3012
|
}
|
|
@@ -3012,22 +3015,22 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3012
3015
|
let n = e.value >= 0;
|
|
3013
3016
|
return V.value[t].labels.rotation === 0 ? "middle" : V.value[t].labels.alwaysOnTop || n ? "start" : "end";
|
|
3014
3017
|
}
|
|
3015
|
-
let Cu = y(() => G.value ?
|
|
3018
|
+
let Cu = y(() => G.value ? _(Ta.value) ? ml({ x: Number(Ta.value) }) : _($s.value) ? $s.value : null : Oc((R.value === null ? 0 : R.value) || (I.value === null ? 0 : I.value))), wu = y(() => V.value.chart.highlighter.crosshairs.show && ms.value), Tu = y(() => [
|
|
3016
3019
|
...Q.value,
|
|
3017
3020
|
...$.value,
|
|
3018
3021
|
...kl.value
|
|
3019
3022
|
].flatMap((e) => (e.plots || []).filter((t, n) => Ou(e, t, n)).filter((e) => vt(e.value)).map((t) => ({
|
|
3020
3023
|
...t,
|
|
3021
3024
|
serie: e,
|
|
3022
|
-
x:
|
|
3023
|
-
y:
|
|
3025
|
+
x: g(t.x),
|
|
3026
|
+
y: g(t.y)
|
|
3024
3027
|
})))), Eu = y(() => {
|
|
3025
3028
|
if (!wu.value) return null;
|
|
3026
3029
|
if (G.value) {
|
|
3027
3030
|
let e = Z.value[0], t = e?.point?.raw?.x ?? e?.point?.x;
|
|
3028
|
-
return
|
|
3031
|
+
return _(t) ? {
|
|
3029
3032
|
x: Cu.value,
|
|
3030
|
-
text:
|
|
3033
|
+
text: m(V.value.chart.grid.labels.xAxis.formatter, t, s({
|
|
3031
3034
|
v: t,
|
|
3032
3035
|
r: V.value.chart.tooltip.roundingValue
|
|
3033
3036
|
}))
|
|
@@ -3093,7 +3096,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3093
3096
|
}, { deep: !0 }), ht(() => M.config, (e) => {
|
|
3094
3097
|
no.value || (V.value = Ja()), ou(), pa.value += 1, fa.value += 1, Qa(), V.value.chart.zoom.keepState && uo.value > 0 && (!ys.value || U.value.start === 0 && U.value.end === 0) && Ss(), ho();
|
|
3095
3098
|
}, { deep: !0 });
|
|
3096
|
-
let Pu =
|
|
3099
|
+
let Pu = D(!1), Fu = D(!1);
|
|
3097
3100
|
function Iu() {
|
|
3098
3101
|
let e = zi.value?.parentNode;
|
|
3099
3102
|
if (!e) {
|
|
@@ -3106,7 +3109,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3106
3109
|
function Lu() {
|
|
3107
3110
|
return !Pu.value || Fu.value || ys.value ? !1 : U.value.start === 0 && U.value.end === 0;
|
|
3108
3111
|
}
|
|
3109
|
-
|
|
3112
|
+
ct(() => {
|
|
3110
3113
|
Iu(), Oa.value = new ResizeObserver(() => {
|
|
3111
3114
|
Iu(), Pu.value && (ou(), ho(), Lu() && Ss());
|
|
3112
3115
|
}), zi.value?.parentNode && Oa.value.observe(zi.value.parentNode);
|
|
@@ -3214,7 +3217,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3214
3217
|
}
|
|
3215
3218
|
}));
|
|
3216
3219
|
}
|
|
3217
|
-
let Ju =
|
|
3220
|
+
let Ju = D(!1);
|
|
3218
3221
|
function Yu() {
|
|
3219
3222
|
U.value.end > U.value.start && (Ea.value = null), es.value = !0, Ju.value = !0;
|
|
3220
3223
|
}
|
|
@@ -3240,8 +3243,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3240
3243
|
function Qu(e) {
|
|
3241
3244
|
let t = U.value.end - U.value.start;
|
|
3242
3245
|
if (t <= 0) return;
|
|
3243
|
-
let
|
|
3244
|
-
|
|
3246
|
+
let r = J.value.width / t, i = n(J.value.left + r * e + r / 2, J.value.top + J.value.height / 2, L.value);
|
|
3247
|
+
i && (Da.value = i);
|
|
3245
3248
|
}
|
|
3246
3249
|
let $u = y(() => {
|
|
3247
3250
|
if (!Ql.value) return null;
|
|
@@ -3268,12 +3271,12 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3268
3271
|
toggleFullscreen: iu,
|
|
3269
3272
|
copyAlt: qu,
|
|
3270
3273
|
resetZoom: Ns
|
|
3271
|
-
}), (n, r) => (
|
|
3274
|
+
}), (n, r) => (E(), x("div", {
|
|
3272
3275
|
id: `vue-ui-xy_${F.value}`,
|
|
3273
3276
|
class: ot(`vue-data-ui-component vue-ui-xy ${oa.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${V.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
3274
3277
|
ref_key: "chart",
|
|
3275
3278
|
ref: zi,
|
|
3276
|
-
style:
|
|
3279
|
+
style: T(`background:${V.value.chart.backgroundColor}; color:${V.value.chart.color};width:100%;font-family:${V.value.chart.fontFamily};${V.value.responsive ? "height: 100%" : ""}`),
|
|
3277
3280
|
onMouseenter: ns,
|
|
3278
3281
|
onMouseleave: rs,
|
|
3279
3282
|
onClick: cc
|
|
@@ -3281,8 +3284,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3281
3284
|
S("div", {
|
|
3282
3285
|
id: `chart-instructions-${F.value}`,
|
|
3283
3286
|
class: "sr-only"
|
|
3284
|
-
}, [S("p", null,
|
|
3285
|
-
$u.value?.rows?.length ? (
|
|
3287
|
+
}, [S("p", null, dt(V.value.a11y.translations.keyboardNavigation), 1)], 8, kt),
|
|
3288
|
+
$u.value?.rows?.length ? (E(), Qe(Xe, {
|
|
3286
3289
|
key: 0,
|
|
3287
3290
|
uid: F.value,
|
|
3288
3291
|
head: $u.value.headers,
|
|
@@ -3296,7 +3299,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3296
3299
|
"notice",
|
|
3297
3300
|
"caption"
|
|
3298
3301
|
])) : b("", !0),
|
|
3299
|
-
V.value.chart.userOptions.buttons.annotator && L.value ? (
|
|
3302
|
+
V.value.chart.userOptions.buttons.annotator && L.value ? (E(), Qe(A(ji), {
|
|
3300
3303
|
key: 1,
|
|
3301
3304
|
svgRef: L.value,
|
|
3302
3305
|
backgroundColor: V.value.chart.backgroundColor,
|
|
@@ -3305,12 +3308,12 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3305
3308
|
isCursorPointer: Za.value,
|
|
3306
3309
|
onClose: is
|
|
3307
3310
|
}, {
|
|
3308
|
-
"annotator-action-close": j(() => [
|
|
3309
|
-
"annotator-action-color": j(({ color: e }) => [
|
|
3310
|
-
"annotator-action-draw": j(({ mode: e }) => [
|
|
3311
|
-
"annotator-action-undo": j(({ disabled: e }) => [
|
|
3312
|
-
"annotator-action-redo": j(({ disabled: e }) => [
|
|
3313
|
-
"annotator-action-delete": j(({ disabled: e }) => [
|
|
3311
|
+
"annotator-action-close": j(() => [k(n.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
3312
|
+
"annotator-action-color": j(({ color: e }) => [k(n.$slots, "annotator-action-color", w(C({ color: e })), void 0, !0)]),
|
|
3313
|
+
"annotator-action-draw": j(({ mode: e }) => [k(n.$slots, "annotator-action-draw", w(C({ mode: e })), void 0, !0)]),
|
|
3314
|
+
"annotator-action-undo": j(({ disabled: e }) => [k(n.$slots, "annotator-action-undo", w(C({ disabled: e })), void 0, !0)]),
|
|
3315
|
+
"annotator-action-redo": j(({ disabled: e }) => [k(n.$slots, "annotator-action-redo", w(C({ disabled: e })), void 0, !0)]),
|
|
3316
|
+
"annotator-action-delete": j(({ disabled: e }) => [k(n.$slots, "annotator-action-delete", w(C({ disabled: e })), void 0, !0)]),
|
|
3314
3317
|
_: 3
|
|
3315
3318
|
}, 8, [
|
|
3316
3319
|
"svgRef",
|
|
@@ -3319,20 +3322,20 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3319
3322
|
"active",
|
|
3320
3323
|
"isCursorPointer"
|
|
3321
3324
|
])) : b("", !0),
|
|
3322
|
-
xc.value ? (
|
|
3325
|
+
xc.value ? (E(), x("div", {
|
|
3323
3326
|
key: 2,
|
|
3324
3327
|
ref_key: "noTitle",
|
|
3325
3328
|
ref: Wi,
|
|
3326
3329
|
class: "vue-data-ui-no-title-space",
|
|
3327
3330
|
style: "height:36px; width: 100%; background:transparent"
|
|
3328
3331
|
}, null, 512)) : b("", !0),
|
|
3329
|
-
V.value.chart.title.show ? (
|
|
3332
|
+
V.value.chart.title.show ? (E(), x("div", {
|
|
3330
3333
|
key: 3,
|
|
3331
3334
|
ref_key: "chartTitle",
|
|
3332
3335
|
ref: Bi,
|
|
3333
3336
|
class: "vue-ui-xy-title",
|
|
3334
|
-
style:
|
|
3335
|
-
}, [(
|
|
3337
|
+
style: T(`font-family:${V.value.chart.fontFamily}`)
|
|
3338
|
+
}, [(E(), Qe(Ue, {
|
|
3336
3339
|
key: `title_${pa.value}`,
|
|
3337
3340
|
config: {
|
|
3338
3341
|
title: {
|
|
@@ -3346,7 +3349,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3346
3349
|
}
|
|
3347
3350
|
}, null, 8, ["config"]))], 4)) : b("", !0),
|
|
3348
3351
|
S("div", { id: `legend-top-${F.value}` }, null, 8, At),
|
|
3349
|
-
V.value.chart.userOptions.show && (_a.value || va.value) ? (
|
|
3352
|
+
V.value.chart.userOptions.show && (_a.value || va.value) ? (E(), Qe(A(Di), {
|
|
3350
3353
|
ref_key: "userOptionsRef",
|
|
3351
3354
|
ref: Xi,
|
|
3352
3355
|
key: `user_options_${da.value}`,
|
|
@@ -3388,11 +3391,11 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3388
3391
|
onToggleTooltip: ru,
|
|
3389
3392
|
onToggleAnnotator: is,
|
|
3390
3393
|
onCopyAlt: qu,
|
|
3391
|
-
style:
|
|
3394
|
+
style: T({ visibility: _a.value ? va.value ? "visible" : "hidden" : "visible" })
|
|
3392
3395
|
}, $e({ _: 2 }, [
|
|
3393
3396
|
n.$slots.menuIcon ? {
|
|
3394
3397
|
name: "menuIcon",
|
|
3395
|
-
fn: j(({ isOpen: e, color: t }) => [
|
|
3398
|
+
fn: j(({ isOpen: e, color: t }) => [k(n.$slots, "menuIcon", w(C({
|
|
3396
3399
|
isOpen: e,
|
|
3397
3400
|
color: t
|
|
3398
3401
|
})), void 0, !0)]),
|
|
@@ -3400,47 +3403,47 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3400
3403
|
} : void 0,
|
|
3401
3404
|
n.$slots.optionTooltip ? {
|
|
3402
3405
|
name: "optionTooltip",
|
|
3403
|
-
fn: j(() => [
|
|
3406
|
+
fn: j(() => [k(n.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
3404
3407
|
key: "1"
|
|
3405
3408
|
} : void 0,
|
|
3406
3409
|
n.$slots.optionPdf ? {
|
|
3407
3410
|
name: "optionPdf",
|
|
3408
|
-
fn: j(() => [
|
|
3411
|
+
fn: j(() => [k(n.$slots, "optionPdf", {}, void 0, !0)]),
|
|
3409
3412
|
key: "2"
|
|
3410
3413
|
} : void 0,
|
|
3411
3414
|
n.$slots.optionCsv ? {
|
|
3412
3415
|
name: "optionCsv",
|
|
3413
|
-
fn: j(() => [
|
|
3416
|
+
fn: j(() => [k(n.$slots, "optionCsv", {}, void 0, !0)]),
|
|
3414
3417
|
key: "3"
|
|
3415
3418
|
} : void 0,
|
|
3416
3419
|
n.$slots.optionImg ? {
|
|
3417
3420
|
name: "optionImg",
|
|
3418
|
-
fn: j(() => [
|
|
3421
|
+
fn: j(() => [k(n.$slots, "optionImg", {}, void 0, !0)]),
|
|
3419
3422
|
key: "4"
|
|
3420
3423
|
} : void 0,
|
|
3421
3424
|
n.$slots.optionSvg ? {
|
|
3422
3425
|
name: "optionSvg",
|
|
3423
|
-
fn: j(() => [
|
|
3426
|
+
fn: j(() => [k(n.$slots, "optionSvg", {}, void 0, !0)]),
|
|
3424
3427
|
key: "5"
|
|
3425
3428
|
} : void 0,
|
|
3426
3429
|
n.$slots.optionTable ? {
|
|
3427
3430
|
name: "optionTable",
|
|
3428
|
-
fn: j(() => [
|
|
3431
|
+
fn: j(() => [k(n.$slots, "optionTable", {}, void 0, !0)]),
|
|
3429
3432
|
key: "6"
|
|
3430
3433
|
} : void 0,
|
|
3431
3434
|
n.$slots.optionLabels ? {
|
|
3432
3435
|
name: "optionLabels",
|
|
3433
|
-
fn: j(() => [
|
|
3436
|
+
fn: j(() => [k(n.$slots, "optionLabels", {}, void 0, !0)]),
|
|
3434
3437
|
key: "7"
|
|
3435
3438
|
} : void 0,
|
|
3436
3439
|
n.$slots.optionStack ? {
|
|
3437
3440
|
name: "optionStack",
|
|
3438
|
-
fn: j(({ isStack: e }) => [
|
|
3441
|
+
fn: j(({ isStack: e }) => [k(n.$slots, "optionStack", w(C({ isStack: e })), void 0, !0)]),
|
|
3439
3442
|
key: "8"
|
|
3440
3443
|
} : void 0,
|
|
3441
3444
|
n.$slots.optionFullscreen ? {
|
|
3442
3445
|
name: "optionFullscreen",
|
|
3443
|
-
fn: j(({ toggleFullscreen: e, isFullscreen: t }) => [
|
|
3446
|
+
fn: j(({ toggleFullscreen: e, isFullscreen: t }) => [k(n.$slots, "optionFullscreen", w(C({
|
|
3444
3447
|
toggleFullscreen: e,
|
|
3445
3448
|
isFullscreen: t
|
|
3446
3449
|
})), void 0, !0)]),
|
|
@@ -3448,7 +3451,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3448
3451
|
} : void 0,
|
|
3449
3452
|
n.$slots.optionAnnotator ? {
|
|
3450
3453
|
name: "optionAnnotator",
|
|
3451
|
-
fn: j(({ toggleAnnotator: e, isAnnotator: t }) => [
|
|
3454
|
+
fn: j(({ toggleAnnotator: e, isAnnotator: t }) => [k(n.$slots, "optionAnnotator", w(C({
|
|
3452
3455
|
toggleAnnotator: e,
|
|
3453
3456
|
isAnnotator: t
|
|
3454
3457
|
})), void 0, !0)]),
|
|
@@ -3456,21 +3459,21 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3456
3459
|
} : void 0,
|
|
3457
3460
|
n.$slots.optionAltCopy ? {
|
|
3458
3461
|
name: "optionAltCopy",
|
|
3459
|
-
fn: j(({ altCopy: e }) => [
|
|
3462
|
+
fn: j(({ altCopy: e }) => [k(n.$slots, "optionAltCopy", w(C({ altCopy: e })), void 0, !0)]),
|
|
3460
3463
|
key: "11"
|
|
3461
3464
|
} : void 0,
|
|
3462
3465
|
n.$slots["custom-menu-before"] ? {
|
|
3463
3466
|
name: "custom-menu-before",
|
|
3464
|
-
fn: j(() => [
|
|
3467
|
+
fn: j(() => [k(n.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
3465
3468
|
key: "12"
|
|
3466
3469
|
} : void 0,
|
|
3467
3470
|
n.$slots["custom-menu-after"] ? {
|
|
3468
3471
|
name: "custom-menu-after",
|
|
3469
|
-
fn: j(() => [
|
|
3472
|
+
fn: j(() => [k(n.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
3470
3473
|
key: "13"
|
|
3471
3474
|
} : void 0
|
|
3472
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("."))) : b("", !0),
|
|
3473
|
-
S("div", jt, [(
|
|
3476
|
+
S("div", jt, [(E(), x("svg", {
|
|
3474
3477
|
ref_key: "svgRef",
|
|
3475
3478
|
ref: L,
|
|
3476
3479
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3480,7 +3483,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3480
3483
|
}, "vue-ui-xy-svg vue-data-ui-svg"]),
|
|
3481
3484
|
width: "100%",
|
|
3482
3485
|
viewBox: na.value,
|
|
3483
|
-
style:
|
|
3486
|
+
style: T({
|
|
3484
3487
|
background: "transparent",
|
|
3485
3488
|
color: V.value.chart.color,
|
|
3486
3489
|
fontFamily: V.value.chart.fontFamily
|
|
@@ -3503,77 +3506,77 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3503
3506
|
class: "vue-data-ui-g"
|
|
3504
3507
|
}, [
|
|
3505
3508
|
tt(A(Ai)),
|
|
3506
|
-
n.$slots["chart-background"] ? (
|
|
3509
|
+
n.$slots["chart-background"] ? (E(), x("foreignObject", {
|
|
3507
3510
|
key: 0,
|
|
3508
3511
|
x: Math.max(0, J.value?.left),
|
|
3509
3512
|
y: J.value?.top,
|
|
3510
3513
|
width: Math.max(0, J.value?.width),
|
|
3511
3514
|
height: Math.max(0, J.value?.height),
|
|
3512
3515
|
style: { pointerEvents: "none" }
|
|
3513
|
-
}, [
|
|
3514
|
-
X.value > 0 ? (
|
|
3516
|
+
}, [k(n.$slots, "chart-background", {}, void 0, !0)], 8, Nt)) : b("", !0),
|
|
3517
|
+
X.value > 0 ? (E(), x("g", Pt, [
|
|
3515
3518
|
S("g", Ft, [
|
|
3516
|
-
V.value.chart.grid.labels.xAxis.showBaseline ? (
|
|
3519
|
+
V.value.chart.grid.labels.xAxis.showBaseline ? (E(), x("line", {
|
|
3517
3520
|
key: 0,
|
|
3518
3521
|
stroke: V.value.chart.grid.stroke,
|
|
3519
3522
|
"stroke-width": "1",
|
|
3520
3523
|
x1: J.value?.left,
|
|
3521
3524
|
x2: J.value?.right,
|
|
3522
|
-
y1: A(
|
|
3523
|
-
y2: A(
|
|
3525
|
+
y1: A(h)(J.value?.bottom),
|
|
3526
|
+
y2: A(h)(J.value?.bottom),
|
|
3524
3527
|
"stroke-linecap": "round",
|
|
3525
3528
|
style: { animation: "none !important" }
|
|
3526
3529
|
}, null, 8, It)) : b("", !0),
|
|
3527
|
-
H.value.useIndividualScale ? V.value.chart.grid.showHorizontalLines ? (
|
|
3530
|
+
H.value.useIndividualScale ? V.value.chart.grid.showHorizontalLines ? (E(!0), x(v, { key: 2 }, O(jl.value, (e) => (E(), x("g", { key: `individual_grid_${e.groupId || e.id}` }, [e.id === N.value && e.yLabels.length ? (E(!0), x(v, { key: 0 }, O(e.yLabels, (t) => (E(), x("line", {
|
|
3528
3531
|
key: `selected_individual_grid_line_${e.groupId || e.id}_${t.value}_${t.y}`,
|
|
3529
3532
|
x1: J.value?.left,
|
|
3530
3533
|
x2: J.value?.right,
|
|
3531
|
-
y1: A(
|
|
3532
|
-
y2: A(
|
|
3534
|
+
y1: A(h)(t.y),
|
|
3535
|
+
y2: A(h)(t.y),
|
|
3533
3536
|
stroke: e.color,
|
|
3534
3537
|
"stroke-width": .5,
|
|
3535
3538
|
"stroke-linecap": "round",
|
|
3536
3539
|
style: { animation: "none !important" }
|
|
3537
|
-
}, null, 8, Bt))), 128)) : e.yLabels.length ? (
|
|
3540
|
+
}, null, 8, Bt))), 128)) : e.yLabels.length ? (E(!0), x(v, { key: 1 }, O(e.yLabels, (t) => (E(), x("line", {
|
|
3538
3541
|
key: `individual_grid_line_${e.groupId || e.id}_${t.value}_${t.y}`,
|
|
3539
3542
|
x1: J.value?.left,
|
|
3540
3543
|
x2: J.value?.right,
|
|
3541
|
-
y1: A(
|
|
3542
|
-
y2: A(
|
|
3544
|
+
y1: A(h)(t.y),
|
|
3545
|
+
y2: A(h)(t.y),
|
|
3543
3546
|
stroke: V.value.chart.grid.stroke,
|
|
3544
3547
|
"stroke-width": .5,
|
|
3545
3548
|
"stroke-linecap": "round",
|
|
3546
3549
|
style: { animation: "none !important" }
|
|
3547
|
-
}, null, 8, Vt))), 128)) : b("", !0)]))), 128)) : b("", !0) : (
|
|
3550
|
+
}, null, 8, Vt))), 128)) : b("", !0)]))), 128)) : b("", !0) : (E(), x(v, { key: 1 }, [V.value.chart.grid.labels.yAxis.showBaseline ? (E(), x("line", {
|
|
3548
3551
|
key: 0,
|
|
3549
3552
|
class: "vue-ui-xy-y-axis",
|
|
3550
3553
|
stroke: V.value.chart.grid.stroke,
|
|
3551
3554
|
"stroke-width": "1",
|
|
3552
3555
|
x1: q.value ? J.value?.right : J.value?.left,
|
|
3553
3556
|
x2: q.value ? J.value?.right : J.value?.left,
|
|
3554
|
-
y1: A(
|
|
3555
|
-
y2: A(
|
|
3557
|
+
y1: A(h)(J.value?.top),
|
|
3558
|
+
y2: A(h)(J.value?.bottom),
|
|
3556
3559
|
"stroke-linecap": "round",
|
|
3557
3560
|
style: { animation: "none !important" }
|
|
3558
|
-
}, null, 8, Lt)) : b("", !0), V.value.chart.grid.showHorizontalLines ? (
|
|
3561
|
+
}, null, 8, Lt)) : b("", !0), V.value.chart.grid.showHorizontalLines ? (E(), x("g", Rt, [(E(!0), x(v, null, O(tl.value, (e) => (E(), x("line", {
|
|
3559
3562
|
key: `horizontal_grid_line_${e.value}_${e.y}`,
|
|
3560
3563
|
x1: J.value?.left,
|
|
3561
3564
|
x2: J.value?.right,
|
|
3562
|
-
y1: A(
|
|
3563
|
-
y2: A(
|
|
3565
|
+
y1: A(h)(e.y),
|
|
3566
|
+
y2: A(h)(e.y),
|
|
3564
3567
|
stroke: V.value.chart.grid.stroke,
|
|
3565
3568
|
"stroke-width": .5,
|
|
3566
3569
|
"stroke-linecap": "round",
|
|
3567
3570
|
style: { animation: "none !important" }
|
|
3568
3571
|
}, null, 8, zt))), 128))])) : b("", !0)], 64)),
|
|
3569
|
-
V.value.chart.grid.showVerticalLines ? (
|
|
3572
|
+
V.value.chart.grid.showVerticalLines ? (E(), x("g", Ht, [S("path", {
|
|
3570
3573
|
d: Jo.value,
|
|
3571
3574
|
"stroke-width": .5,
|
|
3572
3575
|
stroke: V.value.chart.grid.stroke,
|
|
3573
3576
|
"stroke-linecap": "round",
|
|
3574
3577
|
style: { animation: "none !important" }
|
|
3575
3578
|
}, null, 8, Ut)])) : b("", !0),
|
|
3576
|
-
V.value.chart.grid.labels.xAxisLabels.show ? (
|
|
3579
|
+
V.value.chart.grid.labels.xAxisLabels.show ? (E(), x("g", Wt, [S("path", {
|
|
3577
3580
|
d: Yo.value,
|
|
3578
3581
|
stroke: V.value.chart.grid.stroke,
|
|
3579
3582
|
"stroke-width": 1,
|
|
@@ -3581,14 +3584,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3581
3584
|
style: { animation: "none !important" }
|
|
3582
3585
|
}, null, 8, Gt)])) : b("", !0)
|
|
3583
3586
|
]),
|
|
3584
|
-
(
|
|
3587
|
+
(E(!0), x(v, null, O(kl.value, (e, t) => (E(), x("defs", { key: `def_rect_${t}` }, [n.$slots["bar-gradient"] ? k(n.$slots, "bar-gradient", it({
|
|
3585
3588
|
key: 0,
|
|
3586
3589
|
ref_for: !0
|
|
3587
3590
|
}, {
|
|
3588
3591
|
series: e,
|
|
3589
3592
|
positiveId: `rectGradient_pos_${t}_${F.value}`,
|
|
3590
3593
|
negativeId: `rectGradient_neg_${t}_${F.value}`
|
|
3591
|
-
}), void 0, !0) : (
|
|
3594
|
+
}), void 0, !0) : (E(), x(v, { key: 1 }, [S("linearGradient", {
|
|
3592
3595
|
id: `rectGradient_pos_${t}_${F.value}`,
|
|
3593
3596
|
x2: "0%",
|
|
3594
3597
|
y2: "100%"
|
|
@@ -3599,11 +3602,11 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3599
3602
|
}, null, 8, qt),
|
|
3600
3603
|
S("stop", {
|
|
3601
3604
|
offset: "62%",
|
|
3602
|
-
"stop-color": `${A(
|
|
3605
|
+
"stop-color": `${A(d)(e.color, .02)}`
|
|
3603
3606
|
}, null, 8, Jt),
|
|
3604
3607
|
S("stop", {
|
|
3605
3608
|
offset: "100%",
|
|
3606
|
-
"stop-color": `${A(
|
|
3609
|
+
"stop-color": `${A(d)(e.color, .05)}`
|
|
3607
3610
|
}, null, 8, Yt)
|
|
3608
3611
|
], 8, Kt), S("linearGradient", {
|
|
3609
3612
|
id: `rectGradient_neg_${t}_${F.value}`,
|
|
@@ -3612,18 +3615,18 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3612
3615
|
}, [
|
|
3613
3616
|
S("stop", {
|
|
3614
3617
|
offset: "0%",
|
|
3615
|
-
"stop-color": `${A(
|
|
3618
|
+
"stop-color": `${A(d)(e.color, .05)}`
|
|
3616
3619
|
}, null, 8, Zt),
|
|
3617
3620
|
S("stop", {
|
|
3618
3621
|
offset: "38%",
|
|
3619
|
-
"stop-color": `${A(
|
|
3622
|
+
"stop-color": `${A(d)(e.color, .02)}`
|
|
3620
3623
|
}, null, 8, Qt),
|
|
3621
3624
|
S("stop", {
|
|
3622
3625
|
offset: "100%",
|
|
3623
3626
|
"stop-color": e.color
|
|
3624
3627
|
}, null, 8, $t)
|
|
3625
3628
|
], 8, Xt)], 64))]))), 128)),
|
|
3626
|
-
(
|
|
3629
|
+
(E(!0), x(v, null, O($.value, (e, t) => (E(), x("defs", { key: `def_plot_${t}` }, [S("radialGradient", {
|
|
3627
3630
|
id: `plotGradient_${t}_${F.value}`,
|
|
3628
3631
|
cx: "50%",
|
|
3629
3632
|
cy: "50%",
|
|
@@ -3632,12 +3635,12 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3632
3635
|
fy: "50%"
|
|
3633
3636
|
}, [S("stop", {
|
|
3634
3637
|
offset: "0%",
|
|
3635
|
-
"stop-color": `${A(
|
|
3638
|
+
"stop-color": `${A(d)(e.color, .05)}`
|
|
3636
3639
|
}, null, 8, tn), S("stop", {
|
|
3637
3640
|
offset: "100%",
|
|
3638
3641
|
"stop-color": e.color
|
|
3639
3642
|
}, null, 8, nn)], 8, en)]))), 128)),
|
|
3640
|
-
(
|
|
3643
|
+
(E(!0), x(v, null, O(Q.value, (e, t) => (E(), x(v, { key: `def_line_${e.id}` }, [S("defs", null, [S("radialGradient", {
|
|
3641
3644
|
id: `lineGradient_${t}_${F.value}`,
|
|
3642
3645
|
cx: "50%",
|
|
3643
3646
|
cy: "50%",
|
|
@@ -3646,17 +3649,17 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3646
3649
|
fy: "50%"
|
|
3647
3650
|
}, [S("stop", {
|
|
3648
3651
|
offset: "0%",
|
|
3649
|
-
"stop-color": `${A(
|
|
3652
|
+
"stop-color": `${A(d)(e.color, .05)}`
|
|
3650
3653
|
}, null, 8, an), S("stop", {
|
|
3651
3654
|
offset: "100%",
|
|
3652
3655
|
"stop-color": e.color
|
|
3653
|
-
}, null, 8, on)], 8, rn), n.$slots["area-gradient"] ?
|
|
3656
|
+
}, null, 8, on)], 8, rn), n.$slots["area-gradient"] ? k(n.$slots, "area-gradient", it({
|
|
3654
3657
|
key: 0,
|
|
3655
3658
|
ref_for: !0
|
|
3656
3659
|
}, {
|
|
3657
3660
|
series: e,
|
|
3658
3661
|
id: `areaGradient_${t}_${F.value}`
|
|
3659
|
-
}), void 0, !0) : (
|
|
3662
|
+
}), void 0, !0) : (E(), x("linearGradient", {
|
|
3660
3663
|
key: 1,
|
|
3661
3664
|
id: `areaGradient_${t}_${F.value}`,
|
|
3662
3665
|
x1: "0%",
|
|
@@ -3665,20 +3668,20 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3665
3668
|
y2: "0%"
|
|
3666
3669
|
}, [S("stop", {
|
|
3667
3670
|
offset: "0%",
|
|
3668
|
-
"stop-color": `${A(
|
|
3671
|
+
"stop-color": `${A(o)(A(d)(e.color, .03), V.value.line.area.opacity)}`
|
|
3669
3672
|
}, null, 8, cn), S("stop", {
|
|
3670
3673
|
offset: "100%",
|
|
3671
|
-
"stop-color": `${A(
|
|
3672
|
-
}, null, 8, ln)], 8, sn))]), e.temperatureColors && !e.isFlatTemperatureLine ? (
|
|
3674
|
+
"stop-color": `${A(o)(e.color, V.value.line.area.opacity)}`
|
|
3675
|
+
}, null, 8, ln)], 8, sn))]), e.temperatureColors && !e.isFlatTemperatureLine ? (E(), x("defs", un, [S("linearGradient", {
|
|
3673
3676
|
id: `temperature_grad_line_${t}_${F.value}`,
|
|
3674
3677
|
gradientTransform: "rotate(90)"
|
|
3675
|
-
}, [(
|
|
3678
|
+
}, [(E(!0), x(v, null, O(e.temperatureColors, (n, r) => (E(), x("stop", {
|
|
3676
3679
|
key: `temperature_grad_stop_${t}_${r}_${F.value}`,
|
|
3677
3680
|
"stop-color": n,
|
|
3678
|
-
offset: A(
|
|
3681
|
+
offset: A(ae)(r, e.temperatureColors.length)
|
|
3679
3682
|
}, null, 8, fn))), 128))], 8, dn)])) : b("", !0)], 64))), 128)),
|
|
3680
|
-
(
|
|
3681
|
-
style:
|
|
3683
|
+
(E(!0), x(v, null, O(Sc.value, (e) => (E(), x("g", { key: `highlight_area_${e.from}_${e.span}_${e.color}` }, [e.show ? (E(), x(v, { key: 0 }, [(E(!0), x(v, null, O(e.span, (t, n) => (E(), x("g", { key: `highlight_area_rect_${e.from}_${n}` }, [S("rect", {
|
|
3684
|
+
style: T({
|
|
3682
3685
|
transition: "none",
|
|
3683
3686
|
opacity: +(e.from + n >= U.value.start && e.from + n <= U.value.end - 1)
|
|
3684
3687
|
}),
|
|
@@ -3686,19 +3689,19 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3686
3689
|
y: J.value?.top,
|
|
3687
3690
|
height: J.value.height < 0 ? 10 : J.value.height,
|
|
3688
3691
|
width: jc(e.from + n - U.value.start),
|
|
3689
|
-
fill: A(
|
|
3690
|
-
}, null, 12, pn)]))), 128)), (
|
|
3692
|
+
fill: A(o)(e.color, e.opacity)
|
|
3693
|
+
}, null, 12, pn)]))), 128)), (E(!0), x(v, null, O(e.span, (t, n) => (E(), x("g", { key: `highlight_area_caption_${e.from}_${n}` }, [e.caption.text && n === 0 ? (E(), x("foreignObject", {
|
|
3691
3694
|
key: 0,
|
|
3692
3695
|
x: Ac(e.from + n - U.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - Pc(e.span) / 2),
|
|
3693
3696
|
y: J.value?.top + e.caption.offsetY,
|
|
3694
|
-
style:
|
|
3697
|
+
style: T({
|
|
3695
3698
|
overflow: "visible",
|
|
3696
3699
|
opacity: +(e.to >= U.value.start && e.from < U.value.end)
|
|
3697
3700
|
}),
|
|
3698
3701
|
height: "1",
|
|
3699
3702
|
width: e.caption.width === "auto" ? Pc(e.span) : e.caption.width
|
|
3700
|
-
}, [S("div", { style:
|
|
3701
|
-
es.value && !G.value ? (
|
|
3703
|
+
}, [S("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)) : b("", !0)]))), 128))], 64)) : b("", !0)]))), 128)),
|
|
3704
|
+
es.value && !G.value ? (E(), x("g", hn, [(E(!0), x(v, null, O(X.value, (e, t) => (E(), x("g", { key: `tooltip_trap_highlighter_${t}` }, [S("rect", {
|
|
3702
3705
|
x: Ac(t),
|
|
3703
3706
|
y: J.value?.top,
|
|
3704
3707
|
height: J.value.height < 0 ? 10 : J.value.height,
|
|
@@ -3707,18 +3710,18 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3707
3710
|
I.value,
|
|
3708
3711
|
R.value,
|
|
3709
3712
|
ca.value
|
|
3710
|
-
].includes(t) ? A(
|
|
3713
|
+
].includes(t) ? A(o)(V.value.chart.highlighter.color, V.value.chart.highlighter.crosshairs.show ? 0 : V.value.chart.highlighter.opacity) : "transparent",
|
|
3711
3714
|
style: {
|
|
3712
3715
|
transition: "none !important",
|
|
3713
3716
|
animation: "none !important"
|
|
3714
3717
|
}
|
|
3715
3718
|
}, null, 8, gn)]))), 128))])) : b("", !0),
|
|
3716
|
-
kl.value.length ? (
|
|
3719
|
+
kl.value.length ? (E(!0), x(v, { key: 1 }, O(kl.value, (e, t) => (E(), x("g", {
|
|
3717
3720
|
key: `serie_bar_${e.id}`,
|
|
3718
3721
|
class: ot(`serie_bar_${t}`),
|
|
3719
|
-
style:
|
|
3720
|
-
}, [(
|
|
3721
|
-
A(vt)(r.value) ? (
|
|
3722
|
+
style: T(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3723
|
+
}, [(E(!0), x(v, null, O(e.plots, (r, i) => (E(), x("g", { key: `bar_plot_${t}_${i}` }, [
|
|
3724
|
+
A(vt)(r.value) ? (E(), x("rect", {
|
|
3722
3725
|
key: 0,
|
|
3723
3726
|
x: Ys(r) + Zc.value / 2,
|
|
3724
3727
|
y: H.value.useIndividualScale ? Zs(r) : Xs(r),
|
|
@@ -3728,9 +3731,9 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3728
3731
|
fill: V.value.bar.useGradient ? r.value >= 0 ? `url(#rectGradient_pos_${t}_${F.value})` : `url(#rectGradient_neg_${t}_${F.value})` : e.color,
|
|
3729
3732
|
stroke: V.value.bar.border.useSerieColor ? e.color : V.value.bar.border.stroke,
|
|
3730
3733
|
"stroke-width": V.value.bar.border.strokeWidth,
|
|
3731
|
-
style:
|
|
3734
|
+
style: T({ transition: A(no) || !V.value.bar.showTransition ? void 0 : `all ${V.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
3732
3735
|
}, null, 12, _n)) : b("", !0),
|
|
3733
|
-
A(vt)(r.value) && n.$slots.pattern ? (
|
|
3736
|
+
A(vt)(r.value) && n.$slots.pattern ? (E(), x("rect", {
|
|
3734
3737
|
key: 1,
|
|
3735
3738
|
x: Ys(r) - Zc.value / 2,
|
|
3736
3739
|
y: H.value.useIndividualScale ? Zs(r) : Xs(r),
|
|
@@ -3740,38 +3743,38 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3740
3743
|
fill: `url(#pattern_${F.value}_${e.slotAbsoluteIndex})`,
|
|
3741
3744
|
stroke: V.value.bar.border.useSerieColor ? e.color : V.value.bar.border.stroke,
|
|
3742
3745
|
"stroke-width": V.value.bar.border.strokeWidth,
|
|
3743
|
-
style:
|
|
3746
|
+
style: T({ transition: A(no) || !V.value.bar.showTransition ? void 0 : `all ${V.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
3744
3747
|
}, null, 12, vn)) : b("", !0),
|
|
3745
|
-
r.comment && V.value.chart.comments.show ? (
|
|
3748
|
+
r.comment && V.value.chart.comments.show ? (E(), x("foreignObject", {
|
|
3746
3749
|
key: 2,
|
|
3747
3750
|
style: { overflow: "visible" },
|
|
3748
3751
|
height: "12",
|
|
3749
3752
|
width: Xc.value + V.value.chart.comments.width,
|
|
3750
3753
|
x: Ys(r) - V.value.chart.comments.width / 2 + V.value.chart.comments.offsetX,
|
|
3751
|
-
y: A(
|
|
3752
|
-
}, [
|
|
3754
|
+
y: A(g)(r.y) + V.value.chart.comments.offsetY + 6
|
|
3755
|
+
}, [k(n.$slots, "plot-comment", { plot: {
|
|
3753
3756
|
...r,
|
|
3754
3757
|
color: e.color,
|
|
3755
3758
|
seriesIndex: t,
|
|
3756
3759
|
datapointIndex: i
|
|
3757
3760
|
} }, void 0, !0)], 8, yn)) : b("", !0)
|
|
3758
3761
|
]))), 128))], 6))), 128)) : b("", !0),
|
|
3759
|
-
!H.value.useIndividualScale && V.value.chart.grid.labels.zeroLine.show ? (
|
|
3762
|
+
!H.value.useIndividualScale && V.value.chart.grid.labels.zeroLine.show ? (E(), x("line", {
|
|
3760
3763
|
key: 2,
|
|
3761
3764
|
stroke: V.value.chart.grid.stroke,
|
|
3762
3765
|
"stroke-width": "1",
|
|
3763
3766
|
x1: J.value?.left,
|
|
3764
3767
|
x2: J.value?.right,
|
|
3765
|
-
y1: A(
|
|
3766
|
-
y2: A(
|
|
3768
|
+
y1: A(h)(Ws.value),
|
|
3769
|
+
y2: A(h)(Ws.value),
|
|
3767
3770
|
"stroke-linecap": "round",
|
|
3768
3771
|
style: { animation: "none !important" }
|
|
3769
3772
|
}, null, 8, bn)) : b("", !0),
|
|
3770
|
-
!V.value.chart.highlighter.crosshairs.show && (V.value.chart.highlighter.useLine || G.value) && ms.value ? (
|
|
3773
|
+
!V.value.chart.highlighter.crosshairs.show && (V.value.chart.highlighter.useLine || G.value) && ms.value ? (E(), x("g", xn, [S("line", {
|
|
3771
3774
|
x1: Cu.value,
|
|
3772
3775
|
x2: Cu.value,
|
|
3773
|
-
y1: A(
|
|
3774
|
-
y2: A(
|
|
3776
|
+
y1: A(h)(J.value?.top),
|
|
3777
|
+
y2: A(h)(J.value?.bottom),
|
|
3775
3778
|
stroke: V.value.chart.highlighter.color,
|
|
3776
3779
|
"stroke-width": V.value.chart.highlighter.lineWidth,
|
|
3777
3780
|
"stroke-dasharray": V.value.chart.highlighter.lineDasharray,
|
|
@@ -3782,12 +3785,12 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3782
3785
|
"pointer-events": "none"
|
|
3783
3786
|
}
|
|
3784
3787
|
}, null, 8, Sn)])) : b("", !0),
|
|
3785
|
-
wu.value ? (
|
|
3788
|
+
wu.value ? (E(), x("g", Cn, [(E(!0), x(v, null, O(Tu.value, (e) => (E(), x("g", { key: `crosshair_${e.serie.id}_${e.index}` }, [
|
|
3786
3789
|
S("line", {
|
|
3787
|
-
x1: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(
|
|
3788
|
-
x2: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(
|
|
3789
|
-
y1: A(
|
|
3790
|
-
y2: A(
|
|
3790
|
+
x1: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(h)(e.x) : J.value.left,
|
|
3791
|
+
x2: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(h)(Du(e.x)) : J.value.right,
|
|
3792
|
+
y1: A(h)(e.y),
|
|
3793
|
+
y2: A(h)(e.y),
|
|
3791
3794
|
stroke: V.value.chart.highlighter.crosshairs.stroke,
|
|
3792
3795
|
"stroke-width": V.value.chart.highlighter.crosshairs.strokeWidth,
|
|
3793
3796
|
"stroke-dasharray": V.value.chart.highlighter.crosshairs.strokeDasharray,
|
|
@@ -3795,10 +3798,10 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3795
3798
|
style: { "pointer-events": "none" }
|
|
3796
3799
|
}, null, 8, wn),
|
|
3797
3800
|
S("line", {
|
|
3798
|
-
x1: A(
|
|
3799
|
-
x2: A(
|
|
3800
|
-
y1: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(
|
|
3801
|
-
y2: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(
|
|
3801
|
+
x1: A(h)(e.x),
|
|
3802
|
+
x2: A(h)(e.x),
|
|
3803
|
+
y1: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(h)(e.y) : J.value.top,
|
|
3804
|
+
y2: V.value.chart.highlighter.crosshairs.stopOnPoint ? A(h)(J.value.bottom) : J.value.bottom,
|
|
3802
3805
|
stroke: V.value.chart.highlighter.crosshairs.stroke,
|
|
3803
3806
|
"stroke-width": V.value.chart.highlighter.crosshairs.strokeWidth,
|
|
3804
3807
|
"stroke-dasharray": V.value.chart.highlighter.crosshairs.strokeDasharray,
|
|
@@ -3806,8 +3809,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3806
3809
|
style: { "pointer-events": "none" }
|
|
3807
3810
|
}, null, 8, Tn),
|
|
3808
3811
|
S("circle", {
|
|
3809
|
-
cx: A(
|
|
3810
|
-
cy: A(
|
|
3812
|
+
cx: A(h)(Du(e.x)),
|
|
3813
|
+
cy: A(h)(e.y),
|
|
3811
3814
|
r: V.value.chart.highlighter.crosshairs.dot.radius,
|
|
3812
3815
|
fill: V.value.chart.highlighter.crosshairs.dot.fill,
|
|
3813
3816
|
stroke: V.value.chart.highlighter.crosshairs.dot.stroke,
|
|
@@ -3815,7 +3818,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3815
3818
|
style: { "pointer-events": "none" }
|
|
3816
3819
|
}, null, 8, En)
|
|
3817
3820
|
]))), 128))])) : b("", !0),
|
|
3818
|
-
V.value.chart.grid.frame.show ? (
|
|
3821
|
+
V.value.chart.grid.frame.show ? (E(), x("rect", {
|
|
3819
3822
|
key: 5,
|
|
3820
3823
|
style: {
|
|
3821
3824
|
pointerEvents: "none",
|
|
@@ -3833,49 +3836,49 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3833
3836
|
"stroke-linejoin": V.value.chart.grid.frame.strokeLinejoin,
|
|
3834
3837
|
"stroke-dasharray": V.value.chart.grid.frame.strokeDasharray
|
|
3835
3838
|
}, null, 8, Dn)) : b("", !0),
|
|
3836
|
-
V.value.chart.grid.labels.show ? (
|
|
3839
|
+
V.value.chart.grid.labels.show ? (E(), x("g", {
|
|
3837
3840
|
key: 6,
|
|
3838
3841
|
ref_key: "scaleLabels",
|
|
3839
3842
|
ref: Yi,
|
|
3840
3843
|
opacity: wu.value ? .2 : 1,
|
|
3841
3844
|
style: { transition: "opacity 0.2s" }
|
|
3842
|
-
}, [H.value.useIndividualScale ? (
|
|
3845
|
+
}, [H.value.useIndividualScale ? (E(), x(v, { key: 0 }, [(E(!0), x(v, null, O(jl.value, (e) => (E(), x("g", { key: `individual_scale_axis_${e.groupId || e.id}` }, [S("line", {
|
|
3843
3846
|
x1: H.value.isStacked ? q.value ? J.value.right : J.value.left : q.value ? e.x : e.x - J.value.individualOffsetX,
|
|
3844
3847
|
x2: H.value.isStacked ? q.value ? J.value.right : J.value.left : q.value ? e.x : e.x - J.value.individualOffsetX,
|
|
3845
|
-
y1: H.value.isStacked ? A(
|
|
3846
|
-
y2: H.value.isStacked ? A(
|
|
3848
|
+
y1: H.value.isStacked ? A(h)(J.value?.bottom - e.yOffset - e.individualHeight) : A(h)(J.value?.top),
|
|
3849
|
+
y2: H.value.isStacked ? A(h)(J.value?.bottom - e.yOffset) : A(h)(J.value?.bottom),
|
|
3847
3850
|
stroke: e.color,
|
|
3848
3851
|
"stroke-width": V.value.chart.grid.stroke,
|
|
3849
3852
|
"stroke-linecap": "round",
|
|
3850
|
-
style:
|
|
3851
|
-
}, null, 12, kn)]))), 128)), (
|
|
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), x(v, null, O(jl.value, (e) => (E(), x("g", {
|
|
3852
3855
|
key: `individual_scale_label_${e.groupId || e.id}`,
|
|
3853
|
-
style:
|
|
3856
|
+
style: T(`opacity:${N.value ? N.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3854
3857
|
}, [
|
|
3855
3858
|
S("text", {
|
|
3856
3859
|
fill: e.color,
|
|
3857
3860
|
"font-size": B.value.dataLabels * .8,
|
|
3858
3861
|
"text-anchor": "middle",
|
|
3859
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)`
|
|
3860
|
-
},
|
|
3861
|
-
(
|
|
3863
|
+
}, dt(e.name) + " " + dt(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `- ${e.scaleLabel}` : ""), 9, An),
|
|
3864
|
+
(E(!0), x(v, null, O(e.yLabels, (t, n) => (E(), x(v, { key: `individual_scale_y_crosshair_${e.groupId || e.id}_${t.value}_${n}` }, [V.value.chart.grid.labels.yAxis.showCrosshairs ? (E(), x("line", {
|
|
3862
3865
|
key: 0,
|
|
3863
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,
|
|
3864
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,
|
|
3865
|
-
y1: A(
|
|
3866
|
-
y2: A(
|
|
3868
|
+
y1: A(h)(t.y),
|
|
3869
|
+
y2: A(h)(t.y),
|
|
3867
3870
|
stroke: e.color,
|
|
3868
3871
|
"stroke-width": 1,
|
|
3869
3872
|
"stroke-linecap": "round",
|
|
3870
3873
|
style: { animation: "none !important" }
|
|
3871
3874
|
}, null, 8, jn)) : b("", !0)], 64))), 128)),
|
|
3872
|
-
(
|
|
3875
|
+
(E(!0), x(v, null, O(e.yLabels, (t, n) => (E(), x("text", {
|
|
3873
3876
|
key: `individual_scale_y_label_${e.groupId || e.id}_${t.value}_${n}`,
|
|
3874
|
-
transform: `translate(${H.value.isStacked ? q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : J.value.left - V.value.chart.grid.labels.yAxis.crosshairSize - V.value.chart.grid.labels.yAxis.scaleValueOffsetX - 5 : q.value ? e.x + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : e.x - 5 - J.value.individualOffsetX}, ${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(h)(t.y) + B.value.dataLabels / 3})`,
|
|
3875
3878
|
"text-anchor": q.value ? "start" : "end",
|
|
3876
3879
|
"font-size": B.value.dataLabels,
|
|
3877
3880
|
fill: e.color
|
|
3878
|
-
},
|
|
3881
|
+
}, dt(A(m)(V.value.chart.grid.labels.yAxis.formatter, t.value, A(s)({
|
|
3879
3882
|
p: t.prefix,
|
|
3880
3883
|
v: t.value,
|
|
3881
3884
|
s: t.suffix,
|
|
@@ -3884,31 +3887,31 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3884
3887
|
datapoint: t.datapoint,
|
|
3885
3888
|
seriesIndex: n
|
|
3886
3889
|
})), 9, Mn))), 128))
|
|
3887
|
-
], 4))), 128))], 64)) : (
|
|
3890
|
+
], 4))), 128))], 64)) : (E(!0), x(v, { key: 1 }, O(tl.value, (e, t) => (E(), x("g", { key: `yLabel_${t}` }, [A(vt)(e) && e.value >= W.value.min && e.value <= W.value.max && V.value.chart.grid.labels.yAxis.showCrosshairs ? (E(), x("line", {
|
|
3888
3891
|
key: 0,
|
|
3889
3892
|
x1: q.value ? J.value?.right : J.value?.left,
|
|
3890
3893
|
x2: q.value ? J.value?.right + V.value.chart.grid.labels.yAxis.crosshairSize : J.value?.left - V.value.chart.grid.labels.yAxis.crosshairSize,
|
|
3891
|
-
y1: A(
|
|
3892
|
-
y2: A(
|
|
3894
|
+
y1: A(h)(e.y),
|
|
3895
|
+
y2: A(h)(e.y),
|
|
3893
3896
|
stroke: V.value.chart.grid.stroke,
|
|
3894
3897
|
"stroke-width": "1",
|
|
3895
3898
|
"stroke-linecap": "round",
|
|
3896
3899
|
style: { animation: "none !important" }
|
|
3897
|
-
}, null, 8, Nn)) : b("", !0), e.value >= W.value.min && e.value <= W.value.max ? (
|
|
3900
|
+
}, null, 8, Nn)) : b("", !0), e.value >= W.value.min && e.value <= W.value.max ? (E(), x("text", {
|
|
3898
3901
|
key: 1,
|
|
3899
|
-
transform: `translate(${q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : J.value.scaleLabelX - V.value.chart.grid.labels.yAxis.crosshairSize}, ${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(g)(e.y + B.value.dataLabels / 3)})`,
|
|
3900
3903
|
"font-size": B.value.dataLabels,
|
|
3901
3904
|
"text-anchor": q.value ? "start" : "end",
|
|
3902
3905
|
fill: V.value.chart.grid.labels.color
|
|
3903
|
-
},
|
|
3906
|
+
}, dt(A(vt)(e.value) ? A(m)(V.value.chart.grid.labels.yAxis.formatter, e.value, A(s)({
|
|
3904
3907
|
p: e.prefix,
|
|
3905
3908
|
v: e.value,
|
|
3906
3909
|
s: e.suffix,
|
|
3907
3910
|
r: V.value.chart.grid.labels.yAxis.rounding
|
|
3908
3911
|
})) : ""), 9, Pn)) : b("", !0)]))), 128))], 8, On)) : b("", !0),
|
|
3909
|
-
wu.value ? (
|
|
3912
|
+
wu.value ? (E(), x("g", Fn, [(E(!0), x(v, null, O(Tu.value, (e) => (E(), x("text", {
|
|
3910
3913
|
key: `crosshair_y_label_${e.serie.id}_${e.index}`,
|
|
3911
|
-
transform: `translate(${q.value ? J.value.right + V.value.chart.grid.labels.yAxis.crosshairSize + V.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : J.value.scaleLabelX - V.value.chart.grid.labels.yAxis.crosshairSize}, ${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(h)(e.y) + B.value.dataLabels / 3})`,
|
|
3912
3915
|
"font-size": B.value.dataLabels,
|
|
3913
3916
|
"text-anchor": q.value ? "start" : "end",
|
|
3914
3917
|
fill: V.value.chart.grid.labels.color,
|
|
@@ -3917,7 +3920,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3917
3920
|
animation: "none !important",
|
|
3918
3921
|
"pointer-events": "none"
|
|
3919
3922
|
}
|
|
3920
|
-
},
|
|
3923
|
+
}, dt(A(m)(V.value.chart.grid.labels.yAxis.formatter, e.value, A(s)({
|
|
3921
3924
|
p: e.serie.prefix || V.value.chart.labels.prefix,
|
|
3922
3925
|
v: e.value,
|
|
3923
3926
|
s: e.serie.suffix || V.value.chart.labels.suffix,
|
|
@@ -3926,9 +3929,9 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3926
3929
|
datapoint: e.serie,
|
|
3927
3930
|
seriesIndex: e.index
|
|
3928
3931
|
})), 9, In))), 128))])) : b("", !0),
|
|
3929
|
-
Eu.value ? (
|
|
3932
|
+
Eu.value ? (E(), x("g", Ln, [S("circle", {
|
|
3930
3933
|
cx: Cu.value,
|
|
3931
|
-
cy: A(
|
|
3934
|
+
cy: A(h)(J.value?.bottom),
|
|
3932
3935
|
r: V.value.chart.highlighter.crosshairs.dot.radius,
|
|
3933
3936
|
fill: V.value.chart.highlighter.crosshairs.dot.fill,
|
|
3934
3937
|
stroke: V.value.chart.highlighter.crosshairs.dot.stroke,
|
|
@@ -3939,11 +3942,11 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3939
3942
|
"pointer-events": "none"
|
|
3940
3943
|
}
|
|
3941
3944
|
}, null, 8, Rn)])) : b("", !0),
|
|
3942
|
-
(
|
|
3945
|
+
(E(!0), x(v, null, O($.value, (e, t) => (E(), x("g", {
|
|
3943
3946
|
key: `serie_plot_${e.id}`,
|
|
3944
3947
|
class: ot(`serie_plot_${t}`),
|
|
3945
|
-
style:
|
|
3946
|
-
}, [(
|
|
3948
|
+
style: T(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3949
|
+
}, [(E(!0), x(v, null, O(e.plots, (r, i) => (E(), x("g", { key: `circle_plot_${e.id}_${i}` }, [r && A(vt)(r.value) ? (E(), Qe(Ge, {
|
|
3947
3950
|
key: 0,
|
|
3948
3951
|
shape: [
|
|
3949
3952
|
"triangle",
|
|
@@ -3955,8 +3958,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3955
3958
|
].includes(e.shape) ? e.shape : "circle",
|
|
3956
3959
|
color: V.value.plot.useGradient ? `url(#plotGradient_${t}_${F.value})` : V.value.plot.dot.useSerieColor ? e.color : V.value.plot.dot.fill,
|
|
3957
3960
|
plot: {
|
|
3958
|
-
x: A(
|
|
3959
|
-
y: A(
|
|
3961
|
+
x: A(g)(r.x),
|
|
3962
|
+
y: A(g)(r.y)
|
|
3960
3963
|
},
|
|
3961
3964
|
radius: Ou(e, r, i) ? (Ka.value.plot || 6) * 1.5 : (rl(e.plots, i), Ka.value.plot || 6),
|
|
3962
3965
|
stroke: V.value.plot.dot.useSerieColor ? V.value.chart.backgroundColor : e.color,
|
|
@@ -3972,24 +3975,24 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3972
3975
|
"strokeWidth",
|
|
3973
3976
|
"transition",
|
|
3974
3977
|
"still"
|
|
3975
|
-
])) : b("", !0), r.comment && V.value.chart.comments.show ? (
|
|
3978
|
+
])) : b("", !0), r.comment && V.value.chart.comments.show ? (E(), x("foreignObject", {
|
|
3976
3979
|
key: 1,
|
|
3977
3980
|
style: { overflow: "visible" },
|
|
3978
3981
|
height: "12",
|
|
3979
3982
|
width: V.value.chart.comments.width,
|
|
3980
3983
|
x: r.x - V.value.chart.comments.width / 2 + V.value.chart.comments.offsetX,
|
|
3981
3984
|
y: r.y + V.value.chart.comments.offsetY + 6
|
|
3982
|
-
}, [S("div", Bn, [
|
|
3985
|
+
}, [S("div", Bn, [k(n.$slots, "plot-comment", { plot: {
|
|
3983
3986
|
...r,
|
|
3984
3987
|
color: e.color,
|
|
3985
3988
|
seriesIndex: t,
|
|
3986
3989
|
datapointIndex: i
|
|
3987
3990
|
} }, void 0, !0)])], 8, zn)) : b("", !0)]))), 128))], 6))), 128)),
|
|
3988
|
-
(
|
|
3991
|
+
(E(!0), x(v, null, O(Q.value, (e, t) => (E(), x("g", {
|
|
3989
3992
|
key: `serie_line_${e.id}`,
|
|
3990
3993
|
class: ot(`serie_line_${t}`),
|
|
3991
|
-
style:
|
|
3992
|
-
}, [e.hasDashedSegments ? (
|
|
3994
|
+
style: T(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3995
|
+
}, [e.hasDashedSegments ? (E(), x(v, { key: 0 }, [e.smooth ? (E(!0), x(v, { key: 0 }, O(e.dashedSmooth, (t, n) => (E(), x("path", {
|
|
3993
3996
|
key: `line_coating_smooth_segment_${e.id}_${n}`,
|
|
3994
3997
|
fill: "none",
|
|
3995
3998
|
"stroke-linecap": "round",
|
|
@@ -3998,8 +4001,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
3998
4001
|
stroke: V.value.chart.backgroundColor,
|
|
3999
4002
|
"stroke-width": V.value.line.strokeWidth + 1,
|
|
4000
4003
|
"stroke-dasharray": t.dashed ? V.value.line.strokeWidth * 2 : 0,
|
|
4001
|
-
style:
|
|
4002
|
-
}, null, 12, Vn))), 128)) : (
|
|
4004
|
+
style: T({ transition: ll() })
|
|
4005
|
+
}, null, 12, Vn))), 128)) : (E(!0), x(v, { key: 1 }, O(e.dashedStraight, (t, n) => (E(), x("path", {
|
|
4003
4006
|
key: `line_coating_straight_segment_${e.id}_${n}`,
|
|
4004
4007
|
fill: "none",
|
|
4005
4008
|
"stroke-linecap": "round",
|
|
@@ -4008,8 +4011,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4008
4011
|
stroke: V.value.chart.backgroundColor,
|
|
4009
4012
|
"stroke-width": V.value.line.strokeWidth + 1,
|
|
4010
4013
|
"stroke-dasharray": t.dashed ? V.value.line.strokeWidth * 2 : 0,
|
|
4011
|
-
style:
|
|
4012
|
-
}, null, 12, Hn))), 128))], 64)) : e.smooth && e.plots.length > 1 && e.curve ? (
|
|
4014
|
+
style: T({ transition: ll() })
|
|
4015
|
+
}, null, 12, Hn))), 128))], 64)) : e.smooth && e.plots.length > 1 && e.curve ? (E(), x("path", {
|
|
4013
4016
|
key: 1,
|
|
4014
4017
|
d: `M${e.curve}`,
|
|
4015
4018
|
stroke: V.value.chart.backgroundColor,
|
|
@@ -4018,8 +4021,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4018
4021
|
fill: "none",
|
|
4019
4022
|
"stroke-linecap": "round",
|
|
4020
4023
|
"stroke-linejoin": "round",
|
|
4021
|
-
style:
|
|
4022
|
-
}, null, 12, Un)) : e.plots.length > 1 && e.straight ? (
|
|
4024
|
+
style: T({ transition: ll() })
|
|
4025
|
+
}, null, 12, Un)) : e.plots.length > 1 && e.straight ? (E(), x("path", {
|
|
4023
4026
|
key: 2,
|
|
4024
4027
|
d: `M${e.straight}`,
|
|
4025
4028
|
stroke: V.value.chart.backgroundColor,
|
|
@@ -4028,49 +4031,49 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4028
4031
|
fill: "none",
|
|
4029
4032
|
"stroke-linecap": "round",
|
|
4030
4033
|
"stroke-linejoin": "round",
|
|
4031
|
-
style:
|
|
4034
|
+
style: T({ transition: ll() })
|
|
4032
4035
|
}, null, 12, Wn)) : b("", !0)], 6))), 128)),
|
|
4033
|
-
n.$slots.pattern ? (
|
|
4036
|
+
n.$slots.pattern ? (E(), x("defs", Gn, [(E(!0), x(v, null, O(Io.value, (e, t) => k(n.$slots, "pattern", it({ key: `serie_pattern_slot_${e.id}` }, { ref_for: !0 }, {
|
|
4034
4037
|
...e,
|
|
4035
4038
|
seriesIndex: e.slotAbsoluteIndex,
|
|
4036
4039
|
patternId: `pattern_${F.value}_${t}`
|
|
4037
4040
|
}), void 0, !0)), 128))])) : b("", !0),
|
|
4038
|
-
Ml.value.length && !H.value.isStacked ? (
|
|
4041
|
+
Ml.value.length && !H.value.isStacked ? (E(), x("g", Kn, [(E(!0), x(v, null, O(Ml.value, (e) => (E(), x("path", {
|
|
4039
4042
|
key: e.key,
|
|
4040
4043
|
d: e.d,
|
|
4041
4044
|
fill: e.color,
|
|
4042
4045
|
"fill-opacity": V.value.line.interLine.fillOpacity,
|
|
4043
4046
|
stroke: "none",
|
|
4044
4047
|
"pointer-events": "none",
|
|
4045
|
-
style:
|
|
4048
|
+
style: T({ transition: ll() })
|
|
4046
4049
|
}, null, 12, qn))), 128))])) : b("", !0),
|
|
4047
|
-
(
|
|
4050
|
+
(E(!0), x(v, null, O(Q.value, (e, t) => (E(), x("g", {
|
|
4048
4051
|
key: `serie_line_above_${e.id}`,
|
|
4049
4052
|
class: ot(`serie_line_${t}`),
|
|
4050
|
-
style:
|
|
4053
|
+
style: T(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4051
4054
|
}, [
|
|
4052
|
-
e.useArea && e.plots.length > 1 ? (
|
|
4055
|
+
e.useArea && e.plots.length > 1 ? (E(), x("g", Jn, [e.smooth ? (E(!0), x(v, { key: 0 }, O(e.curveAreas, (r, i) => (E(), x(v, { key: i }, [r ? (E(), x("path", {
|
|
4053
4056
|
key: 0,
|
|
4054
4057
|
d: r,
|
|
4055
|
-
fill: V.value.line.area.useGradient ? `url(#areaGradient_${t}_${F.value})` : A(
|
|
4056
|
-
style:
|
|
4057
|
-
}, null, 12, Yn)) : b("", !0), n.$slots.pattern && r ? (
|
|
4058
|
+
fill: V.value.line.area.useGradient ? `url(#areaGradient_${t}_${F.value})` : A(o)(e.color, V.value.line.area.opacity),
|
|
4059
|
+
style: T({ transition: ll() })
|
|
4060
|
+
}, null, 12, Yn)) : b("", !0), n.$slots.pattern && r ? (E(), x("path", {
|
|
4058
4061
|
key: 1,
|
|
4059
4062
|
d: r,
|
|
4060
4063
|
fill: `url(#pattern_${F.value}_${e.slotAbsoluteIndex})`,
|
|
4061
|
-
style:
|
|
4062
|
-
}, null, 12, Xn)) : b("", !0)], 64))), 128)) : (
|
|
4064
|
+
style: T({ transition: ll() })
|
|
4065
|
+
}, null, 12, Xn)) : b("", !0)], 64))), 128)) : (E(!0), x(v, { key: 1 }, O(e.area.split(";"), (r, i) => (E(), x(v, { key: i }, [r ? (E(), x("path", {
|
|
4063
4066
|
key: 0,
|
|
4064
4067
|
d: `M${r}Z`,
|
|
4065
|
-
fill: V.value.line.area.useGradient ? `url(#areaGradient_${t}_${F.value})` : A(
|
|
4066
|
-
style:
|
|
4067
|
-
}, null, 12, Zn)) : b("", !0), n.$slots.pattern && r ? (
|
|
4068
|
+
fill: V.value.line.area.useGradient ? `url(#areaGradient_${t}_${F.value})` : A(o)(e.color, V.value.line.area.opacity),
|
|
4069
|
+
style: T({ transition: ll() })
|
|
4070
|
+
}, null, 12, Zn)) : b("", !0), n.$slots.pattern && r ? (E(), x("path", {
|
|
4068
4071
|
key: 1,
|
|
4069
4072
|
d: `M${r}Z`,
|
|
4070
4073
|
fill: `url(#pattern_${F.value}_${e.slotAbsoluteIndex})`,
|
|
4071
|
-
style:
|
|
4074
|
+
style: T({ transition: ll() })
|
|
4072
4075
|
}, null, 12, Qn)) : b("", !0)], 64))), 128))])) : b("", !0),
|
|
4073
|
-
!e.hasDashedSegments && e.smooth && e.plots.length > 1 && e.curve ? (
|
|
4076
|
+
!e.hasDashedSegments && e.smooth && e.plots.length > 1 && e.curve ? (E(), x("path", {
|
|
4074
4077
|
key: 1,
|
|
4075
4078
|
d: `M${e.curve}`,
|
|
4076
4079
|
stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${F.value})` : e.color,
|
|
@@ -4078,8 +4081,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4078
4081
|
"stroke-dasharray": e.dashed ? V.value.line.strokeWidth * 2 : 0,
|
|
4079
4082
|
fill: "none",
|
|
4080
4083
|
"stroke-linecap": "round",
|
|
4081
|
-
style:
|
|
4082
|
-
}, null, 12, $n)) : e.hasDashedSegments ? (
|
|
4084
|
+
style: T({ transition: ll() })
|
|
4085
|
+
}, null, 12, $n)) : e.hasDashedSegments ? (E(), x(v, { key: 2 }, [e.smooth ? (E(!0), x(v, { key: 0 }, O(e.dashedSmooth, (n, r) => (E(), x("path", {
|
|
4083
4086
|
key: `line_smooth_segment_${e.id}_${r}`,
|
|
4084
4087
|
fill: "none",
|
|
4085
4088
|
"stroke-linecap": "round",
|
|
@@ -4088,8 +4091,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4088
4091
|
stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${F.value})` : e.color,
|
|
4089
4092
|
"stroke-width": V.value.line.strokeWidth,
|
|
4090
4093
|
"stroke-dasharray": n.dashed ? V.value.line.strokeWidth * 2 : 0,
|
|
4091
|
-
style:
|
|
4092
|
-
}, null, 12, er))), 128)) : (
|
|
4094
|
+
style: T({ transition: ll() })
|
|
4095
|
+
}, null, 12, er))), 128)) : (E(!0), x(v, { key: 1 }, O(e.dashedStraight, (n, r) => (E(), x("path", {
|
|
4093
4096
|
key: `line_straight_segment_${e.id}_${r}`,
|
|
4094
4097
|
fill: "none",
|
|
4095
4098
|
"stroke-linecap": "round",
|
|
@@ -4098,8 +4101,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4098
4101
|
stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${F.value})` : e.color,
|
|
4099
4102
|
"stroke-width": V.value.line.strokeWidth,
|
|
4100
4103
|
"stroke-dasharray": n.dashed ? V.value.line.strokeWidth * 2 : 0,
|
|
4101
|
-
style:
|
|
4102
|
-
}, null, 12, tr))), 128))], 64)) : e.plots.length > 1 && e.straight ? (
|
|
4104
|
+
style: T({ transition: ll() })
|
|
4105
|
+
}, null, 12, tr))), 128))], 64)) : e.plots.length > 1 && e.straight ? (E(), x("path", {
|
|
4103
4106
|
key: 3,
|
|
4104
4107
|
d: `M${e.straight}`,
|
|
4105
4108
|
stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${F.value})` : e.color,
|
|
@@ -4108,9 +4111,9 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4108
4111
|
fill: "none",
|
|
4109
4112
|
"stroke-linecap": "round",
|
|
4110
4113
|
"stroke-linejoin": "round",
|
|
4111
|
-
style:
|
|
4114
|
+
style: T({ transition: ll() })
|
|
4112
4115
|
}, null, 12, nr)) : b("", !0),
|
|
4113
|
-
(
|
|
4116
|
+
(E(!0), x(v, null, O(e.plots, (r, i) => (E(), x(v, { key: `circle_line_${e.id}_${i}` }, [!bc.value.linePlot && r && A(vt)(r.value) || bc.value.linePlot && r && A(vt)(r.value) && (R.value !== null && R.value === i || I.value !== null && I.value === i) || rl(e.plots, i) ? (E(), Qe(Ge, {
|
|
4114
4117
|
key: 0,
|
|
4115
4118
|
shape: [
|
|
4116
4119
|
"triangle",
|
|
@@ -4122,8 +4125,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4122
4125
|
].includes(e.shape) ? e.shape : "circle",
|
|
4123
4126
|
color: V.value.line.useGradient ? `url(#lineGradient_${t}_${F.value})` : V.value.line.dot.useSerieColor ? e.color : V.value.line.dot.fill,
|
|
4124
4127
|
plot: {
|
|
4125
|
-
x: A(
|
|
4126
|
-
y: A(
|
|
4128
|
+
x: A(g)(r.x),
|
|
4129
|
+
y: A(g)(r.y)
|
|
4127
4130
|
},
|
|
4128
4131
|
radius: Ou(e, r, i) ? qa.value || 0 : (rl(e.plots, i), Ka.value.line || 0),
|
|
4129
4132
|
stroke: V.value.line.dot.useSerieColor ? V.value.chart.backgroundColor : e.color,
|
|
@@ -4139,21 +4142,21 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4139
4142
|
"strokeWidth",
|
|
4140
4143
|
"transition",
|
|
4141
4144
|
"still"
|
|
4142
|
-
])) : b("", !0), r.comment && V.value.chart.comments.show ? (
|
|
4145
|
+
])) : b("", !0), r.comment && V.value.chart.comments.show ? (E(), x("foreignObject", {
|
|
4143
4146
|
key: 1,
|
|
4144
4147
|
style: { overflow: "visible" },
|
|
4145
4148
|
height: "12",
|
|
4146
4149
|
width: V.value.chart.comments.width,
|
|
4147
4150
|
x: r.x - V.value.chart.comments.width / 2 + V.value.chart.comments.offsetX,
|
|
4148
4151
|
y: r.y + V.value.chart.comments.offsetY + 6
|
|
4149
|
-
}, [S("div", ir, [
|
|
4152
|
+
}, [S("div", ir, [k(n.$slots, "plot-comment", { plot: {
|
|
4150
4153
|
...r,
|
|
4151
4154
|
color: e.color,
|
|
4152
4155
|
seriesIndex: t,
|
|
4153
4156
|
datapointIndex: i
|
|
4154
4157
|
} }, void 0, !0)])], 8, rr)) : b("", !0)], 64))), 128))
|
|
4155
4158
|
], 6))), 128)),
|
|
4156
|
-
(V.value.bar.labels.show || V.value.bar.serieName.show) && H.value.dataLabels.show ? (
|
|
4159
|
+
(V.value.bar.labels.show || V.value.bar.serieName.show) && H.value.dataLabels.show ? (E(), x("g", ar, [(E(!0), x(v, null, O(ju.value, (e) => (E(), x("text", {
|
|
4157
4160
|
key: e.key,
|
|
4158
4161
|
"text-anchor": Su({
|
|
4159
4162
|
plot: e.plot,
|
|
@@ -4164,13 +4167,13 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4164
4167
|
fill: V.value.bar.labels.color,
|
|
4165
4168
|
stroke: V.value.chart.backgroundColor,
|
|
4166
4169
|
"paint-order": "stroke",
|
|
4167
|
-
style:
|
|
4170
|
+
style: T(`opacity:${N.value ? N.value === e.serie.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`),
|
|
4168
4171
|
innerHTML: yu({
|
|
4169
4172
|
serie: e.serie,
|
|
4170
4173
|
plot: e.plot,
|
|
4171
4174
|
type: "bar"
|
|
4172
4175
|
})
|
|
4173
|
-
}, null, 12, or))), 128)), (
|
|
4176
|
+
}, null, 12, or))), 128)), (E(!0), x(v, null, O(kl.value, (e, t) => (E(), x(v, { key: `xLabel_bar_${e.id}` }, [(E(!0), x(v, null, O(e.plots, (n, r) => (E(), x(v, { key: `xLabel_bar_${t}_${r}` }, [n && V.value.bar.serieName.show ? (E(), x("text", {
|
|
4174
4177
|
key: 0,
|
|
4175
4178
|
x: H.value.useIndividualScale && H.value.isStacked ? n.x + qs.value.line / 2 : n.x + Js() * 1.1,
|
|
4176
4179
|
y: n.y + (n.value > 0 ? V.value.bar.serieName.offsetY : -V.value.bar.serieName.offsetY * 3),
|
|
@@ -4178,12 +4181,12 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4178
4181
|
"font-size": B.value.plotLabels,
|
|
4179
4182
|
fill: V.value.bar.serieName.useSerieColor ? e.color : V.value.bar.serieName.color,
|
|
4180
4183
|
"font-weight": V.value.bar.serieName.bold ? "bold" : "normal",
|
|
4181
|
-
style:
|
|
4182
|
-
},
|
|
4184
|
+
style: T(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4185
|
+
}, dt(V.value.bar.serieName.useAbbreviation ? A(xe)({
|
|
4183
4186
|
source: e.name,
|
|
4184
4187
|
length: V.value.bar.serieName.abbreviationSize
|
|
4185
4188
|
}) : e.name), 13, sr)) : b("", !0)], 64))), 128))], 64))), 128))])) : b("", !0),
|
|
4186
|
-
V.value.plot.labels.show && H.value.dataLabels.show ? (
|
|
4189
|
+
V.value.plot.labels.show && H.value.dataLabels.show ? (E(), x("g", cr, [(E(!0), x(v, null, O(Mu.value, (e) => (E(), x("text", {
|
|
4187
4190
|
key: e.key,
|
|
4188
4191
|
transform: xu({
|
|
4189
4192
|
plot: e.plot,
|
|
@@ -4197,17 +4200,17 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4197
4200
|
fill: V.value.plot.labels.color,
|
|
4198
4201
|
stroke: V.value.chart.backgroundColor,
|
|
4199
4202
|
"paint-order": "stroke",
|
|
4200
|
-
style:
|
|
4203
|
+
style: T(`opacity:${N.value ? N.value === e.serie.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`),
|
|
4201
4204
|
innerHTML: yu({
|
|
4202
4205
|
serie: e.serie,
|
|
4203
4206
|
plot: e.plot,
|
|
4204
4207
|
type: "plot"
|
|
4205
4208
|
})
|
|
4206
|
-
}, null, 12, lr))), 128))])) : (
|
|
4209
|
+
}, null, 12, lr))), 128))])) : (E(), x("g", ur, [(E(!0), x(v, null, O($.value, (e, t) => (E(), x(v, { key: `xLabel_plot_${e.id}` }, [(E(!0), x(v, null, O(e.plots, (n, r) => (E(), x(v, { key: `xLabel_plot_${t}_${r}` }, [V.value.plot.tag.followValue ? (E(), x(v, { key: 1 }, [[
|
|
4207
4210
|
I.value,
|
|
4208
4211
|
R.value,
|
|
4209
4212
|
ca.value
|
|
4210
|
-
].includes(r) && e.useTag ? (
|
|
4213
|
+
].includes(r) && e.useTag ? (E(), x("line", {
|
|
4211
4214
|
key: 0,
|
|
4212
4215
|
class: "vue-ui-xy-tag-plot",
|
|
4213
4216
|
x1: J.value?.left,
|
|
@@ -4218,36 +4221,36 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4218
4221
|
"stroke-linecap": "round",
|
|
4219
4222
|
"stroke-dasharray": "2",
|
|
4220
4223
|
stroke: e.color
|
|
4221
|
-
}, null, 8, hr)) : b("", !0)], 64)) : (
|
|
4224
|
+
}, null, 8, hr)) : b("", !0)], 64)) : (E(), x(v, { key: 0 }, [n && r === 0 && e.useTag && e.useTag === "start" ? (E(), x("foreignObject", {
|
|
4222
4225
|
key: 0,
|
|
4223
4226
|
x: n.x,
|
|
4224
4227
|
y: n.y - 20,
|
|
4225
4228
|
height: 24,
|
|
4226
4229
|
width: "150",
|
|
4227
|
-
style:
|
|
4230
|
+
style: T(`overflow: visible; opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4228
4231
|
}, [S("div", {
|
|
4229
|
-
style:
|
|
4230
|
-
innerHTML: A(
|
|
4232
|
+
style: T(`padding: 3px; background:${A(o)(e.color, 80)};color:${A(Ce)(e.color)};width:fit-content;font-size:${B.value.plotLabels}px;border-radius: 2px;`),
|
|
4233
|
+
innerHTML: A(m)(V.value.plot.tag.formatter, n.value, e.name, {
|
|
4231
4234
|
datapoint: n,
|
|
4232
4235
|
seriesIndex: r,
|
|
4233
4236
|
serieName: e.name
|
|
4234
4237
|
})
|
|
4235
|
-
}, null, 12, fr)], 12, dr)) : b("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (
|
|
4238
|
+
}, null, 12, fr)], 12, dr)) : b("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (E(), x("foreignObject", {
|
|
4236
4239
|
key: 1,
|
|
4237
4240
|
x: n.x - e.name.length * (B.value.plotLabels / 2),
|
|
4238
4241
|
y: n.y - 20,
|
|
4239
4242
|
height: 24,
|
|
4240
4243
|
width: "150",
|
|
4241
|
-
style:
|
|
4244
|
+
style: T(`overflow: visible; opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4242
4245
|
}, [S("div", {
|
|
4243
|
-
style:
|
|
4244
|
-
innerHTML: A(
|
|
4246
|
+
style: T(`padding: 3px; background:${A(o)(e.color, 80)};color:${A(Ce)(e.color)};width:fit-content;font-size:${B.value.plotLabels}px;border-radius: 2px;`),
|
|
4247
|
+
innerHTML: A(m)(V.value.plot.tag.formatter, n.value, e.name, {
|
|
4245
4248
|
datapoint: n,
|
|
4246
4249
|
seriesIndex: r,
|
|
4247
4250
|
serieName: e.name
|
|
4248
4251
|
})
|
|
4249
4252
|
}, null, 12, mr)], 12, pr)) : b("", !0)], 64))], 64))), 128))], 64))), 128))])),
|
|
4250
|
-
V.value.line.labels.show && H.value.dataLabels.show ? (
|
|
4253
|
+
V.value.line.labels.show && H.value.dataLabels.show ? (E(), x("g", gr, [(E(!0), x(v, null, O(Nu.value, (e) => (E(), x("text", {
|
|
4251
4254
|
key: e.key,
|
|
4252
4255
|
transform: xu({
|
|
4253
4256
|
plot: e.plot,
|
|
@@ -4261,17 +4264,17 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4261
4264
|
fill: V.value.line.labels.color,
|
|
4262
4265
|
stroke: V.value.chart.backgroundColor,
|
|
4263
4266
|
"paint-order": "stroke",
|
|
4264
|
-
style:
|
|
4267
|
+
style: T(`opacity:${N.value ? N.value === e.serie.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`),
|
|
4265
4268
|
innerHTML: yu({
|
|
4266
4269
|
serie: e.serie,
|
|
4267
4270
|
plot: e.plot,
|
|
4268
4271
|
type: "line"
|
|
4269
4272
|
})
|
|
4270
|
-
}, null, 12, _r))), 128))])) : (
|
|
4273
|
+
}, null, 12, _r))), 128))])) : (E(), x("g", vr, [(E(!0), x(v, null, O(Q.value, (e, t) => (E(), x(v, { key: `xLabel_line_${e.id}` }, [(E(!0), x(v, null, O(e.plots, (n, r) => (E(), x(v, { key: `xLabel_line_${t}_${r}` }, [V.value.line.tag.followValue ? (E(), x(v, { key: 1 }, [[
|
|
4271
4274
|
I.value,
|
|
4272
4275
|
R.value,
|
|
4273
4276
|
ca.value
|
|
4274
|
-
].includes(r) && e.useTag ? (
|
|
4277
|
+
].includes(r) && e.useTag ? (E(), x("line", {
|
|
4275
4278
|
key: 0,
|
|
4276
4279
|
class: "vue-ui-xy-tag-line",
|
|
4277
4280
|
x1: J.value?.left,
|
|
@@ -4282,43 +4285,43 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4282
4285
|
"stroke-linecap": "round",
|
|
4283
4286
|
"stroke-dasharray": "2",
|
|
4284
4287
|
stroke: e.color
|
|
4285
|
-
}, null, 8, Cr)) : b("", !0)], 64)) : (
|
|
4288
|
+
}, null, 8, Cr)) : b("", !0)], 64)) : (E(), x(v, { key: 0 }, [n && r === 0 && e.useTag && e.useTag === "start" ? (E(), x("foreignObject", {
|
|
4286
4289
|
key: 0,
|
|
4287
4290
|
x: n.x,
|
|
4288
4291
|
y: n.y - 20,
|
|
4289
4292
|
height: 24,
|
|
4290
4293
|
width: "150",
|
|
4291
|
-
style:
|
|
4294
|
+
style: T(`overflow: visible; opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4292
4295
|
}, [S("div", {
|
|
4293
|
-
style:
|
|
4294
|
-
innerHTML: A(
|
|
4296
|
+
style: T(`padding: 3px; background:${A(o)(e.color, 80)};color:${A(Ce)(e.color)};width:fit-content;font-size:${B.value.plotLabels}px;border-radius: 2px;`),
|
|
4297
|
+
innerHTML: A(m)(V.value.line.tag.formatter, n.value, e.name, {
|
|
4295
4298
|
datapoint: n,
|
|
4296
4299
|
seriesIndex: r,
|
|
4297
4300
|
serieName: e.name
|
|
4298
4301
|
})
|
|
4299
|
-
}, null, 12, br)], 12, yr)) : b("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (
|
|
4302
|
+
}, null, 12, br)], 12, yr)) : b("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (E(), x("foreignObject", {
|
|
4300
4303
|
key: 1,
|
|
4301
4304
|
x: n.x,
|
|
4302
4305
|
y: n.y - 20,
|
|
4303
4306
|
height: 24,
|
|
4304
4307
|
width: "150",
|
|
4305
|
-
style:
|
|
4308
|
+
style: T(`overflow: visible; opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4306
4309
|
}, [S("div", {
|
|
4307
|
-
style:
|
|
4308
|
-
innerHTML: A(
|
|
4310
|
+
style: T(`padding: 3px; background:${A(o)(e.color, 80)};color:${A(Ce)(e.color)};width:fit-content;font-size:${B.value.plotLabels}px;border-radius: 2px;`),
|
|
4311
|
+
innerHTML: A(m)(V.value.line.tag.formatter, n.value, e.name, {
|
|
4309
4312
|
datapoint: n,
|
|
4310
4313
|
seriesIndex: r,
|
|
4311
4314
|
serieName: e.name
|
|
4312
4315
|
})
|
|
4313
4316
|
}, null, 12, Sr)], 12, xr)) : b("", !0)], 64))], 64))), 128))], 64))), 128))])),
|
|
4314
|
-
(
|
|
4317
|
+
(E(!0), x(v, null, O(Q.value, (e, t) => (E(), x(v, { key: `xLabel_line_${e.id}` }, [(E(!0), x(v, null, O(e.plots, (n, r) => (E(), x(v, { key: `xLabel_line_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (E(), x("text", {
|
|
4315
4318
|
key: 0,
|
|
4316
4319
|
x: n.x - B.value.plotLabels,
|
|
4317
4320
|
y: n.y,
|
|
4318
4321
|
"font-size": B.value.plotLabels,
|
|
4319
4322
|
"text-anchor": "end",
|
|
4320
4323
|
fill: e.color,
|
|
4321
|
-
innerHTML: A(
|
|
4324
|
+
innerHTML: A(ke)({
|
|
4322
4325
|
content: e.name,
|
|
4323
4326
|
fontSize: B.value.plotLabels,
|
|
4324
4327
|
fill: e.color,
|
|
@@ -4326,15 +4329,15 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4326
4329
|
y: n.y,
|
|
4327
4330
|
maxWords: 2
|
|
4328
4331
|
}),
|
|
4329
|
-
style:
|
|
4330
|
-
}, null, 12, wr)) : b("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (
|
|
4332
|
+
style: T(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4333
|
+
}, null, 12, wr)) : b("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (E(), x("text", {
|
|
4331
4334
|
key: 1,
|
|
4332
4335
|
x: n.x + B.value.plotLabels,
|
|
4333
4336
|
y: n.y,
|
|
4334
4337
|
"font-size": B.value.plotLabels,
|
|
4335
4338
|
"text-anchor": "start",
|
|
4336
4339
|
fill: e.color,
|
|
4337
|
-
innerHTML: A(
|
|
4340
|
+
innerHTML: A(ke)({
|
|
4338
4341
|
content: e.name,
|
|
4339
4342
|
fontSize: B.value.plotLabels,
|
|
4340
4343
|
fill: e.color,
|
|
@@ -4342,16 +4345,16 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4342
4345
|
y: n.y,
|
|
4343
4346
|
maxWords: 2
|
|
4344
4347
|
}),
|
|
4345
|
-
style:
|
|
4348
|
+
style: T(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4346
4349
|
}, null, 12, Tr)) : b("", !0)], 64))), 128))], 64))), 128)),
|
|
4347
|
-
(
|
|
4350
|
+
(E(!0), x(v, null, O($.value, (e, t) => (E(), x(v, { key: `xLabel_plot_${e.id}` }, [(E(!0), x(v, null, O(e.plots, (n, r) => (E(), x(v, { key: `xLabel_plot_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (E(), x("text", {
|
|
4348
4351
|
key: 0,
|
|
4349
4352
|
x: n.x - B.value.plotLabels,
|
|
4350
4353
|
y: n.y,
|
|
4351
4354
|
"font-size": B.value.plotLabels,
|
|
4352
4355
|
"text-anchor": "end",
|
|
4353
4356
|
fill: e.color,
|
|
4354
|
-
innerHTML: A(
|
|
4357
|
+
innerHTML: A(ke)({
|
|
4355
4358
|
content: e.name,
|
|
4356
4359
|
fontSize: B.value.plotLabels,
|
|
4357
4360
|
fill: e.color,
|
|
@@ -4359,15 +4362,15 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4359
4362
|
y: n.y,
|
|
4360
4363
|
maxWords: 2
|
|
4361
4364
|
}),
|
|
4362
|
-
style:
|
|
4363
|
-
}, null, 12, Er)) : b("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (
|
|
4365
|
+
style: T(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4366
|
+
}, null, 12, Er)) : b("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (E(), x("text", {
|
|
4364
4367
|
key: 1,
|
|
4365
4368
|
x: n.x + B.value.plotLabels,
|
|
4366
4369
|
y: n.y,
|
|
4367
4370
|
"font-size": B.value.plotLabels,
|
|
4368
4371
|
"text-anchor": "start",
|
|
4369
4372
|
fill: e.color,
|
|
4370
|
-
innerHTML: A(
|
|
4373
|
+
innerHTML: A(ke)({
|
|
4371
4374
|
content: e.name,
|
|
4372
4375
|
fontSize: B.value.plotLabels,
|
|
4373
4376
|
fill: e.color,
|
|
@@ -4375,13 +4378,13 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4375
4378
|
y: n.y,
|
|
4376
4379
|
maxWords: 2
|
|
4377
4380
|
}),
|
|
4378
|
-
style:
|
|
4381
|
+
style: T(`opacity:${N.value ? N.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4379
4382
|
}, null, 12, Dr)) : b("", !0)], 64))), 128))], 64))), 128)),
|
|
4380
|
-
(
|
|
4383
|
+
(E(!0), x(v, null, O([
|
|
4381
4384
|
...$.value,
|
|
4382
4385
|
...Q.value,
|
|
4383
4386
|
...kl.value
|
|
4384
|
-
], (e, t) => (
|
|
4387
|
+
], (e, t) => (E(), x(v, { key: `progression-${t}` }, [Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(A(be)(e.plots).trend) ? (E(), x("g", Or, [
|
|
4385
4388
|
S("defs", null, [S("marker", {
|
|
4386
4389
|
id: `progression_arrow_${t}`,
|
|
4387
4390
|
markerWidth: "9",
|
|
@@ -4399,12 +4402,12 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4399
4402
|
"stroke-width": "1",
|
|
4400
4403
|
"stroke-linejoin": "round"
|
|
4401
4404
|
}, null, 8, Ar)], 8, kr)]),
|
|
4402
|
-
e.plots.length > 1 ? (
|
|
4405
|
+
e.plots.length > 1 ? (E(), x("line", {
|
|
4403
4406
|
key: 0,
|
|
4404
4407
|
x1: A(be)(e.plots).x1 + (e.type === "bar" ? Js() : 0),
|
|
4405
4408
|
x2: A(be)(e.plots).x2 + (e.type === "bar" ? Js() : 0),
|
|
4406
|
-
y1: A(
|
|
4407
|
-
y2: A(
|
|
4409
|
+
y1: A(h)(A(be)(e.plots).y1),
|
|
4410
|
+
y2: A(h)(A(be)(e.plots).y2),
|
|
4408
4411
|
"stroke-width": 1,
|
|
4409
4412
|
stroke: V.value.chart.backgroundColor,
|
|
4410
4413
|
"stroke-dasharray": 2,
|
|
@@ -4412,12 +4415,12 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4412
4415
|
"stroke-linejoin": "round",
|
|
4413
4416
|
"marker-end": `url(#progression_arrow_${t})`
|
|
4414
4417
|
}, null, 8, jr)) : b("", !0),
|
|
4415
|
-
e.plots.length > 1 ? (
|
|
4418
|
+
e.plots.length > 1 ? (E(), x("line", {
|
|
4416
4419
|
key: 1,
|
|
4417
4420
|
x1: A(be)(e.plots).x1 + (e.type === "bar" ? Js() : 0),
|
|
4418
4421
|
x2: A(be)(e.plots).x2 + (e.type === "bar" ? Js() : 0),
|
|
4419
|
-
y1: A(
|
|
4420
|
-
y2: A(
|
|
4422
|
+
y1: A(h)(A(be)(e.plots).y1),
|
|
4423
|
+
y2: A(h)(A(be)(e.plots).y2),
|
|
4421
4424
|
"stroke-width": 1,
|
|
4422
4425
|
stroke: e.color,
|
|
4423
4426
|
"stroke-dasharray": 2,
|
|
@@ -4425,7 +4428,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4425
4428
|
"stroke-linejoin": "round",
|
|
4426
4429
|
"marker-end": `url(#progression_arrow_${t})`
|
|
4427
4430
|
}, null, 8, Mr)) : b("", !0),
|
|
4428
|
-
e.plots.length > 1 ? (
|
|
4431
|
+
e.plots.length > 1 ? (E(), x("text", {
|
|
4429
4432
|
key: 2,
|
|
4430
4433
|
"text-anchor": "middle",
|
|
4431
4434
|
x: A(be)(e.plots).x2 + (e.type === "bar" ? Js() : 0),
|
|
@@ -4437,13 +4440,13 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4437
4440
|
"stroke-linecap": "round",
|
|
4438
4441
|
"stroke-linejoin": "round",
|
|
4439
4442
|
"paint-order": "stroke fill"
|
|
4440
|
-
},
|
|
4443
|
+
}, dt(A(s)({
|
|
4441
4444
|
v: A(be)(e.plots).trend * 100,
|
|
4442
4445
|
s: "%",
|
|
4443
4446
|
r: 2
|
|
4444
4447
|
})), 9, Nr)) : b("", !0)
|
|
4445
4448
|
])) : b("", !0)], 64))), 128)),
|
|
4446
|
-
H.value.useIndividualScale && !H.value.isStacked ? (
|
|
4449
|
+
H.value.useIndividualScale && !H.value.isStacked ? (E(), x(v, { key: 16 }, [S("defs", null, [(E(!0), x(v, null, O(jl.value, (e, t) => (E(), x("linearGradient", {
|
|
4447
4450
|
key: `individual_scale_gradient_${e.groupId || e.id || t}`,
|
|
4448
4451
|
id: `individual_scale_gradient_${F.value}_${t}`,
|
|
4449
4452
|
x1: q.value ? "100%" : "0%",
|
|
@@ -4458,7 +4461,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4458
4461
|
offset: "100%",
|
|
4459
4462
|
"stop-color": e.color,
|
|
4460
4463
|
"stop-opacity": "0.2"
|
|
4461
|
-
}, null, 8, Ir)], 8, Pr))), 128))]), (
|
|
4464
|
+
}, null, 8, Ir)], 8, Pr))), 128))]), (E(!0), x(v, null, O(jl.value, (e, t) => (E(), x("rect", {
|
|
4462
4465
|
key: `individual_scale_background_${e.groupId || e.id || t}`,
|
|
4463
4466
|
x: q.value ? e.x : e.x - V.value.chart.grid.labels.yAxis.labelWidth - J.value.individualOffsetX,
|
|
4464
4467
|
y: J.value?.top,
|
|
@@ -4468,7 +4471,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4468
4471
|
onMouseenter: (t) => N.value = e.groupId,
|
|
4469
4472
|
onMouseleave: r[0] ||= (e) => N.value = null
|
|
4470
4473
|
}, null, 40, Lr))), 128))], 64)) : b("", !0),
|
|
4471
|
-
S("g", null, [V.value.chart.grid.labels.axis.yLabel && !H.value.useIndividualScale ? (
|
|
4474
|
+
S("g", null, [V.value.chart.grid.labels.axis.yLabel && !H.value.useIndividualScale ? (E(), x("text", {
|
|
4472
4475
|
key: 0,
|
|
4473
4476
|
ref_key: "yAxisLabel",
|
|
4474
4477
|
ref: qi,
|
|
@@ -4477,7 +4480,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4477
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)`,
|
|
4478
4481
|
"text-anchor": "middle",
|
|
4479
4482
|
style: { transition: "none" }
|
|
4480
|
-
},
|
|
4483
|
+
}, dt(V.value.chart.grid.labels.axis.yLabel), 9, Rr)) : b("", !0), V.value.chart.grid.labels.axis.xLabel ? (E(), x("text", {
|
|
4481
4484
|
key: 1,
|
|
4482
4485
|
ref_key: "xAxisLabel",
|
|
4483
4486
|
ref: Ki,
|
|
@@ -4486,14 +4489,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4486
4489
|
y: ta.value - 3,
|
|
4487
4490
|
"font-size": B.value.yAxis,
|
|
4488
4491
|
fill: V.value.chart.grid.labels.color
|
|
4489
|
-
},
|
|
4490
|
-
V.value.chart.grid.labels.xAxisLabels.show ? (
|
|
4492
|
+
}, dt(V.value.chart.grid.labels.axis.xLabel), 9, zr)) : b("", !0)]),
|
|
4493
|
+
V.value.chart.grid.labels.xAxisLabels.show ? (E(), x("g", {
|
|
4491
4494
|
key: 17,
|
|
4492
4495
|
ref_key: "timeLabelsEls",
|
|
4493
4496
|
ref: Ji,
|
|
4494
4497
|
opacity: wu.value ? .1 : 1,
|
|
4495
4498
|
style: { transition: "opacity 0.2s" }
|
|
4496
|
-
}, [n.$slots["time-label"] ? (
|
|
4499
|
+
}, [n.$slots["time-label"] ? (E(!0), x(v, { key: 0 }, O(fl.value, (e, t) => k(n.$slots, "time-label", it({
|
|
4497
4500
|
key: `time_label_${e.id}`,
|
|
4498
4501
|
ref_for: !0
|
|
4499
4502
|
}, {
|
|
@@ -4506,14 +4509,14 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4506
4509
|
content: e.text,
|
|
4507
4510
|
textAnchor: V.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : V.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
4508
4511
|
show: e && e.text
|
|
4509
|
-
}), void 0, !0)), 128)) : (
|
|
4512
|
+
}), void 0, !0)), 128)) : (E(!0), x(v, { key: 1 }, O(fl.value, (e, n) => (E(), x("g", { key: `time_label_${n}` }, [e && e.text ? (E(), x(v, { key: 0 }, [String(e.text).includes("\n") ? (E(), x("text", {
|
|
4510
4513
|
key: 1,
|
|
4511
4514
|
class: "vue-data-ui-time-label",
|
|
4512
4515
|
"text-anchor": V.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : V.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
4513
4516
|
"font-size": B.value.xAxis,
|
|
4514
4517
|
fill: V.value.chart.grid.labels.xAxisLabels.color,
|
|
4515
4518
|
transform: `translate(${pl(e, n)}, ${J.value?.bottom + B.value.xAxis * 1.5}), rotate(${V.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
4516
|
-
style:
|
|
4519
|
+
style: T({ cursor: Xo() && Za.value ? "pointer" : "default" }),
|
|
4517
4520
|
innerHTML: A(t)({
|
|
4518
4521
|
content: String(e.text),
|
|
4519
4522
|
fontSize: B.value.xAxis,
|
|
@@ -4522,17 +4525,17 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4522
4525
|
y: 0
|
|
4523
4526
|
}),
|
|
4524
4527
|
onClick: (t) => ds(e, n)
|
|
4525
|
-
}, null, 12, Hr)) : (
|
|
4528
|
+
}, null, 12, Hr)) : (E(), x("text", {
|
|
4526
4529
|
key: 0,
|
|
4527
4530
|
class: "vue-data-ui-time-label",
|
|
4528
4531
|
"text-anchor": V.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : V.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
4529
4532
|
"font-size": B.value.xAxis,
|
|
4530
4533
|
fill: V.value.chart.grid.labels.xAxisLabels.color,
|
|
4531
4534
|
transform: `translate(${pl(e, n)}, ${J.value?.bottom + B.value.xAxis * 1.5}), rotate(${V.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
4532
|
-
style:
|
|
4535
|
+
style: T({ cursor: Xo() && Za.value ? "pointer" : "default" }),
|
|
4533
4536
|
onClick: (t) => ds(e, n)
|
|
4534
|
-
},
|
|
4535
|
-
Eu.value ? (
|
|
4537
|
+
}, dt(e.text || ""), 13, Vr))], 64)) : b("", !0)]))), 128))], 8, Br)) : b("", !0),
|
|
4538
|
+
Eu.value ? (E(), x("g", Ur, [S("text", {
|
|
4536
4539
|
class: "vue-data-ui-time-label",
|
|
4537
4540
|
"text-anchor": V.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : V.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
4538
4541
|
"font-size": B.value.xAxis,
|
|
@@ -4552,8 +4555,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4552
4555
|
y: 0
|
|
4553
4556
|
})
|
|
4554
4557
|
}, null, 8, Wr)])) : b("", !0),
|
|
4555
|
-
nl.value.length && !H.value.isStacked ? (
|
|
4556
|
-
e.yTop && e.show && isFinite(e.yTop) ? (
|
|
4558
|
+
nl.value.length && !H.value.isStacked ? (E(), x("g", Gr, [(E(!0), x(v, null, O(nl.value, (e) => (E(), x("g", { key: e.id }, [
|
|
4559
|
+
e.yTop && e.show && isFinite(e.yTop) ? (E(), x("line", {
|
|
4557
4560
|
key: 0,
|
|
4558
4561
|
x1: e.x1,
|
|
4559
4562
|
y1: e.yTop,
|
|
@@ -4565,7 +4568,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4565
4568
|
"stroke-linecap": "round",
|
|
4566
4569
|
style: { animation: "none !important" }
|
|
4567
4570
|
}, null, 8, Kr)) : b("", !0),
|
|
4568
|
-
e.yBottom && e.show && isFinite(e.yBottom) ? (
|
|
4571
|
+
e.yBottom && e.show && isFinite(e.yBottom) ? (E(), x("line", {
|
|
4569
4572
|
key: 1,
|
|
4570
4573
|
x1: e.x1,
|
|
4571
4574
|
y1: e.yBottom,
|
|
@@ -4577,23 +4580,23 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4577
4580
|
"stroke-linecap": "round",
|
|
4578
4581
|
style: { animation: "none !important" }
|
|
4579
4582
|
}, null, 8, qr)) : b("", !0),
|
|
4580
|
-
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (
|
|
4583
|
+
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (E(), x("rect", {
|
|
4581
4584
|
key: 2,
|
|
4582
4585
|
y: Math.min(e.yTop, e.yBottom),
|
|
4583
4586
|
x: e.x1,
|
|
4584
4587
|
width: J.value.width,
|
|
4585
|
-
height: A(
|
|
4586
|
-
fill: A(
|
|
4588
|
+
height: A(g)(e.areaHeight, 0),
|
|
4589
|
+
fill: A(o)(e.config.area.fill, e.config.area.opacity),
|
|
4587
4590
|
style: { animation: "none !important" }
|
|
4588
4591
|
}, null, 8, Jr)) : b("", !0),
|
|
4589
|
-
e.config.label.text && e.show && isFinite(e._box.y) ? (
|
|
4592
|
+
e.config.label.text && e.show && isFinite(e._box.y) ? (E(), x("rect", it({
|
|
4590
4593
|
key: 3,
|
|
4591
4594
|
class: "vue-ui-xy-annotation-label-box"
|
|
4592
4595
|
}, { ref_for: !0 }, e._box, { style: {
|
|
4593
4596
|
animation: "none !important",
|
|
4594
4597
|
transition: "none !important"
|
|
4595
4598
|
} }), null, 16)) : b("", !0),
|
|
4596
|
-
e.config.label.text && e.show && isFinite(e._text.y) ? (
|
|
4599
|
+
e.config.label.text && e.show && isFinite(e._text.y) ? (E(), x("text", {
|
|
4597
4600
|
key: 4,
|
|
4598
4601
|
id: e.id,
|
|
4599
4602
|
class: "vue-ui-xy-annotation-label",
|
|
@@ -4602,9 +4605,9 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4602
4605
|
"font-size": e.config.label.fontSize,
|
|
4603
4606
|
fill: e.config.label.color,
|
|
4604
4607
|
"text-anchor": e.config.label.textAnchor
|
|
4605
|
-
},
|
|
4608
|
+
}, dt(e.config.label.text), 9, Yr)) : b("", !0)
|
|
4606
4609
|
]))), 128))])) : b("", !0),
|
|
4607
|
-
!wu.value && V.value.chart.timeTag.show && (G.value ? A(
|
|
4610
|
+
!wu.value && V.value.chart.timeTag.show && (G.value ? A(_)(fu.value) : ![null, void 0].includes(R.value) || ![null, void 0].includes(I.value)) ? (E(), x("g", Xr, [(E(), x("foreignObject", {
|
|
4608
4611
|
x: mu(),
|
|
4609
4612
|
y: J.value?.bottom,
|
|
4610
4613
|
width: "200",
|
|
@@ -4614,20 +4617,20 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4614
4617
|
ref_key: "timeTagEl",
|
|
4615
4618
|
ref: lu,
|
|
4616
4619
|
class: "vue-ui-xy-time-tag",
|
|
4617
|
-
style:
|
|
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`),
|
|
4618
4621
|
innerHTML: vu.value
|
|
4619
4622
|
}, null, 12, Qr)], 8, Zr)), S("circle", {
|
|
4620
|
-
cx: G.value && A(
|
|
4623
|
+
cx: G.value && A(_)(fu.value) ? ml({ x: fu.value }) : Oc((R.value === null ? 0 : R.value) || (I.value === null ? 0 : I.value)),
|
|
4621
4624
|
cy: J.value?.bottom,
|
|
4622
4625
|
r: V.value.chart.timeTag.circleMarker.radius,
|
|
4623
4626
|
fill: V.value.chart.timeTag.circleMarker.color
|
|
4624
4627
|
}, null, 8, $r)])) : b("", !0)
|
|
4625
4628
|
])) : b("", !0),
|
|
4626
|
-
po.value ? (
|
|
4629
|
+
po.value ? (E(), x("rect", it({ key: 2 }, go.value, {
|
|
4627
4630
|
"data-start": U.value.start,
|
|
4628
4631
|
"data-end": U.value.end
|
|
4629
4632
|
}), null, 16, ei)) : b("", !0),
|
|
4630
|
-
|
|
4633
|
+
k(n.$slots, "svg", { svg: {
|
|
4631
4634
|
...Ha.value,
|
|
4632
4635
|
slicer: U.value,
|
|
4633
4636
|
isPrintingImg: A(_o) || A(vo) || Ca.value,
|
|
@@ -4639,31 +4642,31 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4639
4642
|
],
|
|
4640
4643
|
drawingArea: J.value
|
|
4641
4644
|
} }, void 0, !0)
|
|
4642
|
-
], 512)], 46, Mt)), n.$slots.hint ? (
|
|
4645
|
+
], 512)], 46, Mt)), n.$slots.hint ? (E(), x("div", ti, [k(n.$slots, "hint", w(C({
|
|
4643
4646
|
hint: V.value.a11y.translations.keyboardNavigation,
|
|
4644
4647
|
isVisible: Ju.value
|
|
4645
4648
|
})), void 0, !0)])) : b("", !0)]),
|
|
4646
|
-
n.$slots.watermark ? (
|
|
4647
|
-
(
|
|
4649
|
+
n.$slots.watermark ? (E(), x("div", ni, [k(n.$slots, "watermark", w(C({ isPrinting: A(_o) || A(vo) || Ca.value || wa.value })), void 0, !0)])) : b("", !0),
|
|
4650
|
+
(E(!0), x(v, null, O(Q.value, (e, t) => (E(), x(v, { key: `tag_line_${e.id}` }, [(E(!0), x(v, null, O(e.plots, (n, r) => (E(), x(v, { key: `tag_line_${t}_${r}` }, [[
|
|
4648
4651
|
I.value,
|
|
4649
4652
|
R.value,
|
|
4650
4653
|
ca.value
|
|
4651
|
-
].includes(r) && e.useTag && e.useTag === "end" && V.value.line.tag.followValue ? (
|
|
4654
|
+
].includes(r) && e.useTag && e.useTag === "end" && V.value.line.tag.followValue ? (E(), x("div", {
|
|
4652
4655
|
key: 0,
|
|
4653
4656
|
ref_for: !0,
|
|
4654
4657
|
ref: (e) => $o(t, r, e, "right", "line"),
|
|
4655
4658
|
class: "vue-ui-xy-tag",
|
|
4656
4659
|
"data-tag": "right",
|
|
4657
|
-
style:
|
|
4660
|
+
style: T({
|
|
4658
4661
|
position: "fixed",
|
|
4659
|
-
top: A(
|
|
4662
|
+
top: A(f)({
|
|
4660
4663
|
svgElement: L.value,
|
|
4661
4664
|
x: J.value?.right + V.value.line.tag.fontSize / 1.5,
|
|
4662
4665
|
y: n.y,
|
|
4663
4666
|
element: ya.value[`${t}_${r}_right_line`],
|
|
4664
4667
|
position: "right"
|
|
4665
4668
|
})?.top + "px",
|
|
4666
|
-
left: A(
|
|
4669
|
+
left: A(f)({
|
|
4667
4670
|
svgElement: L.value,
|
|
4668
4671
|
x: J.value?.right + V.value.line.tag.fontSize / 1.5,
|
|
4669
4672
|
y: n.y,
|
|
@@ -4678,13 +4681,13 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4678
4681
|
fontSize: V.value.line.tag.fontSize + "px",
|
|
4679
4682
|
opacity: 1
|
|
4680
4683
|
})
|
|
4681
|
-
}, [(
|
|
4684
|
+
}, [(E(), x("svg", ri, [S("path", {
|
|
4682
4685
|
d: "M 0,10 10,0 10,20 Z",
|
|
4683
4686
|
fill: e.color,
|
|
4684
4687
|
stroke: "none"
|
|
4685
4688
|
}, null, 8, ii)])), S("div", {
|
|
4686
4689
|
class: "vue-ui-xy-tag-content",
|
|
4687
|
-
innerHTML: A(
|
|
4690
|
+
innerHTML: A(m)(V.value.line.tag.formatter, n.value, e.name, {
|
|
4688
4691
|
datapoint: n,
|
|
4689
4692
|
seriesIndex: r,
|
|
4690
4693
|
serieName: e.name
|
|
@@ -4693,22 +4696,22 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4693
4696
|
I.value,
|
|
4694
4697
|
R.value,
|
|
4695
4698
|
ca.value
|
|
4696
|
-
].includes(r) && e.useTag && e.useTag === "start" && V.value.line.tag.followValue ? (
|
|
4699
|
+
].includes(r) && e.useTag && e.useTag === "start" && V.value.line.tag.followValue ? (E(), x("div", {
|
|
4697
4700
|
key: 1,
|
|
4698
4701
|
ref_for: !0,
|
|
4699
4702
|
ref: (e) => $o(t, r, e, "left", "line"),
|
|
4700
4703
|
class: "vue-ui-xy-tag",
|
|
4701
4704
|
"data-tag": "left",
|
|
4702
|
-
style:
|
|
4705
|
+
style: T({
|
|
4703
4706
|
position: "fixed",
|
|
4704
|
-
top: A(
|
|
4707
|
+
top: A(f)({
|
|
4705
4708
|
svgElement: L.value,
|
|
4706
4709
|
x: J.value?.left - V.value.line.tag.fontSize / 1.5,
|
|
4707
4710
|
y: n.y,
|
|
4708
4711
|
element: ya.value[`${t}_${r}_left_line`],
|
|
4709
4712
|
position: "left"
|
|
4710
4713
|
})?.top + "px",
|
|
4711
|
-
left: A(
|
|
4714
|
+
left: A(f)({
|
|
4712
4715
|
svgElement: L.value,
|
|
4713
4716
|
x: J.value?.left - V.value.line.tag.fontSize / 1.5,
|
|
4714
4717
|
y: n.y,
|
|
@@ -4723,38 +4726,38 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4723
4726
|
fontSize: V.value.line.tag.fontSize + "px",
|
|
4724
4727
|
opacity: 1
|
|
4725
4728
|
})
|
|
4726
|
-
}, [(
|
|
4729
|
+
}, [(E(), x("svg", oi, [S("path", {
|
|
4727
4730
|
d: "M 0,0 10,10 0,20 Z",
|
|
4728
4731
|
fill: e.color,
|
|
4729
4732
|
stroke: "none"
|
|
4730
4733
|
}, null, 8, si)])), S("div", {
|
|
4731
4734
|
class: "vue-ui-xy-tag-content",
|
|
4732
|
-
innerHTML: A(
|
|
4735
|
+
innerHTML: A(m)(V.value.line.tag.formatter, n.value, e.name, {
|
|
4733
4736
|
datapoint: n,
|
|
4734
4737
|
seriesIndex: r,
|
|
4735
4738
|
serieName: e.name
|
|
4736
4739
|
})
|
|
4737
4740
|
}, null, 8, ci)], 4)) : b("", !0)], 64))), 128))], 64))), 128)),
|
|
4738
|
-
(
|
|
4741
|
+
(E(!0), x(v, null, O($.value, (e, t) => (E(), x(v, { key: `tag_plot_${e.id}` }, [(E(!0), x(v, null, O(e.plots, (n, r) => (E(), x(v, { key: `tag_plot_${t}_${r}` }, [[
|
|
4739
4742
|
I.value,
|
|
4740
4743
|
R.value,
|
|
4741
4744
|
ca.value
|
|
4742
|
-
].includes(r) && e.useTag && e.useTag === "end" && V.value.plot.tag.followValue ? (
|
|
4745
|
+
].includes(r) && e.useTag && e.useTag === "end" && V.value.plot.tag.followValue ? (E(), x("div", {
|
|
4743
4746
|
key: 0,
|
|
4744
4747
|
ref_for: !0,
|
|
4745
4748
|
ref: (e) => $o(t, r, e, "right", "plot"),
|
|
4746
4749
|
class: "vue-ui-xy-tag",
|
|
4747
4750
|
"data-tag": "right",
|
|
4748
|
-
style:
|
|
4751
|
+
style: T({
|
|
4749
4752
|
position: "fixed",
|
|
4750
|
-
top: A(
|
|
4753
|
+
top: A(f)({
|
|
4751
4754
|
svgElement: L.value,
|
|
4752
4755
|
x: J.value?.right + V.value.plot.tag.fontSize / 1.5,
|
|
4753
4756
|
y: n.y,
|
|
4754
4757
|
element: ya.value[`${t}_${r}_right_plot`],
|
|
4755
4758
|
position: "right"
|
|
4756
4759
|
})?.top + "px",
|
|
4757
|
-
left: A(
|
|
4760
|
+
left: A(f)({
|
|
4758
4761
|
svgElement: L.value,
|
|
4759
4762
|
x: J.value?.right + V.value.plot.tag.fontSize / 1.5,
|
|
4760
4763
|
y: n.y,
|
|
@@ -4769,13 +4772,13 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4769
4772
|
fontSize: V.value.plot.tag.fontSize + "px",
|
|
4770
4773
|
opacity: 1
|
|
4771
4774
|
})
|
|
4772
|
-
}, [(
|
|
4775
|
+
}, [(E(), x("svg", li, [S("path", {
|
|
4773
4776
|
d: "M 0,10 10,0 10,20 Z",
|
|
4774
4777
|
fill: e.color,
|
|
4775
4778
|
stroke: "none"
|
|
4776
4779
|
}, null, 8, ui)])), S("div", {
|
|
4777
4780
|
class: "vue-ui-xy-tag-content",
|
|
4778
|
-
innerHTML: A(
|
|
4781
|
+
innerHTML: A(m)(V.value.plot.tag.formatter, n.value, e.name, {
|
|
4779
4782
|
datapoint: n,
|
|
4780
4783
|
seriesIndex: r,
|
|
4781
4784
|
serieName: e.name
|
|
@@ -4784,22 +4787,22 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4784
4787
|
I.value,
|
|
4785
4788
|
R.value,
|
|
4786
4789
|
ca.value
|
|
4787
|
-
].includes(r) && e.useTag && e.useTag === "start" && V.value.plot.tag.followValue ? (
|
|
4790
|
+
].includes(r) && e.useTag && e.useTag === "start" && V.value.plot.tag.followValue ? (E(), x("div", {
|
|
4788
4791
|
key: 1,
|
|
4789
4792
|
ref_for: !0,
|
|
4790
4793
|
ref: (e) => $o(t, r, e, "left", "plot"),
|
|
4791
4794
|
class: "vue-ui-xy-tag",
|
|
4792
4795
|
"data-tag": "left",
|
|
4793
|
-
style:
|
|
4796
|
+
style: T({
|
|
4794
4797
|
position: "fixed",
|
|
4795
|
-
top: A(
|
|
4798
|
+
top: A(f)({
|
|
4796
4799
|
svgElement: L.value,
|
|
4797
4800
|
x: J.value?.left - V.value.plot.tag.fontSize / 1.5,
|
|
4798
4801
|
y: n.y,
|
|
4799
4802
|
element: ya.value[`${t}_${r}_left_plot`],
|
|
4800
4803
|
position: "left"
|
|
4801
4804
|
})?.top + "px",
|
|
4802
|
-
left: A(
|
|
4805
|
+
left: A(f)({
|
|
4803
4806
|
svgElement: L.value,
|
|
4804
4807
|
x: J.value?.left - V.value.plot.tag.fontSize / 1.5,
|
|
4805
4808
|
y: n.y,
|
|
@@ -4814,19 +4817,19 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4814
4817
|
fontSize: V.value.plot.tag.fontSize + "px",
|
|
4815
4818
|
opacity: 1
|
|
4816
4819
|
})
|
|
4817
|
-
}, [(
|
|
4820
|
+
}, [(E(), x("svg", fi, [S("path", {
|
|
4818
4821
|
d: "M 0,0 10,10 0,20 Z",
|
|
4819
4822
|
fill: e.color,
|
|
4820
4823
|
stroke: "none"
|
|
4821
4824
|
}, null, 8, pi)])), S("div", {
|
|
4822
4825
|
class: "vue-ui-xy-tag-content",
|
|
4823
|
-
innerHTML: A(
|
|
4826
|
+
innerHTML: A(m)(V.value.plot.tag.formatter, n.value, e.name, {
|
|
4824
4827
|
datapoint: n,
|
|
4825
4828
|
seriesIndex: r,
|
|
4826
4829
|
serieName: e.name
|
|
4827
4830
|
})
|
|
4828
4831
|
}, null, 8, mi)], 4)) : b("", !0)], 64))), 128))], 64))), 128)),
|
|
4829
|
-
V.value.chart.zoom.show && uo.value > 6 && Xa.value && ys.value ? (
|
|
4832
|
+
V.value.chart.zoom.show && uo.value > 6 && Xa.value && ys.value ? (E(), Qe(qe, {
|
|
4830
4833
|
key: 6,
|
|
4831
4834
|
ref_key: "chartSlicer",
|
|
4832
4835
|
ref: Vi,
|
|
@@ -4894,21 +4897,21 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4894
4897
|
"onUpdate:end": Ms,
|
|
4895
4898
|
"onUpdate:start": js
|
|
4896
4899
|
}, {
|
|
4897
|
-
"reset-action": j(({ reset: e }) => [
|
|
4900
|
+
"reset-action": j(({ reset: e }) => [k(n.$slots, "reset-action", w(C({ reset: e })), void 0, !0)]),
|
|
4898
4901
|
_: 3
|
|
4899
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("."))) : b("", !0),
|
|
4900
4903
|
S("div", { id: `legend-bottom-${F.value}` }, null, 8, hi),
|
|
4901
|
-
xa.value && (V.value.chart.legend.show || n.$slots.legend) ? (
|
|
4904
|
+
xa.value && (V.value.chart.legend.show || n.$slots.legend) ? (E(), Qe(Ze, {
|
|
4902
4905
|
key: 7,
|
|
4903
4906
|
to: V.value.chart.legend.position === "top" ? `#legend-top-${F.value}` : `#legend-bottom-${F.value}`
|
|
4904
4907
|
}, [S("div", {
|
|
4905
4908
|
ref_key: "chartLegend",
|
|
4906
4909
|
ref: Hi
|
|
4907
|
-
}, [
|
|
4910
|
+
}, [k(n.$slots, "legend", { legend: Lo.value }, () => [V.value.chart.legend.show ? (E(), x("div", {
|
|
4908
4911
|
key: 0,
|
|
4909
4912
|
class: "vue-ui-xy-legend",
|
|
4910
|
-
style:
|
|
4911
|
-
}, [V.value.chart.legend.selectAllToggle.show && Lo.value.length > 2 && !A(no) ? (
|
|
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(), Qe(Ye, {
|
|
4912
4915
|
key: 0,
|
|
4913
4916
|
backgroundColor: V.value.chart.legend.selectAllToggle.backgroundColor,
|
|
4914
4917
|
color: V.value.chart.legend.selectAllToggle.color,
|
|
@@ -4920,7 +4923,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4920
4923
|
"color",
|
|
4921
4924
|
"fontSize",
|
|
4922
4925
|
"checked"
|
|
4923
|
-
])) : b("", !0), (
|
|
4926
|
+
])) : b("", !0), (E(!0), x(v, null, O(Lo.value, (e, t) => (E(), x("div", {
|
|
4924
4927
|
key: `div_legend_item_${t}`,
|
|
4925
4928
|
onClick: (t) => hc(e),
|
|
4926
4929
|
onKeydown: (t) => pc(t, e),
|
|
@@ -4931,8 +4934,8 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4931
4934
|
"vue-ui-xy-legend-item": !0,
|
|
4932
4935
|
"vue-ui-xy-legend-item-segregated": ua.value.has(e.id)
|
|
4933
4936
|
}),
|
|
4934
|
-
style:
|
|
4935
|
-
}, [ia.value[e.type] === "line" ? (
|
|
4937
|
+
style: T({ cursor: Za.value ? "pointer" : "default" })
|
|
4938
|
+
}, [ia.value[e.type] === "line" ? (E(), x("svg", _i, [S("rect", {
|
|
4936
4939
|
x: "0",
|
|
4937
4940
|
y: "7.5",
|
|
4938
4941
|
rx: "1.5",
|
|
@@ -4962,7 +4965,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4962
4965
|
"color",
|
|
4963
4966
|
"shape",
|
|
4964
4967
|
"stroke"
|
|
4965
|
-
])])) : ia.value[e.type] === "bar" ? (
|
|
4968
|
+
])])) : ia.value[e.type] === "bar" ? (E(), x("svg", yi, [ia.value[e.type] === "bar" && n.$slots.pattern ? (E(), x("rect", {
|
|
4966
4969
|
key: 0,
|
|
4967
4970
|
x: "4",
|
|
4968
4971
|
y: "4",
|
|
@@ -4971,7 +4974,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4971
4974
|
width: "32",
|
|
4972
4975
|
stroke: "none",
|
|
4973
4976
|
fill: e.color
|
|
4974
|
-
}, null, 8, bi)) : b("", !0), ia.value[e.type] === "bar" ? (
|
|
4977
|
+
}, null, 8, bi)) : b("", !0), ia.value[e.type] === "bar" ? (E(), x("rect", {
|
|
4975
4978
|
key: 1,
|
|
4976
4979
|
x: "4",
|
|
4977
4980
|
y: "4",
|
|
@@ -4980,7 +4983,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4980
4983
|
width: "32",
|
|
4981
4984
|
stroke: "none",
|
|
4982
4985
|
fill: n.$slots.pattern ? `url(#pattern_${F.value}_${e.slotAbsoluteIndex})` : e.color
|
|
4983
|
-
}, null, 8, xi)) : b("", !0)])) : (
|
|
4986
|
+
}, null, 8, xi)) : b("", !0)])) : (E(), x("svg", Si, [tt(Ge, {
|
|
4984
4987
|
plot: {
|
|
4985
4988
|
x: 6,
|
|
4986
4989
|
y: 6
|
|
@@ -4995,13 +4998,13 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
4995
4998
|
"hexagon",
|
|
4996
4999
|
"star"
|
|
4997
5000
|
].includes(e.shape) ? e.shape : "circle"
|
|
4998
|
-
}, null, 8, ["color", "shape"])])), S("span", { style:
|
|
4999
|
-
n.$slots.source ? (
|
|
5001
|
+
}, null, 8, ["color", "shape"])])), S("span", { style: T(`color:${V.value.chart.legend.color}`) }, dt(e.name), 5)], 46, gi))), 128))], 4)) : b("", !0)], !0)], 512)], 8, ["to"])) : b("", !0),
|
|
5002
|
+
n.$slots.source ? (E(), x("div", {
|
|
5000
5003
|
key: 8,
|
|
5001
5004
|
ref_key: "source",
|
|
5002
5005
|
ref: Ui,
|
|
5003
5006
|
dir: "auto"
|
|
5004
|
-
}, [
|
|
5007
|
+
}, [k(n.$slots, "source", {}, void 0, !0)], 512)) : b("", !0),
|
|
5005
5008
|
tt(A(Ei), {
|
|
5006
5009
|
teleportTo: V.value.chart.tooltip.teleportTo,
|
|
5007
5010
|
show: H.value.showTooltip && sa.value,
|
|
@@ -5026,9 +5029,9 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
5026
5029
|
isA11yMode: Ea.value != null,
|
|
5027
5030
|
a11yPosition: Da.value
|
|
5028
5031
|
}, {
|
|
5029
|
-
"tooltip-before": j(() => [
|
|
5030
|
-
tooltip: j(() => [
|
|
5031
|
-
"tooltip-after": j(() => [
|
|
5032
|
+
"tooltip-before": j(() => [k(n.$slots, "tooltip-before", w(C({ ...Nl.value })), void 0, !0)]),
|
|
5033
|
+
tooltip: j(() => [k(n.$slots, "tooltip", w(C({ ...Nl.value })), void 0, !0)]),
|
|
5034
|
+
"tooltip-after": j(() => [k(n.$slots, "tooltip-after", w(C({ ...Nl.value })), void 0, !0)]),
|
|
5032
5035
|
_: 3
|
|
5033
5036
|
}, 8, [
|
|
5034
5037
|
"teleportTo",
|
|
@@ -5054,26 +5057,26 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
5054
5057
|
"isA11yMode",
|
|
5055
5058
|
"a11yPosition"
|
|
5056
5059
|
]),
|
|
5057
|
-
Xa.value && V.value.chart.userOptions.buttons.table ? (
|
|
5060
|
+
Xa.value && V.value.chart.userOptions.buttons.table ? (E(), Qe(lt(Ru.value.component), it({ key: 9 }, Ru.value.props, {
|
|
5058
5061
|
ref_key: "tableUnit",
|
|
5059
5062
|
ref: Sa,
|
|
5060
5063
|
onClose: zu
|
|
5061
5064
|
}), $e({
|
|
5062
|
-
content: j(() => [S("div", { style:
|
|
5065
|
+
content: j(() => [S("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"}`) }, [S("div", Ci, [_t(S("input", {
|
|
5063
5066
|
type: "checkbox",
|
|
5064
5067
|
"onUpdate:modelValue": r[4] ||= (e) => ma.value = e
|
|
5065
5068
|
}, null, 512), [[mt, ma.value]]), S("div", {
|
|
5066
5069
|
onClick: r[5] ||= (e) => ma.value = !ma.value,
|
|
5067
|
-
style:
|
|
5070
|
+
style: T({ cursor: Za.value ? "pointer" : "default" })
|
|
5068
5071
|
}, [tt(A(Oi), {
|
|
5069
5072
|
name: "chartLine",
|
|
5070
5073
|
size: 20,
|
|
5071
5074
|
stroke: V.value.chart.color
|
|
5072
|
-
}, null, 8, ["stroke"])], 4)]), ma.value ? (
|
|
5075
|
+
}, null, 8, ["stroke"])], 4)]), ma.value ? (E(), Qe(A(ki), {
|
|
5073
5076
|
key: `sparkline_${ha.value}`,
|
|
5074
5077
|
dataset: wc.value,
|
|
5075
5078
|
config: Tc.value
|
|
5076
|
-
}, null, 8, ["dataset", "config"])) : (
|
|
5079
|
+
}, null, 8, ["dataset", "config"])) : (E(), Qe(A(Ti), {
|
|
5077
5080
|
key: `table_${fa.value}`,
|
|
5078
5081
|
colNames: Ql.value.colNames,
|
|
5079
5082
|
head: Ql.value.head,
|
|
@@ -5084,7 +5087,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
5084
5087
|
onClose: zu
|
|
5085
5088
|
}, {
|
|
5086
5089
|
th: j(({ th: e }) => [S("div", { innerHTML: e }, null, 8, wi)]),
|
|
5087
|
-
td: j(({ td: e }) => [et(
|
|
5090
|
+
td: j(({ td: e }) => [et(dt(isNaN(Number(e)) ? e : A(s)({
|
|
5088
5091
|
p: V.value.chart.labels.prefix,
|
|
5089
5092
|
v: e,
|
|
5090
5093
|
s: V.value.chart.labels.suffix,
|
|
@@ -5102,7 +5105,7 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
5102
5105
|
_: 2
|
|
5103
5106
|
}, [V.value.table.useDialog ? {
|
|
5104
5107
|
name: "title",
|
|
5105
|
-
fn: j(() => [et(
|
|
5108
|
+
fn: j(() => [et(dt(Ru.value.title), 1)]),
|
|
5106
5109
|
key: "0"
|
|
5107
5110
|
} : void 0, V.value.table.useDialog ? {
|
|
5108
5111
|
name: "actions",
|
|
@@ -5116,9 +5119,9 @@ var Dt = /* @__PURE__ */ e({ default: () => M }), Ot = ["id"], kt = ["id"], At =
|
|
|
5116
5119
|
}, null, 8, ["stroke"])])]),
|
|
5117
5120
|
key: "1"
|
|
5118
5121
|
} : void 0]), 1040)) : b("", !0),
|
|
5119
|
-
|
|
5122
|
+
k(n.$slots, "skeleton", {}, () => [A(no) ? (E(), Qe(Ie, { key: 0 })) : b("", !0)], !0)
|
|
5120
5123
|
], 46, Ot));
|
|
5121
5124
|
}
|
|
5122
|
-
}, [["__scopeId", "data-v-
|
|
5125
|
+
}, [["__scopeId", "data-v-e5c1dd1d"]]);
|
|
5123
5126
|
//#endregion
|
|
5124
5127
|
export { Dt as n, M as t };
|