vue-data-ui 3.0.2 → 3.0.3
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-uNlT54JX.js → Arrow-CUUMjZed.js} +1 -1
- package/dist/{BaseDraggableDialog-CujvKo06.js → BaseDraggableDialog-DgADqZE_.js} +2 -2
- package/dist/{BaseIcon-B8CknCYk.js → BaseIcon-DLm6QTwr.js} +1 -1
- package/dist/{ColorPicker-Dmdfq2VV.js → ColorPicker-Crz_B792.js} +2 -2
- package/dist/{DataTable-osx68WLA.js → DataTable-CWzb1j8d.js} +2 -2
- package/dist/{Legend-CQsASoei.js → Legend-CevCqVZ5.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BWz0WtJG.js → NonSvgPenAndPaper-DOG92bzo.js} +3 -3
- package/dist/{PackageVersion-DZGrOKw5.js → PackageVersion-n4qokxnx.js} +1 -1
- package/dist/{PenAndPaper-CdXspg5R.js → PenAndPaper-C_R9vJkU.js} +3 -3
- package/dist/{Shape-0sW2StrO.js → Shape-BHVN6hj0.js} +1 -1
- package/dist/{Slicer-52shR-Vu.js → Slicer-BBjJsLlJ.js} +2 -2
- package/dist/{SparkTooltip-Dxrruu4s.js → SparkTooltip-BHlSggBm.js} +1 -1
- package/dist/{Title-CntvKJss.js → Title-CINHji0n.js} +1 -1
- package/dist/{Tooltip-DF8e4iB9.js → Tooltip-hfdFRoLp.js} +1 -1
- package/dist/{UserOptions-DQyIO0ts.js → UserOptions-r0epwyXR.js} +2 -2
- package/dist/{dom-to-png-KC3tMd8p.js → dom-to-png-m7MwDfMh.js} +1 -1
- package/dist/{img-Cv4nScI0.js → img-CBdOMFyn.js} +1 -1
- package/dist/{index-B9Ct1B_p.js → index-DrRiscPm.js} +908 -871
- package/dist/{pdf-D0GEfQrI.js → pdf-CITAFtf8.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/{useAutoSizeLabelsInsideViewbox-DvdDLkzw.js → useAutoSizeLabelsInsideViewbox-C0d8h29h.js} +1 -1
- package/dist/{useNestedProp-C0gKxLur.js → useNestedProp-BXhArS-K.js} +1 -1
- package/dist/{usePrinter-DcZXg1hH.js → usePrinter-CZk2ISUm.js} +2 -2
- package/dist/{vue-data-ui-DZMDT7RA.js → vue-data-ui-omyV52aJ.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BnCv2CD_.js → vue-ui-3d-bar-ByS7XX4A.js} +6 -6
- package/dist/{vue-ui-accordion-B31QK9Hj.js → vue-ui-accordion-s_m_NJzJ.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bc4V0a3k.js → vue-ui-age-pyramid-BJRjKF9G.js} +6 -6
- package/dist/{vue-ui-annotator-D8haGQiH.js → vue-ui-annotator-BcdnqcBy.js} +2 -2
- package/dist/{vue-ui-bullet-n7Y6jYLj.js → vue-ui-bullet-D82pT7tL.js} +199 -186
- package/dist/{vue-ui-candlestick-nCI5GlX7.js → vue-ui-candlestick-ThIDj7Q5.js} +7 -7
- package/dist/{vue-ui-carousel-table-JH2NjnOk.js → vue-ui-carousel-table-BHOAO0Gj.js} +4 -4
- package/dist/{vue-ui-chestnut-CQtV9AR4.js → vue-ui-chestnut-3sjb4gzU.js} +5 -5
- package/dist/{vue-ui-chord-CGi_iSaL.js → vue-ui-chord-CfVEqNV6.js} +377 -366
- package/dist/{vue-ui-circle-pack-C8v3Okle.js → vue-ui-circle-pack-u4ABWUZI.js} +6 -6
- package/dist/{vue-ui-cursor-0DHciy1D.js → vue-ui-cursor-ByfhuSzG.js} +2 -2
- package/dist/{vue-ui-dashboard-CDHJk8sC.js → vue-ui-dashboard-CBCck-UI.js} +62 -62
- package/dist/{vue-ui-digits-Bn1P1K9u.js → vue-ui-digits-BU-8e-1s.js} +2 -2
- package/dist/{vue-ui-donut-evolution-Crn7Nnpy.js → vue-ui-donut-evolution-B4lDDX7G.js} +388 -377
- package/dist/{vue-ui-donut-GqHffshG.js → vue-ui-donut-g5x3IpMV.js} +345 -334
- package/dist/{vue-ui-dumbbell-C__nFV3V.js → vue-ui-dumbbell-BJ8qcUud.js} +354 -343
- package/dist/{vue-ui-flow-7q9o4Jxp.js → vue-ui-flow-CRwGogHq.js} +299 -288
- package/dist/{vue-ui-funnel-DjmlAdRf.js → vue-ui-funnel-DzF_UOAJ.js} +6 -6
- package/dist/{vue-ui-galaxy-Crh7xV6s.js → vue-ui-galaxy-BqunXfkx.js} +252 -241
- package/dist/{vue-ui-gauge-PjjV3JmB.js → vue-ui-gauge-DPjvYyeF.js} +7 -7
- package/dist/{vue-ui-gizmo-DREMjBvZ.js → vue-ui-gizmo-CU7HsWOV.js} +3 -3
- package/dist/{vue-ui-heatmap-D2CF8Vn8.js → vue-ui-heatmap-CFh-br8X.js} +7 -7
- package/dist/{vue-ui-history-plot-DX31nVYa.js → vue-ui-history-plot-OdhJu988.js} +283 -270
- package/dist/{vue-ui-kpi-FtnzfW7L.js → vue-ui-kpi-CVp3sMeg.js} +3 -3
- package/dist/{vue-ui-mini-loader-DaHPhzVf.js → vue-ui-mini-loader-LtGcTTh2.js} +2 -2
- package/dist/{vue-ui-molecule--4MdUCOi.js → vue-ui-molecule-DklqwI8c.js} +5 -5
- package/dist/{vue-ui-mood-radar-Ci416qv5.js → vue-ui-mood-radar-CGuHZngw.js} +264 -253
- package/dist/{vue-ui-nested-donuts-DoVSN0qE.js → vue-ui-nested-donuts-CHrryP89.js} +377 -366
- package/dist/{vue-ui-onion-ChqyoLl8.js → vue-ui-onion-n74T6frI.js} +265 -254
- package/dist/{vue-ui-parallel-coordinate-plot-BPsH_W7X.js → vue-ui-parallel-coordinate-plot-DtQi0qWp.js} +276 -265
- package/dist/{vue-ui-quadrant-CLQqKyzu.js → vue-ui-quadrant-CZn3Ab1f.js} +356 -345
- package/dist/{vue-ui-quick-chart-DogHdO42.js → vue-ui-quick-chart-CUBOj0Y6.js} +639 -628
- package/dist/{vue-ui-radar-B4rGvzKn.js → vue-ui-radar-BAazL3Qv.js} +254 -243
- package/dist/{vue-ui-rating-BvopSHNQ.js → vue-ui-rating-CPa7MotU.js} +2 -2
- package/dist/{vue-ui-relation-circle-C6GEmCiw.js → vue-ui-relation-circle-g6pCa6y9.js} +7 -7
- package/dist/{vue-ui-ridgeline-BJVJ02bA.js → vue-ui-ridgeline-C_Mpseru.js} +8 -8
- package/dist/{vue-ui-rings-BRTxWhKI.js → vue-ui-rings-grCm0xEc.js} +250 -239
- package/dist/{vue-ui-scatter-D_BP7XBR.js → vue-ui-scatter-CEr615c-.js} +383 -372
- package/dist/{vue-ui-skeleton-C_nf6VDZ.js → vue-ui-skeleton-BaqJKjqR.js} +3 -3
- package/dist/{vue-ui-smiley-DHCpzxMs.js → vue-ui-smiley-DyIfQ5KW.js} +2 -2
- package/dist/{vue-ui-spark-trend-DfM5OJIx.js → vue-ui-spark-trend-CqVF6MXT.js} +3 -3
- package/dist/{vue-ui-sparkbar-BrvOwqG_.js → vue-ui-sparkbar-DwSd_DZu.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Dp2OkGrS.js → vue-ui-sparkgauge-Bm4UGamr.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-K_7q57W8.js → vue-ui-sparkhistogram-DTZK4gCA.js} +4 -4
- package/dist/{vue-ui-sparkline-BiEu6kq8.js → vue-ui-sparkline-DGfIevXQ.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BNlyxt3y.js → vue-ui-sparkstackbar-RT_LpLKL.js} +3 -3
- package/dist/{vue-ui-stackbar-BKb_dgUq.js → vue-ui-stackbar-9Yxdd7ko.js} +443 -432
- package/dist/{vue-ui-strip-plot-D6dwyO-N.js → vue-ui-strip-plot--2bdwjUL.js} +7 -7
- package/dist/{vue-ui-table-B9UWta9o.js → vue-ui-table-BSNxwgTV.js} +4 -9
- package/dist/{vue-ui-table-heatmap-JkwDydPq.js → vue-ui-table-heatmap-BaK9FRE1.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BOKgPT0e.js → vue-ui-table-sparkline-Dbi7H7Xb.js} +4 -4
- package/dist/{vue-ui-thermometer-Dj0CVTk3.js → vue-ui-thermometer-9EIYVN0g.js} +7 -7
- package/dist/{vue-ui-timer-B407nCRd.js → vue-ui-timer-OH8HQjpu.js} +5 -5
- package/dist/{vue-ui-tiremarks-C_betH5B.js → vue-ui-tiremarks-D6JpH-vv.js} +6 -6
- package/dist/{vue-ui-treemap-D0gScsaQ.js → vue-ui-treemap-DqEQgjj-.js} +356 -345
- package/dist/{vue-ui-vertical-bar-D3aoix_0.js → vue-ui-vertical-bar-BfnMDmGN.js} +9 -9
- package/dist/{vue-ui-waffle-hpsuszbt.js → vue-ui-waffle-BJu7n_i7.js} +306 -295
- package/dist/{vue-ui-wheel-0etwsu-o.js → vue-ui-wheel-KDWfx0os.js} +6 -6
- package/dist/{vue-ui-word-cloud-tsEprRhX.js → vue-ui-word-cloud-Dcg3uI2O.js} +6 -6
- package/dist/{vue-ui-world-BCtGvXjy.js → vue-ui-world-SYtMz1jo.js} +343 -329
- package/dist/{vue-ui-xy-canvas-B1s9twtZ.js → vue-ui-xy-canvas-BGJg2doK.js} +305 -294
- package/dist/{vue-ui-xy-BoT_c9bU.js → vue-ui-xy-qzB1oN1A.js} +1356 -1345
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
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 { u as
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
const
|
|
15
|
-
key:
|
|
1
|
+
import { defineAsyncComponent as ee, ref as d, computed as L, useSlots as Ga, onMounted as sa, watch as N, nextTick as na, shallowRef as ze, onBeforeUnmount as Za, createElementBlock as ie, openBlock as S, unref as p, normalizeClass as ja, normalizeStyle as ae, createCommentVNode as H, createElementVNode as B, createBlock as R, createSlots as qa, withCtx as x, renderSlot as k, normalizeProps as V, guardReactiveProps as G, createVNode as Ja, Teleport as Ka, toDisplayString as ia, createTextVNode as Qa } from "vue";
|
|
2
|
+
import { u as el, c as al, a as ll, p as Z, b as tl, C as pe, d as ol, D as $e, k as le, i as te, e as va, a4 as rl, G as ul, ae as sl, o as nl, f as il, y as ca, v as vl, w as cl, z as dl, s as ve, l as hl } from "./index-DrRiscPm.js";
|
|
3
|
+
import { d as yl, t as fl, u as gl, c as pl, a as da, l as C, r as Ie, b as P, p as ha } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as ya } from "./useNestedProp-BXhArS-K.js";
|
|
5
|
+
import { u as ml } from "./usePrinter-CZk2ISUm.js";
|
|
6
|
+
import { u as bl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as xl } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import Ll from "./Legend-CevCqVZ5.js";
|
|
9
|
+
import kl from "./Title-CINHji0n.js";
|
|
10
|
+
import { S as Cl } from "./Slicer-BBjJsLlJ.js";
|
|
11
|
+
import { u as wl } from "./useTimeLabels-DkzmKfZn.js";
|
|
12
|
+
import Sl from "./img-CBdOMFyn.js";
|
|
13
|
+
import { _ as zl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const $l = ["id"], Il = ["id"], Ml = ["id"], Tl = ["onClick"], Ol = {
|
|
15
|
+
key: 3,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, Rl = ["innerHTML"], Pl = {
|
|
18
18
|
__name: "vue-ui-xy-canvas",
|
|
19
19
|
props: {
|
|
20
20
|
dataset: {
|
|
@@ -31,36 +31,36 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend"],
|
|
34
|
-
setup(Me, { expose:
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
setup(Me, { expose: fa, emit: ga }) {
|
|
35
|
+
const pa = ee(() => import("./vue-ui-accordion-s_m_NJzJ.js")), ma = ee(() => import("./DataTable-CWzb1j8d.js")), ba = ee(() => import("./NonSvgPenAndPaper-DOG92bzo.js")), xa = ee(() => import("./vue-ui-skeleton-BaqJKjqR.js")), La = ee(() => import("./Tooltip-hfdFRoLp.js")), ka = ee(() => import("./UserOptions-r0epwyXR.js")), { vue_ui_xy_canvas: Ca } = el(), g = Me, Y = d(al()), F = d(null), oe = d(null), n = d(null), y = d(1), E = d(1), ce = d(!1), c = d(null), de = d(""), Te = d(null), $ = d([]), j = d(1), _ = d(!0), q = d(!0), me = d(null), Oe = d(0), Re = d(0), he = d(!1), Pe = d(null), Fe = d(null), Ee = d(null), Ae = d(null), be = d(0), xe = d(0), Le = d(0), M = d(null), De = d(!1), ke = L(() => !!g.dataset && g.dataset.length), wa = ga, Sa = Ga();
|
|
36
|
+
sa(() => {
|
|
37
|
+
Sa["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
|
|
38
38
|
});
|
|
39
39
|
const a = L({
|
|
40
|
-
get: () =>
|
|
40
|
+
get: () => Ye(),
|
|
41
41
|
set: (e) => e
|
|
42
|
-
}), { userOptionsVisible: Ce, setUserOptionsVisibility:
|
|
43
|
-
function
|
|
44
|
-
const e =
|
|
42
|
+
}), { userOptionsVisible: Ce, setUserOptionsVisibility: Ne, keepUserOptionState: He } = bl({ config: a.value }), { svgRef: T } = xl({ config: a.value.style.chart.title });
|
|
43
|
+
function Ye() {
|
|
44
|
+
const e = ya({
|
|
45
45
|
userConfig: g.config,
|
|
46
|
-
defaultConfig:
|
|
46
|
+
defaultConfig: Ca
|
|
47
47
|
});
|
|
48
48
|
let l = {};
|
|
49
49
|
return e.theme ? l = {
|
|
50
|
-
...
|
|
51
|
-
userConfig:
|
|
50
|
+
...ya({
|
|
51
|
+
userConfig: tl.vue_ui_xy_canvas[e.theme] || g.config,
|
|
52
52
|
defaultConfig: e
|
|
53
53
|
}),
|
|
54
|
-
customPalette:
|
|
55
|
-
} : l = e, g.config &&
|
|
54
|
+
customPalette: ll[e.theme] || Z
|
|
55
|
+
} : l = e, g.config && pe(g.config, "style.chart.scale.min") ? l.style.chart.scale.min = g.config.style.chart.scale.min : l.style.chart.scale.min = null, g.config && pe(g.config, "style.chart.scale.max") ? l.style.chart.scale.max = g.config.style.chart.scale.max : l.style.chart.scale.max = null, g.config && pe(g.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = g.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, g.config && pe(g.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = g.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, l;
|
|
56
56
|
}
|
|
57
|
-
|
|
58
|
-
a.value =
|
|
59
|
-
}, { deep: !0 }),
|
|
57
|
+
N(() => g.config, (e) => {
|
|
58
|
+
a.value = Ye(), Ce.value = !a.value.userOptions.showOnChartHover, we(), be.value += 1, xe.value += 1, Le.value += 1, u.value.showTable = a.value.table.show, u.value.showDataLabels = a.value.style.chart.dataLabels.show, u.value.stacked = a.value.style.chart.stacked, u.value.showTooltip = a.value.style.chart.tooltip.show;
|
|
59
|
+
}, { deep: !0 }), N(() => g.dataset, () => {
|
|
60
60
|
we(), be.value += 1, xe.value += 1, Le.value += 1;
|
|
61
61
|
}, { deep: !0 });
|
|
62
|
-
const
|
|
63
|
-
elementId: `xy_canvas_${
|
|
62
|
+
const _e = d(a.value.style.chart.aspectRatio), { isPrinting: Ue, isImaging: We, generatePdf: Xe, generateImage: Be } = ml({
|
|
63
|
+
elementId: `xy_canvas_${Y.value}`,
|
|
64
64
|
fileName: a.value.style.chart.title.text || "vue-ui-xy-canvas",
|
|
65
65
|
options: a.value.userOptions.print
|
|
66
66
|
}), u = d({
|
|
@@ -69,41 +69,41 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
69
69
|
stacked: a.value.style.chart.stacked,
|
|
70
70
|
showTooltip: a.value.style.chart.tooltip.show
|
|
71
71
|
});
|
|
72
|
-
function
|
|
73
|
-
|
|
72
|
+
function Ve(e) {
|
|
73
|
+
he.value = e, Re.value += 1;
|
|
74
74
|
}
|
|
75
|
-
const
|
|
75
|
+
const Ge = L(() => ol(a.value.customPalette)), I = L(() => J.value ? Math.max(...J.value.filter((e, l) => !$.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), t = L(() => {
|
|
76
76
|
const e = y.value - y.value * (a.value.style.chart.paddingProportions.left + a.value.style.chart.paddingProportions.right);
|
|
77
77
|
return {
|
|
78
78
|
canvasWidth: y.value,
|
|
79
|
-
canvasHeight:
|
|
79
|
+
canvasHeight: E.value,
|
|
80
80
|
left: y.value * a.value.style.chart.paddingProportions.left,
|
|
81
|
-
top:
|
|
81
|
+
top: E.value * a.value.style.chart.paddingProportions.top,
|
|
82
82
|
right: y.value - y.value * a.value.style.chart.paddingProportions.right,
|
|
83
|
-
bottom:
|
|
83
|
+
bottom: E.value - E.value * a.value.style.chart.paddingProportions.bottom,
|
|
84
84
|
width: e,
|
|
85
|
-
height:
|
|
85
|
+
height: E.value - E.value * (a.value.style.chart.paddingProportions.top + a.value.style.chart.paddingProportions.bottom),
|
|
86
86
|
slot: e / (r.value.end - r.value.start)
|
|
87
87
|
};
|
|
88
88
|
});
|
|
89
|
-
function
|
|
89
|
+
function Ze(e, l) {
|
|
90
90
|
return e / l;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
return l.map((
|
|
94
|
-
const
|
|
95
|
-
let
|
|
96
|
-
e && (
|
|
92
|
+
function za({ hasAutoScale: e, series: l, min: o, max: s, scale: i, yOffset: b, individualHeight: v, stackIndex: f = null }) {
|
|
93
|
+
return l.map((W, z) => {
|
|
94
|
+
const D = i.min < 0 ? Math.abs(i.min) : 0, X = Ze(W + D, D + i.max);
|
|
95
|
+
let se, ne;
|
|
96
|
+
e && (se = i.min, ne = Ze(W - se, i.max - se));
|
|
97
97
|
let O = 0;
|
|
98
|
-
return f === null ? O = t.value.bottom - t.value.height * (e ?
|
|
98
|
+
return f === null ? O = t.value.bottom - t.value.height * (e ? ne : X) : O = t.value.bottom - b - v * (e ? ne : X), {
|
|
99
99
|
x: t.value.left + t.value.slot * z + t.value.slot / 2,
|
|
100
100
|
y: O,
|
|
101
|
-
value:
|
|
101
|
+
value: W
|
|
102
102
|
};
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
const m = L(() => {
|
|
106
|
-
const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...
|
|
106
|
+
const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...J.value.filter((v, f) => !$.value.includes(v.absoluteIndex)).flatMap((v) => v.series.slice(r.value.start, r.value.end))), l = a.value.style.chart.scale.max !== null ? a.value.style.chart.scale.max : Math.max(...J.value.filter((v, f) => !$.value.includes(v.absoluteIndex)).flatMap((v) => v.series.slice(r.value.start, r.value.end))), o = $e(e < 0 ? e : 0, l === e ? e + 1 < 0 ? 0 : e + 1 : l < 0 ? 0 : l, a.value.style.chart.scale.ticks), s = o.min < 0 ? Math.abs(o.min) : 0, i = t.value.bottom - t.value.height * (s / (o.max + s)), b = o.ticks.map((v) => ({
|
|
107
107
|
y: t.value.bottom - t.value.height * ((v + s) / (o.max + s)),
|
|
108
108
|
x: t.value.left - 8,
|
|
109
109
|
value: v
|
|
@@ -116,16 +116,16 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
116
116
|
yLabels: b,
|
|
117
117
|
zero: i
|
|
118
118
|
};
|
|
119
|
-
}),
|
|
119
|
+
}), $a = L(() => h.value.map((e) => `
|
|
120
120
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
121
121
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
122
122
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
|
123
123
|
</svg>
|
|
124
124
|
<span>${e.name ? e.name + ": " : ""}</span>
|
|
125
|
-
<span>${
|
|
125
|
+
<span>${le(
|
|
126
126
|
a.value.style.chart.dataLabels.formatter,
|
|
127
127
|
e.series[c.value],
|
|
128
|
-
|
|
128
|
+
te({
|
|
129
129
|
p: e.prefix || "",
|
|
130
130
|
v: e.series[c.value],
|
|
131
131
|
s: e.suffix || "",
|
|
@@ -134,19 +134,19 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
134
134
|
{ datapoint: e, seriesIndex: c.value }
|
|
135
135
|
)}</span>
|
|
136
136
|
</div>
|
|
137
|
-
`)),
|
|
137
|
+
`)), J = L(() => g.dataset.map((e, l) => ({
|
|
138
138
|
...e,
|
|
139
|
-
series:
|
|
140
|
-
data:
|
|
139
|
+
series: rl({
|
|
140
|
+
data: ul(e.series),
|
|
141
141
|
threshold: a.value.downsample.threshold
|
|
142
142
|
}),
|
|
143
143
|
absoluteIndex: l,
|
|
144
|
-
color:
|
|
144
|
+
color: va(e.color || Ge.value[l] || Z[l] || Z[l % Z.length])
|
|
145
145
|
})));
|
|
146
|
-
|
|
147
|
-
e &&
|
|
146
|
+
N(I, (e) => {
|
|
147
|
+
e && je();
|
|
148
148
|
});
|
|
149
|
-
const h = L(() =>
|
|
149
|
+
const h = L(() => sl(J.value.filter((e, l) => !$.value.includes(e.absoluteIndex))).map((e, l) => ({
|
|
150
150
|
...e,
|
|
151
151
|
series: e.series.slice(r.value.start, r.value.end)
|
|
152
152
|
})).map((e, l) => {
|
|
@@ -158,14 +158,14 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
158
158
|
}, b = e.scaleSteps || a.value.style.chart.scale.ticks;
|
|
159
159
|
let v;
|
|
160
160
|
e.autoScaling ? v = $e(i.valueMin, i.valueMax, b) : v = $e(i.valueMin < 0 ? i.valueMin : 0, i.valueMax <= 0 ? 0 : i.valueMax, b);
|
|
161
|
-
const f = u.value.stacked ? t.value.height * (1 - e.cumulatedStackRatio) : 0,
|
|
162
|
-
let
|
|
163
|
-
e.autoScaling && u.value.stacked && s <= 0 ?
|
|
164
|
-
const
|
|
165
|
-
y: t.value.bottom - f - z * (
|
|
161
|
+
const f = u.value.stacked ? t.value.height * (1 - e.cumulatedStackRatio) : 0, W = u.value.stacked ? t.value.height / a.value.style.chart.stackGap : 0, z = u.value.stacked ? t.value.height * e.stackRatio - W : t.value.height, D = v.min < 0 ? Math.abs(v.min) : 0;
|
|
162
|
+
let X;
|
|
163
|
+
e.autoScaling && u.value.stacked && s <= 0 ? X = t.value.bottom - f - z : X = t.value.bottom - f - z * (D / (v.max + D));
|
|
164
|
+
const se = v.ticks.map((O, Va) => ({
|
|
165
|
+
y: t.value.bottom - f - z * (Va / (v.ticks.length - 1)),
|
|
166
166
|
x: t.value.left - 8,
|
|
167
167
|
value: O
|
|
168
|
-
})),
|
|
168
|
+
})), ne = za({
|
|
169
169
|
hasAutoScale: u.value.stacked && e.autoScaling,
|
|
170
170
|
series: e.series,
|
|
171
171
|
min: u.value.stacked ? o : m.value.min,
|
|
@@ -177,13 +177,13 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
177
177
|
});
|
|
178
178
|
return {
|
|
179
179
|
...e,
|
|
180
|
-
coordinatesLine:
|
|
180
|
+
coordinatesLine: ne,
|
|
181
181
|
min: o,
|
|
182
182
|
max: s,
|
|
183
183
|
localScale: v,
|
|
184
|
-
localZero:
|
|
185
|
-
localMin:
|
|
186
|
-
localYLabels:
|
|
184
|
+
localZero: X,
|
|
185
|
+
localMin: D,
|
|
186
|
+
localYLabels: se,
|
|
187
187
|
yOffset: f,
|
|
188
188
|
individualHeight: z
|
|
189
189
|
};
|
|
@@ -191,27 +191,27 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
191
191
|
start: 0,
|
|
192
192
|
end: I.value
|
|
193
193
|
});
|
|
194
|
-
function
|
|
195
|
-
|
|
194
|
+
function je() {
|
|
195
|
+
Je();
|
|
196
196
|
}
|
|
197
|
-
const
|
|
198
|
-
async function
|
|
199
|
-
await
|
|
200
|
-
const { startIndex: e, endIndex: l } = a.value.style.chart.zoom, o =
|
|
201
|
-
(e != null || l != null) && o ? (e != null && o.setStartValue(e), l != null && o.setEndValue(
|
|
197
|
+
const qe = d(null);
|
|
198
|
+
async function Je() {
|
|
199
|
+
await na(), await na();
|
|
200
|
+
const { startIndex: e, endIndex: l } = a.value.style.chart.zoom, o = qe.value, s = I.value;
|
|
201
|
+
(e != null || l != null) && o ? (e != null && o.setStartValue(e), l != null && o.setEndValue(Ia(l + 1))) : (r.value = { start: 0, end: s }, Oe.value += 1);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Ia(e) {
|
|
204
204
|
const l = I.value;
|
|
205
205
|
return e > l ? l : 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;
|
|
206
206
|
}
|
|
207
|
-
const
|
|
208
|
-
function
|
|
207
|
+
const Ma = L(() => h.value.filter((e) => ["line", "plot", void 0].includes(e.type))), w = L(() => h.value.filter((e) => e.type === "bar"));
|
|
208
|
+
function Ta() {
|
|
209
209
|
if (!T.value)
|
|
210
210
|
return;
|
|
211
|
-
const e =
|
|
212
|
-
T.value.width = e *
|
|
211
|
+
const e = oe.value.offsetWidth, l = oe.value.offsetHeight;
|
|
212
|
+
T.value.width = e * j.value * 2, T.value.height = l * j.value * 2, y.value = e * j.value * 2, E.value = l * j.value * 2, n.value.scale(j.value, j.value), re();
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function Oa() {
|
|
215
215
|
if (n.value.clearRect(0, 0, 1e4, 1e4), n.value.fillStyle = a.value.style.chart.backgroundColor, n.value.fillRect(0, 0, t.value.canvasWidth, t.value.canvasHeight), u.value.stacked)
|
|
216
216
|
a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength ? h.value.forEach((e) => {
|
|
217
217
|
for (let l = 0; l < r.value.end - r.value.start + 1; l += 1)
|
|
@@ -260,7 +260,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
260
260
|
{ x: t.value.left, y: e.localYLabels[o + 1].y }
|
|
261
261
|
],
|
|
262
262
|
{
|
|
263
|
-
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),
|
|
264
264
|
strokeColor: "transparent"
|
|
265
265
|
}
|
|
266
266
|
);
|
|
@@ -311,7 +311,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
311
311
|
}
|
|
312
312
|
);
|
|
313
313
|
}), h.value.forEach((e) => {
|
|
314
|
-
|
|
314
|
+
P(
|
|
315
315
|
n.value,
|
|
316
316
|
e.name,
|
|
317
317
|
y.value / 35,
|
|
@@ -359,7 +359,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
359
359
|
{ x: t.value.left, y: m.value.yLabels[l + 1].y }
|
|
360
360
|
],
|
|
361
361
|
{
|
|
362
|
-
fillColor: l % 2 === 0 ? "transparent" :
|
|
362
|
+
fillColor: l % 2 === 0 ? "transparent" : ve(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
|
|
363
363
|
strokeColor: "transparent"
|
|
364
364
|
}
|
|
365
365
|
);
|
|
@@ -406,7 +406,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
406
406
|
}
|
|
407
407
|
);
|
|
408
408
|
}
|
|
409
|
-
a.value.style.chart.grid.y.axisName &&
|
|
409
|
+
a.value.style.chart.grid.y.axisName && P(
|
|
410
410
|
n.value,
|
|
411
411
|
a.value.style.chart.grid.y.axisName,
|
|
412
412
|
y.value - y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio * 1.2,
|
|
@@ -417,11 +417,11 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
417
417
|
align: "center",
|
|
418
418
|
rotation: 90
|
|
419
419
|
}
|
|
420
|
-
), a.value.style.chart.grid.x.axisName &&
|
|
420
|
+
), a.value.style.chart.grid.x.axisName && P(
|
|
421
421
|
n.value,
|
|
422
422
|
a.value.style.chart.grid.x.axisName,
|
|
423
423
|
y.value / 2,
|
|
424
|
-
|
|
424
|
+
E.value,
|
|
425
425
|
{
|
|
426
426
|
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}`,
|
|
427
427
|
color: a.value.style.chart.color,
|
|
@@ -429,10 +429,10 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
429
429
|
}
|
|
430
430
|
);
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function Ra(e) {
|
|
433
433
|
for (let l = 0; l < e.coordinatesLine.length; l += 1) {
|
|
434
434
|
const o = (c.value === l ? y.value / 150 : a.value.style.chart.line.plots.show ? y.value / 200 : 0) * a.value.style.chart.line.plots.radiusRatio;
|
|
435
|
-
|
|
435
|
+
da(
|
|
436
436
|
n.value,
|
|
437
437
|
{ x: e.coordinatesLine[l].x, y: e.coordinatesLine[l].y },
|
|
438
438
|
o,
|
|
@@ -443,23 +443,23 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
443
443
|
);
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
|
-
function
|
|
446
|
+
function Pa() {
|
|
447
447
|
h.value.forEach((e) => {
|
|
448
|
-
e.showYMarker &&
|
|
448
|
+
e.showYMarker && ue(e) && P(
|
|
449
449
|
n.value,
|
|
450
|
-
|
|
450
|
+
le(
|
|
451
451
|
a.value.style.chart.dataLabels.formatter,
|
|
452
|
-
|
|
453
|
-
|
|
452
|
+
ue(e).value,
|
|
453
|
+
te({
|
|
454
454
|
p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
455
|
-
v:
|
|
455
|
+
v: ue(e).value,
|
|
456
456
|
s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
457
457
|
r: e.rounding || a.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
458
458
|
}),
|
|
459
|
-
{ datapoint:
|
|
459
|
+
{ datapoint: ue(e), seriesIndex: null }
|
|
460
460
|
),
|
|
461
461
|
t.value.left - 8 + a.value.style.chart.grid.y.axisLabels.offsetX,
|
|
462
|
-
|
|
462
|
+
ue(e).y,
|
|
463
463
|
{
|
|
464
464
|
align: "right",
|
|
465
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}`,
|
|
@@ -468,15 +468,15 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
468
468
|
);
|
|
469
469
|
});
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function Fa() {
|
|
472
472
|
a.value.style.chart.grid.y.axisLabels.show && (u.value.stacked ? h.value.forEach((e) => {
|
|
473
473
|
e.localYLabels.forEach((l, o) => {
|
|
474
|
-
|
|
474
|
+
P(
|
|
475
475
|
n.value,
|
|
476
|
-
|
|
476
|
+
le(
|
|
477
477
|
a.value.style.chart.dataLabels.formatter,
|
|
478
478
|
l.value,
|
|
479
|
-
|
|
479
|
+
te({
|
|
480
480
|
p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
481
481
|
v: l.value,
|
|
482
482
|
s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
@@ -495,12 +495,12 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
495
495
|
);
|
|
496
496
|
});
|
|
497
497
|
}) : m.value.yLabels.forEach((e, l) => {
|
|
498
|
-
|
|
498
|
+
P(
|
|
499
499
|
n.value,
|
|
500
|
-
|
|
500
|
+
le(
|
|
501
501
|
a.value.style.chart.dataLabels.formatter,
|
|
502
502
|
e.value,
|
|
503
|
-
|
|
503
|
+
te({
|
|
504
504
|
p: a.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
505
505
|
v: e.value,
|
|
506
506
|
s: a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
@@ -519,14 +519,14 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
519
519
|
);
|
|
520
520
|
}));
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function Ea(e) {
|
|
523
523
|
for (let l = 0; l < e.coordinatesLine.length; l += 1)
|
|
524
|
-
|
|
524
|
+
P(
|
|
525
525
|
n.value,
|
|
526
|
-
|
|
526
|
+
le(
|
|
527
527
|
a.value.style.chart.dataLabels.formatter,
|
|
528
528
|
e.coordinatesLine[l].value,
|
|
529
|
-
|
|
529
|
+
te({
|
|
530
530
|
p: e.prefix || "",
|
|
531
531
|
v: e.coordinatesLine[l].value,
|
|
532
532
|
s: e.suffix || "",
|
|
@@ -543,29 +543,29 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
543
543
|
}
|
|
544
544
|
);
|
|
545
545
|
}
|
|
546
|
-
const
|
|
546
|
+
const U = L(() => wl({
|
|
547
547
|
values: a.value.style.chart.grid.y.timeLabels.values,
|
|
548
548
|
maxDatapoints: I.value,
|
|
549
549
|
formatter: a.value.style.chart.grid.y.timeLabels.datetimeFormatter,
|
|
550
550
|
start: 0,
|
|
551
551
|
end: a.value.style.chart.grid.y.timeLabels.values.length
|
|
552
552
|
}));
|
|
553
|
-
function
|
|
553
|
+
function Aa() {
|
|
554
554
|
for (let e = r.value.start; e < r.value.end; e += 1)
|
|
555
|
-
(r.value.end - r.value.start < a.value.style.chart.grid.y.timeLabels.modulo || r.value.end - r.value.start >= a.value.style.chart.grid.y.timeLabels.modulo && (e % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 || e === c.value + r.value.start && a.value.style.chart.grid.y.timeLabels.showMarker)) &&
|
|
555
|
+
(r.value.end - r.value.start < a.value.style.chart.grid.y.timeLabels.modulo || r.value.end - r.value.start >= a.value.style.chart.grid.y.timeLabels.modulo && (e % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 || e === c.value + r.value.start && a.value.style.chart.grid.y.timeLabels.showMarker)) && P(
|
|
556
556
|
n.value,
|
|
557
|
-
|
|
557
|
+
U.value[e] ? U.value[e].text : e + 1,
|
|
558
558
|
t.value.left + t.value.slot * (e - r.value.start) + t.value.slot / 2,
|
|
559
559
|
t.value.bottom + y.value / a.value.style.chart.grid.y.timeLabels.offsetY,
|
|
560
560
|
{
|
|
561
561
|
align: a.value.style.chart.grid.y.timeLabels.rotation === 0 ? "center" : a.value.style.chart.grid.y.timeLabels.rotation > 0 ? "left" : "right",
|
|
562
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}`,
|
|
563
|
-
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 + r.value.start === e ? 100 : 20 : 100) : a.value.style.chart.grid.y.timeLabels.color,
|
|
564
564
|
rotation: a.value.style.chart.grid.y.timeLabels.rotation
|
|
565
565
|
}
|
|
566
566
|
);
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function Ke() {
|
|
569
569
|
C(
|
|
570
570
|
n.value,
|
|
571
571
|
[
|
|
@@ -579,7 +579,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
579
579
|
}
|
|
580
580
|
);
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function Da() {
|
|
583
583
|
M.value && C(
|
|
584
584
|
n.value,
|
|
585
585
|
[
|
|
@@ -593,7 +593,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
593
593
|
}
|
|
594
594
|
);
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function Na() {
|
|
597
597
|
w.value.forEach((e, l) => {
|
|
598
598
|
for (let o = 0; o < e.coordinatesLine.length; o += 1)
|
|
599
599
|
Ie(
|
|
@@ -630,16 +630,16 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
630
630
|
},
|
|
631
631
|
stops: [
|
|
632
632
|
{ offset: 0, color: e.color },
|
|
633
|
-
{ offset: 1, color: a.value.style.chart.bar.gradient.show ?
|
|
633
|
+
{ offset: 1, color: a.value.style.chart.bar.gradient.show ? hl(e.color, 0.5) : e.color }
|
|
634
634
|
]
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
|
-
), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) &&
|
|
637
|
+
), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && P(
|
|
638
638
|
n.value,
|
|
639
|
-
|
|
639
|
+
le(
|
|
640
640
|
a.value.style.chart.dataLabels.formatter,
|
|
641
641
|
e.coordinatesLine[o].value,
|
|
642
|
-
|
|
642
|
+
te({
|
|
643
643
|
p: e.prefix || "",
|
|
644
644
|
v: e.coordinatesLine[o].value,
|
|
645
645
|
s: e.suffix || "",
|
|
@@ -659,19 +659,19 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
659
659
|
);
|
|
660
660
|
});
|
|
661
661
|
}
|
|
662
|
-
function
|
|
663
|
-
e.useArea ? u.value.stacked ?
|
|
662
|
+
function Ha(e) {
|
|
663
|
+
e.useArea ? u.value.stacked ? ha(
|
|
664
664
|
n.value,
|
|
665
665
|
[{ x: e.coordinatesLine[0].x, y: e.localZero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: e.localZero }],
|
|
666
666
|
{
|
|
667
|
-
fillColor:
|
|
667
|
+
fillColor: ve(e.color, a.value.style.chart.area.opacity),
|
|
668
668
|
strokeColor: "transparent"
|
|
669
669
|
}
|
|
670
|
-
) :
|
|
670
|
+
) : ha(
|
|
671
671
|
n.value,
|
|
672
672
|
[{ x: e.coordinatesLine[0].x, y: m.value.zero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: m.value.zero }],
|
|
673
673
|
{
|
|
674
|
-
fillColor:
|
|
674
|
+
fillColor: ve(e.color, a.value.style.chart.area.opacity),
|
|
675
675
|
strokeColor: "transparent"
|
|
676
676
|
}
|
|
677
677
|
) : C(n.value, e.coordinatesLine, {
|
|
@@ -679,7 +679,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
679
679
|
lineWidth: 3
|
|
680
680
|
});
|
|
681
681
|
}
|
|
682
|
-
function
|
|
682
|
+
function Ya() {
|
|
683
683
|
h.value.forEach((e, l) => {
|
|
684
684
|
C(
|
|
685
685
|
n.value,
|
|
@@ -694,13 +694,13 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
694
694
|
);
|
|
695
695
|
});
|
|
696
696
|
}
|
|
697
|
-
function
|
|
698
|
-
|
|
699
|
-
(e.type === "line" || !e.type) &&
|
|
700
|
-
}), me.value =
|
|
697
|
+
function re() {
|
|
698
|
+
Oa(), _.value ? (c.value !== null && a.value.style.chart.selector.show && Ke(), Na(), u.value.stacked && a.value.style.chart.grid.x.showAxis && Ya(), Ma.value.forEach((e) => {
|
|
699
|
+
(e.type === "line" || !e.type) && Ha(e), q.value && (Ra(e), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Ea(e));
|
|
700
|
+
}), me.value = pl(T.value)) : (me.value && (n.value.clearRect(0, 0, 1e4, 1e4), n.value.drawImage(me.value, 0, 0)), c.value !== null && a.value.style.chart.selector.show && Ke(), c.value !== null && h.value.forEach((e) => {
|
|
701
701
|
if (e.type === "line" || !e.type || e.type === "plot") {
|
|
702
702
|
if (!e.coordinatesLine[c.value]) return;
|
|
703
|
-
e.coordinatesLine[c.value].x !== void 0 && e.coordinatesLine[c.value].y !== void 0 &&
|
|
703
|
+
e.coordinatesLine[c.value].x !== void 0 && e.coordinatesLine[c.value].y !== void 0 && da(
|
|
704
704
|
n.value,
|
|
705
705
|
{
|
|
706
706
|
x: e.coordinatesLine[c.value].x,
|
|
@@ -713,104 +713,104 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
713
713
|
}
|
|
714
714
|
);
|
|
715
715
|
}
|
|
716
|
-
})), a.value.style.chart.grid.y.timeLabels.show &&
|
|
716
|
+
})), a.value.style.chart.grid.y.timeLabels.show && Aa(), a.value.style.chart.selector.show && a.value.style.chart.selector.showHorizontalSelector && Da(), Fa(), Pa(), _.value = !1;
|
|
717
717
|
}
|
|
718
|
-
const
|
|
719
|
-
|
|
720
|
-
}, I.value > 200 ? 10 : 1, !
|
|
721
|
-
function
|
|
718
|
+
const ye = yl(() => {
|
|
719
|
+
q.value = !0, Ta();
|
|
720
|
+
}, I.value > 200 ? 10 : 1, !q.value);
|
|
721
|
+
function ue(e) {
|
|
722
722
|
if ([null, void 0].includes(c.value) || !e.coordinatesLine[c.value]) return !1;
|
|
723
723
|
const { y: l, value: o } = e.coordinatesLine[c.value];
|
|
724
724
|
return { y: l, value: o };
|
|
725
725
|
}
|
|
726
|
-
function
|
|
726
|
+
function _a(e) {
|
|
727
727
|
const { left: l, top: o } = T.value.getBoundingClientRect(), s = e.clientX - l;
|
|
728
728
|
if (M.value = (e.clientY - o) * 2, (M.value < t.value.top || M.value > t.value.bottom) && (M.value = null), s * 2 < t.value.left || s * 2 > t.value.right) {
|
|
729
|
-
|
|
729
|
+
ce.value = !1, c.value = null;
|
|
730
730
|
return;
|
|
731
731
|
}
|
|
732
732
|
const i = s * 2 - t.value.left;
|
|
733
|
-
if (c.value = Math.floor(i / t.value.slot),
|
|
733
|
+
if (c.value = Math.floor(i / t.value.slot), ce.value = !0, !q.value) return;
|
|
734
734
|
let b = "";
|
|
735
735
|
const v = a.value.style.chart.tooltip.customFormat;
|
|
736
|
-
|
|
736
|
+
ca(v) && dl(() => v({
|
|
737
737
|
seriesIndex: c.value,
|
|
738
738
|
datapoint: h.value.map((f) => ({
|
|
739
739
|
shape: f.shape || null,
|
|
740
740
|
name: f.name,
|
|
741
741
|
color: f.color,
|
|
742
742
|
type: f.type || "line",
|
|
743
|
-
value: f.series.find((
|
|
743
|
+
value: f.series.find((W, z) => z === c.value)
|
|
744
744
|
})),
|
|
745
745
|
series: h.value,
|
|
746
746
|
config: a.value
|
|
747
|
-
})) ?
|
|
747
|
+
})) ? de.value = v({
|
|
748
748
|
seriesIndex: c.value,
|
|
749
749
|
datapoint: h.value.map((f) => ({
|
|
750
750
|
shape: f.shape || null,
|
|
751
751
|
name: f.name,
|
|
752
752
|
color: f.color,
|
|
753
753
|
type: f.type || "line",
|
|
754
|
-
value: f.series.find((
|
|
754
|
+
value: f.series.find((W, z) => z === c.value)
|
|
755
755
|
})),
|
|
756
756
|
series: h.value,
|
|
757
757
|
config: a.value
|
|
758
|
-
}) : (a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[c.value] && (b += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${
|
|
758
|
+
}) : (a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[c.value] && (b += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${U.value.slice(r.value.start, r.value.end)[c.value].text}</div>`), b += $a.value.join(""), de.value = b), q.value = !1;
|
|
759
759
|
}
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
}),
|
|
763
|
-
|
|
760
|
+
N(() => c.value, (e) => {
|
|
761
|
+
ye();
|
|
762
|
+
}), N(() => r.value, (e) => {
|
|
763
|
+
_.value = !0, re();
|
|
764
764
|
}, {
|
|
765
765
|
deep: !0
|
|
766
|
-
}),
|
|
767
|
-
|
|
768
|
-
}),
|
|
769
|
-
e &&
|
|
770
|
-
}),
|
|
771
|
-
|
|
766
|
+
}), N(() => u.value.showDataLabels, (e) => {
|
|
767
|
+
_.value = !0, re();
|
|
768
|
+
}), N(() => M.value, (e) => {
|
|
769
|
+
e && re();
|
|
770
|
+
}), N(() => u.value.stacked, (e) => {
|
|
771
|
+
_.value = !0, q.value = !0, ye();
|
|
772
772
|
});
|
|
773
773
|
function Ua() {
|
|
774
|
-
|
|
774
|
+
ce.value = !1, c.value = null, de.value = "", M.value = null, re();
|
|
775
775
|
}
|
|
776
|
-
const
|
|
777
|
-
|
|
778
|
-
we();
|
|
776
|
+
const A = ze(null), K = ze(null), Q = ze(null);
|
|
777
|
+
sa(() => {
|
|
778
|
+
De.value = !0, we();
|
|
779
779
|
});
|
|
780
780
|
function we() {
|
|
781
|
-
if (
|
|
781
|
+
if (nl(g.dataset) ? il({
|
|
782
782
|
componentName: "VueUiXyCanvas",
|
|
783
783
|
type: "dataset"
|
|
784
784
|
}) : T.value && (n.value = T.value.getContext("2d", { willReadFrequently: !0 })), a.value.responsive) {
|
|
785
|
-
const e =
|
|
786
|
-
const { width: l, height: o } =
|
|
787
|
-
chart:
|
|
785
|
+
const e = fl(() => {
|
|
786
|
+
const { width: l, height: o } = gl({
|
|
787
|
+
chart: F.value,
|
|
788
788
|
title: a.value.style.chart.title.text ? Pe.value : null,
|
|
789
789
|
legend: a.value.style.chart.legend.show ? Fe.value : null,
|
|
790
790
|
slicer: a.value.style.chart.zoom.show && I.value > 1 ? Ee.value : null,
|
|
791
791
|
source: Ae.value
|
|
792
792
|
});
|
|
793
793
|
requestAnimationFrame(() => {
|
|
794
|
-
|
|
794
|
+
_e.value = `${l} / ${o}`;
|
|
795
795
|
});
|
|
796
796
|
});
|
|
797
|
-
|
|
797
|
+
A.value && (K.value && A.value.unobserve(K.value), A.value.disconnect()), A.value = new ResizeObserver(e), K.value = F.value.parentNode, A.value.observe(K.value);
|
|
798
798
|
}
|
|
799
|
-
|
|
799
|
+
Q.value && Q.value.disconnect(), Q.value = new ResizeObserver((e) => {
|
|
800
800
|
for (const l of e)
|
|
801
|
-
l.contentBoxSize &&
|
|
802
|
-
}),
|
|
801
|
+
l.contentBoxSize && oe.value && (_.value = !0, ye());
|
|
802
|
+
}), Q.value.observe(oe.value), Je();
|
|
803
803
|
}
|
|
804
|
-
|
|
805
|
-
|
|
804
|
+
Za(() => {
|
|
805
|
+
Q.value && Q.value.disconnect(), A.value && (K.value && A.value.unobserve(K.value), A.value.disconnect());
|
|
806
806
|
});
|
|
807
|
-
function
|
|
808
|
-
|
|
807
|
+
function Qe(e) {
|
|
808
|
+
wa("selectLegend", h.value.find((l) => l.absoluteIndex === e)), $.value.includes(e) ? $.value = $.value.filter((l) => l !== e) : $.value.push(e), _.value = !0, ye();
|
|
809
809
|
}
|
|
810
|
-
const
|
|
810
|
+
const ea = L(() => J.value.map((e, l) => ({
|
|
811
811
|
...e,
|
|
812
812
|
name: e.name,
|
|
813
|
-
color:
|
|
813
|
+
color: va(e.color) || Ge.value[l] || Z[l] || Z[l % Z.length],
|
|
814
814
|
shape: e.shape || "circle",
|
|
815
815
|
prefix: e.prefix || "",
|
|
816
816
|
suffix: e.suffix || "",
|
|
@@ -818,7 +818,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
818
818
|
})).map((e) => ({
|
|
819
819
|
...e,
|
|
820
820
|
opacity: $.value.includes(e.absoluteIndex) ? 0.5 : 1,
|
|
821
|
-
segregate: () =>
|
|
821
|
+
segregate: () => Qe(e.absoluteIndex),
|
|
822
822
|
isSegregated: $.value.includes(e.absoluteIndex)
|
|
823
823
|
}))), Wa = L(() => ({
|
|
824
824
|
cy: "donut-div-legend",
|
|
@@ -827,12 +827,12 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
827
827
|
fontSize: a.value.style.chart.legend.fontSize,
|
|
828
828
|
paddingBottom: 12,
|
|
829
829
|
fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
|
|
830
|
-
})),
|
|
830
|
+
})), fe = L(() => {
|
|
831
831
|
const e = [""].concat(h.value.map((i) => i.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>');
|
|
832
832
|
let l = [];
|
|
833
833
|
for (let i = 0; i < I.value; i += 1) {
|
|
834
834
|
const b = h.value.map((v) => v.series[i] ?? 0).reduce((v, f) => v + f, 0);
|
|
835
|
-
l.push([a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[i] ?
|
|
835
|
+
l.push([a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[i] ? U.value.slice(r.value.start, r.value.end)[i].text : i + 1].concat(h.value.map((v) => (v.series[i] ?? 0).toFixed(a.value.table.rounding))).concat((b ?? 0).toFixed(a.value.table.rounding)));
|
|
836
836
|
}
|
|
837
837
|
const o = {
|
|
838
838
|
th: {
|
|
@@ -848,7 +848,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
848
848
|
breakpoint: a.value.table.responsiveBreakpoint
|
|
849
849
|
}, s = [a.value.table.columnNames.period].concat(h.value.map((i) => i.name)).concat(a.value.table.columnNames.total);
|
|
850
850
|
return { head: e, body: l.slice(0, r.value.end - r.value.start), config: o, colNames: s };
|
|
851
|
-
}),
|
|
851
|
+
}), aa = L(() => {
|
|
852
852
|
if (h.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
853
853
|
const e = h.value.map((o) => ({
|
|
854
854
|
label: o.name,
|
|
@@ -856,39 +856,39 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
856
856
|
type: o.type
|
|
857
857
|
})), l = [];
|
|
858
858
|
for (let o = r.value.start; o < r.value.end; o += 1) {
|
|
859
|
-
const s = [a.value.style.chart.grid.y.timeLabels.values[o] ?
|
|
859
|
+
const s = [a.value.style.chart.grid.y.timeLabels.values[o] ? U.value[o].text : o + 1];
|
|
860
860
|
h.value.forEach((i) => {
|
|
861
861
|
s.push(Number((i.series[o] || 0).toFixed(a.value.table.rounding)));
|
|
862
862
|
}), l.push(s);
|
|
863
863
|
}
|
|
864
864
|
return { head: e, body: l };
|
|
865
865
|
});
|
|
866
|
-
function
|
|
867
|
-
const l = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], o = ["", ...
|
|
868
|
-
e ? e(b) :
|
|
866
|
+
function la(e = null) {
|
|
867
|
+
const l = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], o = ["", ...aa.value.head.map((v) => v.label)], s = aa.value.body, i = l.concat([o]).concat(s), b = vl(i);
|
|
868
|
+
e ? e(b) : cl({ csvContent: b, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
|
|
869
869
|
}
|
|
870
870
|
function Xa() {
|
|
871
871
|
return h.value;
|
|
872
872
|
}
|
|
873
|
-
function
|
|
873
|
+
function ta() {
|
|
874
874
|
u.value.showTable = !u.value.showTable;
|
|
875
875
|
}
|
|
876
|
-
function
|
|
876
|
+
function oa() {
|
|
877
877
|
u.value.showDataLabels = !u.value.showDataLabels;
|
|
878
878
|
}
|
|
879
|
-
function
|
|
879
|
+
function ra() {
|
|
880
880
|
u.value.stacked = !u.value.stacked;
|
|
881
881
|
}
|
|
882
|
-
function
|
|
882
|
+
function ua() {
|
|
883
883
|
u.value.showTooltip = !u.value.showTooltip;
|
|
884
884
|
}
|
|
885
|
-
const
|
|
885
|
+
const ge = d(!1);
|
|
886
886
|
function Se() {
|
|
887
|
-
|
|
887
|
+
ge.value = !ge.value;
|
|
888
888
|
}
|
|
889
889
|
async function Ba({ scale: e = 2 } = {}) {
|
|
890
|
-
if (!
|
|
891
|
-
const { width: l, height: o } =
|
|
890
|
+
if (!F.value) return;
|
|
891
|
+
const { width: l, height: o } = F.value.getBoundingClientRect(), s = l / o, { imageUri: i, base64: b } = await Sl({ domElement: F.value, base64: !0, img: !0, scale: e });
|
|
892
892
|
return {
|
|
893
893
|
imageUri: i,
|
|
894
894
|
base64: b,
|
|
@@ -898,34 +898,34 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
898
898
|
aspectRatio: s
|
|
899
899
|
};
|
|
900
900
|
}
|
|
901
|
-
return
|
|
901
|
+
return fa({
|
|
902
902
|
getData: Xa,
|
|
903
903
|
getImage: Ba,
|
|
904
|
-
generateCsv:
|
|
904
|
+
generateCsv: la,
|
|
905
905
|
generatePdf: Xe,
|
|
906
906
|
generateImage: Be,
|
|
907
|
-
toggleTable:
|
|
908
|
-
toggleLabels:
|
|
909
|
-
toggleStack:
|
|
910
|
-
toggleTooltip:
|
|
907
|
+
toggleTable: ta,
|
|
908
|
+
toggleLabels: oa,
|
|
909
|
+
toggleStack: ra,
|
|
910
|
+
toggleTooltip: ua,
|
|
911
911
|
toggleAnnotator: Se,
|
|
912
|
-
toggleFullscreen:
|
|
913
|
-
}), (e, l) => (S(),
|
|
914
|
-
style:
|
|
912
|
+
toggleFullscreen: Ve
|
|
913
|
+
}), (e, l) => (S(), ie("div", {
|
|
914
|
+
style: ae(`width:100%; position:relative; ${a.value.responsive ? "height: 100%" : ""}`),
|
|
915
915
|
ref_key: "xy",
|
|
916
|
-
ref:
|
|
917
|
-
id: `xy_canvas_${
|
|
918
|
-
class:
|
|
919
|
-
onMouseenter: l[5] || (l[5] = () => p(
|
|
920
|
-
onMouseleave: l[6] || (l[6] = () => p(
|
|
916
|
+
ref: F,
|
|
917
|
+
id: `xy_canvas_${Y.value}`,
|
|
918
|
+
class: ja(`vue-ui-donut ${he.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
919
|
+
onMouseenter: l[5] || (l[5] = () => p(Ne)(!0)),
|
|
920
|
+
onMouseleave: l[6] || (l[6] = () => p(Ne)(!1))
|
|
921
921
|
}, [
|
|
922
|
-
a.value.style.chart.title.text ? (S(),
|
|
922
|
+
a.value.style.chart.title.text ? (S(), ie("div", {
|
|
923
923
|
key: 0,
|
|
924
924
|
ref_key: "chartTitle",
|
|
925
925
|
ref: Pe,
|
|
926
|
-
style:
|
|
926
|
+
style: ae(`width:100%;background:${a.value.style.chart.backgroundColor};`)
|
|
927
927
|
}, [
|
|
928
|
-
(S(),
|
|
928
|
+
(S(), R(kl, {
|
|
929
929
|
key: `title_${be.value}`,
|
|
930
930
|
config: {
|
|
931
931
|
title: {
|
|
@@ -938,15 +938,18 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
938
938
|
}
|
|
939
939
|
}
|
|
940
940
|
}, null, 8, ["config"]))
|
|
941
|
-
], 4)) :
|
|
942
|
-
|
|
941
|
+
], 4)) : H("", !0),
|
|
942
|
+
B("div", {
|
|
943
|
+
id: `legend-top-${Y.value}`
|
|
944
|
+
}, null, 8, Il),
|
|
945
|
+
a.value.userOptions.show && ke.value && (p(He) || p(Ce)) ? (S(), R(p(ka), {
|
|
943
946
|
ref: "details",
|
|
944
947
|
key: `user_option_${Re.value}`,
|
|
945
948
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
946
949
|
color: a.value.style.chart.color,
|
|
947
950
|
isPrinting: p(Ue),
|
|
948
951
|
isImaging: p(We),
|
|
949
|
-
uid:
|
|
952
|
+
uid: Y.value,
|
|
950
953
|
hasTooltip: a.value.userOptions.buttons.tooltip && a.value.style.chart.tooltip.show,
|
|
951
954
|
hasPdf: a.value.userOptions.buttons.pdf,
|
|
952
955
|
hasImg: a.value.userOptions.buttons.img,
|
|
@@ -955,33 +958,33 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
955
958
|
hasStack: Me.dataset.length > 1 && a.value.userOptions.buttons.stack,
|
|
956
959
|
hasFullscreen: a.value.userOptions.buttons.fullscreen,
|
|
957
960
|
hasTable: r.value.end - r.value.start < 200 && a.value.userOptions.buttons.table,
|
|
958
|
-
isFullscreen:
|
|
961
|
+
isFullscreen: he.value,
|
|
959
962
|
isTooltip: u.value.showTooltip,
|
|
960
963
|
isStacked: u.value.stacked,
|
|
961
964
|
titles: { ...a.value.userOptions.buttonTitles },
|
|
962
|
-
chartElement:
|
|
965
|
+
chartElement: F.value,
|
|
963
966
|
position: a.value.userOptions.position,
|
|
964
967
|
hasAnnotator: a.value.userOptions.buttons.annotator,
|
|
965
|
-
isAnnotation:
|
|
968
|
+
isAnnotation: ge.value,
|
|
966
969
|
callbacks: a.value.userOptions.callbacks,
|
|
967
970
|
printScale: a.value.userOptions.print.scale,
|
|
968
|
-
onToggleFullscreen:
|
|
971
|
+
onToggleFullscreen: Ve,
|
|
969
972
|
onGeneratePdf: p(Xe),
|
|
970
|
-
onGenerateCsv:
|
|
973
|
+
onGenerateCsv: la,
|
|
971
974
|
onGenerateImage: p(Be),
|
|
972
|
-
onToggleTable:
|
|
973
|
-
onToggleLabels:
|
|
974
|
-
onToggleStack:
|
|
975
|
-
onToggleTooltip:
|
|
975
|
+
onToggleTable: ta,
|
|
976
|
+
onToggleLabels: oa,
|
|
977
|
+
onToggleStack: ra,
|
|
978
|
+
onToggleTooltip: ua,
|
|
976
979
|
onToggleAnnotator: Se,
|
|
977
|
-
style:
|
|
978
|
-
visibility: p(
|
|
980
|
+
style: ae({
|
|
981
|
+
visibility: p(He) ? p(Ce) ? "visible" : "hidden" : "visible"
|
|
979
982
|
})
|
|
980
|
-
},
|
|
983
|
+
}, qa({ _: 2 }, [
|
|
981
984
|
e.$slots.menuIcon ? {
|
|
982
985
|
name: "menuIcon",
|
|
983
986
|
fn: x(({ isOpen: o, color: s }) => [
|
|
984
|
-
k(e.$slots, "menuIcon",
|
|
987
|
+
k(e.$slots, "menuIcon", V(G({ isOpen: o, color: s })), void 0, !0)
|
|
985
988
|
]),
|
|
986
989
|
key: "0"
|
|
987
990
|
} : void 0,
|
|
@@ -1037,32 +1040,32 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
1037
1040
|
e.$slots.optionFullscreen ? {
|
|
1038
1041
|
name: "optionFullscreen",
|
|
1039
1042
|
fn: x(({ toggleFullscreen: o, isFullscreen: s }) => [
|
|
1040
|
-
k(e.$slots, "optionFullscreen",
|
|
1043
|
+
k(e.$slots, "optionFullscreen", V(G({ toggleFullscreen: o, isFullscreen: s })), void 0, !0)
|
|
1041
1044
|
]),
|
|
1042
1045
|
key: "8"
|
|
1043
1046
|
} : void 0,
|
|
1044
1047
|
e.$slots.optionAnnotator ? {
|
|
1045
1048
|
name: "optionAnnotator",
|
|
1046
1049
|
fn: x(({ toggleAnnotator: o, isAnnotator: s }) => [
|
|
1047
|
-
k(e.$slots, "optionAnnotator",
|
|
1050
|
+
k(e.$slots, "optionAnnotator", V(G({ toggleAnnotator: o, isAnnotator: s })), void 0, !0)
|
|
1048
1051
|
]),
|
|
1049
1052
|
key: "9"
|
|
1050
1053
|
} : void 0
|
|
1051
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
1052
|
-
|
|
1054
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : H("", !0),
|
|
1055
|
+
B("div", {
|
|
1053
1056
|
class: "vue-ui-xy-canvas",
|
|
1054
|
-
style:
|
|
1057
|
+
style: ae(`position: relative; aspect-ratio: ${_e.value}`),
|
|
1055
1058
|
ref_key: "container",
|
|
1056
|
-
ref:
|
|
1059
|
+
ref: oe
|
|
1057
1060
|
}, [
|
|
1058
|
-
ke.value ? (S(),
|
|
1061
|
+
ke.value ? (S(), ie("canvas", {
|
|
1059
1062
|
key: 0,
|
|
1060
1063
|
ref_key: "canvas",
|
|
1061
1064
|
ref: T,
|
|
1062
1065
|
style: { width: "100%", height: "100%" },
|
|
1063
|
-
onMousemove: l[0] || (l[0] = (o) =>
|
|
1066
|
+
onMousemove: l[0] || (l[0] = (o) => _a(o)),
|
|
1064
1067
|
onMouseleave: Ua
|
|
1065
|
-
}, null, 544)) : (S(),
|
|
1068
|
+
}, null, 544)) : (S(), R(p(xa), {
|
|
1066
1069
|
key: 1,
|
|
1067
1070
|
config: {
|
|
1068
1071
|
type: "line",
|
|
@@ -1080,8 +1083,8 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
1080
1083
|
}
|
|
1081
1084
|
}
|
|
1082
1085
|
}, null, 8, ["config"])),
|
|
1083
|
-
|
|
1084
|
-
show: u.value.showTooltip &&
|
|
1086
|
+
Ja(p(La), {
|
|
1087
|
+
show: u.value.showTooltip && ce.value,
|
|
1085
1088
|
backgroundColor: a.value.style.chart.tooltip.backgroundColor,
|
|
1086
1089
|
color: a.value.style.chart.tooltip.color,
|
|
1087
1090
|
fontSize: a.value.style.chart.tooltip.fontSize,
|
|
@@ -1091,38 +1094,38 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
1091
1094
|
position: a.value.style.chart.tooltip.position,
|
|
1092
1095
|
offsetY: a.value.style.chart.tooltip.offsetY,
|
|
1093
1096
|
parent: p(T),
|
|
1094
|
-
content:
|
|
1095
|
-
isFullscreen:
|
|
1097
|
+
content: de.value,
|
|
1098
|
+
isFullscreen: he.value,
|
|
1096
1099
|
backgroundOpacity: a.value.style.chart.tooltip.backgroundOpacity,
|
|
1097
|
-
isCustom: p(
|
|
1100
|
+
isCustom: p(ca)(a.value.style.chart.tooltip.customFormat),
|
|
1098
1101
|
smooth: a.value.style.chart.tooltip.smooth,
|
|
1099
1102
|
backdropFilter: a.value.style.chart.tooltip.backdropFilter
|
|
1100
1103
|
}, {
|
|
1101
1104
|
"tooltip-before": x(() => [
|
|
1102
|
-
k(e.$slots, "tooltip-before",
|
|
1105
|
+
k(e.$slots, "tooltip-before", V(G({ ...Te.value })), void 0, !0)
|
|
1103
1106
|
]),
|
|
1104
1107
|
"tooltip-after": x(() => [
|
|
1105
|
-
k(e.$slots, "tooltip-after",
|
|
1108
|
+
k(e.$slots, "tooltip-after", V(G({ ...Te.value })), void 0, !0)
|
|
1106
1109
|
]),
|
|
1107
1110
|
_: 3
|
|
1108
1111
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "isFullscreen", "backgroundOpacity", "isCustom", "smooth", "backdropFilter"])
|
|
1109
1112
|
], 4),
|
|
1110
|
-
|
|
1113
|
+
B("div", {
|
|
1111
1114
|
ref_key: "chartSlicer",
|
|
1112
1115
|
ref: Ee,
|
|
1113
|
-
style:
|
|
1116
|
+
style: ae(`width:100%;background:${a.value.style.chart.backgroundColor}`),
|
|
1114
1117
|
"data-dom-to-png-ignore": ""
|
|
1115
1118
|
}, [
|
|
1116
|
-
a.value.style.chart.zoom.show && I.value > 1 ? (S(),
|
|
1119
|
+
a.value.style.chart.zoom.show && I.value > 1 ? (S(), R(Cl, {
|
|
1117
1120
|
ref_key: "slicerComponent",
|
|
1118
|
-
ref:
|
|
1121
|
+
ref: qe,
|
|
1119
1122
|
key: `slicer_${Oe.value}`,
|
|
1120
1123
|
background: a.value.style.chart.zoom.color,
|
|
1121
1124
|
borderColor: a.value.style.chart.backgroundColor,
|
|
1122
1125
|
fontSize: a.value.style.chart.zoom.fontSize,
|
|
1123
1126
|
useResetSlot: a.value.style.chart.zoom.useResetSlot,
|
|
1124
|
-
labelLeft: a.value.style.chart.grid.y.timeLabels.values[r.value.start] ?
|
|
1125
|
-
labelRight: a.value.style.chart.grid.y.timeLabels.values[r.value.end - 1] ?
|
|
1127
|
+
labelLeft: a.value.style.chart.grid.y.timeLabels.values[r.value.start] ? U.value[r.value.start].text : "",
|
|
1128
|
+
labelRight: a.value.style.chart.grid.y.timeLabels.values[r.value.end - 1] ? U.value[r.value.end - 1].text : "",
|
|
1126
1129
|
textColor: a.value.style.chart.color,
|
|
1127
1130
|
inputColor: a.value.style.chart.zoom.color,
|
|
1128
1131
|
selectColor: a.value.style.chart.zoom.highlightColor,
|
|
@@ -1138,49 +1141,57 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
1138
1141
|
refreshEndPoint: a.value.style.chart.zoom.endIndex !== null ? a.value.style.chart.zoom.endIndex + 1 : I.value,
|
|
1139
1142
|
enableRangeHandles: a.value.style.chart.zoom.enableRangeHandles,
|
|
1140
1143
|
enableSelectionDrag: a.value.style.chart.zoom.enableSelectionDrag,
|
|
1141
|
-
onReset:
|
|
1144
|
+
onReset: je
|
|
1142
1145
|
}, {
|
|
1143
1146
|
"reset-action": x(({ reset: o }) => [
|
|
1144
|
-
k(e.$slots, "reset-action",
|
|
1147
|
+
k(e.$slots, "reset-action", V(G({ reset: o })), void 0, !0)
|
|
1145
1148
|
]),
|
|
1146
1149
|
_: 3
|
|
1147
|
-
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) :
|
|
1150
|
+
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : H("", !0)
|
|
1148
1151
|
], 4),
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
+
B("div", {
|
|
1153
|
+
id: `legend-bottom-${Y.value}`
|
|
1154
|
+
}, null, 8, Ml),
|
|
1155
|
+
De.value ? (S(), R(Ka, {
|
|
1156
|
+
key: 2,
|
|
1157
|
+
to: a.value.style.chart.legend.position === "top" ? `#legend-top-${Y.value}` : `#legend-bottom-${Y.value}`
|
|
1152
1158
|
}, [
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1159
|
+
B("div", {
|
|
1160
|
+
ref_key: "chartLegend",
|
|
1161
|
+
ref: Fe
|
|
1162
|
+
}, [
|
|
1163
|
+
a.value.style.chart.legend.show && ke.value ? (S(), R(Ll, {
|
|
1164
|
+
legendSet: ea.value,
|
|
1165
|
+
config: Wa.value,
|
|
1166
|
+
key: `legend_${Le.value}`,
|
|
1167
|
+
onClickMarker: l[3] || (l[3] = ({ i: o }) => Qe(o))
|
|
1168
|
+
}, {
|
|
1169
|
+
item: x(({ legend: o, index: s }) => [
|
|
1170
|
+
B("div", {
|
|
1171
|
+
onClick: (i) => o.segregate(),
|
|
1172
|
+
style: ae(`opacity:${$.value.includes(s) ? 0.5 : 1}`)
|
|
1173
|
+
}, ia(o.name), 13, Tl)
|
|
1174
|
+
]),
|
|
1175
|
+
_: 1
|
|
1176
|
+
}, 8, ["legendSet", "config"])) : k(e.$slots, "legend", {
|
|
1177
|
+
key: 1,
|
|
1178
|
+
legend: ea.value
|
|
1179
|
+
}, void 0, !0)
|
|
1180
|
+
], 512)
|
|
1181
|
+
], 8, ["to"])) : H("", !0),
|
|
1182
|
+
e.$slots.watermark ? (S(), ie("div", Ol, [
|
|
1183
|
+
k(e.$slots, "watermark", V(G({ isPrinting: p(Ue) || p(We) })), void 0, !0)
|
|
1184
|
+
])) : H("", !0),
|
|
1185
|
+
e.$slots.source ? (S(), ie("div", {
|
|
1186
|
+
key: 4,
|
|
1176
1187
|
ref_key: "source",
|
|
1177
1188
|
ref: Ae,
|
|
1178
1189
|
dir: "auto"
|
|
1179
1190
|
}, [
|
|
1180
1191
|
k(e.$slots, "source", {}, void 0, !0)
|
|
1181
|
-
], 512)) :
|
|
1182
|
-
r.value.end - r.value.start < 200 ? (S(),
|
|
1183
|
-
key:
|
|
1192
|
+
], 512)) : H("", !0),
|
|
1193
|
+
r.value.end - r.value.start < 200 ? (S(), R(p(pa), {
|
|
1194
|
+
key: 5,
|
|
1184
1195
|
hideDetails: "",
|
|
1185
1196
|
config: {
|
|
1186
1197
|
open: u.value.showTable,
|
|
@@ -1196,37 +1207,37 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
1196
1207
|
}
|
|
1197
1208
|
}, {
|
|
1198
1209
|
content: x(() => [
|
|
1199
|
-
(S(),
|
|
1210
|
+
(S(), R(p(ma), {
|
|
1200
1211
|
key: `table_${xe.value}`,
|
|
1201
|
-
colNames:
|
|
1202
|
-
head:
|
|
1203
|
-
body:
|
|
1204
|
-
config:
|
|
1212
|
+
colNames: fe.value.colNames,
|
|
1213
|
+
head: fe.value.head,
|
|
1214
|
+
body: fe.value.body,
|
|
1215
|
+
config: fe.value.config,
|
|
1205
1216
|
title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1206
1217
|
onClose: l[4] || (l[4] = (o) => u.value.showTable = !1)
|
|
1207
1218
|
}, {
|
|
1208
1219
|
th: x(({ th: o }) => [
|
|
1209
|
-
|
|
1220
|
+
B("div", { innerHTML: o }, null, 8, Rl)
|
|
1210
1221
|
]),
|
|
1211
1222
|
td: x(({ td: o }) => [
|
|
1212
|
-
|
|
1223
|
+
Qa(ia(o), 1)
|
|
1213
1224
|
]),
|
|
1214
1225
|
_: 1
|
|
1215
1226
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1216
1227
|
]),
|
|
1217
1228
|
_: 1
|
|
1218
|
-
}, 8, ["config"])) :
|
|
1219
|
-
a.value.userOptions.buttons.annotator && h.value.length ? (S(),
|
|
1220
|
-
key:
|
|
1221
|
-
parent:
|
|
1229
|
+
}, 8, ["config"])) : H("", !0),
|
|
1230
|
+
a.value.userOptions.buttons.annotator && h.value.length ? (S(), R(p(ba), {
|
|
1231
|
+
key: 6,
|
|
1232
|
+
parent: F.value,
|
|
1222
1233
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
1223
1234
|
color: a.value.style.chart.color,
|
|
1224
|
-
active:
|
|
1235
|
+
active: ge.value,
|
|
1225
1236
|
onClose: Se
|
|
1226
|
-
}, null, 8, ["parent", "backgroundColor", "color", "active"])) :
|
|
1227
|
-
], 46,
|
|
1237
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : H("", !0)
|
|
1238
|
+
], 46, $l));
|
|
1228
1239
|
}
|
|
1229
|
-
},
|
|
1240
|
+
}, Gl = /* @__PURE__ */ zl(Pl, [["__scopeId", "data-v-da2b809f"]]);
|
|
1230
1241
|
export {
|
|
1231
|
-
|
|
1242
|
+
Gl as default
|
|
1232
1243
|
};
|