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