vue-data-ui 2.4.50 → 2.4.51
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/README.md +12 -0
- package/dist/{Arrow-DuuEh1Nr.cjs → Arrow-2a_SwBgz.cjs} +1 -1
- package/dist/{Arrow-D1z9KkQN.js → Arrow-BUz63pb2.js} +1 -1
- package/dist/{BaseIcon-DemqZ_13.cjs → BaseIcon-BASl_NFX.cjs} +1 -1
- package/dist/{BaseIcon-BHwqOTt4.js → BaseIcon-CmiukQBl.js} +1 -1
- package/dist/{DataTable-CQ8fQnex.js → DataTable-DGf6RrOJ.js} +2 -2
- package/dist/{DataTable-CovKV5Yy.cjs → DataTable-G3ICK-5h.cjs} +1 -1
- package/dist/{Legend-Br7MWNDo.js → Legend-BLaZxMge.js} +1 -1
- package/dist/{Legend-Bbz-hKDf.cjs → Legend-BiuPlEMg.cjs} +1 -1
- package/dist/{PackageVersion-BEtuCME5.cjs → PackageVersion-Bj34UNnQ.cjs} +1 -1
- package/dist/{PackageVersion-BV3fHO46.js → PackageVersion-CxJghxYD.js} +1 -1
- package/dist/{PenAndPaper-BIcmfBvD.cjs → PenAndPaper-D9yQnc0e.cjs} +1 -1
- package/dist/{PenAndPaper-CCOywdmm.js → PenAndPaper-ZdZEumki.js} +3 -3
- package/dist/{Shape-B7Mekpyf.js → Shape-DIKzzpFm.js} +1 -1
- package/dist/{Shape-BD37ZaX9.cjs → Shape-yducHWd0.cjs} +1 -1
- package/dist/{Slicer-CWvkt-8k.cjs → Slicer-BHS9W4MJ.cjs} +1 -1
- package/dist/{Slicer-ahFReg7h.js → Slicer-Cxdl3cDt.js} +2 -2
- package/dist/{Title-C2siG5N2.cjs → Title-Bk_55doC.cjs} +1 -1
- package/dist/{Title-CIsKiWgN.js → Title-aSAft5dl.js} +1 -1
- package/dist/{Tooltip-CS4C58T7.cjs → Tooltip-G7ENx87_.cjs} +1 -1
- package/dist/{Tooltip-B1LgrF9R.js → Tooltip-smutPF--.js} +1 -1
- package/dist/{index-BtL_cLa8.js → index-BbPeL8Gp.js} +5 -1
- package/dist/index-DhDYBLBe.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +5 -1
- package/dist/types/vue-data-ui.d.ts +5 -1
- package/dist/{useNestedProp-CEAfm1tu.js → useNestedProp-BN8claGG.js} +1 -1
- package/dist/{useNestedProp-D_feh7A_.cjs → useNestedProp-BphUExEh.cjs} +1 -1
- package/dist/{usePrinter-B4xDG31F.cjs → usePrinter-2_QjJFdH.cjs} +1 -1
- package/dist/{usePrinter-sRt2SKr2.js → usePrinter-DaybDVqP.js} +1 -1
- package/dist/useUserOptionState-BIvW1Kz7.js +17 -0
- package/dist/useUserOptionState-BgepsfED.cjs +1 -0
- package/dist/{vue-data-ui-CuEYAddV.cjs → vue-data-ui-C5vsHRHD.cjs} +1 -1
- package/dist/{vue-data-ui-NkhaiK6y.js → vue-data-ui-Ckbp-yIf.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-DUgumRsg.cjs +19 -0
- package/dist/{vue-ui-3d-bar-BeXYzdzu.js → vue-ui-3d-bar-wDYs3sVe.js} +345 -339
- package/dist/{vue-ui-accordion-Cjc683tN.js → vue-ui-accordion-5d5iVpr7.js} +3 -3
- package/dist/{vue-ui-accordion-CBxsUoGb.cjs → vue-ui-accordion-B7tNzRWB.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-rnt8M-Qz.js → vue-ui-age-pyramid-BH1khaaq.js} +260 -254
- package/dist/vue-ui-age-pyramid-Dxx1mVwR.cjs +1 -0
- package/dist/{vue-ui-annotator-CFU5Zyfk.js → vue-ui-annotator-B9VKE_qz.js} +1 -1
- package/dist/{vue-ui-annotator-Yu-mHS2N.cjs → vue-ui-annotator-jXkB5XnD.cjs} +1 -1
- package/dist/{vue-ui-bullet-CRbW1ON6.js → vue-ui-bullet-BLi9CSZw.js} +152 -146
- package/dist/vue-ui-bullet-QrXtipbT.cjs +34 -0
- package/dist/{vue-ui-candlestick-D-ERLtI1.js → vue-ui-candlestick-Bjz1uFbv.js} +223 -217
- package/dist/vue-ui-candlestick-Da4ygGXR.cjs +2 -0
- package/dist/{vue-ui-carousel-table-I1m4HMWf.js → vue-ui-carousel-table-B6zgTL-W.js} +160 -154
- package/dist/vue-ui-carousel-table-Cfif8Oiz.cjs +1 -0
- package/dist/vue-ui-chestnut-C_N7EbjQ.cjs +6 -0
- package/dist/{vue-ui-chestnut-CqJRKECX.js → vue-ui-chestnut-D5HpkuIa.js} +237 -231
- package/dist/{vue-ui-cursor-S83QIsxQ.cjs → vue-ui-cursor-A_siHYBc.cjs} +1 -1
- package/dist/{vue-ui-cursor-jrrdh8Lf.js → vue-ui-cursor-DZNIbvR2.js} +2 -2
- package/dist/{vue-ui-dashboard-DW1mIInG.cjs → vue-ui-dashboard-BfPJyiY9.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DR_Bhwa3.js → vue-ui-dashboard-DCqe4BZg.js} +2 -2
- package/dist/{vue-ui-digits-1jZdiwHJ.js → vue-ui-digits-BEWCnojc.js} +2 -2
- package/dist/{vue-ui-digits-s5f9eFtW.cjs → vue-ui-digits-BEhLa3jI.cjs} +1 -1
- package/dist/vue-ui-donut-By3QRfkV.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-DsHTZ9T2.js → vue-ui-donut-evolution-Cu6dmlT2.js} +300 -294
- package/dist/vue-ui-donut-evolution-DEABWsj0.cjs +1 -0
- package/dist/{vue-ui-donut-BAYiPsxp.js → vue-ui-donut-g5ZLhYPx.js} +376 -370
- package/dist/vue-ui-dumbbell-Dfb1l5qP.cjs +9 -0
- package/dist/{vue-ui-dumbbell-DcMmBxLy.js → vue-ui-dumbbell-bb4-Ep6o.js} +256 -250
- package/dist/vue-ui-flow-CCvTnu7z.cjs +1 -0
- package/dist/{vue-ui-flow-BTXEmIQG.js → vue-ui-flow-hD0F6mTK.js} +164 -158
- package/dist/vue-ui-funnel-DKxAPRi_.cjs +1 -0
- package/dist/{vue-ui-funnel-BB_h0FKg.js → vue-ui-funnel-hcbE4yky.js} +178 -172
- package/dist/{vue-ui-galaxy-DlBk1FUz.js → vue-ui-galaxy-ByKjxVWV.js} +187 -181
- package/dist/vue-ui-galaxy-D2kmqwpI.cjs +1 -0
- package/dist/vue-ui-gauge-BFA_unjg.cjs +1 -0
- package/dist/{vue-ui-gauge-1SFhSMfU.js → vue-ui-gauge-PGirbe6O.js} +220 -214
- package/dist/{vue-ui-gizmo-C8rLR4n5.cjs → vue-ui-gizmo-CHMApil6.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CtX6KFN2.js → vue-ui-gizmo-ChSfBYZ_.js} +3 -3
- package/dist/vue-ui-heatmap-C0VxwPhr.cjs +1 -0
- package/dist/{vue-ui-heatmap-BzyvTePn.js → vue-ui-heatmap-CK3FIWpo.js} +270 -264
- package/dist/vue-ui-history-plot-BmGodgUx.cjs +1 -0
- package/dist/{vue-ui-history-plot-BEoHuZ3N.js → vue-ui-history-plot-EmQ-Byiz.js} +236 -230
- package/dist/{vue-ui-kpi-LO4KKRR9.cjs → vue-ui-kpi-BdungaO2.cjs} +1 -1
- package/dist/{vue-ui-kpi-BYOyJjYg.js → vue-ui-kpi-DjC68pSz.js} +3 -3
- package/dist/{vue-ui-mini-loader-ChHdx5me.js → vue-ui-mini-loader-CzrblCCD.js} +2 -2
- package/dist/{vue-ui-mini-loader-wlUD77O6.cjs → vue-ui-mini-loader-jwL_pZjb.cjs} +1 -1
- package/dist/{vue-ui-molecule-Bo7XYpf-.js → vue-ui-molecule-DBQJQs4Y.js} +294 -289
- package/dist/vue-ui-molecule-Dzh-0SWI.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DXj4Ce6l.js → vue-ui-mood-radar-Ca9wPZpJ.js} +205 -199
- package/dist/vue-ui-mood-radar-DV6ZZIXF.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-BBLpNVwF.js → vue-ui-nested-donuts-C8at93dN.js} +286 -280
- package/dist/vue-ui-nested-donuts-DEdS6dpj.cjs +17 -0
- package/dist/{vue-ui-onion-DC8VIInA.js → vue-ui-onion-B-PXxNu6.js} +198 -192
- package/dist/vue-ui-onion-B2ioudP5.cjs +5 -0
- package/dist/{vue-ui-parallel-coordinate-plot-Cl1wiHsK.js → vue-ui-parallel-coordinate-plot-ByM3So9k.js} +236 -230
- package/dist/vue-ui-parallel-coordinate-plot-DtJi9cT0.cjs +8 -0
- package/dist/{vue-ui-quadrant-b5cuEH9z.js → vue-ui-quadrant-BqOJBcsI.js} +255 -249
- package/dist/vue-ui-quadrant-CIr4i6cC.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CFBPYw2J.js → vue-ui-quick-chart-BfXxT3KM.js} +474 -466
- package/dist/vue-ui-quick-chart-Bt9KA82P.cjs +15 -0
- package/dist/{vue-ui-radar-DP8360kx.js → vue-ui-radar-BKpD9xDr.js} +256 -250
- package/dist/vue-ui-radar-Czmsd_uv.cjs +1 -0
- package/dist/{vue-ui-rating-D7b-kfyp.cjs → vue-ui-rating-BE545aI4.cjs} +1 -1
- package/dist/{vue-ui-rating-DIthBSp_.js → vue-ui-rating-DQRuqev5.js} +2 -2
- package/dist/vue-ui-relation-circle-B1uMTqFP.cjs +1 -0
- package/dist/vue-ui-relation-circle-nZ2nBpWX.js +498 -0
- package/dist/vue-ui-rings-B7JzZ3ub.cjs +2 -0
- package/dist/{vue-ui-rings-y9Zx-DaI.js → vue-ui-rings-C1PV0873.js} +177 -172
- package/dist/vue-ui-scatter-CTI943ks.cjs +1 -0
- package/dist/{vue-ui-scatter-Cbu5GDc1.js → vue-ui-scatter-dgs1m3-2.js} +310 -304
- package/dist/{vue-ui-screenshot-oH-YnZBE.cjs → vue-ui-screenshot--cHV0jG3.cjs} +1 -1
- package/dist/{vue-ui-screenshot-BZh_sgjP.js → vue-ui-screenshot-Dxj0l8Jg.js} +1 -1
- package/dist/{vue-ui-skeleton-DjFU2X3P.js → vue-ui-skeleton-Bniq21d9.js} +3 -3
- package/dist/{vue-ui-skeleton-Nuju6X7l.cjs → vue-ui-skeleton-lkPDknHn.cjs} +1 -1
- package/dist/{vue-ui-smiley-DtQVEc4B.cjs → vue-ui-smiley-CozXoiti.cjs} +1 -1
- package/dist/{vue-ui-smiley-DdnzzEYS.js → vue-ui-smiley-D4DAZIpA.js} +2 -2
- package/dist/{vue-ui-spark-trend-B36zW41F.cjs → vue-ui-spark-trend-CSqyvI_K.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CaIGk_53.js → vue-ui-spark-trend-ZqrwhwqS.js} +5 -5
- package/dist/{vue-ui-sparkbar-iQKGtxo8.cjs → vue-ui-sparkbar-Bph8KIjk.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DixeozKp.js → vue-ui-sparkbar-q0G4GvFm.js} +4 -4
- package/dist/{vue-ui-sparkgauge-C01VB6KP.js → vue-ui-sparkgauge-DA_h9jcN.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DEvgucF7.cjs → vue-ui-sparkgauge-nSAW83dN.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-C_6lHF3O.js → vue-ui-sparkhistogram-B1WyBiq_.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-CTUuxOma.cjs → vue-ui-sparkhistogram-BLYhRNpt.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DrZWPGOG.cjs → vue-ui-sparkline-PNix1-R9.cjs} +1 -1
- package/dist/{vue-ui-sparkline-Btm4HVgi.js → vue-ui-sparkline-ccfl0s3m.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-7pcfCNMr.cjs → vue-ui-sparkstackbar-DpuvEumy.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-D0UGUm-1.js → vue-ui-sparkstackbar-PNKwVRu8.js} +5 -5
- package/dist/{vue-ui-stackbar-BPMDmY04.js → vue-ui-stackbar-BBYnF8qm.js} +367 -361
- package/dist/vue-ui-stackbar-D4AIFoQT.cjs +6 -0
- package/dist/vue-ui-strip-plot-ClNxSw9M.cjs +1 -0
- package/dist/{vue-ui-strip-plot-BfWQMGXy.js → vue-ui-strip-plot-TVlnzXFq.js} +269 -263
- package/dist/{vue-ui-table-Cdo265Yt.cjs → vue-ui-table-CHdv3KuM.cjs} +1 -1
- package/dist/{vue-ui-table-D8GaLhM9.js → vue-ui-table-CsEajH9S.js} +1 -1
- package/dist/vue-ui-table-heatmap-BE3UT8U9.cjs +1 -0
- package/dist/vue-ui-table-heatmap-CubRipoB.js +262 -0
- package/dist/vue-ui-table-sparkline-BeYviUrb.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-DMHf03C9.js → vue-ui-table-sparkline-YV8DUOqh.js} +173 -167
- package/dist/vue-ui-thermometer-C6lMWRiF.cjs +1 -0
- package/dist/{vue-ui-thermometer-BCVqil7E.js → vue-ui-thermometer-DmMjSLc1.js} +170 -164
- package/dist/{vue-ui-timer-gxiLCP1n.cjs → vue-ui-timer-DteYgv9y.cjs} +1 -1
- package/dist/{vue-ui-timer-DF5HkeeS.js → vue-ui-timer-DvE_nqd9.js} +5 -5
- package/dist/vue-ui-tiremarks-CCrkDgjX.js +323 -0
- package/dist/vue-ui-tiremarks-PGGgsNgS.cjs +1 -0
- package/dist/vue-ui-treemap-BzRVKqXL.cjs +1 -0
- package/dist/{vue-ui-treemap-CIZaPmbi.js → vue-ui-treemap-C4A4spvg.js} +243 -237
- package/dist/{vue-ui-vertical-bar-dQoTddqU.js → vue-ui-vertical-bar-8iL1xiaz.js} +238 -232
- package/dist/vue-ui-vertical-bar-B60lSXNq.cjs +4 -0
- package/dist/{vue-ui-waffle-CnvWOEVU.js → vue-ui-waffle-CaYNz-Kd.js} +316 -310
- package/dist/vue-ui-waffle-O8pAEf4X.cjs +1 -0
- package/dist/vue-ui-wheel-BRR2rGou.js +305 -0
- package/dist/vue-ui-wheel-CnFdB_B1.cjs +1 -0
- package/dist/vue-ui-word-cloud-X4mp280j.cjs +1 -0
- package/dist/{vue-ui-word-cloud-o3zU6r0-.js → vue-ui-word-cloud-y2GGxwoq.js} +246 -240
- package/dist/{vue-ui-xy-GR4PGBDy.js → vue-ui-xy-CXoWP8bh.js} +708 -697
- package/dist/vue-ui-xy-CbM75yXK.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-BKGOnjut.js → vue-ui-xy-canvas-D7MrUJj7.js} +334 -328
- package/dist/vue-ui-xy-canvas-DWvIvSry.cjs +9 -0
- package/package.json +1 -1
- package/dist/index-DoD-GxZR.cjs +0 -9
- package/dist/vue-ui-3d-bar-RduHvzwG.cjs +0 -19
- package/dist/vue-ui-age-pyramid-DVtbyRJw.cjs +0 -1
- package/dist/vue-ui-bullet-Be5aYhtp.cjs +0 -34
- package/dist/vue-ui-candlestick-B6wSs-JC.cjs +0 -2
- package/dist/vue-ui-carousel-table-7reErH8M.cjs +0 -1
- package/dist/vue-ui-chestnut-D-WzX16q.cjs +0 -6
- package/dist/vue-ui-donut-Ce1SaXNu.cjs +0 -1
- package/dist/vue-ui-donut-evolution-DI8yeIa4.cjs +0 -1
- package/dist/vue-ui-dumbbell-CFJkwtM8.cjs +0 -9
- package/dist/vue-ui-flow-B4MtorhO.cjs +0 -1
- package/dist/vue-ui-funnel-DNL12vLQ.cjs +0 -1
- package/dist/vue-ui-galaxy-CmCZGOKz.cjs +0 -1
- package/dist/vue-ui-gauge-B7ieQMud.cjs +0 -1
- package/dist/vue-ui-heatmap-Bfi3KJwS.cjs +0 -1
- package/dist/vue-ui-history-plot-5kZ54hgy.cjs +0 -1
- package/dist/vue-ui-molecule-D-4cRS5w.cjs +0 -1
- package/dist/vue-ui-mood-radar-C3x_LH7Q.cjs +0 -1
- package/dist/vue-ui-nested-donuts-DrL7-SUd.cjs +0 -17
- package/dist/vue-ui-onion-8Vz3lPbn.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-D6q4WQ0B.cjs +0 -8
- package/dist/vue-ui-quadrant-DBZS5jFQ.cjs +0 -1
- package/dist/vue-ui-quick-chart-Cno_1mzu.cjs +0 -15
- package/dist/vue-ui-radar-ChcBO21S.cjs +0 -1
- package/dist/vue-ui-relation-circle-C5pO0iHY.cjs +0 -1
- package/dist/vue-ui-relation-circle-D2iwmChn.js +0 -492
- package/dist/vue-ui-rings-C_NLJYs8.cjs +0 -2
- package/dist/vue-ui-scatter-BNeMGDNk.cjs +0 -1
- package/dist/vue-ui-stackbar-BwRdmPvB.cjs +0 -6
- package/dist/vue-ui-strip-plot-CLN9LikJ.cjs +0 -1
- package/dist/vue-ui-table-heatmap-C4DRSfsE.js +0 -256
- package/dist/vue-ui-table-heatmap-CDAf1IIk.cjs +0 -1
- package/dist/vue-ui-table-sparkline-Cw7NOiYx.cjs +0 -1
- package/dist/vue-ui-thermometer-7BORZJjd.cjs +0 -1
- package/dist/vue-ui-tiremarks-CwGnFx4f.cjs +0 -1
- package/dist/vue-ui-tiremarks-lidhcJsi.js +0 -317
- package/dist/vue-ui-treemap-BZ_LmiBK.cjs +0 -1
- package/dist/vue-ui-vertical-bar-venrkqjM.cjs +0 -4
- package/dist/vue-ui-waffle-oR54BbIg.cjs +0 -1
- package/dist/vue-ui-wheel-BUHZEzPr.cjs +0 -1
- package/dist/vue-ui-wheel-D3itrMku.js +0 -299
- package/dist/vue-ui-word-cloud-87gwksmM.cjs +0 -1
- package/dist/vue-ui-xy-D56pm4L0.cjs +0 -3
- package/dist/vue-ui-xy-canvas-uikeVe72.cjs +0 -9
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { c as J, a as K, t as Q, z as j, p as $, V as q, O as R, f as U, L as ee, G as te, i as
|
|
2
|
-
import { D as ke } from "./DataTable-
|
|
3
|
-
import { _ as we } from "./Title-
|
|
4
|
-
import { _ as Oe, u as Ge } from "./Tooltip-
|
|
5
|
-
import { U as ve } from "./usePrinter-
|
|
6
|
-
import { _ as pe } from "./Shape-
|
|
7
|
-
import ze from "./BaseIcon-
|
|
8
|
-
import Me from "./vue-ui-table-sparkline-
|
|
9
|
-
import Te from "./vue-ui-skeleton-
|
|
10
|
-
import { S as Pe } from "./Slicer-
|
|
11
|
-
import Ve from "./vue-ui-accordion-
|
|
12
|
-
import { u as Z } from "./useNestedProp-
|
|
13
|
-
import { _ as Re } from "./PackageVersion-
|
|
14
|
-
import { P as De } from "./PenAndPaper-
|
|
15
|
-
import { resolveComponent as P, openBlock as
|
|
1
|
+
import { c as J, a as K, t as Q, z as j, p as $, V as q, O as R, f as U, L as ee, G as te, i as ie, a2 as re, a0 as ae, a3 as le, v as se, a4 as ne, d as he, B as oe, b as ce, q as de, R as ue, a5 as ge, r as fe, e as Ie, y as Ne, C as me, x as xe, a6 as be, Y as Fe, o as _e, s as Ae, w as ye, F as Le, A as Ce, u as Se } from "./index-BbPeL8Gp.js";
|
|
2
|
+
import { D as ke } from "./DataTable-DGf6RrOJ.js";
|
|
3
|
+
import { _ as we } from "./Title-aSAft5dl.js";
|
|
4
|
+
import { _ as Oe, u as Ge } from "./Tooltip-smutPF--.js";
|
|
5
|
+
import { U as ve } from "./usePrinter-DaybDVqP.js";
|
|
6
|
+
import { _ as pe } from "./Shape-DIKzzpFm.js";
|
|
7
|
+
import ze from "./BaseIcon-CmiukQBl.js";
|
|
8
|
+
import Me from "./vue-ui-table-sparkline-YV8DUOqh.js";
|
|
9
|
+
import Te from "./vue-ui-skeleton-Bniq21d9.js";
|
|
10
|
+
import { S as Pe } from "./Slicer-Cxdl3cDt.js";
|
|
11
|
+
import Ve from "./vue-ui-accordion-5d5iVpr7.js";
|
|
12
|
+
import { u as Z } from "./useNestedProp-BN8claGG.js";
|
|
13
|
+
import { _ as Re } from "./PackageVersion-CxJghxYD.js";
|
|
14
|
+
import { P as De } from "./PenAndPaper-ZdZEumki.js";
|
|
15
|
+
import { resolveComponent as P, openBlock as a, createElementBlock as s, normalizeClass as V, normalizeStyle as L, createBlock as D, createCommentVNode as c, createSlots as Be, withCtx as M, renderSlot as w, normalizeProps as B, guardReactiveProps as H, createVNode as X, createElementVNode as f, Fragment as I, renderList as m, toDisplayString as S, withDirectives as He, vModelCheckbox as Ee, createTextVNode as We } from "vue";
|
|
16
16
|
import { _ as Ye } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
17
|
const Xe = J(), qe = {
|
|
18
18
|
name: "vue-ui-xy",
|
|
@@ -53,9 +53,9 @@ const Xe = J(), qe = {
|
|
|
53
53
|
index: t
|
|
54
54
|
});
|
|
55
55
|
});
|
|
56
|
-
const
|
|
56
|
+
const i = this.config.downsample && this.config.downsample.threshold ? this.config.downsample.threshold : 500, l = Math.max(...this.dataset.map((u) => this.largestTriangleThreeBucketsArray({ data: u.series, threshold: i }).length)), o = {
|
|
57
57
|
start: 0,
|
|
58
|
-
end:
|
|
58
|
+
end: l
|
|
59
59
|
};
|
|
60
60
|
return {
|
|
61
61
|
themePalettes: K,
|
|
@@ -106,7 +106,7 @@ const Xe = J(), qe = {
|
|
|
106
106
|
titleStep: 0,
|
|
107
107
|
slicer: o,
|
|
108
108
|
__to__: null,
|
|
109
|
-
maxX:
|
|
109
|
+
maxX: l,
|
|
110
110
|
showSparklineTable: !0,
|
|
111
111
|
segregateStep: 0,
|
|
112
112
|
sliderId: Xe,
|
|
@@ -120,12 +120,15 @@ const Xe = J(), qe = {
|
|
|
120
120
|
plot: 3,
|
|
121
121
|
line: 3
|
|
122
122
|
},
|
|
123
|
-
selectedMinimapIndex: null
|
|
123
|
+
selectedMinimapIndex: null,
|
|
124
|
+
showUserOptionsOnChartHover: !1,
|
|
125
|
+
keepUserOptionState: !0,
|
|
126
|
+
userOptionsVisible: !0
|
|
124
127
|
};
|
|
125
128
|
},
|
|
126
129
|
watch: {
|
|
127
130
|
dataset: {
|
|
128
|
-
handler(
|
|
131
|
+
handler(i, l) {
|
|
129
132
|
this.maxX = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({
|
|
130
133
|
data: o.series,
|
|
131
134
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
@@ -137,7 +140,7 @@ const Xe = J(), qe = {
|
|
|
137
140
|
deep: !0
|
|
138
141
|
},
|
|
139
142
|
config: {
|
|
140
|
-
handler(
|
|
143
|
+
handler(i, l) {
|
|
141
144
|
this.FINAL_CONFIG = this.prepareConfig(), this.prepareChart(), this.titleStep += 1, this.tableStep += 1;
|
|
142
145
|
},
|
|
143
146
|
deep: !0
|
|
@@ -149,9 +152,9 @@ const Xe = J(), qe = {
|
|
|
149
152
|
},
|
|
150
153
|
minimap() {
|
|
151
154
|
if (!this.FINAL_CONFIG.chart.zoom.minimap.show) return [];
|
|
152
|
-
const
|
|
153
|
-
for (let t = 0; t <
|
|
154
|
-
o.push(
|
|
155
|
+
const i = this.datasetWithIds.filter((t) => !this.segregatedSeries.includes(t.id)), l = Math.max(...i.map((t) => t.series.length)), o = [];
|
|
156
|
+
for (let t = 0; t < l; t += 1)
|
|
157
|
+
o.push(i.map((e) => e.series[t] || 0).reduce((e, x) => (e || 0) + (x || 0), 0));
|
|
155
158
|
const u = Math.min(...o);
|
|
156
159
|
return o.map((t) => t + (u < 0 ? Math.abs(u) : 0));
|
|
157
160
|
},
|
|
@@ -165,7 +168,7 @@ const Xe = J(), qe = {
|
|
|
165
168
|
return this.FINAL_CONFIG.chart.zoom.color;
|
|
166
169
|
},
|
|
167
170
|
allScales() {
|
|
168
|
-
const
|
|
171
|
+
const i = this.lineSet.map((t) => ({
|
|
169
172
|
name: t.name,
|
|
170
173
|
color: t.color,
|
|
171
174
|
scale: t.individualScale,
|
|
@@ -177,7 +180,7 @@ const Xe = J(), qe = {
|
|
|
177
180
|
yOffset: t.yOffset || 0,
|
|
178
181
|
individualHeight: t.individualHeight || this.drawingArea.height,
|
|
179
182
|
autoScaleYLabels: t.autoScaleYLabels
|
|
180
|
-
})),
|
|
183
|
+
})), l = this.barSet.map((t) => ({
|
|
181
184
|
name: t.name,
|
|
182
185
|
color: t.color,
|
|
183
186
|
scale: t.individualScale,
|
|
@@ -200,8 +203,8 @@ const Xe = J(), qe = {
|
|
|
200
203
|
id: t.id,
|
|
201
204
|
yOffset: t.yOffset || 0,
|
|
202
205
|
individualHeight: t.individualHeight || this.drawingArea.height
|
|
203
|
-
})), u = [...
|
|
204
|
-
return [...
|
|
206
|
+
})), u = [...i, ...l, ...o].flatMap((t) => t).length;
|
|
207
|
+
return [...i, ...l, ...o].flatMap((t, e) => ({
|
|
205
208
|
id: t.id,
|
|
206
209
|
scaleLabel: t.scaleLabel,
|
|
207
210
|
name: t.name,
|
|
@@ -220,28 +223,28 @@ const Xe = J(), qe = {
|
|
|
220
223
|
return !!this.dataset && this.dataset.length;
|
|
221
224
|
},
|
|
222
225
|
chartFont() {
|
|
223
|
-
const
|
|
224
|
-
return window.getComputedStyle(
|
|
226
|
+
const i = document.getElementById(`vue-ui-xy_${this.uniqueId}`);
|
|
227
|
+
return window.getComputedStyle(i, null).getPropertyValue("font-family");
|
|
225
228
|
},
|
|
226
229
|
FINAL_CONFIG: {
|
|
227
230
|
get: function() {
|
|
228
231
|
return this.prepareConfig();
|
|
229
232
|
},
|
|
230
|
-
set: function(
|
|
231
|
-
return
|
|
233
|
+
set: function(i) {
|
|
234
|
+
return i;
|
|
232
235
|
}
|
|
233
236
|
},
|
|
234
237
|
hasHighlightArea() {
|
|
235
|
-
return Array.isArray(this.FINAL_CONFIG.chart.highlightArea) ? this.FINAL_CONFIG.chart.highlightArea.some((
|
|
238
|
+
return Array.isArray(this.FINAL_CONFIG.chart.highlightArea) ? this.FINAL_CONFIG.chart.highlightArea.some((i) => i.show) : this.FINAL_CONFIG.chart.highlightArea && this.FINAL_CONFIG.chart.highlightArea.show;
|
|
236
239
|
},
|
|
237
240
|
highlightAreas() {
|
|
238
241
|
if (Array.isArray(this.FINAL_CONFIG.chart.highlightArea))
|
|
239
|
-
return this.FINAL_CONFIG.chart.highlightArea.map((
|
|
240
|
-
...
|
|
241
|
-
span:
|
|
242
|
+
return this.FINAL_CONFIG.chart.highlightArea.map((l) => ({
|
|
243
|
+
...l,
|
|
244
|
+
span: l.from === l.to ? 1 : l.to < l.from ? 0 : l.to - l.from + 1
|
|
242
245
|
}));
|
|
243
|
-
const
|
|
244
|
-
return [{ ...
|
|
246
|
+
const i = this.FINAL_CONFIG.chart.highlightArea;
|
|
247
|
+
return [{ ...i, span: i.from === i.to ? 1 : i.to < i.from ? 0 : i.to - i.from + 1 }];
|
|
245
248
|
},
|
|
246
249
|
xPadding() {
|
|
247
250
|
return this.FINAL_CONFIG.chart.grid.position === "middle" ? 0 : this.drawingArea.width / this.maxSeries / 2;
|
|
@@ -253,44 +256,44 @@ const Xe = J(), qe = {
|
|
|
253
256
|
return this.niceScale.max + this.relativeZero;
|
|
254
257
|
},
|
|
255
258
|
datasetWithIds() {
|
|
256
|
-
return this.useSafeValues ? this.dataset.map((
|
|
257
|
-
...
|
|
259
|
+
return this.useSafeValues ? this.dataset.map((i, l) => ({
|
|
260
|
+
...i,
|
|
258
261
|
series: this.largestTriangleThreeBucketsArray({
|
|
259
|
-
data:
|
|
262
|
+
data: i.series,
|
|
260
263
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
261
264
|
}),
|
|
262
|
-
id: `uniqueId_${
|
|
265
|
+
id: `uniqueId_${l}`
|
|
263
266
|
})) : this.dataset;
|
|
264
267
|
},
|
|
265
268
|
safeDataset() {
|
|
266
|
-
return this.useSafeValues ? this.dataset.map((
|
|
269
|
+
return this.useSafeValues ? this.dataset.map((i, l) => {
|
|
267
270
|
const o = this.largestTriangleThreeBucketsArray({
|
|
268
|
-
data:
|
|
271
|
+
data: i.series,
|
|
269
272
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
270
273
|
});
|
|
271
274
|
return {
|
|
272
|
-
...
|
|
275
|
+
...i,
|
|
273
276
|
series: o.map((u) => this.isSafeValue(u) ? u : null).slice(this.slicer.start, this.slicer.end),
|
|
274
|
-
color: this.convertColorToHex(
|
|
275
|
-
id: `uniqueId_${
|
|
277
|
+
color: this.convertColorToHex(i.color ? i.color : this.customPalette[l] ? this.customPalette[l] : this.palette[l]),
|
|
278
|
+
id: `uniqueId_${l}`
|
|
276
279
|
};
|
|
277
280
|
}) : this.dataset;
|
|
278
281
|
},
|
|
279
282
|
relativeDataset() {
|
|
280
|
-
return this.safeDataset.map((
|
|
281
|
-
...
|
|
282
|
-
series:
|
|
283
|
-
absoluteValues:
|
|
284
|
-
})).filter((
|
|
283
|
+
return this.safeDataset.map((i, l) => ({
|
|
284
|
+
...i,
|
|
285
|
+
series: i.series.map((o) => o + this.relativeZero),
|
|
286
|
+
absoluteValues: i.series
|
|
287
|
+
})).filter((i) => !this.segregatedSeries.includes(i.id));
|
|
285
288
|
},
|
|
286
289
|
tableSparklineDataset() {
|
|
287
|
-
return this.relativeDataset.map((
|
|
288
|
-
const
|
|
290
|
+
return this.relativeDataset.map((i) => {
|
|
291
|
+
const l = i.absoluteValues.map((o) => [void 0, null].includes(o) ? 0 : o);
|
|
289
292
|
return {
|
|
290
|
-
id:
|
|
291
|
-
name:
|
|
292
|
-
color:
|
|
293
|
-
values: this.fillArray(this.maxSeries,
|
|
293
|
+
id: i.id,
|
|
294
|
+
name: i.name,
|
|
295
|
+
color: i.color,
|
|
296
|
+
values: this.fillArray(this.maxSeries, l)
|
|
294
297
|
};
|
|
295
298
|
});
|
|
296
299
|
},
|
|
@@ -321,75 +324,75 @@ const Xe = J(), qe = {
|
|
|
321
324
|
};
|
|
322
325
|
},
|
|
323
326
|
absoluteDataset() {
|
|
324
|
-
return this.safeDataset.map((
|
|
325
|
-
absoluteIndex:
|
|
326
|
-
...
|
|
327
|
-
series:
|
|
328
|
-
absoluteValues:
|
|
329
|
-
segregate: () => this.segregate(
|
|
330
|
-
isSegregated: this.segregatedSeries.includes(
|
|
327
|
+
return this.safeDataset.map((i, l) => ({
|
|
328
|
+
absoluteIndex: l,
|
|
329
|
+
...i,
|
|
330
|
+
series: i.series.map((o) => o + this.relativeZero),
|
|
331
|
+
absoluteValues: i.series,
|
|
332
|
+
segregate: () => this.segregate(i),
|
|
333
|
+
isSegregated: this.segregatedSeries.includes(i.id)
|
|
331
334
|
}));
|
|
332
335
|
},
|
|
333
336
|
barSet() {
|
|
334
|
-
return this.activeSeriesWithStackRatios.filter((
|
|
335
|
-
this.checkAutoScaleError(
|
|
336
|
-
const o = Math.min(...
|
|
337
|
-
ratios:
|
|
337
|
+
return this.activeSeriesWithStackRatios.filter((i) => i.type === "bar").map((i, l) => {
|
|
338
|
+
this.checkAutoScaleError(i);
|
|
339
|
+
const o = Math.min(...i.absoluteValues.filter((g) => ![null, void 0].includes(g))), u = Math.max(...i.absoluteValues.filter((g) => ![null, void 0].includes(g))), e = {
|
|
340
|
+
ratios: i.absoluteValues.filter((g) => ![null, void 0].includes(g)).map((g) => (g - o) / (u - o)),
|
|
338
341
|
valueMin: o,
|
|
339
342
|
valueMax: u < 0 ? 0 : u
|
|
340
343
|
}, x = {
|
|
341
|
-
max:
|
|
342
|
-
min:
|
|
343
|
-
}, A =
|
|
344
|
-
const W = this.mutableConfig.useIndividualScale ? (
|
|
344
|
+
max: i.scaleMax || Math.max(...i.absoluteValues) || 1,
|
|
345
|
+
min: i.scaleMin || Math.min(...i.absoluteValues.filter((g) => ![void 0, null].includes(g))) > 0 ? 0 : Math.min(...i.absoluteValues.filter((g) => ![null, void 0].includes(g)))
|
|
346
|
+
}, A = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, N = this.calculateNiceScaleWithExactExtremes(x.min, x.max === x.min ? x.max * k : x.max, A), b = this.calculateNiceScaleWithExactExtremes(e.valueMin, e.valueMax === e.valueMin ? e.valueMax * k : e.valueMax, A), T = N.min >= 0 ? 0 : Math.abs(N.min), v = 0, p = N.max + T, O = b.max + Math.abs(v), _ = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - i.cumulatedStackRatio) : 0, C = this.mutableConfig.isStacked ? this.drawingArea.height * i.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, z = this.drawingArea.bottom - _ - C * T / p, r = this.drawingArea.bottom - _ - C * v / O, h = this.absoluteDataset.filter((g) => g.type === "bar").filter((g) => !this.segregatedSeries.includes(g.id)).length, n = i.series.map((g, F) => {
|
|
347
|
+
const W = this.mutableConfig.useIndividualScale ? (i.absoluteValues[F] + T) / p : this.ratioToMax(g), Y = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * F : this.drawingArea.left + this.slot.bar * l + this.slot.bar * F * h - this.barSlot / 2 - l * this.barPeriodGap;
|
|
345
348
|
return {
|
|
346
349
|
yOffset: this.checkNaN(_),
|
|
347
350
|
individualHeight: this.checkNaN(C),
|
|
348
351
|
x: this.checkNaN(Y),
|
|
349
352
|
y: this.drawingArea.bottom - _ - C * W,
|
|
350
|
-
value:
|
|
353
|
+
value: i.absoluteValues[F],
|
|
351
354
|
zeroPosition: this.checkNaN(z),
|
|
352
355
|
individualMax: this.checkNaN(p),
|
|
353
|
-
comment:
|
|
356
|
+
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
354
357
|
};
|
|
355
|
-
}), d =
|
|
356
|
-
const W = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries *
|
|
358
|
+
}), d = i.absoluteValues.map((g) => b.min >= 0 ? (g - Math.abs(b.min)) / (b.max - Math.abs(b.min)) : (g + Math.abs(b.min)) / (b.max + Math.abs(b.min))), E = i.series.map((g, F) => {
|
|
359
|
+
const W = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * F : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar * l + this.slot.bar * F * this.absoluteDataset.filter((Y) => Y.type === "bar").filter((Y) => !this.segregatedSeries.includes(Y.id)).length;
|
|
357
360
|
return {
|
|
358
361
|
yOffset: this.checkNaN(_),
|
|
359
362
|
individualHeight: this.checkNaN(C),
|
|
360
363
|
x: this.checkNaN(W),
|
|
361
|
-
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(_) - (this.checkNaN(C) * d[
|
|
362
|
-
value:
|
|
364
|
+
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(_) - (this.checkNaN(C) * d[F] || 0)),
|
|
365
|
+
value: i.absoluteValues[F],
|
|
363
366
|
zeroPosition: this.checkNaN(z),
|
|
364
367
|
individualMax: this.checkNaN(p),
|
|
365
|
-
comment:
|
|
368
|
+
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
366
369
|
};
|
|
367
370
|
}), y = N.ticks.map((g) => ({
|
|
368
371
|
y: g >= 0 ? z - C * (g / p) : z + C * Math.abs(g) / p,
|
|
369
372
|
value: g,
|
|
370
|
-
prefix:
|
|
371
|
-
suffix:
|
|
372
|
-
datapoint:
|
|
373
|
-
})), G =
|
|
374
|
-
const
|
|
373
|
+
prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
374
|
+
suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
375
|
+
datapoint: i
|
|
376
|
+
})), G = b.ticks.map((g) => {
|
|
377
|
+
const F = (g - b.min) / (b.max - b.min);
|
|
375
378
|
return {
|
|
376
|
-
y: g >= 0 ?
|
|
379
|
+
y: g >= 0 ? r - C * F : r + C * F,
|
|
377
380
|
value: g,
|
|
378
|
-
prefix:
|
|
379
|
-
suffix:
|
|
380
|
-
datapoint:
|
|
381
|
+
prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
382
|
+
suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
383
|
+
datapoint: i
|
|
381
384
|
};
|
|
382
385
|
});
|
|
383
386
|
return {
|
|
384
|
-
...
|
|
387
|
+
...i,
|
|
385
388
|
yOffset: _,
|
|
386
389
|
autoScaleYLabels: G,
|
|
387
390
|
individualHeight: C,
|
|
388
|
-
scaleYLabels:
|
|
389
|
-
individualScale:
|
|
390
|
-
individualMax:
|
|
391
|
-
zeroPosition:
|
|
392
|
-
plots:
|
|
391
|
+
scaleYLabels: i.autoScaling ? G : y,
|
|
392
|
+
individualScale: i.autoScaling ? b : N,
|
|
393
|
+
individualMax: i.autoScaling ? O : p,
|
|
394
|
+
zeroPosition: i.autoScaling ? r : z,
|
|
395
|
+
plots: i.autoScaling ? E : n
|
|
393
396
|
};
|
|
394
397
|
});
|
|
395
398
|
},
|
|
@@ -397,138 +400,138 @@ const Xe = J(), qe = {
|
|
|
397
400
|
return this.absoluteDataset.length;
|
|
398
401
|
},
|
|
399
402
|
activeSeriesWithStackRatios() {
|
|
400
|
-
return this.assignStackRatios(this.absoluteDataset.filter((
|
|
403
|
+
return this.assignStackRatios(this.absoluteDataset.filter((i) => !this.segregatedSeries.includes(i.id)));
|
|
401
404
|
},
|
|
402
405
|
lineSet() {
|
|
403
|
-
return this.activeSeriesWithStackRatios.filter((
|
|
404
|
-
this.checkAutoScaleError(
|
|
405
|
-
const
|
|
406
|
-
ratios:
|
|
407
|
-
valueMin:
|
|
406
|
+
return this.activeSeriesWithStackRatios.filter((i) => i.type === "line").map((i) => {
|
|
407
|
+
this.checkAutoScaleError(i);
|
|
408
|
+
const l = Math.min(...i.absoluteValues.filter((g) => ![void 0, null].includes(g))), o = Math.max(...i.absoluteValues.filter((g) => ![void 0, null].includes(g))) || 1, t = {
|
|
409
|
+
ratios: i.absoluteValues.filter((g) => ![null, void 0].includes(g)).map((g) => (g - l) / (o - l)),
|
|
410
|
+
valueMin: l,
|
|
408
411
|
valueMax: o
|
|
409
412
|
}, e = {
|
|
410
|
-
max:
|
|
411
|
-
min:
|
|
412
|
-
}, x =
|
|
413
|
-
const W = this.mutableConfig.useIndividualScale ? (
|
|
413
|
+
max: i.scaleMax || Math.max(...i.absoluteValues) || 1,
|
|
414
|
+
min: i.scaleMin || (Math.min(...i.absoluteValues) > 0 ? 0 : Math.min(...i.absoluteValues))
|
|
415
|
+
}, x = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = 1.0000001, k = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * A : e.max, x), N = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax === t.valueMin ? t.valueMax * A : t.valueMax, x), b = k.min >= 0 ? 0 : Math.abs(k.min), T = 0, v = k.max + Math.abs(b), p = N.max + Math.abs(T), O = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - i.cumulatedStackRatio) : 0, _ = this.mutableConfig.isStacked ? this.drawingArea.height * i.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - O - _ * b / v, z = this.drawingArea.bottom - O - _ * T / p, r = i.series.map((g, F) => {
|
|
416
|
+
const W = this.mutableConfig.useIndividualScale ? (i.absoluteValues[F] + Math.abs(b)) / v : this.ratioToMax(g);
|
|
414
417
|
return {
|
|
415
|
-
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line *
|
|
418
|
+
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * F),
|
|
416
419
|
y: this.checkNaN(this.drawingArea.bottom - O - _ * W),
|
|
417
|
-
value:
|
|
418
|
-
comment:
|
|
420
|
+
value: i.absoluteValues[F],
|
|
421
|
+
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
419
422
|
};
|
|
420
|
-
}), h =
|
|
421
|
-
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line *
|
|
423
|
+
}), h = i.absoluteValues.map((g) => N.min >= 0 ? (g - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (g + Math.abs(N.min)) / (N.max + Math.abs(N.min))), n = i.series.map((g, F) => [void 0, null].includes(i.absoluteValues[F]) ? {
|
|
424
|
+
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * F),
|
|
422
425
|
y: C,
|
|
423
|
-
value:
|
|
424
|
-
comment:
|
|
426
|
+
value: i.absoluteValues[F],
|
|
427
|
+
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
425
428
|
} : {
|
|
426
|
-
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line *
|
|
427
|
-
y: this.checkNaN(this.drawingArea.bottom - O - (_ * h[
|
|
428
|
-
value:
|
|
429
|
-
comment:
|
|
430
|
-
}), d = this.createSmoothPath(
|
|
429
|
+
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * F),
|
|
430
|
+
y: this.checkNaN(this.drawingArea.bottom - O - (_ * h[F] || 0)),
|
|
431
|
+
value: i.absoluteValues[F],
|
|
432
|
+
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
433
|
+
}), d = this.createSmoothPath(r), E = this.createSmoothPath(n), y = k.ticks.map((g) => ({
|
|
431
434
|
y: g >= 0 ? C - _ * (g / v) : C + _ * Math.abs(g) / v,
|
|
432
435
|
value: g,
|
|
433
|
-
prefix:
|
|
434
|
-
suffix:
|
|
435
|
-
datapoint:
|
|
436
|
+
prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
437
|
+
suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
438
|
+
datapoint: i
|
|
436
439
|
})), G = N.ticks.map((g) => {
|
|
437
|
-
const
|
|
440
|
+
const F = (g - N.min) / (N.max - N.min);
|
|
438
441
|
return {
|
|
439
|
-
y: g >= 0 ? z - _ *
|
|
442
|
+
y: g >= 0 ? z - _ * F : z + _ * F,
|
|
440
443
|
value: g,
|
|
441
|
-
prefix:
|
|
442
|
-
suffix:
|
|
443
|
-
datapoint:
|
|
444
|
+
prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
445
|
+
suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
446
|
+
datapoint: i
|
|
444
447
|
};
|
|
445
448
|
});
|
|
446
449
|
return {
|
|
447
|
-
...
|
|
450
|
+
...i,
|
|
448
451
|
yOffset: O,
|
|
449
452
|
autoScaleYLabels: G,
|
|
450
453
|
individualHeight: _,
|
|
451
|
-
scaleYLabels:
|
|
452
|
-
individualScale:
|
|
453
|
-
individualMax:
|
|
454
|
-
zeroPosition:
|
|
455
|
-
curve:
|
|
456
|
-
plots:
|
|
457
|
-
area:
|
|
454
|
+
scaleYLabels: i.autoScaling ? G : y,
|
|
455
|
+
individualScale: i.autoScaling ? N : k,
|
|
456
|
+
individualMax: i.autoScaling ? p : v,
|
|
457
|
+
zeroPosition: i.autoScaling ? z : C,
|
|
458
|
+
curve: i.autoScaling ? E : d,
|
|
459
|
+
plots: i.autoScaling ? n : r,
|
|
460
|
+
area: i.useArea ? this.mutableConfig.useIndividualScale ? this.createIndividualArea(i.autoScaling ? n : r, i.autoScaling ? z : C) : this.createArea(r) : ""
|
|
458
461
|
};
|
|
459
462
|
});
|
|
460
463
|
},
|
|
461
464
|
plotSet() {
|
|
462
|
-
return this.activeSeriesWithStackRatios.filter((
|
|
463
|
-
this.checkAutoScaleError(
|
|
464
|
-
const
|
|
465
|
-
ratios:
|
|
466
|
-
valueMin:
|
|
465
|
+
return this.activeSeriesWithStackRatios.filter((i) => i.type === "plot").map((i) => {
|
|
466
|
+
this.checkAutoScaleError(i);
|
|
467
|
+
const l = Math.min(...i.absoluteValues.filter((y) => ![null, void 0].includes(y))), o = Math.max(...i.absoluteValues.filter((y) => ![null, void 0].includes(y))) || 1, t = {
|
|
468
|
+
ratios: i.absoluteValues.filter((y) => ![null, void 0].includes(y)).map((y) => (y - l) / (o - l)),
|
|
469
|
+
valueMin: l,
|
|
467
470
|
valueMax: o
|
|
468
471
|
}, e = {
|
|
469
|
-
max:
|
|
470
|
-
min:
|
|
471
|
-
}, x =
|
|
472
|
-
const g = this.mutableConfig.useIndividualScale ? (
|
|
472
|
+
max: i.scaleMax || Math.max(...i.absoluteValues) || 1,
|
|
473
|
+
min: i.scaleMin || Math.min(...i.absoluteValues) > 0 ? 0 : Math.min(...i.absoluteValues)
|
|
474
|
+
}, x = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = 1.0000001, k = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * A : e.max, x), N = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax === t.valueMin ? t.valueMax * A : t.valueMax, x), b = k.min >= 0 ? 0 : Math.abs(k.min), T = 0, v = k.max + b, p = N.max + Math.abs(T), O = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - i.cumulatedStackRatio) : 0, _ = this.mutableConfig.isStacked ? this.drawingArea.height * i.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - O - _ * b / v, z = this.drawingArea.bottom - O - _ * T / p, r = i.series.map((y, G) => {
|
|
475
|
+
const g = this.mutableConfig.useIndividualScale ? (i.absoluteValues[G] + Math.abs(b)) / v : this.ratioToMax(y);
|
|
473
476
|
return {
|
|
474
477
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * G),
|
|
475
478
|
y: this.checkNaN(this.drawingArea.bottom - O - _ * g),
|
|
476
|
-
value:
|
|
477
|
-
comment:
|
|
479
|
+
value: i.absoluteValues[G],
|
|
480
|
+
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[G] || ""
|
|
478
481
|
};
|
|
479
|
-
}), h =
|
|
482
|
+
}), h = i.absoluteValues.map((y) => N.min >= 0 ? (y - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (y + Math.abs(N.min)) / (N.max + Math.abs(N.min))), n = i.series.map((y, G) => ({
|
|
480
483
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * G),
|
|
481
484
|
y: this.checkNaN(this.drawingArea.bottom - O - (_ * h[G] || 0)),
|
|
482
|
-
value:
|
|
483
|
-
comment:
|
|
485
|
+
value: i.absoluteValues[G],
|
|
486
|
+
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[G] || ""
|
|
484
487
|
})), d = k.ticks.map((y) => ({
|
|
485
488
|
y: y >= 0 ? C - _ * (y / v) : C + _ * Math.abs(y) / v,
|
|
486
489
|
value: y,
|
|
487
|
-
prefix:
|
|
488
|
-
suffix:
|
|
489
|
-
datapoint:
|
|
490
|
-
})),
|
|
490
|
+
prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
491
|
+
suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
492
|
+
datapoint: i
|
|
493
|
+
})), E = N.ticks.map((y) => {
|
|
491
494
|
const G = (y - N.min) / (N.max - N.min);
|
|
492
495
|
return {
|
|
493
496
|
y: y >= 0 ? z - _ * G : z + _ * G,
|
|
494
497
|
value: y,
|
|
495
|
-
prefix:
|
|
496
|
-
suffix:
|
|
497
|
-
datapoint:
|
|
498
|
+
prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
499
|
+
suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
500
|
+
datapoint: i
|
|
498
501
|
};
|
|
499
502
|
});
|
|
500
503
|
return {
|
|
501
|
-
...
|
|
504
|
+
...i,
|
|
502
505
|
yOffset: O,
|
|
503
|
-
autoScaleYLabels:
|
|
506
|
+
autoScaleYLabels: E,
|
|
504
507
|
individualHeight: _,
|
|
505
|
-
scaleYLabels:
|
|
506
|
-
individualScale:
|
|
507
|
-
individualMax:
|
|
508
|
-
zeroPosition:
|
|
509
|
-
plots:
|
|
508
|
+
scaleYLabels: i.autoScaling ? E : d,
|
|
509
|
+
individualScale: i.autoScaling ? N : k,
|
|
510
|
+
individualMax: i.autoScaling ? p : v,
|
|
511
|
+
zeroPosition: i.autoScaling ? z : C,
|
|
512
|
+
plots: i.autoScaling ? n : r
|
|
510
513
|
};
|
|
511
514
|
});
|
|
512
515
|
},
|
|
513
516
|
drawingArea() {
|
|
514
|
-
const
|
|
517
|
+
const i = this.mutableConfig.useIndividualScale && this.FINAL_CONFIG.chart.grid.labels.show ? this.absoluteDataset.filter((l) => !this.segregatedSeries.includes(l.id)).length * (this.mutableConfig.isStacked ? 0 : this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth) : 0;
|
|
515
518
|
return {
|
|
516
519
|
top: this.FINAL_CONFIG.chart.padding.top,
|
|
517
520
|
right: this.width - this.FINAL_CONFIG.chart.padding.right,
|
|
518
521
|
bottom: this.height - this.FINAL_CONFIG.chart.padding.bottom,
|
|
519
|
-
left: this.FINAL_CONFIG.chart.padding.left +
|
|
522
|
+
left: this.FINAL_CONFIG.chart.padding.left + i,
|
|
520
523
|
height: this.height - (this.FINAL_CONFIG.chart.padding.top + this.FINAL_CONFIG.chart.padding.bottom),
|
|
521
|
-
width: this.width - (this.FINAL_CONFIG.chart.padding.right + this.FINAL_CONFIG.chart.padding.left +
|
|
524
|
+
width: this.width - (this.FINAL_CONFIG.chart.padding.right + this.FINAL_CONFIG.chart.padding.left + i)
|
|
522
525
|
};
|
|
523
526
|
},
|
|
524
527
|
max() {
|
|
525
|
-
return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax ? this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax : Math.max(...this.safeDataset.filter((
|
|
528
|
+
return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax ? this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax : Math.max(...this.safeDataset.filter((i) => !this.segregatedSeries.includes(i.id)).map((i) => Math.max(...i.series)));
|
|
526
529
|
},
|
|
527
530
|
min() {
|
|
528
531
|
if (this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin !== null)
|
|
529
532
|
return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin;
|
|
530
|
-
const
|
|
531
|
-
return
|
|
533
|
+
const i = Math.min(...this.safeDataset.filter((l) => !this.segregatedSeries.includes(l.id)).map((l) => Math.min(...l.series)));
|
|
534
|
+
return i > 0 ? 0 : i;
|
|
532
535
|
},
|
|
533
536
|
niceScale() {
|
|
534
537
|
return this.calculateNiceScaleWithExactExtremes(this.min, this.max < 0 ? 0 : this.max, this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps);
|
|
@@ -537,49 +540,49 @@ const Xe = J(), qe = {
|
|
|
537
540
|
return this.slicer.end - this.slicer.start;
|
|
538
541
|
},
|
|
539
542
|
timeLabels() {
|
|
540
|
-
const
|
|
541
|
-
for (let o = 0; o <
|
|
542
|
-
|
|
543
|
+
const i = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length)), l = [];
|
|
544
|
+
for (let o = 0; o < i; o += 1)
|
|
545
|
+
l.push({
|
|
543
546
|
text: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[o] || String(o),
|
|
544
547
|
absoluteIndex: o
|
|
545
548
|
});
|
|
546
|
-
return
|
|
549
|
+
return l.slice(this.slicer.start, this.slicer.end);
|
|
547
550
|
},
|
|
548
551
|
slot() {
|
|
549
552
|
return {
|
|
550
|
-
bar: this.drawingArea.width / this.maxSeries / this.safeDataset.filter((
|
|
553
|
+
bar: this.drawingArea.width / this.maxSeries / this.safeDataset.filter((i) => i.type === "bar").filter((i) => !this.segregatedSeries.includes(i.id)).length,
|
|
551
554
|
plot: this.drawingArea.width / this.maxSeries,
|
|
552
555
|
line: this.drawingArea.width / this.maxSeries
|
|
553
556
|
};
|
|
554
557
|
},
|
|
555
558
|
barSlot() {
|
|
556
|
-
const
|
|
557
|
-
return this.drawingArea.width / this.maxSeries /
|
|
559
|
+
const i = this.safeDataset.filter((l) => l.type === "bar").filter((l) => !this.segregatedSeries.includes(l.id)).length;
|
|
560
|
+
return this.drawingArea.width / this.maxSeries / i - this.barPeriodGap * i;
|
|
558
561
|
},
|
|
559
562
|
barPeriodGap() {
|
|
560
563
|
return this.slot.line * this.FINAL_CONFIG.bar.periodGap;
|
|
561
564
|
},
|
|
562
565
|
maxSlot() {
|
|
563
|
-
return Math.max(...Object.values(this.slot).filter((
|
|
566
|
+
return Math.max(...Object.values(this.slot).filter((i) => i !== 1 / 0));
|
|
564
567
|
},
|
|
565
568
|
table() {
|
|
566
569
|
if (this.safeDataset.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
567
|
-
const
|
|
570
|
+
const i = this.relativeDataset.map((o) => ({
|
|
568
571
|
label: o.name,
|
|
569
572
|
color: o.color,
|
|
570
573
|
type: o.type
|
|
571
|
-
})),
|
|
574
|
+
})), l = [];
|
|
572
575
|
return this.timeLabels.forEach((o, u) => {
|
|
573
576
|
const t = [o.text];
|
|
574
577
|
this.relativeDataset.forEach((e) => {
|
|
575
578
|
t.push(this.canShowValue(e.absoluteValues[u]) ? Number(e.absoluteValues[u].toFixed(this.FINAL_CONFIG.table.rounding)) : "");
|
|
576
|
-
}),
|
|
577
|
-
}), { head:
|
|
579
|
+
}), l.push(t);
|
|
580
|
+
}), { head: i, body: l };
|
|
578
581
|
},
|
|
579
582
|
dataTable() {
|
|
580
|
-
const
|
|
581
|
-
let
|
|
582
|
-
|
|
583
|
+
const i = this.FINAL_CONFIG.table.showSum;
|
|
584
|
+
let l = [""].concat(this.relativeDataset.map((e) => e.name));
|
|
585
|
+
i && (l = l.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>'));
|
|
583
586
|
let o = [];
|
|
584
587
|
for (let e = 0; e < this.maxSeries; e += 1) {
|
|
585
588
|
const x = this.relativeDataset.map((A) => A.absoluteValues[e] ?? 0).reduce((A, k) => A + k, 0);
|
|
@@ -597,7 +600,7 @@ const Xe = J(), qe = {
|
|
|
597
600
|
r: this.FINAL_CONFIG.table.rounding
|
|
598
601
|
})
|
|
599
602
|
)
|
|
600
|
-
)).concat(
|
|
603
|
+
)).concat(i ? (x ?? 0).toFixed(this.FINAL_CONFIG.table.rounding) : [])
|
|
601
604
|
);
|
|
602
605
|
}
|
|
603
606
|
const u = {
|
|
@@ -613,7 +616,7 @@ const Xe = J(), qe = {
|
|
|
613
616
|
},
|
|
614
617
|
breakpoint: this.FINAL_CONFIG.table.responsiveBreakpoint
|
|
615
618
|
}, t = [this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map((e) => e.name)).concat(this.FINAL_CONFIG.table.columnNames.total);
|
|
616
|
-
return { head:
|
|
619
|
+
return { head: l, body: o, config: u, colNames: t };
|
|
617
620
|
},
|
|
618
621
|
dataTooltipSlot() {
|
|
619
622
|
return {
|
|
@@ -627,19 +630,19 @@ const Xe = J(), qe = {
|
|
|
627
630
|
};
|
|
628
631
|
},
|
|
629
632
|
selectedSeries() {
|
|
630
|
-
return this.relativeDataset.map((
|
|
631
|
-
shape:
|
|
632
|
-
name:
|
|
633
|
-
color:
|
|
634
|
-
type:
|
|
635
|
-
value:
|
|
636
|
-
comments:
|
|
637
|
-
prefix:
|
|
638
|
-
suffix:
|
|
633
|
+
return this.relativeDataset.map((i) => ({
|
|
634
|
+
shape: i.shape || null,
|
|
635
|
+
name: i.name,
|
|
636
|
+
color: i.color,
|
|
637
|
+
type: i.type,
|
|
638
|
+
value: i.absoluteValues.find((l, o) => o === this.selectedSerieIndex),
|
|
639
|
+
comments: i.comments || [],
|
|
640
|
+
prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
641
|
+
suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix
|
|
639
642
|
}));
|
|
640
643
|
},
|
|
641
644
|
tooltipContent() {
|
|
642
|
-
let
|
|
645
|
+
let i = "", l = this.selectedSeries.map((t) => t.value).filter((t) => this.isSafeValue(t) && t !== null).reduce((t, e) => Math.abs(t) + Math.abs(e), 0);
|
|
643
646
|
const o = this.timeLabels[this.selectedSerieIndex], u = this.FINAL_CONFIG.chart.tooltip.customFormat;
|
|
644
647
|
return this.isFunction(u) && this.functionReturnsString(() => u({
|
|
645
648
|
seriesIndex: this.selectedSerieIndex,
|
|
@@ -657,7 +660,7 @@ const Xe = J(), qe = {
|
|
|
657
660
|
lines: this.lineSet,
|
|
658
661
|
plots: this.plotSet,
|
|
659
662
|
config: this.FINAL_CONFIG
|
|
660
|
-
}) : (o && o.text && this.FINAL_CONFIG.chart.tooltip.showTimeLabel && (
|
|
663
|
+
}) : (o && o.text && this.FINAL_CONFIG.chart.tooltip.showTimeLabel && (i += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${o.text}</div>`), this.selectedSeries.forEach((t) => {
|
|
661
664
|
if (this.isSafeValue(t.value)) {
|
|
662
665
|
let e = "", x = "";
|
|
663
666
|
switch (this.icons[t.type]) {
|
|
@@ -697,7 +700,7 @@ const Xe = J(), qe = {
|
|
|
697
700
|
break;
|
|
698
701
|
}
|
|
699
702
|
}
|
|
700
|
-
|
|
703
|
+
i += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${e}</div> ${t.name}: <b>${this.FINAL_CONFIG.chart.tooltip.showValue ? this.applyDataLabel(
|
|
701
704
|
t.type === "line" ? this.FINAL_CONFIG.line.labels.formatter : t.type === "bar" ? this.FINAL_CONFIG.bar.labels.formatter : this.FINAL_CONFIG.plot.labels.formatter,
|
|
702
705
|
t.value,
|
|
703
706
|
this.dataLabel({
|
|
@@ -708,12 +711,12 @@ const Xe = J(), qe = {
|
|
|
708
711
|
}),
|
|
709
712
|
{ datapoint: t }
|
|
710
713
|
) : ""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage ? `(${U({
|
|
711
|
-
v: this.checkNaN(Math.abs(t.value) /
|
|
714
|
+
v: this.checkNaN(Math.abs(t.value) / l * 100),
|
|
712
715
|
s: "%",
|
|
713
716
|
r: this.FINAL_CONFIG.chart.tooltip.roundingPercentage
|
|
714
|
-
})})` : ""}</div>`, this.FINAL_CONFIG.chart.comments.showInTooltip && t.comments.length && t.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex] && (
|
|
717
|
+
})})` : ""}</div>`, this.FINAL_CONFIG.chart.comments.showInTooltip && t.comments.length && t.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex] && (i += `<div class="vue-data-ui-tooltip-comment" style="background:${t.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${t.color}">${t.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex]}</div>`);
|
|
715
718
|
}
|
|
716
|
-
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${this.FINAL_CONFIG.chart.tooltip.color}">${
|
|
719
|
+
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${this.FINAL_CONFIG.chart.tooltip.color}">${i}</div>`);
|
|
717
720
|
},
|
|
718
721
|
svg() {
|
|
719
722
|
return {
|
|
@@ -722,9 +725,9 @@ const Xe = J(), qe = {
|
|
|
722
725
|
};
|
|
723
726
|
},
|
|
724
727
|
yLabels() {
|
|
725
|
-
return this.niceScale.ticks.map((
|
|
726
|
-
y:
|
|
727
|
-
value:
|
|
728
|
+
return this.niceScale.ticks.map((i) => ({
|
|
729
|
+
y: i >= 0 ? this.zero - this.drawingArea.height * this.ratioToMax(i) : this.zero + this.drawingArea.height * this.ratioToMax(Math.abs(i)),
|
|
730
|
+
value: i,
|
|
728
731
|
prefix: this.FINAL_CONFIG.chart.labels.prefix,
|
|
729
732
|
suffix: this.FINAL_CONFIG.chart.labels.suffix
|
|
730
733
|
}));
|
|
@@ -734,19 +737,19 @@ const Xe = J(), qe = {
|
|
|
734
737
|
}
|
|
735
738
|
},
|
|
736
739
|
mounted() {
|
|
737
|
-
this.prepareChart(), this.setupSlicer(), document.addEventListener("mousemove", (
|
|
740
|
+
this.prepareChart(), this.setupSlicer(), document.addEventListener("mousemove", (i) => {
|
|
738
741
|
this.clientPosition = {
|
|
739
|
-
x:
|
|
740
|
-
y:
|
|
742
|
+
x: i.clientX,
|
|
743
|
+
y: i.clientY
|
|
741
744
|
};
|
|
742
745
|
});
|
|
743
746
|
},
|
|
744
747
|
methods: {
|
|
745
748
|
abbreviate: ee,
|
|
746
749
|
adaptColorToBackground: te,
|
|
747
|
-
applyDataLabel:
|
|
748
|
-
assignStackRatios:
|
|
749
|
-
calcLinearProgression:
|
|
750
|
+
applyDataLabel: ie,
|
|
751
|
+
assignStackRatios: re,
|
|
752
|
+
calcLinearProgression: ae,
|
|
750
753
|
calculateNiceScaleWithExactExtremes: le,
|
|
751
754
|
checkNaN: se,
|
|
752
755
|
closestDecimal: ne,
|
|
@@ -762,8 +765,8 @@ const Xe = J(), qe = {
|
|
|
762
765
|
functionReturnsString: Ne,
|
|
763
766
|
hasDeepProperty: me,
|
|
764
767
|
isFunction: xe,
|
|
765
|
-
isSafeValue:
|
|
766
|
-
largestTriangleThreeBucketsArray:
|
|
768
|
+
isSafeValue: be,
|
|
769
|
+
largestTriangleThreeBucketsArray: Fe,
|
|
767
770
|
objectIsEmpty: _e,
|
|
768
771
|
setOpacity: Ae,
|
|
769
772
|
shiftHue: ye,
|
|
@@ -771,67 +774,70 @@ const Xe = J(), qe = {
|
|
|
771
774
|
treeShake: Ce,
|
|
772
775
|
useMouse: Ge,
|
|
773
776
|
useNestedProp: Z,
|
|
777
|
+
setUserOptionsVisibility(i = !1) {
|
|
778
|
+
this.showUserOptionsOnChartHover && (this.userOptionsVisible = i);
|
|
779
|
+
},
|
|
774
780
|
toggleAnnotator() {
|
|
775
781
|
this.isAnnotator = !this.isAnnotator;
|
|
776
782
|
},
|
|
777
|
-
selectTimeLabel(
|
|
783
|
+
selectTimeLabel(i, l) {
|
|
778
784
|
const o = this.relativeDataset.map((u) => ({
|
|
779
785
|
shape: u.shape || null,
|
|
780
786
|
name: u.name,
|
|
781
787
|
color: u.color,
|
|
782
788
|
type: u.type,
|
|
783
|
-
value: u.absoluteValues.find((t, e) => e ===
|
|
789
|
+
value: u.absoluteValues.find((t, e) => e === l),
|
|
784
790
|
comments: u.comments || [],
|
|
785
791
|
prefix: u.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
786
792
|
suffix: u.suffix || this.FINAL_CONFIG.chart.labels.suffix
|
|
787
793
|
}));
|
|
788
794
|
this.$emit("selectTimeLabel", {
|
|
789
795
|
datapoint: o,
|
|
790
|
-
absoluteIndex:
|
|
791
|
-
label:
|
|
796
|
+
absoluteIndex: i.absoluteIndex,
|
|
797
|
+
label: i.text
|
|
792
798
|
});
|
|
793
799
|
},
|
|
794
|
-
getHighlightAreaPosition(
|
|
795
|
-
const
|
|
800
|
+
getHighlightAreaPosition(i) {
|
|
801
|
+
const l = this.drawingArea.left + this.drawingArea.width / this.maxSeries * (i.from - this.slicer.start), o = this.drawingArea.width / (this.slicer.end - this.slicer.start) * i.span < 0 ? 1e-5 : this.drawingArea.width / (this.slicer.end - this.slicer.start) * i.span;
|
|
796
802
|
return {
|
|
797
|
-
x:
|
|
803
|
+
x: l < this.drawingArea.left ? this.drawingArea.left : l,
|
|
798
804
|
width: o
|
|
799
805
|
};
|
|
800
806
|
},
|
|
801
807
|
prepareConfig() {
|
|
802
|
-
const
|
|
808
|
+
const i = Se().vue_ui_xy;
|
|
803
809
|
if (!Object.keys(this.config || {}).length)
|
|
804
|
-
return
|
|
805
|
-
const
|
|
810
|
+
return i;
|
|
811
|
+
const l = this.useNestedProp({
|
|
806
812
|
userConfig: this.config,
|
|
807
|
-
defaultConfig:
|
|
813
|
+
defaultConfig: i
|
|
808
814
|
});
|
|
809
|
-
return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ?
|
|
815
|
+
return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ? l.chart.highlightArea = this.config.chart.highlightArea : l.chart.highlightArea = [this.config.chart.highlightArea]), this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMin") ? l.chart.grid.labels.yAxis.scaleMin = this.config.chart.grid.labels.yAxis.scaleMin : l.chart.grid.labels.yAxis.scaleMin = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMax") ? l.chart.grid.labels.yAxis.scaleMax = this.config.chart.grid.labels.yAxis.scaleMax : l.chart.grid.labels.yAxis.scaleMax = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.startIndex") ? l.chart.zoom.startIndex = this.config.chart.zoom.startIndex : l.chart.zoom.startIndex = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.endIndex") ? l.chart.zoom.endIndex = this.config.chart.zoom.endIndex : l.chart.zoom.endIndex = null, l.theme ? {
|
|
810
816
|
...Z({
|
|
811
|
-
userConfig: this.themes.vue_ui_xy[
|
|
812
|
-
defaultConfig:
|
|
817
|
+
userConfig: this.themes.vue_ui_xy[l.theme] || this.config,
|
|
818
|
+
defaultConfig: l
|
|
813
819
|
}),
|
|
814
|
-
customPalette: this.themePalettes[
|
|
815
|
-
} :
|
|
820
|
+
customPalette: this.themePalettes[l.theme] || this.palette
|
|
821
|
+
} : l;
|
|
816
822
|
},
|
|
817
823
|
prepareChart() {
|
|
818
824
|
if (this.objectIsEmpty(this.dataset) ? this.error({
|
|
819
825
|
componentName: "VueUiXy",
|
|
820
826
|
type: "dataset"
|
|
821
|
-
}) : this.dataset.forEach((
|
|
822
|
-
[null, void 0].includes(
|
|
827
|
+
}) : this.dataset.forEach((i, l) => {
|
|
828
|
+
[null, void 0].includes(i.name) && this.error({
|
|
823
829
|
componentName: "VueUiXy",
|
|
824
830
|
type: "datasetSerieAttribute",
|
|
825
831
|
property: "name (string)",
|
|
826
|
-
index:
|
|
832
|
+
index: l
|
|
827
833
|
});
|
|
828
|
-
}), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((
|
|
829
|
-
|
|
830
|
-
this.isSafeValue(
|
|
831
|
-
-----> The serie '${
|
|
832
|
-
'${
|
|
834
|
+
}), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((i) => {
|
|
835
|
+
i.series.forEach((l, o) => {
|
|
836
|
+
this.isSafeValue(l) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
837
|
+
-----> The serie '${i.name}' contains the value '${l}' at index ${o}.
|
|
838
|
+
'${l}' was converted to null to allow the chart to display.`);
|
|
833
839
|
});
|
|
834
|
-
}), this.mutableConfig = {
|
|
840
|
+
}), this.showUserOptionsOnChartHover = this.FINAL_CONFIG.chart.userOptions.showOnChartHover, this.keepUserOptionState = this.FINAL_CONFIG.chart.userOptions.keepStateOnChartLeave, this.userOptionsVisible = !this.FINAL_CONFIG.chart.userOptions.showOnChartHover, this.mutableConfig = {
|
|
835
841
|
dataLabels: {
|
|
836
842
|
show: !0
|
|
837
843
|
},
|
|
@@ -840,25 +846,25 @@ const Xe = J(), qe = {
|
|
|
840
846
|
isStacked: this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,
|
|
841
847
|
useIndividualScale: this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale
|
|
842
848
|
}, this.FINAL_CONFIG.responsive) {
|
|
843
|
-
const
|
|
849
|
+
const l = this.$refs.chart.parentNode, { height: o, width: u } = l.getBoundingClientRect();
|
|
844
850
|
let t = null, e = 0;
|
|
845
851
|
this.FINAL_CONFIG.chart.title.show && (t = this.$refs.chartTitle, e = t.getBoundingClientRect().height);
|
|
846
852
|
let x = null, A = 0;
|
|
847
853
|
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (x = this.$refs.chartSlicer.$el, A = x.getBoundingClientRect().height);
|
|
848
854
|
let k = null, N = 0;
|
|
849
855
|
this.FINAL_CONFIG.chart.legend.show && (k = this.$refs.chartLegend, N = k.getBoundingClientRect().height);
|
|
850
|
-
let
|
|
851
|
-
this.$refs.source && (
|
|
856
|
+
let b = 0;
|
|
857
|
+
this.$refs.source && (b = this.$refs.source.getBoundingClientRect().height);
|
|
852
858
|
let T = 0;
|
|
853
|
-
this.$refs.noTitle && (T = this.$refs.noTitle.getBoundingClientRect().height), this.height = o - e - N - A -
|
|
859
|
+
this.$refs.noTitle && (T = this.$refs.noTitle.getBoundingClientRect().height), this.height = o - e - N - A - b - T, this.width = u, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes(), new ResizeObserver((p) => {
|
|
854
860
|
for (const O of p)
|
|
855
|
-
this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (A = this.$refs.chartSlicer.$el.getBoundingClientRect().height), this.$refs.chartLegend && (N = this.$refs.chartLegend.getBoundingClientRect().height), this.$refs.source && (
|
|
856
|
-
}).observe(
|
|
861
|
+
this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (A = this.$refs.chartSlicer.$el.getBoundingClientRect().height), this.$refs.chartLegend && (N = this.$refs.chartLegend.getBoundingClientRect().height), this.$refs.source && (b = this.$refs.source.getBoundingClientRect().height), this.height = O.contentBoxSize[0].blockSize - e - N - A - b - 24, this.width = O.contentBoxSize[0].inlineSize, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
|
|
862
|
+
}).observe(l);
|
|
857
863
|
} else
|
|
858
864
|
this.height = this.FINAL_CONFIG.chart.height, this.width = this.FINAL_CONFIG.chart.width, this.viewBox = `0 0 ${this.width} ${this.height}`, this.fontSizes.dataLabels = this.FINAL_CONFIG.chart.grid.labels.fontSize, this.fontSizes.yAxis = this.FINAL_CONFIG.chart.grid.labels.axis.fontSize, this.fontSizes.xAxis = this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.fontSize, this.fontSizes.plotLabels = this.FINAL_CONFIG.chart.labels.fontSize, this.plotRadii.plot = this.FINAL_CONFIG.plot.radius, this.plotRadii.line = this.FINAL_CONFIG.line.radius;
|
|
859
865
|
},
|
|
860
|
-
selectMinimapIndex(
|
|
861
|
-
this.selectedMinimapIndex =
|
|
866
|
+
selectMinimapIndex(i) {
|
|
867
|
+
this.selectedMinimapIndex = i;
|
|
862
868
|
},
|
|
863
869
|
convertSizes() {
|
|
864
870
|
this.fontSizes.dataLabels = this.translateSize({
|
|
@@ -911,118 +917,118 @@ const Xe = J(), qe = {
|
|
|
911
917
|
toggleTooltip() {
|
|
912
918
|
this.mutableConfig.showTooltip = !this.mutableConfig.showTooltip;
|
|
913
919
|
},
|
|
914
|
-
checkAutoScaleError(
|
|
915
|
-
|
|
920
|
+
checkAutoScaleError(i) {
|
|
921
|
+
i.autoScaling && (this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${i.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${i.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
|
|
916
922
|
},
|
|
917
|
-
createArea(
|
|
918
|
-
if (!
|
|
919
|
-
const
|
|
920
|
-
return
|
|
923
|
+
createArea(i) {
|
|
924
|
+
if (!i[0]) return [-10, -10, "", -10, -10];
|
|
925
|
+
const l = { x: i[0].x, y: this.zero }, o = { x: i.at(-1).x, y: this.zero }, u = [];
|
|
926
|
+
return i.forEach((t) => {
|
|
921
927
|
u.push(`${t.x},${t.y} `);
|
|
922
|
-
}), [
|
|
928
|
+
}), [l.x, l.y, ...u, o.x, o.y].toString();
|
|
923
929
|
},
|
|
924
|
-
createIndividualArea(
|
|
925
|
-
if (!
|
|
926
|
-
const o = { x:
|
|
927
|
-
return
|
|
930
|
+
createIndividualArea(i, l) {
|
|
931
|
+
if (!i[0]) return [-10, -10, "", -10, -10];
|
|
932
|
+
const o = { x: i[0] ? i[0].x : Math.min(...i.filter((e) => !!e).map((e) => e.x)), y: l }, u = { x: i.at(-1) ? i.at(-1).x : Math.min(...i.filter((e) => !!e).map((e) => e.x)), y: l }, t = [];
|
|
933
|
+
return i.filter((e) => !!e).forEach((e) => {
|
|
928
934
|
t.push(`${e.x},${e.y} `);
|
|
929
935
|
}), [o.x, o.y, ...t, u.x, u.y].toString();
|
|
930
936
|
},
|
|
931
937
|
createStar: q,
|
|
932
938
|
createPolygonPath: R,
|
|
933
|
-
fillArray(
|
|
934
|
-
let o = Array(
|
|
935
|
-
for (let u = 0; u <
|
|
936
|
-
o[u] =
|
|
939
|
+
fillArray(i, l) {
|
|
940
|
+
let o = Array(i).fill(0);
|
|
941
|
+
for (let u = 0; u < l.length && u < i; u += 1)
|
|
942
|
+
o[u] = l[u];
|
|
937
943
|
return o;
|
|
938
944
|
},
|
|
939
945
|
async setupSlicer() {
|
|
940
946
|
(this.FINAL_CONFIG.chart.zoom.startIndex !== null || this.FINAL_CONFIG.chart.zoom.endIndex !== null) && this.$refs.chartSlicer ? (this.FINAL_CONFIG.chart.zoom.startIndex !== null && (await this.$nextTick(), await this.$nextTick(), this.$refs.chartSlicer.setStartValue(this.FINAL_CONFIG.chart.zoom.startIndex)), this.FINAL_CONFIG.chart.zoom.endIndex !== null && (await this.$nextTick(), await this.$nextTick(), this.$refs.chartSlicer.setEndValue(this.validSlicerEnd(this.FINAL_CONFIG.chart.zoom.endIndex + 1)))) : (this.slicer = {
|
|
941
947
|
start: 0,
|
|
942
|
-
end: Math.max(...this.dataset.map((
|
|
948
|
+
end: Math.max(...this.dataset.map((i) => this.largestTriangleThreeBucketsArray({ data: i.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length))
|
|
943
949
|
}, this.slicerStep += 1);
|
|
944
950
|
},
|
|
945
951
|
refreshSlicer() {
|
|
946
952
|
this.setupSlicer();
|
|
947
953
|
},
|
|
948
|
-
validSlicerEnd(
|
|
949
|
-
const
|
|
950
|
-
return
|
|
954
|
+
validSlicerEnd(i) {
|
|
955
|
+
const l = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length));
|
|
956
|
+
return i > l ? l : i < 0 || this.FINAL_CONFIG.chart.zoom.startIndex !== null && i < this.FINAL_CONFIG.chart.zoom.startIndex ? this.FINAL_CONFIG.chart.zoom.startIndex !== null ? this.FINAL_CONFIG.chart.zoom.startIndex + 1 : 1 : i;
|
|
951
957
|
},
|
|
952
|
-
calcRectHeight(
|
|
953
|
-
return
|
|
958
|
+
calcRectHeight(i) {
|
|
959
|
+
return i.value >= 0 ? this.checkNaN(this.zero - i.y <= 0 ? 1e-5 : this.zero - i.y) : this.checkNaN(i.y - this.zero <= 0 ? 1e-5 : i.y - this.zero);
|
|
954
960
|
},
|
|
955
|
-
calcIndividualHeight(
|
|
956
|
-
return
|
|
961
|
+
calcIndividualHeight(i) {
|
|
962
|
+
return i.value >= 0 ? this.checkNaN(i.zeroPosition - i.y <= 0 ? 1e-5 : i.zeroPosition - i.y) : this.checkNaN(i.y - i.zeroPosition <= 0 ? 1e-5 : i.zeroPosition - i.y);
|
|
957
963
|
},
|
|
958
964
|
calcRectWidth() {
|
|
959
965
|
return this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.slot.line - this.drawingArea.width / this.maxSeries * 0.1 : this.slot.bar;
|
|
960
966
|
},
|
|
961
|
-
calcRectX(
|
|
962
|
-
return this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ?
|
|
967
|
+
calcRectX(i) {
|
|
968
|
+
return this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? i.x + this.drawingArea.width / this.maxSeries * 0.05 : i.x + this.slot.bar / 2;
|
|
963
969
|
},
|
|
964
|
-
calcRectY(
|
|
965
|
-
return
|
|
970
|
+
calcRectY(i) {
|
|
971
|
+
return i.value >= 0 ? i.y : this.zero;
|
|
966
972
|
},
|
|
967
|
-
calcIndividualRectY(
|
|
968
|
-
return
|
|
973
|
+
calcIndividualRectY(i) {
|
|
974
|
+
return i.value >= 0 ? i.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(i.zeroPosition) ? 0 : i.zeroPosition;
|
|
969
975
|
},
|
|
970
|
-
canShowValue(
|
|
971
|
-
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(
|
|
976
|
+
canShowValue(i) {
|
|
977
|
+
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(i);
|
|
972
978
|
},
|
|
973
|
-
findClosestValue(
|
|
974
|
-
let o =
|
|
975
|
-
for (let t = 1; t <
|
|
976
|
-
const e = Math.abs(
|
|
977
|
-
e < u &&
|
|
979
|
+
findClosestValue(i, l) {
|
|
980
|
+
let o = l[0], u = Math.abs(i - l[0]);
|
|
981
|
+
for (let t = 1; t < l.length; t += 1) {
|
|
982
|
+
const e = Math.abs(i - l[t]);
|
|
983
|
+
e < u && l[t] < i && (o = l[t], u = e);
|
|
978
984
|
}
|
|
979
985
|
return o;
|
|
980
986
|
},
|
|
981
|
-
ratioToMax(
|
|
982
|
-
return
|
|
987
|
+
ratioToMax(i) {
|
|
988
|
+
return i / (this.canShowValue(this.absoluteMax) ? this.absoluteMax : 1);
|
|
983
989
|
},
|
|
984
|
-
selectX(
|
|
990
|
+
selectX(i) {
|
|
985
991
|
this.$emit(
|
|
986
992
|
"selectX",
|
|
987
993
|
{
|
|
988
|
-
dataset: this.relativeDataset.map((
|
|
989
|
-
name:
|
|
990
|
-
value: [null, void 0, NaN].includes(
|
|
991
|
-
color:
|
|
992
|
-
type:
|
|
994
|
+
dataset: this.relativeDataset.map((l) => ({
|
|
995
|
+
name: l.name,
|
|
996
|
+
value: [null, void 0, NaN].includes(l.absoluteValues[i]) ? null : l.absoluteValues[i],
|
|
997
|
+
color: l.color,
|
|
998
|
+
type: l.type
|
|
993
999
|
})),
|
|
994
|
-
index:
|
|
995
|
-
indexLabel: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[
|
|
1000
|
+
index: i,
|
|
1001
|
+
indexLabel: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[i]
|
|
996
1002
|
}
|
|
997
1003
|
);
|
|
998
1004
|
},
|
|
999
1005
|
getData() {
|
|
1000
|
-
return this.absoluteDataset.map((
|
|
1001
|
-
values:
|
|
1002
|
-
color:
|
|
1003
|
-
name:
|
|
1004
|
-
type:
|
|
1006
|
+
return this.absoluteDataset.map((i) => ({
|
|
1007
|
+
values: i.absoluteValues,
|
|
1008
|
+
color: i.color,
|
|
1009
|
+
name: i.name,
|
|
1010
|
+
type: i.type
|
|
1005
1011
|
}));
|
|
1006
1012
|
},
|
|
1007
|
-
segregate(
|
|
1008
|
-
if (this.segregatedSeries.includes(
|
|
1009
|
-
this.segregatedSeries = this.segregatedSeries.filter((
|
|
1013
|
+
segregate(i) {
|
|
1014
|
+
if (this.segregatedSeries.includes(i.id))
|
|
1015
|
+
this.segregatedSeries = this.segregatedSeries.filter((l) => l !== i.id);
|
|
1010
1016
|
else {
|
|
1011
1017
|
if (this.segregatedSeries.length + 1 === this.safeDataset.length) return;
|
|
1012
|
-
this.segregatedSeries.push(
|
|
1018
|
+
this.segregatedSeries.push(i.id);
|
|
1013
1019
|
}
|
|
1014
|
-
this.$emit("selectLegend", this.relativeDataset.map((
|
|
1015
|
-
name:
|
|
1016
|
-
values:
|
|
1017
|
-
color:
|
|
1018
|
-
type:
|
|
1020
|
+
this.$emit("selectLegend", this.relativeDataset.map((l) => ({
|
|
1021
|
+
name: l.name,
|
|
1022
|
+
values: l.absoluteValues,
|
|
1023
|
+
color: l.color,
|
|
1024
|
+
type: l.type
|
|
1019
1025
|
}))), this.segregateStep += 1;
|
|
1020
1026
|
},
|
|
1021
|
-
toggleTooltipVisibility(
|
|
1022
|
-
this.isTooltip =
|
|
1027
|
+
toggleTooltipVisibility(i, l = null) {
|
|
1028
|
+
this.isTooltip = i, i ? this.selectedSerieIndex = l : this.selectedSerieIndex = null;
|
|
1023
1029
|
},
|
|
1024
|
-
toggleFullscreen(
|
|
1025
|
-
this.isFullscreen =
|
|
1030
|
+
toggleFullscreen(i) {
|
|
1031
|
+
this.isFullscreen = i, this.step += 1;
|
|
1026
1032
|
},
|
|
1027
1033
|
showSpinnerPdf() {
|
|
1028
1034
|
this.isPrinting = !0;
|
|
@@ -1030,20 +1036,20 @@ const Xe = J(), qe = {
|
|
|
1030
1036
|
async generatePdf() {
|
|
1031
1037
|
this.showSpinnerPdf(), clearTimeout(this.__to__), this.isPrinting = !0, this.__to__ = setTimeout(async () => {
|
|
1032
1038
|
try {
|
|
1033
|
-
const { default:
|
|
1034
|
-
await
|
|
1039
|
+
const { default: i } = await import("./pdf-B7oVat64.js");
|
|
1040
|
+
await i({
|
|
1035
1041
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1036
1042
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy"
|
|
1037
1043
|
});
|
|
1038
|
-
} catch (
|
|
1039
|
-
console.error("Error generating PDF:",
|
|
1044
|
+
} catch (i) {
|
|
1045
|
+
console.error("Error generating PDF:", i);
|
|
1040
1046
|
} finally {
|
|
1041
1047
|
this.isPrinting = !1;
|
|
1042
1048
|
}
|
|
1043
1049
|
}, 100);
|
|
1044
1050
|
},
|
|
1045
1051
|
generateCsv() {
|
|
1046
|
-
const
|
|
1052
|
+
const i = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], l = ["", ...this.table.head.map((e) => e.label)], o = this.table.body, u = i.concat([l]).concat(o), t = this.createCsvContent(u);
|
|
1047
1053
|
this.downloadCsv({ csvContent: t, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
|
|
1048
1054
|
},
|
|
1049
1055
|
showSpinnerImage() {
|
|
@@ -1052,14 +1058,14 @@ const Xe = J(), qe = {
|
|
|
1052
1058
|
async generateImage() {
|
|
1053
1059
|
this.showSpinnerImage(), clearTimeout(this.__to__), this.isImaging = !0, this.__to__ = setTimeout(async () => {
|
|
1054
1060
|
try {
|
|
1055
|
-
const { default:
|
|
1056
|
-
await
|
|
1061
|
+
const { default: i } = await import("./img-DGzWcJ4Y.js");
|
|
1062
|
+
await i({
|
|
1057
1063
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1058
1064
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
1059
1065
|
format: "png"
|
|
1060
1066
|
});
|
|
1061
|
-
} catch (
|
|
1062
|
-
console.error("Error generating image:",
|
|
1067
|
+
} catch (i) {
|
|
1068
|
+
console.error("Error generating image:", i);
|
|
1063
1069
|
} finally {
|
|
1064
1070
|
this.isImaging = !1;
|
|
1065
1071
|
}
|
|
@@ -1071,54 +1077,56 @@ const Xe = J(), qe = {
|
|
|
1071
1077
|
ref: "noTitle",
|
|
1072
1078
|
class: "vue-data-ui-no-title-space",
|
|
1073
1079
|
style: "height:36px; width: 100%; background:transparent"
|
|
1074
|
-
}, Je = ["viewBox"], Ke = { key: 0 }, Qe = { class: "vue-ui-xy-grid" }, je = ["stroke", "x1", "x2", "y1", "y2"], $e = ["stroke", "x1", "x2", "y1", "y2"], et = { key: 1 }, tt = ["x1", "x2", "y1", "y2", "stroke"],
|
|
1080
|
+
}, Je = ["viewBox"], Ke = { key: 0 }, Qe = { class: "vue-ui-xy-grid" }, je = ["stroke", "x1", "x2", "y1", "y2"], $e = ["stroke", "x1", "x2", "y1", "y2"], et = { key: 1 }, tt = ["x1", "x2", "y1", "y2", "stroke"], it = ["x1", "x2", "y1", "y2", "stroke"], rt = ["x1", "x2", "y1", "y2", "stroke"], at = { key: 3 }, lt = ["x1", "x2", "y1", "y2", "stroke"], st = ["id"], nt = ["stop-color"], ht = ["stop-color"], ot = ["stop-color"], ct = ["id"], dt = ["stop-color"], ut = ["stop-color"], gt = ["stop-color"], ft = ["id"], It = ["stop-color"], Nt = ["stop-color"], mt = ["id"], xt = ["stop-color"], bt = ["stop-color"], Ft = ["id"], _t = ["stop-color"], At = ["stop-color"], yt = ["x", "y", "height", "width", "fill"], Lt = ["x", "y", "width"], Ct = ["x", "y", "height", "width", "fill"], St = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], kt = ["width", "x", "y"], wt = { key: 0 }, Ot = ["id"], Gt = ["fill"], vt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], pt = ["x", "y", "font-size", "fill"], zt = ["stroke", "x1", "x2", "y1", "y2"], Mt = { key: 2 }, Tt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Pt = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Vt = { key: 4 }, Rt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dt = ["fill", "font-size", "transform"], Bt = ["x1", "x2", "y1", "y2", "stroke"], Ht = ["x", "y", "font-size", "fill"], Et = ["x1", "x2", "y1", "y2", "stroke"], Wt = ["x", "y", "font-size", "fill"], Yt = ["width", "x", "y"], Xt = { style: { width: "100%" } }, qt = { key: 0 }, Ut = ["id"], Zt = ["fill"], Jt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Kt = ["x", "y", "font-size", "fill"], Qt = ["d", "stroke", "stroke-width", "stroke-dasharray"], jt = { key: 1 }, $t = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ei = { key: 0 }, ti = ["d", "fill"], ii = ["d", "fill"], ri = ["d", "stroke", "stroke-width", "stroke-dasharray"], ai = { key: 2 }, li = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], si = ["width", "x", "y"], ni = { style: { width: "100%" } }, hi = { key: 3 }, oi = ["id"], ci = ["fill"], di = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ui = ["x", "y", "font-size", "fill"], gi = { key: 5 }, fi = ["x", "y", "font-size", "fill"], Ii = ["x", "y", "font-size", "fill", "font-weight"], Ni = { key: 6 }, mi = ["x", "y", "font-size", "fill"], xi = ["x", "y"], bi = ["x", "y"], Fi = { key: 7 }, _i = ["x", "y", "font-size", "fill"], Ai = ["x", "y"], yi = ["x", "y"], Li = ["x", "y", "font-size", "fill", "innerHTML"], Ci = ["x", "y", "font-size", "fill", "innerHTML"], Si = ["x", "y", "font-size", "fill", "innerHTML"], ki = ["x", "y", "font-size", "fill", "innerHTML"], wi = ["x", "y", "width", "height", "fill", "onMouseenter"], Oi = ["font-size", "fill", "transform"], Gi = ["x", "y", "font-size", "fill"], vi = { key: 9 }, pi = ["text-anchor", "font-size", "fill", "transform", "onClick"], zi = ["x", "y", "height", "width", "onMouseenter", "onClick"], Mi = { key: 10 }, Ti = ["x", "y"], Pi = ["cx", "cy", "r", "fill"], Vi = {
|
|
1075
1081
|
key: 5,
|
|
1076
1082
|
class: "vue-data-ui-watermark"
|
|
1077
|
-
},
|
|
1083
|
+
}, Ri = ["onClick"], Di = {
|
|
1078
1084
|
key: 0,
|
|
1079
1085
|
viewBox: "0 0 20 12",
|
|
1080
1086
|
height: "14",
|
|
1081
1087
|
width: "20"
|
|
1082
|
-
},
|
|
1088
|
+
}, Bi = ["stroke", "fill"], Hi = {
|
|
1083
1089
|
key: 1,
|
|
1084
1090
|
viewBox: "0 0 12 12",
|
|
1085
1091
|
height: "14",
|
|
1086
1092
|
width: "14"
|
|
1087
|
-
},
|
|
1093
|
+
}, Ei = ["fill"], Wi = {
|
|
1088
1094
|
key: 9,
|
|
1089
1095
|
ref: "chartLegend"
|
|
1090
|
-
},
|
|
1096
|
+
}, Yi = {
|
|
1091
1097
|
key: 10,
|
|
1092
1098
|
ref: "source",
|
|
1093
1099
|
dir: "auto"
|
|
1094
|
-
},
|
|
1100
|
+
}, Xi = {
|
|
1095
1101
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
1096
1102
|
"data-html2canvas-ignore": ""
|
|
1097
|
-
},
|
|
1098
|
-
function
|
|
1099
|
-
const x = P("PenAndPaper"), A = P("Title"), k = P("UserOptions"), N = P("PackageVersion"),
|
|
1100
|
-
return
|
|
1103
|
+
}, qi = ["innerHTML"];
|
|
1104
|
+
function Ui(i, l, o, u, t, e) {
|
|
1105
|
+
const x = P("PenAndPaper"), A = P("Title"), k = P("UserOptions"), N = P("PackageVersion"), b = P("Shape"), T = P("Skeleton"), v = P("Slicer"), p = P("Tooltip"), O = P("BaseIcon"), _ = P("TableSparkline"), C = P("DataTable"), z = P("Accordion");
|
|
1106
|
+
return a(), s("div", {
|
|
1101
1107
|
id: `vue-ui-xy_${t.uniqueId}`,
|
|
1102
1108
|
class: V(`vue-ui-xy ${t.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1103
1109
|
ref: "chart",
|
|
1104
|
-
style: L(`background:${e.FINAL_CONFIG.chart.backgroundColor}; color:${e.FINAL_CONFIG.chart.color};width:100%;font-family:${e.FINAL_CONFIG.chart.fontFamily};${e.FINAL_CONFIG.responsive ? "height: 100%" : ""}`)
|
|
1110
|
+
style: L(`background:${e.FINAL_CONFIG.chart.backgroundColor}; color:${e.FINAL_CONFIG.chart.color};width:100%;font-family:${e.FINAL_CONFIG.chart.fontFamily};${e.FINAL_CONFIG.responsive ? "height: 100%" : ""}`),
|
|
1111
|
+
onMouseenter: l[7] || (l[7] = () => e.setUserOptionsVisibility(!0)),
|
|
1112
|
+
onMouseleave: l[8] || (l[8] = () => e.setUserOptionsVisibility(!1))
|
|
1105
1113
|
}, [
|
|
1106
|
-
e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (
|
|
1114
|
+
e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (a(), D(x, {
|
|
1107
1115
|
key: 0,
|
|
1108
|
-
parent:
|
|
1116
|
+
parent: i.$refs.chart,
|
|
1109
1117
|
backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1110
1118
|
color: e.FINAL_CONFIG.chart.color,
|
|
1111
1119
|
active: t.isAnnotator,
|
|
1112
1120
|
onClose: e.toggleAnnotator
|
|
1113
1121
|
}, null, 8, ["parent", "backgroundColor", "color", "active", "onClose"])) : c("", !0),
|
|
1114
|
-
e.hasOptionsNoTitle ? (
|
|
1115
|
-
e.FINAL_CONFIG.chart.title.show ? (
|
|
1122
|
+
e.hasOptionsNoTitle ? (a(), s("div", Ze, null, 512)) : c("", !0),
|
|
1123
|
+
e.FINAL_CONFIG.chart.title.show ? (a(), s("div", {
|
|
1116
1124
|
key: 2,
|
|
1117
1125
|
ref: "chartTitle",
|
|
1118
1126
|
class: "vue-ui-xy-title",
|
|
1119
1127
|
style: L(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
1120
1128
|
}, [
|
|
1121
|
-
(
|
|
1129
|
+
(a(), D(A, {
|
|
1122
1130
|
key: `title_${t.titleStep}`,
|
|
1123
1131
|
config: {
|
|
1124
1132
|
title: {
|
|
@@ -1132,7 +1140,7 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1132
1140
|
}
|
|
1133
1141
|
}, null, 8, ["config"]))
|
|
1134
1142
|
], 4)) : c("", !0),
|
|
1135
|
-
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset ? (
|
|
1143
|
+
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (t.keepUserOptionState || t.userOptionsVisible) ? (a(), D(k, {
|
|
1136
1144
|
ref: "defails",
|
|
1137
1145
|
key: `user_options_${t.step}`,
|
|
1138
1146
|
backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
@@ -1150,7 +1158,7 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1150
1158
|
hasFullscreen: e.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,
|
|
1151
1159
|
isStacked: t.mutableConfig.isStacked,
|
|
1152
1160
|
isFullscreen: t.isFullscreen,
|
|
1153
|
-
chartElement:
|
|
1161
|
+
chartElement: i.$refs.chart,
|
|
1154
1162
|
position: e.FINAL_CONFIG.chart.userOptions.position,
|
|
1155
1163
|
isTooltip: t.mutableConfig.showTooltip,
|
|
1156
1164
|
titles: { ...e.FINAL_CONFIG.chart.userOptions.buttonTitles },
|
|
@@ -1164,73 +1172,76 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1164
1172
|
onToggleLabels: e.toggleLabels,
|
|
1165
1173
|
onToggleStack: e.toggleStack,
|
|
1166
1174
|
onToggleTooltip: e.toggleTooltip,
|
|
1167
|
-
onToggleAnnotator: e.toggleAnnotator
|
|
1175
|
+
onToggleAnnotator: e.toggleAnnotator,
|
|
1176
|
+
style: L({
|
|
1177
|
+
visibility: t.keepUserOptionState ? t.userOptionsVisible ? "visible" : "hidden" : "visible"
|
|
1178
|
+
})
|
|
1168
1179
|
}, Be({ _: 2 }, [
|
|
1169
|
-
|
|
1180
|
+
i.$slots.optionTooltip ? {
|
|
1170
1181
|
name: "optionTooltip",
|
|
1171
1182
|
fn: M(() => [
|
|
1172
|
-
w(
|
|
1183
|
+
w(i.$slots, "optionTooltip", {}, void 0, !0)
|
|
1173
1184
|
]),
|
|
1174
1185
|
key: "0"
|
|
1175
1186
|
} : void 0,
|
|
1176
|
-
|
|
1187
|
+
i.$slots.optionPdf ? {
|
|
1177
1188
|
name: "optionPdf",
|
|
1178
1189
|
fn: M(() => [
|
|
1179
|
-
w(
|
|
1190
|
+
w(i.$slots, "optionPdf", {}, void 0, !0)
|
|
1180
1191
|
]),
|
|
1181
1192
|
key: "1"
|
|
1182
1193
|
} : void 0,
|
|
1183
|
-
|
|
1194
|
+
i.$slots.optionCsv ? {
|
|
1184
1195
|
name: "optionCsv",
|
|
1185
1196
|
fn: M(() => [
|
|
1186
|
-
w(
|
|
1197
|
+
w(i.$slots, "optionCsv", {}, void 0, !0)
|
|
1187
1198
|
]),
|
|
1188
1199
|
key: "2"
|
|
1189
1200
|
} : void 0,
|
|
1190
|
-
|
|
1201
|
+
i.$slots.optionImg ? {
|
|
1191
1202
|
name: "optionImg",
|
|
1192
1203
|
fn: M(() => [
|
|
1193
|
-
w(
|
|
1204
|
+
w(i.$slots, "optionImg", {}, void 0, !0)
|
|
1194
1205
|
]),
|
|
1195
1206
|
key: "3"
|
|
1196
1207
|
} : void 0,
|
|
1197
|
-
|
|
1208
|
+
i.$slots.optionTable ? {
|
|
1198
1209
|
name: "optionTable",
|
|
1199
1210
|
fn: M(() => [
|
|
1200
|
-
w(
|
|
1211
|
+
w(i.$slots, "optionTable", {}, void 0, !0)
|
|
1201
1212
|
]),
|
|
1202
1213
|
key: "4"
|
|
1203
1214
|
} : void 0,
|
|
1204
|
-
|
|
1215
|
+
i.$slots.optionLabels ? {
|
|
1205
1216
|
name: "optionLabels",
|
|
1206
1217
|
fn: M(() => [
|
|
1207
|
-
w(
|
|
1218
|
+
w(i.$slots, "optionLabels", {}, void 0, !0)
|
|
1208
1219
|
]),
|
|
1209
1220
|
key: "5"
|
|
1210
1221
|
} : void 0,
|
|
1211
|
-
|
|
1222
|
+
i.$slots.optionStack ? {
|
|
1212
1223
|
name: "optionStack",
|
|
1213
1224
|
fn: M(() => [
|
|
1214
|
-
w(
|
|
1225
|
+
w(i.$slots, "optionStack", {}, void 0, !0)
|
|
1215
1226
|
]),
|
|
1216
1227
|
key: "6"
|
|
1217
1228
|
} : void 0,
|
|
1218
|
-
|
|
1229
|
+
i.$slots.optionFullscreen ? {
|
|
1219
1230
|
name: "optionFullscreen",
|
|
1220
|
-
fn: M(({ toggleFullscreen:
|
|
1221
|
-
w(
|
|
1231
|
+
fn: M(({ toggleFullscreen: r, isFullscreen: h }) => [
|
|
1232
|
+
w(i.$slots, "optionFullscreen", B(H({ toggleFullscreen: r, isFullscreen: h })), void 0, !0)
|
|
1222
1233
|
]),
|
|
1223
1234
|
key: "7"
|
|
1224
1235
|
} : void 0,
|
|
1225
|
-
|
|
1236
|
+
i.$slots.optionAnnotator ? {
|
|
1226
1237
|
name: "optionAnnotator",
|
|
1227
|
-
fn: M(({ toggleAnnotator:
|
|
1228
|
-
w(
|
|
1238
|
+
fn: M(({ toggleAnnotator: r, isAnnotator: h }) => [
|
|
1239
|
+
w(i.$slots, "optionAnnotator", B(H({ toggleAnnotator: r, isAnnotator: h })), void 0, !0)
|
|
1229
1240
|
]),
|
|
1230
1241
|
key: "8"
|
|
1231
1242
|
} : void 0
|
|
1232
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onToggleFullscreen", "onGeneratePdf", "onGenerateCsv", "onGenerateImage", "onToggleTable", "onToggleLabels", "onToggleStack", "onToggleTooltip", "onToggleAnnotator"])) : c("", !0),
|
|
1233
|
-
e.isDataset ? (
|
|
1243
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onToggleFullscreen", "onGeneratePdf", "onGenerateCsv", "onGenerateImage", "onToggleTable", "onToggleLabels", "onToggleStack", "onToggleTooltip", "onToggleAnnotator", "style"])) : c("", !0),
|
|
1244
|
+
e.isDataset ? (a(), s("svg", {
|
|
1234
1245
|
key: 4,
|
|
1235
1246
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1236
1247
|
class: V([{ "vue-data-ui-fullscreen--on": t.isFullscreen, "vue-data-ui-fulscreen--off": !t.isFullscreen }, "vue-ui-xy-svg"]),
|
|
@@ -1239,9 +1250,9 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1239
1250
|
style: L(`background: transparent; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
1240
1251
|
}, [
|
|
1241
1252
|
X(N),
|
|
1242
|
-
e.maxSeries > 0 ? (
|
|
1253
|
+
e.maxSeries > 0 ? (a(), s("g", Ke, [
|
|
1243
1254
|
f("g", Qe, [
|
|
1244
|
-
e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (
|
|
1255
|
+
e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (a(), s("line", {
|
|
1245
1256
|
key: 0,
|
|
1246
1257
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1247
1258
|
"stroke-width": "1",
|
|
@@ -1251,16 +1262,16 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1251
1262
|
y2: e.drawingArea.bottom,
|
|
1252
1263
|
"stroke-linecap": "round"
|
|
1253
1264
|
}, null, 8, je)) : c("", !0),
|
|
1254
|
-
t.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (
|
|
1255
|
-
|
|
1265
|
+
t.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(!0), s(I, { key: 2 }, m(e.allScales, (r) => (a(), s("g", null, [
|
|
1266
|
+
r.id === t.selectedScale && r.yLabels.length ? (a(!0), s(I, { key: 0 }, m(r.yLabels, (h) => (a(), s("line", {
|
|
1256
1267
|
x1: e.drawingArea.left + e.xPadding,
|
|
1257
1268
|
x2: e.drawingArea.right - e.xPadding,
|
|
1258
1269
|
y1: e.checkNaN(h.y),
|
|
1259
1270
|
y2: e.checkNaN(h.y),
|
|
1260
|
-
stroke:
|
|
1271
|
+
stroke: r.color,
|
|
1261
1272
|
"stroke-width": 0.5,
|
|
1262
1273
|
"stroke-linecap": "round"
|
|
1263
|
-
}, null, 8,
|
|
1274
|
+
}, null, 8, it))), 256)) : r.yLabels.length ? (a(!0), s(I, { key: 1 }, m(r.yLabels, (h) => (a(), s("line", {
|
|
1264
1275
|
x1: e.drawingArea.left + e.xPadding,
|
|
1265
1276
|
x2: e.drawingArea.right - e.xPadding,
|
|
1266
1277
|
y1: e.checkNaN(h.y),
|
|
@@ -1268,9 +1279,9 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1268
1279
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1269
1280
|
"stroke-width": 0.5,
|
|
1270
1281
|
"stroke-linecap": "round"
|
|
1271
|
-
}, null, 8,
|
|
1272
|
-
]))), 256)) : c("", !0) : (
|
|
1273
|
-
e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (
|
|
1282
|
+
}, null, 8, rt))), 256)) : c("", !0)
|
|
1283
|
+
]))), 256)) : c("", !0) : (a(), s(I, { key: 1 }, [
|
|
1284
|
+
e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (a(), s("line", {
|
|
1274
1285
|
key: 0,
|
|
1275
1286
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1276
1287
|
"stroke-width": "1",
|
|
@@ -1280,20 +1291,20 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1280
1291
|
y2: e.drawingArea.bottom,
|
|
1281
1292
|
"stroke-linecap": "round"
|
|
1282
1293
|
}, null, 8, $e)) : c("", !0),
|
|
1283
|
-
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (
|
|
1284
|
-
(
|
|
1294
|
+
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(), s("g", et, [
|
|
1295
|
+
(a(!0), s(I, null, m(e.yLabels, (r) => (a(), s("line", {
|
|
1285
1296
|
x1: e.drawingArea.left + e.xPadding,
|
|
1286
1297
|
x2: e.drawingArea.right - e.xPadding,
|
|
1287
|
-
y1: e.checkNaN(
|
|
1288
|
-
y2: e.checkNaN(
|
|
1298
|
+
y1: e.checkNaN(r.y),
|
|
1299
|
+
y2: e.checkNaN(r.y),
|
|
1289
1300
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1290
1301
|
"stroke-width": 0.5,
|
|
1291
1302
|
"stroke-linecap": "round"
|
|
1292
1303
|
}, null, 8, tt))), 256))
|
|
1293
1304
|
])) : c("", !0)
|
|
1294
1305
|
], 64)),
|
|
1295
|
-
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (
|
|
1296
|
-
(
|
|
1306
|
+
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (a(), s("g", at, [
|
|
1307
|
+
(a(!0), s(I, null, m(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (r, h) => (a(), s("line", {
|
|
1297
1308
|
key: `grid_vertical_line_${h}`,
|
|
1298
1309
|
x1: e.drawingArea.width / e.maxSeries * h + e.drawingArea.left + e.xPadding,
|
|
1299
1310
|
x2: e.drawingArea.width / e.maxSeries * h + e.drawingArea.left + e.xPadding,
|
|
@@ -1304,7 +1315,7 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1304
1315
|
}, null, 8, lt))), 128))
|
|
1305
1316
|
])) : c("", !0)
|
|
1306
1317
|
]),
|
|
1307
|
-
(
|
|
1318
|
+
(a(!0), s(I, null, m(e.barSet, (r, h) => (a(), s("defs", {
|
|
1308
1319
|
key: `def_rect_${h}`
|
|
1309
1320
|
}, [
|
|
1310
1321
|
f("linearGradient", {
|
|
@@ -1314,15 +1325,15 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1314
1325
|
}, [
|
|
1315
1326
|
f("stop", {
|
|
1316
1327
|
offset: "0%",
|
|
1317
|
-
"stop-color":
|
|
1328
|
+
"stop-color": r.color
|
|
1318
1329
|
}, null, 8, nt),
|
|
1319
1330
|
f("stop", {
|
|
1320
1331
|
offset: "62%",
|
|
1321
|
-
"stop-color": `${e.shiftHue(
|
|
1332
|
+
"stop-color": `${e.shiftHue(r.color, 0.02)}`
|
|
1322
1333
|
}, null, 8, ht),
|
|
1323
1334
|
f("stop", {
|
|
1324
1335
|
offset: "100%",
|
|
1325
|
-
"stop-color": `${e.shiftHue(
|
|
1336
|
+
"stop-color": `${e.shiftHue(r.color, 0.05)}`
|
|
1326
1337
|
}, null, 8, ot)
|
|
1327
1338
|
], 8, st),
|
|
1328
1339
|
f("linearGradient", {
|
|
@@ -1332,19 +1343,19 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1332
1343
|
}, [
|
|
1333
1344
|
f("stop", {
|
|
1334
1345
|
offset: "0%",
|
|
1335
|
-
"stop-color": `${e.shiftHue(
|
|
1346
|
+
"stop-color": `${e.shiftHue(r.color, 0.05)}`
|
|
1336
1347
|
}, null, 8, dt),
|
|
1337
1348
|
f("stop", {
|
|
1338
1349
|
offset: "38%",
|
|
1339
|
-
"stop-color": `${e.shiftHue(
|
|
1350
|
+
"stop-color": `${e.shiftHue(r.color, 0.02)}`
|
|
1340
1351
|
}, null, 8, ut),
|
|
1341
1352
|
f("stop", {
|
|
1342
1353
|
offset: "100%",
|
|
1343
|
-
"stop-color":
|
|
1354
|
+
"stop-color": r.color
|
|
1344
1355
|
}, null, 8, gt)
|
|
1345
1356
|
], 8, ct)
|
|
1346
1357
|
]))), 128)),
|
|
1347
|
-
(
|
|
1358
|
+
(a(!0), s(I, null, m(e.plotSet, (r, h) => (a(), s("defs", {
|
|
1348
1359
|
key: `def_plot_${h}`
|
|
1349
1360
|
}, [
|
|
1350
1361
|
f("radialGradient", {
|
|
@@ -1357,15 +1368,15 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1357
1368
|
}, [
|
|
1358
1369
|
f("stop", {
|
|
1359
1370
|
offset: "0%",
|
|
1360
|
-
"stop-color": `${e.shiftHue(
|
|
1371
|
+
"stop-color": `${e.shiftHue(r.color, 0.05)}`
|
|
1361
1372
|
}, null, 8, It),
|
|
1362
1373
|
f("stop", {
|
|
1363
1374
|
offset: "100%",
|
|
1364
|
-
"stop-color":
|
|
1375
|
+
"stop-color": r.color
|
|
1365
1376
|
}, null, 8, Nt)
|
|
1366
1377
|
], 8, ft)
|
|
1367
1378
|
]))), 128)),
|
|
1368
|
-
(
|
|
1379
|
+
(a(!0), s(I, null, m(e.lineSet, (r, h) => (a(), s("defs", {
|
|
1369
1380
|
key: `def_line_${h}`
|
|
1370
1381
|
}, [
|
|
1371
1382
|
f("radialGradient", {
|
|
@@ -1378,12 +1389,12 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1378
1389
|
}, [
|
|
1379
1390
|
f("stop", {
|
|
1380
1391
|
offset: "0%",
|
|
1381
|
-
"stop-color": `${e.shiftHue(
|
|
1392
|
+
"stop-color": `${e.shiftHue(r.color, 0.05)}`
|
|
1382
1393
|
}, null, 8, xt),
|
|
1383
1394
|
f("stop", {
|
|
1384
1395
|
offset: "100%",
|
|
1385
|
-
"stop-color":
|
|
1386
|
-
}, null, 8,
|
|
1396
|
+
"stop-color": r.color
|
|
1397
|
+
}, null, 8, bt)
|
|
1387
1398
|
], 8, mt),
|
|
1388
1399
|
f("linearGradient", {
|
|
1389
1400
|
id: `areaGradient_${h}_${t.uniqueId}`,
|
|
@@ -1394,46 +1405,46 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1394
1405
|
}, [
|
|
1395
1406
|
f("stop", {
|
|
1396
1407
|
offset: "0%",
|
|
1397
|
-
"stop-color": `${e.setOpacity(e.shiftHue(
|
|
1408
|
+
"stop-color": `${e.setOpacity(e.shiftHue(r.color, 0.03), e.FINAL_CONFIG.line.area.opacity)}`
|
|
1398
1409
|
}, null, 8, _t),
|
|
1399
1410
|
f("stop", {
|
|
1400
1411
|
offset: "100%",
|
|
1401
|
-
"stop-color": `${e.setOpacity(
|
|
1412
|
+
"stop-color": `${e.setOpacity(r.color, e.FINAL_CONFIG.line.area.opacity)}`
|
|
1402
1413
|
}, null, 8, At)
|
|
1403
|
-
], 8,
|
|
1414
|
+
], 8, Ft)
|
|
1404
1415
|
]))), 128)),
|
|
1405
|
-
(
|
|
1406
|
-
|
|
1416
|
+
(a(!0), s(I, null, m(e.highlightAreas, (r) => (a(), s("g", null, [
|
|
1417
|
+
r.show ? (a(!0), s(I, { key: 0 }, m(r.span, (h, n) => (a(), s("g", null, [
|
|
1407
1418
|
f("rect", {
|
|
1408
1419
|
style: L({
|
|
1409
1420
|
transition: "none",
|
|
1410
|
-
opacity:
|
|
1421
|
+
opacity: r.from + n >= t.slicer.start && r.from + n <= t.slicer.end - 1 ? 1 : 0
|
|
1411
1422
|
}),
|
|
1412
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (
|
|
1423
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (r.from + n - t.slicer.start),
|
|
1413
1424
|
y: e.drawingArea.top,
|
|
1414
1425
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1415
1426
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1416
|
-
fill: e.setOpacity(
|
|
1427
|
+
fill: e.setOpacity(r.color, r.opacity)
|
|
1417
1428
|
}, null, 12, yt),
|
|
1418
|
-
|
|
1429
|
+
r.caption.text && n === 0 ? (a(), s("foreignObject", {
|
|
1419
1430
|
key: 0,
|
|
1420
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (
|
|
1421
|
-
y: e.drawingArea.top +
|
|
1431
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (r.from + n - t.slicer.start) - (r.caption.width === "auto" ? 0 : r.caption.width / 2 - e.drawingArea.width / e.maxSeries * r.span / 2),
|
|
1432
|
+
y: e.drawingArea.top + r.caption.offsetY,
|
|
1422
1433
|
style: L({
|
|
1423
1434
|
overflow: "visible",
|
|
1424
|
-
opacity:
|
|
1435
|
+
opacity: r.to >= t.slicer.start && r.from < t.slicer.end ? 1 : 0
|
|
1425
1436
|
}),
|
|
1426
1437
|
height: "1",
|
|
1427
|
-
width:
|
|
1438
|
+
width: r.caption.width === "auto" ? e.drawingArea.width / e.maxSeries * r.span : r.caption.width
|
|
1428
1439
|
}, [
|
|
1429
1440
|
f("div", {
|
|
1430
|
-
style: L(`padding:${
|
|
1431
|
-
}, S(
|
|
1441
|
+
style: L(`padding:${r.caption.padding}px;text-align:${r.caption.textAlign};font-size:${r.caption.fontSize}px;color:${r.caption.color};font-weight:${r.caption.bold ? "bold" : "normal"}`)
|
|
1442
|
+
}, S(r.caption.text), 5)
|
|
1432
1443
|
], 12, Lt)) : c("", !0)
|
|
1433
1444
|
]))), 256)) : c("", !0)
|
|
1434
1445
|
]))), 256)),
|
|
1435
1446
|
f("g", null, [
|
|
1436
|
-
(
|
|
1447
|
+
(a(!0), s(I, null, m(e.maxSeries, (r, h) => (a(), s("g", {
|
|
1437
1448
|
key: `tooltip_trap_highlighter_${h}`
|
|
1438
1449
|
}, [
|
|
1439
1450
|
f("rect", {
|
|
@@ -1445,26 +1456,26 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1445
1456
|
}, null, 8, Ct)
|
|
1446
1457
|
]))), 128))
|
|
1447
1458
|
]),
|
|
1448
|
-
e.barSet.length ? (
|
|
1459
|
+
e.barSet.length ? (a(!0), s(I, { key: 0 }, m(e.barSet, (r, h) => (a(), s("g", {
|
|
1449
1460
|
key: `serie_bar_${h}`,
|
|
1450
1461
|
class: V(`serie_bar_${h}`),
|
|
1451
|
-
style: L(`opacity:${t.selectedScale ? t.selectedScale ===
|
|
1462
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1452
1463
|
}, [
|
|
1453
|
-
(
|
|
1464
|
+
(a(!0), s(I, null, m(r.plots, (n, d) => (a(), s("g", {
|
|
1454
1465
|
key: `bar_plot_${h}_${d}`
|
|
1455
1466
|
}, [
|
|
1456
|
-
e.canShowValue(n.value) ? (
|
|
1467
|
+
e.canShowValue(n.value) ? (a(), s("rect", {
|
|
1457
1468
|
key: 0,
|
|
1458
1469
|
x: e.calcRectX(n),
|
|
1459
1470
|
y: t.mutableConfig.useIndividualScale ? e.calcIndividualRectY(n) : e.calcRectY(n),
|
|
1460
1471
|
height: t.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(n)) : Math.abs(e.calcRectHeight(n)),
|
|
1461
1472
|
width: e.calcRectWidth() - (t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? 0 : e.barPeriodGap) < 0 ? 1e-5 : e.calcRectWidth() - (t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? 0 : e.barPeriodGap),
|
|
1462
1473
|
rx: e.FINAL_CONFIG.bar.borderRadius,
|
|
1463
|
-
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${h}_${t.uniqueId})` : `url(#rectGradient_neg_${h}_${t.uniqueId})` :
|
|
1464
|
-
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ?
|
|
1474
|
+
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${h}_${t.uniqueId})` : `url(#rectGradient_neg_${h}_${t.uniqueId})` : r.color,
|
|
1475
|
+
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? r.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1465
1476
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1466
1477
|
}, null, 8, St)) : c("", !0),
|
|
1467
|
-
n.comment && e.FINAL_CONFIG.chart.comments.show ? (
|
|
1478
|
+
n.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), s("foreignObject", {
|
|
1468
1479
|
key: 1,
|
|
1469
1480
|
style: { overflow: "visible" },
|
|
1470
1481
|
height: "12",
|
|
@@ -1472,12 +1483,12 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1472
1483
|
x: e.calcRectX(n) - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1473
1484
|
y: e.checkNaN(n.y) + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1474
1485
|
}, [
|
|
1475
|
-
w(
|
|
1476
|
-
plot: { ...n, color:
|
|
1486
|
+
w(i.$slots, "plot-comment", {
|
|
1487
|
+
plot: { ...n, color: r.color, seriesIndex: h, datapointIndex: d }
|
|
1477
1488
|
}, void 0, !0)
|
|
1478
1489
|
], 8, kt)) : c("", !0)
|
|
1479
1490
|
]))), 128)),
|
|
1480
|
-
Object.hasOwn(
|
|
1491
|
+
Object.hasOwn(r, "useProgression") && r.useProgression === !0 && !isNaN(e.calcLinearProgression(r.plots).trend) ? (a(), s("g", wt, [
|
|
1481
1492
|
f("defs", null, [
|
|
1482
1493
|
f("marker", {
|
|
1483
1494
|
id: `bar_arrow_${h}`,
|
|
@@ -1489,36 +1500,36 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1489
1500
|
}, [
|
|
1490
1501
|
f("polygon", {
|
|
1491
1502
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1492
|
-
fill:
|
|
1503
|
+
fill: r.color
|
|
1493
1504
|
}, null, 8, Gt)
|
|
1494
1505
|
], 8, Ot)
|
|
1495
1506
|
]),
|
|
1496
|
-
|
|
1507
|
+
r.plots.length > 1 ? (a(), s("line", {
|
|
1497
1508
|
key: 0,
|
|
1498
|
-
x1: e.calcLinearProgression(
|
|
1499
|
-
x2: e.calcLinearProgression(
|
|
1500
|
-
y1: e.calcLinearProgression(
|
|
1501
|
-
y2: e.calcLinearProgression(
|
|
1509
|
+
x1: e.calcLinearProgression(r.plots).x1,
|
|
1510
|
+
x2: e.calcLinearProgression(r.plots).x2,
|
|
1511
|
+
y1: e.calcLinearProgression(r.plots).y1,
|
|
1512
|
+
y2: e.calcLinearProgression(r.plots).y2,
|
|
1502
1513
|
"stroke-width": 1,
|
|
1503
|
-
stroke:
|
|
1514
|
+
stroke: r.color,
|
|
1504
1515
|
"stroke-dasharray": 2,
|
|
1505
1516
|
"marker-end": `url(#bar_arrow_${h})`
|
|
1506
1517
|
}, null, 8, vt)) : c("", !0),
|
|
1507
|
-
|
|
1518
|
+
r.plots.length > 1 ? (a(), s("text", {
|
|
1508
1519
|
key: 1,
|
|
1509
1520
|
"text-anchor": "middle",
|
|
1510
|
-
x: e.calcLinearProgression(
|
|
1511
|
-
y: e.calcLinearProgression(
|
|
1521
|
+
x: e.calcLinearProgression(r.plots).x2,
|
|
1522
|
+
y: e.calcLinearProgression(r.plots).y2 - 6,
|
|
1512
1523
|
"font-size": t.fontSizes.plotLabels,
|
|
1513
|
-
fill:
|
|
1524
|
+
fill: r.color
|
|
1514
1525
|
}, S(e.dataLabel({
|
|
1515
|
-
v: e.calcLinearProgression(
|
|
1526
|
+
v: e.calcLinearProgression(r.plots).trend * 100,
|
|
1516
1527
|
s: "%",
|
|
1517
1528
|
r: 2
|
|
1518
1529
|
})), 9, pt)) : c("", !0)
|
|
1519
1530
|
])) : c("", !0)
|
|
1520
1531
|
], 6))), 128)) : c("", !0),
|
|
1521
|
-
!t.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (
|
|
1532
|
+
!t.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (a(), s("line", {
|
|
1522
1533
|
key: 1,
|
|
1523
1534
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1524
1535
|
"stroke-width": "1",
|
|
@@ -1528,7 +1539,7 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1528
1539
|
y2: e.checkNaN(e.zero),
|
|
1529
1540
|
"stroke-linecap": "round"
|
|
1530
1541
|
}, null, 8, zt)) : c("", !0),
|
|
1531
|
-
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(t.selectedSerieIndex) || ![null, void 0].includes(t.selectedMinimapIndex)) ? (
|
|
1542
|
+
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(t.selectedSerieIndex) || ![null, void 0].includes(t.selectedMinimapIndex)) ? (a(), s("g", Mt, [
|
|
1532
1543
|
f("line", {
|
|
1533
1544
|
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((t.selectedSerieIndex !== null ? t.selectedSerieIndex : 0) || (t.selectedMinimapIndex !== null ? t.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
|
|
1534
1545
|
x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((t.selectedSerieIndex !== null ? t.selectedSerieIndex : 0) || (t.selectedMinimapIndex !== null ? t.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
|
|
@@ -1541,7 +1552,7 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1541
1552
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
1542
1553
|
}, null, 8, Tt)
|
|
1543
1554
|
])) : c("", !0),
|
|
1544
|
-
e.FINAL_CONFIG.chart.grid.frame.show ? (
|
|
1555
|
+
e.FINAL_CONFIG.chart.grid.frame.show ? (a(), s("rect", {
|
|
1545
1556
|
key: 3,
|
|
1546
1557
|
style: { pointerEvents: "none", transition: "none" },
|
|
1547
1558
|
x: e.drawingArea.left + e.xPadding < 0 ? 0 : e.drawingArea.left + e.xPadding,
|
|
@@ -1555,44 +1566,44 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1555
1566
|
"stroke-linejoin": e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,
|
|
1556
1567
|
"stroke-dasharray": e.FINAL_CONFIG.chart.grid.frame.strokeDasharray
|
|
1557
1568
|
}, null, 8, Pt)) : c("", !0),
|
|
1558
|
-
e.FINAL_CONFIG.chart.grid.labels.show ? (
|
|
1559
|
-
t.mutableConfig.useIndividualScale ? (
|
|
1560
|
-
(
|
|
1569
|
+
e.FINAL_CONFIG.chart.grid.labels.show ? (a(), s("g", Vt, [
|
|
1570
|
+
t.mutableConfig.useIndividualScale ? (a(), s(I, { key: 0 }, [
|
|
1571
|
+
(a(!0), s(I, null, m(e.allScales, (r) => (a(), s("g", null, [
|
|
1561
1572
|
f("line", {
|
|
1562
|
-
x1:
|
|
1563
|
-
x2:
|
|
1564
|
-
y1: t.mutableConfig.isStacked ? e.checkNaN(e.drawingArea.bottom -
|
|
1565
|
-
y2: t.mutableConfig.isStacked ? e.checkNaN(e.drawingArea.bottom -
|
|
1566
|
-
stroke:
|
|
1573
|
+
x1: r.x + e.xPadding,
|
|
1574
|
+
x2: r.x + e.xPadding,
|
|
1575
|
+
y1: t.mutableConfig.isStacked ? e.checkNaN(e.drawingArea.bottom - r.yOffset - r.individualHeight) : e.checkNaN(e.drawingArea.top),
|
|
1576
|
+
y2: t.mutableConfig.isStacked ? e.checkNaN(e.drawingArea.bottom - r.yOffset) : e.checkNaN(e.drawingArea.bottom),
|
|
1577
|
+
stroke: r.color,
|
|
1567
1578
|
"stroke-width": e.FINAL_CONFIG.chart.grid.stroke,
|
|
1568
1579
|
"stroke-linecap": "round",
|
|
1569
|
-
style: L(`opacity:${t.selectedScale ? t.selectedScale ===
|
|
1580
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1570
1581
|
}, null, 12, Rt)
|
|
1571
1582
|
]))), 256)),
|
|
1572
|
-
(
|
|
1573
|
-
style: L(`opacity:${t.selectedScale ? t.selectedScale ===
|
|
1583
|
+
(a(!0), s(I, null, m(e.allScales, (r) => (a(), s("g", {
|
|
1584
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1574
1585
|
}, [
|
|
1575
1586
|
f("text", {
|
|
1576
|
-
fill:
|
|
1587
|
+
fill: r.color,
|
|
1577
1588
|
"font-size": t.fontSizes.dataLabels,
|
|
1578
1589
|
"text-anchor": "middle",
|
|
1579
|
-
transform: `translate(${
|
|
1580
|
-
}, S(
|
|
1581
|
-
(
|
|
1582
|
-
x1:
|
|
1583
|
-
x2:
|
|
1590
|
+
transform: `translate(${r.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + 5}, ${t.mutableConfig.isStacked ? e.drawingArea.bottom - r.yOffset - r.individualHeight / 2 : e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`
|
|
1591
|
+
}, S(r.name) + " " + S(r.scaleLabel ? `- ${r.scaleLabel}` : ""), 9, Dt),
|
|
1592
|
+
(a(!0), s(I, null, m(r.yLabels, (h, n) => (a(), s("line", {
|
|
1593
|
+
x1: r.x - 3 + e.xPadding,
|
|
1594
|
+
x2: r.x + e.xPadding,
|
|
1584
1595
|
y1: e.checkNaN(h.y),
|
|
1585
1596
|
y2: e.checkNaN(h.y),
|
|
1586
|
-
stroke:
|
|
1597
|
+
stroke: r.color,
|
|
1587
1598
|
"stroke-width": 1,
|
|
1588
1599
|
"stroke-linecap": "round"
|
|
1589
1600
|
}, null, 8, Bt))), 256)),
|
|
1590
|
-
(
|
|
1591
|
-
x:
|
|
1601
|
+
(a(!0), s(I, null, m(r.yLabels, (h, n) => (a(), s("text", {
|
|
1602
|
+
x: r.x - 5 + e.xPadding,
|
|
1592
1603
|
y: e.checkNaN(h.y) + t.fontSizes.dataLabels / 3,
|
|
1593
1604
|
"font-size": t.fontSizes.dataLabels,
|
|
1594
1605
|
"text-anchor": "end",
|
|
1595
|
-
fill:
|
|
1606
|
+
fill: r.color
|
|
1596
1607
|
}, S(e.applyDataLabel(
|
|
1597
1608
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1598
1609
|
h.value,
|
|
@@ -1603,58 +1614,58 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1603
1614
|
r: 1
|
|
1604
1615
|
}),
|
|
1605
1616
|
{ datapoint: h.datapoint, seriesIndex: n }
|
|
1606
|
-
)), 9,
|
|
1617
|
+
)), 9, Ht))), 256))
|
|
1607
1618
|
], 4))), 256))
|
|
1608
|
-
], 64)) : (
|
|
1619
|
+
], 64)) : (a(!0), s(I, { key: 1 }, m(e.yLabels, (r, h) => (a(), s("g", {
|
|
1609
1620
|
key: `yLabel_${h}`
|
|
1610
1621
|
}, [
|
|
1611
|
-
e.canShowValue(
|
|
1622
|
+
e.canShowValue(r) && r.value >= e.niceScale.min && r.value <= e.niceScale.max ? (a(), s("line", {
|
|
1612
1623
|
key: 0,
|
|
1613
1624
|
x1: e.drawingArea.left + e.xPadding,
|
|
1614
1625
|
x2: e.drawingArea.left - 5 + e.xPadding,
|
|
1615
|
-
y1: e.checkNaN(
|
|
1616
|
-
y2: e.checkNaN(
|
|
1626
|
+
y1: e.checkNaN(r.y),
|
|
1627
|
+
y2: e.checkNaN(r.y),
|
|
1617
1628
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1618
1629
|
"stroke-width": "1",
|
|
1619
1630
|
"stroke-linecap": "round"
|
|
1620
|
-
}, null, 8,
|
|
1621
|
-
|
|
1631
|
+
}, null, 8, Et)) : c("", !0),
|
|
1632
|
+
r.value >= e.niceScale.min && r.value <= e.niceScale.max ? (a(), s("text", {
|
|
1622
1633
|
key: 1,
|
|
1623
1634
|
x: e.drawingArea.left - 7 + e.xPadding,
|
|
1624
|
-
y: e.checkNaN(
|
|
1635
|
+
y: e.checkNaN(r.y + t.fontSizes.dataLabels / 3),
|
|
1625
1636
|
"font-size": t.fontSizes.dataLabels,
|
|
1626
1637
|
"text-anchor": "end",
|
|
1627
1638
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
1628
|
-
}, S(e.canShowValue(
|
|
1639
|
+
}, S(e.canShowValue(r.value) ? e.applyDataLabel(
|
|
1629
1640
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1630
|
-
|
|
1641
|
+
r.value,
|
|
1631
1642
|
e.dataLabel({
|
|
1632
|
-
p:
|
|
1633
|
-
v:
|
|
1634
|
-
s:
|
|
1643
|
+
p: r.prefix,
|
|
1644
|
+
v: r.value,
|
|
1645
|
+
s: r.suffix,
|
|
1635
1646
|
r: 1
|
|
1636
1647
|
})
|
|
1637
1648
|
) : ""), 9, Wt)) : c("", !0)
|
|
1638
1649
|
]))), 128))
|
|
1639
1650
|
])) : c("", !0),
|
|
1640
|
-
(
|
|
1651
|
+
(a(!0), s(I, null, m(e.plotSet, (r, h) => (a(), s("g", {
|
|
1641
1652
|
key: `serie_plot_${h}`,
|
|
1642
1653
|
class: V(`serie_plot_${h}`),
|
|
1643
|
-
style: L(`opacity:${t.selectedScale ? t.selectedScale ===
|
|
1654
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1644
1655
|
}, [
|
|
1645
|
-
(
|
|
1656
|
+
(a(!0), s(I, null, m(r.plots, (n, d) => (a(), s("g", {
|
|
1646
1657
|
key: `circle_plot_${h}_${d}`
|
|
1647
1658
|
}, [
|
|
1648
|
-
n && e.canShowValue(n.value) ? (
|
|
1659
|
+
n && e.canShowValue(n.value) ? (a(), D(b, {
|
|
1649
1660
|
key: 0,
|
|
1650
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
1651
|
-
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${h}_${t.uniqueId})` : e.FINAL_CONFIG.plot.dot.useSerieColor ?
|
|
1661
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(r.shape) ? r.shape : "circle",
|
|
1662
|
+
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${h}_${t.uniqueId})` : e.FINAL_CONFIG.plot.dot.useSerieColor ? r.color : e.FINAL_CONFIG.plot.dot.fill,
|
|
1652
1663
|
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
1653
1664
|
radius: t.selectedSerieIndex !== null && t.selectedSerieIndex === d || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === d ? (t.plotRadii.plot || 6) * 1.5 : t.plotRadii.plot || 6,
|
|
1654
|
-
stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor :
|
|
1665
|
+
stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : r.color,
|
|
1655
1666
|
strokeWidth: e.FINAL_CONFIG.plot.dot.strokeWidth
|
|
1656
1667
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : c("", !0),
|
|
1657
|
-
n.comment && e.FINAL_CONFIG.chart.comments.show ? (
|
|
1668
|
+
n.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), s("foreignObject", {
|
|
1658
1669
|
key: 1,
|
|
1659
1670
|
style: { overflow: "visible" },
|
|
1660
1671
|
height: "12",
|
|
@@ -1663,13 +1674,13 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1663
1674
|
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1664
1675
|
}, [
|
|
1665
1676
|
f("div", Xt, [
|
|
1666
|
-
w(
|
|
1667
|
-
plot: { ...n, color:
|
|
1677
|
+
w(i.$slots, "plot-comment", {
|
|
1678
|
+
plot: { ...n, color: r.color, seriesIndex: h, datapointIndex: d }
|
|
1668
1679
|
}, void 0, !0)
|
|
1669
1680
|
])
|
|
1670
1681
|
], 8, Yt)) : c("", !0)
|
|
1671
1682
|
]))), 128)),
|
|
1672
|
-
Object.hasOwn(
|
|
1683
|
+
Object.hasOwn(r, "useProgression") && r.useProgression === !0 && !isNaN(e.calcLinearProgression(r.plots).trend) ? (a(), s("g", qt, [
|
|
1673
1684
|
f("defs", null, [
|
|
1674
1685
|
f("marker", {
|
|
1675
1686
|
id: `plot_arrow_${h}`,
|
|
@@ -1681,120 +1692,120 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1681
1692
|
}, [
|
|
1682
1693
|
f("polygon", {
|
|
1683
1694
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1684
|
-
fill:
|
|
1695
|
+
fill: r.color
|
|
1685
1696
|
}, null, 8, Zt)
|
|
1686
1697
|
], 8, Ut)
|
|
1687
1698
|
]),
|
|
1688
|
-
|
|
1699
|
+
r.plots.length > 1 ? (a(), s("line", {
|
|
1689
1700
|
key: 0,
|
|
1690
|
-
x1: e.calcLinearProgression(
|
|
1691
|
-
x2: e.calcLinearProgression(
|
|
1692
|
-
y1: e.calcLinearProgression(
|
|
1693
|
-
y2: e.calcLinearProgression(
|
|
1701
|
+
x1: e.calcLinearProgression(r.plots).x1,
|
|
1702
|
+
x2: e.calcLinearProgression(r.plots).x2,
|
|
1703
|
+
y1: e.calcLinearProgression(r.plots).y1,
|
|
1704
|
+
y2: e.calcLinearProgression(r.plots).y2,
|
|
1694
1705
|
"stroke-width": 1,
|
|
1695
|
-
stroke:
|
|
1706
|
+
stroke: r.color,
|
|
1696
1707
|
"stroke-dasharray": 2,
|
|
1697
1708
|
"marker-end": `url(#plot_arrow_${h})`
|
|
1698
1709
|
}, null, 8, Jt)) : c("", !0),
|
|
1699
|
-
|
|
1710
|
+
r.plots.length > 1 ? (a(), s("text", {
|
|
1700
1711
|
key: 1,
|
|
1701
1712
|
"text-anchor": "middle",
|
|
1702
|
-
x: e.calcLinearProgression(
|
|
1703
|
-
y: e.calcLinearProgression(
|
|
1713
|
+
x: e.calcLinearProgression(r.plots).x2,
|
|
1714
|
+
y: e.calcLinearProgression(r.plots).y2 - 6,
|
|
1704
1715
|
"font-size": t.fontSizes.plotLabels,
|
|
1705
|
-
fill:
|
|
1716
|
+
fill: r.color
|
|
1706
1717
|
}, S(e.dataLabel({
|
|
1707
|
-
v: e.calcLinearProgression(
|
|
1718
|
+
v: e.calcLinearProgression(r.plots).trend * 100,
|
|
1708
1719
|
s: "%",
|
|
1709
1720
|
r: 2
|
|
1710
1721
|
})), 9, Kt)) : c("", !0)
|
|
1711
1722
|
])) : c("", !0)
|
|
1712
1723
|
], 6))), 128)),
|
|
1713
|
-
(
|
|
1724
|
+
(a(!0), s(I, null, m(e.lineSet, (r, h) => (a(), s("g", {
|
|
1714
1725
|
key: `serie_line_${h}`,
|
|
1715
1726
|
class: V(`serie_line_${h}`),
|
|
1716
|
-
style: L(`opacity:${t.selectedScale ? t.selectedScale ===
|
|
1727
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1717
1728
|
}, [
|
|
1718
|
-
|
|
1729
|
+
r.smooth && r.plots.length > 1 ? (a(), s("path", {
|
|
1719
1730
|
key: 0,
|
|
1720
|
-
d: `M${
|
|
1731
|
+
d: `M${r.curve}`,
|
|
1721
1732
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1722
1733
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1723
|
-
"stroke-dasharray":
|
|
1734
|
+
"stroke-dasharray": r.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1724
1735
|
fill: "none"
|
|
1725
|
-
}, null, 8, Qt)) :
|
|
1726
|
-
(
|
|
1736
|
+
}, null, 8, Qt)) : r.plots.length > 1 ? (a(), s("g", jt, [
|
|
1737
|
+
(a(!0), s(I, null, m(r.plots, (n, d) => (a(), s("g", {
|
|
1727
1738
|
key: `line_${h}_${d}`
|
|
1728
1739
|
}, [
|
|
1729
|
-
n && d <
|
|
1740
|
+
n && d < r.plots.length - 1 && r.plots[d + 1] && e.canShowValue(n.value) && e.canShowValue(r.plots[d + 1].value) ? (a(), s("line", {
|
|
1730
1741
|
key: 0,
|
|
1731
1742
|
x1: n.x,
|
|
1732
|
-
x2:
|
|
1743
|
+
x2: r.plots[d + 1].x,
|
|
1733
1744
|
y1: n.y,
|
|
1734
|
-
y2:
|
|
1745
|
+
y2: r.plots[d + 1].y,
|
|
1735
1746
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1736
1747
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1737
|
-
"stroke-dasharray":
|
|
1748
|
+
"stroke-dasharray": r.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1738
1749
|
"stroke-linejoin": "round",
|
|
1739
1750
|
"stroke-linecap": "round"
|
|
1740
1751
|
}, null, 8, $t)) : c("", !0)
|
|
1741
1752
|
]))), 128))
|
|
1742
1753
|
])) : c("", !0)
|
|
1743
1754
|
], 6))), 128)),
|
|
1744
|
-
(
|
|
1755
|
+
(a(!0), s(I, null, m(e.lineSet, (r, h) => (a(), s("g", {
|
|
1745
1756
|
key: `serie_line_${h}`,
|
|
1746
1757
|
class: V(`serie_line_${h}`),
|
|
1747
|
-
style: L(`opacity:${t.selectedScale ? t.selectedScale ===
|
|
1758
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1748
1759
|
}, [
|
|
1749
|
-
|
|
1750
|
-
|
|
1760
|
+
r.useArea && r.plots.length > 1 ? (a(), s("g", ei, [
|
|
1761
|
+
r.smooth ? (a(), s("path", {
|
|
1751
1762
|
key: 0,
|
|
1752
|
-
d: `M ${
|
|
1753
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${h}_${t.uniqueId})` : e.setOpacity(
|
|
1754
|
-
}, null, 8,
|
|
1763
|
+
d: `M ${r.plots[0] ? r.plots[0].x : Math.min(...r.plots.filter((n) => !!n).map((n) => n.x))},${t.mutableConfig.isStacked ? e.drawingArea.bottom - r.yOffset : e.drawingArea.bottom} ${r.curve} L ${r.plots.at(-1) ? r.plots.at(-1).x : e.drawingArea.left + e.slot.line * h + e.slot.line / 2},${t.mutableConfig.isStacked ? e.drawingArea.bottom - r.yOffset : e.drawingArea.bottom} Z`,
|
|
1764
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${h}_${t.uniqueId})` : e.setOpacity(r.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1765
|
+
}, null, 8, ti)) : (a(), s("path", {
|
|
1755
1766
|
key: 1,
|
|
1756
|
-
d: `M${
|
|
1757
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${h}_${t.uniqueId})` : e.setOpacity(
|
|
1758
|
-
}, null, 8,
|
|
1767
|
+
d: `M${r.area}Z`,
|
|
1768
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${h}_${t.uniqueId})` : e.setOpacity(r.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1769
|
+
}, null, 8, ii))
|
|
1759
1770
|
])) : c("", !0),
|
|
1760
|
-
|
|
1771
|
+
r.smooth && r.plots.length > 1 ? (a(), s("path", {
|
|
1761
1772
|
key: 1,
|
|
1762
|
-
d: `M${
|
|
1763
|
-
stroke:
|
|
1773
|
+
d: `M${r.curve}`,
|
|
1774
|
+
stroke: r.color,
|
|
1764
1775
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth,
|
|
1765
|
-
"stroke-dasharray":
|
|
1776
|
+
"stroke-dasharray": r.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1766
1777
|
fill: "none"
|
|
1767
|
-
}, null, 8,
|
|
1768
|
-
(
|
|
1778
|
+
}, null, 8, ri)) : r.plots.length > 1 ? (a(), s("g", ai, [
|
|
1779
|
+
(a(!0), s(I, null, m(r.plots, (n, d) => (a(), s("g", {
|
|
1769
1780
|
key: `line_${h}_${d}`
|
|
1770
1781
|
}, [
|
|
1771
|
-
n && d <
|
|
1782
|
+
n && d < r.plots.length - 1 && r.plots[d + 1] && e.canShowValue(n.value) && e.canShowValue(r.plots[d + 1].value) ? (a(), s("line", {
|
|
1772
1783
|
key: 0,
|
|
1773
1784
|
x1: n.x,
|
|
1774
|
-
x2:
|
|
1785
|
+
x2: r.plots[d + 1].x,
|
|
1775
1786
|
y1: n.y,
|
|
1776
|
-
y2:
|
|
1777
|
-
stroke:
|
|
1787
|
+
y2: r.plots[d + 1].y,
|
|
1788
|
+
stroke: r.color,
|
|
1778
1789
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth,
|
|
1779
|
-
"stroke-dasharray":
|
|
1790
|
+
"stroke-dasharray": r.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1780
1791
|
"stroke-linejoin": "round",
|
|
1781
1792
|
"stroke-linecap": "round"
|
|
1782
|
-
}, null, 8,
|
|
1793
|
+
}, null, 8, li)) : c("", !0)
|
|
1783
1794
|
]))), 128))
|
|
1784
1795
|
])) : c("", !0),
|
|
1785
|
-
(
|
|
1796
|
+
(a(!0), s(I, null, m(r.plots, (n, d) => (a(), s("g", {
|
|
1786
1797
|
key: `circle_line_${h}_${d}`
|
|
1787
1798
|
}, [
|
|
1788
|
-
n && e.canShowValue(n.value) ? (
|
|
1799
|
+
n && e.canShowValue(n.value) ? (a(), D(b, {
|
|
1789
1800
|
key: 0,
|
|
1790
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
1791
|
-
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${h}_${t.uniqueId})` : e.FINAL_CONFIG.line.dot.useSerieColor ?
|
|
1801
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(r.shape) ? r.shape : "circle",
|
|
1802
|
+
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${h}_${t.uniqueId})` : e.FINAL_CONFIG.line.dot.useSerieColor ? r.color : e.FINAL_CONFIG.line.dot.fill,
|
|
1792
1803
|
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
1793
1804
|
radius: t.selectedSerieIndex !== null && t.selectedSerieIndex === d || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === d ? (t.plotRadii.line || 6) * 1.5 : t.plotRadii.line || 6,
|
|
1794
|
-
stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor :
|
|
1805
|
+
stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : r.color,
|
|
1795
1806
|
strokeWidth: e.FINAL_CONFIG.line.dot.strokeWidth
|
|
1796
1807
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : c("", !0),
|
|
1797
|
-
n.comment && e.FINAL_CONFIG.chart.comments.show ? (
|
|
1808
|
+
n.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), s("foreignObject", {
|
|
1798
1809
|
key: 1,
|
|
1799
1810
|
style: { overflow: "visible" },
|
|
1800
1811
|
height: "12",
|
|
@@ -1802,14 +1813,14 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1802
1813
|
x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1803
1814
|
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1804
1815
|
}, [
|
|
1805
|
-
f("div",
|
|
1806
|
-
w(
|
|
1807
|
-
plot: { ...n, color:
|
|
1816
|
+
f("div", ni, [
|
|
1817
|
+
w(i.$slots, "plot-comment", {
|
|
1818
|
+
plot: { ...n, color: r.color, seriesIndex: h, datapointIndex: d }
|
|
1808
1819
|
}, void 0, !0)
|
|
1809
1820
|
])
|
|
1810
|
-
], 8,
|
|
1821
|
+
], 8, si)) : c("", !0)
|
|
1811
1822
|
]))), 128)),
|
|
1812
|
-
Object.hasOwn(
|
|
1823
|
+
Object.hasOwn(r, "useProgression") && r.useProgression === !0 && !isNaN(e.calcLinearProgression(r.plots).trend) ? (a(), s("g", hi, [
|
|
1813
1824
|
f("defs", null, [
|
|
1814
1825
|
f("marker", {
|
|
1815
1826
|
id: `line_arrow_${h}`,
|
|
@@ -1821,45 +1832,45 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1821
1832
|
}, [
|
|
1822
1833
|
f("polygon", {
|
|
1823
1834
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1824
|
-
fill:
|
|
1825
|
-
}, null, 8,
|
|
1826
|
-
], 8,
|
|
1835
|
+
fill: r.color
|
|
1836
|
+
}, null, 8, ci)
|
|
1837
|
+
], 8, oi)
|
|
1827
1838
|
]),
|
|
1828
|
-
|
|
1839
|
+
r.plots.length > 1 ? (a(), s("line", {
|
|
1829
1840
|
key: 0,
|
|
1830
|
-
x1: e.calcLinearProgression(
|
|
1831
|
-
x2: e.calcLinearProgression(
|
|
1832
|
-
y1: e.calcLinearProgression(
|
|
1833
|
-
y2: e.calcLinearProgression(
|
|
1841
|
+
x1: e.calcLinearProgression(r.plots).x1,
|
|
1842
|
+
x2: e.calcLinearProgression(r.plots).x2,
|
|
1843
|
+
y1: e.calcLinearProgression(r.plots).y1,
|
|
1844
|
+
y2: e.calcLinearProgression(r.plots).y2,
|
|
1834
1845
|
"stroke-width": 1,
|
|
1835
|
-
stroke:
|
|
1846
|
+
stroke: r.color,
|
|
1836
1847
|
"stroke-dasharray": 2,
|
|
1837
1848
|
"marker-end": `url(#line_arrow_${h})`
|
|
1838
|
-
}, null, 8,
|
|
1839
|
-
|
|
1849
|
+
}, null, 8, di)) : c("", !0),
|
|
1850
|
+
r.plots.length > 1 ? (a(), s("text", {
|
|
1840
1851
|
key: 1,
|
|
1841
1852
|
"text-anchor": "middle",
|
|
1842
|
-
x: e.calcLinearProgression(
|
|
1843
|
-
y: e.calcLinearProgression(
|
|
1853
|
+
x: e.calcLinearProgression(r.plots).x2,
|
|
1854
|
+
y: e.calcLinearProgression(r.plots).y2 - 6,
|
|
1844
1855
|
"font-size": t.fontSizes.plotLabels,
|
|
1845
|
-
fill:
|
|
1856
|
+
fill: r.color
|
|
1846
1857
|
}, S(e.dataLabel({
|
|
1847
|
-
v: e.calcLinearProgression(
|
|
1858
|
+
v: e.calcLinearProgression(r.plots).trend * 100,
|
|
1848
1859
|
s: "%",
|
|
1849
1860
|
r: 2
|
|
1850
|
-
})), 9,
|
|
1861
|
+
})), 9, ui)) : c("", !0)
|
|
1851
1862
|
])) : c("", !0)
|
|
1852
1863
|
], 6))), 128)),
|
|
1853
|
-
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && t.mutableConfig.dataLabels.show ? (
|
|
1854
|
-
(
|
|
1864
|
+
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && t.mutableConfig.dataLabels.show ? (a(), s("g", gi, [
|
|
1865
|
+
(a(!0), s(I, null, m(e.barSet, (r, h) => (a(), s("g", {
|
|
1855
1866
|
key: `xLabel_bar_${h}`,
|
|
1856
1867
|
class: V(`xLabel_bar_${h}`),
|
|
1857
|
-
style: L(`opacity:${t.selectedScale ? t.selectedScale ===
|
|
1868
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1858
1869
|
}, [
|
|
1859
|
-
(
|
|
1870
|
+
(a(!0), s(I, null, m(r.plots, (n, d) => (a(), s("g", {
|
|
1860
1871
|
key: `xLabel_bar_${h}_${d}`
|
|
1861
1872
|
}, [
|
|
1862
|
-
n && (!Object.hasOwn(
|
|
1873
|
+
n && (!Object.hasOwn(r, "dataLabels") || r.dataLabels === !0 || t.selectedSerieIndex !== null && t.selectedSerieIndex === d || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === d) && e.FINAL_CONFIG.bar.labels.show ? (a(), s("text", {
|
|
1863
1874
|
key: 0,
|
|
1864
1875
|
x: t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? n.x + e.slot.line / 2 : e.calcRectX(n) + e.calcRectWidth() / 2 - e.barPeriodGap / 2,
|
|
1865
1876
|
y: e.checkNaN(n.y) + (n.value >= 0 ? e.FINAL_CONFIG.bar.labels.offsetY : -e.FINAL_CONFIG.bar.labels.offsetY * 3),
|
|
@@ -1870,38 +1881,38 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1870
1881
|
e.FINAL_CONFIG.bar.labels.formatter,
|
|
1871
1882
|
n.value,
|
|
1872
1883
|
e.dataLabel({
|
|
1873
|
-
p:
|
|
1884
|
+
p: r.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
1874
1885
|
v: n.value,
|
|
1875
|
-
s:
|
|
1886
|
+
s: r.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
1876
1887
|
r: e.FINAL_CONFIG.bar.labels.rounding
|
|
1877
1888
|
}),
|
|
1878
1889
|
{
|
|
1879
1890
|
datapoint: n,
|
|
1880
|
-
serie:
|
|
1891
|
+
serie: r
|
|
1881
1892
|
}
|
|
1882
|
-
) : ""), 9,
|
|
1883
|
-
n && e.FINAL_CONFIG.bar.serieName.show ? (
|
|
1893
|
+
) : ""), 9, fi)) : c("", !0),
|
|
1894
|
+
n && e.FINAL_CONFIG.bar.serieName.show ? (a(), s("text", {
|
|
1884
1895
|
key: 1,
|
|
1885
1896
|
x: t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? n.x + e.slot.line / 2 : n.x + e.calcRectWidth() * 1.1,
|
|
1886
1897
|
y: n.y + (n.value > 0 ? e.FINAL_CONFIG.bar.serieName.offsetY : -e.FINAL_CONFIG.bar.serieName.offsetY * 3),
|
|
1887
1898
|
"text-anchor": "middle",
|
|
1888
1899
|
"font-size": t.fontSizes.plotLabels,
|
|
1889
|
-
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ?
|
|
1900
|
+
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? r.color : e.FINAL_CONFIG.bar.serieName.color,
|
|
1890
1901
|
"font-weight": e.FINAL_CONFIG.bar.serieName.bold ? "bold" : "normal"
|
|
1891
|
-
}, S(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source:
|
|
1902
|
+
}, S(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: r.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : r.name), 9, Ii)) : c("", !0)
|
|
1892
1903
|
]))), 128))
|
|
1893
1904
|
], 6))), 128))
|
|
1894
1905
|
])) : c("", !0),
|
|
1895
|
-
e.FINAL_CONFIG.plot.labels.show && t.mutableConfig.dataLabels.show ? (
|
|
1896
|
-
(
|
|
1906
|
+
e.FINAL_CONFIG.plot.labels.show && t.mutableConfig.dataLabels.show ? (a(), s("g", Ni, [
|
|
1907
|
+
(a(!0), s(I, null, m(e.plotSet, (r, h) => (a(), s("g", {
|
|
1897
1908
|
key: `xLabel_plot_${h}`,
|
|
1898
1909
|
class: V(`xLabel_plot_${h}`),
|
|
1899
|
-
style: L(`opacity:${t.selectedScale ? t.selectedScale ===
|
|
1910
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1900
1911
|
}, [
|
|
1901
|
-
(
|
|
1912
|
+
(a(!0), s(I, null, m(r.plots, (n, d) => (a(), s("g", {
|
|
1902
1913
|
key: `xLabel_plot_${h}_${d}`
|
|
1903
1914
|
}, [
|
|
1904
|
-
n && !Object.hasOwn(
|
|
1915
|
+
n && !Object.hasOwn(r, "dataLabels") || r.dataLabels === !0 || t.selectedSerieIndex !== null && t.selectedSerieIndex === d || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === d ? (a(), s("text", {
|
|
1905
1916
|
key: 0,
|
|
1906
1917
|
x: n.x,
|
|
1907
1918
|
y: n.y + e.FINAL_CONFIG.plot.labels.offsetY,
|
|
@@ -1912,17 +1923,17 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1912
1923
|
e.FINAL_CONFIG.plot.labels.formatter,
|
|
1913
1924
|
n.value,
|
|
1914
1925
|
e.dataLabel({
|
|
1915
|
-
p:
|
|
1926
|
+
p: r.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
1916
1927
|
v: n.value,
|
|
1917
|
-
s:
|
|
1928
|
+
s: r.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
1918
1929
|
r: e.FINAL_CONFIG.plot.labels.rounding
|
|
1919
1930
|
}),
|
|
1920
1931
|
{
|
|
1921
1932
|
datapoint: n,
|
|
1922
|
-
serie:
|
|
1933
|
+
serie: r
|
|
1923
1934
|
}
|
|
1924
|
-
) : ""), 9,
|
|
1925
|
-
n && d === 0 &&
|
|
1935
|
+
) : ""), 9, mi)) : c("", !0),
|
|
1936
|
+
n && d === 0 && r.useTag && r.useTag === "start" ? (a(), s("foreignObject", {
|
|
1926
1937
|
key: 1,
|
|
1927
1938
|
x: n.x,
|
|
1928
1939
|
y: n.y - 20,
|
|
@@ -1931,34 +1942,34 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1931
1942
|
style: { overflow: "visible" }
|
|
1932
1943
|
}, [
|
|
1933
1944
|
f("div", {
|
|
1934
|
-
style: L(`padding: 3px; background:${e.setOpacity(
|
|
1935
|
-
}, S(
|
|
1936
|
-
], 8,
|
|
1937
|
-
n && d ===
|
|
1945
|
+
style: L(`padding: 3px; background:${e.setOpacity(r.color, 80)};color:${e.adaptColorToBackground(r.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1946
|
+
}, S(r.name), 5)
|
|
1947
|
+
], 8, xi)) : c("", !0),
|
|
1948
|
+
n && d === r.plots.length - 1 && r.useTag && r.useTag === "end" ? (a(), s("foreignObject", {
|
|
1938
1949
|
key: 2,
|
|
1939
|
-
x: n.x -
|
|
1950
|
+
x: n.x - r.name.length * (t.fontSizes.plotLabels / 2),
|
|
1940
1951
|
y: n.y - 20,
|
|
1941
1952
|
height: 24,
|
|
1942
1953
|
width: "150",
|
|
1943
1954
|
style: { overflow: "visible" }
|
|
1944
1955
|
}, [
|
|
1945
1956
|
f("div", {
|
|
1946
|
-
style: L(`padding: 3px; background:${e.setOpacity(
|
|
1947
|
-
}, S(
|
|
1948
|
-
], 8,
|
|
1957
|
+
style: L(`padding: 3px; background:${e.setOpacity(r.color, 80)};color:${e.adaptColorToBackground(r.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1958
|
+
}, S(r.name), 5)
|
|
1959
|
+
], 8, bi)) : c("", !0)
|
|
1949
1960
|
]))), 128))
|
|
1950
1961
|
], 6))), 128))
|
|
1951
1962
|
])) : c("", !0),
|
|
1952
|
-
e.FINAL_CONFIG.line.labels.show && t.mutableConfig.dataLabels.show ? (
|
|
1953
|
-
(
|
|
1963
|
+
e.FINAL_CONFIG.line.labels.show && t.mutableConfig.dataLabels.show ? (a(), s("g", Fi, [
|
|
1964
|
+
(a(!0), s(I, null, m(e.lineSet, (r, h) => (a(), s("g", {
|
|
1954
1965
|
key: `xLabel_line_${h}`,
|
|
1955
1966
|
class: V(`xLabel_line_${h}`),
|
|
1956
|
-
style: L(`opacity:${t.selectedScale ? t.selectedScale ===
|
|
1967
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1957
1968
|
}, [
|
|
1958
|
-
(
|
|
1969
|
+
(a(!0), s(I, null, m(r.plots, (n, d) => (a(), s("g", {
|
|
1959
1970
|
key: `xLabel_line_${h}_${d}`
|
|
1960
1971
|
}, [
|
|
1961
|
-
n && !Object.hasOwn(
|
|
1972
|
+
n && !Object.hasOwn(r, "dataLabels") || r.dataLabels === !0 || t.selectedSerieIndex !== null && t.selectedSerieIndex === d || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === d ? (a(), s("text", {
|
|
1962
1973
|
key: 0,
|
|
1963
1974
|
x: n.x,
|
|
1964
1975
|
y: n.y + (n.value >= 0 ? e.FINAL_CONFIG.line.labels.offsetY : -e.FINAL_CONFIG.line.labels.offsetY * 3),
|
|
@@ -1969,17 +1980,17 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1969
1980
|
e.FINAL_CONFIG.line.labels.formatter,
|
|
1970
1981
|
n.value,
|
|
1971
1982
|
e.dataLabel({
|
|
1972
|
-
p:
|
|
1983
|
+
p: r.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
1973
1984
|
v: n.value,
|
|
1974
|
-
s:
|
|
1985
|
+
s: r.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
1975
1986
|
r: e.FINAL_CONFIG.line.labels.rounding
|
|
1976
1987
|
}),
|
|
1977
1988
|
{
|
|
1978
1989
|
datapoint: n,
|
|
1979
|
-
serie:
|
|
1990
|
+
serie: r
|
|
1980
1991
|
}
|
|
1981
|
-
) : ""), 9,
|
|
1982
|
-
n && d === 0 &&
|
|
1992
|
+
) : ""), 9, _i)) : c("", !0),
|
|
1993
|
+
n && d === 0 && r.useTag && r.useTag === "start" ? (a(), s("foreignObject", {
|
|
1983
1994
|
key: 1,
|
|
1984
1995
|
x: n.x,
|
|
1985
1996
|
y: n.y - 20,
|
|
@@ -1988,154 +1999,154 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1988
1999
|
style: { overflow: "visible" }
|
|
1989
2000
|
}, [
|
|
1990
2001
|
f("div", {
|
|
1991
|
-
style: L(`padding: 3px; background:${e.setOpacity(
|
|
1992
|
-
}, S(
|
|
1993
|
-
], 8,
|
|
1994
|
-
n && d ===
|
|
2002
|
+
style: L(`padding: 3px; background:${e.setOpacity(r.color, 80)};color:${e.adaptColorToBackground(r.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
2003
|
+
}, S(r.name), 5)
|
|
2004
|
+
], 8, Ai)) : c("", !0),
|
|
2005
|
+
n && d === r.plots.length - 1 && r.useTag && r.useTag === "end" ? (a(), s("foreignObject", {
|
|
1995
2006
|
key: 2,
|
|
1996
|
-
x: n.x -
|
|
2007
|
+
x: n.x - r.name.length * (t.fontSizes.plotLabels / 2),
|
|
1997
2008
|
y: n.y - 20,
|
|
1998
2009
|
height: 24,
|
|
1999
2010
|
width: "150",
|
|
2000
2011
|
style: { overflow: "visible" }
|
|
2001
2012
|
}, [
|
|
2002
2013
|
f("div", {
|
|
2003
|
-
style: L(`padding: 3px; background:${e.setOpacity(
|
|
2004
|
-
}, S(
|
|
2005
|
-
], 8,
|
|
2014
|
+
style: L(`padding: 3px; background:${e.setOpacity(r.color, 80)};color:${e.adaptColorToBackground(r.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
2015
|
+
}, S(r.name), 5)
|
|
2016
|
+
], 8, yi)) : c("", !0)
|
|
2006
2017
|
]))), 128))
|
|
2007
2018
|
], 6))), 128))
|
|
2008
2019
|
])) : c("", !0),
|
|
2009
|
-
(
|
|
2020
|
+
(a(!0), s(I, null, m(e.lineSet, (r, h) => (a(), s("g", {
|
|
2010
2021
|
key: `xLabel_line_${h}`,
|
|
2011
2022
|
class: V(`xLabel_line_${h}`),
|
|
2012
|
-
style: L(`opacity:${t.selectedScale ? t.selectedScale ===
|
|
2023
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2013
2024
|
}, [
|
|
2014
|
-
(
|
|
2025
|
+
(a(!0), s(I, null, m(r.plots, (n, d) => (a(), s("g", {
|
|
2015
2026
|
key: `xLabel_line_${h}_${d}`
|
|
2016
2027
|
}, [
|
|
2017
|
-
n && d === 0 &&
|
|
2028
|
+
n && d === 0 && r.showSerieName && r.showSerieName === "start" ? (a(), s("text", {
|
|
2018
2029
|
key: 0,
|
|
2019
2030
|
x: n.x - t.fontSizes.plotLabels,
|
|
2020
2031
|
y: n.y,
|
|
2021
2032
|
"font-size": t.fontSizes.plotLabels,
|
|
2022
2033
|
"text-anchor": "end",
|
|
2023
|
-
fill:
|
|
2034
|
+
fill: r.color,
|
|
2024
2035
|
innerHTML: e.createTSpans({
|
|
2025
|
-
content:
|
|
2036
|
+
content: r.name,
|
|
2026
2037
|
fontSize: t.fontSizes.plotLabels,
|
|
2027
|
-
fill:
|
|
2038
|
+
fill: r.color,
|
|
2028
2039
|
x: n.x - t.fontSizes.plotLabels,
|
|
2029
2040
|
y: n.y,
|
|
2030
2041
|
maxWords: 2
|
|
2031
2042
|
})
|
|
2032
|
-
}, null, 8,
|
|
2033
|
-
n && d ===
|
|
2043
|
+
}, null, 8, Li)) : c("", !0),
|
|
2044
|
+
n && d === r.plots.length - 1 && r.showSerieName && r.showSerieName === "end" ? (a(), s("text", {
|
|
2034
2045
|
key: 1,
|
|
2035
2046
|
x: n.x + t.fontSizes.plotLabels,
|
|
2036
2047
|
y: n.y,
|
|
2037
2048
|
"font-size": t.fontSizes.plotLabels,
|
|
2038
2049
|
"text-anchor": "start",
|
|
2039
|
-
fill:
|
|
2050
|
+
fill: r.color,
|
|
2040
2051
|
innerHTML: e.createTSpans({
|
|
2041
|
-
content:
|
|
2052
|
+
content: r.name,
|
|
2042
2053
|
fontSize: t.fontSizes.plotLabels,
|
|
2043
|
-
fill:
|
|
2054
|
+
fill: r.color,
|
|
2044
2055
|
x: n.x + t.fontSizes.plotLabels,
|
|
2045
2056
|
y: n.y,
|
|
2046
2057
|
maxWords: 2
|
|
2047
2058
|
})
|
|
2048
|
-
}, null, 8,
|
|
2059
|
+
}, null, 8, Ci)) : c("", !0)
|
|
2049
2060
|
]))), 128))
|
|
2050
2061
|
], 6))), 128)),
|
|
2051
|
-
(
|
|
2062
|
+
(a(!0), s(I, null, m(e.plotSet, (r, h) => (a(), s("g", {
|
|
2052
2063
|
key: `xLabel_plot_${h}`,
|
|
2053
2064
|
class: V(`xLabel_plot_${h}`),
|
|
2054
|
-
style: L(`opacity:${t.selectedScale ? t.selectedScale ===
|
|
2065
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2055
2066
|
}, [
|
|
2056
|
-
(
|
|
2067
|
+
(a(!0), s(I, null, m(r.plots, (n, d) => (a(), s("g", {
|
|
2057
2068
|
key: `xLabel_plot_${h}_${d}`
|
|
2058
2069
|
}, [
|
|
2059
|
-
n && d === 0 &&
|
|
2070
|
+
n && d === 0 && r.showSerieName && r.showSerieName === "start" ? (a(), s("text", {
|
|
2060
2071
|
key: 0,
|
|
2061
2072
|
x: n.x - t.fontSizes.plotLabels,
|
|
2062
2073
|
y: n.y,
|
|
2063
2074
|
"font-size": t.fontSizes.plotLabels,
|
|
2064
2075
|
"text-anchor": "end",
|
|
2065
|
-
fill:
|
|
2076
|
+
fill: r.color,
|
|
2066
2077
|
innerHTML: e.createTSpans({
|
|
2067
|
-
content:
|
|
2078
|
+
content: r.name,
|
|
2068
2079
|
fontSize: t.fontSizes.plotLabels,
|
|
2069
|
-
fill:
|
|
2080
|
+
fill: r.color,
|
|
2070
2081
|
x: n.x - t.fontSizes.plotLabels,
|
|
2071
2082
|
y: n.y,
|
|
2072
2083
|
maxWords: 2
|
|
2073
2084
|
})
|
|
2074
|
-
}, null, 8,
|
|
2075
|
-
n && d ===
|
|
2085
|
+
}, null, 8, Si)) : c("", !0),
|
|
2086
|
+
n && d === r.plots.length - 1 && r.showSerieName && r.showSerieName === "end" ? (a(), s("text", {
|
|
2076
2087
|
key: 1,
|
|
2077
2088
|
x: n.x + t.fontSizes.plotLabels,
|
|
2078
2089
|
y: n.y,
|
|
2079
2090
|
"font-size": t.fontSizes.plotLabels,
|
|
2080
2091
|
"text-anchor": "start",
|
|
2081
|
-
fill:
|
|
2092
|
+
fill: r.color,
|
|
2082
2093
|
innerHTML: e.createTSpans({
|
|
2083
|
-
content:
|
|
2094
|
+
content: r.name,
|
|
2084
2095
|
fontSize: t.fontSizes.plotLabels,
|
|
2085
|
-
fill:
|
|
2096
|
+
fill: r.color,
|
|
2086
2097
|
x: n.x + t.fontSizes.plotLabels,
|
|
2087
2098
|
y: n.y,
|
|
2088
2099
|
maxWords: 2
|
|
2089
2100
|
})
|
|
2090
|
-
}, null, 8,
|
|
2101
|
+
}, null, 8, ki)) : c("", !0)
|
|
2091
2102
|
]))), 128))
|
|
2092
2103
|
], 6))), 128)),
|
|
2093
|
-
t.mutableConfig.useIndividualScale && !t.mutableConfig.isStacked ? (
|
|
2094
|
-
x:
|
|
2104
|
+
t.mutableConfig.useIndividualScale && !t.mutableConfig.isStacked ? (a(!0), s(I, { key: 8 }, m(e.allScales, (r) => (a(), s("rect", {
|
|
2105
|
+
x: r.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
2095
2106
|
y: e.drawingArea.top,
|
|
2096
2107
|
width: e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
2097
2108
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
2098
|
-
fill: t.selectedScale ===
|
|
2099
|
-
onMouseenter: (h) => t.selectedScale =
|
|
2100
|
-
onMouseleave:
|
|
2101
|
-
}, null, 40,
|
|
2109
|
+
fill: t.selectedScale === r.id ? e.setOpacity(r.color, 20) : "transparent",
|
|
2110
|
+
onMouseenter: (h) => t.selectedScale = r.id,
|
|
2111
|
+
onMouseleave: l[0] || (l[0] = (h) => t.selectedScale = null)
|
|
2112
|
+
}, null, 40, wi))), 256)) : c("", !0),
|
|
2102
2113
|
f("g", null, [
|
|
2103
|
-
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !t.mutableConfig.useIndividualScale ? (
|
|
2114
|
+
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !t.mutableConfig.useIndividualScale ? (a(), s("text", {
|
|
2104
2115
|
key: 0,
|
|
2105
2116
|
"font-size": t.fontSizes.yAxis,
|
|
2106
2117
|
fill: e.FINAL_CONFIG.chart.grid.labels.color,
|
|
2107
2118
|
transform: `translate(${t.fontSizes.yAxis + e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`,
|
|
2108
2119
|
"text-anchor": "middle",
|
|
2109
2120
|
style: { transition: "none" }
|
|
2110
|
-
}, S(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9,
|
|
2111
|
-
e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (
|
|
2121
|
+
}, S(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, Oi)) : c("", !0),
|
|
2122
|
+
e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (a(), s("text", {
|
|
2112
2123
|
key: 1,
|
|
2113
2124
|
"text-anchor": "middle",
|
|
2114
2125
|
x: t.width / 2,
|
|
2115
2126
|
y: e.drawingArea.bottom + t.fontSizes.yAxis + t.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,
|
|
2116
2127
|
"font-size": t.fontSizes.yAxis,
|
|
2117
2128
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
2118
|
-
}, S(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9,
|
|
2129
|
+
}, S(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, Gi)) : c("", !0)
|
|
2119
2130
|
]),
|
|
2120
|
-
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (
|
|
2121
|
-
|
|
2131
|
+
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (a(), s("g", vi, [
|
|
2132
|
+
i.$slots["time-label"] ? (a(!0), s(I, { key: 0 }, m(e.timeLabels, (r, h) => (a(), s("g", {
|
|
2122
2133
|
key: `time_label_${h}`
|
|
2123
2134
|
}, [
|
|
2124
|
-
w(
|
|
2135
|
+
w(i.$slots, "time-label", B(H({
|
|
2125
2136
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * h + e.drawingArea.width / e.maxSeries / 2,
|
|
2126
2137
|
y: e.drawingArea.bottom + t.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset,
|
|
2127
2138
|
fontSize: t.fontSizes.xAxis,
|
|
2128
2139
|
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
2129
2140
|
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * h + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom + t.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2130
|
-
absoluteIndex:
|
|
2131
|
-
content:
|
|
2141
|
+
absoluteIndex: r.absoluteIndex,
|
|
2142
|
+
content: r.text,
|
|
2132
2143
|
textAnchor: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2133
|
-
show:
|
|
2144
|
+
show: r && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (h === 0 || h === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && t.selectedSerieIndex === h && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && h % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0
|
|
2134
2145
|
})), void 0, !0)
|
|
2135
|
-
]))), 128)) : (
|
|
2146
|
+
]))), 128)) : (a(!0), s(I, { key: 1 }, m(e.timeLabels, (r, h) => (a(), s("g", {
|
|
2136
2147
|
key: `time_label_${h}`
|
|
2137
2148
|
}, [
|
|
2138
|
-
|
|
2149
|
+
r && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (h === 0 || h === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && t.selectedSerieIndex === h && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && h % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (a(), s("text", {
|
|
2139
2150
|
key: 0,
|
|
2140
2151
|
"text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2141
2152
|
"font-size": t.fontSizes.xAxis,
|
|
@@ -2144,12 +2155,12 @@ function Ua(a, s, o, u, t, e) {
|
|
|
2144
2155
|
style: {
|
|
2145
2156
|
cursor: "pointer"
|
|
2146
2157
|
},
|
|
2147
|
-
onClick: () => e.selectTimeLabel(
|
|
2148
|
-
}, S(
|
|
2158
|
+
onClick: () => e.selectTimeLabel(r, h)
|
|
2159
|
+
}, S(r.text || ""), 9, pi)) : c("", !0)
|
|
2149
2160
|
]))), 128))
|
|
2150
2161
|
])) : c("", !0),
|
|
2151
2162
|
f("g", null, [
|
|
2152
|
-
(
|
|
2163
|
+
(a(!0), s(I, null, m(e.maxSeries, (r, h) => (a(), s("g", {
|
|
2153
2164
|
key: `tooltip_trap_${h}`
|
|
2154
2165
|
}, [
|
|
2155
2166
|
f("rect", {
|
|
@@ -2160,13 +2171,13 @@ function Ua(a, s, o, u, t, e) {
|
|
|
2160
2171
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
2161
2172
|
fill: "transparent",
|
|
2162
2173
|
onMouseenter: (n) => e.toggleTooltipVisibility(!0, h),
|
|
2163
|
-
onMouseleave:
|
|
2174
|
+
onMouseleave: l[1] || (l[1] = (n) => e.toggleTooltipVisibility(!1)),
|
|
2164
2175
|
onClick: (n) => e.selectX(h)
|
|
2165
|
-
}, null, 40,
|
|
2176
|
+
}, null, 40, zi)
|
|
2166
2177
|
]))), 128))
|
|
2167
2178
|
]),
|
|
2168
|
-
e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(t.selectedSerieIndex) || ![null, void 0].includes(t.selectedMinimapIndex)) ? (
|
|
2169
|
-
(
|
|
2179
|
+
e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(t.selectedSerieIndex) || ![null, void 0].includes(t.selectedMinimapIndex)) ? (a(), s("g", Mi, [
|
|
2180
|
+
(a(), s("foreignObject", {
|
|
2170
2181
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((t.selectedSerieIndex !== null ? t.selectedSerieIndex : 0) || (t.selectedMinimapIndex !== null ? t.selectedMinimapIndex : 0)) - 100 + e.drawingArea.width / e.maxSeries / 2,
|
|
2171
2182
|
y: e.drawingArea.bottom,
|
|
2172
2183
|
width: "200",
|
|
@@ -2177,21 +2188,21 @@ function Ua(a, s, o, u, t, e) {
|
|
|
2177
2188
|
class: "vue-ui-xy-time-tag",
|
|
2178
2189
|
style: L(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${e.FINAL_CONFIG.chart.timeTag.backgroundColor};color:${e.FINAL_CONFIG.chart.timeTag.color};font-size:${e.FINAL_CONFIG.chart.timeTag.fontSize}px`)
|
|
2179
2190
|
}, S(e.timeLabels[(t.selectedSerieIndex !== null ? t.selectedSerieIndex : 0) || (t.selectedMinimapIndex !== null ? t.selectedMinimapIndex : 0)].text || (t.selectedSerieIndex !== null ? t.selectedSerieIndex : 0) || (t.selectedMinimapIndex !== null ? t.selectedMinimapIndex : 0)), 5)
|
|
2180
|
-
], 8,
|
|
2191
|
+
], 8, Ti)),
|
|
2181
2192
|
f("circle", {
|
|
2182
2193
|
cx: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((t.selectedSerieIndex !== null ? t.selectedSerieIndex : 0) || (t.selectedMinimapIndex !== null ? t.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
|
|
2183
2194
|
cy: e.drawingArea.bottom,
|
|
2184
2195
|
r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
|
|
2185
2196
|
fill: e.FINAL_CONFIG.chart.timeTag.circleMarker.color
|
|
2186
|
-
}, null, 8,
|
|
2197
|
+
}, null, 8, Pi)
|
|
2187
2198
|
])) : c("", !0)
|
|
2188
2199
|
])) : c("", !0),
|
|
2189
|
-
w(
|
|
2200
|
+
w(i.$slots, "svg", { svg: e.svg }, void 0, !0)
|
|
2190
2201
|
], 14, Je)) : c("", !0),
|
|
2191
|
-
|
|
2192
|
-
w(
|
|
2202
|
+
i.$slots.watermark ? (a(), s("div", Vi, [
|
|
2203
|
+
w(i.$slots, "watermark", B(H({ isPrinting: t.isPrinting || t.isImaging })), void 0, !0)
|
|
2193
2204
|
])) : c("", !0),
|
|
2194
|
-
e.isDataset ? c("", !0) : (
|
|
2205
|
+
e.isDataset ? c("", !0) : (a(), D(T, {
|
|
2195
2206
|
key: 6,
|
|
2196
2207
|
config: {
|
|
2197
2208
|
type: "line",
|
|
@@ -2209,7 +2220,7 @@ function Ua(a, s, o, u, t, e) {
|
|
|
2209
2220
|
}
|
|
2210
2221
|
}
|
|
2211
2222
|
}, null, 8, ["config"])),
|
|
2212
|
-
e.FINAL_CONFIG.chart.zoom.show && t.maxX > 6 && e.isDataset ? (
|
|
2223
|
+
e.FINAL_CONFIG.chart.zoom.show && t.maxX > 6 && e.isDataset ? (a(), D(v, {
|
|
2213
2224
|
ref: "chartSlicer",
|
|
2214
2225
|
key: `slicer_${t.slicerStep}`,
|
|
2215
2226
|
background: e.FINAL_CONFIG.chart.zoom.color,
|
|
@@ -2234,31 +2245,31 @@ function Ua(a, s, o, u, t, e) {
|
|
|
2234
2245
|
valueStart: t.slicer.start,
|
|
2235
2246
|
valueEnd: t.slicer.end,
|
|
2236
2247
|
start: t.slicer.start,
|
|
2237
|
-
"onUpdate:start":
|
|
2248
|
+
"onUpdate:start": l[2] || (l[2] = (r) => t.slicer.start = r),
|
|
2238
2249
|
end: t.slicer.end,
|
|
2239
|
-
"onUpdate:end":
|
|
2250
|
+
"onUpdate:end": l[3] || (l[3] = (r) => t.slicer.end = r),
|
|
2240
2251
|
refreshStartPoint: e.FINAL_CONFIG.chart.zoom.startIndex !== null ? e.FINAL_CONFIG.chart.zoom.startIndex : 0,
|
|
2241
|
-
refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...o.dataset.map((
|
|
2252
|
+
refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...o.dataset.map((r) => e.largestTriangleThreeBucketsArray({ data: r.series, threshold: e.FINAL_CONFIG.downsample.threshold }).length)),
|
|
2242
2253
|
onReset: e.refreshSlicer,
|
|
2243
2254
|
onTrapMouse: e.selectMinimapIndex
|
|
2244
2255
|
}, {
|
|
2245
|
-
"reset-action": M(({ reset:
|
|
2246
|
-
w(
|
|
2256
|
+
"reset-action": M(({ reset: r }) => [
|
|
2257
|
+
w(i.$slots, "reset-action", B(H({ reset: r })), void 0, !0)
|
|
2247
2258
|
]),
|
|
2248
2259
|
_: 3
|
|
2249
2260
|
}, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "onReset", "onTrapMouse"])) : c("", !0),
|
|
2250
|
-
e.FINAL_CONFIG.chart.legend.show ? (
|
|
2261
|
+
e.FINAL_CONFIG.chart.legend.show ? (a(), s("div", {
|
|
2251
2262
|
key: 8,
|
|
2252
2263
|
ref: "chartLegend",
|
|
2253
2264
|
class: "vue-ui-xy-legend",
|
|
2254
2265
|
style: L(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
|
|
2255
2266
|
}, [
|
|
2256
|
-
(
|
|
2267
|
+
(a(!0), s(I, null, m(e.absoluteDataset, (r, h) => (a(), s("div", {
|
|
2257
2268
|
key: `div_legend_item_${h}`,
|
|
2258
|
-
onClick: (n) => e.segregate(
|
|
2259
|
-
class: V({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": t.segregatedSeries.includes(
|
|
2269
|
+
onClick: (n) => e.segregate(r),
|
|
2270
|
+
class: V({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": t.segregatedSeries.includes(r.id) })
|
|
2260
2271
|
}, [
|
|
2261
|
-
t.icons[
|
|
2272
|
+
t.icons[r.type] === "line" ? (a(), s("svg", Di, [
|
|
2262
2273
|
f("rect", {
|
|
2263
2274
|
x: "0",
|
|
2264
2275
|
y: "7.5",
|
|
@@ -2267,18 +2278,18 @@ function Ua(a, s, o, u, t, e) {
|
|
|
2267
2278
|
"stroke-width": 0.5,
|
|
2268
2279
|
height: "3",
|
|
2269
2280
|
width: "20",
|
|
2270
|
-
fill:
|
|
2271
|
-
}, null, 8,
|
|
2272
|
-
X(
|
|
2281
|
+
fill: r.color
|
|
2282
|
+
}, null, 8, Bi),
|
|
2283
|
+
X(b, {
|
|
2273
2284
|
plot: { x: 10, y: 9 },
|
|
2274
2285
|
radius: 4,
|
|
2275
|
-
color:
|
|
2276
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
2286
|
+
color: r.color,
|
|
2287
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(r.shape) ? r.shape : "circle",
|
|
2277
2288
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
2278
2289
|
strokeWidth: 0.5
|
|
2279
2290
|
}, null, 8, ["color", "shape", "stroke"])
|
|
2280
|
-
])) : (
|
|
2281
|
-
t.icons[
|
|
2291
|
+
])) : (a(), s("svg", Hi, [
|
|
2292
|
+
t.icons[r.type] === "bar" ? (a(), s("rect", {
|
|
2282
2293
|
key: 0,
|
|
2283
2294
|
x: "0",
|
|
2284
2295
|
y: "0",
|
|
@@ -2286,24 +2297,24 @@ function Ua(a, s, o, u, t, e) {
|
|
|
2286
2297
|
height: "12",
|
|
2287
2298
|
width: "12",
|
|
2288
2299
|
stroke: "none",
|
|
2289
|
-
fill:
|
|
2290
|
-
}, null, 8,
|
|
2300
|
+
fill: r.color
|
|
2301
|
+
}, null, 8, Ei)) : (a(), D(b, {
|
|
2291
2302
|
key: 1,
|
|
2292
2303
|
plot: { x: 6, y: 6 },
|
|
2293
2304
|
radius: 5,
|
|
2294
|
-
color:
|
|
2295
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
2305
|
+
color: r.color,
|
|
2306
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(r.shape) ? r.shape : "circle"
|
|
2296
2307
|
}, null, 8, ["color", "shape"]))
|
|
2297
2308
|
])),
|
|
2298
2309
|
f("span", {
|
|
2299
2310
|
style: L(`color:${e.FINAL_CONFIG.chart.legend.color}`)
|
|
2300
|
-
}, S(
|
|
2301
|
-
], 10,
|
|
2302
|
-
], 4)) : (
|
|
2303
|
-
w(
|
|
2311
|
+
}, S(r.name), 5)
|
|
2312
|
+
], 10, Ri))), 128))
|
|
2313
|
+
], 4)) : (a(), s("div", Wi, [
|
|
2314
|
+
w(i.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
|
|
2304
2315
|
], 512)),
|
|
2305
|
-
|
|
2306
|
-
w(
|
|
2316
|
+
i.$slots.source ? (a(), s("div", Yi, [
|
|
2317
|
+
w(i.$slots, "source", {}, void 0, !0)
|
|
2307
2318
|
], 512)) : c("", !0),
|
|
2308
2319
|
X(p, {
|
|
2309
2320
|
show: t.mutableConfig.showTooltip && t.isTooltip,
|
|
@@ -2316,20 +2327,20 @@ function Ua(a, s, o, u, t, e) {
|
|
|
2316
2327
|
backgroundOpacity: e.FINAL_CONFIG.chart.tooltip.backgroundOpacity,
|
|
2317
2328
|
position: e.FINAL_CONFIG.chart.tooltip.position,
|
|
2318
2329
|
offsetY: e.FINAL_CONFIG.chart.tooltip.offsetY,
|
|
2319
|
-
parent:
|
|
2330
|
+
parent: i.$refs.chart,
|
|
2320
2331
|
content: e.tooltipContent,
|
|
2321
2332
|
isFullscreen: t.isFullscreen,
|
|
2322
2333
|
isCustom: e.FINAL_CONFIG.chart.tooltip.customFormat && typeof e.FINAL_CONFIG.chart.tooltip.customFormat == "function"
|
|
2323
2334
|
}, {
|
|
2324
2335
|
"tooltip-before": M(() => [
|
|
2325
|
-
w(
|
|
2336
|
+
w(i.$slots, "tooltip-before", B(H({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2326
2337
|
]),
|
|
2327
2338
|
"tooltip-after": M(() => [
|
|
2328
|
-
w(
|
|
2339
|
+
w(i.$slots, "tooltip-after", B(H({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2329
2340
|
]),
|
|
2330
2341
|
_: 3
|
|
2331
2342
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
2332
|
-
e.isDataset ? (
|
|
2343
|
+
e.isDataset ? (a(), D(z, {
|
|
2333
2344
|
key: 11,
|
|
2334
2345
|
hideDetails: "",
|
|
2335
2346
|
config: {
|
|
@@ -2349,15 +2360,15 @@ function Ua(a, s, o, u, t, e) {
|
|
|
2349
2360
|
f("div", {
|
|
2350
2361
|
style: L(`${t.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
2351
2362
|
}, [
|
|
2352
|
-
f("div",
|
|
2353
|
-
|
|
2363
|
+
f("div", Xi, [
|
|
2364
|
+
He(f("input", {
|
|
2354
2365
|
type: "checkbox",
|
|
2355
|
-
"onUpdate:modelValue":
|
|
2366
|
+
"onUpdate:modelValue": l[4] || (l[4] = (r) => t.showSparklineTable = r)
|
|
2356
2367
|
}, null, 512), [
|
|
2357
|
-
[
|
|
2368
|
+
[Ee, t.showSparklineTable]
|
|
2358
2369
|
]),
|
|
2359
2370
|
f("div", {
|
|
2360
|
-
onClick:
|
|
2371
|
+
onClick: l[5] || (l[5] = (r) => t.showSparklineTable = !t.showSparklineTable),
|
|
2361
2372
|
style: { cursor: "pointer" }
|
|
2362
2373
|
}, [
|
|
2363
2374
|
X(O, {
|
|
@@ -2367,26 +2378,26 @@ function Ua(a, s, o, u, t, e) {
|
|
|
2367
2378
|
}, null, 8, ["stroke"])
|
|
2368
2379
|
])
|
|
2369
2380
|
]),
|
|
2370
|
-
t.showSparklineTable ? (
|
|
2381
|
+
t.showSparklineTable ? (a(), D(_, {
|
|
2371
2382
|
key: `sparkline_${t.segregateStep}`,
|
|
2372
2383
|
dataset: e.tableSparklineDataset,
|
|
2373
2384
|
config: e.tableSparklineConfig
|
|
2374
|
-
}, null, 8, ["dataset", "config"])) : (
|
|
2385
|
+
}, null, 8, ["dataset", "config"])) : (a(), D(C, {
|
|
2375
2386
|
key: `table_${t.tableStep}`,
|
|
2376
2387
|
colNames: e.dataTable.colNames,
|
|
2377
2388
|
head: e.dataTable.head,
|
|
2378
2389
|
body: e.dataTable.body,
|
|
2379
2390
|
config: e.dataTable.config,
|
|
2380
2391
|
title: `${e.FINAL_CONFIG.chart.title.text}${e.FINAL_CONFIG.chart.title.subtitle.text ? ` : ${e.FINAL_CONFIG.chart.title.subtitle.text}` : ""}`,
|
|
2381
|
-
onClose:
|
|
2392
|
+
onClose: l[6] || (l[6] = (r) => t.mutableConfig.showTable = !1)
|
|
2382
2393
|
}, {
|
|
2383
|
-
th: M(({ th:
|
|
2384
|
-
f("div", { innerHTML:
|
|
2394
|
+
th: M(({ th: r }) => [
|
|
2395
|
+
f("div", { innerHTML: r }, null, 8, qi)
|
|
2385
2396
|
]),
|
|
2386
|
-
td: M(({ td:
|
|
2387
|
-
We(S(isNaN(Number(
|
|
2397
|
+
td: M(({ td: r }) => [
|
|
2398
|
+
We(S(isNaN(Number(r)) ? r : e.dataLabel({
|
|
2388
2399
|
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
2389
|
-
v:
|
|
2400
|
+
v: r,
|
|
2390
2401
|
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
2391
2402
|
r: e.FINAL_CONFIG.table.rounding
|
|
2392
2403
|
})), 1)
|
|
@@ -2397,9 +2408,9 @@ function Ua(a, s, o, u, t, e) {
|
|
|
2397
2408
|
]),
|
|
2398
2409
|
_: 1
|
|
2399
2410
|
}, 8, ["config"])) : c("", !0)
|
|
2400
|
-
],
|
|
2411
|
+
], 46, Ue);
|
|
2401
2412
|
}
|
|
2402
|
-
const
|
|
2413
|
+
const cr = /* @__PURE__ */ Ye(qe, [["render", Ui], ["__scopeId", "data-v-70d7bcaa"]]);
|
|
2403
2414
|
export {
|
|
2404
|
-
|
|
2415
|
+
cr as default
|
|
2405
2416
|
};
|