vue-data-ui 2.14.3-beta.0 → 2.15.0
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-DrUXalK1.js → Arrow-DKw6950J.js} +1 -1
- package/dist/{BaseDraggableDialog-BBiAE4t8.js → BaseDraggableDialog-BO8fFfAb.js} +2 -2
- package/dist/{BaseIcon-avTvifnO.js → BaseIcon-JM7bAYf6.js} +1 -1
- package/dist/{ColorPicker-BAOfnFRQ.js → ColorPicker-CtdrdDuN.js} +2 -2
- package/dist/{DataTable-D8n1mvaG.js → DataTable-CD2q7tjj.js} +2 -2
- package/dist/{Legend-Cpx0xSce.js → Legend-R-8Q66YR.js} +2 -2
- package/dist/{NonSvgPenAndPaper-ClnGCm8G.js → NonSvgPenAndPaper-DXUlGXql.js} +3 -3
- package/dist/{PackageVersion-Bwu7jdjH.js → PackageVersion-gLNy4C0t.js} +2 -2
- package/dist/{PenAndPaper-BzQcbTCN.js → PenAndPaper-lvQKUG-x.js} +3 -3
- package/dist/{Shape-D65xhJAN.js → Shape-CY4386Ox.js} +1 -1
- package/dist/{Slicer-DjwiDPEk.js → Slicer-DcqyQpMv.js} +2 -2
- package/dist/{SparkTooltip-B8nH7aKM.js → SparkTooltip-DQbXpDUg.js} +1 -1
- package/dist/{Title-B71Dk29x.js → Title-DX1Pj6u8.js} +1 -1
- package/dist/{Tooltip-BuP-Tir7.js → Tooltip-jN48xe9l.js} +1 -1
- package/dist/{UserOptions-fd2DeGS7.js → UserOptions-DYC8tFSC.js} +2 -2
- package/dist/{dom-to-png-D7idYX2d.js → dom-to-png-DgmC_4tW.js} +1 -1
- package/dist/{img-CSeVuPYh.js → img-B90c22Kx.js} +1 -1
- package/dist/{index-BzH6XFI9.js → index-qLjCmB1J.js} +1 -1
- package/dist/{pdf-ksl9rS7r.js → pdf-FFi0pe-v.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-CKM2gCr5.js → useNestedProp-Cv2n6auT.js} +1 -1
- package/dist/{usePrinter-C653sJjz.js → usePrinter-Dh3NHc5Q.js} +2 -2
- package/dist/{vue-data-ui-DdffTqYM.js → vue-data-ui-8wiBgcV4.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-vdc7daf_.js → vue-ui-3d-bar-DdUMyN0e.js} +5 -5
- package/dist/{vue-ui-accordion-Cjq4hqGi.js → vue-ui-accordion-C9TQ7MO4.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CMFgIKLE.js → vue-ui-age-pyramid-Dhy5XNw5.js} +5 -5
- package/dist/{vue-ui-annotator-BvODcd7y.js → vue-ui-annotator-DV1apulf.js} +2 -2
- package/dist/{vue-ui-bullet-BX73-v3g.js → vue-ui-bullet-BdI1gdbT.js} +6 -6
- package/dist/{vue-ui-candlestick-Ogvne-GG.js → vue-ui-candlestick-D38UytRA.js} +6 -6
- package/dist/{vue-ui-carousel-table-DXeRsoL_.js → vue-ui-carousel-table-upPKN2Ap.js} +4 -4
- package/dist/{vue-ui-chestnut-DXDQOgbn.js → vue-ui-chestnut-D2Jw2GKp.js} +4 -4
- package/dist/{vue-ui-chord-CWStby-a.js → vue-ui-chord-D-N7F12j.js} +7 -7
- package/dist/{vue-ui-circle-pack-C4kdJPNJ.js → vue-ui-circle-pack-CHDE9pKa.js} +5 -5
- package/dist/{vue-ui-cursor-Du4IVYWM.js → vue-ui-cursor-BshRfAz-.js} +2 -2
- package/dist/{vue-ui-dashboard-XpoAcLb4.js → vue-ui-dashboard-DcxMfQbm.js} +62 -62
- package/dist/{vue-ui-digits-Ce_eR3L5.js → vue-ui-digits-CJrt5BJ1.js} +2 -2
- package/dist/{vue-ui-donut-D6VPixUt.js → vue-ui-donut-CnL_oyDf.js} +7 -7
- package/dist/{vue-ui-donut-evolution-C3MA75pG.js → vue-ui-donut-evolution-Ds3gml6r.js} +54 -54
- package/dist/{vue-ui-dumbbell-CeQOb65i.js → vue-ui-dumbbell-9LSenoFZ.js} +6 -6
- package/dist/{vue-ui-flow-D-_7gBhg.js → vue-ui-flow-C22v5GN2.js} +6 -6
- package/dist/{vue-ui-funnel-BsXNYzPK.js → vue-ui-funnel-B1nlsC-X.js} +5 -5
- package/dist/{vue-ui-galaxy--N2CYrWl.js → vue-ui-galaxy-B6BpVGEN.js} +4 -4
- package/dist/{vue-ui-gauge-DhKGlAJd.js → vue-ui-gauge-CxIA82Oi.js} +5 -5
- package/dist/{vue-ui-gizmo-Bcwgwj-f.js → vue-ui-gizmo-DoKv0gEe.js} +3 -3
- package/dist/{vue-ui-heatmap-BlY7-ZUF.js → vue-ui-heatmap-DHZfILtm.js} +6 -6
- package/dist/{vue-ui-history-plot-typzqDiw.js → vue-ui-history-plot-CA3K02gG.js} +43 -43
- package/dist/{vue-ui-kpi-Cj_96Iru.js → vue-ui-kpi-Cl4-a765.js} +3 -3
- package/dist/{vue-ui-mini-loader-Dr42qu-K.js → vue-ui-mini-loader-otB8K5br.js} +2 -2
- package/dist/{vue-ui-molecule-DfQCNRcr.js → vue-ui-molecule-Cpzuuc_E.js} +4 -4
- package/dist/{vue-ui-mood-radar-ChryER9p.js → vue-ui-mood-radar-C9gjpo76.js} +6 -6
- package/dist/{vue-ui-nested-donuts-CWm-A-co.js → vue-ui-nested-donuts-DIMdD7XN.js} +6 -6
- package/dist/{vue-ui-onion-Bb8s5St0.js → vue-ui-onion-DZuOWHN2.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-DcD53HSq.js → vue-ui-parallel-coordinate-plot-DFaCAOJ4.js} +33 -33
- package/dist/{vue-ui-quadrant-CpuFmTG9.js → vue-ui-quadrant-B69rCR3d.js} +10 -10
- package/dist/{vue-ui-quick-chart-BHO_J8Tc.js → vue-ui-quick-chart-D3ViBIuY.js} +156 -156
- package/dist/{vue-ui-radar-LsSH7YAg.js → vue-ui-radar-CL29WxOp.js} +6 -6
- package/dist/{vue-ui-rating-rcN8C68M.js → vue-ui-rating-CSUNb7yY.js} +2 -2
- package/dist/{vue-ui-relation-circle-CmZ8rXwC.js → vue-ui-relation-circle-MKe1JnkD.js} +5 -5
- package/dist/{vue-ui-ridgeline-CpXWT3tk.js → vue-ui-ridgeline-WutbT4di.js} +10 -10
- package/dist/{vue-ui-rings-x_HCzzIw.js → vue-ui-rings-DrZTS5Im.js} +7 -7
- package/dist/{vue-ui-scatter-DNgUU2mO.js → vue-ui-scatter-BlLXM8Bx.js} +7 -7
- package/dist/{vue-ui-skeleton-qa5B2MES.js → vue-ui-skeleton-Cj6SRkhT.js} +3 -3
- package/dist/{vue-ui-smiley-C0DEaxQK.js → vue-ui-smiley-DUydiLLl.js} +2 -2
- package/dist/{vue-ui-spark-trend-DjctYLri.js → vue-ui-spark-trend-CvmlasIX.js} +3 -3
- package/dist/{vue-ui-sparkbar-Un3CJINy.js → vue-ui-sparkbar-Dz6SDThS.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BascS5LC.js → vue-ui-sparkgauge-D2JyRos2.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CZYnWAUW.js → vue-ui-sparkhistogram-BdI9frTN.js} +4 -4
- package/dist/{vue-ui-sparkline-DyIDPpiz.js → vue-ui-sparkline-BAISGFMq.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-Ctz_OFbi.js → vue-ui-sparkstackbar-Da7IAbHx.js} +3 -3
- package/dist/{vue-ui-stackbar-DqIv6O-t.js → vue-ui-stackbar-eMnoUkhf.js} +13 -13
- package/dist/{vue-ui-strip-plot-BAfdL6Ih.js → vue-ui-strip-plot-DYUHvHpY.js} +9 -9
- package/dist/{vue-ui-table-CCMkrVp7.js → vue-ui-table-CB6cwGXN.js} +3 -3
- package/dist/{vue-ui-table-heatmap--gO5Zuyp.js → vue-ui-table-heatmap-CPk8caYe.js} +5 -5
- package/dist/{vue-ui-table-sparkline-5HTiQPhC.js → vue-ui-table-sparkline-NBtUQVOW.js} +4 -4
- package/dist/{vue-ui-thermometer-BbxNtsdP.js → vue-ui-thermometer-1QS5hzkW.js} +5 -5
- package/dist/{vue-ui-timer-DwUmt-Jo.js → vue-ui-timer-C0n7n4ne.js} +5 -5
- package/dist/{vue-ui-tiremarks-YyiGuluO.js → vue-ui-tiremarks-DfBTlpK1.js} +5 -5
- package/dist/{vue-ui-treemap-hHSyoGry.js → vue-ui-treemap-BTvd5pVa.js} +7 -7
- package/dist/{vue-ui-vertical-bar-Bjyjarmi.js → vue-ui-vertical-bar-COH9EX2H.js} +8 -8
- package/dist/{vue-ui-waffle-B3lfeeZs.js → vue-ui-waffle-BdDGN-F-.js} +7 -7
- package/dist/{vue-ui-wheel-DrVnxe3n.js → vue-ui-wheel-Cd8GfuiY.js} +5 -5
- package/dist/{vue-ui-word-cloud-CRFfYl4B.js → vue-ui-word-cloud-BquWmmCH.js} +5 -5
- package/dist/{vue-ui-world-BeVT9bsc.js → vue-ui-world-BX4K7BvL.js} +5 -5
- package/dist/{vue-ui-xy-canvas-DviTudRz.js → vue-ui-xy-canvas-BwJTSCIj.js} +7 -7
- package/dist/{vue-ui-xy-B6LjQd7h.js → vue-ui-xy-jhm3Dnsm.js} +19 -19
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineAsyncComponent as ce, ref as z, computed as U, watch as Ve, shallowRef as ht, onMounted as Tt, onBeforeUnmount as Ot, nextTick as Me, createElementBlock as l, openBlock as a, normalizeStyle as R, normalizeClass as he, createBlock as Fe, createCommentVNode as g, createVNode as fe, unref as f, createSlots as Pt, withCtx as G, renderSlot as M, normalizeProps as ne, guardReactiveProps as
|
|
2
|
-
import { u as Rt, c as Mt, t as Ft, p as q, a as Nt, C as ft, b as Ut, H as Bt, e as Dt, d as He, m as Vt, D as gt, X as qt, j as Ht, k as We, n as Le, i as X, f as D, I as Wt, V as mt, v as Z, x as Ne, y as je } from "./index-
|
|
1
|
+
import { defineAsyncComponent as ce, ref as z, computed as U, watch as Ve, shallowRef as ht, onMounted as Tt, onBeforeUnmount as Ot, nextTick as Me, createElementBlock as l, openBlock as a, normalizeStyle as R, normalizeClass as he, createBlock as Fe, createCommentVNode as g, createVNode as fe, unref as f, createSlots as Pt, withCtx as G, renderSlot as M, normalizeProps as ne, guardReactiveProps as ie, toDisplayString as T, createElementVNode as _, Fragment as m, renderList as $, mergeProps as qe } from "vue";
|
|
2
|
+
import { u as Rt, c as Mt, t as Ft, p as q, a as Nt, C as ft, b as Ut, H as Bt, e as Dt, d as He, m as Vt, D as gt, X as qt, j as Ht, k as We, n as Le, i as X, f as D, I as Wt, V as mt, v as Z, x as Ne, y as je } from "./index-qLjCmB1J.js";
|
|
3
3
|
import { t as jt, u as Gt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
-
import { u as pt } from "./useNestedProp-
|
|
5
|
-
import { u as Xt } from "./usePrinter-
|
|
4
|
+
import { u as pt } from "./useNestedProp-Cv2n6auT.js";
|
|
5
|
+
import { u as Xt } from "./usePrinter-Dh3NHc5Q.js";
|
|
6
6
|
import { u as Zt } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
-
import { S as Yt } from "./Slicer-
|
|
7
|
+
import { S as Yt } from "./Slicer-DcqyQpMv.js";
|
|
8
8
|
import { u as Jt } from "./useTimeLabels-Mrr0jrpL.js";
|
|
9
9
|
import { _ as Qt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
const A = {
|
|
@@ -86,7 +86,7 @@ function kt(c) {
|
|
|
86
86
|
c.hasOwnProperty(x) && (C[x.toUpperCase()] = c[x]);
|
|
87
87
|
return C;
|
|
88
88
|
}
|
|
89
|
-
const na = ["id"],
|
|
89
|
+
const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"], ra = ["x", "y", "width", "height"], sa = ["width", "height"], va = ["id"], da = ["id"], ca = ["id"], ha = ["flood-color"], fa = {
|
|
90
90
|
key: 0,
|
|
91
91
|
class: "donut-label-connectors"
|
|
92
92
|
}, ga = ["d", "stroke", "stroke-width", "filter"], ma = ["cx", "cy", "r", "fill", "filter"], pa = { class: "donut" }, xa = ["d", "fill", "stroke", "stroke-width", "filter"], ya = ["d", "onMouseenter", "onClick"], ka = {
|
|
@@ -119,7 +119,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
119
119
|
}, al = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ol = {
|
|
120
120
|
key: 2,
|
|
121
121
|
class: "yLabels"
|
|
122
|
-
}, nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"],
|
|
122
|
+
}, nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], il = ["x", "y", "font-size", "fill"], ul = {
|
|
123
123
|
key: 3,
|
|
124
124
|
class: "periodLabels"
|
|
125
125
|
}, rl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], sl = ["font-size", "text-anchor", "transform", "fill"], vl = { class: "plots" }, dl = ["x", "width", "height", "y", "fill", "stroke", "stroke-width"], cl = ["to"], hl = ["from", "to"], fl = {
|
|
@@ -152,7 +152,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
152
152
|
},
|
|
153
153
|
emits: ["selectDatapoint", "selectLegend"],
|
|
154
154
|
setup(c, { expose: C, emit: x }) {
|
|
155
|
-
const O = ce(() => import("./BaseIcon-
|
|
155
|
+
const O = ce(() => import("./BaseIcon-JM7bAYf6.js")), H = ce(() => import("./PackageVersion-gLNy4C0t.js")), ge = ce(() => import("./PenAndPaper-lvQKUG-x.js")), me = ce(() => import("./vue-ui-skeleton-Cj6SRkhT.js")), pe = ce(() => import("./Tooltip-jN48xe9l.js")), $e = ce(() => import("./UserOptions-DYC8tFSC.js")), { vue_ui_quick_chart: F } = Rt(), B = c, xe = z(null), Ge = z(null), Xe = z(null), Ze = z(null), J = z(Mt()), ee = z(!1), ye = z(null), te = z(""), W = z(null), Ye = z(null), Je = z(null), w = z([]), Qe = z(0), Ce = z(0), e = U({
|
|
156
156
|
get: () => at(),
|
|
157
157
|
set: (o) => o
|
|
158
158
|
}), { svgRef: Ke } = Zt({ config: { text: e.value.title } }), St = U(() => e.value.showUserOptionsOnChartHover), et = U(() => e.value.keepUserOptionsStateOnChartLeave), Ie = z(!e.value.showUserOptionsOnChartHover);
|
|
@@ -178,7 +178,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
178
178
|
}, { deep: !0 }), Ve(() => B.dataset, (o) => {
|
|
179
179
|
p.value = be.value, y.value.start = 0, y.value.end = p.value.maxSeriesLength, Ce.value += 1;
|
|
180
180
|
}, { deep: !0 });
|
|
181
|
-
const ke = U(() => Ut(e.value.customPalette)),
|
|
181
|
+
const ke = U(() => Ut(e.value.customPalette)), ue = x, be = U(() => {
|
|
182
182
|
const o = ea({ dataset: Bt(B.dataset, [
|
|
183
183
|
"serie",
|
|
184
184
|
"series",
|
|
@@ -242,30 +242,30 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
242
242
|
return `0 0 ${b.value.width <= 0 ? 10 : b.value.width} ${b.value.height <= 0 ? 10 : b.value.height}`;
|
|
243
243
|
}
|
|
244
244
|
});
|
|
245
|
-
function
|
|
245
|
+
function it(o) {
|
|
246
246
|
return [...o].map((s) => s.value).reduce((s, t) => s + t, 0);
|
|
247
247
|
}
|
|
248
248
|
function we(o) {
|
|
249
249
|
return e.value.blurOnHover && ![null, void 0].includes(W.value) && W.value !== o ? `url(#blur_${J.value})` : "";
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function ut(o, s) {
|
|
252
252
|
w.value.includes(o) ? w.value = w.value.filter((t) => t !== o) : w.value.length < s && w.value.push(o);
|
|
253
253
|
}
|
|
254
254
|
const rt = z(null), st = z(null), Oe = z(!1);
|
|
255
255
|
function Lt(o, s) {
|
|
256
256
|
Oe.value = !0;
|
|
257
257
|
let t = o.value;
|
|
258
|
-
const
|
|
258
|
+
const u = be.value.dataset.find((r, h) => o.id === `donut_${h}`).VALUE;
|
|
259
259
|
if (w.value.includes(o.id)) {
|
|
260
260
|
let r = function() {
|
|
261
|
-
t >
|
|
261
|
+
t > u ? (Oe.value = !1, cancelAnimationFrame(st.value), p.value = {
|
|
262
262
|
...p.value,
|
|
263
263
|
dataset: p.value.dataset.map((h, P) => o.id === `donut_${P}` ? {
|
|
264
264
|
...h,
|
|
265
|
-
value:
|
|
266
|
-
VALUE:
|
|
265
|
+
value: u,
|
|
266
|
+
VALUE: u
|
|
267
267
|
} : h)
|
|
268
|
-
}) : (t +=
|
|
268
|
+
}) : (t += u * 0.025, p.value = {
|
|
269
269
|
...p.value,
|
|
270
270
|
dataset: p.value.dataset.map((h, P) => o.id === `donut_${P}` ? {
|
|
271
271
|
...h,
|
|
@@ -277,7 +277,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
277
277
|
w.value = w.value.filter((h) => h !== o.id), r();
|
|
278
278
|
} else if (s.length > 1) {
|
|
279
279
|
let r = function() {
|
|
280
|
-
t <
|
|
280
|
+
t < u / 100 ? (Oe.value = !1, cancelAnimationFrame(rt.value), w.value.push(o.id), p.value = {
|
|
281
281
|
...p.value,
|
|
282
282
|
dataset: p.value.dataset.map((h, P) => o.id === `donut_${P}` ? {
|
|
283
283
|
...h,
|
|
@@ -302,19 +302,19 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
302
302
|
}
|
|
303
303
|
const vt = U(() => e.value.donutThicknessRatio < 0.15 ? 0.15 : e.value.donutThicknessRatio > 0.4 ? 0.4 : e.value.donutThicknessRatio), I = U(() => {
|
|
304
304
|
if (L.value !== A.DONUT) return null;
|
|
305
|
-
const o = p.value.dataset.map((n,
|
|
305
|
+
const o = p.value.dataset.map((n, i) => ({
|
|
306
306
|
...n,
|
|
307
307
|
value: n.VALUE || n.DATA || n.SERIE || n.VALUES || n.NUM || 0,
|
|
308
|
-
name: n.NAME || n.DESCRIPTION || n.TITLE || n.LABEL || `Serie ${
|
|
309
|
-
id: `donut_${
|
|
310
|
-
})).map((n,
|
|
308
|
+
name: n.NAME || n.DESCRIPTION || n.TITLE || n.LABEL || `Serie ${i}`,
|
|
309
|
+
id: `donut_${i}`
|
|
310
|
+
})).map((n, i) => ({
|
|
311
311
|
...n,
|
|
312
|
-
color: n.COLOR ? He(n.COLOR) : ke.value[
|
|
312
|
+
color: n.COLOR ? He(n.COLOR) : ke.value[i + e.value.paletteStartIndex] || q[i + e.value.paletteStartIndex] || q[(i + e.value.paletteStartIndex) % q.length],
|
|
313
313
|
immutableValue: n.value
|
|
314
314
|
}));
|
|
315
|
-
function s(n,
|
|
315
|
+
function s(n, i) {
|
|
316
316
|
return D({
|
|
317
|
-
v: isNaN(n.value /
|
|
317
|
+
v: isNaN(n.value / it(i)) ? 0 : n.value / it(i) * 100,
|
|
318
318
|
s: "%",
|
|
319
319
|
r: e.value.dataLabelRoundingPercentage
|
|
320
320
|
});
|
|
@@ -322,22 +322,22 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
322
322
|
function t(n) {
|
|
323
323
|
return n.proportion * 100 > e.value.donutHideLabelUnderPercentage;
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function u(n, i) {
|
|
326
326
|
const S = be.value.dataset.find((E, N) => `donut_${N}` === n).VALUE;
|
|
327
|
-
return Math.abs(String(Number(S.toFixed(0))).length - String(Number(
|
|
327
|
+
return Math.abs(String(Number(S.toFixed(0))).length - String(Number(i.toFixed(0))).length);
|
|
328
328
|
}
|
|
329
|
-
function r({ datapoint: n, seriesIndex:
|
|
330
|
-
ye.value = { datapoint: n, seriesIndex:
|
|
329
|
+
function r({ datapoint: n, seriesIndex: i }) {
|
|
330
|
+
ye.value = { datapoint: n, seriesIndex: i, config: e.value, dataset: o }, W.value = n.id;
|
|
331
331
|
const S = e.value.tooltipCustomFormat;
|
|
332
332
|
if (Ne(S) && je(() => S({
|
|
333
333
|
datapoint: n,
|
|
334
|
-
seriesIndex:
|
|
334
|
+
seriesIndex: i,
|
|
335
335
|
series: o,
|
|
336
336
|
config: e.value
|
|
337
337
|
})))
|
|
338
338
|
te.value = S({
|
|
339
339
|
datapoint: n,
|
|
340
|
-
seriesIndex:
|
|
340
|
+
seriesIndex: i,
|
|
341
341
|
series: o,
|
|
342
342
|
config: e.value
|
|
343
343
|
});
|
|
@@ -352,7 +352,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
352
352
|
s: e.value.valueSuffix,
|
|
353
353
|
r: e.value.dataLabelRoundingValue
|
|
354
354
|
}),
|
|
355
|
-
{ datapoint: n, seriesIndex:
|
|
355
|
+
{ datapoint: n, seriesIndex: i }
|
|
356
356
|
)}</b>`, k += `<span>(${D({ v: n.proportion * 100, s: "%", r: e.value.dataLabelRoundingPercentage })})</span></div>`, te.value = `<div>${k}</div>`;
|
|
357
357
|
}
|
|
358
358
|
ee.value = !0;
|
|
@@ -363,7 +363,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
363
363
|
const P = {
|
|
364
364
|
centerX: b.value.width / 2,
|
|
365
365
|
centerY: b.value.height / 2
|
|
366
|
-
}, V = o.filter((n) => !w.value.includes(n.id)).map((n) => n.value || 0).reduce((n,
|
|
366
|
+
}, 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) => ({
|
|
367
367
|
...n,
|
|
368
368
|
proportion: (n.value || 0) / V,
|
|
369
369
|
value: n.value || 0,
|
|
@@ -377,7 +377,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
377
377
|
isArcBigEnough: t,
|
|
378
378
|
useTooltip: r,
|
|
379
379
|
killTooltip: h,
|
|
380
|
-
getSpaces:
|
|
380
|
+
getSpaces: u,
|
|
381
381
|
total: V,
|
|
382
382
|
cx: ae,
|
|
383
383
|
cy: de,
|
|
@@ -428,8 +428,8 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
428
428
|
else
|
|
429
429
|
for (let r = 0; r < s; r += 1)
|
|
430
430
|
t.push(o.map((h) => h.values[r] || 0).reduce((h, P) => (h || 0) + (P || 0), 0));
|
|
431
|
-
const
|
|
432
|
-
return t.map((r) => r + (
|
|
431
|
+
const u = Math.min(...t);
|
|
432
|
+
return t.map((r) => r + (u < 0 ? Math.abs(u) : 0));
|
|
433
433
|
}), v = U(() => {
|
|
434
434
|
if (L.value !== A.LINE) return null;
|
|
435
435
|
const o = {
|
|
@@ -447,31 +447,31 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
447
447
|
Y(p.value.dataset) && (t = [
|
|
448
448
|
{
|
|
449
449
|
values: p.value.dataset.slice(y.value.start, y.value.end),
|
|
450
|
-
absoluteIndices: p.value.dataset.map((n,
|
|
450
|
+
absoluteIndices: p.value.dataset.map((n, i) => i).slice(y.value.start, y.value.end),
|
|
451
451
|
name: e.value.title,
|
|
452
452
|
color: ke.value[e.value.paletteStartIndex] || q[e.value.paletteStartIndex],
|
|
453
453
|
id: "line_0"
|
|
454
454
|
}
|
|
455
|
-
]), Ue(p.value.dataset) && (t = p.value.dataset.map((n,
|
|
455
|
+
]), Ue(p.value.dataset) && (t = p.value.dataset.map((n, i) => ({
|
|
456
456
|
...n,
|
|
457
457
|
values: n.VALUE || n.DATA || n.SERIE || n.SERIES || n.VALUES || n.NUM || 0,
|
|
458
|
-
name: n.NAME || n.DESCRIPTION || n.TITLE || n.LABEL || `Serie ${
|
|
459
|
-
id: `line_${
|
|
460
|
-
})).map((n,
|
|
458
|
+
name: n.NAME || n.DESCRIPTION || n.TITLE || n.LABEL || `Serie ${i}`,
|
|
459
|
+
id: `line_${i}`
|
|
460
|
+
})).map((n, i) => ({
|
|
461
461
|
...n,
|
|
462
|
-
color: n.COLOR ? He(n.COLOR) : ke.value[
|
|
462
|
+
color: n.COLOR ? He(n.COLOR) : ke.value[i + e.value.paletteStartIndex] || q[i + e.value.paletteStartIndex] || q[(i + e.value.paletteStartIndex) % q.length],
|
|
463
463
|
values: n.values.slice(y.value.start, y.value.end),
|
|
464
464
|
absoluteIndices: n.values.map((S, k) => k).slice(y.value.start, y.value.end)
|
|
465
465
|
})));
|
|
466
|
-
const
|
|
466
|
+
const u = {
|
|
467
467
|
max: Math.max(...t.filter((n) => !w.value.includes(n.id)).flatMap((n) => n.values)),
|
|
468
468
|
min: Math.min(...t.filter((n) => !w.value.includes(n.id)).flatMap((n) => n.values)),
|
|
469
469
|
maxSeries: Math.max(...t.map((n) => n.values.length))
|
|
470
|
-
}, r = gt(
|
|
470
|
+
}, r = gt(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 ? s.top : s.bottom - h / (r.max + h) * s.height, V = s.width / u.maxSeries, ve = r.ticks.map((n) => ({
|
|
471
471
|
y: s.bottom - s.height * ((n + h) / (r.max + h)),
|
|
472
472
|
x: s.left - 8,
|
|
473
473
|
value: n
|
|
474
|
-
})), ae = t.map((n,
|
|
474
|
+
})), ae = t.map((n, i) => ({
|
|
475
475
|
...n,
|
|
476
476
|
coordinates: n.values.map((S, k) => ({
|
|
477
477
|
x: s.left + V * (k + 1) - V / 2,
|
|
@@ -479,38 +479,38 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
479
479
|
value: S
|
|
480
480
|
}))
|
|
481
481
|
})).map((n) => {
|
|
482
|
-
let
|
|
482
|
+
let i = [];
|
|
483
483
|
return n.coordinates.forEach((S) => {
|
|
484
|
-
|
|
484
|
+
i.push(`${S.x},${S.y} `);
|
|
485
485
|
}), {
|
|
486
486
|
...n,
|
|
487
|
-
linePath:
|
|
487
|
+
linePath: i.join(" ")
|
|
488
488
|
};
|
|
489
489
|
});
|
|
490
490
|
function de(n) {
|
|
491
491
|
W.value = n, j.value = n;
|
|
492
|
-
const
|
|
492
|
+
const i = t.map((k) => ({
|
|
493
493
|
...k,
|
|
494
494
|
value: k.values[n],
|
|
495
495
|
absoluteIndex: k.absoluteIndices[n]
|
|
496
496
|
})).filter((k) => !w.value.includes(k.id));
|
|
497
|
-
ye.value = { datapoint:
|
|
497
|
+
ye.value = { datapoint: i, seriesIndex: n, config: e.value, dataset: t };
|
|
498
498
|
const S = e.value.tooltipCustomFormat;
|
|
499
499
|
if (Ne(S) && je(() => S({
|
|
500
|
-
datapoint:
|
|
500
|
+
datapoint: i,
|
|
501
501
|
seriesIndex: n,
|
|
502
502
|
series: t,
|
|
503
503
|
config: e.value
|
|
504
504
|
})))
|
|
505
505
|
te.value = S({
|
|
506
|
-
datapoint:
|
|
506
|
+
datapoint: i,
|
|
507
507
|
seriesIndex: n,
|
|
508
508
|
series: t,
|
|
509
509
|
config: e.value
|
|
510
510
|
});
|
|
511
511
|
else {
|
|
512
512
|
let k = "";
|
|
513
|
-
K.value[
|
|
513
|
+
K.value[i[0].absoluteIndex] && (k += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${K.value[i[0].absoluteIndex].text}</div>`), i.forEach((E, N) => {
|
|
514
514
|
k += `
|
|
515
515
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
516
516
|
<svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${E.color}"/></svg>
|
|
@@ -541,7 +541,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
541
541
|
dataset: ae.filter((n) => !w.value.includes(n.id)),
|
|
542
542
|
legend: ae,
|
|
543
543
|
drawingArea: s,
|
|
544
|
-
extremes:
|
|
544
|
+
extremes: u,
|
|
545
545
|
slotSize: V,
|
|
546
546
|
yLabels: ve,
|
|
547
547
|
useTooltip: de,
|
|
@@ -564,34 +564,34 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
564
564
|
Y(p.value.dataset) && (t = [
|
|
565
565
|
{
|
|
566
566
|
values: p.value.dataset.slice(y.value.start, y.value.end),
|
|
567
|
-
absoluteIndices: p.value.dataset.map((
|
|
567
|
+
absoluteIndices: p.value.dataset.map((i, S) => S).slice(y.value.start, y.value.end),
|
|
568
568
|
name: e.value.title,
|
|
569
569
|
color: ke.value[e.value.paletteStartIndex] || q[e.value.paletteStartIndex],
|
|
570
570
|
id: "bar_0"
|
|
571
571
|
}
|
|
572
|
-
]), Ue(p.value.dataset) && (t = p.value.dataset.map((
|
|
573
|
-
...
|
|
574
|
-
values:
|
|
575
|
-
name:
|
|
572
|
+
]), Ue(p.value.dataset) && (t = p.value.dataset.map((i, S) => ({
|
|
573
|
+
...i,
|
|
574
|
+
values: i.VALUE || i.DATA || i.SERIE || i.SERIES || i.VALUES || i.NUM || 0,
|
|
575
|
+
name: i.NAME || i.DESCRIPTION || i.TITLE || i.LABEL || `Serie ${S}`,
|
|
576
576
|
id: `bar_${S}`
|
|
577
|
-
})).map((
|
|
578
|
-
...
|
|
579
|
-
color:
|
|
580
|
-
values:
|
|
581
|
-
absoluteIndices:
|
|
577
|
+
})).map((i, S) => ({
|
|
578
|
+
...i,
|
|
579
|
+
color: i.COLOR ? He(i.COLOR) : ke.value[S + e.value.paletteStartIndex] || q[S + e.value.paletteStartIndex] || q[(S + e.value.paletteStartIndex) % q.length],
|
|
580
|
+
values: i.values.slice(y.value.start, y.value.end),
|
|
581
|
+
absoluteIndices: i.values.map((k, E) => E).slice(y.value.start, y.value.end)
|
|
582
582
|
})));
|
|
583
|
-
const
|
|
584
|
-
max: Math.max(...t.filter((
|
|
585
|
-
min: Math.min(...t.filter((
|
|
586
|
-
maxSeries: Math.max(...t.filter((
|
|
587
|
-
}, r = gt(
|
|
588
|
-
y: s.bottom - s.height * ((
|
|
583
|
+
const u = {
|
|
584
|
+
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)),
|
|
585
|
+
min: Math.min(...t.filter((i) => !w.value.includes(i.id)).flatMap((i) => i.values)),
|
|
586
|
+
maxSeries: Math.max(...t.filter((i) => !w.value.includes(i.id)).map((i) => i.values.length))
|
|
587
|
+
}, r = gt(u.min < 0 ? u.min : 0, u.max, e.value.xyScaleSegments), h = r.min < 0 ? Math.abs(r.min) : 0, P = s.bottom - h / (r.max + h) * s.height, V = s.width / u.maxSeries, ve = r.ticks.map((i) => ({
|
|
588
|
+
y: s.bottom - s.height * ((i + h) / (r.max + h)),
|
|
589
589
|
x: s.left - 8,
|
|
590
|
-
value:
|
|
591
|
-
})), ae = t.map((
|
|
592
|
-
...
|
|
593
|
-
coordinates:
|
|
594
|
-
const N = (k + h) / (
|
|
590
|
+
value: i
|
|
591
|
+
})), ae = t.map((i, S) => ({
|
|
592
|
+
...i,
|
|
593
|
+
coordinates: i.values.map((k, E) => {
|
|
594
|
+
const N = (k + h) / (u.max + h) * s.height, Ae = Math.abs(k) / Math.abs(u.min) * (s.height - P), De = h / (u.max + h) * s.height, _e = V / t.filter((oe) => !w.value.includes(oe.id)).length - e.value.barGap / t.filter((oe) => !w.value.includes(oe.id)).length;
|
|
595
595
|
return {
|
|
596
596
|
x: s.left + V * E + _e * S + e.value.barGap / 2,
|
|
597
597
|
y: k > 0 ? s.bottom - N : P,
|
|
@@ -600,10 +600,10 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
600
600
|
width: _e
|
|
601
601
|
};
|
|
602
602
|
})
|
|
603
|
-
})), de = t.filter((
|
|
604
|
-
...
|
|
605
|
-
coordinates:
|
|
606
|
-
const N = (k + h) / (
|
|
603
|
+
})), de = t.filter((i) => !w.value.includes(i.id)).map((i, S) => ({
|
|
604
|
+
...i,
|
|
605
|
+
coordinates: i.values.map((k, E) => {
|
|
606
|
+
const N = (k + h) / (u.max + h) * s.height, Ae = Math.abs(k) / (u.max + h) * s.height, De = h / (u.max + h) * s.height, _e = V / t.filter((oe) => !w.value.includes(oe.id)).length - e.value.barGap / t.filter((oe) => !w.value.includes(oe.id)).length;
|
|
607
607
|
return {
|
|
608
608
|
x: s.left + V * E + _e * S + e.value.barGap / 2,
|
|
609
609
|
y: k > 0 ? s.bottom - N : P,
|
|
@@ -613,24 +613,24 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
613
613
|
};
|
|
614
614
|
})
|
|
615
615
|
}));
|
|
616
|
-
function le(
|
|
617
|
-
W.value =
|
|
616
|
+
function le(i) {
|
|
617
|
+
W.value = i, j.value = i;
|
|
618
618
|
const S = t.map((E) => ({
|
|
619
619
|
...E,
|
|
620
|
-
value: E.values[
|
|
621
|
-
absoluteIndex: E.absoluteIndices[
|
|
620
|
+
value: E.values[i],
|
|
621
|
+
absoluteIndex: E.absoluteIndices[i]
|
|
622
622
|
})).filter((E) => !w.value.includes(E.id));
|
|
623
|
-
ye.value = { datapoint: S, seriesIndex:
|
|
623
|
+
ye.value = { datapoint: S, seriesIndex: i, config: e.value, dataset: t };
|
|
624
624
|
const k = e.value.tooltipCustomFormat;
|
|
625
625
|
if (Ne(k) && je(() => k({
|
|
626
626
|
datapoint: S,
|
|
627
|
-
seriesIndex:
|
|
627
|
+
seriesIndex: i,
|
|
628
628
|
series: t,
|
|
629
629
|
config: e.value
|
|
630
630
|
})))
|
|
631
631
|
te.value = k({
|
|
632
632
|
point: S,
|
|
633
|
-
seriesIndex:
|
|
633
|
+
seriesIndex: i,
|
|
634
634
|
series: t,
|
|
635
635
|
config: e.value
|
|
636
636
|
});
|
|
@@ -664,10 +664,10 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
664
664
|
}
|
|
665
665
|
return {
|
|
666
666
|
absoluteZero: P,
|
|
667
|
-
dataset: de.filter((
|
|
667
|
+
dataset: de.filter((i) => !w.value.includes(i.id)),
|
|
668
668
|
legend: ae,
|
|
669
669
|
drawingArea: s,
|
|
670
|
-
extremes:
|
|
670
|
+
extremes: u,
|
|
671
671
|
slotSize: V,
|
|
672
672
|
yLabels: ve,
|
|
673
673
|
useTooltip: le,
|
|
@@ -752,8 +752,8 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
752
752
|
}, Pt({ _: 2 }, [
|
|
753
753
|
o.$slots.menuIcon ? {
|
|
754
754
|
name: "menuIcon",
|
|
755
|
-
fn: G(({ isOpen: t, color:
|
|
756
|
-
M(o.$slots, "menuIcon", ne(
|
|
755
|
+
fn: G(({ isOpen: t, color: u }) => [
|
|
756
|
+
M(o.$slots, "menuIcon", ne(ie({ isOpen: t, color: u })), void 0, !0)
|
|
757
757
|
]),
|
|
758
758
|
key: "0"
|
|
759
759
|
} : void 0,
|
|
@@ -780,15 +780,15 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
780
780
|
} : void 0,
|
|
781
781
|
o.$slots.optionFullscreen ? {
|
|
782
782
|
name: "optionFullscreen",
|
|
783
|
-
fn: G(({ toggleFullscreen: t, isFullscreen:
|
|
784
|
-
M(o.$slots, "optionFullscreen", ne(
|
|
783
|
+
fn: G(({ toggleFullscreen: t, isFullscreen: u }) => [
|
|
784
|
+
M(o.$slots, "optionFullscreen", ne(ie({ toggleFullscreen: t, isFullscreen: u })), void 0, !0)
|
|
785
785
|
]),
|
|
786
786
|
key: "4"
|
|
787
787
|
} : void 0,
|
|
788
788
|
o.$slots.optionAnnotator ? {
|
|
789
789
|
name: "optionAnnotator",
|
|
790
|
-
fn: G(({ toggleAnnotator: t, isAnnotator:
|
|
791
|
-
M(o.$slots, "optionAnnotator", ne(
|
|
790
|
+
fn: G(({ toggleAnnotator: t, isAnnotator: u }) => [
|
|
791
|
+
M(o.$slots, "optionAnnotator", ne(ie({ toggleAnnotator: t, isAnnotator: u })), void 0, !0)
|
|
792
792
|
]),
|
|
793
793
|
key: "5"
|
|
794
794
|
} : void 0
|
|
@@ -820,7 +820,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
820
820
|
}
|
|
821
821
|
}, [
|
|
822
822
|
M(o.$slots, "chart-background", {}, void 0, !0)
|
|
823
|
-
], 8,
|
|
823
|
+
], 8, ua)) : g("", !0),
|
|
824
824
|
o.$slots["chart-background"] && L.value === A.LINE ? (a(), l("foreignObject", {
|
|
825
825
|
key: 1,
|
|
826
826
|
x: v.value.drawingArea.left,
|
|
@@ -878,7 +878,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
878
878
|
]),
|
|
879
879
|
L.value === A.DONUT ? (a(), l(m, { key: 3 }, [
|
|
880
880
|
e.value.showDataLabels ? (a(), l("g", fa, [
|
|
881
|
-
(a(!0), l(m, null, $(I.value.chart, (t,
|
|
881
|
+
(a(!0), l(m, null, $(I.value.chart, (t, u) => (a(), l(m, null, [
|
|
882
882
|
I.value.isArcBigEnough(t) ? (a(), l("path", {
|
|
883
883
|
key: 0,
|
|
884
884
|
d: f(Ht)(t, { x: b.value.width / 2, y: b.value.height / 2 }, 16, 16, !1, !1, b.value.height * vt.value),
|
|
@@ -899,23 +899,23 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
899
899
|
filter: e.value.donutUseShadow ? `url(#shadow_${J.value})` : ""
|
|
900
900
|
}, null, 8, ma),
|
|
901
901
|
_("g", pa, [
|
|
902
|
-
(a(!0), l(m, null, $(I.value.chart, (t,
|
|
902
|
+
(a(!0), l(m, null, $(I.value.chart, (t, u) => (a(), l("path", {
|
|
903
903
|
d: t.arcSlice,
|
|
904
904
|
fill: t.color,
|
|
905
905
|
stroke: e.value.backgroundColor,
|
|
906
906
|
"stroke-width": e.value.donutStrokeWidth,
|
|
907
907
|
filter: we(t.id)
|
|
908
908
|
}, null, 8, xa))), 256)),
|
|
909
|
-
(a(!0), l(m, null, $(I.value.chart, (t,
|
|
909
|
+
(a(!0), l(m, null, $(I.value.chart, (t, u) => (a(), l("path", {
|
|
910
910
|
d: t.arcSlice,
|
|
911
911
|
fill: "transparent",
|
|
912
|
-
onMouseenter: (r) => I.value.useTooltip({ datapoint: t, seriesIndex:
|
|
912
|
+
onMouseenter: (r) => I.value.useTooltip({ datapoint: t, seriesIndex: u }),
|
|
913
913
|
onMouseout: s[0] || (s[0] = (r) => I.value.killTooltip()),
|
|
914
|
-
onClick: (r) =>
|
|
914
|
+
onClick: (r) => ue("selectDatapoint", t)
|
|
915
915
|
}, null, 40, ya))), 256))
|
|
916
916
|
]),
|
|
917
917
|
e.value.showDataLabels ? (a(), l("g", ka, [
|
|
918
|
-
(a(!0), l(m, null, $(I.value.chart, (t,
|
|
918
|
+
(a(!0), l(m, null, $(I.value.chart, (t, u) => (a(), l(m, null, [
|
|
919
919
|
I.value.isArcBigEnough(t) ? (a(), l("circle", {
|
|
920
920
|
key: 0,
|
|
921
921
|
cx: f(Le)(t).x,
|
|
@@ -943,7 +943,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
943
943
|
s: e.value.valueSuffix,
|
|
944
944
|
r: e.value.dataLabelRoundingValue
|
|
945
945
|
}),
|
|
946
|
-
{ datapoint: t, seriesIndex:
|
|
946
|
+
{ datapoint: t, seriesIndex: u }
|
|
947
947
|
)) + ") ", 9, Sa)) : g("", !0),
|
|
948
948
|
I.value.isArcBigEnough(t, !0, 20) ? (a(), l("text", {
|
|
949
949
|
key: 2,
|
|
@@ -992,9 +992,9 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
992
992
|
"stroke-linecap": "round"
|
|
993
993
|
}, null, 8, $a)) : g("", !0)
|
|
994
994
|
], 64))), 256)),
|
|
995
|
-
(a(!0), l(m, null, $(v.value.extremes.maxSeries + 1, (t,
|
|
996
|
-
x1: v.value.drawingArea.left + v.value.slotSize *
|
|
997
|
-
x2: v.value.drawingArea.left + v.value.slotSize *
|
|
995
|
+
(a(!0), l(m, null, $(v.value.extremes.maxSeries + 1, (t, u) => (a(), l("line", {
|
|
996
|
+
x1: v.value.drawingArea.left + v.value.slotSize * u,
|
|
997
|
+
x2: v.value.drawingArea.left + v.value.slotSize * u,
|
|
998
998
|
y1: v.value.drawingArea.top,
|
|
999
999
|
y2: v.value.drawingArea.bottom,
|
|
1000
1000
|
stroke: e.value.xyGridStroke,
|
|
@@ -1023,7 +1023,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
1023
1023
|
}, null, 8, Ta)
|
|
1024
1024
|
])) : g("", !0),
|
|
1025
1025
|
e.value.xyShowScale ? (a(), l("g", Oa, [
|
|
1026
|
-
(a(!0), l(m, null, $(v.value.yLabels, (t,
|
|
1026
|
+
(a(!0), l(m, null, $(v.value.yLabels, (t, u) => (a(), l(m, null, [
|
|
1027
1027
|
t.y <= v.value.drawingArea.bottom ? (a(), l("line", {
|
|
1028
1028
|
key: 0,
|
|
1029
1029
|
x1: t.x + 4,
|
|
@@ -1050,32 +1050,32 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
1050
1050
|
s: e.value.valueSuffix,
|
|
1051
1051
|
r: e.value.dataLabelRoundingValue
|
|
1052
1052
|
}),
|
|
1053
|
-
{ datapoint: t, seriesIndex:
|
|
1053
|
+
{ datapoint: t, seriesIndex: u }
|
|
1054
1054
|
)), 9, Ra)) : g("", !0)
|
|
1055
1055
|
], 64))), 256))
|
|
1056
1056
|
])) : g("", !0),
|
|
1057
1057
|
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g", Ma, [
|
|
1058
|
-
(a(!0), l(m, null, $(K.value.map((t) => t.text), (t,
|
|
1059
|
-
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo &&
|
|
1058
|
+
(a(!0), l(m, null, $(K.value.map((t) => t.text), (t, u) => (a(), l(m, null, [
|
|
1059
|
+
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && u % Math.floor((y.value.end - y.value.start) / e.value.xyPeriodsModulo) === 0 || y.value.end - y.value.start <= e.value.xyPeriodsModulo ? (a(), l("line", {
|
|
1060
1060
|
key: 0,
|
|
1061
|
-
x1: v.value.drawingArea.left + v.value.slotSize * (
|
|
1062
|
-
x2: v.value.drawingArea.left + v.value.slotSize * (
|
|
1061
|
+
x1: v.value.drawingArea.left + v.value.slotSize * (u + 1) - v.value.slotSize / 2,
|
|
1062
|
+
x2: v.value.drawingArea.left + v.value.slotSize * (u + 1) - v.value.slotSize / 2,
|
|
1063
1063
|
y1: v.value.drawingArea.bottom,
|
|
1064
1064
|
y2: v.value.drawingArea.bottom + 4,
|
|
1065
1065
|
stroke: e.value.xyAxisStroke,
|
|
1066
1066
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1067
1067
|
"stroke-linecap": "round"
|
|
1068
1068
|
}, null, 8, Fa)) : g("", !0),
|
|
1069
|
-
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo &&
|
|
1070
|
-
t.includes(`
|
|
1069
|
+
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && u % Math.floor((y.value.end - y.value.start) / e.value.xyPeriodsModulo) === 0 || y.value.end - y.value.start <= e.value.xyPeriodsModulo ? (a(), l("g", Na, [
|
|
1070
|
+
String(t).includes(`
|
|
1071
1071
|
`) ? (a(), l("text", {
|
|
1072
1072
|
key: 1,
|
|
1073
1073
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1074
1074
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1075
1075
|
fill: e.value.color,
|
|
1076
|
-
transform: `translate(${v.value.drawingArea.left + v.value.slotSize * (
|
|
1076
|
+
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})`,
|
|
1077
1077
|
innerHTML: f(Wt)({
|
|
1078
|
-
content: t,
|
|
1078
|
+
content: String(t),
|
|
1079
1079
|
fontSize: e.value.xyLabelsXFontSize,
|
|
1080
1080
|
fill: e.value.color,
|
|
1081
1081
|
x: 0,
|
|
@@ -1086,13 +1086,13 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
1086
1086
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1087
1087
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1088
1088
|
fill: e.value.color,
|
|
1089
|
-
transform: `translate(${v.value.drawingArea.left + v.value.slotSize * (
|
|
1089
|
+
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})`
|
|
1090
1090
|
}, T(t), 9, Ua))
|
|
1091
1091
|
])) : g("", !0)
|
|
1092
1092
|
], 64))), 256))
|
|
1093
1093
|
])) : g("", !0),
|
|
1094
1094
|
_("g", Da, [
|
|
1095
|
-
(a(!0), l(m, null, $(v.value.dataset, (t,
|
|
1095
|
+
(a(!0), l(m, null, $(v.value.dataset, (t, u) => (a(), l("g", Va, [
|
|
1096
1096
|
e.value.lineSmooth ? (a(), l(m, { key: 0 }, [
|
|
1097
1097
|
_("path", {
|
|
1098
1098
|
d: `M ${f(mt)(t.coordinates)}`,
|
|
@@ -1145,7 +1145,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
1145
1145
|
]))), 256))
|
|
1146
1146
|
]),
|
|
1147
1147
|
e.value.showDataLabels ? (a(), l("g", Xa, [
|
|
1148
|
-
(a(!0), l(m, null, $(v.value.dataset, (t,
|
|
1148
|
+
(a(!0), l(m, null, $(v.value.dataset, (t, u) => (a(), l(m, null, [
|
|
1149
1149
|
(a(!0), l(m, null, $(t.coordinates, (r, h) => (a(), l("text", {
|
|
1150
1150
|
"text-anchor": "middle",
|
|
1151
1151
|
"font-size": e.value.dataLabelFontSize,
|
|
@@ -1168,18 +1168,18 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
1168
1168
|
], 64))), 256))
|
|
1169
1169
|
])) : g("", !0),
|
|
1170
1170
|
_("g", Ya, [
|
|
1171
|
-
(a(!0), l(m, null, $(v.value.extremes.maxSeries, (t,
|
|
1172
|
-
x: v.value.drawingArea.left +
|
|
1171
|
+
(a(!0), l(m, null, $(v.value.extremes.maxSeries, (t, u) => (a(), l("rect", {
|
|
1172
|
+
x: v.value.drawingArea.left + u * v.value.slotSize,
|
|
1173
1173
|
y: v.value.drawingArea.top,
|
|
1174
1174
|
height: v.value.drawingArea.height <= 0 ? 1e-5 : v.value.drawingArea.height,
|
|
1175
1175
|
width: v.value.slotSize <= 0 ? 1e-5 : v.value.slotSize,
|
|
1176
|
-
fill: [W.value, j.value].includes(
|
|
1176
|
+
fill: [W.value, j.value].includes(u) ? e.value.xyHighlighterColor : "transparent",
|
|
1177
1177
|
style: R(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1178
|
-
onMouseenter: (r) => v.value.useTooltip(
|
|
1178
|
+
onMouseenter: (r) => v.value.useTooltip(u),
|
|
1179
1179
|
onMouseleave: s[1] || (s[1] = (r) => v.value.killTooltip()),
|
|
1180
|
-
onClick: (r) =>
|
|
1180
|
+
onClick: (r) => ue("selectDatapoint", v.value.dataset.map((h) => ({
|
|
1181
1181
|
...h,
|
|
1182
|
-
value: h.values[
|
|
1182
|
+
value: h.values[u]
|
|
1183
1183
|
})))
|
|
1184
1184
|
}, null, 44, Ja))), 256))
|
|
1185
1185
|
])
|
|
@@ -1198,9 +1198,9 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
1198
1198
|
"stroke-linecap": "round"
|
|
1199
1199
|
}, null, 8, Ka)) : g("", !0)
|
|
1200
1200
|
], 64))), 256)),
|
|
1201
|
-
(a(!0), l(m, null, $(d.value.extremes.maxSeries + 1, (t,
|
|
1202
|
-
x1: d.value.drawingArea.left + d.value.slotSize *
|
|
1203
|
-
x2: d.value.drawingArea.left + d.value.slotSize *
|
|
1201
|
+
(a(!0), l(m, null, $(d.value.extremes.maxSeries + 1, (t, u) => (a(), l("line", {
|
|
1202
|
+
x1: d.value.drawingArea.left + d.value.slotSize * u,
|
|
1203
|
+
x2: d.value.drawingArea.left + d.value.slotSize * u,
|
|
1204
1204
|
y1: d.value.drawingArea.top,
|
|
1205
1205
|
y2: d.value.drawingArea.bottom,
|
|
1206
1206
|
stroke: e.value.xyGridStroke,
|
|
@@ -1229,7 +1229,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
1229
1229
|
}, null, 8, ll)
|
|
1230
1230
|
])) : g("", !0),
|
|
1231
1231
|
e.value.xyShowScale ? (a(), l("g", ol, [
|
|
1232
|
-
(a(!0), l(m, null, $(d.value.yLabels, (t,
|
|
1232
|
+
(a(!0), l(m, null, $(d.value.yLabels, (t, u) => (a(), l(m, null, [
|
|
1233
1233
|
t.y <= d.value.drawingArea.bottom ? (a(), l("line", {
|
|
1234
1234
|
key: 0,
|
|
1235
1235
|
x1: t.x + 4,
|
|
@@ -1256,29 +1256,29 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
1256
1256
|
s: e.value.valueSuffix,
|
|
1257
1257
|
r: e.value.dataLabelRoundingValue
|
|
1258
1258
|
}),
|
|
1259
|
-
{ datapoint: t, seriesIndex:
|
|
1260
|
-
)), 9,
|
|
1259
|
+
{ datapoint: t, seriesIndex: u }
|
|
1260
|
+
)), 9, il)) : g("", !0)
|
|
1261
1261
|
], 64))), 256))
|
|
1262
1262
|
])) : g("", !0),
|
|
1263
|
-
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g",
|
|
1264
|
-
(a(!0), l(m, null, $(e.value.xyPeriods.slice(y.value.start, y.value.end), (t,
|
|
1265
|
-
x1: d.value.drawingArea.left + d.value.slotSize * (
|
|
1266
|
-
x2: d.value.drawingArea.left + d.value.slotSize * (
|
|
1263
|
+
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g", ul, [
|
|
1264
|
+
(a(!0), l(m, null, $(e.value.xyPeriods.slice(y.value.start, y.value.end), (t, u) => (a(), l("line", {
|
|
1265
|
+
x1: d.value.drawingArea.left + d.value.slotSize * (u + 1) - d.value.slotSize / 2,
|
|
1266
|
+
x2: d.value.drawingArea.left + d.value.slotSize * (u + 1) - d.value.slotSize / 2,
|
|
1267
1267
|
y1: d.value.drawingArea.bottom,
|
|
1268
1268
|
y2: d.value.drawingArea.bottom + 4,
|
|
1269
1269
|
stroke: e.value.xyAxisStroke,
|
|
1270
1270
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1271
1271
|
"stroke-linecap": "round"
|
|
1272
1272
|
}, null, 8, rl))), 256)),
|
|
1273
|
-
(a(!0), l(m, null, $(K.value.map((t) => t.text), (t,
|
|
1273
|
+
(a(!0), l(m, null, $(K.value.map((t) => t.text), (t, u) => (a(), l("text", {
|
|
1274
1274
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1275
1275
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1276
|
-
transform: `translate(${d.value.drawingArea.left + d.value.slotSize * (
|
|
1276
|
+
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})`,
|
|
1277
1277
|
fill: e.value.color
|
|
1278
1278
|
}, T(t), 9, sl))), 256))
|
|
1279
1279
|
])) : g("", !0),
|
|
1280
1280
|
_("g", vl, [
|
|
1281
|
-
(a(!0), l(m, null, $(d.value.dataset, (t,
|
|
1281
|
+
(a(!0), l(m, null, $(d.value.dataset, (t, u) => (a(), l(m, null, [
|
|
1282
1282
|
(a(!0), l(m, null, $(t.coordinates, (r, h) => (a(), l("rect", {
|
|
1283
1283
|
x: r.x,
|
|
1284
1284
|
width: r.width <= 0 ? 1e-5 : r.width,
|
|
@@ -1308,7 +1308,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
1308
1308
|
], 64))), 256))
|
|
1309
1309
|
]),
|
|
1310
1310
|
e.value.showDataLabels ? (a(), l("g", fl, [
|
|
1311
|
-
(a(!0), l(m, null, $(d.value.dataset, (t,
|
|
1311
|
+
(a(!0), l(m, null, $(d.value.dataset, (t, u) => (a(), l(m, null, [
|
|
1312
1312
|
(a(!0), l(m, null, $(t.coordinates, (r, h) => (a(), l("text", {
|
|
1313
1313
|
x: r.x + r.width / 2,
|
|
1314
1314
|
y: f(Z)(r.y) - e.value.dataLabelFontSize / 2,
|
|
@@ -1330,18 +1330,18 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
1330
1330
|
], 64))), 256))
|
|
1331
1331
|
])) : g("", !0),
|
|
1332
1332
|
_("g", ml, [
|
|
1333
|
-
(a(!0), l(m, null, $(d.value.extremes.maxSeries, (t,
|
|
1334
|
-
x: d.value.drawingArea.left +
|
|
1333
|
+
(a(!0), l(m, null, $(d.value.extremes.maxSeries, (t, u) => (a(), l("rect", {
|
|
1334
|
+
x: d.value.drawingArea.left + u * d.value.slotSize,
|
|
1335
1335
|
y: d.value.drawingArea.top,
|
|
1336
1336
|
height: d.value.drawingArea.height <= 0 ? 1e-5 : d.value.drawingArea.height,
|
|
1337
1337
|
width: d.value.slotSize <= 0 ? 1e-5 : d.value.slotSize,
|
|
1338
|
-
fill: [W.value, j.value].includes(
|
|
1338
|
+
fill: [W.value, j.value].includes(u) ? e.value.xyHighlighterColor : "transparent",
|
|
1339
1339
|
style: R(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1340
|
-
onMouseenter: (r) => d.value.useTooltip(
|
|
1340
|
+
onMouseenter: (r) => d.value.useTooltip(u),
|
|
1341
1341
|
onMouseleave: s[2] || (s[2] = (r) => d.value.killTooltip()),
|
|
1342
|
-
onClick: (r) =>
|
|
1342
|
+
onClick: (r) => ue("selectDatapoint", d.value.dataset.map((h) => ({
|
|
1343
1343
|
...h,
|
|
1344
|
-
value: h.values[
|
|
1344
|
+
value: h.values[u]
|
|
1345
1345
|
})))
|
|
1346
1346
|
}, null, 44, pl))), 256))
|
|
1347
1347
|
])
|
|
@@ -1382,7 +1382,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
1382
1382
|
}, T(e.value.yAxisLabel), 9, Ll)
|
|
1383
1383
|
])) : g("", !0)
|
|
1384
1384
|
])) : g("", !0)
|
|
1385
|
-
], 12,
|
|
1385
|
+
], 12, ia)) : g("", !0),
|
|
1386
1386
|
L.value ? g("", !0) : (a(), Fe(f(me), {
|
|
1387
1387
|
key: 5,
|
|
1388
1388
|
config: {
|
|
@@ -1402,7 +1402,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
1402
1402
|
}
|
|
1403
1403
|
}, null, 8, ["config"])),
|
|
1404
1404
|
o.$slots.watermark ? (a(), l("div", zl, [
|
|
1405
|
-
M(o.$slots, "watermark", ne(
|
|
1405
|
+
M(o.$slots, "watermark", ne(ie({ isPrinting: f(Ee) || f(Te) })), void 0, !0)
|
|
1406
1406
|
])) : g("", !0),
|
|
1407
1407
|
[A.BAR, A.LINE].includes(L.value) && e.value.zoomXy && p.value.maxSeriesLength > 1 ? (a(), l("div", {
|
|
1408
1408
|
key: `slicer_${Ce.value}`,
|
|
@@ -1447,7 +1447,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
1447
1447
|
onTrapMouse: zt
|
|
1448
1448
|
}, {
|
|
1449
1449
|
"reset-action": G(({ reset: t }) => [
|
|
1450
|
-
M(o.$slots, "reset-action", ne(
|
|
1450
|
+
M(o.$slots, "reset-action", ne(ie({ reset: t })), void 0, !0)
|
|
1451
1451
|
]),
|
|
1452
1452
|
_: 3
|
|
1453
1453
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "smoothMinimap", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectionRadius", "minimapLineColor", "minimap", "minimapIndicatorColor", "verticalHandles", "minimapSelectedIndex", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"]))
|
|
@@ -1459,10 +1459,10 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
1459
1459
|
class: "vue-ui-quick-chart-legend",
|
|
1460
1460
|
style: R(`background:transparent;color:${e.value.color}`)
|
|
1461
1461
|
}, [
|
|
1462
|
-
L.value === A.DONUT ? (a(!0), l(m, { key: 0 }, $(I.value.legend, (t,
|
|
1462
|
+
L.value === A.DONUT ? (a(!0), l(m, { key: 0 }, $(I.value.legend, (t, u) => (a(), l("div", {
|
|
1463
1463
|
class: "vue-ui-quick-chart-legend-item",
|
|
1464
1464
|
onClick: (r) => {
|
|
1465
|
-
Lt(t, I.value.dataset),
|
|
1465
|
+
Lt(t, I.value.dataset), ue("selectLegend", t);
|
|
1466
1466
|
},
|
|
1467
1467
|
style: R(`cursor: ${I.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1468
1468
|
}, [
|
|
@@ -1489,7 +1489,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
1489
1489
|
s: e.value.valueSuffix,
|
|
1490
1490
|
r: e.value.dataLabelRoundingValue
|
|
1491
1491
|
}),
|
|
1492
|
-
{ datapoint: t, seriesIndex:
|
|
1492
|
+
{ datapoint: t, seriesIndex: u }
|
|
1493
1493
|
)), 5),
|
|
1494
1494
|
w.value.includes(t.id) ? (a(), l("span", {
|
|
1495
1495
|
key: 0,
|
|
@@ -1507,10 +1507,10 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
1507
1507
|
})) + ") ", 5))
|
|
1508
1508
|
], 64))
|
|
1509
1509
|
], 12, $l))), 256)) : g("", !0),
|
|
1510
|
-
L.value === A.LINE ? (a(!0), l(m, { key: 1 }, $(v.value.legend, (t,
|
|
1510
|
+
L.value === A.LINE ? (a(!0), l(m, { key: 1 }, $(v.value.legend, (t, u) => (a(), l("div", {
|
|
1511
1511
|
class: "vue-ui-quick-chart-legend-item",
|
|
1512
1512
|
onClick: (r) => {
|
|
1513
|
-
|
|
1513
|
+
ut(t.id, v.value.legend.length - 1), ue("selectLegend", t);
|
|
1514
1514
|
},
|
|
1515
1515
|
style: R(`cursor: ${v.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1516
1516
|
}, [
|
|
@@ -1528,10 +1528,10 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
1528
1528
|
}, T(t.name), 5)
|
|
1529
1529
|
], 64))
|
|
1530
1530
|
], 12, Cl))), 256)) : g("", !0),
|
|
1531
|
-
L.value === A.BAR ? (a(!0), l(m, { key: 2 }, $(d.value.legend, (t,
|
|
1531
|
+
L.value === A.BAR ? (a(!0), l(m, { key: 2 }, $(d.value.legend, (t, u) => (a(), l("div", {
|
|
1532
1532
|
class: "vue-ui-quick-chart-legend-item",
|
|
1533
1533
|
onClick: (r) => {
|
|
1534
|
-
|
|
1534
|
+
ut(t.id, d.value.legend.length - 1), ue("selectLegend", t);
|
|
1535
1535
|
},
|
|
1536
1536
|
style: R(`cursor: ${d.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1537
1537
|
}, [
|
|
@@ -1575,10 +1575,10 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
1575
1575
|
isCustom: f(Ne)(e.value.tooltipCustomFormat)
|
|
1576
1576
|
}, {
|
|
1577
1577
|
"tooltip-before": G(() => [
|
|
1578
|
-
M(o.$slots, "tooltip-before", ne(
|
|
1578
|
+
M(o.$slots, "tooltip-before", ne(ie({ ...ye.value })), void 0, !0)
|
|
1579
1579
|
]),
|
|
1580
1580
|
"tooltip-after": G(() => [
|
|
1581
|
-
M(o.$slots, "tooltip-after", ne(
|
|
1581
|
+
M(o.$slots, "tooltip-after", ne(ie({ ...ye.value })), void 0, !0)
|
|
1582
1582
|
]),
|
|
1583
1583
|
_: 3
|
|
1584
1584
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"])
|
|
@@ -1590,7 +1590,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"]
|
|
|
1590
1590
|
s[8] || (s[8] = _("span", null, "Dataset is not processable", -1))
|
|
1591
1591
|
]));
|
|
1592
1592
|
}
|
|
1593
|
-
}, Vl = /* @__PURE__ */ Qt(Tl, [["__scopeId", "data-v-
|
|
1593
|
+
}, Vl = /* @__PURE__ */ Qt(Tl, [["__scopeId", "data-v-b383fd3a"]]);
|
|
1594
1594
|
export {
|
|
1595
1595
|
Vl as default
|
|
1596
1596
|
};
|