vue-data-ui 2.3.73 → 2.3.75
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-B9ZuNkP-.js → Arrow-BTG7M25z.js} +1 -1
- package/dist/{Arrow-B8nZeqNJ.cjs → Arrow-CZK77NmC.cjs} +1 -1
- package/dist/{BaseIcon-CXbZK6D-.cjs → BaseIcon--PMhZ3f-.cjs} +1 -1
- package/dist/{BaseIcon-_V_BEdy8.js → BaseIcon-BAOfPaXs.js} +1 -1
- package/dist/{DataTable-BOdJVZzF.js → DataTable-CQANRZju.js} +2 -2
- package/dist/{DataTable-wmKwMbsJ.cjs → DataTable-DjQzrklZ.cjs} +1 -1
- package/dist/{Legend-DdndVhHV.cjs → Legend-CtbPB0Bo.cjs} +1 -1
- package/dist/{Legend-CHd5QFPM.js → Legend-DX1kv21U.js} +1 -1
- package/dist/{Shape-CLRxBhyM.cjs → Shape-CadGs1Am.cjs} +1 -1
- package/dist/{Shape-DNbJlwSU.js → Shape-kqcyauhC.js} +1 -1
- package/dist/{Slicer-Dts-BToH.cjs → Slicer-i_oECHxH.cjs} +1 -1
- package/dist/{Slicer-8Gg45iGX.js → Slicer-yaJs-izT.js} +2 -2
- package/dist/{Title-Ngy9HNqO.js → Title-C26I_HC3.js} +1 -1
- package/dist/{Title-CujodUjt.cjs → Title-XBiDFYKD.cjs} +1 -1
- package/dist/{Tooltip-BCtg7xYX.js → Tooltip-CH8GmDCG.js} +1 -1
- package/dist/{Tooltip-DsmWz8gF.cjs → Tooltip-DxtWkIt5.cjs} +1 -1
- package/dist/{index-Dvs5Ra-u.js → index-Cm4Iry5c.js} +1 -1
- package/dist/{index-sFjJ2dIj.cjs → index-DYUBiaGS.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-UohhCyBz.js → useNestedProp-CurQIHTa.js} +1 -1
- package/dist/{useNestedProp-ir0jEo5M.cjs → useNestedProp-w7AMWWmz.cjs} +1 -1
- package/dist/{usePrinter-B8-keRMa.js → usePrinter-B8RnF8_q.js} +1 -1
- package/dist/{usePrinter-DSMMs1w9.cjs → usePrinter-ZlHxdaEz.cjs} +1 -1
- package/dist/{vue-data-ui-NvV5qa--.cjs → vue-data-ui-B7amrpT-.cjs} +1 -1
- package/dist/{vue-data-ui-Bgo6YUhl.js → vue-data-ui-Bj6kEIpq.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-BAz41kL7.cjs +19 -0
- package/dist/{vue-ui-3d-bar-DckNIYgA.js → vue-ui-3d-bar-Bg9IgVVc.js} +499 -486
- package/dist/{vue-ui-accordion-RuCkf_li.cjs → vue-ui-accordion-1WxrfiCH.cjs} +1 -1
- package/dist/{vue-ui-accordion-C-qAry7P.js → vue-ui-accordion-Cb6XBCbu.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CamjaXUw.js → vue-ui-age-pyramid-BhwmnQru.js} +182 -169
- package/dist/vue-ui-age-pyramid-CHNvRXx8.cjs +1 -0
- package/dist/{vue-ui-annotator-D0kYZ56C.cjs → vue-ui-annotator-B22cdlhA.cjs} +1 -1
- package/dist/{vue-ui-annotator-DMmdqorj.js → vue-ui-annotator-BiHQvMdW.js} +1 -1
- package/dist/{vue-ui-candlestick-DRi8lDTn.js → vue-ui-candlestick-Cl9dyh4l.js} +295 -279
- package/dist/vue-ui-candlestick-D7DjdYyw.cjs +2 -0
- package/dist/vue-ui-carousel-table-Do5cYRqN.cjs +1 -0
- package/dist/{vue-ui-carousel-table-u5OoOMr1.js → vue-ui-carousel-table-QsONwqNz.js} +106 -91
- package/dist/vue-ui-chestnut-CyE8MafY.cjs +6 -0
- package/dist/{vue-ui-chestnut-D5a4OH1D.js → vue-ui-chestnut-Drb01WMC.js} +215 -204
- package/dist/{vue-ui-cursor-Bp_PHbz4.js → vue-ui-cursor-BP04_XbB.js} +2 -2
- package/dist/{vue-ui-cursor-DpBsZNEE.cjs → vue-ui-cursor-DZeTQBKz.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BwBYH8V_.js → vue-ui-dashboard-BWdx5gjZ.js} +2 -2
- package/dist/{vue-ui-dashboard--kjU0uMc.cjs → vue-ui-dashboard-Z63RE1XS.cjs} +1 -1
- package/dist/{vue-ui-digits-CIV9J3SW.cjs → vue-ui-digits-CBQaHW6a.cjs} +1 -1
- package/dist/{vue-ui-digits-t2G4B6uD.js → vue-ui-digits-DUhkLcmd.js} +2 -2
- package/dist/vue-ui-donut-D2YJYgOB.cjs +1 -0
- package/dist/{vue-ui-donut-BTug2gsP.js → vue-ui-donut-DRPSwmGr.js} +376 -362
- package/dist/{vue-ui-donut-evolution-DTD0Hfgh.js → vue-ui-donut-evolution-gRXAyxq8.js} +270 -255
- package/dist/vue-ui-donut-evolution-jAMVgNHQ.cjs +1 -0
- package/dist/{vue-ui-dumbbell-BZw7lntE.js → vue-ui-dumbbell-CQo5jqSK.js} +232 -213
- package/dist/vue-ui-dumbbell-DLfZcrXq.cjs +9 -0
- package/dist/vue-ui-flow-BQ3UbMUb.js +481 -0
- package/dist/vue-ui-flow-BlX2-eEC.cjs +1 -0
- package/dist/{vue-ui-galaxy-Bjlm3WtB.js → vue-ui-galaxy-BHWugUKG.js} +175 -162
- package/dist/vue-ui-galaxy-Cax5o6Yl.cjs +1 -0
- package/dist/vue-ui-gauge-DG6_kvKh.js +500 -0
- package/dist/vue-ui-gauge-DpGcv_00.cjs +1 -0
- package/dist/vue-ui-gizmo-D9Vh9Rmr.cjs +1 -0
- package/dist/{vue-ui-gizmo-CiutQM-A.js → vue-ui-gizmo-bV148qAf.js} +66 -53
- package/dist/{vue-ui-heatmap-C933pQPU.js → vue-ui-heatmap-BZZUvnMa.js} +157 -143
- package/dist/vue-ui-heatmap-B_ELXKKV.cjs +1 -0
- package/dist/vue-ui-kpi-C5v7qQvZ.js +98 -0
- package/dist/vue-ui-kpi-CwVAvTB2.cjs +1 -0
- package/dist/{vue-ui-mini-loader-B5XG2gKd.js → vue-ui-mini-loader-BdKizX_J.js} +2 -2
- package/dist/{vue-ui-mini-loader-C67Z1C6r.cjs → vue-ui-mini-loader-DZNY-3rr.cjs} +1 -1
- package/dist/{vue-ui-molecule-DzIeuL8t.js → vue-ui-molecule-MKyrhqqm.js} +177 -167
- package/dist/vue-ui-molecule-bva6OvPc.cjs +1 -0
- package/dist/{vue-ui-mood-radar-02L4M-n_.js → vue-ui-mood-radar-BNIFFvq0.js} +172 -161
- package/dist/vue-ui-mood-radar-CzQOAyNI.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-BY50trfJ.js → vue-ui-nested-donuts-BDAlZrMF.js} +377 -364
- package/dist/vue-ui-nested-donuts-CxdZC6JF.cjs +17 -0
- package/dist/{vue-ui-onion-BmQ7B9xY.js → vue-ui-onion-CFa4VD-w.js} +191 -177
- package/dist/vue-ui-onion-Df7YcsVR.cjs +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-D7Q2zfcR.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-BdfcqlfT.js → vue-ui-parallel-coordinate-plot-DmqYXT-U.js} +298 -284
- package/dist/{vue-ui-quadrant-CLimyRoA.js → vue-ui-quadrant-D5jHkq9g.js} +347 -334
- package/dist/vue-ui-quadrant-ZqhcVYf5.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CX8Kas-o.js → vue-ui-quick-chart-BjXXSx7V.js} +483 -469
- package/dist/vue-ui-quick-chart-Dt9AsEU6.cjs +15 -0
- package/dist/vue-ui-radar-2EuZr7i2.cjs +1 -0
- package/dist/{vue-ui-radar-CK0PB5oY.js → vue-ui-radar-CW8EKW4o.js} +202 -189
- package/dist/{vue-ui-rating-Ceu3pXmF.cjs → vue-ui-rating-DrtLvVA0.cjs} +1 -1
- package/dist/{vue-ui-rating-BnqWN2ui.js → vue-ui-rating-eSWsmJUU.js} +2 -2
- package/dist/vue-ui-relation-circle-C60OTe88.cjs +1 -0
- package/dist/vue-ui-relation-circle-DiUCpEqa.js +322 -0
- package/dist/{vue-ui-rings-CYthauSM.js → vue-ui-rings-BxhLbyG0.js} +203 -189
- package/dist/vue-ui-rings-CHq-a5ZS.cjs +2 -0
- package/dist/{vue-ui-scatter-Cxr9eymz.js → vue-ui-scatter-DQchX_mM.js} +284 -270
- package/dist/vue-ui-scatter-DZUZUbnk.cjs +1 -0
- package/dist/{vue-ui-screenshot-CVWC5rbJ.js → vue-ui-screenshot-CLa9vMzM.js} +1 -1
- package/dist/{vue-ui-screenshot-sBd8-Oyh.cjs → vue-ui-screenshot-SLSIpqx2.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CAvlIcgk.js → vue-ui-skeleton-C1oUnz7R.js} +2 -2
- package/dist/{vue-ui-skeleton-CqF0NJ4g.cjs → vue-ui-skeleton-ClpTCY1x.cjs} +1 -1
- package/dist/{vue-ui-smiley-CXbipVsb.js → vue-ui-smiley-CmWHSt1S.js} +2 -2
- package/dist/{vue-ui-smiley-c_I60YOy.cjs → vue-ui-smiley-Daw8fPDy.cjs} +1 -1
- package/dist/vue-ui-spark-trend-CO69Dg31.js +263 -0
- package/dist/vue-ui-spark-trend-DmDlv8ie.cjs +1 -0
- package/dist/{vue-ui-sparkbar-Dm-2_5Ef.js → vue-ui-sparkbar-BRlqpe4e.js} +95 -87
- package/dist/vue-ui-sparkbar-BUGdi0BY.cjs +1 -0
- package/dist/vue-ui-sparkgauge-CCxKzDjT.cjs +1 -0
- package/dist/vue-ui-sparkgauge-CbuFESsM.js +178 -0
- package/dist/{vue-ui-sparkhistogram-qf87TXA-.js → vue-ui-sparkhistogram-B4-hrDHz.js} +79 -68
- package/dist/vue-ui-sparkhistogram-XtqX10_t.cjs +1 -0
- package/dist/vue-ui-sparkline-BZTEi9YC.cjs +1 -0
- package/dist/{vue-ui-sparkline-CZBgvY1A.js → vue-ui-sparkline-DlXNmG6M.js} +142 -123
- package/dist/vue-ui-sparkstackbar-CDmZeXnq.cjs +1 -0
- package/dist/{vue-ui-sparkstackbar-GtkDZDXZ.js → vue-ui-sparkstackbar-J1YowQmP.js} +120 -104
- package/dist/{vue-ui-stackbar-D_Ui7xec.js → vue-ui-stackbar-CKIDqkkY.js} +235 -222
- package/dist/vue-ui-stackbar-CXGWukoJ.cjs +6 -0
- package/dist/vue-ui-strip-plot-CvmoRcYN.cjs +1 -0
- package/dist/{vue-ui-strip-plot--VJ3f5UV.js → vue-ui-strip-plot-JVLwIy0j.js} +246 -232
- package/dist/{vue-ui-table-BCQ7voEV.js → vue-ui-table-BSi_cHh7.js} +1 -1
- package/dist/{vue-ui-table-B_6N0VOD.cjs → vue-ui-table-Dqi64VE7.cjs} +1 -1
- package/dist/vue-ui-table-heatmap-BwghEh5t.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-UwpQQMHB.js → vue-ui-table-heatmap-CfvW3rcm.js} +106 -95
- package/dist/{vue-ui-table-sparkline-Bzqs2Hcp.js → vue-ui-table-sparkline-Y6Lrrzxy.js} +151 -138
- package/dist/vue-ui-table-sparkline-bIy3kkHB.cjs +1 -0
- package/dist/{vue-ui-thermometer-BQbYzsSV.js → vue-ui-thermometer-BPTs7Nxc.js} +116 -104
- package/dist/vue-ui-thermometer-DDtxYr7w.cjs +1 -0
- package/dist/{vue-ui-timer-KGEswANF.js → vue-ui-timer-CkB7eZaE.js} +191 -176
- package/dist/vue-ui-timer-DRSSYxOX.cjs +64 -0
- package/dist/{vue-ui-tiremarks-BSkMCIu1.js → vue-ui-tiremarks-BbOaoY8S.js} +115 -103
- package/dist/vue-ui-tiremarks-Bttwg3-p.cjs +1 -0
- package/dist/vue-ui-treemap-Chq0WQPe.cjs +1 -0
- package/dist/{vue-ui-treemap-DIWveOrq.js → vue-ui-treemap-CoaK3wBl.js} +251 -237
- package/dist/{vue-ui-vertical-bar-Dx6wReOw.js → vue-ui-vertical-bar-BA43_uHV.js} +374 -358
- package/dist/vue-ui-vertical-bar-BLIUt-HT.cjs +4 -0
- package/dist/{vue-ui-waffle-D3jMPOd3.js → vue-ui-waffle-BoEf8CcG.js} +285 -265
- package/dist/vue-ui-waffle-NBjY0mko.cjs +1 -0
- package/dist/vue-ui-wheel-Bgo2jpj0.js +255 -0
- package/dist/vue-ui-wheel-t5bI4a-P.cjs +1 -0
- package/dist/vue-ui-word-cloud-DPW_-Hzz.cjs +1 -0
- package/dist/vue-ui-word-cloud-Jd9_JUyi.js +512 -0
- package/dist/{vue-ui-xy-9_2IHEOX.js → vue-ui-xy-BMBYAC4z.js} +300 -274
- package/dist/vue-ui-xy-CBHEBcZK.cjs +3 -0
- package/dist/vue-ui-xy-canvas-D5FqRF4p.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-DGuGy69l.js → vue-ui-xy-canvas-LOsQ_DM-.js} +345 -327
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-DhzN0gd4.cjs +0 -19
- package/dist/vue-ui-age-pyramid-CfUUEeKt.cjs +0 -1
- package/dist/vue-ui-candlestick-DJIJnnI_.cjs +0 -2
- package/dist/vue-ui-carousel-table-uYt1zVjx.cjs +0 -1
- package/dist/vue-ui-chestnut-CG5krVO-.cjs +0 -6
- package/dist/vue-ui-donut-D6SrEIEJ.cjs +0 -1
- package/dist/vue-ui-donut-evolution-Cb45erSA.cjs +0 -1
- package/dist/vue-ui-dumbbell-DVabaAYH.cjs +0 -9
- package/dist/vue-ui-flow-Bn1EP9Z1.cjs +0 -1
- package/dist/vue-ui-flow-Cz_xaLAs.js +0 -469
- package/dist/vue-ui-galaxy-Drnhlmmw.cjs +0 -1
- package/dist/vue-ui-gauge-CxIVYnG2.js +0 -488
- package/dist/vue-ui-gauge-D2reVZ-b.cjs +0 -1
- package/dist/vue-ui-gizmo-B6ZwXwFY.cjs +0 -1
- package/dist/vue-ui-heatmap-ClFm7qUu.cjs +0 -1
- package/dist/vue-ui-kpi-CdPFWSHA.cjs +0 -1
- package/dist/vue-ui-kpi-ClreiT4V.js +0 -84
- package/dist/vue-ui-molecule-JJQ3af-R.cjs +0 -1
- package/dist/vue-ui-mood-radar-DT4JU_6B.cjs +0 -1
- package/dist/vue-ui-nested-donuts-D6Dihmne.cjs +0 -17
- package/dist/vue-ui-onion-DoNDCpth.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-CJMjEDXR.cjs +0 -8
- package/dist/vue-ui-quadrant-DWqmU3-5.cjs +0 -1
- package/dist/vue-ui-quick-chart-CB5VelG0.cjs +0 -15
- package/dist/vue-ui-radar-aTceo-HQ.cjs +0 -1
- package/dist/vue-ui-relation-circle-D1z8MBVH.js +0 -310
- package/dist/vue-ui-relation-circle-DWGtziD_.cjs +0 -1
- package/dist/vue-ui-rings-gp0sEMy6.cjs +0 -2
- package/dist/vue-ui-scatter-BKl2fUIR.cjs +0 -1
- package/dist/vue-ui-spark-trend-C3sBXu8D.js +0 -251
- package/dist/vue-ui-spark-trend-CXkkMK6N.cjs +0 -1
- package/dist/vue-ui-sparkbar-BkN5iTUq.cjs +0 -1
- package/dist/vue-ui-sparkgauge-D4EqU3x3.cjs +0 -1
- package/dist/vue-ui-sparkgauge-FKTXvE7e.js +0 -167
- package/dist/vue-ui-sparkhistogram-BkJz2dBD.cjs +0 -1
- package/dist/vue-ui-sparkline-TPkuvKtA.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-CzzfnPDS.cjs +0 -1
- package/dist/vue-ui-stackbar-NHgsl2-Z.cjs +0 -6
- package/dist/vue-ui-strip-plot-CU6OtKt7.cjs +0 -1
- package/dist/vue-ui-table-heatmap-DFMF1RZ0.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DWvOKdPb.cjs +0 -1
- package/dist/vue-ui-thermometer-BOuuVWuf.cjs +0 -1
- package/dist/vue-ui-timer-BCiMjXdm.cjs +0 -64
- package/dist/vue-ui-tiremarks-DuEz8cO5.cjs +0 -1
- package/dist/vue-ui-treemap-BO8gKQ4O.cjs +0 -1
- package/dist/vue-ui-vertical-bar-Dpzyha_P.cjs +0 -4
- package/dist/vue-ui-waffle-C0-IVDjk.cjs +0 -1
- package/dist/vue-ui-wheel-B10kCoLD.js +0 -242
- package/dist/vue-ui-wheel-mWdIHlXV.cjs +0 -1
- package/dist/vue-ui-word-cloud-CYtRxpdV.cjs +0 -1
- package/dist/vue-ui-word-cloud-rhrsHes4.js +0 -498
- package/dist/vue-ui-xy-CFqs5rtd.cjs +0 -3
- package/dist/vue-ui-xy-canvas-sLH0pM-i.cjs +0 -9
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import { ref as E, computed as W, watch 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
|
|
1
|
+
import { ref as E, computed as W, watch as Pe, onMounted as nt, onBeforeUnmount as rt, openBlock as a, createElementBlock as l, normalizeClass as ne, normalizeStyle as F, createBlock as Ie, unref as f, createSlots as st, withCtx as ae, renderSlot as D, normalizeProps as J, guardReactiveProps as ge, createCommentVNode as p, toDisplayString as T, createElementVNode as _, Fragment as m, renderList as L, mergeProps as Ee, createVNode as me, pushScopeId as vt, popScopeId as dt } from "vue";
|
|
2
|
+
import { u as ct, c as ht, t as ft, a as gt, p as U, b as mt, F as pt, e as xt, d as Te, m as yt, B as Ge, X as kt, j as bt, k as pe, n as Re, i as H, f as O, P as He, s as X, x as Ae, y as Ne } from "./index-Cm4Iry5c.js";
|
|
3
|
+
import { t as St, u as wt } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import Le from "./BaseIcon-BAOfPaXs.js";
|
|
5
|
+
import { _ as _t } from "./Tooltip-CH8GmDCG.js";
|
|
6
|
+
import { u as At, U as Lt } from "./usePrinter-B8RnF8_q.js";
|
|
7
|
+
import { S as zt } from "./Slicer-yaJs-izT.js";
|
|
8
|
+
import $t from "./vue-ui-skeleton-C1oUnz7R.js";
|
|
9
|
+
import { u as Xe } from "./useNestedProp-CurQIHTa.js";
|
|
10
|
+
import { _ as Ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
11
|
const A = {
|
|
12
12
|
LINE: "LINE",
|
|
13
13
|
BAR: "BAR",
|
|
14
14
|
DONUT: "DONUT"
|
|
15
|
-
},
|
|
16
|
-
function
|
|
15
|
+
}, Pt = ["SERIE", "SERIES", "DATA", "VALUE", "VALUES", "NUM"];
|
|
16
|
+
function It({ dataset: s, barLineSwitch: $ = 6 }) {
|
|
17
17
|
let g = null, R = null, V = 0;
|
|
18
|
-
if ((typeof s == "number" || typeof s == "string") && console.warn(`The provided dataset (${s}) is not sufficient to build a chart`),
|
|
19
|
-
if (!
|
|
18
|
+
if ((typeof s == "number" || typeof s == "string") && console.warn(`The provided dataset (${s}) is not sufficient to build a chart`), xe(s) && (Z(s) && (s.length < $ ? g = A.BAR : g = A.LINE, R = s, V = s.length), ze(s))) {
|
|
19
|
+
if (!Tt(s))
|
|
20
20
|
return console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."), !1;
|
|
21
21
|
const oe = Object.keys(s[0]), re = Object.values(s[0]);
|
|
22
|
-
if (!oe.some((P) =>
|
|
22
|
+
if (!oe.some((P) => Rt(P)))
|
|
23
23
|
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;
|
|
24
|
-
|
|
24
|
+
Ze(re, (P) => typeof P == "number") && (g = A.DONUT, R = s), Ze(re, (P) => Array.isArray(P) && Z(P)) && (Ye(s) > $ ? g = A.LINE : g = A.BAR, V = Ye(s), R = s.map((P) => ({
|
|
25
25
|
...P,
|
|
26
|
-
data:
|
|
27
|
-
}))), s = s.map((P) =>
|
|
26
|
+
data: Nt(P, (G) => Z(G))
|
|
27
|
+
}))), s = s.map((P) => Je(P)), R = R.map((P) => Je(P));
|
|
28
28
|
}
|
|
29
|
-
return
|
|
29
|
+
return xe(s) && [...new Set(s.flatMap((oe) => Array.isArray(oe)))][0], {
|
|
30
30
|
dataset: s,
|
|
31
31
|
type: g,
|
|
32
32
|
usableDataset: R,
|
|
33
33
|
maxSeriesLength: V
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
return !s ||
|
|
36
|
+
function Qe(s) {
|
|
37
|
+
return !s || xe(s) && !s.length;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function xe(s) {
|
|
40
40
|
return Array.isArray(s);
|
|
41
41
|
}
|
|
42
42
|
function Z(s) {
|
|
43
|
-
if (!
|
|
43
|
+
if (!xe(s) || Qe(s)) return !1;
|
|
44
44
|
const $ = s.map((g) => Number(g));
|
|
45
45
|
return ![...new Set($.flatMap((g) => typeof g == "number" && !isNaN(g)))].includes(!1);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
return !
|
|
47
|
+
function ze(s) {
|
|
48
|
+
return !xe(s) || Qe(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);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Et(s, $) {
|
|
51
51
|
const g = Object.keys(s).sort(), R = Object.keys($).sort();
|
|
52
52
|
if (g.length !== R.length)
|
|
53
53
|
return !1;
|
|
@@ -58,87 +58,87 @@ function Pt(s, $) {
|
|
|
58
58
|
}
|
|
59
59
|
return !0;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Tt(s) {
|
|
62
62
|
if (s.length <= 1) return !0;
|
|
63
63
|
for (let $ = 0; $ < s.length; $ += 1)
|
|
64
64
|
for (let g = $ + 1; g < s.length; g += 1)
|
|
65
|
-
if (!
|
|
65
|
+
if (!Et(s[$], s[g]))
|
|
66
66
|
return !1;
|
|
67
67
|
return !0;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
return
|
|
69
|
+
function Rt(s) {
|
|
70
|
+
return Pt.includes(s.toUpperCase());
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Ze(s, $) {
|
|
73
73
|
let g = [];
|
|
74
74
|
for (let R = 0; R < s.length; R += 1)
|
|
75
75
|
g.push($(s[R]));
|
|
76
76
|
return g.includes(!0);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function Ye(s) {
|
|
79
79
|
return Math.max(...[...s].flatMap(($) => Object.values($).filter((g) => Z(g)).map((g) => g.length)));
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function Nt(s, $) {
|
|
82
82
|
return Object.values(s).filter((g) => $(g))[0];
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function Je(s) {
|
|
85
85
|
const $ = {};
|
|
86
86
|
for (let g in s)
|
|
87
87
|
s.hasOwnProperty(g) && ($[g.toUpperCase()] = s[g]);
|
|
88
88
|
return $;
|
|
89
89
|
}
|
|
90
|
-
const
|
|
90
|
+
const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = ["xmlns", "viewBox"], Ot = ["id"], Bt = ["id"], Ut = /* @__PURE__ */ Ke(() => /* @__PURE__ */ _("feColorMatrix", {
|
|
91
91
|
type: "saturate",
|
|
92
92
|
values: "0"
|
|
93
|
-
}, null, -1)),
|
|
93
|
+
}, null, -1)), Dt = ["id"], Vt = ["flood-color"], qt = {
|
|
94
94
|
key: 0,
|
|
95
95
|
class: "donut-label-connectors"
|
|
96
|
-
},
|
|
96
|
+
}, Wt = ["d", "stroke", "stroke-width", "filter"], jt = ["cx", "cy", "r", "fill"], Gt = ["cx", "cy", "r", "fill", "filter"], Ht = { class: "donut" }, Xt = ["d", "fill", "stroke", "stroke-width", "filter"], Zt = ["d", "onMouseenter", "onClick"], Yt = {
|
|
97
97
|
key: 1,
|
|
98
98
|
class: "donut-labels quick-animation"
|
|
99
|
-
},
|
|
99
|
+
}, Jt = ["cx", "cy", "fill", "filter"], Qt = ["text-anchor", "x", "y", "fill", "font-size", "filter"], Kt = ["text-anchor", "x", "y", "fill", "font-size", "filter"], ea = {
|
|
100
100
|
key: 2,
|
|
101
101
|
class: "donut-hollow quick-animation"
|
|
102
|
-
},
|
|
102
|
+
}, ta = ["x", "y", "font-size", "fill"], aa = ["x", "y", "font-size", "fill"], la = {
|
|
103
103
|
key: 0,
|
|
104
104
|
class: "line-grid"
|
|
105
|
-
},
|
|
105
|
+
}, oa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ua = {
|
|
106
106
|
key: 1,
|
|
107
107
|
class: "line-axis"
|
|
108
|
-
},
|
|
108
|
+
}, na = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ra = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], sa = {
|
|
109
109
|
key: 2,
|
|
110
110
|
class: "yLabels"
|
|
111
|
-
},
|
|
111
|
+
}, va = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], da = ["x", "y", "font-size", "fill"], ca = {
|
|
112
112
|
key: 3,
|
|
113
113
|
class: "periodLabels"
|
|
114
|
-
},
|
|
114
|
+
}, ha = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], fa = ["font-size", "text-anchor", "fill", "transform"], ga = { class: "plots" }, ma = { class: "line-plot-series" }, pa = ["d", "stroke", "stroke-width"], xa = ["d", "stroke", "stroke-width"], ya = ["d", "stroke", "stroke-width"], ka = ["d", "stroke", "stroke-width"], ba = ["cx", "cy", "fill", "stroke"], Sa = {
|
|
115
115
|
key: 4,
|
|
116
116
|
class: "dataLabels"
|
|
117
|
-
},
|
|
117
|
+
}, wa = ["font-size", "fill", "x", "y"], _a = { class: "tooltip-traps" }, Aa = ["x", "y", "height", "width", "fill", "onMouseenter", "onClick"], La = {
|
|
118
118
|
key: 0,
|
|
119
119
|
class: "line-grid"
|
|
120
|
-
},
|
|
120
|
+
}, za = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], $a = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ca = {
|
|
121
121
|
key: 1,
|
|
122
122
|
class: "line-axis"
|
|
123
|
-
},
|
|
123
|
+
}, Pa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ea = {
|
|
124
124
|
key: 2,
|
|
125
125
|
class: "yLabels"
|
|
126
|
-
},
|
|
126
|
+
}, Ta = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ra = ["x", "y", "font-size", "fill"], Na = {
|
|
127
127
|
key: 3,
|
|
128
128
|
class: "periodLabels"
|
|
129
|
-
},
|
|
129
|
+
}, Fa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ma = ["font-size", "text-anchor", "transform", "fill"], Oa = { class: "plots" }, Ba = ["x", "width", "height", "y", "fill", "stroke", "stroke-width"], Ua = ["to"], Da = ["from", "to"], Va = {
|
|
130
130
|
key: 4,
|
|
131
131
|
class: "dataLabels"
|
|
132
|
-
},
|
|
132
|
+
}, qa = ["x", "y", "font-size", "fill"], Wa = { class: "tooltip-traps" }, ja = ["x", "y", "height", "width", "fill", "onMouseenter", "onClick"], Ga = {
|
|
133
133
|
key: 3,
|
|
134
134
|
class: "axis-labels"
|
|
135
|
-
},
|
|
135
|
+
}, Ha = { key: 0 }, Xa = ["font-size", "fill", "x", "y"], Za = { key: 1 }, Ya = ["font-size", "fill", "x", "y"], Ja = { key: 2 }, Qa = ["font-size", "fill", "transform"], Ka = { key: 3 }, el = ["font-size", "fill", "transform"], tl = {
|
|
136
136
|
key: 4,
|
|
137
137
|
class: "vue-data-ui-watermark"
|
|
138
|
-
},
|
|
138
|
+
}, al = ["onClick"], ll = ["onClick"], ol = ["onClick"], il = {
|
|
139
139
|
key: 1,
|
|
140
140
|
class: "vue-ui-quick-chart-not-processable"
|
|
141
|
-
},
|
|
141
|
+
}, ul = /* @__PURE__ */ Ke(() => /* @__PURE__ */ _("span", null, "Dataset is not processable", -1)), nl = {
|
|
142
142
|
__name: "vue-ui-quick-chart",
|
|
143
143
|
props: {
|
|
144
144
|
config: {
|
|
@@ -156,20 +156,30 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
156
156
|
},
|
|
157
157
|
emits: ["selectDatapoint", "selectLegend"],
|
|
158
158
|
setup(s, { expose: $, emit: g }) {
|
|
159
|
-
const R = s, { vue_ui_quick_chart: V } =
|
|
160
|
-
|
|
159
|
+
const R = s, { vue_ui_quick_chart: V } = ct(), j = E(null), le = E(null), oe = E(null), re = E(null), P = E(ht()), G = E(!1), se = E(null), Q = E(""), q = E(null), w = E([]), Fe = E(0), ye = E(0), e = W({
|
|
160
|
+
get: () => Me(),
|
|
161
|
+
set: (u) => u
|
|
162
|
+
});
|
|
163
|
+
function Me() {
|
|
164
|
+
const u = Xe({
|
|
161
165
|
userConfig: R.config,
|
|
162
166
|
defaultConfig: V
|
|
163
167
|
});
|
|
164
|
-
return
|
|
165
|
-
...
|
|
166
|
-
userConfig:
|
|
167
|
-
defaultConfig:
|
|
168
|
+
return u.theme ? {
|
|
169
|
+
...Xe({
|
|
170
|
+
userConfig: ft.vue_ui_quick_chart[u.theme] || R.config,
|
|
171
|
+
defaultConfig: u
|
|
168
172
|
}),
|
|
169
|
-
customPalette:
|
|
170
|
-
} :
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
+
customPalette: gt[u.theme] || U
|
|
174
|
+
} : u;
|
|
175
|
+
}
|
|
176
|
+
Pe(() => R.config, (u) => {
|
|
177
|
+
e.value = Me(), k.value.width = e.value.width, k.value.height = e.value.height, Ue();
|
|
178
|
+
}, { deep: !0 }), Pe(() => R.dataset, (u) => {
|
|
179
|
+
y.value = de.value, b.value.start = 0, b.value.end = y.value.maxSeriesLength, ye.value += 1;
|
|
180
|
+
}, { deep: !0 });
|
|
181
|
+
const ve = W(() => mt(e.value.customPalette)), de = W(() => {
|
|
182
|
+
const u = It({ dataset: pt(R.dataset, [
|
|
173
183
|
"serie",
|
|
174
184
|
"series",
|
|
175
185
|
"data",
|
|
@@ -177,125 +187,129 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
177
187
|
"values",
|
|
178
188
|
"num"
|
|
179
189
|
]), barLineSwitch: e.value.chartIsBarUnderDatasetLength });
|
|
180
|
-
return
|
|
181
|
-
}),
|
|
182
|
-
|
|
183
|
-
|
|
190
|
+
return u || console.error("VueUiQuickChart : Dataset is not processable"), u;
|
|
191
|
+
}), y = E(de.value), et = W(() => !!y.value), z = W(() => y.value ? y.value.type : null);
|
|
192
|
+
Pe(() => z.value, (u) => {
|
|
193
|
+
u || xt({
|
|
184
194
|
componentName: "VueUiQuickChart",
|
|
185
195
|
type: "dataset"
|
|
186
196
|
});
|
|
187
197
|
}, { immediate: !0 });
|
|
188
|
-
const { isPrinting:
|
|
198
|
+
const { isPrinting: ke, isImaging: be, generatePdf: Oe, generateImage: Be } = At({
|
|
189
199
|
elementId: `${z.value}_${P.value}`,
|
|
190
200
|
fileName: e.value.title || z.value
|
|
191
|
-
}),
|
|
201
|
+
}), k = E({
|
|
192
202
|
width: e.value.width,
|
|
193
203
|
height: e.value.height
|
|
194
|
-
}),
|
|
204
|
+
}), Se = E({
|
|
195
205
|
showTooltip: e.value.showTooltip
|
|
196
|
-
}),
|
|
197
|
-
|
|
206
|
+
}), we = E(null);
|
|
207
|
+
nt(() => {
|
|
208
|
+
Ue();
|
|
209
|
+
});
|
|
210
|
+
function Ue() {
|
|
198
211
|
if (e.value.responsive) {
|
|
199
|
-
const
|
|
200
|
-
const { width: c, height: t } =
|
|
212
|
+
const u = St(() => {
|
|
213
|
+
const { width: c, height: t } = wt({
|
|
201
214
|
chart: j.value,
|
|
202
215
|
title: e.value.title ? le.value : null,
|
|
203
216
|
legend: e.value.showLegend ? oe.value : null,
|
|
204
|
-
slicer: [A.BAR, A.LINE].includes(z.value) && e.value.zoomXy &&
|
|
217
|
+
slicer: [A.BAR, A.LINE].includes(z.value) && e.value.zoomXy && y.value.maxSeriesLength > 1 ? re.value : null
|
|
205
218
|
});
|
|
206
|
-
|
|
219
|
+
k.value.width = c, k.value.height = t;
|
|
207
220
|
});
|
|
208
|
-
|
|
221
|
+
we.value = new ResizeObserver(u), we.value.observe(j.value.parentNode);
|
|
209
222
|
}
|
|
210
|
-
}
|
|
211
|
-
|
|
223
|
+
}
|
|
224
|
+
rt(() => {
|
|
225
|
+
we.value && we.value.disconnect();
|
|
212
226
|
});
|
|
213
|
-
const
|
|
227
|
+
const tt = W(() => {
|
|
214
228
|
switch (z.value) {
|
|
215
229
|
case A.LINE:
|
|
216
|
-
return `0 0 ${
|
|
230
|
+
return `0 0 ${k.value.width <= 0 ? 10 : k.value.width} ${k.value.height <= 0 ? 10 : k.value.height}`;
|
|
217
231
|
case A.BAR:
|
|
218
|
-
return `0 0 ${
|
|
232
|
+
return `0 0 ${k.value.width <= 0 ? 10 : k.value.width} ${k.value.height <= 0 ? 10 : k.value.height}`;
|
|
219
233
|
case A.DONUT:
|
|
220
|
-
return `0 0 ${
|
|
234
|
+
return `0 0 ${k.value.width <= 0 ? 10 : k.value.width} ${k.value.height <= 0 ? 10 : k.value.height}`;
|
|
221
235
|
default:
|
|
222
|
-
return `0 0 ${
|
|
236
|
+
return `0 0 ${k.value.width <= 0 ? 10 : k.value.width} ${k.value.height <= 0 ? 10 : k.value.height}`;
|
|
223
237
|
}
|
|
224
238
|
});
|
|
225
|
-
function
|
|
226
|
-
return [...
|
|
239
|
+
function De(u) {
|
|
240
|
+
return [...u].map((c) => c.value).reduce((c, t) => c + t, 0);
|
|
227
241
|
}
|
|
228
|
-
function
|
|
229
|
-
return e.value.blurOnHover && ![null, void 0].includes(q.value) && q.value !==
|
|
242
|
+
function ce(u) {
|
|
243
|
+
return e.value.blurOnHover && ![null, void 0].includes(q.value) && q.value !== u ? `url(#blur_${P.value})` : "";
|
|
230
244
|
}
|
|
231
|
-
function
|
|
232
|
-
w.value.includes(
|
|
245
|
+
function Ve(u, c) {
|
|
246
|
+
w.value.includes(u) ? w.value = w.value.filter((t) => t !== u) : w.value.length < c && w.value.push(u);
|
|
233
247
|
}
|
|
234
|
-
const
|
|
235
|
-
function
|
|
236
|
-
|
|
237
|
-
let t =
|
|
238
|
-
if (w.value.includes(
|
|
239
|
-
let
|
|
240
|
-
t >
|
|
241
|
-
...
|
|
242
|
-
dataset:
|
|
248
|
+
const qe = E(null), We = E(null), _e = E(!1);
|
|
249
|
+
function at(u, c) {
|
|
250
|
+
_e.value = !0;
|
|
251
|
+
let t = u.value;
|
|
252
|
+
if (w.value.includes(u.id)) {
|
|
253
|
+
let r = function() {
|
|
254
|
+
t > n ? (_e.value = !1, cancelAnimationFrame(We.value), y.value = {
|
|
255
|
+
...y.value,
|
|
256
|
+
dataset: y.value.dataset.map((h, N) => u.id === `donut_${N}` ? {
|
|
243
257
|
...h,
|
|
244
|
-
value:
|
|
245
|
-
VALUE:
|
|
258
|
+
value: n,
|
|
259
|
+
VALUE: n
|
|
246
260
|
} : h)
|
|
247
|
-
}) : (t +=
|
|
248
|
-
...
|
|
249
|
-
dataset:
|
|
261
|
+
}) : (t += n * 0.025, y.value = {
|
|
262
|
+
...y.value,
|
|
263
|
+
dataset: y.value.dataset.map((h, N) => u.id === `donut_${N}` ? {
|
|
250
264
|
...h,
|
|
251
265
|
value: t,
|
|
252
266
|
VALUE: t
|
|
253
267
|
} : h)
|
|
254
|
-
},
|
|
268
|
+
}, We.value = requestAnimationFrame(r));
|
|
255
269
|
};
|
|
256
|
-
w.value = w.value.filter((h) => h !==
|
|
257
|
-
const
|
|
258
|
-
|
|
270
|
+
w.value = w.value.filter((h) => h !== u.id);
|
|
271
|
+
const n = de.value.dataset.find((h, N) => u.id === `donut_${N}`).VALUE;
|
|
272
|
+
r();
|
|
259
273
|
} else if (c.length > 1) {
|
|
260
|
-
let
|
|
261
|
-
t < 0.1 ? (
|
|
262
|
-
...
|
|
263
|
-
dataset:
|
|
264
|
-
...
|
|
274
|
+
let n = function() {
|
|
275
|
+
t < 0.1 ? (_e.value = !1, cancelAnimationFrame(qe.value), w.value.push(u.id), y.value = {
|
|
276
|
+
...y.value,
|
|
277
|
+
dataset: y.value.dataset.map((r, h) => u.id === `donut_${h}` ? {
|
|
278
|
+
...r,
|
|
265
279
|
value: 0,
|
|
266
280
|
VALUE: 0
|
|
267
|
-
} :
|
|
268
|
-
}) : (t /= 1.1,
|
|
269
|
-
...
|
|
270
|
-
dataset:
|
|
271
|
-
...
|
|
281
|
+
} : r)
|
|
282
|
+
}) : (t /= 1.1, y.value = {
|
|
283
|
+
...y.value,
|
|
284
|
+
dataset: y.value.dataset.map((r, h) => u.id === `donut_${h}` ? {
|
|
285
|
+
...r,
|
|
272
286
|
value: t,
|
|
273
287
|
VALUE: t
|
|
274
|
-
} :
|
|
275
|
-
},
|
|
288
|
+
} : r)
|
|
289
|
+
}, qe.value = requestAnimationFrame(n));
|
|
276
290
|
};
|
|
277
|
-
|
|
291
|
+
n();
|
|
278
292
|
}
|
|
279
293
|
}
|
|
280
294
|
const Y = E(null);
|
|
281
|
-
function
|
|
282
|
-
Y.value =
|
|
295
|
+
function lt(u) {
|
|
296
|
+
Y.value = u;
|
|
283
297
|
}
|
|
284
298
|
const C = W(() => {
|
|
285
299
|
if (z.value !== A.DONUT) return null;
|
|
286
|
-
const
|
|
300
|
+
const u = y.value.dataset.map((o, i) => ({
|
|
287
301
|
...o,
|
|
288
302
|
value: o.VALUE || o.DATA || o.SERIE || o.VALUES || o.NUM || 0,
|
|
289
303
|
name: o.NAME || o.DESCRIPTION || o.TITLE || o.LABEL || `Serie ${i}`,
|
|
290
304
|
id: `donut_${i}`
|
|
291
305
|
})).map((o, i) => ({
|
|
292
306
|
...o,
|
|
293
|
-
color: o.COLOR ?
|
|
307
|
+
color: o.COLOR ? Te(o.COLOR) : ve.value[i + e.value.paletteStartIndex] || U[i + e.value.paletteStartIndex] || U[(i + e.value.paletteStartIndex) % U.length],
|
|
294
308
|
immutableValue: o.value
|
|
295
309
|
}));
|
|
296
310
|
function c(o, i) {
|
|
297
311
|
return O({
|
|
298
|
-
v: isNaN(o.value /
|
|
312
|
+
v: isNaN(o.value / De(i)) ? 0 : o.value / De(i) * 100,
|
|
299
313
|
s: "%",
|
|
300
314
|
r: e.value.dataLabelRoundingPercentage
|
|
301
315
|
});
|
|
@@ -303,23 +317,23 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
303
317
|
function t(o) {
|
|
304
318
|
return o.proportion * 100 > e.value.donutHideLabelUnderPercentage;
|
|
305
319
|
}
|
|
306
|
-
function
|
|
307
|
-
const
|
|
308
|
-
return Math.abs(String(Number(
|
|
320
|
+
function n(o, i) {
|
|
321
|
+
const S = de.value.dataset.find((I, M) => `donut_${M}` === o).VALUE;
|
|
322
|
+
return Math.abs(String(Number(S.toFixed(0))).length - String(Number(i.toFixed(0))).length);
|
|
309
323
|
}
|
|
310
|
-
function
|
|
311
|
-
se.value = { datapoint: o, seriesIndex: i, config: e.value, dataset:
|
|
312
|
-
const
|
|
313
|
-
if (
|
|
324
|
+
function r({ datapoint: o, seriesIndex: i }) {
|
|
325
|
+
se.value = { datapoint: o, seriesIndex: i, config: e.value, dataset: u }, q.value = o.id;
|
|
326
|
+
const S = e.value.tooltipCustomFormat;
|
|
327
|
+
if (Ae(S) && Ne(() => S({
|
|
314
328
|
datapoint: o,
|
|
315
329
|
seriesIndex: i,
|
|
316
|
-
series:
|
|
330
|
+
series: u,
|
|
317
331
|
config: e.value
|
|
318
332
|
})))
|
|
319
|
-
Q.value =
|
|
333
|
+
Q.value = S({
|
|
320
334
|
datapoint: o,
|
|
321
335
|
seriesIndex: i,
|
|
322
|
-
series:
|
|
336
|
+
series: u,
|
|
323
337
|
config: e.value
|
|
324
338
|
});
|
|
325
339
|
else {
|
|
@@ -342,29 +356,29 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
342
356
|
G.value = !1, q.value = null, Y.value = null;
|
|
343
357
|
}
|
|
344
358
|
const N = {
|
|
345
|
-
centerX:
|
|
346
|
-
centerY:
|
|
347
|
-
}, B =
|
|
359
|
+
centerX: k.value.width / 2,
|
|
360
|
+
centerY: k.value.height / 2
|
|
361
|
+
}, 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) => ({
|
|
348
362
|
...o,
|
|
349
363
|
proportion: (o.value || 0) / B,
|
|
350
364
|
value: o.value || 0,
|
|
351
|
-
absoluteValue:
|
|
352
|
-
})), K =
|
|
365
|
+
absoluteValue: de.value.dataset.find((S, x) => `donut_${x}` === o.id).VALUE
|
|
366
|
+
})), K = k.value.width / 2, ue = k.value.height / 2, ee = k.value.height * e.value.donutRadiusRatio;
|
|
353
367
|
return {
|
|
354
368
|
dataset: ie.filter((o) => !w.value.includes(o.id)),
|
|
355
369
|
legend: ie,
|
|
356
370
|
drawingArea: N,
|
|
357
371
|
displayArcPercentage: c,
|
|
358
372
|
isArcBigEnough: t,
|
|
359
|
-
useTooltip:
|
|
373
|
+
useTooltip: r,
|
|
360
374
|
killTooltip: h,
|
|
361
|
-
getSpaces:
|
|
375
|
+
getSpaces: n,
|
|
362
376
|
total: B,
|
|
363
377
|
cx: K,
|
|
364
378
|
cy: ue,
|
|
365
379
|
radius: ee,
|
|
366
|
-
chart:
|
|
367
|
-
{ series:
|
|
380
|
+
chart: yt(
|
|
381
|
+
{ series: u.filter((o) => !w.value.includes(o.id)) },
|
|
368
382
|
K,
|
|
369
383
|
ue,
|
|
370
384
|
ee,
|
|
@@ -374,87 +388,87 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
374
388
|
1,
|
|
375
389
|
360,
|
|
376
390
|
105.25,
|
|
377
|
-
|
|
391
|
+
k.value.height * e.value.donutThicknessRatio
|
|
378
392
|
)
|
|
379
393
|
};
|
|
380
|
-
}),
|
|
394
|
+
}), b = E({
|
|
381
395
|
start: 0,
|
|
382
|
-
end:
|
|
396
|
+
end: y.value.maxSeriesLength
|
|
383
397
|
});
|
|
384
|
-
function
|
|
385
|
-
|
|
398
|
+
function ot() {
|
|
399
|
+
b.value = {
|
|
386
400
|
start: 0,
|
|
387
|
-
end:
|
|
388
|
-
},
|
|
401
|
+
end: y.value.maxSeriesLength
|
|
402
|
+
}, ye.value += 1;
|
|
389
403
|
}
|
|
390
|
-
const
|
|
404
|
+
const it = W(() => {
|
|
391
405
|
if (!e.value.zoomMinimap.show || z.value === A.DONUT) return [];
|
|
392
|
-
let
|
|
393
|
-
Z(
|
|
394
|
-
values:
|
|
406
|
+
let u = [];
|
|
407
|
+
Z(y.value.dataset) && (u = y.value.dataset), ze(y.value.dataset) && (u = y.value.dataset.map((r, h) => ({
|
|
408
|
+
values: r.VALUE || r.DATA || r.SERIE || r.SERIES || r.VALUES || r.NUM || 0,
|
|
395
409
|
id: z.value === A.LINE ? `line_${h}` : `bar_${h}`
|
|
396
|
-
})).filter((
|
|
397
|
-
const c = Z(
|
|
410
|
+
})).filter((r) => !w.value.includes(r.id)));
|
|
411
|
+
const c = Z(u) ? u.length : Math.max(...u.map((r) => r.values.length));
|
|
398
412
|
let t = [];
|
|
399
|
-
if (Z(
|
|
400
|
-
t =
|
|
413
|
+
if (Z(u))
|
|
414
|
+
t = u;
|
|
401
415
|
else
|
|
402
|
-
for (let
|
|
403
|
-
t.push(
|
|
404
|
-
const
|
|
405
|
-
return t.map((
|
|
416
|
+
for (let r = 0; r < c; r += 1)
|
|
417
|
+
t.push(u.map((h) => h.values[r] || 0).reduce((h, N) => (h || 0) + (N || 0), 0));
|
|
418
|
+
const n = Math.min(...t);
|
|
419
|
+
return t.map((r) => r + (n < 0 ? Math.abs(n) : 0));
|
|
406
420
|
}), d = W(() => {
|
|
407
421
|
if (z.value !== A.LINE) return null;
|
|
408
|
-
const
|
|
409
|
-
height:
|
|
410
|
-
width:
|
|
422
|
+
const u = {
|
|
423
|
+
height: k.value.height,
|
|
424
|
+
width: k.value.width
|
|
411
425
|
}, c = {
|
|
412
426
|
left: e.value.xyPaddingLeft,
|
|
413
427
|
top: e.value.xyPaddingTop,
|
|
414
|
-
right:
|
|
415
|
-
bottom:
|
|
416
|
-
width:
|
|
417
|
-
height:
|
|
428
|
+
right: u.width - e.value.xyPaddingRight,
|
|
429
|
+
bottom: u.height - e.value.xyPaddingBottom,
|
|
430
|
+
width: u.width - e.value.xyPaddingLeft - e.value.xyPaddingRight,
|
|
431
|
+
height: u.height - e.value.xyPaddingTop - e.value.xyPaddingBottom
|
|
418
432
|
};
|
|
419
433
|
let t = [];
|
|
420
|
-
Z(
|
|
434
|
+
Z(y.value.dataset) && (t = [
|
|
421
435
|
{
|
|
422
|
-
values:
|
|
423
|
-
absoluteIndices:
|
|
436
|
+
values: y.value.dataset.slice(b.value.start, b.value.end),
|
|
437
|
+
absoluteIndices: y.value.dataset.map((o, i) => i).slice(b.value.start, b.value.end),
|
|
424
438
|
name: e.value.title,
|
|
425
439
|
color: ve.value[e.value.paletteStartIndex] || U[e.value.paletteStartIndex],
|
|
426
440
|
id: "line_0"
|
|
427
441
|
}
|
|
428
|
-
]),
|
|
442
|
+
]), ze(y.value.dataset) && (t = y.value.dataset.map((o, i) => ({
|
|
429
443
|
...o,
|
|
430
444
|
values: o.VALUE || o.DATA || o.SERIE || o.SERIES || o.VALUES || o.NUM || 0,
|
|
431
445
|
name: o.NAME || o.DESCRIPTION || o.TITLE || o.LABEL || `Serie ${i}`,
|
|
432
446
|
id: `line_${i}`
|
|
433
447
|
})).map((o, i) => ({
|
|
434
448
|
...o,
|
|
435
|
-
color: o.COLOR ?
|
|
436
|
-
values: o.values.slice(
|
|
437
|
-
absoluteIndices: o.values.map((
|
|
449
|
+
color: o.COLOR ? Te(o.COLOR) : ve.value[i + e.value.paletteStartIndex] || U[i + e.value.paletteStartIndex] || U[(i + e.value.paletteStartIndex) % U.length],
|
|
450
|
+
values: o.values.slice(b.value.start, b.value.end),
|
|
451
|
+
absoluteIndices: o.values.map((S, x) => x).slice(b.value.start, b.value.end)
|
|
438
452
|
})));
|
|
439
|
-
const
|
|
453
|
+
const n = {
|
|
440
454
|
max: Math.max(...t.filter((o) => !w.value.includes(o.id)).flatMap((o) => o.values)),
|
|
441
455
|
min: Math.min(...t.filter((o) => !w.value.includes(o.id)).flatMap((o) => o.values)),
|
|
442
456
|
maxSeries: Math.max(...t.map((o) => o.values.length))
|
|
443
|
-
},
|
|
444
|
-
y: c.bottom - c.height * ((o + h) / (
|
|
457
|
+
}, r = Ge(n.min < 0 ? n.min : 0, n.max < 0 ? 0 : n.max, e.value.xyScaleSegments), h = n.min < 0 ? Math.abs(n.min) : 0, N = n.max < 0 ? c.top : c.bottom - h / (r.max + h) * c.height, B = c.width / n.maxSeries, ie = r.ticks.map((o) => ({
|
|
458
|
+
y: c.bottom - c.height * ((o + h) / (r.max + h)),
|
|
445
459
|
x: c.left - 8,
|
|
446
460
|
value: o
|
|
447
461
|
})), K = t.map((o, i) => ({
|
|
448
462
|
...o,
|
|
449
|
-
coordinates: o.values.map((
|
|
463
|
+
coordinates: o.values.map((S, x) => ({
|
|
450
464
|
x: c.left + B * (x + 1) - B / 2,
|
|
451
|
-
y: c.bottom - (
|
|
452
|
-
value:
|
|
465
|
+
y: c.bottom - (S + h) / (r.max + h) * c.height,
|
|
466
|
+
value: S
|
|
453
467
|
}))
|
|
454
468
|
})).map((o) => {
|
|
455
469
|
let i = [];
|
|
456
|
-
return o.coordinates.forEach((
|
|
457
|
-
i.push(`${
|
|
470
|
+
return o.coordinates.forEach((S) => {
|
|
471
|
+
i.push(`${S.x},${S.y} `);
|
|
458
472
|
}), {
|
|
459
473
|
...o,
|
|
460
474
|
linePath: i.join(" ")
|
|
@@ -468,14 +482,14 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
468
482
|
absoluteIndex: x.absoluteIndices[o]
|
|
469
483
|
})).filter((x) => !w.value.includes(x.id));
|
|
470
484
|
se.value = { datapoint: i, seriesIndex: o, config: e.value, dataset: t };
|
|
471
|
-
const
|
|
472
|
-
if (
|
|
485
|
+
const S = e.value.tooltipCustomFormat;
|
|
486
|
+
if (Ae(S) && Ne(() => S({
|
|
473
487
|
datapoint: i,
|
|
474
488
|
seriesIndex: o,
|
|
475
489
|
series: t,
|
|
476
490
|
config: e.value
|
|
477
491
|
})))
|
|
478
|
-
Q.value =
|
|
492
|
+
Q.value = S({
|
|
479
493
|
datapoint: i,
|
|
480
494
|
seriesIndex: o,
|
|
481
495
|
series: t,
|
|
@@ -514,7 +528,7 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
514
528
|
dataset: K.filter((o) => !w.value.includes(o.id)),
|
|
515
529
|
legend: K,
|
|
516
530
|
drawingArea: c,
|
|
517
|
-
extremes:
|
|
531
|
+
extremes: n,
|
|
518
532
|
slotSize: B,
|
|
519
533
|
yLabels: ie,
|
|
520
534
|
useTooltip: ue,
|
|
@@ -522,94 +536,94 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
522
536
|
};
|
|
523
537
|
}), v = W(() => {
|
|
524
538
|
if (z.value !== A.BAR) return null;
|
|
525
|
-
const
|
|
526
|
-
height:
|
|
527
|
-
width:
|
|
539
|
+
const u = {
|
|
540
|
+
height: k.value.height,
|
|
541
|
+
width: k.value.width
|
|
528
542
|
}, c = {
|
|
529
543
|
left: e.value.xyPaddingLeft,
|
|
530
544
|
top: e.value.xyPaddingTop,
|
|
531
|
-
right:
|
|
532
|
-
bottom:
|
|
533
|
-
width:
|
|
534
|
-
height:
|
|
545
|
+
right: u.width - e.value.xyPaddingRight,
|
|
546
|
+
bottom: u.height - e.value.xyPaddingBottom,
|
|
547
|
+
width: u.width - e.value.xyPaddingLeft - e.value.xyPaddingRight,
|
|
548
|
+
height: u.height - e.value.xyPaddingTop - e.value.xyPaddingBottom
|
|
535
549
|
};
|
|
536
550
|
let t = [];
|
|
537
|
-
Z(
|
|
551
|
+
Z(y.value.dataset) && (t = [
|
|
538
552
|
{
|
|
539
|
-
values:
|
|
540
|
-
absoluteIndices:
|
|
553
|
+
values: y.value.dataset.slice(b.value.start, b.value.end),
|
|
554
|
+
absoluteIndices: y.value.dataset.map((i, S) => S).slice(b.value.start, b.value.end),
|
|
541
555
|
name: e.value.title,
|
|
542
556
|
color: ve.value[e.value.paletteStartIndex] || U[e.value.paletteStartIndex],
|
|
543
557
|
id: "bar_0"
|
|
544
558
|
}
|
|
545
|
-
]),
|
|
559
|
+
]), ze(y.value.dataset) && (t = y.value.dataset.map((i, S) => ({
|
|
546
560
|
...i,
|
|
547
561
|
values: i.VALUE || i.DATA || i.SERIE || i.SERIES || i.VALUES || i.NUM || 0,
|
|
548
|
-
name: i.NAME || i.DESCRIPTION || i.TITLE || i.LABEL || `Serie ${
|
|
549
|
-
id: `bar_${
|
|
550
|
-
})).map((i,
|
|
562
|
+
name: i.NAME || i.DESCRIPTION || i.TITLE || i.LABEL || `Serie ${S}`,
|
|
563
|
+
id: `bar_${S}`
|
|
564
|
+
})).map((i, S) => ({
|
|
551
565
|
...i,
|
|
552
|
-
color: i.COLOR ?
|
|
553
|
-
values: i.values.slice(
|
|
554
|
-
absoluteIndices: i.values.map((x, I) => I).slice(
|
|
566
|
+
color: i.COLOR ? Te(i.COLOR) : ve.value[S + e.value.paletteStartIndex] || U[S + e.value.paletteStartIndex] || U[(S + e.value.paletteStartIndex) % U.length],
|
|
567
|
+
values: i.values.slice(b.value.start, b.value.end),
|
|
568
|
+
absoluteIndices: i.values.map((x, I) => I).slice(b.value.start, b.value.end)
|
|
555
569
|
})));
|
|
556
|
-
const
|
|
570
|
+
const n = {
|
|
557
571
|
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)),
|
|
558
572
|
min: Math.min(...t.filter((i) => !w.value.includes(i.id)).flatMap((i) => i.values)),
|
|
559
573
|
maxSeries: Math.max(...t.filter((i) => !w.value.includes(i.id)).map((i) => i.values.length))
|
|
560
|
-
},
|
|
561
|
-
y: c.bottom - c.height * ((i + h) / (
|
|
574
|
+
}, r = Ge(n.min < 0 ? n.min : 0, n.max, e.value.xyScaleSegments), h = r.min < 0 ? Math.abs(r.min) : 0, N = c.bottom - h / (r.max + h) * c.height, B = c.width / n.maxSeries, ie = r.ticks.map((i) => ({
|
|
575
|
+
y: c.bottom - c.height * ((i + h) / (r.max + h)),
|
|
562
576
|
x: c.left - 8,
|
|
563
577
|
value: i
|
|
564
|
-
})), K = t.map((i,
|
|
578
|
+
})), K = t.map((i, S) => ({
|
|
565
579
|
...i,
|
|
566
580
|
coordinates: i.values.map((x, I) => {
|
|
567
|
-
const M = (x + h) / (
|
|
581
|
+
const M = (x + h) / (n.max + h) * c.height, he = Math.abs(x) / Math.abs(n.min) * (c.height - N), Ce = h / (n.max + h) * c.height, fe = B / t.filter((te) => !w.value.includes(te.id)).length - e.value.barGap / t.filter((te) => !w.value.includes(te.id)).length;
|
|
568
582
|
return {
|
|
569
|
-
x: c.left + B * I +
|
|
583
|
+
x: c.left + B * I + fe * S + e.value.barGap / 2,
|
|
570
584
|
y: x > 0 ? c.bottom - M : N,
|
|
571
|
-
height: x > 0 ? M - Ce :
|
|
585
|
+
height: x > 0 ? M - Ce : he,
|
|
572
586
|
value: x,
|
|
573
|
-
width:
|
|
587
|
+
width: fe
|
|
574
588
|
};
|
|
575
589
|
})
|
|
576
|
-
})), ue = t.filter((i) => !w.value.includes(i.id)).map((i,
|
|
590
|
+
})), ue = t.filter((i) => !w.value.includes(i.id)).map((i, S) => ({
|
|
577
591
|
...i,
|
|
578
592
|
coordinates: i.values.map((x, I) => {
|
|
579
|
-
const M = (x + h) / (
|
|
593
|
+
const M = (x + h) / (n.max + h) * c.height, he = Math.abs(x) / (n.max + h) * c.height, Ce = h / (n.max + h) * c.height, fe = B / t.filter((te) => !w.value.includes(te.id)).length - e.value.barGap / t.filter((te) => !w.value.includes(te.id)).length;
|
|
580
594
|
return {
|
|
581
|
-
x: c.left + B * I +
|
|
595
|
+
x: c.left + B * I + fe * S + e.value.barGap / 2,
|
|
582
596
|
y: x > 0 ? c.bottom - M : N,
|
|
583
|
-
height: x > 0 ? M - Ce :
|
|
597
|
+
height: x > 0 ? M - Ce : he,
|
|
584
598
|
value: x,
|
|
585
|
-
width:
|
|
599
|
+
width: fe
|
|
586
600
|
};
|
|
587
601
|
})
|
|
588
602
|
}));
|
|
589
603
|
function ee(i) {
|
|
590
604
|
q.value = i, Y.value = i;
|
|
591
|
-
const
|
|
605
|
+
const S = t.map((I) => ({
|
|
592
606
|
...I,
|
|
593
607
|
value: I.values[i],
|
|
594
608
|
absoluteIndex: I.absoluteIndices[i]
|
|
595
609
|
})).filter((I) => !w.value.includes(I.id));
|
|
596
|
-
se.value = { datapoint:
|
|
610
|
+
se.value = { datapoint: S, seriesIndex: i, config: e.value, dataset: t };
|
|
597
611
|
const x = e.value.tooltipCustomFormat;
|
|
598
|
-
if (
|
|
599
|
-
datapoint:
|
|
612
|
+
if (Ae(x) && Ne(() => x({
|
|
613
|
+
datapoint: S,
|
|
600
614
|
seriesIndex: i,
|
|
601
615
|
series: t,
|
|
602
616
|
config: e.value
|
|
603
617
|
})))
|
|
604
618
|
Q.value = x({
|
|
605
|
-
point:
|
|
619
|
+
point: S,
|
|
606
620
|
seriesIndex: i,
|
|
607
621
|
series: t,
|
|
608
622
|
config: e.value
|
|
609
623
|
});
|
|
610
624
|
else {
|
|
611
625
|
let I = "";
|
|
612
|
-
e.value.xyPeriods[
|
|
626
|
+
e.value.xyPeriods[S[0].absoluteIndex] && (I += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${e.value.xyPeriods[S[0].absoluteIndex]}</div>`), S.forEach((M, he) => {
|
|
613
627
|
I += `
|
|
614
628
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
615
629
|
<svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${M.color}"/></svg>
|
|
@@ -623,7 +637,7 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
623
637
|
s: e.value.valueSuffix,
|
|
624
638
|
r: e.value.dataLabelRoundingValue
|
|
625
639
|
}),
|
|
626
|
-
{ datapoint: M, seriesIndex:
|
|
640
|
+
{ datapoint: M, seriesIndex: he }
|
|
627
641
|
)}
|
|
628
642
|
</b>
|
|
629
643
|
</div>
|
|
@@ -640,24 +654,24 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
640
654
|
dataset: ue.filter((i) => !w.value.includes(i.id)),
|
|
641
655
|
legend: K,
|
|
642
656
|
drawingArea: c,
|
|
643
|
-
extremes:
|
|
657
|
+
extremes: n,
|
|
644
658
|
slotSize: B,
|
|
645
659
|
yLabels: ie,
|
|
646
660
|
useTooltip: ee,
|
|
647
661
|
killTooltip: o
|
|
648
662
|
};
|
|
649
663
|
}), $e = E(!1);
|
|
650
|
-
function
|
|
651
|
-
$e.value =
|
|
664
|
+
function ut(u) {
|
|
665
|
+
$e.value = u, Fe.value += 1;
|
|
652
666
|
}
|
|
653
|
-
function
|
|
654
|
-
|
|
667
|
+
function je() {
|
|
668
|
+
Se.value.showTooltip = !Se.value.showTooltip;
|
|
655
669
|
}
|
|
656
670
|
return $({
|
|
657
|
-
generatePdf:
|
|
658
|
-
generateImage:
|
|
659
|
-
toggleTooltip:
|
|
660
|
-
}), (
|
|
671
|
+
generatePdf: Oe,
|
|
672
|
+
generateImage: Be,
|
|
673
|
+
toggleTooltip: je
|
|
674
|
+
}), (u, c) => et.value ? (a(), l("div", {
|
|
661
675
|
key: 0,
|
|
662
676
|
id: `${z.value}_${P.value}`,
|
|
663
677
|
ref_key: "quickChart",
|
|
@@ -665,53 +679,53 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
665
679
|
class: ne({ "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": $e.value }),
|
|
666
680
|
style: F(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`)
|
|
667
681
|
}, [
|
|
668
|
-
e.value.showUserOptions ? (a(),
|
|
682
|
+
e.value.showUserOptions ? (a(), Ie(Lt, {
|
|
669
683
|
ref: "details",
|
|
670
|
-
key: `user_option_${
|
|
684
|
+
key: `user_option_${Fe.value}`,
|
|
671
685
|
backgroundColor: e.value.backgroundColor,
|
|
672
686
|
color: e.value.color,
|
|
673
|
-
isPrinting: f(
|
|
674
|
-
isImaging: f(
|
|
687
|
+
isPrinting: f(ke),
|
|
688
|
+
isImaging: f(be),
|
|
675
689
|
uid: P.value,
|
|
676
690
|
hasTooltip: e.value.userOptionsButtons.tooltip && e.value.showTooltip,
|
|
677
691
|
hasPdf: e.value.userOptionsButtons.pdf,
|
|
678
692
|
hasImg: e.value.userOptionsButtons.img,
|
|
679
693
|
hasFullscreen: e.value.userOptionsButtons.fullscreen,
|
|
680
694
|
hasXls: !1,
|
|
681
|
-
isTooltip:
|
|
695
|
+
isTooltip: Se.value.showTooltip,
|
|
682
696
|
isFullscreen: $e.value,
|
|
683
697
|
titles: { ...e.value.userOptionsButtonTitles },
|
|
684
698
|
chartElement: j.value,
|
|
685
|
-
onToggleFullscreen:
|
|
686
|
-
onGeneratePdf: f(
|
|
687
|
-
onGenerateImage: f(
|
|
688
|
-
onToggleTooltip:
|
|
689
|
-
},
|
|
690
|
-
|
|
699
|
+
onToggleFullscreen: ut,
|
|
700
|
+
onGeneratePdf: f(Oe),
|
|
701
|
+
onGenerateImage: f(Be),
|
|
702
|
+
onToggleTooltip: je
|
|
703
|
+
}, st({ _: 2 }, [
|
|
704
|
+
u.$slots.optionTooltip ? {
|
|
691
705
|
name: "optionTooltip",
|
|
692
706
|
fn: ae(() => [
|
|
693
|
-
D(
|
|
707
|
+
D(u.$slots, "optionTooltip", {}, void 0, !0)
|
|
694
708
|
]),
|
|
695
709
|
key: "0"
|
|
696
710
|
} : void 0,
|
|
697
|
-
|
|
711
|
+
u.$slots.optionPdf ? {
|
|
698
712
|
name: "optionPdf",
|
|
699
713
|
fn: ae(() => [
|
|
700
|
-
D(
|
|
714
|
+
D(u.$slots, "optionPdf", {}, void 0, !0)
|
|
701
715
|
]),
|
|
702
716
|
key: "1"
|
|
703
717
|
} : void 0,
|
|
704
|
-
|
|
718
|
+
u.$slots.optionImg ? {
|
|
705
719
|
name: "optionImg",
|
|
706
720
|
fn: ae(() => [
|
|
707
|
-
D(
|
|
721
|
+
D(u.$slots, "optionImg", {}, void 0, !0)
|
|
708
722
|
]),
|
|
709
723
|
key: "2"
|
|
710
724
|
} : void 0,
|
|
711
|
-
|
|
725
|
+
u.$slots.optionFullscreen ? {
|
|
712
726
|
name: "optionFullscreen",
|
|
713
|
-
fn: ae(({ toggleFullscreen: t, isFullscreen:
|
|
714
|
-
D(
|
|
727
|
+
fn: ae(({ toggleFullscreen: t, isFullscreen: n }) => [
|
|
728
|
+
D(u.$slots, "optionFullscreen", J(ge({ toggleFullscreen: t, isFullscreen: n })), void 0, !0)
|
|
715
729
|
]),
|
|
716
730
|
key: "3"
|
|
717
731
|
} : void 0
|
|
@@ -725,8 +739,8 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
725
739
|
}, T(e.value.title), 5)) : p("", !0),
|
|
726
740
|
z.value ? (a(), l("svg", {
|
|
727
741
|
key: 2,
|
|
728
|
-
xmlns: f(
|
|
729
|
-
viewBox:
|
|
742
|
+
xmlns: f(kt),
|
|
743
|
+
viewBox: tt.value,
|
|
730
744
|
style: F(`max-width:100%;overflow:visible;background:${e.value.backgroundColor};color:${e.value.color}`)
|
|
731
745
|
}, [
|
|
732
746
|
_("defs", null, [
|
|
@@ -741,9 +755,9 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
741
755
|
in: "SourceGraphic",
|
|
742
756
|
stdDeviation: 2,
|
|
743
757
|
id: `blur_std_${P.value}`
|
|
744
|
-
}, null, 8,
|
|
745
|
-
|
|
746
|
-
], 8,
|
|
758
|
+
}, null, 8, Bt),
|
|
759
|
+
Ut
|
|
760
|
+
], 8, Ot),
|
|
747
761
|
_("filter", {
|
|
748
762
|
id: `shadow_${P.value}`,
|
|
749
763
|
"color-interpolation-filters": "sRGB"
|
|
@@ -754,72 +768,72 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
754
768
|
stdDeviation: "10",
|
|
755
769
|
"flood-opacity": "0.5",
|
|
756
770
|
"flood-color": e.value.donutShadowColor
|
|
757
|
-
}, null, 8,
|
|
758
|
-
], 8,
|
|
771
|
+
}, null, 8, Vt)
|
|
772
|
+
], 8, Dt)
|
|
759
773
|
]),
|
|
760
774
|
z.value === A.DONUT ? (a(), l(m, { key: 0 }, [
|
|
761
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
762
|
-
(a(!0), l(m, null, L(C.value.chart, (t,
|
|
775
|
+
e.value.showDataLabels ? (a(), l("g", qt, [
|
|
776
|
+
(a(!0), l(m, null, L(C.value.chart, (t, n) => (a(), l(m, null, [
|
|
763
777
|
C.value.isArcBigEnough(t) ? (a(), l("path", {
|
|
764
778
|
key: 0,
|
|
765
|
-
d: f(
|
|
779
|
+
d: f(bt)(t, { x: (e.value.width || k.value.width) / 2, y: (e.value.height || k.value.height) / 2 }, 16, 16, !1, !1, e.value.donutLabelMarkerStrokeWidth),
|
|
766
780
|
stroke: t.color,
|
|
767
781
|
"stroke-width": e.value.donutLabelMarkerStrokeWidth,
|
|
768
782
|
"stroke-linecap": "round",
|
|
769
783
|
"stroke-linejoin": "round",
|
|
770
784
|
fill: "none",
|
|
771
|
-
filter:
|
|
772
|
-
}, null, 8,
|
|
785
|
+
filter: ce(t.id)
|
|
786
|
+
}, null, 8, Wt)) : p("", !0)
|
|
773
787
|
], 64))), 256))
|
|
774
788
|
])) : p("", !0),
|
|
775
789
|
_("circle", {
|
|
776
790
|
class: "donut-hollow",
|
|
777
|
-
cx: (e.value.width ||
|
|
778
|
-
cy: (e.value.height ||
|
|
779
|
-
r: (e.value.height ||
|
|
791
|
+
cx: (e.value.width || k.value.width) / 2,
|
|
792
|
+
cy: (e.value.height || k.value.height) / 2,
|
|
793
|
+
r: (e.value.height || k.value.height) * e.value.donutRadiusRatio,
|
|
780
794
|
fill: e.value.backgroundColor
|
|
781
|
-
}, null, 8,
|
|
795
|
+
}, null, 8, jt),
|
|
782
796
|
_("circle", {
|
|
783
797
|
cx: C.value.cx,
|
|
784
798
|
cy: C.value.cy,
|
|
785
799
|
r: C.value.radius,
|
|
786
800
|
fill: e.value.backgroundColor,
|
|
787
801
|
filter: e.value.donutUseShadow ? `url(#shadow_${P.value})` : ""
|
|
788
|
-
}, null, 8,
|
|
789
|
-
_("g",
|
|
790
|
-
(a(!0), l(m, null, L(C.value.chart, (t,
|
|
802
|
+
}, null, 8, Gt),
|
|
803
|
+
_("g", Ht, [
|
|
804
|
+
(a(!0), l(m, null, L(C.value.chart, (t, n) => (a(), l("path", {
|
|
791
805
|
d: t.arcSlice,
|
|
792
806
|
fill: t.color,
|
|
793
807
|
stroke: e.value.backgroundColor,
|
|
794
808
|
"stroke-width": e.value.donutStrokeWidth,
|
|
795
|
-
filter:
|
|
796
|
-
}, null, 8,
|
|
797
|
-
(a(!0), l(m, null, L(C.value.chart, (t,
|
|
809
|
+
filter: ce(t.id)
|
|
810
|
+
}, null, 8, Xt))), 256)),
|
|
811
|
+
(a(!0), l(m, null, L(C.value.chart, (t, n) => (a(), l("path", {
|
|
798
812
|
d: t.arcSlice,
|
|
799
813
|
fill: "transparent",
|
|
800
|
-
onMouseenter: (
|
|
801
|
-
onMouseout: c[0] || (c[0] = (
|
|
802
|
-
onClick: (
|
|
803
|
-
}, null, 40,
|
|
814
|
+
onMouseenter: (r) => C.value.useTooltip({ datapoint: t, seriesIndex: n }),
|
|
815
|
+
onMouseout: c[0] || (c[0] = (r) => C.value.killTooltip()),
|
|
816
|
+
onClick: (r) => g("selectDatapoint", t)
|
|
817
|
+
}, null, 40, Zt))), 256))
|
|
804
818
|
]),
|
|
805
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
806
|
-
(a(!0), l(m, null, L(C.value.chart, (t,
|
|
819
|
+
e.value.showDataLabels ? (a(), l("g", Yt, [
|
|
820
|
+
(a(!0), l(m, null, L(C.value.chart, (t, n) => (a(), l(m, null, [
|
|
807
821
|
C.value.isArcBigEnough(t) ? (a(), l("circle", {
|
|
808
822
|
key: 0,
|
|
809
|
-
cx: f(
|
|
810
|
-
cy: f(
|
|
823
|
+
cx: f(pe)(t).x,
|
|
824
|
+
cy: f(Re)(t) - 3.7,
|
|
811
825
|
fill: t.color,
|
|
812
826
|
r: 3,
|
|
813
|
-
filter:
|
|
814
|
-
}, null, 8,
|
|
827
|
+
filter: ce(t.id)
|
|
828
|
+
}, null, 8, Jt)) : p("", !0),
|
|
815
829
|
C.value.isArcBigEnough(t) ? (a(), l("text", {
|
|
816
830
|
key: 1,
|
|
817
|
-
"text-anchor": f(
|
|
818
|
-
x: f(
|
|
819
|
-
y: f(
|
|
831
|
+
"text-anchor": f(pe)(t, !0, 20).anchor,
|
|
832
|
+
x: f(pe)(t, !0).x,
|
|
833
|
+
y: f(Re)(t),
|
|
820
834
|
fill: e.value.color,
|
|
821
835
|
"font-size": e.value.dataLabelFontSize,
|
|
822
|
-
filter:
|
|
836
|
+
filter: ce(t.id)
|
|
823
837
|
}, T(C.value.displayArcPercentage(t, C.value.chart)) + " (" + T(f(H)(
|
|
824
838
|
e.value.formatter,
|
|
825
839
|
t.value,
|
|
@@ -829,27 +843,27 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
829
843
|
s: e.value.valueSuffix,
|
|
830
844
|
r: e.value.dataLabelRoundingValue
|
|
831
845
|
}),
|
|
832
|
-
{ datapoint: t, seriesIndex:
|
|
833
|
-
)) + ") ", 9,
|
|
846
|
+
{ datapoint: t, seriesIndex: n }
|
|
847
|
+
)) + ") ", 9, Qt)) : p("", !0),
|
|
834
848
|
C.value.isArcBigEnough(t, !0, 20) ? (a(), l("text", {
|
|
835
849
|
key: 2,
|
|
836
|
-
"text-anchor": f(
|
|
837
|
-
x: f(
|
|
838
|
-
y: f(
|
|
850
|
+
"text-anchor": f(pe)(t).anchor,
|
|
851
|
+
x: f(pe)(t, !0).x,
|
|
852
|
+
y: f(Re)(t) + e.value.dataLabelFontSize,
|
|
839
853
|
fill: e.value.color,
|
|
840
854
|
"font-size": e.value.dataLabelFontSize,
|
|
841
|
-
filter:
|
|
842
|
-
}, T(t.name), 9,
|
|
855
|
+
filter: ce(t.id)
|
|
856
|
+
}, T(t.name), 9, Kt)) : p("", !0)
|
|
843
857
|
], 64))), 256))
|
|
844
858
|
])) : p("", !0),
|
|
845
|
-
e.value.donutShowTotal ? (a(), l("g",
|
|
859
|
+
e.value.donutShowTotal ? (a(), l("g", ea, [
|
|
846
860
|
_("text", {
|
|
847
861
|
"text-anchor": "middle",
|
|
848
862
|
x: C.value.drawingArea.centerX,
|
|
849
863
|
y: C.value.drawingArea.centerY - e.value.donutTotalLabelFontSize / 2,
|
|
850
864
|
"font-size": e.value.donutTotalLabelFontSize,
|
|
851
865
|
fill: e.value.color
|
|
852
|
-
}, T(e.value.donutTotalLabelText), 9,
|
|
866
|
+
}, T(e.value.donutTotalLabelText), 9, ta),
|
|
853
867
|
_("text", {
|
|
854
868
|
"text-anchor": "middle",
|
|
855
869
|
x: C.value.drawingArea.centerX,
|
|
@@ -861,11 +875,11 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
861
875
|
v: C.value.total,
|
|
862
876
|
s: e.value.valueSuffix,
|
|
863
877
|
r: e.value.dataLabelRoundingValue
|
|
864
|
-
})), 9,
|
|
878
|
+
})), 9, aa)
|
|
865
879
|
])) : p("", !0)
|
|
866
880
|
], 64)) : p("", !0),
|
|
867
881
|
z.value === A.LINE ? (a(), l(m, { key: 1 }, [
|
|
868
|
-
e.value.xyShowGrid ? (a(), l("g",
|
|
882
|
+
e.value.xyShowGrid ? (a(), l("g", la, [
|
|
869
883
|
(a(!0), l(m, null, L(d.value.yLabels, (t) => (a(), l(m, null, [
|
|
870
884
|
t.y <= d.value.drawingArea.bottom ? (a(), l("line", {
|
|
871
885
|
key: 0,
|
|
@@ -876,19 +890,19 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
876
890
|
stroke: e.value.xyGridStroke,
|
|
877
891
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
878
892
|
"stroke-linecap": "round"
|
|
879
|
-
}, null, 8,
|
|
893
|
+
}, null, 8, oa)) : p("", !0)
|
|
880
894
|
], 64))), 256)),
|
|
881
|
-
(a(!0), l(m, null, L(d.value.extremes.maxSeries + 1, (t,
|
|
882
|
-
x1: d.value.drawingArea.left + d.value.slotSize *
|
|
883
|
-
x2: d.value.drawingArea.left + d.value.slotSize *
|
|
895
|
+
(a(!0), l(m, null, L(d.value.extremes.maxSeries + 1, (t, n) => (a(), l("line", {
|
|
896
|
+
x1: d.value.drawingArea.left + d.value.slotSize * n,
|
|
897
|
+
x2: d.value.drawingArea.left + d.value.slotSize * n,
|
|
884
898
|
y1: d.value.drawingArea.top,
|
|
885
899
|
y2: d.value.drawingArea.bottom,
|
|
886
900
|
stroke: e.value.xyGridStroke,
|
|
887
901
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
888
902
|
"stroke-linecap": "round"
|
|
889
|
-
}, null, 8,
|
|
903
|
+
}, null, 8, ia))), 256))
|
|
890
904
|
])) : p("", !0),
|
|
891
|
-
e.value.xyShowAxis ? (a(), l("g",
|
|
905
|
+
e.value.xyShowAxis ? (a(), l("g", ua, [
|
|
892
906
|
_("line", {
|
|
893
907
|
x1: d.value.drawingArea.left,
|
|
894
908
|
x2: d.value.drawingArea.left,
|
|
@@ -897,7 +911,7 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
897
911
|
stroke: e.value.xyAxisStroke,
|
|
898
912
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
899
913
|
"stroke-linecap": "round"
|
|
900
|
-
}, null, 8,
|
|
914
|
+
}, null, 8, na),
|
|
901
915
|
_("line", {
|
|
902
916
|
x1: d.value.drawingArea.left,
|
|
903
917
|
x2: d.value.drawingArea.right,
|
|
@@ -906,10 +920,10 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
906
920
|
stroke: e.value.xyAxisStroke,
|
|
907
921
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
908
922
|
"stroke-linecap": "round"
|
|
909
|
-
}, null, 8,
|
|
923
|
+
}, null, 8, ra)
|
|
910
924
|
])) : p("", !0),
|
|
911
|
-
e.value.xyShowScale ? (a(), l("g",
|
|
912
|
-
(a(!0), l(m, null, L(d.value.yLabels, (t,
|
|
925
|
+
e.value.xyShowScale ? (a(), l("g", sa, [
|
|
926
|
+
(a(!0), l(m, null, L(d.value.yLabels, (t, n) => (a(), l(m, null, [
|
|
913
927
|
t.y <= d.value.drawingArea.bottom ? (a(), l("line", {
|
|
914
928
|
key: 0,
|
|
915
929
|
x1: t.x + 4,
|
|
@@ -919,7 +933,7 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
919
933
|
stroke: e.value.xyAxisStroke,
|
|
920
934
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
921
935
|
"stroke-linecap": "round"
|
|
922
|
-
}, null, 8,
|
|
936
|
+
}, null, 8, va)) : p("", !0),
|
|
923
937
|
t.y <= d.value.drawingArea.bottom ? (a(), l("text", {
|
|
924
938
|
key: 1,
|
|
925
939
|
x: t.x,
|
|
@@ -936,48 +950,48 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
936
950
|
s: e.value.valueSuffix,
|
|
937
951
|
r: e.value.dataLabelRoundingValue
|
|
938
952
|
}),
|
|
939
|
-
{ datapoint: t, seriesIndex:
|
|
940
|
-
)), 9,
|
|
953
|
+
{ datapoint: t, seriesIndex: n }
|
|
954
|
+
)), 9, da)) : p("", !0)
|
|
941
955
|
], 64))), 256))
|
|
942
956
|
])) : p("", !0),
|
|
943
|
-
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g",
|
|
944
|
-
(a(!0), l(m, null, L(e.value.xyPeriods.slice(
|
|
945
|
-
x1: d.value.drawingArea.left + d.value.slotSize * (
|
|
946
|
-
x2: d.value.drawingArea.left + d.value.slotSize * (
|
|
957
|
+
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g", ca, [
|
|
958
|
+
(a(!0), l(m, null, L(e.value.xyPeriods.slice(b.value.start, b.value.end), (t, n) => (a(), l("line", {
|
|
959
|
+
x1: d.value.drawingArea.left + d.value.slotSize * (n + 1) - d.value.slotSize / 2,
|
|
960
|
+
x2: d.value.drawingArea.left + d.value.slotSize * (n + 1) - d.value.slotSize / 2,
|
|
947
961
|
y1: d.value.drawingArea.bottom,
|
|
948
962
|
y2: d.value.drawingArea.bottom + 4,
|
|
949
963
|
stroke: e.value.xyAxisStroke,
|
|
950
964
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
951
965
|
"stroke-linecap": "round"
|
|
952
|
-
}, null, 8,
|
|
953
|
-
(a(!0), l(m, null, L(e.value.xyPeriods.slice(
|
|
966
|
+
}, null, 8, ha))), 256)),
|
|
967
|
+
(a(!0), l(m, null, L(e.value.xyPeriods.slice(b.value.start, b.value.end), (t, n) => (a(), l("text", {
|
|
954
968
|
"font-size": e.value.xyLabelsXFontSize,
|
|
955
969
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
956
970
|
fill: e.value.color,
|
|
957
|
-
transform: `translate(${d.value.drawingArea.left + d.value.slotSize * (
|
|
958
|
-
}, T(t), 9,
|
|
971
|
+
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})`
|
|
972
|
+
}, T(t), 9, fa))), 256))
|
|
959
973
|
])) : p("", !0),
|
|
960
|
-
_("g",
|
|
961
|
-
(a(!0), l(m, null, L(d.value.dataset, (t,
|
|
974
|
+
_("g", ga, [
|
|
975
|
+
(a(!0), l(m, null, L(d.value.dataset, (t, n) => (a(), l("g", ma, [
|
|
962
976
|
e.value.lineSmooth ? (a(), l(m, { key: 0 }, [
|
|
963
977
|
_("path", {
|
|
964
|
-
d: `M ${f(
|
|
978
|
+
d: `M ${f(He)(t.coordinates)}`,
|
|
965
979
|
stroke: e.value.backgroundColor,
|
|
966
980
|
"stroke-width": e.value.lineStrokeWidth + 1,
|
|
967
981
|
"stroke-linecap": "round",
|
|
968
982
|
fill: "none",
|
|
969
983
|
class: ne({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
970
984
|
style: { transition: "all 0.3s ease-in-out" }
|
|
971
|
-
}, null, 10,
|
|
985
|
+
}, null, 10, pa),
|
|
972
986
|
_("path", {
|
|
973
|
-
d: `M ${f(
|
|
987
|
+
d: `M ${f(He)(t.coordinates)}`,
|
|
974
988
|
stroke: t.color,
|
|
975
989
|
"stroke-width": e.value.lineStrokeWidth,
|
|
976
990
|
"stroke-linecap": "round",
|
|
977
991
|
fill: "none",
|
|
978
992
|
class: ne({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
979
993
|
style: { transition: "all 0.3s ease-in-out" }
|
|
980
|
-
}, null, 10,
|
|
994
|
+
}, null, 10, xa)
|
|
981
995
|
], 64)) : (a(), l(m, { key: 1 }, [
|
|
982
996
|
_("path", {
|
|
983
997
|
d: `M ${t.linePath}`,
|
|
@@ -987,7 +1001,7 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
987
1001
|
fill: "none",
|
|
988
1002
|
class: ne({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
989
1003
|
style: { transition: "all 0.3s ease-in-out" }
|
|
990
|
-
}, null, 10,
|
|
1004
|
+
}, null, 10, ya),
|
|
991
1005
|
_("path", {
|
|
992
1006
|
d: `M ${t.linePath}`,
|
|
993
1007
|
stroke: t.color,
|
|
@@ -996,62 +1010,62 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
996
1010
|
fill: "none",
|
|
997
1011
|
class: ne({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
998
1012
|
style: { transition: "all 0.3s ease-in-out" }
|
|
999
|
-
}, null, 10,
|
|
1013
|
+
}, null, 10, ka)
|
|
1000
1014
|
], 64)),
|
|
1001
|
-
(a(!0), l(m, null, L(t.coordinates, (
|
|
1002
|
-
cx:
|
|
1003
|
-
cy: f(X)(
|
|
1015
|
+
(a(!0), l(m, null, L(t.coordinates, (r, h) => (a(), l("circle", {
|
|
1016
|
+
cx: r.x,
|
|
1017
|
+
cy: f(X)(r.y),
|
|
1004
1018
|
r: 3,
|
|
1005
1019
|
fill: t.color,
|
|
1006
1020
|
stroke: e.value.backgroundColor,
|
|
1007
1021
|
"stroke-width": "0.5",
|
|
1008
1022
|
class: "quick-animation",
|
|
1009
1023
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1010
|
-
}, null, 8,
|
|
1024
|
+
}, null, 8, ba))), 256))
|
|
1011
1025
|
]))), 256))
|
|
1012
1026
|
]),
|
|
1013
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
1014
|
-
(a(!0), l(m, null, L(d.value.dataset, (t,
|
|
1015
|
-
(a(!0), l(m, null, L(t.coordinates, (
|
|
1027
|
+
e.value.showDataLabels ? (a(), l("g", Sa, [
|
|
1028
|
+
(a(!0), l(m, null, L(d.value.dataset, (t, n) => (a(), l(m, null, [
|
|
1029
|
+
(a(!0), l(m, null, L(t.coordinates, (r, h) => (a(), l("text", {
|
|
1016
1030
|
"text-anchor": "middle",
|
|
1017
1031
|
"font-size": e.value.dataLabelFontSize,
|
|
1018
1032
|
fill: t.color,
|
|
1019
|
-
x:
|
|
1020
|
-
y: f(X)(
|
|
1033
|
+
x: r.x,
|
|
1034
|
+
y: f(X)(r.y) - e.value.dataLabelFontSize / 2,
|
|
1021
1035
|
class: "quick-animation",
|
|
1022
1036
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1023
1037
|
}, T(f(H)(
|
|
1024
1038
|
e.value.formatter,
|
|
1025
|
-
f(X)(
|
|
1039
|
+
f(X)(r.value),
|
|
1026
1040
|
f(O)({
|
|
1027
1041
|
p: e.value.valuePrefix,
|
|
1028
|
-
v: f(X)(
|
|
1042
|
+
v: f(X)(r.value),
|
|
1029
1043
|
s: e.value.valueSuffix,
|
|
1030
1044
|
r: e.value.dataLabelRoundingValue
|
|
1031
1045
|
}),
|
|
1032
|
-
{ datapoint:
|
|
1033
|
-
)), 9,
|
|
1046
|
+
{ datapoint: r, seriesIndex: h }
|
|
1047
|
+
)), 9, wa))), 256))
|
|
1034
1048
|
], 64))), 256))
|
|
1035
1049
|
])) : p("", !0),
|
|
1036
|
-
_("g",
|
|
1037
|
-
(a(!0), l(m, null, L(d.value.extremes.maxSeries, (t,
|
|
1038
|
-
x: d.value.drawingArea.left +
|
|
1050
|
+
_("g", _a, [
|
|
1051
|
+
(a(!0), l(m, null, L(d.value.extremes.maxSeries, (t, n) => (a(), l("rect", {
|
|
1052
|
+
x: d.value.drawingArea.left + n * d.value.slotSize,
|
|
1039
1053
|
y: d.value.drawingArea.top,
|
|
1040
1054
|
height: d.value.drawingArea.height <= 0 ? 1e-5 : d.value.drawingArea.height,
|
|
1041
1055
|
width: d.value.slotSize <= 0 ? 1e-5 : d.value.slotSize,
|
|
1042
|
-
fill: [q.value, Y.value].includes(
|
|
1056
|
+
fill: [q.value, Y.value].includes(n) ? e.value.xyHighlighterColor : "transparent",
|
|
1043
1057
|
style: F(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1044
|
-
onMouseenter: (
|
|
1045
|
-
onMouseleave: c[1] || (c[1] = (
|
|
1046
|
-
onClick: (
|
|
1058
|
+
onMouseenter: (r) => d.value.useTooltip(n),
|
|
1059
|
+
onMouseleave: c[1] || (c[1] = (r) => d.value.killTooltip()),
|
|
1060
|
+
onClick: (r) => g("selectDatapoint", d.value.dataset.map((h) => ({
|
|
1047
1061
|
...h,
|
|
1048
|
-
value: h.values[
|
|
1062
|
+
value: h.values[n]
|
|
1049
1063
|
})))
|
|
1050
|
-
}, null, 44,
|
|
1064
|
+
}, null, 44, Aa))), 256))
|
|
1051
1065
|
])
|
|
1052
1066
|
], 64)) : p("", !0),
|
|
1053
1067
|
z.value === A.BAR ? (a(), l(m, { key: 2 }, [
|
|
1054
|
-
e.value.xyShowGrid ? (a(), l("g",
|
|
1068
|
+
e.value.xyShowGrid ? (a(), l("g", La, [
|
|
1055
1069
|
(a(!0), l(m, null, L(v.value.yLabels, (t) => (a(), l(m, null, [
|
|
1056
1070
|
t.y <= v.value.drawingArea.bottom ? (a(), l("line", {
|
|
1057
1071
|
key: 0,
|
|
@@ -1062,19 +1076,19 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
1062
1076
|
stroke: e.value.xyGridStroke,
|
|
1063
1077
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1064
1078
|
"stroke-linecap": "round"
|
|
1065
|
-
}, null, 8,
|
|
1079
|
+
}, null, 8, za)) : p("", !0)
|
|
1066
1080
|
], 64))), 256)),
|
|
1067
|
-
(a(!0), l(m, null, L(v.value.extremes.maxSeries + 1, (t,
|
|
1068
|
-
x1: v.value.drawingArea.left + v.value.slotSize *
|
|
1069
|
-
x2: v.value.drawingArea.left + v.value.slotSize *
|
|
1081
|
+
(a(!0), l(m, null, L(v.value.extremes.maxSeries + 1, (t, n) => (a(), l("line", {
|
|
1082
|
+
x1: v.value.drawingArea.left + v.value.slotSize * n,
|
|
1083
|
+
x2: v.value.drawingArea.left + v.value.slotSize * n,
|
|
1070
1084
|
y1: v.value.drawingArea.top,
|
|
1071
1085
|
y2: v.value.drawingArea.bottom,
|
|
1072
1086
|
stroke: e.value.xyGridStroke,
|
|
1073
1087
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1074
1088
|
"stroke-linecap": "round"
|
|
1075
|
-
}, null, 8,
|
|
1089
|
+
}, null, 8, $a))), 256))
|
|
1076
1090
|
])) : p("", !0),
|
|
1077
|
-
e.value.xyShowAxis ? (a(), l("g",
|
|
1091
|
+
e.value.xyShowAxis ? (a(), l("g", Ca, [
|
|
1078
1092
|
_("line", {
|
|
1079
1093
|
x1: v.value.drawingArea.left,
|
|
1080
1094
|
x2: v.value.drawingArea.left,
|
|
@@ -1083,7 +1097,7 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
1083
1097
|
stroke: e.value.xyAxisStroke,
|
|
1084
1098
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1085
1099
|
"stroke-linecap": "round"
|
|
1086
|
-
}, null, 8,
|
|
1100
|
+
}, null, 8, Pa),
|
|
1087
1101
|
_("line", {
|
|
1088
1102
|
x1: v.value.drawingArea.left,
|
|
1089
1103
|
x2: v.value.drawingArea.right,
|
|
@@ -1092,10 +1106,10 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
1092
1106
|
stroke: e.value.xyAxisStroke,
|
|
1093
1107
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1094
1108
|
"stroke-linecap": "round"
|
|
1095
|
-
}, null, 8,
|
|
1109
|
+
}, null, 8, Ia)
|
|
1096
1110
|
])) : p("", !0),
|
|
1097
|
-
e.value.xyShowScale ? (a(), l("g",
|
|
1098
|
-
(a(!0), l(m, null, L(v.value.yLabels, (t,
|
|
1111
|
+
e.value.xyShowScale ? (a(), l("g", Ea, [
|
|
1112
|
+
(a(!0), l(m, null, L(v.value.yLabels, (t, n) => (a(), l(m, null, [
|
|
1099
1113
|
t.y <= v.value.drawingArea.bottom ? (a(), l("line", {
|
|
1100
1114
|
key: 0,
|
|
1101
1115
|
x1: t.x + 4,
|
|
@@ -1105,7 +1119,7 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
1105
1119
|
stroke: e.value.xyAxisStroke,
|
|
1106
1120
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1107
1121
|
"stroke-linecap": "round"
|
|
1108
|
-
}, null, 8,
|
|
1122
|
+
}, null, 8, Ta)) : p("", !0),
|
|
1109
1123
|
t.y <= v.value.drawingArea.bottom ? (a(), l("text", {
|
|
1110
1124
|
key: 1,
|
|
1111
1125
|
x: t.x,
|
|
@@ -1122,134 +1136,134 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
1122
1136
|
s: e.value.valueSuffix,
|
|
1123
1137
|
r: e.value.dataLabelRoundingValue
|
|
1124
1138
|
}),
|
|
1125
|
-
{ datapoint: t, seriesIndex:
|
|
1126
|
-
)), 9,
|
|
1139
|
+
{ datapoint: t, seriesIndex: n }
|
|
1140
|
+
)), 9, Ra)) : p("", !0)
|
|
1127
1141
|
], 64))), 256))
|
|
1128
1142
|
])) : p("", !0),
|
|
1129
|
-
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g",
|
|
1130
|
-
(a(!0), l(m, null, L(e.value.xyPeriods.slice(
|
|
1131
|
-
x1: v.value.drawingArea.left + v.value.slotSize * (
|
|
1132
|
-
x2: v.value.drawingArea.left + v.value.slotSize * (
|
|
1143
|
+
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g", Na, [
|
|
1144
|
+
(a(!0), l(m, null, L(e.value.xyPeriods.slice(b.value.start, b.value.end), (t, n) => (a(), l("line", {
|
|
1145
|
+
x1: v.value.drawingArea.left + v.value.slotSize * (n + 1) - v.value.slotSize / 2,
|
|
1146
|
+
x2: v.value.drawingArea.left + v.value.slotSize * (n + 1) - v.value.slotSize / 2,
|
|
1133
1147
|
y1: v.value.drawingArea.bottom,
|
|
1134
1148
|
y2: v.value.drawingArea.bottom + 4,
|
|
1135
1149
|
stroke: e.value.xyAxisStroke,
|
|
1136
1150
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1137
1151
|
"stroke-linecap": "round"
|
|
1138
|
-
}, null, 8,
|
|
1139
|
-
(a(!0), l(m, null, L(e.value.xyPeriods.slice(
|
|
1152
|
+
}, null, 8, Fa))), 256)),
|
|
1153
|
+
(a(!0), l(m, null, L(e.value.xyPeriods.slice(b.value.start, b.value.end), (t, n) => (a(), l("text", {
|
|
1140
1154
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1141
1155
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1142
|
-
transform: `translate(${v.value.drawingArea.left + v.value.slotSize * (
|
|
1156
|
+
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})`,
|
|
1143
1157
|
fill: e.value.color
|
|
1144
|
-
}, T(t), 9,
|
|
1158
|
+
}, T(t), 9, Ma))), 256))
|
|
1145
1159
|
])) : p("", !0),
|
|
1146
|
-
_("g",
|
|
1147
|
-
(a(!0), l(m, null, L(v.value.dataset, (t,
|
|
1148
|
-
(a(!0), l(m, null, L(t.coordinates, (
|
|
1149
|
-
x:
|
|
1150
|
-
width:
|
|
1151
|
-
height: f(X)(
|
|
1152
|
-
y: f(X)(
|
|
1160
|
+
_("g", Oa, [
|
|
1161
|
+
(a(!0), l(m, null, L(v.value.dataset, (t, n) => (a(), l(m, null, [
|
|
1162
|
+
(a(!0), l(m, null, L(t.coordinates, (r, h) => (a(), l("rect", {
|
|
1163
|
+
x: r.x,
|
|
1164
|
+
width: r.width <= 0 ? 1e-5 : r.width,
|
|
1165
|
+
height: f(X)(r.height <= 0 ? 1e-5 : r.height),
|
|
1166
|
+
y: f(X)(r.y),
|
|
1153
1167
|
fill: t.color,
|
|
1154
1168
|
stroke: e.value.backgroundColor,
|
|
1155
1169
|
"stroke-width": e.value.barStrokeWidth,
|
|
1156
1170
|
"stroke-linecap": "round",
|
|
1157
|
-
class: ne({ "vue-data-ui-bar-animated": e.value.barAnimated &&
|
|
1171
|
+
class: ne({ "vue-data-ui-bar-animated": e.value.barAnimated && r.value < 0 })
|
|
1158
1172
|
}, [
|
|
1159
|
-
e.value.barAnimated &&
|
|
1173
|
+
e.value.barAnimated && r.value > 0 && !f(ke) && !f(be) ? (a(), l("animate", {
|
|
1160
1174
|
key: 0,
|
|
1161
1175
|
attributeName: "height",
|
|
1162
1176
|
from: 0,
|
|
1163
|
-
to:
|
|
1177
|
+
to: r.height,
|
|
1164
1178
|
dur: "0.5s"
|
|
1165
|
-
}, null, 8,
|
|
1166
|
-
e.value.barAnimated &&
|
|
1179
|
+
}, null, 8, Ua)) : p("", !0),
|
|
1180
|
+
e.value.barAnimated && r.value > 0 && !f(ke) && !f(be) ? (a(), l("animate", {
|
|
1167
1181
|
key: 1,
|
|
1168
1182
|
attributeName: "y",
|
|
1169
1183
|
from: v.value.absoluteZero,
|
|
1170
|
-
to: v.value.absoluteZero -
|
|
1184
|
+
to: v.value.absoluteZero - r.height,
|
|
1171
1185
|
dur: "0.5s"
|
|
1172
|
-
}, null, 8,
|
|
1173
|
-
], 10,
|
|
1186
|
+
}, null, 8, Da)) : p("", !0)
|
|
1187
|
+
], 10, Ba))), 256))
|
|
1174
1188
|
], 64))), 256))
|
|
1175
1189
|
]),
|
|
1176
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
1177
|
-
(a(!0), l(m, null, L(v.value.dataset, (t,
|
|
1178
|
-
(a(!0), l(m, null, L(t.coordinates, (
|
|
1179
|
-
x:
|
|
1180
|
-
y: f(X)(
|
|
1190
|
+
e.value.showDataLabels ? (a(), l("g", Va, [
|
|
1191
|
+
(a(!0), l(m, null, L(v.value.dataset, (t, n) => (a(), l(m, null, [
|
|
1192
|
+
(a(!0), l(m, null, L(t.coordinates, (r, h) => (a(), l("text", {
|
|
1193
|
+
x: r.x + r.width / 2,
|
|
1194
|
+
y: f(X)(r.y) - e.value.dataLabelFontSize / 2,
|
|
1181
1195
|
"text-anchor": "middle",
|
|
1182
1196
|
"font-size": e.value.dataLabelFontSize,
|
|
1183
1197
|
fill: t.color,
|
|
1184
1198
|
class: "quick-animation"
|
|
1185
1199
|
}, T(f(H)(
|
|
1186
1200
|
e.value.formatter,
|
|
1187
|
-
f(X)(
|
|
1201
|
+
f(X)(r.value),
|
|
1188
1202
|
f(O)({
|
|
1189
1203
|
p: e.value.valuePrefix,
|
|
1190
|
-
v: f(X)(
|
|
1204
|
+
v: f(X)(r.value),
|
|
1191
1205
|
s: e.value.valueSuffix,
|
|
1192
1206
|
r: e.value.dataLabelRoundingValue
|
|
1193
1207
|
}),
|
|
1194
|
-
{ datapoint:
|
|
1195
|
-
)), 9,
|
|
1208
|
+
{ datapoint: r, seriesIndex: h }
|
|
1209
|
+
)), 9, qa))), 256))
|
|
1196
1210
|
], 64))), 256))
|
|
1197
1211
|
])) : p("", !0),
|
|
1198
|
-
_("g",
|
|
1199
|
-
(a(!0), l(m, null, L(v.value.extremes.maxSeries, (t,
|
|
1200
|
-
x: v.value.drawingArea.left +
|
|
1212
|
+
_("g", Wa, [
|
|
1213
|
+
(a(!0), l(m, null, L(v.value.extremes.maxSeries, (t, n) => (a(), l("rect", {
|
|
1214
|
+
x: v.value.drawingArea.left + n * v.value.slotSize,
|
|
1201
1215
|
y: v.value.drawingArea.top,
|
|
1202
1216
|
height: v.value.drawingArea.height <= 0 ? 1e-5 : v.value.drawingArea.height,
|
|
1203
1217
|
width: v.value.slotSize <= 0 ? 1e-5 : v.value.slotSize,
|
|
1204
|
-
fill: [q.value, Y.value].includes(
|
|
1218
|
+
fill: [q.value, Y.value].includes(n) ? e.value.xyHighlighterColor : "transparent",
|
|
1205
1219
|
style: F(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1206
|
-
onMouseenter: (
|
|
1207
|
-
onMouseleave: c[2] || (c[2] = (
|
|
1208
|
-
onClick: (
|
|
1220
|
+
onMouseenter: (r) => v.value.useTooltip(n),
|
|
1221
|
+
onMouseleave: c[2] || (c[2] = (r) => v.value.killTooltip()),
|
|
1222
|
+
onClick: (r) => g("selectDatapoint", v.value.dataset.map((h) => ({
|
|
1209
1223
|
...h,
|
|
1210
|
-
value: h.values[
|
|
1224
|
+
value: h.values[n]
|
|
1211
1225
|
})))
|
|
1212
|
-
}, null, 44,
|
|
1226
|
+
}, null, 44, ja))), 256))
|
|
1213
1227
|
])
|
|
1214
1228
|
], 64)) : p("", !0),
|
|
1215
|
-
[A.LINE, A.BAR].includes(z.value) ? (a(), l("g",
|
|
1216
|
-
e.value.xAxisLabel && z.value === A.LINE ? (a(), l("g",
|
|
1229
|
+
[A.LINE, A.BAR].includes(z.value) ? (a(), l("g", Ga, [
|
|
1230
|
+
e.value.xAxisLabel && z.value === A.LINE ? (a(), l("g", Ha, [
|
|
1217
1231
|
_("text", {
|
|
1218
1232
|
"font-size": e.value.axisLabelsFontSize,
|
|
1219
1233
|
fill: e.value.color,
|
|
1220
1234
|
"text-anchor": "middle",
|
|
1221
1235
|
x: d.value.drawingArea.left + d.value.drawingArea.width / 2,
|
|
1222
|
-
y:
|
|
1223
|
-
}, T(e.value.xAxisLabel), 9,
|
|
1236
|
+
y: k.value.height - e.value.axisLabelsFontSize / 3
|
|
1237
|
+
}, T(e.value.xAxisLabel), 9, Xa)
|
|
1224
1238
|
])) : p("", !0),
|
|
1225
|
-
e.value.xAxisLabel && z.value === A.BAR ? (a(), l("g",
|
|
1239
|
+
e.value.xAxisLabel && z.value === A.BAR ? (a(), l("g", Za, [
|
|
1226
1240
|
_("text", {
|
|
1227
1241
|
"font-size": e.value.axisLabelsFontSize,
|
|
1228
1242
|
fill: e.value.color,
|
|
1229
1243
|
"text-anchor": "middle",
|
|
1230
1244
|
x: v.value.drawingArea.left + v.value.drawingArea.width / 2,
|
|
1231
|
-
y:
|
|
1232
|
-
}, T(e.value.xAxisLabel), 9,
|
|
1245
|
+
y: k.value.height - e.value.axisLabelsFontSize / 3
|
|
1246
|
+
}, T(e.value.xAxisLabel), 9, Ya)
|
|
1233
1247
|
])) : p("", !0),
|
|
1234
|
-
e.value.yAxisLabel && z.value === A.LINE ? (a(), l("g",
|
|
1248
|
+
e.value.yAxisLabel && z.value === A.LINE ? (a(), l("g", Ja, [
|
|
1235
1249
|
_("text", {
|
|
1236
1250
|
"font-size": e.value.axisLabelsFontSize,
|
|
1237
1251
|
fill: e.value.color,
|
|
1238
1252
|
transform: `translate(${e.value.axisLabelsFontSize}, ${d.value.drawingArea.top + d.value.drawingArea.height / 2}) rotate(-90)`,
|
|
1239
1253
|
"text-anchor": "middle"
|
|
1240
|
-
}, T(e.value.yAxisLabel), 9,
|
|
1254
|
+
}, T(e.value.yAxisLabel), 9, Qa)
|
|
1241
1255
|
])) : p("", !0),
|
|
1242
|
-
e.value.yAxisLabel && z.value === A.BAR ? (a(), l("g",
|
|
1256
|
+
e.value.yAxisLabel && z.value === A.BAR ? (a(), l("g", Ka, [
|
|
1243
1257
|
_("text", {
|
|
1244
1258
|
"font-size": e.value.axisLabelsFontSize,
|
|
1245
1259
|
fill: e.value.color,
|
|
1246
1260
|
transform: `translate(${e.value.axisLabelsFontSize}, ${v.value.drawingArea.top + v.value.drawingArea.height / 2}) rotate(-90)`,
|
|
1247
1261
|
"text-anchor": "middle"
|
|
1248
|
-
}, T(e.value.yAxisLabel), 9,
|
|
1262
|
+
}, T(e.value.yAxisLabel), 9, el)
|
|
1249
1263
|
])) : p("", !0)
|
|
1250
1264
|
])) : p("", !0)
|
|
1251
|
-
], 12,
|
|
1252
|
-
z.value ? p("", !0) : (a(),
|
|
1265
|
+
], 12, Mt)) : p("", !0),
|
|
1266
|
+
z.value ? p("", !0) : (a(), Ie($t, {
|
|
1253
1267
|
key: 3,
|
|
1254
1268
|
config: {
|
|
1255
1269
|
type: "line",
|
|
@@ -1267,46 +1281,46 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
1267
1281
|
}
|
|
1268
1282
|
}
|
|
1269
1283
|
}, null, 8, ["config"])),
|
|
1270
|
-
|
|
1271
|
-
D(
|
|
1284
|
+
u.$slots.watermark ? (a(), l("div", tl, [
|
|
1285
|
+
D(u.$slots, "watermark", J(ge({ isPrinting: f(ke) || f(be) })), void 0, !0)
|
|
1272
1286
|
])) : p("", !0),
|
|
1273
|
-
[A.BAR, A.LINE].includes(z.value) && e.value.zoomXy &&
|
|
1274
|
-
key: `slicer_${
|
|
1287
|
+
[A.BAR, A.LINE].includes(z.value) && e.value.zoomXy && y.value.maxSeriesLength > 1 ? (a(), l("div", {
|
|
1288
|
+
key: `slicer_${ye.value}`,
|
|
1275
1289
|
ref_key: "quickChartSlicer",
|
|
1276
1290
|
ref: re
|
|
1277
1291
|
}, [
|
|
1278
|
-
(a(),
|
|
1279
|
-
key: `slicer_${
|
|
1292
|
+
(a(), Ie(zt, {
|
|
1293
|
+
key: `slicer_${ye.value}`,
|
|
1280
1294
|
background: e.value.zoomColor,
|
|
1281
1295
|
borderColor: e.value.backgroundColor,
|
|
1282
1296
|
fontSize: e.value.zoomFontSize,
|
|
1283
1297
|
useResetSlot: e.value.zoomUseResetSlot,
|
|
1284
|
-
labelLeft: e.value.xyPeriods[
|
|
1285
|
-
labelRight: e.value.xyPeriods[
|
|
1298
|
+
labelLeft: e.value.xyPeriods[b.value.start] ? e.value.xyPeriods[b.value.start] : "",
|
|
1299
|
+
labelRight: e.value.xyPeriods[b.value.end - 1] ? e.value.xyPeriods[b.value.end - 1] : "",
|
|
1286
1300
|
textColor: e.value.color,
|
|
1287
1301
|
inputColor: e.value.zoomColor,
|
|
1288
1302
|
selectColor: e.value.zoomHighlightColor,
|
|
1289
|
-
max:
|
|
1303
|
+
max: y.value.maxSeriesLength,
|
|
1290
1304
|
min: 0,
|
|
1291
|
-
valueStart:
|
|
1292
|
-
valueEnd:
|
|
1305
|
+
valueStart: b.value.start,
|
|
1306
|
+
valueEnd: b.value.end,
|
|
1293
1307
|
smoothMinimap: e.value.zoomMinimap.smooth,
|
|
1294
1308
|
minimapSelectedColor: e.value.zoomMinimap.selectedColor,
|
|
1295
1309
|
minimapSelectedColorOpacity: e.value.zoomMinimap.selectedColorOpacity,
|
|
1296
1310
|
minimapSelectionRadius: e.value.zoomMinimap.selectionRadius,
|
|
1297
1311
|
minimapLineColor: e.value.zoomMinimap.lineColor,
|
|
1298
|
-
minimap:
|
|
1312
|
+
minimap: it.value,
|
|
1299
1313
|
minimapIndicatorColor: e.value.zoomMinimap.indicatorColor,
|
|
1300
1314
|
minimapSelectedIndex: Y.value,
|
|
1301
|
-
start:
|
|
1302
|
-
"onUpdate:start": c[3] || (c[3] = (t) =>
|
|
1303
|
-
end:
|
|
1304
|
-
"onUpdate:end": c[4] || (c[4] = (t) =>
|
|
1305
|
-
onReset:
|
|
1306
|
-
onTrapMouse:
|
|
1315
|
+
start: b.value.start,
|
|
1316
|
+
"onUpdate:start": c[3] || (c[3] = (t) => b.value.start = t),
|
|
1317
|
+
end: b.value.end,
|
|
1318
|
+
"onUpdate:end": c[4] || (c[4] = (t) => b.value.end = t),
|
|
1319
|
+
onReset: ot,
|
|
1320
|
+
onTrapMouse: lt
|
|
1307
1321
|
}, {
|
|
1308
1322
|
"reset-action": ae(({ reset: t }) => [
|
|
1309
|
-
D(
|
|
1323
|
+
D(u.$slots, "reset-action", J(ge({ reset: t })), void 0, !0)
|
|
1310
1324
|
]),
|
|
1311
1325
|
_: 3
|
|
1312
1326
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "smoothMinimap", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectionRadius", "minimapLineColor", "minimap", "minimapIndicatorColor", "minimapSelectedIndex", "start", "end"]))
|
|
@@ -1318,15 +1332,15 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
1318
1332
|
class: "vue-ui-quick-chart-legend",
|
|
1319
1333
|
style: F(`background:${e.value.backgroundColor};color:${e.value.color}`)
|
|
1320
1334
|
}, [
|
|
1321
|
-
z.value === A.DONUT ? (a(!0), l(m, { key: 0 }, L(C.value.legend, (t,
|
|
1335
|
+
z.value === A.DONUT ? (a(!0), l(m, { key: 0 }, L(C.value.legend, (t, n) => (a(), l("div", {
|
|
1322
1336
|
class: "vue-ui-quick-chart-legend-item",
|
|
1323
|
-
onClick: (
|
|
1324
|
-
|
|
1337
|
+
onClick: (r) => {
|
|
1338
|
+
at(t, C.value.dataset), g("selectLegend", t);
|
|
1325
1339
|
},
|
|
1326
1340
|
style: F(`cursor: ${C.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1327
1341
|
}, [
|
|
1328
|
-
e.value.useCustomLegend ? D(
|
|
1329
|
-
|
|
1342
|
+
e.value.useCustomLegend ? D(u.$slots, "legend", J(Ee({ key: 0 }, { legend: t })), void 0, !0) : (a(), l(m, { key: 1 }, [
|
|
1343
|
+
me(Le, {
|
|
1330
1344
|
name: e.value.legendIcon,
|
|
1331
1345
|
stroke: t.color,
|
|
1332
1346
|
size: e.value.legendIconSize
|
|
@@ -1345,12 +1359,12 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
1345
1359
|
s: e.value.valueSuffix,
|
|
1346
1360
|
r: e.value.dataLabelRoundingValue
|
|
1347
1361
|
}),
|
|
1348
|
-
{ datapoint: t, seriesIndex:
|
|
1362
|
+
{ datapoint: t, seriesIndex: n }
|
|
1349
1363
|
)), 5),
|
|
1350
1364
|
w.value.includes(t.id) ? (a(), l("span", {
|
|
1351
1365
|
key: 0,
|
|
1352
1366
|
style: F(`font-size:${e.value.legendFontSize}px`)
|
|
1353
|
-
}, " ( - % ) ", 4)) :
|
|
1367
|
+
}, " ( - % ) ", 4)) : _e.value ? (a(), l("span", {
|
|
1354
1368
|
key: 1,
|
|
1355
1369
|
style: F(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1356
1370
|
}, " ( - % ) ", 4)) : (a(), l("span", {
|
|
@@ -1362,16 +1376,16 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
1362
1376
|
r: e.value.dataLabelRoundingPercentage
|
|
1363
1377
|
})) + ") ", 5))
|
|
1364
1378
|
], 64))
|
|
1365
|
-
], 12,
|
|
1366
|
-
z.value === A.LINE ? (a(!0), l(m, { key: 1 }, L(d.value.legend, (t,
|
|
1379
|
+
], 12, al))), 256)) : p("", !0),
|
|
1380
|
+
z.value === A.LINE ? (a(!0), l(m, { key: 1 }, L(d.value.legend, (t, n) => (a(), l("div", {
|
|
1367
1381
|
class: "vue-ui-quick-chart-legend-item",
|
|
1368
|
-
onClick: (
|
|
1369
|
-
|
|
1382
|
+
onClick: (r) => {
|
|
1383
|
+
Ve(t.id, d.value.legend.length - 1), g("selectLegend", t);
|
|
1370
1384
|
},
|
|
1371
1385
|
style: F(`cursor: ${d.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1372
1386
|
}, [
|
|
1373
|
-
e.value.useCustomLegend ? D(
|
|
1374
|
-
|
|
1387
|
+
e.value.useCustomLegend ? D(u.$slots, "legend", J(Ee({ key: 0 }, { legend: t })), void 0, !0) : (a(), l(m, { key: 1 }, [
|
|
1388
|
+
me(Le, {
|
|
1375
1389
|
name: e.value.legendIcon,
|
|
1376
1390
|
stroke: t.color,
|
|
1377
1391
|
size: e.value.legendIconSize
|
|
@@ -1380,16 +1394,16 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
1380
1394
|
style: F(`font-size:${e.value.legendFontSize}px`)
|
|
1381
1395
|
}, T(t.name), 5)
|
|
1382
1396
|
], 64))
|
|
1383
|
-
], 12,
|
|
1384
|
-
z.value === A.BAR ? (a(!0), l(m, { key: 2 }, L(v.value.legend, (t,
|
|
1397
|
+
], 12, ll))), 256)) : p("", !0),
|
|
1398
|
+
z.value === A.BAR ? (a(!0), l(m, { key: 2 }, L(v.value.legend, (t, n) => (a(), l("div", {
|
|
1385
1399
|
class: "vue-ui-quick-chart-legend-item",
|
|
1386
|
-
onClick: (
|
|
1387
|
-
|
|
1400
|
+
onClick: (r) => {
|
|
1401
|
+
Ve(t.id, v.value.legend.length - 1), g("selectLegend", t);
|
|
1388
1402
|
},
|
|
1389
1403
|
style: F(`cursor: ${v.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1390
1404
|
}, [
|
|
1391
|
-
e.value.useCustomLegend ? D(
|
|
1392
|
-
|
|
1405
|
+
e.value.useCustomLegend ? D(u.$slots, "legend", J(Ee({ key: 0 }, { legend: t })), void 0, !0) : (a(), l(m, { key: 1 }, [
|
|
1406
|
+
me(Le, {
|
|
1393
1407
|
name: e.value.legendIcon,
|
|
1394
1408
|
stroke: t.color,
|
|
1395
1409
|
size: e.value.legendIconSize
|
|
@@ -1398,10 +1412,10 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
1398
1412
|
style: F(`font-size:${e.value.legendFontSize}px`)
|
|
1399
1413
|
}, T(t.name), 5)
|
|
1400
1414
|
], 64))
|
|
1401
|
-
], 12,
|
|
1415
|
+
], 12, ol))), 256)) : p("", !0)
|
|
1402
1416
|
], 4)) : p("", !0),
|
|
1403
|
-
|
|
1404
|
-
show:
|
|
1417
|
+
me(_t, {
|
|
1418
|
+
show: Se.value.showTooltip && G.value,
|
|
1405
1419
|
backgroundColor: e.value.backgroundColor,
|
|
1406
1420
|
color: e.value.color,
|
|
1407
1421
|
borderRadius: e.value.tooltipBorderRadius,
|
|
@@ -1413,25 +1427,25 @@ const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = [
|
|
|
1413
1427
|
offsetY: e.value.tooltipOffsetY,
|
|
1414
1428
|
parent: j.value,
|
|
1415
1429
|
content: Q.value,
|
|
1416
|
-
isCustom: f(
|
|
1430
|
+
isCustom: f(Ae)(e.value.tooltipCustomFormat)
|
|
1417
1431
|
}, {
|
|
1418
1432
|
"tooltip-before": ae(() => [
|
|
1419
|
-
D(
|
|
1433
|
+
D(u.$slots, "tooltip-before", J(ge({ ...se.value })), void 0, !0)
|
|
1420
1434
|
]),
|
|
1421
1435
|
"tooltip-after": ae(() => [
|
|
1422
|
-
D(
|
|
1436
|
+
D(u.$slots, "tooltip-after", J(ge({ ...se.value })), void 0, !0)
|
|
1423
1437
|
]),
|
|
1424
1438
|
_: 3
|
|
1425
1439
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"])
|
|
1426
|
-
], 14,
|
|
1427
|
-
|
|
1440
|
+
], 14, Ft)) : (a(), l("div", il, [
|
|
1441
|
+
me(Le, {
|
|
1428
1442
|
name: "circleCancel",
|
|
1429
1443
|
stroke: "red"
|
|
1430
1444
|
}),
|
|
1431
|
-
|
|
1445
|
+
ul
|
|
1432
1446
|
]));
|
|
1433
1447
|
}
|
|
1434
|
-
},
|
|
1448
|
+
}, xl = /* @__PURE__ */ Ct(nl, [["__scopeId", "data-v-0b4fa3fa"]]);
|
|
1435
1449
|
export {
|
|
1436
|
-
|
|
1450
|
+
xl as default
|
|
1437
1451
|
};
|