vue-data-ui 2.13.4 → 2.13.5-beta.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-Cv5RKI2K.js → Arrow-nJWOreP4.js} +1 -1
- package/dist/{BaseDraggableDialog-CbNaTai1.js → BaseDraggableDialog-IYfaPzLA.js} +2 -2
- package/dist/{BaseIcon-B90jg7Eo.js → BaseIcon-lwpKi6Wa.js} +1 -1
- package/dist/{ColorPicker-DrHXo6NB.js → ColorPicker-D8TZj-R5.js} +2 -2
- package/dist/{DataTable-DOdmEVBM.js → DataTable-CuFlXUxm.js} +2 -2
- package/dist/{Legend-D7As_VVi.js → Legend-DwNuhYnG.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Qe1IsvyR.js → NonSvgPenAndPaper-D1qSfnYa.js} +3 -3
- package/dist/{PackageVersion-CJ0MHPau.js → PackageVersion-1psmmuzo.js} +2 -2
- package/dist/{PenAndPaper-CsV9xVqP.js → PenAndPaper-DgUkj01g.js} +3 -3
- package/dist/{Shape-CMT3DgWJ.js → Shape-CmlBrd-F.js} +1 -1
- package/dist/{Slicer-kZ-UNW0I.js → Slicer-B-5jXhhw.js} +161 -161
- package/dist/{SparkTooltip-DgaaFrSC.js → SparkTooltip-BGjRXPbu.js} +1 -1
- package/dist/{Title-Cuxd1Hw4.js → Title-BoKeR6i0.js} +1 -1
- package/dist/{Tooltip-nm6v9SvD.js → Tooltip-Df2iF7bv.js} +1 -1
- package/dist/{UserOptions-B4olqrwb.js → UserOptions-NrArsCuC.js} +2 -2
- package/dist/{dom-to-png-JxvpNdgk.js → dom-to-png-DK9TIQio.js} +1 -1
- package/dist/{img-BrSPXg54.js → img-CqqmkwDl.js} +1 -1
- package/dist/{index-DXfqC_CG.js → index-C137VZkI.js} +675 -656
- package/dist/{pdf-CRNRsa97.js → pdf-DTB7aasS.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +23 -0
- package/dist/types/vue-data-ui.d.ts +23 -0
- package/dist/{useNestedProp-CUF1PWxQ.js → useNestedProp-ZNu8JrRX.js} +1 -1
- package/dist/{usePrinter-DGQh_spY.js → usePrinter-B63T3abI.js} +2 -2
- package/dist/useTimeLabels-Mrr0jrpL.js +242 -0
- package/dist/{vue-data-ui-tkhMq-bw.js → vue-data-ui-CBTXw5iV.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-Dwdfdqch.js → vue-ui-3d-bar-DKF0Y325.js} +5 -5
- package/dist/{vue-ui-accordion-D-tjbzQS.js → vue-ui-accordion-BI2rBS5z.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BZmYWVrS.js → vue-ui-age-pyramid-BDulR8Zn.js} +5 -5
- package/dist/{vue-ui-annotator-DBrXod-O.js → vue-ui-annotator-BokgyAXW.js} +2 -2
- package/dist/{vue-ui-bullet-ur-PTrPw.js → vue-ui-bullet-D5TWFElT.js} +6 -6
- package/dist/{vue-ui-candlestick-72UivaQY.js → vue-ui-candlestick-DHTA9GKN.js} +96 -96
- package/dist/{vue-ui-carousel-table-CApme8lg.js → vue-ui-carousel-table-Bw4rC-Mv.js} +4 -4
- package/dist/{vue-ui-chestnut-jcZZ8cOw.js → vue-ui-chestnut-DJAW8dTu.js} +4 -4
- package/dist/{vue-ui-chord-A9jGFNM2.js → vue-ui-chord-Drxbeh2P.js} +7 -7
- package/dist/{vue-ui-circle-pack-DPnOBq40.js → vue-ui-circle-pack-ClMdOEtG.js} +5 -5
- package/dist/{vue-ui-cursor-Cby6-Vrh.js → vue-ui-cursor-DaT20eFb.js} +2 -2
- package/dist/{vue-ui-dashboard-BGzORkrX.js → vue-ui-dashboard-z7pGTlMX.js} +62 -62
- package/dist/{vue-ui-digits-Dhxd38mc.js → vue-ui-digits-D6kq38s9.js} +2 -2
- package/dist/{vue-ui-donut-DsFBb3Cl.js → vue-ui-donut-_kVdFrZR.js} +7 -7
- package/dist/{vue-ui-donut-evolution-B-Bo4b4Y.js → vue-ui-donut-evolution-D5P6GSM6.js} +320 -313
- package/dist/{vue-ui-dumbbell-EVSJdr9V.js → vue-ui-dumbbell-DfZNlCK5.js} +6 -6
- package/dist/{vue-ui-flow-Cr1-ETyc.js → vue-ui-flow-DTx267Ka.js} +6 -6
- package/dist/{vue-ui-funnel-BQ0LckzE.js → vue-ui-funnel-B_J0AaMa.js} +83 -83
- package/dist/{vue-ui-galaxy-_fwGK1PY.js → vue-ui-galaxy-DtE48yJw.js} +4 -4
- package/dist/{vue-ui-gauge-BrnOoF9C.js → vue-ui-gauge-CAKj45DE.js} +5 -5
- package/dist/{vue-ui-gizmo-tgjSYkeV.js → vue-ui-gizmo-B-7-Lfai.js} +3 -3
- package/dist/{vue-ui-heatmap-CamaTaei.js → vue-ui-heatmap-3anHqH8-.js} +6 -6
- package/dist/{vue-ui-history-plot-DSBQu-9Y.js → vue-ui-history-plot-DfduurUS.js} +103 -103
- package/dist/{vue-ui-kpi-OCtgONK3.js → vue-ui-kpi-C_wEVoh0.js} +3 -3
- package/dist/{vue-ui-mini-loader--xzmMUNI.js → vue-ui-mini-loader-lGMkM8Kw.js} +2 -2
- package/dist/{vue-ui-molecule-DnkENzdw.js → vue-ui-molecule-fXW4ejgw.js} +4 -4
- package/dist/{vue-ui-mood-radar-DKP1rjSd.js → vue-ui-mood-radar-TuyuMkzg.js} +6 -6
- package/dist/{vue-ui-nested-donuts-CHwTDQ9J.js → vue-ui-nested-donuts-CtbOVaRR.js} +6 -6
- package/dist/{vue-ui-onion-BxaynRPn.js → vue-ui-onion-BV3A2JCN.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-ohCDDK1Q.js → vue-ui-parallel-coordinate-plot-DJbeP86h.js} +175 -175
- package/dist/{vue-ui-quadrant-DXZsVWe3.js → vue-ui-quadrant-xaXINXWX.js} +7 -7
- package/dist/{vue-ui-quick-chart-C_ofgdSY.js → vue-ui-quick-chart-Dr1HyP8V.js} +464 -457
- package/dist/{vue-ui-radar-CLa2PHHK.js → vue-ui-radar-Cbqe4LM_.js} +6 -6
- package/dist/{vue-ui-rating-GiRUw1Wv.js → vue-ui-rating-FuSmmUE8.js} +2 -2
- package/dist/{vue-ui-relation-circle-BJ1M2Pnc.js → vue-ui-relation-circle-kDNSenDo.js} +96 -96
- package/dist/{vue-ui-ridgeline-E_7xjHTY.js → vue-ui-ridgeline-DxtgFsg_.js} +317 -308
- package/dist/{vue-ui-rings-BiOAND3T.js → vue-ui-rings-DMx8sMKa.js} +7 -7
- package/dist/{vue-ui-scatter-Bai9QSqI.js → vue-ui-scatter-DX42tHz8.js} +7 -7
- package/dist/{vue-ui-skeleton-B2N_3mr0.js → vue-ui-skeleton-CO_Hk6A_.js} +3 -3
- package/dist/{vue-ui-smiley-DAvm3IGu.js → vue-ui-smiley-4lhGcbc2.js} +2 -2
- package/dist/{vue-ui-spark-trend-D4EwvdX0.js → vue-ui-spark-trend-hGZ_JmgH.js} +3 -3
- package/dist/{vue-ui-sparkbar-DM_2iDVI.js → vue-ui-sparkbar-BTf3c9Qn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-UW6sVQdV.js → vue-ui-sparkgauge-oMfHC1dA.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CF0JPKYB.js → vue-ui-sparkhistogram-DvVbSLEj.js} +4 -4
- package/dist/{vue-ui-sparkline-Dg8j2KTF.js → vue-ui-sparkline-BbmMxjnF.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CqT_oEk7.js → vue-ui-sparkstackbar-ChREWvRl.js} +3 -3
- package/dist/vue-ui-stackbar-BNPLRyEN.js +1130 -0
- package/dist/{vue-ui-strip-plot-BR66rY0G.js → vue-ui-strip-plot-Ca1C6bZ_.js} +73 -73
- package/dist/{vue-ui-table-Dk0eXTU9.js → vue-ui-table-Cfb6eIU4.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Brldpa0g.js → vue-ui-table-heatmap-BnjgK_PF.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DxQrZBCR.js → vue-ui-table-sparkline-MJ8lvKbd.js} +4 -4
- package/dist/{vue-ui-thermometer-B_OrqIjE.js → vue-ui-thermometer-C2qisXo8.js} +5 -5
- package/dist/{vue-ui-timer-Cz0J-s5D.js → vue-ui-timer-By6_kV9k.js} +8 -8
- package/dist/{vue-ui-tiremarks-B1B3h-Vi.js → vue-ui-tiremarks-BU6rsols.js} +5 -5
- package/dist/{vue-ui-treemap-CMm6fSIO.js → vue-ui-treemap-DivJblJW.js} +7 -7
- package/dist/{vue-ui-vertical-bar-DA2Xpx46.js → vue-ui-vertical-bar-Dyt4yezz.js} +8 -8
- package/dist/{vue-ui-waffle-U3NxGQ3l.js → vue-ui-waffle-DSzMjANd.js} +7 -7
- package/dist/{vue-ui-wheel-WNOVLYp8.js → vue-ui-wheel-DFCGjYBy.js} +5 -5
- package/dist/{vue-ui-word-cloud-_TBCcmAV.js → vue-ui-word-cloud-BiG5zI03.js} +5 -5
- package/dist/{vue-ui-world-DREkLtrD.js → vue-ui-world-BhGGmeGq.js} +5 -5
- package/dist/{vue-ui-xy-CIiqKrxF.js → vue-ui-xy-CZpcKEkV.js} +680 -668
- package/dist/{vue-ui-xy-canvas-ClHv-Wlu.js → vue-ui-xy-canvas-B7fE9npn.js} +400 -392
- package/package.json +1 -1
- package/dist/vue-ui-stackbar-By7DVfJV.js +0 -1132
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { d as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { S as
|
|
11
|
-
import {
|
|
12
|
-
|
|
1
|
+
import { defineAsyncComponent as K, ref as d, computed as x, useSlots as Ba, onMounted as ra, watch as A, nextTick as pe, shallowRef as Ie, onBeforeUnmount as Va, createElementBlock as ne, openBlock as z, unref as p, normalizeClass as Za, normalizeStyle as Q, createCommentVNode as W, createBlock as D, createElementVNode as ie, createSlots as Ga, withCtx as b, renderSlot as L, normalizeProps as X, guardReactiveProps as _, createVNode as ja, toDisplayString as sa, createTextVNode as qa } from "vue";
|
|
2
|
+
import { u as Ja, c as Ka, t as Qa, p as B, a as el, C as me, b as al, D as Me, i as ee, f as ae, d as na, a1 as ll, H as tl, ai as ol, o as ul, e as rl, x as ia, q as sl, r as nl, y as il, s as ve, l as vl } from "./index-C137VZkI.js";
|
|
3
|
+
import { d as cl, t as dl, u as hl, c as yl, a as va, l as k, r as Te, b as R, p as ca } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
+
import { u as da } from "./useNestedProp-ZNu8JrRX.js";
|
|
5
|
+
import { u as fl } from "./usePrinter-B63T3abI.js";
|
|
6
|
+
import { u as gl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as pl } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import ml from "./Legend-DwNuhYnG.js";
|
|
9
|
+
import bl from "./Title-BoKeR6i0.js";
|
|
10
|
+
import { S as xl } from "./Slicer-B-5jXhhw.js";
|
|
11
|
+
import { u as Ll } from "./useTimeLabels-Mrr0jrpL.js";
|
|
12
|
+
import { _ as kl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const Cl = ["id"], wl = ["onClick"], zl = {
|
|
13
14
|
key: 2,
|
|
14
15
|
class: "vue-data-ui-watermark"
|
|
15
|
-
},
|
|
16
|
+
}, Sl = ["innerHTML"], $l = {
|
|
16
17
|
__name: "vue-ui-xy-canvas",
|
|
17
18
|
props: {
|
|
18
19
|
dataset: {
|
|
@@ -29,48 +30,48 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
29
30
|
}
|
|
30
31
|
},
|
|
31
32
|
emits: ["selectLegend"],
|
|
32
|
-
setup(
|
|
33
|
-
const
|
|
33
|
+
setup(Oe, { expose: ha, emit: ya }) {
|
|
34
|
+
const fa = K(() => import("./vue-ui-accordion-BI2rBS5z.js")), ga = K(() => import("./DataTable-CuFlXUxm.js")), pa = K(() => import("./NonSvgPenAndPaper-D1qSfnYa.js")), ma = K(() => import("./vue-ui-skeleton-CO_Hk6A_.js")), ba = K(() => import("./Tooltip-Df2iF7bv.js")), xa = K(() => import("./UserOptions-NrArsCuC.js")), { vue_ui_xy_canvas: La } = Ja(), g = Oe, be = d(Ka()), le = d(null), te = d(null), s = d(null), y = d(1), P = d(1), ce = d(!1), c = d(null), de = d(""), Re = d(null), $ = d([]), V = d(1), H = d(!0), Z = d(!0), xe = d(null), Pe = d(0), Ee = d(0), he = d(!1), Fe = d(null), Ae = d(null), De = d(null), He = d(null), Le = d(0), ke = d(0), Ce = d(0), M = d(null), we = x(() => !!g.dataset && g.dataset.length), ka = ya, Ca = Ba();
|
|
34
35
|
ra(() => {
|
|
35
|
-
|
|
36
|
+
Ca["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
|
|
36
37
|
});
|
|
37
|
-
const a =
|
|
38
|
-
get: () =>
|
|
38
|
+
const a = x({
|
|
39
|
+
get: () => Ue(),
|
|
39
40
|
set: (e) => e
|
|
40
|
-
}), { userOptionsVisible:
|
|
41
|
-
function
|
|
42
|
-
const e =
|
|
41
|
+
}), { userOptionsVisible: ze, setUserOptionsVisibility: Ne, keepUserOptionState: Ye } = gl({ config: a.value }), { svgRef: T } = pl({ config: a.value.style.chart.title });
|
|
42
|
+
function Ue() {
|
|
43
|
+
const e = da({
|
|
43
44
|
userConfig: g.config,
|
|
44
|
-
defaultConfig:
|
|
45
|
+
defaultConfig: La
|
|
45
46
|
});
|
|
46
47
|
let t = {};
|
|
47
48
|
return e.theme ? t = {
|
|
48
|
-
...
|
|
49
|
-
userConfig:
|
|
49
|
+
...da({
|
|
50
|
+
userConfig: el.vue_ui_xy_canvas[e.theme] || g.config,
|
|
50
51
|
defaultConfig: e
|
|
51
52
|
}),
|
|
52
|
-
customPalette:
|
|
53
|
-
} : t = e, g.config &&
|
|
53
|
+
customPalette: Qa[e.theme] || B
|
|
54
|
+
} : t = e, g.config && me(g.config, "style.chart.scale.min") ? t.style.chart.scale.min = g.config.style.chart.scale.min : t.style.chart.scale.min = null, g.config && me(g.config, "style.chart.scale.max") ? t.style.chart.scale.max = g.config.style.chart.scale.max : t.style.chart.scale.max = null, g.config && me(g.config, "style.chart.zoom.startIndex") ? t.style.chart.zoom.startIndex = g.config.style.chart.zoom.startIndex : t.style.chart.zoom.startIndex = null, g.config && me(g.config, "style.chart.zoom.endIndex") ? t.style.chart.zoom.endIndex = g.config.style.chart.zoom.endIndex : t.style.chart.zoom.endIndex = null, t;
|
|
54
55
|
}
|
|
55
56
|
A(() => g.config, (e) => {
|
|
56
|
-
a.value =
|
|
57
|
+
a.value = Ue(), ze.value = !a.value.userOptions.showOnChartHover, Se(), Le.value += 1, ke.value += 1, Ce.value += 1, r.value.showTable = a.value.table.show, r.value.showDataLabels = a.value.style.chart.dataLabels.show, r.value.stacked = a.value.style.chart.stacked, r.value.showTooltip = a.value.style.chart.tooltip.show;
|
|
57
58
|
}, { deep: !0 }), A(() => g.dataset, () => {
|
|
58
|
-
|
|
59
|
+
Se(), Le.value += 1, ke.value += 1, Ce.value += 1;
|
|
59
60
|
}, { deep: !0 });
|
|
60
|
-
const
|
|
61
|
-
elementId: `xy_canvas_${
|
|
61
|
+
const We = d(a.value.style.chart.aspectRatio), { isPrinting: Xe, isImaging: _e, generatePdf: Be, generateImage: Ve } = fl({
|
|
62
|
+
elementId: `xy_canvas_${be.value}`,
|
|
62
63
|
fileName: a.value.style.chart.title.text || "vue-ui-xy-canvas",
|
|
63
64
|
options: a.value.userOptions.print
|
|
64
|
-
}),
|
|
65
|
+
}), r = d({
|
|
65
66
|
showTable: a.value.table.show,
|
|
66
67
|
showDataLabels: a.value.style.chart.dataLabels.show,
|
|
67
68
|
stacked: a.value.style.chart.stacked,
|
|
68
69
|
showTooltip: a.value.style.chart.tooltip.show
|
|
69
70
|
});
|
|
70
|
-
function
|
|
71
|
-
|
|
71
|
+
function wa(e) {
|
|
72
|
+
he.value = e, Ee.value += 1;
|
|
72
73
|
}
|
|
73
|
-
const
|
|
74
|
+
const Ze = x(() => al(a.value.customPalette)), I = x(() => G.value ? Math.max(...G.value.filter((e, t) => !$.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), l = x(() => {
|
|
74
75
|
const e = y.value - y.value * (a.value.style.chart.paddingProportions.left + a.value.style.chart.paddingProportions.right);
|
|
75
76
|
return {
|
|
76
77
|
canvasWidth: y.value,
|
|
@@ -81,27 +82,27 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
81
82
|
bottom: P.value - P.value * a.value.style.chart.paddingProportions.bottom,
|
|
82
83
|
width: e,
|
|
83
84
|
height: P.value - P.value * (a.value.style.chart.paddingProportions.top + a.value.style.chart.paddingProportions.bottom),
|
|
84
|
-
slot: e / (
|
|
85
|
+
slot: e / (u.value.end - u.value.start)
|
|
85
86
|
};
|
|
86
87
|
});
|
|
87
|
-
function
|
|
88
|
+
function Ge(e, t) {
|
|
88
89
|
return e / t;
|
|
89
90
|
}
|
|
90
|
-
function
|
|
91
|
-
return t.map((
|
|
92
|
-
const F =
|
|
93
|
-
let re,
|
|
94
|
-
e && (re =
|
|
91
|
+
function za({ hasAutoScale: e, series: t, min: o, max: n, scale: v, yOffset: C, individualHeight: i, stackIndex: f = null }) {
|
|
92
|
+
return t.map((Y, S) => {
|
|
93
|
+
const F = v.min < 0 ? Math.abs(v.min) : 0, U = Ge(Y + F, F + v.max);
|
|
94
|
+
let re, se;
|
|
95
|
+
e && (re = v.min, se = Ge(Y - re, v.max - re));
|
|
95
96
|
let O = 0;
|
|
96
|
-
return f === null ? O = l.value.bottom - l.value.height * (e ?
|
|
97
|
+
return f === null ? O = l.value.bottom - l.value.height * (e ? se : U) : O = l.value.bottom - C - i * (e ? se : U), {
|
|
97
98
|
x: l.value.left + l.value.slot * S + l.value.slot / 2,
|
|
98
99
|
y: O,
|
|
99
|
-
value:
|
|
100
|
+
value: Y
|
|
100
101
|
};
|
|
101
102
|
});
|
|
102
103
|
}
|
|
103
|
-
const m =
|
|
104
|
-
const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...
|
|
104
|
+
const m = x(() => {
|
|
105
|
+
const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...G.value.filter((i, f) => !$.value.includes(i.absoluteIndex)).flatMap((i) => i.series.slice(u.value.start, u.value.end))), t = a.value.style.chart.scale.max !== null ? a.value.style.chart.scale.max : Math.max(...G.value.filter((i, f) => !$.value.includes(i.absoluteIndex)).flatMap((i) => i.series.slice(u.value.start, u.value.end))), o = Me(e < 0 ? e : 0, t === e ? e + 1 < 0 ? 0 : e + 1 : t < 0 ? 0 : t, a.value.style.chart.scale.ticks), n = o.min < 0 ? Math.abs(o.min) : 0, v = l.value.bottom - l.value.height * (n / (o.max + n)), C = o.ticks.map((i) => ({
|
|
105
106
|
y: l.value.bottom - l.value.height * ((i + n) / (o.max + n)),
|
|
106
107
|
x: l.value.left - 8,
|
|
107
108
|
value: i
|
|
@@ -111,110 +112,110 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
111
112
|
max: t,
|
|
112
113
|
min: e,
|
|
113
114
|
scale: o,
|
|
114
|
-
yLabels:
|
|
115
|
-
zero:
|
|
115
|
+
yLabels: C,
|
|
116
|
+
zero: v
|
|
116
117
|
};
|
|
117
|
-
}),
|
|
118
|
+
}), Sa = x(() => h.value.map((e) => `
|
|
118
119
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
119
120
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
120
121
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
|
121
122
|
</svg>
|
|
122
123
|
<span>${e.name ? e.name + ": " : ""}</span>
|
|
123
|
-
<span>${
|
|
124
|
+
<span>${ee(
|
|
124
125
|
a.value.style.chart.dataLabels.formatter,
|
|
125
|
-
e.series[
|
|
126
|
-
|
|
126
|
+
e.series[c.value],
|
|
127
|
+
ae({
|
|
127
128
|
p: e.prefix || "",
|
|
128
|
-
v: e.series[
|
|
129
|
+
v: e.series[c.value],
|
|
129
130
|
s: e.suffix || "",
|
|
130
131
|
r: e.rounding || 0
|
|
131
132
|
}),
|
|
132
|
-
{ datapoint: e, seriesIndex:
|
|
133
|
+
{ datapoint: e, seriesIndex: c.value }
|
|
133
134
|
)}</span>
|
|
134
135
|
</div>
|
|
135
|
-
`)),
|
|
136
|
+
`)), G = x(() => g.dataset.map((e, t) => ({
|
|
136
137
|
...e,
|
|
137
|
-
series:
|
|
138
|
-
data:
|
|
138
|
+
series: ll({
|
|
139
|
+
data: tl(e.series),
|
|
139
140
|
threshold: a.value.downsample.threshold
|
|
140
141
|
}),
|
|
141
142
|
absoluteIndex: t,
|
|
142
|
-
color:
|
|
143
|
+
color: na(e.color || Ze.value[t] || B[t] || B[t % B.length])
|
|
143
144
|
})));
|
|
144
145
|
A(I, (e) => {
|
|
145
|
-
e &&
|
|
146
|
+
e && je();
|
|
146
147
|
});
|
|
147
|
-
const h =
|
|
148
|
+
const h = x(() => ol(G.value.filter((e, t) => !$.value.includes(e.absoluteIndex))).map((e, t) => ({
|
|
148
149
|
...e,
|
|
149
|
-
series: e.series.slice(
|
|
150
|
+
series: e.series.slice(u.value.start, u.value.end)
|
|
150
151
|
})).map((e, t) => {
|
|
151
152
|
let o = [null, void 0].includes(e.scaleMin) ? Math.min(...e.series) || 0 : e.scaleMin, n = [null, void 0].includes(e.scaleMax) ? Math.max(...e.series) || 1 : e.scaleMax;
|
|
152
153
|
o === n && (o = o >= 0 ? n - 1 : o, n = n >= 0 ? n : o + 1), e.series.filter((O) => ![null, void 0].includes(O)).map((O) => (O - o) / (n - o));
|
|
153
|
-
const
|
|
154
|
+
const v = {
|
|
154
155
|
valueMin: o,
|
|
155
156
|
valueMax: n
|
|
156
|
-
},
|
|
157
|
+
}, C = e.scaleSteps || a.value.style.chart.scale.ticks;
|
|
157
158
|
let i;
|
|
158
|
-
e.autoScaling ? i =
|
|
159
|
-
const f =
|
|
160
|
-
let
|
|
161
|
-
e.autoScaling &&
|
|
162
|
-
const re = i.ticks.map((O,
|
|
163
|
-
y: l.value.bottom - f - S * (
|
|
159
|
+
e.autoScaling ? i = Me(v.valueMin, v.valueMax, C) : i = Me(v.valueMin < 0 ? v.valueMin : 0, v.valueMax <= 0 ? 0 : v.valueMax, C);
|
|
160
|
+
const f = r.value.stacked ? l.value.height * (1 - e.cumulatedStackRatio) : 0, Y = r.value.stacked ? l.value.height / a.value.style.chart.stackGap : 0, S = r.value.stacked ? l.value.height * e.stackRatio - Y : l.value.height, F = i.min < 0 ? Math.abs(i.min) : 0;
|
|
161
|
+
let U;
|
|
162
|
+
e.autoScaling && r.value.stacked && n <= 0 ? U = l.value.bottom - f - S : U = l.value.bottom - f - S * (F / (i.max + F));
|
|
163
|
+
const re = i.ticks.map((O, _a) => ({
|
|
164
|
+
y: l.value.bottom - f - S * (_a / (i.ticks.length - 1)),
|
|
164
165
|
x: l.value.left - 8,
|
|
165
166
|
value: O
|
|
166
|
-
})),
|
|
167
|
-
hasAutoScale:
|
|
167
|
+
})), se = za({
|
|
168
|
+
hasAutoScale: r.value.stacked && e.autoScaling,
|
|
168
169
|
series: e.series,
|
|
169
|
-
min:
|
|
170
|
-
max:
|
|
171
|
-
scale:
|
|
170
|
+
min: r.value.stacked ? o : m.value.min,
|
|
171
|
+
max: r.value.stacked ? n : m.value.max,
|
|
172
|
+
scale: r.value.stacked ? i : m.value.scale,
|
|
172
173
|
yOffset: f,
|
|
173
174
|
individualHeight: S,
|
|
174
|
-
stackIndex:
|
|
175
|
+
stackIndex: r.value.stacked ? t : null
|
|
175
176
|
});
|
|
176
177
|
return {
|
|
177
178
|
...e,
|
|
178
|
-
coordinatesLine:
|
|
179
|
+
coordinatesLine: se,
|
|
179
180
|
min: o,
|
|
180
181
|
max: n,
|
|
181
182
|
localScale: i,
|
|
182
|
-
localZero:
|
|
183
|
+
localZero: U,
|
|
183
184
|
localMin: F,
|
|
184
185
|
localYLabels: re,
|
|
185
186
|
yOffset: f,
|
|
186
187
|
individualHeight: S
|
|
187
188
|
};
|
|
188
|
-
})),
|
|
189
|
+
})), u = d({
|
|
189
190
|
start: 0,
|
|
190
191
|
end: I.value
|
|
191
192
|
});
|
|
192
|
-
function
|
|
193
|
-
|
|
193
|
+
function je() {
|
|
194
|
+
qe();
|
|
194
195
|
}
|
|
195
|
-
const
|
|
196
|
-
async function
|
|
197
|
-
(a.value.style.chart.zoom.startIndex !== null || a.value.style.chart.zoom.endIndex !== null) &&
|
|
196
|
+
const j = d(null);
|
|
197
|
+
async function qe() {
|
|
198
|
+
(a.value.style.chart.zoom.startIndex !== null || a.value.style.chart.zoom.endIndex !== null) && j.value ? (a.value.style.chart.zoom.startIndex !== null && (await pe(), await pe(), j.value && j.value.setStartValue(a.value.style.chart.zoom.startIndex)), a.value.style.chart.zoom.endIndex !== null && (await pe(), await pe(), j.value && j.value.setEndValue($a(a.value.style.chart.zoom.endIndex + 1)))) : (u.value = {
|
|
198
199
|
start: 0,
|
|
199
200
|
end: I.value
|
|
200
|
-
},
|
|
201
|
+
}, Pe.value += 1);
|
|
201
202
|
}
|
|
202
|
-
function
|
|
203
|
+
function $a(e) {
|
|
203
204
|
const t = I.value;
|
|
204
205
|
return e > t ? t : e < 0 || a.value.style.chart.zoom.startIndex !== null && e < a.value.style.chart.zoom.startIndex ? a.value.style.chart.zoom.startIndex !== null ? a.value.style.chart.zoom.startIndex + 1 : 1 : e;
|
|
205
206
|
}
|
|
206
|
-
const
|
|
207
|
-
function
|
|
207
|
+
const Ia = x(() => h.value.filter((e) => ["line", "plot", void 0].includes(e.type))), w = x(() => h.value.filter((e) => e.type === "bar"));
|
|
208
|
+
function Ma() {
|
|
208
209
|
if (!T.value)
|
|
209
210
|
return;
|
|
210
|
-
const e =
|
|
211
|
-
T.value.width = e *
|
|
211
|
+
const e = te.value.offsetWidth, t = te.value.offsetHeight;
|
|
212
|
+
T.value.width = e * V.value * 2, T.value.height = t * V.value * 2, y.value = e * V.value * 2, P.value = t * V.value * 2, s.value.scale(V.value, V.value), oe();
|
|
212
213
|
}
|
|
213
|
-
function
|
|
214
|
-
if (s.value.clearRect(0, 0, 1e4, 1e4), s.value.fillStyle = a.value.style.chart.backgroundColor, s.value.fillRect(0, 0, l.value.canvasWidth, l.value.canvasHeight),
|
|
215
|
-
a.value.style.chart.grid.y.verticalLines.show &&
|
|
216
|
-
for (let t = 0; t <
|
|
217
|
-
|
|
214
|
+
function Ta() {
|
|
215
|
+
if (s.value.clearRect(0, 0, 1e4, 1e4), s.value.fillStyle = a.value.style.chart.backgroundColor, s.value.fillRect(0, 0, l.value.canvasWidth, l.value.canvasHeight), r.value.stacked)
|
|
216
|
+
a.value.style.chart.grid.y.verticalLines.show && u.value.end - u.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength ? h.value.forEach((e) => {
|
|
217
|
+
for (let t = 0; t < u.value.end - u.value.start + 1; t += 1)
|
|
218
|
+
k(
|
|
218
219
|
s.value,
|
|
219
220
|
[
|
|
220
221
|
{
|
|
@@ -230,17 +231,17 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
230
231
|
color: a.value.style.chart.grid.y.verticalLines.color
|
|
231
232
|
}
|
|
232
233
|
);
|
|
233
|
-
}) : a.value.style.chart.grid.y.verticalLines.show &&
|
|
234
|
-
for (let t =
|
|
235
|
-
t % Math.floor((
|
|
234
|
+
}) : a.value.style.chart.grid.y.verticalLines.show && u.value.end - u.value.start >= a.value.style.chart.grid.y.verticalLines.hideUnderXLength && h.value.forEach((e) => {
|
|
235
|
+
for (let t = u.value.start; t < u.value.end; t += 1)
|
|
236
|
+
t % Math.floor((u.value.end - u.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 && k(
|
|
236
237
|
s.value,
|
|
237
238
|
[
|
|
238
239
|
{
|
|
239
|
-
x: l.value.left + l.value.slot * (t -
|
|
240
|
+
x: l.value.left + l.value.slot * (t - u.value.start) + l.value.slot / 2,
|
|
240
241
|
y: l.value.bottom - e.yOffset - e.individualHeight
|
|
241
242
|
},
|
|
242
243
|
{
|
|
243
|
-
x: l.value.left + l.value.slot * (t -
|
|
244
|
+
x: l.value.left + l.value.slot * (t - u.value.start) + l.value.slot / 2,
|
|
244
245
|
y: l.value.bottom - e.yOffset
|
|
245
246
|
}
|
|
246
247
|
],
|
|
@@ -250,7 +251,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
250
251
|
);
|
|
251
252
|
}), a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? h.value.forEach((e) => {
|
|
252
253
|
e.localYLabels.forEach((t, o) => {
|
|
253
|
-
o < e.localYLabels.length - 1 &&
|
|
254
|
+
o < e.localYLabels.length - 1 && Te(
|
|
254
255
|
s.value,
|
|
255
256
|
[
|
|
256
257
|
{ x: l.value.left, y: t.y },
|
|
@@ -259,14 +260,14 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
259
260
|
{ x: l.value.left, y: e.localYLabels[o + 1].y }
|
|
260
261
|
],
|
|
261
262
|
{
|
|
262
|
-
fillColor: o % 2 === 0 ? "transparent" :
|
|
263
|
+
fillColor: o % 2 === 0 ? "transparent" : ve(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
|
|
263
264
|
strokeColor: "transparent"
|
|
264
265
|
}
|
|
265
266
|
);
|
|
266
267
|
});
|
|
267
268
|
}) : h.value.forEach((e) => {
|
|
268
|
-
e.localYLabels.slice(
|
|
269
|
-
|
|
269
|
+
e.localYLabels.slice(u.value.start, u.value.end).forEach((t) => {
|
|
270
|
+
k(
|
|
270
271
|
s.value,
|
|
271
272
|
[
|
|
272
273
|
{ x: l.value.left, y: t.y },
|
|
@@ -278,7 +279,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
278
279
|
);
|
|
279
280
|
});
|
|
280
281
|
})), a.value.style.chart.grid.zeroLine.show && h.value.forEach((e) => {
|
|
281
|
-
|
|
282
|
+
k(
|
|
282
283
|
s.value,
|
|
283
284
|
[
|
|
284
285
|
{ x: l.value.left, y: e.localZero },
|
|
@@ -290,7 +291,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
290
291
|
}
|
|
291
292
|
);
|
|
292
293
|
}), a.value.style.chart.grid.y.axisLabels.show && h.value.forEach((e) => {
|
|
293
|
-
|
|
294
|
+
k(
|
|
294
295
|
s.value,
|
|
295
296
|
[
|
|
296
297
|
{ x: l.value.left, y: l.value.bottom - e.yOffset },
|
|
@@ -299,7 +300,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
299
300
|
{
|
|
300
301
|
color: e.color
|
|
301
302
|
}
|
|
302
|
-
),
|
|
303
|
+
), k(
|
|
303
304
|
s.value,
|
|
304
305
|
[
|
|
305
306
|
{ x: l.value.right, y: l.value.bottom - e.yOffset },
|
|
@@ -324,9 +325,9 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
324
325
|
);
|
|
325
326
|
});
|
|
326
327
|
else {
|
|
327
|
-
if (a.value.style.chart.grid.y.verticalLines.show &&
|
|
328
|
-
for (let e = 0; e <
|
|
329
|
-
|
|
328
|
+
if (a.value.style.chart.grid.y.verticalLines.show && u.value.end - u.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
|
|
329
|
+
for (let e = 0; e < u.value.end - u.value.start + 1; e += 1)
|
|
330
|
+
k(
|
|
330
331
|
s.value,
|
|
331
332
|
[
|
|
332
333
|
{ x: l.value.left + l.value.slot * e, y: l.value.top },
|
|
@@ -336,20 +337,20 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
336
337
|
color: a.value.style.chart.grid.y.verticalLines.color
|
|
337
338
|
}
|
|
338
339
|
);
|
|
339
|
-
else if (a.value.style.chart.grid.y.verticalLines.show &&
|
|
340
|
-
for (let e =
|
|
341
|
-
e % Math.floor((
|
|
340
|
+
else if (a.value.style.chart.grid.y.verticalLines.show && u.value.end - u.value.start >= a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
|
|
341
|
+
for (let e = u.value.start; e < u.value.end; e += 1)
|
|
342
|
+
e % Math.floor((u.value.end - u.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 && k(
|
|
342
343
|
s.value,
|
|
343
344
|
[
|
|
344
|
-
{ x: l.value.left + l.value.slot * (e -
|
|
345
|
-
{ x: l.value.left + l.value.slot * (e -
|
|
345
|
+
{ x: l.value.left + l.value.slot * (e - u.value.start) + l.value.slot / 2, y: l.value.top },
|
|
346
|
+
{ x: l.value.left + l.value.slot * (e - u.value.start) + l.value.slot / 2, y: l.value.bottom }
|
|
346
347
|
],
|
|
347
348
|
{
|
|
348
349
|
color: a.value.style.chart.grid.y.verticalLines.color
|
|
349
350
|
}
|
|
350
351
|
);
|
|
351
352
|
a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? m.value.yLabels.forEach((e, t) => {
|
|
352
|
-
t < m.value.yLabels.length - 1 &&
|
|
353
|
+
t < m.value.yLabels.length - 1 && Te(
|
|
353
354
|
s.value,
|
|
354
355
|
[
|
|
355
356
|
{ x: l.value.left, y: e.y },
|
|
@@ -358,12 +359,12 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
358
359
|
{ x: l.value.left, y: m.value.yLabels[t + 1].y }
|
|
359
360
|
],
|
|
360
361
|
{
|
|
361
|
-
fillColor: t % 2 === 0 ? "transparent" :
|
|
362
|
+
fillColor: t % 2 === 0 ? "transparent" : ve(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
|
|
362
363
|
strokeColor: "transparent"
|
|
363
364
|
}
|
|
364
365
|
);
|
|
365
366
|
}) : m.value.yLabels.forEach((e) => {
|
|
366
|
-
|
|
367
|
+
k(
|
|
367
368
|
s.value,
|
|
368
369
|
[
|
|
369
370
|
{ x: l.value.left, y: e.y },
|
|
@@ -373,7 +374,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
373
374
|
color: a.value.style.chart.grid.x.horizontalLines.color
|
|
374
375
|
}
|
|
375
376
|
);
|
|
376
|
-
})), a.value.style.chart.grid.y.showAxis &&
|
|
377
|
+
})), a.value.style.chart.grid.y.showAxis && k(
|
|
377
378
|
s.value,
|
|
378
379
|
[
|
|
379
380
|
{ x: l.value.left, y: l.value.top },
|
|
@@ -383,7 +384,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
383
384
|
color: a.value.style.chart.grid.y.axisColor,
|
|
384
385
|
lineWidth: a.value.style.chart.grid.y.axisThickness
|
|
385
386
|
}
|
|
386
|
-
), a.value.style.chart.grid.x.showAxis &&
|
|
387
|
+
), a.value.style.chart.grid.x.showAxis && k(
|
|
387
388
|
s.value,
|
|
388
389
|
[
|
|
389
390
|
{ x: l.value.left, y: l.value.bottom },
|
|
@@ -393,7 +394,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
393
394
|
color: a.value.style.chart.grid.x.axisColor,
|
|
394
395
|
lineWidth: a.value.style.chart.grid.x.axisThickness
|
|
395
396
|
}
|
|
396
|
-
), a.value.style.chart.grid.zeroLine.show &&
|
|
397
|
+
), a.value.style.chart.grid.zeroLine.show && k(
|
|
397
398
|
s.value,
|
|
398
399
|
[
|
|
399
400
|
{ x: l.value.left, y: m.value.zero },
|
|
@@ -428,10 +429,10 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
428
429
|
}
|
|
429
430
|
);
|
|
430
431
|
}
|
|
431
|
-
function
|
|
432
|
+
function Oa(e) {
|
|
432
433
|
for (let t = 0; t < e.coordinatesLine.length; t += 1) {
|
|
433
|
-
const o = (
|
|
434
|
-
|
|
434
|
+
const o = (c.value === t ? y.value / 150 : a.value.style.chart.line.plots.show ? y.value / 200 : 0) * a.value.style.chart.line.plots.radiusRatio;
|
|
435
|
+
va(
|
|
435
436
|
s.value,
|
|
436
437
|
{ x: e.coordinatesLine[t].x, y: e.coordinatesLine[t].y },
|
|
437
438
|
o,
|
|
@@ -442,23 +443,23 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
442
443
|
);
|
|
443
444
|
}
|
|
444
445
|
}
|
|
445
|
-
function
|
|
446
|
+
function Ra() {
|
|
446
447
|
h.value.forEach((e) => {
|
|
447
|
-
e.showYMarker &&
|
|
448
|
+
e.showYMarker && ue(e) && R(
|
|
448
449
|
s.value,
|
|
449
|
-
|
|
450
|
+
ee(
|
|
450
451
|
a.value.style.chart.dataLabels.formatter,
|
|
451
|
-
|
|
452
|
-
|
|
452
|
+
ue(e).value,
|
|
453
|
+
ae({
|
|
453
454
|
p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
454
|
-
v:
|
|
455
|
+
v: ue(e).value,
|
|
455
456
|
s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
456
457
|
r: e.rounding || a.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
457
458
|
}),
|
|
458
|
-
{ datapoint:
|
|
459
|
+
{ datapoint: ue(e), seriesIndex: null }
|
|
459
460
|
),
|
|
460
461
|
l.value.left - 8 + a.value.style.chart.grid.y.axisLabels.offsetX,
|
|
461
|
-
|
|
462
|
+
ue(e).y,
|
|
462
463
|
{
|
|
463
464
|
align: "right",
|
|
464
465
|
font: `${a.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
@@ -467,15 +468,15 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
467
468
|
);
|
|
468
469
|
});
|
|
469
470
|
}
|
|
470
|
-
function
|
|
471
|
-
a.value.style.chart.grid.y.axisLabels.show && (
|
|
471
|
+
function Pa() {
|
|
472
|
+
a.value.style.chart.grid.y.axisLabels.show && (r.value.stacked ? h.value.forEach((e) => {
|
|
472
473
|
e.localYLabels.forEach((t, o) => {
|
|
473
474
|
R(
|
|
474
475
|
s.value,
|
|
475
|
-
|
|
476
|
+
ee(
|
|
476
477
|
a.value.style.chart.dataLabels.formatter,
|
|
477
478
|
t.value,
|
|
478
|
-
|
|
479
|
+
ae({
|
|
479
480
|
p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
480
481
|
v: t.value,
|
|
481
482
|
s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
@@ -489,17 +490,17 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
489
490
|
align: "right",
|
|
490
491
|
font: `${a.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
491
492
|
color: e.color,
|
|
492
|
-
globalAlpha: e.showYMarker && ![null, void 0].includes(
|
|
493
|
+
globalAlpha: e.showYMarker && ![null, void 0].includes(c.value) ? 0.2 : 1
|
|
493
494
|
}
|
|
494
495
|
);
|
|
495
496
|
});
|
|
496
497
|
}) : m.value.yLabels.forEach((e, t) => {
|
|
497
498
|
R(
|
|
498
499
|
s.value,
|
|
499
|
-
|
|
500
|
+
ee(
|
|
500
501
|
a.value.style.chart.dataLabels.formatter,
|
|
501
502
|
e.value,
|
|
502
|
-
|
|
503
|
+
ae({
|
|
503
504
|
p: a.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
504
505
|
v: e.value,
|
|
505
506
|
s: a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
@@ -513,19 +514,19 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
513
514
|
align: "right",
|
|
514
515
|
font: `${a.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
515
516
|
color: a.value.style.chart.grid.y.axisLabels.color,
|
|
516
|
-
globalAlpha: h.value.some((o) => o.showYMarker) && ![null, void 0].includes(
|
|
517
|
+
globalAlpha: h.value.some((o) => o.showYMarker) && ![null, void 0].includes(c.value) ? 0.2 : 1
|
|
517
518
|
}
|
|
518
519
|
);
|
|
519
520
|
}));
|
|
520
521
|
}
|
|
521
|
-
function
|
|
522
|
+
function Ea(e) {
|
|
522
523
|
for (let t = 0; t < e.coordinatesLine.length; t += 1)
|
|
523
524
|
R(
|
|
524
525
|
s.value,
|
|
525
|
-
|
|
526
|
+
ee(
|
|
526
527
|
a.value.style.chart.dataLabels.formatter,
|
|
527
528
|
e.coordinatesLine[t].value,
|
|
528
|
-
|
|
529
|
+
ae({
|
|
529
530
|
p: e.prefix || "",
|
|
530
531
|
v: e.coordinatesLine[t].value,
|
|
531
532
|
s: e.suffix || "",
|
|
@@ -542,27 +543,34 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
542
543
|
}
|
|
543
544
|
);
|
|
544
545
|
}
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
546
|
+
const N = x(() => Ll({
|
|
547
|
+
values: a.value.style.chart.grid.y.timeLabels.values,
|
|
548
|
+
maxDatapoints: I.value,
|
|
549
|
+
formatter: a.value.style.chart.grid.y.timeLabels.formatter,
|
|
550
|
+
start: 0,
|
|
551
|
+
end: a.value.style.chart.grid.y.timeLabels.values.length
|
|
552
|
+
}));
|
|
553
|
+
function Fa() {
|
|
554
|
+
for (let e = u.value.start; e < u.value.end; e += 1)
|
|
555
|
+
(u.value.end - u.value.start < a.value.style.chart.grid.y.timeLabels.modulo || u.value.end - u.value.start >= a.value.style.chart.grid.y.timeLabels.modulo && (e % Math.floor((u.value.end - u.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 || e === c.value + u.value.start && a.value.style.chart.grid.y.timeLabels.showMarker)) && R(
|
|
548
556
|
s.value,
|
|
549
|
-
|
|
550
|
-
l.value.left + l.value.slot * (e -
|
|
557
|
+
N.value[e] ? N.value[e].text : e + 1,
|
|
558
|
+
l.value.left + l.value.slot * (e - u.value.start) + l.value.slot / 2,
|
|
551
559
|
l.value.bottom + y.value / a.value.style.chart.grid.y.timeLabels.offsetY,
|
|
552
560
|
{
|
|
553
561
|
align: a.value.style.chart.grid.y.timeLabels.rotation === 0 ? "center" : a.value.style.chart.grid.y.timeLabels.rotation > 0 ? "left" : "right",
|
|
554
562
|
font: `${a.value.style.chart.grid.y.timeLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.grid.y.timeLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
555
|
-
color: a.value.style.chart.grid.y.timeLabels.showMarker ?
|
|
563
|
+
color: a.value.style.chart.grid.y.timeLabels.showMarker ? ve(a.value.style.chart.grid.y.timeLabels.color, c.value !== null ? c.value + u.value.start === e ? 100 : 20 : 100) : a.value.style.chart.grid.y.timeLabels.color,
|
|
556
564
|
rotation: a.value.style.chart.grid.y.timeLabels.rotation
|
|
557
565
|
}
|
|
558
566
|
);
|
|
559
567
|
}
|
|
560
|
-
function
|
|
561
|
-
|
|
568
|
+
function Je() {
|
|
569
|
+
k(
|
|
562
570
|
s.value,
|
|
563
571
|
[
|
|
564
|
-
{ x: l.value.left + l.value.slot *
|
|
565
|
-
{ x: l.value.left + l.value.slot *
|
|
572
|
+
{ x: l.value.left + l.value.slot * c.value + l.value.slot / 2, y: l.value.top },
|
|
573
|
+
{ x: l.value.left + l.value.slot * c.value + l.value.slot / 2, y: l.value.bottom }
|
|
566
574
|
],
|
|
567
575
|
{
|
|
568
576
|
color: a.value.style.chart.selector.color,
|
|
@@ -571,8 +579,8 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
571
579
|
}
|
|
572
580
|
);
|
|
573
581
|
}
|
|
574
|
-
function
|
|
575
|
-
M.value &&
|
|
582
|
+
function Aa() {
|
|
583
|
+
M.value && k(
|
|
576
584
|
s.value,
|
|
577
585
|
[
|
|
578
586
|
{ x: l.value.left, y: M.value },
|
|
@@ -585,26 +593,26 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
585
593
|
}
|
|
586
594
|
);
|
|
587
595
|
}
|
|
588
|
-
function
|
|
596
|
+
function Da() {
|
|
589
597
|
w.value.forEach((e, t) => {
|
|
590
598
|
for (let o = 0; o < e.coordinatesLine.length; o += 1)
|
|
591
|
-
|
|
599
|
+
Te(
|
|
592
600
|
s.value,
|
|
593
601
|
[
|
|
594
602
|
{
|
|
595
|
-
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (
|
|
596
|
-
y:
|
|
603
|
+
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / w.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * w.value.length) * t)),
|
|
604
|
+
y: r.value.stacked ? e.localZero : m.value.zero
|
|
597
605
|
},
|
|
598
606
|
{
|
|
599
|
-
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (
|
|
600
|
-
y:
|
|
607
|
+
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / w.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * w.value.length) * t)) + l.value.slot * 0.8 / (r.value.stacked ? 1 : w.value.length),
|
|
608
|
+
y: r.value.stacked ? e.localZero : m.value.zero
|
|
601
609
|
},
|
|
602
610
|
{
|
|
603
|
-
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (
|
|
611
|
+
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / w.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * w.value.length) * t)) + l.value.slot * 0.8 / (r.value.stacked ? 1 : w.value.length),
|
|
604
612
|
y: e.coordinatesLine[o].y
|
|
605
613
|
},
|
|
606
614
|
{
|
|
607
|
-
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (
|
|
615
|
+
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / w.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * w.value.length) * t)),
|
|
608
616
|
y: e.coordinatesLine[o].y
|
|
609
617
|
}
|
|
610
618
|
],
|
|
@@ -618,20 +626,20 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
618
626
|
},
|
|
619
627
|
end: {
|
|
620
628
|
x: e.coordinatesLine[o].x,
|
|
621
|
-
y:
|
|
629
|
+
y: r.value.stacked ? e.localZero : m.value.zero
|
|
622
630
|
},
|
|
623
631
|
stops: [
|
|
624
632
|
{ offset: 0, color: e.color },
|
|
625
|
-
{ offset: 1, color: a.value.style.chart.bar.gradient.show ?
|
|
633
|
+
{ offset: 1, color: a.value.style.chart.bar.gradient.show ? vl(e.color, 0.5) : e.color }
|
|
626
634
|
]
|
|
627
635
|
}
|
|
628
636
|
}
|
|
629
|
-
),
|
|
637
|
+
), r.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && R(
|
|
630
638
|
s.value,
|
|
631
|
-
|
|
639
|
+
ee(
|
|
632
640
|
a.value.style.chart.dataLabels.formatter,
|
|
633
641
|
e.coordinatesLine[o].value,
|
|
634
|
-
|
|
642
|
+
ae({
|
|
635
643
|
p: e.prefix || "",
|
|
636
644
|
v: e.coordinatesLine[o].value,
|
|
637
645
|
s: e.suffix || "",
|
|
@@ -639,8 +647,8 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
639
647
|
}),
|
|
640
648
|
{ datapoint: e.coordinatesLine[o], seriesIndex: o }
|
|
641
649
|
),
|
|
642
|
-
l.value.left + l.value.slot * o + l.value.slot / 10 + (
|
|
643
|
-
(e.coordinatesLine[o].value < 0 ?
|
|
650
|
+
l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / w.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * w.value.length) * t)) + l.value.slot * 0.4 / (r.value.stacked ? 1 : w.value.length),
|
|
651
|
+
(e.coordinatesLine[o].value < 0 ? r.value.stacked ? e.localZero : m.value.zero : e.coordinatesLine[o].y) + a.value.style.chart.dataLabels.offsetY,
|
|
644
652
|
{
|
|
645
653
|
align: "center",
|
|
646
654
|
font: `${Math.round(y.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
@@ -651,29 +659,29 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
651
659
|
);
|
|
652
660
|
});
|
|
653
661
|
}
|
|
654
|
-
function
|
|
655
|
-
e.useArea ?
|
|
662
|
+
function Ha(e) {
|
|
663
|
+
e.useArea ? r.value.stacked ? ca(
|
|
656
664
|
s.value,
|
|
657
665
|
[{ x: e.coordinatesLine[0].x, y: e.localZero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: e.localZero }],
|
|
658
666
|
{
|
|
659
|
-
fillColor:
|
|
667
|
+
fillColor: ve(e.color, a.value.style.chart.area.opacity),
|
|
660
668
|
strokeColor: "transparent"
|
|
661
669
|
}
|
|
662
|
-
) :
|
|
670
|
+
) : ca(
|
|
663
671
|
s.value,
|
|
664
672
|
[{ x: e.coordinatesLine[0].x, y: m.value.zero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: m.value.zero }],
|
|
665
673
|
{
|
|
666
|
-
fillColor:
|
|
674
|
+
fillColor: ve(e.color, a.value.style.chart.area.opacity),
|
|
667
675
|
strokeColor: "transparent"
|
|
668
676
|
}
|
|
669
|
-
) :
|
|
677
|
+
) : k(s.value, e.coordinatesLine, {
|
|
670
678
|
color: e.color,
|
|
671
679
|
lineWidth: 3
|
|
672
680
|
});
|
|
673
681
|
}
|
|
674
|
-
function
|
|
682
|
+
function Na() {
|
|
675
683
|
h.value.forEach((e, t) => {
|
|
676
|
-
|
|
684
|
+
k(
|
|
677
685
|
s.value,
|
|
678
686
|
[
|
|
679
687
|
{ x: l.value.left, y: l.value.bottom - e.yOffset },
|
|
@@ -686,17 +694,17 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
686
694
|
);
|
|
687
695
|
});
|
|
688
696
|
}
|
|
689
|
-
function
|
|
690
|
-
|
|
691
|
-
(e.type === "line" || !e.type) &&
|
|
692
|
-
}),
|
|
697
|
+
function oe() {
|
|
698
|
+
Ta(), H.value ? (c.value !== null && a.value.style.chart.selector.show && Je(), Da(), r.value.stacked && a.value.style.chart.grid.x.showAxis && Na(), Ia.value.forEach((e) => {
|
|
699
|
+
(e.type === "line" || !e.type) && Ha(e), Z.value && (Oa(e), r.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Ea(e));
|
|
700
|
+
}), xe.value = yl(T.value)) : (xe.value && (s.value.clearRect(0, 0, 1e4, 1e4), s.value.drawImage(xe.value, 0, 0)), c.value !== null && a.value.style.chart.selector.show && Je(), c.value !== null && h.value.forEach((e) => {
|
|
693
701
|
if (e.type === "line" || !e.type || e.type === "plot") {
|
|
694
|
-
if (!e.coordinatesLine[
|
|
695
|
-
e.coordinatesLine[
|
|
702
|
+
if (!e.coordinatesLine[c.value]) return;
|
|
703
|
+
e.coordinatesLine[c.value].x !== void 0 && e.coordinatesLine[c.value].y !== void 0 && va(
|
|
696
704
|
s.value,
|
|
697
705
|
{
|
|
698
|
-
x: e.coordinatesLine[
|
|
699
|
-
y: e.coordinatesLine[
|
|
706
|
+
x: e.coordinatesLine[c.value].x,
|
|
707
|
+
y: e.coordinatesLine[c.value].y
|
|
700
708
|
},
|
|
701
709
|
y.value / 150 * a.value.style.chart.line.plots.radiusRatio,
|
|
702
710
|
{
|
|
@@ -705,104 +713,104 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
705
713
|
}
|
|
706
714
|
);
|
|
707
715
|
}
|
|
708
|
-
})), a.value.style.chart.grid.y.timeLabels.show &&
|
|
716
|
+
})), a.value.style.chart.grid.y.timeLabels.show && Fa(), a.value.style.chart.selector.show && a.value.style.chart.selector.showHorizontalSelector && Aa(), Pa(), Ra(), H.value = !1;
|
|
709
717
|
}
|
|
710
|
-
const
|
|
711
|
-
|
|
712
|
-
}, I.value > 200 ? 10 : 1, !
|
|
713
|
-
function
|
|
714
|
-
if ([null, void 0].includes(
|
|
715
|
-
const { y: t, value: o } = e.coordinatesLine[
|
|
718
|
+
const ye = cl(() => {
|
|
719
|
+
Z.value = !0, Ma();
|
|
720
|
+
}, I.value > 200 ? 10 : 1, !Z.value);
|
|
721
|
+
function ue(e) {
|
|
722
|
+
if ([null, void 0].includes(c.value) || !e.coordinatesLine[c.value]) return !1;
|
|
723
|
+
const { y: t, value: o } = e.coordinatesLine[c.value];
|
|
716
724
|
return { y: t, value: o };
|
|
717
725
|
}
|
|
718
|
-
function
|
|
726
|
+
function Ya(e) {
|
|
719
727
|
const { left: t, top: o } = T.value.getBoundingClientRect(), n = e.clientX - t;
|
|
720
728
|
if (M.value = (e.clientY - o) * 2, (M.value < l.value.top || M.value > l.value.bottom) && (M.value = null), n * 2 < l.value.left || n * 2 > l.value.right) {
|
|
721
|
-
|
|
729
|
+
ce.value = !1, c.value = null;
|
|
722
730
|
return;
|
|
723
731
|
}
|
|
724
|
-
const
|
|
725
|
-
if (
|
|
726
|
-
let
|
|
732
|
+
const v = n * 2 - l.value.left;
|
|
733
|
+
if (c.value = Math.floor(v / l.value.slot), ce.value = !0, !Z.value) return;
|
|
734
|
+
let C = "";
|
|
727
735
|
const i = a.value.style.chart.tooltip.customFormat;
|
|
728
|
-
|
|
729
|
-
seriesIndex:
|
|
736
|
+
ia(i) && il(() => i({
|
|
737
|
+
seriesIndex: c.value,
|
|
730
738
|
datapoint: h.value.map((f) => ({
|
|
731
739
|
shape: f.shape || null,
|
|
732
740
|
name: f.name,
|
|
733
741
|
color: f.color,
|
|
734
742
|
type: f.type || "line",
|
|
735
|
-
value: f.series.find((
|
|
743
|
+
value: f.series.find((Y, S) => S === c.value)
|
|
736
744
|
})),
|
|
737
745
|
series: h.value,
|
|
738
746
|
config: a.value
|
|
739
|
-
})) ?
|
|
740
|
-
seriesIndex:
|
|
747
|
+
})) ? de.value = i({
|
|
748
|
+
seriesIndex: c.value,
|
|
741
749
|
datapoint: h.value.map((f) => ({
|
|
742
750
|
shape: f.shape || null,
|
|
743
751
|
name: f.name,
|
|
744
752
|
color: f.color,
|
|
745
753
|
type: f.type || "line",
|
|
746
|
-
value: f.series.find((
|
|
754
|
+
value: f.series.find((Y, S) => S === c.value)
|
|
747
755
|
})),
|
|
748
756
|
series: h.value,
|
|
749
757
|
config: a.value
|
|
750
|
-
}) : (a.value.style.chart.grid.y.timeLabels.values.slice(
|
|
758
|
+
}) : (a.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.value.end)[c.value] && (C += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${N.value.slice(u.value.start, u.value.end)[c.value].text}</div>`), C += Sa.value.join(""), de.value = C), Z.value = !1;
|
|
751
759
|
}
|
|
752
|
-
A(() =>
|
|
753
|
-
|
|
754
|
-
}), A(() =>
|
|
755
|
-
H.value = !0,
|
|
760
|
+
A(() => c.value, (e) => {
|
|
761
|
+
ye();
|
|
762
|
+
}), A(() => u.value, (e) => {
|
|
763
|
+
H.value = !0, oe();
|
|
756
764
|
}, {
|
|
757
765
|
deep: !0
|
|
758
|
-
}), A(() =>
|
|
759
|
-
H.value = !0,
|
|
766
|
+
}), A(() => r.value.showDataLabels, (e) => {
|
|
767
|
+
H.value = !0, oe();
|
|
760
768
|
}), A(() => M.value, (e) => {
|
|
761
|
-
e &&
|
|
762
|
-
}), A(() =>
|
|
763
|
-
H.value = !0,
|
|
769
|
+
e && oe();
|
|
770
|
+
}), A(() => r.value.stacked, (e) => {
|
|
771
|
+
H.value = !0, Z.value = !0, ye();
|
|
764
772
|
});
|
|
765
|
-
function
|
|
766
|
-
|
|
773
|
+
function Ua() {
|
|
774
|
+
ce.value = !1, c.value = null, de.value = "", M.value = null, oe();
|
|
767
775
|
}
|
|
768
|
-
const E =
|
|
776
|
+
const E = Ie(null), q = Ie(null), J = Ie(null);
|
|
769
777
|
ra(() => {
|
|
770
|
-
|
|
778
|
+
Se();
|
|
771
779
|
});
|
|
772
|
-
function
|
|
773
|
-
if (
|
|
780
|
+
function Se() {
|
|
781
|
+
if (ul(g.dataset) ? rl({
|
|
774
782
|
componentName: "VueUiXyCanvas",
|
|
775
783
|
type: "dataset"
|
|
776
784
|
}) : T.value && (s.value = T.value.getContext("2d", { willReadFrequently: !0 })), a.value.responsive) {
|
|
777
|
-
const e =
|
|
778
|
-
const { width: t, height: o } =
|
|
779
|
-
chart:
|
|
780
|
-
title: a.value.style.chart.title.text ?
|
|
781
|
-
legend: a.value.style.chart.legend.show ?
|
|
782
|
-
slicer: a.value.style.chart.zoom.show && I.value > 1 ?
|
|
783
|
-
source:
|
|
785
|
+
const e = dl(() => {
|
|
786
|
+
const { width: t, height: o } = hl({
|
|
787
|
+
chart: le.value,
|
|
788
|
+
title: a.value.style.chart.title.text ? Fe.value : null,
|
|
789
|
+
legend: a.value.style.chart.legend.show ? Ae.value : null,
|
|
790
|
+
slicer: a.value.style.chart.zoom.show && I.value > 1 ? De.value : null,
|
|
791
|
+
source: He.value
|
|
784
792
|
});
|
|
785
793
|
requestAnimationFrame(() => {
|
|
786
|
-
|
|
794
|
+
We.value = `${t} / ${o}`;
|
|
787
795
|
});
|
|
788
796
|
});
|
|
789
|
-
E.value && (
|
|
797
|
+
E.value && (q.value && E.value.unobserve(q.value), E.value.disconnect()), E.value = new ResizeObserver(e), q.value = le.value.parentNode, E.value.observe(q.value);
|
|
790
798
|
}
|
|
791
|
-
|
|
799
|
+
J.value && J.value.disconnect(), J.value = new ResizeObserver((e) => {
|
|
792
800
|
for (const t of e)
|
|
793
|
-
t.contentBoxSize &&
|
|
794
|
-
}),
|
|
801
|
+
t.contentBoxSize && te.value && (H.value = !0, ye());
|
|
802
|
+
}), J.value.observe(te.value), qe();
|
|
795
803
|
}
|
|
796
|
-
|
|
797
|
-
|
|
804
|
+
Va(() => {
|
|
805
|
+
J.value && J.value.disconnect(), E.value && (q.value && E.value.unobserve(q.value), E.value.disconnect());
|
|
798
806
|
});
|
|
799
|
-
function
|
|
800
|
-
|
|
807
|
+
function Ke(e) {
|
|
808
|
+
ka("selectLegend", h.value.find((t) => t.absoluteIndex === e)), $.value.includes(e) ? $.value = $.value.filter((t) => t !== e) : $.value.push(e), H.value = !0, ye();
|
|
801
809
|
}
|
|
802
|
-
const
|
|
810
|
+
const Qe = x(() => G.value.map((e, t) => ({
|
|
803
811
|
...e,
|
|
804
812
|
name: e.name,
|
|
805
|
-
color:
|
|
813
|
+
color: na(e.color) || Ze.value[t] || B[t] || B[t % B.length],
|
|
806
814
|
shape: e.shape || "circle",
|
|
807
815
|
prefix: e.prefix || "",
|
|
808
816
|
suffix: e.suffix || "",
|
|
@@ -810,21 +818,21 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
810
818
|
})).map((e) => ({
|
|
811
819
|
...e,
|
|
812
820
|
opacity: $.value.includes(e.absoluteIndex) ? 0.5 : 1,
|
|
813
|
-
segregate: () =>
|
|
821
|
+
segregate: () => Ke(e.absoluteIndex),
|
|
814
822
|
isSegregated: $.value.includes(e.absoluteIndex)
|
|
815
|
-
}))),
|
|
823
|
+
}))), Wa = x(() => ({
|
|
816
824
|
cy: "donut-div-legend",
|
|
817
825
|
backgroundColor: a.value.style.chart.legend.backgroundColor,
|
|
818
826
|
color: a.value.style.chart.legend.color,
|
|
819
827
|
fontSize: a.value.style.chart.legend.fontSize,
|
|
820
828
|
paddingBottom: 12,
|
|
821
829
|
fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
|
|
822
|
-
})),
|
|
823
|
-
const e = [""].concat(h.value.map((
|
|
830
|
+
})), fe = x(() => {
|
|
831
|
+
const e = [""].concat(h.value.map((v) => v.name)).concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>');
|
|
824
832
|
let t = [];
|
|
825
|
-
for (let
|
|
826
|
-
const
|
|
827
|
-
t.push([a.value.style.chart.grid.y.timeLabels.values.slice(
|
|
833
|
+
for (let v = 0; v < I.value; v += 1) {
|
|
834
|
+
const C = h.value.map((i) => i.series[v] ?? 0).reduce((i, f) => i + f, 0);
|
|
835
|
+
t.push([a.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.value.end)[v] ? N.value.slice(u.value.start, u.value.end)[v].text : v + 1].concat(h.value.map((i) => (i.series[v] ?? 0).toFixed(a.value.table.rounding))).concat((C ?? 0).toFixed(a.value.table.rounding)));
|
|
828
836
|
}
|
|
829
837
|
const o = {
|
|
830
838
|
th: {
|
|
@@ -838,73 +846,73 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
838
846
|
outline: a.value.table.td.outline
|
|
839
847
|
},
|
|
840
848
|
breakpoint: a.value.table.responsiveBreakpoint
|
|
841
|
-
}, n = [a.value.table.columnNames.period].concat(h.value.map((
|
|
842
|
-
return { head: e, body: t.slice(0,
|
|
843
|
-
}),
|
|
849
|
+
}, n = [a.value.table.columnNames.period].concat(h.value.map((v) => v.name)).concat(a.value.table.columnNames.total);
|
|
850
|
+
return { head: e, body: t.slice(0, u.value.end - u.value.start), config: o, colNames: n };
|
|
851
|
+
}), ea = x(() => {
|
|
844
852
|
if (h.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
845
853
|
const e = h.value.map((o) => ({
|
|
846
854
|
label: o.name,
|
|
847
855
|
color: o.color,
|
|
848
856
|
type: o.type
|
|
849
857
|
})), t = [];
|
|
850
|
-
for (let o =
|
|
851
|
-
const n = [a.value.style.chart.grid.y.timeLabels.values[o]
|
|
852
|
-
h.value.forEach((
|
|
853
|
-
n.push(Number((
|
|
858
|
+
for (let o = u.value.start; o < u.value.end; o += 1) {
|
|
859
|
+
const n = [a.value.style.chart.grid.y.timeLabels.values[o] ? N.value[o].text : o + 1];
|
|
860
|
+
h.value.forEach((v) => {
|
|
861
|
+
n.push(Number((v.series[o] || 0).toFixed(a.value.table.rounding)));
|
|
854
862
|
}), t.push(n);
|
|
855
863
|
}
|
|
856
864
|
return { head: e, body: t };
|
|
857
865
|
});
|
|
858
|
-
function
|
|
859
|
-
const t = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], o = ["", ...
|
|
860
|
-
e ? e(
|
|
866
|
+
function aa(e = null) {
|
|
867
|
+
const t = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], o = ["", ...ea.value.head.map((i) => i.label)], n = ea.value.body, v = t.concat([o]).concat(n), C = sl(v);
|
|
868
|
+
e ? e(C) : nl({ csvContent: C, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
|
|
861
869
|
}
|
|
862
|
-
function
|
|
870
|
+
function Xa() {
|
|
863
871
|
return h.value;
|
|
864
872
|
}
|
|
865
|
-
function aa() {
|
|
866
|
-
u.value.showTable = !u.value.showTable;
|
|
867
|
-
}
|
|
868
873
|
function la() {
|
|
869
|
-
|
|
874
|
+
r.value.showTable = !r.value.showTable;
|
|
870
875
|
}
|
|
871
876
|
function ta() {
|
|
872
|
-
|
|
877
|
+
r.value.showDataLabels = !r.value.showDataLabels;
|
|
873
878
|
}
|
|
874
879
|
function oa() {
|
|
875
|
-
|
|
880
|
+
r.value.stacked = !r.value.stacked;
|
|
876
881
|
}
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
fe.value = !fe.value;
|
|
882
|
+
function ua() {
|
|
883
|
+
r.value.showTooltip = !r.value.showTooltip;
|
|
880
884
|
}
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
885
|
+
const ge = d(!1);
|
|
886
|
+
function $e() {
|
|
887
|
+
ge.value = !ge.value;
|
|
888
|
+
}
|
|
889
|
+
return ha({
|
|
890
|
+
getData: Xa,
|
|
891
|
+
generateCsv: aa,
|
|
892
|
+
generatePdf: Be,
|
|
893
|
+
generateImage: Ve,
|
|
894
|
+
toggleTable: la,
|
|
895
|
+
toggleLabels: ta,
|
|
896
|
+
toggleStack: oa,
|
|
897
|
+
toggleTooltip: ua,
|
|
898
|
+
toggleAnnotator: $e
|
|
899
|
+
}), (e, t) => (z(), ne("div", {
|
|
900
|
+
style: Q(`width:100%; position:relative; ${a.value.responsive ? "height: 100%" : ""}`),
|
|
893
901
|
ref_key: "xy",
|
|
894
|
-
ref:
|
|
895
|
-
id: `xy_canvas_${
|
|
896
|
-
class:
|
|
897
|
-
onMouseenter: t[5] || (t[5] = () => p(
|
|
898
|
-
onMouseleave: t[6] || (t[6] = () => p(
|
|
902
|
+
ref: le,
|
|
903
|
+
id: `xy_canvas_${be.value}`,
|
|
904
|
+
class: Za(`vue-ui-donut ${he.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
905
|
+
onMouseenter: t[5] || (t[5] = () => p(Ne)(!0)),
|
|
906
|
+
onMouseleave: t[6] || (t[6] = () => p(Ne)(!1))
|
|
899
907
|
}, [
|
|
900
|
-
a.value.style.chart.title.text ? (z(),
|
|
908
|
+
a.value.style.chart.title.text ? (z(), ne("div", {
|
|
901
909
|
key: 0,
|
|
902
910
|
ref_key: "chartTitle",
|
|
903
|
-
ref:
|
|
904
|
-
style:
|
|
911
|
+
ref: Fe,
|
|
912
|
+
style: Q(`width:100%;background:${a.value.style.chart.backgroundColor};`)
|
|
905
913
|
}, [
|
|
906
|
-
(z(), D(
|
|
907
|
-
key: `title_${
|
|
914
|
+
(z(), D(bl, {
|
|
915
|
+
key: `title_${Le.value}`,
|
|
908
916
|
config: {
|
|
909
917
|
title: {
|
|
910
918
|
cy: "xy-canvas-title",
|
|
@@ -916,130 +924,130 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
916
924
|
}
|
|
917
925
|
}
|
|
918
926
|
}, null, 8, ["config"]))
|
|
919
|
-
], 4)) :
|
|
920
|
-
a.value.userOptions.show &&
|
|
927
|
+
], 4)) : W("", !0),
|
|
928
|
+
a.value.userOptions.show && we.value && (p(Ye) || p(ze)) ? (z(), D(p(xa), {
|
|
921
929
|
ref: "details",
|
|
922
|
-
key: `user_option_${
|
|
930
|
+
key: `user_option_${Ee.value}`,
|
|
923
931
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
924
932
|
color: a.value.style.chart.color,
|
|
925
|
-
isPrinting: p(
|
|
926
|
-
isImaging: p(
|
|
927
|
-
uid:
|
|
933
|
+
isPrinting: p(Xe),
|
|
934
|
+
isImaging: p(_e),
|
|
935
|
+
uid: be.value,
|
|
928
936
|
hasTooltip: a.value.userOptions.buttons.tooltip && a.value.style.chart.tooltip.show,
|
|
929
937
|
hasPdf: a.value.userOptions.buttons.pdf,
|
|
930
938
|
hasImg: a.value.userOptions.buttons.img,
|
|
931
939
|
hasXls: a.value.userOptions.buttons.csv,
|
|
932
940
|
hasLabel: a.value.userOptions.buttons.labels,
|
|
933
|
-
hasStack:
|
|
941
|
+
hasStack: Oe.dataset.length > 1 && a.value.userOptions.buttons.stack,
|
|
934
942
|
hasFullscreen: a.value.userOptions.buttons.fullscreen,
|
|
935
|
-
hasTable:
|
|
936
|
-
isFullscreen:
|
|
937
|
-
isTooltip:
|
|
938
|
-
isStacked:
|
|
943
|
+
hasTable: u.value.end - u.value.start < 200 && a.value.userOptions.buttons.table,
|
|
944
|
+
isFullscreen: he.value,
|
|
945
|
+
isTooltip: r.value.showTooltip,
|
|
946
|
+
isStacked: r.value.stacked,
|
|
939
947
|
titles: { ...a.value.userOptions.buttonTitles },
|
|
940
|
-
chartElement:
|
|
948
|
+
chartElement: le.value,
|
|
941
949
|
position: a.value.userOptions.position,
|
|
942
950
|
hasAnnotator: a.value.userOptions.buttons.annotator,
|
|
943
|
-
isAnnotation:
|
|
951
|
+
isAnnotation: ge.value,
|
|
944
952
|
callbacks: a.value.userOptions.callbacks,
|
|
945
|
-
onToggleFullscreen:
|
|
946
|
-
onGeneratePdf: p(
|
|
947
|
-
onGenerateCsv:
|
|
948
|
-
onGenerateImage: p(
|
|
949
|
-
onToggleTable:
|
|
950
|
-
onToggleLabels:
|
|
951
|
-
onToggleStack:
|
|
952
|
-
onToggleTooltip:
|
|
953
|
-
onToggleAnnotator:
|
|
954
|
-
style:
|
|
955
|
-
visibility: p(
|
|
953
|
+
onToggleFullscreen: wa,
|
|
954
|
+
onGeneratePdf: p(Be),
|
|
955
|
+
onGenerateCsv: aa,
|
|
956
|
+
onGenerateImage: p(Ve),
|
|
957
|
+
onToggleTable: la,
|
|
958
|
+
onToggleLabels: ta,
|
|
959
|
+
onToggleStack: oa,
|
|
960
|
+
onToggleTooltip: ua,
|
|
961
|
+
onToggleAnnotator: $e,
|
|
962
|
+
style: Q({
|
|
963
|
+
visibility: p(Ye) ? p(ze) ? "visible" : "hidden" : "visible"
|
|
956
964
|
})
|
|
957
|
-
},
|
|
965
|
+
}, Ga({ _: 2 }, [
|
|
958
966
|
e.$slots.menuIcon ? {
|
|
959
967
|
name: "menuIcon",
|
|
960
968
|
fn: b(({ isOpen: o, color: n }) => [
|
|
961
|
-
|
|
969
|
+
L(e.$slots, "menuIcon", X(_({ isOpen: o, color: n })), void 0, !0)
|
|
962
970
|
]),
|
|
963
971
|
key: "0"
|
|
964
972
|
} : void 0,
|
|
965
973
|
e.$slots.optionTooltip ? {
|
|
966
974
|
name: "optionTooltip",
|
|
967
975
|
fn: b(() => [
|
|
968
|
-
|
|
976
|
+
L(e.$slots, "optionTooltip", {}, void 0, !0)
|
|
969
977
|
]),
|
|
970
978
|
key: "1"
|
|
971
979
|
} : void 0,
|
|
972
980
|
e.$slots.optionPdf ? {
|
|
973
981
|
name: "optionPdf",
|
|
974
982
|
fn: b(() => [
|
|
975
|
-
|
|
983
|
+
L(e.$slots, "optionPdf", {}, void 0, !0)
|
|
976
984
|
]),
|
|
977
985
|
key: "2"
|
|
978
986
|
} : void 0,
|
|
979
987
|
e.$slots.optionCsv ? {
|
|
980
988
|
name: "optionCsv",
|
|
981
989
|
fn: b(() => [
|
|
982
|
-
|
|
990
|
+
L(e.$slots, "optionCsv", {}, void 0, !0)
|
|
983
991
|
]),
|
|
984
992
|
key: "3"
|
|
985
993
|
} : void 0,
|
|
986
994
|
e.$slots.optionImg ? {
|
|
987
995
|
name: "optionImg",
|
|
988
996
|
fn: b(() => [
|
|
989
|
-
|
|
997
|
+
L(e.$slots, "optionImg", {}, void 0, !0)
|
|
990
998
|
]),
|
|
991
999
|
key: "4"
|
|
992
1000
|
} : void 0,
|
|
993
1001
|
e.$slots.optionTable ? {
|
|
994
1002
|
name: "optionTable",
|
|
995
1003
|
fn: b(() => [
|
|
996
|
-
|
|
1004
|
+
L(e.$slots, "optionTable", {}, void 0, !0)
|
|
997
1005
|
]),
|
|
998
1006
|
key: "5"
|
|
999
1007
|
} : void 0,
|
|
1000
1008
|
e.$slots.optionLabels ? {
|
|
1001
1009
|
name: "optionLabels",
|
|
1002
1010
|
fn: b(() => [
|
|
1003
|
-
|
|
1011
|
+
L(e.$slots, "optionLabels", {}, void 0, !0)
|
|
1004
1012
|
]),
|
|
1005
1013
|
key: "6"
|
|
1006
1014
|
} : void 0,
|
|
1007
1015
|
e.$slots.optionStack ? {
|
|
1008
1016
|
name: "optionStack",
|
|
1009
1017
|
fn: b(() => [
|
|
1010
|
-
|
|
1018
|
+
L(e.$slots, "optionStack", {}, void 0, !0)
|
|
1011
1019
|
]),
|
|
1012
1020
|
key: "7"
|
|
1013
1021
|
} : void 0,
|
|
1014
1022
|
e.$slots.optionFullscreen ? {
|
|
1015
1023
|
name: "optionFullscreen",
|
|
1016
1024
|
fn: b(({ toggleFullscreen: o, isFullscreen: n }) => [
|
|
1017
|
-
|
|
1025
|
+
L(e.$slots, "optionFullscreen", X(_({ toggleFullscreen: o, isFullscreen: n })), void 0, !0)
|
|
1018
1026
|
]),
|
|
1019
1027
|
key: "8"
|
|
1020
1028
|
} : void 0,
|
|
1021
1029
|
e.$slots.optionAnnotator ? {
|
|
1022
1030
|
name: "optionAnnotator",
|
|
1023
1031
|
fn: b(({ toggleAnnotator: o, isAnnotator: n }) => [
|
|
1024
|
-
|
|
1032
|
+
L(e.$slots, "optionAnnotator", X(_({ toggleAnnotator: o, isAnnotator: n })), void 0, !0)
|
|
1025
1033
|
]),
|
|
1026
1034
|
key: "9"
|
|
1027
1035
|
} : void 0
|
|
1028
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
1029
|
-
|
|
1036
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : W("", !0),
|
|
1037
|
+
ie("div", {
|
|
1030
1038
|
class: "vue-ui-xy-canvas",
|
|
1031
|
-
style:
|
|
1039
|
+
style: Q(`position: relative; aspect-ratio: ${We.value}`),
|
|
1032
1040
|
ref_key: "container",
|
|
1033
|
-
ref:
|
|
1041
|
+
ref: te
|
|
1034
1042
|
}, [
|
|
1035
|
-
|
|
1043
|
+
we.value ? (z(), ne("canvas", {
|
|
1036
1044
|
key: 0,
|
|
1037
1045
|
ref_key: "canvas",
|
|
1038
1046
|
ref: T,
|
|
1039
1047
|
style: { width: "100%", height: "100%" },
|
|
1040
|
-
onMousemove: t[0] || (t[0] = (o) =>
|
|
1041
|
-
onMouseleave:
|
|
1042
|
-
}, null, 544)) : (z(), D(p(
|
|
1048
|
+
onMousemove: t[0] || (t[0] = (o) => Ya(o)),
|
|
1049
|
+
onMouseleave: Ua
|
|
1050
|
+
}, null, 544)) : (z(), D(p(ma), {
|
|
1043
1051
|
key: 1,
|
|
1044
1052
|
config: {
|
|
1045
1053
|
type: "line",
|
|
@@ -1057,8 +1065,8 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
1057
1065
|
}
|
|
1058
1066
|
}
|
|
1059
1067
|
}, null, 8, ["config"])),
|
|
1060
|
-
|
|
1061
|
-
show:
|
|
1068
|
+
ja(p(ba), {
|
|
1069
|
+
show: r.value.showTooltip && ce.value,
|
|
1062
1070
|
backgroundColor: a.value.style.chart.tooltip.backgroundColor,
|
|
1063
1071
|
color: a.value.style.chart.tooltip.color,
|
|
1064
1072
|
fontSize: a.value.style.chart.tooltip.fontSize,
|
|
@@ -1068,97 +1076,97 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
1068
1076
|
position: a.value.style.chart.tooltip.position,
|
|
1069
1077
|
offsetY: a.value.style.chart.tooltip.offsetY,
|
|
1070
1078
|
parent: p(T),
|
|
1071
|
-
content:
|
|
1072
|
-
isFullscreen:
|
|
1079
|
+
content: de.value,
|
|
1080
|
+
isFullscreen: he.value,
|
|
1073
1081
|
backgroundOpacity: a.value.style.chart.tooltip.backgroundOpacity,
|
|
1074
|
-
isCustom: p(
|
|
1082
|
+
isCustom: p(ia)(a.value.style.chart.tooltip.customFormat)
|
|
1075
1083
|
}, {
|
|
1076
1084
|
"tooltip-before": b(() => [
|
|
1077
|
-
|
|
1085
|
+
L(e.$slots, "tooltip-before", X(_({ ...Re.value })), void 0, !0)
|
|
1078
1086
|
]),
|
|
1079
1087
|
"tooltip-after": b(() => [
|
|
1080
|
-
|
|
1088
|
+
L(e.$slots, "tooltip-after", X(_({ ...Re.value })), void 0, !0)
|
|
1081
1089
|
]),
|
|
1082
1090
|
_: 3
|
|
1083
1091
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "isFullscreen", "backgroundOpacity", "isCustom"])
|
|
1084
1092
|
], 4),
|
|
1085
|
-
|
|
1093
|
+
ie("div", {
|
|
1086
1094
|
ref_key: "chartSlicer",
|
|
1087
|
-
ref:
|
|
1088
|
-
style:
|
|
1095
|
+
ref: De,
|
|
1096
|
+
style: Q(`width:100%;background:${a.value.style.chart.backgroundColor}`),
|
|
1089
1097
|
"data-dom-to-png-ignore": ""
|
|
1090
1098
|
}, [
|
|
1091
|
-
a.value.style.chart.zoom.show && I.value > 1 ? (z(), D(
|
|
1099
|
+
a.value.style.chart.zoom.show && I.value > 1 ? (z(), D(xl, {
|
|
1092
1100
|
ref_key: "slicerComponent",
|
|
1093
|
-
ref:
|
|
1094
|
-
key: `slicer_${
|
|
1101
|
+
ref: j,
|
|
1102
|
+
key: `slicer_${Pe.value}`,
|
|
1095
1103
|
background: a.value.style.chart.zoom.color,
|
|
1096
1104
|
borderColor: a.value.style.chart.backgroundColor,
|
|
1097
1105
|
fontSize: a.value.style.chart.zoom.fontSize,
|
|
1098
1106
|
useResetSlot: a.value.style.chart.zoom.useResetSlot,
|
|
1099
|
-
labelLeft: a.value.style.chart.grid.y.timeLabels.values[
|
|
1100
|
-
labelRight: a.value.style.chart.grid.y.timeLabels.values[
|
|
1107
|
+
labelLeft: a.value.style.chart.grid.y.timeLabels.values[u.value.start] ? N.value[u.value.start].text : "",
|
|
1108
|
+
labelRight: a.value.style.chart.grid.y.timeLabels.values[u.value.end - 1] ? N.value[u.value.end - 1].text : "",
|
|
1101
1109
|
textColor: a.value.style.chart.color,
|
|
1102
1110
|
inputColor: a.value.style.chart.zoom.color,
|
|
1103
1111
|
selectColor: a.value.style.chart.zoom.highlightColor,
|
|
1104
1112
|
max: I.value,
|
|
1105
1113
|
min: 0,
|
|
1106
|
-
valueStart:
|
|
1107
|
-
valueEnd:
|
|
1108
|
-
start:
|
|
1109
|
-
"onUpdate:start": t[1] || (t[1] = (o) =>
|
|
1110
|
-
end:
|
|
1111
|
-
"onUpdate:end": t[2] || (t[2] = (o) =>
|
|
1114
|
+
valueStart: u.value.start,
|
|
1115
|
+
valueEnd: u.value.end,
|
|
1116
|
+
start: u.value.start,
|
|
1117
|
+
"onUpdate:start": t[1] || (t[1] = (o) => u.value.start = o),
|
|
1118
|
+
end: u.value.end,
|
|
1119
|
+
"onUpdate:end": t[2] || (t[2] = (o) => u.value.end = o),
|
|
1112
1120
|
refreshStartPoint: a.value.style.chart.zoom.startIndex !== null ? a.value.style.chart.zoom.startIndex : 0,
|
|
1113
1121
|
refreshEndPoint: a.value.style.chart.zoom.endIndex !== null ? a.value.style.chart.zoom.endIndex + 1 : I.value,
|
|
1114
1122
|
enableRangeHandles: a.value.style.chart.zoom.enableRangeHandles,
|
|
1115
1123
|
enableSelectionDrag: a.value.style.chart.zoom.enableSelectionDrag,
|
|
1116
|
-
onReset:
|
|
1124
|
+
onReset: je
|
|
1117
1125
|
}, {
|
|
1118
1126
|
"reset-action": b(({ reset: o }) => [
|
|
1119
|
-
|
|
1127
|
+
L(e.$slots, "reset-action", X(_({ reset: o })), void 0, !0)
|
|
1120
1128
|
]),
|
|
1121
1129
|
_: 3
|
|
1122
|
-
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) :
|
|
1130
|
+
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : W("", !0)
|
|
1123
1131
|
], 4),
|
|
1124
|
-
|
|
1132
|
+
ie("div", {
|
|
1125
1133
|
ref_key: "chartLegend",
|
|
1126
|
-
ref:
|
|
1134
|
+
ref: Ae
|
|
1127
1135
|
}, [
|
|
1128
|
-
a.value.style.chart.legend.show &&
|
|
1129
|
-
legendSet:
|
|
1130
|
-
config:
|
|
1131
|
-
key: `legend_${
|
|
1132
|
-
onClickMarker: t[3] || (t[3] = ({ i: o }) =>
|
|
1136
|
+
a.value.style.chart.legend.show && we.value ? (z(), D(ml, {
|
|
1137
|
+
legendSet: Qe.value,
|
|
1138
|
+
config: Wa.value,
|
|
1139
|
+
key: `legend_${Ce.value}`,
|
|
1140
|
+
onClickMarker: t[3] || (t[3] = ({ i: o }) => Ke(o))
|
|
1133
1141
|
}, {
|
|
1134
1142
|
item: b(({ legend: o, index: n }) => [
|
|
1135
|
-
|
|
1136
|
-
onClick: (
|
|
1137
|
-
style:
|
|
1138
|
-
},
|
|
1143
|
+
ie("div", {
|
|
1144
|
+
onClick: (v) => o.segregate(),
|
|
1145
|
+
style: Q(`opacity:${$.value.includes(n) ? 0.5 : 1}`)
|
|
1146
|
+
}, sa(o.name), 13, wl)
|
|
1139
1147
|
]),
|
|
1140
1148
|
_: 1
|
|
1141
|
-
}, 8, ["legendSet", "config"])) :
|
|
1149
|
+
}, 8, ["legendSet", "config"])) : L(e.$slots, "legend", {
|
|
1142
1150
|
key: 1,
|
|
1143
|
-
legend:
|
|
1151
|
+
legend: Qe.value
|
|
1144
1152
|
}, void 0, !0)
|
|
1145
1153
|
], 512),
|
|
1146
|
-
e.$slots.watermark ? (z(),
|
|
1147
|
-
|
|
1148
|
-
])) :
|
|
1149
|
-
e.$slots.source ? (z(),
|
|
1154
|
+
e.$slots.watermark ? (z(), ne("div", zl, [
|
|
1155
|
+
L(e.$slots, "watermark", X(_({ isPrinting: p(Xe) || p(_e) })), void 0, !0)
|
|
1156
|
+
])) : W("", !0),
|
|
1157
|
+
e.$slots.source ? (z(), ne("div", {
|
|
1150
1158
|
key: 3,
|
|
1151
1159
|
ref_key: "source",
|
|
1152
|
-
ref:
|
|
1160
|
+
ref: He,
|
|
1153
1161
|
dir: "auto"
|
|
1154
1162
|
}, [
|
|
1155
|
-
|
|
1156
|
-
], 512)) :
|
|
1157
|
-
|
|
1163
|
+
L(e.$slots, "source", {}, void 0, !0)
|
|
1164
|
+
], 512)) : W("", !0),
|
|
1165
|
+
u.value.end - u.value.start < 200 ? (z(), D(p(fa), {
|
|
1158
1166
|
key: 4,
|
|
1159
1167
|
hideDetails: "",
|
|
1160
1168
|
config: {
|
|
1161
|
-
open:
|
|
1169
|
+
open: r.value.showTable,
|
|
1162
1170
|
maxHeight: 1e4,
|
|
1163
1171
|
body: {
|
|
1164
1172
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
@@ -1171,37 +1179,37 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
1171
1179
|
}
|
|
1172
1180
|
}, {
|
|
1173
1181
|
content: b(() => [
|
|
1174
|
-
(z(), D(p(
|
|
1175
|
-
key: `table_${
|
|
1176
|
-
colNames:
|
|
1177
|
-
head:
|
|
1178
|
-
body:
|
|
1179
|
-
config:
|
|
1182
|
+
(z(), D(p(ga), {
|
|
1183
|
+
key: `table_${ke.value}`,
|
|
1184
|
+
colNames: fe.value.colNames,
|
|
1185
|
+
head: fe.value.head,
|
|
1186
|
+
body: fe.value.body,
|
|
1187
|
+
config: fe.value.config,
|
|
1180
1188
|
title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1181
|
-
onClose: t[4] || (t[4] = (o) =>
|
|
1189
|
+
onClose: t[4] || (t[4] = (o) => r.value.showTable = !1)
|
|
1182
1190
|
}, {
|
|
1183
1191
|
th: b(({ th: o }) => [
|
|
1184
|
-
|
|
1192
|
+
ie("div", { innerHTML: o }, null, 8, Sl)
|
|
1185
1193
|
]),
|
|
1186
1194
|
td: b(({ td: o }) => [
|
|
1187
|
-
|
|
1195
|
+
qa(sa(o), 1)
|
|
1188
1196
|
]),
|
|
1189
1197
|
_: 1
|
|
1190
1198
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1191
1199
|
]),
|
|
1192
1200
|
_: 1
|
|
1193
|
-
}, 8, ["config"])) :
|
|
1194
|
-
a.value.userOptions.buttons.annotator && h.value.length ? (z(), D(p(
|
|
1201
|
+
}, 8, ["config"])) : W("", !0),
|
|
1202
|
+
a.value.userOptions.buttons.annotator && h.value.length ? (z(), D(p(pa), {
|
|
1195
1203
|
key: 5,
|
|
1196
|
-
parent:
|
|
1204
|
+
parent: le.value,
|
|
1197
1205
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
1198
1206
|
color: a.value.style.chart.color,
|
|
1199
|
-
active:
|
|
1200
|
-
onClose:
|
|
1201
|
-
}, null, 8, ["parent", "backgroundColor", "color", "active"])) :
|
|
1202
|
-
], 46,
|
|
1207
|
+
active: ge.value,
|
|
1208
|
+
onClose: $e
|
|
1209
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : W("", !0)
|
|
1210
|
+
], 46, Cl));
|
|
1203
1211
|
}
|
|
1204
|
-
},
|
|
1212
|
+
}, Yl = /* @__PURE__ */ kl($l, [["__scopeId", "data-v-f3aa051a"]]);
|
|
1205
1213
|
export {
|
|
1206
|
-
|
|
1214
|
+
Yl as default
|
|
1207
1215
|
};
|