vue-data-ui 2.4.1 → 2.4.3
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 +44 -44
- package/dist/{Arrow-BIs_9yK8.js → Arrow-C7lNL7sY.js} +1 -1
- package/dist/{Arrow-DpMf3yPs.cjs → Arrow-Dz6AomGr.cjs} +1 -1
- package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-BbvG1AlW.js} +7 -4
- package/dist/BaseIcon-uALK38Ov.cjs +1 -0
- package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DTzynbND.cjs} +1 -1
- package/dist/{DataTable-DL2agEJ3.js → DataTable-DYqC2pqu.js} +2 -2
- package/dist/{Legend-Dj9KiaLv.cjs → Legend-Cgw4lO2O.cjs} +1 -1
- package/dist/{Legend-DXLiSLHd.js → Legend-DNgTCgEK.js} +1 -1
- package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DwI-KhXH.cjs} +1 -1
- package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-VkaUzgmt.js} +1 -1
- package/dist/PenAndPaper-CDFVOo7X.cjs +1 -0
- package/dist/PenAndPaper-DAZYA8Ew.js +269 -0
- package/dist/{Shape-CO_Ak9Zm.js → Shape-Bwon0l0g.js} +1 -1
- package/dist/{Shape-7EC2UKDK.cjs → Shape-D2Dpshg1.cjs} +1 -1
- package/dist/{Slicer-BZfUZr1J.js → Slicer-TfpN2Cr4.js} +3 -3
- package/dist/{Slicer-CLAVjSQP.cjs → Slicer-uSjfNJjG.cjs} +1 -1
- package/dist/{Title-C-lm3Mkl.cjs → Title-0Tp4hZ4u.cjs} +1 -1
- package/dist/{Title-DYNLqCCT.js → Title-C5pIfQAz.js} +1 -1
- package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-9Tp2Yrd1.cjs} +1 -1
- package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cz24YLfw.js} +1 -1
- package/dist/{index-DDXisDKy.js → index-Bya_q1J-.js} +883 -842
- package/dist/index-eFox7weK.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +22 -17
- package/dist/types/vue-data-ui.d.ts +22 -17
- package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-B33hazbH.js} +1 -1
- package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-BkgEhTQY.cjs} +1 -1
- package/dist/usePrinter-CSRFnDBU.cjs +1 -0
- package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-CiHd1FwD.js} +230 -185
- package/dist/useResponsive-BY8tgM1n.js +188 -0
- package/dist/useResponsive-CodiGUOE.cjs +1 -0
- package/dist/vue-data-ui-BTtxyUc3.cjs +9 -0
- package/dist/vue-data-ui-Bduq4f2p.js +261 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-B-P7PMHs.cjs +19 -0
- package/dist/{vue-ui-3d-bar-DcF1nyGW.js → vue-ui-3d-bar-BUEq_VdY.js} +421 -390
- package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DfUfL2dI.js} +3 -3
- package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-TEMpM1hO.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CH72tAMb.js} +255 -222
- package/dist/vue-ui-age-pyramid-DsbZ1qcQ.cjs +1 -0
- package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-DPeJ2its.js} +1 -1
- package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-DU_DJKCw.cjs} +1 -1
- package/dist/vue-ui-bullet-CtP3MlUT.js +464 -0
- package/dist/vue-ui-bullet-D8ks_rKr.cjs +34 -0
- package/dist/vue-ui-candlestick-D1jdr0bv.cjs +2 -0
- package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DDil13a0.js} +278 -245
- package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-BaeIxyc0.js} +76 -69
- package/dist/vue-ui-carousel-table-C7SJIOG-.cjs +1 -0
- package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-BczSJF6S.js} +322 -291
- package/dist/vue-ui-chestnut-ih5r0Bj9.cjs +6 -0
- package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-C2Pj_CI_.cjs} +1 -1
- package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-Dg_Dmww-.js} +2 -2
- package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-Bul9dqx1.js} +2 -2
- package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-Cg020NiT.cjs} +1 -1
- package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-B8iAa4YZ.js} +2 -2
- package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-Ctgd84JR.cjs} +1 -1
- package/dist/vue-ui-donut-D7KT9EAp.cjs +1 -0
- package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-DUcp-fat.js} +376 -343
- package/dist/vue-ui-donut-evolution-CHtJ8iOK.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-C_YMbTwq.js} +375 -344
- package/dist/vue-ui-dumbbell-B0dikuqO.cjs +9 -0
- package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Buwngz_V.js} +294 -261
- package/dist/vue-ui-flow-Bz3c0K5P.js +515 -0
- package/dist/vue-ui-flow-D6rc8J-8.cjs +1 -0
- package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-Cjh0XGTX.js} +212 -181
- package/dist/vue-ui-galaxy-CmTt0vBf.cjs +1 -0
- package/dist/vue-ui-gauge-B1UvGkQa.js +527 -0
- package/dist/vue-ui-gauge-B_TKuyM7.cjs +1 -0
- package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-DFW6HnHp.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DUQ4t-At.js} +3 -3
- package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-C-poazUw.js} +308 -277
- package/dist/vue-ui-heatmap-C2HlnqzO.cjs +1 -0
- package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-DXe-vxAk.js} +3 -3
- package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-Z4Oi4raz.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-BVtHTqxS.js} +2 -2
- package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-MMvpm9pz.cjs} +1 -1
- package/dist/vue-ui-molecule-BaJpDZND.js +805 -0
- package/dist/vue-ui-molecule-BiYIcOKN.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-BUNDwsEI.js} +259 -228
- package/dist/vue-ui-mood-radar-C6jMyFkb.cjs +1 -0
- package/dist/vue-ui-nested-donuts-DKO2dFKo.cjs +17 -0
- package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-mDy2hXa6.js} +371 -338
- package/dist/vue-ui-onion-DwFG3HAI.js +650 -0
- package/dist/vue-ui-onion-GWNoZRhw.cjs +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-DODn4Ohf.cjs +8 -0
- package/dist/vue-ui-parallel-coordinate-plot-ImET_zeo.js +719 -0
- package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-BeveRihK.js} +359 -326
- package/dist/vue-ui-quadrant-yuFAxV-5.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-DAhllTfa.js} +585 -552
- package/dist/vue-ui-quick-chart-DgFDBzjS.cjs +15 -0
- package/dist/vue-ui-radar-BJH5SE6-.cjs +1 -0
- package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-BllatzRa.js} +279 -246
- package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-BoZo7caL.cjs} +1 -1
- package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-D1ykV4xO.js} +2 -2
- package/dist/vue-ui-relation-circle-CKmjOle7.cjs +1 -0
- package/dist/vue-ui-relation-circle-xv2l5Be9.js +358 -0
- package/dist/vue-ui-rings-B-ZcX6y1.js +602 -0
- package/dist/vue-ui-rings-DjH3CK23.cjs +2 -0
- package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-DG43ck1g.js} +440 -407
- package/dist/vue-ui-scatter-SBCXAl7q.cjs +1 -0
- package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-C1JBP_N0.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-p3ca8cAl.js} +1 -1
- package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-BYssP0K4.js} +419 -379
- package/dist/vue-ui-skeleton-BqKzuhkB.cjs +41 -0
- package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-BXKVpHl2.cjs} +1 -1
- package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-D7dDCdpq.js} +2 -2
- package/dist/vue-ui-spark-trend-9V60hM3Z.cjs +1 -0
- package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-GWFrO_0z.js} +86 -79
- package/dist/vue-ui-sparkbar-Bgn6AY0q.cjs +1 -0
- package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-CwqlyAyv.js} +90 -83
- package/dist/vue-ui-sparkgauge-Dqntz2Zv.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-F2XbiXyA.js} +57 -50
- package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-DRIKK6Ym.js} +74 -67
- package/dist/vue-ui-sparkhistogram-DnY4-Sdn.cjs +1 -0
- package/dist/vue-ui-sparkline-CAEs-gtK.cjs +1 -0
- package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-Cxtzdlhi.js} +134 -125
- package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-0A1klq9s.js} +84 -77
- package/dist/vue-ui-sparkstackbar-D37ms1rx.cjs +1 -0
- package/dist/vue-ui-stackbar-ByOuJSdM.js +947 -0
- package/dist/vue-ui-stackbar-wun4S3C0.cjs +6 -0
- package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-CMD0MSqY.js} +297 -264
- package/dist/vue-ui-strip-plot-IQrypGvz.cjs +1 -0
- package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-B75DJ39t.js} +1 -1
- package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-aj0XZ7T5.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-BO2ugWqD.js} +55 -48
- package/dist/vue-ui-table-heatmap-Ce93TyBF.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-CbjfAaj2.js} +88 -81
- package/dist/vue-ui-table-sparkline-D6KJjDnU.cjs +1 -0
- package/dist/vue-ui-thermometer-Pq4PvSIP.js +447 -0
- package/dist/vue-ui-thermometer-swmi4FmH.cjs +1 -0
- package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-B6IB6yS6.cjs} +1 -1
- package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-Bk3BvB-B.js} +6 -6
- package/dist/vue-ui-tiremarks-CU9HJIqf.js +310 -0
- package/dist/vue-ui-tiremarks-Cn79uQH2.cjs +1 -0
- package/dist/vue-ui-treemap-BEMuKV7x.cjs +1 -0
- package/dist/vue-ui-treemap-DY-lRAhC.js +825 -0
- package/dist/vue-ui-vertical-bar-B1e2RxTv.cjs +4 -0
- package/dist/vue-ui-vertical-bar-CtnIKsM1.js +861 -0
- package/dist/vue-ui-waffle-BqP7Okgu.cjs +1 -0
- package/dist/vue-ui-waffle-reOsx-gJ.js +791 -0
- package/dist/vue-ui-wheel-BuWUGnkC.cjs +1 -0
- package/dist/vue-ui-wheel-kYxny3vn.js +291 -0
- package/dist/vue-ui-word-cloud-DbMqrHAf.js +607 -0
- package/dist/vue-ui-word-cloud-DwLY4QdB.cjs +1 -0
- package/dist/vue-ui-xy-CGWzriYn.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-B0HTR7OV.js} +441 -408
- package/dist/vue-ui-xy-canvas-CgJd5FiT.cjs +9 -0
- package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-rbACig0h.js} +824 -791
- package/package.json +1 -1
- package/dist/BaseIcon-E7FmzMcY.cjs +0 -1
- package/dist/index-C7_6YjWN.cjs +0 -9
- package/dist/usePrinter-8EP4iaGm.cjs +0 -1
- package/dist/useResponsive-B3TrDDIG.cjs +0 -1
- package/dist/useResponsive-NZB-WLRF.js +0 -187
- package/dist/vue-data-ui-4Yd255Ia.cjs +0 -9
- package/dist/vue-data-ui-Cp7bO_tj.js +0 -258
- package/dist/vue-ui-3d-bar-BeR2aBgQ.cjs +0 -19
- package/dist/vue-ui-age-pyramid-R-C4P4mI.cjs +0 -1
- package/dist/vue-ui-bullet-CQKaC4wG.js +0 -409
- package/dist/vue-ui-bullet-DSZox236.cjs +0 -23
- package/dist/vue-ui-candlestick-Dilozp3V.cjs +0 -2
- package/dist/vue-ui-carousel-table-C0GDDSW9.cjs +0 -1
- package/dist/vue-ui-chestnut-DdEcEI04.cjs +0 -6
- package/dist/vue-ui-donut-DTSVlGMg.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BuUafabD.cjs +0 -1
- package/dist/vue-ui-dumbbell-CVfgnyKi.cjs +0 -9
- package/dist/vue-ui-flow-C45dODaB.cjs +0 -1
- package/dist/vue-ui-flow-DkPTzNv9.js +0 -484
- package/dist/vue-ui-galaxy-DlPavMK0.cjs +0 -1
- package/dist/vue-ui-gauge-BXiy515T.js +0 -494
- package/dist/vue-ui-gauge-vMFUYHYH.cjs +0 -1
- package/dist/vue-ui-heatmap-CMQqQnxc.cjs +0 -1
- package/dist/vue-ui-molecule-BwmkMEVN.js +0 -774
- package/dist/vue-ui-molecule-nOuD0hR5.cjs +0 -1
- package/dist/vue-ui-mood-radar-Bof_C9Ae.cjs +0 -1
- package/dist/vue-ui-nested-donuts-DIb6YyWv.cjs +0 -17
- package/dist/vue-ui-onion-D9o6Rcgu.js +0 -617
- package/dist/vue-ui-onion-N3tRNc4u.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-BcYrYXhG.js +0 -686
- package/dist/vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs +0 -8
- package/dist/vue-ui-quadrant-Do48rGrX.cjs +0 -1
- package/dist/vue-ui-quick-chart-BxU4d-sJ.cjs +0 -15
- package/dist/vue-ui-radar-CooAvwPA.cjs +0 -1
- package/dist/vue-ui-relation-circle-nRf1pvD0.js +0 -325
- package/dist/vue-ui-relation-circle-uNgJni4x.cjs +0 -1
- package/dist/vue-ui-rings-BgRc1o4_.js +0 -569
- package/dist/vue-ui-rings-iIgQI9Ws.cjs +0 -2
- package/dist/vue-ui-scatter-CkrpmLxP.cjs +0 -1
- package/dist/vue-ui-skeleton-CGV1dEUD.cjs +0 -41
- package/dist/vue-ui-spark-trend-BfoEoJEy.cjs +0 -1
- package/dist/vue-ui-sparkbar-DB2DeXti.cjs +0 -1
- package/dist/vue-ui-sparkgauge-CJepIY2u.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-B7B36LLT.cjs +0 -1
- package/dist/vue-ui-sparkline-BcqmwDAb.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-DT3aKNeV.cjs +0 -1
- package/dist/vue-ui-stackbar-CRcUugkl.cjs +0 -6
- package/dist/vue-ui-stackbar-DNROvZII.js +0 -915
- package/dist/vue-ui-strip-plot-Ck9Fmt_b.cjs +0 -1
- package/dist/vue-ui-table-heatmap-Chvdf2Gi.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DUUYQ5dH.cjs +0 -1
- package/dist/vue-ui-thermometer-BFfN4aat.cjs +0 -1
- package/dist/vue-ui-thermometer-BePmFiwy.js +0 -416
- package/dist/vue-ui-tiremarks-BkYXzU3R.cjs +0 -1
- package/dist/vue-ui-tiremarks-d6TmSHY7.js +0 -279
- package/dist/vue-ui-treemap-BgeZnbl3.cjs +0 -1
- package/dist/vue-ui-treemap-Qg0858o6.js +0 -792
- package/dist/vue-ui-vertical-bar-CieqHVD5.js +0 -828
- package/dist/vue-ui-vertical-bar-D3atbdvl.cjs +0 -4
- package/dist/vue-ui-waffle-CD7C9Lu4.cjs +0 -1
- package/dist/vue-ui-waffle-CjNhM-mV.js +0 -758
- package/dist/vue-ui-wheel-B8mbO6ht.js +0 -258
- package/dist/vue-ui-wheel-CYmM7J61.cjs +0 -1
- package/dist/vue-ui-word-cloud-DMXrUmX5.js +0 -574
- package/dist/vue-ui-word-cloud-Dm9yZ1zQ.cjs +0 -1
- package/dist/vue-ui-xy-DoWnidom.cjs +0 -3
- package/dist/vue-ui-xy-canvas-DHs5sb3t.cjs +0 -9
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { c as J, a as K, t as Q, z as j, p as $, U as q, O as
|
|
2
|
-
import { D as Se } from "./DataTable-
|
|
3
|
-
import { _ as ke } from "./Title-
|
|
4
|
-
import { _ as we, u as Oe } from "./Tooltip-
|
|
5
|
-
import { U as Ge } from "./usePrinter-
|
|
6
|
-
import { _ as ve } from "./Shape-
|
|
7
|
-
import pe from "./BaseIcon-
|
|
8
|
-
import ze from "./vue-ui-table-sparkline-
|
|
9
|
-
import Me from "./vue-ui-skeleton-
|
|
10
|
-
import { S as Pe } from "./Slicer-
|
|
11
|
-
import Te from "./vue-ui-accordion-
|
|
12
|
-
import { u as Z } from "./useNestedProp-
|
|
13
|
-
import { _ as Ve } from "./PackageVersion-
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
1
|
+
import { c as J, a as K, t as Q, z as j, p as $, U as q, O as R, f as U, K as ee, F as te, i as ae, $ as ie, Z as re, a0 as le, v as se, a1 as ne, d as oe, B as ce, b as he, q as de, R as ue, a2 as ge, r as fe, e as Ne, y as me, M as Ie, x as xe, a3 as be, o as Fe, s as _e, w as ye, E as Ae, A as Ce, u as Le } from "./index-Bya_q1J-.js";
|
|
2
|
+
import { D as Se } from "./DataTable-DYqC2pqu.js";
|
|
3
|
+
import { _ as ke } from "./Title-C5pIfQAz.js";
|
|
4
|
+
import { _ as we, u as Oe } from "./Tooltip-Cz24YLfw.js";
|
|
5
|
+
import { U as Ge } from "./usePrinter-CiHd1FwD.js";
|
|
6
|
+
import { _ as ve } from "./Shape-Bwon0l0g.js";
|
|
7
|
+
import pe from "./BaseIcon-BbvG1AlW.js";
|
|
8
|
+
import ze from "./vue-ui-table-sparkline-CbjfAaj2.js";
|
|
9
|
+
import Me from "./vue-ui-skeleton-BYssP0K4.js";
|
|
10
|
+
import { S as Pe } from "./Slicer-TfpN2Cr4.js";
|
|
11
|
+
import Te from "./vue-ui-accordion-DfUfL2dI.js";
|
|
12
|
+
import { u as Z } from "./useNestedProp-B33hazbH.js";
|
|
13
|
+
import { _ as Ve } from "./PackageVersion-VkaUzgmt.js";
|
|
14
|
+
import { P as Re } from "./PenAndPaper-DAZYA8Ew.js";
|
|
15
|
+
import { resolveComponent as T, openBlock as r, createElementBlock as l, normalizeClass as V, normalizeStyle as C, createBlock as D, createCommentVNode as h, createSlots as De, withCtx as M, renderSlot as w, normalizeProps as H, guardReactiveProps as E, createVNode as X, createElementVNode as u, Fragment as N, renderList as I, toDisplayString as S, withDirectives as We, vModelCheckbox as He, createTextVNode as Ee } from "vue";
|
|
16
|
+
import { _ as Be } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
+
const Ye = J(), Xe = {
|
|
17
18
|
name: "vue-ui-xy",
|
|
18
19
|
props: {
|
|
19
20
|
config: {
|
|
@@ -40,15 +41,16 @@ const Be = J(), Ye = {
|
|
|
40
41
|
Skeleton: Me,
|
|
41
42
|
Slicer: Pe,
|
|
42
43
|
Accordion: Te,
|
|
43
|
-
PackageVersion: Ve
|
|
44
|
+
PackageVersion: Ve,
|
|
45
|
+
PenAndPaper: Re
|
|
44
46
|
},
|
|
45
47
|
data() {
|
|
46
|
-
this.dataset.forEach((c,
|
|
48
|
+
this.dataset.forEach((c, f) => {
|
|
47
49
|
[null, void 0].includes(c.series) && this.error({
|
|
48
50
|
componentName: "VueUiXy",
|
|
49
51
|
type: "datasetSerieAttribute",
|
|
50
52
|
property: "series (number[])",
|
|
51
|
-
index:
|
|
53
|
+
index: f
|
|
52
54
|
});
|
|
53
55
|
});
|
|
54
56
|
const t = Math.max(...this.dataset.map((c) => c.series.length)), s = {
|
|
@@ -81,6 +83,7 @@ const Be = J(), Ye = {
|
|
|
81
83
|
bar: "bar",
|
|
82
84
|
plot: "plot"
|
|
83
85
|
},
|
|
86
|
+
isAnnotator: !1,
|
|
84
87
|
isFullscreen: !1,
|
|
85
88
|
isPrinting: !1,
|
|
86
89
|
isImaging: !1,
|
|
@@ -106,7 +109,7 @@ const Be = J(), Ye = {
|
|
|
106
109
|
maxX: t,
|
|
107
110
|
showSparklineTable: !0,
|
|
108
111
|
segregateStep: 0,
|
|
109
|
-
sliderId:
|
|
112
|
+
sliderId: Ye,
|
|
110
113
|
fontSizes: {
|
|
111
114
|
xAxis: 18,
|
|
112
115
|
yAxis: 12,
|
|
@@ -140,11 +143,11 @@ const Be = J(), Ye = {
|
|
|
140
143
|
computed: {
|
|
141
144
|
minimap() {
|
|
142
145
|
if (!this.FINAL_CONFIG.chart.zoom.minimap.show) return [];
|
|
143
|
-
const t = this.datasetWithIds.filter((
|
|
144
|
-
for (let
|
|
145
|
-
c.push(t.map((e) => e.series[
|
|
146
|
-
const
|
|
147
|
-
return c.map((
|
|
146
|
+
const t = this.datasetWithIds.filter((a) => !this.segregatedSeries.includes(a.id)), s = Math.max(...t.map((a) => a.series.length)), c = [];
|
|
147
|
+
for (let a = 0; a < s; a += 1)
|
|
148
|
+
c.push(t.map((e) => e.series[a] || 0).reduce((e, x) => (e || 0) + (x || 0), 0));
|
|
149
|
+
const f = Math.min(...c);
|
|
150
|
+
return c.map((a) => a + (f < 0 ? Math.abs(f) : 0));
|
|
148
151
|
},
|
|
149
152
|
customPalette() {
|
|
150
153
|
return this.convertCustomPalette(this.FINAL_CONFIG.customPalette);
|
|
@@ -156,53 +159,53 @@ const Be = J(), Ye = {
|
|
|
156
159
|
return this.FINAL_CONFIG.chart.zoom.color;
|
|
157
160
|
},
|
|
158
161
|
allScales() {
|
|
159
|
-
const t = this.lineSet.map((
|
|
160
|
-
name:
|
|
161
|
-
color:
|
|
162
|
-
scale:
|
|
163
|
-
scaleYLabels:
|
|
164
|
-
zero:
|
|
165
|
-
max:
|
|
166
|
-
scaleLabel:
|
|
167
|
-
id:
|
|
168
|
-
yOffset:
|
|
169
|
-
individualHeight:
|
|
170
|
-
autoScaleYLabels:
|
|
171
|
-
})), s = this.barSet.map((
|
|
172
|
-
name:
|
|
173
|
-
color:
|
|
174
|
-
scale:
|
|
175
|
-
scaleYLabels:
|
|
176
|
-
zero:
|
|
177
|
-
max:
|
|
178
|
-
scaleLabel:
|
|
179
|
-
id:
|
|
180
|
-
yOffset:
|
|
181
|
-
individualHeight:
|
|
182
|
-
})), c = this.plotSet.map((
|
|
183
|
-
name:
|
|
184
|
-
color:
|
|
185
|
-
scale:
|
|
186
|
-
scaleYLabels:
|
|
162
|
+
const t = this.lineSet.map((a) => ({
|
|
163
|
+
name: a.name,
|
|
164
|
+
color: a.color,
|
|
165
|
+
scale: a.individualScale,
|
|
166
|
+
scaleYLabels: a.scaleYLabels,
|
|
167
|
+
zero: a.zeroPosition,
|
|
168
|
+
max: a.individualMax,
|
|
169
|
+
scaleLabel: a.scaleLabel || "",
|
|
170
|
+
id: a.id,
|
|
171
|
+
yOffset: a.yOffset || 0,
|
|
172
|
+
individualHeight: a.individualHeight || this.drawingArea.height,
|
|
173
|
+
autoScaleYLabels: a.autoScaleYLabels
|
|
174
|
+
})), s = this.barSet.map((a) => ({
|
|
175
|
+
name: a.name,
|
|
176
|
+
color: a.color,
|
|
177
|
+
scale: a.individualScale,
|
|
178
|
+
scaleYLabels: a.scaleYLabels,
|
|
179
|
+
zero: a.zeroPosition,
|
|
180
|
+
max: a.individualMax,
|
|
181
|
+
scaleLabel: a.scaleLabel || "",
|
|
182
|
+
id: a.id,
|
|
183
|
+
yOffset: a.yOffset || 0,
|
|
184
|
+
individualHeight: a.individualHeight || this.drawingArea.height
|
|
185
|
+
})), c = this.plotSet.map((a) => ({
|
|
186
|
+
name: a.name,
|
|
187
|
+
color: a.color,
|
|
188
|
+
scale: a.individualScale,
|
|
189
|
+
scaleYLabels: a.scaleYLabels,
|
|
187
190
|
// FIX
|
|
188
|
-
zero:
|
|
189
|
-
max:
|
|
190
|
-
scaleLabel:
|
|
191
|
-
id:
|
|
192
|
-
yOffset:
|
|
193
|
-
individualHeight:
|
|
194
|
-
})),
|
|
195
|
-
return [...t, ...s, ...c].flatMap((
|
|
196
|
-
id:
|
|
197
|
-
scaleLabel:
|
|
198
|
-
name:
|
|
199
|
-
color:
|
|
200
|
-
scale:
|
|
201
|
-
yOffset:
|
|
202
|
-
individualHeight:
|
|
203
|
-
x: this.mutableConfig.isStacked ? this.drawingArea.left : this.drawingArea.left /
|
|
204
|
-
yLabels:
|
|
205
|
-
y: x >= 0 ?
|
|
191
|
+
zero: a.zeroPosition,
|
|
192
|
+
max: a.individualMax,
|
|
193
|
+
scaleLabel: a.scaleLabel || "",
|
|
194
|
+
id: a.id,
|
|
195
|
+
yOffset: a.yOffset || 0,
|
|
196
|
+
individualHeight: a.individualHeight || this.drawingArea.height
|
|
197
|
+
})), f = [...t, ...s, ...c].flatMap((a) => a).length;
|
|
198
|
+
return [...t, ...s, ...c].flatMap((a, e) => ({
|
|
199
|
+
id: a.id,
|
|
200
|
+
scaleLabel: a.scaleLabel,
|
|
201
|
+
name: a.name,
|
|
202
|
+
color: a.color,
|
|
203
|
+
scale: a.scale,
|
|
204
|
+
yOffset: a.yOffset,
|
|
205
|
+
individualHeight: a.individualHeight,
|
|
206
|
+
x: this.mutableConfig.isStacked ? this.drawingArea.left : this.drawingArea.left / f * (e + 1),
|
|
207
|
+
yLabels: a.scaleYLabels || a.scale.ticks.map((x) => ({
|
|
208
|
+
y: x >= 0 ? a.zero - a.individualHeight * (x / a.max) : a.zero + a.individualHeight * Math.abs(x) / a.max,
|
|
206
209
|
value: x
|
|
207
210
|
}))
|
|
208
211
|
}));
|
|
@@ -314,47 +317,47 @@ const Be = J(), Ye = {
|
|
|
314
317
|
barSet() {
|
|
315
318
|
return this.activeSeriesWithStackRatios.filter((t) => t.type === "bar").map((t, s) => {
|
|
316
319
|
this.checkAutoScaleError(t);
|
|
317
|
-
const c = Math.min(...t.absoluteValues.filter((d) => ![null, void 0].includes(d))),
|
|
318
|
-
ratios: t.absoluteValues.filter((d) => ![null, void 0].includes(d)).map((d) => (d - c) / (
|
|
320
|
+
const c = Math.min(...t.absoluteValues.filter((d) => ![null, void 0].includes(d))), f = Math.max(...t.absoluteValues.filter((d) => ![null, void 0].includes(d))), e = {
|
|
321
|
+
ratios: t.absoluteValues.filter((d) => ![null, void 0].includes(d)).map((d) => (d - c) / (f - c)),
|
|
319
322
|
valueMin: c,
|
|
320
|
-
valueMax:
|
|
323
|
+
valueMax: f < 0 ? 0 : f
|
|
321
324
|
}, x = {
|
|
322
325
|
max: t.scaleMax || Math.max(...t.absoluteValues) || 1,
|
|
323
326
|
min: t.scaleMin || Math.min(...t.absoluteValues.filter((d) => ![void 0, null].includes(d))) > 0 ? 0 : Math.min(...t.absoluteValues.filter((d) => ![null, void 0].includes(d)))
|
|
324
|
-
},
|
|
325
|
-
const
|
|
327
|
+
}, y = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, m = this.calculateNiceScaleWithExactExtremes(x.min, x.max === x.min ? x.max * k : x.max, y), b = this.calculateNiceScaleWithExactExtremes(e.valueMin, e.valueMax === e.valueMin ? e.valueMax * k : e.valueMax, y), P = m.min >= 0 ? 0 : Math.abs(m.min), O = 0, G = m.max + P, p = b.max + Math.abs(O), _ = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, L = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, z = this.drawingArea.bottom - _ - L * P / G, i = this.drawingArea.bottom - _ - L * O / p, o = this.absoluteDataset.filter((d) => d.type === "bar").filter((d) => !this.segregatedSeries.includes(d.id)).length, n = t.series.map((d, F) => {
|
|
328
|
+
const B = this.mutableConfig.useIndividualScale ? (t.absoluteValues[F] + P) / G : this.ratioToMax(d), Y = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * F : this.drawingArea.left + this.slot.bar * s + this.slot.bar * F * o - this.barSlot / 2 - s * this.barPeriodGap;
|
|
326
329
|
return {
|
|
327
|
-
yOffset: this.checkNaN(
|
|
328
|
-
individualHeight: this.checkNaN(
|
|
329
|
-
x: this.checkNaN(
|
|
330
|
-
y: this.drawingArea.bottom -
|
|
331
|
-
value: t.absoluteValues[
|
|
332
|
-
zeroPosition: this.checkNaN(
|
|
333
|
-
individualMax: this.checkNaN(
|
|
334
|
-
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[
|
|
330
|
+
yOffset: this.checkNaN(_),
|
|
331
|
+
individualHeight: this.checkNaN(L),
|
|
332
|
+
x: this.checkNaN(Y),
|
|
333
|
+
y: this.drawingArea.bottom - _ - L * B,
|
|
334
|
+
value: t.absoluteValues[F],
|
|
335
|
+
zeroPosition: this.checkNaN(z),
|
|
336
|
+
individualMax: this.checkNaN(G),
|
|
337
|
+
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
335
338
|
};
|
|
336
|
-
}),
|
|
337
|
-
const
|
|
339
|
+
}), g = t.absoluteValues.map((d) => b.min >= 0 ? (d - Math.abs(b.min)) / (b.max - Math.abs(b.min)) : (d + Math.abs(b.min)) / (b.max + Math.abs(b.min))), W = t.series.map((d, F) => {
|
|
340
|
+
const B = 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 * s + this.slot.bar * F * this.absoluteDataset.filter((Y) => Y.type === "bar").filter((Y) => !this.segregatedSeries.includes(Y.id)).length;
|
|
338
341
|
return {
|
|
339
|
-
yOffset: this.checkNaN(
|
|
340
|
-
individualHeight: this.checkNaN(
|
|
341
|
-
x: this.checkNaN(
|
|
342
|
-
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(
|
|
343
|
-
value: t.absoluteValues[
|
|
344
|
-
zeroPosition: this.checkNaN(
|
|
345
|
-
individualMax: this.checkNaN(
|
|
346
|
-
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[
|
|
342
|
+
yOffset: this.checkNaN(_),
|
|
343
|
+
individualHeight: this.checkNaN(L),
|
|
344
|
+
x: this.checkNaN(B),
|
|
345
|
+
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(_) - (this.checkNaN(L) * g[F] || 0)),
|
|
346
|
+
value: t.absoluteValues[F],
|
|
347
|
+
zeroPosition: this.checkNaN(z),
|
|
348
|
+
individualMax: this.checkNaN(G),
|
|
349
|
+
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
347
350
|
};
|
|
348
|
-
}),
|
|
349
|
-
y: d >= 0 ?
|
|
351
|
+
}), A = m.ticks.map((d) => ({
|
|
352
|
+
y: d >= 0 ? z - L * (d / G) : z + L * Math.abs(d) / G,
|
|
350
353
|
value: d,
|
|
351
354
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
352
355
|
suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
353
356
|
datapoint: t
|
|
354
|
-
})),
|
|
355
|
-
const
|
|
357
|
+
})), v = b.ticks.map((d) => {
|
|
358
|
+
const F = (d - b.min) / (b.max - b.min);
|
|
356
359
|
return {
|
|
357
|
-
y: d >= 0 ?
|
|
360
|
+
y: d >= 0 ? i - L * F : i + L * F,
|
|
358
361
|
value: d,
|
|
359
362
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
360
363
|
suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
@@ -363,14 +366,14 @@ const Be = J(), Ye = {
|
|
|
363
366
|
});
|
|
364
367
|
return {
|
|
365
368
|
...t,
|
|
366
|
-
yOffset:
|
|
367
|
-
autoScaleYLabels:
|
|
368
|
-
individualHeight:
|
|
369
|
-
scaleYLabels: t.autoScaling ?
|
|
370
|
-
individualScale: t.autoScaling ?
|
|
371
|
-
individualMax: t.autoScaling ?
|
|
372
|
-
zeroPosition: t.autoScaling ?
|
|
373
|
-
plots: t.autoScaling ?
|
|
369
|
+
yOffset: _,
|
|
370
|
+
autoScaleYLabels: v,
|
|
371
|
+
individualHeight: L,
|
|
372
|
+
scaleYLabels: t.autoScaling ? v : A,
|
|
373
|
+
individualScale: t.autoScaling ? b : m,
|
|
374
|
+
individualMax: t.autoScaling ? p : G,
|
|
375
|
+
zeroPosition: t.autoScaling ? i : z,
|
|
376
|
+
plots: t.autoScaling ? W : n
|
|
374
377
|
};
|
|
375
378
|
});
|
|
376
379
|
},
|
|
@@ -383,41 +386,41 @@ const Be = J(), Ye = {
|
|
|
383
386
|
lineSet() {
|
|
384
387
|
return this.activeSeriesWithStackRatios.filter((t) => t.type === "line").map((t) => {
|
|
385
388
|
this.checkAutoScaleError(t);
|
|
386
|
-
const s = Math.min(...t.absoluteValues.filter((d) => ![void 0, null].includes(d))), c = Math.max(...t.absoluteValues.filter((d) => ![void 0, null].includes(d))) || 1,
|
|
389
|
+
const s = Math.min(...t.absoluteValues.filter((d) => ![void 0, null].includes(d))), c = Math.max(...t.absoluteValues.filter((d) => ![void 0, null].includes(d))) || 1, a = {
|
|
387
390
|
ratios: t.absoluteValues.filter((d) => ![null, void 0].includes(d)).map((d) => (d - s) / (c - s)),
|
|
388
391
|
valueMin: s,
|
|
389
392
|
valueMax: c
|
|
390
393
|
}, e = {
|
|
391
394
|
max: t.scaleMax || Math.max(...t.absoluteValues) || 1,
|
|
392
395
|
min: t.scaleMin || (Math.min(...t.absoluteValues) > 0 ? 0 : Math.min(...t.absoluteValues))
|
|
393
|
-
}, x = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,
|
|
394
|
-
const
|
|
396
|
+
}, x = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, y = 1.0000001, k = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * y : e.max, x), m = this.calculateNiceScaleWithExactExtremes(a.valueMin, a.valueMax === a.valueMin ? a.valueMax * y : a.valueMax, x), b = k.min >= 0 ? 0 : Math.abs(k.min), P = 0, O = k.max + Math.abs(b), G = m.max + Math.abs(P), p = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, _ = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, L = this.drawingArea.bottom - p - _ * b / O, z = this.drawingArea.bottom - p - _ * P / G, i = t.series.map((d, F) => {
|
|
397
|
+
const B = this.mutableConfig.useIndividualScale ? (t.absoluteValues[F] + Math.abs(b)) / O : this.ratioToMax(d);
|
|
395
398
|
return {
|
|
396
|
-
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line *
|
|
397
|
-
y: this.checkNaN(this.drawingArea.bottom -
|
|
398
|
-
value: t.absoluteValues[
|
|
399
|
-
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[
|
|
399
|
+
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * F),
|
|
400
|
+
y: this.checkNaN(this.drawingArea.bottom - p - _ * B),
|
|
401
|
+
value: t.absoluteValues[F],
|
|
402
|
+
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
400
403
|
};
|
|
401
|
-
}),
|
|
402
|
-
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line *
|
|
403
|
-
y:
|
|
404
|
-
value: t.absoluteValues[
|
|
405
|
-
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[
|
|
404
|
+
}), o = t.absoluteValues.map((d) => m.min >= 0 ? (d - Math.abs(m.min)) / (m.max - Math.abs(m.min)) : (d + Math.abs(m.min)) / (m.max + Math.abs(m.min))), n = t.series.map((d, F) => [void 0, null].includes(t.absoluteValues[F]) ? {
|
|
405
|
+
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * F),
|
|
406
|
+
y: L,
|
|
407
|
+
value: t.absoluteValues[F],
|
|
408
|
+
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
406
409
|
} : {
|
|
407
|
-
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line *
|
|
408
|
-
y: this.checkNaN(this.drawingArea.bottom -
|
|
409
|
-
value: t.absoluteValues[
|
|
410
|
-
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[
|
|
411
|
-
}),
|
|
412
|
-
y: d >= 0 ?
|
|
410
|
+
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * F),
|
|
411
|
+
y: this.checkNaN(this.drawingArea.bottom - p - (_ * o[F] || 0)),
|
|
412
|
+
value: t.absoluteValues[F],
|
|
413
|
+
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
414
|
+
}), g = this.createSmoothPath(i), W = this.createSmoothPath(n), A = k.ticks.map((d) => ({
|
|
415
|
+
y: d >= 0 ? L - _ * (d / O) : L + _ * Math.abs(d) / O,
|
|
413
416
|
value: d,
|
|
414
417
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
415
418
|
suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
416
419
|
datapoint: t
|
|
417
|
-
})),
|
|
418
|
-
const
|
|
420
|
+
})), v = m.ticks.map((d) => {
|
|
421
|
+
const F = (d - m.min) / (m.max - m.min);
|
|
419
422
|
return {
|
|
420
|
-
y: d >= 0 ?
|
|
423
|
+
y: d >= 0 ? z - _ * F : z + _ * F,
|
|
421
424
|
value: d,
|
|
422
425
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
423
426
|
suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
@@ -426,53 +429,53 @@ const Be = J(), Ye = {
|
|
|
426
429
|
});
|
|
427
430
|
return {
|
|
428
431
|
...t,
|
|
429
|
-
yOffset:
|
|
430
|
-
autoScaleYLabels:
|
|
431
|
-
individualHeight:
|
|
432
|
-
scaleYLabels: t.autoScaling ?
|
|
433
|
-
individualScale: t.autoScaling ?
|
|
434
|
-
individualMax: t.autoScaling ?
|
|
435
|
-
zeroPosition: t.autoScaling ?
|
|
436
|
-
curve: t.autoScaling ?
|
|
437
|
-
plots: t.autoScaling ?
|
|
438
|
-
area: t.useArea ? this.mutableConfig.useIndividualScale ? this.createIndividualArea(t.autoScaling ?
|
|
432
|
+
yOffset: p,
|
|
433
|
+
autoScaleYLabels: v,
|
|
434
|
+
individualHeight: _,
|
|
435
|
+
scaleYLabels: t.autoScaling ? v : A,
|
|
436
|
+
individualScale: t.autoScaling ? m : k,
|
|
437
|
+
individualMax: t.autoScaling ? G : O,
|
|
438
|
+
zeroPosition: t.autoScaling ? z : L,
|
|
439
|
+
curve: t.autoScaling ? W : g,
|
|
440
|
+
plots: t.autoScaling ? n : i,
|
|
441
|
+
area: t.useArea ? this.mutableConfig.useIndividualScale ? this.createIndividualArea(t.autoScaling ? n : i, t.autoScaling ? z : L) : this.createArea(i) : ""
|
|
439
442
|
};
|
|
440
443
|
});
|
|
441
444
|
},
|
|
442
445
|
plotSet() {
|
|
443
446
|
return this.activeSeriesWithStackRatios.filter((t) => t.type === "plot").map((t) => {
|
|
444
447
|
this.checkAutoScaleError(t);
|
|
445
|
-
const s = Math.min(...t.absoluteValues.filter((
|
|
446
|
-
ratios: t.absoluteValues.filter((
|
|
448
|
+
const s = Math.min(...t.absoluteValues.filter((A) => ![null, void 0].includes(A))), c = Math.max(...t.absoluteValues.filter((A) => ![null, void 0].includes(A))) || 1, a = {
|
|
449
|
+
ratios: t.absoluteValues.filter((A) => ![null, void 0].includes(A)).map((A) => (A - s) / (c - s)),
|
|
447
450
|
valueMin: s,
|
|
448
451
|
valueMax: c
|
|
449
452
|
}, e = {
|
|
450
453
|
max: t.scaleMax || Math.max(...t.absoluteValues) || 1,
|
|
451
454
|
min: t.scaleMin || Math.min(...t.absoluteValues) > 0 ? 0 : Math.min(...t.absoluteValues)
|
|
452
|
-
}, x = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,
|
|
453
|
-
const d = this.mutableConfig.useIndividualScale ? (t.absoluteValues[
|
|
455
|
+
}, x = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, y = 1.0000001, k = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * y : e.max, x), m = this.calculateNiceScaleWithExactExtremes(a.valueMin, a.valueMax === a.valueMin ? a.valueMax * y : a.valueMax, x), b = k.min >= 0 ? 0 : Math.abs(k.min), P = 0, O = k.max + b, G = m.max + Math.abs(P), p = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, _ = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, L = this.drawingArea.bottom - p - _ * b / O, z = this.drawingArea.bottom - p - _ * P / G, i = t.series.map((A, v) => {
|
|
456
|
+
const d = this.mutableConfig.useIndividualScale ? (t.absoluteValues[v] + Math.abs(b)) / O : this.ratioToMax(A);
|
|
454
457
|
return {
|
|
455
|
-
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot *
|
|
456
|
-
y: this.checkNaN(this.drawingArea.bottom -
|
|
457
|
-
value: t.absoluteValues[
|
|
458
|
-
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[
|
|
458
|
+
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * v),
|
|
459
|
+
y: this.checkNaN(this.drawingArea.bottom - p - _ * d),
|
|
460
|
+
value: t.absoluteValues[v],
|
|
461
|
+
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[v] || ""
|
|
459
462
|
};
|
|
460
|
-
}),
|
|
461
|
-
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot *
|
|
462
|
-
y: this.checkNaN(this.drawingArea.bottom -
|
|
463
|
-
value: t.absoluteValues[
|
|
464
|
-
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[
|
|
465
|
-
})),
|
|
466
|
-
y:
|
|
467
|
-
value:
|
|
463
|
+
}), o = t.absoluteValues.map((A) => m.min >= 0 ? (A - Math.abs(m.min)) / (m.max - Math.abs(m.min)) : (A + Math.abs(m.min)) / (m.max + Math.abs(m.min))), n = t.series.map((A, v) => ({
|
|
464
|
+
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * v),
|
|
465
|
+
y: this.checkNaN(this.drawingArea.bottom - p - (_ * o[v] || 0)),
|
|
466
|
+
value: t.absoluteValues[v],
|
|
467
|
+
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[v] || ""
|
|
468
|
+
})), g = k.ticks.map((A) => ({
|
|
469
|
+
y: A >= 0 ? L - _ * (A / O) : L + _ * Math.abs(A) / O,
|
|
470
|
+
value: A,
|
|
468
471
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
469
472
|
suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
470
473
|
datapoint: t
|
|
471
|
-
})),
|
|
472
|
-
const
|
|
474
|
+
})), W = m.ticks.map((A) => {
|
|
475
|
+
const v = (A - m.min) / (m.max - m.min);
|
|
473
476
|
return {
|
|
474
|
-
y:
|
|
475
|
-
value:
|
|
477
|
+
y: A >= 0 ? z - _ * v : z + _ * v,
|
|
478
|
+
value: A,
|
|
476
479
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
477
480
|
suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
478
481
|
datapoint: t
|
|
@@ -480,14 +483,14 @@ const Be = J(), Ye = {
|
|
|
480
483
|
});
|
|
481
484
|
return {
|
|
482
485
|
...t,
|
|
483
|
-
yOffset:
|
|
484
|
-
autoScaleYLabels:
|
|
485
|
-
individualHeight:
|
|
486
|
-
scaleYLabels: t.autoScaling ?
|
|
487
|
-
individualScale: t.autoScaling ?
|
|
488
|
-
individualMax: t.autoScaling ?
|
|
489
|
-
zeroPosition: t.autoScaling ?
|
|
490
|
-
plots: t.autoScaling ?
|
|
486
|
+
yOffset: p,
|
|
487
|
+
autoScaleYLabels: W,
|
|
488
|
+
individualHeight: _,
|
|
489
|
+
scaleYLabels: t.autoScaling ? W : g,
|
|
490
|
+
individualScale: t.autoScaling ? m : k,
|
|
491
|
+
individualMax: t.autoScaling ? G : O,
|
|
492
|
+
zeroPosition: t.autoScaling ? z : L,
|
|
493
|
+
plots: t.autoScaling ? n : i
|
|
491
494
|
};
|
|
492
495
|
});
|
|
493
496
|
},
|
|
@@ -544,11 +547,11 @@ const Be = J(), Ye = {
|
|
|
544
547
|
color: c.color,
|
|
545
548
|
type: c.type
|
|
546
549
|
})), s = [];
|
|
547
|
-
return this.timeLabels.forEach((c,
|
|
548
|
-
const
|
|
550
|
+
return this.timeLabels.forEach((c, f) => {
|
|
551
|
+
const a = [c];
|
|
549
552
|
this.relativeDataset.forEach((e) => {
|
|
550
|
-
|
|
551
|
-
}), s.push(
|
|
553
|
+
a.push(this.canShowValue(e.absoluteValues[f]) ? Number(e.absoluteValues[f].toFixed(this.FINAL_CONFIG.table.rounding)) : "");
|
|
554
|
+
}), s.push(a);
|
|
552
555
|
}), { head: t, body: s };
|
|
553
556
|
},
|
|
554
557
|
dataTable() {
|
|
@@ -557,25 +560,25 @@ const Be = J(), Ye = {
|
|
|
557
560
|
t && (s = s.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>'));
|
|
558
561
|
let c = [];
|
|
559
562
|
for (let e = 0; e < this.maxSeries; e += 1) {
|
|
560
|
-
const x = this.relativeDataset.map((
|
|
563
|
+
const x = this.relativeDataset.map((y) => y.absoluteValues[e] ?? 0).reduce((y, k) => y + k, 0);
|
|
561
564
|
c.push(
|
|
562
565
|
[
|
|
563
566
|
this.timeLabels[e] ?? "-"
|
|
564
567
|
].concat(this.relativeDataset.map(
|
|
565
|
-
(
|
|
566
|
-
|
|
567
|
-
|
|
568
|
+
(y) => this.applyDataLabel(
|
|
569
|
+
y.type === "line" ? this.FINAL_CONFIG.line.labels.formatter : y.type === "bar" ? this.FINAL_CONFIG.bar.labels.formatter : this.FINAL_CONFIG.plot.labels.formatter,
|
|
570
|
+
y.absoluteValues[e] ?? 0,
|
|
568
571
|
this.dataLabel({
|
|
569
|
-
p:
|
|
570
|
-
v:
|
|
571
|
-
s:
|
|
572
|
+
p: y.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
573
|
+
v: y.absoluteValues[e] ?? 0,
|
|
574
|
+
s: y.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
572
575
|
r: this.FINAL_CONFIG.table.rounding
|
|
573
576
|
})
|
|
574
577
|
)
|
|
575
578
|
)).concat(t ? (x ?? 0).toFixed(this.FINAL_CONFIG.table.rounding) : [])
|
|
576
579
|
);
|
|
577
580
|
}
|
|
578
|
-
const
|
|
581
|
+
const f = {
|
|
579
582
|
th: {
|
|
580
583
|
backgroundColor: this.FINAL_CONFIG.table.th.backgroundColor,
|
|
581
584
|
color: this.FINAL_CONFIG.table.th.color,
|
|
@@ -587,8 +590,8 @@ const Be = J(), Ye = {
|
|
|
587
590
|
outline: this.FINAL_CONFIG.table.td.outline
|
|
588
591
|
},
|
|
589
592
|
breakpoint: this.FINAL_CONFIG.table.responsiveBreakpoint
|
|
590
|
-
},
|
|
591
|
-
return { head: s, body: c, config:
|
|
593
|
+
}, a = [this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map((e) => e.name)).concat(this.FINAL_CONFIG.table.columnNames.total);
|
|
594
|
+
return { head: s, body: c, config: f, colNames: a };
|
|
592
595
|
},
|
|
593
596
|
dataTooltipSlot() {
|
|
594
597
|
return {
|
|
@@ -614,9 +617,9 @@ const Be = J(), Ye = {
|
|
|
614
617
|
}));
|
|
615
618
|
},
|
|
616
619
|
tooltipContent() {
|
|
617
|
-
let t = "", s = this.selectedSeries.map((
|
|
618
|
-
const c = this.timeLabels[this.selectedSerieIndex],
|
|
619
|
-
return this.isFunction(
|
|
620
|
+
let t = "", s = this.selectedSeries.map((a) => a.value).filter((a) => this.isSafeValue(a) && a !== null).reduce((a, e) => Math.abs(a) + Math.abs(e), 0);
|
|
621
|
+
const c = this.timeLabels[this.selectedSerieIndex], f = this.FINAL_CONFIG.chart.tooltip.customFormat;
|
|
622
|
+
return this.isFunction(f) && this.functionReturnsString(() => f({
|
|
620
623
|
seriesIndex: this.selectedSerieIndex,
|
|
621
624
|
datapoint: this.selectedSeries,
|
|
622
625
|
series: this.absoluteDataset,
|
|
@@ -624,7 +627,7 @@ const Be = J(), Ye = {
|
|
|
624
627
|
lines: this.lineSet,
|
|
625
628
|
plots: this.plotSet,
|
|
626
629
|
config: this.FINAL_CONFIG
|
|
627
|
-
})) ?
|
|
630
|
+
})) ? f({
|
|
628
631
|
seriesIndex: this.selectedSerieIndex,
|
|
629
632
|
datapoint: this.selectedSeries,
|
|
630
633
|
series: this.absoluteDataset,
|
|
@@ -632,61 +635,61 @@ const Be = J(), Ye = {
|
|
|
632
635
|
lines: this.lineSet,
|
|
633
636
|
plots: this.plotSet,
|
|
634
637
|
config: this.FINAL_CONFIG
|
|
635
|
-
}) : (c && (t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${c}</div>`), this.selectedSeries.forEach((
|
|
636
|
-
if (this.isSafeValue(
|
|
638
|
+
}) : (c && (t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${c}</div>`), this.selectedSeries.forEach((a) => {
|
|
639
|
+
if (this.isSafeValue(a.value)) {
|
|
637
640
|
let e = "", x = "";
|
|
638
|
-
switch (this.icons[
|
|
641
|
+
switch (this.icons[a.type]) {
|
|
639
642
|
case "bar":
|
|
640
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" rx="1" stroke="none" height="12" width="12" fill="${
|
|
643
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" rx="1" stroke="none" height="12" width="12" fill="${a.color}" /></svg>`;
|
|
641
644
|
break;
|
|
642
645
|
case "line":
|
|
643
|
-
!
|
|
646
|
+
!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape) ? x = `<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" />` : a.shape === "triangle" ? x = `<path d="${R({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />` : a.shape === "square" ? x = `<path d="${R({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />` : a.shape === "diamond" ? x = `<path d="${R({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />` : a.shape === "pentagon" ? x = `<path d="${R({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />` : a.shape === "hexagon" ? x = `<path d="${R({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />` : a.shape === "star" && (x = `<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" points="${q({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), e = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="3" x="0" y="6" stroke="none" height="4" width="20" fill="${a.color}" />${x}</svg>`;
|
|
644
647
|
break;
|
|
645
648
|
case "plot":
|
|
646
|
-
if (!
|
|
647
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${
|
|
649
|
+
if (!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape)) {
|
|
650
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" /></svg>`;
|
|
648
651
|
break;
|
|
649
652
|
}
|
|
650
|
-
if (
|
|
651
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${
|
|
653
|
+
if (a.shape === "star") {
|
|
654
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" points="${q({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
|
|
652
655
|
break;
|
|
653
656
|
}
|
|
654
|
-
if (
|
|
655
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
657
|
+
if (a.shape === "triangle") {
|
|
658
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${R({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
656
659
|
break;
|
|
657
660
|
}
|
|
658
|
-
if (
|
|
659
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
661
|
+
if (a.shape === "square") {
|
|
662
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${R({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
660
663
|
break;
|
|
661
664
|
}
|
|
662
|
-
if (
|
|
663
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
665
|
+
if (a.shape === "diamond") {
|
|
666
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${R({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
664
667
|
break;
|
|
665
668
|
}
|
|
666
|
-
if (
|
|
667
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
669
|
+
if (a.shape === "pentagon") {
|
|
670
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${R({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
668
671
|
break;
|
|
669
672
|
}
|
|
670
|
-
if (
|
|
671
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
673
|
+
if (a.shape === "hexagon") {
|
|
674
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${R({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
672
675
|
break;
|
|
673
676
|
}
|
|
674
677
|
}
|
|
675
|
-
t += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${e}</div> ${
|
|
676
|
-
|
|
677
|
-
|
|
678
|
+
t += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${e}</div> ${a.name}: <b>${this.FINAL_CONFIG.chart.tooltip.showValue ? this.applyDataLabel(
|
|
679
|
+
a.type === "line" ? this.FINAL_CONFIG.line.labels.formatter : a.type === "bar" ? this.FINAL_CONFIG.bar.labels.formatter : this.FINAL_CONFIG.plot.labels.formatter,
|
|
680
|
+
a.value,
|
|
678
681
|
this.dataLabel({
|
|
679
|
-
p:
|
|
680
|
-
v:
|
|
681
|
-
s:
|
|
682
|
+
p: a.prefix,
|
|
683
|
+
v: a.value,
|
|
684
|
+
s: a.suffix,
|
|
682
685
|
r: this.FINAL_CONFIG.chart.tooltip.roundingValue
|
|
683
686
|
}),
|
|
684
|
-
{ datapoint:
|
|
687
|
+
{ datapoint: a }
|
|
685
688
|
) : ""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage ? `(${U({
|
|
686
|
-
v: this.checkNaN(Math.abs(
|
|
689
|
+
v: this.checkNaN(Math.abs(a.value) / s * 100),
|
|
687
690
|
s: "%",
|
|
688
691
|
r: this.FINAL_CONFIG.chart.tooltip.roundingPercentage
|
|
689
|
-
})})` : ""}</div>`, this.FINAL_CONFIG.chart.comments.showInTooltip &&
|
|
692
|
+
})})` : ""}</div>`, this.FINAL_CONFIG.chart.comments.showInTooltip && a.comments.length && a.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex] && (t += `<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${a.color}">${a.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex]}</div>`);
|
|
690
693
|
}
|
|
691
694
|
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${this.FINAL_CONFIG.chart.tooltip.color}">${t}</div>`);
|
|
692
695
|
},
|
|
@@ -742,9 +745,12 @@ const Be = J(), Ye = {
|
|
|
742
745
|
setOpacity: _e,
|
|
743
746
|
shiftHue: ye,
|
|
744
747
|
translateSize: Ae,
|
|
745
|
-
treeShake:
|
|
748
|
+
treeShake: Ce,
|
|
746
749
|
useMouse: Oe,
|
|
747
750
|
useNestedProp: Z,
|
|
751
|
+
toggleAnnotator() {
|
|
752
|
+
this.isAnnotator = !this.isAnnotator;
|
|
753
|
+
},
|
|
748
754
|
getHighlightAreaPosition(t) {
|
|
749
755
|
const s = this.drawingArea.left + this.drawingArea.width / this.maxSeries * (t.from - this.slicer.start), c = this.drawingArea.width / (this.slicer.end - this.slicer.start) * t.span < 0 ? 1e-5 : this.drawingArea.width / (this.slicer.end - this.slicer.start) * t.span;
|
|
750
756
|
return {
|
|
@@ -753,7 +759,7 @@ const Be = J(), Ye = {
|
|
|
753
759
|
};
|
|
754
760
|
},
|
|
755
761
|
prepareConfig() {
|
|
756
|
-
const t =
|
|
762
|
+
const t = Le().vue_ui_xy;
|
|
757
763
|
if (!Object.keys(this.config || {}).length)
|
|
758
764
|
return t;
|
|
759
765
|
const s = this.useNestedProp({
|
|
@@ -794,15 +800,17 @@ const Be = J(), Ye = {
|
|
|
794
800
|
isStacked: this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,
|
|
795
801
|
useIndividualScale: this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale
|
|
796
802
|
}, this.FINAL_CONFIG.responsive) {
|
|
797
|
-
const s = this.$refs.chart.parentNode, { height: c, width:
|
|
798
|
-
let
|
|
799
|
-
this.FINAL_CONFIG.chart.title.show && (
|
|
800
|
-
let x = null,
|
|
801
|
-
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (x = this.$refs.chartSlicer.$el,
|
|
802
|
-
let k = null,
|
|
803
|
-
this.FINAL_CONFIG.chart.legend.show && (k = this.$refs.chartLegend,
|
|
804
|
-
|
|
805
|
-
|
|
803
|
+
const s = this.$refs.chart.parentNode, { height: c, width: f } = s.getBoundingClientRect();
|
|
804
|
+
let a = null, e = 0;
|
|
805
|
+
this.FINAL_CONFIG.chart.title.show && (a = this.$refs.chartTitle, e = a.getBoundingClientRect().height);
|
|
806
|
+
let x = null, y = 0;
|
|
807
|
+
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (x = this.$refs.chartSlicer.$el, y = x.getBoundingClientRect().height);
|
|
808
|
+
let k = null, m = 0;
|
|
809
|
+
this.FINAL_CONFIG.chart.legend.show && (k = this.$refs.chartLegend, m = k.getBoundingClientRect().height);
|
|
810
|
+
let b = 0;
|
|
811
|
+
this.$refs.source && (b = this.$refs.source.getBoundingClientRect().height), this.height = c - e - m - y - b, this.width = f, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes(), new ResizeObserver((O) => {
|
|
812
|
+
for (const G of O)
|
|
813
|
+
this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (y = this.$refs.chartSlicer.$el.getBoundingClientRect().height), this.$refs.chartLegend && (m = this.$refs.chartLegend.getBoundingClientRect().height), this.$refs.source && (b = this.$refs.source.getBoundingClientRect().height), this.height = G.contentBoxSize[0].blockSize - e - m - y - b - 24, this.width = G.contentBoxSize[0].inlineSize, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
|
|
806
814
|
}).observe(s);
|
|
807
815
|
} else
|
|
808
816
|
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;
|
|
@@ -866,24 +874,24 @@ const Be = J(), Ye = {
|
|
|
866
874
|
},
|
|
867
875
|
createArea(t) {
|
|
868
876
|
if (!t[0]) return [-10, -10, "", -10, -10];
|
|
869
|
-
const s = { x: t[0].x, y: this.zero }, c = { x: t.at(-1).x, y: this.zero },
|
|
870
|
-
return t.forEach((
|
|
871
|
-
|
|
872
|
-
}), [s.x, s.y, ...
|
|
877
|
+
const s = { x: t[0].x, y: this.zero }, c = { x: t.at(-1).x, y: this.zero }, f = [];
|
|
878
|
+
return t.forEach((a) => {
|
|
879
|
+
f.push(`${a.x},${a.y} `);
|
|
880
|
+
}), [s.x, s.y, ...f, c.x, c.y].toString();
|
|
873
881
|
},
|
|
874
882
|
createIndividualArea(t, s) {
|
|
875
883
|
if (!t[0]) return [-10, -10, "", -10, -10];
|
|
876
|
-
const c = { x: t[0] ? t[0].x : Math.min(...t.filter((e) => !!e).map((e) => e.x)), y: s },
|
|
884
|
+
const c = { x: t[0] ? t[0].x : Math.min(...t.filter((e) => !!e).map((e) => e.x)), y: s }, f = { x: t.at(-1) ? t.at(-1).x : Math.min(...t.filter((e) => !!e).map((e) => e.x)), y: s }, a = [];
|
|
877
885
|
return t.filter((e) => !!e).forEach((e) => {
|
|
878
|
-
|
|
879
|
-
}), [c.x, c.y, ...
|
|
886
|
+
a.push(`${e.x},${e.y} `);
|
|
887
|
+
}), [c.x, c.y, ...a, f.x, f.y].toString();
|
|
880
888
|
},
|
|
881
889
|
createStar: q,
|
|
882
|
-
createPolygonPath:
|
|
890
|
+
createPolygonPath: R,
|
|
883
891
|
fillArray(t, s) {
|
|
884
892
|
let c = Array(t).fill(0);
|
|
885
|
-
for (let
|
|
886
|
-
c[
|
|
893
|
+
for (let f = 0; f < s.length && f < t; f += 1)
|
|
894
|
+
c[f] = s[f];
|
|
887
895
|
return c;
|
|
888
896
|
},
|
|
889
897
|
refreshSlicer() {
|
|
@@ -914,10 +922,10 @@ const Be = J(), Ye = {
|
|
|
914
922
|
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(t);
|
|
915
923
|
},
|
|
916
924
|
findClosestValue(t, s) {
|
|
917
|
-
let c = s[0],
|
|
918
|
-
for (let
|
|
919
|
-
const e = Math.abs(t - s[
|
|
920
|
-
e <
|
|
925
|
+
let c = s[0], f = Math.abs(t - s[0]);
|
|
926
|
+
for (let a = 1; a < s.length; a += 1) {
|
|
927
|
+
const e = Math.abs(t - s[a]);
|
|
928
|
+
e < f && s[a] < t && (c = s[a], f = e);
|
|
921
929
|
}
|
|
922
930
|
return c;
|
|
923
931
|
},
|
|
@@ -986,8 +994,8 @@ const Be = J(), Ye = {
|
|
|
986
994
|
}, 100);
|
|
987
995
|
},
|
|
988
996
|
generateCsv() {
|
|
989
|
-
const t = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], s = ["", ...this.table.head.map((e) => e.label)], c = this.table.body,
|
|
990
|
-
this.downloadCsv({ csvContent:
|
|
997
|
+
const t = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], s = ["", ...this.table.head.map((e) => e.label)], c = this.table.body, f = t.concat([s]).concat(c), a = this.createCsvContent(f);
|
|
998
|
+
this.downloadCsv({ csvContent: a, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
|
|
991
999
|
},
|
|
992
1000
|
showSpinnerImage() {
|
|
993
1001
|
this.isImaging = !0;
|
|
@@ -1009,42 +1017,54 @@ const Be = J(), Ye = {
|
|
|
1009
1017
|
}, 100);
|
|
1010
1018
|
}
|
|
1011
1019
|
}
|
|
1012
|
-
},
|
|
1013
|
-
key:
|
|
1020
|
+
}, qe = ["id"], Ue = ["viewBox"], Ze = { key: 0 }, Je = { class: "vue-ui-xy-grid" }, Ke = ["stroke", "x1", "x2", "y1", "y2"], Qe = ["stroke", "x1", "x2", "y1", "y2"], je = { key: 1 }, $e = ["x1", "x2", "y1", "y2", "stroke"], et = ["x1", "x2", "y1", "y2", "stroke"], tt = ["x1", "x2", "y1", "y2", "stroke"], at = { key: 3 }, it = ["x1", "x2", "y1", "y2", "stroke"], rt = ["id"], lt = ["stop-color"], st = ["stop-color"], nt = ["stop-color"], ot = ["id"], ct = ["stop-color"], ht = ["stop-color"], dt = ["stop-color"], ut = ["id"], gt = ["stop-color"], ft = ["stop-color"], Nt = ["id"], mt = ["stop-color"], It = ["stop-color"], xt = ["id"], bt = ["stop-color"], Ft = ["stop-color"], _t = ["x", "y", "height", "width", "fill"], yt = ["x", "y", "width"], At = ["x", "y", "height", "width", "fill"], Ct = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Lt = ["width", "x", "y"], St = { key: 0 }, kt = ["id"], wt = ["fill"], Ot = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Gt = ["x", "y", "font-size", "fill"], vt = ["stroke", "x1", "x2", "y1", "y2"], pt = { key: 2 }, zt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Mt = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Pt = { key: 4 }, Tt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Vt = ["fill", "font-size", "transform"], Rt = ["x1", "x2", "y1", "y2", "stroke"], Dt = ["x", "y", "font-size", "fill"], Wt = ["x1", "x2", "y1", "y2", "stroke"], Ht = ["x", "y", "font-size", "fill"], Et = ["width", "x", "y"], Bt = { style: { width: "100%" } }, Yt = { key: 0 }, Xt = ["id"], qt = ["fill"], Ut = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Zt = ["x", "y", "font-size", "fill"], Jt = ["d", "stroke", "stroke-width", "stroke-dasharray"], Kt = { key: 1 }, Qt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], jt = { key: 0 }, $t = ["d", "fill"], ea = ["d", "fill"], ta = ["d", "stroke", "stroke-width", "stroke-dasharray"], aa = { key: 2 }, ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ra = ["width", "x", "y"], la = { style: { width: "100%" } }, sa = { key: 3 }, na = ["id"], oa = ["fill"], ca = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ha = ["x", "y", "font-size", "fill"], da = { key: 5 }, ua = ["x", "y", "font-size", "fill"], ga = ["x", "y", "font-size", "fill", "font-weight"], fa = { key: 6 }, Na = ["x", "y", "font-size", "fill"], ma = ["x", "y"], Ia = ["x", "y"], xa = { key: 7 }, ba = ["x", "y", "font-size", "fill"], Fa = ["x", "y"], _a = ["x", "y"], ya = ["x", "y", "font-size", "fill", "innerHTML"], Aa = ["x", "y", "font-size", "fill", "innerHTML"], Ca = ["x", "y", "font-size", "fill", "innerHTML"], La = ["x", "y", "font-size", "fill", "innerHTML"], Sa = ["x", "y", "width", "height", "fill", "onMouseenter"], ka = ["font-size", "fill", "transform"], wa = ["x", "y", "font-size", "fill"], Oa = { key: 9 }, Ga = ["text-anchor", "font-size", "fill", "transform"], va = ["x", "y", "height", "width", "onMouseenter", "onClick"], pa = { key: 10 }, za = ["x", "y"], Ma = ["cx", "cy", "r", "fill"], Pa = {
|
|
1021
|
+
key: 4,
|
|
1014
1022
|
class: "vue-data-ui-watermark"
|
|
1015
|
-
},
|
|
1023
|
+
}, Ta = ["onClick"], Va = {
|
|
1016
1024
|
key: 0,
|
|
1017
1025
|
viewBox: "0 0 20 12",
|
|
1018
1026
|
height: "14",
|
|
1019
1027
|
width: "20"
|
|
1020
|
-
},
|
|
1028
|
+
}, Ra = ["fill"], Da = {
|
|
1021
1029
|
key: 1,
|
|
1022
1030
|
viewBox: "0 0 12 12",
|
|
1023
1031
|
height: "14",
|
|
1024
1032
|
width: "14"
|
|
1025
|
-
},
|
|
1026
|
-
key:
|
|
1033
|
+
}, Wa = ["fill"], Ha = {
|
|
1034
|
+
key: 8,
|
|
1027
1035
|
ref: "chartLegend"
|
|
1028
|
-
},
|
|
1036
|
+
}, Ea = {
|
|
1037
|
+
key: 9,
|
|
1038
|
+
ref: "source",
|
|
1039
|
+
dir: "auto"
|
|
1040
|
+
}, Ba = {
|
|
1029
1041
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
1030
1042
|
"data-html2canvas-ignore": ""
|
|
1031
|
-
},
|
|
1032
|
-
function
|
|
1033
|
-
const x =
|
|
1043
|
+
}, Ya = ["innerHTML"];
|
|
1044
|
+
function Xa(t, s, c, f, a, e) {
|
|
1045
|
+
const x = T("PenAndPaper"), y = T("Title"), k = T("UserOptions"), m = T("PackageVersion"), b = T("Shape"), P = T("Skeleton"), O = T("Slicer"), G = T("Tooltip"), p = T("BaseIcon"), _ = T("TableSparkline"), L = T("DataTable"), z = T("Accordion");
|
|
1034
1046
|
return r(), l("div", {
|
|
1035
|
-
id: `vue-ui-xy_${
|
|
1036
|
-
class:
|
|
1047
|
+
id: `vue-ui-xy_${a.uniqueId}`,
|
|
1048
|
+
class: V(`vue-ui-xy ${a.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1037
1049
|
ref: "chart",
|
|
1038
|
-
style:
|
|
1050
|
+
style: C(`background:${e.FINAL_CONFIG.chart.backgroundColor}; color:${e.FINAL_CONFIG.chart.color};width:100%;${e.FINAL_CONFIG.chart.title.text ? "" : "padding-top:36px"};font-family:${e.FINAL_CONFIG.chart.fontFamily};${e.FINAL_CONFIG.responsive ? "height: 100%" : ""}`)
|
|
1039
1051
|
}, [
|
|
1040
|
-
e.FINAL_CONFIG.chart.
|
|
1052
|
+
e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (r(), D(x, {
|
|
1041
1053
|
key: 0,
|
|
1054
|
+
parent: t.$refs.chart,
|
|
1055
|
+
backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1056
|
+
color: e.FINAL_CONFIG.chart.color,
|
|
1057
|
+
active: a.isAnnotator,
|
|
1058
|
+
onClose: e.toggleAnnotator
|
|
1059
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active", "onClose"])) : h("", !0),
|
|
1060
|
+
e.FINAL_CONFIG.chart.title.show ? (r(), l("div", {
|
|
1061
|
+
key: 1,
|
|
1042
1062
|
ref: "chartTitle",
|
|
1043
1063
|
class: "vue-ui-xy-title",
|
|
1044
|
-
style:
|
|
1064
|
+
style: C(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
1045
1065
|
}, [
|
|
1046
|
-
(r(),
|
|
1047
|
-
key: `title_${
|
|
1066
|
+
(r(), D(y, {
|
|
1067
|
+
key: `title_${a.titleStep}`,
|
|
1048
1068
|
config: {
|
|
1049
1069
|
title: {
|
|
1050
1070
|
cy: "xy-div-title",
|
|
@@ -1057,14 +1077,14 @@ function Ba(t, s, c, N, i, e) {
|
|
|
1057
1077
|
}
|
|
1058
1078
|
}, null, 8, ["config"]))
|
|
1059
1079
|
], 4)) : h("", !0),
|
|
1060
|
-
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset ? (r(),
|
|
1080
|
+
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset ? (r(), D(k, {
|
|
1061
1081
|
ref: "defails",
|
|
1062
|
-
key: `user_options_${
|
|
1082
|
+
key: `user_options_${a.step}`,
|
|
1063
1083
|
backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1064
1084
|
color: e.FINAL_CONFIG.chart.color,
|
|
1065
|
-
isPrinting:
|
|
1066
|
-
isImaging:
|
|
1067
|
-
uid:
|
|
1085
|
+
isPrinting: a.isPrinting,
|
|
1086
|
+
isImaging: a.isImaging,
|
|
1087
|
+
uid: a.uniqueId,
|
|
1068
1088
|
hasTooltip: e.FINAL_CONFIG.chart.userOptions.buttons.tooltip && e.FINAL_CONFIG.chart.tooltip.show,
|
|
1069
1089
|
hasPdf: e.FINAL_CONFIG.chart.userOptions.buttons.pdf,
|
|
1070
1090
|
hasXls: e.FINAL_CONFIG.chart.userOptions.buttons.csv,
|
|
@@ -1073,12 +1093,14 @@ function Ba(t, s, c, N, i, e) {
|
|
|
1073
1093
|
hasTable: e.FINAL_CONFIG.chart.userOptions.buttons.table,
|
|
1074
1094
|
hasStack: c.dataset.length > 1 && e.FINAL_CONFIG.chart.userOptions.buttons.stack,
|
|
1075
1095
|
hasFullscreen: e.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,
|
|
1076
|
-
isStacked:
|
|
1077
|
-
isFullscreen:
|
|
1096
|
+
isStacked: a.mutableConfig.isStacked,
|
|
1097
|
+
isFullscreen: a.isFullscreen,
|
|
1078
1098
|
chartElement: t.$refs.chart,
|
|
1079
1099
|
position: e.FINAL_CONFIG.chart.userOptions.position,
|
|
1080
|
-
isTooltip:
|
|
1100
|
+
isTooltip: a.mutableConfig.showTooltip,
|
|
1081
1101
|
titles: { ...e.FINAL_CONFIG.chart.userOptions.buttonTitles },
|
|
1102
|
+
hasAnnotator: e.FINAL_CONFIG.chart.userOptions.buttons.annotator,
|
|
1103
|
+
isAnnotation: a.isAnnotator,
|
|
1082
1104
|
onToggleFullscreen: e.toggleFullscreen,
|
|
1083
1105
|
onGeneratePdf: e.generatePdf,
|
|
1084
1106
|
onGenerateCsv: e.generateCsv,
|
|
@@ -1086,76 +1108,84 @@ function Ba(t, s, c, N, i, e) {
|
|
|
1086
1108
|
onToggleTable: e.toggleTable,
|
|
1087
1109
|
onToggleLabels: e.toggleLabels,
|
|
1088
1110
|
onToggleStack: e.toggleStack,
|
|
1089
|
-
onToggleTooltip: e.toggleTooltip
|
|
1090
|
-
|
|
1111
|
+
onToggleTooltip: e.toggleTooltip,
|
|
1112
|
+
onToggleAnnotator: e.toggleAnnotator
|
|
1113
|
+
}, De({ _: 2 }, [
|
|
1091
1114
|
t.$slots.optionTooltip ? {
|
|
1092
1115
|
name: "optionTooltip",
|
|
1093
|
-
fn:
|
|
1094
|
-
|
|
1116
|
+
fn: M(() => [
|
|
1117
|
+
w(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
1095
1118
|
]),
|
|
1096
1119
|
key: "0"
|
|
1097
1120
|
} : void 0,
|
|
1098
1121
|
t.$slots.optionPdf ? {
|
|
1099
1122
|
name: "optionPdf",
|
|
1100
|
-
fn:
|
|
1101
|
-
|
|
1123
|
+
fn: M(() => [
|
|
1124
|
+
w(t.$slots, "optionPdf", {}, void 0, !0)
|
|
1102
1125
|
]),
|
|
1103
1126
|
key: "1"
|
|
1104
1127
|
} : void 0,
|
|
1105
1128
|
t.$slots.optionCsv ? {
|
|
1106
1129
|
name: "optionCsv",
|
|
1107
|
-
fn:
|
|
1108
|
-
|
|
1130
|
+
fn: M(() => [
|
|
1131
|
+
w(t.$slots, "optionCsv", {}, void 0, !0)
|
|
1109
1132
|
]),
|
|
1110
1133
|
key: "2"
|
|
1111
1134
|
} : void 0,
|
|
1112
1135
|
t.$slots.optionImg ? {
|
|
1113
1136
|
name: "optionImg",
|
|
1114
|
-
fn:
|
|
1115
|
-
|
|
1137
|
+
fn: M(() => [
|
|
1138
|
+
w(t.$slots, "optionImg", {}, void 0, !0)
|
|
1116
1139
|
]),
|
|
1117
1140
|
key: "3"
|
|
1118
1141
|
} : void 0,
|
|
1119
1142
|
t.$slots.optionTable ? {
|
|
1120
1143
|
name: "optionTable",
|
|
1121
|
-
fn:
|
|
1122
|
-
|
|
1144
|
+
fn: M(() => [
|
|
1145
|
+
w(t.$slots, "optionTable", {}, void 0, !0)
|
|
1123
1146
|
]),
|
|
1124
1147
|
key: "4"
|
|
1125
1148
|
} : void 0,
|
|
1126
1149
|
t.$slots.optionLabels ? {
|
|
1127
1150
|
name: "optionLabels",
|
|
1128
|
-
fn:
|
|
1129
|
-
|
|
1151
|
+
fn: M(() => [
|
|
1152
|
+
w(t.$slots, "optionLabels", {}, void 0, !0)
|
|
1130
1153
|
]),
|
|
1131
1154
|
key: "5"
|
|
1132
1155
|
} : void 0,
|
|
1133
1156
|
t.$slots.optionStack ? {
|
|
1134
1157
|
name: "optionStack",
|
|
1135
|
-
fn:
|
|
1136
|
-
|
|
1158
|
+
fn: M(() => [
|
|
1159
|
+
w(t.$slots, "optionStack", {}, void 0, !0)
|
|
1137
1160
|
]),
|
|
1138
1161
|
key: "6"
|
|
1139
1162
|
} : void 0,
|
|
1140
1163
|
t.$slots.optionFullscreen ? {
|
|
1141
1164
|
name: "optionFullscreen",
|
|
1142
|
-
fn:
|
|
1143
|
-
|
|
1165
|
+
fn: M(({ toggleFullscreen: i, isFullscreen: o }) => [
|
|
1166
|
+
w(t.$slots, "optionFullscreen", H(E({ toggleFullscreen: i, isFullscreen: o })), void 0, !0)
|
|
1144
1167
|
]),
|
|
1145
1168
|
key: "7"
|
|
1169
|
+
} : void 0,
|
|
1170
|
+
t.$slots.optionAnnotator ? {
|
|
1171
|
+
name: "optionAnnotator",
|
|
1172
|
+
fn: M(({ toggleAnnotator: i, isAnnotator: o }) => [
|
|
1173
|
+
w(t.$slots, "optionAnnotator", H(E({ toggleAnnotator: i, isAnnotator: o })), void 0, !0)
|
|
1174
|
+
]),
|
|
1175
|
+
key: "8"
|
|
1146
1176
|
} : void 0
|
|
1147
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "onToggleFullscreen", "onGeneratePdf", "onGenerateCsv", "onGenerateImage", "onToggleTable", "onToggleLabels", "onToggleStack", "onToggleTooltip"])) : h("", !0),
|
|
1177
|
+
]), 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"])) : h("", !0),
|
|
1148
1178
|
e.isDataset ? (r(), l("svg", {
|
|
1149
|
-
key:
|
|
1179
|
+
key: 3,
|
|
1150
1180
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1151
|
-
class:
|
|
1181
|
+
class: V([{ "vue-data-ui-fullscreen--on": a.isFullscreen, "vue-data-ui-fulscreen--off": !a.isFullscreen }, "vue-ui-xy-svg"]),
|
|
1152
1182
|
width: "100%",
|
|
1153
|
-
viewBox:
|
|
1154
|
-
style:
|
|
1183
|
+
viewBox: a.viewBox,
|
|
1184
|
+
style: C(`background: transparent; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
1155
1185
|
}, [
|
|
1156
|
-
X(
|
|
1157
|
-
e.maxSeries > 0 ? (r(), l("g",
|
|
1158
|
-
|
|
1186
|
+
X(m),
|
|
1187
|
+
e.maxSeries > 0 ? (r(), l("g", Ze, [
|
|
1188
|
+
u("g", Je, [
|
|
1159
1189
|
e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (r(), l("line", {
|
|
1160
1190
|
key: 0,
|
|
1161
1191
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
@@ -1165,17 +1195,17 @@ function Ba(t, s, c, N, i, e) {
|
|
|
1165
1195
|
y1: e.drawingArea.bottom,
|
|
1166
1196
|
y2: e.drawingArea.bottom,
|
|
1167
1197
|
"stroke-linecap": "round"
|
|
1168
|
-
}, null, 8,
|
|
1169
|
-
|
|
1170
|
-
|
|
1198
|
+
}, null, 8, Ke)) : h("", !0),
|
|
1199
|
+
a.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (r(!0), l(N, { key: 2 }, I(e.allScales, (i) => (r(), l("g", null, [
|
|
1200
|
+
i.id === a.selectedScale && i.yLabels.length ? (r(!0), l(N, { key: 0 }, I(i.yLabels, (o) => (r(), l("line", {
|
|
1171
1201
|
x1: e.drawingArea.left + e.xPadding,
|
|
1172
1202
|
x2: e.drawingArea.right - e.xPadding,
|
|
1173
1203
|
y1: e.checkNaN(o.y),
|
|
1174
1204
|
y2: e.checkNaN(o.y),
|
|
1175
|
-
stroke:
|
|
1205
|
+
stroke: i.color,
|
|
1176
1206
|
"stroke-width": 0.5,
|
|
1177
1207
|
"stroke-linecap": "round"
|
|
1178
|
-
}, null, 8,
|
|
1208
|
+
}, null, 8, et))), 256)) : i.yLabels.length ? (r(!0), l(N, { key: 1 }, I(i.yLabels, (o) => (r(), l("line", {
|
|
1179
1209
|
x1: e.drawingArea.left + e.xPadding,
|
|
1180
1210
|
x2: e.drawingArea.right - e.xPadding,
|
|
1181
1211
|
y1: e.checkNaN(o.y),
|
|
@@ -1183,8 +1213,8 @@ function Ba(t, s, c, N, i, e) {
|
|
|
1183
1213
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1184
1214
|
"stroke-width": 0.5,
|
|
1185
1215
|
"stroke-linecap": "round"
|
|
1186
|
-
}, null, 8,
|
|
1187
|
-
]))), 256)) : h("", !0) : (r(), l(
|
|
1216
|
+
}, null, 8, tt))), 256)) : h("", !0)
|
|
1217
|
+
]))), 256)) : h("", !0) : (r(), l(N, { key: 1 }, [
|
|
1188
1218
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (r(), l("line", {
|
|
1189
1219
|
key: 0,
|
|
1190
1220
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
@@ -1194,21 +1224,21 @@ function Ba(t, s, c, N, i, e) {
|
|
|
1194
1224
|
y1: e.drawingArea.top,
|
|
1195
1225
|
y2: e.drawingArea.bottom,
|
|
1196
1226
|
"stroke-linecap": "round"
|
|
1197
|
-
}, null, 8,
|
|
1198
|
-
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (r(), l("g",
|
|
1199
|
-
(r(!0), l(
|
|
1227
|
+
}, null, 8, Qe)) : h("", !0),
|
|
1228
|
+
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (r(), l("g", je, [
|
|
1229
|
+
(r(!0), l(N, null, I(e.yLabels, (i) => (r(), l("line", {
|
|
1200
1230
|
x1: e.drawingArea.left + e.xPadding,
|
|
1201
1231
|
x2: e.drawingArea.right - e.xPadding,
|
|
1202
|
-
y1: e.checkNaN(
|
|
1203
|
-
y2: e.checkNaN(
|
|
1232
|
+
y1: e.checkNaN(i.y),
|
|
1233
|
+
y2: e.checkNaN(i.y),
|
|
1204
1234
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1205
1235
|
"stroke-width": 0.5,
|
|
1206
1236
|
"stroke-linecap": "round"
|
|
1207
|
-
}, null, 8,
|
|
1237
|
+
}, null, 8, $e))), 256))
|
|
1208
1238
|
])) : h("", !0)
|
|
1209
1239
|
], 64)),
|
|
1210
|
-
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (r(), l("g",
|
|
1211
|
-
(r(!0), l(
|
|
1240
|
+
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (r(), l("g", at, [
|
|
1241
|
+
(r(!0), l(N, null, I(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (i, o) => (r(), l("line", {
|
|
1212
1242
|
key: `grid_vertical_line_${o}`,
|
|
1213
1243
|
x1: e.drawingArea.width / e.maxSeries * o + e.drawingArea.left + e.xPadding,
|
|
1214
1244
|
x2: e.drawingArea.width / e.maxSeries * o + e.drawingArea.left + e.xPadding,
|
|
@@ -1216,185 +1246,185 @@ function Ba(t, s, c, N, i, e) {
|
|
|
1216
1246
|
y2: e.drawingArea.bottom,
|
|
1217
1247
|
"stroke-width": "0.5",
|
|
1218
1248
|
stroke: e.FINAL_CONFIG.chart.grid.stroke
|
|
1219
|
-
}, null, 8,
|
|
1249
|
+
}, null, 8, it))), 128))
|
|
1220
1250
|
])) : h("", !0)
|
|
1221
1251
|
]),
|
|
1222
|
-
(r(!0), l(
|
|
1252
|
+
(r(!0), l(N, null, I(e.barSet, (i, o) => (r(), l("defs", {
|
|
1223
1253
|
key: `def_rect_${o}`
|
|
1224
1254
|
}, [
|
|
1225
|
-
|
|
1226
|
-
id: `rectGradient_pos_${o}_${
|
|
1255
|
+
u("linearGradient", {
|
|
1256
|
+
id: `rectGradient_pos_${o}_${a.uniqueId}`,
|
|
1227
1257
|
x2: "0%",
|
|
1228
1258
|
y2: "100%"
|
|
1229
1259
|
}, [
|
|
1230
|
-
|
|
1260
|
+
u("stop", {
|
|
1231
1261
|
offset: "0%",
|
|
1232
|
-
"stop-color":
|
|
1233
|
-
}, null, 8, rt),
|
|
1234
|
-
g("stop", {
|
|
1235
|
-
offset: "62%",
|
|
1236
|
-
"stop-color": `${e.shiftHue(a.color, 0.02)}`
|
|
1262
|
+
"stop-color": i.color
|
|
1237
1263
|
}, null, 8, lt),
|
|
1238
|
-
|
|
1264
|
+
u("stop", {
|
|
1265
|
+
offset: "62%",
|
|
1266
|
+
"stop-color": `${e.shiftHue(i.color, 0.02)}`
|
|
1267
|
+
}, null, 8, st),
|
|
1268
|
+
u("stop", {
|
|
1239
1269
|
offset: "100%",
|
|
1240
|
-
"stop-color": `${e.shiftHue(
|
|
1241
|
-
}, null, 8,
|
|
1242
|
-
], 8,
|
|
1243
|
-
|
|
1244
|
-
id: `rectGradient_neg_${o}_${
|
|
1270
|
+
"stop-color": `${e.shiftHue(i.color, 0.05)}`
|
|
1271
|
+
}, null, 8, nt)
|
|
1272
|
+
], 8, rt),
|
|
1273
|
+
u("linearGradient", {
|
|
1274
|
+
id: `rectGradient_neg_${o}_${a.uniqueId}`,
|
|
1245
1275
|
x2: "0%",
|
|
1246
1276
|
y2: "100%"
|
|
1247
1277
|
}, [
|
|
1248
|
-
|
|
1278
|
+
u("stop", {
|
|
1249
1279
|
offset: "0%",
|
|
1250
|
-
"stop-color": `${e.shiftHue(
|
|
1251
|
-
}, null, 8, ot),
|
|
1252
|
-
g("stop", {
|
|
1253
|
-
offset: "38%",
|
|
1254
|
-
"stop-color": `${e.shiftHue(a.color, 0.02)}`
|
|
1280
|
+
"stop-color": `${e.shiftHue(i.color, 0.05)}`
|
|
1255
1281
|
}, null, 8, ct),
|
|
1256
|
-
|
|
1282
|
+
u("stop", {
|
|
1283
|
+
offset: "38%",
|
|
1284
|
+
"stop-color": `${e.shiftHue(i.color, 0.02)}`
|
|
1285
|
+
}, null, 8, ht),
|
|
1286
|
+
u("stop", {
|
|
1257
1287
|
offset: "100%",
|
|
1258
|
-
"stop-color":
|
|
1259
|
-
}, null, 8,
|
|
1260
|
-
], 8,
|
|
1288
|
+
"stop-color": i.color
|
|
1289
|
+
}, null, 8, dt)
|
|
1290
|
+
], 8, ot)
|
|
1261
1291
|
]))), 128)),
|
|
1262
|
-
(r(!0), l(
|
|
1292
|
+
(r(!0), l(N, null, I(e.plotSet, (i, o) => (r(), l("defs", {
|
|
1263
1293
|
key: `def_plot_${o}`
|
|
1264
1294
|
}, [
|
|
1265
|
-
|
|
1266
|
-
id: `plotGradient_${o}_${
|
|
1295
|
+
u("radialGradient", {
|
|
1296
|
+
id: `plotGradient_${o}_${a.uniqueId}`,
|
|
1267
1297
|
cx: "50%",
|
|
1268
1298
|
cy: "50%",
|
|
1269
1299
|
r: "50%",
|
|
1270
1300
|
fx: "50%",
|
|
1271
1301
|
fy: "50%"
|
|
1272
1302
|
}, [
|
|
1273
|
-
|
|
1303
|
+
u("stop", {
|
|
1274
1304
|
offset: "0%",
|
|
1275
|
-
"stop-color": `${e.shiftHue(
|
|
1276
|
-
}, null, 8,
|
|
1277
|
-
|
|
1305
|
+
"stop-color": `${e.shiftHue(i.color, 0.05)}`
|
|
1306
|
+
}, null, 8, gt),
|
|
1307
|
+
u("stop", {
|
|
1278
1308
|
offset: "100%",
|
|
1279
|
-
"stop-color":
|
|
1280
|
-
}, null, 8,
|
|
1281
|
-
], 8,
|
|
1309
|
+
"stop-color": i.color
|
|
1310
|
+
}, null, 8, ft)
|
|
1311
|
+
], 8, ut)
|
|
1282
1312
|
]))), 128)),
|
|
1283
|
-
(r(!0), l(
|
|
1313
|
+
(r(!0), l(N, null, I(e.lineSet, (i, o) => (r(), l("defs", {
|
|
1284
1314
|
key: `def_line_${o}`
|
|
1285
1315
|
}, [
|
|
1286
|
-
|
|
1287
|
-
id: `lineGradient_${o}_${
|
|
1316
|
+
u("radialGradient", {
|
|
1317
|
+
id: `lineGradient_${o}_${a.uniqueId}`,
|
|
1288
1318
|
cx: "50%",
|
|
1289
1319
|
cy: "50%",
|
|
1290
1320
|
r: "50%",
|
|
1291
1321
|
fx: "50%",
|
|
1292
1322
|
fy: "50%"
|
|
1293
1323
|
}, [
|
|
1294
|
-
|
|
1324
|
+
u("stop", {
|
|
1295
1325
|
offset: "0%",
|
|
1296
|
-
"stop-color": `${e.shiftHue(
|
|
1297
|
-
}, null, 8,
|
|
1298
|
-
|
|
1326
|
+
"stop-color": `${e.shiftHue(i.color, 0.05)}`
|
|
1327
|
+
}, null, 8, mt),
|
|
1328
|
+
u("stop", {
|
|
1299
1329
|
offset: "100%",
|
|
1300
|
-
"stop-color":
|
|
1301
|
-
}, null, 8,
|
|
1302
|
-
], 8,
|
|
1303
|
-
|
|
1304
|
-
id: `areaGradient_${o}_${
|
|
1330
|
+
"stop-color": i.color
|
|
1331
|
+
}, null, 8, It)
|
|
1332
|
+
], 8, Nt),
|
|
1333
|
+
u("linearGradient", {
|
|
1334
|
+
id: `areaGradient_${o}_${a.uniqueId}`,
|
|
1305
1335
|
x1: "0%",
|
|
1306
1336
|
x2: "100%",
|
|
1307
1337
|
y1: "0%",
|
|
1308
1338
|
y2: "0%"
|
|
1309
1339
|
}, [
|
|
1310
|
-
|
|
1340
|
+
u("stop", {
|
|
1311
1341
|
offset: "0%",
|
|
1312
|
-
"stop-color": `${e.setOpacity(e.shiftHue(
|
|
1313
|
-
}, null, 8,
|
|
1314
|
-
|
|
1342
|
+
"stop-color": `${e.setOpacity(e.shiftHue(i.color, 0.03), e.FINAL_CONFIG.line.area.opacity)}`
|
|
1343
|
+
}, null, 8, bt),
|
|
1344
|
+
u("stop", {
|
|
1315
1345
|
offset: "100%",
|
|
1316
|
-
"stop-color": `${e.setOpacity(
|
|
1317
|
-
}, null, 8,
|
|
1318
|
-
], 8,
|
|
1346
|
+
"stop-color": `${e.setOpacity(i.color, e.FINAL_CONFIG.line.area.opacity)}`
|
|
1347
|
+
}, null, 8, Ft)
|
|
1348
|
+
], 8, xt)
|
|
1319
1349
|
]))), 128)),
|
|
1320
|
-
(r(!0), l(
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
style:
|
|
1350
|
+
(r(!0), l(N, null, I(e.highlightAreas, (i) => (r(), l("g", null, [
|
|
1351
|
+
i.show ? (r(!0), l(N, { key: 0 }, I(i.span, (o, n) => (r(), l("g", null, [
|
|
1352
|
+
u("rect", {
|
|
1353
|
+
style: C({
|
|
1324
1354
|
transition: "none",
|
|
1325
|
-
opacity:
|
|
1355
|
+
opacity: i.from + n >= a.slicer.start && i.from + n <= a.slicer.end - 1 ? 1 : 0
|
|
1326
1356
|
}),
|
|
1327
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (
|
|
1357
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (i.from + n - a.slicer.start),
|
|
1328
1358
|
y: e.drawingArea.top,
|
|
1329
1359
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1330
1360
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1331
|
-
fill: e.setOpacity(
|
|
1332
|
-
}, null, 12,
|
|
1333
|
-
|
|
1361
|
+
fill: e.setOpacity(i.color, i.opacity)
|
|
1362
|
+
}, null, 12, _t),
|
|
1363
|
+
i.caption.text && n === 0 ? (r(), l("foreignObject", {
|
|
1334
1364
|
key: 0,
|
|
1335
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (
|
|
1336
|
-
y: e.drawingArea.top +
|
|
1337
|
-
style:
|
|
1365
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (i.from + n - a.slicer.start) - (i.caption.width === "auto" ? 0 : i.caption.width / 2 - e.drawingArea.width / e.maxSeries * i.span / 2),
|
|
1366
|
+
y: e.drawingArea.top + i.caption.offsetY,
|
|
1367
|
+
style: C({
|
|
1338
1368
|
overflow: "visible",
|
|
1339
|
-
opacity:
|
|
1369
|
+
opacity: i.to >= a.slicer.start && i.from < a.slicer.end ? 1 : 0
|
|
1340
1370
|
}),
|
|
1341
1371
|
height: "1",
|
|
1342
|
-
width:
|
|
1372
|
+
width: i.caption.width === "auto" ? e.drawingArea.width / e.maxSeries * i.span : i.caption.width
|
|
1343
1373
|
}, [
|
|
1344
|
-
|
|
1345
|
-
style:
|
|
1346
|
-
}, S(
|
|
1347
|
-
], 12,
|
|
1374
|
+
u("div", {
|
|
1375
|
+
style: C(`padding:${i.caption.padding}px;text-align:${i.caption.textAlign};font-size:${i.caption.fontSize}px;color:${i.caption.color};font-weight:${i.caption.bold ? "bold" : "normal"}`)
|
|
1376
|
+
}, S(i.caption.text), 5)
|
|
1377
|
+
], 12, yt)) : h("", !0)
|
|
1348
1378
|
]))), 256)) : h("", !0)
|
|
1349
1379
|
]))), 256)),
|
|
1350
|
-
|
|
1351
|
-
(r(!0), l(
|
|
1380
|
+
u("g", null, [
|
|
1381
|
+
(r(!0), l(N, null, I(e.maxSeries, (i, o) => (r(), l("g", {
|
|
1352
1382
|
key: `tooltip_trap_${o}`
|
|
1353
1383
|
}, [
|
|
1354
|
-
|
|
1384
|
+
u("rect", {
|
|
1355
1385
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * o,
|
|
1356
1386
|
y: e.drawingArea.top,
|
|
1357
1387
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1358
1388
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1359
|
-
fill: [
|
|
1360
|
-
}, null, 8,
|
|
1389
|
+
fill: [a.selectedMinimapIndex, a.selectedSerieIndex, a.selectedRowIndex].includes(o) ? e.setOpacity(e.FINAL_CONFIG.chart.highlighter.color, e.FINAL_CONFIG.chart.highlighter.opacity) : "transparent"
|
|
1390
|
+
}, null, 8, At)
|
|
1361
1391
|
]))), 128))
|
|
1362
1392
|
]),
|
|
1363
|
-
e.barSet.length ? (r(!0), l(
|
|
1393
|
+
e.barSet.length ? (r(!0), l(N, { key: 0 }, I(e.barSet, (i, o) => (r(), l("g", {
|
|
1364
1394
|
key: `serie_bar_${o}`,
|
|
1365
|
-
class:
|
|
1366
|
-
style:
|
|
1395
|
+
class: V(`serie_bar_${o}`),
|
|
1396
|
+
style: C(`opacity:${a.selectedScale ? a.selectedScale === i.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1367
1397
|
}, [
|
|
1368
|
-
(r(!0), l(
|
|
1369
|
-
key: `bar_plot_${o}_${
|
|
1398
|
+
(r(!0), l(N, null, I(i.plots, (n, g) => (r(), l("g", {
|
|
1399
|
+
key: `bar_plot_${o}_${g}`
|
|
1370
1400
|
}, [
|
|
1371
1401
|
e.canShowValue(n.value) ? (r(), l("rect", {
|
|
1372
1402
|
key: 0,
|
|
1373
1403
|
x: e.calcRectX(n),
|
|
1374
|
-
y:
|
|
1375
|
-
height:
|
|
1376
|
-
width: e.calcRectWidth() - (
|
|
1404
|
+
y: a.mutableConfig.useIndividualScale ? e.calcIndividualRectY(n) : e.calcRectY(n),
|
|
1405
|
+
height: a.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(n)) : Math.abs(e.calcRectHeight(n)),
|
|
1406
|
+
width: e.calcRectWidth() - (a.mutableConfig.useIndividualScale && a.mutableConfig.isStacked ? 0 : e.barPeriodGap) < 0 ? 1e-5 : e.calcRectWidth() - (a.mutableConfig.useIndividualScale && a.mutableConfig.isStacked ? 0 : e.barPeriodGap),
|
|
1377
1407
|
rx: e.FINAL_CONFIG.bar.borderRadius,
|
|
1378
|
-
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${o}_${
|
|
1379
|
-
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ?
|
|
1408
|
+
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${o}_${a.uniqueId})` : `url(#rectGradient_neg_${o}_${a.uniqueId})` : i.color,
|
|
1409
|
+
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? i.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1380
1410
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1381
|
-
}, null, 8,
|
|
1411
|
+
}, null, 8, Ct)) : h("", !0),
|
|
1382
1412
|
n.comment && e.FINAL_CONFIG.chart.comments.show ? (r(), l("foreignObject", {
|
|
1383
1413
|
key: 1,
|
|
1384
1414
|
style: { overflow: "visible" },
|
|
1385
1415
|
height: "12",
|
|
1386
|
-
width: (e.calcRectWidth() - (
|
|
1416
|
+
width: (e.calcRectWidth() - (a.mutableConfig.useIndividualScale && a.mutableConfig.isStacked ? 0 : e.barPeriodGap) < 0 ? 1e-5 : e.calcRectWidth() - (a.mutableConfig.useIndividualScale && a.mutableConfig.isStacked ? 0 : e.barPeriodGap) / 2) + e.FINAL_CONFIG.chart.comments.width,
|
|
1387
1417
|
x: e.calcRectX(n) - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1388
1418
|
y: e.checkNaN(n.y) + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1389
1419
|
}, [
|
|
1390
|
-
|
|
1391
|
-
plot: { ...n, color:
|
|
1420
|
+
w(t.$slots, "plot-comment", {
|
|
1421
|
+
plot: { ...n, color: i.color, seriesIndex: o, datapointIndex: g }
|
|
1392
1422
|
}, void 0, !0)
|
|
1393
1423
|
], 8, Lt)) : h("", !0)
|
|
1394
1424
|
]))), 128)),
|
|
1395
|
-
Object.hasOwn(
|
|
1396
|
-
|
|
1397
|
-
|
|
1425
|
+
Object.hasOwn(i, "useProgression") && i.useProgression === !0 && !isNaN(e.calcLinearProgression(i.plots).trend) ? (r(), l("g", St, [
|
|
1426
|
+
u("defs", null, [
|
|
1427
|
+
u("marker", {
|
|
1398
1428
|
id: `bar_arrow_${o}`,
|
|
1399
1429
|
markerWidth: 7,
|
|
1400
1430
|
markerHeight: 7,
|
|
@@ -1402,38 +1432,38 @@ function Ba(t, s, c, N, i, e) {
|
|
|
1402
1432
|
refY: 7 / 2,
|
|
1403
1433
|
orient: "auto"
|
|
1404
1434
|
}, [
|
|
1405
|
-
|
|
1435
|
+
u("polygon", {
|
|
1406
1436
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1407
|
-
fill:
|
|
1408
|
-
}, null, 8,
|
|
1409
|
-
], 8,
|
|
1437
|
+
fill: i.color
|
|
1438
|
+
}, null, 8, wt)
|
|
1439
|
+
], 8, kt)
|
|
1410
1440
|
]),
|
|
1411
|
-
|
|
1441
|
+
i.plots.length > 1 ? (r(), l("line", {
|
|
1412
1442
|
key: 0,
|
|
1413
|
-
x1: e.calcLinearProgression(
|
|
1414
|
-
x2: e.calcLinearProgression(
|
|
1415
|
-
y1: e.calcLinearProgression(
|
|
1416
|
-
y2: e.calcLinearProgression(
|
|
1443
|
+
x1: e.calcLinearProgression(i.plots).x1,
|
|
1444
|
+
x2: e.calcLinearProgression(i.plots).x2,
|
|
1445
|
+
y1: e.calcLinearProgression(i.plots).y1,
|
|
1446
|
+
y2: e.calcLinearProgression(i.plots).y2,
|
|
1417
1447
|
"stroke-width": 1,
|
|
1418
|
-
stroke:
|
|
1448
|
+
stroke: i.color,
|
|
1419
1449
|
"stroke-dasharray": 2,
|
|
1420
1450
|
"marker-end": `url(#bar_arrow_${o})`
|
|
1421
|
-
}, null, 8,
|
|
1422
|
-
|
|
1451
|
+
}, null, 8, Ot)) : h("", !0),
|
|
1452
|
+
i.plots.length > 1 ? (r(), l("text", {
|
|
1423
1453
|
key: 1,
|
|
1424
1454
|
"text-anchor": "middle",
|
|
1425
|
-
x: e.calcLinearProgression(
|
|
1426
|
-
y: e.calcLinearProgression(
|
|
1427
|
-
"font-size":
|
|
1428
|
-
fill:
|
|
1455
|
+
x: e.calcLinearProgression(i.plots).x2,
|
|
1456
|
+
y: e.calcLinearProgression(i.plots).y2 - 6,
|
|
1457
|
+
"font-size": a.fontSizes.plotLabels,
|
|
1458
|
+
fill: i.color
|
|
1429
1459
|
}, S(e.dataLabel({
|
|
1430
|
-
v: e.calcLinearProgression(
|
|
1460
|
+
v: e.calcLinearProgression(i.plots).trend * 100,
|
|
1431
1461
|
s: "%",
|
|
1432
1462
|
r: 2
|
|
1433
|
-
})), 9,
|
|
1463
|
+
})), 9, Gt)) : h("", !0)
|
|
1434
1464
|
])) : h("", !0)
|
|
1435
1465
|
], 6))), 128)) : h("", !0),
|
|
1436
|
-
!
|
|
1466
|
+
!a.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (r(), l("line", {
|
|
1437
1467
|
key: 1,
|
|
1438
1468
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1439
1469
|
"stroke-width": "1",
|
|
@@ -1442,11 +1472,11 @@ function Ba(t, s, c, N, i, e) {
|
|
|
1442
1472
|
y1: e.checkNaN(e.zero),
|
|
1443
1473
|
y2: e.checkNaN(e.zero),
|
|
1444
1474
|
"stroke-linecap": "round"
|
|
1445
|
-
}, null, 8,
|
|
1446
|
-
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(
|
|
1447
|
-
|
|
1448
|
-
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (
|
|
1449
|
-
x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (
|
|
1475
|
+
}, null, 8, vt)) : h("", !0),
|
|
1476
|
+
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(a.selectedSerieIndex) || a.selectedMinimapIndex !== null) ? (r(), l("g", pt, [
|
|
1477
|
+
u("line", {
|
|
1478
|
+
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (a.selectedSerieIndex || a.selectedMinimapIndex) + e.drawingArea.width / e.maxSeries / 2,
|
|
1479
|
+
x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (a.selectedSerieIndex || a.selectedMinimapIndex) + e.drawingArea.width / e.maxSeries / 2,
|
|
1450
1480
|
y1: e.drawingArea.top,
|
|
1451
1481
|
y2: e.drawingArea.bottom,
|
|
1452
1482
|
stroke: e.FINAL_CONFIG.chart.highlighter.color,
|
|
@@ -1454,7 +1484,7 @@ function Ba(t, s, c, N, i, e) {
|
|
|
1454
1484
|
"stroke-dasharray": e.FINAL_CONFIG.chart.highlighter.lineDasharray,
|
|
1455
1485
|
"stroke-linecap": "round",
|
|
1456
1486
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
1457
|
-
}, null, 8,
|
|
1487
|
+
}, null, 8, zt)
|
|
1458
1488
|
])) : h("", !0),
|
|
1459
1489
|
e.FINAL_CONFIG.chart.grid.frame.show ? (r(), l("rect", {
|
|
1460
1490
|
key: 3,
|
|
@@ -1469,45 +1499,45 @@ function Ba(t, s, c, N, i, e) {
|
|
|
1469
1499
|
"stroke-linecap": e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,
|
|
1470
1500
|
"stroke-linejoin": e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,
|
|
1471
1501
|
"stroke-dasharray": e.FINAL_CONFIG.chart.grid.frame.strokeDasharray
|
|
1472
|
-
}, null, 8,
|
|
1473
|
-
e.FINAL_CONFIG.chart.grid.labels.show ? (r(), l("g",
|
|
1474
|
-
|
|
1475
|
-
(r(!0), l(
|
|
1476
|
-
|
|
1477
|
-
x1:
|
|
1478
|
-
x2:
|
|
1479
|
-
y1:
|
|
1480
|
-
y2:
|
|
1481
|
-
stroke:
|
|
1502
|
+
}, null, 8, Mt)) : h("", !0),
|
|
1503
|
+
e.FINAL_CONFIG.chart.grid.labels.show ? (r(), l("g", Pt, [
|
|
1504
|
+
a.mutableConfig.useIndividualScale ? (r(), l(N, { key: 0 }, [
|
|
1505
|
+
(r(!0), l(N, null, I(e.allScales, (i) => (r(), l("g", null, [
|
|
1506
|
+
u("line", {
|
|
1507
|
+
x1: i.x + e.xPadding,
|
|
1508
|
+
x2: i.x + e.xPadding,
|
|
1509
|
+
y1: a.mutableConfig.isStacked ? e.checkNaN(e.drawingArea.bottom - i.yOffset - i.individualHeight) : e.checkNaN(e.drawingArea.top),
|
|
1510
|
+
y2: a.mutableConfig.isStacked ? e.checkNaN(e.drawingArea.bottom - i.yOffset) : e.checkNaN(e.drawingArea.bottom),
|
|
1511
|
+
stroke: i.color,
|
|
1482
1512
|
"stroke-width": e.FINAL_CONFIG.chart.grid.stroke,
|
|
1483
1513
|
"stroke-linecap": "round",
|
|
1484
|
-
style:
|
|
1485
|
-
}, null, 12,
|
|
1514
|
+
style: C(`opacity:${a.selectedScale ? a.selectedScale === i.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1515
|
+
}, null, 12, Tt)
|
|
1486
1516
|
]))), 256)),
|
|
1487
|
-
(r(!0), l(
|
|
1488
|
-
style:
|
|
1517
|
+
(r(!0), l(N, null, I(e.allScales, (i) => (r(), l("g", {
|
|
1518
|
+
style: C(`opacity:${a.selectedScale ? a.selectedScale === i.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1489
1519
|
}, [
|
|
1490
|
-
|
|
1491
|
-
fill:
|
|
1492
|
-
"font-size":
|
|
1520
|
+
u("text", {
|
|
1521
|
+
fill: i.color,
|
|
1522
|
+
"font-size": a.fontSizes.dataLabels,
|
|
1493
1523
|
"text-anchor": "middle",
|
|
1494
|
-
transform: `translate(${
|
|
1495
|
-
}, S(
|
|
1496
|
-
(r(!0), l(
|
|
1497
|
-
x1:
|
|
1498
|
-
x2:
|
|
1524
|
+
transform: `translate(${i.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + 5}, ${a.mutableConfig.isStacked ? e.drawingArea.bottom - i.yOffset - i.individualHeight / 2 : e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`
|
|
1525
|
+
}, S(i.name) + " " + S(i.scaleLabel ? `- ${i.scaleLabel}` : ""), 9, Vt),
|
|
1526
|
+
(r(!0), l(N, null, I(i.yLabels, (o, n) => (r(), l("line", {
|
|
1527
|
+
x1: i.x - 3 + e.xPadding,
|
|
1528
|
+
x2: i.x + e.xPadding,
|
|
1499
1529
|
y1: e.checkNaN(o.y),
|
|
1500
1530
|
y2: e.checkNaN(o.y),
|
|
1501
|
-
stroke:
|
|
1531
|
+
stroke: i.color,
|
|
1502
1532
|
"stroke-width": 1,
|
|
1503
1533
|
"stroke-linecap": "round"
|
|
1504
|
-
}, null, 8,
|
|
1505
|
-
(r(!0), l(
|
|
1506
|
-
x:
|
|
1507
|
-
y: e.checkNaN(o.y) +
|
|
1508
|
-
"font-size":
|
|
1534
|
+
}, null, 8, Rt))), 256)),
|
|
1535
|
+
(r(!0), l(N, null, I(i.yLabels, (o, n) => (r(), l("text", {
|
|
1536
|
+
x: i.x - 5 + e.xPadding,
|
|
1537
|
+
y: e.checkNaN(o.y) + a.fontSizes.dataLabels / 3,
|
|
1538
|
+
"font-size": a.fontSizes.dataLabels,
|
|
1509
1539
|
"text-anchor": "end",
|
|
1510
|
-
fill:
|
|
1540
|
+
fill: i.color
|
|
1511
1541
|
}, S(e.applyDataLabel(
|
|
1512
1542
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1513
1543
|
o.value,
|
|
@@ -1518,55 +1548,55 @@ function Ba(t, s, c, N, i, e) {
|
|
|
1518
1548
|
r: 1
|
|
1519
1549
|
}),
|
|
1520
1550
|
{ datapoint: o.datapoint, seriesIndex: n }
|
|
1521
|
-
)), 9,
|
|
1551
|
+
)), 9, Dt))), 256))
|
|
1522
1552
|
], 4))), 256))
|
|
1523
|
-
], 64)) : (r(!0), l(
|
|
1553
|
+
], 64)) : (r(!0), l(N, { key: 1 }, I(e.yLabels, (i, o) => (r(), l("g", {
|
|
1524
1554
|
key: `yLabel_${o}`
|
|
1525
1555
|
}, [
|
|
1526
|
-
e.canShowValue(
|
|
1556
|
+
e.canShowValue(i) && i.value >= e.niceScale.min && i.value <= e.niceScale.max ? (r(), l("line", {
|
|
1527
1557
|
key: 0,
|
|
1528
1558
|
x1: e.drawingArea.left + e.xPadding,
|
|
1529
1559
|
x2: e.drawingArea.left - 5 + e.xPadding,
|
|
1530
|
-
y1: e.checkNaN(
|
|
1531
|
-
y2: e.checkNaN(
|
|
1560
|
+
y1: e.checkNaN(i.y),
|
|
1561
|
+
y2: e.checkNaN(i.y),
|
|
1532
1562
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1533
1563
|
"stroke-width": "1",
|
|
1534
1564
|
"stroke-linecap": "round"
|
|
1535
|
-
}, null, 8,
|
|
1536
|
-
|
|
1565
|
+
}, null, 8, Wt)) : h("", !0),
|
|
1566
|
+
i.value >= e.niceScale.min && i.value <= e.niceScale.max ? (r(), l("text", {
|
|
1537
1567
|
key: 1,
|
|
1538
1568
|
x: e.drawingArea.left - 7 + e.xPadding,
|
|
1539
|
-
y: e.checkNaN(
|
|
1540
|
-
"font-size":
|
|
1569
|
+
y: e.checkNaN(i.y + a.fontSizes.dataLabels / 3),
|
|
1570
|
+
"font-size": a.fontSizes.dataLabels,
|
|
1541
1571
|
"text-anchor": "end",
|
|
1542
1572
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
1543
|
-
}, S(e.canShowValue(
|
|
1573
|
+
}, S(e.canShowValue(i.value) ? e.applyDataLabel(
|
|
1544
1574
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1545
|
-
|
|
1575
|
+
i.value,
|
|
1546
1576
|
e.dataLabel({
|
|
1547
|
-
p:
|
|
1548
|
-
v:
|
|
1549
|
-
s:
|
|
1577
|
+
p: i.prefix,
|
|
1578
|
+
v: i.value,
|
|
1579
|
+
s: i.suffix,
|
|
1550
1580
|
r: 1
|
|
1551
1581
|
})
|
|
1552
|
-
) : ""), 9,
|
|
1582
|
+
) : ""), 9, Ht)) : h("", !0)
|
|
1553
1583
|
]))), 128))
|
|
1554
1584
|
])) : h("", !0),
|
|
1555
|
-
(r(!0), l(
|
|
1585
|
+
(r(!0), l(N, null, I(e.plotSet, (i, o) => (r(), l("g", {
|
|
1556
1586
|
key: `serie_plot_${o}`,
|
|
1557
|
-
class:
|
|
1558
|
-
style:
|
|
1587
|
+
class: V(`serie_plot_${o}`),
|
|
1588
|
+
style: C(`opacity:${a.selectedScale ? a.selectedScale === i.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1559
1589
|
}, [
|
|
1560
|
-
(r(!0), l(
|
|
1561
|
-
key: `circle_plot_${o}_${
|
|
1590
|
+
(r(!0), l(N, null, I(i.plots, (n, g) => (r(), l("g", {
|
|
1591
|
+
key: `circle_plot_${o}_${g}`
|
|
1562
1592
|
}, [
|
|
1563
|
-
n && e.canShowValue(n.value) ? (r(),
|
|
1593
|
+
n && e.canShowValue(n.value) ? (r(), D(b, {
|
|
1564
1594
|
key: 0,
|
|
1565
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
1566
|
-
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${o}_${
|
|
1595
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(i.shape) ? i.shape : "circle",
|
|
1596
|
+
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${o}_${a.uniqueId})` : e.FINAL_CONFIG.plot.dot.useSerieColor ? i.color : e.FINAL_CONFIG.plot.dot.fill,
|
|
1567
1597
|
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
1568
|
-
radius:
|
|
1569
|
-
stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor :
|
|
1598
|
+
radius: a.selectedSerieIndex !== null && a.selectedSerieIndex === g || a.selectedMinimapIndex !== null && a.selectedMinimapIndex === g ? (a.plotRadii.plot || 6) * 1.5 : a.plotRadii.plot || 6,
|
|
1599
|
+
stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : i.color,
|
|
1570
1600
|
strokeWidth: e.FINAL_CONFIG.plot.dot.strokeWidth
|
|
1571
1601
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : h("", !0),
|
|
1572
1602
|
n.comment && e.FINAL_CONFIG.chart.comments.show ? (r(), l("foreignObject", {
|
|
@@ -1577,16 +1607,16 @@ function Ba(t, s, c, N, i, e) {
|
|
|
1577
1607
|
x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1578
1608
|
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1579
1609
|
}, [
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
plot: { ...n, color:
|
|
1610
|
+
u("div", Bt, [
|
|
1611
|
+
w(t.$slots, "plot-comment", {
|
|
1612
|
+
plot: { ...n, color: i.color, seriesIndex: o, datapointIndex: g }
|
|
1583
1613
|
}, void 0, !0)
|
|
1584
1614
|
])
|
|
1585
|
-
], 8,
|
|
1615
|
+
], 8, Et)) : h("", !0)
|
|
1586
1616
|
]))), 128)),
|
|
1587
|
-
Object.hasOwn(
|
|
1588
|
-
|
|
1589
|
-
|
|
1617
|
+
Object.hasOwn(i, "useProgression") && i.useProgression === !0 && !isNaN(e.calcLinearProgression(i.plots).trend) ? (r(), l("g", Yt, [
|
|
1618
|
+
u("defs", null, [
|
|
1619
|
+
u("marker", {
|
|
1590
1620
|
id: `plot_arrow_${o}`,
|
|
1591
1621
|
markerWidth: 7,
|
|
1592
1622
|
markerHeight: 7,
|
|
@@ -1594,119 +1624,119 @@ function Ba(t, s, c, N, i, e) {
|
|
|
1594
1624
|
refY: 7 / 2,
|
|
1595
1625
|
orient: "auto"
|
|
1596
1626
|
}, [
|
|
1597
|
-
|
|
1627
|
+
u("polygon", {
|
|
1598
1628
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1599
|
-
fill:
|
|
1600
|
-
}, null, 8,
|
|
1601
|
-
], 8,
|
|
1629
|
+
fill: i.color
|
|
1630
|
+
}, null, 8, qt)
|
|
1631
|
+
], 8, Xt)
|
|
1602
1632
|
]),
|
|
1603
|
-
|
|
1633
|
+
i.plots.length > 1 ? (r(), l("line", {
|
|
1604
1634
|
key: 0,
|
|
1605
|
-
x1: e.calcLinearProgression(
|
|
1606
|
-
x2: e.calcLinearProgression(
|
|
1607
|
-
y1: e.calcLinearProgression(
|
|
1608
|
-
y2: e.calcLinearProgression(
|
|
1635
|
+
x1: e.calcLinearProgression(i.plots).x1,
|
|
1636
|
+
x2: e.calcLinearProgression(i.plots).x2,
|
|
1637
|
+
y1: e.calcLinearProgression(i.plots).y1,
|
|
1638
|
+
y2: e.calcLinearProgression(i.plots).y2,
|
|
1609
1639
|
"stroke-width": 1,
|
|
1610
|
-
stroke:
|
|
1640
|
+
stroke: i.color,
|
|
1611
1641
|
"stroke-dasharray": 2,
|
|
1612
1642
|
"marker-end": `url(#plot_arrow_${o})`
|
|
1613
|
-
}, null, 8,
|
|
1614
|
-
|
|
1643
|
+
}, null, 8, Ut)) : h("", !0),
|
|
1644
|
+
i.plots.length > 1 ? (r(), l("text", {
|
|
1615
1645
|
key: 1,
|
|
1616
1646
|
"text-anchor": "middle",
|
|
1617
|
-
x: e.calcLinearProgression(
|
|
1618
|
-
y: e.calcLinearProgression(
|
|
1619
|
-
"font-size":
|
|
1620
|
-
fill:
|
|
1647
|
+
x: e.calcLinearProgression(i.plots).x2,
|
|
1648
|
+
y: e.calcLinearProgression(i.plots).y2 - 6,
|
|
1649
|
+
"font-size": a.fontSizes.plotLabels,
|
|
1650
|
+
fill: i.color
|
|
1621
1651
|
}, S(e.dataLabel({
|
|
1622
|
-
v: e.calcLinearProgression(
|
|
1652
|
+
v: e.calcLinearProgression(i.plots).trend * 100,
|
|
1623
1653
|
s: "%",
|
|
1624
1654
|
r: 2
|
|
1625
|
-
})), 9,
|
|
1655
|
+
})), 9, Zt)) : h("", !0)
|
|
1626
1656
|
])) : h("", !0)
|
|
1627
1657
|
], 6))), 128)),
|
|
1628
|
-
(r(!0), l(
|
|
1658
|
+
(r(!0), l(N, null, I(e.lineSet, (i, o) => (r(), l("g", {
|
|
1629
1659
|
key: `serie_line_${o}`,
|
|
1630
|
-
class:
|
|
1631
|
-
style:
|
|
1660
|
+
class: V(`serie_line_${o}`),
|
|
1661
|
+
style: C(`opacity:${a.selectedScale ? a.selectedScale === i.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1632
1662
|
}, [
|
|
1633
|
-
|
|
1663
|
+
i.smooth && i.plots.length > 1 ? (r(), l("path", {
|
|
1634
1664
|
key: 0,
|
|
1635
|
-
d: `M${
|
|
1665
|
+
d: `M${i.curve}`,
|
|
1636
1666
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1637
1667
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1638
|
-
"stroke-dasharray":
|
|
1668
|
+
"stroke-dasharray": i.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1639
1669
|
fill: "none"
|
|
1640
|
-
}, null, 8,
|
|
1641
|
-
(r(!0), l(
|
|
1642
|
-
key: `line_${o}_${
|
|
1670
|
+
}, null, 8, Jt)) : i.plots.length > 1 ? (r(), l("g", Kt, [
|
|
1671
|
+
(r(!0), l(N, null, I(i.plots, (n, g) => (r(), l("g", {
|
|
1672
|
+
key: `line_${o}_${g}`
|
|
1643
1673
|
}, [
|
|
1644
|
-
n &&
|
|
1674
|
+
n && g < i.plots.length - 1 && i.plots[g + 1] && e.canShowValue(n.value) && e.canShowValue(i.plots[g + 1].value) ? (r(), l("line", {
|
|
1645
1675
|
key: 0,
|
|
1646
1676
|
x1: n.x,
|
|
1647
|
-
x2:
|
|
1677
|
+
x2: i.plots[g + 1].x,
|
|
1648
1678
|
y1: n.y,
|
|
1649
|
-
y2:
|
|
1679
|
+
y2: i.plots[g + 1].y,
|
|
1650
1680
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1651
1681
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1652
|
-
"stroke-dasharray":
|
|
1682
|
+
"stroke-dasharray": i.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1653
1683
|
"stroke-linejoin": "round",
|
|
1654
1684
|
"stroke-linecap": "round"
|
|
1655
|
-
}, null, 8,
|
|
1685
|
+
}, null, 8, Qt)) : h("", !0)
|
|
1656
1686
|
]))), 128))
|
|
1657
1687
|
])) : h("", !0)
|
|
1658
1688
|
], 6))), 128)),
|
|
1659
|
-
(r(!0), l(
|
|
1689
|
+
(r(!0), l(N, null, I(e.lineSet, (i, o) => (r(), l("g", {
|
|
1660
1690
|
key: `serie_line_${o}`,
|
|
1661
|
-
class:
|
|
1662
|
-
style:
|
|
1691
|
+
class: V(`serie_line_${o}`),
|
|
1692
|
+
style: C(`opacity:${a.selectedScale ? a.selectedScale === i.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1663
1693
|
}, [
|
|
1664
|
-
|
|
1665
|
-
|
|
1694
|
+
i.useArea && i.plots.length > 1 ? (r(), l("g", jt, [
|
|
1695
|
+
i.smooth ? (r(), l("path", {
|
|
1666
1696
|
key: 0,
|
|
1667
|
-
d: `M ${
|
|
1668
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${o}_${
|
|
1669
|
-
}, null, 8,
|
|
1697
|
+
d: `M ${i.plots[0] ? i.plots[0].x : Math.min(...i.plots.filter((n) => !!n).map((n) => n.x))},${a.mutableConfig.isStacked ? e.drawingArea.bottom - i.yOffset : e.drawingArea.bottom} ${i.curve} L ${i.plots.at(-1) ? i.plots.at(-1).x : e.drawingArea.left + e.slot.line * o + e.slot.line / 2},${a.mutableConfig.isStacked ? e.drawingArea.bottom - i.yOffset : e.drawingArea.bottom} Z`,
|
|
1698
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${o}_${a.uniqueId})` : e.setOpacity(i.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1699
|
+
}, null, 8, $t)) : (r(), l("path", {
|
|
1670
1700
|
key: 1,
|
|
1671
|
-
d: `M${
|
|
1672
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${o}_${
|
|
1673
|
-
}, null, 8,
|
|
1701
|
+
d: `M${i.area}Z`,
|
|
1702
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${o}_${a.uniqueId})` : e.setOpacity(i.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1703
|
+
}, null, 8, ea))
|
|
1674
1704
|
])) : h("", !0),
|
|
1675
|
-
|
|
1705
|
+
i.smooth && i.plots.length > 1 ? (r(), l("path", {
|
|
1676
1706
|
key: 1,
|
|
1677
|
-
d: `M${
|
|
1678
|
-
stroke:
|
|
1707
|
+
d: `M${i.curve}`,
|
|
1708
|
+
stroke: i.color,
|
|
1679
1709
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth,
|
|
1680
|
-
"stroke-dasharray":
|
|
1710
|
+
"stroke-dasharray": i.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1681
1711
|
fill: "none"
|
|
1682
|
-
}, null, 8,
|
|
1683
|
-
(r(!0), l(
|
|
1684
|
-
key: `line_${o}_${
|
|
1712
|
+
}, null, 8, ta)) : i.plots.length > 1 ? (r(), l("g", aa, [
|
|
1713
|
+
(r(!0), l(N, null, I(i.plots, (n, g) => (r(), l("g", {
|
|
1714
|
+
key: `line_${o}_${g}`
|
|
1685
1715
|
}, [
|
|
1686
|
-
n &&
|
|
1716
|
+
n && g < i.plots.length - 1 && i.plots[g + 1] && e.canShowValue(n.value) && e.canShowValue(i.plots[g + 1].value) ? (r(), l("line", {
|
|
1687
1717
|
key: 0,
|
|
1688
1718
|
x1: n.x,
|
|
1689
|
-
x2:
|
|
1719
|
+
x2: i.plots[g + 1].x,
|
|
1690
1720
|
y1: n.y,
|
|
1691
|
-
y2:
|
|
1692
|
-
stroke:
|
|
1721
|
+
y2: i.plots[g + 1].y,
|
|
1722
|
+
stroke: i.color,
|
|
1693
1723
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth,
|
|
1694
|
-
"stroke-dasharray":
|
|
1724
|
+
"stroke-dasharray": i.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1695
1725
|
"stroke-linejoin": "round",
|
|
1696
1726
|
"stroke-linecap": "round"
|
|
1697
|
-
}, null, 8,
|
|
1727
|
+
}, null, 8, ia)) : h("", !0)
|
|
1698
1728
|
]))), 128))
|
|
1699
1729
|
])) : h("", !0),
|
|
1700
|
-
(r(!0), l(
|
|
1701
|
-
key: `circle_line_${o}_${
|
|
1730
|
+
(r(!0), l(N, null, I(i.plots, (n, g) => (r(), l("g", {
|
|
1731
|
+
key: `circle_line_${o}_${g}`
|
|
1702
1732
|
}, [
|
|
1703
|
-
n && e.canShowValue(n.value) ? (r(),
|
|
1733
|
+
n && e.canShowValue(n.value) ? (r(), D(b, {
|
|
1704
1734
|
key: 0,
|
|
1705
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
1706
|
-
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${o}_${
|
|
1735
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(i.shape) ? i.shape : "circle",
|
|
1736
|
+
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${o}_${a.uniqueId})` : e.FINAL_CONFIG.line.dot.useSerieColor ? i.color : e.FINAL_CONFIG.line.dot.fill,
|
|
1707
1737
|
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
1708
|
-
radius:
|
|
1709
|
-
stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor :
|
|
1738
|
+
radius: a.selectedSerieIndex !== null && a.selectedSerieIndex === g || a.selectedMinimapIndex !== null && a.selectedMinimapIndex === g ? (a.plotRadii.line || 6) * 1.5 : a.plotRadii.line || 6,
|
|
1739
|
+
stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : i.color,
|
|
1710
1740
|
strokeWidth: e.FINAL_CONFIG.line.dot.strokeWidth
|
|
1711
1741
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : h("", !0),
|
|
1712
1742
|
n.comment && e.FINAL_CONFIG.chart.comments.show ? (r(), l("foreignObject", {
|
|
@@ -1717,16 +1747,16 @@ function Ba(t, s, c, N, i, e) {
|
|
|
1717
1747
|
x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1718
1748
|
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1719
1749
|
}, [
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
plot: { ...n, color:
|
|
1750
|
+
u("div", la, [
|
|
1751
|
+
w(t.$slots, "plot-comment", {
|
|
1752
|
+
plot: { ...n, color: i.color, seriesIndex: o, datapointIndex: g }
|
|
1723
1753
|
}, void 0, !0)
|
|
1724
1754
|
])
|
|
1725
|
-
], 8,
|
|
1755
|
+
], 8, ra)) : h("", !0)
|
|
1726
1756
|
]))), 128)),
|
|
1727
|
-
Object.hasOwn(
|
|
1728
|
-
|
|
1729
|
-
|
|
1757
|
+
Object.hasOwn(i, "useProgression") && i.useProgression === !0 && !isNaN(e.calcLinearProgression(i.plots).trend) ? (r(), l("g", sa, [
|
|
1758
|
+
u("defs", null, [
|
|
1759
|
+
u("marker", {
|
|
1730
1760
|
id: `line_arrow_${o}`,
|
|
1731
1761
|
markerWidth: 7,
|
|
1732
1762
|
markerHeight: 7,
|
|
@@ -1734,110 +1764,110 @@ function Ba(t, s, c, N, i, e) {
|
|
|
1734
1764
|
refY: 7 / 2,
|
|
1735
1765
|
orient: "auto"
|
|
1736
1766
|
}, [
|
|
1737
|
-
|
|
1767
|
+
u("polygon", {
|
|
1738
1768
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1739
|
-
fill:
|
|
1740
|
-
}, null, 8,
|
|
1741
|
-
], 8,
|
|
1769
|
+
fill: i.color
|
|
1770
|
+
}, null, 8, oa)
|
|
1771
|
+
], 8, na)
|
|
1742
1772
|
]),
|
|
1743
|
-
|
|
1773
|
+
i.plots.length > 1 ? (r(), l("line", {
|
|
1744
1774
|
key: 0,
|
|
1745
|
-
x1: e.calcLinearProgression(
|
|
1746
|
-
x2: e.calcLinearProgression(
|
|
1747
|
-
y1: e.calcLinearProgression(
|
|
1748
|
-
y2: e.calcLinearProgression(
|
|
1775
|
+
x1: e.calcLinearProgression(i.plots).x1,
|
|
1776
|
+
x2: e.calcLinearProgression(i.plots).x2,
|
|
1777
|
+
y1: e.calcLinearProgression(i.plots).y1,
|
|
1778
|
+
y2: e.calcLinearProgression(i.plots).y2,
|
|
1749
1779
|
"stroke-width": 1,
|
|
1750
|
-
stroke:
|
|
1780
|
+
stroke: i.color,
|
|
1751
1781
|
"stroke-dasharray": 2,
|
|
1752
1782
|
"marker-end": `url(#line_arrow_${o})`
|
|
1753
|
-
}, null, 8,
|
|
1754
|
-
|
|
1783
|
+
}, null, 8, ca)) : h("", !0),
|
|
1784
|
+
i.plots.length > 1 ? (r(), l("text", {
|
|
1755
1785
|
key: 1,
|
|
1756
1786
|
"text-anchor": "middle",
|
|
1757
|
-
x: e.calcLinearProgression(
|
|
1758
|
-
y: e.calcLinearProgression(
|
|
1759
|
-
"font-size":
|
|
1760
|
-
fill:
|
|
1787
|
+
x: e.calcLinearProgression(i.plots).x2,
|
|
1788
|
+
y: e.calcLinearProgression(i.plots).y2 - 6,
|
|
1789
|
+
"font-size": a.fontSizes.plotLabels,
|
|
1790
|
+
fill: i.color
|
|
1761
1791
|
}, S(e.dataLabel({
|
|
1762
|
-
v: e.calcLinearProgression(
|
|
1792
|
+
v: e.calcLinearProgression(i.plots).trend * 100,
|
|
1763
1793
|
s: "%",
|
|
1764
1794
|
r: 2
|
|
1765
|
-
})), 9,
|
|
1795
|
+
})), 9, ha)) : h("", !0)
|
|
1766
1796
|
])) : h("", !0)
|
|
1767
1797
|
], 6))), 128)),
|
|
1768
|
-
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) &&
|
|
1769
|
-
(r(!0), l(
|
|
1798
|
+
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && a.mutableConfig.dataLabels.show ? (r(), l("g", da, [
|
|
1799
|
+
(r(!0), l(N, null, I(e.barSet, (i, o) => (r(), l("g", {
|
|
1770
1800
|
key: `xLabel_bar_${o}`,
|
|
1771
|
-
class:
|
|
1772
|
-
style:
|
|
1801
|
+
class: V(`xLabel_bar_${o}`),
|
|
1802
|
+
style: C(`opacity:${a.selectedScale ? a.selectedScale === i.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1773
1803
|
}, [
|
|
1774
|
-
(r(!0), l(
|
|
1775
|
-
key: `xLabel_bar_${o}_${
|
|
1804
|
+
(r(!0), l(N, null, I(i.plots, (n, g) => (r(), l("g", {
|
|
1805
|
+
key: `xLabel_bar_${o}_${g}`
|
|
1776
1806
|
}, [
|
|
1777
|
-
n && (!Object.hasOwn(
|
|
1807
|
+
n && (!Object.hasOwn(i, "dataLabels") || i.dataLabels === !0) && e.FINAL_CONFIG.bar.labels.show ? (r(), l("text", {
|
|
1778
1808
|
key: 0,
|
|
1779
|
-
x:
|
|
1809
|
+
x: a.mutableConfig.useIndividualScale && a.mutableConfig.isStacked ? n.x + e.slot.line / 2 : e.calcRectX(n) + e.calcRectWidth() / 2 - e.barPeriodGap / 2,
|
|
1780
1810
|
y: e.checkNaN(n.y) + (n.value > 0 ? e.FINAL_CONFIG.bar.labels.offsetY : -e.FINAL_CONFIG.bar.labels.offsetY * 3),
|
|
1781
1811
|
"text-anchor": "middle",
|
|
1782
|
-
"font-size":
|
|
1812
|
+
"font-size": a.fontSizes.plotLabels,
|
|
1783
1813
|
fill: e.FINAL_CONFIG.bar.labels.color
|
|
1784
1814
|
}, S(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
1785
1815
|
e.FINAL_CONFIG.bar.labels.formatter,
|
|
1786
1816
|
n.value,
|
|
1787
1817
|
e.dataLabel({
|
|
1788
|
-
p:
|
|
1818
|
+
p: i.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
1789
1819
|
v: n.value,
|
|
1790
|
-
s:
|
|
1820
|
+
s: i.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
1791
1821
|
r: e.FINAL_CONFIG.bar.labels.rounding
|
|
1792
1822
|
}),
|
|
1793
1823
|
{
|
|
1794
1824
|
datapoint: n,
|
|
1795
|
-
serie:
|
|
1825
|
+
serie: i
|
|
1796
1826
|
}
|
|
1797
|
-
) : ""), 9,
|
|
1827
|
+
) : ""), 9, ua)) : h("", !0),
|
|
1798
1828
|
n && e.FINAL_CONFIG.bar.serieName.show ? (r(), l("text", {
|
|
1799
1829
|
key: 1,
|
|
1800
|
-
x:
|
|
1830
|
+
x: a.mutableConfig.useIndividualScale && a.mutableConfig.isStacked ? n.x + e.slot.line / 2 : n.x + e.calcRectWidth() * 1.1,
|
|
1801
1831
|
y: n.y + (n.value > 0 ? e.FINAL_CONFIG.bar.serieName.offsetY : -e.FINAL_CONFIG.bar.serieName.offsetY * 3),
|
|
1802
1832
|
"text-anchor": "middle",
|
|
1803
|
-
"font-size":
|
|
1804
|
-
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ?
|
|
1833
|
+
"font-size": a.fontSizes.plotLabels,
|
|
1834
|
+
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? i.color : e.FINAL_CONFIG.bar.serieName.color,
|
|
1805
1835
|
"font-weight": e.FINAL_CONFIG.bar.serieName.bold ? "bold" : "normal"
|
|
1806
|
-
}, S(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source:
|
|
1836
|
+
}, S(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: i.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : i.name), 9, ga)) : h("", !0)
|
|
1807
1837
|
]))), 128))
|
|
1808
1838
|
], 6))), 128))
|
|
1809
1839
|
])) : h("", !0),
|
|
1810
|
-
e.FINAL_CONFIG.plot.labels.show &&
|
|
1811
|
-
(r(!0), l(
|
|
1840
|
+
e.FINAL_CONFIG.plot.labels.show && a.mutableConfig.dataLabels.show ? (r(), l("g", fa, [
|
|
1841
|
+
(r(!0), l(N, null, I(e.plotSet, (i, o) => (r(), l("g", {
|
|
1812
1842
|
key: `xLabel_plot_${o}`,
|
|
1813
|
-
class:
|
|
1814
|
-
style:
|
|
1843
|
+
class: V(`xLabel_plot_${o}`),
|
|
1844
|
+
style: C(`opacity:${a.selectedScale ? a.selectedScale === i.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1815
1845
|
}, [
|
|
1816
|
-
(r(!0), l(
|
|
1817
|
-
key: `xLabel_plot_${o}_${
|
|
1846
|
+
(r(!0), l(N, null, I(i.plots, (n, g) => (r(), l("g", {
|
|
1847
|
+
key: `xLabel_plot_${o}_${g}`
|
|
1818
1848
|
}, [
|
|
1819
|
-
n && !Object.hasOwn(
|
|
1849
|
+
n && !Object.hasOwn(i, "dataLabels") || i.dataLabels === !0 ? (r(), l("text", {
|
|
1820
1850
|
key: 0,
|
|
1821
1851
|
x: n.x,
|
|
1822
1852
|
y: n.y + e.FINAL_CONFIG.plot.labels.offsetY,
|
|
1823
1853
|
"text-anchor": "middle",
|
|
1824
|
-
"font-size":
|
|
1854
|
+
"font-size": a.fontSizes.plotLabels,
|
|
1825
1855
|
fill: e.FINAL_CONFIG.plot.labels.color
|
|
1826
1856
|
}, S(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
1827
1857
|
e.FINAL_CONFIG.plot.labels.formatter,
|
|
1828
1858
|
n.value,
|
|
1829
1859
|
e.dataLabel({
|
|
1830
|
-
p:
|
|
1860
|
+
p: i.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
1831
1861
|
v: n.value,
|
|
1832
|
-
s:
|
|
1862
|
+
s: i.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
1833
1863
|
r: e.FINAL_CONFIG.plot.labels.rounding
|
|
1834
1864
|
}),
|
|
1835
1865
|
{
|
|
1836
1866
|
datapoint: n,
|
|
1837
|
-
serie:
|
|
1867
|
+
serie: i
|
|
1838
1868
|
}
|
|
1839
|
-
) : ""), 9,
|
|
1840
|
-
n &&
|
|
1869
|
+
) : ""), 9, Na)) : h("", !0),
|
|
1870
|
+
n && g === 0 && i.useTag && i.useTag === "start" ? (r(), l("foreignObject", {
|
|
1841
1871
|
key: 1,
|
|
1842
1872
|
x: n.x,
|
|
1843
1873
|
y: n.y - 20,
|
|
@@ -1845,56 +1875,56 @@ function Ba(t, s, c, N, i, e) {
|
|
|
1845
1875
|
width: "150",
|
|
1846
1876
|
style: { overflow: "visible" }
|
|
1847
1877
|
}, [
|
|
1848
|
-
|
|
1849
|
-
style:
|
|
1850
|
-
}, S(
|
|
1851
|
-
], 8,
|
|
1852
|
-
n &&
|
|
1878
|
+
u("div", {
|
|
1879
|
+
style: C(`padding: 3px; background:${e.setOpacity(i.color, 80)};color:${e.adaptColorToBackground(i.color)};width:fit-content;font-size:${a.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1880
|
+
}, S(i.name), 5)
|
|
1881
|
+
], 8, ma)) : h("", !0),
|
|
1882
|
+
n && g === i.plots.length - 1 && i.useTag && i.useTag === "end" ? (r(), l("foreignObject", {
|
|
1853
1883
|
key: 2,
|
|
1854
|
-
x: n.x -
|
|
1884
|
+
x: n.x - i.name.length * (a.fontSizes.plotLabels / 2),
|
|
1855
1885
|
y: n.y - 20,
|
|
1856
1886
|
height: 24,
|
|
1857
1887
|
width: "150",
|
|
1858
1888
|
style: { overflow: "visible" }
|
|
1859
1889
|
}, [
|
|
1860
|
-
|
|
1861
|
-
style:
|
|
1862
|
-
}, S(
|
|
1863
|
-
], 8,
|
|
1890
|
+
u("div", {
|
|
1891
|
+
style: C(`padding: 3px; background:${e.setOpacity(i.color, 80)};color:${e.adaptColorToBackground(i.color)};width:fit-content;font-size:${a.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1892
|
+
}, S(i.name), 5)
|
|
1893
|
+
], 8, Ia)) : h("", !0)
|
|
1864
1894
|
]))), 128))
|
|
1865
1895
|
], 6))), 128))
|
|
1866
1896
|
])) : h("", !0),
|
|
1867
|
-
e.FINAL_CONFIG.line.labels.show &&
|
|
1868
|
-
(r(!0), l(
|
|
1897
|
+
e.FINAL_CONFIG.line.labels.show && a.mutableConfig.dataLabels.show ? (r(), l("g", xa, [
|
|
1898
|
+
(r(!0), l(N, null, I(e.lineSet, (i, o) => (r(), l("g", {
|
|
1869
1899
|
key: `xLabel_line_${o}`,
|
|
1870
|
-
class:
|
|
1871
|
-
style:
|
|
1900
|
+
class: V(`xLabel_line_${o}`),
|
|
1901
|
+
style: C(`opacity:${a.selectedScale ? a.selectedScale === i.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1872
1902
|
}, [
|
|
1873
|
-
(r(!0), l(
|
|
1874
|
-
key: `xLabel_line_${o}_${
|
|
1903
|
+
(r(!0), l(N, null, I(i.plots, (n, g) => (r(), l("g", {
|
|
1904
|
+
key: `xLabel_line_${o}_${g}`
|
|
1875
1905
|
}, [
|
|
1876
|
-
n && !Object.hasOwn(
|
|
1906
|
+
n && !Object.hasOwn(i, "dataLabels") || i.dataLabels === !0 ? (r(), l("text", {
|
|
1877
1907
|
key: 0,
|
|
1878
1908
|
x: n.x,
|
|
1879
1909
|
y: n.y + (n.value > 0 ? e.FINAL_CONFIG.line.labels.offsetY : -e.FINAL_CONFIG.line.labels.offsetY * 3),
|
|
1880
1910
|
"text-anchor": "middle",
|
|
1881
|
-
"font-size":
|
|
1911
|
+
"font-size": a.fontSizes.plotLabels,
|
|
1882
1912
|
fill: e.FINAL_CONFIG.line.labels.color
|
|
1883
1913
|
}, S(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
1884
1914
|
e.FINAL_CONFIG.line.labels.formatter,
|
|
1885
1915
|
n.value,
|
|
1886
1916
|
e.dataLabel({
|
|
1887
|
-
p:
|
|
1917
|
+
p: i.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
1888
1918
|
v: n.value,
|
|
1889
|
-
s:
|
|
1919
|
+
s: i.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
1890
1920
|
r: e.FINAL_CONFIG.line.labels.rounding
|
|
1891
1921
|
}),
|
|
1892
1922
|
{
|
|
1893
1923
|
datapoint: n,
|
|
1894
|
-
serie:
|
|
1924
|
+
serie: i
|
|
1895
1925
|
}
|
|
1896
|
-
) : ""), 9,
|
|
1897
|
-
n &&
|
|
1926
|
+
) : ""), 9, ba)) : h("", !0),
|
|
1927
|
+
n && g === 0 && i.useTag && i.useTag === "start" ? (r(), l("foreignObject", {
|
|
1898
1928
|
key: 1,
|
|
1899
1929
|
x: n.x,
|
|
1900
1930
|
y: n.y - 20,
|
|
@@ -1902,154 +1932,154 @@ function Ba(t, s, c, N, i, e) {
|
|
|
1902
1932
|
width: "150",
|
|
1903
1933
|
style: { overflow: "visible" }
|
|
1904
1934
|
}, [
|
|
1905
|
-
|
|
1906
|
-
style:
|
|
1907
|
-
}, S(
|
|
1908
|
-
], 8,
|
|
1909
|
-
n &&
|
|
1935
|
+
u("div", {
|
|
1936
|
+
style: C(`padding: 3px; background:${e.setOpacity(i.color, 80)};color:${e.adaptColorToBackground(i.color)};width:fit-content;font-size:${a.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1937
|
+
}, S(i.name), 5)
|
|
1938
|
+
], 8, Fa)) : h("", !0),
|
|
1939
|
+
n && g === i.plots.length - 1 && i.useTag && i.useTag === "end" ? (r(), l("foreignObject", {
|
|
1910
1940
|
key: 2,
|
|
1911
|
-
x: n.x -
|
|
1941
|
+
x: n.x - i.name.length * (a.fontSizes.plotLabels / 2),
|
|
1912
1942
|
y: n.y - 20,
|
|
1913
1943
|
height: 24,
|
|
1914
1944
|
width: "150",
|
|
1915
1945
|
style: { overflow: "visible" }
|
|
1916
1946
|
}, [
|
|
1917
|
-
|
|
1918
|
-
style:
|
|
1919
|
-
}, S(
|
|
1920
|
-
], 8,
|
|
1947
|
+
u("div", {
|
|
1948
|
+
style: C(`padding: 3px; background:${e.setOpacity(i.color, 80)};color:${e.adaptColorToBackground(i.color)};width:fit-content;font-size:${a.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1949
|
+
}, S(i.name), 5)
|
|
1950
|
+
], 8, _a)) : h("", !0)
|
|
1921
1951
|
]))), 128))
|
|
1922
1952
|
], 6))), 128))
|
|
1923
1953
|
])) : h("", !0),
|
|
1924
|
-
(r(!0), l(
|
|
1954
|
+
(r(!0), l(N, null, I(e.lineSet, (i, o) => (r(), l("g", {
|
|
1925
1955
|
key: `xLabel_line_${o}`,
|
|
1926
|
-
class:
|
|
1927
|
-
style:
|
|
1956
|
+
class: V(`xLabel_line_${o}`),
|
|
1957
|
+
style: C(`opacity:${a.selectedScale ? a.selectedScale === i.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1928
1958
|
}, [
|
|
1929
|
-
(r(!0), l(
|
|
1930
|
-
key: `xLabel_line_${o}_${
|
|
1959
|
+
(r(!0), l(N, null, I(i.plots, (n, g) => (r(), l("g", {
|
|
1960
|
+
key: `xLabel_line_${o}_${g}`
|
|
1931
1961
|
}, [
|
|
1932
|
-
n &&
|
|
1962
|
+
n && g === 0 && i.showSerieName && i.showSerieName === "start" ? (r(), l("text", {
|
|
1933
1963
|
key: 0,
|
|
1934
|
-
x: n.x -
|
|
1964
|
+
x: n.x - a.fontSizes.plotLabels,
|
|
1935
1965
|
y: n.y,
|
|
1936
|
-
"font-size":
|
|
1966
|
+
"font-size": a.fontSizes.plotLabels,
|
|
1937
1967
|
"text-anchor": "end",
|
|
1938
|
-
fill:
|
|
1968
|
+
fill: i.color,
|
|
1939
1969
|
innerHTML: e.createTSpans({
|
|
1940
|
-
content:
|
|
1941
|
-
fontSize:
|
|
1942
|
-
fill:
|
|
1943
|
-
x: n.x -
|
|
1970
|
+
content: i.name,
|
|
1971
|
+
fontSize: a.fontSizes.plotLabels,
|
|
1972
|
+
fill: i.color,
|
|
1973
|
+
x: n.x - a.fontSizes.plotLabels,
|
|
1944
1974
|
y: n.y,
|
|
1945
1975
|
maxWords: 2
|
|
1946
1976
|
})
|
|
1947
|
-
}, null, 8,
|
|
1948
|
-
n &&
|
|
1977
|
+
}, null, 8, ya)) : h("", !0),
|
|
1978
|
+
n && g === i.plots.length - 1 && i.showSerieName && i.showSerieName === "end" ? (r(), l("text", {
|
|
1949
1979
|
key: 1,
|
|
1950
|
-
x: n.x +
|
|
1980
|
+
x: n.x + a.fontSizes.plotLabels,
|
|
1951
1981
|
y: n.y,
|
|
1952
|
-
"font-size":
|
|
1982
|
+
"font-size": a.fontSizes.plotLabels,
|
|
1953
1983
|
"text-anchor": "start",
|
|
1954
|
-
fill:
|
|
1984
|
+
fill: i.color,
|
|
1955
1985
|
innerHTML: e.createTSpans({
|
|
1956
|
-
content:
|
|
1957
|
-
fontSize:
|
|
1958
|
-
fill:
|
|
1959
|
-
x: n.x +
|
|
1986
|
+
content: i.name,
|
|
1987
|
+
fontSize: a.fontSizes.plotLabels,
|
|
1988
|
+
fill: i.color,
|
|
1989
|
+
x: n.x + a.fontSizes.plotLabels,
|
|
1960
1990
|
y: n.y,
|
|
1961
1991
|
maxWords: 2
|
|
1962
1992
|
})
|
|
1963
|
-
}, null, 8,
|
|
1993
|
+
}, null, 8, Aa)) : h("", !0)
|
|
1964
1994
|
]))), 128))
|
|
1965
1995
|
], 6))), 128)),
|
|
1966
|
-
(r(!0), l(
|
|
1996
|
+
(r(!0), l(N, null, I(e.plotSet, (i, o) => (r(), l("g", {
|
|
1967
1997
|
key: `xLabel_plot_${o}`,
|
|
1968
|
-
class:
|
|
1969
|
-
style:
|
|
1998
|
+
class: V(`xLabel_plot_${o}`),
|
|
1999
|
+
style: C(`opacity:${a.selectedScale ? a.selectedScale === i.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1970
2000
|
}, [
|
|
1971
|
-
(r(!0), l(
|
|
1972
|
-
key: `xLabel_plot_${o}_${
|
|
2001
|
+
(r(!0), l(N, null, I(i.plots, (n, g) => (r(), l("g", {
|
|
2002
|
+
key: `xLabel_plot_${o}_${g}`
|
|
1973
2003
|
}, [
|
|
1974
|
-
n &&
|
|
2004
|
+
n && g === 0 && i.showSerieName && i.showSerieName === "start" ? (r(), l("text", {
|
|
1975
2005
|
key: 0,
|
|
1976
|
-
x: n.x -
|
|
2006
|
+
x: n.x - a.fontSizes.plotLabels,
|
|
1977
2007
|
y: n.y,
|
|
1978
|
-
"font-size":
|
|
2008
|
+
"font-size": a.fontSizes.plotLabels,
|
|
1979
2009
|
"text-anchor": "end",
|
|
1980
|
-
fill:
|
|
2010
|
+
fill: i.color,
|
|
1981
2011
|
innerHTML: e.createTSpans({
|
|
1982
|
-
content:
|
|
1983
|
-
fontSize:
|
|
1984
|
-
fill:
|
|
1985
|
-
x: n.x -
|
|
2012
|
+
content: i.name,
|
|
2013
|
+
fontSize: a.fontSizes.plotLabels,
|
|
2014
|
+
fill: i.color,
|
|
2015
|
+
x: n.x - a.fontSizes.plotLabels,
|
|
1986
2016
|
y: n.y,
|
|
1987
2017
|
maxWords: 2
|
|
1988
2018
|
})
|
|
1989
|
-
}, null, 8,
|
|
1990
|
-
n &&
|
|
2019
|
+
}, null, 8, Ca)) : h("", !0),
|
|
2020
|
+
n && g === i.plots.length - 1 && i.showSerieName && i.showSerieName === "end" ? (r(), l("text", {
|
|
1991
2021
|
key: 1,
|
|
1992
|
-
x: n.x +
|
|
2022
|
+
x: n.x + a.fontSizes.plotLabels,
|
|
1993
2023
|
y: n.y,
|
|
1994
|
-
"font-size":
|
|
2024
|
+
"font-size": a.fontSizes.plotLabels,
|
|
1995
2025
|
"text-anchor": "start",
|
|
1996
|
-
fill:
|
|
2026
|
+
fill: i.color,
|
|
1997
2027
|
innerHTML: e.createTSpans({
|
|
1998
|
-
content:
|
|
1999
|
-
fontSize:
|
|
2000
|
-
fill:
|
|
2001
|
-
x: n.x +
|
|
2028
|
+
content: i.name,
|
|
2029
|
+
fontSize: a.fontSizes.plotLabels,
|
|
2030
|
+
fill: i.color,
|
|
2031
|
+
x: n.x + a.fontSizes.plotLabels,
|
|
2002
2032
|
y: n.y,
|
|
2003
2033
|
maxWords: 2
|
|
2004
2034
|
})
|
|
2005
2035
|
}, null, 8, La)) : h("", !0)
|
|
2006
2036
|
]))), 128))
|
|
2007
2037
|
], 6))), 128)),
|
|
2008
|
-
|
|
2009
|
-
x:
|
|
2038
|
+
a.mutableConfig.useIndividualScale && !a.mutableConfig.isStacked ? (r(!0), l(N, { key: 8 }, I(e.allScales, (i) => (r(), l("rect", {
|
|
2039
|
+
x: i.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
2010
2040
|
y: e.drawingArea.top,
|
|
2011
2041
|
width: e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
2012
2042
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
2013
|
-
fill:
|
|
2014
|
-
onMouseenter: (o) =>
|
|
2015
|
-
onMouseleave: s[0] || (s[0] = (o) =>
|
|
2016
|
-
}, null, 40,
|
|
2017
|
-
|
|
2018
|
-
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !
|
|
2043
|
+
fill: a.selectedScale === i.id ? e.setOpacity(i.color, 20) : "transparent",
|
|
2044
|
+
onMouseenter: (o) => a.selectedScale = i.id,
|
|
2045
|
+
onMouseleave: s[0] || (s[0] = (o) => a.selectedScale = null)
|
|
2046
|
+
}, null, 40, Sa))), 256)) : h("", !0),
|
|
2047
|
+
u("g", null, [
|
|
2048
|
+
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !a.mutableConfig.useIndividualScale ? (r(), l("text", {
|
|
2019
2049
|
key: 0,
|
|
2020
|
-
"font-size":
|
|
2050
|
+
"font-size": a.fontSizes.yAxis,
|
|
2021
2051
|
fill: e.FINAL_CONFIG.chart.grid.labels.color,
|
|
2022
|
-
transform: `translate(${
|
|
2052
|
+
transform: `translate(${a.fontSizes.yAxis + e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`,
|
|
2023
2053
|
"text-anchor": "middle",
|
|
2024
2054
|
style: { transition: "none" }
|
|
2025
|
-
}, S(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9,
|
|
2055
|
+
}, S(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, ka)) : h("", !0),
|
|
2026
2056
|
e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (r(), l("text", {
|
|
2027
2057
|
key: 1,
|
|
2028
2058
|
"text-anchor": "middle",
|
|
2029
|
-
x:
|
|
2030
|
-
y: e.drawingArea.bottom +
|
|
2031
|
-
"font-size":
|
|
2059
|
+
x: a.width / 2,
|
|
2060
|
+
y: e.drawingArea.bottom + a.fontSizes.yAxis + a.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,
|
|
2061
|
+
"font-size": a.fontSizes.yAxis,
|
|
2032
2062
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
2033
|
-
}, S(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9,
|
|
2063
|
+
}, S(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, wa)) : h("", !0)
|
|
2034
2064
|
]),
|
|
2035
|
-
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (r(), l("g",
|
|
2036
|
-
(r(!0), l(
|
|
2065
|
+
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (r(), l("g", Oa, [
|
|
2066
|
+
(r(!0), l(N, null, I(e.timeLabels, (i, o) => (r(), l("g", {
|
|
2037
2067
|
key: `time_label_${o}`
|
|
2038
2068
|
}, [
|
|
2039
|
-
|
|
2069
|
+
i && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || i && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (o === 0 || o === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || i && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && a.selectedSerieIndex === o && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || i && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && o % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (r(), l("text", {
|
|
2040
2070
|
key: 0,
|
|
2041
2071
|
"text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2042
|
-
"font-size":
|
|
2072
|
+
"font-size": a.fontSizes.xAxis,
|
|
2043
2073
|
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
2044
|
-
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * o + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom +
|
|
2045
|
-
}, S(
|
|
2074
|
+
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * o + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom + a.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`
|
|
2075
|
+
}, S(i || ""), 9, Ga)) : h("", !0)
|
|
2046
2076
|
]))), 128))
|
|
2047
2077
|
])) : h("", !0),
|
|
2048
|
-
|
|
2049
|
-
(r(!0), l(
|
|
2078
|
+
u("g", null, [
|
|
2079
|
+
(r(!0), l(N, null, I(e.maxSeries, (i, o) => (r(), l("g", {
|
|
2050
2080
|
key: `tooltip_trap_${o}`
|
|
2051
2081
|
}, [
|
|
2052
|
-
|
|
2082
|
+
u("rect", {
|
|
2053
2083
|
"data-cy-trap": "",
|
|
2054
2084
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * o,
|
|
2055
2085
|
y: e.drawingArea.top,
|
|
@@ -2059,37 +2089,37 @@ function Ba(t, s, c, N, i, e) {
|
|
|
2059
2089
|
onMouseenter: (n) => e.toggleTooltipVisibility(!0, o),
|
|
2060
2090
|
onMouseleave: s[1] || (s[1] = (n) => e.toggleTooltipVisibility(!1)),
|
|
2061
2091
|
onClick: (n) => e.selectX(o)
|
|
2062
|
-
}, null, 40,
|
|
2092
|
+
}, null, 40, va)
|
|
2063
2093
|
]))), 128))
|
|
2064
2094
|
]),
|
|
2065
|
-
e.FINAL_CONFIG.chart.timeTag.show && ![null, void 0].includes(
|
|
2095
|
+
e.FINAL_CONFIG.chart.timeTag.show && ![null, void 0].includes(a.selectedSerieIndex) ? (r(), l("g", pa, [
|
|
2066
2096
|
(r(), l("foreignObject", {
|
|
2067
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
2097
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * a.selectedSerieIndex - 100 + e.drawingArea.width / e.maxSeries / 2,
|
|
2068
2098
|
y: e.drawingArea.bottom,
|
|
2069
2099
|
width: "200",
|
|
2070
2100
|
height: "40",
|
|
2071
2101
|
style: { overflow: "visible !important" }
|
|
2072
2102
|
}, [
|
|
2073
|
-
|
|
2103
|
+
u("div", {
|
|
2074
2104
|
class: "vue-ui-xy-time-tag",
|
|
2075
|
-
style:
|
|
2076
|
-
}, S(e.timeLabels[
|
|
2077
|
-
], 8,
|
|
2078
|
-
|
|
2079
|
-
cx: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
2105
|
+
style: C(`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`)
|
|
2106
|
+
}, S(e.timeLabels[a.selectedSerieIndex] || a.selectedSerieIndex), 5)
|
|
2107
|
+
], 8, za)),
|
|
2108
|
+
u("circle", {
|
|
2109
|
+
cx: e.drawingArea.left + e.drawingArea.width / e.maxSeries * a.selectedSerieIndex + e.drawingArea.width / e.maxSeries / 2,
|
|
2080
2110
|
cy: e.drawingArea.bottom,
|
|
2081
2111
|
r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
|
|
2082
2112
|
fill: e.FINAL_CONFIG.chart.timeTag.circleMarker.color
|
|
2083
|
-
}, null, 8,
|
|
2113
|
+
}, null, 8, Ma)
|
|
2084
2114
|
])) : h("", !0)
|
|
2085
2115
|
])) : h("", !0),
|
|
2086
|
-
|
|
2087
|
-
], 14,
|
|
2088
|
-
t.$slots.watermark ? (r(), l("div",
|
|
2089
|
-
|
|
2116
|
+
w(t.$slots, "svg", { svg: e.svg }, void 0, !0)
|
|
2117
|
+
], 14, Ue)) : h("", !0),
|
|
2118
|
+
t.$slots.watermark ? (r(), l("div", Pa, [
|
|
2119
|
+
w(t.$slots, "watermark", H(E({ isPrinting: a.isPrinting || a.isImaging })), void 0, !0)
|
|
2090
2120
|
])) : h("", !0),
|
|
2091
|
-
e.isDataset ? h("", !0) : (r(),
|
|
2092
|
-
key:
|
|
2121
|
+
e.isDataset ? h("", !0) : (r(), D(P, {
|
|
2122
|
+
key: 5,
|
|
2093
2123
|
config: {
|
|
2094
2124
|
type: "line",
|
|
2095
2125
|
style: {
|
|
@@ -2106,14 +2136,14 @@ function Ba(t, s, c, N, i, e) {
|
|
|
2106
2136
|
}
|
|
2107
2137
|
}
|
|
2108
2138
|
}, null, 8, ["config"])),
|
|
2109
|
-
e.FINAL_CONFIG.chart.zoom.show &&
|
|
2139
|
+
e.FINAL_CONFIG.chart.zoom.show && a.maxX > 6 && e.isDataset ? (r(), D(O, {
|
|
2110
2140
|
ref: "chartSlicer",
|
|
2111
|
-
key: `slicer_${
|
|
2141
|
+
key: `slicer_${a.slicerStep}`,
|
|
2112
2142
|
background: e.FINAL_CONFIG.chart.zoom.color,
|
|
2113
2143
|
fontSize: e.FINAL_CONFIG.chart.zoom.fontSize,
|
|
2114
2144
|
useResetSlot: e.FINAL_CONFIG.chart.zoom.useResetSlot,
|
|
2115
|
-
labelLeft: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[
|
|
2116
|
-
labelRight: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[
|
|
2145
|
+
labelLeft: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[a.slicer.start],
|
|
2146
|
+
labelRight: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[a.slicer.end - 1],
|
|
2117
2147
|
textColor: e.FINAL_CONFIG.chart.color,
|
|
2118
2148
|
inputColor: e.FINAL_CONFIG.chart.zoom.color,
|
|
2119
2149
|
selectColor: e.FINAL_CONFIG.chart.zoom.highlightColor,
|
|
@@ -2124,55 +2154,55 @@ function Ba(t, s, c, N, i, e) {
|
|
|
2124
2154
|
minimapSelectionRadius: e.FINAL_CONFIG.chart.zoom.minimap.selectionRadius,
|
|
2125
2155
|
minimapLineColor: e.FINAL_CONFIG.chart.zoom.minimap.lineColor,
|
|
2126
2156
|
minimapSelectedColorOpacity: e.FINAL_CONFIG.chart.zoom.minimap.selectedColorOpacity,
|
|
2127
|
-
minimapSelectedIndex:
|
|
2157
|
+
minimapSelectedIndex: a.selectedSerieIndex,
|
|
2128
2158
|
minimapIndicatorColor: e.FINAL_CONFIG.chart.zoom.minimap.indicatorColor,
|
|
2129
|
-
max:
|
|
2159
|
+
max: a.maxX,
|
|
2130
2160
|
min: 0,
|
|
2131
|
-
valueStart:
|
|
2132
|
-
valueEnd:
|
|
2133
|
-
start:
|
|
2134
|
-
"onUpdate:start": s[2] || (s[2] = (
|
|
2135
|
-
end:
|
|
2136
|
-
"onUpdate:end": s[3] || (s[3] = (
|
|
2161
|
+
valueStart: a.slicer.start,
|
|
2162
|
+
valueEnd: a.slicer.end,
|
|
2163
|
+
start: a.slicer.start,
|
|
2164
|
+
"onUpdate:start": s[2] || (s[2] = (i) => a.slicer.start = i),
|
|
2165
|
+
end: a.slicer.end,
|
|
2166
|
+
"onUpdate:end": s[3] || (s[3] = (i) => a.slicer.end = i),
|
|
2137
2167
|
onReset: e.refreshSlicer,
|
|
2138
2168
|
onTrapMouse: e.selectMinimapIndex
|
|
2139
2169
|
}, {
|
|
2140
|
-
"reset-action":
|
|
2141
|
-
|
|
2170
|
+
"reset-action": M(({ reset: i }) => [
|
|
2171
|
+
w(t.$slots, "reset-action", H(E({ reset: i })), void 0, !0)
|
|
2142
2172
|
]),
|
|
2143
2173
|
_: 3
|
|
2144
2174
|
}, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "max", "valueStart", "valueEnd", "start", "end", "onReset", "onTrapMouse"])) : h("", !0),
|
|
2145
2175
|
e.FINAL_CONFIG.chart.legend.show ? (r(), l("div", {
|
|
2146
|
-
key:
|
|
2176
|
+
key: 7,
|
|
2147
2177
|
ref: "chartLegend",
|
|
2148
2178
|
class: "vue-ui-xy-legend",
|
|
2149
|
-
style:
|
|
2179
|
+
style: C(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
|
|
2150
2180
|
}, [
|
|
2151
|
-
(r(!0), l(
|
|
2181
|
+
(r(!0), l(N, null, I(e.absoluteDataset, (i, o) => (r(), l("div", {
|
|
2152
2182
|
key: `div_legend_item_${o}`,
|
|
2153
|
-
onClick: (n) => e.segregate(
|
|
2154
|
-
class:
|
|
2183
|
+
onClick: (n) => e.segregate(i),
|
|
2184
|
+
class: V({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": a.segregatedSeries.includes(i.id) })
|
|
2155
2185
|
}, [
|
|
2156
|
-
|
|
2157
|
-
|
|
2186
|
+
a.icons[i.type] === "line" ? (r(), l("svg", Va, [
|
|
2187
|
+
u("rect", {
|
|
2158
2188
|
x: "0",
|
|
2159
2189
|
y: "7",
|
|
2160
2190
|
rx: "3",
|
|
2161
2191
|
stroke: "none",
|
|
2162
2192
|
height: "4",
|
|
2163
2193
|
width: "20",
|
|
2164
|
-
fill:
|
|
2165
|
-
}, null, 8,
|
|
2166
|
-
X(
|
|
2194
|
+
fill: i.color
|
|
2195
|
+
}, null, 8, Ra),
|
|
2196
|
+
X(b, {
|
|
2167
2197
|
plot: { x: 10, y: 9 },
|
|
2168
2198
|
radius: 4,
|
|
2169
|
-
color:
|
|
2170
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
2199
|
+
color: i.color,
|
|
2200
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(i.shape) ? i.shape : "circle",
|
|
2171
2201
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
2172
2202
|
strokeWidth: 1
|
|
2173
2203
|
}, null, 8, ["color", "shape", "stroke"])
|
|
2174
|
-
])) : (r(), l("svg",
|
|
2175
|
-
|
|
2204
|
+
])) : (r(), l("svg", Da, [
|
|
2205
|
+
a.icons[i.type] === "bar" ? (r(), l("rect", {
|
|
2176
2206
|
key: 0,
|
|
2177
2207
|
x: "0",
|
|
2178
2208
|
y: "0",
|
|
@@ -2180,24 +2210,27 @@ function Ba(t, s, c, N, i, e) {
|
|
|
2180
2210
|
height: "12",
|
|
2181
2211
|
width: "12",
|
|
2182
2212
|
stroke: "none",
|
|
2183
|
-
fill:
|
|
2184
|
-
}, null, 8,
|
|
2213
|
+
fill: i.color
|
|
2214
|
+
}, null, 8, Wa)) : (r(), D(b, {
|
|
2185
2215
|
key: 1,
|
|
2186
2216
|
plot: { x: 6, y: 6 },
|
|
2187
2217
|
radius: 5,
|
|
2188
|
-
color:
|
|
2189
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
2218
|
+
color: i.color,
|
|
2219
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(i.shape) ? i.shape : "circle"
|
|
2190
2220
|
}, null, 8, ["color", "shape"]))
|
|
2191
2221
|
])),
|
|
2192
|
-
|
|
2193
|
-
style:
|
|
2194
|
-
}, S(
|
|
2195
|
-
], 10,
|
|
2196
|
-
], 4)) : (r(), l("div",
|
|
2197
|
-
|
|
2222
|
+
u("span", {
|
|
2223
|
+
style: C(`color:${e.FINAL_CONFIG.chart.legend.color}`)
|
|
2224
|
+
}, S(i.name), 5)
|
|
2225
|
+
], 10, Ta))), 128))
|
|
2226
|
+
], 4)) : (r(), l("div", Ha, [
|
|
2227
|
+
w(t.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
|
|
2198
2228
|
], 512)),
|
|
2199
|
-
|
|
2200
|
-
|
|
2229
|
+
t.$slots.source ? (r(), l("div", Ea, [
|
|
2230
|
+
w(t.$slots, "source", {}, void 0, !0)
|
|
2231
|
+
], 512)) : h("", !0),
|
|
2232
|
+
X(G, {
|
|
2233
|
+
show: a.mutableConfig.showTooltip && a.isTooltip,
|
|
2201
2234
|
backgroundColor: e.FINAL_CONFIG.chart.tooltip.backgroundColor,
|
|
2202
2235
|
color: e.FINAL_CONFIG.chart.tooltip.color,
|
|
2203
2236
|
fontSize: e.FINAL_CONFIG.chart.tooltip.fontSize,
|
|
@@ -2211,19 +2244,19 @@ function Ba(t, s, c, N, i, e) {
|
|
|
2211
2244
|
content: e.tooltipContent,
|
|
2212
2245
|
isCustom: e.FINAL_CONFIG.chart.tooltip.customFormat && typeof e.FINAL_CONFIG.chart.tooltip.customFormat == "function"
|
|
2213
2246
|
}, {
|
|
2214
|
-
"tooltip-before":
|
|
2215
|
-
|
|
2247
|
+
"tooltip-before": M(() => [
|
|
2248
|
+
w(t.$slots, "tooltip-before", H(E({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2216
2249
|
]),
|
|
2217
|
-
"tooltip-after":
|
|
2218
|
-
|
|
2250
|
+
"tooltip-after": M(() => [
|
|
2251
|
+
w(t.$slots, "tooltip-after", H(E({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2219
2252
|
]),
|
|
2220
2253
|
_: 3
|
|
2221
2254
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
2222
|
-
e.isDataset ? (r(),
|
|
2223
|
-
key:
|
|
2255
|
+
e.isDataset ? (r(), D(z, {
|
|
2256
|
+
key: 10,
|
|
2224
2257
|
hideDetails: "",
|
|
2225
2258
|
config: {
|
|
2226
|
-
open:
|
|
2259
|
+
open: a.mutableConfig.showTable,
|
|
2227
2260
|
maxHeight: 1e4,
|
|
2228
2261
|
body: {
|
|
2229
2262
|
backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
@@ -2235,19 +2268,19 @@ function Ba(t, s, c, N, i, e) {
|
|
|
2235
2268
|
}
|
|
2236
2269
|
}
|
|
2237
2270
|
}, {
|
|
2238
|
-
content:
|
|
2239
|
-
|
|
2240
|
-
style:
|
|
2271
|
+
content: M(() => [
|
|
2272
|
+
u("div", {
|
|
2273
|
+
style: C(`${a.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
2241
2274
|
}, [
|
|
2242
|
-
|
|
2243
|
-
|
|
2275
|
+
u("div", Ba, [
|
|
2276
|
+
We(u("input", {
|
|
2244
2277
|
type: "checkbox",
|
|
2245
|
-
"onUpdate:modelValue": s[4] || (s[4] = (
|
|
2278
|
+
"onUpdate:modelValue": s[4] || (s[4] = (i) => a.showSparklineTable = i)
|
|
2246
2279
|
}, null, 512), [
|
|
2247
|
-
[
|
|
2280
|
+
[He, a.showSparklineTable]
|
|
2248
2281
|
]),
|
|
2249
|
-
|
|
2250
|
-
onClick: s[5] || (s[5] = (
|
|
2282
|
+
u("div", {
|
|
2283
|
+
onClick: s[5] || (s[5] = (i) => a.showSparklineTable = !a.showSparklineTable),
|
|
2251
2284
|
style: { cursor: "pointer" }
|
|
2252
2285
|
}, [
|
|
2253
2286
|
X(p, {
|
|
@@ -2257,26 +2290,26 @@ function Ba(t, s, c, N, i, e) {
|
|
|
2257
2290
|
}, null, 8, ["stroke"])
|
|
2258
2291
|
])
|
|
2259
2292
|
]),
|
|
2260
|
-
|
|
2261
|
-
key: `sparkline_${
|
|
2293
|
+
a.showSparklineTable ? (r(), D(_, {
|
|
2294
|
+
key: `sparkline_${a.segregateStep}`,
|
|
2262
2295
|
dataset: e.tableSparklineDataset,
|
|
2263
2296
|
config: e.tableSparklineConfig
|
|
2264
|
-
}, null, 8, ["dataset", "config"])) : (r(),
|
|
2265
|
-
key: `table_${
|
|
2297
|
+
}, null, 8, ["dataset", "config"])) : (r(), D(L, {
|
|
2298
|
+
key: `table_${a.tableStep}`,
|
|
2266
2299
|
colNames: e.dataTable.colNames,
|
|
2267
2300
|
head: e.dataTable.head,
|
|
2268
2301
|
body: e.dataTable.body,
|
|
2269
2302
|
config: e.dataTable.config,
|
|
2270
2303
|
title: `${e.FINAL_CONFIG.chart.title.text}${e.FINAL_CONFIG.chart.title.subtitle.text ? ` : ${e.FINAL_CONFIG.chart.title.subtitle.text}` : ""}`,
|
|
2271
|
-
onClose: s[6] || (s[6] = (
|
|
2304
|
+
onClose: s[6] || (s[6] = (i) => a.mutableConfig.showTable = !1)
|
|
2272
2305
|
}, {
|
|
2273
|
-
th:
|
|
2274
|
-
|
|
2306
|
+
th: M(({ th: i }) => [
|
|
2307
|
+
u("div", { innerHTML: i }, null, 8, Ya)
|
|
2275
2308
|
]),
|
|
2276
|
-
td:
|
|
2277
|
-
|
|
2309
|
+
td: M(({ td: i }) => [
|
|
2310
|
+
Ee(S(isNaN(Number(i)) ? i : e.dataLabel({
|
|
2278
2311
|
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
2279
|
-
v:
|
|
2312
|
+
v: i,
|
|
2280
2313
|
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
2281
2314
|
r: e.FINAL_CONFIG.table.rounding
|
|
2282
2315
|
})), 1)
|
|
@@ -2287,9 +2320,9 @@ function Ba(t, s, c, N, i, e) {
|
|
|
2287
2320
|
]),
|
|
2288
2321
|
_: 1
|
|
2289
2322
|
}, 8, ["config"])) : h("", !0)
|
|
2290
|
-
], 14,
|
|
2323
|
+
], 14, qe);
|
|
2291
2324
|
}
|
|
2292
|
-
const
|
|
2325
|
+
const oi = /* @__PURE__ */ Be(Xe, [["render", Xa], ["__scopeId", "data-v-fd323aed"]]);
|
|
2293
2326
|
export {
|
|
2294
|
-
|
|
2327
|
+
oi as default
|
|
2295
2328
|
};
|