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