vue-data-ui 3.0.0-next.26 → 3.0.0-next.27
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-CsNgq2ZF.js → Arrow-RGDVmFSH.js} +1 -1
- package/dist/{BaseDraggableDialog-yqJAu5Cf.js → BaseDraggableDialog-2MH5hxMc.js} +2 -2
- package/dist/{BaseIcon-CIPCGWyZ.js → BaseIcon-DLJ5Lzvf.js} +1 -1
- package/dist/{ColorPicker-CzNlpUdq.js → ColorPicker-uH4pBeoc.js} +2 -2
- package/dist/{DataTable-6ZKiedr4.js → DataTable-DWXGn13M.js} +2 -2
- package/dist/{Legend-B0mt4iJx.js → Legend-XvLWu-U4.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DLef79mr.js → NonSvgPenAndPaper-DY6-8nWM.js} +3 -3
- package/dist/{PackageVersion-DF_M_33r.js → PackageVersion-CcyOrmqr.js} +1 -1
- package/dist/{PenAndPaper-i2SC47RS.js → PenAndPaper-S1h1sM_v.js} +3 -3
- package/dist/{Shape-XBUldhbb.js → Shape-B2NNkVEU.js} +1 -1
- package/dist/{Slicer-CoD6AOHL.js → Slicer-C2128jWm.js} +2 -2
- package/dist/{SparkTooltip-BgBRqkPH.js → SparkTooltip-B0IgrAiC.js} +1 -1
- package/dist/{Title-IaxR8U-N.js → Title-BT7bS0eb.js} +1 -1
- package/dist/{Tooltip-DCh0ZmS5.js → Tooltip-CbaafXw_.js} +1 -1
- package/dist/{UserOptions-J_zxxPnc.js → UserOptions-C9lB05jb.js} +2 -2
- package/dist/{dom-to-png-Bm-vMd2x.js → dom-to-png-B5f_cRVB.js} +1 -1
- package/dist/{img-B3U0-8wy.js → img-BScthXJW.js} +1 -1
- package/dist/{index-gToq10k7.js → index-DTJkgcxh.js} +341 -337
- package/dist/{pdf-BdjzkOlO.js → pdf-DEfty6-G.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +3 -2
- package/dist/types/vue-data-ui.d.ts +3 -2
- package/dist/{useNestedProp-gmapANmc.js → useNestedProp-DvwKj8Zn.js} +1 -1
- package/dist/{usePrinter-CbZEI2_c.js → usePrinter-CbokYjoB.js} +2 -2
- package/dist/{vue-data-ui-CZVJfC0E.js → vue-data-ui-BubXK-EN.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-MTNEP9CL.js → vue-ui-3d-bar-BgbiwMsJ.js} +6 -6
- package/dist/{vue-ui-accordion-DLihDfed.js → vue-ui-accordion-BDuLBbkX.js} +3 -3
- package/dist/{vue-ui-age-pyramid-IY3QdXfK.js → vue-ui-age-pyramid-B8esFXAj.js} +6 -6
- package/dist/{vue-ui-annotator-CJeQgt2n.js → vue-ui-annotator-BM2Fxwyn.js} +2 -2
- package/dist/{vue-ui-bullet-DGldX5sC.js → vue-ui-bullet-C5r2tlAw.js} +7 -7
- package/dist/{vue-ui-candlestick-C-HIjwPy.js → vue-ui-candlestick-DEqKEVdy.js} +149 -150
- package/dist/{vue-ui-carousel-table-BmiJoBXA.js → vue-ui-carousel-table-CHABZSa7.js} +4 -4
- package/dist/{vue-ui-chestnut-CZlbhQrJ.js → vue-ui-chestnut-CKmXKQ61.js} +5 -5
- package/dist/{vue-ui-chord-Dq4rskRf.js → vue-ui-chord-DW2ndivp.js} +8 -8
- package/dist/{vue-ui-circle-pack-DW9-8rGV.js → vue-ui-circle-pack-BKlgiMRS.js} +6 -6
- package/dist/{vue-ui-cursor-D0tCtX4f.js → vue-ui-cursor-BpctNjDR.js} +2 -2
- package/dist/{vue-ui-dashboard-Bk_MJlYy.js → vue-ui-dashboard-C304-EeY.js} +62 -62
- package/dist/{vue-ui-digits-BA_tNRkj.js → vue-ui-digits-anpApSWe.js} +2 -2
- package/dist/{vue-ui-donut-DzAeK2TE.js → vue-ui-donut-JzjQTiDx.js} +8 -8
- package/dist/vue-ui-donut-evolution-nQbgWXs5.js +1072 -0
- package/dist/{vue-ui-dumbbell-_YZFjBH6.js → vue-ui-dumbbell-BgnmrlkA.js} +7 -7
- package/dist/{vue-ui-flow-C7aLXJTA.js → vue-ui-flow-DEPrQA-w.js} +7 -7
- package/dist/{vue-ui-funnel-B_3QpOUU.js → vue-ui-funnel-ojf0srk6.js} +6 -6
- package/dist/{vue-ui-galaxy-DuU1fS4U.js → vue-ui-galaxy-CYP_NOuc.js} +5 -5
- package/dist/{vue-ui-gauge-_cAQb9Hn.js → vue-ui-gauge-PZkGA3xT.js} +6 -6
- package/dist/{vue-ui-gizmo-DqYMjhpX.js → vue-ui-gizmo-BVEf1l02.js} +3 -3
- package/dist/{vue-ui-heatmap-BkU3wZkK.js → vue-ui-heatmap-C0QKWdB2.js} +7 -7
- package/dist/{vue-ui-history-plot-C83pTqnc.js → vue-ui-history-plot-DL6znOA2.js} +7 -7
- package/dist/{vue-ui-kpi-CWu4hx68.js → vue-ui-kpi-k901VoIN.js} +3 -3
- package/dist/{vue-ui-mini-loader-Cw48lkNp.js → vue-ui-mini-loader-dO16jdj9.js} +2 -2
- package/dist/{vue-ui-molecule-CWNMsooa.js → vue-ui-molecule-CgBLfrXa.js} +5 -5
- package/dist/{vue-ui-mood-radar-hxw5vhXc.js → vue-ui-mood-radar-BxwR2Ez7.js} +7 -7
- package/dist/{vue-ui-nested-donuts-SCEIJRnl.js → vue-ui-nested-donuts-BIjRulQt.js} +9 -9
- package/dist/{vue-ui-onion-xkpaiVLl.js → vue-ui-onion-CkoPdA0-.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-DP8c7Zy2.js → vue-ui-parallel-coordinate-plot-CHQ4Brih.js} +8 -8
- package/dist/{vue-ui-quadrant-YoAP5U9i.js → vue-ui-quadrant-CEQTH_Vf.js} +8 -8
- package/dist/{vue-ui-quick-chart-QQd0jAgp.js → vue-ui-quick-chart-DIoqKBCM.js} +265 -263
- package/dist/{vue-ui-radar-2aBWeu33.js → vue-ui-radar-Cft9wyK8.js} +7 -7
- package/dist/{vue-ui-rating-cevrLC7m.js → vue-ui-rating-OARiI9ot.js} +2 -2
- package/dist/{vue-ui-relation-circle-pfHEqPqz.js → vue-ui-relation-circle-B-Zb1LQY.js} +6 -6
- package/dist/{vue-ui-ridgeline-8Fi_HR1k.js → vue-ui-ridgeline-v7NEDfRs.js} +8 -8
- package/dist/{vue-ui-rings-CqBfRCcH.js → vue-ui-rings-BQwfTTzr.js} +8 -8
- package/dist/{vue-ui-scatter-BslmJ4rg.js → vue-ui-scatter-CHQCbV8M.js} +8 -8
- package/dist/{vue-ui-skeleton-DXITY4Wb.js → vue-ui-skeleton-CHJxsFpK.js} +3 -3
- package/dist/{vue-ui-smiley-2m2GnNUB.js → vue-ui-smiley-CsWC9IZ1.js} +2 -2
- package/dist/{vue-ui-spark-trend-Bpp-odIP.js → vue-ui-spark-trend-BuamubwE.js} +3 -3
- package/dist/{vue-ui-sparkbar-Dqen9icZ.js → vue-ui-sparkbar-BHGRAUXV.js} +3 -3
- package/dist/{vue-ui-sparkgauge-C9Dlt6iV.js → vue-ui-sparkgauge-DUnltuDi.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-D-MlMk-Q.js → vue-ui-sparkhistogram-BMedlapo.js} +4 -4
- package/dist/{vue-ui-sparkline-BZA1s4pf.js → vue-ui-sparkline-BHNwaMiS.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BB-tBLQd.js → vue-ui-sparkstackbar-vRQz_uQJ.js} +3 -3
- package/dist/{vue-ui-stackbar-DEcZ471x.js → vue-ui-stackbar-CQ6dTUhn.js} +328 -329
- package/dist/{vue-ui-strip-plot-BNPYL2hl.js → vue-ui-strip-plot-CO2CPtr7.js} +7 -7
- package/dist/{vue-ui-table-BDn61l1T.js → vue-ui-table-BLsZesaa.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DcVDM0D7.js → vue-ui-table-heatmap-CGDBekDd.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CpF2AiH0.js → vue-ui-table-sparkline-DDBnNFfS.js} +4 -4
- package/dist/{vue-ui-thermometer-DW90pE_h.js → vue-ui-thermometer-DCgjIlYn.js} +6 -6
- package/dist/{vue-ui-timer-DnzpNY0x.js → vue-ui-timer-BUTGgiXL.js} +5 -5
- package/dist/{vue-ui-tiremarks-CNHI4MuH.js → vue-ui-tiremarks-Dbwy0DLv.js} +6 -6
- package/dist/{vue-ui-treemap-CWWLDBEO.js → vue-ui-treemap-fZnaJFLV.js} +8 -8
- package/dist/{vue-ui-vertical-bar-B2GiFfDO.js → vue-ui-vertical-bar-CC1RSDNH.js} +9 -9
- package/dist/{vue-ui-waffle-CsyXZFOd.js → vue-ui-waffle-yCHIWPVz.js} +8 -8
- package/dist/{vue-ui-wheel-DOrEgq2T.js → vue-ui-wheel-BgCEnXux.js} +6 -6
- package/dist/{vue-ui-word-cloud-CUEMogkJ.js → vue-ui-word-cloud-DdYN7hGc.js} +6 -6
- package/dist/{vue-ui-world-C2xiB-yS.js → vue-ui-world-Drt14jLg.js} +6 -6
- package/dist/{vue-ui-xy-cahWUi-P.js → vue-ui-xy-E2hScHc-.js} +274 -268
- package/dist/{vue-ui-xy-canvas-BzTkP8HC.js → vue-ui-xy-canvas-DYaSIflg.js} +251 -252
- package/package.json +1 -1
- package/dist/vue-ui-donut-evolution-CZ2mtt3z.js +0 -1034
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as Mt, c as Ft, t as Nt, p as q, a as Ut, C as gt, b as Bt, G as Dt, e as Vt, d as
|
|
1
|
+
import { defineAsyncComponent as ce, ref as z, computed as U, watch as Be, shallowRef as ht, onMounted as Tt, onBeforeUnmount as Pt, nextTick as ft, createElementBlock as l, openBlock as a, normalizeStyle as R, normalizeClass as he, createBlock as Re, createCommentVNode as g, createVNode as fe, unref as f, createSlots as Rt, withCtx as G, renderSlot as M, normalizeProps as ie, guardReactiveProps as ue, toDisplayString as O, createElementVNode as _, Fragment as m, renderList as $, mergeProps as De } from "vue";
|
|
2
|
+
import { u as Mt, c as Ft, t as Nt, p as q, a as Ut, C as gt, b as Bt, G as Dt, e as Vt, d as Ve, m as qt, D as mt, X as Ht, j as Wt, k as qe, n as _e, i as X, f as D, I as jt, V as pt, v as Z, x as Me, y as He } from "./index-DTJkgcxh.js";
|
|
3
3
|
import { t as Gt, u as Xt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as yt } from "./useNestedProp-
|
|
5
|
-
import { u as Zt } from "./usePrinter-
|
|
4
|
+
import { u as yt } from "./useNestedProp-DvwKj8Zn.js";
|
|
5
|
+
import { u as Zt } from "./usePrinter-CbokYjoB.js";
|
|
6
6
|
import { u as Yt } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
-
import { S as Jt } from "./Slicer-
|
|
7
|
+
import { S as Jt } from "./Slicer-C2128jWm.js";
|
|
8
8
|
import { u as Qt } from "./useTimeLabels-DFkUfjfs.js";
|
|
9
|
-
import Kt from "./img-
|
|
9
|
+
import Kt from "./img-BScthXJW.js";
|
|
10
10
|
import { _ as ea } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
11
|
const A = {
|
|
12
12
|
LINE: "LINE",
|
|
@@ -15,18 +15,18 @@ const A = {
|
|
|
15
15
|
}, ta = ["SERIE", "SERIES", "DATA", "VALUE", "VALUES", "NUM"];
|
|
16
16
|
function aa({ dataset: c, barLineSwitch: C = 6 }) {
|
|
17
17
|
let y = null, T = null, H = 0;
|
|
18
|
-
if ((typeof c == "number" || typeof c == "string") && console.warn(`The provided dataset (${c}) is not sufficient to build a chart`),
|
|
18
|
+
if ((typeof c == "number" || typeof c == "string") && console.warn(`The provided dataset (${c}) is not sufficient to build a chart`), Le(c) && (Y(c) && (c.length < C ? y = A.BAR : y = A.LINE, T = c, H = c.length), Fe(c))) {
|
|
19
19
|
if (!oa(c))
|
|
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
|
-
const
|
|
22
|
-
if (!
|
|
21
|
+
const pe = Object.keys(c[0]), ze = Object.values(c[0]);
|
|
22
|
+
if (!pe.some((F) => na(F)))
|
|
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
|
-
xt(
|
|
24
|
+
xt(ze, (F) => typeof F == "number") && (y = A.DONUT, T = c), xt(ze, (F) => Array.isArray(F) && Y(F)) && (kt(c) > C ? y = A.LINE : y = A.BAR, H = kt(c), T = c.map((F) => ({
|
|
25
25
|
...F,
|
|
26
26
|
data: ia(F, (B) => Y(B))
|
|
27
27
|
}))), c = c.map((F) => bt(F)), T = T.map((F) => bt(F));
|
|
28
28
|
}
|
|
29
|
-
return
|
|
29
|
+
return Le(c) && [...new Set(c.flatMap((pe) => Array.isArray(pe)))][0], {
|
|
30
30
|
dataset: c,
|
|
31
31
|
type: y,
|
|
32
32
|
usableDataset: T,
|
|
@@ -34,26 +34,26 @@ function aa({ dataset: c, barLineSwitch: C = 6 }) {
|
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
function St(c) {
|
|
37
|
-
return !c ||
|
|
37
|
+
return !c || Le(c) && !c.length;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function Le(c) {
|
|
40
40
|
return Array.isArray(c);
|
|
41
41
|
}
|
|
42
42
|
function Y(c) {
|
|
43
|
-
if (!
|
|
43
|
+
if (!Le(c) || St(c)) return !1;
|
|
44
44
|
const C = c.map((y) => Number(y));
|
|
45
45
|
return ![...new Set(C.flatMap((y) => typeof y == "number" && !isNaN(y)))].includes(!1);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
return !
|
|
47
|
+
function Fe(c) {
|
|
48
|
+
return !Le(c) || St(c) || !![...new Set(c.flatMap((y) => typeof y == "object" && !Array.isArray(y)))].includes(!1) ? !1 : !c.map((y) => Object.keys(y).length > 0).includes(!1);
|
|
49
49
|
}
|
|
50
50
|
function la(c, C) {
|
|
51
51
|
const y = Object.keys(c).sort(), T = Object.keys(C).sort();
|
|
52
52
|
if (y.length !== T.length)
|
|
53
53
|
return !1;
|
|
54
54
|
for (let H = 0; H < y.length; H += 1) {
|
|
55
|
-
const
|
|
56
|
-
if (
|
|
55
|
+
const ge = y[H], me = T[H];
|
|
56
|
+
if (ge !== me || typeof c[ge] != typeof C[me])
|
|
57
57
|
return !1;
|
|
58
58
|
}
|
|
59
59
|
return !0;
|
|
@@ -153,33 +153,33 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
153
153
|
},
|
|
154
154
|
emits: ["selectDatapoint", "selectLegend"],
|
|
155
155
|
setup(c, { expose: C, emit: y }) {
|
|
156
|
-
const T =
|
|
157
|
-
get: () =>
|
|
156
|
+
const T = ce(() => import("./BaseIcon-DLJ5Lzvf.js")), H = ce(() => import("./PackageVersion-CcyOrmqr.js")), ge = ce(() => import("./PenAndPaper-S1h1sM_v.js")), me = ce(() => import("./vue-ui-skeleton-CHJxsFpK.js")), pe = ce(() => import("./Tooltip-CbaafXw_.js")), ze = ce(() => import("./UserOptions-C9lB05jb.js")), { vue_ui_quick_chart: F } = Mt(), B = c, J = z(null), We = z(null), je = z(null), Ge = z(null), Q = z(Ft()), te = z(!1), ye = z(null), ae = z(""), W = z(null), Xe = z(null), Ze = z(null), w = z([]), Ye = z(0), $e = z(0), e = U({
|
|
157
|
+
get: () => et(),
|
|
158
158
|
set: (o) => o
|
|
159
|
-
}), { svgRef:
|
|
160
|
-
function
|
|
161
|
-
wt.value && (
|
|
159
|
+
}), { svgRef: Je } = Yt({ config: { text: e.value.title } }), wt = U(() => e.value.showUserOptionsOnChartHover), Qe = U(() => e.value.keepUserOptionsStateOnChartLeave), Ce = z(!e.value.showUserOptionsOnChartHover);
|
|
160
|
+
function Ke(o = !1) {
|
|
161
|
+
wt.value && (Ce.value = o);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function et() {
|
|
164
164
|
const o = yt({
|
|
165
165
|
userConfig: B.config,
|
|
166
166
|
defaultConfig: F
|
|
167
167
|
});
|
|
168
|
-
let
|
|
169
|
-
return o.theme ?
|
|
168
|
+
let r = {};
|
|
169
|
+
return o.theme ? r = {
|
|
170
170
|
...yt({
|
|
171
171
|
userConfig: Ut.vue_ui_quick_chart[o.theme] || B.config,
|
|
172
172
|
defaultConfig: o
|
|
173
173
|
}),
|
|
174
174
|
customPalette: Nt[o.theme] || q
|
|
175
|
-
} :
|
|
175
|
+
} : r = o, B.config && gt(B.config, "zoomStartIndex") ? r.zoomStartIndex = B.config.zoomStartIndex : r.zoomStartIndex = null, B.config && gt(B.config, "zoomEndIndex") ? r.zoomEndIndex = B.config.zoomEndIndex : r.zoomEndIndex = null, r;
|
|
176
176
|
}
|
|
177
|
-
|
|
178
|
-
e.value =
|
|
179
|
-
}, { deep: !0 }),
|
|
180
|
-
p.value =
|
|
177
|
+
Be(() => B.config, (o) => {
|
|
178
|
+
e.value = et(), b.value.width = e.value.width, b.value.height = e.value.height, Ce.value = !e.value.showUserOptionsOnChartHover, lt(), be.value.showTooltip = e.value.showTooltip;
|
|
179
|
+
}, { deep: !0 }), Be(() => B.dataset, (o) => {
|
|
180
|
+
p.value = ke.value, x.value.start = 0, x.value.end = p.value.maxSeriesLength, $e.value += 1;
|
|
181
181
|
}, { deep: !0 });
|
|
182
|
-
const
|
|
182
|
+
const xe = U(() => Bt(e.value.customPalette)), re = y, ke = U(() => {
|
|
183
183
|
const o = aa({ dataset: Dt(B.dataset, [
|
|
184
184
|
"serie",
|
|
185
185
|
"series",
|
|
@@ -189,44 +189,44 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
189
189
|
"num"
|
|
190
190
|
]), barLineSwitch: e.value.chartIsBarUnderDatasetLength });
|
|
191
191
|
return o || console.error("VueUiQuickChart : Dataset is not processable"), o;
|
|
192
|
-
}), p = z(
|
|
193
|
-
|
|
192
|
+
}), p = z(ke.value), At = U(() => !!p.value), L = U(() => p.value ? p.value.type : null);
|
|
193
|
+
Be(() => L.value, (o) => {
|
|
194
194
|
o || Vt({
|
|
195
195
|
componentName: "VueUiQuickChart",
|
|
196
196
|
type: "dataset"
|
|
197
197
|
});
|
|
198
198
|
}, { immediate: !0 });
|
|
199
|
-
const { isPrinting:
|
|
199
|
+
const { isPrinting: Ie, isImaging: Ee, generatePdf: tt, generateImage: at } = Zt({
|
|
200
200
|
elementId: `${L.value}_${Q.value}`,
|
|
201
201
|
fileName: e.value.title || L.value,
|
|
202
202
|
options: e.value.userOptionsPrint
|
|
203
203
|
}), _t = U(() => e.value.showUserOptions && !e.value.title), b = z({
|
|
204
204
|
width: e.value.width,
|
|
205
205
|
height: e.value.height
|
|
206
|
-
}),
|
|
206
|
+
}), be = z({
|
|
207
207
|
showTooltip: e.value.showTooltip
|
|
208
|
-
}), K =
|
|
208
|
+
}), K = ht(null), se = ht(null);
|
|
209
209
|
Tt(() => {
|
|
210
|
-
|
|
210
|
+
lt();
|
|
211
211
|
});
|
|
212
|
-
function
|
|
212
|
+
function lt() {
|
|
213
213
|
if (e.value.responsive) {
|
|
214
214
|
const o = Gt(() => {
|
|
215
|
-
const { width:
|
|
215
|
+
const { width: r, height: t } = Xt({
|
|
216
216
|
chart: J.value,
|
|
217
|
-
title: e.value.title ?
|
|
218
|
-
legend: e.value.showLegend ?
|
|
219
|
-
slicer: [A.BAR, A.LINE].includes(L.value) && e.value.zoomXy && p.value.maxSeriesLength > 1 ?
|
|
220
|
-
source:
|
|
221
|
-
noTitle:
|
|
217
|
+
title: e.value.title ? We.value : null,
|
|
218
|
+
legend: e.value.showLegend ? je.value : null,
|
|
219
|
+
slicer: [A.BAR, A.LINE].includes(L.value) && e.value.zoomXy && p.value.maxSeriesLength > 1 ? Ge.value : null,
|
|
220
|
+
source: Xe.value,
|
|
221
|
+
noTitle: Ze.value
|
|
222
222
|
});
|
|
223
223
|
requestAnimationFrame(() => {
|
|
224
|
-
b.value.width =
|
|
224
|
+
b.value.width = r, b.value.height = t;
|
|
225
225
|
});
|
|
226
226
|
});
|
|
227
227
|
K.value && (se.value && K.value.unobserve(se.value), K.value.disconnect()), K.value = new ResizeObserver(o), se.value = J.value.parentNode, K.value.observe(se.value);
|
|
228
228
|
}
|
|
229
|
-
|
|
229
|
+
vt();
|
|
230
230
|
}
|
|
231
231
|
Pt(() => {
|
|
232
232
|
K.value && (se.value && K.value.unobserve(se.value), K.value.disconnect());
|
|
@@ -243,23 +243,23 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
243
243
|
return `0 0 ${b.value.width <= 0 ? 10 : b.value.width} ${b.value.height <= 0 ? 10 : b.value.height}`;
|
|
244
244
|
}
|
|
245
245
|
});
|
|
246
|
-
function
|
|
247
|
-
return [...o].map((
|
|
246
|
+
function ot(o) {
|
|
247
|
+
return [...o].map((r) => r.value).reduce((r, t) => r + t, 0);
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function Se(o) {
|
|
250
250
|
return e.value.blurOnHover && ![null, void 0].includes(W.value) && W.value !== o ? `url(#blur_${Q.value})` : "";
|
|
251
251
|
}
|
|
252
|
-
function
|
|
253
|
-
w.value.includes(o) ? w.value = w.value.filter((t) => t !== o) : w.value.length <
|
|
252
|
+
function nt(o, r) {
|
|
253
|
+
w.value.includes(o) ? w.value = w.value.filter((t) => t !== o) : w.value.length < r && w.value.push(o);
|
|
254
254
|
}
|
|
255
|
-
const
|
|
256
|
-
function zt(o,
|
|
257
|
-
|
|
255
|
+
const it = z(null), ut = z(null), Oe = z(!1);
|
|
256
|
+
function zt(o, r) {
|
|
257
|
+
Oe.value = !0;
|
|
258
258
|
let t = o.value;
|
|
259
|
-
const u =
|
|
259
|
+
const u = ke.value.dataset.find((s, h) => o.id === `donut_${h}`).VALUE;
|
|
260
260
|
if (w.value.includes(o.id)) {
|
|
261
|
-
let
|
|
262
|
-
t > u ? (
|
|
261
|
+
let s = function() {
|
|
262
|
+
t > u ? (Oe.value = !1, cancelAnimationFrame(ut.value), p.value = {
|
|
263
263
|
...p.value,
|
|
264
264
|
dataset: p.value.dataset.map((h, P) => o.id === `donut_${P}` ? {
|
|
265
265
|
...h,
|
|
@@ -273,12 +273,12 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
273
273
|
value: t,
|
|
274
274
|
VALUE: t
|
|
275
275
|
} : h)
|
|
276
|
-
},
|
|
276
|
+
}, ut.value = requestAnimationFrame(s));
|
|
277
277
|
};
|
|
278
|
-
w.value = w.value.filter((h) => h !== o.id),
|
|
279
|
-
} else if (
|
|
280
|
-
let
|
|
281
|
-
t < u / 100 ? (
|
|
278
|
+
w.value = w.value.filter((h) => h !== o.id), s();
|
|
279
|
+
} else if (r.length > 1) {
|
|
280
|
+
let s = function() {
|
|
281
|
+
t < u / 100 ? (Oe.value = !1, cancelAnimationFrame(it.value), w.value.push(o.id), p.value = {
|
|
282
282
|
...p.value,
|
|
283
283
|
dataset: p.value.dataset.map((h, P) => o.id === `donut_${P}` ? {
|
|
284
284
|
...h,
|
|
@@ -292,16 +292,16 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
292
292
|
value: t,
|
|
293
293
|
VALUE: t
|
|
294
294
|
} : h)
|
|
295
|
-
},
|
|
295
|
+
}, it.value = requestAnimationFrame(s));
|
|
296
296
|
};
|
|
297
|
-
|
|
297
|
+
s();
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
const j = z(null);
|
|
301
301
|
function $t(o) {
|
|
302
302
|
j.value = o;
|
|
303
303
|
}
|
|
304
|
-
const
|
|
304
|
+
const rt = U(() => e.value.donutThicknessRatio < 0.15 ? 0.15 : e.value.donutThicknessRatio > 0.4 ? 0.4 : e.value.donutThicknessRatio), I = U(() => {
|
|
305
305
|
if (L.value !== A.DONUT) return null;
|
|
306
306
|
const o = p.value.dataset.map((n, i) => ({
|
|
307
307
|
...n,
|
|
@@ -310,12 +310,12 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
310
310
|
id: `donut_${i}`
|
|
311
311
|
})).map((n, i) => ({
|
|
312
312
|
...n,
|
|
313
|
-
color: n.COLOR ?
|
|
313
|
+
color: n.COLOR ? Ve(n.COLOR) : xe.value[i + e.value.paletteStartIndex] || q[i + e.value.paletteStartIndex] || q[(i + e.value.paletteStartIndex) % q.length],
|
|
314
314
|
immutableValue: n.value
|
|
315
315
|
}));
|
|
316
|
-
function
|
|
316
|
+
function r(n, i) {
|
|
317
317
|
return D({
|
|
318
|
-
v: isNaN(n.value /
|
|
318
|
+
v: isNaN(n.value / ot(i)) ? 0 : n.value / ot(i) * 100,
|
|
319
319
|
s: "%",
|
|
320
320
|
r: e.value.dataLabelRoundingPercentage
|
|
321
321
|
});
|
|
@@ -324,13 +324,13 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
324
324
|
return n.proportion * 100 > e.value.donutHideLabelUnderPercentage;
|
|
325
325
|
}
|
|
326
326
|
function u(n, i) {
|
|
327
|
-
const S =
|
|
327
|
+
const S = ke.value.dataset.find((E, N) => `donut_${N}` === n).VALUE;
|
|
328
328
|
return Math.abs(String(Number(S.toFixed(0))).length - String(Number(i.toFixed(0))).length);
|
|
329
329
|
}
|
|
330
|
-
function
|
|
331
|
-
|
|
330
|
+
function s({ datapoint: n, seriesIndex: i }) {
|
|
331
|
+
ye.value = { datapoint: n, seriesIndex: i, config: e.value, dataset: o }, W.value = n.id;
|
|
332
332
|
const S = e.value.tooltipCustomFormat;
|
|
333
|
-
if (
|
|
333
|
+
if (Me(S) && He(() => S({
|
|
334
334
|
datapoint: n,
|
|
335
335
|
seriesIndex: i,
|
|
336
336
|
series: o,
|
|
@@ -364,29 +364,29 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
364
364
|
const P = {
|
|
365
365
|
centerX: b.value.width / 2,
|
|
366
366
|
centerY: b.value.height / 2
|
|
367
|
-
}, V = o.filter((n) => !w.value.includes(n.id)).map((n) => n.value || 0).reduce((n, i) => n + i, 0),
|
|
367
|
+
}, V = o.filter((n) => !w.value.includes(n.id)).map((n) => n.value || 0).reduce((n, i) => n + i, 0), ve = o.map((n, i) => ({
|
|
368
368
|
...n,
|
|
369
369
|
proportion: (n.value || 0) / V,
|
|
370
370
|
value: n.value || 0,
|
|
371
|
-
absoluteValue:
|
|
372
|
-
})), le = b.value.width / 2,
|
|
371
|
+
absoluteValue: ke.value.dataset.find((S, k) => `donut_${k}` === n.id).VALUE
|
|
372
|
+
})), le = b.value.width / 2, de = b.value.height / 2, oe = b.value.height * e.value.donutRadiusRatio;
|
|
373
373
|
return {
|
|
374
|
-
dataset:
|
|
375
|
-
legend:
|
|
374
|
+
dataset: ve.filter((n) => !w.value.includes(n.id)),
|
|
375
|
+
legend: ve,
|
|
376
376
|
drawingArea: P,
|
|
377
|
-
displayArcPercentage:
|
|
377
|
+
displayArcPercentage: r,
|
|
378
378
|
isArcBigEnough: t,
|
|
379
|
-
useTooltip:
|
|
379
|
+
useTooltip: s,
|
|
380
380
|
killTooltip: h,
|
|
381
381
|
getSpaces: u,
|
|
382
382
|
total: V,
|
|
383
383
|
cx: le,
|
|
384
|
-
cy:
|
|
384
|
+
cy: de,
|
|
385
385
|
radius: oe,
|
|
386
386
|
chart: qt(
|
|
387
387
|
{ series: o.filter((n) => !w.value.includes(n.id)) },
|
|
388
388
|
le,
|
|
389
|
-
|
|
389
|
+
de,
|
|
390
390
|
oe,
|
|
391
391
|
oe,
|
|
392
392
|
1.99999,
|
|
@@ -394,7 +394,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
394
394
|
1,
|
|
395
395
|
360,
|
|
396
396
|
105.25,
|
|
397
|
-
b.value.height *
|
|
397
|
+
b.value.height * rt.value
|
|
398
398
|
)
|
|
399
399
|
};
|
|
400
400
|
}), x = z({
|
|
@@ -402,41 +402,43 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
402
402
|
end: p.value.maxSeriesLength
|
|
403
403
|
});
|
|
404
404
|
function Ct() {
|
|
405
|
-
|
|
405
|
+
vt();
|
|
406
406
|
}
|
|
407
|
-
const
|
|
408
|
-
async function
|
|
409
|
-
|
|
407
|
+
const st = z(null);
|
|
408
|
+
async function vt() {
|
|
409
|
+
await ft(), await ft();
|
|
410
|
+
const { zoomStartIndex: o, zoomEndIndex: r } = e.value, t = st.value;
|
|
411
|
+
(o != null || r != null) && t ? (o != null && t.setStartValue(o), r != null && t.setEndValue(It(r + 1))) : (x.value = {
|
|
410
412
|
start: 0,
|
|
411
413
|
end: p.value.maxSeriesLength
|
|
412
|
-
},
|
|
414
|
+
}, $e.value += 1);
|
|
413
415
|
}
|
|
414
416
|
function It(o) {
|
|
415
|
-
const
|
|
416
|
-
return o >
|
|
417
|
+
const r = p.value.maxSeriesLength;
|
|
418
|
+
return o > r ? r : o < 0 || e.value.zoomStartIndex !== null && o < e.value.zoomStartIndex ? e.value.zoomStartIndex !== null ? e.value.zoomStartIndex + 1 : 1 : o;
|
|
417
419
|
}
|
|
418
420
|
const Et = U(() => {
|
|
419
421
|
if (!e.value.zoomMinimap.show || L.value === A.DONUT) return [];
|
|
420
422
|
let o = [];
|
|
421
|
-
Y(p.value.dataset) && (o = p.value.dataset),
|
|
422
|
-
values:
|
|
423
|
+
Y(p.value.dataset) && (o = p.value.dataset), Fe(p.value.dataset) && (o = p.value.dataset.map((s, h) => ({
|
|
424
|
+
values: s.VALUE || s.DATA || s.SERIE || s.SERIES || s.VALUES || s.NUM || 0,
|
|
423
425
|
id: L.value === A.LINE ? `line_${h}` : `bar_${h}`
|
|
424
|
-
})).filter((
|
|
425
|
-
const
|
|
426
|
+
})).filter((s) => !w.value.includes(s.id)));
|
|
427
|
+
const r = Y(o) ? o.length : Math.max(...o.map((s) => s.values.length));
|
|
426
428
|
let t = [];
|
|
427
429
|
if (Y(o))
|
|
428
430
|
t = o;
|
|
429
431
|
else
|
|
430
|
-
for (let
|
|
431
|
-
t.push(o.map((h) => h.values[
|
|
432
|
+
for (let s = 0; s < r; s += 1)
|
|
433
|
+
t.push(o.map((h) => h.values[s] || 0).reduce((h, P) => (h || 0) + (P || 0), 0));
|
|
432
434
|
const u = Math.min(...t);
|
|
433
|
-
return t.map((
|
|
435
|
+
return t.map((s) => s + (u < 0 ? Math.abs(u) : 0));
|
|
434
436
|
}), v = U(() => {
|
|
435
437
|
if (L.value !== A.LINE) return null;
|
|
436
438
|
const o = {
|
|
437
439
|
height: b.value.height,
|
|
438
440
|
width: b.value.width
|
|
439
|
-
},
|
|
441
|
+
}, r = {
|
|
440
442
|
left: e.value.xyPaddingLeft,
|
|
441
443
|
top: e.value.xyPaddingTop,
|
|
442
444
|
right: o.width - e.value.xyPaddingRight,
|
|
@@ -450,17 +452,17 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
450
452
|
values: p.value.dataset.slice(x.value.start, x.value.end),
|
|
451
453
|
absoluteIndices: p.value.dataset.map((n, i) => i).slice(x.value.start, x.value.end),
|
|
452
454
|
name: e.value.title,
|
|
453
|
-
color:
|
|
455
|
+
color: xe.value[e.value.paletteStartIndex] || q[e.value.paletteStartIndex],
|
|
454
456
|
id: "line_0"
|
|
455
457
|
}
|
|
456
|
-
]),
|
|
458
|
+
]), Fe(p.value.dataset) && (t = p.value.dataset.map((n, i) => ({
|
|
457
459
|
...n,
|
|
458
460
|
values: n.VALUE || n.DATA || n.SERIE || n.SERIES || n.VALUES || n.NUM || 0,
|
|
459
461
|
name: n.NAME || n.DESCRIPTION || n.TITLE || n.LABEL || `Serie ${i}`,
|
|
460
462
|
id: `line_${i}`
|
|
461
463
|
})).map((n, i) => ({
|
|
462
464
|
...n,
|
|
463
|
-
color: n.COLOR ?
|
|
465
|
+
color: n.COLOR ? Ve(n.COLOR) : xe.value[i + e.value.paletteStartIndex] || q[i + e.value.paletteStartIndex] || q[(i + e.value.paletteStartIndex) % q.length],
|
|
464
466
|
values: n.values.slice(x.value.start, x.value.end),
|
|
465
467
|
absoluteIndices: n.values.map((S, k) => k).slice(x.value.start, x.value.end)
|
|
466
468
|
})));
|
|
@@ -468,15 +470,15 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
468
470
|
max: Math.max(...t.filter((n) => !w.value.includes(n.id)).flatMap((n) => n.values)),
|
|
469
471
|
min: Math.min(...t.filter((n) => !w.value.includes(n.id)).flatMap((n) => n.values)),
|
|
470
472
|
maxSeries: Math.max(...t.map((n) => n.values.length))
|
|
471
|
-
},
|
|
472
|
-
y:
|
|
473
|
-
x:
|
|
473
|
+
}, s = mt(u.min < 0 ? u.min : 0, u.max < 0 ? 0 : u.max, e.value.xyScaleSegments), h = u.min < 0 ? Math.abs(u.min) : 0, P = u.max < 0 ? r.top : r.bottom - h / (s.max + h) * r.height, V = r.width / u.maxSeries, ve = s.ticks.map((n) => ({
|
|
474
|
+
y: r.bottom - r.height * ((n + h) / (s.max + h)),
|
|
475
|
+
x: r.left - 8,
|
|
474
476
|
value: n
|
|
475
477
|
})), le = t.map((n, i) => ({
|
|
476
478
|
...n,
|
|
477
479
|
coordinates: n.values.map((S, k) => ({
|
|
478
|
-
x:
|
|
479
|
-
y:
|
|
480
|
+
x: r.left + V * (k + 1) - V / 2,
|
|
481
|
+
y: r.bottom - (S + h) / (s.max + h) * r.height,
|
|
480
482
|
value: S
|
|
481
483
|
}))
|
|
482
484
|
})).map((n) => {
|
|
@@ -488,16 +490,16 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
488
490
|
linePath: i.join(" ")
|
|
489
491
|
};
|
|
490
492
|
});
|
|
491
|
-
function
|
|
493
|
+
function de(n) {
|
|
492
494
|
W.value = n, j.value = n;
|
|
493
495
|
const i = t.map((k) => ({
|
|
494
496
|
...k,
|
|
495
497
|
value: k.values[n],
|
|
496
498
|
absoluteIndex: k.absoluteIndices[n]
|
|
497
499
|
})).filter((k) => !w.value.includes(k.id));
|
|
498
|
-
|
|
500
|
+
ye.value = { datapoint: i, seriesIndex: n, config: e.value, dataset: t };
|
|
499
501
|
const S = e.value.tooltipCustomFormat;
|
|
500
|
-
if (
|
|
502
|
+
if (Me(S) && He(() => S({
|
|
501
503
|
datapoint: i,
|
|
502
504
|
seriesIndex: n,
|
|
503
505
|
series: t,
|
|
@@ -541,11 +543,11 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
541
543
|
absoluteZero: P,
|
|
542
544
|
dataset: le.filter((n) => !w.value.includes(n.id)),
|
|
543
545
|
legend: le,
|
|
544
|
-
drawingArea:
|
|
546
|
+
drawingArea: r,
|
|
545
547
|
extremes: u,
|
|
546
548
|
slotSize: V,
|
|
547
|
-
yLabels:
|
|
548
|
-
useTooltip:
|
|
549
|
+
yLabels: ve,
|
|
550
|
+
useTooltip: de,
|
|
549
551
|
killTooltip: oe
|
|
550
552
|
};
|
|
551
553
|
}), d = U(() => {
|
|
@@ -553,7 +555,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
553
555
|
const o = {
|
|
554
556
|
height: b.value.height,
|
|
555
557
|
width: b.value.width
|
|
556
|
-
},
|
|
558
|
+
}, r = {
|
|
557
559
|
left: e.value.xyPaddingLeft,
|
|
558
560
|
top: e.value.xyPaddingTop,
|
|
559
561
|
right: o.width - e.value.xyPaddingRight,
|
|
@@ -567,17 +569,17 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
567
569
|
values: p.value.dataset.slice(x.value.start, x.value.end),
|
|
568
570
|
absoluteIndices: p.value.dataset.map((i, S) => S).slice(x.value.start, x.value.end),
|
|
569
571
|
name: e.value.title,
|
|
570
|
-
color:
|
|
572
|
+
color: xe.value[e.value.paletteStartIndex] || q[e.value.paletteStartIndex],
|
|
571
573
|
id: "bar_0"
|
|
572
574
|
}
|
|
573
|
-
]),
|
|
575
|
+
]), Fe(p.value.dataset) && (t = p.value.dataset.map((i, S) => ({
|
|
574
576
|
...i,
|
|
575
577
|
values: i.VALUE || i.DATA || i.SERIE || i.SERIES || i.VALUES || i.NUM || 0,
|
|
576
578
|
name: i.NAME || i.DESCRIPTION || i.TITLE || i.LABEL || `Serie ${S}`,
|
|
577
579
|
id: `bar_${S}`
|
|
578
580
|
})).map((i, S) => ({
|
|
579
581
|
...i,
|
|
580
|
-
color: i.COLOR ?
|
|
582
|
+
color: i.COLOR ? Ve(i.COLOR) : xe.value[S + e.value.paletteStartIndex] || q[S + e.value.paletteStartIndex] || q[(S + e.value.paletteStartIndex) % q.length],
|
|
581
583
|
values: i.values.slice(x.value.start, x.value.end),
|
|
582
584
|
absoluteIndices: i.values.map((k, E) => E).slice(x.value.start, x.value.end)
|
|
583
585
|
})));
|
|
@@ -585,32 +587,32 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
585
587
|
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)),
|
|
586
588
|
min: Math.min(...t.filter((i) => !w.value.includes(i.id)).flatMap((i) => i.values)),
|
|
587
589
|
maxSeries: Math.max(...t.filter((i) => !w.value.includes(i.id)).map((i) => i.values.length))
|
|
588
|
-
},
|
|
589
|
-
y:
|
|
590
|
-
x:
|
|
590
|
+
}, s = mt(u.min < 0 ? u.min : 0, u.max, e.value.xyScaleSegments), h = s.min < 0 ? Math.abs(s.min) : 0, P = r.bottom - h / (s.max + h) * r.height, V = r.width / u.maxSeries, ve = s.ticks.map((i) => ({
|
|
591
|
+
y: r.bottom - r.height * ((i + h) / (s.max + h)),
|
|
592
|
+
x: r.left - 8,
|
|
591
593
|
value: i
|
|
592
594
|
})), le = t.map((i, S) => ({
|
|
593
595
|
...i,
|
|
594
596
|
coordinates: i.values.map((k, E) => {
|
|
595
|
-
const N = (k + h) / (u.max + h) *
|
|
597
|
+
const N = (k + h) / (u.max + h) * r.height, we = Math.abs(k) / Math.abs(u.min) * (r.height - P), Ue = h / (u.max + h) * r.height, Ae = V / t.filter((ne) => !w.value.includes(ne.id)).length - e.value.barGap / t.filter((ne) => !w.value.includes(ne.id)).length;
|
|
596
598
|
return {
|
|
597
|
-
x:
|
|
598
|
-
y: k > 0 ?
|
|
599
|
-
height: k > 0 ? N -
|
|
599
|
+
x: r.left + V * E + Ae * S + e.value.barGap / 2,
|
|
600
|
+
y: k > 0 ? r.bottom - N : P,
|
|
601
|
+
height: k > 0 ? N - Ue : we,
|
|
600
602
|
value: k,
|
|
601
|
-
width:
|
|
603
|
+
width: Ae
|
|
602
604
|
};
|
|
603
605
|
})
|
|
604
|
-
})),
|
|
606
|
+
})), de = t.filter((i) => !w.value.includes(i.id)).map((i, S) => ({
|
|
605
607
|
...i,
|
|
606
608
|
coordinates: i.values.map((k, E) => {
|
|
607
|
-
const N = (k + h) / (u.max + h) *
|
|
609
|
+
const N = (k + h) / (u.max + h) * r.height, we = Math.abs(k) / (u.max + h) * r.height, Ue = h / (u.max + h) * r.height, Ae = V / t.filter((ne) => !w.value.includes(ne.id)).length - e.value.barGap / t.filter((ne) => !w.value.includes(ne.id)).length;
|
|
608
610
|
return {
|
|
609
|
-
x:
|
|
610
|
-
y: k > 0 ?
|
|
611
|
-
height: k > 0 ? N -
|
|
611
|
+
x: r.left + V * E + Ae * S + e.value.barGap / 2,
|
|
612
|
+
y: k > 0 ? r.bottom - N : P,
|
|
613
|
+
height: k > 0 ? N - Ue : we,
|
|
612
614
|
value: k,
|
|
613
|
-
width:
|
|
615
|
+
width: Ae
|
|
614
616
|
};
|
|
615
617
|
})
|
|
616
618
|
}));
|
|
@@ -621,9 +623,9 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
621
623
|
value: E.values[i],
|
|
622
624
|
absoluteIndex: E.absoluteIndices[i]
|
|
623
625
|
})).filter((E) => !w.value.includes(E.id));
|
|
624
|
-
|
|
626
|
+
ye.value = { datapoint: S, seriesIndex: i, config: e.value, dataset: t };
|
|
625
627
|
const k = e.value.tooltipCustomFormat;
|
|
626
|
-
if (
|
|
628
|
+
if (Me(k) && He(() => k({
|
|
627
629
|
datapoint: S,
|
|
628
630
|
seriesIndex: i,
|
|
629
631
|
series: t,
|
|
@@ -637,7 +639,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
637
639
|
});
|
|
638
640
|
else {
|
|
639
641
|
let E = "";
|
|
640
|
-
ee.value[S[0].absoluteIndex] && (E += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${ee.value[S[0].absoluteIndex].text}</div>`), S.forEach((N,
|
|
642
|
+
ee.value[S[0].absoluteIndex] && (E += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${ee.value[S[0].absoluteIndex].text}</div>`), S.forEach((N, we) => {
|
|
641
643
|
E += `
|
|
642
644
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
643
645
|
<svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${N.color}"/></svg>
|
|
@@ -651,7 +653,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
651
653
|
s: e.value.valueSuffix,
|
|
652
654
|
r: e.value.dataLabelRoundingValue
|
|
653
655
|
}),
|
|
654
|
-
{ datapoint: N, seriesIndex:
|
|
656
|
+
{ datapoint: N, seriesIndex: we }
|
|
655
657
|
)}
|
|
656
658
|
</b>
|
|
657
659
|
</div>
|
|
@@ -665,12 +667,12 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
665
667
|
}
|
|
666
668
|
return {
|
|
667
669
|
absoluteZero: P,
|
|
668
|
-
dataset:
|
|
670
|
+
dataset: de.filter((i) => !w.value.includes(i.id)),
|
|
669
671
|
legend: le,
|
|
670
|
-
drawingArea:
|
|
672
|
+
drawingArea: r,
|
|
671
673
|
extremes: u,
|
|
672
674
|
slotSize: V,
|
|
673
|
-
yLabels:
|
|
675
|
+
yLabels: ve,
|
|
674
676
|
useTooltip: oe,
|
|
675
677
|
killTooltip: n
|
|
676
678
|
};
|
|
@@ -680,90 +682,90 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
680
682
|
formatter: e.value.datetimeFormatter,
|
|
681
683
|
start: x.value.start,
|
|
682
684
|
end: x.value.end
|
|
683
|
-
})),
|
|
684
|
-
function
|
|
685
|
-
|
|
685
|
+
})), Te = z(!1);
|
|
686
|
+
function dt(o) {
|
|
687
|
+
Te.value = o, Ye.value += 1;
|
|
686
688
|
}
|
|
687
|
-
function
|
|
688
|
-
|
|
689
|
+
function ct() {
|
|
690
|
+
be.value.showTooltip = !be.value.showTooltip;
|
|
689
691
|
}
|
|
690
|
-
const
|
|
691
|
-
function
|
|
692
|
-
|
|
692
|
+
const Pe = z(!1);
|
|
693
|
+
function Ne() {
|
|
694
|
+
Pe.value = !Pe.value;
|
|
693
695
|
}
|
|
694
696
|
async function Ot({ scale: o = 2 } = {}) {
|
|
695
697
|
if (!J.value) return;
|
|
696
|
-
const { width:
|
|
698
|
+
const { width: r, height: t } = J.value.getBoundingClientRect(), u = r / t, { imageUri: s, base64: h } = await Kt({ domElement: J.value, base64: !0, img: !0, scale: o });
|
|
697
699
|
return {
|
|
698
|
-
imageUri:
|
|
700
|
+
imageUri: s,
|
|
699
701
|
base64: h,
|
|
700
702
|
title: e.value.title,
|
|
701
|
-
width:
|
|
703
|
+
width: r,
|
|
702
704
|
height: t,
|
|
703
705
|
aspectRatio: u
|
|
704
706
|
};
|
|
705
707
|
}
|
|
706
708
|
return C({
|
|
707
709
|
getImage: Ot,
|
|
708
|
-
generatePdf:
|
|
709
|
-
generateImage:
|
|
710
|
-
toggleTooltip:
|
|
711
|
-
toggleAnnotator:
|
|
712
|
-
toggleFullscreen:
|
|
713
|
-
}), (o,
|
|
710
|
+
generatePdf: tt,
|
|
711
|
+
generateImage: at,
|
|
712
|
+
toggleTooltip: ct,
|
|
713
|
+
toggleAnnotator: Ne,
|
|
714
|
+
toggleFullscreen: dt
|
|
715
|
+
}), (o, r) => At.value ? (a(), l("div", {
|
|
714
716
|
key: 0,
|
|
715
717
|
id: `${L.value}_${Q.value}`,
|
|
716
718
|
ref_key: "quickChart",
|
|
717
719
|
ref: J,
|
|
718
|
-
class:
|
|
720
|
+
class: he({ "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": Te.value }),
|
|
719
721
|
style: R(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
720
|
-
onMouseenter:
|
|
721
|
-
onMouseleave:
|
|
722
|
+
onMouseenter: r[5] || (r[5] = () => Ke(!0)),
|
|
723
|
+
onMouseleave: r[6] || (r[6] = () => Ke(!1))
|
|
722
724
|
}, [
|
|
723
|
-
e.value.userOptionsButtons.annotator ? (a(),
|
|
725
|
+
e.value.userOptionsButtons.annotator ? (a(), Re(f(ge), {
|
|
724
726
|
key: 0,
|
|
725
|
-
svgRef: f(
|
|
727
|
+
svgRef: f(Je),
|
|
726
728
|
backgroundColor: e.value.backgroundColor,
|
|
727
729
|
color: e.value.color,
|
|
728
|
-
active:
|
|
729
|
-
onClose:
|
|
730
|
+
active: Pe.value,
|
|
731
|
+
onClose: Ne
|
|
730
732
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
731
733
|
_t.value ? (a(), l("div", {
|
|
732
734
|
key: 1,
|
|
733
735
|
ref_key: "noTitle",
|
|
734
|
-
ref:
|
|
736
|
+
ref: Ze,
|
|
735
737
|
class: "vue-data-ui-no-title-space",
|
|
736
738
|
style: "height:36px; width: 100%;background:transparent"
|
|
737
739
|
}, null, 512)) : g("", !0),
|
|
738
|
-
e.value.showUserOptions && (
|
|
740
|
+
e.value.showUserOptions && (Qe.value || Ce.value) ? (a(), Re(f(ze), {
|
|
739
741
|
ref: "details",
|
|
740
|
-
key: `user_option_${
|
|
742
|
+
key: `user_option_${Ye.value}`,
|
|
741
743
|
backgroundColor: e.value.backgroundColor,
|
|
742
744
|
color: e.value.color,
|
|
743
|
-
isPrinting: f(
|
|
744
|
-
isImaging: f(
|
|
745
|
+
isPrinting: f(Ie),
|
|
746
|
+
isImaging: f(Ee),
|
|
745
747
|
uid: Q.value,
|
|
746
748
|
hasTooltip: e.value.userOptionsButtons.tooltip && e.value.showTooltip,
|
|
747
749
|
hasPdf: e.value.userOptionsButtons.pdf,
|
|
748
750
|
hasImg: e.value.userOptionsButtons.img,
|
|
749
751
|
hasFullscreen: e.value.userOptionsButtons.fullscreen,
|
|
750
752
|
hasXls: !1,
|
|
751
|
-
isTooltip:
|
|
752
|
-
isFullscreen:
|
|
753
|
+
isTooltip: be.value.showTooltip,
|
|
754
|
+
isFullscreen: Te.value,
|
|
753
755
|
titles: { ...e.value.userOptionsButtonTitles },
|
|
754
756
|
chartElement: J.value,
|
|
755
757
|
position: e.value.userOptionsPosition,
|
|
756
758
|
hasAnnotator: e.value.userOptionsButtons.annotator,
|
|
757
|
-
isAnnotation:
|
|
759
|
+
isAnnotation: Pe.value,
|
|
758
760
|
callbacks: e.value.userOptionsCallbacks,
|
|
759
761
|
printScale: e.value.userOptionsPrint.scale,
|
|
760
|
-
onToggleFullscreen:
|
|
761
|
-
onGeneratePdf: f(
|
|
762
|
-
onGenerateImage: f(
|
|
763
|
-
onToggleTooltip:
|
|
764
|
-
onToggleAnnotator:
|
|
762
|
+
onToggleFullscreen: dt,
|
|
763
|
+
onGeneratePdf: f(tt),
|
|
764
|
+
onGenerateImage: f(at),
|
|
765
|
+
onToggleTooltip: ct,
|
|
766
|
+
onToggleAnnotator: Ne,
|
|
765
767
|
style: R({
|
|
766
|
-
visibility:
|
|
768
|
+
visibility: Qe.value ? Ce.value ? "visible" : "hidden" : "visible"
|
|
767
769
|
})
|
|
768
770
|
}, Rt({ _: 2 }, [
|
|
769
771
|
o.$slots.menuIcon ? {
|
|
@@ -812,19 +814,19 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
812
814
|
e.value.title ? (a(), l("div", {
|
|
813
815
|
key: 3,
|
|
814
816
|
ref_key: "quickChartTitle",
|
|
815
|
-
ref:
|
|
817
|
+
ref: We,
|
|
816
818
|
class: "vue-ui-quick-chart-title",
|
|
817
819
|
style: R(`background:transparent;color:${e.value.color};font-size:${e.value.titleFontSize}px;font-weight:${e.value.titleBold ? "bold" : "normal"};text-align:${e.value.titleTextAlign}`)
|
|
818
820
|
}, O(e.value.title), 5)) : g("", !0),
|
|
819
821
|
L.value ? (a(), l("svg", {
|
|
820
822
|
key: 4,
|
|
821
823
|
ref_key: "svgRef",
|
|
822
|
-
ref:
|
|
824
|
+
ref: Je,
|
|
823
825
|
xmlns: f(Ht),
|
|
824
826
|
viewBox: Lt.value,
|
|
825
827
|
style: R(`max-width:100%;overflow:visible;background:transparent;color:${e.value.color}`)
|
|
826
828
|
}, [
|
|
827
|
-
|
|
829
|
+
fe(f(H)),
|
|
828
830
|
o.$slots["chart-background"] && L.value === A.BAR ? (a(), l("foreignObject", {
|
|
829
831
|
key: 0,
|
|
830
832
|
x: d.value.drawingArea.left,
|
|
@@ -874,7 +876,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
874
876
|
stdDeviation: 2,
|
|
875
877
|
id: `blur_std_${Q.value}`
|
|
876
878
|
}, null, 8, ha),
|
|
877
|
-
|
|
879
|
+
r[7] || (r[7] = _("feColorMatrix", {
|
|
878
880
|
type: "saturate",
|
|
879
881
|
values: "0"
|
|
880
882
|
}, null, -1))
|
|
@@ -897,13 +899,13 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
897
899
|
(a(!0), l(m, null, $(I.value.chart, (t, u) => (a(), l(m, null, [
|
|
898
900
|
I.value.isArcBigEnough(t) ? (a(), l("path", {
|
|
899
901
|
key: 0,
|
|
900
|
-
d: f(Wt)(t, { x: b.value.width / 2, y: b.value.height / 2 }, 16, 16, !1, !1, b.value.height *
|
|
902
|
+
d: f(Wt)(t, { x: b.value.width / 2, y: b.value.height / 2 }, 16, 16, !1, !1, b.value.height * rt.value),
|
|
901
903
|
stroke: t.color,
|
|
902
904
|
"stroke-width": e.value.donutLabelMarkerStrokeWidth,
|
|
903
905
|
"stroke-linecap": "round",
|
|
904
906
|
"stroke-linejoin": "round",
|
|
905
907
|
fill: "none",
|
|
906
|
-
filter:
|
|
908
|
+
filter: Se(t.id)
|
|
907
909
|
}, null, 8, pa)) : g("", !0)
|
|
908
910
|
], 64))), 256))
|
|
909
911
|
])) : g("", !0),
|
|
@@ -920,36 +922,36 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
920
922
|
fill: t.color,
|
|
921
923
|
stroke: e.value.backgroundColor,
|
|
922
924
|
"stroke-width": e.value.donutStrokeWidth,
|
|
923
|
-
filter:
|
|
925
|
+
filter: Se(t.id)
|
|
924
926
|
}, null, 8, ka))), 256)),
|
|
925
927
|
(a(!0), l(m, null, $(I.value.chart, (t, u) => (a(), l("path", {
|
|
926
928
|
d: t.arcSlice,
|
|
927
929
|
fill: "transparent",
|
|
928
|
-
onMouseenter: (
|
|
929
|
-
onMouseout:
|
|
930
|
-
onClick: (
|
|
930
|
+
onMouseenter: (s) => I.value.useTooltip({ datapoint: t, seriesIndex: u }),
|
|
931
|
+
onMouseout: r[0] || (r[0] = (s) => I.value.killTooltip()),
|
|
932
|
+
onClick: (s) => re("selectDatapoint", t)
|
|
931
933
|
}, null, 40, ba))), 256))
|
|
932
934
|
]),
|
|
933
935
|
e.value.showDataLabels ? (a(), l("g", Sa, [
|
|
934
936
|
(a(!0), l(m, null, $(I.value.chart, (t, u) => (a(), l(m, null, [
|
|
935
937
|
I.value.isArcBigEnough(t) ? (a(), l("circle", {
|
|
936
938
|
key: 0,
|
|
937
|
-
cx: f(
|
|
938
|
-
cy: f(
|
|
939
|
+
cx: f(_e)(t).x,
|
|
940
|
+
cy: f(qe)(t) - 3.7,
|
|
939
941
|
fill: t.color,
|
|
940
942
|
stroke: e.value.backgroundColor,
|
|
941
943
|
"stroke-width": 1,
|
|
942
944
|
r: 3,
|
|
943
|
-
filter:
|
|
945
|
+
filter: Se(t.id)
|
|
944
946
|
}, null, 8, wa)) : g("", !0),
|
|
945
947
|
I.value.isArcBigEnough(t) ? (a(), l("text", {
|
|
946
948
|
key: 1,
|
|
947
|
-
"text-anchor": f(
|
|
948
|
-
x: f(
|
|
949
|
-
y: f(
|
|
949
|
+
"text-anchor": f(_e)(t, !0, 20).anchor,
|
|
950
|
+
x: f(_e)(t, !0).x,
|
|
951
|
+
y: f(qe)(t),
|
|
950
952
|
fill: e.value.color,
|
|
951
953
|
"font-size": e.value.dataLabelFontSize,
|
|
952
|
-
filter:
|
|
954
|
+
filter: Se(t.id)
|
|
953
955
|
}, O(I.value.displayArcPercentage(t, I.value.chart)) + " (" + O(f(X)(
|
|
954
956
|
e.value.formatter,
|
|
955
957
|
t.value,
|
|
@@ -963,12 +965,12 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
963
965
|
)) + ") ", 9, Aa)) : g("", !0),
|
|
964
966
|
I.value.isArcBigEnough(t, !0, 20) ? (a(), l("text", {
|
|
965
967
|
key: 2,
|
|
966
|
-
"text-anchor": f(
|
|
967
|
-
x: f(
|
|
968
|
-
y: f(
|
|
968
|
+
"text-anchor": f(_e)(t).anchor,
|
|
969
|
+
x: f(_e)(t, !0).x,
|
|
970
|
+
y: f(qe)(t) + e.value.dataLabelFontSize,
|
|
969
971
|
fill: e.value.color,
|
|
970
972
|
"font-size": e.value.dataLabelFontSize,
|
|
971
|
-
filter:
|
|
973
|
+
filter: Se(t.id)
|
|
972
974
|
}, O(t.name), 9, _a)) : g("", !0)
|
|
973
975
|
], 64))), 256))
|
|
974
976
|
])) : g("", !0),
|
|
@@ -1116,7 +1118,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
1116
1118
|
"stroke-width": e.value.lineStrokeWidth + 1,
|
|
1117
1119
|
"stroke-linecap": "round",
|
|
1118
1120
|
fill: "none",
|
|
1119
|
-
class:
|
|
1121
|
+
class: he({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1120
1122
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1121
1123
|
}, null, 10, Wa),
|
|
1122
1124
|
_("path", {
|
|
@@ -1125,7 +1127,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
1125
1127
|
"stroke-width": e.value.lineStrokeWidth,
|
|
1126
1128
|
"stroke-linecap": "round",
|
|
1127
1129
|
fill: "none",
|
|
1128
|
-
class:
|
|
1130
|
+
class: he({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1129
1131
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1130
1132
|
}, null, 10, ja)
|
|
1131
1133
|
], 64)) : (a(), l(m, { key: 1 }, [
|
|
@@ -1135,7 +1137,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
1135
1137
|
"stroke-width": e.value.lineStrokeWidth + 1,
|
|
1136
1138
|
"stroke-linecap": "round",
|
|
1137
1139
|
fill: "none",
|
|
1138
|
-
class:
|
|
1140
|
+
class: he({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1139
1141
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1140
1142
|
}, null, 10, Ga),
|
|
1141
1143
|
_("path", {
|
|
@@ -1144,13 +1146,13 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
1144
1146
|
"stroke-width": e.value.lineStrokeWidth,
|
|
1145
1147
|
"stroke-linecap": "round",
|
|
1146
1148
|
fill: "none",
|
|
1147
|
-
class:
|
|
1149
|
+
class: he({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1148
1150
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1149
1151
|
}, null, 10, Xa)
|
|
1150
1152
|
], 64)),
|
|
1151
|
-
(a(!0), l(m, null, $(t.coordinates, (
|
|
1152
|
-
cx:
|
|
1153
|
-
cy: f(Z)(
|
|
1153
|
+
(a(!0), l(m, null, $(t.coordinates, (s, h) => (a(), l("circle", {
|
|
1154
|
+
cx: s.x,
|
|
1155
|
+
cy: f(Z)(s.y),
|
|
1154
1156
|
r: 3,
|
|
1155
1157
|
fill: t.color,
|
|
1156
1158
|
stroke: e.value.backgroundColor,
|
|
@@ -1162,24 +1164,24 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
1162
1164
|
]),
|
|
1163
1165
|
e.value.showDataLabels ? (a(), l("g", Ya, [
|
|
1164
1166
|
(a(!0), l(m, null, $(v.value.dataset, (t, u) => (a(), l(m, null, [
|
|
1165
|
-
(a(!0), l(m, null, $(t.coordinates, (
|
|
1167
|
+
(a(!0), l(m, null, $(t.coordinates, (s, h) => (a(), l("text", {
|
|
1166
1168
|
"text-anchor": "middle",
|
|
1167
1169
|
"font-size": e.value.dataLabelFontSize,
|
|
1168
1170
|
fill: t.color,
|
|
1169
|
-
x:
|
|
1170
|
-
y: f(Z)(
|
|
1171
|
+
x: s.x,
|
|
1172
|
+
y: f(Z)(s.y) - e.value.dataLabelFontSize / 2,
|
|
1171
1173
|
class: "quick-animation",
|
|
1172
1174
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1173
1175
|
}, O(f(X)(
|
|
1174
1176
|
e.value.formatter,
|
|
1175
|
-
f(Z)(
|
|
1177
|
+
f(Z)(s.value),
|
|
1176
1178
|
f(D)({
|
|
1177
1179
|
p: e.value.valuePrefix,
|
|
1178
|
-
v: f(Z)(
|
|
1180
|
+
v: f(Z)(s.value),
|
|
1179
1181
|
s: e.value.valueSuffix,
|
|
1180
1182
|
r: e.value.dataLabelRoundingValue
|
|
1181
1183
|
}),
|
|
1182
|
-
{ datapoint:
|
|
1184
|
+
{ datapoint: s, seriesIndex: h }
|
|
1183
1185
|
)), 9, Ja))), 256))
|
|
1184
1186
|
], 64))), 256))
|
|
1185
1187
|
])) : g("", !0),
|
|
@@ -1191,9 +1193,9 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
1191
1193
|
width: v.value.slotSize <= 0 ? 1e-5 : v.value.slotSize,
|
|
1192
1194
|
fill: [W.value, j.value].includes(u) ? e.value.xyHighlighterColor : "transparent",
|
|
1193
1195
|
style: R(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1194
|
-
onMouseenter: (
|
|
1195
|
-
onMouseleave:
|
|
1196
|
-
onClick: (
|
|
1196
|
+
onMouseenter: (s) => v.value.useTooltip(u),
|
|
1197
|
+
onMouseleave: r[1] || (r[1] = (s) => v.value.killTooltip()),
|
|
1198
|
+
onClick: (s) => re("selectDatapoint", v.value.dataset.map((h) => ({
|
|
1197
1199
|
...h,
|
|
1198
1200
|
value: h.values[u]
|
|
1199
1201
|
})))
|
|
@@ -1295,29 +1297,29 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
1295
1297
|
])) : g("", !0),
|
|
1296
1298
|
_("g", cl, [
|
|
1297
1299
|
(a(!0), l(m, null, $(d.value.dataset, (t, u) => (a(), l(m, null, [
|
|
1298
|
-
(a(!0), l(m, null, $(t.coordinates, (
|
|
1299
|
-
x:
|
|
1300
|
-
width:
|
|
1301
|
-
height: f(Z)(
|
|
1302
|
-
y: f(Z)(
|
|
1300
|
+
(a(!0), l(m, null, $(t.coordinates, (s, h) => (a(), l("rect", {
|
|
1301
|
+
x: s.x,
|
|
1302
|
+
width: s.width <= 0 ? 1e-5 : s.width,
|
|
1303
|
+
height: f(Z)(s.height <= 0 ? 1e-5 : s.height),
|
|
1304
|
+
y: f(Z)(s.y),
|
|
1303
1305
|
fill: t.color,
|
|
1304
1306
|
stroke: e.value.backgroundColor,
|
|
1305
1307
|
"stroke-width": e.value.barStrokeWidth,
|
|
1306
1308
|
"stroke-linecap": "round",
|
|
1307
|
-
class:
|
|
1309
|
+
class: he({ "vue-data-ui-bar-animated": e.value.barAnimated && s.value < 0 })
|
|
1308
1310
|
}, [
|
|
1309
|
-
e.value.barAnimated &&
|
|
1311
|
+
e.value.barAnimated && s.value > 0 && !f(Ie) && !f(Ee) ? (a(), l("animate", {
|
|
1310
1312
|
key: 0,
|
|
1311
1313
|
attributeName: "height",
|
|
1312
1314
|
from: 0,
|
|
1313
|
-
to:
|
|
1315
|
+
to: s.height,
|
|
1314
1316
|
dur: "0.5s"
|
|
1315
1317
|
}, null, 8, fl)) : g("", !0),
|
|
1316
|
-
e.value.barAnimated &&
|
|
1318
|
+
e.value.barAnimated && s.value > 0 && !f(Ie) && !f(Ee) ? (a(), l("animate", {
|
|
1317
1319
|
key: 1,
|
|
1318
1320
|
attributeName: "y",
|
|
1319
1321
|
from: d.value.absoluteZero,
|
|
1320
|
-
to: d.value.absoluteZero -
|
|
1322
|
+
to: d.value.absoluteZero - s.height,
|
|
1321
1323
|
dur: "0.5s"
|
|
1322
1324
|
}, null, 8, gl)) : g("", !0)
|
|
1323
1325
|
], 10, hl))), 256))
|
|
@@ -1325,23 +1327,23 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
1325
1327
|
]),
|
|
1326
1328
|
e.value.showDataLabels ? (a(), l("g", ml, [
|
|
1327
1329
|
(a(!0), l(m, null, $(d.value.dataset, (t, u) => (a(), l(m, null, [
|
|
1328
|
-
(a(!0), l(m, null, $(t.coordinates, (
|
|
1329
|
-
x:
|
|
1330
|
-
y: f(Z)(
|
|
1330
|
+
(a(!0), l(m, null, $(t.coordinates, (s, h) => (a(), l("text", {
|
|
1331
|
+
x: s.x + s.width / 2,
|
|
1332
|
+
y: f(Z)(s.y) - e.value.dataLabelFontSize / 2,
|
|
1331
1333
|
"text-anchor": "middle",
|
|
1332
1334
|
"font-size": e.value.dataLabelFontSize,
|
|
1333
1335
|
fill: t.color,
|
|
1334
1336
|
class: "quick-animation"
|
|
1335
1337
|
}, O(f(X)(
|
|
1336
1338
|
e.value.formatter,
|
|
1337
|
-
f(Z)(
|
|
1339
|
+
f(Z)(s.value),
|
|
1338
1340
|
f(D)({
|
|
1339
1341
|
p: e.value.valuePrefix,
|
|
1340
|
-
v: f(Z)(
|
|
1342
|
+
v: f(Z)(s.value),
|
|
1341
1343
|
s: e.value.valueSuffix,
|
|
1342
1344
|
r: e.value.dataLabelRoundingValue
|
|
1343
1345
|
}),
|
|
1344
|
-
{ datapoint:
|
|
1346
|
+
{ datapoint: s, seriesIndex: h }
|
|
1345
1347
|
)), 9, pl))), 256))
|
|
1346
1348
|
], 64))), 256))
|
|
1347
1349
|
])) : g("", !0),
|
|
@@ -1353,9 +1355,9 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
1353
1355
|
width: d.value.slotSize <= 0 ? 1e-5 : d.value.slotSize,
|
|
1354
1356
|
fill: [W.value, j.value].includes(u) ? e.value.xyHighlighterColor : "transparent",
|
|
1355
1357
|
style: R(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1356
|
-
onMouseenter: (
|
|
1357
|
-
onMouseleave:
|
|
1358
|
-
onClick: (
|
|
1358
|
+
onMouseenter: (s) => d.value.useTooltip(u),
|
|
1359
|
+
onMouseleave: r[2] || (r[2] = (s) => d.value.killTooltip()),
|
|
1360
|
+
onClick: (s) => re("selectDatapoint", d.value.dataset.map((h) => ({
|
|
1359
1361
|
...h,
|
|
1360
1362
|
value: h.values[u]
|
|
1361
1363
|
})))
|
|
@@ -1399,7 +1401,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
1399
1401
|
])) : g("", !0)
|
|
1400
1402
|
])) : g("", !0)
|
|
1401
1403
|
], 12, ra)) : g("", !0),
|
|
1402
|
-
L.value ? g("", !0) : (a(),
|
|
1404
|
+
L.value ? g("", !0) : (a(), Re(f(me), {
|
|
1403
1405
|
key: 5,
|
|
1404
1406
|
config: {
|
|
1405
1407
|
type: "line",
|
|
@@ -1418,17 +1420,17 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
1418
1420
|
}
|
|
1419
1421
|
}, null, 8, ["config"])),
|
|
1420
1422
|
o.$slots.watermark ? (a(), l("div", Cl, [
|
|
1421
|
-
M(o.$slots, "watermark", ie(ue({ isPrinting: f(
|
|
1423
|
+
M(o.$slots, "watermark", ie(ue({ isPrinting: f(Ie) || f(Ee) })), void 0, !0)
|
|
1422
1424
|
])) : g("", !0),
|
|
1423
1425
|
[A.BAR, A.LINE].includes(L.value) && e.value.zoomXy && p.value.maxSeriesLength > 1 ? (a(), l("div", {
|
|
1424
|
-
key: `slicer_${
|
|
1426
|
+
key: `slicer_${$e.value}`,
|
|
1425
1427
|
ref_key: "quickChartSlicer",
|
|
1426
|
-
ref:
|
|
1428
|
+
ref: Ge
|
|
1427
1429
|
}, [
|
|
1428
|
-
(a(),
|
|
1430
|
+
(a(), Re(Jt, {
|
|
1429
1431
|
ref_key: "slicerComponent",
|
|
1430
|
-
ref:
|
|
1431
|
-
key: `slicer_${
|
|
1432
|
+
ref: st,
|
|
1433
|
+
key: `slicer_${$e.value}`,
|
|
1432
1434
|
background: e.value.zoomColor,
|
|
1433
1435
|
borderColor: e.value.backgroundColor,
|
|
1434
1436
|
fontSize: e.value.zoomFontSize,
|
|
@@ -1452,9 +1454,9 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
1452
1454
|
verticalHandles: e.value.zoomMinimap.verticalHandles,
|
|
1453
1455
|
minimapSelectedIndex: j.value,
|
|
1454
1456
|
start: x.value.start,
|
|
1455
|
-
"onUpdate:start":
|
|
1457
|
+
"onUpdate:start": r[3] || (r[3] = (t) => x.value.start = t),
|
|
1456
1458
|
end: x.value.end,
|
|
1457
|
-
"onUpdate:end":
|
|
1459
|
+
"onUpdate:end": r[4] || (r[4] = (t) => x.value.end = t),
|
|
1458
1460
|
refreshStartPoint: e.value.zoomStartIndex !== null ? e.value.zoomStartIndex : 0,
|
|
1459
1461
|
refreshEndPoint: e.value.zoomEndIndex !== null ? e.value.zoomEndIndex + 1 : p.value.maxSeriesLength,
|
|
1460
1462
|
enableRangeHandles: e.value.zoomEnableRangeHandles,
|
|
@@ -1471,22 +1473,22 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
1471
1473
|
e.value.showLegend ? (a(), l("div", {
|
|
1472
1474
|
key: 8,
|
|
1473
1475
|
ref_key: "quickChartLegend",
|
|
1474
|
-
ref:
|
|
1476
|
+
ref: je,
|
|
1475
1477
|
class: "vue-ui-quick-chart-legend",
|
|
1476
1478
|
style: R(`background:transparent;color:${e.value.color}`)
|
|
1477
1479
|
}, [
|
|
1478
1480
|
L.value === A.DONUT ? (a(!0), l(m, { key: 0 }, $(I.value.legend, (t, u) => (a(), l("div", {
|
|
1479
1481
|
class: "vue-ui-quick-chart-legend-item",
|
|
1480
|
-
onClick: (
|
|
1482
|
+
onClick: (s) => {
|
|
1481
1483
|
zt(t, I.value.dataset), re("selectLegend", t);
|
|
1482
1484
|
},
|
|
1483
1485
|
style: R(`cursor: ${I.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1484
1486
|
}, [
|
|
1485
|
-
e.value.useCustomLegend ? M(o.$slots, "legend",
|
|
1487
|
+
e.value.useCustomLegend ? M(o.$slots, "legend", De({
|
|
1486
1488
|
key: 0,
|
|
1487
1489
|
ref_for: !0
|
|
1488
1490
|
}, { legend: t }), void 0, !0) : (a(), l(m, { key: 1 }, [
|
|
1489
|
-
|
|
1491
|
+
fe(f(T), {
|
|
1490
1492
|
name: e.value.legendIcon,
|
|
1491
1493
|
stroke: t.color,
|
|
1492
1494
|
size: e.value.legendIconSize
|
|
@@ -1510,7 +1512,7 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
1510
1512
|
w.value.includes(t.id) ? (a(), l("span", {
|
|
1511
1513
|
key: 0,
|
|
1512
1514
|
style: R(`font-size:${e.value.legendFontSize}px`)
|
|
1513
|
-
}, " ( - % ) ", 4)) :
|
|
1515
|
+
}, " ( - % ) ", 4)) : Oe.value ? (a(), l("span", {
|
|
1514
1516
|
key: 1,
|
|
1515
1517
|
style: R(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1516
1518
|
}, " ( - % ) ", 4)) : (a(), l("span", {
|
|
@@ -1525,16 +1527,16 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
1525
1527
|
], 12, Il))), 256)) : g("", !0),
|
|
1526
1528
|
L.value === A.LINE ? (a(!0), l(m, { key: 1 }, $(v.value.legend, (t, u) => (a(), l("div", {
|
|
1527
1529
|
class: "vue-ui-quick-chart-legend-item",
|
|
1528
|
-
onClick: (
|
|
1529
|
-
|
|
1530
|
+
onClick: (s) => {
|
|
1531
|
+
nt(t.id, v.value.legend.length - 1), re("selectLegend", t);
|
|
1530
1532
|
},
|
|
1531
1533
|
style: R(`cursor: ${v.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1532
1534
|
}, [
|
|
1533
|
-
e.value.useCustomLegend ? M(o.$slots, "legend",
|
|
1535
|
+
e.value.useCustomLegend ? M(o.$slots, "legend", De({
|
|
1534
1536
|
key: 0,
|
|
1535
1537
|
ref_for: !0
|
|
1536
1538
|
}, { legend: t }), void 0, !0) : (a(), l(m, { key: 1 }, [
|
|
1537
|
-
|
|
1539
|
+
fe(f(T), {
|
|
1538
1540
|
name: e.value.legendIcon,
|
|
1539
1541
|
stroke: t.color,
|
|
1540
1542
|
size: e.value.legendIconSize
|
|
@@ -1546,16 +1548,16 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
1546
1548
|
], 12, El))), 256)) : g("", !0),
|
|
1547
1549
|
L.value === A.BAR ? (a(!0), l(m, { key: 2 }, $(d.value.legend, (t, u) => (a(), l("div", {
|
|
1548
1550
|
class: "vue-ui-quick-chart-legend-item",
|
|
1549
|
-
onClick: (
|
|
1550
|
-
|
|
1551
|
+
onClick: (s) => {
|
|
1552
|
+
nt(t.id, d.value.legend.length - 1), re("selectLegend", t);
|
|
1551
1553
|
},
|
|
1552
1554
|
style: R(`cursor: ${d.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1553
1555
|
}, [
|
|
1554
|
-
e.value.useCustomLegend ? M(o.$slots, "legend",
|
|
1556
|
+
e.value.useCustomLegend ? M(o.$slots, "legend", De({
|
|
1555
1557
|
key: 0,
|
|
1556
1558
|
ref_for: !0
|
|
1557
1559
|
}, { legend: t }), void 0, !0) : (a(), l(m, { key: 1 }, [
|
|
1558
|
-
|
|
1560
|
+
fe(f(T), {
|
|
1559
1561
|
name: e.value.legendIcon,
|
|
1560
1562
|
stroke: t.color,
|
|
1561
1563
|
size: e.value.legendIconSize
|
|
@@ -1569,13 +1571,13 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
1569
1571
|
o.$slots.source ? (a(), l("div", {
|
|
1570
1572
|
key: 9,
|
|
1571
1573
|
ref_key: "source",
|
|
1572
|
-
ref:
|
|
1574
|
+
ref: Xe,
|
|
1573
1575
|
dir: "auto"
|
|
1574
1576
|
}, [
|
|
1575
1577
|
M(o.$slots, "source", {}, void 0, !0)
|
|
1576
1578
|
], 512)) : g("", !0),
|
|
1577
|
-
|
|
1578
|
-
show:
|
|
1579
|
+
fe(f(pe), {
|
|
1580
|
+
show: be.value.showTooltip && te.value,
|
|
1579
1581
|
backgroundColor: e.value.backgroundColor,
|
|
1580
1582
|
color: e.value.color,
|
|
1581
1583
|
borderRadius: e.value.tooltipBorderRadius,
|
|
@@ -1587,26 +1589,26 @@ const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
1587
1589
|
offsetY: e.value.tooltipOffsetY,
|
|
1588
1590
|
parent: J.value,
|
|
1589
1591
|
content: ae.value,
|
|
1590
|
-
isFullscreen:
|
|
1591
|
-
isCustom: f(
|
|
1592
|
+
isFullscreen: Te.value,
|
|
1593
|
+
isCustom: f(Me)(e.value.tooltipCustomFormat)
|
|
1592
1594
|
}, {
|
|
1593
1595
|
"tooltip-before": G(() => [
|
|
1594
|
-
M(o.$slots, "tooltip-before", ie(ue({ ...
|
|
1596
|
+
M(o.$slots, "tooltip-before", ie(ue({ ...ye.value })), void 0, !0)
|
|
1595
1597
|
]),
|
|
1596
1598
|
"tooltip-after": G(() => [
|
|
1597
|
-
M(o.$slots, "tooltip-after", ie(ue({ ...
|
|
1599
|
+
M(o.$slots, "tooltip-after", ie(ue({ ...ye.value })), void 0, !0)
|
|
1598
1600
|
]),
|
|
1599
1601
|
_: 3
|
|
1600
1602
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"])
|
|
1601
1603
|
], 46, ua)) : (a(), l("div", Tl, [
|
|
1602
|
-
|
|
1604
|
+
fe(f(T), {
|
|
1603
1605
|
name: "circleCancel",
|
|
1604
1606
|
stroke: "red"
|
|
1605
1607
|
}),
|
|
1606
|
-
|
|
1608
|
+
r[8] || (r[8] = _("span", null, "Dataset is not processable", -1))
|
|
1607
1609
|
]));
|
|
1608
1610
|
}
|
|
1609
|
-
}, Wl = /* @__PURE__ */ ea(Pl, [["__scopeId", "data-v-
|
|
1611
|
+
}, Wl = /* @__PURE__ */ ea(Pl, [["__scopeId", "data-v-0aa0d78f"]]);
|
|
1610
1612
|
export {
|
|
1611
1613
|
Wl as default
|
|
1612
1614
|
};
|