vue-data-ui 3.18.0 → 3.18.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-BU2Z7mfz.js → Arrow-Cj6W6Xbi.js} +1 -1
- package/dist/{BaseDraggableDialog-LE75fWYz.js → BaseDraggableDialog-BQcmQAK5.js} +2 -2
- package/dist/{BaseIcon-CL6Y7alf.js → BaseIcon-CEmt3Ifx.js} +1 -1
- package/dist/{BaseLegendToggle-BvPOFMVZ.js → BaseLegendToggle-DUIqQmwM.js} +1 -1
- package/dist/{BaseZoomControls-DSwf4HhS.js → BaseZoomControls-Ce1yqas1.js} +2 -2
- package/dist/{ColorPicker-BGbMrtup.js → ColorPicker-DS_QkH3W.js} +2 -2
- package/dist/{DataTable-ZG4GX2Zg.js → DataTable-BvDJEAma.js} +2 -2
- package/dist/{Legend-BPb8i4aC.js → Legend-Gg5Q4Clb.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BT3YMjgo.js → NonSvgPenAndPaper-D4Gh7O43.js} +3 -3
- package/dist/{PackageVersion-B1cPtZ3Q.js → PackageVersion-D3uPzhcq.js} +1 -1
- package/dist/{PenAndPaper-DxBCVZAx.js → PenAndPaper-DwpL8Z0l.js} +3 -3
- package/dist/{Shape-Dbug7CtK.js → Shape-DEGOZ6GG.js} +1 -1
- package/dist/{Slicer-SEdaKYPX.js → Slicer-BlfyiHHD.js} +2 -2
- package/dist/{SlicerPreview-BLlQTUI_.js → SlicerPreview-BPS8mYO2.js} +2 -2
- package/dist/{SparkTooltip-BaONR2nq.js → SparkTooltip-c2DL7gqD.js} +1 -1
- package/dist/{Title-ByyzJzpc.js → Title-__gWq2g6.js} +1 -1
- package/dist/{Tooltip-V6Z0Ko-1.js → Tooltip-B7lmdbac.js} +1 -1
- package/dist/{UserOptions-Gaw1761w.js → UserOptions-DMw8EZEo.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-C9UOX1d2.js → dom-to-png-9WSt6hXe.js} +1 -1
- package/dist/{exposedLib-BQjH823l.js → exposedLib-CwWU4zv-.js} +1 -1
- package/dist/{img-NMY-_LiJ.js → img-BjOr008R.js} +1 -1
- package/dist/{labelUtils-BiSegLOT.js → labelUtils-Cr97N8E1.js} +1 -1
- package/dist/{lib-B83ZCydz.js → lib-BkiwukKO.js} +1 -1
- package/dist/{pdf-Ey2KFETK.js → pdf-DSXSFUnK.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +16 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-De0rTecW.js → useAutoSizeLabelsInsideViewbox-dp-3Gg97.js} +1 -1
- package/dist/{useConfig-KnOLHtlJ.js → useConfig-BV0kTCnO.js} +14 -2
- package/dist/{useNestedProp-CcxL1gUU.js → useNestedProp-Ck4hsrpu.js} +1 -1
- package/dist/{useObjectBindings-Dc8Rf6Qy.js → useObjectBindings-Ce_ZZk-f.js} +1 -1
- package/dist/{usePrinter-CMLF900n.js → usePrinter-X0yWOynH.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-D1REqS_k.js → vue-data-ui-CdZO6wav.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/{vue-ui-3d-bar-vO_kSCd6.js → vue-ui-3d-bar-BHtOGgh-.js} +7 -7
- package/dist/{vue-ui-accordion-Cf-jZELj.js → vue-ui-accordion-cVv18nTV.js} +4 -4
- package/dist/{vue-ui-age-pyramid-DHXhrP_3.js → vue-ui-age-pyramid-DGMKfcRS.js} +7 -7
- package/dist/{vue-ui-annotator-B0o6czmF.js → vue-ui-annotator-B9mA_PlF.js} +7 -7
- package/dist/{vue-ui-bullet-C93-cf0H.js → vue-ui-bullet-DxyPGoI6.js} +8 -8
- package/dist/{vue-ui-bump-C_Szk9AZ.js → vue-ui-bump-D5ejWnOB.js} +7 -7
- package/dist/{vue-ui-candlestick-6JdMEJKO.js → vue-ui-candlestick-BN6He4fO.js} +8 -8
- package/dist/{vue-ui-carousel-table-CZ_HK0Iw.js → vue-ui-carousel-table-v0sCcF2O.js} +5 -5
- package/dist/{vue-ui-chestnut-B8ixU585.js → vue-ui-chestnut-C85iKP-I.js} +6 -6
- package/dist/{vue-ui-chord-DC5sLapz.js → vue-ui-chord-LPnQTlWe.js} +9 -9
- package/dist/{vue-ui-circle-pack-CsmSEwt3.js → vue-ui-circle-pack-nclfZbHH.js} +7 -7
- package/dist/{vue-ui-cursor-B-QODIL3.js → vue-ui-cursor-fE68xalD.js} +4 -4
- package/dist/{vue-ui-dag-C9LYfjS_.js → vue-ui-dag-D0Xk8jQY.js} +8 -8
- package/dist/{vue-ui-dashboard-D-f4ZaLi.js → vue-ui-dashboard-BWq6Tqjj.js} +70 -70
- package/dist/{vue-ui-digits-CcB3odN7.js → vue-ui-digits-CkzEwD0f.js} +4 -4
- package/dist/{vue-ui-donut-DR0ngnZC.js → vue-ui-donut-DDImiP4n.js} +11 -11
- package/dist/{vue-ui-donut-evolution-BXpOscCe.js → vue-ui-donut-evolution-CgRnUHdj.js} +10 -10
- package/dist/{vue-ui-dumbbell-CB_clJWA.js → vue-ui-dumbbell-DQDUjvD3.js} +8 -8
- package/dist/{vue-ui-flow-CUiOAEy1.js → vue-ui-flow-CevnLGTR.js} +8 -8
- package/dist/{vue-ui-funnel-BAlGDK0o.js → vue-ui-funnel-CXSt2oP4.js} +7 -7
- package/dist/{vue-ui-galaxy-DbYNfSHb.js → vue-ui-galaxy-DGcm4Cpz.js} +10 -10
- package/dist/{vue-ui-gauge-Cie7jykM.js → vue-ui-gauge-By6Qs0JX.js} +8 -8
- package/dist/{vue-ui-geo-Ce_gBRye.js → vue-ui-geo-D8MQooAP.js} +8 -8
- package/dist/{vue-ui-gizmo-B9POi_SN.js → vue-ui-gizmo-DsiGPqEW.js} +4 -4
- package/dist/{vue-ui-heatmap-DFfRSbnk.js → vue-ui-heatmap-oZy5xKQB.js} +8 -8
- package/dist/{vue-ui-history-plot-DHp5WFgx.js → vue-ui-history-plot-Cj7CRNYh.js} +9 -9
- package/dist/{vue-ui-horizontal-bar-DI4yoARv.js → vue-ui-horizontal-bar-C50FHegL.js} +11 -11
- package/dist/{vue-ui-kpi-oUfso4UP.js → vue-ui-kpi-5F1IKV6-.js} +4 -4
- package/dist/{vue-ui-mini-loader-aZMi1_uX.js → vue-ui-mini-loader-BcCG6Yqb.js} +3 -3
- package/dist/{vue-ui-molecule-D72kzel_.js → vue-ui-molecule-B17T3iQI.js} +6 -6
- package/dist/{vue-ui-mood-radar-Tw2ZFP7Y.js → vue-ui-mood-radar-DtAlJ9_n.js} +8 -8
- package/dist/{vue-ui-nested-donuts-Bza1LczX.js → vue-ui-nested-donuts-DUY_HhEn.js} +10 -10
- package/dist/{vue-ui-onion-BOuuib5d.js → vue-ui-onion-To8pISuC.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-BuQUq6-o.js → vue-ui-parallel-coordinate-plot-C-22T09h.js} +10 -10
- package/dist/{vue-ui-quadrant-zNFIXNt9.js → vue-ui-quadrant-Di_B-M09.js} +10 -10
- package/dist/{vue-ui-quick-chart-B1a8QVUn.js → vue-ui-quick-chart-BQWyimr9.js} +8 -8
- package/dist/{vue-ui-radar-VFn-YP_2.js → vue-ui-radar-CkN1_FE3.js} +10 -10
- package/dist/{vue-ui-rating-Dxgn21FA.js → vue-ui-rating-DA9Bmfyb.js} +3 -3
- package/dist/{vue-ui-relation-circle-B0sZaCgX.js → vue-ui-relation-circle-pwgYQc-j.js} +8 -8
- package/dist/{vue-ui-ridgeline-BsBAbg5V.js → vue-ui-ridgeline-DdH3yL2f.js} +10 -10
- package/dist/{vue-ui-rings-CDwUzMF-.js → vue-ui-rings-Dk-A50Gi.js} +11 -11
- package/dist/{vue-ui-scatter-Du_b-zM8.js → vue-ui-scatter-CoFG9m0A.js} +497 -476
- package/dist/{vue-ui-skeleton-BAq6J_6G.js → vue-ui-skeleton-DQGVwUh-.js} +4 -4
- package/dist/{vue-ui-smiley-CoHvkS0c.js → vue-ui-smiley-B6nc7b71.js} +3 -3
- package/dist/{vue-ui-spark-trend-BmCcJ17C.js → vue-ui-spark-trend-DIgn9rDT.js} +4 -4
- package/dist/{vue-ui-sparkbar-9z05IMx8.js → vue-ui-sparkbar-c9Fdy_Tk.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BlWri9DP.js → vue-ui-sparkgauge-Ce1ldPqt.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-CHZTt8d8.js → vue-ui-sparkhistogram-NiHcVm3l.js} +5 -5
- package/dist/{vue-ui-sparkline-DirLW9Nd.js → vue-ui-sparkline-CiCWQ9my.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-Dk6cEI2o.js → vue-ui-sparkstackbar-CDZyhKKT.js} +5 -5
- package/dist/{vue-ui-stackbar-DNIrGHkt.js → vue-ui-stackbar-CSMRGjBe.js} +11 -11
- package/dist/{vue-ui-stackline-HoWn_ur2.js → vue-ui-stackline-C_jCZU1n.js} +11 -11
- package/dist/{vue-ui-strip-plot-Bi8u_fLr.js → vue-ui-strip-plot-CPdJnJiu.js} +8 -8
- package/dist/{vue-ui-table-XLjOOfdI.js → vue-ui-table-DrkVnhkz.js} +6 -6
- package/dist/{vue-ui-table-heatmap-DvnFiveI.js → vue-ui-table-heatmap-CfGJVzI3.js} +6 -6
- package/dist/{vue-ui-table-sparkline-CSZf8XxP.js → vue-ui-table-sparkline--f-jCYZG.js} +5 -5
- package/dist/{vue-ui-thermometer-7eUO_7CP.js → vue-ui-thermometer-bK24RPtq.js} +8 -8
- package/dist/{vue-ui-timer-DCbxsREb.js → vue-ui-timer-DQyyLD-o.js} +6 -6
- package/dist/{vue-ui-tiremarks-p_sfTufv.js → vue-ui-tiremarks-DpqvOpit.js} +7 -7
- package/dist/{vue-ui-treemap-BdZOW7TM.js → vue-ui-treemap-DYUZySiS.js} +10 -10
- package/dist/{vue-ui-waffle-Bf9dWWCM.js → vue-ui-waffle-q9EJcrra.js} +11 -11
- package/dist/{vue-ui-wheel-CZrIiB0K.js → vue-ui-wheel-DBappaux.js} +7 -7
- package/dist/{vue-ui-word-cloud-BeLjxoRe.js → vue-ui-word-cloud-Bv1Es_aY.js} +8 -8
- package/dist/{vue-ui-world-D9ahzEQ2.js → vue-ui-world-D_L5D6U9.js} +8 -8
- package/dist/{vue-ui-xy-DrvbVuHO.js → vue-ui-xy-ZAw5hm1u.js} +1296 -1245
- package/dist/{vue-ui-xy-canvas-DU7vFrQr.js → vue-ui-xy-canvas-D2f0d45c.js} +12 -12
- package/package.json +1 -1
|
@@ -1,81 +1,81 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
-
import { At as t, B as n, D as r, F as i, G as a, H as o, I as s, It as c, J as l, L as u, Lt as ee, M as te, Mt as d, O as f, Ot as p, P as m, R as ne, Rt as re, S as ie, St as ae, T as oe, Tt as
|
|
2
|
+
import { At as t, B as n, D as r, F as i, G as a, H as o, I as s, It as c, J as l, L as u, Lt as ee, M as te, Mt as d, O as f, Ot as p, P as m, R as ne, Rt as re, S as ie, St as ae, T as oe, Tt as h, X as se, _t as ce, a as g, c as le, dt as _, et as v, g as ue, h as de, i as fe, j as pe, jt as me, k as he, l as ge, mt as _e, n as ve, nt as ye, pt as be, r as xe, s as Se, v as y, w as Ce, x as we, y as Te, z as Ee, zt as De } from "./lib-BkiwukKO.js";
|
|
3
3
|
import { n as Oe, r as ke, t as Ae } from "./useTimeLabels-C0x7zUXP.js";
|
|
4
|
-
import { t as je } from "./useConfig-
|
|
5
|
-
import { t as Me } from "./usePrinter-
|
|
4
|
+
import { t as je } from "./useConfig-BV0kTCnO.js";
|
|
5
|
+
import { t as Me } from "./usePrinter-X0yWOynH.js";
|
|
6
6
|
import { n as Ne, t as Pe } from "./BaseScanner-C7dmAref.js";
|
|
7
7
|
import { t as Fe } from "./useSvgExport-Dtu973wa.js";
|
|
8
|
-
import { t as Ie } from "./useNestedProp-
|
|
8
|
+
import { t as Ie } from "./useNestedProp-Ck4hsrpu.js";
|
|
9
9
|
import { t as Le } from "./useThemeCheck-rFK9Zlb_.js";
|
|
10
10
|
import { t as Re } from "./useStableElementSize-0I1IpHPl.js";
|
|
11
11
|
import { t as ze } from "./useTimeLabelCollider-Dm55Emzg.js";
|
|
12
|
-
import { t as Be } from "./img-
|
|
13
|
-
import { n as Ve } from "./Title-
|
|
12
|
+
import { t as Be } from "./img-BjOr008R.js";
|
|
13
|
+
import { n as Ve } from "./Title-__gWq2g6.js";
|
|
14
14
|
import { t as He } from "./vue_ui_xy-BYPqfYyx.js";
|
|
15
|
-
import { t as Ue } from "./Shape-
|
|
15
|
+
import { t as Ue } from "./Shape-DEGOZ6GG.js";
|
|
16
16
|
import { t as We } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
17
|
-
import { t as Ge } from "./SlicerPreview-
|
|
18
|
-
import { t as Ke } from "./vue-ui-accordion-
|
|
19
|
-
import { t as qe } from "./BaseLegendToggle-
|
|
17
|
+
import { t as Ge } from "./SlicerPreview-BPS8mYO2.js";
|
|
18
|
+
import { t as Ke } from "./vue-ui-accordion-cVv18nTV.js";
|
|
19
|
+
import { t as qe } from "./BaseLegendToggle-DUIqQmwM.js";
|
|
20
20
|
import { t as Je } from "./A11yDataTable-q2-8fSlJ.js";
|
|
21
|
-
import { Fragment as b, Teleport as Ye, computed as x, createBlock as Xe, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as Ze, createTextVNode as Qe, createVNode as $e, defineAsyncComponent as et, getCurrentInstance as tt, guardReactiveProps as T, mergeProps as nt, nextTick as rt, normalizeClass as it, normalizeProps as E, normalizeStyle as D, onBeforeUnmount as at, onMounted as ot, openBlock as O, ref as k, renderList as A, renderSlot as j, resolveDynamicComponent as st, shallowRef as ct, toDisplayString as
|
|
21
|
+
import { Fragment as b, Teleport as Ye, computed as x, createBlock as Xe, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as Ze, createTextVNode as Qe, createVNode as $e, defineAsyncComponent as et, getCurrentInstance as tt, guardReactiveProps as T, mergeProps as nt, nextTick as rt, normalizeClass as it, normalizeProps as E, normalizeStyle as D, onBeforeUnmount as at, onMounted as ot, openBlock as O, ref as k, renderList as A, renderSlot as j, resolveDynamicComponent as st, shallowRef as ct, toDisplayString as lt, toRefs as ut, unref as M, useSlots as dt, vModelCheckbox as ft, watch as pt, watchEffect as mt, withCtx as N, withDirectives as ht } from "vue";
|
|
22
22
|
//#region src/components/vue-ui-xy.vue
|
|
23
|
-
var
|
|
23
|
+
var gt = /* @__PURE__ */ e({ default: () => P }), _t = ["id"], vt = ["id"], yt = ["id"], bt = { style: { position: "relative" } }, xt = [
|
|
24
24
|
"viewBox",
|
|
25
25
|
"aria-label",
|
|
26
26
|
"aria-describedby"
|
|
27
|
-
],
|
|
27
|
+
], St = [
|
|
28
28
|
"x",
|
|
29
29
|
"y",
|
|
30
30
|
"width",
|
|
31
31
|
"height"
|
|
32
|
-
],
|
|
32
|
+
], Ct = { key: 1 }, wt = { class: "vue-ui-xy-grid" }, Tt = [
|
|
33
33
|
"stroke",
|
|
34
34
|
"x1",
|
|
35
35
|
"x2",
|
|
36
36
|
"y1",
|
|
37
37
|
"y2"
|
|
38
|
-
],
|
|
38
|
+
], Et = [
|
|
39
39
|
"stroke",
|
|
40
40
|
"x1",
|
|
41
41
|
"x2",
|
|
42
42
|
"y1",
|
|
43
43
|
"y2"
|
|
44
|
-
],
|
|
44
|
+
], Dt = { key: 1 }, Ot = [
|
|
45
45
|
"x1",
|
|
46
46
|
"x2",
|
|
47
47
|
"y1",
|
|
48
48
|
"y2",
|
|
49
49
|
"stroke"
|
|
50
|
-
],
|
|
50
|
+
], kt = [
|
|
51
51
|
"x1",
|
|
52
52
|
"x2",
|
|
53
53
|
"y1",
|
|
54
54
|
"y2",
|
|
55
55
|
"stroke"
|
|
56
|
-
],
|
|
56
|
+
], At = [
|
|
57
57
|
"x1",
|
|
58
58
|
"x2",
|
|
59
59
|
"y1",
|
|
60
60
|
"y2",
|
|
61
61
|
"stroke"
|
|
62
|
-
],
|
|
62
|
+
], jt = { key: 3 }, Mt = ["d", "stroke"], Nt = { key: 4 }, Pt = ["d", "stroke"], Ft = ["id"], It = ["stop-color"], Lt = ["stop-color"], Rt = ["stop-color"], zt = ["id"], Bt = ["stop-color"], Vt = ["stop-color"], Ht = ["stop-color"], Ut = ["id"], Wt = ["stop-color"], Gt = ["stop-color"], Kt = ["id"], qt = ["stop-color"], Jt = ["stop-color"], Yt = ["id"], Xt = ["stop-color"], Zt = ["stop-color"], Qt = { key: 0 }, $t = ["id"], en = ["stop-color", "offset"], tn = [
|
|
63
63
|
"x",
|
|
64
64
|
"y",
|
|
65
65
|
"height",
|
|
66
66
|
"width",
|
|
67
67
|
"fill"
|
|
68
|
-
],
|
|
68
|
+
], nn = [
|
|
69
69
|
"x",
|
|
70
70
|
"y",
|
|
71
71
|
"width"
|
|
72
|
-
],
|
|
72
|
+
], rn = { key: 0 }, an = [
|
|
73
73
|
"x",
|
|
74
74
|
"y",
|
|
75
75
|
"height",
|
|
76
76
|
"width",
|
|
77
77
|
"fill"
|
|
78
|
-
],
|
|
78
|
+
], on = [
|
|
79
79
|
"x",
|
|
80
80
|
"y",
|
|
81
81
|
"height",
|
|
@@ -84,7 +84,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
84
84
|
"fill",
|
|
85
85
|
"stroke",
|
|
86
86
|
"stroke-width"
|
|
87
|
-
],
|
|
87
|
+
], sn = [
|
|
88
88
|
"x",
|
|
89
89
|
"y",
|
|
90
90
|
"height",
|
|
@@ -93,17 +93,17 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
93
93
|
"fill",
|
|
94
94
|
"stroke",
|
|
95
95
|
"stroke-width"
|
|
96
|
-
],
|
|
96
|
+
], cn = [
|
|
97
97
|
"width",
|
|
98
98
|
"x",
|
|
99
99
|
"y"
|
|
100
|
-
],
|
|
100
|
+
], ln = [
|
|
101
101
|
"stroke",
|
|
102
102
|
"x1",
|
|
103
103
|
"x2",
|
|
104
104
|
"y1",
|
|
105
105
|
"y2"
|
|
106
|
-
],
|
|
106
|
+
], un = { key: 3 }, dn = [
|
|
107
107
|
"x1",
|
|
108
108
|
"x2",
|
|
109
109
|
"y1",
|
|
@@ -111,7 +111,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
111
111
|
"stroke",
|
|
112
112
|
"stroke-width",
|
|
113
113
|
"stroke-dasharray"
|
|
114
|
-
],
|
|
114
|
+
], fn = [
|
|
115
115
|
"x",
|
|
116
116
|
"y",
|
|
117
117
|
"width",
|
|
@@ -121,188 +121,194 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
121
121
|
"stroke-linecap",
|
|
122
122
|
"stroke-linejoin",
|
|
123
123
|
"stroke-dasharray"
|
|
124
|
-
],
|
|
124
|
+
], pn = [
|
|
125
125
|
"x1",
|
|
126
126
|
"x2",
|
|
127
127
|
"y1",
|
|
128
128
|
"y2",
|
|
129
129
|
"stroke",
|
|
130
130
|
"stroke-width"
|
|
131
|
-
],
|
|
131
|
+
], mn = [
|
|
132
132
|
"fill",
|
|
133
133
|
"font-size",
|
|
134
134
|
"transform"
|
|
135
|
-
],
|
|
135
|
+
], hn = [
|
|
136
136
|
"x1",
|
|
137
137
|
"x2",
|
|
138
138
|
"y1",
|
|
139
139
|
"y2",
|
|
140
140
|
"stroke"
|
|
141
|
-
],
|
|
141
|
+
], gn = [
|
|
142
142
|
"x",
|
|
143
143
|
"y",
|
|
144
144
|
"font-size",
|
|
145
145
|
"fill"
|
|
146
|
-
],
|
|
146
|
+
], _n = [
|
|
147
147
|
"x1",
|
|
148
148
|
"x2",
|
|
149
149
|
"y1",
|
|
150
150
|
"y2",
|
|
151
151
|
"stroke"
|
|
152
|
-
],
|
|
152
|
+
], vn = [
|
|
153
153
|
"x",
|
|
154
154
|
"y",
|
|
155
155
|
"font-size",
|
|
156
156
|
"fill"
|
|
157
|
-
],
|
|
157
|
+
], yn = [
|
|
158
158
|
"width",
|
|
159
159
|
"x",
|
|
160
160
|
"y"
|
|
161
|
-
],
|
|
161
|
+
], bn = { style: { width: "100%" } }, xn = [
|
|
162
162
|
"d",
|
|
163
163
|
"stroke",
|
|
164
164
|
"stroke-width",
|
|
165
165
|
"stroke-dasharray"
|
|
166
|
-
],
|
|
166
|
+
], Sn = [
|
|
167
167
|
"d",
|
|
168
168
|
"stroke",
|
|
169
169
|
"stroke-width",
|
|
170
170
|
"stroke-dasharray"
|
|
171
|
-
],
|
|
171
|
+
], Cn = { key: 6 }, wn = { key: 7 }, Tn = [
|
|
172
172
|
"d",
|
|
173
173
|
"fill",
|
|
174
174
|
"fill-opacity"
|
|
175
|
-
],
|
|
175
|
+
], En = { key: 0 }, Dn = ["d", "fill"], On = ["d", "fill"], kn = ["d", "fill"], An = ["d", "fill"], jn = [
|
|
176
176
|
"d",
|
|
177
177
|
"stroke",
|
|
178
178
|
"stroke-width",
|
|
179
179
|
"stroke-dasharray"
|
|
180
|
-
],
|
|
180
|
+
], Mn = [
|
|
181
181
|
"d",
|
|
182
182
|
"stroke",
|
|
183
183
|
"stroke-width",
|
|
184
184
|
"stroke-dasharray"
|
|
185
|
-
],
|
|
185
|
+
], Nn = [
|
|
186
186
|
"d",
|
|
187
187
|
"stroke",
|
|
188
188
|
"stroke-width",
|
|
189
189
|
"stroke-dasharray"
|
|
190
|
-
],
|
|
190
|
+
], Pn = [
|
|
191
191
|
"d",
|
|
192
192
|
"stroke",
|
|
193
193
|
"stroke-width",
|
|
194
194
|
"stroke-dasharray"
|
|
195
|
-
],
|
|
195
|
+
], Fn = [
|
|
196
196
|
"width",
|
|
197
197
|
"x",
|
|
198
198
|
"y"
|
|
199
|
-
],
|
|
200
|
-
"
|
|
201
|
-
"y",
|
|
199
|
+
], In = { style: { width: "100%" } }, Ln = { key: 8 }, Rn = [
|
|
200
|
+
"text-anchor",
|
|
202
201
|
"font-size",
|
|
203
|
-
"
|
|
204
|
-
|
|
202
|
+
"transform",
|
|
203
|
+
"fill",
|
|
204
|
+
"stroke",
|
|
205
|
+
"innerHTML"
|
|
206
|
+
], zn = [
|
|
205
207
|
"x",
|
|
206
208
|
"y",
|
|
207
209
|
"font-size",
|
|
208
210
|
"fill",
|
|
209
211
|
"font-weight"
|
|
210
|
-
],
|
|
211
|
-
"
|
|
212
|
-
"
|
|
212
|
+
], Bn = { key: 9 }, Vn = [
|
|
213
|
+
"transform",
|
|
214
|
+
"text-anchor",
|
|
213
215
|
"font-size",
|
|
214
|
-
"fill"
|
|
215
|
-
|
|
216
|
+
"fill",
|
|
217
|
+
"stroke",
|
|
218
|
+
"innerHTML"
|
|
219
|
+
], Hn = { key: 10 }, Un = ["x", "y"], Wn = ["innerHTML"], Gn = ["x", "y"], Kn = ["innerHTML"], qn = [
|
|
216
220
|
"x1",
|
|
217
221
|
"x2",
|
|
218
222
|
"y1",
|
|
219
223
|
"y2",
|
|
220
224
|
"stroke"
|
|
221
|
-
],
|
|
222
|
-
"
|
|
223
|
-
"
|
|
225
|
+
], Jn = { key: 11 }, Yn = [
|
|
226
|
+
"transform",
|
|
227
|
+
"text-anchor",
|
|
224
228
|
"font-size",
|
|
225
|
-
"fill"
|
|
226
|
-
|
|
229
|
+
"fill",
|
|
230
|
+
"stroke",
|
|
231
|
+
"innerHTML"
|
|
232
|
+
], Xn = { key: 12 }, Zn = ["x", "y"], Qn = ["innerHTML"], $n = ["x", "y"], er = ["innerHTML"], tr = [
|
|
227
233
|
"x1",
|
|
228
234
|
"x2",
|
|
229
235
|
"y1",
|
|
230
236
|
"y2",
|
|
231
237
|
"stroke"
|
|
232
|
-
],
|
|
238
|
+
], nr = [
|
|
233
239
|
"x",
|
|
234
240
|
"y",
|
|
235
241
|
"font-size",
|
|
236
242
|
"fill",
|
|
237
243
|
"innerHTML"
|
|
238
|
-
],
|
|
244
|
+
], rr = [
|
|
239
245
|
"x",
|
|
240
246
|
"y",
|
|
241
247
|
"font-size",
|
|
242
248
|
"fill",
|
|
243
249
|
"innerHTML"
|
|
244
|
-
],
|
|
250
|
+
], ir = [
|
|
245
251
|
"x",
|
|
246
252
|
"y",
|
|
247
253
|
"font-size",
|
|
248
254
|
"fill",
|
|
249
255
|
"innerHTML"
|
|
250
|
-
],
|
|
256
|
+
], ar = [
|
|
251
257
|
"x",
|
|
252
258
|
"y",
|
|
253
259
|
"font-size",
|
|
254
260
|
"fill",
|
|
255
261
|
"innerHTML"
|
|
256
|
-
],
|
|
262
|
+
], or = { key: 0 }, sr = ["id"], cr = ["fill", "stroke"], lr = [
|
|
257
263
|
"x1",
|
|
258
264
|
"x2",
|
|
259
265
|
"y1",
|
|
260
266
|
"y2",
|
|
261
267
|
"stroke",
|
|
262
268
|
"marker-end"
|
|
263
|
-
],
|
|
269
|
+
], ur = [
|
|
264
270
|
"x1",
|
|
265
271
|
"x2",
|
|
266
272
|
"y1",
|
|
267
273
|
"y2",
|
|
268
274
|
"stroke",
|
|
269
275
|
"marker-end"
|
|
270
|
-
],
|
|
276
|
+
], dr = [
|
|
271
277
|
"x",
|
|
272
278
|
"y",
|
|
273
279
|
"font-size",
|
|
274
280
|
"fill",
|
|
275
281
|
"stroke"
|
|
276
|
-
],
|
|
282
|
+
], fr = ["id"], pr = ["stop-color"], mr = ["stop-color"], hr = [
|
|
277
283
|
"x",
|
|
278
284
|
"y",
|
|
279
285
|
"width",
|
|
280
286
|
"height",
|
|
281
287
|
"fill",
|
|
282
288
|
"onMouseenter"
|
|
283
|
-
],
|
|
289
|
+
], gr = [
|
|
284
290
|
"font-size",
|
|
285
291
|
"fill",
|
|
286
292
|
"transform"
|
|
287
|
-
],
|
|
293
|
+
], _r = [
|
|
288
294
|
"x",
|
|
289
295
|
"y",
|
|
290
296
|
"font-size",
|
|
291
297
|
"fill"
|
|
292
|
-
],
|
|
298
|
+
], vr = [
|
|
293
299
|
"text-anchor",
|
|
294
300
|
"font-size",
|
|
295
301
|
"fill",
|
|
296
302
|
"transform",
|
|
297
303
|
"onClick"
|
|
298
|
-
],
|
|
304
|
+
], yr = [
|
|
299
305
|
"text-anchor",
|
|
300
306
|
"font-size",
|
|
301
307
|
"fill",
|
|
302
308
|
"transform",
|
|
303
309
|
"innerHTML",
|
|
304
310
|
"onClick"
|
|
305
|
-
],
|
|
311
|
+
], br = { key: 15 }, xr = [
|
|
306
312
|
"x1",
|
|
307
313
|
"y1",
|
|
308
314
|
"x2",
|
|
@@ -310,7 +316,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
310
316
|
"stroke",
|
|
311
317
|
"stroke-width",
|
|
312
318
|
"stroke-dasharray"
|
|
313
|
-
],
|
|
319
|
+
], Sr = [
|
|
314
320
|
"x1",
|
|
315
321
|
"y1",
|
|
316
322
|
"x2",
|
|
@@ -318,28 +324,28 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
318
324
|
"stroke",
|
|
319
325
|
"stroke-width",
|
|
320
326
|
"stroke-dasharray"
|
|
321
|
-
],
|
|
327
|
+
], Cr = [
|
|
322
328
|
"y",
|
|
323
329
|
"x",
|
|
324
330
|
"width",
|
|
325
331
|
"height",
|
|
326
332
|
"fill"
|
|
327
|
-
],
|
|
333
|
+
], wr = [
|
|
328
334
|
"id",
|
|
329
335
|
"x",
|
|
330
336
|
"y",
|
|
331
337
|
"font-size",
|
|
332
338
|
"fill",
|
|
333
339
|
"text-anchor"
|
|
334
|
-
],
|
|
340
|
+
], Tr = {
|
|
335
341
|
key: 16,
|
|
336
342
|
style: { "pointer-events": "none" }
|
|
337
|
-
},
|
|
343
|
+
}, Er = ["x", "y"], Dr = ["innerHTML"], Or = [
|
|
338
344
|
"cx",
|
|
339
345
|
"cy",
|
|
340
346
|
"r",
|
|
341
347
|
"fill"
|
|
342
|
-
],
|
|
348
|
+
], kr = ["data-start", "data-end"], Ar = {
|
|
343
349
|
key: 0,
|
|
344
350
|
style: {
|
|
345
351
|
position: "absolute",
|
|
@@ -349,10 +355,10 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
349
355
|
},
|
|
350
356
|
"data-dom-to-png-ignore": "",
|
|
351
357
|
"aria-hidden": "true"
|
|
352
|
-
},
|
|
358
|
+
}, jr = {
|
|
353
359
|
key: 5,
|
|
354
360
|
class: "vue-data-ui-watermark"
|
|
355
|
-
},
|
|
361
|
+
}, Mr = {
|
|
356
362
|
class: "vue-ui-xy-tag-arrow",
|
|
357
363
|
height: "20",
|
|
358
364
|
viewBox: "0 0 10 20",
|
|
@@ -362,7 +368,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
362
368
|
top: "50%",
|
|
363
369
|
transform: "translateY(-50%)"
|
|
364
370
|
}
|
|
365
|
-
},
|
|
371
|
+
}, Nr = ["fill"], Pr = ["innerHTML"], Fr = {
|
|
366
372
|
class: "vue-ui-xy-tag-arrow",
|
|
367
373
|
height: "100%",
|
|
368
374
|
viewBox: "0 0 10 20",
|
|
@@ -372,7 +378,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
372
378
|
top: "50%",
|
|
373
379
|
transform: "translateY(-50%)"
|
|
374
380
|
}
|
|
375
|
-
},
|
|
381
|
+
}, Ir = ["fill"], Lr = ["innerHTML"], Rr = {
|
|
376
382
|
class: "vue-ui-xy-tag-arrow",
|
|
377
383
|
height: "20",
|
|
378
384
|
viewBox: "0 0 10 20",
|
|
@@ -382,7 +388,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
382
388
|
top: "50%",
|
|
383
389
|
transform: "translateY(-50%)"
|
|
384
390
|
}
|
|
385
|
-
},
|
|
391
|
+
}, zr = ["fill"], Br = ["innerHTML"], Vr = {
|
|
386
392
|
class: "vue-ui-xy-tag-arrow",
|
|
387
393
|
height: "100%",
|
|
388
394
|
viewBox: "0 0 10 20",
|
|
@@ -392,25 +398,25 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
392
398
|
top: "50%",
|
|
393
399
|
transform: "translateY(-50%)"
|
|
394
400
|
}
|
|
395
|
-
},
|
|
401
|
+
}, Hr = ["fill"], Ur = ["innerHTML"], Wr = ["id"], Gr = ["onClick", "onKeydown"], Kr = {
|
|
396
402
|
key: 0,
|
|
397
403
|
viewBox: "0 0 20 12",
|
|
398
404
|
height: "1em",
|
|
399
405
|
width: "1.43em",
|
|
400
406
|
"aria-hidden": "true"
|
|
401
|
-
},
|
|
407
|
+
}, qr = ["stroke", "fill"], Jr = {
|
|
402
408
|
key: 1,
|
|
403
409
|
viewBox: "0 0 40 40",
|
|
404
410
|
height: "1em",
|
|
405
411
|
width: "1em",
|
|
406
412
|
"aria-hidden": "true"
|
|
407
|
-
},
|
|
413
|
+
}, Yr = ["fill"], Xr = ["fill"], Zr = {
|
|
408
414
|
key: 2,
|
|
409
415
|
viewBox: "0 0 12 12",
|
|
410
416
|
height: "1em",
|
|
411
417
|
width: "1em",
|
|
412
418
|
"aria-hidden": "true"
|
|
413
|
-
},
|
|
419
|
+
}, Qr = {
|
|
414
420
|
style: {
|
|
415
421
|
display: "flex",
|
|
416
422
|
"flex-direction": "row",
|
|
@@ -419,7 +425,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
419
425
|
"padding-left": "6px"
|
|
420
426
|
},
|
|
421
427
|
"data-dom-to-png-ignore": ""
|
|
422
|
-
},
|
|
428
|
+
}, $r = ["innerHTML"], P = /* @__PURE__ */ We({
|
|
423
429
|
__name: "vue-ui-xy",
|
|
424
430
|
props: {
|
|
425
431
|
config: {
|
|
@@ -448,132 +454,132 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
448
454
|
"zoomReset",
|
|
449
455
|
"copyAlt"
|
|
450
456
|
],
|
|
451
|
-
setup(e, { expose: We, emit:
|
|
452
|
-
let
|
|
457
|
+
setup(e, { expose: We, emit: gt }) {
|
|
458
|
+
let P = e, ei = et(() => import("./DataTable-BvDJEAma.js")), ti = et(() => import("./Tooltip-B7lmdbac.js")), ni = et(() => import("./UserOptions-DMw8EZEo.js").then((e) => e.n)), ri = et(() => import("./BaseIcon-CEmt3Ifx.js").then((e) => e.n)), ii = et(() => import("./vue-ui-table-sparkline--f-jCYZG.js").then((e) => e.n)), ai = et(() => import("./PackageVersion-D3uPzhcq.js").then((e) => e.t)), oi = et(() => import("./PenAndPaper-DwpL8Z0l.js").then((e) => e.t)), si = et(() => import("./BaseDraggableDialog-BQcmQAK5.js").then((e) => e.n)), ci = gt, li = dt(), ui = tt(), { vue_ui_xy: di } = je(), { isThemeValid: fi, warnInvalidTheme: pi } = Le(), mi = k(null), hi = k(null), gi = k(null), _i = k(null), vi = k(null), yi = k(null), bi = k(null), xi = k(null), Si = k(null), Ci = k(null), wi = k(null), Ti = k(null), Ei = k(null), Di = k(null), Oi = k(0), F = k(null), ki = k(!0), Ai = k(600), I = k(1e3), ji = k("0 0 1000 600"), Mi = k({
|
|
453
459
|
x: 0,
|
|
454
460
|
y: 0
|
|
455
|
-
}),
|
|
461
|
+
}), Ni = k({
|
|
456
462
|
line: "line",
|
|
457
463
|
bar: "bar",
|
|
458
464
|
plot: "plot"
|
|
459
|
-
}),
|
|
465
|
+
}), Pi = k(!1), Fi = k(!1), Ii = k(!1), Li = k(null), L = k([]), R = k(o()), Ri = k(0), zi = k(0), Bi = k(0), Vi = k(!0), Hi = k(0), z = k(null), Ui = k(!1), Wi = k(!0), Gi = k(!0), B = k(null), Ki = k({}), qi = k(null), Ji = k(!1), Yi = k(null), Xi = k(!1), Zi = k(!1), V = k(null), Qi = k(null), $i = k({
|
|
460
466
|
x: 0,
|
|
461
467
|
y: 0
|
|
462
|
-
}),
|
|
463
|
-
elementRef:
|
|
468
|
+
}), ea = ct(null), ta = k(!1), na = k(0), ra = k(0), ia = Re({
|
|
469
|
+
elementRef: ea,
|
|
464
470
|
minimumWidth: 2,
|
|
465
471
|
minimumHeight: 2,
|
|
466
472
|
stableFramesRequired: 2,
|
|
467
473
|
once: !1,
|
|
468
474
|
onSizeAccepted: () => {
|
|
469
|
-
|
|
475
|
+
sa();
|
|
470
476
|
}
|
|
471
477
|
});
|
|
472
|
-
function ia() {
|
|
473
|
-
$i.value = pi.value?.parentNode ?? null;
|
|
474
|
-
}
|
|
475
478
|
function aa() {
|
|
479
|
+
ea.value = mi.value?.parentNode ?? null;
|
|
480
|
+
}
|
|
481
|
+
function oa() {
|
|
476
482
|
return new Promise((e) => {
|
|
477
483
|
requestAnimationFrame(() => {
|
|
478
484
|
requestAnimationFrame(e);
|
|
479
485
|
});
|
|
480
486
|
});
|
|
481
487
|
}
|
|
482
|
-
async function
|
|
483
|
-
let e = ++
|
|
484
|
-
|
|
488
|
+
async function sa() {
|
|
489
|
+
let e = ++ra.value;
|
|
490
|
+
ta.value = !1, await rt(), await oa(), await oa(), e === ra.value && (na.value += 1, ta.value = !0);
|
|
485
491
|
}
|
|
486
|
-
let
|
|
487
|
-
height:
|
|
488
|
-
width:
|
|
492
|
+
let ca = x(() => ({
|
|
493
|
+
height: Ai.value,
|
|
494
|
+
width: I.value
|
|
489
495
|
}));
|
|
490
|
-
function
|
|
496
|
+
function la(e) {
|
|
491
497
|
return Number.isFinite(e) ? Math.max(0, Math.floor(e)) : 0;
|
|
492
498
|
}
|
|
493
|
-
function
|
|
499
|
+
function ua(e, t, n = 0) {
|
|
494
500
|
return Number.isFinite(e) && Number.isFinite(t) && Math.abs(t) > 1e-9 ? e / t : n;
|
|
495
501
|
}
|
|
496
|
-
let
|
|
502
|
+
let da = k(!1), H = k({
|
|
497
503
|
xAxis: 18,
|
|
498
504
|
yAxis: 12,
|
|
499
505
|
dataLabels: 20,
|
|
500
506
|
plotLabels: 10
|
|
501
|
-
}),
|
|
507
|
+
}), fa = k({
|
|
502
508
|
plot: 3,
|
|
503
509
|
line: 3
|
|
504
510
|
});
|
|
505
511
|
ot(() => {
|
|
506
|
-
|
|
507
|
-
[null, void 0].includes(e.series) &&
|
|
512
|
+
Ji.value = !0, P.dataset.length && P.dataset.forEach((e, t) => {
|
|
513
|
+
[null, void 0].includes(e.series) && se({
|
|
508
514
|
componentName: "VueUiXy",
|
|
509
515
|
type: "datasetSerieAttribute",
|
|
510
516
|
property: "series (number[])",
|
|
511
517
|
index: t,
|
|
512
|
-
debug:
|
|
518
|
+
debug: va.value
|
|
513
519
|
});
|
|
514
|
-
}),
|
|
520
|
+
}), aa(), ia.start(), sa();
|
|
515
521
|
});
|
|
516
|
-
function
|
|
517
|
-
if (!Object.keys(
|
|
522
|
+
function pa() {
|
|
523
|
+
if (!Object.keys(P.config || {}).length) return di;
|
|
518
524
|
let e = Ie({
|
|
519
|
-
userConfig:
|
|
520
|
-
defaultConfig:
|
|
525
|
+
userConfig: P.config,
|
|
526
|
+
defaultConfig: di
|
|
521
527
|
});
|
|
522
|
-
|
|
523
|
-
defaultConfig:
|
|
528
|
+
P.config && _(P.config, "chart.highlightArea") && (Array.isArray(P.config.chart.highlightArea) ? e.chart.highlightArea = P.config.chart.highlightArea : e.chart.highlightArea = [P.config.chart.highlightArea]), P.config && _(P.config, "chart.annotations") && Array.isArray(P.config.chart.annotations) && P.config.chart.annotations.length ? e.chart.annotations = P.config.chart.annotations.map((e) => Ie({
|
|
529
|
+
defaultConfig: di.chart.annotations[0],
|
|
524
530
|
userConfig: e
|
|
525
|
-
})) : e.chart.annotations = [],
|
|
526
|
-
defaultConfig:
|
|
531
|
+
})) : e.chart.annotations = [], P.config && _(P.config, "chart.grid.position") && P.config.chart.grid.position === "start" && P.dataset.length && P.dataset.some((e) => e.type === "bar") && (e.chart.grid.position = "middle", _(P.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), P.config && _(P.config, "chart.highlightArea") && (Array.isArray(P.config.chart.highlightArea) ? e.chart.highlightArea = P.config.chart.highlightArea.map((e) => ma({
|
|
532
|
+
defaultConfig: di.chart.highlightArea,
|
|
527
533
|
userConfig: e
|
|
528
|
-
})) : e.chart.highlightArea =
|
|
529
|
-
defaultConfig:
|
|
530
|
-
userConfig:
|
|
534
|
+
})) : e.chart.highlightArea = ma({
|
|
535
|
+
defaultConfig: di.chart.highlightArea,
|
|
536
|
+
userConfig: P.config.chart.highlightArea
|
|
531
537
|
}));
|
|
532
538
|
let t = e.theme;
|
|
533
539
|
if (!t) return e;
|
|
534
|
-
if (!
|
|
540
|
+
if (!fi.value(e)) return pi(e), e;
|
|
535
541
|
let n = Ie({
|
|
536
|
-
userConfig: He[t] ||
|
|
542
|
+
userConfig: He[t] || P.config,
|
|
537
543
|
defaultConfig: e
|
|
538
544
|
}), r = Ie({
|
|
539
|
-
userConfig:
|
|
545
|
+
userConfig: P.config,
|
|
540
546
|
defaultConfig: n
|
|
541
547
|
});
|
|
542
548
|
return {
|
|
543
549
|
...r,
|
|
544
|
-
customPalette: r.customPalette.length ? r.customPalette : ee[t] ||
|
|
550
|
+
customPalette: r.customPalette.length ? r.customPalette : ee[t] || h
|
|
545
551
|
};
|
|
546
552
|
}
|
|
547
|
-
function
|
|
553
|
+
function ma({ defaultConfig: e, userConfig: t }) {
|
|
548
554
|
return Ie({
|
|
549
555
|
defaultConfig: e,
|
|
550
556
|
userConfig: t
|
|
551
557
|
});
|
|
552
558
|
}
|
|
553
|
-
let
|
|
559
|
+
let ha = x({
|
|
554
560
|
get() {
|
|
555
|
-
return !!
|
|
561
|
+
return !!P.dataset && P.dataset.length;
|
|
556
562
|
},
|
|
557
563
|
set(e) {
|
|
558
564
|
return e;
|
|
559
565
|
}
|
|
560
|
-
}),
|
|
566
|
+
}), U = k(pa()), ga = x(() => U.value.chart.userOptions.useCursorPointer), W = k({
|
|
561
567
|
dataLabels: { show: !0 },
|
|
562
568
|
showTooltip: !0,
|
|
563
569
|
showTable: !1,
|
|
564
570
|
isStacked: !1,
|
|
565
571
|
useIndividualScale: !1
|
|
566
572
|
});
|
|
567
|
-
function
|
|
568
|
-
|
|
573
|
+
function _a() {
|
|
574
|
+
da.value ? (W.value.showTooltip = U.value.chart.tooltip.show === !0, W.value.isStacked = U.value.chart.grid.labels.yAxis.stacked, W.value.useIndividualScale ?? (W.value.useIndividualScale = U.value.chart.grid.labels.yAxis.useIndividualScale)) : (W.value = {
|
|
569
575
|
dataLabels: { show: !0 },
|
|
570
|
-
showTooltip:
|
|
571
|
-
showTable:
|
|
572
|
-
isStacked:
|
|
573
|
-
useIndividualScale:
|
|
574
|
-
},
|
|
576
|
+
showTooltip: U.value.chart.tooltip.show === !0,
|
|
577
|
+
showTable: U.value.showTable === !0,
|
|
578
|
+
isStacked: U.value.chart.grid.labels.yAxis.stacked,
|
|
579
|
+
useIndividualScale: U.value.chart.grid.labels.yAxis.useIndividualScale
|
|
580
|
+
}, da.value = !0);
|
|
575
581
|
}
|
|
576
|
-
let
|
|
582
|
+
let va = x(() => !!U.value.debug), ya = x(() => De({
|
|
577
583
|
defaultConfig: {
|
|
578
584
|
useCssAnimation: !1,
|
|
579
585
|
showTable: !1,
|
|
@@ -628,8 +634,8 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
628
634
|
labels: { show: !1 }
|
|
629
635
|
}
|
|
630
636
|
},
|
|
631
|
-
userConfig:
|
|
632
|
-
})),
|
|
637
|
+
userConfig: U.value.skeletonConfig ?? {}
|
|
638
|
+
})), ba = x(() => P.config?.skeletonDataset ?? [{
|
|
633
639
|
name: "",
|
|
634
640
|
series: [
|
|
635
641
|
0,
|
|
@@ -666,19 +672,19 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
666
672
|
],
|
|
667
673
|
type: "bar",
|
|
668
674
|
color: "#CACACA"
|
|
669
|
-
}]), { loading:
|
|
670
|
-
...
|
|
671
|
-
FINAL_CONFIG:
|
|
672
|
-
prepareConfig:
|
|
675
|
+
}]), { loading: G, FINAL_DATASET: xa, manualLoading: Sa } = Ne({
|
|
676
|
+
...ut(P),
|
|
677
|
+
FINAL_CONFIG: U,
|
|
678
|
+
prepareConfig: pa,
|
|
673
679
|
callback: () => {
|
|
674
680
|
Promise.resolve().then(async () => {
|
|
675
|
-
await jo(),
|
|
681
|
+
await jo(), W.value.showTable = U.value.showTable;
|
|
676
682
|
});
|
|
677
683
|
},
|
|
678
|
-
skeletonDataset:
|
|
684
|
+
skeletonDataset: ba.value,
|
|
679
685
|
skeletonConfig: De({
|
|
680
|
-
defaultConfig:
|
|
681
|
-
userConfig:
|
|
686
|
+
defaultConfig: U.value,
|
|
687
|
+
userConfig: ya.value
|
|
682
688
|
})
|
|
683
689
|
});
|
|
684
690
|
function Ca(e) {
|
|
@@ -690,10 +696,10 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
690
696
|
return i || (i = /* @__PURE__ */ new Map(), t.set(n, i)), i.set(a, o), o;
|
|
691
697
|
};
|
|
692
698
|
}
|
|
693
|
-
let wa = Ca((e, t) =>
|
|
699
|
+
let wa = Ca((e, t) => ce({
|
|
694
700
|
data: e,
|
|
695
701
|
threshold: t
|
|
696
|
-
})), Ta = (e) => wa(e,
|
|
702
|
+
})), Ta = (e) => wa(e, U.value.downsample.threshold), Ea = x({
|
|
697
703
|
get: () => Math.max(...xa.value.map((e) => Ta(e.series).length)),
|
|
698
704
|
set: (e) => e
|
|
699
705
|
}), K = k({
|
|
@@ -702,7 +708,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
702
708
|
}), Da = k({
|
|
703
709
|
start: 0,
|
|
704
710
|
end: Ea.value
|
|
705
|
-
}), Oa = x(() =>
|
|
711
|
+
}), Oa = x(() => U.value.chart.zoom.preview.enable && (Da.value.start !== K.value.start || Da.value.end !== K.value.end));
|
|
706
712
|
function ka(e, t) {
|
|
707
713
|
Da.value[e] = t;
|
|
708
714
|
}
|
|
@@ -711,7 +717,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
711
717
|
(!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), K.value = {
|
|
712
718
|
start: t,
|
|
713
719
|
end: n
|
|
714
|
-
}, Da.value.start = t, Da.value.end = n,
|
|
720
|
+
}, Da.value.start = t, Da.value.end = n, gi.value && (gi.value.setStartValue(t), gi.value.setEndValue(n));
|
|
715
721
|
}
|
|
716
722
|
let ja = x(() => {
|
|
717
723
|
let { left: e, top: t, width: n, height: r } = q.value, i = K.value.start, a = K.value.end - i, o = n / a, s = Da.value.start - i, c = Da.value.end - i, l = Math.max(0, Math.min(a, s)), u = Math.max(0, Math.min(a, c));
|
|
@@ -720,10 +726,10 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
720
726
|
y: t,
|
|
721
727
|
width: (u - l) * o,
|
|
722
728
|
height: r,
|
|
723
|
-
fill:
|
|
724
|
-
stroke:
|
|
725
|
-
"stroke-width":
|
|
726
|
-
"stroke-dasharray":
|
|
729
|
+
fill: U.value.chart.zoom.preview.fill,
|
|
730
|
+
stroke: U.value.chart.zoom.preview.stroke,
|
|
731
|
+
"stroke-width": U.value.chart.zoom.preview.strokeWidth,
|
|
732
|
+
"stroke-dasharray": U.value.chart.zoom.preview.strokeDasharray,
|
|
727
733
|
"stroke-linecap": "round",
|
|
728
734
|
"stroke-linejoin": "round",
|
|
729
735
|
style: {
|
|
@@ -733,30 +739,30 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
733
739
|
}
|
|
734
740
|
};
|
|
735
741
|
});
|
|
736
|
-
|
|
737
|
-
if ([null, void 0].includes(
|
|
738
|
-
|
|
742
|
+
pt(() => P.selectedXIndex, (e) => {
|
|
743
|
+
if ([null, void 0].includes(P.selectedXIndex)) {
|
|
744
|
+
V.value = null;
|
|
739
745
|
return;
|
|
740
746
|
}
|
|
741
747
|
let t = e - K.value.start;
|
|
742
|
-
t < 0 || e >= K.value.end ?
|
|
748
|
+
t < 0 || e >= K.value.end ? V.value = null : V.value = t ?? null;
|
|
743
749
|
}, { immediate: !0 });
|
|
744
750
|
let { isPrinting: Ma, isImaging: Na, generatePdf: Pa, generateImage: Fa } = Me({
|
|
745
|
-
elementId: `vue-ui-xy_${
|
|
746
|
-
fileName:
|
|
747
|
-
options:
|
|
748
|
-
}), Ia = k(!1), La = x(() => we(
|
|
749
|
-
let e =
|
|
751
|
+
elementId: `vue-ui-xy_${R.value}`,
|
|
752
|
+
fileName: U.value.chart.title.text || "vue-ui-xy",
|
|
753
|
+
options: U.value.chart.userOptions.print
|
|
754
|
+
}), Ia = k(!1), La = x(() => we(U.value.customPalette)), Ra = x(() => {
|
|
755
|
+
let e = U.value.chart.grid.labels.yAxis.scaleMin;
|
|
750
756
|
if (e == null) return null;
|
|
751
757
|
let t = Number(e);
|
|
752
758
|
return Number.isFinite(t) ? t : null;
|
|
753
759
|
}), za = x(() => Ra.value === null ? zo.value : q.value.bottom), Ba = x(() => {
|
|
754
|
-
let e =
|
|
760
|
+
let e = U.value.chart.grid.labels.yAxis.scaleMax;
|
|
755
761
|
if (e == null) return null;
|
|
756
762
|
let t = Number(e);
|
|
757
763
|
return Number.isFinite(t) ? t : null;
|
|
758
764
|
}), Va = x(() => Ra.value !== null || Ba.value !== null), Ha = x(() => {
|
|
759
|
-
let e = Ja.value.filter((e) => !
|
|
765
|
+
let e = Ja.value.filter((e) => !L.value.includes(e.id)).flatMap((e) => Array.isArray(e.series) ? e.series : []).filter(Number.isFinite);
|
|
760
766
|
return e.length ? {
|
|
761
767
|
min: Math.min(...e),
|
|
762
768
|
max: Math.max(...e)
|
|
@@ -788,13 +794,13 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
788
794
|
}
|
|
789
795
|
let n = Ra.value === null ? e > 0 ? 0 : e : Ra.value, r = Ba.value === null ? t : Ba.value;
|
|
790
796
|
return Ua(e < n ? e : n, t > r ? t : r).max;
|
|
791
|
-
}), Ka = x(() =>
|
|
797
|
+
}), Ka = x(() => U.value.chart.grid.labels.yAxis.useNiceScale ? de(Wa.value, Ga.value < 0 ? 0 : Ga.value, U.value.chart.grid.labels.yAxis.commonScaleSteps) : ue(Wa.value, Ga.value < 0 ? 0 : Ga.value, U.value.chart.grid.labels.yAxis.commonScaleSteps)), qa = x(() => [null, void 0].includes(U.value.chart.grid.labels.yAxis.scaleMin) ? Ka.value.min >= 0 ? 0 : Math.abs(Ka.value.min) : -Ka.value.min), Ja = x(() => ki.value ? xa.value.map((e, t) => {
|
|
792
798
|
let n = Ta(e.series), r = `uniqueId_${t}`;
|
|
793
799
|
return {
|
|
794
800
|
...e,
|
|
795
801
|
slotAbsoluteIndex: t,
|
|
796
802
|
series: n.map((e) => _e(e) ? e : null).slice(K.value.start, K.value.end),
|
|
797
|
-
color: Te(e.color ? e.color : La.value[t] ? La.value[t] :
|
|
803
|
+
color: Te(e.color ? e.color : La.value[t] ? La.value[t] : h[t]),
|
|
798
804
|
id: r,
|
|
799
805
|
scaleLabel: e.scaleLabel || r
|
|
800
806
|
};
|
|
@@ -804,24 +810,24 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
804
810
|
series: e.series.map((e) => e + qa.value),
|
|
805
811
|
absoluteValues: e.series,
|
|
806
812
|
segregate: () => rs(e),
|
|
807
|
-
isSegregated:
|
|
813
|
+
isSegregated: L.value.includes(e.id)
|
|
808
814
|
}))), Xa = x(() => Ja.value.map((e, t) => ({
|
|
809
815
|
...e,
|
|
810
816
|
series: e.series.map((e) => e + qa.value),
|
|
811
817
|
absoluteValues: e.series
|
|
812
|
-
})).filter((e) => !
|
|
818
|
+
})).filter((e) => !L.value.includes(e.id))), Za = x(() => L.value.length === Ya.value.length);
|
|
813
819
|
function Qa() {
|
|
814
820
|
let e = 0;
|
|
815
|
-
|
|
821
|
+
wi.value && (e = Array.from(wi.value.querySelectorAll("text")).reduce((e, t) => {
|
|
816
822
|
let n = t.getComputedTextLength();
|
|
817
|
-
return (n > e ? n : e) +
|
|
823
|
+
return (n > e ? n : e) + U.value.chart.grid.labels.yAxis.scaleValueOffsetX;
|
|
818
824
|
}, 0));
|
|
819
|
-
let t =
|
|
825
|
+
let t = Si.value ? Si.value.getBoundingClientRect().width + U.value.chart.grid.labels.axis.yLabelOffsetX + H.value.yAxis : 0, n = U.value.chart.grid.labels.yAxis.crosshairSize;
|
|
820
826
|
return e + t + n;
|
|
821
827
|
}
|
|
822
828
|
let $a = k(0), eo = k(0);
|
|
823
829
|
function to() {
|
|
824
|
-
let e =
|
|
830
|
+
let e = Ci.value;
|
|
825
831
|
if (!e) {
|
|
826
832
|
$a.value = 0, eo.value = 0;
|
|
827
833
|
return;
|
|
@@ -835,38 +841,38 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
835
841
|
}
|
|
836
842
|
let no = x(() => {
|
|
837
843
|
let e = 0;
|
|
838
|
-
if (
|
|
839
|
-
e =
|
|
844
|
+
if (xi.value) try {
|
|
845
|
+
e = xi.value.getBBox().height || 0;
|
|
840
846
|
} catch {
|
|
841
847
|
e = 0;
|
|
842
848
|
}
|
|
843
|
-
return e + $a.value +
|
|
849
|
+
return e + $a.value + H.value.xAxis;
|
|
844
850
|
}), ro = x(() => xa.value.some((e) => e.useProgression)), q = x(() => {
|
|
845
|
-
|
|
851
|
+
na.value;
|
|
846
852
|
let e = 0;
|
|
847
|
-
|
|
848
|
-
let t =
|
|
849
|
-
|
|
850
|
-
let r =
|
|
853
|
+
U.value.chart.grid.labels.show && (e = W.value.useIndividualScale && !W.value.isStacked ? (xa.value.length - L.value.length) * (U.value.chart.grid.labels.yAxis.labelWidth + 36) : W.value.useIndividualScale && W.value.isStacked ? U.value.chart.grid.labels.yAxis.labelWidth + 36 : Qa());
|
|
854
|
+
let t = U.value.chart.labels.fontSize * 1.1, n = ro.value ? 24 : 6;
|
|
855
|
+
Ci.value && eo.value < 0 && (e += Math.abs(eo.value));
|
|
856
|
+
let r = I.value - e - U.value.chart.grid.labels.yAxis.crosshairSize - n - U.value.chart.padding?.left - U.value.chart.padding?.right, i = U.value.chart.grid.position === "middle" ? 0 : r / Y.value / 2;
|
|
851
857
|
return {
|
|
852
|
-
top:
|
|
853
|
-
right:
|
|
854
|
-
bottom:
|
|
855
|
-
left: e +
|
|
856
|
-
height:
|
|
858
|
+
top: U.value.chart.padding?.top + t,
|
|
859
|
+
right: I.value - n - U.value.chart.padding?.right,
|
|
860
|
+
bottom: Ai.value - no.value - U.value.chart.padding?.bottom - U.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
861
|
+
left: e + U.value.chart.grid.labels.yAxis.crosshairSize - i + U.value.chart.padding?.left,
|
|
862
|
+
height: Ai.value - no.value - U.value.chart.padding?.top - U.value.chart.padding?.bottom - t - U.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
857
863
|
width: r,
|
|
858
864
|
scaleLabelX: e,
|
|
859
865
|
individualOffsetX: 36
|
|
860
866
|
};
|
|
861
867
|
}), io = x(() => {
|
|
862
|
-
let e = +(
|
|
868
|
+
let e = +(U.value.chart.grid.position === "middle"), t = Y.value + e, n = v(q.value?.top), r = v(q.value?.bottom);
|
|
863
869
|
return Array.from({ length: t }).map((e, t) => {
|
|
864
870
|
let i = q.value.width / Y.value * t + q.value?.left + Z.value;
|
|
865
871
|
return `M${i},${n} L${i},${r}`;
|
|
866
872
|
}).join(" ");
|
|
867
873
|
}), ao = x(() => {
|
|
868
|
-
if (!
|
|
869
|
-
let e = q.value.width / Y.value, t =
|
|
874
|
+
if (!U.value.chart.grid.labels.xAxis.showCrosshairs) return "";
|
|
875
|
+
let e = q.value.width / Y.value, t = U.value.chart.grid.labels.xAxis.crosshairSize, n = U.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
|
|
870
876
|
return vo.value.map((r, i) => {
|
|
871
877
|
if (!r || !r.text) return null;
|
|
872
878
|
let a = q.value?.left + e * i + e / 2;
|
|
@@ -874,36 +880,36 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
874
880
|
}).filter(Boolean).join(" ");
|
|
875
881
|
});
|
|
876
882
|
function oo() {
|
|
877
|
-
return !!
|
|
883
|
+
return !!ui?.vnode.props?.onSelectTimeLabel;
|
|
878
884
|
}
|
|
879
885
|
function so(e, t, n) {
|
|
880
|
-
return
|
|
886
|
+
return qi.value ||= document.createElement("canvas").getContext("2d"), qi.value.font = `${n || "normal"} ${e}px ${t || "sans-serif"}`, qi.value;
|
|
881
887
|
}
|
|
882
888
|
function co() {
|
|
883
|
-
let e =
|
|
889
|
+
let e = mi.value.querySelectorAll(".vue-ui-xy-tag");
|
|
884
890
|
e.length && Array.from(e).forEach((e) => e.style.opacity = "0");
|
|
885
891
|
}
|
|
886
892
|
function lo(e, t, n, r, i) {
|
|
887
|
-
n && (
|
|
893
|
+
n && (Ki.value[`${e}_${t}_${r}_${i}`] = n);
|
|
888
894
|
}
|
|
889
895
|
let uo = k(!1);
|
|
890
896
|
async function fo(e = !1) {
|
|
891
|
-
await rt(), uo.value = e,
|
|
897
|
+
await rt(), uo.value = e, Ui.value && (Gi.value = e);
|
|
892
898
|
}
|
|
893
899
|
function po() {
|
|
894
|
-
|
|
900
|
+
Pi.value = !Pi.value;
|
|
895
901
|
}
|
|
896
902
|
let J = k([]), mo = k([]), ho = 0;
|
|
897
|
-
|
|
903
|
+
mt(() => {
|
|
898
904
|
let e = ++ho;
|
|
899
905
|
(async () => {
|
|
900
|
-
let t = Math.max(...xa.value.map((e) =>
|
|
906
|
+
let t = Math.max(...xa.value.map((e) => ce({
|
|
901
907
|
data: e.series,
|
|
902
|
-
threshold:
|
|
908
|
+
threshold: U.value.downsample.threshold
|
|
903
909
|
}).length)), n = await Ae({
|
|
904
|
-
values:
|
|
910
|
+
values: U.value.chart.grid.labels.xAxisLabels.values,
|
|
905
911
|
maxDatapoints: t,
|
|
906
|
-
formatter:
|
|
912
|
+
formatter: U.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
907
913
|
start: K.value.start,
|
|
908
914
|
end: K.value.end
|
|
909
915
|
});
|
|
@@ -911,16 +917,16 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
911
917
|
})();
|
|
912
918
|
});
|
|
913
919
|
let go = 0;
|
|
914
|
-
|
|
920
|
+
mt(() => {
|
|
915
921
|
let e = ++go;
|
|
916
922
|
(async () => {
|
|
917
|
-
let t = Math.max(...xa.value.map((e) =>
|
|
923
|
+
let t = Math.max(...xa.value.map((e) => ce({
|
|
918
924
|
data: e.series,
|
|
919
|
-
threshold:
|
|
925
|
+
threshold: U.value.downsample.threshold
|
|
920
926
|
}).length)), n = await Ae({
|
|
921
|
-
values:
|
|
927
|
+
values: U.value.chart.grid.labels.xAxisLabels.values,
|
|
922
928
|
maxDatapoints: t,
|
|
923
|
-
formatter:
|
|
929
|
+
formatter: U.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
924
930
|
start: 0,
|
|
925
931
|
end: Ea.value
|
|
926
932
|
});
|
|
@@ -928,31 +934,31 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
928
934
|
})();
|
|
929
935
|
});
|
|
930
936
|
let _o = x(() => {
|
|
931
|
-
let e =
|
|
937
|
+
let e = U.value.chart.grid.labels.xAxisLabels.modulo;
|
|
932
938
|
return J.value.length ? Math.min(e, [...new Set(J.value.map((e) => e.text))].length) : e;
|
|
933
939
|
}), vo = x(() => {
|
|
934
|
-
let e =
|
|
940
|
+
let e = U.value.chart.grid.labels.xAxisLabels, t = J.value || [], n = mo.value || [], r = K.value.start ?? 0, i = V.value, a = Y.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
|
|
935
941
|
return Se(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, _o.value || 1), o, s, r, i, a);
|
|
936
942
|
}), yo = x(() => (vo.value || []).map((e) => e?.text ?? "").join("|"));
|
|
937
943
|
ot(() => {
|
|
938
944
|
requestAnimationFrame(() => {
|
|
939
945
|
to();
|
|
940
|
-
}),
|
|
946
|
+
}), pt([
|
|
941
947
|
() => yo.value,
|
|
942
|
-
() =>
|
|
943
|
-
() =>
|
|
944
|
-
() =>
|
|
945
|
-
() =>
|
|
948
|
+
() => U.value.chart.grid.labels.xAxisLabels.rotation,
|
|
949
|
+
() => H.value.xAxis,
|
|
950
|
+
() => I.value,
|
|
951
|
+
() => Ai.value
|
|
946
952
|
], async () => {
|
|
947
953
|
await rt(), requestAnimationFrame(() => {
|
|
948
954
|
to();
|
|
949
955
|
});
|
|
950
956
|
}, { flush: "post" });
|
|
951
957
|
}), at(() => {
|
|
952
|
-
$a.value = 0, eo.value = 0,
|
|
958
|
+
$a.value = 0, eo.value = 0, ia.stop();
|
|
953
959
|
});
|
|
954
960
|
function bo(e, t) {
|
|
955
|
-
|
|
961
|
+
ci("selectTimeLabel", {
|
|
956
962
|
datapoint: Xa.value.map((e) => ({
|
|
957
963
|
shape: e.shape ?? e.type === "bar" ? "square" : "circle",
|
|
958
964
|
name: e.name,
|
|
@@ -960,34 +966,34 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
960
966
|
type: e.type,
|
|
961
967
|
value: e.absoluteValues.find((e, n) => n === t),
|
|
962
968
|
comments: e.comments || [],
|
|
963
|
-
prefix: e.prefix ||
|
|
964
|
-
suffix: e.suffix ||
|
|
969
|
+
prefix: e.prefix || U.value.chart.labels.prefix,
|
|
970
|
+
suffix: e.suffix || U.value.chart.labels.suffix
|
|
965
971
|
})),
|
|
966
972
|
absoluteIndex: e.absoluteIndex,
|
|
967
973
|
label: e.text
|
|
968
974
|
});
|
|
969
975
|
}
|
|
970
976
|
let Y = x(() => {
|
|
971
|
-
let e =
|
|
977
|
+
let e = la((K.value.end ?? 0) - (K.value.start ?? 0));
|
|
972
978
|
return Math.max(1, e);
|
|
973
979
|
});
|
|
974
980
|
function xo(e) {
|
|
975
|
-
|
|
981
|
+
z.value = e;
|
|
976
982
|
}
|
|
977
983
|
function So() {
|
|
978
|
-
|
|
984
|
+
W.value.isStacked = !W.value.isStacked, W.value.isStacked ? W.value.useIndividualScale = !0 : W.value.useIndividualScale = U.value.chart.grid.labels.yAxis.useIndividualScale;
|
|
979
985
|
}
|
|
980
986
|
function Co(e) {
|
|
981
|
-
|
|
987
|
+
va.value && e.autoScaling && (U.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${e.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), U.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${e.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
|
|
982
988
|
}
|
|
983
989
|
function wo(e, t) {
|
|
984
|
-
let n =
|
|
990
|
+
let n = la(e), r = Array(n).fill(0);
|
|
985
991
|
for (let e = 0; e < t.length && e < n; e += 1) r[e] = t[e] ?? 0;
|
|
986
992
|
return r;
|
|
987
993
|
}
|
|
988
994
|
function To(e) {
|
|
989
995
|
let t = Math.max(...xa.value.map((e) => Ta(e.series).length));
|
|
990
|
-
return e > t ? t : e < 0 ||
|
|
996
|
+
return e > t ? t : e < 0 || U.value.chart.zoom.startIndex !== null && e < U.value.chart.zoom.startIndex ? U.value.chart.zoom.startIndex === null ? 1 : U.value.chart.zoom.startIndex + 1 : e;
|
|
991
997
|
}
|
|
992
998
|
let Eo = k(!1), Do = k(!1), Oo = k(0), ko = k(0);
|
|
993
999
|
function Ao(e, t) {
|
|
@@ -998,7 +1004,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
998
1004
|
if (!Eo.value) {
|
|
999
1005
|
Eo.value = !0;
|
|
1000
1006
|
try {
|
|
1001
|
-
let { startIndex: e, endIndex: t } =
|
|
1007
|
+
let { startIndex: e, endIndex: t } = U.value.chart.zoom, n = Math.max(...xa.value.map((e) => Ta(e.series).length));
|
|
1002
1008
|
Oo.value = 0, ko.value = n;
|
|
1003
1009
|
let r = e ?? 0, i = t == null ? n : Math.min(To(t + 1), n);
|
|
1004
1010
|
Mo.value = !0, K.value.start = r, K.value.end = i, Da.value.start = r, Da.value.end = i, Aa(), Do.value = !0;
|
|
@@ -1013,7 +1019,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1013
1019
|
function No(e) {
|
|
1014
1020
|
if (Eo.value || Mo.value) return;
|
|
1015
1021
|
let t = Number(e);
|
|
1016
|
-
|
|
1022
|
+
ci("zoomStart", {
|
|
1017
1023
|
index: t,
|
|
1018
1024
|
isZoom: Ao(t, Oo.value)
|
|
1019
1025
|
}), Number.isFinite(t) && t !== K.value.start && (K.value.start = t, Da.value.start = t, Aa());
|
|
@@ -1021,13 +1027,13 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1021
1027
|
function Po(e) {
|
|
1022
1028
|
if (Eo.value || Mo.value) return;
|
|
1023
1029
|
let t = To(e);
|
|
1024
|
-
|
|
1030
|
+
ci("zoomEnd", {
|
|
1025
1031
|
index: t,
|
|
1026
1032
|
isZoom: Ao(t, ko.value)
|
|
1027
1033
|
}), t !== K.value.end && (K.value.end = t, Da.value.end = t, Aa());
|
|
1028
1034
|
}
|
|
1029
1035
|
async function Fo() {
|
|
1030
|
-
await jo(),
|
|
1036
|
+
await jo(), ci("zoomReset");
|
|
1031
1037
|
}
|
|
1032
1038
|
function Io(e) {
|
|
1033
1039
|
return ![
|
|
@@ -1044,7 +1050,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1044
1050
|
}
|
|
1045
1051
|
let zo = x(() => isNaN(Ro(qa.value)) ? q.value?.bottom : q.value?.bottom - q.value.height * Ro(qa.value));
|
|
1046
1052
|
function Bo(e) {
|
|
1047
|
-
let t = ![null, void 0].includes(
|
|
1053
|
+
let t = ![null, void 0].includes(U.value.chart.grid.labels.yAxis.scaleMin) && U.value.chart.grid.labels.yAxis.scaleMin > 0 && Wa.value >= 0 ? q.value?.bottom : zo.value;
|
|
1048
1054
|
return e.value >= 0 ? y(t - e.y <= 0 ? 1e-5 : t - e.y) : y(e.y - zo.value <= 0 ? 1e-5 : e.y - zo.value);
|
|
1049
1055
|
}
|
|
1050
1056
|
function Vo(e) {
|
|
@@ -1053,16 +1059,16 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1053
1059
|
let X = x(() => {
|
|
1054
1060
|
let e = Math.max(1, Y.value), t = Math.max(1, q.value.width);
|
|
1055
1061
|
return {
|
|
1056
|
-
bar:
|
|
1057
|
-
plot:
|
|
1058
|
-
line:
|
|
1062
|
+
bar: ua(t, e * Math.max(1, Ja.value.filter((e) => e.type === "bar" && !L.value.includes(e.id)).length), 1),
|
|
1063
|
+
plot: ua(t, e, 1),
|
|
1064
|
+
line: ua(t, e, 1)
|
|
1059
1065
|
};
|
|
1060
1066
|
});
|
|
1061
1067
|
function Ho() {
|
|
1062
|
-
return
|
|
1068
|
+
return W.value.useIndividualScale && W.value.isStacked ? X.value.line - q.value.width / Y.value * .1 : X.value.bar;
|
|
1063
1069
|
}
|
|
1064
1070
|
function Uo(e) {
|
|
1065
|
-
return
|
|
1071
|
+
return W.value.useIndividualScale && W.value.isStacked ? e.x + q.value.width / Y.value * .05 : e.x + X.value.bar / 2;
|
|
1066
1072
|
}
|
|
1067
1073
|
function Wo(e) {
|
|
1068
1074
|
return e.value >= 0 ? e.y : [
|
|
@@ -1084,7 +1090,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1084
1090
|
}
|
|
1085
1091
|
let Ko = k(null);
|
|
1086
1092
|
function qo(e) {
|
|
1087
|
-
let t =
|
|
1093
|
+
let t = B.value;
|
|
1088
1094
|
if (!t) return null;
|
|
1089
1095
|
if (t.createSVGPoint && t.getScreenCTM) {
|
|
1090
1096
|
let n = t.createSVGPoint();
|
|
@@ -1113,10 +1119,10 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1113
1119
|
}
|
|
1114
1120
|
let Jo = 0;
|
|
1115
1121
|
function Yo(e) {
|
|
1116
|
-
|
|
1122
|
+
Qi.value = null, !Pi.value && (Jo && cancelAnimationFrame(Jo), Jo = requestAnimationFrame(() => {
|
|
1117
1123
|
Jo = 0;
|
|
1118
1124
|
let t = qo(e);
|
|
1119
|
-
if (!t || !
|
|
1125
|
+
if (!t || !B.value) {
|
|
1120
1126
|
Xo();
|
|
1121
1127
|
return;
|
|
1122
1128
|
}
|
|
@@ -1134,7 +1140,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1134
1140
|
}
|
|
1135
1141
|
function Zo(e) {
|
|
1136
1142
|
let t = qo(e);
|
|
1137
|
-
if (t &&
|
|
1143
|
+
if (t && B.value) {
|
|
1138
1144
|
let { left: e, right: n, top: r, bottom: i, width: a } = q.value;
|
|
1139
1145
|
if (t.x >= e && t.x <= n && t.y >= r && t.y <= i) {
|
|
1140
1146
|
let n = a / Math.max(1, Y.value), r = Math.floor((t.x - e) / n);
|
|
@@ -1157,11 +1163,11 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1157
1163
|
color: t.color,
|
|
1158
1164
|
type: t.type
|
|
1159
1165
|
}));
|
|
1160
|
-
|
|
1166
|
+
ci("selectX", {
|
|
1161
1167
|
dataset: t,
|
|
1162
1168
|
index: e,
|
|
1163
|
-
indexLabel:
|
|
1164
|
-
}),
|
|
1169
|
+
indexLabel: U.value.chart.grid.labels.xAxisLabels.values[e]
|
|
1170
|
+
}), U.value.events.datapointClick && U.value.events.datapointClick({
|
|
1165
1171
|
datapoint: t,
|
|
1166
1172
|
seriesIndex: e + K.value.start
|
|
1167
1173
|
});
|
|
@@ -1175,9 +1181,9 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1175
1181
|
}));
|
|
1176
1182
|
}
|
|
1177
1183
|
async function es({ scale: e = 2 } = {}) {
|
|
1178
|
-
if (!
|
|
1179
|
-
let { width: t, height: n } =
|
|
1180
|
-
domElement:
|
|
1184
|
+
if (!mi.value) return;
|
|
1185
|
+
let { width: t, height: n } = mi.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Be({
|
|
1186
|
+
domElement: mi.value,
|
|
1181
1187
|
base64: !0,
|
|
1182
1188
|
img: !0,
|
|
1183
1189
|
scale: e
|
|
@@ -1185,46 +1191,46 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1185
1191
|
return {
|
|
1186
1192
|
imageUri: i,
|
|
1187
1193
|
base64: a,
|
|
1188
|
-
title:
|
|
1194
|
+
title: U.value.chart.title.text,
|
|
1189
1195
|
width: t,
|
|
1190
1196
|
height: n,
|
|
1191
1197
|
aspectRatio: r
|
|
1192
1198
|
};
|
|
1193
1199
|
}
|
|
1194
1200
|
function ts() {
|
|
1195
|
-
|
|
1196
|
-
|
|
1201
|
+
L.value.length ? L.value = [] : Ya.value.forEach((e) => {
|
|
1202
|
+
L.value.push(e.id);
|
|
1197
1203
|
});
|
|
1198
1204
|
}
|
|
1199
1205
|
function ns(e, t) {
|
|
1200
1206
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), rs(t));
|
|
1201
1207
|
}
|
|
1202
1208
|
function rs(e) {
|
|
1203
|
-
if (
|
|
1209
|
+
if (L.value.includes(e.id)) L.value = L.value.filter((t) => t !== e.id);
|
|
1204
1210
|
else {
|
|
1205
|
-
if (
|
|
1206
|
-
|
|
1211
|
+
if (L.value.length + 1 === Ja.value.length) return;
|
|
1212
|
+
L.value.push(e.id);
|
|
1207
1213
|
}
|
|
1208
|
-
|
|
1214
|
+
ci("selectLegend", Xa.value.map((e) => ({
|
|
1209
1215
|
name: e.name,
|
|
1210
1216
|
values: e.absoluteValues,
|
|
1211
1217
|
color: e.color,
|
|
1212
1218
|
type: e.type
|
|
1213
|
-
}))),
|
|
1219
|
+
}))), Hi.value += 1;
|
|
1214
1220
|
}
|
|
1215
1221
|
function is(e) {
|
|
1216
|
-
return Ya.value.length ? Ya.value.find((t) => t.name === e) || (
|
|
1222
|
+
return Ya.value.length ? Ya.value.find((t) => t.name === e) || (U.value.debug && console.warn(`VueUiXy - Series name not found "${e}"`), null) : (U.value.debug && console.warn("VueUiXy - There are no series to show."), null);
|
|
1217
1223
|
}
|
|
1218
1224
|
function as(e) {
|
|
1219
1225
|
let t = is(e);
|
|
1220
|
-
t !== null &&
|
|
1226
|
+
t !== null && L.value.includes(t.id) && rs({ id: t.id });
|
|
1221
1227
|
}
|
|
1222
1228
|
function os(e) {
|
|
1223
1229
|
let t = is(e);
|
|
1224
|
-
t !== null && (
|
|
1230
|
+
t !== null && (L.value.includes(t.id) || rs({ id: t.id }));
|
|
1225
1231
|
}
|
|
1226
|
-
let ss = x(() => `${
|
|
1227
|
-
if (Array.isArray(
|
|
1232
|
+
let ss = x(() => `${U.value.chart.title.text || "Chart visualization"}. ${U.value.chart.title.subtitle.text || ""}`), cs = x(() => ({ linePlot: Y.value > U.value.line.dot.hideAboveMaxSerieLength })), ls = x(() => U.value.chart.userOptions.show && (!U.value.chart.title.show || !U.value.chart.title.text)), us = x(() => {
|
|
1233
|
+
if (Array.isArray(U.value.chart.highlightArea)) return U.value.chart.highlightArea.map((e) => {
|
|
1228
1234
|
let t = Math.min(e.to, Ea.value - 1);
|
|
1229
1235
|
return {
|
|
1230
1236
|
...e,
|
|
@@ -1232,18 +1238,18 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1232
1238
|
};
|
|
1233
1239
|
});
|
|
1234
1240
|
let e = {
|
|
1235
|
-
...
|
|
1236
|
-
to: Math.min(
|
|
1241
|
+
...U.value.chart.highlightArea,
|
|
1242
|
+
to: Math.min(U.value.chart.highlightArea.to, Ea.value - 1)
|
|
1237
1243
|
};
|
|
1238
1244
|
return [{
|
|
1239
1245
|
...e,
|
|
1240
1246
|
span: e.from === e.to ? 1 : e.to < e.from ? 0 : e.to - e.from + 1
|
|
1241
1247
|
}];
|
|
1242
|
-
}), ds = x(() =>
|
|
1248
|
+
}), ds = x(() => ki.value ? xa.value.map((e, t) => ({
|
|
1243
1249
|
...e,
|
|
1244
1250
|
series: Ta(e.series),
|
|
1245
1251
|
id: `uniqueId_${t}`,
|
|
1246
|
-
color: Te(e.color ? e.color : La.value[t] ? La.value[t] :
|
|
1252
|
+
color: Te(e.color ? e.color : La.value[t] ? La.value[t] : h[t])
|
|
1247
1253
|
})) : xa.value), fs = x(() => Xa.value.map((e) => {
|
|
1248
1254
|
let t = e.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
|
|
1249
1255
|
return {
|
|
@@ -1253,28 +1259,28 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1253
1259
|
values: wo(Y.value, t)
|
|
1254
1260
|
};
|
|
1255
1261
|
})), ps = x(() => ({
|
|
1256
|
-
responsiveBreakpoint:
|
|
1257
|
-
roundingValues:
|
|
1262
|
+
responsiveBreakpoint: U.value.table.responsiveBreakpoint,
|
|
1263
|
+
roundingValues: U.value.table.rounding,
|
|
1258
1264
|
showAverage: !1,
|
|
1259
1265
|
showMedian: !1,
|
|
1260
1266
|
showTotal: !1,
|
|
1261
|
-
fontFamily:
|
|
1262
|
-
prefix:
|
|
1263
|
-
suffix:
|
|
1264
|
-
colNames: J.value.map((e, t) =>
|
|
1267
|
+
fontFamily: U.value.chart.fontFamily,
|
|
1268
|
+
prefix: U.value.chart.labels.prefix,
|
|
1269
|
+
suffix: U.value.chart.labels.suffix,
|
|
1270
|
+
colNames: J.value.map((e, t) => U.value.table.useDefaultTimeFormat ? e.text : Ps.value(t + K.value.start, U.value.table.timeFormat)),
|
|
1265
1271
|
thead: {
|
|
1266
|
-
backgroundColor:
|
|
1267
|
-
color:
|
|
1268
|
-
outline:
|
|
1272
|
+
backgroundColor: U.value.table.th.backgroundColor,
|
|
1273
|
+
color: U.value.table.th.color,
|
|
1274
|
+
outline: U.value.table.th.outline
|
|
1269
1275
|
},
|
|
1270
1276
|
tbody: {
|
|
1271
|
-
backgroundColor:
|
|
1272
|
-
color:
|
|
1273
|
-
outline:
|
|
1277
|
+
backgroundColor: U.value.table.td.backgroundColor,
|
|
1278
|
+
color: U.value.table.td.color,
|
|
1279
|
+
outline: U.value.table.td.outline
|
|
1274
1280
|
},
|
|
1275
1281
|
userOptions: { show: !1 },
|
|
1276
1282
|
sparkline: { animation: { show: !1 } }
|
|
1277
|
-
})), Z = x(() =>
|
|
1283
|
+
})), Z = x(() => U.value.chart.grid.position === "middle" ? 0 : q.value.width / Y.value / 2), ms = x(() => g(Ya.value.filter((e) => !L.value.includes(e.id))));
|
|
1278
1284
|
function hs(e, t) {
|
|
1279
1285
|
let n = Object.create(null);
|
|
1280
1286
|
for (let r = 0; r < e.length; r += 1) {
|
|
@@ -1295,34 +1301,34 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1295
1301
|
}
|
|
1296
1302
|
return t;
|
|
1297
1303
|
}), gs = x(() => {
|
|
1298
|
-
let e = Ja.value.filter((e) => e.type === "bar").filter((e) => !
|
|
1304
|
+
let e = Ja.value.filter((e) => e.type === "bar").filter((e) => !L.value.includes(e.id)).length;
|
|
1299
1305
|
return q.value.width / Y.value / e - _s.value * e;
|
|
1300
|
-
}), _s = x(() => X.value.line *
|
|
1301
|
-
if (!
|
|
1302
|
-
let e = ds.value.filter((e) => !
|
|
1306
|
+
}), _s = x(() => X.value.line * U.value.bar.periodGap), vs = x(() => Math.max(1e-5, Ho() - (W.value.useIndividualScale && W.value.isStacked ? 0 : _s.value))), ys = x(() => vs.value * Math.min(Math.abs(U.value.bar.innerGap), .95)), bs = x(() => {
|
|
1307
|
+
if (!U.value.chart.zoom.minimap.show) return [];
|
|
1308
|
+
let e = ds.value.filter((e) => !L.value.includes(e.id)), t = Math.max(...e.map((e) => e.series.length)), n = [];
|
|
1303
1309
|
for (let r = 0; r < t; r += 1) n.push(e.map((e) => e.series[r] || 0).reduce((e, t) => (e || 0) + (t || 0), 0));
|
|
1304
1310
|
let r = Math.min(...n);
|
|
1305
1311
|
return n.map((e) => e + (r < 0 ? Math.abs(r) : 0));
|
|
1306
|
-
}), xs = x(() =>
|
|
1312
|
+
}), xs = x(() => U.value.chart.zoom.minimap.show ? ds.value.map((e) => ({
|
|
1307
1313
|
...e,
|
|
1308
|
-
isVisible: !
|
|
1314
|
+
isVisible: !L.value.includes(e.id)
|
|
1309
1315
|
})) : []), Ss = x(() => Xa.value.map((e) => ({
|
|
1310
1316
|
slotAbsoluteIndex: e.slotAbsoluteIndex,
|
|
1311
1317
|
shape: e.shape || e.type === "bar" ? "square" : "circle",
|
|
1312
1318
|
name: e.name,
|
|
1313
1319
|
color: e.color,
|
|
1314
1320
|
type: e.type,
|
|
1315
|
-
value: e.absoluteValues.find((e, t) => t ===
|
|
1321
|
+
value: e.absoluteValues.find((e, t) => t === V.value),
|
|
1316
1322
|
comments: e.comments || [],
|
|
1317
|
-
prefix: e.prefix ||
|
|
1318
|
-
suffix: e.suffix ||
|
|
1323
|
+
prefix: e.prefix || U.value.chart.labels.prefix,
|
|
1324
|
+
suffix: e.suffix || U.value.chart.labels.suffix
|
|
1319
1325
|
}))), Cs = x(() => Ka.value.ticks.map((e) => ({
|
|
1320
1326
|
y: e >= 0 ? zo.value - q.value.height * Ro(e) : zo.value + q.value.height * Ro(Math.abs(e)),
|
|
1321
1327
|
value: e,
|
|
1322
|
-
prefix:
|
|
1323
|
-
suffix:
|
|
1328
|
+
prefix: U.value.chart.labels.prefix,
|
|
1329
|
+
suffix: U.value.chart.labels.suffix
|
|
1324
1330
|
}))), ws = x(() => {
|
|
1325
|
-
let e =
|
|
1331
|
+
let e = U.value.chart.annotations;
|
|
1326
1332
|
if (!e || !Array.isArray(e) || e.every((e) => !e.show)) return [];
|
|
1327
1333
|
let t = e.filter((e) => e.show && (e.yAxis.yTop != null || e.yAxis.yBottom != null));
|
|
1328
1334
|
if (!t.length) return [];
|
|
@@ -1367,10 +1373,10 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1367
1373
|
});
|
|
1368
1374
|
function Ts(e, t) {
|
|
1369
1375
|
let n = e[t - 1], r = e[t + 1], i = !!n && !!r && n.value == null && r.value == null || !n && !!r && r.value == null || !!n && !r && n.value == null;
|
|
1370
|
-
return Io(e[t].value) && i &&
|
|
1376
|
+
return Io(e[t].value) && i && U.value.line.cutNullValues;
|
|
1371
1377
|
}
|
|
1372
1378
|
function Es({ datapoint: e, totalSeries: t, gap: n, usableHeight: r, autoScaleValueMin: i, autoScaleValueMax: a, individualExtremes: o, forceExactScale: s = !1 }) {
|
|
1373
|
-
let c = e.scaleSteps ||
|
|
1379
|
+
let c = e.scaleSteps || U.value.chart.grid.labels.yAxis.commonScaleSteps, l = 1.0000001, u = s || !U.value.chart.grid.labels.yAxis.useNiceScale ? ue : de, ee = o.max === o.min ? o.max * l : o.max, te = a === i ? a * l : a, d = u(o.min, ee, c), f = u(i, te, c), p = d.min >= 0 ? 0 : Math.abs(d.min), m = d.max + Math.abs(p), ne = f.max + 0, re = e.stackIndex, ie = t - 1 - re, ae = W.value.isStacked ? 1 - e.cumulatedStackRatio : 0, oe = W.value.isStacked ? r * ae + n * ie : 0, h = W.value.isStacked ? r * e.stackRatio : q.value.height;
|
|
1374
1380
|
return {
|
|
1375
1381
|
scaleSteps: c,
|
|
1376
1382
|
individualScale: d,
|
|
@@ -1380,9 +1386,9 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1380
1386
|
individualMax: m,
|
|
1381
1387
|
autoScaleMax: ne,
|
|
1382
1388
|
yOffset: oe,
|
|
1383
|
-
individualHeight:
|
|
1384
|
-
zeroPosition: q.value?.bottom - oe -
|
|
1385
|
-
autoScaleZeroPosition: q.value?.bottom - oe -
|
|
1389
|
+
individualHeight: h,
|
|
1390
|
+
zeroPosition: q.value?.bottom - oe - h * p / m,
|
|
1391
|
+
autoScaleZeroPosition: q.value?.bottom - oe - h * 0 / ne
|
|
1386
1392
|
};
|
|
1387
1393
|
}
|
|
1388
1394
|
let Ds = x(() => {
|
|
@@ -1390,7 +1396,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1390
1396
|
"bar",
|
|
1391
1397
|
"line",
|
|
1392
1398
|
"plot"
|
|
1393
|
-
].includes(e.type)), t = e.length, n =
|
|
1399
|
+
].includes(e.type)), t = e.length, n = U.value.chart.grid.labels.yAxis.gap, r = W.value.isStacked ? n * (t - 1) : 0, i = q.value.height - r;
|
|
1394
1400
|
return e.filter((e) => e.type === "bar").map((e, r) => {
|
|
1395
1401
|
Co(e);
|
|
1396
1402
|
let a = Q.value[e.scaleLabel].min, o = Q.value[e.scaleLabel].max, s = {
|
|
@@ -1408,8 +1414,8 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1408
1414
|
autoScaleValueMin: s.valueMin,
|
|
1409
1415
|
autoScaleValueMax: s.valueMax,
|
|
1410
1416
|
individualExtremes: c
|
|
1411
|
-
}), re = Ya.value.filter((e) => e.type === "bar").filter((e) => !
|
|
1412
|
-
let i =
|
|
1417
|
+
}), re = Ya.value.filter((e) => e.type === "bar").filter((e) => !L.value.includes(e.id)).length, ie = e.series.map((t, n) => {
|
|
1418
|
+
let i = W.value.useIndividualScale ? (e.absoluteValues[n] + ee) / te : Ro(t), a = W.value.useIndividualScale && W.value.isStacked ? q.value?.left + q.value.width / Y.value * n : q.value?.left + X.value.bar * r + X.value.bar * n * re - gs.value / 2 - r * _s.value;
|
|
1413
1419
|
return {
|
|
1414
1420
|
yOffset: y(f),
|
|
1415
1421
|
individualHeight: y(p),
|
|
@@ -1421,7 +1427,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1421
1427
|
comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
|
|
1422
1428
|
};
|
|
1423
1429
|
}), ae = e.absoluteValues.map((e) => u.min >= 0 ? (e - Math.abs(u.min)) / (u.max - Math.abs(u.min)) : (e + Math.abs(u.min)) / (u.max + Math.abs(u.min))), oe = e.series.map((t, n) => {
|
|
1424
|
-
let i =
|
|
1430
|
+
let i = W.value.useIndividualScale && W.value.isStacked ? q.value?.left + q.value.width / Y.value * n : q.value?.left - X.value.bar / 2 + X.value.bar * r + X.value.bar * n * Ya.value.filter((e) => e.type === "bar").filter((e) => !L.value.includes(e.id)).length;
|
|
1425
1431
|
return {
|
|
1426
1432
|
yOffset: y(f),
|
|
1427
1433
|
individualHeight: y(p),
|
|
@@ -1432,28 +1438,28 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1432
1438
|
individualMax: y(te),
|
|
1433
1439
|
comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
|
|
1434
1440
|
};
|
|
1435
|
-
}),
|
|
1441
|
+
}), h = l.ticks.map((t) => ({
|
|
1436
1442
|
y: t >= 0 ? m - t / te * p : m + p * Math.abs(t) / te,
|
|
1437
1443
|
value: t,
|
|
1438
|
-
prefix: e.prefix ||
|
|
1439
|
-
suffix: e.suffix ||
|
|
1444
|
+
prefix: e.prefix || U.value.chart.labels.prefix,
|
|
1445
|
+
suffix: e.suffix || U.value.chart.labels.suffix,
|
|
1440
1446
|
datapoint: e
|
|
1441
|
-
})),
|
|
1447
|
+
})), se = u.ticks.map((t) => {
|
|
1442
1448
|
let n = (t - u.min) / (u.max - u.min);
|
|
1443
1449
|
return {
|
|
1444
1450
|
y: t >= 0 ? ne - p * n : ne + p * n,
|
|
1445
1451
|
value: t,
|
|
1446
|
-
prefix: e.prefix ||
|
|
1447
|
-
suffix: e.suffix ||
|
|
1452
|
+
prefix: e.prefix || U.value.chart.labels.prefix,
|
|
1453
|
+
suffix: e.suffix || U.value.chart.labels.suffix,
|
|
1448
1454
|
datapoint: e
|
|
1449
1455
|
};
|
|
1450
1456
|
});
|
|
1451
|
-
return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor =
|
|
1457
|
+
return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = U.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? se : h, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? ne : m, Q.value[e.scaleLabel].individualMax = e.autoScaling ? d : te, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = f, Q.value[e.scaleLabel].individualHeight = p, Q.value[e.scaleLabel].autoScaleYLabels = se, Q.value[e.scaleLabel].unique = ms.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1, {
|
|
1452
1458
|
...e,
|
|
1453
1459
|
yOffset: f,
|
|
1454
|
-
autoScaleYLabels:
|
|
1460
|
+
autoScaleYLabels: se,
|
|
1455
1461
|
individualHeight: p,
|
|
1456
|
-
scaleYLabels: e.autoScaling ?
|
|
1462
|
+
scaleYLabels: e.autoScaling ? se : h,
|
|
1457
1463
|
individualScale: e.autoScaling ? u : l,
|
|
1458
1464
|
individualMax: e.autoScaling ? d : te,
|
|
1459
1465
|
zeroPosition: e.autoScaling ? ne : m,
|
|
@@ -1466,7 +1472,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1466
1472
|
"bar",
|
|
1467
1473
|
"line",
|
|
1468
1474
|
"plot"
|
|
1469
|
-
].includes(e.type)), t = e.length, n =
|
|
1475
|
+
].includes(e.type)), t = e.length, n = U.value.chart.grid.labels.yAxis.gap, r = W.value.isStacked ? n * (t - 1) : 0, a = q.value.height - r;
|
|
1470
1476
|
return e.filter((e) => e.type === "line").map((e, r) => {
|
|
1471
1477
|
Co(e);
|
|
1472
1478
|
let o = Q.value[e.scaleLabel].min, c = Q.value[e.scaleLabel].max, l = {
|
|
@@ -1476,7 +1482,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1476
1482
|
}, ee = {
|
|
1477
1483
|
max: e.scaleMax || Math.max(...e.absoluteValues) || 1,
|
|
1478
1484
|
min: e.scaleMin || (Math.min(...e.absoluteValues) > 0 ? 0 : Math.min(...e.absoluteValues))
|
|
1479
|
-
}, { individualScale: d, autoScaleSteps: p, individualZero: m, individualMax: re, autoScaleMax: ie, yOffset: ae, individualHeight:
|
|
1485
|
+
}, { individualScale: d, autoScaleSteps: p, individualZero: m, individualMax: re, autoScaleMax: ie, yOffset: ae, individualHeight: h, zeroPosition: se, autoScaleZeroPosition: ce } = Es({
|
|
1480
1486
|
datapoint: e,
|
|
1481
1487
|
totalSeries: t,
|
|
1482
1488
|
gap: n,
|
|
@@ -1484,60 +1490,60 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1484
1490
|
autoScaleValueMin: l.valueMin,
|
|
1485
1491
|
autoScaleValueMax: l.valueMax,
|
|
1486
1492
|
individualExtremes: ee
|
|
1487
|
-
}),
|
|
1488
|
-
let r =
|
|
1493
|
+
}), g = e.series.map((t, n) => {
|
|
1494
|
+
let r = W.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(m)) / re : Ro(t);
|
|
1489
1495
|
return {
|
|
1490
1496
|
x: y(q.value?.left + X.value.line / 2 + X.value.line * n),
|
|
1491
|
-
y: y(q.value?.bottom - ae -
|
|
1497
|
+
y: y(q.value?.bottom - ae - h * r),
|
|
1492
1498
|
value: e.absoluteValues[n],
|
|
1493
1499
|
comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
|
|
1494
1500
|
};
|
|
1495
|
-
}),
|
|
1501
|
+
}), le = e.absoluteValues.map((e) => p.min >= 0 ? (e - Math.abs(p.min)) / (p.max - Math.abs(p.min)) : (e + Math.abs(p.min)) / (p.max + Math.abs(p.min))), _ = e.series.map((t, n) => [void 0, null].includes(e.absoluteValues[n]) ? {
|
|
1496
1502
|
x: y(q.value?.left + X.value.line / 2 + X.value.line * n),
|
|
1497
|
-
y:
|
|
1503
|
+
y: se,
|
|
1498
1504
|
value: e.absoluteValues[n],
|
|
1499
1505
|
comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
|
|
1500
1506
|
} : {
|
|
1501
1507
|
x: y(q.value?.left + X.value.line / 2 + X.value.line * n),
|
|
1502
|
-
y: y(q.value?.bottom - ae - (
|
|
1508
|
+
y: y(q.value?.bottom - ae - (h * le[n] || 0)),
|
|
1503
1509
|
value: e.absoluteValues[n],
|
|
1504
1510
|
comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
|
|
1505
|
-
}),
|
|
1506
|
-
y: t >= 0 ?
|
|
1511
|
+
}), v = e.dashIndices && Array.isArray(e.dashIndices) && e?.dashIndices?.length > 0, ue = U.value.line.cutNullValues ? pe(g) : he(g.filter((e) => e.value !== null)), de = U.value.line.cutNullValues ? pe(_) : he(_.filter((e) => e.value !== null)), fe = U.value.line.cutNullValues ? u(g) : s(g.filter((e) => e.value !== null)), me = U.value.line.cutNullValues ? u(_) : s(_.filter((e) => e.value !== null)), ge = i(U.value.line.cutNullValues ? g : g.filter((e) => e.value !== null)), _e = i(U.value.line.cutNullValues ? _ : _.filter((e) => e.value !== null)), ve = v ? ne(U.value.line.cutNullValues ? g : g.filter((e) => e.value !== null), e.dashIndices.map((e) => e - K.value.start)) : [], ye = v ? te(U.value.line.cutNullValues ? g : g.filter((e) => e.value !== null), e.dashIndices.map((e) => e - K.value.start)) : [], be = d.ticks.map((t) => ({
|
|
1512
|
+
y: t >= 0 ? se - t / re * h : se + h * Math.abs(t) / re,
|
|
1507
1513
|
value: t,
|
|
1508
|
-
prefix: e.prefix ||
|
|
1509
|
-
suffix: e.suffix ||
|
|
1514
|
+
prefix: e.prefix || U.value.chart.labels.prefix,
|
|
1515
|
+
suffix: e.suffix || U.value.chart.labels.suffix,
|
|
1510
1516
|
datapoint: e
|
|
1511
1517
|
})), xe = p.ticks.map((t) => {
|
|
1512
1518
|
let n = (t - p.min) / (p.max - p.min);
|
|
1513
1519
|
return {
|
|
1514
|
-
y: t >= 0 ?
|
|
1520
|
+
y: t >= 0 ? ce - h * n : ce + h * n,
|
|
1515
1521
|
value: t,
|
|
1516
|
-
prefix: e.prefix ||
|
|
1517
|
-
suffix: e.suffix ||
|
|
1522
|
+
prefix: e.prefix || U.value.chart.labels.prefix,
|
|
1523
|
+
suffix: e.suffix || U.value.chart.labels.suffix,
|
|
1518
1524
|
datapoint: e
|
|
1519
1525
|
};
|
|
1520
1526
|
});
|
|
1521
|
-
Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor =
|
|
1522
|
-
let Se =
|
|
1527
|
+
Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = U.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? xe : be, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? ce : se, Q.value[e.scaleLabel].individualMax = e.autoScaling ? ie : re, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = ae, Q.value[e.scaleLabel].individualHeight = h, Q.value[e.scaleLabel].autoScaleYLabels = xe, Q.value[e.scaleLabel].unique = ms.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1;
|
|
1528
|
+
let Se = W.value.useIndividualScale ? e.autoScaling ? ce : se : za.value, we = Math.max(Math.max(e.autoScaling ? ce : be.at(-1) ? be.at(-1).y : 0, q.value?.top), Se), Ee = e.autoScaling ? _ : g, De = U.value.line.cutNullValues ? Ee : Ee.filter((e) => e.value !== null);
|
|
1523
1529
|
return {
|
|
1524
1530
|
...e,
|
|
1525
1531
|
temperatureColors: e.temperatureColors ? e.temperatureColors.map((e) => Te(e)) : null,
|
|
1526
1532
|
yOffset: ae,
|
|
1527
1533
|
autoScaleYLabels: xe,
|
|
1528
|
-
individualHeight:
|
|
1534
|
+
individualHeight: h,
|
|
1529
1535
|
scaleYLabels: e.autoScaling ? xe : be,
|
|
1530
1536
|
individualScale: e.autoScaling ? p : d,
|
|
1531
1537
|
individualMax: e.autoScaling ? ie : re,
|
|
1532
|
-
zeroPosition: e.autoScaling ?
|
|
1533
|
-
curve: e.useStepper ? e.autoScaling ? _e : ge : e.autoScaling ?
|
|
1534
|
-
plots: e.autoScaling ?
|
|
1538
|
+
zeroPosition: e.autoScaling ? ce : se,
|
|
1539
|
+
curve: e.useStepper ? e.autoScaling ? _e : ge : e.autoScaling ? de : ue,
|
|
1540
|
+
plots: e.autoScaling ? _ : g,
|
|
1535
1541
|
dashedStraight: ve,
|
|
1536
1542
|
dashedSmooth: ye,
|
|
1537
|
-
hasDashedSegments:
|
|
1538
|
-
area: e.useArea ? e.useStepper ? i(De, we) :
|
|
1539
|
-
curveAreas: e.useArea ? e.useStepper ? i(De, we).split(";").filter(Boolean).map((e) => `M${e}Z`) : f(e.autoScaling ?
|
|
1540
|
-
straight: e.useStepper ? e.autoScaling ? _e : ge : e.autoScaling ? me :
|
|
1543
|
+
hasDashedSegments: v,
|
|
1544
|
+
area: e.useArea ? e.useStepper ? i(De, we) : W.value.useIndividualScale ? U.value.line.cutNullValues ? oe(e.autoScaling ? _ : g, we) : Ce(e.autoScaling ? _.filter((e) => e.value !== null) : g.filter((e) => e.value !== null), we) : U.value.line.cutNullValues ? oe(g, we) : Ce(g.filter((e) => e.value !== null), we) : "",
|
|
1545
|
+
curveAreas: e.useArea ? e.useStepper ? i(De, we).split(";").filter(Boolean).map((e) => `M${e}Z`) : f(e.autoScaling ? U.value.line.cutNullValues ? _ : _.filter((e) => e.value !== null) : U.value.line.cutNullValues ? g : g.filter((e) => e.value !== null), we, U.value.line.cutNullValues) : [],
|
|
1546
|
+
straight: e.useStepper ? e.autoScaling ? _e : ge : e.autoScaling ? me : fe,
|
|
1541
1547
|
groupId: Q.value[e.scaleLabel].groupId
|
|
1542
1548
|
};
|
|
1543
1549
|
});
|
|
@@ -1546,7 +1552,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1546
1552
|
"bar",
|
|
1547
1553
|
"line",
|
|
1548
1554
|
"plot"
|
|
1549
|
-
].includes(e.type)), t = e.length, n =
|
|
1555
|
+
].includes(e.type)), t = e.length, n = U.value.chart.grid.labels.yAxis.gap, r = W.value.isStacked ? n * (t - 1) : 0, i = q.value.height - r;
|
|
1550
1556
|
return e.filter((e) => e.type === "plot").map((e) => {
|
|
1551
1557
|
Co(e);
|
|
1552
1558
|
let r = Q.value[e.scaleLabel].min, a = Q.value[e.scaleLabel].max, o = {
|
|
@@ -1566,7 +1572,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1566
1572
|
individualExtremes: s,
|
|
1567
1573
|
forceExactScale: !0
|
|
1568
1574
|
}), ne = e.series.map((t, n) => {
|
|
1569
|
-
let r =
|
|
1575
|
+
let r = W.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(u)) / ee : Ro(t);
|
|
1570
1576
|
return {
|
|
1571
1577
|
x: y(q.value?.left + X.value.plot / 2 + X.value.plot * n),
|
|
1572
1578
|
y: y(q.value?.bottom - d - f * r),
|
|
@@ -1581,20 +1587,20 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1581
1587
|
})), ae = c.ticks.map((t) => ({
|
|
1582
1588
|
y: t >= 0 ? p - t / ee * f : p + f * Math.abs(t) / ee,
|
|
1583
1589
|
value: t,
|
|
1584
|
-
prefix: e.prefix ||
|
|
1585
|
-
suffix: e.suffix ||
|
|
1590
|
+
prefix: e.prefix || U.value.chart.labels.prefix,
|
|
1591
|
+
suffix: e.suffix || U.value.chart.labels.suffix,
|
|
1586
1592
|
datapoint: e
|
|
1587
1593
|
})), oe = l.ticks.map((t) => {
|
|
1588
1594
|
let n = (t - l.min) / (l.max - l.min);
|
|
1589
1595
|
return {
|
|
1590
1596
|
y: t >= 0 ? m - f * n : m + f * n,
|
|
1591
1597
|
value: t,
|
|
1592
|
-
prefix: e.prefix ||
|
|
1593
|
-
suffix: e.suffix ||
|
|
1598
|
+
prefix: e.prefix || U.value.chart.labels.prefix,
|
|
1599
|
+
suffix: e.suffix || U.value.chart.labels.suffix,
|
|
1594
1600
|
datapoint: e
|
|
1595
1601
|
};
|
|
1596
1602
|
});
|
|
1597
|
-
return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor =
|
|
1603
|
+
return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = U.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? oe : ae, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? m : p, Q.value[e.scaleLabel].individualMax = e.autoScaling ? te : ee, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = d, Q.value[e.scaleLabel].individualHeight = f, Q.value[e.scaleLabel].autoScaleYLabels = oe, Q.value[e.scaleLabel].unique = ms.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1, {
|
|
1598
1604
|
...e,
|
|
1599
1605
|
yOffset: d,
|
|
1600
1606
|
autoScaleYLabels: oe,
|
|
@@ -1642,22 +1648,22 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1642
1648
|
id: e.id,
|
|
1643
1649
|
yOffset: e.yOffset || 0,
|
|
1644
1650
|
individualHeight: e.individualHeight || q.value.height
|
|
1645
|
-
})), r =
|
|
1651
|
+
})), r = W.value.useIndividualScale && !W.value.isStacked ? Object.values(Q.value) : [
|
|
1646
1652
|
...e,
|
|
1647
1653
|
...t,
|
|
1648
1654
|
...n
|
|
1649
1655
|
], i = r.flatMap((e) => e).length;
|
|
1650
1656
|
return r.flatMap((e, t) => {
|
|
1651
1657
|
let n = 0;
|
|
1652
|
-
n =
|
|
1653
|
-
let r =
|
|
1658
|
+
n = W.value.isStacked ? q.value?.left : q.value?.left / i * (t + 1);
|
|
1659
|
+
let r = W.value.useIndividualScale && !W.value.isStacked ? e.unique ? e.name : e.groupName : e.name;
|
|
1654
1660
|
return {
|
|
1655
1661
|
unique: e.unique,
|
|
1656
1662
|
id: e.id,
|
|
1657
1663
|
groupId: e.groupId,
|
|
1658
1664
|
scaleLabel: e.scaleLabel,
|
|
1659
|
-
name:
|
|
1660
|
-
color:
|
|
1665
|
+
name: fe(U.value.chart.grid.labels.yAxis.serieNameFormatter, r, r, e),
|
|
1666
|
+
color: W.value.useIndividualScale && !W.value.isStacked ? e.unique ? e.color : e.groupColor : e.color,
|
|
1661
1667
|
scale: e.scale,
|
|
1662
1668
|
yOffset: e.yOffset,
|
|
1663
1669
|
individualHeight: e.individualHeight,
|
|
@@ -1669,7 +1675,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1669
1675
|
};
|
|
1670
1676
|
});
|
|
1671
1677
|
}), As = x(() => {
|
|
1672
|
-
let e =
|
|
1678
|
+
let e = U.value.line.interLine || {}, t = e.pairs || [], n = e.colors || [];
|
|
1673
1679
|
if (!t.length) return [];
|
|
1674
1680
|
let r = [];
|
|
1675
1681
|
return t.forEach((e, t) => {
|
|
@@ -1678,7 +1684,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1678
1684
|
let o = $.value.find((e) => e.name === i), s = $.value.find((e) => e.name === a);
|
|
1679
1685
|
if (!o || !s || o.type !== "line" || s.type !== "line") return;
|
|
1680
1686
|
let c = n?.[t]?.[0] ?? o.color, l = n?.[t]?.[1] ?? s.color;
|
|
1681
|
-
|
|
1687
|
+
le({
|
|
1682
1688
|
lineA: o.plots,
|
|
1683
1689
|
lineB: s.plots,
|
|
1684
1690
|
smoothA: !!o.smooth,
|
|
@@ -1686,7 +1692,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1686
1692
|
colorLineA: c,
|
|
1687
1693
|
colorLineB: l,
|
|
1688
1694
|
sampleStepPx: 2,
|
|
1689
|
-
cutNullValues:
|
|
1695
|
+
cutNullValues: U.value.line.cutNullValues
|
|
1690
1696
|
}).forEach((e, n) => {
|
|
1691
1697
|
r.push({
|
|
1692
1698
|
...e,
|
|
@@ -1695,73 +1701,73 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1695
1701
|
});
|
|
1696
1702
|
}), r;
|
|
1697
1703
|
}), js = x(() => ({
|
|
1698
|
-
timeLabel: J.value[
|
|
1704
|
+
timeLabel: J.value[V.value],
|
|
1699
1705
|
datapoint: Ss.value,
|
|
1700
|
-
seriesIndex:
|
|
1706
|
+
seriesIndex: V.value,
|
|
1701
1707
|
series: Ya.value,
|
|
1702
1708
|
bars: Ds.value,
|
|
1703
1709
|
lines: $.value,
|
|
1704
1710
|
plots: Os.value,
|
|
1705
|
-
config:
|
|
1711
|
+
config: U.value
|
|
1706
1712
|
})), Ms = k({
|
|
1707
1713
|
months: [],
|
|
1708
1714
|
shortMonths: [],
|
|
1709
1715
|
days: [],
|
|
1710
1716
|
shortDays: []
|
|
1711
1717
|
}), Ns = 0;
|
|
1712
|
-
|
|
1713
|
-
let e = ++Ns, t =
|
|
1718
|
+
mt(() => {
|
|
1719
|
+
let e = ++Ns, t = U.value.chart.grid.labels.xAxisLabels.datetimeFormatter;
|
|
1714
1720
|
(async () => {
|
|
1715
1721
|
let n = await ke(t.locale).catch(() => ke("en"));
|
|
1716
1722
|
e === Ns && (Ms.value = n.data);
|
|
1717
1723
|
})();
|
|
1718
1724
|
});
|
|
1719
1725
|
let Ps = x(() => {
|
|
1720
|
-
let e =
|
|
1726
|
+
let e = U.value.chart.grid.labels.xAxisLabels.datetimeFormatter, t = Oe({
|
|
1721
1727
|
useUTC: e.useUTC,
|
|
1722
1728
|
locale: Ms.value,
|
|
1723
1729
|
januaryAsYear: e.januaryAsYear
|
|
1724
1730
|
});
|
|
1725
1731
|
return (e, n) => {
|
|
1726
|
-
let r =
|
|
1732
|
+
let r = U.value.chart.grid.labels.xAxisLabels.values?.[e];
|
|
1727
1733
|
return r == null ? "" : t.formatDate(new Date(r), n);
|
|
1728
1734
|
};
|
|
1729
|
-
}), Fs = x(() => (
|
|
1730
|
-
text: Ps.value(t,
|
|
1735
|
+
}), Fs = x(() => (U.value.chart.grid.labels.xAxisLabels.values || []).map((e, t) => ({
|
|
1736
|
+
text: Ps.value(t, U.value.chart.zoom.timeFormat),
|
|
1731
1737
|
absoluteIndex: t
|
|
1732
1738
|
}))), Is = x(() => {
|
|
1733
|
-
let e = "", t = Ss.value.map((e) => e.value).filter((e) => _e(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0), n = J.value[
|
|
1739
|
+
let e = "", t = Ss.value.map((e) => e.value).filter((e) => _e(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0), n = J.value[V.value], i = U.value.chart.tooltip.customFormat;
|
|
1734
1740
|
if (be(i) && ye(() => i({
|
|
1735
|
-
absoluteIndex:
|
|
1736
|
-
seriesIndex:
|
|
1741
|
+
absoluteIndex: V.value + K.value.start,
|
|
1742
|
+
seriesIndex: V.value,
|
|
1737
1743
|
datapoint: Ss.value,
|
|
1738
1744
|
series: Ya.value,
|
|
1739
1745
|
bars: Ds.value,
|
|
1740
1746
|
lines: $.value,
|
|
1741
1747
|
plots: Os.value,
|
|
1742
|
-
config:
|
|
1748
|
+
config: U.value,
|
|
1743
1749
|
dateLabel: n
|
|
1744
1750
|
}))) return i({
|
|
1745
|
-
absoluteIndex:
|
|
1746
|
-
seriesIndex:
|
|
1751
|
+
absoluteIndex: V.value + K.value.start,
|
|
1752
|
+
seriesIndex: V.value,
|
|
1747
1753
|
datapoint: Ss.value,
|
|
1748
1754
|
series: Ya.value,
|
|
1749
1755
|
bars: Ds.value,
|
|
1750
1756
|
lines: $.value,
|
|
1751
1757
|
plots: Os.value,
|
|
1752
|
-
config:
|
|
1758
|
+
config: U.value,
|
|
1753
1759
|
dateLabel: n
|
|
1754
1760
|
});
|
|
1755
|
-
if (n && n.text &&
|
|
1756
|
-
let t = Ps.value(
|
|
1757
|
-
e += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${
|
|
1761
|
+
if (n && n.text && U.value.chart.tooltip.showTimeLabel) {
|
|
1762
|
+
let t = Ps.value(V.value + K.value.start, U.value.chart.tooltip.timeFormat);
|
|
1763
|
+
e += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${U.value.chart.tooltip.borderColor}; width:100%">${U.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !U.value.chart.tooltip.useDefaultTimeFormat ? t : n.text}</div>`;
|
|
1758
1764
|
}
|
|
1759
1765
|
return Ss.value.forEach((n) => {
|
|
1760
1766
|
if (_e(n.value)) {
|
|
1761
1767
|
let i = "", o = "";
|
|
1762
|
-
switch (
|
|
1768
|
+
switch (Ni.value[n.type]) {
|
|
1763
1769
|
case "bar":
|
|
1764
|
-
i = `<svg viewBox="0 0 40 40" height="14" width="14">${
|
|
1770
|
+
i = `<svg viewBox="0 0 40 40" height="14" width="14">${li.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${n.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${li.pattern ? `url(#pattern_${R.value}_${n.slotAbsoluteIndex}` : n.color}" /></svg>`;
|
|
1765
1771
|
break;
|
|
1766
1772
|
case "line":
|
|
1767
1773
|
!n.shape || ![
|
|
@@ -1771,7 +1777,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1771
1777
|
"diamond",
|
|
1772
1778
|
"pentagon",
|
|
1773
1779
|
"hexagon"
|
|
1774
|
-
].includes(n.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${
|
|
1780
|
+
].includes(n.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${U.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${n.color}" />` : n.shape === "triangle" ? o = `<path d="${r({
|
|
1775
1781
|
plot: {
|
|
1776
1782
|
x: 10,
|
|
1777
1783
|
y: 8
|
|
@@ -1779,7 +1785,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1779
1785
|
radius: 4,
|
|
1780
1786
|
sides: 3,
|
|
1781
1787
|
rotation: .52
|
|
1782
|
-
}).path}" fill="${n.color}" stroke="${
|
|
1788
|
+
}).path}" fill="${n.color}" stroke="${U.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : n.shape === "square" ? o = `<path d="${r({
|
|
1783
1789
|
plot: {
|
|
1784
1790
|
x: 10,
|
|
1785
1791
|
y: 8
|
|
@@ -1787,7 +1793,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1787
1793
|
radius: 4,
|
|
1788
1794
|
sides: 4,
|
|
1789
1795
|
rotation: .8
|
|
1790
|
-
}).path}" fill="${n.color}" stroke="${
|
|
1796
|
+
}).path}" fill="${n.color}" stroke="${U.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : n.shape === "diamond" ? o = `<path d="${r({
|
|
1791
1797
|
plot: {
|
|
1792
1798
|
x: 10,
|
|
1793
1799
|
y: 8
|
|
@@ -1795,7 +1801,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1795
1801
|
radius: 4,
|
|
1796
1802
|
sides: 4,
|
|
1797
1803
|
rotation: 0
|
|
1798
|
-
}).path}" fill="${n.color}" stroke="${
|
|
1804
|
+
}).path}" fill="${n.color}" stroke="${U.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : n.shape === "pentagon" ? o = `<path d="${r({
|
|
1799
1805
|
plot: {
|
|
1800
1806
|
x: 10,
|
|
1801
1807
|
y: 8
|
|
@@ -1803,7 +1809,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1803
1809
|
radius: 4,
|
|
1804
1810
|
sides: 5,
|
|
1805
1811
|
rotation: .95
|
|
1806
|
-
}).path}" fill="${n.color}" stroke="${
|
|
1812
|
+
}).path}" fill="${n.color}" stroke="${U.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : n.shape === "hexagon" ? o = `<path d="${r({
|
|
1807
1813
|
plot: {
|
|
1808
1814
|
x: 10,
|
|
1809
1815
|
y: 8
|
|
@@ -1811,13 +1817,13 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1811
1817
|
radius: 4,
|
|
1812
1818
|
sides: 6,
|
|
1813
1819
|
rotation: 0
|
|
1814
|
-
}).path}" fill="${n.color}" stroke="${
|
|
1820
|
+
}).path}" fill="${n.color}" stroke="${U.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : n.shape === "star" && (o = `<polygon stroke="${U.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${n.color}" points="${m({
|
|
1815
1821
|
plot: {
|
|
1816
1822
|
x: 10,
|
|
1817
1823
|
y: 8
|
|
1818
1824
|
},
|
|
1819
1825
|
radius: 4
|
|
1820
|
-
})}" />`), i = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${
|
|
1826
|
+
})}" />`), i = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${U.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${n.color}" />${o}</svg>`;
|
|
1821
1827
|
break;
|
|
1822
1828
|
case "plot":
|
|
1823
1829
|
if (!n.shape || ![
|
|
@@ -1828,11 +1834,11 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1828
1834
|
"pentagon",
|
|
1829
1835
|
"hexagon"
|
|
1830
1836
|
].includes(n.shape)) {
|
|
1831
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${
|
|
1837
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${U.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${n.color}" /></svg>`;
|
|
1832
1838
|
break;
|
|
1833
1839
|
}
|
|
1834
1840
|
if (n.shape === "star") {
|
|
1835
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${
|
|
1841
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${U.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${n.color}" points="${m({
|
|
1836
1842
|
plot: {
|
|
1837
1843
|
x: 6,
|
|
1838
1844
|
y: 6
|
|
@@ -1850,7 +1856,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1850
1856
|
radius: 6,
|
|
1851
1857
|
sides: 3,
|
|
1852
1858
|
rotation: .52
|
|
1853
|
-
}).path}" fill="${n.color}" stroke="${
|
|
1859
|
+
}).path}" fill="${n.color}" stroke="${U.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1854
1860
|
break;
|
|
1855
1861
|
}
|
|
1856
1862
|
if (n.shape === "square") {
|
|
@@ -1862,7 +1868,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1862
1868
|
radius: 6,
|
|
1863
1869
|
sides: 4,
|
|
1864
1870
|
rotation: .8
|
|
1865
|
-
}).path}" fill="${n.color}" stroke="${
|
|
1871
|
+
}).path}" fill="${n.color}" stroke="${U.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1866
1872
|
break;
|
|
1867
1873
|
}
|
|
1868
1874
|
if (n.shape === "diamond") {
|
|
@@ -1874,7 +1880,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1874
1880
|
radius: 5,
|
|
1875
1881
|
sides: 4,
|
|
1876
1882
|
rotation: 0
|
|
1877
|
-
}).path}" fill="${n.color}" stroke="${
|
|
1883
|
+
}).path}" fill="${n.color}" stroke="${U.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1878
1884
|
break;
|
|
1879
1885
|
}
|
|
1880
1886
|
if (n.shape === "pentagon") {
|
|
@@ -1886,7 +1892,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1886
1892
|
radius: 5,
|
|
1887
1893
|
sides: 5,
|
|
1888
1894
|
rotation: .95
|
|
1889
|
-
}).path}" fill="${n.color}" stroke="${
|
|
1895
|
+
}).path}" fill="${n.color}" stroke="${U.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1890
1896
|
break;
|
|
1891
1897
|
}
|
|
1892
1898
|
if (n.shape === "hexagon") {
|
|
@@ -1898,23 +1904,23 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1898
1904
|
radius: 5,
|
|
1899
1905
|
sides: 6,
|
|
1900
1906
|
rotation: 0
|
|
1901
|
-
}).path}" fill="${n.color}" stroke="${
|
|
1907
|
+
}).path}" fill="${n.color}" stroke="${U.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1902
1908
|
break;
|
|
1903
1909
|
}
|
|
1904
1910
|
default: break;
|
|
1905
1911
|
}
|
|
1906
|
-
e += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${i}</div> ${n.name}: <b>${
|
|
1912
|
+
e += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${i}</div> ${n.name}: <b>${U.value.chart.tooltip.showValue ? fe(n.type === "line" ? U.value.line.labels.formatter : n.type === "bar" ? U.value.bar.labels.formatter : U.value.plot.labels.formatter, n.value, a({
|
|
1907
1913
|
p: n.prefix,
|
|
1908
1914
|
v: n.value,
|
|
1909
1915
|
s: n.suffix,
|
|
1910
|
-
r:
|
|
1911
|
-
}), { datapoint: n }) : ""}</b> ${
|
|
1916
|
+
r: U.value.chart.tooltip.roundingValue
|
|
1917
|
+
}), { datapoint: n }) : ""}</b> ${U.value.chart.tooltip.showPercentage ? `(${a({
|
|
1912
1918
|
v: y(Math.abs(n.value) / t * 100),
|
|
1913
1919
|
s: "%",
|
|
1914
|
-
r:
|
|
1915
|
-
})})` : ""}</div>`,
|
|
1920
|
+
r: U.value.chart.tooltip.roundingPercentage
|
|
1921
|
+
})})` : ""}</div>`, U.value.chart.comments.showInTooltip && n.comments.length && n.comments.slice(K.value.start, K.value.end)[V.value] && (e += `<div class="vue-data-ui-tooltip-comment" style="background:${n.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${n.color}">${n.comments.slice(K.value.start, K.value.end)[V.value]}</div>`);
|
|
1916
1922
|
}
|
|
1917
|
-
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${
|
|
1923
|
+
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${U.value.chart.tooltip.color}">${e}</div>`;
|
|
1918
1924
|
}), Ls = x(() => {
|
|
1919
1925
|
if (Ja.value.length === 0) return {
|
|
1920
1926
|
head: [],
|
|
@@ -1928,40 +1934,40 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1928
1934
|
type: e.type
|
|
1929
1935
|
})), t = [];
|
|
1930
1936
|
return J.value.forEach((e, n) => {
|
|
1931
|
-
let r =
|
|
1937
|
+
let r = U.value.table.useDefaultTimeFormat ? [e.text] : [Ps.value(n + K.value.start, U.value.table.timeFormat)];
|
|
1932
1938
|
Xa.value.forEach((e) => {
|
|
1933
|
-
r.push(Io(e.absoluteValues[n]) ? Number(e.absoluteValues[n].toFixed(
|
|
1939
|
+
r.push(Io(e.absoluteValues[n]) ? Number(e.absoluteValues[n].toFixed(U.value.table.rounding)) : "");
|
|
1934
1940
|
}), t.push(r);
|
|
1935
1941
|
}), {
|
|
1936
1942
|
head: e,
|
|
1937
1943
|
body: t
|
|
1938
1944
|
};
|
|
1939
1945
|
}), Rs = x(() => {
|
|
1940
|
-
let e =
|
|
1946
|
+
let e = U.value.table.showSum, t = [""].concat(Xa.value.map((e) => e.name));
|
|
1941
1947
|
e && (t = t.concat(" <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2\" /></svg>"));
|
|
1942
1948
|
let n = [];
|
|
1943
1949
|
for (let t = 0; t < Y.value; t += 1) {
|
|
1944
1950
|
let r = Xa.value.map((e) => e.absoluteValues[t] ?? 0).reduce((e, t) => e + t, 0);
|
|
1945
|
-
n.push([
|
|
1946
|
-
p: e.prefix ||
|
|
1951
|
+
n.push([U.value.table.useDefaultTimeFormat ? J.value[t]?.text ?? "-" : Ps.value(t + K.value.start, U.value.table.timeFormat)].concat(Xa.value.map((e) => fe(e.type === "line" ? U.value.line.labels.formatter : e.type === "bar" ? U.value.bar.labels.formatter : U.value.plot.labels.formatter, e.absoluteValues[t] ?? 0, a({
|
|
1952
|
+
p: e.prefix || U.value.chart.labels.prefix,
|
|
1947
1953
|
v: e.absoluteValues[t] ?? 0,
|
|
1948
|
-
s: e.suffix ||
|
|
1949
|
-
r:
|
|
1950
|
-
}))), e ? (r ?? 0).toFixed(
|
|
1954
|
+
s: e.suffix || U.value.chart.labels.suffix,
|
|
1955
|
+
r: U.value.table.rounding
|
|
1956
|
+
}))), e ? (r ?? 0).toFixed(U.value.table.rounding) : []));
|
|
1951
1957
|
}
|
|
1952
1958
|
let r = {
|
|
1953
1959
|
th: {
|
|
1954
|
-
backgroundColor:
|
|
1955
|
-
color:
|
|
1956
|
-
outline:
|
|
1960
|
+
backgroundColor: U.value.table.th.backgroundColor,
|
|
1961
|
+
color: U.value.table.th.color,
|
|
1962
|
+
outline: U.value.table.th.outline
|
|
1957
1963
|
},
|
|
1958
1964
|
td: {
|
|
1959
|
-
backgroundColor:
|
|
1960
|
-
color:
|
|
1961
|
-
outline:
|
|
1965
|
+
backgroundColor: U.value.table.td.backgroundColor,
|
|
1966
|
+
color: U.value.table.td.color,
|
|
1967
|
+
outline: U.value.table.td.outline
|
|
1962
1968
|
},
|
|
1963
|
-
breakpoint:
|
|
1964
|
-
}, i = [
|
|
1969
|
+
breakpoint: U.value.table.responsiveBreakpoint
|
|
1970
|
+
}, i = [U.value.table.columnNames.period].concat(Xa.value.map((e) => e.name), U.value.table.columnNames.total);
|
|
1965
1971
|
return {
|
|
1966
1972
|
head: t,
|
|
1967
1973
|
body: n,
|
|
@@ -1971,18 +1977,18 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1971
1977
|
});
|
|
1972
1978
|
function zs(e = null) {
|
|
1973
1979
|
let t = [
|
|
1974
|
-
[
|
|
1975
|
-
[
|
|
1980
|
+
[U.value.chart.title.text],
|
|
1981
|
+
[U.value.chart.title.subtitle.text],
|
|
1976
1982
|
[""]
|
|
1977
1983
|
], n = ["", ...Ls.value.head.map((e) => e.label)], r = Ls.value.body, i = ie(t.concat([n]).concat(r));
|
|
1978
1984
|
e ? e(i) : l({
|
|
1979
1985
|
csvContent: i,
|
|
1980
|
-
title:
|
|
1986
|
+
title: U.value.chart.title.text || "vue-ui-xy"
|
|
1981
1987
|
});
|
|
1982
1988
|
}
|
|
1983
1989
|
function Bs(e, t = null) {
|
|
1984
1990
|
if (Za.value) return;
|
|
1985
|
-
|
|
1991
|
+
Ii.value = e;
|
|
1986
1992
|
let n = Xa.value.map((e) => ({
|
|
1987
1993
|
name: e.name,
|
|
1988
1994
|
value: [
|
|
@@ -1993,110 +1999,110 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
1993
1999
|
color: e.color,
|
|
1994
2000
|
type: e.type
|
|
1995
2001
|
}));
|
|
1996
|
-
e ? (
|
|
2002
|
+
e ? (V.value = t, U.value.events.datapointEnter && U.value.events.datapointEnter({
|
|
1997
2003
|
datapoint: n,
|
|
1998
2004
|
seriesIndex: t + K.value.start
|
|
1999
|
-
})) : (
|
|
2005
|
+
})) : (V.value = null, U.value.events.datapointLeave && U.value.events.datapointLeave({
|
|
2000
2006
|
datapoint: n,
|
|
2001
2007
|
seriesIndex: t + K.value.start
|
|
2002
2008
|
}));
|
|
2003
2009
|
}
|
|
2004
2010
|
function Vs() {
|
|
2005
|
-
|
|
2011
|
+
W.value.showTable = !W.value.showTable;
|
|
2006
2012
|
}
|
|
2007
2013
|
function Hs() {
|
|
2008
|
-
|
|
2014
|
+
W.value.dataLabels.show = !W.value.dataLabels.show;
|
|
2009
2015
|
}
|
|
2010
2016
|
function Us() {
|
|
2011
|
-
|
|
2017
|
+
W.value.showTooltip = !W.value.showTooltip;
|
|
2012
2018
|
}
|
|
2013
2019
|
function Ws(e) {
|
|
2014
|
-
|
|
2020
|
+
Fi.value = e, Ri.value += 1;
|
|
2015
2021
|
}
|
|
2016
2022
|
function Gs() {
|
|
2017
|
-
if (!
|
|
2018
|
-
|
|
2023
|
+
if (!U.value.responsiveProportionalSizing) {
|
|
2024
|
+
H.value.dataLabels = U.value.chart.grid.labels.fontSize, H.value.yAxis = U.value.chart.grid.labels.axis.fontSize, H.value.xAxis = U.value.chart.grid.labels.xAxisLabels.fontSize, H.value.plotLabels = U.value.chart.labels.fontSize, fa.value.plot = U.value.plot.radius, fa.value.line = U.value.line.radius;
|
|
2019
2025
|
return;
|
|
2020
2026
|
}
|
|
2021
|
-
|
|
2022
|
-
relator:
|
|
2027
|
+
H.value.dataLabels = re({
|
|
2028
|
+
relator: Ai.value,
|
|
2023
2029
|
adjuster: 400,
|
|
2024
|
-
source:
|
|
2030
|
+
source: U.value.chart.grid.labels.fontSize,
|
|
2025
2031
|
threshold: 10,
|
|
2026
2032
|
fallback: 10
|
|
2027
|
-
}),
|
|
2028
|
-
relator:
|
|
2033
|
+
}), H.value.yAxis = re({
|
|
2034
|
+
relator: I.value,
|
|
2029
2035
|
adjuster: 1e3,
|
|
2030
|
-
source:
|
|
2036
|
+
source: U.value.chart.grid.labels.axis.fontSize,
|
|
2031
2037
|
threshold: 10,
|
|
2032
2038
|
fallback: 10
|
|
2033
|
-
}),
|
|
2034
|
-
relator:
|
|
2039
|
+
}), H.value.xAxis = re({
|
|
2040
|
+
relator: I.value,
|
|
2035
2041
|
adjuster: 1e3,
|
|
2036
|
-
source:
|
|
2042
|
+
source: U.value.chart.grid.labels.xAxisLabels.fontSize,
|
|
2037
2043
|
threshold: 10,
|
|
2038
2044
|
fallback: 10
|
|
2039
|
-
}),
|
|
2040
|
-
relator:
|
|
2045
|
+
}), H.value.plotLabels = re({
|
|
2046
|
+
relator: I.value,
|
|
2041
2047
|
adjuster: 800,
|
|
2042
|
-
source:
|
|
2048
|
+
source: U.value.chart.labels.fontSize,
|
|
2043
2049
|
threshold: 10,
|
|
2044
2050
|
fallback: 10
|
|
2045
|
-
}),
|
|
2046
|
-
relator:
|
|
2051
|
+
}), fa.value.plot = re({
|
|
2052
|
+
relator: I.value,
|
|
2047
2053
|
adjuster: 800,
|
|
2048
|
-
source:
|
|
2054
|
+
source: U.value.plot.radius,
|
|
2049
2055
|
threshold: 1,
|
|
2050
2056
|
fallback: 1
|
|
2051
|
-
}),
|
|
2052
|
-
relator:
|
|
2057
|
+
}), fa.value.line = re({
|
|
2058
|
+
relator: I.value,
|
|
2053
2059
|
adjuster: 800,
|
|
2054
|
-
source:
|
|
2060
|
+
source: U.value.line.radius,
|
|
2055
2061
|
threshold: 1,
|
|
2056
2062
|
fallback: 1
|
|
2057
2063
|
});
|
|
2058
2064
|
}
|
|
2059
2065
|
function Ks() {
|
|
2060
|
-
if (ae(
|
|
2066
|
+
if (ae(P.dataset) ? (se({
|
|
2061
2067
|
componentName: "VueUiXy",
|
|
2062
2068
|
type: "dataset",
|
|
2063
|
-
debug:
|
|
2064
|
-
}), Sa.value = !0) :
|
|
2065
|
-
[null, void 0].includes(e.name) && (
|
|
2069
|
+
debug: va.value
|
|
2070
|
+
}), Sa.value = !0) : P.dataset.forEach((e, t) => {
|
|
2071
|
+
[null, void 0].includes(e.name) && (se({
|
|
2066
2072
|
componentName: "VueUiXy",
|
|
2067
2073
|
type: "datasetSerieAttribute",
|
|
2068
2074
|
property: "name (string)",
|
|
2069
2075
|
index: t,
|
|
2070
|
-
debug:
|
|
2076
|
+
debug: va.value
|
|
2071
2077
|
}), Sa.value = !0);
|
|
2072
|
-
}),
|
|
2078
|
+
}), va.value && P.dataset.forEach((e) => {
|
|
2073
2079
|
e.series.forEach((t, n) => {
|
|
2074
2080
|
_e(t) || console.warn(`VueUiXy has detected an unsafe value in your dataset:\n-----> The serie '${e.name}' contains the value '${t}' at index ${n}.\n'${t}' was converted to null to allow the chart to display.`);
|
|
2075
2081
|
});
|
|
2076
|
-
}), ae(
|
|
2077
|
-
let e =
|
|
2078
|
-
|
|
2082
|
+
}), ae(P.dataset) || (Sa.value = U.value.loading), Ui.value = U.value.chart.userOptions.showOnChartHover, Wi.value = U.value.chart.userOptions.keepStateOnChartLeave, Gi.value = !U.value.chart.userOptions.showOnChartHover, _a(), U.value.responsive) {
|
|
2083
|
+
let e = mi.value.parentNode;
|
|
2084
|
+
Ei.value && (Ei.value.unobserve(Di.value), Ei.value.disconnect());
|
|
2079
2085
|
let { height: t, width: n } = e.getBoundingClientRect(), r = null, i = 0;
|
|
2080
|
-
|
|
2086
|
+
U.value.chart.title.show && hi.value && (r = hi.value, i = r.getBoundingClientRect().height);
|
|
2081
2087
|
let a = null, o = 0;
|
|
2082
|
-
|
|
2088
|
+
U.value.chart.zoom.show && Ea.value > 6 && ha.value && gi.value && gi.value.$el && (a = gi.value.$el, o = a.getBoundingClientRect().height);
|
|
2083
2089
|
let s = null, c = 0;
|
|
2084
|
-
|
|
2090
|
+
U.value.chart.legend.show && _i.value && (s = _i.value, c = s.getBoundingClientRect().height);
|
|
2085
2091
|
let l = 0;
|
|
2086
|
-
|
|
2092
|
+
vi.value && (l = vi.value.getBoundingClientRect().height);
|
|
2087
2093
|
let u = 0;
|
|
2088
|
-
|
|
2094
|
+
yi.value && (u = yi.value.getBoundingClientRect().height), Ai.value = t - i - c - o - l - u - 12, I.value = n, ji.value = `0 0 ${I.value < 0 ? 10 : I.value} ${Ai.value < 0 ? 10 : Ai.value}`, Gs();
|
|
2089
2095
|
let ee = new ResizeObserver((e) => {
|
|
2090
|
-
for (let t of e) i =
|
|
2091
|
-
|
|
2096
|
+
for (let t of e) i = U.value.chart.title.show && hi.value ? hi.value.getBoundingClientRect().height : 0, o = gi.value && gi.value.$el ? gi.value.$el.getBoundingClientRect().height : 0, c = _i.value ? _i.value.getBoundingClientRect().height : 0, l = vi.value ? vi.value.getBoundingClientRect().height : 0, u = yi.value ? yi.value.getBoundingClientRect().height : 0, requestAnimationFrame(() => {
|
|
2097
|
+
Ai.value = t.contentRect.height - i - c - o - l - u - 12, I.value = t.contentBoxSize[0].inlineSize ?? t.contentRect.width, ji.value = `0 0 ${I.value < 0 ? 10 : I.value} ${Ai.value < 0 ? 10 : Ai.value}`, Gs(), aa(), sa();
|
|
2092
2098
|
});
|
|
2093
2099
|
});
|
|
2094
|
-
|
|
2095
|
-
} else
|
|
2096
|
-
|
|
2100
|
+
Ei.value = ee, Di.value = e, ee.observe(e);
|
|
2101
|
+
} else Ai.value = U.value.chart.height, I.value = U.value.chart.width, H.value.dataLabels = U.value.chart.grid.labels.fontSize, H.value.yAxis = U.value.chart.grid.labels.axis.fontSize, H.value.xAxis = U.value.chart.grid.labels.xAxisLabels.fontSize, H.value.plotLabels = U.value.chart.labels.fontSize, fa.value.plot = U.value.plot.radius, fa.value.line = U.value.line.radius, ji.value = `0 0 ${I.value} ${Ai.value}`;
|
|
2102
|
+
aa(), sa();
|
|
2097
2103
|
}
|
|
2098
2104
|
function qs(e) {
|
|
2099
|
-
|
|
2105
|
+
Mi.value = {
|
|
2100
2106
|
x: e.clientX,
|
|
2101
2107
|
y: e.clientY
|
|
2102
2108
|
};
|
|
@@ -2104,12 +2110,12 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
2104
2110
|
ot(() => {
|
|
2105
2111
|
Ks(), jo(), document.addEventListener("mousemove", qs, { passive: !0 }), document.addEventListener("scroll", co, { passive: !0 });
|
|
2106
2112
|
}), at(() => {
|
|
2107
|
-
document.removeEventListener("scroll", co, { passive: !0 }), document.removeEventListener("mousemove", qs, { passive: !0 }),
|
|
2113
|
+
document.removeEventListener("scroll", co, { passive: !0 }), document.removeEventListener("mousemove", qs, { passive: !0 }), Ei.value &&= (Ei.value.unobserve(Di.value), Ei.value.disconnect(), null);
|
|
2108
2114
|
}), ze({
|
|
2109
|
-
timeLabelsEls:
|
|
2115
|
+
timeLabelsEls: Ci,
|
|
2110
2116
|
timeLabels: J,
|
|
2111
2117
|
slicer: K,
|
|
2112
|
-
configRef:
|
|
2118
|
+
configRef: U,
|
|
2113
2119
|
rotationPath: [
|
|
2114
2120
|
"chart",
|
|
2115
2121
|
"grid",
|
|
@@ -2126,11 +2132,11 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
2126
2132
|
"enable"
|
|
2127
2133
|
],
|
|
2128
2134
|
isAutoSize: Ia,
|
|
2129
|
-
height:
|
|
2130
|
-
width:
|
|
2131
|
-
rotation:
|
|
2135
|
+
height: Ai,
|
|
2136
|
+
width: I,
|
|
2137
|
+
rotation: U.value.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
2132
2138
|
});
|
|
2133
|
-
let Js = k(!1), Ys = k(null), Xs = k(200), Zs = x(() =>
|
|
2139
|
+
let Js = k(!1), Ys = k(null), Xs = k(200), Zs = x(() => V.value ?? z.value ?? 0);
|
|
2134
2140
|
function Qs() {
|
|
2135
2141
|
let e = Math.ceil(Xs.value || 200);
|
|
2136
2142
|
return Math.min(Math.max(e, 1), 200);
|
|
@@ -2147,7 +2153,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
2147
2153
|
}, r = new ResizeObserver((t) => {
|
|
2148
2154
|
let r = t.find((t) => t.target === e) || t[0];
|
|
2149
2155
|
r && n(r.contentRect.width || 200);
|
|
2150
|
-
}), i =
|
|
2156
|
+
}), i = mt((t) => {
|
|
2151
2157
|
let i = Ys.value;
|
|
2152
2158
|
e && e !== i && (r.unobserve(e), e = null), i && i !== e && (rt(() => {
|
|
2153
2159
|
i.offsetParent !== null && n(i.offsetWidth || i.getBoundingClientRect().width || 200);
|
|
@@ -2162,8 +2168,8 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
2162
2168
|
});
|
|
2163
2169
|
});
|
|
2164
2170
|
let ec = x(() => {
|
|
2165
|
-
if ([null, void 0].includes(
|
|
2166
|
-
let e = (
|
|
2171
|
+
if ([null, void 0].includes(V.value) && [null, void 0].includes(z.value)) return "";
|
|
2172
|
+
let e = (V.value == null ? 0 : V.value) || (z.value == null ? 0 : z.value), t = U.value.chart.timeTag.customFormat;
|
|
2167
2173
|
if (Js.value = !1, be(t)) try {
|
|
2168
2174
|
let n = t({
|
|
2169
2175
|
absoluteIndex: e + K.value.start,
|
|
@@ -2172,53 +2178,89 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
2172
2178
|
bars: Ds.value,
|
|
2173
2179
|
lines: $.value,
|
|
2174
2180
|
plots: Os.value,
|
|
2175
|
-
config:
|
|
2181
|
+
config: U.value
|
|
2176
2182
|
});
|
|
2177
2183
|
if (typeof n == "string") return Js.value = !0, n;
|
|
2178
2184
|
} catch {
|
|
2179
2185
|
console.warn("Custom format cannot be applied on timeTag."), Js.value = !1;
|
|
2180
2186
|
}
|
|
2181
|
-
if (!Js.value) return [null, void 0].includes(J.value[e]) ? "" :
|
|
2187
|
+
if (!Js.value) return [null, void 0].includes(J.value[e]) ? "" : U.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !U.value.chart.timeTag.useDefaultFormat ? Ps.value(e + K.value.start, U.value.chart.timeTag.timeFormat) : J.value[e].text;
|
|
2182
2188
|
});
|
|
2183
|
-
|
|
2189
|
+
function tc({ serie: e, plot: t, type: r }) {
|
|
2190
|
+
return Io(t.value) ? n({
|
|
2191
|
+
content: fe(U.value[r].labels.formatter, t.value, a({
|
|
2192
|
+
p: e.prefix || U.value.chart.labels.prefix,
|
|
2193
|
+
v: t.value,
|
|
2194
|
+
x: e.suffix || U.value.chart.labels.suffix,
|
|
2195
|
+
r: U.value[r].labels.rounding
|
|
2196
|
+
}), {
|
|
2197
|
+
datapoint: t,
|
|
2198
|
+
serie: e
|
|
2199
|
+
}),
|
|
2200
|
+
fontSize: H.value.plotLabels,
|
|
2201
|
+
fill: U.value[r].labels.color,
|
|
2202
|
+
x: 0,
|
|
2203
|
+
y: 0
|
|
2204
|
+
}) : "";
|
|
2205
|
+
}
|
|
2206
|
+
function nc({ plot: e }) {
|
|
2207
|
+
let t = U.value.bar.labels.offsetY, n = Math.abs(Vo(e)), r = e.value < 0, i = {
|
|
2208
|
+
x: (W.value.useIndividualScale && W.value.isStacked ? e.x + X.value.line / 2 : Uo(e) + Ho() / 2 - _s.value / 2) + U.value.bar.labels.offsetX,
|
|
2209
|
+
y: y(e.y) + (U.value.bar.labels.alwaysOnTop ? t - (r ? n : 0) : e.value >= 0 ? t : -t * 3)
|
|
2210
|
+
};
|
|
2211
|
+
return `translate(${i.x}, ${i.y}) rotate(${U.value.bar.labels.rotation})`;
|
|
2212
|
+
}
|
|
2213
|
+
function rc({ plot: e, type: t }) {
|
|
2214
|
+
let n = U.value[t].labels.offsetY, r = {
|
|
2215
|
+
x: e.x + U.value[t].labels.offsetX,
|
|
2216
|
+
y: y(e.y) + (U.value[t].labels.alwaysOnTop || e.value >= 0 ? n : -n * 3)
|
|
2217
|
+
};
|
|
2218
|
+
return `translate(${r.x}, ${r.y}) rotate(${U.value[t].labels.rotation})`;
|
|
2219
|
+
}
|
|
2220
|
+
function ic({ plot: e, type: t }) {
|
|
2221
|
+
if (U.value[t].labels.textAnchor != null) return U.value[t].labels.textAnchor;
|
|
2222
|
+
let n = e.value >= 0;
|
|
2223
|
+
return U.value[t].labels.rotation === 0 ? "middle" : U.value[t].labels.alwaysOnTop || n ? "start" : "end";
|
|
2224
|
+
}
|
|
2225
|
+
pt(() => P.dataset, (e) => {
|
|
2184
2226
|
Array.isArray(e) && e.length > 0 && (Sa.value = !1), Ea.value = Math.max(...xa.value.map((e) => Ta(e.series).length)), K.value = {
|
|
2185
2227
|
start: 0,
|
|
2186
2228
|
end: Ea.value
|
|
2187
|
-
},
|
|
2188
|
-
}, { deep: !0 }),
|
|
2189
|
-
|
|
2229
|
+
}, Oi.value += 1, Hi.value += 1, aa(), sa(), Aa();
|
|
2230
|
+
}, { deep: !0 }), pt(() => P.config, (e) => {
|
|
2231
|
+
G.value || (U.value = pa()), Ks(), Bi.value += 1, zi.value += 1, _a(), aa(), sa(), Aa();
|
|
2190
2232
|
}, { deep: !0 });
|
|
2191
|
-
let
|
|
2192
|
-
function
|
|
2193
|
-
let e =
|
|
2233
|
+
let ac = k(!1);
|
|
2234
|
+
function oc() {
|
|
2235
|
+
let e = mi.value?.parentNode;
|
|
2194
2236
|
if (!e) {
|
|
2195
|
-
|
|
2237
|
+
ac.value = !1;
|
|
2196
2238
|
return;
|
|
2197
2239
|
}
|
|
2198
2240
|
let t = e.getBoundingClientRect();
|
|
2199
|
-
|
|
2241
|
+
ac.value = t.width > 2 && t.height > 2;
|
|
2200
2242
|
}
|
|
2201
2243
|
ot(() => {
|
|
2202
|
-
|
|
2244
|
+
oc();
|
|
2203
2245
|
let e = new ResizeObserver(() => {
|
|
2204
|
-
|
|
2246
|
+
oc(), ac.value && (Ks(), Aa(), jo());
|
|
2205
2247
|
});
|
|
2206
|
-
|
|
2207
|
-
}),
|
|
2208
|
-
|
|
2248
|
+
mi.value?.parentNode && e.observe(mi.value.parentNode);
|
|
2249
|
+
}), pt(U, () => {
|
|
2250
|
+
_a();
|
|
2209
2251
|
}, { immediate: !0 });
|
|
2210
|
-
let
|
|
2211
|
-
let e =
|
|
2252
|
+
let sc = x(() => {
|
|
2253
|
+
let e = U.value.table.useDialog && !U.value.showTable, t = W.value.showTable;
|
|
2212
2254
|
return {
|
|
2213
|
-
component: e ?
|
|
2214
|
-
title: `${
|
|
2255
|
+
component: e ? si : Ke,
|
|
2256
|
+
title: `${U.value.chart.title.text}${U.value.chart.title.subtitle.text ? `: ${U.value.chart.title.subtitle.text}` : ""}`,
|
|
2215
2257
|
props: e ? {
|
|
2216
|
-
backgroundColor:
|
|
2217
|
-
color:
|
|
2218
|
-
headerColor:
|
|
2219
|
-
headerBg:
|
|
2220
|
-
isFullscreen:
|
|
2221
|
-
fullscreenParent:
|
|
2258
|
+
backgroundColor: U.value.table.th.backgroundColor,
|
|
2259
|
+
color: U.value.table.th.color,
|
|
2260
|
+
headerColor: U.value.table.th.color,
|
|
2261
|
+
headerBg: U.value.table.th.backgroundColor,
|
|
2262
|
+
isFullscreen: Fi.value,
|
|
2263
|
+
fullscreenParent: mi.value,
|
|
2222
2264
|
forcedWidth: Math.min(800, window.innerWidth * .8)
|
|
2223
2265
|
} : {
|
|
2224
2266
|
hideDetails: !0,
|
|
@@ -2226,65 +2268,65 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
2226
2268
|
open: t,
|
|
2227
2269
|
maxHeight: 1e4,
|
|
2228
2270
|
body: {
|
|
2229
|
-
backgroundColor:
|
|
2230
|
-
color:
|
|
2271
|
+
backgroundColor: U.value.chart.backgroundColor,
|
|
2272
|
+
color: U.value.chart.color
|
|
2231
2273
|
},
|
|
2232
2274
|
head: {
|
|
2233
|
-
backgroundColor:
|
|
2234
|
-
color:
|
|
2275
|
+
backgroundColor: U.value.chart.backgroundColor,
|
|
2276
|
+
color: U.value.chart.color
|
|
2235
2277
|
}
|
|
2236
2278
|
}
|
|
2237
2279
|
}
|
|
2238
2280
|
};
|
|
2239
2281
|
});
|
|
2240
|
-
|
|
2241
|
-
|
|
2282
|
+
pt(() => W.value.showTable, (e) => {
|
|
2283
|
+
U.value.showTable || (e && U.value.table.useDialog && Yi.value ? Yi.value.open() : Yi.value && Yi.value.close && Yi.value.close());
|
|
2242
2284
|
});
|
|
2243
|
-
function
|
|
2244
|
-
|
|
2285
|
+
function cc() {
|
|
2286
|
+
W.value.showTable = !1, Ti.value && Ti.value.setTableIconState(!1);
|
|
2245
2287
|
}
|
|
2246
|
-
let
|
|
2288
|
+
let lc = x(() => Ya.value.map((e) => ({
|
|
2247
2289
|
shape: e.type === "bar" ? "square" : e.shape ?? "circle",
|
|
2248
2290
|
color: e.color,
|
|
2249
2291
|
name: e.name
|
|
2250
|
-
}))),
|
|
2251
|
-
svg:
|
|
2252
|
-
title: x(() =>
|
|
2253
|
-
legend:
|
|
2254
|
-
legendItems:
|
|
2255
|
-
backgroundColor:
|
|
2292
|
+
}))), uc = x(() => U.value.chart.backgroundColor), dc = x(() => U.value.chart.legend), { exportSvg: fc, getSvg: pc } = Fe({
|
|
2293
|
+
svg: B,
|
|
2294
|
+
title: x(() => U.value.chart.title),
|
|
2295
|
+
legend: dc,
|
|
2296
|
+
legendItems: lc,
|
|
2297
|
+
backgroundColor: uc
|
|
2256
2298
|
});
|
|
2257
|
-
async function
|
|
2258
|
-
|
|
2299
|
+
async function mc({ isCb: e }) {
|
|
2300
|
+
Zi.value = !0, await rt();
|
|
2259
2301
|
try {
|
|
2260
2302
|
if (e) {
|
|
2261
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
2262
|
-
await Promise.resolve(
|
|
2303
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await pc();
|
|
2304
|
+
await Promise.resolve(U.value.chart.userOptions.callbacks.svg({
|
|
2263
2305
|
blob: e,
|
|
2264
2306
|
url: t,
|
|
2265
2307
|
text: n,
|
|
2266
2308
|
dataUrl: r
|
|
2267
2309
|
}));
|
|
2268
|
-
} else await Promise.resolve(
|
|
2310
|
+
} else await Promise.resolve(fc());
|
|
2269
2311
|
} finally {
|
|
2270
|
-
|
|
2312
|
+
Zi.value = !1;
|
|
2271
2313
|
}
|
|
2272
2314
|
}
|
|
2273
|
-
function
|
|
2315
|
+
function hc(e) {
|
|
2274
2316
|
if (e?.stage === "start") {
|
|
2275
|
-
|
|
2317
|
+
Xi.value = !0;
|
|
2276
2318
|
return;
|
|
2277
2319
|
}
|
|
2278
2320
|
if (e?.stage === "end") {
|
|
2279
|
-
|
|
2321
|
+
Xi.value = !1;
|
|
2280
2322
|
return;
|
|
2281
2323
|
}
|
|
2282
2324
|
Fa();
|
|
2283
2325
|
}
|
|
2284
|
-
async function
|
|
2285
|
-
if (
|
|
2326
|
+
async function gc() {
|
|
2327
|
+
if (ci("copyAlt", {
|
|
2286
2328
|
config: {
|
|
2287
|
-
...
|
|
2329
|
+
...U.value,
|
|
2288
2330
|
formattedDates: J.value
|
|
2289
2331
|
},
|
|
2290
2332
|
dataset: {
|
|
@@ -2292,13 +2334,13 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
2292
2334
|
bars: Ds.value,
|
|
2293
2335
|
plots: Os.value
|
|
2294
2336
|
}
|
|
2295
|
-
}), !
|
|
2337
|
+
}), !U.value.chart.userOptions.callbacks.altCopy) {
|
|
2296
2338
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
2297
2339
|
return;
|
|
2298
2340
|
}
|
|
2299
|
-
await Promise.resolve(
|
|
2341
|
+
await Promise.resolve(U.value.chart.userOptions.callbacks.altCopy({
|
|
2300
2342
|
config: {
|
|
2301
|
-
...
|
|
2343
|
+
...U.value,
|
|
2302
2344
|
formattedDates: J.value
|
|
2303
2345
|
},
|
|
2304
2346
|
dataset: {
|
|
@@ -2308,33 +2350,33 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
2308
2350
|
}
|
|
2309
2351
|
}));
|
|
2310
2352
|
}
|
|
2311
|
-
let
|
|
2312
|
-
function
|
|
2313
|
-
K.value.end > K.value.start && (
|
|
2353
|
+
let _c = k(!1);
|
|
2354
|
+
function vc() {
|
|
2355
|
+
K.value.end > K.value.start && (Qi.value = null), uo.value = !0, _c.value = !0;
|
|
2314
2356
|
}
|
|
2315
|
-
function
|
|
2316
|
-
|
|
2357
|
+
function yc() {
|
|
2358
|
+
Qi.value = null, Xo(), _c.value = !1, uo.value = !1;
|
|
2317
2359
|
}
|
|
2318
|
-
function
|
|
2319
|
-
if (!
|
|
2360
|
+
function bc(e) {
|
|
2361
|
+
if (!B.value || Pi.value || document.activeElement !== B.value) return;
|
|
2320
2362
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
|
|
2321
2363
|
if (!t && !n || !K.value.end && K.value.end !== 0) return;
|
|
2322
2364
|
let r = K.value.end - K.value.start;
|
|
2323
2365
|
if (r <= 0) return;
|
|
2324
2366
|
e.preventDefault(), e.stopPropagation();
|
|
2325
|
-
let i =
|
|
2326
|
-
i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : t && (--i, i < 0 && (i = r - 1)) : a !== null && a >= 0 && a < r ? (i = n ? a + 1 : a - 1, i >= r && (i = 0), i < 0 && (i = r - 1)) : i = n ? 0 : r - 1,
|
|
2367
|
+
let i = Qi.value, a = Ko.value;
|
|
2368
|
+
i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : t && (--i, i < 0 && (i = r - 1)) : a !== null && a >= 0 && a < r ? (i = n ? a + 1 : a - 1, i >= r && (i = 0), i < 0 && (i = r - 1)) : i = n ? 0 : r - 1, Qi.value = i, xc(i), Bs(!0, i);
|
|
2327
2369
|
}
|
|
2328
|
-
function
|
|
2370
|
+
function xc(e) {
|
|
2329
2371
|
let t = K.value.end - K.value.start;
|
|
2330
2372
|
if (t <= 0) return;
|
|
2331
|
-
let n = q.value.width / t, r = c(q.value.left + n * e + n / 2, q.value.top + q.value.height / 2,
|
|
2332
|
-
r && (
|
|
2373
|
+
let n = q.value.width / t, r = c(q.value.left + n * e + n / 2, q.value.top + q.value.height / 2, B.value);
|
|
2374
|
+
r && ($i.value = r);
|
|
2333
2375
|
}
|
|
2334
|
-
let
|
|
2376
|
+
let Sc = x(() => {
|
|
2335
2377
|
if (!Rs.value) return null;
|
|
2336
|
-
let e =
|
|
2337
|
-
e && (t = t.concat(
|
|
2378
|
+
let e = U.value.table.showSum, t = [U.value.table.columnNames.period].concat(Xa.value.map((e) => e.name));
|
|
2379
|
+
e && (t = t.concat(U.value.table.columnNames.total));
|
|
2338
2380
|
let n = Rs.value.body.slice(K.value.start, K.value.end);
|
|
2339
2381
|
return {
|
|
2340
2382
|
headers: t,
|
|
@@ -2346,7 +2388,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
2346
2388
|
getImage: es,
|
|
2347
2389
|
generatePdf: Pa,
|
|
2348
2390
|
generateImage: Fa,
|
|
2349
|
-
generateSvg:
|
|
2391
|
+
generateSvg: mc,
|
|
2350
2392
|
generateCsv: zs,
|
|
2351
2393
|
hideSeries: os,
|
|
2352
2394
|
showSeries: as,
|
|
@@ -2356,28 +2398,28 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
2356
2398
|
toggleTooltip: Us,
|
|
2357
2399
|
toggleAnnotator: po,
|
|
2358
2400
|
toggleFullscreen: Ws,
|
|
2359
|
-
copyAlt:
|
|
2401
|
+
copyAlt: gc
|
|
2360
2402
|
}), (r, i) => (O(), C("div", {
|
|
2361
|
-
id: `vue-ui-xy_${
|
|
2362
|
-
class: it(`vue-data-ui-component vue-ui-xy ${
|
|
2403
|
+
id: `vue-ui-xy_${R.value}`,
|
|
2404
|
+
class: it(`vue-data-ui-component vue-ui-xy ${Fi.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${U.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
2363
2405
|
ref_key: "chart",
|
|
2364
|
-
ref:
|
|
2365
|
-
style: D(`background:${
|
|
2406
|
+
ref: mi,
|
|
2407
|
+
style: D(`background:${U.value.chart.backgroundColor}; color:${U.value.chart.color};width:100%;font-family:${U.value.chart.fontFamily};${U.value.responsive ? "height: 100%" : ""}`),
|
|
2366
2408
|
onMouseenter: i[6] ||= () => fo(!0),
|
|
2367
2409
|
onMouseleave: i[7] ||= () => fo(!1),
|
|
2368
2410
|
onClick: Zo
|
|
2369
2411
|
}, [
|
|
2370
2412
|
w("div", {
|
|
2371
|
-
id: `chart-instructions-${
|
|
2413
|
+
id: `chart-instructions-${R.value}`,
|
|
2372
2414
|
class: "sr-only"
|
|
2373
|
-
}, [w("p", null,
|
|
2374
|
-
|
|
2415
|
+
}, [w("p", null, lt(U.value.a11y.translations.keyboardNavigation), 1)], 8, vt),
|
|
2416
|
+
Sc.value?.rows?.length ? (O(), Xe(Je, {
|
|
2375
2417
|
key: 0,
|
|
2376
|
-
uid:
|
|
2377
|
-
head:
|
|
2378
|
-
body:
|
|
2379
|
-
notice:
|
|
2380
|
-
caption:
|
|
2418
|
+
uid: R.value,
|
|
2419
|
+
head: Sc.value.headers,
|
|
2420
|
+
body: Sc.value.rows,
|
|
2421
|
+
notice: U.value.a11y.translations.tableAvailable,
|
|
2422
|
+
caption: U.value.a11y.translations.tableCaption
|
|
2381
2423
|
}, null, 8, [
|
|
2382
2424
|
"uid",
|
|
2383
2425
|
"head",
|
|
@@ -2385,21 +2427,21 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
2385
2427
|
"notice",
|
|
2386
2428
|
"caption"
|
|
2387
2429
|
])) : S("", !0),
|
|
2388
|
-
|
|
2430
|
+
U.value.chart.userOptions.buttons.annotator && B.value ? (O(), Xe(M(oi), {
|
|
2389
2431
|
key: 1,
|
|
2390
|
-
svgRef:
|
|
2391
|
-
backgroundColor:
|
|
2392
|
-
color:
|
|
2393
|
-
active:
|
|
2394
|
-
isCursorPointer:
|
|
2432
|
+
svgRef: B.value,
|
|
2433
|
+
backgroundColor: U.value.chart.backgroundColor,
|
|
2434
|
+
color: U.value.chart.color,
|
|
2435
|
+
active: Pi.value,
|
|
2436
|
+
isCursorPointer: ga.value,
|
|
2395
2437
|
onClose: po
|
|
2396
2438
|
}, {
|
|
2397
|
-
"annotator-action-close":
|
|
2398
|
-
"annotator-action-color":
|
|
2399
|
-
"annotator-action-draw":
|
|
2400
|
-
"annotator-action-undo":
|
|
2401
|
-
"annotator-action-redo":
|
|
2402
|
-
"annotator-action-delete":
|
|
2439
|
+
"annotator-action-close": N(() => [j(r.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
2440
|
+
"annotator-action-color": N(({ color: e }) => [j(r.$slots, "annotator-action-color", E(T({ color: e })), void 0, !0)]),
|
|
2441
|
+
"annotator-action-draw": N(({ mode: e }) => [j(r.$slots, "annotator-action-draw", E(T({ mode: e })), void 0, !0)]),
|
|
2442
|
+
"annotator-action-undo": N(({ disabled: e }) => [j(r.$slots, "annotator-action-undo", E(T({ disabled: e })), void 0, !0)]),
|
|
2443
|
+
"annotator-action-redo": N(({ disabled: e }) => [j(r.$slots, "annotator-action-redo", E(T({ disabled: e })), void 0, !0)]),
|
|
2444
|
+
"annotator-action-delete": N(({ disabled: e }) => [j(r.$slots, "annotator-action-delete", E(T({ disabled: e })), void 0, !0)]),
|
|
2403
2445
|
_: 3
|
|
2404
2446
|
}, 8, [
|
|
2405
2447
|
"svgRef",
|
|
@@ -2411,77 +2453,77 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
2411
2453
|
ls.value ? (O(), C("div", {
|
|
2412
2454
|
key: 2,
|
|
2413
2455
|
ref_key: "noTitle",
|
|
2414
|
-
ref:
|
|
2456
|
+
ref: yi,
|
|
2415
2457
|
class: "vue-data-ui-no-title-space",
|
|
2416
2458
|
style: "height:36px; width: 100%; background:transparent"
|
|
2417
2459
|
}, null, 512)) : S("", !0),
|
|
2418
|
-
|
|
2460
|
+
U.value.chart.title.show ? (O(), C("div", {
|
|
2419
2461
|
key: 3,
|
|
2420
2462
|
ref_key: "chartTitle",
|
|
2421
|
-
ref:
|
|
2463
|
+
ref: hi,
|
|
2422
2464
|
class: "vue-ui-xy-title",
|
|
2423
|
-
style: D(`font-family:${
|
|
2465
|
+
style: D(`font-family:${U.value.chart.fontFamily}`)
|
|
2424
2466
|
}, [(O(), Xe(Ve, {
|
|
2425
|
-
key: `title_${
|
|
2467
|
+
key: `title_${Bi.value}`,
|
|
2426
2468
|
config: {
|
|
2427
2469
|
title: {
|
|
2428
2470
|
cy: "xy-div-title",
|
|
2429
|
-
...
|
|
2471
|
+
...U.value.chart.title
|
|
2430
2472
|
},
|
|
2431
2473
|
subtitle: {
|
|
2432
2474
|
cy: "xy-div-subtitle",
|
|
2433
|
-
...
|
|
2475
|
+
...U.value.chart.title.subtitle
|
|
2434
2476
|
}
|
|
2435
2477
|
}
|
|
2436
2478
|
}, null, 8, ["config"]))], 4)) : S("", !0),
|
|
2437
|
-
w("div", { id: `legend-top-${
|
|
2438
|
-
|
|
2479
|
+
w("div", { id: `legend-top-${R.value}` }, null, 8, yt),
|
|
2480
|
+
U.value.chart.userOptions.show && (Wi.value || Gi.value) ? (O(), Xe(M(ni), {
|
|
2439
2481
|
ref_key: "userOptionsRef",
|
|
2440
|
-
ref:
|
|
2441
|
-
key: `user_options_${
|
|
2442
|
-
backgroundColor:
|
|
2443
|
-
color:
|
|
2444
|
-
isPrinting:
|
|
2445
|
-
isImaging:
|
|
2446
|
-
uid:
|
|
2447
|
-
hasTooltip:
|
|
2448
|
-
hasPdf:
|
|
2449
|
-
hasXls:
|
|
2450
|
-
hasImg:
|
|
2451
|
-
hasSvg:
|
|
2452
|
-
hasLabel:
|
|
2453
|
-
hasTable:
|
|
2454
|
-
hasStack: e.dataset.length > 1 &&
|
|
2455
|
-
hasFullscreen:
|
|
2456
|
-
hasAltCopy:
|
|
2457
|
-
isStacked:
|
|
2458
|
-
isFullscreen:
|
|
2482
|
+
ref: Ti,
|
|
2483
|
+
key: `user_options_${Ri.value}`,
|
|
2484
|
+
backgroundColor: U.value.chart.backgroundColor,
|
|
2485
|
+
color: U.value.chart.color,
|
|
2486
|
+
isPrinting: M(Ma),
|
|
2487
|
+
isImaging: M(Na),
|
|
2488
|
+
uid: R.value,
|
|
2489
|
+
hasTooltip: U.value.chart.userOptions.buttons.tooltip && U.value.chart.tooltip.show,
|
|
2490
|
+
hasPdf: U.value.chart.userOptions.buttons.pdf,
|
|
2491
|
+
hasXls: U.value.chart.userOptions.buttons.csv,
|
|
2492
|
+
hasImg: U.value.chart.userOptions.buttons.img,
|
|
2493
|
+
hasSvg: U.value.chart.userOptions.buttons.svg,
|
|
2494
|
+
hasLabel: U.value.chart.userOptions.buttons.labels,
|
|
2495
|
+
hasTable: U.value.chart.userOptions.buttons.table,
|
|
2496
|
+
hasStack: e.dataset.length > 1 && U.value.chart.userOptions.buttons.stack,
|
|
2497
|
+
hasFullscreen: U.value.chart.userOptions.buttons.fullscreen,
|
|
2498
|
+
hasAltCopy: U.value.chart.userOptions.buttons.altCopy,
|
|
2499
|
+
isStacked: W.value.isStacked,
|
|
2500
|
+
isFullscreen: Fi.value,
|
|
2459
2501
|
chartElement: r.$refs.chart,
|
|
2460
|
-
position:
|
|
2461
|
-
isTooltip:
|
|
2462
|
-
titles: { ...
|
|
2463
|
-
hasAnnotator:
|
|
2464
|
-
isAnnotation:
|
|
2465
|
-
callbacks:
|
|
2466
|
-
tableDialog:
|
|
2467
|
-
printScale:
|
|
2468
|
-
isCursorPointer:
|
|
2502
|
+
position: U.value.chart.userOptions.position,
|
|
2503
|
+
isTooltip: W.value.showTooltip,
|
|
2504
|
+
titles: { ...U.value.chart.userOptions.buttonTitles },
|
|
2505
|
+
hasAnnotator: U.value.chart.userOptions.buttons.annotator,
|
|
2506
|
+
isAnnotation: Pi.value,
|
|
2507
|
+
callbacks: U.value.chart.userOptions.callbacks,
|
|
2508
|
+
tableDialog: U.value.table.useDialog,
|
|
2509
|
+
printScale: U.value.chart.userOptions.print.scale,
|
|
2510
|
+
isCursorPointer: ga.value,
|
|
2469
2511
|
onToggleFullscreen: Ws,
|
|
2470
|
-
onGeneratePdf:
|
|
2512
|
+
onGeneratePdf: M(Pa),
|
|
2471
2513
|
onGenerateCsv: zs,
|
|
2472
|
-
onGenerateImage:
|
|
2473
|
-
onGenerateSvg:
|
|
2514
|
+
onGenerateImage: hc,
|
|
2515
|
+
onGenerateSvg: mc,
|
|
2474
2516
|
onToggleTable: Vs,
|
|
2475
2517
|
onToggleLabels: Hs,
|
|
2476
2518
|
onToggleStack: So,
|
|
2477
2519
|
onToggleTooltip: Us,
|
|
2478
2520
|
onToggleAnnotator: po,
|
|
2479
|
-
onCopyAlt:
|
|
2480
|
-
style: D({ visibility:
|
|
2521
|
+
onCopyAlt: gc,
|
|
2522
|
+
style: D({ visibility: Wi.value ? Gi.value ? "visible" : "hidden" : "visible" })
|
|
2481
2523
|
}, Ze({ _: 2 }, [
|
|
2482
2524
|
r.$slots.menuIcon ? {
|
|
2483
2525
|
name: "menuIcon",
|
|
2484
|
-
fn:
|
|
2526
|
+
fn: N(({ isOpen: e, color: t }) => [j(r.$slots, "menuIcon", E(T({
|
|
2485
2527
|
isOpen: e,
|
|
2486
2528
|
color: t
|
|
2487
2529
|
})), void 0, !0)]),
|
|
@@ -2489,47 +2531,47 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
2489
2531
|
} : void 0,
|
|
2490
2532
|
r.$slots.optionTooltip ? {
|
|
2491
2533
|
name: "optionTooltip",
|
|
2492
|
-
fn:
|
|
2534
|
+
fn: N(() => [j(r.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
2493
2535
|
key: "1"
|
|
2494
2536
|
} : void 0,
|
|
2495
2537
|
r.$slots.optionPdf ? {
|
|
2496
2538
|
name: "optionPdf",
|
|
2497
|
-
fn:
|
|
2539
|
+
fn: N(() => [j(r.$slots, "optionPdf", {}, void 0, !0)]),
|
|
2498
2540
|
key: "2"
|
|
2499
2541
|
} : void 0,
|
|
2500
2542
|
r.$slots.optionCsv ? {
|
|
2501
2543
|
name: "optionCsv",
|
|
2502
|
-
fn:
|
|
2544
|
+
fn: N(() => [j(r.$slots, "optionCsv", {}, void 0, !0)]),
|
|
2503
2545
|
key: "3"
|
|
2504
2546
|
} : void 0,
|
|
2505
2547
|
r.$slots.optionImg ? {
|
|
2506
2548
|
name: "optionImg",
|
|
2507
|
-
fn:
|
|
2549
|
+
fn: N(() => [j(r.$slots, "optionImg", {}, void 0, !0)]),
|
|
2508
2550
|
key: "4"
|
|
2509
2551
|
} : void 0,
|
|
2510
2552
|
r.$slots.optionSvg ? {
|
|
2511
2553
|
name: "optionSvg",
|
|
2512
|
-
fn:
|
|
2554
|
+
fn: N(() => [j(r.$slots, "optionSvg", {}, void 0, !0)]),
|
|
2513
2555
|
key: "5"
|
|
2514
2556
|
} : void 0,
|
|
2515
2557
|
r.$slots.optionTable ? {
|
|
2516
2558
|
name: "optionTable",
|
|
2517
|
-
fn:
|
|
2559
|
+
fn: N(() => [j(r.$slots, "optionTable", {}, void 0, !0)]),
|
|
2518
2560
|
key: "6"
|
|
2519
2561
|
} : void 0,
|
|
2520
2562
|
r.$slots.optionLabels ? {
|
|
2521
2563
|
name: "optionLabels",
|
|
2522
|
-
fn:
|
|
2564
|
+
fn: N(() => [j(r.$slots, "optionLabels", {}, void 0, !0)]),
|
|
2523
2565
|
key: "7"
|
|
2524
2566
|
} : void 0,
|
|
2525
2567
|
r.$slots.optionStack ? {
|
|
2526
2568
|
name: "optionStack",
|
|
2527
|
-
fn:
|
|
2569
|
+
fn: N(({ isStack: e }) => [j(r.$slots, "optionStack", E(T({ isStack: e })), void 0, !0)]),
|
|
2528
2570
|
key: "8"
|
|
2529
2571
|
} : void 0,
|
|
2530
2572
|
r.$slots.optionFullscreen ? {
|
|
2531
2573
|
name: "optionFullscreen",
|
|
2532
|
-
fn:
|
|
2574
|
+
fn: N(({ toggleFullscreen: e, isFullscreen: t }) => [j(r.$slots, "optionFullscreen", E(T({
|
|
2533
2575
|
toggleFullscreen: e,
|
|
2534
2576
|
isFullscreen: t
|
|
2535
2577
|
})), void 0, !0)]),
|
|
@@ -2537,7 +2579,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
2537
2579
|
} : void 0,
|
|
2538
2580
|
r.$slots.optionAnnotator ? {
|
|
2539
2581
|
name: "optionAnnotator",
|
|
2540
|
-
fn:
|
|
2582
|
+
fn: N(({ toggleAnnotator: e, isAnnotator: t }) => [j(r.$slots, "optionAnnotator", E(T({
|
|
2541
2583
|
toggleAnnotator: e,
|
|
2542
2584
|
isAnnotator: t
|
|
2543
2585
|
})), void 0, !0)]),
|
|
@@ -2545,27 +2587,27 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
2545
2587
|
} : void 0,
|
|
2546
2588
|
r.$slots.optionAltCopy ? {
|
|
2547
2589
|
name: "optionAltCopy",
|
|
2548
|
-
fn:
|
|
2590
|
+
fn: N(({ altCopy: e }) => [j(r.$slots, "optionAltCopy", E(T({ altCopy: e })), void 0, !0)]),
|
|
2549
2591
|
key: "11"
|
|
2550
2592
|
} : void 0
|
|
2551
2593
|
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasLabel.hasTable.hasStack.hasFullscreen.hasAltCopy.isStacked.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.tableDialog.printScale.isCursorPointer.onGeneratePdf.style".split("."))) : S("", !0),
|
|
2552
|
-
w("div",
|
|
2594
|
+
w("div", bt, [(O(), C("svg", {
|
|
2553
2595
|
ref_key: "svgRef",
|
|
2554
|
-
ref:
|
|
2596
|
+
ref: B,
|
|
2555
2597
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2556
2598
|
class: it([{
|
|
2557
|
-
"vue-data-ui-fullscreen--on":
|
|
2558
|
-
"vue-data-ui-fulscreen--off": !
|
|
2599
|
+
"vue-data-ui-fullscreen--on": Fi.value,
|
|
2600
|
+
"vue-data-ui-fulscreen--off": !Fi.value
|
|
2559
2601
|
}, "vue-ui-xy-svg vue-data-ui-svg"]),
|
|
2560
2602
|
width: "100%",
|
|
2561
|
-
viewBox:
|
|
2603
|
+
viewBox: ji.value,
|
|
2562
2604
|
style: D({
|
|
2563
2605
|
background: "transparent",
|
|
2564
|
-
color:
|
|
2565
|
-
fontFamily:
|
|
2606
|
+
color: U.value.chart.color,
|
|
2607
|
+
fontFamily: U.value.chart.fontFamily
|
|
2566
2608
|
}),
|
|
2567
2609
|
"aria-label": ss.value,
|
|
2568
|
-
"aria-describedby": `chart-instructions-${
|
|
2610
|
+
"aria-describedby": `chart-instructions-${R.value}`,
|
|
2569
2611
|
"aria-live": "polite",
|
|
2570
2612
|
role: "img",
|
|
2571
2613
|
tabindex: "0",
|
|
@@ -2573,133 +2615,133 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
2573
2615
|
onMousemove: Yo,
|
|
2574
2616
|
onMouseleave: Xo,
|
|
2575
2617
|
onClick: Zo,
|
|
2576
|
-
onFocus:
|
|
2577
|
-
onBlur:
|
|
2578
|
-
onKeydown:
|
|
2618
|
+
onFocus: vc,
|
|
2619
|
+
onBlur: yc,
|
|
2620
|
+
onKeydown: bc
|
|
2579
2621
|
}, [w("g", {
|
|
2580
2622
|
ref_key: "G",
|
|
2581
|
-
ref:
|
|
2623
|
+
ref: bi,
|
|
2582
2624
|
class: "vue-data-ui-g"
|
|
2583
2625
|
}, [
|
|
2584
|
-
$e(
|
|
2626
|
+
$e(M(ai)),
|
|
2585
2627
|
r.$slots["chart-background"] ? (O(), C("foreignObject", {
|
|
2586
2628
|
key: 0,
|
|
2587
2629
|
x: q.value?.left + Z.value < 0 ? 0 : q.value?.left + Z.value,
|
|
2588
2630
|
y: q.value?.top,
|
|
2589
|
-
width: q.value.width - (
|
|
2631
|
+
width: q.value.width - (U.value.chart.grid.position === "middle" ? 0 : q.value.width / Y.value) < 0 ? 0 : q.value.width - (U.value.chart.grid.position === "middle" ? 0 : q.value.width / Y.value),
|
|
2590
2632
|
height: q.value.height < 0 ? 0 : q.value.height,
|
|
2591
2633
|
style: { pointerEvents: "none" }
|
|
2592
|
-
}, [j(r.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
2593
|
-
Y.value > 0 ? (O(), C("g",
|
|
2594
|
-
w("g",
|
|
2595
|
-
|
|
2634
|
+
}, [j(r.$slots, "chart-background", {}, void 0, !0)], 8, St)) : S("", !0),
|
|
2635
|
+
Y.value > 0 ? (O(), C("g", Ct, [
|
|
2636
|
+
w("g", wt, [
|
|
2637
|
+
U.value.chart.grid.labels.xAxis.showBaseline ? (O(), C("line", {
|
|
2596
2638
|
key: 0,
|
|
2597
|
-
stroke:
|
|
2639
|
+
stroke: U.value.chart.grid.stroke,
|
|
2598
2640
|
"stroke-width": "1",
|
|
2599
2641
|
x1: q.value?.left + Z.value,
|
|
2600
2642
|
x2: q.value?.right - Z.value,
|
|
2601
|
-
y1:
|
|
2602
|
-
y2:
|
|
2643
|
+
y1: M(v)(q.value?.bottom),
|
|
2644
|
+
y2: M(v)(q.value?.bottom),
|
|
2603
2645
|
"stroke-linecap": "round",
|
|
2604
2646
|
style: { animation: "none !important" }
|
|
2605
|
-
}, null, 8,
|
|
2606
|
-
|
|
2647
|
+
}, null, 8, Tt)) : S("", !0),
|
|
2648
|
+
W.value.useIndividualScale ? U.value.chart.grid.showHorizontalLines ? (O(!0), C(b, { key: 2 }, A(ks.value, (e) => (O(), C("g", null, [e.id === F.value && e.yLabels.length ? (O(!0), C(b, { key: 0 }, A(e.yLabels, (t) => (O(), C("line", {
|
|
2607
2649
|
x1: q.value?.left + Z.value,
|
|
2608
2650
|
x2: q.value?.right - Z.value,
|
|
2609
|
-
y1:
|
|
2610
|
-
y2:
|
|
2651
|
+
y1: M(v)(t.y),
|
|
2652
|
+
y2: M(v)(t.y),
|
|
2611
2653
|
stroke: e.color,
|
|
2612
2654
|
"stroke-width": .5,
|
|
2613
2655
|
"stroke-linecap": "round",
|
|
2614
2656
|
style: { animation: "none !important" }
|
|
2615
|
-
}, null, 8,
|
|
2657
|
+
}, null, 8, kt))), 256)) : e.yLabels.length ? (O(!0), C(b, { key: 1 }, A(e.yLabels, (e) => (O(), C("line", {
|
|
2616
2658
|
x1: q.value?.left + Z.value,
|
|
2617
2659
|
x2: q.value?.right - Z.value,
|
|
2618
|
-
y1:
|
|
2619
|
-
y2:
|
|
2620
|
-
stroke:
|
|
2660
|
+
y1: M(v)(e.y),
|
|
2661
|
+
y2: M(v)(e.y),
|
|
2662
|
+
stroke: U.value.chart.grid.stroke,
|
|
2621
2663
|
"stroke-width": .5,
|
|
2622
2664
|
"stroke-linecap": "round",
|
|
2623
2665
|
style: { animation: "none !important" }
|
|
2624
|
-
}, null, 8,
|
|
2666
|
+
}, null, 8, At))), 256)) : S("", !0)]))), 256)) : S("", !0) : (O(), C(b, { key: 1 }, [U.value.chart.grid.labels.yAxis.showBaseline ? (O(), C("line", {
|
|
2625
2667
|
key: 0,
|
|
2626
|
-
stroke:
|
|
2668
|
+
stroke: U.value.chart.grid.stroke,
|
|
2627
2669
|
"stroke-width": "1",
|
|
2628
2670
|
x1: q.value?.left + Z.value,
|
|
2629
2671
|
x2: q.value?.left + Z.value,
|
|
2630
|
-
y1:
|
|
2631
|
-
y2:
|
|
2672
|
+
y1: M(v)(q.value?.top),
|
|
2673
|
+
y2: M(v)(q.value?.bottom),
|
|
2632
2674
|
"stroke-linecap": "round",
|
|
2633
2675
|
style: { animation: "none !important" }
|
|
2634
|
-
}, null, 8,
|
|
2676
|
+
}, null, 8, Et)) : S("", !0), U.value.chart.grid.showHorizontalLines ? (O(), C("g", Dt, [(O(!0), C(b, null, A(Cs.value, (e) => (O(), C("line", {
|
|
2635
2677
|
x1: q.value?.left + Z.value,
|
|
2636
2678
|
x2: q.value?.right,
|
|
2637
|
-
y1:
|
|
2638
|
-
y2:
|
|
2639
|
-
stroke:
|
|
2679
|
+
y1: M(v)(e.y),
|
|
2680
|
+
y2: M(v)(e.y),
|
|
2681
|
+
stroke: U.value.chart.grid.stroke,
|
|
2640
2682
|
"stroke-width": .5,
|
|
2641
2683
|
"stroke-linecap": "round",
|
|
2642
2684
|
style: { animation: "none !important" }
|
|
2643
|
-
}, null, 8,
|
|
2644
|
-
|
|
2685
|
+
}, null, 8, Ot))), 256))])) : S("", !0)], 64)),
|
|
2686
|
+
U.value.chart.grid.showVerticalLines ? (O(), C("g", jt, [w("path", {
|
|
2645
2687
|
d: io.value,
|
|
2646
2688
|
"stroke-width": .5,
|
|
2647
|
-
stroke:
|
|
2689
|
+
stroke: U.value.chart.grid.stroke,
|
|
2648
2690
|
"stroke-linecap": "round",
|
|
2649
2691
|
style: { animation: "none !important" }
|
|
2650
|
-
}, null, 8,
|
|
2651
|
-
|
|
2692
|
+
}, null, 8, Mt)])) : S("", !0),
|
|
2693
|
+
U.value.chart.grid.labels.xAxisLabels.show ? (O(), C("g", Nt, [w("path", {
|
|
2652
2694
|
d: ao.value,
|
|
2653
|
-
stroke:
|
|
2695
|
+
stroke: U.value.chart.grid.stroke,
|
|
2654
2696
|
"stroke-width": 1,
|
|
2655
2697
|
"stroke-linecap": "round",
|
|
2656
2698
|
style: { animation: "none !important" }
|
|
2657
|
-
}, null, 8,
|
|
2699
|
+
}, null, 8, Pt)])) : S("", !0)
|
|
2658
2700
|
]),
|
|
2659
2701
|
(O(!0), C(b, null, A(Ds.value, (e, t) => (O(), C("defs", { key: `def_rect_${t}` }, [r.$slots["bar-gradient"] ? j(r.$slots, "bar-gradient", nt({
|
|
2660
2702
|
key: 0,
|
|
2661
2703
|
ref_for: !0
|
|
2662
2704
|
}, {
|
|
2663
2705
|
series: e,
|
|
2664
|
-
positiveId: `rectGradient_pos_${t}_${
|
|
2665
|
-
negativeId: `rectGradient_neg_${t}_${
|
|
2706
|
+
positiveId: `rectGradient_pos_${t}_${R.value}`,
|
|
2707
|
+
negativeId: `rectGradient_neg_${t}_${R.value}`
|
|
2666
2708
|
}), void 0, !0) : (O(), C(b, { key: 1 }, [w("linearGradient", {
|
|
2667
|
-
id: `rectGradient_pos_${t}_${
|
|
2709
|
+
id: `rectGradient_pos_${t}_${R.value}`,
|
|
2668
2710
|
x2: "0%",
|
|
2669
2711
|
y2: "100%"
|
|
2670
2712
|
}, [
|
|
2671
2713
|
w("stop", {
|
|
2672
2714
|
offset: "0%",
|
|
2673
2715
|
"stop-color": e.color
|
|
2674
|
-
}, null, 8,
|
|
2716
|
+
}, null, 8, It),
|
|
2675
2717
|
w("stop", {
|
|
2676
2718
|
offset: "62%",
|
|
2677
|
-
"stop-color": `${
|
|
2678
|
-
}, null, 8,
|
|
2719
|
+
"stop-color": `${M(d)(e.color, .02)}`
|
|
2720
|
+
}, null, 8, Lt),
|
|
2679
2721
|
w("stop", {
|
|
2680
2722
|
offset: "100%",
|
|
2681
|
-
"stop-color": `${
|
|
2682
|
-
}, null, 8,
|
|
2683
|
-
], 8,
|
|
2684
|
-
id: `rectGradient_neg_${t}_${
|
|
2723
|
+
"stop-color": `${M(d)(e.color, .05)}`
|
|
2724
|
+
}, null, 8, Rt)
|
|
2725
|
+
], 8, Ft), w("linearGradient", {
|
|
2726
|
+
id: `rectGradient_neg_${t}_${R.value}`,
|
|
2685
2727
|
x2: "0%",
|
|
2686
2728
|
y2: "100%"
|
|
2687
2729
|
}, [
|
|
2688
2730
|
w("stop", {
|
|
2689
2731
|
offset: "0%",
|
|
2690
|
-
"stop-color": `${
|
|
2691
|
-
}, null, 8,
|
|
2732
|
+
"stop-color": `${M(d)(e.color, .05)}`
|
|
2733
|
+
}, null, 8, Bt),
|
|
2692
2734
|
w("stop", {
|
|
2693
2735
|
offset: "38%",
|
|
2694
|
-
"stop-color": `${
|
|
2695
|
-
}, null, 8,
|
|
2736
|
+
"stop-color": `${M(d)(e.color, .02)}`
|
|
2737
|
+
}, null, 8, Vt),
|
|
2696
2738
|
w("stop", {
|
|
2697
2739
|
offset: "100%",
|
|
2698
2740
|
"stop-color": e.color
|
|
2699
|
-
}, null, 8,
|
|
2700
|
-
], 8,
|
|
2741
|
+
}, null, 8, Ht)
|
|
2742
|
+
], 8, zt)], 64))]))), 128)),
|
|
2701
2743
|
(O(!0), C(b, null, A(Os.value, (e, t) => (O(), C("defs", { key: `def_plot_${t}` }, [w("radialGradient", {
|
|
2702
|
-
id: `plotGradient_${t}_${
|
|
2744
|
+
id: `plotGradient_${t}_${R.value}`,
|
|
2703
2745
|
cx: "50%",
|
|
2704
2746
|
cy: "50%",
|
|
2705
2747
|
r: "50%",
|
|
@@ -2707,13 +2749,13 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
2707
2749
|
fy: "50%"
|
|
2708
2750
|
}, [w("stop", {
|
|
2709
2751
|
offset: "0%",
|
|
2710
|
-
"stop-color": `${
|
|
2711
|
-
}, null, 8,
|
|
2752
|
+
"stop-color": `${M(d)(e.color, .05)}`
|
|
2753
|
+
}, null, 8, Wt), w("stop", {
|
|
2712
2754
|
offset: "100%",
|
|
2713
2755
|
"stop-color": e.color
|
|
2714
|
-
}, null, 8,
|
|
2756
|
+
}, null, 8, Gt)], 8, Ut)]))), 128)),
|
|
2715
2757
|
(O(!0), C(b, null, A($.value, (e, n) => (O(), C(b, { key: `def_line_${e.id}` }, [w("defs", null, [w("radialGradient", {
|
|
2716
|
-
id: `lineGradient_${n}_${
|
|
2758
|
+
id: `lineGradient_${n}_${R.value}`,
|
|
2717
2759
|
cx: "50%",
|
|
2718
2760
|
cy: "50%",
|
|
2719
2761
|
r: "50%",
|
|
@@ -2721,37 +2763,37 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
2721
2763
|
fy: "50%"
|
|
2722
2764
|
}, [w("stop", {
|
|
2723
2765
|
offset: "0%",
|
|
2724
|
-
"stop-color": `${
|
|
2725
|
-
}, null, 8,
|
|
2766
|
+
"stop-color": `${M(d)(e.color, .05)}`
|
|
2767
|
+
}, null, 8, qt), w("stop", {
|
|
2726
2768
|
offset: "100%",
|
|
2727
2769
|
"stop-color": e.color
|
|
2728
|
-
}, null, 8,
|
|
2770
|
+
}, null, 8, Jt)], 8, Kt), r.$slots["area-gradient"] ? j(r.$slots, "area-gradient", nt({
|
|
2729
2771
|
key: 0,
|
|
2730
2772
|
ref_for: !0
|
|
2731
2773
|
}, {
|
|
2732
2774
|
series: e,
|
|
2733
|
-
id: `areaGradient_${n}_${
|
|
2775
|
+
id: `areaGradient_${n}_${R.value}`
|
|
2734
2776
|
}), void 0, !0) : (O(), C("linearGradient", {
|
|
2735
2777
|
key: 1,
|
|
2736
|
-
id: `areaGradient_${n}_${
|
|
2778
|
+
id: `areaGradient_${n}_${R.value}`,
|
|
2737
2779
|
x1: "0%",
|
|
2738
2780
|
x2: "100%",
|
|
2739
2781
|
y1: "0%",
|
|
2740
2782
|
y2: "0%"
|
|
2741
2783
|
}, [w("stop", {
|
|
2742
2784
|
offset: "0%",
|
|
2743
|
-
"stop-color": `${
|
|
2744
|
-
}, null, 8,
|
|
2785
|
+
"stop-color": `${M(me)(M(d)(e.color, .03), U.value.line.area.opacity)}`
|
|
2786
|
+
}, null, 8, Xt), w("stop", {
|
|
2745
2787
|
offset: "100%",
|
|
2746
|
-
"stop-color": `${
|
|
2747
|
-
}, null, 8,
|
|
2748
|
-
id: `temperature_grad_line_${n}_${
|
|
2788
|
+
"stop-color": `${M(me)(e.color, U.value.line.area.opacity)}`
|
|
2789
|
+
}, null, 8, Zt)], 8, Yt))]), e.temperatureColors ? (O(), C("defs", Qt, [w("linearGradient", {
|
|
2790
|
+
id: `temperature_grad_line_${n}_${R.value}`,
|
|
2749
2791
|
gradientTransform: "rotate(90)"
|
|
2750
2792
|
}, [(O(!0), C(b, null, A(e.temperatureColors, (r, i) => (O(), C("stop", {
|
|
2751
|
-
key: `temperature_grad_stop_${n}_${i}_${
|
|
2793
|
+
key: `temperature_grad_stop_${n}_${i}_${R.value}`,
|
|
2752
2794
|
"stop-color": r,
|
|
2753
|
-
offset:
|
|
2754
|
-
}, null, 8,
|
|
2795
|
+
offset: M(t)(i, e.temperatureColors.length)
|
|
2796
|
+
}, null, 8, en))), 128))], 8, $t)])) : S("", !0)], 64))), 128)),
|
|
2755
2797
|
(O(!0), C(b, null, A(us.value, (e) => (O(), C("g", null, [e.show ? (O(), C(b, { key: 0 }, [(O(!0), C(b, null, A(e.span, (t, n) => (O(), C("g", null, [w("rect", {
|
|
2756
2798
|
style: D({
|
|
2757
2799
|
transition: "none",
|
|
@@ -2761,8 +2803,8 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
2761
2803
|
y: q.value?.top,
|
|
2762
2804
|
height: q.value.height < 0 ? 10 : q.value.height,
|
|
2763
2805
|
width: q.value.width / Y.value < 0 ? 1e-5 : q.value.width / Y.value,
|
|
2764
|
-
fill:
|
|
2765
|
-
}, null, 12,
|
|
2806
|
+
fill: M(me)(e.color, e.opacity)
|
|
2807
|
+
}, null, 12, tn)]))), 256)), (O(!0), C(b, null, A(e.span, (t, n) => (O(), C("g", null, [e.caption.text && n === 0 ? (O(), C("foreignObject", {
|
|
2766
2808
|
key: 0,
|
|
2767
2809
|
x: q.value?.left + q.value.width / Y.value * (e.from + n - K.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - q.value.width / Y.value * e.span / 2),
|
|
2768
2810
|
y: q.value?.top + e.caption.offsetY,
|
|
@@ -2772,92 +2814,92 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
2772
2814
|
}),
|
|
2773
2815
|
height: "1",
|
|
2774
2816
|
width: e.caption.width === "auto" ? q.value.width / Y.value * e.span : e.caption.width
|
|
2775
|
-
}, [w("div", { style: D(`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"}`) },
|
|
2776
|
-
uo.value ? (O(), C("g",
|
|
2817
|
+
}, [w("div", { style: D(`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"}`) }, lt(e.caption.text), 5)], 12, nn)) : S("", !0)]))), 256))], 64)) : S("", !0)]))), 256)),
|
|
2818
|
+
uo.value ? (O(), C("g", rn, [(O(!0), C(b, null, A(Y.value, (e, t) => (O(), C("g", { key: `tooltip_trap_highlighter_${t}` }, [w("rect", {
|
|
2777
2819
|
x: q.value?.left + q.value.width / Y.value * t,
|
|
2778
2820
|
y: q.value?.top,
|
|
2779
2821
|
height: q.value.height < 0 ? 10 : q.value.height,
|
|
2780
2822
|
width: q.value.width / Y.value < 0 ? 1e-5 : q.value.width / Y.value,
|
|
2781
2823
|
fill: [
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
].includes(t) ?
|
|
2824
|
+
z.value,
|
|
2825
|
+
V.value,
|
|
2826
|
+
Li.value
|
|
2827
|
+
].includes(t) ? M(me)(U.value.chart.highlighter.color, U.value.chart.highlighter.opacity) : "transparent",
|
|
2786
2828
|
style: {
|
|
2787
2829
|
transition: "none !important",
|
|
2788
2830
|
animation: "none !important"
|
|
2789
2831
|
}
|
|
2790
|
-
}, null, 8,
|
|
2832
|
+
}, null, 8, an)]))), 128))])) : S("", !0),
|
|
2791
2833
|
Ds.value.length ? (O(!0), C(b, { key: 1 }, A(Ds.value, (e, t) => (O(), C("g", {
|
|
2792
2834
|
key: `serie_bar_${e.id}`,
|
|
2793
2835
|
class: it(`serie_bar_${t}`),
|
|
2794
|
-
style: D(`opacity:${
|
|
2836
|
+
style: D(`opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2795
2837
|
}, [(O(!0), C(b, null, A(e.plots, (n, i) => (O(), C("g", { key: `bar_plot_${t}_${i}` }, [
|
|
2796
2838
|
Io(n.value) ? (O(), C("rect", {
|
|
2797
2839
|
key: 0,
|
|
2798
2840
|
x: Uo(n) + ys.value / 2,
|
|
2799
|
-
y:
|
|
2800
|
-
height:
|
|
2841
|
+
y: W.value.useIndividualScale ? Go(n) : Wo(n),
|
|
2842
|
+
height: W.value.useIndividualScale ? Math.abs(Vo(n)) : Math.abs(Bo(n)),
|
|
2801
2843
|
width: vs.value - ys.value,
|
|
2802
|
-
rx:
|
|
2803
|
-
fill:
|
|
2804
|
-
stroke:
|
|
2805
|
-
"stroke-width":
|
|
2806
|
-
style: D({ transition:
|
|
2807
|
-
}, null, 12,
|
|
2844
|
+
rx: U.value.bar.borderRadius,
|
|
2845
|
+
fill: U.value.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${t}_${R.value})` : `url(#rectGradient_neg_${t}_${R.value})` : e.color,
|
|
2846
|
+
stroke: U.value.bar.border.useSerieColor ? e.color : U.value.bar.border.stroke,
|
|
2847
|
+
"stroke-width": U.value.bar.border.strokeWidth,
|
|
2848
|
+
style: D({ transition: M(G) || !U.value.bar.showTransition ? void 0 : `all ${U.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
2849
|
+
}, null, 12, on)) : S("", !0),
|
|
2808
2850
|
Io(n.value) && r.$slots.pattern ? (O(), C("rect", {
|
|
2809
2851
|
key: 1,
|
|
2810
2852
|
x: Uo(n) - ys.value / 2,
|
|
2811
|
-
y:
|
|
2812
|
-
height:
|
|
2853
|
+
y: W.value.useIndividualScale ? Go(n) : Wo(n),
|
|
2854
|
+
height: W.value.useIndividualScale ? Math.abs(Vo(n)) : Math.abs(Bo(n)),
|
|
2813
2855
|
width: vs.value - ys.value,
|
|
2814
|
-
rx:
|
|
2815
|
-
fill: `url(#pattern_${
|
|
2816
|
-
stroke:
|
|
2817
|
-
"stroke-width":
|
|
2818
|
-
style: D({ transition:
|
|
2819
|
-
}, null, 12,
|
|
2820
|
-
n.comment &&
|
|
2856
|
+
rx: U.value.bar.borderRadius,
|
|
2857
|
+
fill: `url(#pattern_${R.value}_${e.slotAbsoluteIndex})`,
|
|
2858
|
+
stroke: U.value.bar.border.useSerieColor ? e.color : U.value.bar.border.stroke,
|
|
2859
|
+
"stroke-width": U.value.bar.border.strokeWidth,
|
|
2860
|
+
style: D({ transition: M(G) || !U.value.bar.showTransition ? void 0 : `all ${U.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
2861
|
+
}, null, 12, sn)) : S("", !0),
|
|
2862
|
+
n.comment && U.value.chart.comments.show ? (O(), C("foreignObject", {
|
|
2821
2863
|
key: 2,
|
|
2822
2864
|
style: { overflow: "visible" },
|
|
2823
2865
|
height: "12",
|
|
2824
|
-
width: vs.value +
|
|
2825
|
-
x: Uo(n) -
|
|
2826
|
-
y:
|
|
2866
|
+
width: vs.value + U.value.chart.comments.width,
|
|
2867
|
+
x: Uo(n) - U.value.chart.comments.width / 2 + U.value.chart.comments.offsetX,
|
|
2868
|
+
y: M(y)(n.y) + U.value.chart.comments.offsetY + 6
|
|
2827
2869
|
}, [j(r.$slots, "plot-comment", { plot: {
|
|
2828
2870
|
...n,
|
|
2829
2871
|
color: e.color,
|
|
2830
2872
|
seriesIndex: t,
|
|
2831
2873
|
datapointIndex: i
|
|
2832
|
-
} }, void 0, !0)], 8,
|
|
2874
|
+
} }, void 0, !0)], 8, cn)) : S("", !0)
|
|
2833
2875
|
]))), 128))], 6))), 128)) : S("", !0),
|
|
2834
|
-
!
|
|
2876
|
+
!W.value.useIndividualScale && U.value.chart.grid.labels.zeroLine.show ? (O(), C("line", {
|
|
2835
2877
|
key: 2,
|
|
2836
|
-
stroke:
|
|
2878
|
+
stroke: U.value.chart.grid.stroke,
|
|
2837
2879
|
"stroke-width": "1",
|
|
2838
2880
|
x1: q.value?.left + Z.value,
|
|
2839
2881
|
x2: q.value?.right,
|
|
2840
|
-
y1:
|
|
2841
|
-
y2:
|
|
2882
|
+
y1: M(v)(zo.value),
|
|
2883
|
+
y2: M(v)(zo.value),
|
|
2842
2884
|
"stroke-linecap": "round",
|
|
2843
2885
|
style: { animation: "none !important" }
|
|
2844
|
-
}, null, 8,
|
|
2845
|
-
|
|
2846
|
-
x1: q.value?.left + q.value.width / Y.value * ((
|
|
2847
|
-
x2: q.value?.left + q.value.width / Y.value * ((
|
|
2848
|
-
y1:
|
|
2849
|
-
y2:
|
|
2850
|
-
stroke:
|
|
2851
|
-
"stroke-width":
|
|
2852
|
-
"stroke-dasharray":
|
|
2886
|
+
}, null, 8, ln)) : S("", !0),
|
|
2887
|
+
U.value.chart.highlighter.useLine && (![null, void 0].includes(V.value) || ![null, void 0].includes(z.value)) ? (O(), C("g", un, [w("line", {
|
|
2888
|
+
x1: q.value?.left + q.value.width / Y.value * ((V.value === null ? 0 : V.value) || (z.value === null ? 0 : z.value)) + q.value.width / Y.value / 2,
|
|
2889
|
+
x2: q.value?.left + q.value.width / Y.value * ((V.value === null ? 0 : V.value) || (z.value === null ? 0 : z.value)) + q.value.width / Y.value / 2,
|
|
2890
|
+
y1: M(v)(q.value?.top),
|
|
2891
|
+
y2: M(v)(q.value?.bottom),
|
|
2892
|
+
stroke: U.value.chart.highlighter.color,
|
|
2893
|
+
"stroke-width": U.value.chart.highlighter.lineWidth,
|
|
2894
|
+
"stroke-dasharray": U.value.chart.highlighter.lineDasharray,
|
|
2853
2895
|
"stroke-linecap": "round",
|
|
2854
2896
|
style: {
|
|
2855
2897
|
transition: "none !important",
|
|
2856
2898
|
animation: "none !important",
|
|
2857
2899
|
"pointer-events": "none"
|
|
2858
2900
|
}
|
|
2859
|
-
}, null, 8,
|
|
2860
|
-
|
|
2901
|
+
}, null, 8, dn)])) : S("", !0),
|
|
2902
|
+
U.value.chart.grid.frame.show ? (O(), C("rect", {
|
|
2861
2903
|
key: 4,
|
|
2862
2904
|
style: {
|
|
2863
2905
|
pointerEvents: "none",
|
|
@@ -2866,89 +2908,89 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
2866
2908
|
},
|
|
2867
2909
|
x: q.value?.left + Z.value < 0 ? 0 : q.value?.left + Z.value,
|
|
2868
2910
|
y: q.value?.top,
|
|
2869
|
-
width: q.value.width - (
|
|
2911
|
+
width: q.value.width - (U.value.chart.grid.position === "middle" ? 0 : q.value.width / Y.value) < 0 ? 0 : q.value.width - (U.value.chart.grid.position === "middle" ? 0 : q.value.width / Y.value),
|
|
2870
2912
|
height: q.value.height < 0 ? 0 : q.value.height,
|
|
2871
2913
|
fill: "transparent",
|
|
2872
|
-
stroke:
|
|
2873
|
-
"stroke-width":
|
|
2874
|
-
"stroke-linecap":
|
|
2875
|
-
"stroke-linejoin":
|
|
2876
|
-
"stroke-dasharray":
|
|
2877
|
-
}, null, 8,
|
|
2878
|
-
|
|
2914
|
+
stroke: U.value.chart.grid.frame.stroke,
|
|
2915
|
+
"stroke-width": U.value.chart.grid.frame.strokeWidth,
|
|
2916
|
+
"stroke-linecap": U.value.chart.grid.frame.strokeLinecap,
|
|
2917
|
+
"stroke-linejoin": U.value.chart.grid.frame.strokeLinejoin,
|
|
2918
|
+
"stroke-dasharray": U.value.chart.grid.frame.strokeDasharray
|
|
2919
|
+
}, null, 8, fn)) : S("", !0),
|
|
2920
|
+
U.value.chart.grid.labels.show ? (O(), C("g", {
|
|
2879
2921
|
key: 5,
|
|
2880
2922
|
ref_key: "scaleLabels",
|
|
2881
|
-
ref:
|
|
2882
|
-
}, [
|
|
2923
|
+
ref: wi
|
|
2924
|
+
}, [W.value.useIndividualScale ? (O(), C(b, { key: 0 }, [(O(!0), C(b, null, A(ks.value, (e) => (O(), C("g", null, [w("line", {
|
|
2883
2925
|
x1: e.x + Z.value - q.value.individualOffsetX,
|
|
2884
2926
|
x2: e.x + Z.value - q.value.individualOffsetX,
|
|
2885
|
-
y1:
|
|
2886
|
-
y2:
|
|
2927
|
+
y1: W.value.isStacked ? M(v)(q.value?.bottom - e.yOffset - e.individualHeight) : M(v)(q.value?.top),
|
|
2928
|
+
y2: W.value.isStacked ? M(v)(q.value?.bottom - e.yOffset) : M(v)(q.value?.bottom),
|
|
2887
2929
|
stroke: e.color,
|
|
2888
|
-
"stroke-width":
|
|
2930
|
+
"stroke-width": U.value.chart.grid.stroke,
|
|
2889
2931
|
"stroke-linecap": "round",
|
|
2890
|
-
style: D(`opacity:${
|
|
2891
|
-
}, null, 12,
|
|
2932
|
+
style: D(`opacity:${F.value ? F.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
2933
|
+
}, null, 12, pn)]))), 256)), (O(!0), C(b, null, A(ks.value, (e) => (O(), C("g", { style: D(`opacity:${F.value ? F.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out`) }, [
|
|
2892
2934
|
w("text", {
|
|
2893
2935
|
fill: e.color,
|
|
2894
|
-
"font-size":
|
|
2936
|
+
"font-size": H.value.dataLabels * .8,
|
|
2895
2937
|
"text-anchor": "middle",
|
|
2896
|
-
transform: `translate(${e.x -
|
|
2897
|
-
},
|
|
2898
|
-
${e.scaleLabel}` : ""), 9,
|
|
2899
|
-
(O(!0), C(b, null, A(e.yLabels, (t, n) => (O(), C(b, null, [
|
|
2938
|
+
transform: `translate(${e.x - H.value.dataLabels * .8 / 2 + Z.value}, ${W.value.isStacked ? q.value?.bottom - e.yOffset - e.individualHeight / 2 : q.value?.top + q.value.height / 2}) rotate(-90)`
|
|
2939
|
+
}, lt(e.name) + " " + lt(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
|
|
2940
|
+
${e.scaleLabel}` : ""), 9, mn),
|
|
2941
|
+
(O(!0), C(b, null, A(e.yLabels, (t, n) => (O(), C(b, null, [U.value.chart.grid.labels.yAxis.showCrosshairs ? (O(), C("line", {
|
|
2900
2942
|
key: 0,
|
|
2901
|
-
x1: e.x + 3 + Z.value -
|
|
2943
|
+
x1: e.x + 3 + Z.value - U.value.chart.grid.labels.yAxis.crosshairSize - q.value.individualOffsetX,
|
|
2902
2944
|
x2: e.x + Z.value - q.value.individualOffsetX,
|
|
2903
|
-
y1:
|
|
2904
|
-
y2:
|
|
2945
|
+
y1: M(v)(t.y),
|
|
2946
|
+
y2: M(v)(t.y),
|
|
2905
2947
|
stroke: e.color,
|
|
2906
2948
|
"stroke-width": 1,
|
|
2907
2949
|
"stroke-linecap": "round",
|
|
2908
2950
|
style: { animation: "none !important" }
|
|
2909
|
-
}, null, 8,
|
|
2951
|
+
}, null, 8, hn)) : S("", !0)], 64))), 256)),
|
|
2910
2952
|
(O(!0), C(b, null, A(e.yLabels, (t, n) => (O(), C("text", {
|
|
2911
2953
|
x: e.x - 5 + Z.value - q.value.individualOffsetX,
|
|
2912
|
-
y:
|
|
2913
|
-
"font-size":
|
|
2954
|
+
y: M(v)(t.y) + H.value.dataLabels / 3,
|
|
2955
|
+
"font-size": H.value.dataLabels,
|
|
2914
2956
|
"text-anchor": "end",
|
|
2915
2957
|
fill: e.color
|
|
2916
|
-
}, M(
|
|
2958
|
+
}, lt(M(fe)(U.value.chart.grid.labels.yAxis.formatter, t.value, M(a)({
|
|
2917
2959
|
p: t.prefix,
|
|
2918
2960
|
v: t.value,
|
|
2919
2961
|
s: t.suffix,
|
|
2920
|
-
r:
|
|
2962
|
+
r: U.value.chart.grid.labels.yAxis.rounding
|
|
2921
2963
|
}), {
|
|
2922
2964
|
datapoint: t.datapoint,
|
|
2923
2965
|
seriesIndex: n
|
|
2924
|
-
})), 9,
|
|
2925
|
-
], 4))), 256))], 64)) : (O(!0), C(b, { key: 1 }, A(Cs.value, (e, t) => (O(), C("g", { key: `yLabel_${t}` }, [Io(e) && e.value >= Ka.value.min && e.value <= Ka.value.max &&
|
|
2966
|
+
})), 9, gn))), 256))
|
|
2967
|
+
], 4))), 256))], 64)) : (O(!0), C(b, { key: 1 }, A(Cs.value, (e, t) => (O(), C("g", { key: `yLabel_${t}` }, [Io(e) && e.value >= Ka.value.min && e.value <= Ka.value.max && U.value.chart.grid.labels.yAxis.showCrosshairs ? (O(), C("line", {
|
|
2926
2968
|
key: 0,
|
|
2927
2969
|
x1: q.value?.left + Z.value,
|
|
2928
|
-
x2: q.value?.left + Z.value -
|
|
2929
|
-
y1:
|
|
2930
|
-
y2:
|
|
2931
|
-
stroke:
|
|
2970
|
+
x2: q.value?.left + Z.value - U.value.chart.grid.labels.yAxis.crosshairSize,
|
|
2971
|
+
y1: M(v)(e.y),
|
|
2972
|
+
y2: M(v)(e.y),
|
|
2973
|
+
stroke: U.value.chart.grid.stroke,
|
|
2932
2974
|
"stroke-width": "1",
|
|
2933
2975
|
"stroke-linecap": "round",
|
|
2934
2976
|
style: { animation: "none !important" }
|
|
2935
|
-
}, null, 8,
|
|
2977
|
+
}, null, 8, _n)) : S("", !0), e.value >= Ka.value.min && e.value <= Ka.value.max ? (O(), C("text", {
|
|
2936
2978
|
key: 1,
|
|
2937
|
-
x: q.value.scaleLabelX -
|
|
2938
|
-
y:
|
|
2939
|
-
"font-size":
|
|
2979
|
+
x: q.value.scaleLabelX - U.value.chart.grid.labels.yAxis.crosshairSize,
|
|
2980
|
+
y: M(y)(e.y + H.value.dataLabels / 3),
|
|
2981
|
+
"font-size": H.value.dataLabels,
|
|
2940
2982
|
"text-anchor": "end",
|
|
2941
|
-
fill:
|
|
2942
|
-
},
|
|
2983
|
+
fill: U.value.chart.grid.labels.color
|
|
2984
|
+
}, lt(Io(e.value) ? M(fe)(U.value.chart.grid.labels.yAxis.formatter, e.value, M(a)({
|
|
2943
2985
|
p: e.prefix,
|
|
2944
2986
|
v: e.value,
|
|
2945
2987
|
s: e.suffix,
|
|
2946
|
-
r:
|
|
2947
|
-
})) : ""), 9,
|
|
2988
|
+
r: U.value.chart.grid.labels.yAxis.rounding
|
|
2989
|
+
})) : ""), 9, vn)) : S("", !0)]))), 128))], 512)) : S("", !0),
|
|
2948
2990
|
(O(!0), C(b, null, A(Os.value, (e, t) => (O(), C("g", {
|
|
2949
2991
|
key: `serie_plot_${e.id}`,
|
|
2950
2992
|
class: it(`serie_plot_${t}`),
|
|
2951
|
-
style: D(`opacity:${
|
|
2993
|
+
style: D(`opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2952
2994
|
}, [(O(!0), C(b, null, A(e.plots, (n, i) => (O(), C("g", { key: `circle_plot_${t}_${i}` }, [n && Io(n.value) ? (O(), Xe(Ue, {
|
|
2953
2995
|
key: 0,
|
|
2954
2996
|
shape: [
|
|
@@ -2959,15 +3001,15 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
2959
3001
|
"hexagon",
|
|
2960
3002
|
"star"
|
|
2961
3003
|
].includes(e.shape) ? e.shape : "circle",
|
|
2962
|
-
color:
|
|
3004
|
+
color: U.value.plot.useGradient ? `url(#plotGradient_${t}_${R.value})` : U.value.plot.dot.useSerieColor ? e.color : U.value.plot.dot.fill,
|
|
2963
3005
|
plot: {
|
|
2964
|
-
x:
|
|
2965
|
-
y:
|
|
3006
|
+
x: M(y)(n.x),
|
|
3007
|
+
y: M(y)(n.y)
|
|
2966
3008
|
},
|
|
2967
|
-
radius:
|
|
2968
|
-
stroke:
|
|
2969
|
-
strokeWidth:
|
|
2970
|
-
transition:
|
|
3009
|
+
radius: V.value !== null && V.value === i || z.value !== null && z.value === i ? (fa.value.plot || 6) * 1.5 : fa.value.plot || 6,
|
|
3010
|
+
stroke: U.value.plot.dot.useSerieColor ? U.value.chart.backgroundColor : e.color,
|
|
3011
|
+
strokeWidth: U.value.plot.dot.strokeWidth,
|
|
3012
|
+
transition: M(G) || !U.value.plot.showTransition || V.value !== null && V.value === i || z.value !== null && z.value === i ? void 0 : `all ${U.value.plot.transitionDurationMs}ms ease-in-out`
|
|
2971
3013
|
}, null, 8, [
|
|
2972
3014
|
"shape",
|
|
2973
3015
|
"color",
|
|
@@ -2976,121 +3018,121 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
2976
3018
|
"stroke",
|
|
2977
3019
|
"strokeWidth",
|
|
2978
3020
|
"transition"
|
|
2979
|
-
])) : S("", !0), n.comment &&
|
|
3021
|
+
])) : S("", !0), n.comment && U.value.chart.comments.show ? (O(), C("foreignObject", {
|
|
2980
3022
|
key: 1,
|
|
2981
3023
|
style: { overflow: "visible" },
|
|
2982
3024
|
height: "12",
|
|
2983
|
-
width:
|
|
2984
|
-
x: n.x -
|
|
2985
|
-
y: n.y +
|
|
2986
|
-
}, [w("div",
|
|
3025
|
+
width: U.value.chart.comments.width,
|
|
3026
|
+
x: n.x - U.value.chart.comments.width / 2 + U.value.chart.comments.offsetX,
|
|
3027
|
+
y: n.y + U.value.chart.comments.offsetY + 6
|
|
3028
|
+
}, [w("div", bn, [j(r.$slots, "plot-comment", { plot: {
|
|
2987
3029
|
...n,
|
|
2988
3030
|
color: e.color,
|
|
2989
3031
|
seriesIndex: t,
|
|
2990
3032
|
datapointIndex: i
|
|
2991
|
-
} }, void 0, !0)])], 8,
|
|
3033
|
+
} }, void 0, !0)])], 8, yn)) : S("", !0)]))), 128))], 6))), 128)),
|
|
2992
3034
|
(O(!0), C(b, null, A($.value, (e, t) => (O(), C("g", {
|
|
2993
3035
|
key: `serie_line_${e.id}`,
|
|
2994
3036
|
class: it(`serie_line_${t}`),
|
|
2995
|
-
style: D(`opacity:${
|
|
3037
|
+
style: D(`opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2996
3038
|
}, [e.smooth && e.plots.length > 1 && e.curve ? (O(), C("path", {
|
|
2997
3039
|
key: 0,
|
|
2998
3040
|
d: `M${e.curve}`,
|
|
2999
|
-
stroke:
|
|
3000
|
-
"stroke-width":
|
|
3001
|
-
"stroke-dasharray": e.dashed ?
|
|
3041
|
+
stroke: U.value.chart.backgroundColor,
|
|
3042
|
+
"stroke-width": U.value.line.strokeWidth + 1,
|
|
3043
|
+
"stroke-dasharray": e.dashed ? U.value.line.strokeWidth * 2 : 0,
|
|
3002
3044
|
fill: "none",
|
|
3003
|
-
style: D({ transition:
|
|
3004
|
-
}, null, 12,
|
|
3045
|
+
style: D({ transition: M(G) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3046
|
+
}, null, 12, xn)) : e.plots.length > 1 && e.straight ? (O(), C("path", {
|
|
3005
3047
|
key: 1,
|
|
3006
3048
|
d: `M${e.straight}`,
|
|
3007
|
-
stroke:
|
|
3008
|
-
"stroke-width":
|
|
3009
|
-
"stroke-dasharray": e.dashed ?
|
|
3049
|
+
stroke: U.value.chart.backgroundColor,
|
|
3050
|
+
"stroke-width": U.value.line.strokeWidth + 1,
|
|
3051
|
+
"stroke-dasharray": e.dashed ? U.value.line.strokeWidth * 2 : 0,
|
|
3010
3052
|
fill: "none",
|
|
3011
3053
|
"stroke-linecap": "round",
|
|
3012
3054
|
"stroke-linejoin": "round",
|
|
3013
|
-
style: D({ transition:
|
|
3014
|
-
}, null, 12,
|
|
3015
|
-
r.$slots.pattern ? (O(), C("defs",
|
|
3055
|
+
style: D({ transition: M(G) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3056
|
+
}, null, 12, Sn)) : S("", !0)], 6))), 128)),
|
|
3057
|
+
r.$slots.pattern ? (O(), C("defs", Cn, [(O(!0), C(b, null, A(Ja.value, (e, t) => j(r.$slots, "pattern", nt({ key: `serie_pattern_slot_${e.id}` }, { ref_for: !0 }, {
|
|
3016
3058
|
...e,
|
|
3017
3059
|
seriesIndex: e.slotAbsoluteIndex,
|
|
3018
|
-
patternId: `pattern_${
|
|
3060
|
+
patternId: `pattern_${R.value}_${t}`
|
|
3019
3061
|
}), void 0, !0)), 128))])) : S("", !0),
|
|
3020
|
-
As.value.length && !
|
|
3062
|
+
As.value.length && !W.value.isStacked ? (O(), C("g", wn, [(O(!0), C(b, null, A(As.value, (e) => (O(), C("path", {
|
|
3021
3063
|
key: e.key,
|
|
3022
3064
|
d: e.d,
|
|
3023
3065
|
fill: e.color,
|
|
3024
|
-
"fill-opacity":
|
|
3066
|
+
"fill-opacity": U.value.line.interLine.fillOpacity,
|
|
3025
3067
|
stroke: "none",
|
|
3026
3068
|
"pointer-events": "none",
|
|
3027
|
-
style: D({ transition:
|
|
3028
|
-
}, null, 12,
|
|
3069
|
+
style: D({ transition: M(G) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3070
|
+
}, null, 12, Tn))), 128))])) : S("", !0),
|
|
3029
3071
|
(O(!0), C(b, null, A($.value, (e, t) => (O(), C("g", {
|
|
3030
3072
|
key: `serie_line_above_${e.id}`,
|
|
3031
3073
|
class: it(`serie_line_${t}`),
|
|
3032
|
-
style: D(`opacity:${
|
|
3074
|
+
style: D(`opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3033
3075
|
}, [
|
|
3034
|
-
e.useArea && e.plots.length > 1 ? (O(), C("g",
|
|
3076
|
+
e.useArea && e.plots.length > 1 ? (O(), C("g", En, [e.smooth ? (O(!0), C(b, { key: 0 }, A(e.curveAreas, (n, i) => (O(), C(b, { key: i }, [n ? (O(), C("path", {
|
|
3035
3077
|
key: 0,
|
|
3036
3078
|
d: n,
|
|
3037
|
-
fill:
|
|
3038
|
-
style: D({ transition:
|
|
3039
|
-
}, null, 12,
|
|
3079
|
+
fill: U.value.line.area.useGradient ? `url(#areaGradient_${t}_${R.value})` : M(me)(e.color, U.value.line.area.opacity),
|
|
3080
|
+
style: D({ transition: M(G) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3081
|
+
}, null, 12, Dn)) : S("", !0), r.$slots.pattern && n ? (O(), C("path", {
|
|
3040
3082
|
key: 1,
|
|
3041
3083
|
d: n,
|
|
3042
|
-
fill: `url(#pattern_${
|
|
3043
|
-
style: D({ transition:
|
|
3044
|
-
}, null, 12,
|
|
3084
|
+
fill: `url(#pattern_${R.value}_${e.slotAbsoluteIndex})`,
|
|
3085
|
+
style: D({ transition: M(G) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3086
|
+
}, null, 12, On)) : S("", !0)], 64))), 128)) : (O(!0), C(b, { key: 1 }, A(e.area.split(";"), (n, i) => (O(), C(b, { key: i }, [n ? (O(), C("path", {
|
|
3045
3087
|
key: 0,
|
|
3046
3088
|
d: `M${n}Z`,
|
|
3047
|
-
fill:
|
|
3048
|
-
style: D({ transition:
|
|
3049
|
-
}, null, 12,
|
|
3089
|
+
fill: U.value.line.area.useGradient ? `url(#areaGradient_${t}_${R.value})` : M(me)(e.color, U.value.line.area.opacity),
|
|
3090
|
+
style: D({ transition: M(G) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3091
|
+
}, null, 12, kn)) : S("", !0), r.$slots.pattern && n ? (O(), C("path", {
|
|
3050
3092
|
key: 1,
|
|
3051
3093
|
d: `M${n}Z`,
|
|
3052
|
-
fill: `url(#pattern_${
|
|
3053
|
-
style: D({ transition:
|
|
3054
|
-
}, null, 12,
|
|
3094
|
+
fill: `url(#pattern_${R.value}_${e.slotAbsoluteIndex})`,
|
|
3095
|
+
style: D({ transition: M(G) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3096
|
+
}, null, 12, An)) : S("", !0)], 64))), 128))])) : S("", !0),
|
|
3055
3097
|
!e.hasDashedSegments && e.smooth && e.plots.length > 1 && e.curve ? (O(), C("path", {
|
|
3056
3098
|
key: 1,
|
|
3057
3099
|
d: `M${e.curve}`,
|
|
3058
|
-
stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${
|
|
3059
|
-
"stroke-width":
|
|
3060
|
-
"stroke-dasharray": e.dashed ?
|
|
3100
|
+
stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${R.value})` : e.color,
|
|
3101
|
+
"stroke-width": U.value.line.strokeWidth,
|
|
3102
|
+
"stroke-dasharray": e.dashed ? U.value.line.strokeWidth * 2 : 0,
|
|
3061
3103
|
fill: "none",
|
|
3062
3104
|
"stroke-linecap": "round",
|
|
3063
|
-
style: D({ transition:
|
|
3064
|
-
}, null, 12,
|
|
3105
|
+
style: D({ transition: M(G) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3106
|
+
}, null, 12, jn)) : e.hasDashedSegments ? (O(), C(b, { key: 2 }, [e.smooth ? (O(!0), C(b, { key: 0 }, A(e.dashedSmooth, (n) => (O(), C("path", {
|
|
3065
3107
|
key: n.path,
|
|
3066
3108
|
fill: "none",
|
|
3067
3109
|
"stroke-linecap": "round",
|
|
3068
3110
|
"stroke-linejoin": "round",
|
|
3069
3111
|
d: `M ${n.path}`,
|
|
3070
|
-
stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${
|
|
3071
|
-
"stroke-width":
|
|
3072
|
-
"stroke-dasharray": n.dashed ?
|
|
3073
|
-
}, null, 8,
|
|
3112
|
+
stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${R.value})` : e.color,
|
|
3113
|
+
"stroke-width": U.value.line.strokeWidth,
|
|
3114
|
+
"stroke-dasharray": n.dashed ? U.value.line.strokeWidth * 2 : 0
|
|
3115
|
+
}, null, 8, Mn))), 128)) : (O(!0), C(b, { key: 1 }, A(e.dashedStraight, (n) => (O(), C("path", {
|
|
3074
3116
|
key: n.path,
|
|
3075
3117
|
fill: "none",
|
|
3076
3118
|
"stroke-linecap": "round",
|
|
3077
3119
|
"stroke-linejoin": "round",
|
|
3078
3120
|
d: `M ${n.path}`,
|
|
3079
|
-
stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${
|
|
3080
|
-
"stroke-width":
|
|
3081
|
-
"stroke-dasharray": n.dashed ?
|
|
3082
|
-
}, null, 8,
|
|
3121
|
+
stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${R.value})` : e.color,
|
|
3122
|
+
"stroke-width": U.value.line.strokeWidth,
|
|
3123
|
+
"stroke-dasharray": n.dashed ? U.value.line.strokeWidth * 2 : 0
|
|
3124
|
+
}, null, 8, Nn))), 128))], 64)) : e.plots.length > 1 && e.straight ? (O(), C("path", {
|
|
3083
3125
|
key: 3,
|
|
3084
3126
|
d: `M${e.straight}`,
|
|
3085
|
-
stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${
|
|
3086
|
-
"stroke-width":
|
|
3087
|
-
"stroke-dasharray": e.dashed ?
|
|
3127
|
+
stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${R.value})` : e.color,
|
|
3128
|
+
"stroke-width": U.value.line.strokeWidth,
|
|
3129
|
+
"stroke-dasharray": e.dashed ? U.value.line.strokeWidth * 2 : 0,
|
|
3088
3130
|
fill: "none",
|
|
3089
3131
|
"stroke-linecap": "round",
|
|
3090
3132
|
"stroke-linejoin": "round",
|
|
3091
|
-
style: D({ transition:
|
|
3092
|
-
}, null, 12,
|
|
3093
|
-
(O(!0), C(b, null, A(e.plots, (n, i) => (O(), C(b, { key: `circle_line_${t}_${i}` }, [!cs.value.linePlot && n && Io(n.value) || cs.value.linePlot && n && Io(n.value) && (
|
|
3133
|
+
style: D({ transition: M(G) || !U.value.line.showTransition ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3134
|
+
}, null, 12, Pn)) : S("", !0),
|
|
3135
|
+
(O(!0), C(b, null, A(e.plots, (n, i) => (O(), C(b, { key: `circle_line_${t}_${i}` }, [!cs.value.linePlot && n && Io(n.value) || cs.value.linePlot && n && Io(n.value) && (V.value !== null && V.value === i || z.value !== null && z.value === i) || Ts(e.plots, i) ? (O(), Xe(Ue, {
|
|
3094
3136
|
key: 0,
|
|
3095
3137
|
shape: [
|
|
3096
3138
|
"triangle",
|
|
@@ -3100,15 +3142,15 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
3100
3142
|
"hexagon",
|
|
3101
3143
|
"star"
|
|
3102
3144
|
].includes(e.shape) ? e.shape : "circle",
|
|
3103
|
-
color:
|
|
3145
|
+
color: U.value.line.useGradient ? `url(#lineGradient_${t}_${R.value})` : U.value.line.dot.useSerieColor ? e.color : U.value.line.dot.fill,
|
|
3104
3146
|
plot: {
|
|
3105
|
-
x:
|
|
3106
|
-
y:
|
|
3147
|
+
x: M(y)(n.x),
|
|
3148
|
+
y: M(y)(n.y)
|
|
3107
3149
|
},
|
|
3108
|
-
radius:
|
|
3109
|
-
stroke:
|
|
3110
|
-
strokeWidth:
|
|
3111
|
-
transition:
|
|
3150
|
+
radius: V.value !== null && V.value === i || z.value !== null && z.value === i ? (fa.value.line || 6) * 1.5 : (Ts(e.plots, i), fa.value.line || 6),
|
|
3151
|
+
stroke: U.value.line.dot.useSerieColor ? U.value.chart.backgroundColor : e.color,
|
|
3152
|
+
strokeWidth: U.value.line.dot.strokeWidth,
|
|
3153
|
+
transition: M(G) || !U.value.line.showTransition || V.value !== null && V.value === i || z.value !== null && z.value === i ? void 0 : `all ${U.value.line.transitionDurationMs}ms ease-in-out`
|
|
3112
3154
|
}, null, 8, [
|
|
3113
3155
|
"shape",
|
|
3114
3156
|
"color",
|
|
@@ -3117,69 +3159,74 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
3117
3159
|
"stroke",
|
|
3118
3160
|
"strokeWidth",
|
|
3119
3161
|
"transition"
|
|
3120
|
-
])) : S("", !0), n.comment &&
|
|
3162
|
+
])) : S("", !0), n.comment && U.value.chart.comments.show ? (O(), C("foreignObject", {
|
|
3121
3163
|
key: 1,
|
|
3122
3164
|
style: { overflow: "visible" },
|
|
3123
3165
|
height: "12",
|
|
3124
|
-
width:
|
|
3125
|
-
x: n.x -
|
|
3126
|
-
y: n.y +
|
|
3127
|
-
}, [w("div",
|
|
3166
|
+
width: U.value.chart.comments.width,
|
|
3167
|
+
x: n.x - U.value.chart.comments.width / 2 + U.value.chart.comments.offsetX,
|
|
3168
|
+
y: n.y + U.value.chart.comments.offsetY + 6
|
|
3169
|
+
}, [w("div", In, [j(r.$slots, "plot-comment", { plot: {
|
|
3128
3170
|
...n,
|
|
3129
3171
|
color: e.color,
|
|
3130
3172
|
seriesIndex: t,
|
|
3131
3173
|
datapointIndex: i
|
|
3132
|
-
} }, void 0, !0)])], 8,
|
|
3174
|
+
} }, void 0, !0)])], 8, Fn)) : S("", !0)], 64))), 128))
|
|
3133
3175
|
], 6))), 128)),
|
|
3134
|
-
(
|
|
3176
|
+
(U.value.bar.labels.show || U.value.bar.serieName.show) && W.value.dataLabels.show ? (O(), C("g", Ln, [(O(!0), C(b, null, A(Ds.value, (e, t) => (O(), C(b, { key: `xLabel_bar_${e.id}` }, [(O(!0), C(b, null, A(e.plots, (n, r) => (O(), C(b, { key: `xLabel_bar_${t}_${r}` }, [n && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || V.value !== null && V.value === r || z.value !== null && z.value === r) && U.value.bar.labels.show ? (O(), C("text", {
|
|
3135
3177
|
key: 0,
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3178
|
+
"text-anchor": ic({
|
|
3179
|
+
plot: n,
|
|
3180
|
+
type: "bar"
|
|
3181
|
+
}),
|
|
3182
|
+
"font-size": H.value.plotLabels,
|
|
3183
|
+
transform: nc({ plot: n }),
|
|
3184
|
+
fill: U.value.bar.labels.color,
|
|
3185
|
+
stroke: U.value.chart.backgroundColor,
|
|
3186
|
+
"paint-order": "stroke",
|
|
3187
|
+
style: D(`opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`),
|
|
3188
|
+
innerHTML: tc({
|
|
3189
|
+
serie: e,
|
|
3190
|
+
plot: n,
|
|
3191
|
+
type: "bar"
|
|
3192
|
+
})
|
|
3193
|
+
}, null, 12, Rn)) : S("", !0), n && U.value.bar.serieName.show ? (O(), C("text", {
|
|
3151
3194
|
key: 1,
|
|
3152
|
-
x:
|
|
3153
|
-
y: n.y + (n.value > 0 ?
|
|
3195
|
+
x: W.value.useIndividualScale && W.value.isStacked ? n.x + X.value.line / 2 : n.x + Ho() * 1.1,
|
|
3196
|
+
y: n.y + (n.value > 0 ? U.value.bar.serieName.offsetY : -U.value.bar.serieName.offsetY * 3),
|
|
3154
3197
|
"text-anchor": "middle",
|
|
3155
|
-
"font-size":
|
|
3156
|
-
fill:
|
|
3157
|
-
"font-weight":
|
|
3158
|
-
style: D(`opacity:${
|
|
3159
|
-
},
|
|
3198
|
+
"font-size": H.value.plotLabels,
|
|
3199
|
+
fill: U.value.bar.serieName.useSerieColor ? e.color : U.value.bar.serieName.color,
|
|
3200
|
+
"font-weight": U.value.bar.serieName.bold ? "bold" : "normal",
|
|
3201
|
+
style: D(`opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3202
|
+
}, lt(U.value.bar.serieName.useAbbreviation ? M(ve)({
|
|
3160
3203
|
source: e.name,
|
|
3161
|
-
length:
|
|
3162
|
-
}) : e.name), 13,
|
|
3163
|
-
|
|
3204
|
+
length: U.value.bar.serieName.abbreviationSize
|
|
3205
|
+
}) : e.name), 13, zn)) : S("", !0)], 64))), 128))], 64))), 128))])) : S("", !0),
|
|
3206
|
+
U.value.plot.labels.show && W.value.dataLabels.show ? (O(), C("g", Bn, [(O(!0), C(b, null, A(Os.value, (e, t) => (O(), C(b, { key: `xLabel_plot_${e.id}` }, [(O(!0), C(b, null, A(e.plots, (n, r) => (O(), C(b, { key: `xLabel_plot_${t}_${r}` }, [n && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || V.value !== null && V.value === r || z.value !== null && z.value === r ? (O(), C("text", {
|
|
3164
3207
|
key: 0,
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3208
|
+
transform: rc({
|
|
3209
|
+
plot: n,
|
|
3210
|
+
type: "plot"
|
|
3211
|
+
}),
|
|
3212
|
+
"text-anchor": ic({
|
|
3213
|
+
plot: n,
|
|
3214
|
+
type: "plot"
|
|
3215
|
+
}),
|
|
3216
|
+
"font-size": H.value.plotLabels,
|
|
3217
|
+
fill: U.value.plot.labels.color,
|
|
3218
|
+
stroke: U.value.chart.backgroundColor,
|
|
3219
|
+
"paint-order": "stroke",
|
|
3220
|
+
style: D(`opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`),
|
|
3221
|
+
innerHTML: tc({
|
|
3222
|
+
serie: e,
|
|
3223
|
+
plot: n,
|
|
3224
|
+
type: "plot"
|
|
3225
|
+
})
|
|
3226
|
+
}, null, 12, Vn)) : S("", !0)], 64))), 128))], 64))), 128))])) : (O(), C("g", Hn, [(O(!0), C(b, null, A(Os.value, (e, t) => (O(), C(b, { key: `xLabel_plot_${e.id}` }, [(O(!0), C(b, null, A(e.plots, (n, r) => (O(), C(b, { key: `xLabel_plot_${t}_${r}` }, [U.value.plot.tag.followValue ? (O(), C(b, { key: 1 }, [[
|
|
3227
|
+
z.value,
|
|
3228
|
+
V.value,
|
|
3229
|
+
Li.value
|
|
3183
3230
|
].includes(r) && e.useTag ? (O(), C("line", {
|
|
3184
3231
|
key: 0,
|
|
3185
3232
|
class: "vue-ui-xy-tag-plot",
|
|
@@ -3191,55 +3238,59 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
3191
3238
|
"stroke-linecap": "round",
|
|
3192
3239
|
"stroke-dasharray": "2",
|
|
3193
3240
|
stroke: e.color
|
|
3194
|
-
}, null, 8,
|
|
3241
|
+
}, null, 8, qn)) : S("", !0)], 64)) : (O(), C(b, { key: 0 }, [n && r === 0 && e.useTag && e.useTag === "start" ? (O(), C("foreignObject", {
|
|
3195
3242
|
key: 0,
|
|
3196
3243
|
x: n.x,
|
|
3197
3244
|
y: n.y - 20,
|
|
3198
3245
|
height: 24,
|
|
3199
3246
|
width: "150",
|
|
3200
|
-
style: D(`overflow: visible; opacity:${
|
|
3247
|
+
style: D(`overflow: visible; opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3201
3248
|
}, [w("div", {
|
|
3202
|
-
style: D(`padding: 3px; background:${
|
|
3203
|
-
innerHTML:
|
|
3249
|
+
style: D(`padding: 3px; background:${M(me)(e.color, 80)};color:${M(xe)(e.color)};width:fit-content;font-size:${H.value.plotLabels}px;border-radius: 2px;`),
|
|
3250
|
+
innerHTML: M(fe)(U.value.plot.tag.formatter, n.value, e.name, {
|
|
3204
3251
|
datapoint: n,
|
|
3205
3252
|
seriesIndex: r,
|
|
3206
3253
|
serieName: e.name
|
|
3207
3254
|
})
|
|
3208
|
-
}, null, 12,
|
|
3255
|
+
}, null, 12, Wn)], 12, Un)) : S("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (O(), C("foreignObject", {
|
|
3209
3256
|
key: 1,
|
|
3210
|
-
x: n.x - e.name.length * (
|
|
3257
|
+
x: n.x - e.name.length * (H.value.plotLabels / 2),
|
|
3211
3258
|
y: n.y - 20,
|
|
3212
3259
|
height: 24,
|
|
3213
3260
|
width: "150",
|
|
3214
|
-
style: D(`overflow: visible; opacity:${
|
|
3261
|
+
style: D(`overflow: visible; opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3215
3262
|
}, [w("div", {
|
|
3216
|
-
style: D(`padding: 3px; background:${
|
|
3217
|
-
innerHTML:
|
|
3263
|
+
style: D(`padding: 3px; background:${M(me)(e.color, 80)};color:${M(xe)(e.color)};width:fit-content;font-size:${H.value.plotLabels}px;border-radius: 2px;`),
|
|
3264
|
+
innerHTML: M(fe)(U.value.plot.tag.formatter, n.value, e.name, {
|
|
3218
3265
|
datapoint: n,
|
|
3219
3266
|
seriesIndex: r,
|
|
3220
3267
|
serieName: e.name
|
|
3221
3268
|
})
|
|
3222
|
-
}, null, 12,
|
|
3223
|
-
|
|
3269
|
+
}, null, 12, Kn)], 12, Gn)) : S("", !0)], 64))], 64))), 128))], 64))), 128))])),
|
|
3270
|
+
U.value.line.labels.show && W.value.dataLabels.show ? (O(), C("g", Jn, [(O(!0), C(b, null, A($.value, (e, t) => (O(), C(b, { key: `xLabel_line_${e.id}` }, [(O(!0), C(b, null, A(e.plots, (n, r) => (O(), C(b, { key: `xLabel_line_${t}_${r}` }, [n && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || V.value !== null && V.value === r || z.value !== null && z.value === r ? (O(), C("text", {
|
|
3224
3271
|
key: 0,
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3272
|
+
transform: rc({
|
|
3273
|
+
plot: n,
|
|
3274
|
+
type: "line"
|
|
3275
|
+
}),
|
|
3276
|
+
"text-anchor": ic({
|
|
3277
|
+
plot: n,
|
|
3278
|
+
type: "line"
|
|
3279
|
+
}),
|
|
3280
|
+
"font-size": H.value.plotLabels,
|
|
3281
|
+
fill: U.value.line.labels.color,
|
|
3282
|
+
stroke: U.value.chart.backgroundColor,
|
|
3283
|
+
"paint-order": "stroke",
|
|
3284
|
+
style: D(`opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`),
|
|
3285
|
+
innerHTML: tc({
|
|
3286
|
+
serie: e,
|
|
3287
|
+
plot: n,
|
|
3288
|
+
type: "line"
|
|
3289
|
+
})
|
|
3290
|
+
}, null, 12, Yn)) : S("", !0)], 64))), 128))], 64))), 128))])) : (O(), C("g", Xn, [(O(!0), C(b, null, A($.value, (e, t) => (O(), C(b, { key: `xLabel_line_${e.id}` }, [(O(!0), C(b, null, A(e.plots, (n, r) => (O(), C(b, { key: `xLabel_line_${t}_${r}` }, [U.value.line.tag.followValue ? (O(), C(b, { key: 1 }, [[
|
|
3291
|
+
z.value,
|
|
3292
|
+
V.value,
|
|
3293
|
+
Li.value
|
|
3243
3294
|
].includes(r) && e.useTag ? (O(), C("line", {
|
|
3244
3295
|
key: 0,
|
|
3245
3296
|
class: "vue-ui-xy-tag-line",
|
|
@@ -3251,106 +3302,106 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
3251
3302
|
"stroke-linecap": "round",
|
|
3252
3303
|
"stroke-dasharray": "2",
|
|
3253
3304
|
stroke: e.color
|
|
3254
|
-
}, null, 8,
|
|
3305
|
+
}, null, 8, tr)) : S("", !0)], 64)) : (O(), C(b, { key: 0 }, [n && r === 0 && e.useTag && e.useTag === "start" ? (O(), C("foreignObject", {
|
|
3255
3306
|
key: 0,
|
|
3256
3307
|
x: n.x,
|
|
3257
3308
|
y: n.y - 20,
|
|
3258
3309
|
height: 24,
|
|
3259
3310
|
width: "150",
|
|
3260
|
-
style: D(`overflow: visible; opacity:${
|
|
3311
|
+
style: D(`overflow: visible; opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3261
3312
|
}, [w("div", {
|
|
3262
|
-
style: D(`padding: 3px; background:${
|
|
3263
|
-
innerHTML:
|
|
3313
|
+
style: D(`padding: 3px; background:${M(me)(e.color, 80)};color:${M(xe)(e.color)};width:fit-content;font-size:${H.value.plotLabels}px;border-radius: 2px;`),
|
|
3314
|
+
innerHTML: M(fe)(U.value.line.tag.formatter, n.value, e.name, {
|
|
3264
3315
|
datapoint: n,
|
|
3265
3316
|
seriesIndex: r,
|
|
3266
3317
|
serieName: e.name
|
|
3267
3318
|
})
|
|
3268
|
-
}, null, 12,
|
|
3319
|
+
}, null, 12, Qn)], 12, Zn)) : S("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (O(), C("foreignObject", {
|
|
3269
3320
|
key: 1,
|
|
3270
3321
|
x: n.x,
|
|
3271
3322
|
y: n.y - 20,
|
|
3272
3323
|
height: 24,
|
|
3273
3324
|
width: "150",
|
|
3274
|
-
style: D(`overflow: visible; opacity:${
|
|
3325
|
+
style: D(`overflow: visible; opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3275
3326
|
}, [w("div", {
|
|
3276
|
-
style: D(`padding: 3px; background:${
|
|
3277
|
-
innerHTML:
|
|
3327
|
+
style: D(`padding: 3px; background:${M(me)(e.color, 80)};color:${M(xe)(e.color)};width:fit-content;font-size:${H.value.plotLabels}px;border-radius: 2px;`),
|
|
3328
|
+
innerHTML: M(fe)(U.value.line.tag.formatter, n.value, e.name, {
|
|
3278
3329
|
datapoint: n,
|
|
3279
3330
|
seriesIndex: r,
|
|
3280
3331
|
serieName: e.name
|
|
3281
3332
|
})
|
|
3282
|
-
}, null, 12,
|
|
3333
|
+
}, null, 12, er)], 12, $n)) : S("", !0)], 64))], 64))), 128))], 64))), 128))])),
|
|
3283
3334
|
(O(!0), C(b, null, A($.value, (e, t) => (O(), C(b, { key: `xLabel_line_${e.id}` }, [(O(!0), C(b, null, A(e.plots, (n, r) => (O(), C(b, { key: `xLabel_line_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (O(), C("text", {
|
|
3284
3335
|
key: 0,
|
|
3285
|
-
x: n.x -
|
|
3336
|
+
x: n.x - H.value.plotLabels,
|
|
3286
3337
|
y: n.y,
|
|
3287
|
-
"font-size":
|
|
3338
|
+
"font-size": H.value.plotLabels,
|
|
3288
3339
|
"text-anchor": "end",
|
|
3289
3340
|
fill: e.color,
|
|
3290
|
-
innerHTML:
|
|
3341
|
+
innerHTML: M(Ee)({
|
|
3291
3342
|
content: e.name,
|
|
3292
|
-
fontSize:
|
|
3343
|
+
fontSize: H.value.plotLabels,
|
|
3293
3344
|
fill: e.color,
|
|
3294
|
-
x: n.x -
|
|
3345
|
+
x: n.x - H.value.plotLabels,
|
|
3295
3346
|
y: n.y,
|
|
3296
3347
|
maxWords: 2
|
|
3297
3348
|
}),
|
|
3298
|
-
style: D(`opacity:${
|
|
3299
|
-
}, null, 12,
|
|
3349
|
+
style: D(`opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3350
|
+
}, null, 12, nr)) : S("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (O(), C("text", {
|
|
3300
3351
|
key: 1,
|
|
3301
|
-
x: n.x +
|
|
3352
|
+
x: n.x + H.value.plotLabels,
|
|
3302
3353
|
y: n.y,
|
|
3303
|
-
"font-size":
|
|
3354
|
+
"font-size": H.value.plotLabels,
|
|
3304
3355
|
"text-anchor": "start",
|
|
3305
3356
|
fill: e.color,
|
|
3306
|
-
innerHTML:
|
|
3357
|
+
innerHTML: M(Ee)({
|
|
3307
3358
|
content: e.name,
|
|
3308
|
-
fontSize:
|
|
3359
|
+
fontSize: H.value.plotLabels,
|
|
3309
3360
|
fill: e.color,
|
|
3310
|
-
x: n.x +
|
|
3361
|
+
x: n.x + H.value.plotLabels,
|
|
3311
3362
|
y: n.y,
|
|
3312
3363
|
maxWords: 2
|
|
3313
3364
|
}),
|
|
3314
|
-
style: D(`opacity:${
|
|
3315
|
-
}, null, 12,
|
|
3365
|
+
style: D(`opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3366
|
+
}, null, 12, rr)) : S("", !0)], 64))), 128))], 64))), 128)),
|
|
3316
3367
|
(O(!0), C(b, null, A(Os.value, (e, t) => (O(), C(b, { key: `xLabel_plot_${e.id}` }, [(O(!0), C(b, null, A(e.plots, (n, r) => (O(), C(b, { key: `xLabel_plot_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (O(), C("text", {
|
|
3317
3368
|
key: 0,
|
|
3318
|
-
x: n.x -
|
|
3369
|
+
x: n.x - H.value.plotLabels,
|
|
3319
3370
|
y: n.y,
|
|
3320
|
-
"font-size":
|
|
3371
|
+
"font-size": H.value.plotLabels,
|
|
3321
3372
|
"text-anchor": "end",
|
|
3322
3373
|
fill: e.color,
|
|
3323
|
-
innerHTML:
|
|
3374
|
+
innerHTML: M(Ee)({
|
|
3324
3375
|
content: e.name,
|
|
3325
|
-
fontSize:
|
|
3376
|
+
fontSize: H.value.plotLabels,
|
|
3326
3377
|
fill: e.color,
|
|
3327
|
-
x: n.x -
|
|
3378
|
+
x: n.x - H.value.plotLabels,
|
|
3328
3379
|
y: n.y,
|
|
3329
3380
|
maxWords: 2
|
|
3330
3381
|
}),
|
|
3331
|
-
style: D(`opacity:${
|
|
3332
|
-
}, null, 12,
|
|
3382
|
+
style: D(`opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3383
|
+
}, null, 12, ir)) : S("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (O(), C("text", {
|
|
3333
3384
|
key: 1,
|
|
3334
|
-
x: n.x +
|
|
3385
|
+
x: n.x + H.value.plotLabels,
|
|
3335
3386
|
y: n.y,
|
|
3336
|
-
"font-size":
|
|
3387
|
+
"font-size": H.value.plotLabels,
|
|
3337
3388
|
"text-anchor": "start",
|
|
3338
3389
|
fill: e.color,
|
|
3339
|
-
innerHTML:
|
|
3390
|
+
innerHTML: M(Ee)({
|
|
3340
3391
|
content: e.name,
|
|
3341
|
-
fontSize:
|
|
3392
|
+
fontSize: H.value.plotLabels,
|
|
3342
3393
|
fill: e.color,
|
|
3343
|
-
x: n.x +
|
|
3394
|
+
x: n.x + H.value.plotLabels,
|
|
3344
3395
|
y: n.y,
|
|
3345
3396
|
maxWords: 2
|
|
3346
3397
|
}),
|
|
3347
|
-
style: D(`opacity:${
|
|
3348
|
-
}, null, 12,
|
|
3398
|
+
style: D(`opacity:${F.value ? F.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3399
|
+
}, null, 12, ar)) : S("", !0)], 64))), 128))], 64))), 128)),
|
|
3349
3400
|
(O(!0), C(b, null, A([
|
|
3350
3401
|
...Os.value,
|
|
3351
3402
|
...$.value,
|
|
3352
3403
|
...Ds.value
|
|
3353
|
-
], (e, t) => (O(), C(b, { key: `progression-${t}` }, [Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(
|
|
3404
|
+
], (e, t) => (O(), C(b, { key: `progression-${t}` }, [Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(M(ge)(e.plots).trend) ? (O(), C("g", or, [
|
|
3354
3405
|
w("defs", null, [w("marker", {
|
|
3355
3406
|
id: `progression_arrow_${t}`,
|
|
3356
3407
|
markerWidth: "9",
|
|
@@ -3364,140 +3415,140 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
3364
3415
|
}, [w("polygon", {
|
|
3365
3416
|
points: "0,0 7,3.5 0,7",
|
|
3366
3417
|
fill: e.color,
|
|
3367
|
-
stroke:
|
|
3418
|
+
stroke: U.value.chart.backgroundColor,
|
|
3368
3419
|
"stroke-width": "1",
|
|
3369
3420
|
"stroke-linejoin": "round"
|
|
3370
|
-
}, null, 8,
|
|
3421
|
+
}, null, 8, cr)], 8, sr)]),
|
|
3371
3422
|
e.plots.length > 1 ? (O(), C("line", {
|
|
3372
3423
|
key: 0,
|
|
3373
|
-
x1:
|
|
3374
|
-
x2:
|
|
3375
|
-
y1:
|
|
3376
|
-
y2:
|
|
3424
|
+
x1: M(ge)(e.plots).x1 + (e.type === "bar" ? Ho() : 0),
|
|
3425
|
+
x2: M(ge)(e.plots).x2 + (e.type === "bar" ? Ho() : 0),
|
|
3426
|
+
y1: M(v)(M(ge)(e.plots).y1),
|
|
3427
|
+
y2: M(v)(M(ge)(e.plots).y2),
|
|
3377
3428
|
"stroke-width": 1,
|
|
3378
|
-
stroke:
|
|
3429
|
+
stroke: U.value.chart.backgroundColor,
|
|
3379
3430
|
"stroke-dasharray": 2,
|
|
3380
3431
|
"stroke-linecap": "round",
|
|
3381
3432
|
"stroke-linejoin": "round",
|
|
3382
3433
|
"marker-end": `url(#progression_arrow_${t})`
|
|
3383
|
-
}, null, 8,
|
|
3434
|
+
}, null, 8, lr)) : S("", !0),
|
|
3384
3435
|
e.plots.length > 1 ? (O(), C("line", {
|
|
3385
3436
|
key: 1,
|
|
3386
|
-
x1:
|
|
3387
|
-
x2:
|
|
3388
|
-
y1:
|
|
3389
|
-
y2:
|
|
3437
|
+
x1: M(ge)(e.plots).x1 + (e.type === "bar" ? Ho() : 0),
|
|
3438
|
+
x2: M(ge)(e.plots).x2 + (e.type === "bar" ? Ho() : 0),
|
|
3439
|
+
y1: M(v)(M(ge)(e.plots).y1),
|
|
3440
|
+
y2: M(v)(M(ge)(e.plots).y2),
|
|
3390
3441
|
"stroke-width": 1,
|
|
3391
3442
|
stroke: e.color,
|
|
3392
3443
|
"stroke-dasharray": 2,
|
|
3393
3444
|
"stroke-linecap": "round",
|
|
3394
3445
|
"stroke-linejoin": "round",
|
|
3395
3446
|
"marker-end": `url(#progression_arrow_${t})`
|
|
3396
|
-
}, null, 8,
|
|
3447
|
+
}, null, 8, ur)) : S("", !0),
|
|
3397
3448
|
e.plots.length > 1 ? (O(), C("text", {
|
|
3398
3449
|
key: 2,
|
|
3399
3450
|
"text-anchor": "middle",
|
|
3400
|
-
x:
|
|
3401
|
-
y:
|
|
3402
|
-
"font-size":
|
|
3451
|
+
x: M(ge)(e.plots).x2 + (e.type === "bar" ? Ho() : 0),
|
|
3452
|
+
y: M(ge)(e.plots).y2 - 12,
|
|
3453
|
+
"font-size": H.value.plotLabels,
|
|
3403
3454
|
fill: e.color,
|
|
3404
|
-
stroke:
|
|
3455
|
+
stroke: U.value.chart.backgroundColor,
|
|
3405
3456
|
"stroke-width": 4,
|
|
3406
3457
|
"stroke-linecap": "round",
|
|
3407
3458
|
"stroke-linejoin": "round",
|
|
3408
3459
|
"paint-order": "stroke fill"
|
|
3409
|
-
}, M(
|
|
3410
|
-
v:
|
|
3460
|
+
}, lt(M(a)({
|
|
3461
|
+
v: M(ge)(e.plots).trend * 100,
|
|
3411
3462
|
s: "%",
|
|
3412
3463
|
r: 2
|
|
3413
|
-
})), 9,
|
|
3464
|
+
})), 9, dr)) : S("", !0)
|
|
3414
3465
|
])) : S("", !0)], 64))), 128)),
|
|
3415
|
-
|
|
3416
|
-
id: `individual_scale_gradient_${
|
|
3466
|
+
W.value.useIndividualScale && !W.value.isStacked ? (O(), C(b, { key: 13 }, [w("defs", null, [(O(!0), C(b, null, A(ks.value, (e, t) => (O(), C("linearGradient", {
|
|
3467
|
+
id: `individual_scale_gradient_${R.value}_${t}`,
|
|
3417
3468
|
x1: "0%",
|
|
3418
3469
|
x2: "100%",
|
|
3419
3470
|
y1: "0%",
|
|
3420
3471
|
y2: "0%"
|
|
3421
3472
|
}, [w("stop", {
|
|
3422
3473
|
offset: "0%",
|
|
3423
|
-
"stop-color":
|
|
3474
|
+
"stop-color": U.value.chart.backgroundColor,
|
|
3424
3475
|
"stop-opacity": "0"
|
|
3425
|
-
}, null, 8,
|
|
3476
|
+
}, null, 8, pr), w("stop", {
|
|
3426
3477
|
offset: "100%",
|
|
3427
3478
|
"stop-color": e.color,
|
|
3428
3479
|
"stop-opacity": "0.2"
|
|
3429
|
-
}, null, 8,
|
|
3430
|
-
x: e.x -
|
|
3480
|
+
}, null, 8, mr)], 8, fr))), 256))]), (O(!0), C(b, null, A(ks.value, (e, t) => (O(), C("rect", {
|
|
3481
|
+
x: e.x - U.value.chart.grid.labels.yAxis.labelWidth + Z.value - q.value.individualOffsetX,
|
|
3431
3482
|
y: q.value?.top,
|
|
3432
|
-
width:
|
|
3483
|
+
width: U.value.chart.grid.labels.yAxis.labelWidth + q.value.individualOffsetX,
|
|
3433
3484
|
height: q.value.height < 0 ? 10 : q.value.height,
|
|
3434
|
-
fill:
|
|
3435
|
-
onMouseenter: (t) =>
|
|
3436
|
-
onMouseleave: i[0] ||= (e) =>
|
|
3437
|
-
}, null, 40,
|
|
3438
|
-
w("g", null, [
|
|
3485
|
+
fill: F.value === e.groupId ? `url(#individual_scale_gradient_${R.value}_${t})` : "transparent",
|
|
3486
|
+
onMouseenter: (t) => F.value = e.groupId,
|
|
3487
|
+
onMouseleave: i[0] ||= (e) => F.value = null
|
|
3488
|
+
}, null, 40, hr))), 256))], 64)) : S("", !0),
|
|
3489
|
+
w("g", null, [U.value.chart.grid.labels.axis.yLabel && !W.value.useIndividualScale ? (O(), C("text", {
|
|
3439
3490
|
key: 0,
|
|
3440
3491
|
ref_key: "yAxisLabel",
|
|
3441
|
-
ref:
|
|
3442
|
-
"font-size":
|
|
3443
|
-
fill:
|
|
3444
|
-
transform: `translate(${
|
|
3492
|
+
ref: Si,
|
|
3493
|
+
"font-size": H.value.yAxis,
|
|
3494
|
+
fill: U.value.chart.grid.labels.color,
|
|
3495
|
+
transform: `translate(${U.value.chart.grid.labels.axis.fontSize}, ${q.value?.top + q.value.height / 2}) rotate(-90)`,
|
|
3445
3496
|
"text-anchor": "middle",
|
|
3446
3497
|
style: { transition: "none" }
|
|
3447
|
-
},
|
|
3498
|
+
}, lt(U.value.chart.grid.labels.axis.yLabel), 9, gr)) : S("", !0), U.value.chart.grid.labels.axis.xLabel ? (O(), C("text", {
|
|
3448
3499
|
key: 1,
|
|
3449
3500
|
ref_key: "xAxisLabel",
|
|
3450
|
-
ref:
|
|
3501
|
+
ref: xi,
|
|
3451
3502
|
"text-anchor": "middle",
|
|
3452
|
-
x:
|
|
3453
|
-
y:
|
|
3454
|
-
"font-size":
|
|
3455
|
-
fill:
|
|
3456
|
-
},
|
|
3457
|
-
|
|
3503
|
+
x: I.value / 2,
|
|
3504
|
+
y: Ai.value - 3,
|
|
3505
|
+
"font-size": H.value.yAxis,
|
|
3506
|
+
fill: U.value.chart.grid.labels.color
|
|
3507
|
+
}, lt(U.value.chart.grid.labels.axis.xLabel), 9, _r)) : S("", !0)]),
|
|
3508
|
+
U.value.chart.grid.labels.xAxisLabels.show ? (O(), C("g", {
|
|
3458
3509
|
key: 14,
|
|
3459
3510
|
ref_key: "timeLabelsEls",
|
|
3460
|
-
ref:
|
|
3511
|
+
ref: Ci
|
|
3461
3512
|
}, [r.$slots["time-label"] ? (O(!0), C(b, { key: 0 }, A(vo.value, (e, t) => j(r.$slots, "time-label", nt({
|
|
3462
3513
|
key: `time_label_${e.id}`,
|
|
3463
3514
|
ref_for: !0
|
|
3464
3515
|
}, {
|
|
3465
3516
|
x: q.value?.left + q.value.width / Y.value * t + q.value.width / Y.value / 2,
|
|
3466
3517
|
y: q.value?.bottom,
|
|
3467
|
-
fontSize:
|
|
3468
|
-
fill:
|
|
3469
|
-
transform: `translate(${q.value?.left + q.value.width / Y.value * t + q.value.width / Y.value / 2}, ${q.value?.bottom +
|
|
3518
|
+
fontSize: H.value.xAxis,
|
|
3519
|
+
fill: U.value.chart.grid.labels.xAxisLabels.color,
|
|
3520
|
+
transform: `translate(${q.value?.left + q.value.width / Y.value * t + q.value.width / Y.value / 2}, ${q.value?.bottom + H.value.xAxis * 1.3 + U.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${U.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3470
3521
|
absoluteIndex: e.absoluteIndex,
|
|
3471
3522
|
content: e.text,
|
|
3472
|
-
textAnchor:
|
|
3523
|
+
textAnchor: U.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : U.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3473
3524
|
show: e && e.text
|
|
3474
3525
|
}), void 0, !0)), 128)) : (O(!0), C(b, { key: 1 }, A(vo.value, (e, t) => (O(), C("g", { key: `time_label_${t}` }, [e && e.text ? (O(), C(b, { key: 0 }, [String(e.text).includes("\n") ? (O(), C("text", {
|
|
3475
3526
|
key: 1,
|
|
3476
3527
|
class: "vue-data-ui-time-label",
|
|
3477
|
-
"text-anchor":
|
|
3478
|
-
"font-size":
|
|
3479
|
-
fill:
|
|
3480
|
-
transform: `translate(${q.value?.left + q.value.width / Y.value * t + q.value.width / Y.value / 2}, ${q.value?.bottom +
|
|
3481
|
-
style: D({ cursor: oo() &&
|
|
3482
|
-
innerHTML:
|
|
3528
|
+
"text-anchor": U.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : U.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3529
|
+
"font-size": H.value.xAxis,
|
|
3530
|
+
fill: U.value.chart.grid.labels.xAxisLabels.color,
|
|
3531
|
+
transform: `translate(${q.value?.left + q.value.width / Y.value * t + q.value.width / Y.value / 2}, ${q.value?.bottom + H.value.xAxis * 1.5}), rotate(${U.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3532
|
+
style: D({ cursor: oo() && ga.value ? "pointer" : "default" }),
|
|
3533
|
+
innerHTML: M(n)({
|
|
3483
3534
|
content: String(e.text),
|
|
3484
|
-
fontSize:
|
|
3485
|
-
fill:
|
|
3535
|
+
fontSize: H.value.xAxis,
|
|
3536
|
+
fill: U.value.chart.grid.labels.xAxisLabels.color,
|
|
3486
3537
|
x: 0,
|
|
3487
3538
|
y: 0
|
|
3488
3539
|
}),
|
|
3489
3540
|
onClick: () => bo(e, t)
|
|
3490
|
-
}, null, 12,
|
|
3541
|
+
}, null, 12, yr)) : (O(), C("text", {
|
|
3491
3542
|
key: 0,
|
|
3492
3543
|
class: "vue-data-ui-time-label",
|
|
3493
|
-
"text-anchor":
|
|
3494
|
-
"font-size":
|
|
3495
|
-
fill:
|
|
3496
|
-
transform: `translate(${q.value?.left + q.value.width / Y.value * t + q.value.width / Y.value / 2}, ${q.value?.bottom +
|
|
3497
|
-
style: D({ cursor: oo() &&
|
|
3544
|
+
"text-anchor": U.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : U.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3545
|
+
"font-size": H.value.xAxis,
|
|
3546
|
+
fill: U.value.chart.grid.labels.xAxisLabels.color,
|
|
3547
|
+
transform: `translate(${q.value?.left + q.value.width / Y.value * t + q.value.width / Y.value / 2}, ${q.value?.bottom + H.value.xAxis * 1.5}), rotate(${U.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3548
|
+
style: D({ cursor: oo() && ga.value ? "pointer" : "default" }),
|
|
3498
3549
|
onClick: () => bo(e, t)
|
|
3499
|
-
},
|
|
3500
|
-
ws.value.length && !
|
|
3550
|
+
}, lt(e.text || ""), 13, vr))], 64)) : S("", !0)]))), 128))], 512)) : S("", !0),
|
|
3551
|
+
ws.value.length && !W.value.isStacked ? (O(), C("g", br, [(O(!0), C(b, null, A(ws.value, (e) => (O(), C("g", { key: e.uid }, [
|
|
3501
3552
|
e.yTop && e.show && isFinite(e.yTop) ? (O(), C("line", {
|
|
3502
3553
|
key: 0,
|
|
3503
3554
|
x1: e.x1,
|
|
@@ -3509,7 +3560,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
3509
3560
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
3510
3561
|
"stroke-linecap": "round",
|
|
3511
3562
|
style: { animation: "none !important" }
|
|
3512
|
-
}, null, 8,
|
|
3563
|
+
}, null, 8, xr)) : S("", !0),
|
|
3513
3564
|
e.yBottom && e.show && isFinite(e.yBottom) ? (O(), C("line", {
|
|
3514
3565
|
key: 1,
|
|
3515
3566
|
x1: e.x1,
|
|
@@ -3521,16 +3572,16 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
3521
3572
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
3522
3573
|
"stroke-linecap": "round",
|
|
3523
3574
|
style: { animation: "none !important" }
|
|
3524
|
-
}, null, 8,
|
|
3575
|
+
}, null, 8, Sr)) : S("", !0),
|
|
3525
3576
|
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (O(), C("rect", {
|
|
3526
3577
|
key: 2,
|
|
3527
3578
|
y: Math.min(e.yTop, e.yBottom),
|
|
3528
3579
|
x: e.x1,
|
|
3529
3580
|
width: q.value.width,
|
|
3530
|
-
height:
|
|
3531
|
-
fill:
|
|
3581
|
+
height: M(y)(e.areaHeight, 0),
|
|
3582
|
+
fill: M(me)(e.config.area.fill, e.config.area.opacity),
|
|
3532
3583
|
style: { animation: "none !important" }
|
|
3533
|
-
}, null, 8,
|
|
3584
|
+
}, null, 8, Cr)) : S("", !0),
|
|
3534
3585
|
e.config.label.text && e.show && isFinite(e._box.y) ? (O(), C("rect", nt({
|
|
3535
3586
|
key: 3,
|
|
3536
3587
|
class: "vue-ui-xy-annotation-label-box"
|
|
@@ -3547,9 +3598,9 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
3547
3598
|
"font-size": e.config.label.fontSize,
|
|
3548
3599
|
fill: e.config.label.color,
|
|
3549
3600
|
"text-anchor": e.config.label.textAnchor
|
|
3550
|
-
},
|
|
3601
|
+
}, lt(e.config.label.text), 9, wr)) : S("", !0)
|
|
3551
3602
|
]))), 128))])) : S("", !0),
|
|
3552
|
-
|
|
3603
|
+
U.value.chart.timeTag.show && (![null, void 0].includes(V.value) || ![null, void 0].includes(z.value)) ? (O(), C("g", Tr, [(O(), C("foreignObject", {
|
|
3553
3604
|
x: $s(),
|
|
3554
3605
|
y: q.value?.bottom,
|
|
3555
3606
|
width: "200",
|
|
@@ -3559,23 +3610,23 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
3559
3610
|
ref_key: "timeTagEl",
|
|
3560
3611
|
ref: Ys,
|
|
3561
3612
|
class: "vue-ui-xy-time-tag",
|
|
3562
|
-
style: D(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${
|
|
3613
|
+
style: D(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${U.value.chart.timeTag.backgroundColor};color:${U.value.chart.timeTag.color};font-size:${U.value.chart.timeTag.fontSize}px`),
|
|
3563
3614
|
innerHTML: ec.value
|
|
3564
|
-
}, null, 12,
|
|
3565
|
-
cx: q.value?.left + q.value.width / Y.value * ((
|
|
3615
|
+
}, null, 12, Dr)], 8, Er)), w("circle", {
|
|
3616
|
+
cx: q.value?.left + q.value.width / Y.value * ((V.value === null ? 0 : V.value) || (z.value === null ? 0 : z.value)) + q.value.width / Y.value / 2,
|
|
3566
3617
|
cy: q.value?.bottom,
|
|
3567
|
-
r:
|
|
3568
|
-
fill:
|
|
3569
|
-
}, null, 8,
|
|
3618
|
+
r: U.value.chart.timeTag.circleMarker.radius,
|
|
3619
|
+
fill: U.value.chart.timeTag.circleMarker.color
|
|
3620
|
+
}, null, 8, Or)])) : S("", !0)
|
|
3570
3621
|
])) : S("", !0),
|
|
3571
3622
|
Oa.value ? (O(), C("rect", nt({ key: 2 }, ja.value, {
|
|
3572
3623
|
"data-start": K.value.start,
|
|
3573
3624
|
"data-end": K.value.end
|
|
3574
|
-
}), null, 16,
|
|
3625
|
+
}), null, 16, kr)) : S("", !0),
|
|
3575
3626
|
j(r.$slots, "svg", { svg: {
|
|
3576
|
-
...
|
|
3577
|
-
isPrintingImg:
|
|
3578
|
-
isPrintingSvg:
|
|
3627
|
+
...ca.value,
|
|
3628
|
+
isPrintingImg: M(Ma) || M(Na) || Xi.value,
|
|
3629
|
+
isPrintingSvg: Zi.value,
|
|
3579
3630
|
data: [
|
|
3580
3631
|
...$.value,
|
|
3581
3632
|
...Ds.value,
|
|
@@ -3583,16 +3634,16 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
3583
3634
|
],
|
|
3584
3635
|
drawingArea: q.value
|
|
3585
3636
|
} }, void 0, !0)
|
|
3586
|
-
], 512)], 46,
|
|
3587
|
-
hint:
|
|
3588
|
-
isVisible:
|
|
3637
|
+
], 512)], 46, xt)), r.$slots.hint ? (O(), C("div", Ar, [j(r.$slots, "hint", E(T({
|
|
3638
|
+
hint: U.value.a11y.translations.keyboardNavigation,
|
|
3639
|
+
isVisible: _c.value
|
|
3589
3640
|
})), void 0, !0)])) : S("", !0)]),
|
|
3590
|
-
r.$slots.watermark ? (O(), C("div",
|
|
3641
|
+
r.$slots.watermark ? (O(), C("div", jr, [j(r.$slots, "watermark", E(T({ isPrinting: M(Ma) || M(Na) || Xi.value || Zi.value })), void 0, !0)])) : S("", !0),
|
|
3591
3642
|
(O(!0), C(b, null, A($.value, (e, t) => (O(), C(b, { key: `tag_line_${e.id}` }, [(O(!0), C(b, null, A(e.plots, (n, r) => (O(), C(b, { key: `tag_line_${t}_${r}` }, [[
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
].includes(r) && e.useTag && e.useTag === "end" &&
|
|
3643
|
+
z.value,
|
|
3644
|
+
V.value,
|
|
3645
|
+
Li.value
|
|
3646
|
+
].includes(r) && e.useTag && e.useTag === "end" && U.value.line.tag.followValue ? (O(), C("div", {
|
|
3596
3647
|
key: 0,
|
|
3597
3648
|
ref_for: !0,
|
|
3598
3649
|
ref: (e) => lo(t, r, e, "right", "line"),
|
|
@@ -3600,44 +3651,44 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
3600
3651
|
"data-tag": "right",
|
|
3601
3652
|
style: D({
|
|
3602
3653
|
position: "fixed",
|
|
3603
|
-
top:
|
|
3604
|
-
svgElement:
|
|
3605
|
-
x: q.value?.right +
|
|
3654
|
+
top: M(p)({
|
|
3655
|
+
svgElement: B.value,
|
|
3656
|
+
x: q.value?.right + U.value.line.tag.fontSize / 1.5,
|
|
3606
3657
|
y: n.y,
|
|
3607
|
-
element:
|
|
3658
|
+
element: Ki.value[`${t}_${r}_right_line`],
|
|
3608
3659
|
position: "right"
|
|
3609
3660
|
})?.top + "px",
|
|
3610
|
-
left:
|
|
3611
|
-
svgElement:
|
|
3612
|
-
x: q.value?.right +
|
|
3661
|
+
left: M(p)({
|
|
3662
|
+
svgElement: B.value,
|
|
3663
|
+
x: q.value?.right + U.value.line.tag.fontSize / 1.5,
|
|
3613
3664
|
y: n.y,
|
|
3614
|
-
element:
|
|
3665
|
+
element: Ki.value[`${t}_${r}_right_line`],
|
|
3615
3666
|
position: "right"
|
|
3616
3667
|
})?.left + "px",
|
|
3617
3668
|
height: "fit-content",
|
|
3618
3669
|
width: "fit-content",
|
|
3619
3670
|
background: e.color,
|
|
3620
|
-
color:
|
|
3671
|
+
color: M(xe)(e.color),
|
|
3621
3672
|
padding: "0 6px",
|
|
3622
|
-
fontSize:
|
|
3673
|
+
fontSize: U.value.line.tag.fontSize + "px",
|
|
3623
3674
|
opacity: 1
|
|
3624
3675
|
})
|
|
3625
|
-
}, [(O(), C("svg",
|
|
3676
|
+
}, [(O(), C("svg", Mr, [w("path", {
|
|
3626
3677
|
d: "M 0,10 10,0 10,20 Z",
|
|
3627
3678
|
fill: e.color,
|
|
3628
3679
|
stroke: "none"
|
|
3629
|
-
}, null, 8,
|
|
3680
|
+
}, null, 8, Nr)])), w("div", {
|
|
3630
3681
|
class: "vue-ui-xy-tag-content",
|
|
3631
|
-
innerHTML:
|
|
3682
|
+
innerHTML: M(fe)(U.value.line.tag.formatter, n.value, e.name, {
|
|
3632
3683
|
datapoint: n,
|
|
3633
3684
|
seriesIndex: r,
|
|
3634
3685
|
serieName: e.name
|
|
3635
3686
|
})
|
|
3636
|
-
}, null, 8,
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
].includes(r) && e.useTag && e.useTag === "start" &&
|
|
3687
|
+
}, null, 8, Pr)], 4)) : S("", !0), [
|
|
3688
|
+
z.value,
|
|
3689
|
+
V.value,
|
|
3690
|
+
Li.value
|
|
3691
|
+
].includes(r) && e.useTag && e.useTag === "start" && U.value.line.tag.followValue ? (O(), C("div", {
|
|
3641
3692
|
key: 1,
|
|
3642
3693
|
ref_for: !0,
|
|
3643
3694
|
ref: (e) => lo(t, r, e, "left", "line"),
|
|
@@ -3645,45 +3696,45 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
3645
3696
|
"data-tag": "left",
|
|
3646
3697
|
style: D({
|
|
3647
3698
|
position: "fixed",
|
|
3648
|
-
top:
|
|
3649
|
-
svgElement:
|
|
3650
|
-
x: q.value?.left -
|
|
3699
|
+
top: M(p)({
|
|
3700
|
+
svgElement: B.value,
|
|
3701
|
+
x: q.value?.left - U.value.line.tag.fontSize / 1.5,
|
|
3651
3702
|
y: n.y,
|
|
3652
|
-
element:
|
|
3703
|
+
element: Ki.value[`${t}_${r}_left_line`],
|
|
3653
3704
|
position: "left"
|
|
3654
3705
|
})?.top + "px",
|
|
3655
|
-
left:
|
|
3656
|
-
svgElement:
|
|
3657
|
-
x: q.value?.left -
|
|
3706
|
+
left: M(p)({
|
|
3707
|
+
svgElement: B.value,
|
|
3708
|
+
x: q.value?.left - U.value.line.tag.fontSize / 1.5,
|
|
3658
3709
|
y: n.y,
|
|
3659
|
-
element:
|
|
3710
|
+
element: Ki.value[`${t}_${r}_left_line`],
|
|
3660
3711
|
position: "left"
|
|
3661
3712
|
})?.left + "px",
|
|
3662
3713
|
height: "fit-content",
|
|
3663
3714
|
width: "fit-content",
|
|
3664
3715
|
background: e.color,
|
|
3665
|
-
color:
|
|
3716
|
+
color: M(xe)(e.color),
|
|
3666
3717
|
padding: "0 6px",
|
|
3667
|
-
fontSize:
|
|
3718
|
+
fontSize: U.value.line.tag.fontSize + "px",
|
|
3668
3719
|
opacity: 1
|
|
3669
3720
|
})
|
|
3670
|
-
}, [(O(), C("svg",
|
|
3721
|
+
}, [(O(), C("svg", Fr, [w("path", {
|
|
3671
3722
|
d: "M 0,0 10,10 0,20 Z",
|
|
3672
3723
|
fill: e.color,
|
|
3673
3724
|
stroke: "none"
|
|
3674
|
-
}, null, 8,
|
|
3725
|
+
}, null, 8, Ir)])), w("div", {
|
|
3675
3726
|
class: "vue-ui-xy-tag-content",
|
|
3676
|
-
innerHTML:
|
|
3727
|
+
innerHTML: M(fe)(U.value.line.tag.formatter, n.value, e.name, {
|
|
3677
3728
|
datapoint: n,
|
|
3678
3729
|
seriesIndex: r,
|
|
3679
3730
|
serieName: e.name
|
|
3680
3731
|
})
|
|
3681
|
-
}, null, 8,
|
|
3732
|
+
}, null, 8, Lr)], 4)) : S("", !0)], 64))), 128))], 64))), 128)),
|
|
3682
3733
|
(O(!0), C(b, null, A(Os.value, (e, t) => (O(), C(b, { key: `tag_plot_${e.id}` }, [(O(!0), C(b, null, A(e.plots, (n, r) => (O(), C(b, { key: `tag_plot_${t}_${r}` }, [[
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
].includes(r) && e.useTag && e.useTag === "end" &&
|
|
3734
|
+
z.value,
|
|
3735
|
+
V.value,
|
|
3736
|
+
Li.value
|
|
3737
|
+
].includes(r) && e.useTag && e.useTag === "end" && U.value.plot.tag.followValue ? (O(), C("div", {
|
|
3687
3738
|
key: 0,
|
|
3688
3739
|
ref_for: !0,
|
|
3689
3740
|
ref: (e) => lo(t, r, e, "right", "plot"),
|
|
@@ -3691,44 +3742,44 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
3691
3742
|
"data-tag": "right",
|
|
3692
3743
|
style: D({
|
|
3693
3744
|
position: "fixed",
|
|
3694
|
-
top:
|
|
3695
|
-
svgElement:
|
|
3696
|
-
x: q.value?.right +
|
|
3745
|
+
top: M(p)({
|
|
3746
|
+
svgElement: B.value,
|
|
3747
|
+
x: q.value?.right + U.value.plot.tag.fontSize / 1.5,
|
|
3697
3748
|
y: n.y,
|
|
3698
|
-
element:
|
|
3749
|
+
element: Ki.value[`${t}_${r}_right_plot`],
|
|
3699
3750
|
position: "right"
|
|
3700
3751
|
})?.top + "px",
|
|
3701
|
-
left:
|
|
3702
|
-
svgElement:
|
|
3703
|
-
x: q.value?.right +
|
|
3752
|
+
left: M(p)({
|
|
3753
|
+
svgElement: B.value,
|
|
3754
|
+
x: q.value?.right + U.value.plot.tag.fontSize / 1.5,
|
|
3704
3755
|
y: n.y,
|
|
3705
|
-
element:
|
|
3756
|
+
element: Ki.value[`${t}_${r}_right_plot`],
|
|
3706
3757
|
position: "right"
|
|
3707
3758
|
})?.left + "px",
|
|
3708
3759
|
height: "fit-content",
|
|
3709
3760
|
width: "fit-content",
|
|
3710
3761
|
background: e.color,
|
|
3711
|
-
color:
|
|
3762
|
+
color: M(xe)(e.color),
|
|
3712
3763
|
padding: "0 6px",
|
|
3713
|
-
fontSize:
|
|
3764
|
+
fontSize: U.value.plot.tag.fontSize + "px",
|
|
3714
3765
|
opacity: 1
|
|
3715
3766
|
})
|
|
3716
|
-
}, [(O(), C("svg",
|
|
3767
|
+
}, [(O(), C("svg", Rr, [w("path", {
|
|
3717
3768
|
d: "M 0,10 10,0 10,20 Z",
|
|
3718
3769
|
fill: e.color,
|
|
3719
3770
|
stroke: "none"
|
|
3720
|
-
}, null, 8,
|
|
3771
|
+
}, null, 8, zr)])), w("div", {
|
|
3721
3772
|
class: "vue-ui-xy-tag-content",
|
|
3722
|
-
innerHTML:
|
|
3773
|
+
innerHTML: M(fe)(U.value.plot.tag.formatter, n.value, e.name, {
|
|
3723
3774
|
datapoint: n,
|
|
3724
3775
|
seriesIndex: r,
|
|
3725
3776
|
serieName: e.name
|
|
3726
3777
|
})
|
|
3727
|
-
}, null, 8,
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
].includes(r) && e.useTag && e.useTag === "start" &&
|
|
3778
|
+
}, null, 8, Br)], 4)) : S("", !0), [
|
|
3779
|
+
z.value,
|
|
3780
|
+
V.value,
|
|
3781
|
+
Li.value
|
|
3782
|
+
].includes(r) && e.useTag && e.useTag === "start" && U.value.plot.tag.followValue ? (O(), C("div", {
|
|
3732
3783
|
key: 1,
|
|
3733
3784
|
ref_for: !0,
|
|
3734
3785
|
ref: (e) => lo(t, r, e, "left", "plot"),
|
|
@@ -3736,98 +3787,98 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
3736
3787
|
"data-tag": "left",
|
|
3737
3788
|
style: D({
|
|
3738
3789
|
position: "fixed",
|
|
3739
|
-
top:
|
|
3740
|
-
svgElement:
|
|
3741
|
-
x: q.value?.left -
|
|
3790
|
+
top: M(p)({
|
|
3791
|
+
svgElement: B.value,
|
|
3792
|
+
x: q.value?.left - U.value.plot.tag.fontSize / 1.5,
|
|
3742
3793
|
y: n.y,
|
|
3743
|
-
element:
|
|
3794
|
+
element: Ki.value[`${t}_${r}_left_plot`],
|
|
3744
3795
|
position: "left"
|
|
3745
3796
|
})?.top + "px",
|
|
3746
|
-
left:
|
|
3747
|
-
svgElement:
|
|
3748
|
-
x: q.value?.left -
|
|
3797
|
+
left: M(p)({
|
|
3798
|
+
svgElement: B.value,
|
|
3799
|
+
x: q.value?.left - U.value.plot.tag.fontSize / 1.5,
|
|
3749
3800
|
y: n.y,
|
|
3750
|
-
element:
|
|
3801
|
+
element: Ki.value[`${t}_${r}_left_plot`],
|
|
3751
3802
|
position: "left"
|
|
3752
3803
|
})?.left + "px",
|
|
3753
3804
|
height: "fit-content",
|
|
3754
3805
|
width: "fit-content",
|
|
3755
3806
|
background: e.color,
|
|
3756
|
-
color:
|
|
3807
|
+
color: M(xe)(e.color),
|
|
3757
3808
|
padding: "0 6px",
|
|
3758
|
-
fontSize:
|
|
3809
|
+
fontSize: U.value.plot.tag.fontSize + "px",
|
|
3759
3810
|
opacity: 1
|
|
3760
3811
|
})
|
|
3761
|
-
}, [(O(), C("svg",
|
|
3812
|
+
}, [(O(), C("svg", Vr, [w("path", {
|
|
3762
3813
|
d: "M 0,0 10,10 0,20 Z",
|
|
3763
3814
|
fill: e.color,
|
|
3764
3815
|
stroke: "none"
|
|
3765
|
-
}, null, 8,
|
|
3816
|
+
}, null, 8, Hr)])), w("div", {
|
|
3766
3817
|
class: "vue-ui-xy-tag-content",
|
|
3767
|
-
innerHTML:
|
|
3818
|
+
innerHTML: M(fe)(U.value.plot.tag.formatter, n.value, e.name, {
|
|
3768
3819
|
datapoint: n,
|
|
3769
3820
|
seriesIndex: r,
|
|
3770
3821
|
serieName: e.name
|
|
3771
3822
|
})
|
|
3772
|
-
}, null, 8,
|
|
3773
|
-
|
|
3823
|
+
}, null, 8, Ur)], 4)) : S("", !0)], 64))), 128))], 64))), 128)),
|
|
3824
|
+
U.value.chart.zoom.show && Ea.value > 6 && ha.value && Do.value ? (O(), Xe(Ge, {
|
|
3774
3825
|
key: 6,
|
|
3775
3826
|
ref_key: "chartSlicer",
|
|
3776
|
-
ref:
|
|
3777
|
-
uuid:
|
|
3827
|
+
ref: gi,
|
|
3828
|
+
uuid: R.value,
|
|
3778
3829
|
allMinimaps: xs.value,
|
|
3779
|
-
background:
|
|
3780
|
-
borderColor:
|
|
3781
|
-
customFormat:
|
|
3782
|
-
cutNullValues:
|
|
3783
|
-
enableRangeHandles:
|
|
3784
|
-
enableSelectionDrag:
|
|
3830
|
+
background: U.value.chart.zoom.color,
|
|
3831
|
+
borderColor: U.value.chart.backgroundColor,
|
|
3832
|
+
customFormat: U.value.chart.zoom.customFormat,
|
|
3833
|
+
cutNullValues: U.value.line.cutNullValues,
|
|
3834
|
+
enableRangeHandles: U.value.chart.zoom.enableRangeHandles,
|
|
3835
|
+
enableSelectionDrag: U.value.chart.zoom.enableSelectionDrag,
|
|
3785
3836
|
end: K.value.end,
|
|
3786
|
-
focusOnDrag:
|
|
3787
|
-
focusRangeRatio:
|
|
3788
|
-
fontSize:
|
|
3789
|
-
useResetSlot:
|
|
3790
|
-
immediate: !
|
|
3791
|
-
inputColor:
|
|
3837
|
+
focusOnDrag: U.value.chart.zoom.focusOnDrag,
|
|
3838
|
+
focusRangeRatio: U.value.chart.zoom.focusRangeRatio,
|
|
3839
|
+
fontSize: U.value.chart.zoom.fontSize,
|
|
3840
|
+
useResetSlot: U.value.chart.zoom.useResetSlot,
|
|
3841
|
+
immediate: !U.value.chart.zoom.preview.enable,
|
|
3842
|
+
inputColor: U.value.chart.zoom.color,
|
|
3792
3843
|
isPreview: Oa.value,
|
|
3793
3844
|
labelLeft: J.value[0] ? J.value[0].text : "",
|
|
3794
3845
|
labelRight: J.value.at(-1) ? J.value.at(-1).text : "",
|
|
3795
3846
|
max: Ea.value,
|
|
3796
3847
|
min: 0,
|
|
3797
3848
|
minimap: bs.value,
|
|
3798
|
-
minimapCompact:
|
|
3799
|
-
minimapFrameColor:
|
|
3800
|
-
minimapIndicatorColor:
|
|
3801
|
-
minimapLineColor:
|
|
3802
|
-
minimapMerged:
|
|
3803
|
-
minimapSelectedColor:
|
|
3804
|
-
minimapSelectedColorOpacity:
|
|
3805
|
-
minimapSelectedIndex:
|
|
3806
|
-
minimapSelectionRadius:
|
|
3849
|
+
minimapCompact: U.value.chart.zoom.minimap.compact,
|
|
3850
|
+
minimapFrameColor: U.value.chart.zoom.minimap.frameColor,
|
|
3851
|
+
minimapIndicatorColor: U.value.chart.zoom.minimap.indicatorColor,
|
|
3852
|
+
minimapLineColor: U.value.chart.zoom.minimap.lineColor,
|
|
3853
|
+
minimapMerged: U.value.chart.zoom.minimap.merged,
|
|
3854
|
+
minimapSelectedColor: U.value.chart.zoom.minimap.selectedColor,
|
|
3855
|
+
minimapSelectedColorOpacity: U.value.chart.zoom.minimap.selectedColorOpacity,
|
|
3856
|
+
minimapSelectedIndex: V.value,
|
|
3857
|
+
minimapSelectionRadius: U.value.chart.zoom.minimap.selectionRadius,
|
|
3807
3858
|
preciseLabels: Fs.value.length ? Fs.value : mo.value,
|
|
3808
|
-
refreshEndPoint:
|
|
3809
|
-
refreshStartPoint:
|
|
3810
|
-
selectColor:
|
|
3859
|
+
refreshEndPoint: U.value.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => Ta(e.series).length)) : U.value.chart.zoom.endIndex + 1,
|
|
3860
|
+
refreshStartPoint: U.value.chart.zoom.startIndex === null ? 0 : U.value.chart.zoom.startIndex,
|
|
3861
|
+
selectColor: U.value.chart.zoom.highlightColor,
|
|
3811
3862
|
selectedSeries: Ss.value,
|
|
3812
|
-
smoothMinimap:
|
|
3863
|
+
smoothMinimap: U.value.chart.zoom.minimap.smooth,
|
|
3813
3864
|
start: K.value.start,
|
|
3814
|
-
textColor:
|
|
3865
|
+
textColor: U.value.chart.color,
|
|
3815
3866
|
timeLabels: mo.value,
|
|
3816
|
-
usePreciseLabels:
|
|
3867
|
+
usePreciseLabels: U.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !U.value.chart.zoom.useDefaultFormat,
|
|
3817
3868
|
valueEnd: K.value.end,
|
|
3818
3869
|
valueStart: K.value.start,
|
|
3819
|
-
verticalHandles:
|
|
3820
|
-
minScale:
|
|
3821
|
-
maxScale:
|
|
3822
|
-
maxWidth:
|
|
3823
|
-
additionalMinimapHeight:
|
|
3824
|
-
handleType:
|
|
3825
|
-
handleIconColor:
|
|
3826
|
-
handleBorderWidth:
|
|
3827
|
-
handleBorderColor:
|
|
3828
|
-
handleFill:
|
|
3829
|
-
handleWidth:
|
|
3830
|
-
isCursorPointer:
|
|
3870
|
+
verticalHandles: U.value.chart.zoom.minimap.verticalHandles,
|
|
3871
|
+
minScale: U.value.chart.grid.labels.yAxis.scaleMin,
|
|
3872
|
+
maxScale: U.value.chart.grid.labels.yAxis.scaleMax,
|
|
3873
|
+
maxWidth: U.value.chart.zoom.maxWidth,
|
|
3874
|
+
additionalMinimapHeight: U.value.chart.zoom.minimap.additionalHeight,
|
|
3875
|
+
handleType: U.value.chart.zoom.minimap.handleType,
|
|
3876
|
+
handleIconColor: U.value.chart.zoom.minimap.handleIconColor,
|
|
3877
|
+
handleBorderWidth: U.value.chart.zoom.minimap.handleBorderWidth,
|
|
3878
|
+
handleBorderColor: U.value.chart.zoom.minimap.handleBorderColor,
|
|
3879
|
+
handleFill: U.value.chart.zoom.minimap.handleFill,
|
|
3880
|
+
handleWidth: U.value.chart.zoom.minimap.handleWidth,
|
|
3881
|
+
isCursorPointer: ga.value,
|
|
3831
3882
|
onFutureEnd: i[1] ||= (e) => ka("end", e),
|
|
3832
3883
|
onFutureStart: i[2] ||= (e) => ka("start", e),
|
|
3833
3884
|
onReset: Fo,
|
|
@@ -3835,26 +3886,26 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
3835
3886
|
"onUpdate:end": Po,
|
|
3836
3887
|
"onUpdate:start": No
|
|
3837
3888
|
}, {
|
|
3838
|
-
"reset-action":
|
|
3889
|
+
"reset-action": N(({ reset: e }) => [j(r.$slots, "reset-action", E(T({ reset: e })), void 0, !0)]),
|
|
3839
3890
|
_: 3
|
|
3840
3891
|
}, 8, /* @__PURE__ */ "uuid.allMinimaps.background.borderColor.customFormat.cutNullValues.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.useResetSlot.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapLineColor.minimapMerged.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.minimapSelectionRadius.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.smoothMinimap.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.minScale.maxScale.maxWidth.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth.isCursorPointer".split("."))) : S("", !0),
|
|
3841
|
-
w("div", { id: `legend-bottom-${
|
|
3842
|
-
|
|
3892
|
+
w("div", { id: `legend-bottom-${R.value}` }, null, 8, Wr),
|
|
3893
|
+
Ji.value && (U.value.chart.legend.show || r.$slots.legend) ? (O(), Xe(Ye, {
|
|
3843
3894
|
key: 7,
|
|
3844
|
-
to:
|
|
3895
|
+
to: U.value.chart.legend.position === "top" ? `#legend-top-${R.value}` : `#legend-bottom-${R.value}`
|
|
3845
3896
|
}, [w("div", {
|
|
3846
3897
|
ref_key: "chartLegend",
|
|
3847
|
-
ref:
|
|
3848
|
-
}, [j(r.$slots, "legend", { legend: Ya.value }, () => [
|
|
3898
|
+
ref: _i
|
|
3899
|
+
}, [j(r.$slots, "legend", { legend: Ya.value }, () => [U.value.chart.legend.show ? (O(), C("div", {
|
|
3849
3900
|
key: 0,
|
|
3850
3901
|
class: "vue-ui-xy-legend",
|
|
3851
|
-
style: D({ fontSize: `var(--legend-font-size, ${
|
|
3852
|
-
}, [
|
|
3902
|
+
style: D({ fontSize: `var(--legend-font-size, ${U.value.chart.legend.fontSize ?? 14}px)` })
|
|
3903
|
+
}, [U.value.chart.legend.selectAllToggle.show && Ya.value.length > 2 && !M(G) ? (O(), Xe(qe, {
|
|
3853
3904
|
key: 0,
|
|
3854
|
-
backgroundColor:
|
|
3855
|
-
color:
|
|
3856
|
-
fontSize:
|
|
3857
|
-
checked:
|
|
3905
|
+
backgroundColor: U.value.chart.legend.selectAllToggle.backgroundColor,
|
|
3906
|
+
color: U.value.chart.legend.selectAllToggle.color,
|
|
3907
|
+
fontSize: U.value.chart.legend.fontSize,
|
|
3908
|
+
checked: L.value.length > 0,
|
|
3858
3909
|
onToggle: ts
|
|
3859
3910
|
}, null, 8, [
|
|
3860
3911
|
"backgroundColor",
|
|
@@ -3870,19 +3921,19 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
3870
3921
|
class: it({
|
|
3871
3922
|
"vue-ui-xy-legend-item-alone": Ya.value.length === 1,
|
|
3872
3923
|
"vue-ui-xy-legend-item": !0,
|
|
3873
|
-
"vue-ui-xy-legend-item-segregated":
|
|
3924
|
+
"vue-ui-xy-legend-item-segregated": L.value.includes(e.id)
|
|
3874
3925
|
}),
|
|
3875
|
-
style: D({ cursor:
|
|
3876
|
-
}, [
|
|
3926
|
+
style: D({ cursor: ga.value ? "pointer" : "default" })
|
|
3927
|
+
}, [Ni.value[e.type] === "line" ? (O(), C("svg", Kr, [w("rect", {
|
|
3877
3928
|
x: "0",
|
|
3878
3929
|
y: "7.5",
|
|
3879
3930
|
rx: "1.5",
|
|
3880
|
-
stroke:
|
|
3931
|
+
stroke: U.value.chart.backgroundColor,
|
|
3881
3932
|
"stroke-width": .5,
|
|
3882
3933
|
height: "3",
|
|
3883
3934
|
width: "20",
|
|
3884
3935
|
fill: e.color
|
|
3885
|
-
}, null, 8,
|
|
3936
|
+
}, null, 8, qr), $e(Ue, {
|
|
3886
3937
|
plot: {
|
|
3887
3938
|
x: 10,
|
|
3888
3939
|
y: 9
|
|
@@ -3897,13 +3948,13 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
3897
3948
|
"hexagon",
|
|
3898
3949
|
"star"
|
|
3899
3950
|
].includes(e.shape) ? e.shape : "circle",
|
|
3900
|
-
stroke:
|
|
3951
|
+
stroke: U.value.chart.backgroundColor,
|
|
3901
3952
|
strokeWidth: .5
|
|
3902
3953
|
}, null, 8, [
|
|
3903
3954
|
"color",
|
|
3904
3955
|
"shape",
|
|
3905
3956
|
"stroke"
|
|
3906
|
-
])])) :
|
|
3957
|
+
])])) : Ni.value[e.type] === "bar" ? (O(), C("svg", Jr, [Ni.value[e.type] === "bar" && r.$slots.pattern ? (O(), C("rect", {
|
|
3907
3958
|
key: 0,
|
|
3908
3959
|
x: "4",
|
|
3909
3960
|
y: "4",
|
|
@@ -3912,7 +3963,7 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
3912
3963
|
width: "32",
|
|
3913
3964
|
stroke: "none",
|
|
3914
3965
|
fill: e.color
|
|
3915
|
-
}, null, 8,
|
|
3966
|
+
}, null, 8, Yr)) : S("", !0), Ni.value[e.type] === "bar" ? (O(), C("rect", {
|
|
3916
3967
|
key: 1,
|
|
3917
3968
|
x: "4",
|
|
3918
3969
|
y: "4",
|
|
@@ -3920,8 +3971,8 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
3920
3971
|
height: "32",
|
|
3921
3972
|
width: "32",
|
|
3922
3973
|
stroke: "none",
|
|
3923
|
-
fill: r.$slots.pattern ? `url(#pattern_${
|
|
3924
|
-
}, null, 8,
|
|
3974
|
+
fill: r.$slots.pattern ? `url(#pattern_${R.value}_${e.slotAbsoluteIndex})` : e.color
|
|
3975
|
+
}, null, 8, Xr)) : S("", !0)])) : (O(), C("svg", Zr, [$e(Ue, {
|
|
3925
3976
|
plot: {
|
|
3926
3977
|
x: 6,
|
|
3927
3978
|
y: 6
|
|
@@ -3936,39 +3987,39 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
3936
3987
|
"hexagon",
|
|
3937
3988
|
"star"
|
|
3938
3989
|
].includes(e.shape) ? e.shape : "circle"
|
|
3939
|
-
}, null, 8, ["color", "shape"])])), w("span", { style: D(`color:${
|
|
3990
|
+
}, null, 8, ["color", "shape"])])), w("span", { style: D(`color:${U.value.chart.legend.color}`) }, lt(e.name), 5)], 46, Gr))), 128))], 4)) : S("", !0)], !0)], 512)], 8, ["to"])) : S("", !0),
|
|
3940
3991
|
r.$slots.source ? (O(), C("div", {
|
|
3941
3992
|
key: 8,
|
|
3942
3993
|
ref_key: "source",
|
|
3943
|
-
ref:
|
|
3994
|
+
ref: vi,
|
|
3944
3995
|
dir: "auto"
|
|
3945
3996
|
}, [j(r.$slots, "source", {}, void 0, !0)], 512)) : S("", !0),
|
|
3946
|
-
$e(
|
|
3947
|
-
teleportTo:
|
|
3948
|
-
show:
|
|
3949
|
-
backgroundColor:
|
|
3950
|
-
color:
|
|
3951
|
-
fontSize:
|
|
3952
|
-
borderRadius:
|
|
3953
|
-
borderColor:
|
|
3954
|
-
borderWidth:
|
|
3955
|
-
backgroundOpacity:
|
|
3956
|
-
position:
|
|
3957
|
-
offsetY:
|
|
3997
|
+
$e(M(ti), {
|
|
3998
|
+
teleportTo: U.value.chart.tooltip.teleportTo,
|
|
3999
|
+
show: W.value.showTooltip && Ii.value,
|
|
4000
|
+
backgroundColor: U.value.chart.tooltip.backgroundColor,
|
|
4001
|
+
color: U.value.chart.tooltip.color,
|
|
4002
|
+
fontSize: U.value.chart.tooltip.fontSize,
|
|
4003
|
+
borderRadius: U.value.chart.tooltip.borderRadius,
|
|
4004
|
+
borderColor: U.value.chart.tooltip.borderColor,
|
|
4005
|
+
borderWidth: U.value.chart.tooltip.borderWidth,
|
|
4006
|
+
backgroundOpacity: U.value.chart.tooltip.backgroundOpacity,
|
|
4007
|
+
position: U.value.chart.tooltip.position,
|
|
4008
|
+
offsetY: U.value.chart.tooltip.offsetY,
|
|
3958
4009
|
parent: r.$refs.chart,
|
|
3959
4010
|
content: Is.value,
|
|
3960
|
-
isFullscreen:
|
|
3961
|
-
isCustom:
|
|
3962
|
-
smooth:
|
|
3963
|
-
backdropFilter:
|
|
3964
|
-
smoothForce:
|
|
3965
|
-
smoothSnapThreshold:
|
|
3966
|
-
isA11yMode:
|
|
3967
|
-
a11yPosition:
|
|
4011
|
+
isFullscreen: Fi.value,
|
|
4012
|
+
isCustom: U.value.chart.tooltip.customFormat && typeof U.value.chart.tooltip.customFormat == "function",
|
|
4013
|
+
smooth: U.value.chart.tooltip.smooth,
|
|
4014
|
+
backdropFilter: U.value.chart.tooltip.backdropFilter,
|
|
4015
|
+
smoothForce: U.value.chart.tooltip.smoothForce,
|
|
4016
|
+
smoothSnapThreshold: U.value.chart.tooltip.smoothSnapThreshold,
|
|
4017
|
+
isA11yMode: Qi.value != null,
|
|
4018
|
+
a11yPosition: $i.value
|
|
3968
4019
|
}, {
|
|
3969
|
-
"tooltip-before":
|
|
3970
|
-
tooltip:
|
|
3971
|
-
"tooltip-after":
|
|
4020
|
+
"tooltip-before": N(() => [j(r.$slots, "tooltip-before", E(T({ ...js.value })), void 0, !0)]),
|
|
4021
|
+
tooltip: N(() => [j(r.$slots, "tooltip", E(T({ ...js.value })), void 0, !0)]),
|
|
4022
|
+
"tooltip-after": N(() => [j(r.$slots, "tooltip-after", E(T({ ...js.value })), void 0, !0)]),
|
|
3972
4023
|
_: 3
|
|
3973
4024
|
}, 8, [
|
|
3974
4025
|
"teleportTo",
|
|
@@ -3993,41 +4044,41 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
3993
4044
|
"isA11yMode",
|
|
3994
4045
|
"a11yPosition"
|
|
3995
4046
|
]),
|
|
3996
|
-
|
|
4047
|
+
ha.value && U.value.chart.userOptions.buttons.table ? (O(), Xe(st(sc.value.component), nt({ key: 9 }, sc.value.props, {
|
|
3997
4048
|
ref_key: "tableUnit",
|
|
3998
|
-
ref:
|
|
3999
|
-
onClose:
|
|
4049
|
+
ref: Yi,
|
|
4050
|
+
onClose: cc
|
|
4000
4051
|
}), Ze({
|
|
4001
|
-
content:
|
|
4052
|
+
content: N(() => [w("div", { style: D(`${M(Ma) || U.value.table.useDialog ? "" : "max-height:400px"};${U.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${U.value.table.useDialog ? "" : "margin-top:48px"}`) }, [w("div", Qr, [ht(w("input", {
|
|
4002
4053
|
type: "checkbox",
|
|
4003
|
-
"onUpdate:modelValue": i[4] ||= (e) =>
|
|
4004
|
-
}, null, 512), [[
|
|
4005
|
-
onClick: i[5] ||= (e) =>
|
|
4006
|
-
style: D({ cursor:
|
|
4007
|
-
}, [$e(
|
|
4054
|
+
"onUpdate:modelValue": i[4] ||= (e) => Vi.value = e
|
|
4055
|
+
}, null, 512), [[ft, Vi.value]]), w("div", {
|
|
4056
|
+
onClick: i[5] ||= (e) => Vi.value = !Vi.value,
|
|
4057
|
+
style: D({ cursor: ga.value ? "pointer" : "default" })
|
|
4058
|
+
}, [$e(M(ri), {
|
|
4008
4059
|
name: "chartLine",
|
|
4009
4060
|
size: 20,
|
|
4010
|
-
stroke:
|
|
4011
|
-
}, null, 8, ["stroke"])], 4)]),
|
|
4012
|
-
key: `sparkline_${
|
|
4061
|
+
stroke: U.value.chart.color
|
|
4062
|
+
}, null, 8, ["stroke"])], 4)]), Vi.value ? (O(), Xe(M(ii), {
|
|
4063
|
+
key: `sparkline_${Hi.value}`,
|
|
4013
4064
|
dataset: fs.value,
|
|
4014
4065
|
config: ps.value
|
|
4015
|
-
}, null, 8, ["dataset", "config"])) : (O(), Xe(
|
|
4016
|
-
key: `table_${
|
|
4066
|
+
}, null, 8, ["dataset", "config"])) : (O(), Xe(M(ei), {
|
|
4067
|
+
key: `table_${zi.value}`,
|
|
4017
4068
|
colNames: Rs.value.colNames,
|
|
4018
4069
|
head: Rs.value.head,
|
|
4019
4070
|
body: Rs.value.body,
|
|
4020
4071
|
config: Rs.value.config,
|
|
4021
|
-
title:
|
|
4022
|
-
withCloseButton: !
|
|
4023
|
-
onClose:
|
|
4072
|
+
title: U.value.table.useDialog ? "" : sc.value.title,
|
|
4073
|
+
withCloseButton: !U.value.table.useDialog,
|
|
4074
|
+
onClose: cc
|
|
4024
4075
|
}, {
|
|
4025
|
-
th:
|
|
4026
|
-
td:
|
|
4027
|
-
p:
|
|
4076
|
+
th: N(({ th: e }) => [w("div", { innerHTML: e }, null, 8, $r)]),
|
|
4077
|
+
td: N(({ td: e }) => [Qe(lt(isNaN(Number(e)) ? e : M(a)({
|
|
4078
|
+
p: U.value.chart.labels.prefix,
|
|
4028
4079
|
v: e,
|
|
4029
|
-
s:
|
|
4030
|
-
r:
|
|
4080
|
+
s: U.value.chart.labels.suffix,
|
|
4081
|
+
r: U.value.table.rounding
|
|
4031
4082
|
})), 1)]),
|
|
4032
4083
|
_: 1
|
|
4033
4084
|
}, 8, [
|
|
@@ -4039,25 +4090,25 @@ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt =
|
|
|
4039
4090
|
"withCloseButton"
|
|
4040
4091
|
]))], 4)]),
|
|
4041
4092
|
_: 2
|
|
4042
|
-
}, [
|
|
4093
|
+
}, [U.value.table.useDialog ? {
|
|
4043
4094
|
name: "title",
|
|
4044
|
-
fn:
|
|
4095
|
+
fn: N(() => [Qe(lt(sc.value.title), 1)]),
|
|
4045
4096
|
key: "0"
|
|
4046
|
-
} : void 0,
|
|
4097
|
+
} : void 0, U.value.table.useDialog ? {
|
|
4047
4098
|
name: "actions",
|
|
4048
|
-
fn:
|
|
4099
|
+
fn: N(() => [w("button", {
|
|
4049
4100
|
tabindex: "0",
|
|
4050
4101
|
class: "vue-ui-user-options-button",
|
|
4051
|
-
onClick: i[3] ||= (e) => zs(
|
|
4052
|
-
}, [$e(
|
|
4102
|
+
onClick: i[3] ||= (e) => zs(U.value.chart.userOptions.callbacks.csv)
|
|
4103
|
+
}, [$e(M(ri), {
|
|
4053
4104
|
name: "fileCsv",
|
|
4054
|
-
stroke:
|
|
4105
|
+
stroke: sc.value.props.color
|
|
4055
4106
|
}, null, 8, ["stroke"])])]),
|
|
4056
4107
|
key: "1"
|
|
4057
4108
|
} : void 0]), 1040)) : S("", !0),
|
|
4058
|
-
j(r.$slots, "skeleton", {}, () => [
|
|
4059
|
-
], 46,
|
|
4109
|
+
j(r.$slots, "skeleton", {}, () => [M(G) ? (O(), Xe(Pe, { key: 0 })) : S("", !0)], !0)
|
|
4110
|
+
], 46, _t));
|
|
4060
4111
|
}
|
|
4061
|
-
}, [["__scopeId", "data-v-
|
|
4112
|
+
}, [["__scopeId", "data-v-e28cb293"]]);
|
|
4062
4113
|
//#endregion
|
|
4063
|
-
export {
|
|
4114
|
+
export { gt as n, P as t };
|