vue-data-ui 2.3.38 → 2.3.40
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-vS43S38d.cjs → Arrow-CcJ2U3U0.cjs} +1 -1
- package/dist/{Arrow-C3soCsF0.js → Arrow-DHJ0seDm.js} +1 -1
- package/dist/{BaseIcon-B8hVR5-4.js → BaseIcon-D7REqiel.js} +1 -1
- package/dist/{BaseIcon-BoEJRb0e.cjs → BaseIcon-Durv5g7g.cjs} +1 -1
- package/dist/{DataTable-BrnFSdXo.cjs → DataTable-Di-7_6Aq.cjs} +1 -1
- package/dist/{DataTable-DKkvLXwD.js → DataTable-xRoJJLCK.js} +2 -2
- package/dist/{Legend-DpiZXeY0.js → Legend-DFjWlPTO.js} +1 -1
- package/dist/{Legend-D7zc_ula.cjs → Legend-DHtuLr86.cjs} +1 -1
- package/dist/{Shape-BpneoNiL.js → Shape-Cnsn1U1B.js} +1 -1
- package/dist/{Shape-CWtwGdQ_.cjs → Shape-dOTW06jG.cjs} +1 -1
- package/dist/{Slicer-DwAQJLPa.cjs → Slicer-B-Doztix.cjs} +1 -1
- package/dist/{Slicer-CTBvSici.js → Slicer-CdoJYj--.js} +1 -1
- package/dist/{Title-BvczMERR.cjs → Title-CUD-K-0i.cjs} +1 -1
- package/dist/{Title-0FYOLRT9.js → Title-WVL1w90F.js} +1 -1
- package/dist/{Tooltip-hkjfa0I0.js → Tooltip-B5_8pR7S.js} +1 -1
- package/dist/{Tooltip-QvjV7FFJ.cjs → Tooltip-CdjFc0lT.cjs} +1 -1
- package/dist/{index-BUQIyeLx.js → index-CLohkSjv.js} +543 -518
- package/dist/index-Clt49H-j.cjs +4 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +28 -17
- package/dist/types/vue-data-ui.d.ts +28 -17
- package/dist/{useNestedProp-CW-4h79P.js → useNestedProp-BsIUgLPI.js} +1 -1
- package/dist/{useNestedProp-C0FeJ2Gu.cjs → useNestedProp-y541YeYg.cjs} +1 -1
- package/dist/{usePrinter-Si0o8ws0.cjs → usePrinter-B9AbYwAC.cjs} +1 -1
- package/dist/{usePrinter-Dx2e-dXi.js → usePrinter-CLjymPxw.js} +1 -1
- package/dist/{vue-data-ui-BhNefJqd.cjs → vue-data-ui-8vGw_xvX.cjs} +1 -1
- package/dist/{vue-data-ui-SFL-vicz.js → vue-data-ui-R6Kj9vzU.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +4 -4
- package/dist/{vue-ui-3d-bar-C6K-OwN2.cjs → vue-ui-3d-bar-D_SoQlA7.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-SzGt2SPF.js → vue-ui-3d-bar-tGkaU8fG.js} +7 -7
- package/dist/{vue-ui-accordion-B_7G2YRK.js → vue-ui-accordion-B6lUgTu6.js} +3 -3
- package/dist/{vue-ui-accordion-COKJwPZR.cjs → vue-ui-accordion-Czitboqc.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-BpENrca-.cjs → vue-ui-age-pyramid-CN27TQYe.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-CCAD1S4K.js → vue-ui-age-pyramid-yJgEO7Ur.js} +8 -8
- package/dist/{vue-ui-annotator-DVUPNP51.cjs → vue-ui-annotator-BByjovvv.cjs} +1 -1
- package/dist/{vue-ui-annotator-D-af73uG.js → vue-ui-annotator-k8KyQmMk.js} +1 -1
- package/dist/{vue-ui-candlestick-Dafy2mS8.js → vue-ui-candlestick-ClOsAfCQ.js} +9 -9
- package/dist/{vue-ui-candlestick-DdObXSwq.cjs → vue-ui-candlestick-DjwGhojD.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-bYSgV27Q.cjs → vue-ui-carousel-table-nZYD_4Jp.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-qft3cy1n.js → vue-ui-carousel-table-xdb3tSHu.js} +4 -4
- package/dist/{vue-ui-chestnut-DCIswacl.js → vue-ui-chestnut-CKSdf5Wx.js} +6 -6
- package/dist/{vue-ui-chestnut-DSf7prYO.cjs → vue-ui-chestnut-CQrFwjq4.cjs} +1 -1
- package/dist/{vue-ui-cursor-C70l6xpc.js → vue-ui-cursor-B4fFZ1Xh.js} +2 -2
- package/dist/{vue-ui-cursor-Dc9Esi6P.cjs → vue-ui-cursor-R-_LJ7BC.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BQm48CXc.cjs → vue-ui-dashboard-BGgb7Ylt.cjs} +1 -1
- package/dist/{vue-ui-dashboard-cG4gRYbw.js → vue-ui-dashboard-DkYbzLSj.js} +2 -2
- package/dist/{vue-ui-digits-CeUaMGOT.cjs → vue-ui-digits-DdKxR0He.cjs} +1 -1
- package/dist/{vue-ui-digits-D0E4R4fa.js → vue-ui-digits-Lq_MZu0_.js} +2 -2
- package/dist/{vue-ui-donut-BMMREL4b.cjs → vue-ui-donut-C5benoAI.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-BdhZKkJR.cjs → vue-ui-donut-evolution-C2nM8AVm.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-BlR9YmXE.js → vue-ui-donut-evolution-D_b9hPYy.js} +9 -9
- package/dist/{vue-ui-donut-BkEBJEsA.js → vue-ui-donut-qzmnXplU.js} +9 -9
- package/dist/{vue-ui-dumbbell-BF7SZx1w.js → vue-ui-dumbbell-BTbPNzqx.js} +8 -8
- package/dist/{vue-ui-dumbbell-WOJbZokq.cjs → vue-ui-dumbbell-C94N1mry.cjs} +1 -1
- package/dist/{vue-ui-flow-C3newyQP.js → vue-ui-flow-C8jT8any.js} +7 -7
- package/dist/{vue-ui-flow-D5x8svE5.cjs → vue-ui-flow-CkZtvF7p.cjs} +1 -1
- package/dist/{vue-ui-galaxy-CIUd-hLW.cjs → vue-ui-galaxy-DZKVmKTf.cjs} +1 -1
- package/dist/{vue-ui-galaxy-BJHQBQJ6.js → vue-ui-galaxy-DuA4MPUu.js} +9 -9
- package/dist/{vue-ui-gauge-BaAskWex.js → vue-ui-gauge-CujXhTuR.js} +5 -5
- package/dist/{vue-ui-gauge-BmXTSe6K.cjs → vue-ui-gauge-DBhAo4ED.cjs} +1 -1
- package/dist/{vue-ui-gizmo-k-23quhf.cjs → vue-ui-gizmo-BsxB_JfW.cjs} +1 -1
- package/dist/{vue-ui-gizmo-nZu_bqHD.js → vue-ui-gizmo-DlWB95Xv.js} +2 -2
- package/dist/{vue-ui-heatmap-GQGsHp13.cjs → vue-ui-heatmap-B6MbT38S.cjs} +1 -1
- package/dist/{vue-ui-heatmap-T885Tnk8.js → vue-ui-heatmap-DlDIlSK-.js} +8 -8
- package/dist/{vue-ui-kpi-CLlR3RB1.js → vue-ui-kpi-C0kZxq3K.js} +4 -4
- package/dist/{vue-ui-kpi-YxP9VEld.cjs → vue-ui-kpi-CaqMEHto.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-Ci--uadG.cjs → vue-ui-mini-loader-DGVlizno.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C3STpvno.js → vue-ui-mini-loader-DfiHD95x.js} +2 -2
- package/dist/{vue-ui-molecule-C75VtN_7.cjs → vue-ui-molecule-BTtAYDlx.cjs} +1 -1
- package/dist/{vue-ui-molecule-BhkU3GG9.js → vue-ui-molecule-MmZA7D4v.js} +9 -9
- package/dist/{vue-ui-mood-radar-qkkSh5uu.cjs → vue-ui-mood-radar-C-qaQqJf.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-D6TUYY_M.js → vue-ui-mood-radar-DRHMkdU1.js} +9 -9
- package/dist/{vue-ui-nested-donuts-BZCpf3YO.js → vue-ui-nested-donuts-BZV-PTLD.js} +9 -9
- package/dist/{vue-ui-nested-donuts-CMRz1BD7.cjs → vue-ui-nested-donuts-BkpZgLg7.cjs} +1 -1
- package/dist/{vue-ui-onion--dpVGKXA.js → vue-ui-onion-Bpw8RJ7Y.js} +9 -9
- package/dist/{vue-ui-onion-DlpliEql.cjs → vue-ui-onion-C4OvOsH0.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-DI2yWHex.js → vue-ui-parallel-coordinate-plot-Bf64Wi3u.js} +10 -10
- package/dist/{vue-ui-parallel-coordinate-plot-Bk6c5TU6.cjs → vue-ui-parallel-coordinate-plot-yFikaAWJ.cjs} +1 -1
- package/dist/{vue-ui-quadrant-DlyQdOTe.cjs → vue-ui-quadrant-BVHTFKxd.cjs} +1 -1
- package/dist/{vue-ui-quadrant-61FAsLt_.js → vue-ui-quadrant-CmCcySxg.js} +10 -10
- package/dist/{vue-ui-quick-chart-D9118LBz.js → vue-ui-quick-chart-Cml1Twya.js} +6 -6
- package/dist/{vue-ui-quick-chart-Bo9EatY6.cjs → vue-ui-quick-chart-DrZwV4mI.cjs} +1 -1
- package/dist/{vue-ui-radar-DAcOkXYC.cjs → vue-ui-radar-DE3BMdwV.cjs} +1 -1
- package/dist/{vue-ui-radar-VzDbMQrc.js → vue-ui-radar-DP1EuYGX.js} +10 -10
- package/dist/{vue-ui-rating-Chd-JwKZ.js → vue-ui-rating-BkYeHWvl.js} +2 -2
- package/dist/{vue-ui-rating-C9s1UuCt.cjs → vue-ui-rating-RbXEpR6a.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-Byo0UcEM.cjs → vue-ui-relation-circle-Dx2XZJS8.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CtIAIfL4.js → vue-ui-relation-circle-VO7PJR9n.js} +5 -5
- package/dist/{vue-ui-rings-DgNSeH6a.cjs → vue-ui-rings-B-t-1DXJ.cjs} +1 -1
- package/dist/{vue-ui-rings-CGhwerNx.js → vue-ui-rings-DxG6p7tF.js} +9 -9
- package/dist/{vue-ui-scatter-P_2ULGfQ.js → vue-ui-scatter-BRrsv69b.js} +10 -10
- package/dist/{vue-ui-scatter-B-ojlWTB.cjs → vue-ui-scatter-ctKFC1hB.cjs} +1 -1
- package/dist/{vue-ui-screenshot-tFVVwLtm.js → vue-ui-screenshot-BBoHtZtA.js} +1 -1
- package/dist/{vue-ui-screenshot-CI8_1GLp.cjs → vue-ui-screenshot-DD0WkpyV.cjs} +1 -1
- package/dist/{vue-ui-skeleton-BxxNQUrb.js → vue-ui-skeleton-Cu-FCvsL.js} +2 -2
- package/dist/{vue-ui-skeleton-BnEVwnIx.cjs → vue-ui-skeleton-Gizw7vdX.cjs} +1 -1
- package/dist/{vue-ui-smiley-BQNccgAJ.cjs → vue-ui-smiley-L7yruIOu.cjs} +1 -1
- package/dist/{vue-ui-smiley-DcpmB774.js → vue-ui-smiley-NkuQEkp8.js} +2 -2
- package/dist/{vue-ui-spark-trend-Bh18Pfrn.cjs → vue-ui-spark-trend-DcBzFhgb.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-RL_EM0RZ.js → vue-ui-spark-trend-MaSpDNrO.js} +4 -4
- package/dist/{vue-ui-sparkbar-qP5wp1Am.js → vue-ui-sparkbar-B7THOIRm.js} +3 -3
- package/dist/{vue-ui-sparkbar-IwZY49cH.cjs → vue-ui-sparkbar-Dok2sQZ3.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-C-irMYQ7.cjs → vue-ui-sparkgauge-C4Edaz_0.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CieVHHem.js → vue-ui-sparkgauge-CJNO8fex.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-7PTHSMpu.cjs → vue-ui-sparkhistogram-CDuYk_7N.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CxE07zkX.js → vue-ui-sparkhistogram-DRsRAvI7.js} +4 -4
- package/dist/{vue-ui-sparkline-BV32rnNA.js → vue-ui-sparkline-CfsK5XqX.js} +3 -3
- package/dist/{vue-ui-sparkline-C4Z1nhoS.cjs → vue-ui-sparkline-KOF_6Pig.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-BPxh6x8e.cjs → vue-ui-sparkstackbar-Bd4BF7Ij.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-BxVHQmWd.js → vue-ui-sparkstackbar-BzvGezvJ.js} +3 -3
- package/dist/{vue-ui-stackbar-BIKMWKTB.js → vue-ui-stackbar-0rdD887I.js} +10 -10
- package/dist/{vue-ui-stackbar-BnhTABFS.cjs → vue-ui-stackbar-DXvxtOmc.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-Cfev39-s.js → vue-ui-strip-plot-CynA1j2D.js} +9 -9
- package/dist/{vue-ui-strip-plot-BoDJjL5h.cjs → vue-ui-strip-plot-DRTrhZ9F.cjs} +1 -1
- package/dist/{vue-ui-table-C8Ky-ayZ.cjs → vue-ui-table-DtaMAj7u.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BJUnCLfJ.js → vue-ui-table-heatmap-BDZuT9Qz.js} +4 -4
- package/dist/{vue-ui-table-heatmap-G0YbR7QX.cjs → vue-ui-table-heatmap-BO7xu77L.cjs} +1 -1
- package/dist/{vue-ui-table-cc6HxZm6.js → vue-ui-table-sVGjMZTH.js} +1 -1
- package/dist/{vue-ui-table-sparkline-CjB5rPvu.js → vue-ui-table-sparkline-BYv7kseR.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CB7YeTxk.cjs → vue-ui-table-sparkline-DSztHLaA.cjs} +1 -1
- package/dist/{vue-ui-thermometer-oCCUz0GL.js → vue-ui-thermometer-1CmzRurR.js} +5 -5
- package/dist/{vue-ui-thermometer-CGwZBdZB.cjs → vue-ui-thermometer-DDL90Qop.cjs} +1 -1
- package/dist/{vue-ui-timer-Ckc70jvb.cjs → vue-ui-timer-CqmIqHeg.cjs} +1 -1
- package/dist/{vue-ui-timer-BfXXvGcg.js → vue-ui-timer-DLf6i56p.js} +4 -4
- package/dist/{vue-ui-tiremarks-Di3x1YHW.cjs → vue-ui-tiremarks-BxfUFX-N.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-UswjRrUQ.js → vue-ui-tiremarks-r7bGmMg-.js} +5 -5
- package/dist/{vue-ui-treemap-CrAw0owp.cjs → vue-ui-treemap-Bs4erg0I.cjs} +1 -1
- package/dist/{vue-ui-treemap-BcPfm4KP.js → vue-ui-treemap-Da1vOiTg.js} +9 -9
- package/dist/{vue-ui-vertical-bar-2_WbKIT1.js → vue-ui-vertical-bar-ByBJTeg-.js} +9 -9
- package/dist/{vue-ui-vertical-bar-BScBqH6z.cjs → vue-ui-vertical-bar-Cd4AmrnX.cjs} +1 -1
- package/dist/{vue-ui-waffle-Dzi3EgQM.cjs → vue-ui-waffle-BEP6xNLO.cjs} +1 -1
- package/dist/{vue-ui-waffle-CStE_uxm.js → vue-ui-waffle-CHtCkZjz.js} +9 -9
- package/dist/{vue-ui-wheel-Eyej3znn.cjs → vue-ui-wheel-BBKNe16o.cjs} +1 -1
- package/dist/{vue-ui-wheel-FI9_Qnln.js → vue-ui-wheel-icxa1L4v.js} +5 -5
- package/dist/{vue-ui-word-cloud-M_xW3qre.cjs → vue-ui-word-cloud-CZnELuH6.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-Ycqmen8O.js → vue-ui-word-cloud-DZOxxmkR.js} +7 -7
- package/dist/vue-ui-xy-DNbVDgjT.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-uDottxNK.cjs → vue-ui-xy-canvas-BvaDluOT.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-w5aPclyY.js → vue-ui-xy-canvas-ChKN_Cn-.js} +10 -10
- package/dist/{vue-ui-xy-B5_TQJnd.js → vue-ui-xy-vIwvvGNZ.js} +465 -442
- package/package.json +1 -1
- package/dist/index-6dSPekJy.cjs +0 -4
- package/dist/vue-ui-xy-BrdhxozQ.cjs +0 -3
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { p as J } from "./pdf-97UbtKC2.js";
|
|
2
|
-
import { U as K, s as Q } from "./usePrinter-
|
|
3
|
-
import { c as
|
|
4
|
-
import { D as Ce } from "./DataTable-
|
|
5
|
-
import { _ as ke } from "./Title-
|
|
6
|
-
import { _ as we, u as Oe } from "./Tooltip-
|
|
7
|
-
import { _ as ve } from "./Shape-
|
|
8
|
-
import Ge from "./BaseIcon-
|
|
9
|
-
import ze from "./vue-ui-table-sparkline-
|
|
10
|
-
import pe from "./vue-ui-skeleton-
|
|
11
|
-
import { S as Te } from "./Slicer-
|
|
12
|
-
import Me from "./vue-ui-accordion-
|
|
13
|
-
import { u as
|
|
14
|
-
import { resolveComponent as P, openBlock as r, createElementBlock as i, normalizeClass as T, normalizeStyle as L, createVNode as
|
|
15
|
-
import { _ as
|
|
16
|
-
const
|
|
2
|
+
import { U as K, s as Q } from "./usePrinter-CLjymPxw.js";
|
|
3
|
+
import { c as Z, a as j, t as $, v as ee, p as te, u as ae, P as X, J as M, f as q, F as le, U as re, i as ie, V as se, W as oe, M as ne, Y as ce, y as he, s as de, d as ue, z as ge, b as fe, r as be, q as me, D as Ie, S as Ne, Z as _e, w as xe, x as Fe, e as ye, o as Ae, _ as Le, C as Se } from "./index-CLohkSjv.js";
|
|
4
|
+
import { D as Ce } from "./DataTable-xRoJJLCK.js";
|
|
5
|
+
import { _ as ke } from "./Title-WVL1w90F.js";
|
|
6
|
+
import { _ as we, u as Oe } from "./Tooltip-B5_8pR7S.js";
|
|
7
|
+
import { _ as ve } from "./Shape-Cnsn1U1B.js";
|
|
8
|
+
import Ge from "./BaseIcon-D7REqiel.js";
|
|
9
|
+
import ze from "./vue-ui-table-sparkline-BYv7kseR.js";
|
|
10
|
+
import pe from "./vue-ui-skeleton-Cu-FCvsL.js";
|
|
11
|
+
import { S as Te } from "./Slicer-CdoJYj--.js";
|
|
12
|
+
import Me from "./vue-ui-accordion-B6lUgTu6.js";
|
|
13
|
+
import { u as U } from "./useNestedProp-BsIUgLPI.js";
|
|
14
|
+
import { resolveComponent as P, openBlock as r, createElementBlock as i, normalizeClass as T, normalizeStyle as L, createVNode as Y, createCommentVNode as c, createBlock as V, createSlots as Pe, withCtx as z, renderSlot as v, normalizeProps as W, guardReactiveProps as B, createElementVNode as u, Fragment as b, renderList as I, toDisplayString as C, withDirectives as Ve, vModelCheckbox as Re, createTextVNode as De } from "vue";
|
|
15
|
+
import { _ as Ee } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const He = Z(), We = {
|
|
17
17
|
name: "vue-ui-xy",
|
|
18
18
|
props: {
|
|
19
19
|
config: {
|
|
@@ -42,15 +42,15 @@ const Be = U(), Ye = {
|
|
|
42
42
|
Accordion: Me
|
|
43
43
|
},
|
|
44
44
|
data() {
|
|
45
|
-
this.dataset.forEach((
|
|
46
|
-
[null, void 0].includes(
|
|
45
|
+
this.dataset.forEach((h, m) => {
|
|
46
|
+
[null, void 0].includes(h.series) && this.error({
|
|
47
47
|
componentName: "VueUiXy",
|
|
48
48
|
type: "datasetSerieAttribute",
|
|
49
49
|
property: "series (number[])",
|
|
50
|
-
index:
|
|
50
|
+
index: m
|
|
51
51
|
});
|
|
52
52
|
});
|
|
53
|
-
const l = Math.max(...this.dataset.map((
|
|
53
|
+
const l = Math.max(...this.dataset.map((h) => h.series.length)), o = {
|
|
54
54
|
start: 0,
|
|
55
55
|
end: l
|
|
56
56
|
};
|
|
@@ -96,14 +96,14 @@ const Be = U(), Ye = {
|
|
|
96
96
|
selectedSerieIndex: null,
|
|
97
97
|
selectedRowIndex: null,
|
|
98
98
|
segregatedSeries: [],
|
|
99
|
-
uniqueId:
|
|
99
|
+
uniqueId: Z(),
|
|
100
100
|
step: 0,
|
|
101
101
|
slicer: o,
|
|
102
102
|
__to__: null,
|
|
103
103
|
maxX: l,
|
|
104
104
|
showSparklineTable: !0,
|
|
105
105
|
segregateStep: 0,
|
|
106
|
-
sliderId:
|
|
106
|
+
sliderId: He,
|
|
107
107
|
fontSizes: {
|
|
108
108
|
xAxis: 18,
|
|
109
109
|
yAxis: 12,
|
|
@@ -150,7 +150,7 @@ const Be = U(), Ye = {
|
|
|
150
150
|
id: t.id,
|
|
151
151
|
yOffset: t.yOffset || 0,
|
|
152
152
|
individualHeight: t.individualHeight || this.drawingArea.height
|
|
153
|
-
})),
|
|
153
|
+
})), h = this.plotSet.map((t) => ({
|
|
154
154
|
name: t.name,
|
|
155
155
|
color: t.color,
|
|
156
156
|
scale: t.individualScale,
|
|
@@ -162,8 +162,8 @@ const Be = U(), Ye = {
|
|
|
162
162
|
id: t.id,
|
|
163
163
|
yOffset: t.yOffset || 0,
|
|
164
164
|
individualHeight: t.individualHeight || this.drawingArea.height
|
|
165
|
-
})),
|
|
166
|
-
return [...l, ...o, ...
|
|
165
|
+
})), m = [...l, ...o, ...h].flatMap((t) => t).length;
|
|
166
|
+
return [...l, ...o, ...h].flatMap((t, e) => ({
|
|
167
167
|
id: t.id,
|
|
168
168
|
scaleLabel: t.scaleLabel,
|
|
169
169
|
name: t.name,
|
|
@@ -171,7 +171,7 @@ const Be = U(), Ye = {
|
|
|
171
171
|
scale: t.scale,
|
|
172
172
|
yOffset: t.yOffset,
|
|
173
173
|
individualHeight: t.individualHeight,
|
|
174
|
-
x: this.mutableConfig.isStacked ? this.drawingArea.left : this.drawingArea.left /
|
|
174
|
+
x: this.mutableConfig.isStacked ? this.drawingArea.left : this.drawingArea.left / m * (e + 1),
|
|
175
175
|
yLabels: t.scaleYLabels || t.scale.ticks.map((N) => ({
|
|
176
176
|
y: N >= 0 ? t.zero - t.individualHeight * (N / t.max) : t.zero + t.individualHeight * Math.abs(N) / t.max,
|
|
177
177
|
value: N
|
|
@@ -194,8 +194,8 @@ const Be = U(), Ye = {
|
|
|
194
194
|
userConfig: this.config,
|
|
195
195
|
defaultConfig: l
|
|
196
196
|
});
|
|
197
|
-
return o.theme ? {
|
|
198
|
-
...
|
|
197
|
+
return "highlightArea" in this.config.chart && (Array.isArray(this.config.chart.highlightArea) ? o.chart.highlightArea = this.config.chart.highlightArea : o.chart.highlightArea = [this.config.chart.highlightArea]), o.theme ? {
|
|
198
|
+
...U({
|
|
199
199
|
userConfig: this.themes.vue_ui_xy[o.theme] || this.config,
|
|
200
200
|
defaultConfig: o
|
|
201
201
|
}),
|
|
@@ -207,11 +207,19 @@ const Be = U(), Ye = {
|
|
|
207
207
|
}
|
|
208
208
|
},
|
|
209
209
|
hasHighlightArea() {
|
|
210
|
-
return this.FINAL_CONFIG.chart.highlightArea && this.FINAL_CONFIG.chart.highlightArea.show;
|
|
210
|
+
return Array.isArray(this.FINAL_CONFIG.chart.highlightArea) ? this.FINAL_CONFIG.chart.highlightArea.some((l) => l.show) : this.FINAL_CONFIG.chart.highlightArea && this.FINAL_CONFIG.chart.highlightArea.show;
|
|
211
211
|
},
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
212
|
+
highlightAreas() {
|
|
213
|
+
if (Array.isArray(this.FINAL_CONFIG.chart.highlightArea))
|
|
214
|
+
return this.FINAL_CONFIG.chart.highlightArea.map((o) => ({
|
|
215
|
+
...o,
|
|
216
|
+
span: o.from === o.to ? 1 : o.to < o.from ? 0 : o.to - o.from + 1
|
|
217
|
+
}));
|
|
218
|
+
const l = this.FINAL_CONFIG.chart.highlightArea;
|
|
219
|
+
return [{ ...l, span: l.from === l.to ? 1 : l.to < l.from ? 0 : l.to - l.from + 1 }];
|
|
220
|
+
},
|
|
221
|
+
xPadding() {
|
|
222
|
+
return this.FINAL_CONFIG.chart.grid.position === "middle" ? 0 : this.drawingArea.width / this.maxSeries / 2;
|
|
215
223
|
},
|
|
216
224
|
relativeZero() {
|
|
217
225
|
return this.niceScale.min >= 0 ? 0 : Math.abs(this.niceScale.min);
|
|
@@ -222,7 +230,7 @@ const Be = U(), Ye = {
|
|
|
222
230
|
safeDataset() {
|
|
223
231
|
return this.useSafeValues ? this.dataset.map((l, o) => ({
|
|
224
232
|
...l,
|
|
225
|
-
series: l.series.map((
|
|
233
|
+
series: l.series.map((h) => this.isSafeValue(h) ? h : null).slice(this.slicer.start, this.slicer.end),
|
|
226
234
|
color: this.convertColorToHex(l.color ? l.color : this.customPalette[o] ? this.customPalette[o] : this.palette[o]),
|
|
227
235
|
id: `uniqueId_${o}`
|
|
228
236
|
})) : this.dataset;
|
|
@@ -230,13 +238,13 @@ const Be = U(), Ye = {
|
|
|
230
238
|
relativeDataset() {
|
|
231
239
|
return this.safeDataset.map((l, o) => ({
|
|
232
240
|
...l,
|
|
233
|
-
series: l.series.map((
|
|
241
|
+
series: l.series.map((h) => h + this.relativeZero),
|
|
234
242
|
absoluteValues: l.series
|
|
235
243
|
})).filter((l) => !this.segregatedSeries.includes(l.id));
|
|
236
244
|
},
|
|
237
245
|
tableSparklineDataset() {
|
|
238
246
|
return this.relativeDataset.map((l) => {
|
|
239
|
-
const o = l.absoluteValues.map((
|
|
247
|
+
const o = l.absoluteValues.map((h) => [void 0, null].includes(h) ? 0 : h);
|
|
240
248
|
return {
|
|
241
249
|
id: l.id,
|
|
242
250
|
name: l.name,
|
|
@@ -275,7 +283,7 @@ const Be = U(), Ye = {
|
|
|
275
283
|
return this.safeDataset.map((l, o) => ({
|
|
276
284
|
absoluteIndex: o,
|
|
277
285
|
...l,
|
|
278
|
-
series: l.series.map((
|
|
286
|
+
series: l.series.map((h) => h + this.relativeZero),
|
|
279
287
|
absoluteValues: l.series,
|
|
280
288
|
segregate: () => this.segregate(l),
|
|
281
289
|
isSegregated: this.segregatedSeries.includes(l.id)
|
|
@@ -284,45 +292,45 @@ const Be = U(), Ye = {
|
|
|
284
292
|
barSet() {
|
|
285
293
|
return this.activeSeriesWithStackRatios.filter((l) => l.type === "bar").map((l, o) => {
|
|
286
294
|
this.checkAutoScaleError(l);
|
|
287
|
-
const
|
|
288
|
-
ratios: l.absoluteValues.filter((
|
|
289
|
-
valueMin:
|
|
290
|
-
valueMax:
|
|
295
|
+
const h = Math.min(...l.absoluteValues.filter((d) => ![null, void 0].includes(d))), m = Math.max(...l.absoluteValues.filter((d) => ![null, void 0].includes(d))), e = {
|
|
296
|
+
ratios: l.absoluteValues.filter((d) => ![null, void 0].includes(d)).map((d) => (d - h) / (m - h)),
|
|
297
|
+
valueMin: h,
|
|
298
|
+
valueMax: m < 0 ? 0 : m
|
|
291
299
|
}, N = {
|
|
292
300
|
max: l.scaleMax || Math.max(...l.absoluteValues) || 1,
|
|
293
|
-
min: l.scaleMin || Math.min(...l.absoluteValues.filter((
|
|
294
|
-
}, A = l.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, f = this.
|
|
295
|
-
const
|
|
301
|
+
min: l.scaleMin || Math.min(...l.absoluteValues.filter((d) => ![void 0, null].includes(d))) > 0 ? 0 : Math.min(...l.absoluteValues.filter((d) => ![null, void 0].includes(d)))
|
|
302
|
+
}, A = l.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, f = this.calculateNiceScaleWithExactExtremes(N.min, N.max, A), x = this.calculateNiceScaleWithExactExtremes(e.valueMin, e.valueMax, A), p = f.min >= 0 ? 0 : Math.abs(f.min), k = 0, w = f.max + p, G = x.max + Math.abs(k), _ = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - l.cumulatedStackRatio) : 0, S = this.mutableConfig.isStacked ? this.drawingArea.height * l.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, a = this.drawingArea.bottom - _ - S * p / w, n = this.drawingArea.bottom - _ - S * k / G, s = this.absoluteDataset.filter((d) => d.type === "bar").filter((d) => !this.segregatedSeries.includes(d.id)).length, g = l.series.map((d, F) => {
|
|
303
|
+
const E = this.mutableConfig.useIndividualScale ? (l.absoluteValues[F] + p) / w : this.ratioToMax(d), H = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * F : this.drawingArea.left + this.slot.bar * o + this.slot.bar * F * s - this.barSlot / 2 - o * this.barPeriodGap;
|
|
296
304
|
return {
|
|
297
305
|
yOffset: _,
|
|
298
306
|
individualHeight: S,
|
|
299
|
-
x:
|
|
300
|
-
y: this.drawingArea.bottom - _ - S *
|
|
301
|
-
value: l.absoluteValues[
|
|
307
|
+
x: H,
|
|
308
|
+
y: this.drawingArea.bottom - _ - S * E,
|
|
309
|
+
value: l.absoluteValues[F],
|
|
302
310
|
zeroPosition: a,
|
|
303
311
|
individualMax: w,
|
|
304
|
-
comment: l.comments && l.comments.slice(this.slicer.start, this.slicer.end)[
|
|
312
|
+
comment: l.comments && l.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
305
313
|
};
|
|
306
|
-
}), D = l.absoluteValues.map((
|
|
307
|
-
const
|
|
314
|
+
}), D = l.absoluteValues.map((d) => x.min >= 0 ? (d - Math.abs(x.min)) / (x.max - Math.abs(x.min)) : (d + Math.abs(x.min)) / (x.max + Math.abs(x.min))), R = l.series.map((d, F) => {
|
|
315
|
+
const E = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * F : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar * o + this.slot.bar * F * this.absoluteDataset.filter((H) => H.type === "bar").filter((H) => !this.segregatedSeries.includes(H.id)).length;
|
|
308
316
|
return {
|
|
309
317
|
yOffset: _,
|
|
310
318
|
individualHeight: S,
|
|
311
|
-
x:
|
|
312
|
-
y: this.drawingArea.bottom - _ - (S * D[
|
|
313
|
-
value: l.absoluteValues[
|
|
319
|
+
x: E,
|
|
320
|
+
y: this.drawingArea.bottom - _ - (S * D[F] || 0),
|
|
321
|
+
value: l.absoluteValues[F],
|
|
314
322
|
zeroPosition: a,
|
|
315
323
|
individualMax: w,
|
|
316
|
-
comment: l.comments && l.comments.slice(this.slicer.start, this.slicer.end)[
|
|
324
|
+
comment: l.comments && l.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
317
325
|
};
|
|
318
|
-
}), y = f.ticks.map((
|
|
319
|
-
y:
|
|
320
|
-
value:
|
|
321
|
-
})), O =
|
|
322
|
-
const
|
|
326
|
+
}), y = f.ticks.map((d) => ({
|
|
327
|
+
y: d >= 0 ? a - S * (d / w) : a + S * Math.abs(d) / w,
|
|
328
|
+
value: d
|
|
329
|
+
})), O = x.ticks.map((d) => {
|
|
330
|
+
const F = (d - x.min) / (x.max - x.min);
|
|
323
331
|
return {
|
|
324
|
-
y:
|
|
325
|
-
value:
|
|
332
|
+
y: d >= 0 ? n - S * F : n + S * F,
|
|
333
|
+
value: d
|
|
326
334
|
};
|
|
327
335
|
});
|
|
328
336
|
return {
|
|
@@ -331,7 +339,7 @@ const Be = U(), Ye = {
|
|
|
331
339
|
autoScaleYLabels: O,
|
|
332
340
|
individualHeight: S,
|
|
333
341
|
scaleYLabels: l.autoScaling ? O : y,
|
|
334
|
-
individualScale: l.autoScaling ?
|
|
342
|
+
individualScale: l.autoScaling ? x : f,
|
|
335
343
|
individualMax: l.autoScaling ? G : w,
|
|
336
344
|
zeroPosition: l.autoScaling ? n : a,
|
|
337
345
|
plots: l.autoScaling ? R : g
|
|
@@ -347,37 +355,37 @@ const Be = U(), Ye = {
|
|
|
347
355
|
lineSet() {
|
|
348
356
|
return this.activeSeriesWithStackRatios.filter((l) => l.type === "line").map((l) => {
|
|
349
357
|
this.checkAutoScaleError(l);
|
|
350
|
-
const o = Math.min(...l.absoluteValues.filter((
|
|
351
|
-
ratios: l.absoluteValues.filter((
|
|
358
|
+
const o = Math.min(...l.absoluteValues.filter((d) => ![void 0, null].includes(d))), h = Math.max(...l.absoluteValues.filter((d) => ![void 0, null].includes(d))) || 1, t = {
|
|
359
|
+
ratios: l.absoluteValues.filter((d) => ![null, void 0].includes(d)).map((d) => (d - o) / (h - o)),
|
|
352
360
|
valueMin: o,
|
|
353
|
-
valueMax:
|
|
361
|
+
valueMax: h
|
|
354
362
|
}, e = {
|
|
355
363
|
max: l.scaleMax || Math.max(...l.absoluteValues) || 1,
|
|
356
364
|
min: l.scaleMin || (Math.min(...l.absoluteValues) > 0 ? 0 : Math.min(...l.absoluteValues))
|
|
357
|
-
}, N = l.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = this.
|
|
358
|
-
const
|
|
365
|
+
}, N = l.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = this.calculateNiceScaleWithExactExtremes(e.min, e.max, N), f = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax, N), x = A.min >= 0 ? 0 : Math.abs(A.min), p = 0, k = A.max + Math.abs(x), w = f.max + Math.abs(p), G = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - l.cumulatedStackRatio) : 0, _ = this.mutableConfig.isStacked ? this.drawingArea.height * l.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, S = this.drawingArea.bottom - G - _ * x / k, a = this.drawingArea.bottom - G - _ * p / w, n = l.series.map((d, F) => {
|
|
366
|
+
const E = this.mutableConfig.useIndividualScale ? (l.absoluteValues[F] + Math.abs(x)) / k : this.ratioToMax(d);
|
|
359
367
|
return {
|
|
360
|
-
x: this.drawingArea.left + this.slot.line / 2 + this.slot.line *
|
|
361
|
-
y: this.drawingArea.bottom - G - _ *
|
|
362
|
-
value: l.absoluteValues[
|
|
363
|
-
comment: l.comments && l.comments.slice(this.slicer.start, this.slicer.end)[
|
|
368
|
+
x: this.drawingArea.left + this.slot.line / 2 + this.slot.line * F,
|
|
369
|
+
y: this.drawingArea.bottom - G - _ * E,
|
|
370
|
+
value: l.absoluteValues[F],
|
|
371
|
+
comment: l.comments && l.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
364
372
|
};
|
|
365
|
-
}), s = l.absoluteValues.map((
|
|
366
|
-
if (![void 0, null].includes(l.absoluteValues[
|
|
373
|
+
}), s = l.absoluteValues.map((d) => f.min >= 0 ? (d - Math.abs(f.min)) / (f.max - Math.abs(f.min)) : (d + Math.abs(f.min)) / (f.max + Math.abs(f.min))), g = l.series.map((d, F) => {
|
|
374
|
+
if (![void 0, null].includes(l.absoluteValues[F]))
|
|
367
375
|
return {
|
|
368
|
-
x: this.drawingArea.left + this.slot.line / 2 + this.slot.line *
|
|
369
|
-
y: this.drawingArea.bottom - G - (_ * s[
|
|
370
|
-
value: l.absoluteValues[
|
|
371
|
-
comment: l.comments && l.comments.slice(this.slicer.start, this.slicer.end)[
|
|
376
|
+
x: this.drawingArea.left + this.slot.line / 2 + this.slot.line * F,
|
|
377
|
+
y: this.drawingArea.bottom - G - (_ * s[F] || 0),
|
|
378
|
+
value: l.absoluteValues[F],
|
|
379
|
+
comment: l.comments && l.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
372
380
|
};
|
|
373
|
-
}), D = this.createSmoothPath(n), R = this.createSmoothPath(g), y = A.ticks.map((
|
|
374
|
-
y:
|
|
375
|
-
value:
|
|
376
|
-
})), O = f.ticks.map((
|
|
377
|
-
const
|
|
381
|
+
}), D = this.createSmoothPath(n), R = this.createSmoothPath(g), y = A.ticks.map((d) => ({
|
|
382
|
+
y: d >= 0 ? S - _ * (d / k) : S + _ * Math.abs(d) / k,
|
|
383
|
+
value: d
|
|
384
|
+
})), O = f.ticks.map((d) => {
|
|
385
|
+
const F = (d - f.min) / (f.max - f.min);
|
|
378
386
|
return {
|
|
379
|
-
y:
|
|
380
|
-
value:
|
|
387
|
+
y: d >= 0 ? a - _ * F : a + _ * F,
|
|
388
|
+
value: d
|
|
381
389
|
};
|
|
382
390
|
});
|
|
383
391
|
return {
|
|
@@ -398,18 +406,18 @@ const Be = U(), Ye = {
|
|
|
398
406
|
plotSet() {
|
|
399
407
|
return this.activeSeriesWithStackRatios.filter((l) => l.type === "plot").map((l) => {
|
|
400
408
|
this.checkAutoScaleError(l);
|
|
401
|
-
const o = Math.min(...l.absoluteValues.filter((y) => ![null, void 0].includes(y))),
|
|
402
|
-
ratios: l.absoluteValues.filter((y) => ![null, void 0].includes(y)).map((y) => (y - o) / (
|
|
409
|
+
const o = Math.min(...l.absoluteValues.filter((y) => ![null, void 0].includes(y))), h = Math.max(...l.absoluteValues.filter((y) => ![null, void 0].includes(y))) || 1, t = {
|
|
410
|
+
ratios: l.absoluteValues.filter((y) => ![null, void 0].includes(y)).map((y) => (y - o) / (h - o)),
|
|
403
411
|
valueMin: o,
|
|
404
|
-
valueMax:
|
|
412
|
+
valueMax: h
|
|
405
413
|
}, e = {
|
|
406
414
|
max: l.scaleMax || Math.max(...l.absoluteValues) || 1,
|
|
407
415
|
min: l.scaleMin || Math.min(...l.absoluteValues) > 0 ? 0 : Math.min(...l.absoluteValues)
|
|
408
|
-
}, N = l.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = this.
|
|
409
|
-
const
|
|
416
|
+
}, N = l.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = this.calculateNiceScaleWithExactExtremes(e.min, e.max, N), f = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax, N), x = A.min >= 0 ? 0 : Math.abs(A.min), p = 0, k = A.max + x, w = f.max + Math.abs(p), G = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - l.cumulatedStackRatio) : 0, _ = this.mutableConfig.isStacked ? this.drawingArea.height * l.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, S = this.drawingArea.bottom - G - _ * x / k, a = this.drawingArea.bottom - G - _ * p / w, n = l.series.map((y, O) => {
|
|
417
|
+
const d = this.mutableConfig.useIndividualScale ? (l.absoluteValues[O] + Math.abs(x)) / k : this.ratioToMax(y);
|
|
410
418
|
return {
|
|
411
419
|
x: this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * O,
|
|
412
|
-
y: this.drawingArea.bottom - G - _ *
|
|
420
|
+
y: this.drawingArea.bottom - G - _ * d,
|
|
413
421
|
value: l.absoluteValues[O],
|
|
414
422
|
comment: l.comments && l.comments.slice(this.slicer.start, this.slicer.end)[O] || ""
|
|
415
423
|
};
|
|
@@ -460,7 +468,7 @@ const Be = U(), Ye = {
|
|
|
460
468
|
return l > 0 ? 0 : l;
|
|
461
469
|
},
|
|
462
470
|
niceScale() {
|
|
463
|
-
return this.
|
|
471
|
+
return this.calculateNiceScaleWithExactExtremes(this.min, this.max < 0 ? 0 : this.max, this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps);
|
|
464
472
|
},
|
|
465
473
|
maxSeries() {
|
|
466
474
|
return this.slicer.end - this.slicer.start;
|
|
@@ -487,15 +495,15 @@ const Be = U(), Ye = {
|
|
|
487
495
|
},
|
|
488
496
|
table() {
|
|
489
497
|
if (this.safeDataset.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
490
|
-
const l = this.relativeDataset.map((
|
|
491
|
-
label:
|
|
492
|
-
color:
|
|
493
|
-
type:
|
|
498
|
+
const l = this.relativeDataset.map((h) => ({
|
|
499
|
+
label: h.name,
|
|
500
|
+
color: h.color,
|
|
501
|
+
type: h.type
|
|
494
502
|
})), o = [];
|
|
495
|
-
return this.timeLabels.forEach((
|
|
496
|
-
const t = [
|
|
503
|
+
return this.timeLabels.forEach((h, m) => {
|
|
504
|
+
const t = [h];
|
|
497
505
|
this.relativeDataset.forEach((e) => {
|
|
498
|
-
t.push(this.canShowValue(e.absoluteValues[
|
|
506
|
+
t.push(this.canShowValue(e.absoluteValues[m]) ? Number(e.absoluteValues[m].toFixed(this.FINAL_CONFIG.table.rounding)) : "");
|
|
499
507
|
}), o.push(t);
|
|
500
508
|
}), { head: l, body: o };
|
|
501
509
|
},
|
|
@@ -506,7 +514,7 @@ const Be = U(), Ye = {
|
|
|
506
514
|
const e = this.relativeDataset.map((N) => N.absoluteValues[t] ?? 0).reduce((N, A) => N + A, 0);
|
|
507
515
|
o.push([this.timeLabels[t] ?? "-"].concat(this.relativeDataset.map((N) => (N.absoluteValues[t] ?? 0).toFixed(this.FINAL_CONFIG.table.rounding))).concat((e ?? 0).toFixed(this.FINAL_CONFIG.table.rounding)));
|
|
508
516
|
}
|
|
509
|
-
const
|
|
517
|
+
const h = {
|
|
510
518
|
th: {
|
|
511
519
|
backgroundColor: this.FINAL_CONFIG.table.th.backgroundColor,
|
|
512
520
|
color: this.FINAL_CONFIG.table.th.color,
|
|
@@ -518,8 +526,8 @@ const Be = U(), Ye = {
|
|
|
518
526
|
outline: this.FINAL_CONFIG.table.td.outline
|
|
519
527
|
},
|
|
520
528
|
breakpoint: this.FINAL_CONFIG.table.responsiveBreakpoint
|
|
521
|
-
},
|
|
522
|
-
return { head: l, body: o, config:
|
|
529
|
+
}, m = [this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map((t) => t.name)).concat(this.FINAL_CONFIG.table.columnNames.total);
|
|
530
|
+
return { head: l, body: o, config: h, colNames: m };
|
|
523
531
|
},
|
|
524
532
|
dataTooltipSlot() {
|
|
525
533
|
return {
|
|
@@ -538,14 +546,14 @@ const Be = U(), Ye = {
|
|
|
538
546
|
name: l.name,
|
|
539
547
|
color: l.color,
|
|
540
548
|
type: l.type,
|
|
541
|
-
value: l.absoluteValues.find((o,
|
|
549
|
+
value: l.absoluteValues.find((o, h) => h === this.selectedSerieIndex),
|
|
542
550
|
comments: l.comments || []
|
|
543
551
|
}));
|
|
544
552
|
},
|
|
545
553
|
tooltipContent() {
|
|
546
554
|
let l = "", o = this.selectedSeries.map((t) => t.value).filter((t) => this.isSafeValue(t) && t !== null).reduce((t, e) => Math.abs(t) + Math.abs(e), 0);
|
|
547
|
-
const
|
|
548
|
-
return this.isFunction(
|
|
555
|
+
const h = this.timeLabels[this.selectedSerieIndex], m = this.FINAL_CONFIG.chart.tooltip.customFormat;
|
|
556
|
+
return this.isFunction(m) && this.functionReturnsString(() => m({
|
|
549
557
|
seriesIndex: this.selectedSerieIndex,
|
|
550
558
|
datapoint: this.selectedSeries,
|
|
551
559
|
series: this.absoluteDataset,
|
|
@@ -553,7 +561,7 @@ const Be = U(), Ye = {
|
|
|
553
561
|
lines: this.lineSet,
|
|
554
562
|
plots: this.plotSet,
|
|
555
563
|
config: this.FINAL_CONFIG
|
|
556
|
-
})) ?
|
|
564
|
+
})) ? m({
|
|
557
565
|
seriesIndex: this.selectedSerieIndex,
|
|
558
566
|
datapoint: this.selectedSeries,
|
|
559
567
|
series: this.absoluteDataset,
|
|
@@ -561,7 +569,7 @@ const Be = U(), Ye = {
|
|
|
561
569
|
lines: this.lineSet,
|
|
562
570
|
plots: this.plotSet,
|
|
563
571
|
config: this.FINAL_CONFIG
|
|
564
|
-
}) : (
|
|
572
|
+
}) : (h && (l += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${h}</div>`), this.selectedSeries.forEach((t) => {
|
|
565
573
|
if (this.isSafeValue(t.value)) {
|
|
566
574
|
let e = "", N = "";
|
|
567
575
|
switch (this.icons[t.type]) {
|
|
@@ -647,9 +655,9 @@ const Be = U(), Ye = {
|
|
|
647
655
|
index: o
|
|
648
656
|
});
|
|
649
657
|
}), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((l) => {
|
|
650
|
-
l.series.forEach((o,
|
|
651
|
-
this.isSafeValue(o) || console.warn(`
|
|
652
|
-
-----> The serie '${l.name}' contains the value '${o}' at index ${
|
|
658
|
+
l.series.forEach((o, h) => {
|
|
659
|
+
this.isSafeValue(o) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
660
|
+
-----> The serie '${l.name}' contains the value '${o}' at index ${h}.
|
|
653
661
|
'${o}' was converted to null to allow the chart to display.`);
|
|
654
662
|
});
|
|
655
663
|
}), document.addEventListener("mousemove", (l) => {
|
|
@@ -666,15 +674,15 @@ const Be = U(), Ye = {
|
|
|
666
674
|
isStacked: this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,
|
|
667
675
|
useIndividualScale: this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale
|
|
668
676
|
}, this.FINAL_CONFIG.responsive) {
|
|
669
|
-
const o = this.$refs.chart.parentNode, { height:
|
|
677
|
+
const o = this.$refs.chart.parentNode, { height: h, width: m } = o.getBoundingClientRect();
|
|
670
678
|
let t = null, e = 0;
|
|
671
679
|
this.FINAL_CONFIG.chart.title.show && (t = this.$refs.chartTitle, e = t.getBoundingClientRect().height);
|
|
672
680
|
let N = null, A = 0;
|
|
673
681
|
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (N = this.$refs.chartSlicer.$el, A = N.getBoundingClientRect().height);
|
|
674
|
-
let f = null,
|
|
675
|
-
this.FINAL_CONFIG.chart.legend.show && (f = this.$refs.chartLegend,
|
|
682
|
+
let f = null, x = 0;
|
|
683
|
+
this.FINAL_CONFIG.chart.legend.show && (f = this.$refs.chartLegend, x = f.getBoundingClientRect().height), this.height = h - e - x - A, this.width = m, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes(), new ResizeObserver((k) => {
|
|
676
684
|
for (const w of k)
|
|
677
|
-
t && (e = t.getBoundingClientRect().height), N && (A = N.getBoundingClientRect().height), f && (
|
|
685
|
+
t && (e = t.getBoundingClientRect().height), N && (A = N.getBoundingClientRect().height), f && (x = f.getBoundingClientRect().height), this.height = w.contentBoxSize[0].blockSize - e - x - A - 24, this.width = w.contentBoxSize[0].inlineSize, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
|
|
678
686
|
}).observe(o);
|
|
679
687
|
} else
|
|
680
688
|
this.height = this.FINAL_CONFIG.chart.height, this.width = this.FINAL_CONFIG.chart.width, this.viewBox = `0 0 ${this.width} ${this.height}`, this.fontSizes.dataLabels = this.FINAL_CONFIG.chart.grid.labels.fontSize, this.fontSizes.yAxis = this.FINAL_CONFIG.chart.grid.labels.axis.fontSize, this.fontSizes.xAxis = this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.fontSize, this.fontSizes.plotLabels = this.FINAL_CONFIG.chart.labels.fontSize, this.plotRadii.plot = this.FINAL_CONFIG.plot.radius, this.plotRadii.line = this.FINAL_CONFIG.line.radius;
|
|
@@ -683,30 +691,30 @@ const Be = U(), Ye = {
|
|
|
683
691
|
abbreviate: le,
|
|
684
692
|
assignStackRatios: re,
|
|
685
693
|
applyDataLabel: ie,
|
|
686
|
-
|
|
694
|
+
calculateNiceScaleWithExactExtremes: se,
|
|
687
695
|
checkNaN: oe,
|
|
688
696
|
createSmoothPath: ne,
|
|
689
|
-
isSafeValue:
|
|
690
|
-
treeShake:
|
|
691
|
-
shiftHue:
|
|
697
|
+
isSafeValue: ce,
|
|
698
|
+
treeShake: he,
|
|
699
|
+
shiftHue: de,
|
|
692
700
|
pdf: J,
|
|
693
701
|
img: Q,
|
|
694
|
-
convertColorToHex:
|
|
702
|
+
convertColorToHex: ue,
|
|
695
703
|
convertConfigColors: ge,
|
|
696
704
|
convertCustomPalette: fe,
|
|
697
705
|
downloadCsv: be,
|
|
698
|
-
createCsvContent:
|
|
699
|
-
adaptColorToBackground:
|
|
706
|
+
createCsvContent: me,
|
|
707
|
+
adaptColorToBackground: Ie,
|
|
700
708
|
calcLinearProgression: Ne,
|
|
701
709
|
useMouse: Oe,
|
|
702
710
|
closestDecimal: _e,
|
|
703
711
|
dataLabel: q,
|
|
704
|
-
isFunction:
|
|
705
|
-
functionReturnsString:
|
|
712
|
+
isFunction: xe,
|
|
713
|
+
functionReturnsString: Fe,
|
|
706
714
|
error: ye,
|
|
707
715
|
objectIsEmpty: Ae,
|
|
708
716
|
createTSpans: Le,
|
|
709
|
-
useNestedProp:
|
|
717
|
+
useNestedProp: U,
|
|
710
718
|
translateSize: Se,
|
|
711
719
|
convertSizes() {
|
|
712
720
|
this.fontSizes.dataLabels = this.translateSize({
|
|
@@ -764,26 +772,25 @@ const Be = U(), Ye = {
|
|
|
764
772
|
},
|
|
765
773
|
createArea(l) {
|
|
766
774
|
if (!l[0]) return [-10, -10, "", -10, -10];
|
|
767
|
-
const o = { x: l[0].x, y: this.zero },
|
|
775
|
+
const o = { x: l[0].x, y: this.zero }, h = { x: l.at(-1).x, y: this.zero }, m = [];
|
|
768
776
|
return l.forEach((t) => {
|
|
769
|
-
|
|
770
|
-
}), [o.x, o.y, ...
|
|
777
|
+
m.push(`${t.x},${t.y} `);
|
|
778
|
+
}), [o.x, o.y, ...m, h.x, h.y].toString();
|
|
771
779
|
},
|
|
772
780
|
createIndividualArea(l, o) {
|
|
773
781
|
if (!l[0]) return [-10, -10, "", -10, -10];
|
|
774
|
-
const
|
|
782
|
+
const h = { x: l[0] ? l[0].x : Math.min(...l.filter((e) => !!e).map((e) => e.x)), y: o }, m = { x: l.at(-1) ? l.at(-1).x : Math.min(...l.filter((e) => !!e).map((e) => e.x)), y: o }, t = [];
|
|
775
783
|
return l.filter((e) => !!e).forEach((e) => {
|
|
776
784
|
t.push(`${e.x},${e.y} `);
|
|
777
|
-
}), [
|
|
785
|
+
}), [h.x, h.y, ...t, m.x, m.y].toString();
|
|
778
786
|
},
|
|
779
787
|
createStar: X,
|
|
780
788
|
createPolygonPath: M,
|
|
781
|
-
/////////////////////////////// CANVAS /////////////////////////////////
|
|
782
789
|
fillArray(l, o) {
|
|
783
|
-
let
|
|
784
|
-
for (let
|
|
785
|
-
|
|
786
|
-
return
|
|
790
|
+
let h = Array(l).fill(0);
|
|
791
|
+
for (let m = 0; m < o.length && m < l; m += 1)
|
|
792
|
+
h[m] = o[m];
|
|
793
|
+
return h;
|
|
787
794
|
},
|
|
788
795
|
refreshSlicer() {
|
|
789
796
|
this.slicer = {
|
|
@@ -813,12 +820,12 @@ const Be = U(), Ye = {
|
|
|
813
820
|
return ![null, void 0, NaN].includes(l);
|
|
814
821
|
},
|
|
815
822
|
findClosestValue(l, o) {
|
|
816
|
-
let
|
|
823
|
+
let h = o[0], m = Math.abs(l - o[0]);
|
|
817
824
|
for (let t = 1; t < o.length; t += 1) {
|
|
818
825
|
const e = Math.abs(l - o[t]);
|
|
819
|
-
e <
|
|
826
|
+
e < m && o[t] < l && (h = o[t], m = e);
|
|
820
827
|
}
|
|
821
|
-
return
|
|
828
|
+
return h;
|
|
822
829
|
},
|
|
823
830
|
ratioToMax(l) {
|
|
824
831
|
return l / this.absoluteMax;
|
|
@@ -880,7 +887,7 @@ const Be = U(), Ye = {
|
|
|
880
887
|
}, 100);
|
|
881
888
|
},
|
|
882
889
|
generateCsv() {
|
|
883
|
-
const l = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], o = ["", ...this.table.head.map((e) => e.label)],
|
|
890
|
+
const l = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], o = ["", ...this.table.head.map((e) => e.label)], h = this.table.body, m = l.concat([o]).concat(h), t = this.createCsvContent(m);
|
|
884
891
|
this.downloadCsv({ csvContent: t, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
|
|
885
892
|
},
|
|
886
893
|
showSpinnerImage() {
|
|
@@ -898,7 +905,7 @@ const Be = U(), Ye = {
|
|
|
898
905
|
}, 100);
|
|
899
906
|
}
|
|
900
907
|
}
|
|
901
|
-
},
|
|
908
|
+
}, Be = ["id"], Ye = ["viewBox"], Xe = { key: 0 }, qe = { class: "vue-ui-xy-grid" }, Ue = ["stroke", "x1", "x2", "y1", "y2"], Ze = ["stroke", "x1", "x2", "y1", "y2"], Je = { key: 1 }, Ke = ["x1", "x2", "y1", "y2", "stroke"], Qe = ["x1", "x2", "y1", "y2", "stroke"], je = ["x1", "x2", "y1", "y2", "stroke"], $e = { key: 3 }, et = ["x1", "x2", "y1", "y2", "stroke"], tt = ["id"], at = ["stop-color"], lt = ["stop-color"], rt = ["stop-color"], it = ["id"], st = ["stop-color"], ot = ["stop-color"], nt = ["stop-color"], ct = ["id"], ht = ["stop-color"], dt = ["stop-color"], ut = ["id"], gt = ["stop-color"], ft = ["stop-color"], bt = ["id"], mt = ["stop-color"], It = ["stop-color"], Nt = ["x", "y", "height", "width", "fill"], _t = ["x", "y", "width"], xt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Ft = ["width", "x", "y"], yt = { key: 0 }, At = ["id"], Lt = ["fill"], St = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Ct = ["x", "y", "font-size", "fill"], kt = ["stroke", "x1", "x2", "y1", "y2"], wt = ["y", "width", "height", "fill"], Ot = ["x", "y", "width", "height", "fill"], vt = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Gt = { key: 3 }, zt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], pt = ["fill", "font-size", "transform"], Tt = ["x1", "x2", "y1", "y2", "stroke"], Mt = ["x", "y", "font-size", "fill"], Pt = ["x1", "x2", "y1", "y2", "stroke"], Vt = ["x", "y", "font-size", "fill"], Rt = ["width", "x", "y"], Dt = { style: { width: "100%" } }, Et = { key: 0 }, Ht = ["id"], Wt = ["fill"], Bt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Yt = ["x", "y", "font-size", "fill"], Xt = ["d", "stroke", "stroke-width", "stroke-dasharray"], qt = { key: 1 }, Ut = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Zt = { key: 0 }, Jt = ["d", "fill"], Kt = ["d", "fill"], Qt = ["d", "stroke", "stroke-width", "stroke-dasharray"], jt = { key: 2 }, $t = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ea = ["width", "x", "y"], ta = { style: { width: "100%" } }, aa = { key: 3 }, la = ["id"], ra = ["fill"], ia = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], sa = ["x", "y", "font-size", "fill"], oa = { key: 4 }, na = ["x", "y", "font-size", "fill"], ca = ["x", "y", "font-size", "fill", "font-weight"], ha = { key: 5 }, da = ["x", "y", "font-size", "fill"], ua = ["x", "y"], ga = ["x", "y"], fa = { key: 6 }, ba = ["x", "y", "font-size", "fill"], ma = ["x", "y"], Ia = ["x", "y"], Na = ["x", "y", "font-size", "fill", "innerHTML"], _a = ["x", "y", "font-size", "fill", "innerHTML"], xa = ["x", "y", "font-size", "fill", "innerHTML"], Fa = ["x", "y", "font-size", "fill", "innerHTML"], ya = ["x", "y", "width", "height", "fill", "onMouseenter"], Aa = ["font-size", "fill", "transform"], La = ["x", "y", "font-size", "fill"], Sa = { key: 8 }, Ca = ["text-anchor", "font-size", "fill", "transform"], ka = ["x", "y", "height", "width", "fill", "onMouseenter", "onClick"], wa = { key: 9 }, Oa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], va = { key: 10 }, Ga = ["x", "y"], za = ["cx", "cy", "r", "fill"], pa = {
|
|
902
909
|
key: 3,
|
|
903
910
|
class: "vue-data-ui-watermark"
|
|
904
911
|
}, Ta = ["onClick"], Ma = {
|
|
@@ -914,12 +921,12 @@ const Be = U(), Ye = {
|
|
|
914
921
|
}, Ra = ["fill"], Da = {
|
|
915
922
|
key: 7,
|
|
916
923
|
ref: "chartLegend"
|
|
917
|
-
},
|
|
924
|
+
}, Ea = {
|
|
918
925
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
919
926
|
"data-html2canvas-ignore": ""
|
|
920
|
-
},
|
|
921
|
-
function
|
|
922
|
-
const N = P("Title"), A = P("UserOptions"), f = P("Shape"),
|
|
927
|
+
}, Ha = ["innerHTML"];
|
|
928
|
+
function Wa(l, o, h, m, t, e) {
|
|
929
|
+
const N = P("Title"), A = P("UserOptions"), f = P("Shape"), x = P("Skeleton"), p = P("Slicer"), k = P("Tooltip"), w = P("BaseIcon"), G = P("TableSparkline"), _ = P("DataTable"), S = P("Accordion");
|
|
923
930
|
return r(), i("div", {
|
|
924
931
|
id: `vue-ui-xy_${t.uniqueId}`,
|
|
925
932
|
class: T(`vue-ui-xy ${t.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
@@ -932,7 +939,7 @@ function Ya(l, o, c, b, t, e) {
|
|
|
932
939
|
class: "vue-ui-xy-title",
|
|
933
940
|
style: L(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
934
941
|
}, [
|
|
935
|
-
|
|
942
|
+
Y(N, {
|
|
936
943
|
config: {
|
|
937
944
|
title: {
|
|
938
945
|
cy: "xy-div-title",
|
|
@@ -944,7 +951,7 @@ function Ya(l, o, c, b, t, e) {
|
|
|
944
951
|
}
|
|
945
952
|
}
|
|
946
953
|
}, null, 8, ["config"])
|
|
947
|
-
], 4)) :
|
|
954
|
+
], 4)) : c("", !0),
|
|
948
955
|
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset ? (r(), V(A, {
|
|
949
956
|
ref: "defails",
|
|
950
957
|
key: `user_options_${t.step}`,
|
|
@@ -959,7 +966,7 @@ function Ya(l, o, c, b, t, e) {
|
|
|
959
966
|
hasImg: e.FINAL_CONFIG.chart.userOptions.buttons.img,
|
|
960
967
|
hasLabel: e.FINAL_CONFIG.chart.userOptions.buttons.labels,
|
|
961
968
|
hasTable: e.FINAL_CONFIG.chart.userOptions.buttons.table,
|
|
962
|
-
hasStack:
|
|
969
|
+
hasStack: h.dataset.length > 1 && e.FINAL_CONFIG.chart.userOptions.buttons.stack,
|
|
963
970
|
hasFullscreen: e.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,
|
|
964
971
|
isStacked: t.mutableConfig.isStacked,
|
|
965
972
|
isFullscreen: t.isFullscreen,
|
|
@@ -1027,11 +1034,11 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1027
1034
|
l.$slots.optionFullscreen ? {
|
|
1028
1035
|
name: "optionFullscreen",
|
|
1029
1036
|
fn: z(({ toggleFullscreen: a, isFullscreen: n }) => [
|
|
1030
|
-
v(l.$slots, "optionFullscreen",
|
|
1037
|
+
v(l.$slots, "optionFullscreen", W(B({ toggleFullscreen: a, isFullscreen: n })), void 0, !0)
|
|
1031
1038
|
]),
|
|
1032
1039
|
key: "7"
|
|
1033
1040
|
} : void 0
|
|
1034
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "isTooltip", "titles", "onToggleFullscreen", "onGeneratePdf", "onGenerateCsv", "onGenerateImage", "onToggleTable", "onToggleLabels", "onToggleStack", "onToggleTooltip"])) :
|
|
1041
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "isTooltip", "titles", "onToggleFullscreen", "onGeneratePdf", "onGenerateCsv", "onGenerateImage", "onToggleTable", "onToggleLabels", "onToggleStack", "onToggleTooltip"])) : c("", !0),
|
|
1035
1042
|
e.isDataset ? (r(), i("svg", {
|
|
1036
1043
|
key: 2,
|
|
1037
1044
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1041,114 +1048,114 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1041
1048
|
style: L(`background:${e.FINAL_CONFIG.chart.backgroundColor}; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
1042
1049
|
}, [
|
|
1043
1050
|
e.maxSeries > 0 ? (r(), i("g", Xe, [
|
|
1044
|
-
|
|
1051
|
+
u("g", qe, [
|
|
1045
1052
|
e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (r(), i("line", {
|
|
1046
1053
|
key: 0,
|
|
1047
1054
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1048
1055
|
"stroke-width": "1",
|
|
1049
|
-
x1: e.drawingArea.left,
|
|
1050
|
-
x2: e.drawingArea.right,
|
|
1056
|
+
x1: e.drawingArea.left + e.xPadding,
|
|
1057
|
+
x2: e.drawingArea.right - e.xPadding,
|
|
1051
1058
|
y1: e.drawingArea.bottom,
|
|
1052
1059
|
y2: e.drawingArea.bottom,
|
|
1053
1060
|
"stroke-linecap": "round"
|
|
1054
|
-
}, null, 8,
|
|
1055
|
-
t.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (r(!0), i(
|
|
1056
|
-
a.id === t.selectedScale && a.yLabels.length ? (r(!0), i(
|
|
1057
|
-
x1: e.drawingArea.left,
|
|
1058
|
-
x2: e.drawingArea.right,
|
|
1061
|
+
}, null, 8, Ue)) : c("", !0),
|
|
1062
|
+
t.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (r(!0), i(b, { key: 2 }, I(e.allScales, (a) => (r(), i("g", null, [
|
|
1063
|
+
a.id === t.selectedScale && a.yLabels.length ? (r(!0), i(b, { key: 0 }, I(a.yLabels, (n) => (r(), i("line", {
|
|
1064
|
+
x1: e.drawingArea.left + e.xPadding,
|
|
1065
|
+
x2: e.drawingArea.right - e.xPadding,
|
|
1059
1066
|
y1: n.y,
|
|
1060
1067
|
y2: n.y,
|
|
1061
1068
|
stroke: a.color,
|
|
1062
1069
|
"stroke-width": 0.5,
|
|
1063
1070
|
"stroke-linecap": "round"
|
|
1064
|
-
}, null, 8, Qe))), 256)) : a.yLabels.length ? (r(!0), i(
|
|
1065
|
-
x1: e.drawingArea.left,
|
|
1066
|
-
x2: e.drawingArea.right,
|
|
1071
|
+
}, null, 8, Qe))), 256)) : a.yLabels.length ? (r(!0), i(b, { key: 1 }, I(a.yLabels, (n) => (r(), i("line", {
|
|
1072
|
+
x1: e.drawingArea.left + e.xPadding,
|
|
1073
|
+
x2: e.drawingArea.right - e.xPadding,
|
|
1067
1074
|
y1: n.y,
|
|
1068
1075
|
y2: n.y,
|
|
1069
1076
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1070
1077
|
"stroke-width": 0.5,
|
|
1071
1078
|
"stroke-linecap": "round"
|
|
1072
|
-
}, null, 8, je))), 256)) :
|
|
1073
|
-
]))), 256)) :
|
|
1079
|
+
}, null, 8, je))), 256)) : c("", !0)
|
|
1080
|
+
]))), 256)) : c("", !0) : (r(), i(b, { key: 1 }, [
|
|
1074
1081
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (r(), i("line", {
|
|
1075
1082
|
key: 0,
|
|
1076
1083
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1077
1084
|
"stroke-width": "1",
|
|
1078
|
-
x1: e.drawingArea.left,
|
|
1079
|
-
x2: e.drawingArea.left,
|
|
1085
|
+
x1: e.drawingArea.left + e.xPadding,
|
|
1086
|
+
x2: e.drawingArea.left + e.xPadding,
|
|
1080
1087
|
y1: e.drawingArea.top,
|
|
1081
1088
|
y2: e.drawingArea.bottom,
|
|
1082
1089
|
"stroke-linecap": "round"
|
|
1083
|
-
}, null, 8,
|
|
1090
|
+
}, null, 8, Ze)) : c("", !0),
|
|
1084
1091
|
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (r(), i("g", Je, [
|
|
1085
|
-
(r(!0), i(
|
|
1086
|
-
x1: e.drawingArea.left,
|
|
1087
|
-
x2: e.drawingArea.right,
|
|
1092
|
+
(r(!0), i(b, null, I(e.yLabels, (a) => (r(), i("line", {
|
|
1093
|
+
x1: e.drawingArea.left + e.xPadding,
|
|
1094
|
+
x2: e.drawingArea.right - e.xPadding,
|
|
1088
1095
|
y1: a.y,
|
|
1089
1096
|
y2: a.y,
|
|
1090
1097
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1091
1098
|
"stroke-width": 0.5,
|
|
1092
1099
|
"stroke-linecap": "round"
|
|
1093
1100
|
}, null, 8, Ke))), 256))
|
|
1094
|
-
])) :
|
|
1101
|
+
])) : c("", !0)
|
|
1095
1102
|
], 64)),
|
|
1096
1103
|
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (r(), i("g", $e, [
|
|
1097
|
-
(r(!0), i(
|
|
1104
|
+
(r(!0), i(b, null, I(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (a, n) => (r(), i("line", {
|
|
1098
1105
|
key: `grid_vertical_line_${n}`,
|
|
1099
|
-
x1: e.drawingArea.width / e.maxSeries * n + e.drawingArea.left,
|
|
1100
|
-
x2: e.drawingArea.width / e.maxSeries * n + e.drawingArea.left,
|
|
1106
|
+
x1: e.drawingArea.width / e.maxSeries * n + e.drawingArea.left + e.xPadding,
|
|
1107
|
+
x2: e.drawingArea.width / e.maxSeries * n + e.drawingArea.left + e.xPadding,
|
|
1101
1108
|
y1: e.drawingArea.top,
|
|
1102
1109
|
y2: e.drawingArea.bottom,
|
|
1103
1110
|
"stroke-width": "0.5",
|
|
1104
1111
|
stroke: e.FINAL_CONFIG.chart.grid.stroke
|
|
1105
1112
|
}, null, 8, et))), 128))
|
|
1106
|
-
])) :
|
|
1113
|
+
])) : c("", !0)
|
|
1107
1114
|
]),
|
|
1108
|
-
(r(!0), i(
|
|
1115
|
+
(r(!0), i(b, null, I(e.barSet, (a, n) => (r(), i("defs", {
|
|
1109
1116
|
key: `def_rect_${n}`
|
|
1110
1117
|
}, [
|
|
1111
|
-
|
|
1118
|
+
u("linearGradient", {
|
|
1112
1119
|
id: `rectGradient_pos_${n}_${t.uniqueId}`,
|
|
1113
1120
|
x2: "0%",
|
|
1114
1121
|
y2: "100%"
|
|
1115
1122
|
}, [
|
|
1116
|
-
|
|
1123
|
+
u("stop", {
|
|
1117
1124
|
offset: "0%",
|
|
1118
1125
|
"stop-color": a.color
|
|
1119
1126
|
}, null, 8, at),
|
|
1120
|
-
|
|
1127
|
+
u("stop", {
|
|
1121
1128
|
offset: "62%",
|
|
1122
1129
|
"stop-color": `${e.shiftHue(a.color, 0.02)}DE`
|
|
1123
1130
|
}, null, 8, lt),
|
|
1124
|
-
|
|
1131
|
+
u("stop", {
|
|
1125
1132
|
offset: "100%",
|
|
1126
1133
|
"stop-color": `${e.shiftHue(a.color, 0.05)}66`
|
|
1127
1134
|
}, null, 8, rt)
|
|
1128
1135
|
], 8, tt),
|
|
1129
|
-
|
|
1136
|
+
u("linearGradient", {
|
|
1130
1137
|
id: `rectGradient_neg_${n}_${t.uniqueId}`,
|
|
1131
1138
|
x2: "0%",
|
|
1132
1139
|
y2: "100%"
|
|
1133
1140
|
}, [
|
|
1134
|
-
|
|
1141
|
+
u("stop", {
|
|
1135
1142
|
offset: "0%",
|
|
1136
1143
|
"stop-color": `${e.shiftHue(a.color, 0.05)}66`
|
|
1137
1144
|
}, null, 8, st),
|
|
1138
|
-
|
|
1145
|
+
u("stop", {
|
|
1139
1146
|
offset: "38%",
|
|
1140
1147
|
"stop-color": `${e.shiftHue(a.color, 0.02)}DE`
|
|
1141
1148
|
}, null, 8, ot),
|
|
1142
|
-
|
|
1149
|
+
u("stop", {
|
|
1143
1150
|
offset: "100%",
|
|
1144
1151
|
"stop-color": a.color
|
|
1145
1152
|
}, null, 8, nt)
|
|
1146
1153
|
], 8, it)
|
|
1147
1154
|
]))), 128)),
|
|
1148
|
-
(r(!0), i(
|
|
1155
|
+
(r(!0), i(b, null, I(e.plotSet, (a, n) => (r(), i("defs", {
|
|
1149
1156
|
key: `def_plot_${n}`
|
|
1150
1157
|
}, [
|
|
1151
|
-
|
|
1158
|
+
u("radialGradient", {
|
|
1152
1159
|
id: `plotGradient_${n}_${t.uniqueId}`,
|
|
1153
1160
|
cx: "50%",
|
|
1154
1161
|
cy: "50%",
|
|
@@ -1156,20 +1163,20 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1156
1163
|
fx: "50%",
|
|
1157
1164
|
fy: "50%"
|
|
1158
1165
|
}, [
|
|
1159
|
-
|
|
1166
|
+
u("stop", {
|
|
1160
1167
|
offset: "0%",
|
|
1161
1168
|
"stop-color": `${e.shiftHue(a.color, 0.05)}`
|
|
1162
|
-
}, null, 8,
|
|
1163
|
-
|
|
1169
|
+
}, null, 8, ht),
|
|
1170
|
+
u("stop", {
|
|
1164
1171
|
offset: "100%",
|
|
1165
1172
|
"stop-color": a.color
|
|
1166
|
-
}, null, 8,
|
|
1167
|
-
], 8,
|
|
1173
|
+
}, null, 8, dt)
|
|
1174
|
+
], 8, ct)
|
|
1168
1175
|
]))), 128)),
|
|
1169
|
-
(r(!0), i(
|
|
1176
|
+
(r(!0), i(b, null, I(e.lineSet, (a, n) => (r(), i("defs", {
|
|
1170
1177
|
key: `def_line_${n}`
|
|
1171
1178
|
}, [
|
|
1172
|
-
|
|
1179
|
+
u("radialGradient", {
|
|
1173
1180
|
id: `lineGradient_${n}_${t.uniqueId}`,
|
|
1174
1181
|
cx: "50%",
|
|
1175
1182
|
cy: "50%",
|
|
@@ -1177,38 +1184,61 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1177
1184
|
fx: "50%",
|
|
1178
1185
|
fy: "50%"
|
|
1179
1186
|
}, [
|
|
1180
|
-
|
|
1187
|
+
u("stop", {
|
|
1181
1188
|
offset: "0%",
|
|
1182
1189
|
"stop-color": `${e.shiftHue(a.color, 0.05)}`
|
|
1183
1190
|
}, null, 8, gt),
|
|
1184
|
-
|
|
1191
|
+
u("stop", {
|
|
1185
1192
|
offset: "100%",
|
|
1186
1193
|
"stop-color": a.color
|
|
1187
1194
|
}, null, 8, ft)
|
|
1188
|
-
], 8,
|
|
1189
|
-
|
|
1195
|
+
], 8, ut),
|
|
1196
|
+
u("linearGradient", {
|
|
1190
1197
|
id: `areaGradient_${n}_${t.uniqueId}`,
|
|
1191
1198
|
x1: "0%",
|
|
1192
1199
|
x2: "100%",
|
|
1193
1200
|
y1: "0%",
|
|
1194
1201
|
y2: "0%"
|
|
1195
1202
|
}, [
|
|
1196
|
-
|
|
1203
|
+
u("stop", {
|
|
1197
1204
|
offset: "0%",
|
|
1198
1205
|
"stop-color": `${e.shiftHue(a.color, 0.03)}${t.opacity[e.FINAL_CONFIG.line.area.opacity]}`
|
|
1199
|
-
}, null, 8,
|
|
1200
|
-
|
|
1206
|
+
}, null, 8, mt),
|
|
1207
|
+
u("stop", {
|
|
1201
1208
|
offset: "100%",
|
|
1202
1209
|
"stop-color": `${a.color}${t.opacity[e.FINAL_CONFIG.line.area.opacity]}`
|
|
1203
|
-
}, null, 8,
|
|
1210
|
+
}, null, 8, It)
|
|
1204
1211
|
], 8, bt)
|
|
1205
1212
|
]))), 128)),
|
|
1206
|
-
|
|
1213
|
+
(r(!0), i(b, null, I(e.highlightAreas, (a) => (r(), i("g", null, [
|
|
1214
|
+
a.show ? (r(), i(b, { key: 0 }, [
|
|
1215
|
+
u("rect", {
|
|
1216
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (a.from - t.slicer.start),
|
|
1217
|
+
y: e.drawingArea.top,
|
|
1218
|
+
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1219
|
+
width: e.drawingArea.width / e.maxSeries * a.span < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries * a.span,
|
|
1220
|
+
fill: `${a.color}${t.opacity[a.opacity]}`
|
|
1221
|
+
}, null, 8, Nt),
|
|
1222
|
+
a.caption.text ? (r(), i("foreignObject", {
|
|
1223
|
+
key: 0,
|
|
1224
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (a.from - t.slicer.start) - (a.caption.width === "auto" ? 0 : a.caption.width / 2 - e.drawingArea.width / e.maxSeries * a.span / 2),
|
|
1225
|
+
y: e.drawingArea.top + a.caption.offsetY,
|
|
1226
|
+
style: { overflow: "visible" },
|
|
1227
|
+
height: "1",
|
|
1228
|
+
width: a.caption.width === "auto" ? e.drawingArea.width / e.maxSeries * a.span : a.caption.width
|
|
1229
|
+
}, [
|
|
1230
|
+
u("div", {
|
|
1231
|
+
style: L(`padding:${a.caption.padding}px;text-align:${a.caption.textAlign};font-size:${a.caption.fontSize}px;color:${a.caption.color};font-weight:${a.caption.bold ? "bold" : "normal"}`)
|
|
1232
|
+
}, C(a.caption.text), 5)
|
|
1233
|
+
], 8, _t)) : c("", !0)
|
|
1234
|
+
], 64)) : c("", !0)
|
|
1235
|
+
]))), 256)),
|
|
1236
|
+
e.barSet.length ? (r(!0), i(b, { key: 0 }, I(e.barSet, (a, n) => (r(), i("g", {
|
|
1207
1237
|
key: `serie_bar_${n}`,
|
|
1208
1238
|
class: T(`serie_bar_${n}`),
|
|
1209
1239
|
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1210
1240
|
}, [
|
|
1211
|
-
(r(!0), i(
|
|
1241
|
+
(r(!0), i(b, null, I(a.plots, (s, g) => (r(), i("g", {
|
|
1212
1242
|
key: `bar_plot_${n}_${g}`
|
|
1213
1243
|
}, [
|
|
1214
1244
|
e.canShowValue(s.value) ? (r(), i("rect", {
|
|
@@ -1221,7 +1251,7 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1221
1251
|
fill: e.FINAL_CONFIG.bar.useGradient ? s.value >= 0 ? `url(#rectGradient_pos_${n}_${t.uniqueId})` : `url(#rectGradient_neg_${n}_${t.uniqueId})` : a.color,
|
|
1222
1252
|
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? a.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1223
1253
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1224
|
-
}, null, 8,
|
|
1254
|
+
}, null, 8, xt)) : c("", !0),
|
|
1225
1255
|
s.comment && e.FINAL_CONFIG.chart.comments.show ? (r(), i("foreignObject", {
|
|
1226
1256
|
key: 1,
|
|
1227
1257
|
style: { overflow: "visible" },
|
|
@@ -1233,11 +1263,11 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1233
1263
|
v(l.$slots, "plot-comment", {
|
|
1234
1264
|
plot: { ...s, color: a.color }
|
|
1235
1265
|
}, void 0, !0)
|
|
1236
|
-
], 8,
|
|
1266
|
+
], 8, Ft)) : c("", !0)
|
|
1237
1267
|
]))), 128)),
|
|
1238
|
-
Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (r(), i("g",
|
|
1239
|
-
|
|
1240
|
-
|
|
1268
|
+
Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (r(), i("g", yt, [
|
|
1269
|
+
u("defs", null, [
|
|
1270
|
+
u("marker", {
|
|
1241
1271
|
id: `bar_arrow_${n}`,
|
|
1242
1272
|
markerWidth: 7,
|
|
1243
1273
|
markerHeight: 7,
|
|
@@ -1245,11 +1275,11 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1245
1275
|
refY: 7 / 2,
|
|
1246
1276
|
orient: "auto"
|
|
1247
1277
|
}, [
|
|
1248
|
-
|
|
1278
|
+
u("polygon", {
|
|
1249
1279
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1250
1280
|
fill: a.color
|
|
1251
|
-
}, null, 8,
|
|
1252
|
-
], 8,
|
|
1281
|
+
}, null, 8, Lt)
|
|
1282
|
+
], 8, At)
|
|
1253
1283
|
]),
|
|
1254
1284
|
a.plots.length > 1 ? (r(), i("line", {
|
|
1255
1285
|
key: 0,
|
|
@@ -1261,7 +1291,7 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1261
1291
|
stroke: a.color,
|
|
1262
1292
|
"stroke-dasharray": 2,
|
|
1263
1293
|
"marker-end": `url(#bar_arrow_${n})`
|
|
1264
|
-
}, null, 8,
|
|
1294
|
+
}, null, 8, St)) : c("", !0),
|
|
1265
1295
|
a.plots.length > 1 ? (r(), i("text", {
|
|
1266
1296
|
key: 1,
|
|
1267
1297
|
"text-anchor": "middle",
|
|
@@ -1273,25 +1303,136 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1273
1303
|
v: e.calcLinearProgression(a.plots).trend * 100,
|
|
1274
1304
|
s: "%",
|
|
1275
1305
|
r: 2
|
|
1276
|
-
})), 9,
|
|
1277
|
-
])) :
|
|
1278
|
-
], 6))), 128)) :
|
|
1306
|
+
})), 9, Ct)) : c("", !0)
|
|
1307
|
+
])) : c("", !0)
|
|
1308
|
+
], 6))), 128)) : c("", !0),
|
|
1279
1309
|
!t.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (r(), i("line", {
|
|
1280
1310
|
key: 1,
|
|
1281
1311
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1282
1312
|
"stroke-width": "1",
|
|
1283
|
-
x1: e.drawingArea.left,
|
|
1284
|
-
x2: e.drawingArea.right,
|
|
1313
|
+
x1: e.drawingArea.left + e.xPadding,
|
|
1314
|
+
x2: e.drawingArea.right - e.xPadding,
|
|
1285
1315
|
y1: e.zero,
|
|
1286
1316
|
y2: e.zero,
|
|
1287
1317
|
"stroke-linecap": "round"
|
|
1288
|
-
}, null, 8,
|
|
1289
|
-
(
|
|
1318
|
+
}, null, 8, kt)) : c("", !0),
|
|
1319
|
+
u("g", null, [
|
|
1320
|
+
u("rect", {
|
|
1321
|
+
x: 0,
|
|
1322
|
+
y: e.drawingArea.top,
|
|
1323
|
+
width: e.FINAL_CONFIG.chart.padding.left - 1 + e.xPadding,
|
|
1324
|
+
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1325
|
+
fill: e.FINAL_CONFIG.chart.backgroundColor
|
|
1326
|
+
}, null, 8, wt),
|
|
1327
|
+
u("rect", {
|
|
1328
|
+
x: e.drawingArea.right + 1 - e.xPadding,
|
|
1329
|
+
y: e.drawingArea.top,
|
|
1330
|
+
width: e.FINAL_CONFIG.chart.padding.right - 1 + e.xPadding,
|
|
1331
|
+
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1332
|
+
fill: e.FINAL_CONFIG.chart.backgroundColor
|
|
1333
|
+
}, null, 8, Ot)
|
|
1334
|
+
]),
|
|
1335
|
+
e.FINAL_CONFIG.chart.grid.frame.show ? (r(), i("rect", {
|
|
1336
|
+
key: 2,
|
|
1337
|
+
style: { pointerEvents: "none" },
|
|
1338
|
+
x: e.drawingArea.left + e.xPadding,
|
|
1339
|
+
y: e.drawingArea.top,
|
|
1340
|
+
width: e.drawingArea.width - (e.FINAL_CONFIG.chart.grid.position === "middle" ? 0 : e.drawingArea.width / e.maxSeries),
|
|
1341
|
+
height: e.drawingArea.height,
|
|
1342
|
+
fill: "transparent",
|
|
1343
|
+
stroke: e.FINAL_CONFIG.chart.grid.frame.stroke,
|
|
1344
|
+
"stroke-width": e.FINAL_CONFIG.chart.grid.frame.strokeWidth,
|
|
1345
|
+
"stroke-linecap": e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,
|
|
1346
|
+
"stroke-linejoin": e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,
|
|
1347
|
+
"stroke-dasharray": e.FINAL_CONFIG.chart.grid.frame.strokeDasharray
|
|
1348
|
+
}, null, 8, vt)) : c("", !0),
|
|
1349
|
+
e.FINAL_CONFIG.chart.grid.labels.show ? (r(), i("g", Gt, [
|
|
1350
|
+
t.mutableConfig.useIndividualScale ? (r(), i(b, { key: 0 }, [
|
|
1351
|
+
(r(!0), i(b, null, I(e.allScales, (a) => (r(), i("g", null, [
|
|
1352
|
+
u("line", {
|
|
1353
|
+
x1: a.x + e.xPadding,
|
|
1354
|
+
x2: a.x + e.xPadding,
|
|
1355
|
+
y1: t.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset - a.individualHeight : e.drawingArea.top,
|
|
1356
|
+
y2: t.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset : e.drawingArea.bottom,
|
|
1357
|
+
stroke: a.color,
|
|
1358
|
+
"stroke-width": e.FINAL_CONFIG.chart.grid.stroke,
|
|
1359
|
+
"stroke-linecap": "round",
|
|
1360
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1361
|
+
}, null, 12, zt)
|
|
1362
|
+
]))), 256)),
|
|
1363
|
+
(r(!0), i(b, null, I(e.allScales, (a) => (r(), i("g", {
|
|
1364
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1365
|
+
}, [
|
|
1366
|
+
u("text", {
|
|
1367
|
+
fill: a.color,
|
|
1368
|
+
"font-size": t.fontSizes.dataLabels,
|
|
1369
|
+
"text-anchor": "middle",
|
|
1370
|
+
transform: `translate(${a.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + 5}, ${t.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset - a.individualHeight / 2 : e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`
|
|
1371
|
+
}, C(a.name) + " " + C(a.scaleLabel ? `- ${a.scaleLabel}` : ""), 9, pt),
|
|
1372
|
+
(r(!0), i(b, null, I(a.yLabels, (n, s) => (r(), i("line", {
|
|
1373
|
+
x1: a.x - 3 + e.xPadding,
|
|
1374
|
+
x2: a.x + e.xPadding,
|
|
1375
|
+
y1: n.y,
|
|
1376
|
+
y2: n.y,
|
|
1377
|
+
stroke: a.color,
|
|
1378
|
+
"stroke-width": 1,
|
|
1379
|
+
"stroke-linecap": "round"
|
|
1380
|
+
}, null, 8, Tt))), 256)),
|
|
1381
|
+
(r(!0), i(b, null, I(a.yLabels, (n, s) => (r(), i("text", {
|
|
1382
|
+
x: a.x - 5 + e.xPadding,
|
|
1383
|
+
y: n.y + e.xPadding,
|
|
1384
|
+
"font-size": t.fontSizes.dataLabels,
|
|
1385
|
+
"text-anchor": "end",
|
|
1386
|
+
fill: a.color
|
|
1387
|
+
}, C(e.applyDataLabel(
|
|
1388
|
+
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1389
|
+
n.value,
|
|
1390
|
+
e.dataLabel({
|
|
1391
|
+
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
1392
|
+
v: n.value,
|
|
1393
|
+
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
1394
|
+
r: 1
|
|
1395
|
+
})
|
|
1396
|
+
)), 9, Mt))), 256))
|
|
1397
|
+
], 4))), 256))
|
|
1398
|
+
], 64)) : (r(!0), i(b, { key: 1 }, I(e.yLabels, (a, n) => (r(), i("g", {
|
|
1399
|
+
key: `yLabel_${n}`
|
|
1400
|
+
}, [
|
|
1401
|
+
e.canShowValue(a) && a.value >= e.niceScale.min && a.value <= e.niceScale.max ? (r(), i("line", {
|
|
1402
|
+
key: 0,
|
|
1403
|
+
x1: e.drawingArea.left + e.xPadding,
|
|
1404
|
+
x2: e.drawingArea.left - 5 + e.xPadding,
|
|
1405
|
+
y1: a.y,
|
|
1406
|
+
y2: a.y,
|
|
1407
|
+
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1408
|
+
"stroke-width": "1",
|
|
1409
|
+
"stroke-linecap": "round"
|
|
1410
|
+
}, null, 8, Pt)) : c("", !0),
|
|
1411
|
+
a.value >= e.niceScale.min && a.value <= e.niceScale.max ? (r(), i("text", {
|
|
1412
|
+
key: 1,
|
|
1413
|
+
x: e.drawingArea.left - 7 + e.xPadding,
|
|
1414
|
+
y: a.y + t.fontSizes.dataLabels / 3,
|
|
1415
|
+
"font-size": t.fontSizes.dataLabels,
|
|
1416
|
+
"text-anchor": "end",
|
|
1417
|
+
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
1418
|
+
}, C(e.canShowValue(a.value) ? e.applyDataLabel(
|
|
1419
|
+
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1420
|
+
a.value,
|
|
1421
|
+
e.dataLabel({
|
|
1422
|
+
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
1423
|
+
v: a.value,
|
|
1424
|
+
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
1425
|
+
r: 1
|
|
1426
|
+
})
|
|
1427
|
+
) : ""), 9, Vt)) : c("", !0)
|
|
1428
|
+
]))), 128))
|
|
1429
|
+
])) : c("", !0),
|
|
1430
|
+
(r(!0), i(b, null, I(e.plotSet, (a, n) => (r(), i("g", {
|
|
1290
1431
|
key: `serie_plot_${n}`,
|
|
1291
1432
|
class: T(`serie_plot_${n}`),
|
|
1292
1433
|
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1293
1434
|
}, [
|
|
1294
|
-
(r(!0), i(
|
|
1435
|
+
(r(!0), i(b, null, I(a.plots, (s, g) => (r(), i("g", {
|
|
1295
1436
|
key: `circle_plot_${n}_${g}`
|
|
1296
1437
|
}, [
|
|
1297
1438
|
e.canShowValue(s.value) ? (r(), V(f, {
|
|
@@ -1302,7 +1443,7 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1302
1443
|
radius: t.selectedSerieIndex !== null && t.selectedSerieIndex === g ? (t.plotRadii.plot || 6) * 1.5 : t.plotRadii.plot || 6,
|
|
1303
1444
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1304
1445
|
strokeWidth: 0.5
|
|
1305
|
-
}, null, 8, ["shape", "color", "plot", "radius", "stroke"])) :
|
|
1446
|
+
}, null, 8, ["shape", "color", "plot", "radius", "stroke"])) : c("", !0),
|
|
1306
1447
|
s.comment && e.FINAL_CONFIG.chart.comments.show ? (r(), i("foreignObject", {
|
|
1307
1448
|
key: 1,
|
|
1308
1449
|
style: { overflow: "visible" },
|
|
@@ -1311,16 +1452,16 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1311
1452
|
x: s.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1312
1453
|
y: s.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1313
1454
|
}, [
|
|
1314
|
-
|
|
1455
|
+
u("div", Dt, [
|
|
1315
1456
|
v(l.$slots, "plot-comment", {
|
|
1316
1457
|
plot: { ...s, color: a.color }
|
|
1317
1458
|
}, void 0, !0)
|
|
1318
1459
|
])
|
|
1319
|
-
], 8,
|
|
1460
|
+
], 8, Rt)) : c("", !0)
|
|
1320
1461
|
]))), 128)),
|
|
1321
|
-
Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (r(), i("g",
|
|
1322
|
-
|
|
1323
|
-
|
|
1462
|
+
Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (r(), i("g", Et, [
|
|
1463
|
+
u("defs", null, [
|
|
1464
|
+
u("marker", {
|
|
1324
1465
|
id: `plot_arrow_${n}`,
|
|
1325
1466
|
markerWidth: 7,
|
|
1326
1467
|
markerHeight: 7,
|
|
@@ -1328,11 +1469,11 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1328
1469
|
refY: 7 / 2,
|
|
1329
1470
|
orient: "auto"
|
|
1330
1471
|
}, [
|
|
1331
|
-
|
|
1472
|
+
u("polygon", {
|
|
1332
1473
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1333
1474
|
fill: a.color
|
|
1334
|
-
}, null, 8,
|
|
1335
|
-
], 8,
|
|
1475
|
+
}, null, 8, Wt)
|
|
1476
|
+
], 8, Ht)
|
|
1336
1477
|
]),
|
|
1337
1478
|
a.plots.length > 1 ? (r(), i("line", {
|
|
1338
1479
|
key: 0,
|
|
@@ -1344,7 +1485,7 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1344
1485
|
stroke: a.color,
|
|
1345
1486
|
"stroke-dasharray": 2,
|
|
1346
1487
|
"marker-end": `url(#plot_arrow_${n})`
|
|
1347
|
-
}, null, 8,
|
|
1488
|
+
}, null, 8, Bt)) : c("", !0),
|
|
1348
1489
|
a.plots.length > 1 ? (r(), i("text", {
|
|
1349
1490
|
key: 1,
|
|
1350
1491
|
"text-anchor": "middle",
|
|
@@ -1356,10 +1497,10 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1356
1497
|
v: e.calcLinearProgression(a.plots).trend * 100,
|
|
1357
1498
|
s: "%",
|
|
1358
1499
|
r: 2
|
|
1359
|
-
})), 9,
|
|
1360
|
-
])) :
|
|
1500
|
+
})), 9, Yt)) : c("", !0)
|
|
1501
|
+
])) : c("", !0)
|
|
1361
1502
|
], 6))), 128)),
|
|
1362
|
-
(r(!0), i(
|
|
1503
|
+
(r(!0), i(b, null, I(e.lineSet, (a, n) => (r(), i("g", {
|
|
1363
1504
|
key: `serie_line_${n}`,
|
|
1364
1505
|
class: T(`serie_line_${n}`),
|
|
1365
1506
|
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
@@ -1371,8 +1512,8 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1371
1512
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1372
1513
|
"stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1373
1514
|
fill: "none"
|
|
1374
|
-
}, null, 8,
|
|
1375
|
-
(r(!0), i(
|
|
1515
|
+
}, null, 8, Xt)) : a.plots.length > 1 ? (r(), i("g", qt, [
|
|
1516
|
+
(r(!0), i(b, null, I(a.plots, (s, g) => (r(), i("g", {
|
|
1376
1517
|
key: `line_${n}_${g}`
|
|
1377
1518
|
}, [
|
|
1378
1519
|
s && g < a.plots.length - 1 && a.plots[g + 1] && e.canShowValue(s.value) && e.canShowValue(a.plots[g + 1].value) ? (r(), i("line", {
|
|
@@ -1386,26 +1527,26 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1386
1527
|
"stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1387
1528
|
"stroke-linejoin": "round",
|
|
1388
1529
|
"stroke-linecap": "round"
|
|
1389
|
-
}, null, 8,
|
|
1530
|
+
}, null, 8, Ut)) : c("", !0)
|
|
1390
1531
|
]))), 128))
|
|
1391
|
-
])) :
|
|
1532
|
+
])) : c("", !0)
|
|
1392
1533
|
], 6))), 128)),
|
|
1393
|
-
(r(!0), i(
|
|
1534
|
+
(r(!0), i(b, null, I(e.lineSet, (a, n) => (r(), i("g", {
|
|
1394
1535
|
key: `serie_line_${n}`,
|
|
1395
1536
|
class: T(`serie_line_${n}`),
|
|
1396
1537
|
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1397
1538
|
}, [
|
|
1398
|
-
a.useArea && a.plots.length > 1 ? (r(), i("g",
|
|
1539
|
+
a.useArea && a.plots.length > 1 ? (r(), i("g", Zt, [
|
|
1399
1540
|
a.smooth ? (r(), i("path", {
|
|
1400
1541
|
key: 0,
|
|
1401
1542
|
d: `M ${a.plots[0] ? a.plots[0].x : Math.min(...a.plots.filter((s) => !!s).map((s) => s.x))},${t.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset : e.drawingArea.bottom} ${a.curve} L ${a.plots.at(-1) ? a.plots.at(-1).x : e.drawingArea.left + e.slot.line * n + e.slot.line / 2},${t.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset : e.drawingArea.bottom} Z`,
|
|
1402
1543
|
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${n}_${t.uniqueId})` : `${a.color}${t.opacity[e.FINAL_CONFIG.line.area.opacity]}`
|
|
1403
|
-
}, null, 8,
|
|
1544
|
+
}, null, 8, Jt)) : (r(), i("path", {
|
|
1404
1545
|
key: 1,
|
|
1405
1546
|
d: `M${a.area}Z`,
|
|
1406
1547
|
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${n}_${t.uniqueId})` : `${a.color}${t.opacity[e.FINAL_CONFIG.line.area.opacity]}`
|
|
1407
|
-
}, null, 8,
|
|
1408
|
-
])) :
|
|
1548
|
+
}, null, 8, Kt))
|
|
1549
|
+
])) : c("", !0),
|
|
1409
1550
|
a.smooth && a.plots.length > 1 ? (r(), i("path", {
|
|
1410
1551
|
key: 1,
|
|
1411
1552
|
d: `M${a.curve}`,
|
|
@@ -1413,8 +1554,8 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1413
1554
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth,
|
|
1414
1555
|
"stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1415
1556
|
fill: "none"
|
|
1416
|
-
}, null, 8,
|
|
1417
|
-
(r(!0), i(
|
|
1557
|
+
}, null, 8, Qt)) : a.plots.length > 1 ? (r(), i("g", jt, [
|
|
1558
|
+
(r(!0), i(b, null, I(a.plots, (s, g) => (r(), i("g", {
|
|
1418
1559
|
key: `line_${n}_${g}`
|
|
1419
1560
|
}, [
|
|
1420
1561
|
s && g < a.plots.length - 1 && a.plots[g + 1] && e.canShowValue(s.value) && e.canShowValue(a.plots[g + 1].value) ? (r(), i("line", {
|
|
@@ -1428,10 +1569,10 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1428
1569
|
"stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1429
1570
|
"stroke-linejoin": "round",
|
|
1430
1571
|
"stroke-linecap": "round"
|
|
1431
|
-
}, null, 8,
|
|
1572
|
+
}, null, 8, $t)) : c("", !0)
|
|
1432
1573
|
]))), 128))
|
|
1433
|
-
])) :
|
|
1434
|
-
(r(!0), i(
|
|
1574
|
+
])) : c("", !0),
|
|
1575
|
+
(r(!0), i(b, null, I(a.plots, (s, g) => (r(), i("g", {
|
|
1435
1576
|
key: `circle_line_${n}_${g}`
|
|
1436
1577
|
}, [
|
|
1437
1578
|
s && e.canShowValue(s.value) ? (r(), V(f, {
|
|
@@ -1442,7 +1583,7 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1442
1583
|
radius: t.selectedSerieIndex !== null && t.selectedSerieIndex === g ? (t.plotRadii.line || 6) * 1.5 : t.plotRadii.line,
|
|
1443
1584
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1444
1585
|
strokeWidth: 0.5
|
|
1445
|
-
}, null, 8, ["shape", "color", "plot", "radius", "stroke"])) :
|
|
1586
|
+
}, null, 8, ["shape", "color", "plot", "radius", "stroke"])) : c("", !0),
|
|
1446
1587
|
s.comment && e.FINAL_CONFIG.chart.comments.show ? (r(), i("foreignObject", {
|
|
1447
1588
|
key: 1,
|
|
1448
1589
|
style: { overflow: "visible" },
|
|
@@ -1451,16 +1592,16 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1451
1592
|
x: s.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1452
1593
|
y: s.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1453
1594
|
}, [
|
|
1454
|
-
|
|
1595
|
+
u("div", ta, [
|
|
1455
1596
|
v(l.$slots, "plot-comment", {
|
|
1456
1597
|
plot: { ...s, color: a.color }
|
|
1457
1598
|
}, void 0, !0)
|
|
1458
1599
|
])
|
|
1459
|
-
], 8,
|
|
1600
|
+
], 8, ea)) : c("", !0)
|
|
1460
1601
|
]))), 128)),
|
|
1461
|
-
Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (r(), i("g",
|
|
1462
|
-
|
|
1463
|
-
|
|
1602
|
+
Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (r(), i("g", aa, [
|
|
1603
|
+
u("defs", null, [
|
|
1604
|
+
u("marker", {
|
|
1464
1605
|
id: `line_arrow_${n}`,
|
|
1465
1606
|
markerWidth: 7,
|
|
1466
1607
|
markerHeight: 7,
|
|
@@ -1468,11 +1609,11 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1468
1609
|
refY: 7 / 2,
|
|
1469
1610
|
orient: "auto"
|
|
1470
1611
|
}, [
|
|
1471
|
-
|
|
1612
|
+
u("polygon", {
|
|
1472
1613
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1473
1614
|
fill: a.color
|
|
1474
|
-
}, null, 8,
|
|
1475
|
-
], 8,
|
|
1615
|
+
}, null, 8, ra)
|
|
1616
|
+
], 8, la)
|
|
1476
1617
|
]),
|
|
1477
1618
|
a.plots.length > 1 ? (r(), i("line", {
|
|
1478
1619
|
key: 0,
|
|
@@ -1484,7 +1625,7 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1484
1625
|
stroke: a.color,
|
|
1485
1626
|
"stroke-dasharray": 2,
|
|
1486
1627
|
"marker-end": `url(#line_arrow_${n})`
|
|
1487
|
-
}, null, 8,
|
|
1628
|
+
}, null, 8, ia)) : c("", !0),
|
|
1488
1629
|
a.plots.length > 1 ? (r(), i("text", {
|
|
1489
1630
|
key: 1,
|
|
1490
1631
|
"text-anchor": "middle",
|
|
@@ -1496,16 +1637,16 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1496
1637
|
v: e.calcLinearProgression(a.plots).trend * 100,
|
|
1497
1638
|
s: "%",
|
|
1498
1639
|
r: 2
|
|
1499
|
-
})), 9,
|
|
1500
|
-
])) :
|
|
1640
|
+
})), 9, sa)) : c("", !0)
|
|
1641
|
+
])) : c("", !0)
|
|
1501
1642
|
], 6))), 128)),
|
|
1502
|
-
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && t.mutableConfig.dataLabels.show ? (r(), i("g",
|
|
1503
|
-
(r(!0), i(
|
|
1643
|
+
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && t.mutableConfig.dataLabels.show ? (r(), i("g", oa, [
|
|
1644
|
+
(r(!0), i(b, null, I(e.barSet, (a, n) => (r(), i("g", {
|
|
1504
1645
|
key: `xLabel_bar_${n}`,
|
|
1505
1646
|
class: T(`xLabel_bar_${n}`),
|
|
1506
1647
|
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1507
1648
|
}, [
|
|
1508
|
-
(r(!0), i(
|
|
1649
|
+
(r(!0), i(b, null, I(a.plots, (s, g) => (r(), i("g", {
|
|
1509
1650
|
key: `xLabel_bar_${n}_${g}`
|
|
1510
1651
|
}, [
|
|
1511
1652
|
s && (!Object.hasOwn(a, "dataLabels") || a.dataLabels === !0) && e.FINAL_CONFIG.bar.labels.show ? (r(), i("text", {
|
|
@@ -1528,7 +1669,7 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1528
1669
|
datapoint: s,
|
|
1529
1670
|
serie: a
|
|
1530
1671
|
}
|
|
1531
|
-
) : ""), 9,
|
|
1672
|
+
) : ""), 9, na)) : c("", !0),
|
|
1532
1673
|
s && e.FINAL_CONFIG.bar.serieName.show ? (r(), i("text", {
|
|
1533
1674
|
key: 1,
|
|
1534
1675
|
x: t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? s.x + e.slot.line / 2 : s.x + e.calcRectWidth() * 1.1,
|
|
@@ -1537,17 +1678,17 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1537
1678
|
"font-size": t.fontSizes.plotLabels,
|
|
1538
1679
|
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? a.color : e.FINAL_CONFIG.bar.serieName.color,
|
|
1539
1680
|
"font-weight": e.FINAL_CONFIG.bar.serieName.bold ? "bold" : "normal"
|
|
1540
|
-
}, C(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: a.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : a.name), 9,
|
|
1681
|
+
}, C(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: a.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : a.name), 9, ca)) : c("", !0)
|
|
1541
1682
|
]))), 128))
|
|
1542
1683
|
], 6))), 128))
|
|
1543
|
-
])) :
|
|
1544
|
-
e.FINAL_CONFIG.plot.labels.show && t.mutableConfig.dataLabels.show ? (r(), i("g",
|
|
1545
|
-
(r(!0), i(
|
|
1684
|
+
])) : c("", !0),
|
|
1685
|
+
e.FINAL_CONFIG.plot.labels.show && t.mutableConfig.dataLabels.show ? (r(), i("g", ha, [
|
|
1686
|
+
(r(!0), i(b, null, I(e.plotSet, (a, n) => (r(), i("g", {
|
|
1546
1687
|
key: `xLabel_plot_${n}`,
|
|
1547
1688
|
class: T(`xLabel_plot_${n}`),
|
|
1548
1689
|
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1549
1690
|
}, [
|
|
1550
|
-
(r(!0), i(
|
|
1691
|
+
(r(!0), i(b, null, I(a.plots, (s, g) => (r(), i("g", {
|
|
1551
1692
|
key: `xLabel_plot_${n}_${g}`
|
|
1552
1693
|
}, [
|
|
1553
1694
|
s && !Object.hasOwn(a, "dataLabels") || a.dataLabels === !0 ? (r(), i("text", {
|
|
@@ -1570,7 +1711,7 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1570
1711
|
datapoint: s,
|
|
1571
1712
|
serie: a
|
|
1572
1713
|
}
|
|
1573
|
-
) : ""), 9,
|
|
1714
|
+
) : ""), 9, da)) : c("", !0),
|
|
1574
1715
|
s && g === 0 && a.useTag && a.useTag === "start" ? (r(), i("foreignObject", {
|
|
1575
1716
|
key: 1,
|
|
1576
1717
|
x: s.x,
|
|
@@ -1579,10 +1720,10 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1579
1720
|
width: "150",
|
|
1580
1721
|
style: { overflow: "visible" }
|
|
1581
1722
|
}, [
|
|
1582
|
-
|
|
1723
|
+
u("div", {
|
|
1583
1724
|
style: L(`padding: 3px; background:${a.color}${t.opacity[80]};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1584
1725
|
}, C(a.name), 5)
|
|
1585
|
-
], 8,
|
|
1726
|
+
], 8, ua)) : c("", !0),
|
|
1586
1727
|
s && g === a.plots.length - 1 && a.useTag && a.useTag === "end" ? (r(), i("foreignObject", {
|
|
1587
1728
|
key: 2,
|
|
1588
1729
|
x: s.x - a.name.length * (t.fontSizes.plotLabels / 2),
|
|
@@ -1591,20 +1732,20 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1591
1732
|
width: "150",
|
|
1592
1733
|
style: { overflow: "visible" }
|
|
1593
1734
|
}, [
|
|
1594
|
-
|
|
1735
|
+
u("div", {
|
|
1595
1736
|
style: L(`padding: 3px; background:${a.color}${t.opacity[80]};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1596
1737
|
}, C(a.name), 5)
|
|
1597
|
-
], 8,
|
|
1738
|
+
], 8, ga)) : c("", !0)
|
|
1598
1739
|
]))), 128))
|
|
1599
1740
|
], 6))), 128))
|
|
1600
|
-
])) :
|
|
1601
|
-
e.FINAL_CONFIG.line.labels.show && t.mutableConfig.dataLabels.show ? (r(), i("g",
|
|
1602
|
-
(r(!0), i(
|
|
1741
|
+
])) : c("", !0),
|
|
1742
|
+
e.FINAL_CONFIG.line.labels.show && t.mutableConfig.dataLabels.show ? (r(), i("g", fa, [
|
|
1743
|
+
(r(!0), i(b, null, I(e.lineSet, (a, n) => (r(), i("g", {
|
|
1603
1744
|
key: `xLabel_line_${n}`,
|
|
1604
1745
|
class: T(`xLabel_line_${n}`),
|
|
1605
1746
|
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1606
1747
|
}, [
|
|
1607
|
-
(r(!0), i(
|
|
1748
|
+
(r(!0), i(b, null, I(a.plots, (s, g) => (r(), i("g", {
|
|
1608
1749
|
key: `xLabel_line_${n}_${g}`
|
|
1609
1750
|
}, [
|
|
1610
1751
|
s && !Object.hasOwn(a, "dataLabels") || a.dataLabels === !0 ? (r(), i("text", {
|
|
@@ -1627,7 +1768,7 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1627
1768
|
datapoint: s,
|
|
1628
1769
|
serie: a
|
|
1629
1770
|
}
|
|
1630
|
-
) : ""), 9,
|
|
1771
|
+
) : ""), 9, ba)) : c("", !0),
|
|
1631
1772
|
s && g === 0 && a.useTag && a.useTag === "start" ? (r(), i("foreignObject", {
|
|
1632
1773
|
key: 1,
|
|
1633
1774
|
x: s.x,
|
|
@@ -1636,10 +1777,10 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1636
1777
|
width: "150",
|
|
1637
1778
|
style: { overflow: "visible" }
|
|
1638
1779
|
}, [
|
|
1639
|
-
|
|
1780
|
+
u("div", {
|
|
1640
1781
|
style: L(`padding: 3px; background:${a.color}${t.opacity[80]};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1641
1782
|
}, C(a.name), 5)
|
|
1642
|
-
], 8,
|
|
1783
|
+
], 8, ma)) : c("", !0),
|
|
1643
1784
|
s && g === a.plots.length - 1 && a.useTag && a.useTag === "end" ? (r(), i("foreignObject", {
|
|
1644
1785
|
key: 2,
|
|
1645
1786
|
x: s.x - a.name.length * (t.fontSizes.plotLabels / 2),
|
|
@@ -1648,56 +1789,19 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1648
1789
|
width: "150",
|
|
1649
1790
|
style: { overflow: "visible" }
|
|
1650
1791
|
}, [
|
|
1651
|
-
|
|
1792
|
+
u("div", {
|
|
1652
1793
|
style: L(`padding: 3px; background:${a.color}${t.opacity[80]};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1653
1794
|
}, C(a.name), 5)
|
|
1654
|
-
], 8,
|
|
1795
|
+
], 8, Ia)) : c("", !0)
|
|
1655
1796
|
]))), 128))
|
|
1656
1797
|
], 6))), 128))
|
|
1657
|
-
])) :
|
|
1658
|
-
e.
|
|
1659
|
-
d("rect", {
|
|
1660
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (e.FINAL_CONFIG.chart.highlightArea.from - t.slicer.start),
|
|
1661
|
-
y: e.drawingArea.top,
|
|
1662
|
-
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1663
|
-
width: e.drawingArea.width / e.maxSeries * e.highlightAreaSpan < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries * e.highlightAreaSpan,
|
|
1664
|
-
fill: `${e.FINAL_CONFIG.chart.highlightArea.color}${t.opacity[e.FINAL_CONFIG.chart.highlightArea.opacity]}`
|
|
1665
|
-
}, null, 8, oa),
|
|
1666
|
-
e.FINAL_CONFIG.chart.highlightArea.caption.text ? (r(), i("foreignObject", {
|
|
1667
|
-
key: 0,
|
|
1668
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (e.FINAL_CONFIG.chart.highlightArea.from - t.slicer.start) - (e.FINAL_CONFIG.chart.highlightArea.caption.width === "auto" ? 0 : e.FINAL_CONFIG.chart.highlightArea.caption.width / 2 - e.drawingArea.width / e.maxSeries * e.highlightAreaSpan / 2),
|
|
1669
|
-
y: e.drawingArea.top + e.FINAL_CONFIG.chart.highlightArea.caption.offsetY,
|
|
1670
|
-
style: { overflow: "visible" },
|
|
1671
|
-
height: "1",
|
|
1672
|
-
width: e.FINAL_CONFIG.chart.highlightArea.caption.width === "auto" ? e.drawingArea.width / e.maxSeries * e.highlightAreaSpan : e.FINAL_CONFIG.chart.highlightArea.caption.width
|
|
1673
|
-
}, [
|
|
1674
|
-
d("div", {
|
|
1675
|
-
style: L(`padding:${e.FINAL_CONFIG.chart.highlightArea.caption.padding}px;text-align:${e.FINAL_CONFIG.chart.highlightArea.caption.textAlign};font-size:${e.FINAL_CONFIG.chart.highlightArea.caption.fontSize}px;color:${e.FINAL_CONFIG.chart.highlightArea.caption.color};font-weight:${e.FINAL_CONFIG.chart.highlightArea.caption.bold ? "bold" : "normal"}`)
|
|
1676
|
-
}, C(e.FINAL_CONFIG.chart.highlightArea.caption.text), 5)
|
|
1677
|
-
], 8, na)) : h("", !0)
|
|
1678
|
-
])) : h("", !0),
|
|
1679
|
-
d("g", null, [
|
|
1680
|
-
d("rect", {
|
|
1681
|
-
x: 0,
|
|
1682
|
-
y: e.drawingArea.top,
|
|
1683
|
-
width: e.FINAL_CONFIG.chart.padding.left - 1,
|
|
1684
|
-
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1685
|
-
fill: e.FINAL_CONFIG.chart.backgroundColor
|
|
1686
|
-
}, null, 8, ha),
|
|
1687
|
-
d("rect", {
|
|
1688
|
-
x: e.drawingArea.right + 1,
|
|
1689
|
-
y: e.drawingArea.top,
|
|
1690
|
-
width: e.FINAL_CONFIG.chart.padding.right,
|
|
1691
|
-
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1692
|
-
fill: e.FINAL_CONFIG.chart.backgroundColor
|
|
1693
|
-
}, null, 8, ca)
|
|
1694
|
-
]),
|
|
1695
|
-
(r(!0), i(I, null, m(e.lineSet, (a, n) => (r(), i("g", {
|
|
1798
|
+
])) : c("", !0),
|
|
1799
|
+
(r(!0), i(b, null, I(e.lineSet, (a, n) => (r(), i("g", {
|
|
1696
1800
|
key: `xLabel_line_${n}`,
|
|
1697
1801
|
class: T(`xLabel_line_${n}`),
|
|
1698
1802
|
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1699
1803
|
}, [
|
|
1700
|
-
(r(!0), i(
|
|
1804
|
+
(r(!0), i(b, null, I(a.plots, (s, g) => (r(), i("g", {
|
|
1701
1805
|
key: `xLabel_line_${n}_${g}`
|
|
1702
1806
|
}, [
|
|
1703
1807
|
s && g === 0 && a.showSerieName && a.showSerieName === "start" ? (r(), i("text", {
|
|
@@ -1715,7 +1819,7 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1715
1819
|
y: s.y,
|
|
1716
1820
|
maxWords: 2
|
|
1717
1821
|
})
|
|
1718
|
-
}, null, 8,
|
|
1822
|
+
}, null, 8, Na)) : c("", !0),
|
|
1719
1823
|
s && g === a.plots.length - 1 && a.showSerieName && a.showSerieName === "end" ? (r(), i("text", {
|
|
1720
1824
|
key: 1,
|
|
1721
1825
|
x: s.x + t.fontSizes.plotLabels,
|
|
@@ -1731,15 +1835,15 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1731
1835
|
y: s.y,
|
|
1732
1836
|
maxWords: 2
|
|
1733
1837
|
})
|
|
1734
|
-
}, null, 8,
|
|
1838
|
+
}, null, 8, _a)) : c("", !0)
|
|
1735
1839
|
]))), 128))
|
|
1736
1840
|
], 6))), 128)),
|
|
1737
|
-
(r(!0), i(
|
|
1841
|
+
(r(!0), i(b, null, I(e.plotSet, (a, n) => (r(), i("g", {
|
|
1738
1842
|
key: `xLabel_plot_${n}`,
|
|
1739
1843
|
class: T(`xLabel_plot_${n}`),
|
|
1740
1844
|
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1741
1845
|
}, [
|
|
1742
|
-
(r(!0), i(
|
|
1846
|
+
(r(!0), i(b, null, I(a.plots, (s, g) => (r(), i("g", {
|
|
1743
1847
|
key: `xLabel_plot_${n}_${g}`
|
|
1744
1848
|
}, [
|
|
1745
1849
|
s && g === 0 && a.showSerieName && a.showSerieName === "start" ? (r(), i("text", {
|
|
@@ -1757,7 +1861,7 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1757
1861
|
y: s.y,
|
|
1758
1862
|
maxWords: 2
|
|
1759
1863
|
})
|
|
1760
|
-
}, null, 8,
|
|
1864
|
+
}, null, 8, xa)) : c("", !0),
|
|
1761
1865
|
s && g === a.plots.length - 1 && a.showSerieName && a.showSerieName === "end" ? (r(), i("text", {
|
|
1762
1866
|
key: 1,
|
|
1763
1867
|
x: s.x + t.fontSizes.plotLabels,
|
|
@@ -1773,91 +1877,10 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1773
1877
|
y: s.y,
|
|
1774
1878
|
maxWords: 2
|
|
1775
1879
|
})
|
|
1776
|
-
}, null, 8,
|
|
1880
|
+
}, null, 8, Fa)) : c("", !0)
|
|
1777
1881
|
]))), 128))
|
|
1778
1882
|
], 6))), 128)),
|
|
1779
|
-
|
|
1780
|
-
t.mutableConfig.useIndividualScale ? (r(), i(I, { key: 0 }, [
|
|
1781
|
-
(r(!0), i(I, null, m(e.allScales, (a) => (r(), i("g", null, [
|
|
1782
|
-
d("line", {
|
|
1783
|
-
x1: a.x,
|
|
1784
|
-
x2: a.x,
|
|
1785
|
-
y1: t.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset - a.individualHeight : e.drawingArea.top,
|
|
1786
|
-
y2: t.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset : e.drawingArea.bottom,
|
|
1787
|
-
stroke: a.color,
|
|
1788
|
-
"stroke-width": e.FINAL_CONFIG.chart.grid.stroke,
|
|
1789
|
-
"stroke-linecap": "round",
|
|
1790
|
-
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1791
|
-
}, null, 12, Ia)
|
|
1792
|
-
]))), 256)),
|
|
1793
|
-
(r(!0), i(I, null, m(e.allScales, (a) => (r(), i("g", {
|
|
1794
|
-
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1795
|
-
}, [
|
|
1796
|
-
d("text", {
|
|
1797
|
-
fill: a.color,
|
|
1798
|
-
"font-size": t.fontSizes.dataLabels,
|
|
1799
|
-
"text-anchor": "middle",
|
|
1800
|
-
transform: `translate(${a.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + 5}, ${t.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset - a.individualHeight / 2 : e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`
|
|
1801
|
-
}, C(a.name) + " " + C(a.scaleLabel ? `- ${a.scaleLabel}` : ""), 9, ma),
|
|
1802
|
-
(r(!0), i(I, null, m(a.yLabels, (n, s) => (r(), i("line", {
|
|
1803
|
-
x1: a.x - 3,
|
|
1804
|
-
x2: a.x,
|
|
1805
|
-
y1: n.y,
|
|
1806
|
-
y2: n.y,
|
|
1807
|
-
stroke: a.color,
|
|
1808
|
-
"stroke-width": 1,
|
|
1809
|
-
"stroke-linecap": "round"
|
|
1810
|
-
}, null, 8, Na))), 256)),
|
|
1811
|
-
(r(!0), i(I, null, m(a.yLabels, (n, s) => (r(), i("text", {
|
|
1812
|
-
x: a.x - 5,
|
|
1813
|
-
y: n.y,
|
|
1814
|
-
"font-size": t.fontSizes.dataLabels,
|
|
1815
|
-
"text-anchor": "end",
|
|
1816
|
-
fill: a.color
|
|
1817
|
-
}, C(e.applyDataLabel(
|
|
1818
|
-
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1819
|
-
n.value,
|
|
1820
|
-
e.dataLabel({
|
|
1821
|
-
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
1822
|
-
v: n.value,
|
|
1823
|
-
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
1824
|
-
r: 1
|
|
1825
|
-
})
|
|
1826
|
-
)), 9, _a))), 256))
|
|
1827
|
-
], 4))), 256))
|
|
1828
|
-
], 64)) : (r(!0), i(I, { key: 1 }, m(e.yLabels, (a, n) => (r(), i("g", {
|
|
1829
|
-
key: `yLabel_${n}`
|
|
1830
|
-
}, [
|
|
1831
|
-
e.canShowValue(a) && a.value >= e.niceScale.min && a.value <= e.niceScale.max ? (r(), i("line", {
|
|
1832
|
-
key: 0,
|
|
1833
|
-
x1: e.drawingArea.left,
|
|
1834
|
-
x2: e.drawingArea.left - 5,
|
|
1835
|
-
y1: a.y,
|
|
1836
|
-
y2: a.y,
|
|
1837
|
-
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1838
|
-
"stroke-width": "1",
|
|
1839
|
-
"stroke-linecap": "round"
|
|
1840
|
-
}, null, 8, Fa)) : h("", !0),
|
|
1841
|
-
a.value >= e.niceScale.min && a.value <= e.niceScale.max ? (r(), i("text", {
|
|
1842
|
-
key: 1,
|
|
1843
|
-
x: e.drawingArea.left - 7,
|
|
1844
|
-
y: a.y + t.fontSizes.dataLabels / 3,
|
|
1845
|
-
"font-size": t.fontSizes.dataLabels,
|
|
1846
|
-
"text-anchor": "end",
|
|
1847
|
-
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
1848
|
-
}, C(e.canShowValue(a.value) ? e.applyDataLabel(
|
|
1849
|
-
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1850
|
-
a.value,
|
|
1851
|
-
e.dataLabel({
|
|
1852
|
-
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
1853
|
-
v: a.value,
|
|
1854
|
-
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
1855
|
-
r: 1
|
|
1856
|
-
})
|
|
1857
|
-
) : ""), 9, xa)) : h("", !0)
|
|
1858
|
-
]))), 128))
|
|
1859
|
-
])) : h("", !0),
|
|
1860
|
-
t.mutableConfig.useIndividualScale && !t.mutableConfig.isStacked ? (r(!0), i(I, { key: 7 }, m(e.allScales, (a) => (r(), i("rect", {
|
|
1883
|
+
t.mutableConfig.useIndividualScale && !t.mutableConfig.isStacked ? (r(!0), i(b, { key: 7 }, I(e.allScales, (a) => (r(), i("rect", {
|
|
1861
1884
|
x: a.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
1862
1885
|
y: e.drawingArea.top,
|
|
1863
1886
|
width: e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
@@ -1865,8 +1888,8 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1865
1888
|
fill: t.selectedScale === a.id ? `${a.color}20` : "transparent",
|
|
1866
1889
|
onMouseenter: (n) => t.selectedScale = a.id,
|
|
1867
1890
|
onMouseleave: o[0] || (o[0] = (n) => t.selectedScale = null)
|
|
1868
|
-
}, null, 40, ya))), 256)) :
|
|
1869
|
-
|
|
1891
|
+
}, null, 40, ya))), 256)) : c("", !0),
|
|
1892
|
+
u("g", null, [
|
|
1870
1893
|
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !t.mutableConfig.useIndividualScale ? (r(), i("text", {
|
|
1871
1894
|
key: 0,
|
|
1872
1895
|
"font-size": t.fontSizes.yAxis,
|
|
@@ -1874,7 +1897,7 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1874
1897
|
transform: `translate(${t.fontSizes.yAxis + e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`,
|
|
1875
1898
|
"text-anchor": "middle",
|
|
1876
1899
|
style: { transition: "none" }
|
|
1877
|
-
}, C(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, Aa)) :
|
|
1900
|
+
}, C(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, Aa)) : c("", !0),
|
|
1878
1901
|
e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (r(), i("text", {
|
|
1879
1902
|
key: 1,
|
|
1880
1903
|
"text-anchor": "middle",
|
|
@@ -1882,10 +1905,10 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1882
1905
|
y: e.drawingArea.bottom + t.fontSizes.yAxis + t.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,
|
|
1883
1906
|
"font-size": t.fontSizes.yAxis,
|
|
1884
1907
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
1885
|
-
}, C(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, La)) :
|
|
1908
|
+
}, C(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, La)) : c("", !0)
|
|
1886
1909
|
]),
|
|
1887
1910
|
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (r(), i("g", Sa, [
|
|
1888
|
-
(r(!0), i(
|
|
1911
|
+
(r(!0), i(b, null, I(e.timeLabels, (a, n) => (r(), i("g", {
|
|
1889
1912
|
key: `time_label_${n}`
|
|
1890
1913
|
}, [
|
|
1891
1914
|
a && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || a && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (n === 0 || n === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || a && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && t.selectedSerieIndex === n && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || a && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && n % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (r(), i("text", {
|
|
@@ -1894,14 +1917,14 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1894
1917
|
"font-size": t.fontSizes.xAxis,
|
|
1895
1918
|
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
1896
1919
|
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * n + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom + t.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`
|
|
1897
|
-
}, C(a || ""), 9, Ca)) :
|
|
1920
|
+
}, C(a || ""), 9, Ca)) : c("", !0)
|
|
1898
1921
|
]))), 128))
|
|
1899
|
-
])) :
|
|
1900
|
-
|
|
1901
|
-
(r(!0), i(
|
|
1922
|
+
])) : c("", !0),
|
|
1923
|
+
u("g", null, [
|
|
1924
|
+
(r(!0), i(b, null, I(e.maxSeries, (a, n) => (r(), i("g", {
|
|
1902
1925
|
key: `tooltip_trap_${n}`
|
|
1903
1926
|
}, [
|
|
1904
|
-
|
|
1927
|
+
u("rect", {
|
|
1905
1928
|
"data-cy-trap": "",
|
|
1906
1929
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * n,
|
|
1907
1930
|
y: e.drawingArea.top,
|
|
@@ -1915,7 +1938,7 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1915
1938
|
]))), 128))
|
|
1916
1939
|
]),
|
|
1917
1940
|
e.FINAL_CONFIG.chart.highlighter.useLine && ![null, void 0].includes(t.selectedSerieIndex) ? (r(), i("g", wa, [
|
|
1918
|
-
|
|
1941
|
+
u("line", {
|
|
1919
1942
|
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * t.selectedSerieIndex + e.drawingArea.width / e.maxSeries / 2,
|
|
1920
1943
|
x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * t.selectedSerieIndex + e.drawingArea.width / e.maxSeries / 2,
|
|
1921
1944
|
y1: e.drawingArea.top,
|
|
@@ -1926,7 +1949,7 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1926
1949
|
"stroke-linecap": "round",
|
|
1927
1950
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
1928
1951
|
}, null, 8, Oa)
|
|
1929
|
-
])) :
|
|
1952
|
+
])) : c("", !0),
|
|
1930
1953
|
e.FINAL_CONFIG.chart.timeTag.show && ![null, void 0].includes(t.selectedSerieIndex) ? (r(), i("g", va, [
|
|
1931
1954
|
(r(), i("foreignObject", {
|
|
1932
1955
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * t.selectedSerieIndex - 100 + e.drawingArea.width / e.maxSeries / 2,
|
|
@@ -1935,25 +1958,25 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1935
1958
|
height: "40",
|
|
1936
1959
|
style: { overflow: "visible !important" }
|
|
1937
1960
|
}, [
|
|
1938
|
-
|
|
1961
|
+
u("div", {
|
|
1939
1962
|
class: "vue-ui-xy-time-tag",
|
|
1940
1963
|
style: L(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${e.FINAL_CONFIG.chart.timeTag.backgroundColor};color:${e.FINAL_CONFIG.chart.timeTag.color};font-size:${e.FINAL_CONFIG.chart.timeTag.fontSize}px`)
|
|
1941
1964
|
}, C(e.timeLabels[t.selectedSerieIndex] || t.selectedSerieIndex), 5)
|
|
1942
1965
|
], 8, Ga)),
|
|
1943
|
-
|
|
1966
|
+
u("circle", {
|
|
1944
1967
|
cx: e.drawingArea.left + e.drawingArea.width / e.maxSeries * t.selectedSerieIndex + e.drawingArea.width / e.maxSeries / 2,
|
|
1945
1968
|
cy: e.drawingArea.bottom,
|
|
1946
1969
|
r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
|
|
1947
1970
|
fill: e.FINAL_CONFIG.chart.timeTag.circleMarker.color
|
|
1948
1971
|
}, null, 8, za)
|
|
1949
|
-
])) :
|
|
1950
|
-
])) :
|
|
1972
|
+
])) : c("", !0)
|
|
1973
|
+
])) : c("", !0),
|
|
1951
1974
|
v(l.$slots, "svg", { svg: e.svg }, void 0, !0)
|
|
1952
|
-
], 14,
|
|
1975
|
+
], 14, Ye)) : c("", !0),
|
|
1953
1976
|
l.$slots.watermark ? (r(), i("div", pa, [
|
|
1954
|
-
v(l.$slots, "watermark",
|
|
1955
|
-
])) :
|
|
1956
|
-
e.isDataset ?
|
|
1977
|
+
v(l.$slots, "watermark", W(B({ isPrinting: t.isPrinting || t.isImaging })), void 0, !0)
|
|
1978
|
+
])) : c("", !0),
|
|
1979
|
+
e.isDataset ? c("", !0) : (r(), V(x, {
|
|
1957
1980
|
key: 4,
|
|
1958
1981
|
config: {
|
|
1959
1982
|
type: "line",
|
|
@@ -1994,23 +2017,23 @@ function Ya(l, o, c, b, t, e) {
|
|
|
1994
2017
|
onReset: e.refreshSlicer
|
|
1995
2018
|
}, {
|
|
1996
2019
|
"reset-action": z(({ reset: a }) => [
|
|
1997
|
-
v(l.$slots, "reset-action",
|
|
2020
|
+
v(l.$slots, "reset-action", W(B({ reset: a })), void 0, !0)
|
|
1998
2021
|
]),
|
|
1999
2022
|
_: 3
|
|
2000
|
-
}, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "max", "valueStart", "valueEnd", "start", "end", "onReset"])) :
|
|
2023
|
+
}, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "max", "valueStart", "valueEnd", "start", "end", "onReset"])) : c("", !0),
|
|
2001
2024
|
e.FINAL_CONFIG.chart.legend.show ? (r(), i("div", {
|
|
2002
2025
|
key: 6,
|
|
2003
2026
|
ref: "chartLegend",
|
|
2004
2027
|
class: "vue-ui-xy-legend",
|
|
2005
2028
|
style: L(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
|
|
2006
2029
|
}, [
|
|
2007
|
-
(r(!0), i(
|
|
2030
|
+
(r(!0), i(b, null, I(e.absoluteDataset, (a, n) => (r(), i("div", {
|
|
2008
2031
|
key: `div_legend_item_${n}`,
|
|
2009
2032
|
onClick: (s) => e.segregate(a),
|
|
2010
2033
|
class: T({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": t.segregatedSeries.includes(a.id) })
|
|
2011
2034
|
}, [
|
|
2012
2035
|
t.icons[a.type] === "line" ? (r(), i("svg", Ma, [
|
|
2013
|
-
|
|
2036
|
+
u("rect", {
|
|
2014
2037
|
x: "0",
|
|
2015
2038
|
y: "7",
|
|
2016
2039
|
rx: "3",
|
|
@@ -2019,7 +2042,7 @@ function Ya(l, o, c, b, t, e) {
|
|
|
2019
2042
|
width: "20",
|
|
2020
2043
|
fill: a.color
|
|
2021
2044
|
}, null, 8, Pa),
|
|
2022
|
-
|
|
2045
|
+
Y(f, {
|
|
2023
2046
|
plot: { x: 10, y: 9 },
|
|
2024
2047
|
radius: 4,
|
|
2025
2048
|
color: a.color,
|
|
@@ -2045,14 +2068,14 @@ function Ya(l, o, c, b, t, e) {
|
|
|
2045
2068
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(a.shape) ? a.shape : "circle"
|
|
2046
2069
|
}, null, 8, ["color", "shape"]))
|
|
2047
2070
|
])),
|
|
2048
|
-
|
|
2071
|
+
u("span", {
|
|
2049
2072
|
style: L(`color:${e.FINAL_CONFIG.chart.legend.color}`)
|
|
2050
2073
|
}, C(a.name), 5)
|
|
2051
2074
|
], 10, Ta))), 128))
|
|
2052
2075
|
], 4)) : (r(), i("div", Da, [
|
|
2053
2076
|
v(l.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
|
|
2054
2077
|
], 512)),
|
|
2055
|
-
|
|
2078
|
+
Y(k, {
|
|
2056
2079
|
show: t.mutableConfig.showTooltip && t.isTooltip,
|
|
2057
2080
|
backgroundColor: e.FINAL_CONFIG.chart.tooltip.backgroundColor,
|
|
2058
2081
|
color: e.FINAL_CONFIG.chart.tooltip.color,
|
|
@@ -2068,10 +2091,10 @@ function Ya(l, o, c, b, t, e) {
|
|
|
2068
2091
|
isCustom: e.FINAL_CONFIG.chart.tooltip.customFormat && typeof e.FINAL_CONFIG.chart.tooltip.customFormat == "function"
|
|
2069
2092
|
}, {
|
|
2070
2093
|
"tooltip-before": z(() => [
|
|
2071
|
-
v(l.$slots, "tooltip-before",
|
|
2094
|
+
v(l.$slots, "tooltip-before", W(B({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2072
2095
|
]),
|
|
2073
2096
|
"tooltip-after": z(() => [
|
|
2074
|
-
v(l.$slots, "tooltip-after",
|
|
2097
|
+
v(l.$slots, "tooltip-after", W(B({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2075
2098
|
]),
|
|
2076
2099
|
_: 3
|
|
2077
2100
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
@@ -2092,21 +2115,21 @@ function Ya(l, o, c, b, t, e) {
|
|
|
2092
2115
|
}
|
|
2093
2116
|
}, {
|
|
2094
2117
|
content: z(() => [
|
|
2095
|
-
|
|
2118
|
+
u("div", {
|
|
2096
2119
|
style: L(`${t.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
2097
2120
|
}, [
|
|
2098
|
-
|
|
2099
|
-
Ve(
|
|
2121
|
+
u("div", Ea, [
|
|
2122
|
+
Ve(u("input", {
|
|
2100
2123
|
type: "checkbox",
|
|
2101
2124
|
"onUpdate:modelValue": o[4] || (o[4] = (a) => t.showSparklineTable = a)
|
|
2102
2125
|
}, null, 512), [
|
|
2103
2126
|
[Re, t.showSparklineTable]
|
|
2104
2127
|
]),
|
|
2105
|
-
|
|
2128
|
+
u("div", {
|
|
2106
2129
|
onClick: o[5] || (o[5] = (a) => t.showSparklineTable = !t.showSparklineTable),
|
|
2107
2130
|
style: { cursor: "pointer" }
|
|
2108
2131
|
}, [
|
|
2109
|
-
|
|
2132
|
+
Y(w, {
|
|
2110
2133
|
name: "chartLine",
|
|
2111
2134
|
size: 20,
|
|
2112
2135
|
stroke: e.FINAL_CONFIG.chart.color
|
|
@@ -2127,7 +2150,7 @@ function Ya(l, o, c, b, t, e) {
|
|
|
2127
2150
|
onClose: o[6] || (o[6] = (a) => t.mutableConfig.showTable = !1)
|
|
2128
2151
|
}, {
|
|
2129
2152
|
th: z(({ th: a }) => [
|
|
2130
|
-
|
|
2153
|
+
u("div", { innerHTML: a }, null, 8, Ha)
|
|
2131
2154
|
]),
|
|
2132
2155
|
td: z(({ td: a }) => [
|
|
2133
2156
|
De(C(isNaN(Number(a)) ? a : e.dataLabel({
|
|
@@ -2142,10 +2165,10 @@ function Ya(l, o, c, b, t, e) {
|
|
|
2142
2165
|
], 4)
|
|
2143
2166
|
]),
|
|
2144
2167
|
_: 1
|
|
2145
|
-
}, 8, ["config"])) :
|
|
2146
|
-
], 14,
|
|
2168
|
+
}, 8, ["config"])) : c("", !0)
|
|
2169
|
+
], 14, Be);
|
|
2147
2170
|
}
|
|
2148
|
-
const rl = /* @__PURE__ */
|
|
2171
|
+
const rl = /* @__PURE__ */ Ee(We, [["render", Wa], ["__scopeId", "data-v-58a339d5"]]);
|
|
2149
2172
|
export {
|
|
2150
2173
|
rl as default
|
|
2151
2174
|
};
|