vue-data-ui 2.4.2 → 2.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-JuK2z9IB.js → Arrow-C7lNL7sY.js} +1 -1
- package/dist/{Arrow-DLTRnzcG.cjs → Arrow-Dz6AomGr.cjs} +1 -1
- package/dist/{BaseIcon-rRli6Sfv.js → BaseIcon-BbvG1AlW.js} +1 -1
- package/dist/{BaseIcon-BGExhz6v.cjs → BaseIcon-uALK38Ov.cjs} +1 -1
- package/dist/{DataTable-DJzhv96s.cjs → DataTable-DTzynbND.cjs} +1 -1
- package/dist/{DataTable-DTk7C4Pr.js → DataTable-DYqC2pqu.js} +2 -2
- package/dist/{Legend-YZ7Hz3o1.cjs → Legend-Cgw4lO2O.cjs} +1 -1
- package/dist/{Legend-CYF2gpXG.js → Legend-DNgTCgEK.js} +1 -1
- package/dist/{PackageVersion-DVZtsuy4.cjs → PackageVersion-DwI-KhXH.cjs} +1 -1
- package/dist/{PackageVersion-CvCRsT5_.js → PackageVersion-VkaUzgmt.js} +1 -1
- package/dist/{PenAndPaper-CyXm-yVL.cjs → PenAndPaper-CDFVOo7X.cjs} +1 -1
- package/dist/{PenAndPaper-Jb0pLt3G.js → PenAndPaper-DAZYA8Ew.js} +2 -2
- package/dist/{Shape-BpPn4eWR.js → Shape-Bwon0l0g.js} +1 -1
- package/dist/{Shape-X2F-QV_B.cjs → Shape-D2Dpshg1.cjs} +1 -1
- package/dist/{Slicer-CU7dRZR0.js → Slicer-TfpN2Cr4.js} +3 -3
- package/dist/{Slicer-CL0tP5a5.cjs → Slicer-uSjfNJjG.cjs} +1 -1
- package/dist/{Title-Co5jI5ed.cjs → Title-0Tp4hZ4u.cjs} +1 -1
- package/dist/{Title-5VmBwT4i.js → Title-C5pIfQAz.js} +1 -1
- package/dist/{Tooltip-Bl6W8Zn7.cjs → Tooltip-9Tp2Yrd1.cjs} +1 -1
- package/dist/{Tooltip-Cj4EF7v1.js → Tooltip-Cz24YLfw.js} +1 -1
- package/dist/{index-DnVHQ2xI.js → index-Bya_q1J-.js} +4 -1
- package/dist/index-eFox7weK.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +4 -1
- package/dist/types/vue-data-ui.d.ts +4 -1
- package/dist/{useNestedProp-Cox0K0Y5.js → useNestedProp-B33hazbH.js} +1 -1
- package/dist/{useNestedProp-q7byAAIJ.cjs → useNestedProp-BkgEhTQY.cjs} +1 -1
- package/dist/{usePrinter-BCAFeO_J.cjs → usePrinter-CSRFnDBU.cjs} +1 -1
- package/dist/{usePrinter-BEeNAqS5.js → usePrinter-CiHd1FwD.js} +1 -1
- package/dist/useResponsive-BY8tgM1n.js +188 -0
- package/dist/useResponsive-CodiGUOE.cjs +1 -0
- package/dist/{vue-data-ui-CRLLZpt0.cjs → vue-data-ui-BTtxyUc3.cjs} +1 -1
- package/dist/{vue-data-ui-W7nnqn0v.js → vue-data-ui-Bduq4f2p.js} +58 -58
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-bD_n6qL_.cjs → vue-ui-3d-bar-B-P7PMHs.cjs} +2 -2
- package/dist/{vue-ui-3d-bar-BwBrUabe.js → vue-ui-3d-bar-BUEq_VdY.js} +41 -34
- package/dist/{vue-ui-accordion-DspS4q3f.js → vue-ui-accordion-DfUfL2dI.js} +3 -3
- package/dist/{vue-ui-accordion-xXgqfR2l.cjs → vue-ui-accordion-TEMpM1hO.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-CxBvm3uM.js → vue-ui-age-pyramid-CH72tAMb.js} +163 -154
- package/dist/vue-ui-age-pyramid-DsbZ1qcQ.cjs +1 -0
- package/dist/{vue-ui-annotator-BOofWpzv.js → vue-ui-annotator-DPeJ2its.js} +1 -1
- package/dist/{vue-ui-annotator-C6T5_7ZV.cjs → vue-ui-annotator-DU_DJKCw.cjs} +1 -1
- package/dist/{vue-ui-bullet-DraC-oFu.js → vue-ui-bullet-CtP3MlUT.js} +167 -136
- package/dist/vue-ui-bullet-D8ks_rKr.cjs +34 -0
- package/dist/vue-ui-candlestick-D1jdr0bv.cjs +2 -0
- package/dist/{vue-ui-candlestick-DQZ5eT1f.js → vue-ui-candlestick-DDil13a0.js} +173 -164
- package/dist/{vue-ui-carousel-table-PdLjpH1p.js → vue-ui-carousel-table-BaeIxyc0.js} +76 -69
- package/dist/vue-ui-carousel-table-C7SJIOG-.cjs +1 -0
- package/dist/{vue-ui-chestnut-ByI_O5hB.js → vue-ui-chestnut-BczSJF6S.js} +96 -89
- package/dist/vue-ui-chestnut-ih5r0Bj9.cjs +6 -0
- package/dist/{vue-ui-cursor-BvadpA2m.cjs → vue-ui-cursor-C2Pj_CI_.cjs} +1 -1
- package/dist/{vue-ui-cursor-BM74l93B.js → vue-ui-cursor-Dg_Dmww-.js} +2 -2
- package/dist/{vue-ui-dashboard-CoANBhAM.js → vue-ui-dashboard-Bul9dqx1.js} +2 -2
- package/dist/{vue-ui-dashboard-OP51Gs8I.cjs → vue-ui-dashboard-Cg020NiT.cjs} +1 -1
- package/dist/{vue-ui-digits-DioaBnkB.js → vue-ui-digits-B8iAa4YZ.js} +2 -2
- package/dist/{vue-ui-digits-C7jJJg9k.cjs → vue-ui-digits-Ctgd84JR.cjs} +1 -1
- package/dist/vue-ui-donut-D7KT9EAp.cjs +1 -0
- package/dist/{vue-ui-donut-ldqSm_JV.js → vue-ui-donut-DUcp-fat.js} +244 -235
- package/dist/vue-ui-donut-evolution-CHtJ8iOK.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-DAb1xzNd.js → vue-ui-donut-evolution-C_YMbTwq.js} +125 -118
- package/dist/vue-ui-dumbbell-B0dikuqO.cjs +9 -0
- package/dist/{vue-ui-dumbbell-Dg7PkiKJ.js → vue-ui-dumbbell-Buwngz_V.js} +192 -183
- package/dist/{vue-ui-flow-DKT7ZEnr.js → vue-ui-flow-Bz3c0K5P.js} +78 -71
- package/dist/vue-ui-flow-D6rc8J-8.cjs +1 -0
- package/dist/{vue-ui-galaxy-qAA9be3S.js → vue-ui-galaxy-Cjh0XGTX.js} +49 -42
- package/dist/vue-ui-galaxy-CmTt0vBf.cjs +1 -0
- package/dist/{vue-ui-gauge-D8yVTIgP.js → vue-ui-gauge-B1UvGkQa.js} +160 -151
- package/dist/vue-ui-gauge-B_TKuyM7.cjs +1 -0
- package/dist/{vue-ui-gizmo-W6bTkg59.cjs → vue-ui-gizmo-DFW6HnHp.cjs} +1 -1
- package/dist/{vue-ui-gizmo-DC0uUwI3.js → vue-ui-gizmo-DUQ4t-At.js} +3 -3
- package/dist/{vue-ui-heatmap-u1raIzBQ.js → vue-ui-heatmap-C-poazUw.js} +110 -103
- package/dist/vue-ui-heatmap-C2HlnqzO.cjs +1 -0
- package/dist/{vue-ui-kpi-C-iTxMD2.js → vue-ui-kpi-DXe-vxAk.js} +3 -3
- package/dist/{vue-ui-kpi-DY_2WF7U.cjs → vue-ui-kpi-Z4Oi4raz.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C7x7S0hi.js → vue-ui-mini-loader-BVtHTqxS.js} +2 -2
- package/dist/{vue-ui-mini-loader-Bfq2MNWu.cjs → vue-ui-mini-loader-MMvpm9pz.cjs} +1 -1
- package/dist/{vue-ui-molecule-BFnOIxxs.js → vue-ui-molecule-BaJpDZND.js} +78 -71
- package/dist/vue-ui-molecule-BiYIcOKN.cjs +1 -0
- package/dist/{vue-ui-mood-radar-CR1v5v2x.js → vue-ui-mood-radar-BUNDwsEI.js} +132 -125
- package/dist/vue-ui-mood-radar-C6jMyFkb.cjs +1 -0
- package/dist/vue-ui-nested-donuts-DKO2dFKo.cjs +17 -0
- package/dist/{vue-ui-nested-donuts-DEiloQzq.js → vue-ui-nested-donuts-mDy2hXa6.js} +198 -189
- package/dist/{vue-ui-onion-LsEhBe4x.js → vue-ui-onion-DwFG3HAI.js} +248 -239
- package/dist/vue-ui-onion-GWNoZRhw.cjs +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-DODn4Ohf.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-CTlIjJqG.js → vue-ui-parallel-coordinate-plot-ImET_zeo.js} +233 -224
- package/dist/{vue-ui-quadrant-DKVVFufb.js → vue-ui-quadrant-BeveRihK.js} +188 -179
- package/dist/vue-ui-quadrant-yuFAxV-5.cjs +1 -0
- package/dist/{vue-ui-quick-chart-8vJikiGH.js → vue-ui-quick-chart-DAhllTfa.js} +343 -334
- package/dist/{vue-ui-quick-chart-gG5Ar8-i.cjs → vue-ui-quick-chart-DgFDBzjS.cjs} +2 -2
- package/dist/vue-ui-radar-BJH5SE6-.cjs +1 -0
- package/dist/{vue-ui-radar-20QhOUer.js → vue-ui-radar-BllatzRa.js} +174 -165
- package/dist/{vue-ui-rating-Bbzm5nUK.cjs → vue-ui-rating-BoZo7caL.cjs} +1 -1
- package/dist/{vue-ui-rating-DRWJsve1.js → vue-ui-rating-D1ykV4xO.js} +2 -2
- package/dist/vue-ui-relation-circle-CKmjOle7.cjs +1 -0
- package/dist/{vue-ui-relation-circle-I45_Sk5l.js → vue-ui-relation-circle-xv2l5Be9.js} +142 -133
- package/dist/{vue-ui-rings-DG8GCi3y.js → vue-ui-rings-B-ZcX6y1.js} +165 -156
- package/dist/vue-ui-rings-DjH3CK23.cjs +2 -0
- package/dist/{vue-ui-scatter-Hqu5-F2H.js → vue-ui-scatter-DG43ck1g.js} +269 -260
- package/dist/vue-ui-scatter-SBCXAl7q.cjs +1 -0
- package/dist/{vue-ui-screenshot-D8nxd5RV.cjs → vue-ui-screenshot-C1JBP_N0.cjs} +1 -1
- package/dist/{vue-ui-screenshot-cjiqbtLK.js → vue-ui-screenshot-p3ca8cAl.js} +1 -1
- package/dist/{vue-ui-skeleton-aZmkNzAe.js → vue-ui-skeleton-BYssP0K4.js} +419 -379
- package/dist/vue-ui-skeleton-BqKzuhkB.cjs +41 -0
- package/dist/{vue-ui-smiley-B1TA19Hv.cjs → vue-ui-smiley-BXKVpHl2.cjs} +1 -1
- package/dist/{vue-ui-smiley-ChNvxygm.js → vue-ui-smiley-D7dDCdpq.js} +2 -2
- package/dist/vue-ui-spark-trend-9V60hM3Z.cjs +1 -0
- package/dist/{vue-ui-spark-trend-CQxELQcf.js → vue-ui-spark-trend-GWFrO_0z.js} +86 -79
- package/dist/vue-ui-sparkbar-Bgn6AY0q.cjs +1 -0
- package/dist/{vue-ui-sparkbar-0ixbKZzf.js → vue-ui-sparkbar-CwqlyAyv.js} +90 -83
- package/dist/vue-ui-sparkgauge-Dqntz2Zv.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-pdYb7OwH.js → vue-ui-sparkgauge-F2XbiXyA.js} +57 -50
- package/dist/{vue-ui-sparkhistogram-N69h2q0U.js → vue-ui-sparkhistogram-DRIKK6Ym.js} +74 -67
- package/dist/vue-ui-sparkhistogram-DnY4-Sdn.cjs +1 -0
- package/dist/vue-ui-sparkline-CAEs-gtK.cjs +1 -0
- package/dist/{vue-ui-sparkline-2BKYZMOb.js → vue-ui-sparkline-Cxtzdlhi.js} +134 -125
- package/dist/{vue-ui-sparkstackbar-sh03cuOU.js → vue-ui-sparkstackbar-0A1klq9s.js} +84 -77
- package/dist/vue-ui-sparkstackbar-D37ms1rx.cjs +1 -0
- package/dist/{vue-ui-stackbar-B1si-1RM.js → vue-ui-stackbar-ByOuJSdM.js} +205 -196
- package/dist/{vue-ui-stackbar-Dy_saeSe.cjs → vue-ui-stackbar-wun4S3C0.cjs} +2 -2
- package/dist/{vue-ui-strip-plot-BYn-QrTQ.js → vue-ui-strip-plot-CMD0MSqY.js} +218 -209
- package/dist/vue-ui-strip-plot-IQrypGvz.cjs +1 -0
- package/dist/{vue-ui-table-DQORPCDJ.js → vue-ui-table-B75DJ39t.js} +1 -1
- package/dist/{vue-ui-table-Ce4waJaj.cjs → vue-ui-table-aj0XZ7T5.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-Csp7Tx8N.js → vue-ui-table-heatmap-BO2ugWqD.js} +55 -48
- package/dist/vue-ui-table-heatmap-Ce93TyBF.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-DdwVrfUj.js → vue-ui-table-sparkline-CbjfAaj2.js} +88 -81
- package/dist/vue-ui-table-sparkline-D6KJjDnU.cjs +1 -0
- package/dist/{vue-ui-thermometer-I6ZnlfAv.js → vue-ui-thermometer-Pq4PvSIP.js} +67 -60
- package/dist/vue-ui-thermometer-swmi4FmH.cjs +1 -0
- package/dist/{vue-ui-timer-COOXcn14.cjs → vue-ui-timer-B6IB6yS6.cjs} +1 -1
- package/dist/{vue-ui-timer-pi1SazTU.js → vue-ui-timer-Bk3BvB-B.js} +6 -6
- package/dist/{vue-ui-tiremarks-vdPQYiDp.js → vue-ui-tiremarks-CU9HJIqf.js} +84 -77
- package/dist/vue-ui-tiremarks-Cn79uQH2.cjs +1 -0
- package/dist/vue-ui-treemap-BEMuKV7x.cjs +1 -0
- package/dist/{vue-ui-treemap-3FNUlKxL.js → vue-ui-treemap-DY-lRAhC.js} +211 -202
- package/dist/vue-ui-vertical-bar-B1e2RxTv.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-DwxpB46q.js → vue-ui-vertical-bar-CtnIKsM1.js} +359 -350
- package/dist/vue-ui-waffle-BqP7Okgu.cjs +1 -0
- package/dist/{vue-ui-waffle-XecHJIc-.js → vue-ui-waffle-reOsx-gJ.js} +177 -168
- package/dist/vue-ui-wheel-BuWUGnkC.cjs +1 -0
- package/dist/{vue-ui-wheel-Bbih5sSL.js → vue-ui-wheel-kYxny3vn.js} +95 -86
- package/dist/{vue-ui-word-cloud-DnhXUn5x.js → vue-ui-word-cloud-DbMqrHAf.js} +192 -183
- package/dist/vue-ui-word-cloud-DwLY4QdB.cjs +1 -0
- package/dist/vue-ui-xy-CGWzriYn.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-C8c2X5fk.js → vue-ui-xy-canvas-B0HTR7OV.js} +255 -246
- package/dist/vue-ui-xy-canvas-CgJd5FiT.cjs +9 -0
- package/dist/{vue-ui-xy-CqlRuFMc.js → vue-ui-xy-rbACig0h.js} +131 -122
- package/package.json +1 -1
- package/dist/index-FfZRtJ6A.cjs +0 -9
- package/dist/useResponsive-B3TrDDIG.cjs +0 -1
- package/dist/useResponsive-NZB-WLRF.js +0 -187
- package/dist/vue-ui-age-pyramid-BZcAwcVQ.cjs +0 -1
- package/dist/vue-ui-bullet-ChaEgXvR.cjs +0 -23
- package/dist/vue-ui-candlestick--hPCfMFH.cjs +0 -2
- package/dist/vue-ui-carousel-table-DpRQklDZ.cjs +0 -1
- package/dist/vue-ui-chestnut-ae6x87wl.cjs +0 -6
- package/dist/vue-ui-donut-CplNylps.cjs +0 -1
- package/dist/vue-ui-donut-evolution-CQpr-6IS.cjs +0 -1
- package/dist/vue-ui-dumbbell-_ijaYr8W.cjs +0 -9
- package/dist/vue-ui-flow-BPt35d5K.cjs +0 -1
- package/dist/vue-ui-galaxy-e06PkTmp.cjs +0 -1
- package/dist/vue-ui-gauge-DiZVIU0D.cjs +0 -1
- package/dist/vue-ui-heatmap-CbZcv_2I.cjs +0 -1
- package/dist/vue-ui-molecule-CbKMLrDT.cjs +0 -1
- package/dist/vue-ui-mood-radar-6LmFXuiw.cjs +0 -1
- package/dist/vue-ui-nested-donuts-DS0fjiLi.cjs +0 -17
- package/dist/vue-ui-onion-CLvvu4Ku.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-BWg8OFqH.cjs +0 -8
- package/dist/vue-ui-quadrant-OM5J1mG3.cjs +0 -1
- package/dist/vue-ui-radar-CAaHjDO7.cjs +0 -1
- package/dist/vue-ui-relation-circle-BoGAFXuS.cjs +0 -1
- package/dist/vue-ui-rings-B9WQ7S5m.cjs +0 -2
- package/dist/vue-ui-scatter-BZfg1YIN.cjs +0 -1
- package/dist/vue-ui-skeleton-Djv08J67.cjs +0 -41
- package/dist/vue-ui-spark-trend-BqrPr63O.cjs +0 -1
- package/dist/vue-ui-sparkbar-CrTEPTU5.cjs +0 -1
- package/dist/vue-ui-sparkgauge-BYxpe_WV.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-D21XDUH2.cjs +0 -1
- package/dist/vue-ui-sparkline-Cf4m-Fxo.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-dAS8XoJs.cjs +0 -1
- package/dist/vue-ui-strip-plot-D53LABpZ.cjs +0 -1
- package/dist/vue-ui-table-heatmap-EqHt-O7Y.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DONmVOMh.cjs +0 -1
- package/dist/vue-ui-thermometer-hQBkMa7u.cjs +0 -1
- package/dist/vue-ui-tiremarks-hdNqoGyd.cjs +0 -1
- package/dist/vue-ui-treemap-Cv0TSFQa.cjs +0 -1
- package/dist/vue-ui-vertical-bar-C--Ma0Dw.cjs +0 -4
- package/dist/vue-ui-waffle-CKM0QyJN.cjs +0 -1
- package/dist/vue-ui-wheel-C0dJrzOJ.cjs +0 -1
- package/dist/vue-ui-word-cloud-Cfd2wxsT.cjs +0 -1
- package/dist/vue-ui-xy-BDpqVzAq.cjs +0 -3
- package/dist/vue-ui-xy-canvas-Cansjd3L.cjs +0 -9
|
@@ -1,146 +1,146 @@
|
|
|
1
|
-
import { ref as P, computed as V, watch as Ee, onMounted as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import $e from "./BaseIcon-
|
|
5
|
-
import { _ as
|
|
6
|
-
import { u as
|
|
7
|
-
import { S as
|
|
8
|
-
import
|
|
9
|
-
import { u as
|
|
10
|
-
import { _ as
|
|
11
|
-
import { P as
|
|
12
|
-
import { _ as
|
|
1
|
+
import { ref as P, computed as V, watch as Ee, onMounted as dt, onBeforeUnmount as ct, openBlock as a, createElementBlock as l, normalizeClass as ne, normalizeStyle as N, createBlock as Le, createCommentVNode as g, unref as f, createSlots as ht, withCtx as Q, renderSlot as M, normalizeProps as H, guardReactiveProps as re, toDisplayString as E, createVNode as se, createElementVNode as A, Fragment as p, renderList as L, mergeProps as Re, pushScopeId as ft, popScopeId as gt } from "vue";
|
|
2
|
+
import { u as mt, c as pt, t as yt, a as xt, p as D, b as kt, I as bt, e as St, d as Oe, m as wt, C as Ye, X as At, j as _t, k as pe, n as Ne, i as X, f as B, R as Je, v as Z, x as ze, y as Fe } from "./index-Bya_q1J-.js";
|
|
3
|
+
import { t as Lt, u as zt } from "./useResponsive-BY8tgM1n.js";
|
|
4
|
+
import $e from "./BaseIcon-BbvG1AlW.js";
|
|
5
|
+
import { _ as $t } from "./Tooltip-Cz24YLfw.js";
|
|
6
|
+
import { u as Ct, U as Pt } from "./usePrinter-CiHd1FwD.js";
|
|
7
|
+
import { S as Tt } from "./Slicer-TfpN2Cr4.js";
|
|
8
|
+
import It from "./vue-ui-skeleton-BYssP0K4.js";
|
|
9
|
+
import { u as Qe } from "./useNestedProp-B33hazbH.js";
|
|
10
|
+
import { _ as Et } from "./PackageVersion-VkaUzgmt.js";
|
|
11
|
+
import { P as Rt } from "./PenAndPaper-DAZYA8Ew.js";
|
|
12
|
+
import { _ as Ot } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
const _ = {
|
|
14
14
|
LINE: "LINE",
|
|
15
15
|
BAR: "BAR",
|
|
16
16
|
DONUT: "DONUT"
|
|
17
|
-
},
|
|
18
|
-
function
|
|
19
|
-
let
|
|
20
|
-
if ((typeof s == "number" || typeof s == "string") && console.warn(`The provided dataset (${s}) is not sufficient to build a chart`),
|
|
21
|
-
if (!
|
|
17
|
+
}, Nt = ["SERIE", "SERIES", "DATA", "VALUE", "VALUES", "NUM"];
|
|
18
|
+
function Ft({ dataset: s, barLineSwitch: $ = 6 }) {
|
|
19
|
+
let m = null, R = null, q = 0;
|
|
20
|
+
if ((typeof s == "number" || typeof s == "string") && console.warn(`The provided dataset (${s}) is not sufficient to build a chart`), ye(s) && (Y(s) && (s.length < $ ? m = _.BAR : m = _.LINE, R = s, q = s.length), Ce(s))) {
|
|
21
|
+
if (!Bt(s))
|
|
22
22
|
return console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."), !1;
|
|
23
23
|
const oe = Object.keys(s[0]), ve = Object.values(s[0]);
|
|
24
|
-
if (!oe.some((T) =>
|
|
24
|
+
if (!oe.some((T) => Ut(T)))
|
|
25
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;
|
|
26
|
-
|
|
26
|
+
Ke(ve, (T) => typeof T == "number") && (m = _.DONUT, R = s), Ke(ve, (T) => Array.isArray(T) && Y(T)) && (et(s) > $ ? m = _.LINE : m = _.BAR, q = et(s), R = s.map((T) => ({
|
|
27
27
|
...T,
|
|
28
|
-
data:
|
|
29
|
-
}))), s = s.map((T) =>
|
|
28
|
+
data: Dt(T, (G) => Y(G))
|
|
29
|
+
}))), s = s.map((T) => tt(T)), R = R.map((T) => tt(T));
|
|
30
30
|
}
|
|
31
|
-
return
|
|
31
|
+
return ye(s) && [...new Set(s.flatMap((oe) => Array.isArray(oe)))][0], {
|
|
32
32
|
dataset: s,
|
|
33
|
-
type:
|
|
33
|
+
type: m,
|
|
34
34
|
usableDataset: R,
|
|
35
35
|
maxSeriesLength: q
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
return !s ||
|
|
38
|
+
function at(s) {
|
|
39
|
+
return !s || ye(s) && !s.length;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function ye(s) {
|
|
42
42
|
return Array.isArray(s);
|
|
43
43
|
}
|
|
44
44
|
function Y(s) {
|
|
45
|
-
if (!
|
|
46
|
-
const $ = s.map((
|
|
47
|
-
return ![...new Set($.flatMap((
|
|
45
|
+
if (!ye(s) || at(s)) return !1;
|
|
46
|
+
const $ = s.map((m) => Number(m));
|
|
47
|
+
return ![...new Set($.flatMap((m) => typeof m == "number" && !isNaN(m)))].includes(!1);
|
|
48
48
|
}
|
|
49
49
|
function Ce(s) {
|
|
50
|
-
return !
|
|
50
|
+
return !ye(s) || at(s) || !![...new Set(s.flatMap((m) => typeof m == "object" && !Array.isArray(m)))].includes(!1) ? !1 : !s.map((m) => Object.keys(m).length > 0).includes(!1);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
const
|
|
54
|
-
if (
|
|
52
|
+
function Mt(s, $) {
|
|
53
|
+
const m = Object.keys(s).sort(), R = Object.keys($).sort();
|
|
54
|
+
if (m.length !== R.length)
|
|
55
55
|
return !1;
|
|
56
|
-
for (let q = 0; q <
|
|
57
|
-
const W =
|
|
56
|
+
for (let q = 0; q < m.length; q += 1) {
|
|
57
|
+
const W = m[q], le = R[q];
|
|
58
58
|
if (W !== le || typeof s[W] != typeof $[le])
|
|
59
59
|
return !1;
|
|
60
60
|
}
|
|
61
61
|
return !0;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Bt(s) {
|
|
64
64
|
if (s.length <= 1) return !0;
|
|
65
65
|
for (let $ = 0; $ < s.length; $ += 1)
|
|
66
|
-
for (let
|
|
67
|
-
if (!
|
|
66
|
+
for (let m = $ + 1; m < s.length; m += 1)
|
|
67
|
+
if (!Mt(s[$], s[m]))
|
|
68
68
|
return !1;
|
|
69
69
|
return !0;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
return
|
|
71
|
+
function Ut(s) {
|
|
72
|
+
return Nt.includes(s.toUpperCase());
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
let
|
|
74
|
+
function Ke(s, $) {
|
|
75
|
+
let m = [];
|
|
76
76
|
for (let R = 0; R < s.length; R += 1)
|
|
77
|
-
|
|
78
|
-
return
|
|
77
|
+
m.push($(s[R]));
|
|
78
|
+
return m.includes(!0);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
return Math.max(...[...s].flatMap(($) => Object.values($).filter((
|
|
80
|
+
function et(s) {
|
|
81
|
+
return Math.max(...[...s].flatMap(($) => Object.values($).filter((m) => Y(m)).map((m) => m.length)));
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
return Object.values(s).filter((
|
|
83
|
+
function Dt(s, $) {
|
|
84
|
+
return Object.values(s).filter((m) => $(m))[0];
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function tt(s) {
|
|
87
87
|
const $ = {};
|
|
88
|
-
for (let
|
|
89
|
-
s.hasOwnProperty(
|
|
88
|
+
for (let m in s)
|
|
89
|
+
s.hasOwnProperty(m) && ($[m.toUpperCase()] = s[m]);
|
|
90
90
|
return $;
|
|
91
91
|
}
|
|
92
|
-
const
|
|
92
|
+
const lt = (s) => (ft("data-v-606895e6"), s = s(), gt(), s), Vt = ["id"], qt = ["xmlns", "viewBox"], Wt = ["id"], jt = ["id"], Gt = /* @__PURE__ */ lt(() => /* @__PURE__ */ A("feColorMatrix", {
|
|
93
93
|
type: "saturate",
|
|
94
94
|
values: "0"
|
|
95
|
-
}, null, -1)),
|
|
95
|
+
}, null, -1)), Ht = ["id"], Xt = ["flood-color"], Zt = {
|
|
96
96
|
key: 0,
|
|
97
97
|
class: "donut-label-connectors"
|
|
98
|
-
},
|
|
98
|
+
}, Yt = ["d", "stroke", "stroke-width", "filter"], Jt = ["cx", "cy", "r", "fill", "filter"], Qt = { class: "donut" }, Kt = ["d", "fill", "stroke", "stroke-width", "filter"], ea = ["d", "onMouseenter", "onClick"], ta = {
|
|
99
99
|
key: 1,
|
|
100
100
|
class: "donut-labels quick-animation"
|
|
101
|
-
},
|
|
101
|
+
}, aa = ["cx", "cy", "fill", "stroke", "filter"], la = ["text-anchor", "x", "y", "fill", "font-size", "filter"], oa = ["text-anchor", "x", "y", "fill", "font-size", "filter"], ia = {
|
|
102
102
|
key: 2,
|
|
103
103
|
class: "donut-hollow quick-animation"
|
|
104
|
-
},
|
|
104
|
+
}, ua = ["x", "y", "font-size", "fill"], na = ["x", "y", "font-size", "fill"], ra = {
|
|
105
105
|
key: 0,
|
|
106
106
|
class: "line-grid"
|
|
107
|
-
},
|
|
107
|
+
}, sa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], va = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], da = {
|
|
108
108
|
key: 1,
|
|
109
109
|
class: "line-axis"
|
|
110
|
-
},
|
|
110
|
+
}, ca = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ha = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], fa = {
|
|
111
111
|
key: 2,
|
|
112
112
|
class: "yLabels"
|
|
113
|
-
},
|
|
113
|
+
}, ga = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ma = ["x", "y", "font-size", "fill"], pa = {
|
|
114
114
|
key: 3,
|
|
115
115
|
class: "periodLabels"
|
|
116
|
-
},
|
|
116
|
+
}, ya = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], xa = ["font-size", "text-anchor", "fill", "transform"], ka = { class: "plots" }, ba = { class: "line-plot-series" }, Sa = ["d", "stroke", "stroke-width"], wa = ["d", "stroke", "stroke-width"], Aa = ["d", "stroke", "stroke-width"], _a = ["d", "stroke", "stroke-width"], La = ["cx", "cy", "fill", "stroke"], za = {
|
|
117
117
|
key: 4,
|
|
118
118
|
class: "dataLabels"
|
|
119
|
-
},
|
|
119
|
+
}, $a = ["font-size", "fill", "x", "y"], Ca = { class: "tooltip-traps" }, Pa = ["x", "y", "height", "width", "fill", "onMouseenter", "onClick"], Ta = {
|
|
120
120
|
key: 0,
|
|
121
121
|
class: "line-grid"
|
|
122
|
-
},
|
|
122
|
+
}, Ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ea = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ra = {
|
|
123
123
|
key: 1,
|
|
124
124
|
class: "line-axis"
|
|
125
|
-
},
|
|
125
|
+
}, Oa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Na = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Fa = {
|
|
126
126
|
key: 2,
|
|
127
127
|
class: "yLabels"
|
|
128
|
-
},
|
|
128
|
+
}, Ma = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ba = ["x", "y", "font-size", "fill"], Ua = {
|
|
129
129
|
key: 3,
|
|
130
130
|
class: "periodLabels"
|
|
131
|
-
},
|
|
131
|
+
}, Da = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Va = ["font-size", "text-anchor", "transform", "fill"], qa = { class: "plots" }, Wa = ["x", "width", "height", "y", "fill", "stroke", "stroke-width"], ja = ["to"], Ga = ["from", "to"], Ha = {
|
|
132
132
|
key: 4,
|
|
133
133
|
class: "dataLabels"
|
|
134
|
-
},
|
|
134
|
+
}, Xa = ["x", "y", "font-size", "fill"], Za = { class: "tooltip-traps" }, Ya = ["x", "y", "height", "width", "fill", "onMouseenter", "onClick"], Ja = {
|
|
135
135
|
key: 3,
|
|
136
136
|
class: "axis-labels"
|
|
137
|
-
},
|
|
137
|
+
}, Qa = { key: 0 }, Ka = ["font-size", "fill", "x", "y"], el = { key: 1 }, tl = ["font-size", "fill", "x", "y"], al = { key: 2 }, ll = ["font-size", "fill", "transform"], ol = { key: 3 }, il = ["font-size", "fill", "transform"], ul = {
|
|
138
138
|
key: 5,
|
|
139
139
|
class: "vue-data-ui-watermark"
|
|
140
|
-
},
|
|
140
|
+
}, nl = ["onClick"], rl = ["onClick"], sl = ["onClick"], vl = {
|
|
141
141
|
key: 1,
|
|
142
142
|
class: "vue-ui-quick-chart-not-processable"
|
|
143
|
-
},
|
|
143
|
+
}, dl = /* @__PURE__ */ lt(() => /* @__PURE__ */ A("span", null, "Dataset is not processable", -1)), cl = {
|
|
144
144
|
__name: "vue-ui-quick-chart",
|
|
145
145
|
props: {
|
|
146
146
|
config: {
|
|
@@ -157,31 +157,31 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
157
157
|
}
|
|
158
158
|
},
|
|
159
159
|
emits: ["selectDatapoint", "selectLegend"],
|
|
160
|
-
setup(s, { expose: $, emit:
|
|
161
|
-
const R = s, { vue_ui_quick_chart: q } =
|
|
162
|
-
get: () =>
|
|
160
|
+
setup(s, { expose: $, emit: m }) {
|
|
161
|
+
const R = s, { vue_ui_quick_chart: q } = mt(), W = P(null), le = P(null), oe = P(null), ve = P(null), T = P(pt()), G = P(!1), de = P(null), K = P(""), j = P(null), Me = P(null), w = P([]), Be = P(0), xe = P(0), e = V({
|
|
162
|
+
get: () => Ue(),
|
|
163
163
|
set: (u) => u
|
|
164
164
|
});
|
|
165
|
-
function
|
|
166
|
-
const u =
|
|
165
|
+
function Ue() {
|
|
166
|
+
const u = Qe({
|
|
167
167
|
userConfig: R.config,
|
|
168
168
|
defaultConfig: q
|
|
169
169
|
});
|
|
170
170
|
return u.theme ? {
|
|
171
|
-
...
|
|
172
|
-
userConfig:
|
|
171
|
+
...Qe({
|
|
172
|
+
userConfig: yt.vue_ui_quick_chart[u.theme] || R.config,
|
|
173
173
|
defaultConfig: u
|
|
174
174
|
}),
|
|
175
175
|
customPalette: xt[u.theme] || D
|
|
176
176
|
} : u;
|
|
177
177
|
}
|
|
178
178
|
Ee(() => R.config, (u) => {
|
|
179
|
-
e.value =
|
|
179
|
+
e.value = Ue(), S.value.width = e.value.width, S.value.height = e.value.height, qe();
|
|
180
180
|
}, { deep: !0 }), Ee(() => R.dataset, (u) => {
|
|
181
|
-
|
|
181
|
+
x.value = he.value, k.value.start = 0, k.value.end = x.value.maxSeriesLength, xe.value += 1;
|
|
182
182
|
}, { deep: !0 });
|
|
183
|
-
const ce = V(() =>
|
|
184
|
-
const u =
|
|
183
|
+
const ce = V(() => kt(e.value.customPalette)), he = V(() => {
|
|
184
|
+
const u = Ft({ dataset: bt(R.dataset, [
|
|
185
185
|
"serie",
|
|
186
186
|
"series",
|
|
187
187
|
"data",
|
|
@@ -190,14 +190,14 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
190
190
|
"num"
|
|
191
191
|
]), barLineSwitch: e.value.chartIsBarUnderDatasetLength });
|
|
192
192
|
return u || console.error("VueUiQuickChart : Dataset is not processable"), u;
|
|
193
|
-
}),
|
|
193
|
+
}), x = P(he.value), ot = V(() => !!x.value), z = V(() => x.value ? x.value.type : null);
|
|
194
194
|
Ee(() => z.value, (u) => {
|
|
195
|
-
u ||
|
|
195
|
+
u || St({
|
|
196
196
|
componentName: "VueUiQuickChart",
|
|
197
197
|
type: "dataset"
|
|
198
198
|
});
|
|
199
199
|
}, { immediate: !0 });
|
|
200
|
-
const { isPrinting: ke, isImaging: be, generatePdf:
|
|
200
|
+
const { isPrinting: ke, isImaging: be, generatePdf: De, generateImage: Ve } = Ct({
|
|
201
201
|
elementId: `${z.value}_${T.value}`,
|
|
202
202
|
fileName: e.value.title || z.value
|
|
203
203
|
}), S = P({
|
|
@@ -206,27 +206,28 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
206
206
|
}), Se = P({
|
|
207
207
|
showTooltip: e.value.showTooltip
|
|
208
208
|
}), we = P(null);
|
|
209
|
-
|
|
210
|
-
|
|
209
|
+
dt(() => {
|
|
210
|
+
qe();
|
|
211
211
|
});
|
|
212
|
-
function
|
|
212
|
+
function qe() {
|
|
213
213
|
if (e.value.responsive) {
|
|
214
|
-
const u =
|
|
215
|
-
const { width: c, height: t } =
|
|
214
|
+
const u = Lt(() => {
|
|
215
|
+
const { width: c, height: t } = zt({
|
|
216
216
|
chart: W.value,
|
|
217
217
|
title: e.value.title ? le.value : null,
|
|
218
218
|
legend: e.value.showLegend ? oe.value : null,
|
|
219
|
-
slicer: [_.BAR, _.LINE].includes(z.value) && e.value.zoomXy &&
|
|
219
|
+
slicer: [_.BAR, _.LINE].includes(z.value) && e.value.zoomXy && x.value.maxSeriesLength > 1 ? ve.value : null,
|
|
220
|
+
source: Me.value
|
|
220
221
|
});
|
|
221
222
|
S.value.width = c, S.value.height = t;
|
|
222
223
|
});
|
|
223
224
|
we.value = new ResizeObserver(u), we.value.observe(W.value.parentNode);
|
|
224
225
|
}
|
|
225
226
|
}
|
|
226
|
-
|
|
227
|
+
ct(() => {
|
|
227
228
|
we.value && we.value.disconnect();
|
|
228
229
|
});
|
|
229
|
-
const
|
|
230
|
+
const it = V(() => {
|
|
230
231
|
switch (z.value) {
|
|
231
232
|
case _.LINE:
|
|
232
233
|
return `0 0 ${S.value.width <= 0 ? 10 : S.value.width} ${S.value.height <= 0 ? 10 : S.value.height}`;
|
|
@@ -238,68 +239,68 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
238
239
|
return `0 0 ${S.value.width <= 0 ? 10 : S.value.width} ${S.value.height <= 0 ? 10 : S.value.height}`;
|
|
239
240
|
}
|
|
240
241
|
});
|
|
241
|
-
function
|
|
242
|
+
function We(u) {
|
|
242
243
|
return [...u].map((c) => c.value).reduce((c, t) => c + t, 0);
|
|
243
244
|
}
|
|
244
245
|
function fe(u) {
|
|
245
246
|
return e.value.blurOnHover && ![null, void 0].includes(j.value) && j.value !== u ? `url(#blur_${T.value})` : "";
|
|
246
247
|
}
|
|
247
|
-
function
|
|
248
|
+
function je(u, c) {
|
|
248
249
|
w.value.includes(u) ? w.value = w.value.filter((t) => t !== u) : w.value.length < c && w.value.push(u);
|
|
249
250
|
}
|
|
250
|
-
const
|
|
251
|
-
function
|
|
251
|
+
const Ge = P(null), He = P(null), Ae = P(!1);
|
|
252
|
+
function ut(u, c) {
|
|
252
253
|
Ae.value = !0;
|
|
253
254
|
let t = u.value;
|
|
254
255
|
if (w.value.includes(u.id)) {
|
|
255
256
|
let r = function() {
|
|
256
|
-
t > n ? (Ae.value = !1, cancelAnimationFrame(
|
|
257
|
-
...
|
|
258
|
-
dataset:
|
|
257
|
+
t > n ? (Ae.value = !1, cancelAnimationFrame(He.value), x.value = {
|
|
258
|
+
...x.value,
|
|
259
|
+
dataset: x.value.dataset.map((h, O) => u.id === `donut_${O}` ? {
|
|
259
260
|
...h,
|
|
260
261
|
value: n,
|
|
261
262
|
VALUE: n
|
|
262
263
|
} : h)
|
|
263
|
-
}) : (t += n * 0.025,
|
|
264
|
-
...
|
|
265
|
-
dataset:
|
|
264
|
+
}) : (t += n * 0.025, x.value = {
|
|
265
|
+
...x.value,
|
|
266
|
+
dataset: x.value.dataset.map((h, O) => u.id === `donut_${O}` ? {
|
|
266
267
|
...h,
|
|
267
268
|
value: t,
|
|
268
269
|
VALUE: t
|
|
269
270
|
} : h)
|
|
270
|
-
},
|
|
271
|
+
}, He.value = requestAnimationFrame(r));
|
|
271
272
|
};
|
|
272
273
|
w.value = w.value.filter((h) => h !== u.id);
|
|
273
274
|
const n = he.value.dataset.find((h, O) => u.id === `donut_${O}`).VALUE;
|
|
274
275
|
r();
|
|
275
276
|
} else if (c.length > 1) {
|
|
276
277
|
let n = function() {
|
|
277
|
-
t < 0.1 ? (Ae.value = !1, cancelAnimationFrame(
|
|
278
|
-
...
|
|
279
|
-
dataset:
|
|
278
|
+
t < 0.1 ? (Ae.value = !1, cancelAnimationFrame(Ge.value), w.value.push(u.id), x.value = {
|
|
279
|
+
...x.value,
|
|
280
|
+
dataset: x.value.dataset.map((r, h) => u.id === `donut_${h}` ? {
|
|
280
281
|
...r,
|
|
281
282
|
value: 0,
|
|
282
283
|
VALUE: 0
|
|
283
284
|
} : r)
|
|
284
|
-
}) : (t /= 1.1,
|
|
285
|
-
...
|
|
286
|
-
dataset:
|
|
285
|
+
}) : (t /= 1.1, x.value = {
|
|
286
|
+
...x.value,
|
|
287
|
+
dataset: x.value.dataset.map((r, h) => u.id === `donut_${h}` ? {
|
|
287
288
|
...r,
|
|
288
289
|
value: t,
|
|
289
290
|
VALUE: t
|
|
290
291
|
} : r)
|
|
291
|
-
},
|
|
292
|
+
}, Ge.value = requestAnimationFrame(n));
|
|
292
293
|
};
|
|
293
294
|
n();
|
|
294
295
|
}
|
|
295
296
|
}
|
|
296
297
|
const J = P(null);
|
|
297
|
-
function
|
|
298
|
+
function nt(u) {
|
|
298
299
|
J.value = u;
|
|
299
300
|
}
|
|
300
|
-
const
|
|
301
|
+
const Xe = V(() => e.value.donutThicknessRatio < 0.15 ? 0.15 : e.value.donutThicknessRatio > 0.4 ? 0.4 : e.value.donutThicknessRatio), C = V(() => {
|
|
301
302
|
if (z.value !== _.DONUT) return null;
|
|
302
|
-
const u =
|
|
303
|
+
const u = x.value.dataset.map((o, i) => ({
|
|
303
304
|
...o,
|
|
304
305
|
value: o.VALUE || o.DATA || o.SERIE || o.VALUES || o.NUM || 0,
|
|
305
306
|
name: o.NAME || o.DESCRIPTION || o.TITLE || o.LABEL || `Serie ${i}`,
|
|
@@ -310,8 +311,8 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
310
311
|
immutableValue: o.value
|
|
311
312
|
}));
|
|
312
313
|
function c(o, i) {
|
|
313
|
-
return
|
|
314
|
-
v: isNaN(o.value /
|
|
314
|
+
return B({
|
|
315
|
+
v: isNaN(o.value / We(i)) ? 0 : o.value / We(i) * 100,
|
|
315
316
|
s: "%",
|
|
316
317
|
r: e.value.dataLabelRoundingPercentage
|
|
317
318
|
});
|
|
@@ -339,18 +340,18 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
339
340
|
config: e.value
|
|
340
341
|
});
|
|
341
342
|
else {
|
|
342
|
-
let
|
|
343
|
-
|
|
343
|
+
let y = "";
|
|
344
|
+
y += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`, y += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${o.color}"/></svg>`, y += `<b>${X(
|
|
344
345
|
e.value.formatter,
|
|
345
346
|
o.value,
|
|
346
|
-
|
|
347
|
+
B({
|
|
347
348
|
p: e.value.valuePrefix,
|
|
348
349
|
v: o.value,
|
|
349
350
|
s: e.value.valueSuffix,
|
|
350
351
|
r: e.value.dataLabelRoundingValue
|
|
351
352
|
}),
|
|
352
353
|
{ datapoint: o, seriesIndex: i }
|
|
353
|
-
)}</b>`,
|
|
354
|
+
)}</b>`, y += `<span>(${B({ v: o.proportion * 100, s: "%", r: e.value.dataLabelRoundingPercentage })})</span></div>`, K.value = `<div>${y}</div>`;
|
|
354
355
|
}
|
|
355
356
|
G.value = !0;
|
|
356
357
|
}
|
|
@@ -360,11 +361,11 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
360
361
|
const O = {
|
|
361
362
|
centerX: S.value.width / 2,
|
|
362
363
|
centerY: S.value.height / 2
|
|
363
|
-
},
|
|
364
|
+
}, U = u.filter((o) => !w.value.includes(o.id)).map((o) => o.value || 0).reduce((o, i) => o + i, 0), ie = u.map((o, i) => ({
|
|
364
365
|
...o,
|
|
365
|
-
proportion: (o.value || 0) /
|
|
366
|
+
proportion: (o.value || 0) / U,
|
|
366
367
|
value: o.value || 0,
|
|
367
|
-
absoluteValue: he.value.dataset.find((b,
|
|
368
|
+
absoluteValue: he.value.dataset.find((b, y) => `donut_${y}` === o.id).VALUE
|
|
368
369
|
})), ee = S.value.width / 2, ue = S.value.height / 2, te = S.value.height * e.value.donutRadiusRatio;
|
|
369
370
|
return {
|
|
370
371
|
dataset: ie.filter((o) => !w.value.includes(o.id)),
|
|
@@ -375,11 +376,11 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
375
376
|
useTooltip: r,
|
|
376
377
|
killTooltip: h,
|
|
377
378
|
getSpaces: n,
|
|
378
|
-
total:
|
|
379
|
+
total: U,
|
|
379
380
|
cx: ee,
|
|
380
381
|
cy: ue,
|
|
381
382
|
radius: te,
|
|
382
|
-
chart:
|
|
383
|
+
chart: wt(
|
|
383
384
|
{ series: u.filter((o) => !w.value.includes(o.id)) },
|
|
384
385
|
ee,
|
|
385
386
|
ue,
|
|
@@ -390,23 +391,23 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
390
391
|
1,
|
|
391
392
|
360,
|
|
392
393
|
105.25,
|
|
393
|
-
S.value.height *
|
|
394
|
+
S.value.height * Xe.value
|
|
394
395
|
)
|
|
395
396
|
};
|
|
396
397
|
}), k = P({
|
|
397
398
|
start: 0,
|
|
398
|
-
end:
|
|
399
|
+
end: x.value.maxSeriesLength
|
|
399
400
|
});
|
|
400
|
-
function
|
|
401
|
+
function rt() {
|
|
401
402
|
k.value = {
|
|
402
403
|
start: 0,
|
|
403
|
-
end:
|
|
404
|
-
},
|
|
404
|
+
end: x.value.maxSeriesLength
|
|
405
|
+
}, xe.value += 1;
|
|
405
406
|
}
|
|
406
|
-
const
|
|
407
|
+
const st = V(() => {
|
|
407
408
|
if (!e.value.zoomMinimap.show || z.value === _.DONUT) return [];
|
|
408
409
|
let u = [];
|
|
409
|
-
Y(
|
|
410
|
+
Y(x.value.dataset) && (u = x.value.dataset), Ce(x.value.dataset) && (u = x.value.dataset.map((r, h) => ({
|
|
410
411
|
values: r.VALUE || r.DATA || r.SERIE || r.SERIES || r.VALUES || r.NUM || 0,
|
|
411
412
|
id: z.value === _.LINE ? `line_${h}` : `bar_${h}`
|
|
412
413
|
})).filter((r) => !w.value.includes(r.id)));
|
|
@@ -433,15 +434,15 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
433
434
|
height: u.height - e.value.xyPaddingTop - e.value.xyPaddingBottom
|
|
434
435
|
};
|
|
435
436
|
let t = [];
|
|
436
|
-
Y(
|
|
437
|
+
Y(x.value.dataset) && (t = [
|
|
437
438
|
{
|
|
438
|
-
values:
|
|
439
|
-
absoluteIndices:
|
|
439
|
+
values: x.value.dataset.slice(k.value.start, k.value.end),
|
|
440
|
+
absoluteIndices: x.value.dataset.map((o, i) => i).slice(k.value.start, k.value.end),
|
|
440
441
|
name: e.value.title,
|
|
441
442
|
color: ce.value[e.value.paletteStartIndex] || D[e.value.paletteStartIndex],
|
|
442
443
|
id: "line_0"
|
|
443
444
|
}
|
|
444
|
-
]), Ce(
|
|
445
|
+
]), Ce(x.value.dataset) && (t = x.value.dataset.map((o, i) => ({
|
|
445
446
|
...o,
|
|
446
447
|
values: o.VALUE || o.DATA || o.SERIE || o.SERIES || o.VALUES || o.NUM || 0,
|
|
447
448
|
name: o.NAME || o.DESCRIPTION || o.TITLE || o.LABEL || `Serie ${i}`,
|
|
@@ -450,20 +451,20 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
450
451
|
...o,
|
|
451
452
|
color: o.COLOR ? Oe(o.COLOR) : ce.value[i + e.value.paletteStartIndex] || D[i + e.value.paletteStartIndex] || D[(i + e.value.paletteStartIndex) % D.length],
|
|
452
453
|
values: o.values.slice(k.value.start, k.value.end),
|
|
453
|
-
absoluteIndices: o.values.map((b,
|
|
454
|
+
absoluteIndices: o.values.map((b, y) => y).slice(k.value.start, k.value.end)
|
|
454
455
|
})));
|
|
455
456
|
const n = {
|
|
456
457
|
max: Math.max(...t.filter((o) => !w.value.includes(o.id)).flatMap((o) => o.values)),
|
|
457
458
|
min: Math.min(...t.filter((o) => !w.value.includes(o.id)).flatMap((o) => o.values)),
|
|
458
459
|
maxSeries: Math.max(...t.map((o) => o.values.length))
|
|
459
|
-
}, r =
|
|
460
|
+
}, r = Ye(n.min < 0 ? n.min : 0, n.max < 0 ? 0 : n.max, e.value.xyScaleSegments), h = n.min < 0 ? Math.abs(n.min) : 0, O = n.max < 0 ? c.top : c.bottom - h / (r.max + h) * c.height, U = c.width / n.maxSeries, ie = r.ticks.map((o) => ({
|
|
460
461
|
y: c.bottom - c.height * ((o + h) / (r.max + h)),
|
|
461
462
|
x: c.left - 8,
|
|
462
463
|
value: o
|
|
463
464
|
})), ee = t.map((o, i) => ({
|
|
464
465
|
...o,
|
|
465
|
-
coordinates: o.values.map((b,
|
|
466
|
-
x: c.left +
|
|
466
|
+
coordinates: o.values.map((b, y) => ({
|
|
467
|
+
x: c.left + U * (y + 1) - U / 2,
|
|
467
468
|
y: c.bottom - (b + h) / (r.max + h) * c.height,
|
|
468
469
|
value: b
|
|
469
470
|
}))
|
|
@@ -478,11 +479,11 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
478
479
|
});
|
|
479
480
|
function ue(o) {
|
|
480
481
|
j.value = o, J.value = o;
|
|
481
|
-
const i = t.map((
|
|
482
|
-
...
|
|
483
|
-
value:
|
|
484
|
-
absoluteIndex:
|
|
485
|
-
})).filter((
|
|
482
|
+
const i = t.map((y) => ({
|
|
483
|
+
...y,
|
|
484
|
+
value: y.values[o],
|
|
485
|
+
absoluteIndex: y.absoluteIndices[o]
|
|
486
|
+
})).filter((y) => !w.value.includes(y.id));
|
|
486
487
|
de.value = { datapoint: i, seriesIndex: o, config: e.value, dataset: t };
|
|
487
488
|
const b = e.value.tooltipCustomFormat;
|
|
488
489
|
if (ze(b) && Fe(() => b({
|
|
@@ -498,16 +499,16 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
498
499
|
config: e.value
|
|
499
500
|
});
|
|
500
501
|
else {
|
|
501
|
-
let
|
|
502
|
-
e.value.xyPeriods[i[0].absoluteIndex] && (
|
|
503
|
-
|
|
502
|
+
let y = "";
|
|
503
|
+
e.value.xyPeriods[i[0].absoluteIndex] && (y += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${e.value.xyPeriods[i[0].absoluteIndex]}</div>`), i.forEach((I, F) => {
|
|
504
|
+
y += `
|
|
504
505
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
505
506
|
<svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${I.color}"/></svg>
|
|
506
507
|
<span>${I.name}:</span>
|
|
507
508
|
<b>${X(
|
|
508
509
|
e.value.formatter,
|
|
509
510
|
I.value,
|
|
510
|
-
|
|
511
|
+
B({
|
|
511
512
|
p: e.value.valuePrefix,
|
|
512
513
|
v: I.value,
|
|
513
514
|
s: e.value.valueSuffix,
|
|
@@ -518,7 +519,7 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
518
519
|
</b>
|
|
519
520
|
</div>
|
|
520
521
|
`;
|
|
521
|
-
}), K.value =
|
|
522
|
+
}), K.value = y;
|
|
522
523
|
}
|
|
523
524
|
G.value = !0;
|
|
524
525
|
}
|
|
@@ -531,7 +532,7 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
531
532
|
legend: ee,
|
|
532
533
|
drawingArea: c,
|
|
533
534
|
extremes: n,
|
|
534
|
-
slotSize:
|
|
535
|
+
slotSize: U,
|
|
535
536
|
yLabels: ie,
|
|
536
537
|
useTooltip: ue,
|
|
537
538
|
killTooltip: te
|
|
@@ -550,15 +551,15 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
550
551
|
height: u.height - e.value.xyPaddingTop - e.value.xyPaddingBottom
|
|
551
552
|
};
|
|
552
553
|
let t = [];
|
|
553
|
-
Y(
|
|
554
|
+
Y(x.value.dataset) && (t = [
|
|
554
555
|
{
|
|
555
|
-
values:
|
|
556
|
-
absoluteIndices:
|
|
556
|
+
values: x.value.dataset.slice(k.value.start, k.value.end),
|
|
557
|
+
absoluteIndices: x.value.dataset.map((i, b) => b).slice(k.value.start, k.value.end),
|
|
557
558
|
name: e.value.title,
|
|
558
559
|
color: ce.value[e.value.paletteStartIndex] || D[e.value.paletteStartIndex],
|
|
559
560
|
id: "bar_0"
|
|
560
561
|
}
|
|
561
|
-
]), Ce(
|
|
562
|
+
]), Ce(x.value.dataset) && (t = x.value.dataset.map((i, b) => ({
|
|
562
563
|
...i,
|
|
563
564
|
values: i.VALUE || i.DATA || i.SERIE || i.SERIES || i.VALUES || i.NUM || 0,
|
|
564
565
|
name: i.NAME || i.DESCRIPTION || i.TITLE || i.LABEL || `Serie ${b}`,
|
|
@@ -567,37 +568,37 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
567
568
|
...i,
|
|
568
569
|
color: i.COLOR ? Oe(i.COLOR) : ce.value[b + e.value.paletteStartIndex] || D[b + e.value.paletteStartIndex] || D[(b + e.value.paletteStartIndex) % D.length],
|
|
569
570
|
values: i.values.slice(k.value.start, k.value.end),
|
|
570
|
-
absoluteIndices: i.values.map((
|
|
571
|
+
absoluteIndices: i.values.map((y, I) => I).slice(k.value.start, k.value.end)
|
|
571
572
|
})));
|
|
572
573
|
const n = {
|
|
573
574
|
max: Math.max(...t.filter((i) => !w.value.includes(i.id)).flatMap((i) => i.values)) < 0 ? 0 : Math.max(...t.filter((i) => !w.value.includes(i.id)).flatMap((i) => i.values)),
|
|
574
575
|
min: Math.min(...t.filter((i) => !w.value.includes(i.id)).flatMap((i) => i.values)),
|
|
575
576
|
maxSeries: Math.max(...t.filter((i) => !w.value.includes(i.id)).map((i) => i.values.length))
|
|
576
|
-
}, r =
|
|
577
|
+
}, r = Ye(n.min < 0 ? n.min : 0, n.max, e.value.xyScaleSegments), h = r.min < 0 ? Math.abs(r.min) : 0, O = c.bottom - h / (r.max + h) * c.height, U = c.width / n.maxSeries, ie = r.ticks.map((i) => ({
|
|
577
578
|
y: c.bottom - c.height * ((i + h) / (r.max + h)),
|
|
578
579
|
x: c.left - 8,
|
|
579
580
|
value: i
|
|
580
581
|
})), ee = t.map((i, b) => ({
|
|
581
582
|
...i,
|
|
582
|
-
coordinates: i.values.map((
|
|
583
|
-
const F = (
|
|
583
|
+
coordinates: i.values.map((y, I) => {
|
|
584
|
+
const F = (y + h) / (n.max + h) * c.height, ge = Math.abs(y) / Math.abs(n.min) * (c.height - O), Ie = h / (n.max + h) * c.height, me = U / t.filter((ae) => !w.value.includes(ae.id)).length - e.value.barGap / t.filter((ae) => !w.value.includes(ae.id)).length;
|
|
584
585
|
return {
|
|
585
|
-
x: c.left +
|
|
586
|
-
y:
|
|
587
|
-
height:
|
|
588
|
-
value:
|
|
586
|
+
x: c.left + U * I + me * b + e.value.barGap / 2,
|
|
587
|
+
y: y > 0 ? c.bottom - F : O,
|
|
588
|
+
height: y > 0 ? F - Ie : ge,
|
|
589
|
+
value: y,
|
|
589
590
|
width: me
|
|
590
591
|
};
|
|
591
592
|
})
|
|
592
593
|
})), ue = t.filter((i) => !w.value.includes(i.id)).map((i, b) => ({
|
|
593
594
|
...i,
|
|
594
|
-
coordinates: i.values.map((
|
|
595
|
-
const F = (
|
|
595
|
+
coordinates: i.values.map((y, I) => {
|
|
596
|
+
const F = (y + h) / (n.max + h) * c.height, ge = Math.abs(y) / (n.max + h) * c.height, Ie = h / (n.max + h) * c.height, me = U / t.filter((ae) => !w.value.includes(ae.id)).length - e.value.barGap / t.filter((ae) => !w.value.includes(ae.id)).length;
|
|
596
597
|
return {
|
|
597
|
-
x: c.left +
|
|
598
|
-
y:
|
|
599
|
-
height:
|
|
600
|
-
value:
|
|
598
|
+
x: c.left + U * I + me * b + e.value.barGap / 2,
|
|
599
|
+
y: y > 0 ? c.bottom - F : O,
|
|
600
|
+
height: y > 0 ? F - Ie : ge,
|
|
601
|
+
value: y,
|
|
601
602
|
width: me
|
|
602
603
|
};
|
|
603
604
|
})
|
|
@@ -610,14 +611,14 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
610
611
|
absoluteIndex: I.absoluteIndices[i]
|
|
611
612
|
})).filter((I) => !w.value.includes(I.id));
|
|
612
613
|
de.value = { datapoint: b, seriesIndex: i, config: e.value, dataset: t };
|
|
613
|
-
const
|
|
614
|
-
if (ze(
|
|
614
|
+
const y = e.value.tooltipCustomFormat;
|
|
615
|
+
if (ze(y) && Fe(() => y({
|
|
615
616
|
datapoint: b,
|
|
616
617
|
seriesIndex: i,
|
|
617
618
|
series: t,
|
|
618
619
|
config: e.value
|
|
619
620
|
})))
|
|
620
|
-
K.value =
|
|
621
|
+
K.value = y({
|
|
621
622
|
point: b,
|
|
622
623
|
seriesIndex: i,
|
|
623
624
|
series: t,
|
|
@@ -633,7 +634,7 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
633
634
|
<b>${X(
|
|
634
635
|
e.value.formatter,
|
|
635
636
|
F.value,
|
|
636
|
-
|
|
637
|
+
B({
|
|
637
638
|
p: e.value.valuePrefix,
|
|
638
639
|
v: F.value,
|
|
639
640
|
s: e.value.valueSuffix,
|
|
@@ -657,16 +658,16 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
657
658
|
legend: ee,
|
|
658
659
|
drawingArea: c,
|
|
659
660
|
extremes: n,
|
|
660
|
-
slotSize:
|
|
661
|
+
slotSize: U,
|
|
661
662
|
yLabels: ie,
|
|
662
663
|
useTooltip: te,
|
|
663
664
|
killTooltip: o
|
|
664
665
|
};
|
|
665
666
|
}), Pe = P(!1);
|
|
666
|
-
function
|
|
667
|
-
Pe.value = u,
|
|
667
|
+
function vt(u) {
|
|
668
|
+
Pe.value = u, Be.value += 1;
|
|
668
669
|
}
|
|
669
|
-
function
|
|
670
|
+
function Ze() {
|
|
670
671
|
Se.value.showTooltip = !Se.value.showTooltip;
|
|
671
672
|
}
|
|
672
673
|
const _e = P(!1);
|
|
@@ -674,11 +675,11 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
674
675
|
_e.value = !_e.value;
|
|
675
676
|
}
|
|
676
677
|
return $({
|
|
677
|
-
generatePdf:
|
|
678
|
-
generateImage:
|
|
679
|
-
toggleTooltip:
|
|
678
|
+
generatePdf: De,
|
|
679
|
+
generateImage: Ve,
|
|
680
|
+
toggleTooltip: Ze,
|
|
680
681
|
toggleAnnotator: Te
|
|
681
|
-
}), (u, c) =>
|
|
682
|
+
}), (u, c) => ot.value ? (a(), l("div", {
|
|
682
683
|
key: 0,
|
|
683
684
|
id: `${z.value}_${T.value}`,
|
|
684
685
|
ref_key: "quickChart",
|
|
@@ -686,17 +687,17 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
686
687
|
class: ne({ "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": Pe.value }),
|
|
687
688
|
style: N(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`)
|
|
688
689
|
}, [
|
|
689
|
-
e.value.userOptionsButtons.annotator ? (a(), Le(
|
|
690
|
+
e.value.userOptionsButtons.annotator ? (a(), Le(Rt, {
|
|
690
691
|
key: 0,
|
|
691
692
|
parent: W.value,
|
|
692
693
|
backgroundColor: e.value.backgroundColor,
|
|
693
694
|
color: e.value.color,
|
|
694
695
|
active: _e.value,
|
|
695
696
|
onClose: Te
|
|
696
|
-
}, null, 8, ["parent", "backgroundColor", "color", "active"])) :
|
|
697
|
-
e.value.showUserOptions ? (a(), Le(
|
|
697
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : g("", !0),
|
|
698
|
+
e.value.showUserOptions ? (a(), Le(Pt, {
|
|
698
699
|
ref: "details",
|
|
699
|
-
key: `user_option_${
|
|
700
|
+
key: `user_option_${Be.value}`,
|
|
700
701
|
backgroundColor: e.value.backgroundColor,
|
|
701
702
|
color: e.value.color,
|
|
702
703
|
isPrinting: f(ke),
|
|
@@ -714,62 +715,62 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
714
715
|
position: e.value.userOptionsPosition,
|
|
715
716
|
hasAnnotator: e.value.userOptionsButtons.annotator,
|
|
716
717
|
isAnnotation: _e.value,
|
|
717
|
-
onToggleFullscreen:
|
|
718
|
-
onGeneratePdf: f(
|
|
719
|
-
onGenerateImage: f(
|
|
720
|
-
onToggleTooltip:
|
|
718
|
+
onToggleFullscreen: vt,
|
|
719
|
+
onGeneratePdf: f(De),
|
|
720
|
+
onGenerateImage: f(Ve),
|
|
721
|
+
onToggleTooltip: Ze,
|
|
721
722
|
onToggleAnnotator: Te
|
|
722
|
-
},
|
|
723
|
+
}, ht({ _: 2 }, [
|
|
723
724
|
u.$slots.optionTooltip ? {
|
|
724
725
|
name: "optionTooltip",
|
|
725
726
|
fn: Q(() => [
|
|
726
|
-
|
|
727
|
+
M(u.$slots, "optionTooltip", {}, void 0, !0)
|
|
727
728
|
]),
|
|
728
729
|
key: "0"
|
|
729
730
|
} : void 0,
|
|
730
731
|
u.$slots.optionPdf ? {
|
|
731
732
|
name: "optionPdf",
|
|
732
733
|
fn: Q(() => [
|
|
733
|
-
|
|
734
|
+
M(u.$slots, "optionPdf", {}, void 0, !0)
|
|
734
735
|
]),
|
|
735
736
|
key: "1"
|
|
736
737
|
} : void 0,
|
|
737
738
|
u.$slots.optionImg ? {
|
|
738
739
|
name: "optionImg",
|
|
739
740
|
fn: Q(() => [
|
|
740
|
-
|
|
741
|
+
M(u.$slots, "optionImg", {}, void 0, !0)
|
|
741
742
|
]),
|
|
742
743
|
key: "2"
|
|
743
744
|
} : void 0,
|
|
744
745
|
u.$slots.optionFullscreen ? {
|
|
745
746
|
name: "optionFullscreen",
|
|
746
747
|
fn: Q(({ toggleFullscreen: t, isFullscreen: n }) => [
|
|
747
|
-
|
|
748
|
+
M(u.$slots, "optionFullscreen", H(re({ toggleFullscreen: t, isFullscreen: n })), void 0, !0)
|
|
748
749
|
]),
|
|
749
750
|
key: "3"
|
|
750
751
|
} : void 0,
|
|
751
752
|
u.$slots.optionAnnotator ? {
|
|
752
753
|
name: "optionAnnotator",
|
|
753
754
|
fn: Q(({ toggleAnnotator: t, isAnnotator: n }) => [
|
|
754
|
-
|
|
755
|
+
M(u.$slots, "optionAnnotator", H(re({ toggleAnnotator: t, isAnnotator: n })), void 0, !0)
|
|
755
756
|
]),
|
|
756
757
|
key: "4"
|
|
757
758
|
} : void 0
|
|
758
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) :
|
|
759
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : g("", !0),
|
|
759
760
|
e.value.title ? (a(), l("div", {
|
|
760
761
|
key: 2,
|
|
761
762
|
ref_key: "quickChartTitle",
|
|
762
763
|
ref: le,
|
|
763
764
|
class: "vue-ui-quick-chart-title",
|
|
764
765
|
style: N(`background:transparent;color:${e.value.color};font-size:${e.value.titleFontSize}px;font-weight:${e.value.titleBold ? "bold" : "normal"};text-align:${e.value.titleTextAlign}`)
|
|
765
|
-
}, E(e.value.title), 5)) :
|
|
766
|
+
}, E(e.value.title), 5)) : g("", !0),
|
|
766
767
|
z.value ? (a(), l("svg", {
|
|
767
768
|
key: 3,
|
|
768
|
-
xmlns: f(
|
|
769
|
-
viewBox:
|
|
769
|
+
xmlns: f(At),
|
|
770
|
+
viewBox: it.value,
|
|
770
771
|
style: N(`max-width:100%;overflow:visible;background:transparent;color:${e.value.color}`)
|
|
771
772
|
}, [
|
|
772
|
-
se(
|
|
773
|
+
se(Et),
|
|
773
774
|
A("defs", null, [
|
|
774
775
|
A("filter", {
|
|
775
776
|
id: `blur_${T.value}`,
|
|
@@ -782,9 +783,9 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
782
783
|
in: "SourceGraphic",
|
|
783
784
|
stdDeviation: 2,
|
|
784
785
|
id: `blur_std_${T.value}`
|
|
785
|
-
}, null, 8,
|
|
786
|
-
|
|
787
|
-
], 8,
|
|
786
|
+
}, null, 8, jt),
|
|
787
|
+
Gt
|
|
788
|
+
], 8, Wt),
|
|
788
789
|
A("filter", {
|
|
789
790
|
id: `shadow_${T.value}`,
|
|
790
791
|
"color-interpolation-filters": "sRGB"
|
|
@@ -795,48 +796,48 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
795
796
|
stdDeviation: "10",
|
|
796
797
|
"flood-opacity": "0.5",
|
|
797
798
|
"flood-color": e.value.donutShadowColor
|
|
798
|
-
}, null, 8,
|
|
799
|
-
], 8,
|
|
799
|
+
}, null, 8, Xt)
|
|
800
|
+
], 8, Ht)
|
|
800
801
|
]),
|
|
801
802
|
z.value === _.DONUT ? (a(), l(p, { key: 0 }, [
|
|
802
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
803
|
+
e.value.showDataLabels ? (a(), l("g", Zt, [
|
|
803
804
|
(a(!0), l(p, null, L(C.value.chart, (t, n) => (a(), l(p, null, [
|
|
804
805
|
C.value.isArcBigEnough(t) ? (a(), l("path", {
|
|
805
806
|
key: 0,
|
|
806
|
-
d: f(
|
|
807
|
+
d: f(_t)(t, { x: S.value.width / 2, y: S.value.height / 2 }, 16, 16, !1, !1, S.value.height * Xe.value),
|
|
807
808
|
stroke: t.color,
|
|
808
809
|
"stroke-width": e.value.donutLabelMarkerStrokeWidth,
|
|
809
810
|
"stroke-linecap": "round",
|
|
810
811
|
"stroke-linejoin": "round",
|
|
811
812
|
fill: "none",
|
|
812
813
|
filter: fe(t.id)
|
|
813
|
-
}, null, 8,
|
|
814
|
+
}, null, 8, Yt)) : g("", !0)
|
|
814
815
|
], 64))), 256))
|
|
815
|
-
])) :
|
|
816
|
+
])) : g("", !0),
|
|
816
817
|
A("circle", {
|
|
817
818
|
cx: C.value.cx,
|
|
818
819
|
cy: C.value.cy,
|
|
819
820
|
r: C.value.radius,
|
|
820
821
|
fill: e.value.backgroundColor,
|
|
821
822
|
filter: e.value.donutUseShadow ? `url(#shadow_${T.value})` : ""
|
|
822
|
-
}, null, 8,
|
|
823
|
-
A("g",
|
|
823
|
+
}, null, 8, Jt),
|
|
824
|
+
A("g", Qt, [
|
|
824
825
|
(a(!0), l(p, null, L(C.value.chart, (t, n) => (a(), l("path", {
|
|
825
826
|
d: t.arcSlice,
|
|
826
827
|
fill: t.color,
|
|
827
828
|
stroke: e.value.backgroundColor,
|
|
828
829
|
"stroke-width": e.value.donutStrokeWidth,
|
|
829
830
|
filter: fe(t.id)
|
|
830
|
-
}, null, 8,
|
|
831
|
+
}, null, 8, Kt))), 256)),
|
|
831
832
|
(a(!0), l(p, null, L(C.value.chart, (t, n) => (a(), l("path", {
|
|
832
833
|
d: t.arcSlice,
|
|
833
834
|
fill: "transparent",
|
|
834
835
|
onMouseenter: (r) => C.value.useTooltip({ datapoint: t, seriesIndex: n }),
|
|
835
836
|
onMouseout: c[0] || (c[0] = (r) => C.value.killTooltip()),
|
|
836
|
-
onClick: (r) =>
|
|
837
|
-
}, null, 40,
|
|
837
|
+
onClick: (r) => m("selectDatapoint", t)
|
|
838
|
+
}, null, 40, ea))), 256))
|
|
838
839
|
]),
|
|
839
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
840
|
+
e.value.showDataLabels ? (a(), l("g", ta, [
|
|
840
841
|
(a(!0), l(p, null, L(C.value.chart, (t, n) => (a(), l(p, null, [
|
|
841
842
|
C.value.isArcBigEnough(t) ? (a(), l("circle", {
|
|
842
843
|
key: 0,
|
|
@@ -847,7 +848,7 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
847
848
|
"stroke-width": 1,
|
|
848
849
|
r: 3,
|
|
849
850
|
filter: fe(t.id)
|
|
850
|
-
}, null, 8,
|
|
851
|
+
}, null, 8, aa)) : g("", !0),
|
|
851
852
|
C.value.isArcBigEnough(t) ? (a(), l("text", {
|
|
852
853
|
key: 1,
|
|
853
854
|
"text-anchor": f(pe)(t, !0, 20).anchor,
|
|
@@ -859,14 +860,14 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
859
860
|
}, E(C.value.displayArcPercentage(t, C.value.chart)) + " (" + E(f(X)(
|
|
860
861
|
e.value.formatter,
|
|
861
862
|
t.value,
|
|
862
|
-
f(
|
|
863
|
+
f(B)({
|
|
863
864
|
p: e.value.valuePrefix,
|
|
864
865
|
v: t.value,
|
|
865
866
|
s: e.value.valueSuffix,
|
|
866
867
|
r: e.value.dataLabelRoundingValue
|
|
867
868
|
}),
|
|
868
869
|
{ datapoint: t, seriesIndex: n }
|
|
869
|
-
)) + ") ", 9,
|
|
870
|
+
)) + ") ", 9, la)) : g("", !0),
|
|
870
871
|
C.value.isArcBigEnough(t, !0, 20) ? (a(), l("text", {
|
|
871
872
|
key: 2,
|
|
872
873
|
"text-anchor": f(pe)(t).anchor,
|
|
@@ -875,33 +876,33 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
875
876
|
fill: e.value.color,
|
|
876
877
|
"font-size": e.value.dataLabelFontSize,
|
|
877
878
|
filter: fe(t.id)
|
|
878
|
-
}, E(t.name), 9,
|
|
879
|
+
}, E(t.name), 9, oa)) : g("", !0)
|
|
879
880
|
], 64))), 256))
|
|
880
|
-
])) :
|
|
881
|
-
e.value.donutShowTotal ? (a(), l("g",
|
|
881
|
+
])) : g("", !0),
|
|
882
|
+
e.value.donutShowTotal ? (a(), l("g", ia, [
|
|
882
883
|
A("text", {
|
|
883
884
|
"text-anchor": "middle",
|
|
884
885
|
x: C.value.drawingArea.centerX,
|
|
885
886
|
y: C.value.drawingArea.centerY - e.value.donutTotalLabelFontSize / 2,
|
|
886
887
|
"font-size": e.value.donutTotalLabelFontSize,
|
|
887
888
|
fill: e.value.color
|
|
888
|
-
}, E(e.value.donutTotalLabelText), 9,
|
|
889
|
+
}, E(e.value.donutTotalLabelText), 9, ua),
|
|
889
890
|
A("text", {
|
|
890
891
|
"text-anchor": "middle",
|
|
891
892
|
x: C.value.drawingArea.centerX,
|
|
892
893
|
y: C.value.drawingArea.centerY + e.value.donutTotalLabelFontSize,
|
|
893
894
|
"font-size": e.value.donutTotalLabelFontSize,
|
|
894
895
|
fill: e.value.color
|
|
895
|
-
}, E(f(
|
|
896
|
+
}, E(f(B)({
|
|
896
897
|
p: e.value.valuePrefix,
|
|
897
898
|
v: C.value.total,
|
|
898
899
|
s: e.value.valueSuffix,
|
|
899
900
|
r: e.value.dataLabelRoundingValue
|
|
900
|
-
})), 9,
|
|
901
|
-
])) :
|
|
902
|
-
], 64)) :
|
|
901
|
+
})), 9, na)
|
|
902
|
+
])) : g("", !0)
|
|
903
|
+
], 64)) : g("", !0),
|
|
903
904
|
z.value === _.LINE ? (a(), l(p, { key: 1 }, [
|
|
904
|
-
e.value.xyShowGrid ? (a(), l("g",
|
|
905
|
+
e.value.xyShowGrid ? (a(), l("g", ra, [
|
|
905
906
|
(a(!0), l(p, null, L(d.value.yLabels, (t) => (a(), l(p, null, [
|
|
906
907
|
t.y <= d.value.drawingArea.bottom ? (a(), l("line", {
|
|
907
908
|
key: 0,
|
|
@@ -912,7 +913,7 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
912
913
|
stroke: e.value.xyGridStroke,
|
|
913
914
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
914
915
|
"stroke-linecap": "round"
|
|
915
|
-
}, null, 8,
|
|
916
|
+
}, null, 8, sa)) : g("", !0)
|
|
916
917
|
], 64))), 256)),
|
|
917
918
|
(a(!0), l(p, null, L(d.value.extremes.maxSeries + 1, (t, n) => (a(), l("line", {
|
|
918
919
|
x1: d.value.drawingArea.left + d.value.slotSize * n,
|
|
@@ -922,9 +923,9 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
922
923
|
stroke: e.value.xyGridStroke,
|
|
923
924
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
924
925
|
"stroke-linecap": "round"
|
|
925
|
-
}, null, 8,
|
|
926
|
-
])) :
|
|
927
|
-
e.value.xyShowAxis ? (a(), l("g",
|
|
926
|
+
}, null, 8, va))), 256))
|
|
927
|
+
])) : g("", !0),
|
|
928
|
+
e.value.xyShowAxis ? (a(), l("g", da, [
|
|
928
929
|
A("line", {
|
|
929
930
|
x1: d.value.drawingArea.left,
|
|
930
931
|
x2: d.value.drawingArea.left,
|
|
@@ -933,7 +934,7 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
933
934
|
stroke: e.value.xyAxisStroke,
|
|
934
935
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
935
936
|
"stroke-linecap": "round"
|
|
936
|
-
}, null, 8,
|
|
937
|
+
}, null, 8, ca),
|
|
937
938
|
A("line", {
|
|
938
939
|
x1: d.value.drawingArea.left,
|
|
939
940
|
x2: d.value.drawingArea.right,
|
|
@@ -942,9 +943,9 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
942
943
|
stroke: e.value.xyAxisStroke,
|
|
943
944
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
944
945
|
"stroke-linecap": "round"
|
|
945
|
-
}, null, 8,
|
|
946
|
-
])) :
|
|
947
|
-
e.value.xyShowScale ? (a(), l("g",
|
|
946
|
+
}, null, 8, ha)
|
|
947
|
+
])) : g("", !0),
|
|
948
|
+
e.value.xyShowScale ? (a(), l("g", fa, [
|
|
948
949
|
(a(!0), l(p, null, L(d.value.yLabels, (t, n) => (a(), l(p, null, [
|
|
949
950
|
t.y <= d.value.drawingArea.bottom ? (a(), l("line", {
|
|
950
951
|
key: 0,
|
|
@@ -955,7 +956,7 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
955
956
|
stroke: e.value.xyAxisStroke,
|
|
956
957
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
957
958
|
"stroke-linecap": "round"
|
|
958
|
-
}, null, 8,
|
|
959
|
+
}, null, 8, ga)) : g("", !0),
|
|
959
960
|
t.y <= d.value.drawingArea.bottom ? (a(), l("text", {
|
|
960
961
|
key: 1,
|
|
961
962
|
x: t.x,
|
|
@@ -966,17 +967,17 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
966
967
|
}, E(f(X)(
|
|
967
968
|
e.value.formatter,
|
|
968
969
|
t.value,
|
|
969
|
-
f(
|
|
970
|
+
f(B)({
|
|
970
971
|
p: e.value.valuePrefix,
|
|
971
972
|
v: t.value,
|
|
972
973
|
s: e.value.valueSuffix,
|
|
973
974
|
r: e.value.dataLabelRoundingValue
|
|
974
975
|
}),
|
|
975
976
|
{ datapoint: t, seriesIndex: n }
|
|
976
|
-
)), 9,
|
|
977
|
+
)), 9, ma)) : g("", !0)
|
|
977
978
|
], 64))), 256))
|
|
978
|
-
])) :
|
|
979
|
-
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g",
|
|
979
|
+
])) : g("", !0),
|
|
980
|
+
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g", pa, [
|
|
980
981
|
(a(!0), l(p, null, L(e.value.xyPeriods.slice(k.value.start, k.value.end), (t, n) => (a(), l("line", {
|
|
981
982
|
x1: d.value.drawingArea.left + d.value.slotSize * (n + 1) - d.value.slotSize / 2,
|
|
982
983
|
x2: d.value.drawingArea.left + d.value.slotSize * (n + 1) - d.value.slotSize / 2,
|
|
@@ -985,35 +986,35 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
985
986
|
stroke: e.value.xyAxisStroke,
|
|
986
987
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
987
988
|
"stroke-linecap": "round"
|
|
988
|
-
}, null, 8,
|
|
989
|
+
}, null, 8, ya))), 256)),
|
|
989
990
|
(a(!0), l(p, null, L(e.value.xyPeriods.slice(k.value.start, k.value.end), (t, n) => (a(), l("text", {
|
|
990
991
|
"font-size": e.value.xyLabelsXFontSize,
|
|
991
992
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
992
993
|
fill: e.value.color,
|
|
993
994
|
transform: `translate(${d.value.drawingArea.left + d.value.slotSize * (n + 1) - d.value.slotSize / 2}, ${d.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`
|
|
994
995
|
}, E(t), 9, xa))), 256))
|
|
995
|
-
])) :
|
|
996
|
-
A("g",
|
|
997
|
-
(a(!0), l(p, null, L(d.value.dataset, (t, n) => (a(), l("g",
|
|
996
|
+
])) : g("", !0),
|
|
997
|
+
A("g", ka, [
|
|
998
|
+
(a(!0), l(p, null, L(d.value.dataset, (t, n) => (a(), l("g", ba, [
|
|
998
999
|
e.value.lineSmooth ? (a(), l(p, { key: 0 }, [
|
|
999
1000
|
A("path", {
|
|
1000
|
-
d: `M ${f(
|
|
1001
|
+
d: `M ${f(Je)(t.coordinates)}`,
|
|
1001
1002
|
stroke: e.value.backgroundColor,
|
|
1002
1003
|
"stroke-width": e.value.lineStrokeWidth + 1,
|
|
1003
1004
|
"stroke-linecap": "round",
|
|
1004
1005
|
fill: "none",
|
|
1005
1006
|
class: ne({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1006
1007
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1007
|
-
}, null, 10,
|
|
1008
|
+
}, null, 10, Sa),
|
|
1008
1009
|
A("path", {
|
|
1009
|
-
d: `M ${f(
|
|
1010
|
+
d: `M ${f(Je)(t.coordinates)}`,
|
|
1010
1011
|
stroke: t.color,
|
|
1011
1012
|
"stroke-width": e.value.lineStrokeWidth,
|
|
1012
1013
|
"stroke-linecap": "round",
|
|
1013
1014
|
fill: "none",
|
|
1014
1015
|
class: ne({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1015
1016
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1016
|
-
}, null, 10,
|
|
1017
|
+
}, null, 10, wa)
|
|
1017
1018
|
], 64)) : (a(), l(p, { key: 1 }, [
|
|
1018
1019
|
A("path", {
|
|
1019
1020
|
d: `M ${t.linePath}`,
|
|
@@ -1023,7 +1024,7 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
1023
1024
|
fill: "none",
|
|
1024
1025
|
class: ne({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1025
1026
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1026
|
-
}, null, 10,
|
|
1027
|
+
}, null, 10, Aa),
|
|
1027
1028
|
A("path", {
|
|
1028
1029
|
d: `M ${t.linePath}`,
|
|
1029
1030
|
stroke: t.color,
|
|
@@ -1032,7 +1033,7 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
1032
1033
|
fill: "none",
|
|
1033
1034
|
class: ne({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1034
1035
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1035
|
-
}, null, 10,
|
|
1036
|
+
}, null, 10, _a)
|
|
1036
1037
|
], 64)),
|
|
1037
1038
|
(a(!0), l(p, null, L(t.coordinates, (r, h) => (a(), l("circle", {
|
|
1038
1039
|
cx: r.x,
|
|
@@ -1043,10 +1044,10 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
1043
1044
|
"stroke-width": "0.5",
|
|
1044
1045
|
class: "quick-animation",
|
|
1045
1046
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1046
|
-
}, null, 8,
|
|
1047
|
+
}, null, 8, La))), 256))
|
|
1047
1048
|
]))), 256))
|
|
1048
1049
|
]),
|
|
1049
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
1050
|
+
e.value.showDataLabels ? (a(), l("g", za, [
|
|
1050
1051
|
(a(!0), l(p, null, L(d.value.dataset, (t, n) => (a(), l(p, null, [
|
|
1051
1052
|
(a(!0), l(p, null, L(t.coordinates, (r, h) => (a(), l("text", {
|
|
1052
1053
|
"text-anchor": "middle",
|
|
@@ -1059,17 +1060,17 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
1059
1060
|
}, E(f(X)(
|
|
1060
1061
|
e.value.formatter,
|
|
1061
1062
|
f(Z)(r.value),
|
|
1062
|
-
f(
|
|
1063
|
+
f(B)({
|
|
1063
1064
|
p: e.value.valuePrefix,
|
|
1064
1065
|
v: f(Z)(r.value),
|
|
1065
1066
|
s: e.value.valueSuffix,
|
|
1066
1067
|
r: e.value.dataLabelRoundingValue
|
|
1067
1068
|
}),
|
|
1068
1069
|
{ datapoint: r, seriesIndex: h }
|
|
1069
|
-
)), 9,
|
|
1070
|
+
)), 9, $a))), 256))
|
|
1070
1071
|
], 64))), 256))
|
|
1071
|
-
])) :
|
|
1072
|
-
A("g",
|
|
1072
|
+
])) : g("", !0),
|
|
1073
|
+
A("g", Ca, [
|
|
1073
1074
|
(a(!0), l(p, null, L(d.value.extremes.maxSeries, (t, n) => (a(), l("rect", {
|
|
1074
1075
|
x: d.value.drawingArea.left + n * d.value.slotSize,
|
|
1075
1076
|
y: d.value.drawingArea.top,
|
|
@@ -1079,15 +1080,15 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
1079
1080
|
style: N(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1080
1081
|
onMouseenter: (r) => d.value.useTooltip(n),
|
|
1081
1082
|
onMouseleave: c[1] || (c[1] = (r) => d.value.killTooltip()),
|
|
1082
|
-
onClick: (r) =>
|
|
1083
|
+
onClick: (r) => m("selectDatapoint", d.value.dataset.map((h) => ({
|
|
1083
1084
|
...h,
|
|
1084
1085
|
value: h.values[n]
|
|
1085
1086
|
})))
|
|
1086
|
-
}, null, 44,
|
|
1087
|
+
}, null, 44, Pa))), 256))
|
|
1087
1088
|
])
|
|
1088
|
-
], 64)) :
|
|
1089
|
+
], 64)) : g("", !0),
|
|
1089
1090
|
z.value === _.BAR ? (a(), l(p, { key: 2 }, [
|
|
1090
|
-
e.value.xyShowGrid ? (a(), l("g",
|
|
1091
|
+
e.value.xyShowGrid ? (a(), l("g", Ta, [
|
|
1091
1092
|
(a(!0), l(p, null, L(v.value.yLabels, (t) => (a(), l(p, null, [
|
|
1092
1093
|
t.y <= v.value.drawingArea.bottom ? (a(), l("line", {
|
|
1093
1094
|
key: 0,
|
|
@@ -1098,7 +1099,7 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
1098
1099
|
stroke: e.value.xyGridStroke,
|
|
1099
1100
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1100
1101
|
"stroke-linecap": "round"
|
|
1101
|
-
}, null, 8,
|
|
1102
|
+
}, null, 8, Ia)) : g("", !0)
|
|
1102
1103
|
], 64))), 256)),
|
|
1103
1104
|
(a(!0), l(p, null, L(v.value.extremes.maxSeries + 1, (t, n) => (a(), l("line", {
|
|
1104
1105
|
x1: v.value.drawingArea.left + v.value.slotSize * n,
|
|
@@ -1108,9 +1109,9 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
1108
1109
|
stroke: e.value.xyGridStroke,
|
|
1109
1110
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1110
1111
|
"stroke-linecap": "round"
|
|
1111
|
-
}, null, 8,
|
|
1112
|
-
])) :
|
|
1113
|
-
e.value.xyShowAxis ? (a(), l("g",
|
|
1112
|
+
}, null, 8, Ea))), 256))
|
|
1113
|
+
])) : g("", !0),
|
|
1114
|
+
e.value.xyShowAxis ? (a(), l("g", Ra, [
|
|
1114
1115
|
A("line", {
|
|
1115
1116
|
x1: v.value.drawingArea.left,
|
|
1116
1117
|
x2: v.value.drawingArea.left,
|
|
@@ -1119,7 +1120,7 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
1119
1120
|
stroke: e.value.xyAxisStroke,
|
|
1120
1121
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1121
1122
|
"stroke-linecap": "round"
|
|
1122
|
-
}, null, 8,
|
|
1123
|
+
}, null, 8, Oa),
|
|
1123
1124
|
A("line", {
|
|
1124
1125
|
x1: v.value.drawingArea.left,
|
|
1125
1126
|
x2: v.value.drawingArea.right,
|
|
@@ -1128,9 +1129,9 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
1128
1129
|
stroke: e.value.xyAxisStroke,
|
|
1129
1130
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1130
1131
|
"stroke-linecap": "round"
|
|
1131
|
-
}, null, 8,
|
|
1132
|
-
])) :
|
|
1133
|
-
e.value.xyShowScale ? (a(), l("g",
|
|
1132
|
+
}, null, 8, Na)
|
|
1133
|
+
])) : g("", !0),
|
|
1134
|
+
e.value.xyShowScale ? (a(), l("g", Fa, [
|
|
1134
1135
|
(a(!0), l(p, null, L(v.value.yLabels, (t, n) => (a(), l(p, null, [
|
|
1135
1136
|
t.y <= v.value.drawingArea.bottom ? (a(), l("line", {
|
|
1136
1137
|
key: 0,
|
|
@@ -1141,7 +1142,7 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
1141
1142
|
stroke: e.value.xyAxisStroke,
|
|
1142
1143
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1143
1144
|
"stroke-linecap": "round"
|
|
1144
|
-
}, null, 8,
|
|
1145
|
+
}, null, 8, Ma)) : g("", !0),
|
|
1145
1146
|
t.y <= v.value.drawingArea.bottom ? (a(), l("text", {
|
|
1146
1147
|
key: 1,
|
|
1147
1148
|
x: t.x,
|
|
@@ -1152,17 +1153,17 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
1152
1153
|
}, E(f(X)(
|
|
1153
1154
|
e.value.formatter,
|
|
1154
1155
|
t.value,
|
|
1155
|
-
f(
|
|
1156
|
+
f(B)({
|
|
1156
1157
|
p: e.value.valuePrefix,
|
|
1157
1158
|
v: t.value,
|
|
1158
1159
|
s: e.value.valueSuffix,
|
|
1159
1160
|
r: e.value.dataLabelRoundingValue
|
|
1160
1161
|
}),
|
|
1161
1162
|
{ datapoint: t, seriesIndex: n }
|
|
1162
|
-
)), 9,
|
|
1163
|
+
)), 9, Ba)) : g("", !0)
|
|
1163
1164
|
], 64))), 256))
|
|
1164
|
-
])) :
|
|
1165
|
-
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g",
|
|
1165
|
+
])) : g("", !0),
|
|
1166
|
+
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g", Ua, [
|
|
1166
1167
|
(a(!0), l(p, null, L(e.value.xyPeriods.slice(k.value.start, k.value.end), (t, n) => (a(), l("line", {
|
|
1167
1168
|
x1: v.value.drawingArea.left + v.value.slotSize * (n + 1) - v.value.slotSize / 2,
|
|
1168
1169
|
x2: v.value.drawingArea.left + v.value.slotSize * (n + 1) - v.value.slotSize / 2,
|
|
@@ -1171,15 +1172,15 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
1171
1172
|
stroke: e.value.xyAxisStroke,
|
|
1172
1173
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1173
1174
|
"stroke-linecap": "round"
|
|
1174
|
-
}, null, 8,
|
|
1175
|
+
}, null, 8, Da))), 256)),
|
|
1175
1176
|
(a(!0), l(p, null, L(e.value.xyPeriods.slice(k.value.start, k.value.end), (t, n) => (a(), l("text", {
|
|
1176
1177
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1177
1178
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1178
1179
|
transform: `translate(${v.value.drawingArea.left + v.value.slotSize * (n + 1) - v.value.slotSize / 2}, ${v.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}) rotate(${e.value.xyPeriodLabelsRotation})`,
|
|
1179
1180
|
fill: e.value.color
|
|
1180
|
-
}, E(t), 9,
|
|
1181
|
-
])) :
|
|
1182
|
-
A("g",
|
|
1181
|
+
}, E(t), 9, Va))), 256))
|
|
1182
|
+
])) : g("", !0),
|
|
1183
|
+
A("g", qa, [
|
|
1183
1184
|
(a(!0), l(p, null, L(v.value.dataset, (t, n) => (a(), l(p, null, [
|
|
1184
1185
|
(a(!0), l(p, null, L(t.coordinates, (r, h) => (a(), l("rect", {
|
|
1185
1186
|
x: r.x,
|
|
@@ -1198,18 +1199,18 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
1198
1199
|
from: 0,
|
|
1199
1200
|
to: r.height,
|
|
1200
1201
|
dur: "0.5s"
|
|
1201
|
-
}, null, 8,
|
|
1202
|
+
}, null, 8, ja)) : g("", !0),
|
|
1202
1203
|
e.value.barAnimated && r.value > 0 && !f(ke) && !f(be) ? (a(), l("animate", {
|
|
1203
1204
|
key: 1,
|
|
1204
1205
|
attributeName: "y",
|
|
1205
1206
|
from: v.value.absoluteZero,
|
|
1206
1207
|
to: v.value.absoluteZero - r.height,
|
|
1207
1208
|
dur: "0.5s"
|
|
1208
|
-
}, null, 8,
|
|
1209
|
-
], 10,
|
|
1209
|
+
}, null, 8, Ga)) : g("", !0)
|
|
1210
|
+
], 10, Wa))), 256))
|
|
1210
1211
|
], 64))), 256))
|
|
1211
1212
|
]),
|
|
1212
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
1213
|
+
e.value.showDataLabels ? (a(), l("g", Ha, [
|
|
1213
1214
|
(a(!0), l(p, null, L(v.value.dataset, (t, n) => (a(), l(p, null, [
|
|
1214
1215
|
(a(!0), l(p, null, L(t.coordinates, (r, h) => (a(), l("text", {
|
|
1215
1216
|
x: r.x + r.width / 2,
|
|
@@ -1221,17 +1222,17 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
1221
1222
|
}, E(f(X)(
|
|
1222
1223
|
e.value.formatter,
|
|
1223
1224
|
f(Z)(r.value),
|
|
1224
|
-
f(
|
|
1225
|
+
f(B)({
|
|
1225
1226
|
p: e.value.valuePrefix,
|
|
1226
1227
|
v: f(Z)(r.value),
|
|
1227
1228
|
s: e.value.valueSuffix,
|
|
1228
1229
|
r: e.value.dataLabelRoundingValue
|
|
1229
1230
|
}),
|
|
1230
1231
|
{ datapoint: r, seriesIndex: h }
|
|
1231
|
-
)), 9,
|
|
1232
|
+
)), 9, Xa))), 256))
|
|
1232
1233
|
], 64))), 256))
|
|
1233
|
-
])) :
|
|
1234
|
-
A("g",
|
|
1234
|
+
])) : g("", !0),
|
|
1235
|
+
A("g", Za, [
|
|
1235
1236
|
(a(!0), l(p, null, L(v.value.extremes.maxSeries, (t, n) => (a(), l("rect", {
|
|
1236
1237
|
x: v.value.drawingArea.left + n * v.value.slotSize,
|
|
1237
1238
|
y: v.value.drawingArea.top,
|
|
@@ -1241,51 +1242,51 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
1241
1242
|
style: N(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1242
1243
|
onMouseenter: (r) => v.value.useTooltip(n),
|
|
1243
1244
|
onMouseleave: c[2] || (c[2] = (r) => v.value.killTooltip()),
|
|
1244
|
-
onClick: (r) =>
|
|
1245
|
+
onClick: (r) => m("selectDatapoint", v.value.dataset.map((h) => ({
|
|
1245
1246
|
...h,
|
|
1246
1247
|
value: h.values[n]
|
|
1247
1248
|
})))
|
|
1248
|
-
}, null, 44,
|
|
1249
|
+
}, null, 44, Ya))), 256))
|
|
1249
1250
|
])
|
|
1250
|
-
], 64)) :
|
|
1251
|
-
[_.LINE, _.BAR].includes(z.value) ? (a(), l("g",
|
|
1252
|
-
e.value.xAxisLabel && z.value === _.LINE ? (a(), l("g",
|
|
1251
|
+
], 64)) : g("", !0),
|
|
1252
|
+
[_.LINE, _.BAR].includes(z.value) ? (a(), l("g", Ja, [
|
|
1253
|
+
e.value.xAxisLabel && z.value === _.LINE ? (a(), l("g", Qa, [
|
|
1253
1254
|
A("text", {
|
|
1254
1255
|
"font-size": e.value.axisLabelsFontSize,
|
|
1255
1256
|
fill: e.value.color,
|
|
1256
1257
|
"text-anchor": "middle",
|
|
1257
1258
|
x: d.value.drawingArea.left + d.value.drawingArea.width / 2,
|
|
1258
1259
|
y: S.value.height - e.value.axisLabelsFontSize / 3
|
|
1259
|
-
}, E(e.value.xAxisLabel), 9,
|
|
1260
|
-
])) :
|
|
1261
|
-
e.value.xAxisLabel && z.value === _.BAR ? (a(), l("g",
|
|
1260
|
+
}, E(e.value.xAxisLabel), 9, Ka)
|
|
1261
|
+
])) : g("", !0),
|
|
1262
|
+
e.value.xAxisLabel && z.value === _.BAR ? (a(), l("g", el, [
|
|
1262
1263
|
A("text", {
|
|
1263
1264
|
"font-size": e.value.axisLabelsFontSize,
|
|
1264
1265
|
fill: e.value.color,
|
|
1265
1266
|
"text-anchor": "middle",
|
|
1266
1267
|
x: v.value.drawingArea.left + v.value.drawingArea.width / 2,
|
|
1267
1268
|
y: S.value.height - e.value.axisLabelsFontSize / 3
|
|
1268
|
-
}, E(e.value.xAxisLabel), 9,
|
|
1269
|
-
])) :
|
|
1270
|
-
e.value.yAxisLabel && z.value === _.LINE ? (a(), l("g",
|
|
1269
|
+
}, E(e.value.xAxisLabel), 9, tl)
|
|
1270
|
+
])) : g("", !0),
|
|
1271
|
+
e.value.yAxisLabel && z.value === _.LINE ? (a(), l("g", al, [
|
|
1271
1272
|
A("text", {
|
|
1272
1273
|
"font-size": e.value.axisLabelsFontSize,
|
|
1273
1274
|
fill: e.value.color,
|
|
1274
1275
|
transform: `translate(${e.value.axisLabelsFontSize}, ${d.value.drawingArea.top + d.value.drawingArea.height / 2}) rotate(-90)`,
|
|
1275
1276
|
"text-anchor": "middle"
|
|
1276
|
-
}, E(e.value.yAxisLabel), 9,
|
|
1277
|
-
])) :
|
|
1278
|
-
e.value.yAxisLabel && z.value === _.BAR ? (a(), l("g",
|
|
1277
|
+
}, E(e.value.yAxisLabel), 9, ll)
|
|
1278
|
+
])) : g("", !0),
|
|
1279
|
+
e.value.yAxisLabel && z.value === _.BAR ? (a(), l("g", ol, [
|
|
1279
1280
|
A("text", {
|
|
1280
1281
|
"font-size": e.value.axisLabelsFontSize,
|
|
1281
1282
|
fill: e.value.color,
|
|
1282
1283
|
transform: `translate(${e.value.axisLabelsFontSize}, ${v.value.drawingArea.top + v.value.drawingArea.height / 2}) rotate(-90)`,
|
|
1283
1284
|
"text-anchor": "middle"
|
|
1284
|
-
}, E(e.value.yAxisLabel), 9,
|
|
1285
|
-
])) :
|
|
1286
|
-
])) :
|
|
1287
|
-
], 12,
|
|
1288
|
-
z.value ?
|
|
1285
|
+
}, E(e.value.yAxisLabel), 9, il)
|
|
1286
|
+
])) : g("", !0)
|
|
1287
|
+
])) : g("", !0)
|
|
1288
|
+
], 12, qt)) : g("", !0),
|
|
1289
|
+
z.value ? g("", !0) : (a(), Le(It, {
|
|
1289
1290
|
key: 4,
|
|
1290
1291
|
config: {
|
|
1291
1292
|
type: "line",
|
|
@@ -1303,16 +1304,16 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
1303
1304
|
}
|
|
1304
1305
|
}
|
|
1305
1306
|
}, null, 8, ["config"])),
|
|
1306
|
-
u.$slots.watermark ? (a(), l("div",
|
|
1307
|
-
|
|
1308
|
-
])) :
|
|
1309
|
-
[_.BAR, _.LINE].includes(z.value) && e.value.zoomXy &&
|
|
1310
|
-
key: `slicer_${
|
|
1307
|
+
u.$slots.watermark ? (a(), l("div", ul, [
|
|
1308
|
+
M(u.$slots, "watermark", H(re({ isPrinting: f(ke) || f(be) })), void 0, !0)
|
|
1309
|
+
])) : g("", !0),
|
|
1310
|
+
[_.BAR, _.LINE].includes(z.value) && e.value.zoomXy && x.value.maxSeriesLength > 1 ? (a(), l("div", {
|
|
1311
|
+
key: `slicer_${xe.value}`,
|
|
1311
1312
|
ref_key: "quickChartSlicer",
|
|
1312
1313
|
ref: ve
|
|
1313
1314
|
}, [
|
|
1314
|
-
(a(), Le(
|
|
1315
|
-
key: `slicer_${
|
|
1315
|
+
(a(), Le(Tt, {
|
|
1316
|
+
key: `slicer_${xe.value}`,
|
|
1316
1317
|
background: e.value.zoomColor,
|
|
1317
1318
|
borderColor: e.value.backgroundColor,
|
|
1318
1319
|
fontSize: e.value.zoomFontSize,
|
|
@@ -1322,7 +1323,7 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
1322
1323
|
textColor: e.value.color,
|
|
1323
1324
|
inputColor: e.value.zoomColor,
|
|
1324
1325
|
selectColor: e.value.zoomHighlightColor,
|
|
1325
|
-
max:
|
|
1326
|
+
max: x.value.maxSeriesLength,
|
|
1326
1327
|
min: 0,
|
|
1327
1328
|
valueStart: k.value.start,
|
|
1328
1329
|
valueEnd: k.value.end,
|
|
@@ -1331,22 +1332,22 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
1331
1332
|
minimapSelectedColorOpacity: e.value.zoomMinimap.selectedColorOpacity,
|
|
1332
1333
|
minimapSelectionRadius: e.value.zoomMinimap.selectionRadius,
|
|
1333
1334
|
minimapLineColor: e.value.zoomMinimap.lineColor,
|
|
1334
|
-
minimap:
|
|
1335
|
+
minimap: st.value,
|
|
1335
1336
|
minimapIndicatorColor: e.value.zoomMinimap.indicatorColor,
|
|
1336
1337
|
minimapSelectedIndex: J.value,
|
|
1337
1338
|
start: k.value.start,
|
|
1338
1339
|
"onUpdate:start": c[3] || (c[3] = (t) => k.value.start = t),
|
|
1339
1340
|
end: k.value.end,
|
|
1340
1341
|
"onUpdate:end": c[4] || (c[4] = (t) => k.value.end = t),
|
|
1341
|
-
onReset:
|
|
1342
|
-
onTrapMouse:
|
|
1342
|
+
onReset: rt,
|
|
1343
|
+
onTrapMouse: nt
|
|
1343
1344
|
}, {
|
|
1344
1345
|
"reset-action": Q(({ reset: t }) => [
|
|
1345
|
-
|
|
1346
|
+
M(u.$slots, "reset-action", H(re({ reset: t })), void 0, !0)
|
|
1346
1347
|
]),
|
|
1347
1348
|
_: 3
|
|
1348
1349
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "smoothMinimap", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectionRadius", "minimapLineColor", "minimap", "minimapIndicatorColor", "minimapSelectedIndex", "start", "end"]))
|
|
1349
|
-
])) :
|
|
1350
|
+
])) : g("", !0),
|
|
1350
1351
|
e.value.showLegend ? (a(), l("div", {
|
|
1351
1352
|
key: 7,
|
|
1352
1353
|
ref_key: "quickChartLegend",
|
|
@@ -1357,11 +1358,11 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
1357
1358
|
z.value === _.DONUT ? (a(!0), l(p, { key: 0 }, L(C.value.legend, (t, n) => (a(), l("div", {
|
|
1358
1359
|
class: "vue-ui-quick-chart-legend-item",
|
|
1359
1360
|
onClick: (r) => {
|
|
1360
|
-
|
|
1361
|
+
ut(t, C.value.dataset), m("selectLegend", t);
|
|
1361
1362
|
},
|
|
1362
1363
|
style: N(`cursor: ${C.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1363
1364
|
}, [
|
|
1364
|
-
e.value.useCustomLegend ?
|
|
1365
|
+
e.value.useCustomLegend ? M(u.$slots, "legend", H(Re({ key: 0 }, { legend: t })), void 0, !0) : (a(), l(p, { key: 1 }, [
|
|
1365
1366
|
se($e, {
|
|
1366
1367
|
name: e.value.legendIcon,
|
|
1367
1368
|
stroke: t.color,
|
|
@@ -1375,7 +1376,7 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
1375
1376
|
}, E(w.value.includes(t.id) ? "-" : f(X)(
|
|
1376
1377
|
e.value.formatter,
|
|
1377
1378
|
t.absoluteValue,
|
|
1378
|
-
f(
|
|
1379
|
+
f(B)({
|
|
1379
1380
|
p: e.value.valuePrefix,
|
|
1380
1381
|
v: t.absoluteValue,
|
|
1381
1382
|
s: e.value.valueSuffix,
|
|
@@ -1392,21 +1393,21 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
1392
1393
|
}, " ( - % ) ", 4)) : (a(), l("span", {
|
|
1393
1394
|
key: 2,
|
|
1394
1395
|
style: N(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1395
|
-
}, " (" + E(f(
|
|
1396
|
+
}, " (" + E(f(B)({
|
|
1396
1397
|
v: t.value / C.value.total * 100,
|
|
1397
1398
|
s: "%",
|
|
1398
1399
|
r: e.value.dataLabelRoundingPercentage
|
|
1399
1400
|
})) + ") ", 5))
|
|
1400
1401
|
], 64))
|
|
1401
|
-
], 12,
|
|
1402
|
+
], 12, nl))), 256)) : g("", !0),
|
|
1402
1403
|
z.value === _.LINE ? (a(!0), l(p, { key: 1 }, L(d.value.legend, (t, n) => (a(), l("div", {
|
|
1403
1404
|
class: "vue-ui-quick-chart-legend-item",
|
|
1404
1405
|
onClick: (r) => {
|
|
1405
|
-
|
|
1406
|
+
je(t.id, d.value.legend.length - 1), m("selectLegend", t);
|
|
1406
1407
|
},
|
|
1407
1408
|
style: N(`cursor: ${d.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1408
1409
|
}, [
|
|
1409
|
-
e.value.useCustomLegend ?
|
|
1410
|
+
e.value.useCustomLegend ? M(u.$slots, "legend", H(Re({ key: 0 }, { legend: t })), void 0, !0) : (a(), l(p, { key: 1 }, [
|
|
1410
1411
|
se($e, {
|
|
1411
1412
|
name: e.value.legendIcon,
|
|
1412
1413
|
stroke: t.color,
|
|
@@ -1416,15 +1417,15 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
1416
1417
|
style: N(`font-size:${e.value.legendFontSize}px`)
|
|
1417
1418
|
}, E(t.name), 5)
|
|
1418
1419
|
], 64))
|
|
1419
|
-
], 12,
|
|
1420
|
+
], 12, rl))), 256)) : g("", !0),
|
|
1420
1421
|
z.value === _.BAR ? (a(!0), l(p, { key: 2 }, L(v.value.legend, (t, n) => (a(), l("div", {
|
|
1421
1422
|
class: "vue-ui-quick-chart-legend-item",
|
|
1422
1423
|
onClick: (r) => {
|
|
1423
|
-
|
|
1424
|
+
je(t.id, v.value.legend.length - 1), m("selectLegend", t);
|
|
1424
1425
|
},
|
|
1425
1426
|
style: N(`cursor: ${v.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1426
1427
|
}, [
|
|
1427
|
-
e.value.useCustomLegend ?
|
|
1428
|
+
e.value.useCustomLegend ? M(u.$slots, "legend", H(Re({ key: 0 }, { legend: t })), void 0, !0) : (a(), l(p, { key: 1 }, [
|
|
1428
1429
|
se($e, {
|
|
1429
1430
|
name: e.value.legendIcon,
|
|
1430
1431
|
stroke: t.color,
|
|
@@ -1434,9 +1435,17 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
1434
1435
|
style: N(`font-size:${e.value.legendFontSize}px`)
|
|
1435
1436
|
}, E(t.name), 5)
|
|
1436
1437
|
], 64))
|
|
1437
|
-
], 12,
|
|
1438
|
-
], 4)) :
|
|
1439
|
-
|
|
1438
|
+
], 12, sl))), 256)) : g("", !0)
|
|
1439
|
+
], 4)) : g("", !0),
|
|
1440
|
+
u.$slots.source ? (a(), l("div", {
|
|
1441
|
+
key: 8,
|
|
1442
|
+
ref_key: "source",
|
|
1443
|
+
ref: Me,
|
|
1444
|
+
dir: "auto"
|
|
1445
|
+
}, [
|
|
1446
|
+
M(u.$slots, "source", {}, void 0, !0)
|
|
1447
|
+
], 512)) : g("", !0),
|
|
1448
|
+
se($t, {
|
|
1440
1449
|
show: Se.value.showTooltip && G.value,
|
|
1441
1450
|
backgroundColor: e.value.backgroundColor,
|
|
1442
1451
|
color: e.value.color,
|
|
@@ -1452,22 +1461,22 @@ const at = (s) => (ht("data-v-e73a7249"), s = s(), ft(), s), Dt = ["id"], Vt = [
|
|
|
1452
1461
|
isCustom: f(ze)(e.value.tooltipCustomFormat)
|
|
1453
1462
|
}, {
|
|
1454
1463
|
"tooltip-before": Q(() => [
|
|
1455
|
-
|
|
1464
|
+
M(u.$slots, "tooltip-before", H(re({ ...de.value })), void 0, !0)
|
|
1456
1465
|
]),
|
|
1457
1466
|
"tooltip-after": Q(() => [
|
|
1458
|
-
|
|
1467
|
+
M(u.$slots, "tooltip-after", H(re({ ...de.value })), void 0, !0)
|
|
1459
1468
|
]),
|
|
1460
1469
|
_: 3
|
|
1461
1470
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"])
|
|
1462
|
-
], 14,
|
|
1471
|
+
], 14, Vt)) : (a(), l("div", vl, [
|
|
1463
1472
|
se($e, {
|
|
1464
1473
|
name: "circleCancel",
|
|
1465
1474
|
stroke: "red"
|
|
1466
1475
|
}),
|
|
1467
|
-
|
|
1476
|
+
dl
|
|
1468
1477
|
]));
|
|
1469
1478
|
}
|
|
1470
|
-
},
|
|
1479
|
+
}, _l = /* @__PURE__ */ Ot(cl, [["__scopeId", "data-v-606895e6"]]);
|
|
1471
1480
|
export {
|
|
1472
|
-
|
|
1481
|
+
_l as default
|
|
1473
1482
|
};
|