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,145 +1,146 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import
|
|
5
|
-
import { _ as
|
|
6
|
-
import { u as
|
|
7
|
-
import { S as
|
|
8
|
-
import
|
|
9
|
-
import { u as
|
|
10
|
-
import { _ as
|
|
11
|
-
import {
|
|
12
|
-
|
|
1
|
+
import { ref as P, computed as V, watch as Ee, onMounted as dt, onBeforeUnmount as ct, openBlock as a, createElementBlock as l, normalizeClass as ne, normalizeStyle as N, createBlock as Le, createCommentVNode as g, unref as f, createSlots as ht, withCtx as Q, renderSlot as M, normalizeProps as H, guardReactiveProps as re, toDisplayString as E, createVNode as se, createElementVNode as A, Fragment as p, renderList as L, mergeProps as Re, pushScopeId as ft, popScopeId as gt } from "vue";
|
|
2
|
+
import { u as mt, c as pt, t as yt, a as xt, p as D, b as kt, I as bt, e as St, d as Oe, m as wt, C as Ye, X as At, j as _t, k as pe, n as Ne, i as X, f as B, R as Je, v as Z, x as ze, y as Fe } from "./index-Bya_q1J-.js";
|
|
3
|
+
import { t as Lt, u as zt } from "./useResponsive-BY8tgM1n.js";
|
|
4
|
+
import $e from "./BaseIcon-BbvG1AlW.js";
|
|
5
|
+
import { _ as $t } from "./Tooltip-Cz24YLfw.js";
|
|
6
|
+
import { u as Ct, U as Pt } from "./usePrinter-CiHd1FwD.js";
|
|
7
|
+
import { S as Tt } from "./Slicer-TfpN2Cr4.js";
|
|
8
|
+
import It from "./vue-ui-skeleton-BYssP0K4.js";
|
|
9
|
+
import { u as Qe } from "./useNestedProp-B33hazbH.js";
|
|
10
|
+
import { _ as Et } from "./PackageVersion-VkaUzgmt.js";
|
|
11
|
+
import { P as Rt } from "./PenAndPaper-DAZYA8Ew.js";
|
|
12
|
+
import { _ as Ot } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const _ = {
|
|
13
14
|
LINE: "LINE",
|
|
14
15
|
BAR: "BAR",
|
|
15
16
|
DONUT: "DONUT"
|
|
16
|
-
},
|
|
17
|
-
function
|
|
18
|
-
let
|
|
19
|
-
if ((typeof s == "number" || typeof s == "string") && console.warn(`The provided dataset (${s}) is not sufficient to build a chart`),
|
|
20
|
-
if (!
|
|
17
|
+
}, Nt = ["SERIE", "SERIES", "DATA", "VALUE", "VALUES", "NUM"];
|
|
18
|
+
function Ft({ dataset: s, barLineSwitch: $ = 6 }) {
|
|
19
|
+
let m = null, R = null, q = 0;
|
|
20
|
+
if ((typeof s == "number" || typeof s == "string") && console.warn(`The provided dataset (${s}) is not sufficient to build a chart`), ye(s) && (Y(s) && (s.length < $ ? m = _.BAR : m = _.LINE, R = s, q = s.length), Ce(s))) {
|
|
21
|
+
if (!Bt(s))
|
|
21
22
|
return console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."), !1;
|
|
22
|
-
const oe = Object.keys(s[0]),
|
|
23
|
-
if (!oe.some((
|
|
23
|
+
const oe = Object.keys(s[0]), ve = Object.values(s[0]);
|
|
24
|
+
if (!oe.some((T) => Ut(T)))
|
|
24
25
|
return console.warn("The data type of the dataset objects in the array must contain one of the following keys: DATA, SERIES, VALUE, VALUES, NUM. Casing is not important."), !1;
|
|
25
|
-
|
|
26
|
-
...
|
|
27
|
-
data:
|
|
28
|
-
}))), s = s.map((
|
|
26
|
+
Ke(ve, (T) => typeof T == "number") && (m = _.DONUT, R = s), Ke(ve, (T) => Array.isArray(T) && Y(T)) && (et(s) > $ ? m = _.LINE : m = _.BAR, q = et(s), R = s.map((T) => ({
|
|
27
|
+
...T,
|
|
28
|
+
data: Dt(T, (G) => Y(G))
|
|
29
|
+
}))), s = s.map((T) => tt(T)), R = R.map((T) => tt(T));
|
|
29
30
|
}
|
|
30
|
-
return
|
|
31
|
+
return ye(s) && [...new Set(s.flatMap((oe) => Array.isArray(oe)))][0], {
|
|
31
32
|
dataset: s,
|
|
32
|
-
type:
|
|
33
|
+
type: m,
|
|
33
34
|
usableDataset: R,
|
|
34
35
|
maxSeriesLength: q
|
|
35
36
|
};
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
-
return !s ||
|
|
38
|
+
function at(s) {
|
|
39
|
+
return !s || ye(s) && !s.length;
|
|
39
40
|
}
|
|
40
|
-
function
|
|
41
|
+
function ye(s) {
|
|
41
42
|
return Array.isArray(s);
|
|
42
43
|
}
|
|
43
|
-
function
|
|
44
|
-
if (!
|
|
45
|
-
const $ = s.map((
|
|
46
|
-
return ![...new Set($.flatMap((
|
|
44
|
+
function Y(s) {
|
|
45
|
+
if (!ye(s) || at(s)) return !1;
|
|
46
|
+
const $ = s.map((m) => Number(m));
|
|
47
|
+
return ![...new Set($.flatMap((m) => typeof m == "number" && !isNaN(m)))].includes(!1);
|
|
47
48
|
}
|
|
48
|
-
function
|
|
49
|
-
return !
|
|
49
|
+
function Ce(s) {
|
|
50
|
+
return !ye(s) || at(s) || !![...new Set(s.flatMap((m) => typeof m == "object" && !Array.isArray(m)))].includes(!1) ? !1 : !s.map((m) => Object.keys(m).length > 0).includes(!1);
|
|
50
51
|
}
|
|
51
|
-
function
|
|
52
|
-
const
|
|
53
|
-
if (
|
|
52
|
+
function Mt(s, $) {
|
|
53
|
+
const m = Object.keys(s).sort(), R = Object.keys($).sort();
|
|
54
|
+
if (m.length !== R.length)
|
|
54
55
|
return !1;
|
|
55
|
-
for (let q = 0; q <
|
|
56
|
-
const
|
|
57
|
-
if (
|
|
56
|
+
for (let q = 0; q < m.length; q += 1) {
|
|
57
|
+
const W = m[q], le = R[q];
|
|
58
|
+
if (W !== le || typeof s[W] != typeof $[le])
|
|
58
59
|
return !1;
|
|
59
60
|
}
|
|
60
61
|
return !0;
|
|
61
62
|
}
|
|
62
|
-
function
|
|
63
|
+
function Bt(s) {
|
|
63
64
|
if (s.length <= 1) return !0;
|
|
64
65
|
for (let $ = 0; $ < s.length; $ += 1)
|
|
65
|
-
for (let
|
|
66
|
-
if (!
|
|
66
|
+
for (let m = $ + 1; m < s.length; m += 1)
|
|
67
|
+
if (!Mt(s[$], s[m]))
|
|
67
68
|
return !1;
|
|
68
69
|
return !0;
|
|
69
70
|
}
|
|
70
|
-
function
|
|
71
|
-
return
|
|
71
|
+
function Ut(s) {
|
|
72
|
+
return Nt.includes(s.toUpperCase());
|
|
72
73
|
}
|
|
73
|
-
function
|
|
74
|
-
let
|
|
74
|
+
function Ke(s, $) {
|
|
75
|
+
let m = [];
|
|
75
76
|
for (let R = 0; R < s.length; R += 1)
|
|
76
|
-
|
|
77
|
-
return
|
|
77
|
+
m.push($(s[R]));
|
|
78
|
+
return m.includes(!0);
|
|
78
79
|
}
|
|
79
|
-
function
|
|
80
|
-
return Math.max(...[...s].flatMap(($) => Object.values($).filter((
|
|
80
|
+
function et(s) {
|
|
81
|
+
return Math.max(...[...s].flatMap(($) => Object.values($).filter((m) => Y(m)).map((m) => m.length)));
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
-
return Object.values(s).filter((
|
|
83
|
+
function Dt(s, $) {
|
|
84
|
+
return Object.values(s).filter((m) => $(m))[0];
|
|
84
85
|
}
|
|
85
|
-
function
|
|
86
|
+
function tt(s) {
|
|
86
87
|
const $ = {};
|
|
87
|
-
for (let
|
|
88
|
-
s.hasOwnProperty(
|
|
88
|
+
for (let m in s)
|
|
89
|
+
s.hasOwnProperty(m) && ($[m.toUpperCase()] = s[m]);
|
|
89
90
|
return $;
|
|
90
91
|
}
|
|
91
|
-
const
|
|
92
|
+
const lt = (s) => (ft("data-v-606895e6"), s = s(), gt(), s), Vt = ["id"], qt = ["xmlns", "viewBox"], Wt = ["id"], jt = ["id"], Gt = /* @__PURE__ */ lt(() => /* @__PURE__ */ A("feColorMatrix", {
|
|
92
93
|
type: "saturate",
|
|
93
94
|
values: "0"
|
|
94
|
-
}, null, -1)),
|
|
95
|
+
}, null, -1)), Ht = ["id"], Xt = ["flood-color"], Zt = {
|
|
95
96
|
key: 0,
|
|
96
97
|
class: "donut-label-connectors"
|
|
97
|
-
},
|
|
98
|
+
}, Yt = ["d", "stroke", "stroke-width", "filter"], Jt = ["cx", "cy", "r", "fill", "filter"], Qt = { class: "donut" }, Kt = ["d", "fill", "stroke", "stroke-width", "filter"], ea = ["d", "onMouseenter", "onClick"], ta = {
|
|
98
99
|
key: 1,
|
|
99
100
|
class: "donut-labels quick-animation"
|
|
100
|
-
},
|
|
101
|
+
}, aa = ["cx", "cy", "fill", "stroke", "filter"], la = ["text-anchor", "x", "y", "fill", "font-size", "filter"], oa = ["text-anchor", "x", "y", "fill", "font-size", "filter"], ia = {
|
|
101
102
|
key: 2,
|
|
102
103
|
class: "donut-hollow quick-animation"
|
|
103
|
-
},
|
|
104
|
+
}, ua = ["x", "y", "font-size", "fill"], na = ["x", "y", "font-size", "fill"], ra = {
|
|
104
105
|
key: 0,
|
|
105
106
|
class: "line-grid"
|
|
106
|
-
},
|
|
107
|
+
}, sa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], va = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], da = {
|
|
107
108
|
key: 1,
|
|
108
109
|
class: "line-axis"
|
|
109
|
-
},
|
|
110
|
+
}, ca = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ha = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], fa = {
|
|
110
111
|
key: 2,
|
|
111
112
|
class: "yLabels"
|
|
112
|
-
},
|
|
113
|
+
}, ga = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ma = ["x", "y", "font-size", "fill"], pa = {
|
|
113
114
|
key: 3,
|
|
114
115
|
class: "periodLabels"
|
|
115
|
-
},
|
|
116
|
+
}, ya = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], xa = ["font-size", "text-anchor", "fill", "transform"], ka = { class: "plots" }, ba = { class: "line-plot-series" }, Sa = ["d", "stroke", "stroke-width"], wa = ["d", "stroke", "stroke-width"], Aa = ["d", "stroke", "stroke-width"], _a = ["d", "stroke", "stroke-width"], La = ["cx", "cy", "fill", "stroke"], za = {
|
|
116
117
|
key: 4,
|
|
117
118
|
class: "dataLabels"
|
|
118
|
-
},
|
|
119
|
+
}, $a = ["font-size", "fill", "x", "y"], Ca = { class: "tooltip-traps" }, Pa = ["x", "y", "height", "width", "fill", "onMouseenter", "onClick"], Ta = {
|
|
119
120
|
key: 0,
|
|
120
121
|
class: "line-grid"
|
|
121
|
-
},
|
|
122
|
+
}, Ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ea = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ra = {
|
|
122
123
|
key: 1,
|
|
123
124
|
class: "line-axis"
|
|
124
|
-
},
|
|
125
|
+
}, Oa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Na = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Fa = {
|
|
125
126
|
key: 2,
|
|
126
127
|
class: "yLabels"
|
|
127
|
-
},
|
|
128
|
+
}, Ma = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ba = ["x", "y", "font-size", "fill"], Ua = {
|
|
128
129
|
key: 3,
|
|
129
130
|
class: "periodLabels"
|
|
130
|
-
},
|
|
131
|
+
}, Da = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Va = ["font-size", "text-anchor", "transform", "fill"], qa = { class: "plots" }, Wa = ["x", "width", "height", "y", "fill", "stroke", "stroke-width"], ja = ["to"], Ga = ["from", "to"], Ha = {
|
|
131
132
|
key: 4,
|
|
132
133
|
class: "dataLabels"
|
|
133
|
-
},
|
|
134
|
+
}, Xa = ["x", "y", "font-size", "fill"], Za = { class: "tooltip-traps" }, Ya = ["x", "y", "height", "width", "fill", "onMouseenter", "onClick"], Ja = {
|
|
134
135
|
key: 3,
|
|
135
136
|
class: "axis-labels"
|
|
136
|
-
},
|
|
137
|
-
key:
|
|
137
|
+
}, Qa = { key: 0 }, Ka = ["font-size", "fill", "x", "y"], el = { key: 1 }, tl = ["font-size", "fill", "x", "y"], al = { key: 2 }, ll = ["font-size", "fill", "transform"], ol = { key: 3 }, il = ["font-size", "fill", "transform"], ul = {
|
|
138
|
+
key: 5,
|
|
138
139
|
class: "vue-data-ui-watermark"
|
|
139
|
-
},
|
|
140
|
+
}, nl = ["onClick"], rl = ["onClick"], sl = ["onClick"], vl = {
|
|
140
141
|
key: 1,
|
|
141
142
|
class: "vue-ui-quick-chart-not-processable"
|
|
142
|
-
},
|
|
143
|
+
}, dl = /* @__PURE__ */ lt(() => /* @__PURE__ */ A("span", null, "Dataset is not processable", -1)), cl = {
|
|
143
144
|
__name: "vue-ui-quick-chart",
|
|
144
145
|
props: {
|
|
145
146
|
config: {
|
|
@@ -156,31 +157,31 @@ const et = (s) => (dt("data-v-b839026c"), s = s(), ct(), s), Mt = ["id"], Bt = [
|
|
|
156
157
|
}
|
|
157
158
|
},
|
|
158
159
|
emits: ["selectDatapoint", "selectLegend"],
|
|
159
|
-
setup(s, { expose: $, emit:
|
|
160
|
-
const R = s, { vue_ui_quick_chart: q } =
|
|
161
|
-
get: () =>
|
|
160
|
+
setup(s, { expose: $, emit: m }) {
|
|
161
|
+
const R = s, { vue_ui_quick_chart: q } = mt(), W = P(null), le = P(null), oe = P(null), ve = P(null), T = P(pt()), G = P(!1), de = P(null), K = P(""), j = P(null), Me = P(null), w = P([]), Be = P(0), xe = P(0), e = V({
|
|
162
|
+
get: () => Ue(),
|
|
162
163
|
set: (u) => u
|
|
163
164
|
});
|
|
164
|
-
function
|
|
165
|
-
const u =
|
|
165
|
+
function Ue() {
|
|
166
|
+
const u = Qe({
|
|
166
167
|
userConfig: R.config,
|
|
167
168
|
defaultConfig: q
|
|
168
169
|
});
|
|
169
170
|
return u.theme ? {
|
|
170
|
-
...
|
|
171
|
-
userConfig:
|
|
171
|
+
...Qe({
|
|
172
|
+
userConfig: yt.vue_ui_quick_chart[u.theme] || R.config,
|
|
172
173
|
defaultConfig: u
|
|
173
174
|
}),
|
|
174
|
-
customPalette:
|
|
175
|
+
customPalette: xt[u.theme] || D
|
|
175
176
|
} : u;
|
|
176
177
|
}
|
|
177
|
-
|
|
178
|
-
e.value =
|
|
179
|
-
}, { deep: !0 }),
|
|
180
|
-
|
|
178
|
+
Ee(() => R.config, (u) => {
|
|
179
|
+
e.value = Ue(), S.value.width = e.value.width, S.value.height = e.value.height, qe();
|
|
180
|
+
}, { deep: !0 }), Ee(() => R.dataset, (u) => {
|
|
181
|
+
x.value = he.value, k.value.start = 0, k.value.end = x.value.maxSeriesLength, xe.value += 1;
|
|
181
182
|
}, { deep: !0 });
|
|
182
|
-
const
|
|
183
|
-
const u =
|
|
183
|
+
const ce = V(() => kt(e.value.customPalette)), he = V(() => {
|
|
184
|
+
const u = Ft({ dataset: bt(R.dataset, [
|
|
184
185
|
"serie",
|
|
185
186
|
"series",
|
|
186
187
|
"data",
|
|
@@ -189,128 +190,129 @@ const et = (s) => (dt("data-v-b839026c"), s = s(), ct(), s), Mt = ["id"], Bt = [
|
|
|
189
190
|
"num"
|
|
190
191
|
]), barLineSwitch: e.value.chartIsBarUnderDatasetLength });
|
|
191
192
|
return u || console.error("VueUiQuickChart : Dataset is not processable"), u;
|
|
192
|
-
}),
|
|
193
|
-
|
|
194
|
-
u ||
|
|
193
|
+
}), x = P(he.value), ot = V(() => !!x.value), z = V(() => x.value ? x.value.type : null);
|
|
194
|
+
Ee(() => z.value, (u) => {
|
|
195
|
+
u || St({
|
|
195
196
|
componentName: "VueUiQuickChart",
|
|
196
197
|
type: "dataset"
|
|
197
198
|
});
|
|
198
199
|
}, { immediate: !0 });
|
|
199
|
-
const { isPrinting: ke, isImaging: be, generatePdf:
|
|
200
|
-
elementId: `${z.value}_${
|
|
200
|
+
const { isPrinting: ke, isImaging: be, generatePdf: De, generateImage: Ve } = Ct({
|
|
201
|
+
elementId: `${z.value}_${T.value}`,
|
|
201
202
|
fileName: e.value.title || z.value
|
|
202
|
-
}), S =
|
|
203
|
+
}), S = P({
|
|
203
204
|
width: e.value.width,
|
|
204
205
|
height: e.value.height
|
|
205
|
-
}), Se =
|
|
206
|
+
}), Se = P({
|
|
206
207
|
showTooltip: e.value.showTooltip
|
|
207
|
-
}), we =
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
}), we = P(null);
|
|
209
|
+
dt(() => {
|
|
210
|
+
qe();
|
|
210
211
|
});
|
|
211
|
-
function
|
|
212
|
+
function qe() {
|
|
212
213
|
if (e.value.responsive) {
|
|
213
|
-
const u =
|
|
214
|
-
const { width: c, height: t } =
|
|
215
|
-
chart:
|
|
214
|
+
const u = Lt(() => {
|
|
215
|
+
const { width: c, height: t } = zt({
|
|
216
|
+
chart: W.value,
|
|
216
217
|
title: e.value.title ? le.value : null,
|
|
217
218
|
legend: e.value.showLegend ? oe.value : null,
|
|
218
|
-
slicer: [
|
|
219
|
+
slicer: [_.BAR, _.LINE].includes(z.value) && e.value.zoomXy && x.value.maxSeriesLength > 1 ? ve.value : null,
|
|
220
|
+
source: Me.value
|
|
219
221
|
});
|
|
220
222
|
S.value.width = c, S.value.height = t;
|
|
221
223
|
});
|
|
222
|
-
we.value = new ResizeObserver(u), we.value.observe(
|
|
224
|
+
we.value = new ResizeObserver(u), we.value.observe(W.value.parentNode);
|
|
223
225
|
}
|
|
224
226
|
}
|
|
225
|
-
|
|
227
|
+
ct(() => {
|
|
226
228
|
we.value && we.value.disconnect();
|
|
227
229
|
});
|
|
228
|
-
const
|
|
230
|
+
const it = V(() => {
|
|
229
231
|
switch (z.value) {
|
|
230
|
-
case
|
|
232
|
+
case _.LINE:
|
|
231
233
|
return `0 0 ${S.value.width <= 0 ? 10 : S.value.width} ${S.value.height <= 0 ? 10 : S.value.height}`;
|
|
232
|
-
case
|
|
234
|
+
case _.BAR:
|
|
233
235
|
return `0 0 ${S.value.width <= 0 ? 10 : S.value.width} ${S.value.height <= 0 ? 10 : S.value.height}`;
|
|
234
|
-
case
|
|
236
|
+
case _.DONUT:
|
|
235
237
|
return `0 0 ${S.value.width <= 0 ? 10 : S.value.width} ${S.value.height <= 0 ? 10 : S.value.height}`;
|
|
236
238
|
default:
|
|
237
239
|
return `0 0 ${S.value.width <= 0 ? 10 : S.value.width} ${S.value.height <= 0 ? 10 : S.value.height}`;
|
|
238
240
|
}
|
|
239
241
|
});
|
|
240
|
-
function
|
|
242
|
+
function We(u) {
|
|
241
243
|
return [...u].map((c) => c.value).reduce((c, t) => c + t, 0);
|
|
242
244
|
}
|
|
243
|
-
function
|
|
244
|
-
return e.value.blurOnHover && ![null, void 0].includes(
|
|
245
|
+
function fe(u) {
|
|
246
|
+
return e.value.blurOnHover && ![null, void 0].includes(j.value) && j.value !== u ? `url(#blur_${T.value})` : "";
|
|
245
247
|
}
|
|
246
|
-
function
|
|
248
|
+
function je(u, c) {
|
|
247
249
|
w.value.includes(u) ? w.value = w.value.filter((t) => t !== u) : w.value.length < c && w.value.push(u);
|
|
248
250
|
}
|
|
249
|
-
const
|
|
250
|
-
function
|
|
251
|
-
|
|
251
|
+
const Ge = P(null), He = P(null), Ae = P(!1);
|
|
252
|
+
function ut(u, c) {
|
|
253
|
+
Ae.value = !0;
|
|
252
254
|
let t = u.value;
|
|
253
255
|
if (w.value.includes(u.id)) {
|
|
254
256
|
let r = function() {
|
|
255
|
-
t > n ? (
|
|
256
|
-
...
|
|
257
|
-
dataset:
|
|
257
|
+
t > n ? (Ae.value = !1, cancelAnimationFrame(He.value), x.value = {
|
|
258
|
+
...x.value,
|
|
259
|
+
dataset: x.value.dataset.map((h, O) => u.id === `donut_${O}` ? {
|
|
258
260
|
...h,
|
|
259
261
|
value: n,
|
|
260
262
|
VALUE: n
|
|
261
263
|
} : h)
|
|
262
|
-
}) : (t += n * 0.025,
|
|
263
|
-
...
|
|
264
|
-
dataset:
|
|
264
|
+
}) : (t += n * 0.025, x.value = {
|
|
265
|
+
...x.value,
|
|
266
|
+
dataset: x.value.dataset.map((h, O) => u.id === `donut_${O}` ? {
|
|
265
267
|
...h,
|
|
266
268
|
value: t,
|
|
267
269
|
VALUE: t
|
|
268
270
|
} : h)
|
|
269
|
-
},
|
|
271
|
+
}, He.value = requestAnimationFrame(r));
|
|
270
272
|
};
|
|
271
273
|
w.value = w.value.filter((h) => h !== u.id);
|
|
272
|
-
const n =
|
|
274
|
+
const n = he.value.dataset.find((h, O) => u.id === `donut_${O}`).VALUE;
|
|
273
275
|
r();
|
|
274
276
|
} else if (c.length > 1) {
|
|
275
277
|
let n = function() {
|
|
276
|
-
t < 0.1 ? (
|
|
277
|
-
...
|
|
278
|
-
dataset:
|
|
278
|
+
t < 0.1 ? (Ae.value = !1, cancelAnimationFrame(Ge.value), w.value.push(u.id), x.value = {
|
|
279
|
+
...x.value,
|
|
280
|
+
dataset: x.value.dataset.map((r, h) => u.id === `donut_${h}` ? {
|
|
279
281
|
...r,
|
|
280
282
|
value: 0,
|
|
281
283
|
VALUE: 0
|
|
282
284
|
} : r)
|
|
283
|
-
}) : (t /= 1.1,
|
|
284
|
-
...
|
|
285
|
-
dataset:
|
|
285
|
+
}) : (t /= 1.1, x.value = {
|
|
286
|
+
...x.value,
|
|
287
|
+
dataset: x.value.dataset.map((r, h) => u.id === `donut_${h}` ? {
|
|
286
288
|
...r,
|
|
287
289
|
value: t,
|
|
288
290
|
VALUE: t
|
|
289
291
|
} : r)
|
|
290
|
-
},
|
|
292
|
+
}, Ge.value = requestAnimationFrame(n));
|
|
291
293
|
};
|
|
292
294
|
n();
|
|
293
295
|
}
|
|
294
296
|
}
|
|
295
|
-
const
|
|
296
|
-
function
|
|
297
|
-
|
|
297
|
+
const J = P(null);
|
|
298
|
+
function nt(u) {
|
|
299
|
+
J.value = u;
|
|
298
300
|
}
|
|
299
|
-
const
|
|
300
|
-
if (z.value !==
|
|
301
|
-
const u =
|
|
301
|
+
const Xe = V(() => e.value.donutThicknessRatio < 0.15 ? 0.15 : e.value.donutThicknessRatio > 0.4 ? 0.4 : e.value.donutThicknessRatio), C = V(() => {
|
|
302
|
+
if (z.value !== _.DONUT) return null;
|
|
303
|
+
const u = x.value.dataset.map((o, i) => ({
|
|
302
304
|
...o,
|
|
303
305
|
value: o.VALUE || o.DATA || o.SERIE || o.VALUES || o.NUM || 0,
|
|
304
306
|
name: o.NAME || o.DESCRIPTION || o.TITLE || o.LABEL || `Serie ${i}`,
|
|
305
307
|
id: `donut_${i}`
|
|
306
308
|
})).map((o, i) => ({
|
|
307
309
|
...o,
|
|
308
|
-
color: o.COLOR ?
|
|
310
|
+
color: o.COLOR ? Oe(o.COLOR) : ce.value[i + e.value.paletteStartIndex] || D[i + e.value.paletteStartIndex] || D[(i + e.value.paletteStartIndex) % D.length],
|
|
309
311
|
immutableValue: o.value
|
|
310
312
|
}));
|
|
311
313
|
function c(o, i) {
|
|
312
|
-
return
|
|
313
|
-
v: isNaN(o.value /
|
|
314
|
+
return B({
|
|
315
|
+
v: isNaN(o.value / We(i)) ? 0 : o.value / We(i) * 100,
|
|
314
316
|
s: "%",
|
|
315
317
|
r: e.value.dataLabelRoundingPercentage
|
|
316
318
|
});
|
|
@@ -319,107 +321,107 @@ const et = (s) => (dt("data-v-b839026c"), s = s(), ct(), s), Mt = ["id"], Bt = [
|
|
|
319
321
|
return o.proportion * 100 > e.value.donutHideLabelUnderPercentage;
|
|
320
322
|
}
|
|
321
323
|
function n(o, i) {
|
|
322
|
-
const b =
|
|
324
|
+
const b = he.value.dataset.find((I, F) => `donut_${F}` === o).VALUE;
|
|
323
325
|
return Math.abs(String(Number(b.toFixed(0))).length - String(Number(i.toFixed(0))).length);
|
|
324
326
|
}
|
|
325
327
|
function r({ datapoint: o, seriesIndex: i }) {
|
|
326
|
-
|
|
328
|
+
de.value = { datapoint: o, seriesIndex: i, config: e.value, dataset: u }, j.value = o.id;
|
|
327
329
|
const b = e.value.tooltipCustomFormat;
|
|
328
|
-
if (
|
|
330
|
+
if (ze(b) && Fe(() => b({
|
|
329
331
|
datapoint: o,
|
|
330
332
|
seriesIndex: i,
|
|
331
333
|
series: u,
|
|
332
334
|
config: e.value
|
|
333
335
|
})))
|
|
334
|
-
|
|
336
|
+
K.value = b({
|
|
335
337
|
datapoint: o,
|
|
336
338
|
seriesIndex: i,
|
|
337
339
|
series: u,
|
|
338
340
|
config: e.value
|
|
339
341
|
});
|
|
340
342
|
else {
|
|
341
|
-
let
|
|
342
|
-
|
|
343
|
+
let y = "";
|
|
344
|
+
y += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`, y += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${o.color}"/></svg>`, y += `<b>${X(
|
|
343
345
|
e.value.formatter,
|
|
344
346
|
o.value,
|
|
345
|
-
|
|
347
|
+
B({
|
|
346
348
|
p: e.value.valuePrefix,
|
|
347
349
|
v: o.value,
|
|
348
350
|
s: e.value.valueSuffix,
|
|
349
351
|
r: e.value.dataLabelRoundingValue
|
|
350
352
|
}),
|
|
351
353
|
{ datapoint: o, seriesIndex: i }
|
|
352
|
-
)}</b>`,
|
|
354
|
+
)}</b>`, y += `<span>(${B({ v: o.proportion * 100, s: "%", r: e.value.dataLabelRoundingPercentage })})</span></div>`, K.value = `<div>${y}</div>`;
|
|
353
355
|
}
|
|
354
356
|
G.value = !0;
|
|
355
357
|
}
|
|
356
358
|
function h() {
|
|
357
|
-
G.value = !1,
|
|
359
|
+
G.value = !1, j.value = null, J.value = null;
|
|
358
360
|
}
|
|
359
|
-
const
|
|
361
|
+
const O = {
|
|
360
362
|
centerX: S.value.width / 2,
|
|
361
363
|
centerY: S.value.height / 2
|
|
362
|
-
},
|
|
364
|
+
}, U = u.filter((o) => !w.value.includes(o.id)).map((o) => o.value || 0).reduce((o, i) => o + i, 0), ie = u.map((o, i) => ({
|
|
363
365
|
...o,
|
|
364
|
-
proportion: (o.value || 0) /
|
|
366
|
+
proportion: (o.value || 0) / U,
|
|
365
367
|
value: o.value || 0,
|
|
366
|
-
absoluteValue:
|
|
367
|
-
})),
|
|
368
|
+
absoluteValue: he.value.dataset.find((b, y) => `donut_${y}` === o.id).VALUE
|
|
369
|
+
})), ee = S.value.width / 2, ue = S.value.height / 2, te = S.value.height * e.value.donutRadiusRatio;
|
|
368
370
|
return {
|
|
369
371
|
dataset: ie.filter((o) => !w.value.includes(o.id)),
|
|
370
372
|
legend: ie,
|
|
371
|
-
drawingArea:
|
|
373
|
+
drawingArea: O,
|
|
372
374
|
displayArcPercentage: c,
|
|
373
375
|
isArcBigEnough: t,
|
|
374
376
|
useTooltip: r,
|
|
375
377
|
killTooltip: h,
|
|
376
378
|
getSpaces: n,
|
|
377
|
-
total:
|
|
378
|
-
cx:
|
|
379
|
+
total: U,
|
|
380
|
+
cx: ee,
|
|
379
381
|
cy: ue,
|
|
380
|
-
radius:
|
|
381
|
-
chart:
|
|
382
|
+
radius: te,
|
|
383
|
+
chart: wt(
|
|
382
384
|
{ series: u.filter((o) => !w.value.includes(o.id)) },
|
|
383
|
-
K,
|
|
384
|
-
ue,
|
|
385
|
-
ee,
|
|
386
385
|
ee,
|
|
386
|
+
ue,
|
|
387
|
+
te,
|
|
388
|
+
te,
|
|
387
389
|
1.99999,
|
|
388
390
|
2,
|
|
389
391
|
1,
|
|
390
392
|
360,
|
|
391
393
|
105.25,
|
|
392
|
-
S.value.height *
|
|
394
|
+
S.value.height * Xe.value
|
|
393
395
|
)
|
|
394
396
|
};
|
|
395
|
-
}), k =
|
|
397
|
+
}), k = P({
|
|
396
398
|
start: 0,
|
|
397
|
-
end:
|
|
399
|
+
end: x.value.maxSeriesLength
|
|
398
400
|
});
|
|
399
|
-
function
|
|
401
|
+
function rt() {
|
|
400
402
|
k.value = {
|
|
401
403
|
start: 0,
|
|
402
|
-
end:
|
|
403
|
-
},
|
|
404
|
+
end: x.value.maxSeriesLength
|
|
405
|
+
}, xe.value += 1;
|
|
404
406
|
}
|
|
405
|
-
const
|
|
406
|
-
if (!e.value.zoomMinimap.show || z.value ===
|
|
407
|
+
const st = V(() => {
|
|
408
|
+
if (!e.value.zoomMinimap.show || z.value === _.DONUT) return [];
|
|
407
409
|
let u = [];
|
|
408
|
-
|
|
410
|
+
Y(x.value.dataset) && (u = x.value.dataset), Ce(x.value.dataset) && (u = x.value.dataset.map((r, h) => ({
|
|
409
411
|
values: r.VALUE || r.DATA || r.SERIE || r.SERIES || r.VALUES || r.NUM || 0,
|
|
410
|
-
id: z.value ===
|
|
412
|
+
id: z.value === _.LINE ? `line_${h}` : `bar_${h}`
|
|
411
413
|
})).filter((r) => !w.value.includes(r.id)));
|
|
412
|
-
const c =
|
|
414
|
+
const c = Y(u) ? u.length : Math.max(...u.map((r) => r.values.length));
|
|
413
415
|
let t = [];
|
|
414
|
-
if (
|
|
416
|
+
if (Y(u))
|
|
415
417
|
t = u;
|
|
416
418
|
else
|
|
417
419
|
for (let r = 0; r < c; r += 1)
|
|
418
|
-
t.push(u.map((h) => h.values[r] || 0).reduce((h,
|
|
420
|
+
t.push(u.map((h) => h.values[r] || 0).reduce((h, O) => (h || 0) + (O || 0), 0));
|
|
419
421
|
const n = Math.min(...t);
|
|
420
422
|
return t.map((r) => r + (n < 0 ? Math.abs(n) : 0));
|
|
421
|
-
}), d =
|
|
422
|
-
if (z.value !==
|
|
423
|
+
}), d = V(() => {
|
|
424
|
+
if (z.value !== _.LINE) return null;
|
|
423
425
|
const u = {
|
|
424
426
|
height: S.value.height,
|
|
425
427
|
width: S.value.width
|
|
@@ -432,37 +434,37 @@ const et = (s) => (dt("data-v-b839026c"), s = s(), ct(), s), Mt = ["id"], Bt = [
|
|
|
432
434
|
height: u.height - e.value.xyPaddingTop - e.value.xyPaddingBottom
|
|
433
435
|
};
|
|
434
436
|
let t = [];
|
|
435
|
-
|
|
437
|
+
Y(x.value.dataset) && (t = [
|
|
436
438
|
{
|
|
437
|
-
values:
|
|
438
|
-
absoluteIndices:
|
|
439
|
+
values: x.value.dataset.slice(k.value.start, k.value.end),
|
|
440
|
+
absoluteIndices: x.value.dataset.map((o, i) => i).slice(k.value.start, k.value.end),
|
|
439
441
|
name: e.value.title,
|
|
440
|
-
color:
|
|
442
|
+
color: ce.value[e.value.paletteStartIndex] || D[e.value.paletteStartIndex],
|
|
441
443
|
id: "line_0"
|
|
442
444
|
}
|
|
443
|
-
]),
|
|
445
|
+
]), Ce(x.value.dataset) && (t = x.value.dataset.map((o, i) => ({
|
|
444
446
|
...o,
|
|
445
447
|
values: o.VALUE || o.DATA || o.SERIE || o.SERIES || o.VALUES || o.NUM || 0,
|
|
446
448
|
name: o.NAME || o.DESCRIPTION || o.TITLE || o.LABEL || `Serie ${i}`,
|
|
447
449
|
id: `line_${i}`
|
|
448
450
|
})).map((o, i) => ({
|
|
449
451
|
...o,
|
|
450
|
-
color: o.COLOR ?
|
|
452
|
+
color: o.COLOR ? Oe(o.COLOR) : ce.value[i + e.value.paletteStartIndex] || D[i + e.value.paletteStartIndex] || D[(i + e.value.paletteStartIndex) % D.length],
|
|
451
453
|
values: o.values.slice(k.value.start, k.value.end),
|
|
452
|
-
absoluteIndices: o.values.map((b,
|
|
454
|
+
absoluteIndices: o.values.map((b, y) => y).slice(k.value.start, k.value.end)
|
|
453
455
|
})));
|
|
454
456
|
const n = {
|
|
455
457
|
max: Math.max(...t.filter((o) => !w.value.includes(o.id)).flatMap((o) => o.values)),
|
|
456
458
|
min: Math.min(...t.filter((o) => !w.value.includes(o.id)).flatMap((o) => o.values)),
|
|
457
459
|
maxSeries: Math.max(...t.map((o) => o.values.length))
|
|
458
|
-
}, r =
|
|
460
|
+
}, r = Ye(n.min < 0 ? n.min : 0, n.max < 0 ? 0 : n.max, e.value.xyScaleSegments), h = n.min < 0 ? Math.abs(n.min) : 0, O = n.max < 0 ? c.top : c.bottom - h / (r.max + h) * c.height, U = c.width / n.maxSeries, ie = r.ticks.map((o) => ({
|
|
459
461
|
y: c.bottom - c.height * ((o + h) / (r.max + h)),
|
|
460
462
|
x: c.left - 8,
|
|
461
463
|
value: o
|
|
462
|
-
})),
|
|
464
|
+
})), ee = t.map((o, i) => ({
|
|
463
465
|
...o,
|
|
464
|
-
coordinates: o.values.map((b,
|
|
465
|
-
x: c.left +
|
|
466
|
+
coordinates: o.values.map((b, y) => ({
|
|
467
|
+
x: c.left + U * (y + 1) - U / 2,
|
|
466
468
|
y: c.bottom - (b + h) / (r.max + h) * c.height,
|
|
467
469
|
value: b
|
|
468
470
|
}))
|
|
@@ -476,67 +478,67 @@ const et = (s) => (dt("data-v-b839026c"), s = s(), ct(), s), Mt = ["id"], Bt = [
|
|
|
476
478
|
};
|
|
477
479
|
});
|
|
478
480
|
function ue(o) {
|
|
479
|
-
|
|
480
|
-
const i = t.map((
|
|
481
|
-
...
|
|
482
|
-
value:
|
|
483
|
-
absoluteIndex:
|
|
484
|
-
})).filter((
|
|
485
|
-
|
|
481
|
+
j.value = o, J.value = o;
|
|
482
|
+
const i = t.map((y) => ({
|
|
483
|
+
...y,
|
|
484
|
+
value: y.values[o],
|
|
485
|
+
absoluteIndex: y.absoluteIndices[o]
|
|
486
|
+
})).filter((y) => !w.value.includes(y.id));
|
|
487
|
+
de.value = { datapoint: i, seriesIndex: o, config: e.value, dataset: t };
|
|
486
488
|
const b = e.value.tooltipCustomFormat;
|
|
487
|
-
if (
|
|
489
|
+
if (ze(b) && Fe(() => b({
|
|
488
490
|
datapoint: i,
|
|
489
491
|
seriesIndex: o,
|
|
490
492
|
series: t,
|
|
491
493
|
config: e.value
|
|
492
494
|
})))
|
|
493
|
-
|
|
495
|
+
K.value = b({
|
|
494
496
|
datapoint: i,
|
|
495
497
|
seriesIndex: o,
|
|
496
498
|
series: t,
|
|
497
499
|
config: e.value
|
|
498
500
|
});
|
|
499
501
|
else {
|
|
500
|
-
let
|
|
501
|
-
e.value.xyPeriods[i[0].absoluteIndex] && (
|
|
502
|
-
|
|
502
|
+
let y = "";
|
|
503
|
+
e.value.xyPeriods[i[0].absoluteIndex] && (y += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${e.value.xyPeriods[i[0].absoluteIndex]}</div>`), i.forEach((I, F) => {
|
|
504
|
+
y += `
|
|
503
505
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
504
|
-
<svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${
|
|
505
|
-
<span>${
|
|
506
|
-
<b>${
|
|
506
|
+
<svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${I.color}"/></svg>
|
|
507
|
+
<span>${I.name}:</span>
|
|
508
|
+
<b>${X(
|
|
507
509
|
e.value.formatter,
|
|
508
|
-
|
|
509
|
-
|
|
510
|
+
I.value,
|
|
511
|
+
B({
|
|
510
512
|
p: e.value.valuePrefix,
|
|
511
|
-
v:
|
|
513
|
+
v: I.value,
|
|
512
514
|
s: e.value.valueSuffix,
|
|
513
515
|
r: e.value.dataLabelRoundingValue
|
|
514
516
|
}),
|
|
515
|
-
{ datapoint:
|
|
517
|
+
{ datapoint: I, seriesIndex: F }
|
|
516
518
|
)}
|
|
517
519
|
</b>
|
|
518
520
|
</div>
|
|
519
521
|
`;
|
|
520
|
-
}),
|
|
522
|
+
}), K.value = y;
|
|
521
523
|
}
|
|
522
524
|
G.value = !0;
|
|
523
525
|
}
|
|
524
|
-
function
|
|
525
|
-
|
|
526
|
+
function te() {
|
|
527
|
+
j.value = null, G.value = !1;
|
|
526
528
|
}
|
|
527
529
|
return {
|
|
528
|
-
absoluteZero:
|
|
529
|
-
dataset:
|
|
530
|
-
legend:
|
|
530
|
+
absoluteZero: O,
|
|
531
|
+
dataset: ee.filter((o) => !w.value.includes(o.id)),
|
|
532
|
+
legend: ee,
|
|
531
533
|
drawingArea: c,
|
|
532
534
|
extremes: n,
|
|
533
|
-
slotSize:
|
|
535
|
+
slotSize: U,
|
|
534
536
|
yLabels: ie,
|
|
535
537
|
useTooltip: ue,
|
|
536
|
-
killTooltip:
|
|
538
|
+
killTooltip: te
|
|
537
539
|
};
|
|
538
|
-
}), v =
|
|
539
|
-
if (z.value !==
|
|
540
|
+
}), v = V(() => {
|
|
541
|
+
if (z.value !== _.BAR) return null;
|
|
540
542
|
const u = {
|
|
541
543
|
height: S.value.height,
|
|
542
544
|
width: S.value.width
|
|
@@ -549,336 +551,359 @@ const et = (s) => (dt("data-v-b839026c"), s = s(), ct(), s), Mt = ["id"], Bt = [
|
|
|
549
551
|
height: u.height - e.value.xyPaddingTop - e.value.xyPaddingBottom
|
|
550
552
|
};
|
|
551
553
|
let t = [];
|
|
552
|
-
|
|
554
|
+
Y(x.value.dataset) && (t = [
|
|
553
555
|
{
|
|
554
|
-
values:
|
|
555
|
-
absoluteIndices:
|
|
556
|
+
values: x.value.dataset.slice(k.value.start, k.value.end),
|
|
557
|
+
absoluteIndices: x.value.dataset.map((i, b) => b).slice(k.value.start, k.value.end),
|
|
556
558
|
name: e.value.title,
|
|
557
|
-
color:
|
|
559
|
+
color: ce.value[e.value.paletteStartIndex] || D[e.value.paletteStartIndex],
|
|
558
560
|
id: "bar_0"
|
|
559
561
|
}
|
|
560
|
-
]),
|
|
562
|
+
]), Ce(x.value.dataset) && (t = x.value.dataset.map((i, b) => ({
|
|
561
563
|
...i,
|
|
562
564
|
values: i.VALUE || i.DATA || i.SERIE || i.SERIES || i.VALUES || i.NUM || 0,
|
|
563
565
|
name: i.NAME || i.DESCRIPTION || i.TITLE || i.LABEL || `Serie ${b}`,
|
|
564
566
|
id: `bar_${b}`
|
|
565
567
|
})).map((i, b) => ({
|
|
566
568
|
...i,
|
|
567
|
-
color: i.COLOR ?
|
|
569
|
+
color: i.COLOR ? Oe(i.COLOR) : ce.value[b + e.value.paletteStartIndex] || D[b + e.value.paletteStartIndex] || D[(b + e.value.paletteStartIndex) % D.length],
|
|
568
570
|
values: i.values.slice(k.value.start, k.value.end),
|
|
569
|
-
absoluteIndices: i.values.map((
|
|
571
|
+
absoluteIndices: i.values.map((y, I) => I).slice(k.value.start, k.value.end)
|
|
570
572
|
})));
|
|
571
573
|
const n = {
|
|
572
574
|
max: Math.max(...t.filter((i) => !w.value.includes(i.id)).flatMap((i) => i.values)) < 0 ? 0 : Math.max(...t.filter((i) => !w.value.includes(i.id)).flatMap((i) => i.values)),
|
|
573
575
|
min: Math.min(...t.filter((i) => !w.value.includes(i.id)).flatMap((i) => i.values)),
|
|
574
576
|
maxSeries: Math.max(...t.filter((i) => !w.value.includes(i.id)).map((i) => i.values.length))
|
|
575
|
-
}, r =
|
|
577
|
+
}, r = Ye(n.min < 0 ? n.min : 0, n.max, e.value.xyScaleSegments), h = r.min < 0 ? Math.abs(r.min) : 0, O = c.bottom - h / (r.max + h) * c.height, U = c.width / n.maxSeries, ie = r.ticks.map((i) => ({
|
|
576
578
|
y: c.bottom - c.height * ((i + h) / (r.max + h)),
|
|
577
579
|
x: c.left - 8,
|
|
578
580
|
value: i
|
|
579
|
-
})),
|
|
581
|
+
})), ee = t.map((i, b) => ({
|
|
580
582
|
...i,
|
|
581
|
-
coordinates: i.values.map((
|
|
582
|
-
const F = (
|
|
583
|
+
coordinates: i.values.map((y, I) => {
|
|
584
|
+
const F = (y + h) / (n.max + h) * c.height, ge = Math.abs(y) / Math.abs(n.min) * (c.height - O), Ie = h / (n.max + h) * c.height, me = U / t.filter((ae) => !w.value.includes(ae.id)).length - e.value.barGap / t.filter((ae) => !w.value.includes(ae.id)).length;
|
|
583
585
|
return {
|
|
584
|
-
x: c.left +
|
|
585
|
-
y:
|
|
586
|
-
height:
|
|
587
|
-
value:
|
|
588
|
-
width:
|
|
586
|
+
x: c.left + U * I + me * b + e.value.barGap / 2,
|
|
587
|
+
y: y > 0 ? c.bottom - F : O,
|
|
588
|
+
height: y > 0 ? F - Ie : ge,
|
|
589
|
+
value: y,
|
|
590
|
+
width: me
|
|
589
591
|
};
|
|
590
592
|
})
|
|
591
593
|
})), ue = t.filter((i) => !w.value.includes(i.id)).map((i, b) => ({
|
|
592
594
|
...i,
|
|
593
|
-
coordinates: i.values.map((
|
|
594
|
-
const F = (
|
|
595
|
+
coordinates: i.values.map((y, I) => {
|
|
596
|
+
const F = (y + h) / (n.max + h) * c.height, ge = Math.abs(y) / (n.max + h) * c.height, Ie = h / (n.max + h) * c.height, me = U / t.filter((ae) => !w.value.includes(ae.id)).length - e.value.barGap / t.filter((ae) => !w.value.includes(ae.id)).length;
|
|
595
597
|
return {
|
|
596
|
-
x: c.left +
|
|
597
|
-
y:
|
|
598
|
-
height:
|
|
599
|
-
value:
|
|
600
|
-
width:
|
|
598
|
+
x: c.left + U * I + me * b + e.value.barGap / 2,
|
|
599
|
+
y: y > 0 ? c.bottom - F : O,
|
|
600
|
+
height: y > 0 ? F - Ie : ge,
|
|
601
|
+
value: y,
|
|
602
|
+
width: me
|
|
601
603
|
};
|
|
602
604
|
})
|
|
603
605
|
}));
|
|
604
|
-
function
|
|
605
|
-
|
|
606
|
-
const b = t.map((
|
|
607
|
-
...
|
|
608
|
-
value:
|
|
609
|
-
absoluteIndex:
|
|
610
|
-
})).filter((
|
|
611
|
-
|
|
612
|
-
const
|
|
613
|
-
if (
|
|
606
|
+
function te(i) {
|
|
607
|
+
j.value = i, J.value = i;
|
|
608
|
+
const b = t.map((I) => ({
|
|
609
|
+
...I,
|
|
610
|
+
value: I.values[i],
|
|
611
|
+
absoluteIndex: I.absoluteIndices[i]
|
|
612
|
+
})).filter((I) => !w.value.includes(I.id));
|
|
613
|
+
de.value = { datapoint: b, seriesIndex: i, config: e.value, dataset: t };
|
|
614
|
+
const y = e.value.tooltipCustomFormat;
|
|
615
|
+
if (ze(y) && Fe(() => y({
|
|
614
616
|
datapoint: b,
|
|
615
617
|
seriesIndex: i,
|
|
616
618
|
series: t,
|
|
617
619
|
config: e.value
|
|
618
620
|
})))
|
|
619
|
-
|
|
621
|
+
K.value = y({
|
|
620
622
|
point: b,
|
|
621
623
|
seriesIndex: i,
|
|
622
624
|
series: t,
|
|
623
625
|
config: e.value
|
|
624
626
|
});
|
|
625
627
|
else {
|
|
626
|
-
let
|
|
627
|
-
e.value.xyPeriods[b[0].absoluteIndex] && (
|
|
628
|
-
|
|
628
|
+
let I = "";
|
|
629
|
+
e.value.xyPeriods[b[0].absoluteIndex] && (I += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${e.value.xyPeriods[b[0].absoluteIndex]}</div>`), b.forEach((F, ge) => {
|
|
630
|
+
I += `
|
|
629
631
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
630
632
|
<svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${F.color}"/></svg>
|
|
631
633
|
<span>${F.name}:</span>
|
|
632
|
-
<b>${
|
|
634
|
+
<b>${X(
|
|
633
635
|
e.value.formatter,
|
|
634
636
|
F.value,
|
|
635
|
-
|
|
637
|
+
B({
|
|
636
638
|
p: e.value.valuePrefix,
|
|
637
639
|
v: F.value,
|
|
638
640
|
s: e.value.valueSuffix,
|
|
639
641
|
r: e.value.dataLabelRoundingValue
|
|
640
642
|
}),
|
|
641
|
-
{ datapoint: F, seriesIndex:
|
|
643
|
+
{ datapoint: F, seriesIndex: ge }
|
|
642
644
|
)}
|
|
643
645
|
</b>
|
|
644
646
|
</div>
|
|
645
647
|
`;
|
|
646
|
-
}),
|
|
648
|
+
}), K.value = I;
|
|
647
649
|
}
|
|
648
650
|
G.value = !0;
|
|
649
651
|
}
|
|
650
652
|
function o() {
|
|
651
|
-
G.value = !1,
|
|
653
|
+
G.value = !1, j.value = null, J.value = null;
|
|
652
654
|
}
|
|
653
655
|
return {
|
|
654
|
-
absoluteZero:
|
|
656
|
+
absoluteZero: O,
|
|
655
657
|
dataset: ue.filter((i) => !w.value.includes(i.id)),
|
|
656
|
-
legend:
|
|
658
|
+
legend: ee,
|
|
657
659
|
drawingArea: c,
|
|
658
660
|
extremes: n,
|
|
659
|
-
slotSize:
|
|
661
|
+
slotSize: U,
|
|
660
662
|
yLabels: ie,
|
|
661
|
-
useTooltip:
|
|
663
|
+
useTooltip: te,
|
|
662
664
|
killTooltip: o
|
|
663
665
|
};
|
|
664
|
-
}),
|
|
665
|
-
function
|
|
666
|
-
|
|
666
|
+
}), Pe = P(!1);
|
|
667
|
+
function vt(u) {
|
|
668
|
+
Pe.value = u, Be.value += 1;
|
|
667
669
|
}
|
|
668
|
-
function
|
|
670
|
+
function Ze() {
|
|
669
671
|
Se.value.showTooltip = !Se.value.showTooltip;
|
|
670
672
|
}
|
|
673
|
+
const _e = P(!1);
|
|
674
|
+
function Te() {
|
|
675
|
+
_e.value = !_e.value;
|
|
676
|
+
}
|
|
671
677
|
return $({
|
|
672
|
-
generatePdf:
|
|
673
|
-
generateImage:
|
|
674
|
-
toggleTooltip:
|
|
675
|
-
|
|
678
|
+
generatePdf: De,
|
|
679
|
+
generateImage: Ve,
|
|
680
|
+
toggleTooltip: Ze,
|
|
681
|
+
toggleAnnotator: Te
|
|
682
|
+
}), (u, c) => ot.value ? (a(), l("div", {
|
|
676
683
|
key: 0,
|
|
677
|
-
id: `${z.value}_${
|
|
684
|
+
id: `${z.value}_${T.value}`,
|
|
678
685
|
ref_key: "quickChart",
|
|
679
|
-
ref:
|
|
680
|
-
class: ne({ "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen":
|
|
681
|
-
style:
|
|
686
|
+
ref: W,
|
|
687
|
+
class: ne({ "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": Pe.value }),
|
|
688
|
+
style: N(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`)
|
|
682
689
|
}, [
|
|
683
|
-
e.value.
|
|
690
|
+
e.value.userOptionsButtons.annotator ? (a(), Le(Rt, {
|
|
691
|
+
key: 0,
|
|
692
|
+
parent: W.value,
|
|
693
|
+
backgroundColor: e.value.backgroundColor,
|
|
694
|
+
color: e.value.color,
|
|
695
|
+
active: _e.value,
|
|
696
|
+
onClose: Te
|
|
697
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : g("", !0),
|
|
698
|
+
e.value.showUserOptions ? (a(), Le(Pt, {
|
|
684
699
|
ref: "details",
|
|
685
|
-
key: `user_option_${
|
|
700
|
+
key: `user_option_${Be.value}`,
|
|
686
701
|
backgroundColor: e.value.backgroundColor,
|
|
687
702
|
color: e.value.color,
|
|
688
703
|
isPrinting: f(ke),
|
|
689
704
|
isImaging: f(be),
|
|
690
|
-
uid:
|
|
705
|
+
uid: T.value,
|
|
691
706
|
hasTooltip: e.value.userOptionsButtons.tooltip && e.value.showTooltip,
|
|
692
707
|
hasPdf: e.value.userOptionsButtons.pdf,
|
|
693
708
|
hasImg: e.value.userOptionsButtons.img,
|
|
694
709
|
hasFullscreen: e.value.userOptionsButtons.fullscreen,
|
|
695
710
|
hasXls: !1,
|
|
696
711
|
isTooltip: Se.value.showTooltip,
|
|
697
|
-
isFullscreen:
|
|
712
|
+
isFullscreen: Pe.value,
|
|
698
713
|
titles: { ...e.value.userOptionsButtonTitles },
|
|
699
|
-
chartElement:
|
|
714
|
+
chartElement: W.value,
|
|
700
715
|
position: e.value.userOptionsPosition,
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
716
|
+
hasAnnotator: e.value.userOptionsButtons.annotator,
|
|
717
|
+
isAnnotation: _e.value,
|
|
718
|
+
onToggleFullscreen: vt,
|
|
719
|
+
onGeneratePdf: f(De),
|
|
720
|
+
onGenerateImage: f(Ve),
|
|
721
|
+
onToggleTooltip: Ze,
|
|
722
|
+
onToggleAnnotator: Te
|
|
723
|
+
}, ht({ _: 2 }, [
|
|
706
724
|
u.$slots.optionTooltip ? {
|
|
707
725
|
name: "optionTooltip",
|
|
708
|
-
fn:
|
|
709
|
-
|
|
726
|
+
fn: Q(() => [
|
|
727
|
+
M(u.$slots, "optionTooltip", {}, void 0, !0)
|
|
710
728
|
]),
|
|
711
729
|
key: "0"
|
|
712
730
|
} : void 0,
|
|
713
731
|
u.$slots.optionPdf ? {
|
|
714
732
|
name: "optionPdf",
|
|
715
|
-
fn:
|
|
716
|
-
|
|
733
|
+
fn: Q(() => [
|
|
734
|
+
M(u.$slots, "optionPdf", {}, void 0, !0)
|
|
717
735
|
]),
|
|
718
736
|
key: "1"
|
|
719
737
|
} : void 0,
|
|
720
738
|
u.$slots.optionImg ? {
|
|
721
739
|
name: "optionImg",
|
|
722
|
-
fn:
|
|
723
|
-
|
|
740
|
+
fn: Q(() => [
|
|
741
|
+
M(u.$slots, "optionImg", {}, void 0, !0)
|
|
724
742
|
]),
|
|
725
743
|
key: "2"
|
|
726
744
|
} : void 0,
|
|
727
745
|
u.$slots.optionFullscreen ? {
|
|
728
746
|
name: "optionFullscreen",
|
|
729
|
-
fn:
|
|
730
|
-
|
|
747
|
+
fn: Q(({ toggleFullscreen: t, isFullscreen: n }) => [
|
|
748
|
+
M(u.$slots, "optionFullscreen", H(re({ toggleFullscreen: t, isFullscreen: n })), void 0, !0)
|
|
731
749
|
]),
|
|
732
750
|
key: "3"
|
|
751
|
+
} : void 0,
|
|
752
|
+
u.$slots.optionAnnotator ? {
|
|
753
|
+
name: "optionAnnotator",
|
|
754
|
+
fn: Q(({ toggleAnnotator: t, isAnnotator: n }) => [
|
|
755
|
+
M(u.$slots, "optionAnnotator", H(re({ toggleAnnotator: t, isAnnotator: n })), void 0, !0)
|
|
756
|
+
]),
|
|
757
|
+
key: "4"
|
|
733
758
|
} : void 0
|
|
734
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) :
|
|
759
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : g("", !0),
|
|
735
760
|
e.value.title ? (a(), l("div", {
|
|
736
|
-
key:
|
|
761
|
+
key: 2,
|
|
737
762
|
ref_key: "quickChartTitle",
|
|
738
763
|
ref: le,
|
|
739
764
|
class: "vue-ui-quick-chart-title",
|
|
740
|
-
style:
|
|
741
|
-
}, E(e.value.title), 5)) :
|
|
765
|
+
style: N(`background:transparent;color:${e.value.color};font-size:${e.value.titleFontSize}px;font-weight:${e.value.titleBold ? "bold" : "normal"};text-align:${e.value.titleTextAlign}`)
|
|
766
|
+
}, E(e.value.title), 5)) : g("", !0),
|
|
742
767
|
z.value ? (a(), l("svg", {
|
|
743
|
-
key:
|
|
744
|
-
xmlns: f(
|
|
745
|
-
viewBox:
|
|
746
|
-
style:
|
|
768
|
+
key: 3,
|
|
769
|
+
xmlns: f(At),
|
|
770
|
+
viewBox: it.value,
|
|
771
|
+
style: N(`max-width:100%;overflow:visible;background:transparent;color:${e.value.color}`)
|
|
747
772
|
}, [
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
id: `blur_${
|
|
773
|
+
se(Et),
|
|
774
|
+
A("defs", null, [
|
|
775
|
+
A("filter", {
|
|
776
|
+
id: `blur_${T.value}`,
|
|
752
777
|
x: "-50%",
|
|
753
778
|
y: "-50%",
|
|
754
779
|
width: "200%",
|
|
755
780
|
height: "200%"
|
|
756
781
|
}, [
|
|
757
|
-
|
|
782
|
+
A("feGaussianBlur", {
|
|
758
783
|
in: "SourceGraphic",
|
|
759
784
|
stdDeviation: 2,
|
|
760
|
-
id: `blur_std_${
|
|
761
|
-
}, null, 8,
|
|
762
|
-
|
|
763
|
-
], 8,
|
|
764
|
-
|
|
765
|
-
id: `shadow_${
|
|
785
|
+
id: `blur_std_${T.value}`
|
|
786
|
+
}, null, 8, jt),
|
|
787
|
+
Gt
|
|
788
|
+
], 8, Wt),
|
|
789
|
+
A("filter", {
|
|
790
|
+
id: `shadow_${T.value}`,
|
|
766
791
|
"color-interpolation-filters": "sRGB"
|
|
767
792
|
}, [
|
|
768
|
-
|
|
793
|
+
A("feDropShadow", {
|
|
769
794
|
dx: "0",
|
|
770
795
|
dy: "0",
|
|
771
796
|
stdDeviation: "10",
|
|
772
797
|
"flood-opacity": "0.5",
|
|
773
798
|
"flood-color": e.value.donutShadowColor
|
|
774
|
-
}, null, 8,
|
|
775
|
-
], 8,
|
|
799
|
+
}, null, 8, Xt)
|
|
800
|
+
], 8, Ht)
|
|
776
801
|
]),
|
|
777
|
-
z.value ===
|
|
778
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
779
|
-
(a(!0), l(
|
|
802
|
+
z.value === _.DONUT ? (a(), l(p, { key: 0 }, [
|
|
803
|
+
e.value.showDataLabels ? (a(), l("g", Zt, [
|
|
804
|
+
(a(!0), l(p, null, L(C.value.chart, (t, n) => (a(), l(p, null, [
|
|
780
805
|
C.value.isArcBigEnough(t) ? (a(), l("path", {
|
|
781
806
|
key: 0,
|
|
782
|
-
d: f(
|
|
807
|
+
d: f(_t)(t, { x: S.value.width / 2, y: S.value.height / 2 }, 16, 16, !1, !1, S.value.height * Xe.value),
|
|
783
808
|
stroke: t.color,
|
|
784
809
|
"stroke-width": e.value.donutLabelMarkerStrokeWidth,
|
|
785
810
|
"stroke-linecap": "round",
|
|
786
811
|
"stroke-linejoin": "round",
|
|
787
812
|
fill: "none",
|
|
788
|
-
filter:
|
|
789
|
-
}, null, 8,
|
|
813
|
+
filter: fe(t.id)
|
|
814
|
+
}, null, 8, Yt)) : g("", !0)
|
|
790
815
|
], 64))), 256))
|
|
791
|
-
])) :
|
|
792
|
-
|
|
816
|
+
])) : g("", !0),
|
|
817
|
+
A("circle", {
|
|
793
818
|
cx: C.value.cx,
|
|
794
819
|
cy: C.value.cy,
|
|
795
820
|
r: C.value.radius,
|
|
796
821
|
fill: e.value.backgroundColor,
|
|
797
|
-
filter: e.value.donutUseShadow ? `url(#shadow_${
|
|
798
|
-
}, null, 8,
|
|
799
|
-
|
|
800
|
-
(a(!0), l(
|
|
822
|
+
filter: e.value.donutUseShadow ? `url(#shadow_${T.value})` : ""
|
|
823
|
+
}, null, 8, Jt),
|
|
824
|
+
A("g", Qt, [
|
|
825
|
+
(a(!0), l(p, null, L(C.value.chart, (t, n) => (a(), l("path", {
|
|
801
826
|
d: t.arcSlice,
|
|
802
827
|
fill: t.color,
|
|
803
828
|
stroke: e.value.backgroundColor,
|
|
804
829
|
"stroke-width": e.value.donutStrokeWidth,
|
|
805
|
-
filter:
|
|
806
|
-
}, null, 8,
|
|
807
|
-
(a(!0), l(
|
|
830
|
+
filter: fe(t.id)
|
|
831
|
+
}, null, 8, Kt))), 256)),
|
|
832
|
+
(a(!0), l(p, null, L(C.value.chart, (t, n) => (a(), l("path", {
|
|
808
833
|
d: t.arcSlice,
|
|
809
834
|
fill: "transparent",
|
|
810
835
|
onMouseenter: (r) => C.value.useTooltip({ datapoint: t, seriesIndex: n }),
|
|
811
836
|
onMouseout: c[0] || (c[0] = (r) => C.value.killTooltip()),
|
|
812
|
-
onClick: (r) =>
|
|
813
|
-
}, null, 40,
|
|
837
|
+
onClick: (r) => m("selectDatapoint", t)
|
|
838
|
+
}, null, 40, ea))), 256))
|
|
814
839
|
]),
|
|
815
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
816
|
-
(a(!0), l(
|
|
840
|
+
e.value.showDataLabels ? (a(), l("g", ta, [
|
|
841
|
+
(a(!0), l(p, null, L(C.value.chart, (t, n) => (a(), l(p, null, [
|
|
817
842
|
C.value.isArcBigEnough(t) ? (a(), l("circle", {
|
|
818
843
|
key: 0,
|
|
819
844
|
cx: f(pe)(t).x,
|
|
820
|
-
cy: f(
|
|
845
|
+
cy: f(Ne)(t) - 3.7,
|
|
821
846
|
fill: t.color,
|
|
822
847
|
stroke: e.value.backgroundColor,
|
|
823
848
|
"stroke-width": 1,
|
|
824
849
|
r: 3,
|
|
825
|
-
filter:
|
|
826
|
-
}, null, 8,
|
|
850
|
+
filter: fe(t.id)
|
|
851
|
+
}, null, 8, aa)) : g("", !0),
|
|
827
852
|
C.value.isArcBigEnough(t) ? (a(), l("text", {
|
|
828
853
|
key: 1,
|
|
829
854
|
"text-anchor": f(pe)(t, !0, 20).anchor,
|
|
830
855
|
x: f(pe)(t, !0).x,
|
|
831
|
-
y: f(
|
|
856
|
+
y: f(Ne)(t),
|
|
832
857
|
fill: e.value.color,
|
|
833
858
|
"font-size": e.value.dataLabelFontSize,
|
|
834
|
-
filter:
|
|
835
|
-
}, E(C.value.displayArcPercentage(t, C.value.chart)) + " (" + E(f(
|
|
859
|
+
filter: fe(t.id)
|
|
860
|
+
}, E(C.value.displayArcPercentage(t, C.value.chart)) + " (" + E(f(X)(
|
|
836
861
|
e.value.formatter,
|
|
837
862
|
t.value,
|
|
838
|
-
f(
|
|
863
|
+
f(B)({
|
|
839
864
|
p: e.value.valuePrefix,
|
|
840
865
|
v: t.value,
|
|
841
866
|
s: e.value.valueSuffix,
|
|
842
867
|
r: e.value.dataLabelRoundingValue
|
|
843
868
|
}),
|
|
844
869
|
{ datapoint: t, seriesIndex: n }
|
|
845
|
-
)) + ") ", 9,
|
|
870
|
+
)) + ") ", 9, la)) : g("", !0),
|
|
846
871
|
C.value.isArcBigEnough(t, !0, 20) ? (a(), l("text", {
|
|
847
872
|
key: 2,
|
|
848
873
|
"text-anchor": f(pe)(t).anchor,
|
|
849
874
|
x: f(pe)(t, !0).x,
|
|
850
|
-
y: f(
|
|
875
|
+
y: f(Ne)(t) + e.value.dataLabelFontSize,
|
|
851
876
|
fill: e.value.color,
|
|
852
877
|
"font-size": e.value.dataLabelFontSize,
|
|
853
|
-
filter:
|
|
854
|
-
}, E(t.name), 9,
|
|
878
|
+
filter: fe(t.id)
|
|
879
|
+
}, E(t.name), 9, oa)) : g("", !0)
|
|
855
880
|
], 64))), 256))
|
|
856
|
-
])) :
|
|
857
|
-
e.value.donutShowTotal ? (a(), l("g",
|
|
858
|
-
|
|
881
|
+
])) : g("", !0),
|
|
882
|
+
e.value.donutShowTotal ? (a(), l("g", ia, [
|
|
883
|
+
A("text", {
|
|
859
884
|
"text-anchor": "middle",
|
|
860
885
|
x: C.value.drawingArea.centerX,
|
|
861
886
|
y: C.value.drawingArea.centerY - e.value.donutTotalLabelFontSize / 2,
|
|
862
887
|
"font-size": e.value.donutTotalLabelFontSize,
|
|
863
888
|
fill: e.value.color
|
|
864
|
-
}, E(e.value.donutTotalLabelText), 9,
|
|
865
|
-
|
|
889
|
+
}, E(e.value.donutTotalLabelText), 9, ua),
|
|
890
|
+
A("text", {
|
|
866
891
|
"text-anchor": "middle",
|
|
867
892
|
x: C.value.drawingArea.centerX,
|
|
868
893
|
y: C.value.drawingArea.centerY + e.value.donutTotalLabelFontSize,
|
|
869
894
|
"font-size": e.value.donutTotalLabelFontSize,
|
|
870
895
|
fill: e.value.color
|
|
871
|
-
}, E(f(
|
|
896
|
+
}, E(f(B)({
|
|
872
897
|
p: e.value.valuePrefix,
|
|
873
898
|
v: C.value.total,
|
|
874
899
|
s: e.value.valueSuffix,
|
|
875
900
|
r: e.value.dataLabelRoundingValue
|
|
876
|
-
})), 9,
|
|
877
|
-
])) :
|
|
878
|
-
], 64)) :
|
|
879
|
-
z.value ===
|
|
880
|
-
e.value.xyShowGrid ? (a(), l("g",
|
|
881
|
-
(a(!0), l(
|
|
901
|
+
})), 9, na)
|
|
902
|
+
])) : g("", !0)
|
|
903
|
+
], 64)) : g("", !0),
|
|
904
|
+
z.value === _.LINE ? (a(), l(p, { key: 1 }, [
|
|
905
|
+
e.value.xyShowGrid ? (a(), l("g", ra, [
|
|
906
|
+
(a(!0), l(p, null, L(d.value.yLabels, (t) => (a(), l(p, null, [
|
|
882
907
|
t.y <= d.value.drawingArea.bottom ? (a(), l("line", {
|
|
883
908
|
key: 0,
|
|
884
909
|
x1: d.value.drawingArea.left,
|
|
@@ -888,9 +913,9 @@ const et = (s) => (dt("data-v-b839026c"), s = s(), ct(), s), Mt = ["id"], Bt = [
|
|
|
888
913
|
stroke: e.value.xyGridStroke,
|
|
889
914
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
890
915
|
"stroke-linecap": "round"
|
|
891
|
-
}, null, 8,
|
|
916
|
+
}, null, 8, sa)) : g("", !0)
|
|
892
917
|
], 64))), 256)),
|
|
893
|
-
(a(!0), l(
|
|
918
|
+
(a(!0), l(p, null, L(d.value.extremes.maxSeries + 1, (t, n) => (a(), l("line", {
|
|
894
919
|
x1: d.value.drawingArea.left + d.value.slotSize * n,
|
|
895
920
|
x2: d.value.drawingArea.left + d.value.slotSize * n,
|
|
896
921
|
y1: d.value.drawingArea.top,
|
|
@@ -898,10 +923,10 @@ const et = (s) => (dt("data-v-b839026c"), s = s(), ct(), s), Mt = ["id"], Bt = [
|
|
|
898
923
|
stroke: e.value.xyGridStroke,
|
|
899
924
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
900
925
|
"stroke-linecap": "round"
|
|
901
|
-
}, null, 8,
|
|
902
|
-
])) :
|
|
903
|
-
e.value.xyShowAxis ? (a(), l("g",
|
|
904
|
-
|
|
926
|
+
}, null, 8, va))), 256))
|
|
927
|
+
])) : g("", !0),
|
|
928
|
+
e.value.xyShowAxis ? (a(), l("g", da, [
|
|
929
|
+
A("line", {
|
|
905
930
|
x1: d.value.drawingArea.left,
|
|
906
931
|
x2: d.value.drawingArea.left,
|
|
907
932
|
y1: d.value.drawingArea.top,
|
|
@@ -909,8 +934,8 @@ const et = (s) => (dt("data-v-b839026c"), s = s(), ct(), s), Mt = ["id"], Bt = [
|
|
|
909
934
|
stroke: e.value.xyAxisStroke,
|
|
910
935
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
911
936
|
"stroke-linecap": "round"
|
|
912
|
-
}, null, 8,
|
|
913
|
-
|
|
937
|
+
}, null, 8, ca),
|
|
938
|
+
A("line", {
|
|
914
939
|
x1: d.value.drawingArea.left,
|
|
915
940
|
x2: d.value.drawingArea.right,
|
|
916
941
|
y1: isNaN(d.value.absoluteZero) ? d.value.drawingArea.bottom : d.value.absoluteZero,
|
|
@@ -918,10 +943,10 @@ const et = (s) => (dt("data-v-b839026c"), s = s(), ct(), s), Mt = ["id"], Bt = [
|
|
|
918
943
|
stroke: e.value.xyAxisStroke,
|
|
919
944
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
920
945
|
"stroke-linecap": "round"
|
|
921
|
-
}, null, 8,
|
|
922
|
-
])) :
|
|
923
|
-
e.value.xyShowScale ? (a(), l("g",
|
|
924
|
-
(a(!0), l(
|
|
946
|
+
}, null, 8, ha)
|
|
947
|
+
])) : g("", !0),
|
|
948
|
+
e.value.xyShowScale ? (a(), l("g", fa, [
|
|
949
|
+
(a(!0), l(p, null, L(d.value.yLabels, (t, n) => (a(), l(p, null, [
|
|
925
950
|
t.y <= d.value.drawingArea.bottom ? (a(), l("line", {
|
|
926
951
|
key: 0,
|
|
927
952
|
x1: t.x + 4,
|
|
@@ -931,7 +956,7 @@ const et = (s) => (dt("data-v-b839026c"), s = s(), ct(), s), Mt = ["id"], Bt = [
|
|
|
931
956
|
stroke: e.value.xyAxisStroke,
|
|
932
957
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
933
958
|
"stroke-linecap": "round"
|
|
934
|
-
}, null, 8,
|
|
959
|
+
}, null, 8, ga)) : g("", !0),
|
|
935
960
|
t.y <= d.value.drawingArea.bottom ? (a(), l("text", {
|
|
936
961
|
key: 1,
|
|
937
962
|
x: t.x,
|
|
@@ -939,21 +964,21 @@ const et = (s) => (dt("data-v-b839026c"), s = s(), ct(), s), Mt = ["id"], Bt = [
|
|
|
939
964
|
"text-anchor": "end",
|
|
940
965
|
"font-size": e.value.xyLabelsYFontSize,
|
|
941
966
|
fill: e.value.color
|
|
942
|
-
}, E(f(
|
|
967
|
+
}, E(f(X)(
|
|
943
968
|
e.value.formatter,
|
|
944
969
|
t.value,
|
|
945
|
-
f(
|
|
970
|
+
f(B)({
|
|
946
971
|
p: e.value.valuePrefix,
|
|
947
972
|
v: t.value,
|
|
948
973
|
s: e.value.valueSuffix,
|
|
949
974
|
r: e.value.dataLabelRoundingValue
|
|
950
975
|
}),
|
|
951
976
|
{ datapoint: t, seriesIndex: n }
|
|
952
|
-
)), 9,
|
|
977
|
+
)), 9, ma)) : g("", !0)
|
|
953
978
|
], 64))), 256))
|
|
954
|
-
])) :
|
|
955
|
-
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g",
|
|
956
|
-
(a(!0), l(
|
|
979
|
+
])) : g("", !0),
|
|
980
|
+
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g", pa, [
|
|
981
|
+
(a(!0), l(p, null, L(e.value.xyPeriods.slice(k.value.start, k.value.end), (t, n) => (a(), l("line", {
|
|
957
982
|
x1: d.value.drawingArea.left + d.value.slotSize * (n + 1) - d.value.slotSize / 2,
|
|
958
983
|
x2: d.value.drawingArea.left + d.value.slotSize * (n + 1) - d.value.slotSize / 2,
|
|
959
984
|
y1: d.value.drawingArea.bottom,
|
|
@@ -961,37 +986,37 @@ const et = (s) => (dt("data-v-b839026c"), s = s(), ct(), s), Mt = ["id"], Bt = [
|
|
|
961
986
|
stroke: e.value.xyAxisStroke,
|
|
962
987
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
963
988
|
"stroke-linecap": "round"
|
|
964
|
-
}, null, 8,
|
|
965
|
-
(a(!0), l(
|
|
989
|
+
}, null, 8, ya))), 256)),
|
|
990
|
+
(a(!0), l(p, null, L(e.value.xyPeriods.slice(k.value.start, k.value.end), (t, n) => (a(), l("text", {
|
|
966
991
|
"font-size": e.value.xyLabelsXFontSize,
|
|
967
992
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
968
993
|
fill: e.value.color,
|
|
969
994
|
transform: `translate(${d.value.drawingArea.left + d.value.slotSize * (n + 1) - d.value.slotSize / 2}, ${d.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`
|
|
970
|
-
}, E(t), 9,
|
|
971
|
-
])) :
|
|
972
|
-
|
|
973
|
-
(a(!0), l(
|
|
974
|
-
e.value.lineSmooth ? (a(), l(
|
|
975
|
-
|
|
976
|
-
d: `M ${f(
|
|
995
|
+
}, E(t), 9, xa))), 256))
|
|
996
|
+
])) : g("", !0),
|
|
997
|
+
A("g", ka, [
|
|
998
|
+
(a(!0), l(p, null, L(d.value.dataset, (t, n) => (a(), l("g", ba, [
|
|
999
|
+
e.value.lineSmooth ? (a(), l(p, { key: 0 }, [
|
|
1000
|
+
A("path", {
|
|
1001
|
+
d: `M ${f(Je)(t.coordinates)}`,
|
|
977
1002
|
stroke: e.value.backgroundColor,
|
|
978
1003
|
"stroke-width": e.value.lineStrokeWidth + 1,
|
|
979
1004
|
"stroke-linecap": "round",
|
|
980
1005
|
fill: "none",
|
|
981
1006
|
class: ne({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
982
1007
|
style: { transition: "all 0.3s ease-in-out" }
|
|
983
|
-
}, null, 10,
|
|
984
|
-
|
|
985
|
-
d: `M ${f(
|
|
1008
|
+
}, null, 10, Sa),
|
|
1009
|
+
A("path", {
|
|
1010
|
+
d: `M ${f(Je)(t.coordinates)}`,
|
|
986
1011
|
stroke: t.color,
|
|
987
1012
|
"stroke-width": e.value.lineStrokeWidth,
|
|
988
1013
|
"stroke-linecap": "round",
|
|
989
1014
|
fill: "none",
|
|
990
1015
|
class: ne({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
991
1016
|
style: { transition: "all 0.3s ease-in-out" }
|
|
992
|
-
}, null, 10,
|
|
993
|
-
], 64)) : (a(), l(
|
|
994
|
-
|
|
1017
|
+
}, null, 10, wa)
|
|
1018
|
+
], 64)) : (a(), l(p, { key: 1 }, [
|
|
1019
|
+
A("path", {
|
|
995
1020
|
d: `M ${t.linePath}`,
|
|
996
1021
|
stroke: e.value.backgroundColor,
|
|
997
1022
|
"stroke-width": e.value.lineStrokeWidth + 1,
|
|
@@ -999,8 +1024,8 @@ const et = (s) => (dt("data-v-b839026c"), s = s(), ct(), s), Mt = ["id"], Bt = [
|
|
|
999
1024
|
fill: "none",
|
|
1000
1025
|
class: ne({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1001
1026
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1002
|
-
}, null, 10,
|
|
1003
|
-
|
|
1027
|
+
}, null, 10, Aa),
|
|
1028
|
+
A("path", {
|
|
1004
1029
|
d: `M ${t.linePath}`,
|
|
1005
1030
|
stroke: t.color,
|
|
1006
1031
|
"stroke-width": e.value.lineStrokeWidth,
|
|
@@ -1008,63 +1033,63 @@ const et = (s) => (dt("data-v-b839026c"), s = s(), ct(), s), Mt = ["id"], Bt = [
|
|
|
1008
1033
|
fill: "none",
|
|
1009
1034
|
class: ne({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1010
1035
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1011
|
-
}, null, 10,
|
|
1036
|
+
}, null, 10, _a)
|
|
1012
1037
|
], 64)),
|
|
1013
|
-
(a(!0), l(
|
|
1038
|
+
(a(!0), l(p, null, L(t.coordinates, (r, h) => (a(), l("circle", {
|
|
1014
1039
|
cx: r.x,
|
|
1015
|
-
cy: f(
|
|
1040
|
+
cy: f(Z)(r.y),
|
|
1016
1041
|
r: 3,
|
|
1017
1042
|
fill: t.color,
|
|
1018
1043
|
stroke: e.value.backgroundColor,
|
|
1019
1044
|
"stroke-width": "0.5",
|
|
1020
1045
|
class: "quick-animation",
|
|
1021
1046
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1022
|
-
}, null, 8,
|
|
1047
|
+
}, null, 8, La))), 256))
|
|
1023
1048
|
]))), 256))
|
|
1024
1049
|
]),
|
|
1025
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
1026
|
-
(a(!0), l(
|
|
1027
|
-
(a(!0), l(
|
|
1050
|
+
e.value.showDataLabels ? (a(), l("g", za, [
|
|
1051
|
+
(a(!0), l(p, null, L(d.value.dataset, (t, n) => (a(), l(p, null, [
|
|
1052
|
+
(a(!0), l(p, null, L(t.coordinates, (r, h) => (a(), l("text", {
|
|
1028
1053
|
"text-anchor": "middle",
|
|
1029
1054
|
"font-size": e.value.dataLabelFontSize,
|
|
1030
1055
|
fill: t.color,
|
|
1031
1056
|
x: r.x,
|
|
1032
|
-
y: f(
|
|
1057
|
+
y: f(Z)(r.y) - e.value.dataLabelFontSize / 2,
|
|
1033
1058
|
class: "quick-animation",
|
|
1034
1059
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1035
|
-
}, E(f(
|
|
1060
|
+
}, E(f(X)(
|
|
1036
1061
|
e.value.formatter,
|
|
1037
|
-
f(
|
|
1038
|
-
f(
|
|
1062
|
+
f(Z)(r.value),
|
|
1063
|
+
f(B)({
|
|
1039
1064
|
p: e.value.valuePrefix,
|
|
1040
|
-
v: f(
|
|
1065
|
+
v: f(Z)(r.value),
|
|
1041
1066
|
s: e.value.valueSuffix,
|
|
1042
1067
|
r: e.value.dataLabelRoundingValue
|
|
1043
1068
|
}),
|
|
1044
1069
|
{ datapoint: r, seriesIndex: h }
|
|
1045
|
-
)), 9,
|
|
1070
|
+
)), 9, $a))), 256))
|
|
1046
1071
|
], 64))), 256))
|
|
1047
|
-
])) :
|
|
1048
|
-
|
|
1049
|
-
(a(!0), l(
|
|
1072
|
+
])) : g("", !0),
|
|
1073
|
+
A("g", Ca, [
|
|
1074
|
+
(a(!0), l(p, null, L(d.value.extremes.maxSeries, (t, n) => (a(), l("rect", {
|
|
1050
1075
|
x: d.value.drawingArea.left + n * d.value.slotSize,
|
|
1051
1076
|
y: d.value.drawingArea.top,
|
|
1052
1077
|
height: d.value.drawingArea.height <= 0 ? 1e-5 : d.value.drawingArea.height,
|
|
1053
1078
|
width: d.value.slotSize <= 0 ? 1e-5 : d.value.slotSize,
|
|
1054
|
-
fill: [
|
|
1055
|
-
style:
|
|
1079
|
+
fill: [j.value, J.value].includes(n) ? e.value.xyHighlighterColor : "transparent",
|
|
1080
|
+
style: N(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1056
1081
|
onMouseenter: (r) => d.value.useTooltip(n),
|
|
1057
1082
|
onMouseleave: c[1] || (c[1] = (r) => d.value.killTooltip()),
|
|
1058
|
-
onClick: (r) =>
|
|
1083
|
+
onClick: (r) => m("selectDatapoint", d.value.dataset.map((h) => ({
|
|
1059
1084
|
...h,
|
|
1060
1085
|
value: h.values[n]
|
|
1061
1086
|
})))
|
|
1062
|
-
}, null, 44,
|
|
1087
|
+
}, null, 44, Pa))), 256))
|
|
1063
1088
|
])
|
|
1064
|
-
], 64)) :
|
|
1065
|
-
z.value ===
|
|
1066
|
-
e.value.xyShowGrid ? (a(), l("g",
|
|
1067
|
-
(a(!0), l(
|
|
1089
|
+
], 64)) : g("", !0),
|
|
1090
|
+
z.value === _.BAR ? (a(), l(p, { key: 2 }, [
|
|
1091
|
+
e.value.xyShowGrid ? (a(), l("g", Ta, [
|
|
1092
|
+
(a(!0), l(p, null, L(v.value.yLabels, (t) => (a(), l(p, null, [
|
|
1068
1093
|
t.y <= v.value.drawingArea.bottom ? (a(), l("line", {
|
|
1069
1094
|
key: 0,
|
|
1070
1095
|
x1: v.value.drawingArea.left,
|
|
@@ -1074,9 +1099,9 @@ const et = (s) => (dt("data-v-b839026c"), s = s(), ct(), s), Mt = ["id"], Bt = [
|
|
|
1074
1099
|
stroke: e.value.xyGridStroke,
|
|
1075
1100
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1076
1101
|
"stroke-linecap": "round"
|
|
1077
|
-
}, null, 8,
|
|
1102
|
+
}, null, 8, Ia)) : g("", !0)
|
|
1078
1103
|
], 64))), 256)),
|
|
1079
|
-
(a(!0), l(
|
|
1104
|
+
(a(!0), l(p, null, L(v.value.extremes.maxSeries + 1, (t, n) => (a(), l("line", {
|
|
1080
1105
|
x1: v.value.drawingArea.left + v.value.slotSize * n,
|
|
1081
1106
|
x2: v.value.drawingArea.left + v.value.slotSize * n,
|
|
1082
1107
|
y1: v.value.drawingArea.top,
|
|
@@ -1084,10 +1109,10 @@ const et = (s) => (dt("data-v-b839026c"), s = s(), ct(), s), Mt = ["id"], Bt = [
|
|
|
1084
1109
|
stroke: e.value.xyGridStroke,
|
|
1085
1110
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1086
1111
|
"stroke-linecap": "round"
|
|
1087
|
-
}, null, 8,
|
|
1088
|
-
])) :
|
|
1089
|
-
e.value.xyShowAxis ? (a(), l("g",
|
|
1090
|
-
|
|
1112
|
+
}, null, 8, Ea))), 256))
|
|
1113
|
+
])) : g("", !0),
|
|
1114
|
+
e.value.xyShowAxis ? (a(), l("g", Ra, [
|
|
1115
|
+
A("line", {
|
|
1091
1116
|
x1: v.value.drawingArea.left,
|
|
1092
1117
|
x2: v.value.drawingArea.left,
|
|
1093
1118
|
y1: v.value.drawingArea.top,
|
|
@@ -1095,8 +1120,8 @@ const et = (s) => (dt("data-v-b839026c"), s = s(), ct(), s), Mt = ["id"], Bt = [
|
|
|
1095
1120
|
stroke: e.value.xyAxisStroke,
|
|
1096
1121
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1097
1122
|
"stroke-linecap": "round"
|
|
1098
|
-
}, null, 8,
|
|
1099
|
-
|
|
1123
|
+
}, null, 8, Oa),
|
|
1124
|
+
A("line", {
|
|
1100
1125
|
x1: v.value.drawingArea.left,
|
|
1101
1126
|
x2: v.value.drawingArea.right,
|
|
1102
1127
|
y1: isNaN(v.value.absoluteZero) ? v.value.drawingArea.bottom : v.value.absoluteZero,
|
|
@@ -1104,10 +1129,10 @@ const et = (s) => (dt("data-v-b839026c"), s = s(), ct(), s), Mt = ["id"], Bt = [
|
|
|
1104
1129
|
stroke: e.value.xyAxisStroke,
|
|
1105
1130
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1106
1131
|
"stroke-linecap": "round"
|
|
1107
|
-
}, null, 8,
|
|
1108
|
-
])) :
|
|
1109
|
-
e.value.xyShowScale ? (a(), l("g",
|
|
1110
|
-
(a(!0), l(
|
|
1132
|
+
}, null, 8, Na)
|
|
1133
|
+
])) : g("", !0),
|
|
1134
|
+
e.value.xyShowScale ? (a(), l("g", Fa, [
|
|
1135
|
+
(a(!0), l(p, null, L(v.value.yLabels, (t, n) => (a(), l(p, null, [
|
|
1111
1136
|
t.y <= v.value.drawingArea.bottom ? (a(), l("line", {
|
|
1112
1137
|
key: 0,
|
|
1113
1138
|
x1: t.x + 4,
|
|
@@ -1117,7 +1142,7 @@ const et = (s) => (dt("data-v-b839026c"), s = s(), ct(), s), Mt = ["id"], Bt = [
|
|
|
1117
1142
|
stroke: e.value.xyAxisStroke,
|
|
1118
1143
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1119
1144
|
"stroke-linecap": "round"
|
|
1120
|
-
}, null, 8,
|
|
1145
|
+
}, null, 8, Ma)) : g("", !0),
|
|
1121
1146
|
t.y <= v.value.drawingArea.bottom ? (a(), l("text", {
|
|
1122
1147
|
key: 1,
|
|
1123
1148
|
x: t.x,
|
|
@@ -1125,21 +1150,21 @@ const et = (s) => (dt("data-v-b839026c"), s = s(), ct(), s), Mt = ["id"], Bt = [
|
|
|
1125
1150
|
"text-anchor": "end",
|
|
1126
1151
|
"font-size": e.value.xyLabelsYFontSize,
|
|
1127
1152
|
fill: e.value.color
|
|
1128
|
-
}, E(f(
|
|
1153
|
+
}, E(f(X)(
|
|
1129
1154
|
e.value.formatter,
|
|
1130
1155
|
t.value,
|
|
1131
|
-
f(
|
|
1156
|
+
f(B)({
|
|
1132
1157
|
p: e.value.valuePrefix,
|
|
1133
1158
|
v: t.value,
|
|
1134
1159
|
s: e.value.valueSuffix,
|
|
1135
1160
|
r: e.value.dataLabelRoundingValue
|
|
1136
1161
|
}),
|
|
1137
1162
|
{ datapoint: t, seriesIndex: n }
|
|
1138
|
-
)), 9,
|
|
1163
|
+
)), 9, Ba)) : g("", !0)
|
|
1139
1164
|
], 64))), 256))
|
|
1140
|
-
])) :
|
|
1141
|
-
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g",
|
|
1142
|
-
(a(!0), l(
|
|
1165
|
+
])) : g("", !0),
|
|
1166
|
+
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g", Ua, [
|
|
1167
|
+
(a(!0), l(p, null, L(e.value.xyPeriods.slice(k.value.start, k.value.end), (t, n) => (a(), l("line", {
|
|
1143
1168
|
x1: v.value.drawingArea.left + v.value.slotSize * (n + 1) - v.value.slotSize / 2,
|
|
1144
1169
|
x2: v.value.drawingArea.left + v.value.slotSize * (n + 1) - v.value.slotSize / 2,
|
|
1145
1170
|
y1: v.value.drawingArea.bottom,
|
|
@@ -1147,21 +1172,21 @@ const et = (s) => (dt("data-v-b839026c"), s = s(), ct(), s), Mt = ["id"], Bt = [
|
|
|
1147
1172
|
stroke: e.value.xyAxisStroke,
|
|
1148
1173
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1149
1174
|
"stroke-linecap": "round"
|
|
1150
|
-
}, null, 8,
|
|
1151
|
-
(a(!0), l(
|
|
1175
|
+
}, null, 8, Da))), 256)),
|
|
1176
|
+
(a(!0), l(p, null, L(e.value.xyPeriods.slice(k.value.start, k.value.end), (t, n) => (a(), l("text", {
|
|
1152
1177
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1153
1178
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1154
1179
|
transform: `translate(${v.value.drawingArea.left + v.value.slotSize * (n + 1) - v.value.slotSize / 2}, ${v.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}) rotate(${e.value.xyPeriodLabelsRotation})`,
|
|
1155
1180
|
fill: e.value.color
|
|
1156
|
-
}, E(t), 9,
|
|
1157
|
-
])) :
|
|
1158
|
-
|
|
1159
|
-
(a(!0), l(
|
|
1160
|
-
(a(!0), l(
|
|
1181
|
+
}, E(t), 9, Va))), 256))
|
|
1182
|
+
])) : g("", !0),
|
|
1183
|
+
A("g", qa, [
|
|
1184
|
+
(a(!0), l(p, null, L(v.value.dataset, (t, n) => (a(), l(p, null, [
|
|
1185
|
+
(a(!0), l(p, null, L(t.coordinates, (r, h) => (a(), l("rect", {
|
|
1161
1186
|
x: r.x,
|
|
1162
1187
|
width: r.width <= 0 ? 1e-5 : r.width,
|
|
1163
|
-
height: f(
|
|
1164
|
-
y: f(
|
|
1188
|
+
height: f(Z)(r.height <= 0 ? 1e-5 : r.height),
|
|
1189
|
+
y: f(Z)(r.y),
|
|
1165
1190
|
fill: t.color,
|
|
1166
1191
|
stroke: e.value.backgroundColor,
|
|
1167
1192
|
"stroke-width": e.value.barStrokeWidth,
|
|
@@ -1174,95 +1199,95 @@ const et = (s) => (dt("data-v-b839026c"), s = s(), ct(), s), Mt = ["id"], Bt = [
|
|
|
1174
1199
|
from: 0,
|
|
1175
1200
|
to: r.height,
|
|
1176
1201
|
dur: "0.5s"
|
|
1177
|
-
}, null, 8,
|
|
1202
|
+
}, null, 8, ja)) : g("", !0),
|
|
1178
1203
|
e.value.barAnimated && r.value > 0 && !f(ke) && !f(be) ? (a(), l("animate", {
|
|
1179
1204
|
key: 1,
|
|
1180
1205
|
attributeName: "y",
|
|
1181
1206
|
from: v.value.absoluteZero,
|
|
1182
1207
|
to: v.value.absoluteZero - r.height,
|
|
1183
1208
|
dur: "0.5s"
|
|
1184
|
-
}, null, 8,
|
|
1185
|
-
], 10,
|
|
1209
|
+
}, null, 8, Ga)) : g("", !0)
|
|
1210
|
+
], 10, Wa))), 256))
|
|
1186
1211
|
], 64))), 256))
|
|
1187
1212
|
]),
|
|
1188
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
1189
|
-
(a(!0), l(
|
|
1190
|
-
(a(!0), l(
|
|
1213
|
+
e.value.showDataLabels ? (a(), l("g", Ha, [
|
|
1214
|
+
(a(!0), l(p, null, L(v.value.dataset, (t, n) => (a(), l(p, null, [
|
|
1215
|
+
(a(!0), l(p, null, L(t.coordinates, (r, h) => (a(), l("text", {
|
|
1191
1216
|
x: r.x + r.width / 2,
|
|
1192
|
-
y: f(
|
|
1217
|
+
y: f(Z)(r.y) - e.value.dataLabelFontSize / 2,
|
|
1193
1218
|
"text-anchor": "middle",
|
|
1194
1219
|
"font-size": e.value.dataLabelFontSize,
|
|
1195
1220
|
fill: t.color,
|
|
1196
1221
|
class: "quick-animation"
|
|
1197
|
-
}, E(f(
|
|
1222
|
+
}, E(f(X)(
|
|
1198
1223
|
e.value.formatter,
|
|
1199
|
-
f(
|
|
1200
|
-
f(
|
|
1224
|
+
f(Z)(r.value),
|
|
1225
|
+
f(B)({
|
|
1201
1226
|
p: e.value.valuePrefix,
|
|
1202
|
-
v: f(
|
|
1227
|
+
v: f(Z)(r.value),
|
|
1203
1228
|
s: e.value.valueSuffix,
|
|
1204
1229
|
r: e.value.dataLabelRoundingValue
|
|
1205
1230
|
}),
|
|
1206
1231
|
{ datapoint: r, seriesIndex: h }
|
|
1207
|
-
)), 9,
|
|
1232
|
+
)), 9, Xa))), 256))
|
|
1208
1233
|
], 64))), 256))
|
|
1209
|
-
])) :
|
|
1210
|
-
|
|
1211
|
-
(a(!0), l(
|
|
1234
|
+
])) : g("", !0),
|
|
1235
|
+
A("g", Za, [
|
|
1236
|
+
(a(!0), l(p, null, L(v.value.extremes.maxSeries, (t, n) => (a(), l("rect", {
|
|
1212
1237
|
x: v.value.drawingArea.left + n * v.value.slotSize,
|
|
1213
1238
|
y: v.value.drawingArea.top,
|
|
1214
1239
|
height: v.value.drawingArea.height <= 0 ? 1e-5 : v.value.drawingArea.height,
|
|
1215
1240
|
width: v.value.slotSize <= 0 ? 1e-5 : v.value.slotSize,
|
|
1216
|
-
fill: [
|
|
1217
|
-
style:
|
|
1241
|
+
fill: [j.value, J.value].includes(n) ? e.value.xyHighlighterColor : "transparent",
|
|
1242
|
+
style: N(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1218
1243
|
onMouseenter: (r) => v.value.useTooltip(n),
|
|
1219
1244
|
onMouseleave: c[2] || (c[2] = (r) => v.value.killTooltip()),
|
|
1220
|
-
onClick: (r) =>
|
|
1245
|
+
onClick: (r) => m("selectDatapoint", v.value.dataset.map((h) => ({
|
|
1221
1246
|
...h,
|
|
1222
1247
|
value: h.values[n]
|
|
1223
1248
|
})))
|
|
1224
|
-
}, null, 44,
|
|
1249
|
+
}, null, 44, Ya))), 256))
|
|
1225
1250
|
])
|
|
1226
|
-
], 64)) :
|
|
1227
|
-
[
|
|
1228
|
-
e.value.xAxisLabel && z.value ===
|
|
1229
|
-
|
|
1251
|
+
], 64)) : g("", !0),
|
|
1252
|
+
[_.LINE, _.BAR].includes(z.value) ? (a(), l("g", Ja, [
|
|
1253
|
+
e.value.xAxisLabel && z.value === _.LINE ? (a(), l("g", Qa, [
|
|
1254
|
+
A("text", {
|
|
1230
1255
|
"font-size": e.value.axisLabelsFontSize,
|
|
1231
1256
|
fill: e.value.color,
|
|
1232
1257
|
"text-anchor": "middle",
|
|
1233
1258
|
x: d.value.drawingArea.left + d.value.drawingArea.width / 2,
|
|
1234
1259
|
y: S.value.height - e.value.axisLabelsFontSize / 3
|
|
1235
|
-
}, E(e.value.xAxisLabel), 9,
|
|
1236
|
-
])) :
|
|
1237
|
-
e.value.xAxisLabel && z.value ===
|
|
1238
|
-
|
|
1260
|
+
}, E(e.value.xAxisLabel), 9, Ka)
|
|
1261
|
+
])) : g("", !0),
|
|
1262
|
+
e.value.xAxisLabel && z.value === _.BAR ? (a(), l("g", el, [
|
|
1263
|
+
A("text", {
|
|
1239
1264
|
"font-size": e.value.axisLabelsFontSize,
|
|
1240
1265
|
fill: e.value.color,
|
|
1241
1266
|
"text-anchor": "middle",
|
|
1242
1267
|
x: v.value.drawingArea.left + v.value.drawingArea.width / 2,
|
|
1243
1268
|
y: S.value.height - e.value.axisLabelsFontSize / 3
|
|
1244
|
-
}, E(e.value.xAxisLabel), 9,
|
|
1245
|
-
])) :
|
|
1246
|
-
e.value.yAxisLabel && z.value ===
|
|
1247
|
-
|
|
1269
|
+
}, E(e.value.xAxisLabel), 9, tl)
|
|
1270
|
+
])) : g("", !0),
|
|
1271
|
+
e.value.yAxisLabel && z.value === _.LINE ? (a(), l("g", al, [
|
|
1272
|
+
A("text", {
|
|
1248
1273
|
"font-size": e.value.axisLabelsFontSize,
|
|
1249
1274
|
fill: e.value.color,
|
|
1250
1275
|
transform: `translate(${e.value.axisLabelsFontSize}, ${d.value.drawingArea.top + d.value.drawingArea.height / 2}) rotate(-90)`,
|
|
1251
1276
|
"text-anchor": "middle"
|
|
1252
|
-
}, E(e.value.yAxisLabel), 9,
|
|
1253
|
-
])) :
|
|
1254
|
-
e.value.yAxisLabel && z.value ===
|
|
1255
|
-
|
|
1277
|
+
}, E(e.value.yAxisLabel), 9, ll)
|
|
1278
|
+
])) : g("", !0),
|
|
1279
|
+
e.value.yAxisLabel && z.value === _.BAR ? (a(), l("g", ol, [
|
|
1280
|
+
A("text", {
|
|
1256
1281
|
"font-size": e.value.axisLabelsFontSize,
|
|
1257
1282
|
fill: e.value.color,
|
|
1258
1283
|
transform: `translate(${e.value.axisLabelsFontSize}, ${v.value.drawingArea.top + v.value.drawingArea.height / 2}) rotate(-90)`,
|
|
1259
1284
|
"text-anchor": "middle"
|
|
1260
|
-
}, E(e.value.yAxisLabel), 9,
|
|
1261
|
-
])) :
|
|
1262
|
-
])) :
|
|
1263
|
-
], 12,
|
|
1264
|
-
z.value ?
|
|
1265
|
-
key:
|
|
1285
|
+
}, E(e.value.yAxisLabel), 9, il)
|
|
1286
|
+
])) : g("", !0)
|
|
1287
|
+
])) : g("", !0)
|
|
1288
|
+
], 12, qt)) : g("", !0),
|
|
1289
|
+
z.value ? g("", !0) : (a(), Le(It, {
|
|
1290
|
+
key: 4,
|
|
1266
1291
|
config: {
|
|
1267
1292
|
type: "line",
|
|
1268
1293
|
style: {
|
|
@@ -1279,16 +1304,16 @@ const et = (s) => (dt("data-v-b839026c"), s = s(), ct(), s), Mt = ["id"], Bt = [
|
|
|
1279
1304
|
}
|
|
1280
1305
|
}
|
|
1281
1306
|
}, null, 8, ["config"])),
|
|
1282
|
-
u.$slots.watermark ? (a(), l("div",
|
|
1283
|
-
|
|
1284
|
-
])) :
|
|
1285
|
-
[
|
|
1286
|
-
key: `slicer_${
|
|
1307
|
+
u.$slots.watermark ? (a(), l("div", ul, [
|
|
1308
|
+
M(u.$slots, "watermark", H(re({ isPrinting: f(ke) || f(be) })), void 0, !0)
|
|
1309
|
+
])) : g("", !0),
|
|
1310
|
+
[_.BAR, _.LINE].includes(z.value) && e.value.zoomXy && x.value.maxSeriesLength > 1 ? (a(), l("div", {
|
|
1311
|
+
key: `slicer_${xe.value}`,
|
|
1287
1312
|
ref_key: "quickChartSlicer",
|
|
1288
|
-
ref:
|
|
1313
|
+
ref: ve
|
|
1289
1314
|
}, [
|
|
1290
|
-
(a(),
|
|
1291
|
-
key: `slicer_${
|
|
1315
|
+
(a(), Le(Tt, {
|
|
1316
|
+
key: `slicer_${xe.value}`,
|
|
1292
1317
|
background: e.value.zoomColor,
|
|
1293
1318
|
borderColor: e.value.backgroundColor,
|
|
1294
1319
|
fontSize: e.value.zoomFontSize,
|
|
@@ -1298,7 +1323,7 @@ const et = (s) => (dt("data-v-b839026c"), s = s(), ct(), s), Mt = ["id"], Bt = [
|
|
|
1298
1323
|
textColor: e.value.color,
|
|
1299
1324
|
inputColor: e.value.zoomColor,
|
|
1300
1325
|
selectColor: e.value.zoomHighlightColor,
|
|
1301
|
-
max:
|
|
1326
|
+
max: x.value.maxSeriesLength,
|
|
1302
1327
|
min: 0,
|
|
1303
1328
|
valueStart: k.value.start,
|
|
1304
1329
|
valueEnd: k.value.end,
|
|
@@ -1307,51 +1332,51 @@ const et = (s) => (dt("data-v-b839026c"), s = s(), ct(), s), Mt = ["id"], Bt = [
|
|
|
1307
1332
|
minimapSelectedColorOpacity: e.value.zoomMinimap.selectedColorOpacity,
|
|
1308
1333
|
minimapSelectionRadius: e.value.zoomMinimap.selectionRadius,
|
|
1309
1334
|
minimapLineColor: e.value.zoomMinimap.lineColor,
|
|
1310
|
-
minimap:
|
|
1335
|
+
minimap: st.value,
|
|
1311
1336
|
minimapIndicatorColor: e.value.zoomMinimap.indicatorColor,
|
|
1312
|
-
minimapSelectedIndex:
|
|
1337
|
+
minimapSelectedIndex: J.value,
|
|
1313
1338
|
start: k.value.start,
|
|
1314
1339
|
"onUpdate:start": c[3] || (c[3] = (t) => k.value.start = t),
|
|
1315
1340
|
end: k.value.end,
|
|
1316
1341
|
"onUpdate:end": c[4] || (c[4] = (t) => k.value.end = t),
|
|
1317
|
-
onReset:
|
|
1318
|
-
onTrapMouse:
|
|
1342
|
+
onReset: rt,
|
|
1343
|
+
onTrapMouse: nt
|
|
1319
1344
|
}, {
|
|
1320
|
-
"reset-action":
|
|
1321
|
-
|
|
1345
|
+
"reset-action": Q(({ reset: t }) => [
|
|
1346
|
+
M(u.$slots, "reset-action", H(re({ reset: t })), void 0, !0)
|
|
1322
1347
|
]),
|
|
1323
1348
|
_: 3
|
|
1324
1349
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "smoothMinimap", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectionRadius", "minimapLineColor", "minimap", "minimapIndicatorColor", "minimapSelectedIndex", "start", "end"]))
|
|
1325
|
-
])) :
|
|
1350
|
+
])) : g("", !0),
|
|
1326
1351
|
e.value.showLegend ? (a(), l("div", {
|
|
1327
|
-
key:
|
|
1352
|
+
key: 7,
|
|
1328
1353
|
ref_key: "quickChartLegend",
|
|
1329
1354
|
ref: oe,
|
|
1330
1355
|
class: "vue-ui-quick-chart-legend",
|
|
1331
|
-
style:
|
|
1356
|
+
style: N(`background:transparent;color:${e.value.color}`)
|
|
1332
1357
|
}, [
|
|
1333
|
-
z.value ===
|
|
1358
|
+
z.value === _.DONUT ? (a(!0), l(p, { key: 0 }, L(C.value.legend, (t, n) => (a(), l("div", {
|
|
1334
1359
|
class: "vue-ui-quick-chart-legend-item",
|
|
1335
1360
|
onClick: (r) => {
|
|
1336
|
-
|
|
1361
|
+
ut(t, C.value.dataset), m("selectLegend", t);
|
|
1337
1362
|
},
|
|
1338
|
-
style:
|
|
1363
|
+
style: N(`cursor: ${C.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1339
1364
|
}, [
|
|
1340
|
-
e.value.useCustomLegend ?
|
|
1341
|
-
|
|
1365
|
+
e.value.useCustomLegend ? M(u.$slots, "legend", H(Re({ key: 0 }, { legend: t })), void 0, !0) : (a(), l(p, { key: 1 }, [
|
|
1366
|
+
se($e, {
|
|
1342
1367
|
name: e.value.legendIcon,
|
|
1343
1368
|
stroke: t.color,
|
|
1344
1369
|
size: e.value.legendIconSize
|
|
1345
1370
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1346
|
-
|
|
1347
|
-
style:
|
|
1371
|
+
A("span", {
|
|
1372
|
+
style: N(`font-size:${e.value.legendFontSize}px`)
|
|
1348
1373
|
}, E(t.name), 5),
|
|
1349
|
-
|
|
1350
|
-
style:
|
|
1351
|
-
}, E(w.value.includes(t.id) ? "-" : f(
|
|
1374
|
+
A("span", {
|
|
1375
|
+
style: N(`font-size:${e.value.legendFontSize}px;font-variant-numeric:tabular-nums`)
|
|
1376
|
+
}, E(w.value.includes(t.id) ? "-" : f(X)(
|
|
1352
1377
|
e.value.formatter,
|
|
1353
1378
|
t.absoluteValue,
|
|
1354
|
-
f(
|
|
1379
|
+
f(B)({
|
|
1355
1380
|
p: e.value.valuePrefix,
|
|
1356
1381
|
v: t.absoluteValue,
|
|
1357
1382
|
s: e.value.valueSuffix,
|
|
@@ -1361,58 +1386,66 @@ const et = (s) => (dt("data-v-b839026c"), s = s(), ct(), s), Mt = ["id"], Bt = [
|
|
|
1361
1386
|
)), 5),
|
|
1362
1387
|
w.value.includes(t.id) ? (a(), l("span", {
|
|
1363
1388
|
key: 0,
|
|
1364
|
-
style:
|
|
1365
|
-
}, " ( - % ) ", 4)) :
|
|
1389
|
+
style: N(`font-size:${e.value.legendFontSize}px`)
|
|
1390
|
+
}, " ( - % ) ", 4)) : Ae.value ? (a(), l("span", {
|
|
1366
1391
|
key: 1,
|
|
1367
|
-
style:
|
|
1392
|
+
style: N(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1368
1393
|
}, " ( - % ) ", 4)) : (a(), l("span", {
|
|
1369
1394
|
key: 2,
|
|
1370
|
-
style:
|
|
1371
|
-
}, " (" + E(f(
|
|
1395
|
+
style: N(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1396
|
+
}, " (" + E(f(B)({
|
|
1372
1397
|
v: t.value / C.value.total * 100,
|
|
1373
1398
|
s: "%",
|
|
1374
1399
|
r: e.value.dataLabelRoundingPercentage
|
|
1375
1400
|
})) + ") ", 5))
|
|
1376
1401
|
], 64))
|
|
1377
|
-
], 12,
|
|
1378
|
-
z.value ===
|
|
1402
|
+
], 12, nl))), 256)) : g("", !0),
|
|
1403
|
+
z.value === _.LINE ? (a(!0), l(p, { key: 1 }, L(d.value.legend, (t, n) => (a(), l("div", {
|
|
1379
1404
|
class: "vue-ui-quick-chart-legend-item",
|
|
1380
1405
|
onClick: (r) => {
|
|
1381
|
-
|
|
1406
|
+
je(t.id, d.value.legend.length - 1), m("selectLegend", t);
|
|
1382
1407
|
},
|
|
1383
|
-
style:
|
|
1408
|
+
style: N(`cursor: ${d.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1384
1409
|
}, [
|
|
1385
|
-
e.value.useCustomLegend ?
|
|
1386
|
-
|
|
1410
|
+
e.value.useCustomLegend ? M(u.$slots, "legend", H(Re({ key: 0 }, { legend: t })), void 0, !0) : (a(), l(p, { key: 1 }, [
|
|
1411
|
+
se($e, {
|
|
1387
1412
|
name: e.value.legendIcon,
|
|
1388
1413
|
stroke: t.color,
|
|
1389
1414
|
size: e.value.legendIconSize
|
|
1390
1415
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1391
|
-
|
|
1392
|
-
style:
|
|
1416
|
+
A("span", {
|
|
1417
|
+
style: N(`font-size:${e.value.legendFontSize}px`)
|
|
1393
1418
|
}, E(t.name), 5)
|
|
1394
1419
|
], 64))
|
|
1395
|
-
], 12,
|
|
1396
|
-
z.value ===
|
|
1420
|
+
], 12, rl))), 256)) : g("", !0),
|
|
1421
|
+
z.value === _.BAR ? (a(!0), l(p, { key: 2 }, L(v.value.legend, (t, n) => (a(), l("div", {
|
|
1397
1422
|
class: "vue-ui-quick-chart-legend-item",
|
|
1398
1423
|
onClick: (r) => {
|
|
1399
|
-
|
|
1424
|
+
je(t.id, v.value.legend.length - 1), m("selectLegend", t);
|
|
1400
1425
|
},
|
|
1401
|
-
style:
|
|
1426
|
+
style: N(`cursor: ${v.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1402
1427
|
}, [
|
|
1403
|
-
e.value.useCustomLegend ?
|
|
1404
|
-
|
|
1428
|
+
e.value.useCustomLegend ? M(u.$slots, "legend", H(Re({ key: 0 }, { legend: t })), void 0, !0) : (a(), l(p, { key: 1 }, [
|
|
1429
|
+
se($e, {
|
|
1405
1430
|
name: e.value.legendIcon,
|
|
1406
1431
|
stroke: t.color,
|
|
1407
1432
|
size: e.value.legendIconSize
|
|
1408
1433
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1409
|
-
|
|
1410
|
-
style:
|
|
1434
|
+
A("span", {
|
|
1435
|
+
style: N(`font-size:${e.value.legendFontSize}px`)
|
|
1411
1436
|
}, E(t.name), 5)
|
|
1412
1437
|
], 64))
|
|
1413
|
-
], 12,
|
|
1414
|
-
], 4)) :
|
|
1415
|
-
|
|
1438
|
+
], 12, sl))), 256)) : g("", !0)
|
|
1439
|
+
], 4)) : g("", !0),
|
|
1440
|
+
u.$slots.source ? (a(), l("div", {
|
|
1441
|
+
key: 8,
|
|
1442
|
+
ref_key: "source",
|
|
1443
|
+
ref: Me,
|
|
1444
|
+
dir: "auto"
|
|
1445
|
+
}, [
|
|
1446
|
+
M(u.$slots, "source", {}, void 0, !0)
|
|
1447
|
+
], 512)) : g("", !0),
|
|
1448
|
+
se($t, {
|
|
1416
1449
|
show: Se.value.showTooltip && G.value,
|
|
1417
1450
|
backgroundColor: e.value.backgroundColor,
|
|
1418
1451
|
color: e.value.color,
|
|
@@ -1423,27 +1456,27 @@ const et = (s) => (dt("data-v-b839026c"), s = s(), ct(), s), Mt = ["id"], Bt = [
|
|
|
1423
1456
|
backgroundOpacity: e.value.tooltipBackgroundOpacity,
|
|
1424
1457
|
position: e.value.tooltipPosition,
|
|
1425
1458
|
offsetY: e.value.tooltipOffsetY,
|
|
1426
|
-
parent:
|
|
1427
|
-
content:
|
|
1428
|
-
isCustom: f(
|
|
1459
|
+
parent: W.value,
|
|
1460
|
+
content: K.value,
|
|
1461
|
+
isCustom: f(ze)(e.value.tooltipCustomFormat)
|
|
1429
1462
|
}, {
|
|
1430
|
-
"tooltip-before":
|
|
1431
|
-
|
|
1463
|
+
"tooltip-before": Q(() => [
|
|
1464
|
+
M(u.$slots, "tooltip-before", H(re({ ...de.value })), void 0, !0)
|
|
1432
1465
|
]),
|
|
1433
|
-
"tooltip-after":
|
|
1434
|
-
|
|
1466
|
+
"tooltip-after": Q(() => [
|
|
1467
|
+
M(u.$slots, "tooltip-after", H(re({ ...de.value })), void 0, !0)
|
|
1435
1468
|
]),
|
|
1436
1469
|
_: 3
|
|
1437
1470
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"])
|
|
1438
|
-
], 14,
|
|
1439
|
-
|
|
1471
|
+
], 14, Vt)) : (a(), l("div", vl, [
|
|
1472
|
+
se($e, {
|
|
1440
1473
|
name: "circleCancel",
|
|
1441
1474
|
stroke: "red"
|
|
1442
1475
|
}),
|
|
1443
|
-
|
|
1476
|
+
dl
|
|
1444
1477
|
]));
|
|
1445
1478
|
}
|
|
1446
|
-
},
|
|
1479
|
+
}, _l = /* @__PURE__ */ Ot(cl, [["__scopeId", "data-v-606895e6"]]);
|
|
1447
1480
|
export {
|
|
1448
|
-
|
|
1481
|
+
_l as default
|
|
1449
1482
|
};
|