vue-data-ui 2.3.76 → 2.3.78
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-DY9RKUmG.js → Arrow-BCYtOwX7.js} +1 -1
- package/dist/{Arrow-D7M4-bW7.cjs → Arrow-DWkvIpW8.cjs} +1 -1
- package/dist/{BaseIcon-rwm-10Hu.js → BaseIcon-BIQXWVMS.js} +1 -1
- package/dist/{BaseIcon-DB7Apwv_.cjs → BaseIcon-Bcpzfk34.cjs} +1 -1
- package/dist/{DataTable-CsNozyz7.cjs → DataTable-C5TOiC61.cjs} +1 -1
- package/dist/{DataTable-e2fnfjXV.js → DataTable-y1lX5jVj.js} +2 -2
- package/dist/{Legend-5cQ0xZjK.js → Legend-BLXcdrri.js} +1 -1
- package/dist/{Legend-DgFd-O0m.cjs → Legend-CGGD8NhP.cjs} +1 -1
- package/dist/{Shape-CiTElr_0.js → Shape-CsoTtJx6.js} +1 -1
- package/dist/{Shape-yPECDLiP.cjs → Shape-qJYTY2BC.cjs} +1 -1
- package/dist/{Slicer-DaZgCKV7.cjs → Slicer-CZJXKSeE.cjs} +1 -1
- package/dist/{Slicer-DwBBu3kB.js → Slicer-DzJZ4axa.js} +12 -12
- package/dist/{Title-3EduyW4p.cjs → Title-BSpa3uge.cjs} +1 -1
- package/dist/{Title-gUz6GDA3.js → Title-Bx-VO3md.js} +1 -1
- package/dist/{Tooltip-DfSM1mNP.js → Tooltip-Dk-cimhQ.js} +23 -23
- package/dist/Tooltip-rmhZhv96.cjs +1 -0
- package/dist/index-CzjC8LfY.cjs +4 -0
- package/dist/{index-CaV1s-yZ.js → index-DP8dqFNd.js} +1147 -1145
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-tWCzZrLx.js → useNestedProp-B-oZxD4x.js} +1 -1
- package/dist/{useNestedProp-CisbRRo_.cjs → useNestedProp-CY7DebVH.cjs} +1 -1
- package/dist/{usePrinter-DzTaA1eh.cjs → usePrinter-DiLM6jav.cjs} +1 -1
- package/dist/{usePrinter-rvJyT65A.js → usePrinter-DiuHo4LO.js} +1 -1
- package/dist/{vue-data-ui-BGkWRPUY.cjs → vue-data-ui-Ce5IFSYA.cjs} +1 -1
- package/dist/{vue-data-ui-BO89gTtq.js → vue-data-ui-Ct7n5wkM.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +9 -9
- package/dist/vue-ui-3d-bar-B_i2EoFu.cjs +19 -0
- package/dist/{vue-ui-3d-bar-CcTMIHiB.js → vue-ui-3d-bar-O3fB5J7V.js} +342 -342
- package/dist/{vue-ui-accordion-CpzGQ63y.js → vue-ui-accordion-Dl8zkZPk.js} +3 -3
- package/dist/{vue-ui-accordion-7e4Myhcg.cjs → vue-ui-accordion-DpI7fTKZ.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-D71ZLkVV.js → vue-ui-age-pyramid-BeiREI6d.js} +22 -22
- package/dist/vue-ui-age-pyramid-BsAfxkN4.cjs +1 -0
- package/dist/{vue-ui-annotator-B8Iu6cYt.js → vue-ui-annotator-0yje27Qq.js} +39 -39
- package/dist/{vue-ui-annotator-BKQrweqm.cjs → vue-ui-annotator-DpN-6IwB.cjs} +2 -2
- package/dist/{vue-ui-candlestick-Bx4QVkY0.js → vue-ui-candlestick-D9UteVvx.js} +34 -34
- package/dist/{vue-ui-candlestick-DAc1FQ-i.cjs → vue-ui-candlestick-lv78wnpS.cjs} +2 -2
- package/dist/{vue-ui-carousel-table-uFRqkghO.cjs → vue-ui-carousel-table-Br6FwMKM.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-xuQG6bcH.js → vue-ui-carousel-table-jxZ3h5pq.js} +31 -31
- package/dist/{vue-ui-chestnut-Bo6rDcU7.js → vue-ui-chestnut-DXuHRJy4.js} +291 -288
- package/dist/vue-ui-chestnut-DbYHeNaL.cjs +6 -0
- package/dist/{vue-ui-cursor-C0KOqEOq.js → vue-ui-cursor-BzPbdVRJ.js} +20 -20
- package/dist/vue-ui-cursor-iss6SJ1Y.cjs +1 -0
- package/dist/{vue-ui-dashboard-BT71xS7P.js → vue-ui-dashboard-CGjWuFrI.js} +2 -2
- package/dist/{vue-ui-dashboard-0Hsjx-bO.cjs → vue-ui-dashboard-DKT82yQ4.cjs} +1 -1
- package/dist/{vue-ui-digits-BRqpKYvD.js → vue-ui-digits-BCguvLxB.js} +2 -2
- package/dist/{vue-ui-digits-C2ReH6w0.cjs → vue-ui-digits-BfwDCfYp.cjs} +1 -1
- package/dist/{vue-ui-donut-NQW-3prf.js → vue-ui-donut-DJTeGLVG.js} +209 -212
- package/dist/{vue-ui-donut-evolution-jbXQQGTc.js → vue-ui-donut-evolution-BaLDZNDG.js} +106 -106
- package/dist/vue-ui-donut-evolution-Bil1AIhX.cjs +1 -0
- package/dist/vue-ui-donut-uVPdO4UH.cjs +1 -0
- package/dist/{vue-ui-dumbbell-Dyz8xdtC.js → vue-ui-dumbbell-BqtDdV5w.js} +17 -17
- package/dist/{vue-ui-dumbbell-DXQSg6wa.cjs → vue-ui-dumbbell-DiL3xhKY.cjs} +1 -1
- package/dist/{vue-ui-flow-UqSNwH9d.cjs → vue-ui-flow-BVTbbsCK.cjs} +1 -1
- package/dist/{vue-ui-flow-BL3JWW1m.js → vue-ui-flow-zfTGon4s.js} +28 -28
- package/dist/{vue-ui-galaxy-Dx9nsOuM.js → vue-ui-galaxy-5iRb5sQ-.js} +22 -22
- package/dist/{vue-ui-galaxy-DTQWGvRH.cjs → vue-ui-galaxy-GSO_6KIe.cjs} +1 -1
- package/dist/vue-ui-gauge-Bz7oLa51.cjs +1 -0
- package/dist/{vue-ui-gauge-CLaKGi0-.js → vue-ui-gauge-DljHYdCS.js} +101 -110
- package/dist/{vue-ui-gizmo-of-4s5HG.js → vue-ui-gizmo-B-fxFOZy.js} +2 -2
- package/dist/{vue-ui-gizmo-Kitfqu0J.cjs → vue-ui-gizmo-KL0OJY2K.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BIzjOMXO.js → vue-ui-heatmap-ketn_NV3.js} +17 -17
- package/dist/{vue-ui-heatmap-DUw2350O.cjs → vue-ui-heatmap-thMJPCfo.cjs} +1 -1
- package/dist/{vue-ui-kpi-By3YPwgo.js → vue-ui-kpi-Bxu8uZ21.js} +3 -3
- package/dist/{vue-ui-kpi-DyL2Hcz-.cjs → vue-ui-kpi-e1QWa8D4.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DnK3V2z2.js → vue-ui-mini-loader-BZ_2aV8O.js} +2 -2
- package/dist/{vue-ui-mini-loader-C048-8Kd.cjs → vue-ui-mini-loader-paRZQU8H.cjs} +1 -1
- package/dist/{vue-ui-molecule-BfhbIqa5.js → vue-ui-molecule-Bpp5unvI.js} +33 -33
- package/dist/{vue-ui-molecule-D-ahly6R.cjs → vue-ui-molecule-VOBL4Osc.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DXxEKr3x.js → vue-ui-mood-radar-BY8XP_Q5.js} +129 -132
- package/dist/vue-ui-mood-radar-CwtMLwP8.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-BdUdHFd-.js → vue-ui-nested-donuts-5uuLi3If.js} +98 -98
- package/dist/{vue-ui-nested-donuts-C7qM_FRw.cjs → vue-ui-nested-donuts-CLnVnAiD.cjs} +2 -2
- package/dist/{vue-ui-onion-DX3gofXZ.cjs → vue-ui-onion-CMSPSSSG.cjs} +1 -1
- package/dist/{vue-ui-onion-D0vF5jBt.js → vue-ui-onion-zDy4ecPl.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-DEx5kFYd.cjs → vue-ui-parallel-coordinate-plot-1PFxiI__.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CTZY-pY8.js → vue-ui-parallel-coordinate-plot-BeEkL7Dq.js} +24 -24
- package/dist/vue-ui-quadrant-Cx5z_c90.cjs +1 -0
- package/dist/{vue-ui-quadrant-ByY8GP3y.js → vue-ui-quadrant-MCIlbbsW.js} +35 -35
- package/dist/{vue-ui-quick-chart-DWZEgUJF.cjs → vue-ui-quick-chart-Xn-47NQG.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-DTxJ__7j.js → vue-ui-quick-chart-r6Qa7qg_.js} +69 -69
- package/dist/{vue-ui-radar-DEED0rTz.cjs → vue-ui-radar-ANQ1wXFc.cjs} +1 -1
- package/dist/{vue-ui-radar-5UBmAU6W.js → vue-ui-radar-DFV5cFkl.js} +39 -39
- package/dist/{vue-ui-rating-Ce_Ewqtl.cjs → vue-ui-rating-BVzCbQbv.cjs} +1 -1
- package/dist/{vue-ui-rating-Dr6jquxh.js → vue-ui-rating-DYu1EuJF.js} +6 -6
- package/dist/{vue-ui-relation-circle-BU8i2miI.js → vue-ui-relation-circle-BAcmDQB_.js} +29 -29
- package/dist/vue-ui-relation-circle-DEM6C6Or.cjs +1 -0
- package/dist/{vue-ui-rings-Ctl3Jywh.js → vue-ui-rings-BiLlYpgu.js} +31 -31
- package/dist/{vue-ui-rings-OQ8a1Ruw.cjs → vue-ui-rings-Ce4G4hat.cjs} +2 -2
- package/dist/{vue-ui-scatter-BwJ_koWT.js → vue-ui-scatter-D2ndYfkQ.js} +95 -95
- package/dist/vue-ui-scatter-OtlcTCUF.cjs +1 -0
- package/dist/{vue-ui-screenshot-BS3L5vhN.js → vue-ui-screenshot-CKCNPn-e.js} +4 -4
- package/dist/{vue-ui-screenshot-bAVk3EPl.cjs → vue-ui-screenshot-DTQx4VsM.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CvFX_ExX.js → vue-ui-skeleton-B30ZhUV7.js} +96 -96
- package/dist/vue-ui-skeleton-CwqzJlQf.cjs +41 -0
- package/dist/{vue-ui-smiley-CGYZpNt9.js → vue-ui-smiley-DzLvZR1k.js} +2 -2
- package/dist/{vue-ui-smiley-sF8QIso1.cjs → vue-ui-smiley-L6o24M6h.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-B4XSSKl9.js → vue-ui-spark-trend-BKsmENbH.js} +21 -21
- package/dist/vue-ui-spark-trend-BoWeviHk.cjs +1 -0
- package/dist/{vue-ui-sparkbar-BbsJGDMZ.js → vue-ui-sparkbar-DNzZkp8z.js} +10 -10
- package/dist/vue-ui-sparkbar-DY3iOLo4.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-D4w_i_QJ.js → vue-ui-sparkgauge-B2DngjVP.js} +8 -8
- package/dist/{vue-ui-sparkgauge-BKyQoI7C.cjs → vue-ui-sparkgauge-BlZ-lJm4.cjs} +1 -1
- package/dist/vue-ui-sparkhistogram-BUBewgdH.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-CYybrW-6.js → vue-ui-sparkhistogram-Co9N3BeQ.js} +111 -101
- package/dist/vue-ui-sparkline-BhL0mxXD.cjs +1 -0
- package/dist/{vue-ui-sparkline-DjN1SVdO.js → vue-ui-sparkline-Dpqo4aRJ.js} +34 -34
- package/dist/{vue-ui-sparkstackbar-BZ2bESBi.cjs → vue-ui-sparkstackbar-DtNbx3EV.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-BLMhJxaN.js → vue-ui-sparkstackbar-_JwfRxF8.js} +5 -5
- package/dist/{vue-ui-stackbar-BTKOHUYc.js → vue-ui-stackbar-BtN7ZM7-.js} +202 -200
- package/dist/{vue-ui-stackbar-DRHaJFR8.cjs → vue-ui-stackbar-C7AWHP6m.cjs} +2 -2
- package/dist/{vue-ui-strip-plot-o6GTsGAT.js → vue-ui-strip-plot-6L9a7BSw.js} +26 -26
- package/dist/{vue-ui-strip-plot-DxQxFbWg.cjs → vue-ui-strip-plot-cgOFTunJ.cjs} +1 -1
- package/dist/{vue-ui-table-BFIj1Rgh.cjs → vue-ui-table-4Pf9tmFg.cjs} +1 -1
- package/dist/{vue-ui-table-CnquiTpr.js → vue-ui-table-BFYHRMCS.js} +1 -1
- package/dist/{vue-ui-table-heatmap-CZRIwv-Q.js → vue-ui-table-heatmap--kPCu8mA.js} +24 -24
- package/dist/{vue-ui-table-heatmap-CCGK12Fa.cjs → vue-ui-table-heatmap-CltKb2V9.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DYmgfHz4.cjs → vue-ui-table-sparkline-B5OjJud8.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-B3zEeq6Z.js → vue-ui-table-sparkline-CsWx1Ksy.js} +26 -26
- package/dist/{vue-ui-thermometer-CzPRBt6c.cjs → vue-ui-thermometer-62_4QovL.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BopiohUh.js → vue-ui-thermometer-nTD7sp8r.js} +40 -40
- package/dist/{vue-ui-timer-Bonw69Lt.cjs → vue-ui-timer-BU0s7Vt9.cjs} +1 -1
- package/dist/{vue-ui-timer-C7WkW8hK.js → vue-ui-timer-DMFHjnzA.js} +8 -8
- package/dist/{vue-ui-tiremarks-BurRtFv4.js → vue-ui-tiremarks-1X9B1VKM.js} +18 -18
- package/dist/{vue-ui-tiremarks-DkIGfq8t.cjs → vue-ui-tiremarks-mwBeBMJY.cjs} +1 -1
- package/dist/{vue-ui-treemap-DWy4voIr.js → vue-ui-treemap-CVTwqPFA.js} +29 -29
- package/dist/{vue-ui-treemap-CalhJmnp.cjs → vue-ui-treemap-DQmBbm7e.cjs} +1 -1
- package/dist/vue-ui-vertical-bar-BXiy8KRC.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-CJW1YhtY.js → vue-ui-vertical-bar-Br6Z0A3F.js} +14 -14
- package/dist/{vue-ui-waffle-faQMBYNx.cjs → vue-ui-waffle-CLCsHw9j.cjs} +1 -1
- package/dist/{vue-ui-waffle-DB7X6nTS.js → vue-ui-waffle-DEXMh07q.js} +84 -84
- package/dist/{vue-ui-wheel-CryKap2E.js → vue-ui-wheel-CwjuVi6U.js} +24 -24
- package/dist/{vue-ui-wheel-BzjbGP6a.cjs → vue-ui-wheel-DSFKKX65.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-COqUkvei.js → vue-ui-word-cloud-BKeD3fHb.js} +19 -19
- package/dist/{vue-ui-word-cloud-DJN9I4q4.cjs → vue-ui-word-cloud-DZS4hCeR.cjs} +1 -1
- package/dist/vue-ui-xy-B5aCogSL.cjs +3 -0
- package/dist/{vue-ui-xy-b1Z_HPsx.js → vue-ui-xy-DA3qqL8u.js} +351 -350
- package/dist/{vue-ui-xy-canvas-BgbLnY5B.js → vue-ui-xy-canvas-B7DH4RK5.js} +18 -18
- package/dist/vue-ui-xy-canvas-heCdqh5X.cjs +9 -0
- package/package.json +1 -1
- package/dist/Tooltip-DScSrYXJ.cjs +0 -1
- package/dist/index-BTgtr0F8.cjs +0 -4
- package/dist/vue-ui-3d-bar-DzmcGuqh.cjs +0 -19
- package/dist/vue-ui-age-pyramid-C7qr9EwB.cjs +0 -1
- package/dist/vue-ui-chestnut-DJkm72oD.cjs +0 -6
- package/dist/vue-ui-cursor-BQbeuW-k.cjs +0 -1
- package/dist/vue-ui-donut-evolution-DOe-cwLi.cjs +0 -1
- package/dist/vue-ui-donut-v81suIOX.cjs +0 -1
- package/dist/vue-ui-gauge-BUB7H0qA.cjs +0 -1
- package/dist/vue-ui-mood-radar-DD8R9BpJ.cjs +0 -1
- package/dist/vue-ui-quadrant-CgApzie6.cjs +0 -1
- package/dist/vue-ui-relation-circle-CRcQ6Zcy.cjs +0 -1
- package/dist/vue-ui-scatter-B8StSjt8.cjs +0 -1
- package/dist/vue-ui-skeleton-CMQzFTs9.cjs +0 -41
- package/dist/vue-ui-spark-trend-CdIoxaqb.cjs +0 -1
- package/dist/vue-ui-sparkbar-C3i1K7hi.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-CvTYEmbz.cjs +0 -1
- package/dist/vue-ui-sparkline-CDowaDRS.cjs +0 -1
- package/dist/vue-ui-vertical-bar-rwWp-sai.cjs +0 -4
- package/dist/vue-ui-xy-BmA0tspd.cjs +0 -3
- package/dist/vue-ui-xy-canvas-DOM2Kq_s.cjs +0 -9
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { p as
|
|
2
|
-
import { U as
|
|
3
|
-
import { c as J, a as $, t as ee,
|
|
4
|
-
import { D as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { _ as
|
|
8
|
-
import pe from "./BaseIcon-
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { S as
|
|
12
|
-
import
|
|
13
|
-
import { u as U } from "./useNestedProp-
|
|
14
|
-
import { resolveComponent as T, openBlock as l, createElementBlock as r, normalizeClass as
|
|
15
|
-
import { _ as
|
|
16
|
-
const
|
|
1
|
+
import { p as Q } from "./pdf-97UbtKC2.js";
|
|
2
|
+
import { U as K, s as j } from "./usePrinter-DiuHo4LO.js";
|
|
3
|
+
import { c as J, a as $, t as ee, z as te, p as ae, T as X, N as P, f as Z, I as ie, F as le, i as re, Z as se, W as ne, _ as ce, v as oe, $ as he, d as de, B as ue, b as ge, q as fe, Q as me, a0 as Ne, r as Ie, e as be, y as xe, L as _e, x as Fe, a1 as ye, o as Ae, s as Le, w as Ce, E as Se, A as ke, u as we } from "./index-DP8dqFNd.js";
|
|
4
|
+
import { D as Oe } from "./DataTable-y1lX5jVj.js";
|
|
5
|
+
import { _ as ve } from "./Title-Bx-VO3md.js";
|
|
6
|
+
import { _ as Ge, u as ze } from "./Tooltip-Dk-cimhQ.js";
|
|
7
|
+
import { _ as Me } from "./Shape-CsoTtJx6.js";
|
|
8
|
+
import pe from "./BaseIcon-BIQXWVMS.js";
|
|
9
|
+
import Pe from "./vue-ui-table-sparkline-CsWx1Ksy.js";
|
|
10
|
+
import Te from "./vue-ui-skeleton-B30ZhUV7.js";
|
|
11
|
+
import { S as Ve } from "./Slicer-DzJZ4axa.js";
|
|
12
|
+
import Re from "./vue-ui-accordion-Dl8zkZPk.js";
|
|
13
|
+
import { u as U } from "./useNestedProp-B-oZxD4x.js";
|
|
14
|
+
import { resolveComponent as T, openBlock as l, createElementBlock as r, normalizeClass as p, normalizeStyle as A, createBlock as V, createCommentVNode as h, createSlots as De, withCtx as z, renderSlot as O, normalizeProps as B, guardReactiveProps as Y, createElementVNode as u, Fragment as m, renderList as b, toDisplayString as C, createVNode as q, withDirectives as He, vModelCheckbox as We, createTextVNode as Ee } from "vue";
|
|
15
|
+
import { _ as Be } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const Ye = J(), Xe = {
|
|
17
17
|
name: "vue-ui-xy",
|
|
18
18
|
props: {
|
|
19
19
|
config: {
|
|
@@ -30,27 +30,27 @@ const Be = J(), Ye = {
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
components: {
|
|
33
|
-
DataTable:
|
|
34
|
-
Shape:
|
|
35
|
-
Title:
|
|
36
|
-
Tooltip:
|
|
37
|
-
UserOptions:
|
|
33
|
+
DataTable: Oe,
|
|
34
|
+
Shape: Me,
|
|
35
|
+
Title: ve,
|
|
36
|
+
Tooltip: Ge,
|
|
37
|
+
UserOptions: K,
|
|
38
38
|
BaseIcon: pe,
|
|
39
|
-
TableSparkline:
|
|
40
|
-
Skeleton:
|
|
41
|
-
Slicer:
|
|
42
|
-
Accordion:
|
|
39
|
+
TableSparkline: Pe,
|
|
40
|
+
Skeleton: Te,
|
|
41
|
+
Slicer: Ve,
|
|
42
|
+
Accordion: Re
|
|
43
43
|
},
|
|
44
44
|
data() {
|
|
45
|
-
this.dataset.forEach((
|
|
46
|
-
[null, void 0].includes(
|
|
45
|
+
this.dataset.forEach((o, f) => {
|
|
46
|
+
[null, void 0].includes(o.series) && this.error({
|
|
47
47
|
componentName: "VueUiXy",
|
|
48
48
|
type: "datasetSerieAttribute",
|
|
49
49
|
property: "series (number[])",
|
|
50
50
|
index: f
|
|
51
51
|
});
|
|
52
52
|
});
|
|
53
|
-
const i = Math.max(...this.dataset.map((
|
|
53
|
+
const i = Math.max(...this.dataset.map((o) => o.series.length)), s = {
|
|
54
54
|
start: 0,
|
|
55
55
|
end: i
|
|
56
56
|
};
|
|
@@ -105,7 +105,7 @@ const Be = J(), Ye = {
|
|
|
105
105
|
maxX: i,
|
|
106
106
|
showSparklineTable: !0,
|
|
107
107
|
segregateStep: 0,
|
|
108
|
-
sliderId:
|
|
108
|
+
sliderId: Ye,
|
|
109
109
|
fontSizes: {
|
|
110
110
|
xAxis: 18,
|
|
111
111
|
yAxis: 12,
|
|
@@ -122,7 +122,7 @@ const Be = J(), Ye = {
|
|
|
122
122
|
watch: {
|
|
123
123
|
dataset: {
|
|
124
124
|
handler(i, s) {
|
|
125
|
-
this.maxX = Math.max(...this.dataset.map((
|
|
125
|
+
this.maxX = Math.max(...this.dataset.map((o) => o.series.length)), this.slicer = {
|
|
126
126
|
start: 0,
|
|
127
127
|
end: this.maxX
|
|
128
128
|
}, this.slicerStep += 1, this.segregateStep += 1;
|
|
@@ -139,11 +139,11 @@ const Be = J(), Ye = {
|
|
|
139
139
|
computed: {
|
|
140
140
|
minimap() {
|
|
141
141
|
if (!this.FINAL_CONFIG.chart.zoom.minimap.show) return [];
|
|
142
|
-
const i = this.datasetWithIds.filter((t) => !this.segregatedSeries.includes(t.id)), s = Math.max(...i.map((t) => t.series.length)),
|
|
142
|
+
const i = this.datasetWithIds.filter((t) => !this.segregatedSeries.includes(t.id)), s = Math.max(...i.map((t) => t.series.length)), o = [];
|
|
143
143
|
for (let t = 0; t < s; t += 1)
|
|
144
|
-
|
|
145
|
-
const f = Math.min(...
|
|
146
|
-
return
|
|
144
|
+
o.push(i.map((e) => e.series[t] || 0).reduce((e, I) => (e || 0) + (I || 0), 0));
|
|
145
|
+
const f = Math.min(...o);
|
|
146
|
+
return o.map((t) => t + (f < 0 ? Math.abs(f) : 0));
|
|
147
147
|
},
|
|
148
148
|
customPalette() {
|
|
149
149
|
return this.convertCustomPalette(this.FINAL_CONFIG.customPalette);
|
|
@@ -178,7 +178,7 @@ const Be = J(), Ye = {
|
|
|
178
178
|
id: t.id,
|
|
179
179
|
yOffset: t.yOffset || 0,
|
|
180
180
|
individualHeight: t.individualHeight || this.drawingArea.height
|
|
181
|
-
})),
|
|
181
|
+
})), o = this.plotSet.map((t) => ({
|
|
182
182
|
name: t.name,
|
|
183
183
|
color: t.color,
|
|
184
184
|
scale: t.individualScale,
|
|
@@ -190,8 +190,8 @@ const Be = J(), Ye = {
|
|
|
190
190
|
id: t.id,
|
|
191
191
|
yOffset: t.yOffset || 0,
|
|
192
192
|
individualHeight: t.individualHeight || this.drawingArea.height
|
|
193
|
-
})), f = [...i, ...s, ...
|
|
194
|
-
return [...i, ...s, ...
|
|
193
|
+
})), f = [...i, ...s, ...o].flatMap((t) => t).length;
|
|
194
|
+
return [...i, ...s, ...o].flatMap((t, e) => ({
|
|
195
195
|
id: t.id,
|
|
196
196
|
scaleLabel: t.scaleLabel,
|
|
197
197
|
name: t.name,
|
|
@@ -251,7 +251,7 @@ const Be = J(), Ye = {
|
|
|
251
251
|
safeDataset() {
|
|
252
252
|
return this.useSafeValues ? this.dataset.map((i, s) => ({
|
|
253
253
|
...i,
|
|
254
|
-
series: i.series.map((
|
|
254
|
+
series: i.series.map((o) => this.isSafeValue(o) ? o : null).slice(this.slicer.start, this.slicer.end),
|
|
255
255
|
color: this.convertColorToHex(i.color ? i.color : this.customPalette[s] ? this.customPalette[s] : this.palette[s]),
|
|
256
256
|
id: `uniqueId_${s}`
|
|
257
257
|
})) : this.dataset;
|
|
@@ -259,13 +259,13 @@ const Be = J(), Ye = {
|
|
|
259
259
|
relativeDataset() {
|
|
260
260
|
return this.safeDataset.map((i, s) => ({
|
|
261
261
|
...i,
|
|
262
|
-
series: i.series.map((
|
|
262
|
+
series: i.series.map((o) => o + this.relativeZero),
|
|
263
263
|
absoluteValues: i.series
|
|
264
264
|
})).filter((i) => !this.segregatedSeries.includes(i.id));
|
|
265
265
|
},
|
|
266
266
|
tableSparklineDataset() {
|
|
267
267
|
return this.relativeDataset.map((i) => {
|
|
268
|
-
const s = i.absoluteValues.map((
|
|
268
|
+
const s = i.absoluteValues.map((o) => [void 0, null].includes(o) ? 0 : o);
|
|
269
269
|
return {
|
|
270
270
|
id: i.id,
|
|
271
271
|
name: i.name,
|
|
@@ -304,7 +304,7 @@ const Be = J(), Ye = {
|
|
|
304
304
|
return this.safeDataset.map((i, s) => ({
|
|
305
305
|
absoluteIndex: s,
|
|
306
306
|
...i,
|
|
307
|
-
series: i.series.map((
|
|
307
|
+
series: i.series.map((o) => o + this.relativeZero),
|
|
308
308
|
absoluteValues: i.series,
|
|
309
309
|
segregate: () => this.segregate(i),
|
|
310
310
|
isSegregated: this.segregatedSeries.includes(i.id)
|
|
@@ -313,39 +313,39 @@ const Be = J(), Ye = {
|
|
|
313
313
|
barSet() {
|
|
314
314
|
return this.activeSeriesWithStackRatios.filter((i) => i.type === "bar").map((i, s) => {
|
|
315
315
|
this.checkAutoScaleError(i);
|
|
316
|
-
const
|
|
317
|
-
ratios: i.absoluteValues.filter((d) => ![null, void 0].includes(d)).map((d) => (d -
|
|
318
|
-
valueMin:
|
|
316
|
+
const o = Math.min(...i.absoluteValues.filter((d) => ![null, void 0].includes(d))), f = Math.max(...i.absoluteValues.filter((d) => ![null, void 0].includes(d))), e = {
|
|
317
|
+
ratios: i.absoluteValues.filter((d) => ![null, void 0].includes(d)).map((d) => (d - o) / (f - o)),
|
|
318
|
+
valueMin: o,
|
|
319
319
|
valueMax: f < 0 ? 0 : f
|
|
320
320
|
}, I = {
|
|
321
321
|
max: i.scaleMax || Math.max(...i.absoluteValues) || 1,
|
|
322
322
|
min: i.scaleMin || Math.min(...i.absoluteValues.filter((d) => ![void 0, null].includes(d))) > 0 ? 0 : Math.min(...i.absoluteValues.filter((d) => ![null, void 0].includes(d)))
|
|
323
|
-
}, w = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, L = 1.0000001, N = this.calculateNiceScaleWithExactExtremes(I.min, I.max === I.min ? I.max * L : I.max, w), y = this.calculateNiceScaleWithExactExtremes(e.valueMin, e.valueMax === e.valueMin ? e.valueMax * L : e.valueMax, w),
|
|
324
|
-
const
|
|
323
|
+
}, w = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, L = 1.0000001, N = this.calculateNiceScaleWithExactExtremes(I.min, I.max === I.min ? I.max * L : I.max, w), y = this.calculateNiceScaleWithExactExtremes(e.valueMin, e.valueMax === e.valueMin ? e.valueMax * L : e.valueMax, w), M = N.min >= 0 ? 0 : Math.abs(N.min), S = 0, G = N.max + M, v = y.max + Math.abs(S), x = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - i.cumulatedStackRatio) : 0, a = this.mutableConfig.isStacked ? this.drawingArea.height * i.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, c = this.drawingArea.bottom - x - a * M / G, n = this.drawingArea.bottom - x - a * S / v, g = this.absoluteDataset.filter((d) => d.type === "bar").filter((d) => !this.segregatedSeries.includes(d.id)).length, R = i.series.map((d, _) => {
|
|
324
|
+
const W = this.mutableConfig.useIndividualScale ? (i.absoluteValues[_] + M) / G : this.ratioToMax(d), E = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * _ : this.drawingArea.left + this.slot.bar * s + this.slot.bar * _ * g - this.barSlot / 2 - s * this.barPeriodGap;
|
|
325
325
|
return {
|
|
326
326
|
yOffset: this.checkNaN(x),
|
|
327
327
|
individualHeight: this.checkNaN(a),
|
|
328
|
-
x: this.checkNaN(
|
|
329
|
-
y: this.drawingArea.bottom - x - a *
|
|
328
|
+
x: this.checkNaN(E),
|
|
329
|
+
y: this.drawingArea.bottom - x - a * W,
|
|
330
330
|
value: i.absoluteValues[_],
|
|
331
|
-
zeroPosition: this.checkNaN(
|
|
331
|
+
zeroPosition: this.checkNaN(c),
|
|
332
332
|
individualMax: this.checkNaN(G),
|
|
333
333
|
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[_] || ""
|
|
334
334
|
};
|
|
335
335
|
}), H = i.absoluteValues.map((d) => y.min >= 0 ? (d - Math.abs(y.min)) / (y.max - Math.abs(y.min)) : (d + Math.abs(y.min)) / (y.max + Math.abs(y.min))), D = i.series.map((d, _) => {
|
|
336
|
-
const
|
|
336
|
+
const W = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * _ : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar * s + this.slot.bar * _ * this.absoluteDataset.filter((E) => E.type === "bar").filter((E) => !this.segregatedSeries.includes(E.id)).length;
|
|
337
337
|
return {
|
|
338
338
|
yOffset: this.checkNaN(x),
|
|
339
339
|
individualHeight: this.checkNaN(a),
|
|
340
|
-
x: this.checkNaN(
|
|
340
|
+
x: this.checkNaN(W),
|
|
341
341
|
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(x) - (this.checkNaN(a) * H[_] || 0)),
|
|
342
342
|
value: i.absoluteValues[_],
|
|
343
|
-
zeroPosition: this.checkNaN(
|
|
343
|
+
zeroPosition: this.checkNaN(c),
|
|
344
344
|
individualMax: this.checkNaN(G),
|
|
345
345
|
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[_] || ""
|
|
346
346
|
};
|
|
347
347
|
}), F = N.ticks.map((d) => ({
|
|
348
|
-
y: d >= 0 ?
|
|
348
|
+
y: d >= 0 ? c - a * (d / G) : c + a * Math.abs(d) / G,
|
|
349
349
|
value: d
|
|
350
350
|
})), k = y.ticks.map((d) => {
|
|
351
351
|
const _ = (d - y.min) / (y.max - y.min);
|
|
@@ -362,7 +362,7 @@ const Be = J(), Ye = {
|
|
|
362
362
|
scaleYLabels: i.autoScaling ? k : F,
|
|
363
363
|
individualScale: i.autoScaling ? y : N,
|
|
364
364
|
individualMax: i.autoScaling ? v : G,
|
|
365
|
-
zeroPosition: i.autoScaling ? n :
|
|
365
|
+
zeroPosition: i.autoScaling ? n : c,
|
|
366
366
|
plots: i.autoScaling ? D : R
|
|
367
367
|
};
|
|
368
368
|
});
|
|
@@ -376,18 +376,18 @@ const Be = J(), Ye = {
|
|
|
376
376
|
lineSet() {
|
|
377
377
|
return this.activeSeriesWithStackRatios.filter((i) => i.type === "line").map((i) => {
|
|
378
378
|
this.checkAutoScaleError(i);
|
|
379
|
-
const s = Math.min(...i.absoluteValues.filter((d) => ![void 0, null].includes(d))),
|
|
380
|
-
ratios: i.absoluteValues.filter((d) => ![null, void 0].includes(d)).map((d) => (d - s) / (
|
|
379
|
+
const s = Math.min(...i.absoluteValues.filter((d) => ![void 0, null].includes(d))), o = Math.max(...i.absoluteValues.filter((d) => ![void 0, null].includes(d))) || 1, t = {
|
|
380
|
+
ratios: i.absoluteValues.filter((d) => ![null, void 0].includes(d)).map((d) => (d - s) / (o - s)),
|
|
381
381
|
valueMin: s,
|
|
382
|
-
valueMax:
|
|
382
|
+
valueMax: o
|
|
383
383
|
}, e = {
|
|
384
384
|
max: i.scaleMax || Math.max(...i.absoluteValues) || 1,
|
|
385
385
|
min: i.scaleMin || (Math.min(...i.absoluteValues) > 0 ? 0 : Math.min(...i.absoluteValues))
|
|
386
|
-
}, I = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, w = 1.0000001, L = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * w : e.max, I), N = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax === t.valueMin ? t.valueMax * w : t.valueMax, I), y = L.min >= 0 ? 0 : Math.abs(L.min),
|
|
387
|
-
const
|
|
386
|
+
}, I = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, w = 1.0000001, L = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * w : e.max, I), N = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax === t.valueMin ? t.valueMax * w : t.valueMax, I), y = L.min >= 0 ? 0 : Math.abs(L.min), M = 0, S = L.max + Math.abs(y), G = N.max + Math.abs(M), v = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - i.cumulatedStackRatio) : 0, x = this.mutableConfig.isStacked ? this.drawingArea.height * i.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, a = this.drawingArea.bottom - v - x * y / S, c = this.drawingArea.bottom - v - x * M / G, n = i.series.map((d, _) => {
|
|
387
|
+
const W = this.mutableConfig.useIndividualScale ? (i.absoluteValues[_] + Math.abs(y)) / S : this.ratioToMax(d);
|
|
388
388
|
return {
|
|
389
389
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * _),
|
|
390
|
-
y: this.checkNaN(this.drawingArea.bottom - v - x *
|
|
390
|
+
y: this.checkNaN(this.drawingArea.bottom - v - x * W),
|
|
391
391
|
value: i.absoluteValues[_],
|
|
392
392
|
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[_] || ""
|
|
393
393
|
};
|
|
@@ -400,12 +400,12 @@ const Be = J(), Ye = {
|
|
|
400
400
|
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[_] || ""
|
|
401
401
|
};
|
|
402
402
|
}), H = this.createSmoothPath(n), D = this.createSmoothPath(R), F = L.ticks.map((d) => ({
|
|
403
|
-
y: d >= 0 ? a - x * (d /
|
|
403
|
+
y: d >= 0 ? a - x * (d / S) : a + x * Math.abs(d) / S,
|
|
404
404
|
value: d
|
|
405
405
|
})), k = N.ticks.map((d) => {
|
|
406
406
|
const _ = (d - N.min) / (N.max - N.min);
|
|
407
407
|
return {
|
|
408
|
-
y: d >= 0 ?
|
|
408
|
+
y: d >= 0 ? c - x * _ : c + x * _,
|
|
409
409
|
value: d
|
|
410
410
|
};
|
|
411
411
|
});
|
|
@@ -416,26 +416,26 @@ const Be = J(), Ye = {
|
|
|
416
416
|
individualHeight: x,
|
|
417
417
|
scaleYLabels: i.autoScaling ? k : F,
|
|
418
418
|
individualScale: i.autoScaling ? N : L,
|
|
419
|
-
individualMax: i.autoScaling ? G :
|
|
420
|
-
zeroPosition: i.autoScaling ?
|
|
419
|
+
individualMax: i.autoScaling ? G : S,
|
|
420
|
+
zeroPosition: i.autoScaling ? c : a,
|
|
421
421
|
curve: i.autoScaling ? D : H,
|
|
422
422
|
plots: i.autoScaling ? R : n,
|
|
423
|
-
area: i.useArea ? this.mutableConfig.useIndividualScale ? this.createIndividualArea(i.autoScaling ? R : n, i.autoScaling ?
|
|
423
|
+
area: i.useArea ? this.mutableConfig.useIndividualScale ? this.createIndividualArea(i.autoScaling ? R : n, i.autoScaling ? c : a) : this.createArea(n) : ""
|
|
424
424
|
};
|
|
425
425
|
});
|
|
426
426
|
},
|
|
427
427
|
plotSet() {
|
|
428
428
|
return this.activeSeriesWithStackRatios.filter((i) => i.type === "plot").map((i) => {
|
|
429
429
|
this.checkAutoScaleError(i);
|
|
430
|
-
const s = Math.min(...i.absoluteValues.filter((F) => ![null, void 0].includes(F))),
|
|
431
|
-
ratios: i.absoluteValues.filter((F) => ![null, void 0].includes(F)).map((F) => (F - s) / (
|
|
430
|
+
const s = Math.min(...i.absoluteValues.filter((F) => ![null, void 0].includes(F))), o = Math.max(...i.absoluteValues.filter((F) => ![null, void 0].includes(F))) || 1, t = {
|
|
431
|
+
ratios: i.absoluteValues.filter((F) => ![null, void 0].includes(F)).map((F) => (F - s) / (o - s)),
|
|
432
432
|
valueMin: s,
|
|
433
|
-
valueMax:
|
|
433
|
+
valueMax: o
|
|
434
434
|
}, e = {
|
|
435
435
|
max: i.scaleMax || Math.max(...i.absoluteValues) || 1,
|
|
436
436
|
min: i.scaleMin || Math.min(...i.absoluteValues) > 0 ? 0 : Math.min(...i.absoluteValues)
|
|
437
|
-
}, I = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, w = 1.0000001, L = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * w : e.max, I), N = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax === t.valueMin ? t.valueMax * w : t.valueMax, I), y = L.min >= 0 ? 0 : Math.abs(L.min),
|
|
438
|
-
const d = this.mutableConfig.useIndividualScale ? (i.absoluteValues[k] + Math.abs(y)) /
|
|
437
|
+
}, I = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, w = 1.0000001, L = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * w : e.max, I), N = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax === t.valueMin ? t.valueMax * w : t.valueMax, I), y = L.min >= 0 ? 0 : Math.abs(L.min), M = 0, S = L.max + y, G = N.max + Math.abs(M), v = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - i.cumulatedStackRatio) : 0, x = this.mutableConfig.isStacked ? this.drawingArea.height * i.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, a = this.drawingArea.bottom - v - x * y / S, c = this.drawingArea.bottom - v - x * M / G, n = i.series.map((F, k) => {
|
|
438
|
+
const d = this.mutableConfig.useIndividualScale ? (i.absoluteValues[k] + Math.abs(y)) / S : this.ratioToMax(F);
|
|
439
439
|
return {
|
|
440
440
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * k),
|
|
441
441
|
y: this.checkNaN(this.drawingArea.bottom - v - x * d),
|
|
@@ -448,12 +448,12 @@ const Be = J(), Ye = {
|
|
|
448
448
|
value: i.absoluteValues[k],
|
|
449
449
|
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[k] || ""
|
|
450
450
|
})), H = L.ticks.map((F) => ({
|
|
451
|
-
y: F >= 0 ? a - x * (F /
|
|
451
|
+
y: F >= 0 ? a - x * (F / S) : a + x * Math.abs(F) / S,
|
|
452
452
|
value: F
|
|
453
453
|
})), D = N.ticks.map((F) => {
|
|
454
454
|
const k = (F - N.min) / (N.max - N.min);
|
|
455
455
|
return {
|
|
456
|
-
y: F >= 0 ?
|
|
456
|
+
y: F >= 0 ? c - x * k : c + x * k,
|
|
457
457
|
value: F
|
|
458
458
|
};
|
|
459
459
|
});
|
|
@@ -464,8 +464,8 @@ const Be = J(), Ye = {
|
|
|
464
464
|
individualHeight: x,
|
|
465
465
|
scaleYLabels: i.autoScaling ? D : H,
|
|
466
466
|
individualScale: i.autoScaling ? N : L,
|
|
467
|
-
individualMax: i.autoScaling ? G :
|
|
468
|
-
zeroPosition: i.autoScaling ?
|
|
467
|
+
individualMax: i.autoScaling ? G : S,
|
|
468
|
+
zeroPosition: i.autoScaling ? c : a,
|
|
469
469
|
plots: i.autoScaling ? R : n
|
|
470
470
|
};
|
|
471
471
|
});
|
|
@@ -518,13 +518,13 @@ const Be = J(), Ye = {
|
|
|
518
518
|
},
|
|
519
519
|
table() {
|
|
520
520
|
if (this.safeDataset.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
521
|
-
const i = this.relativeDataset.map((
|
|
522
|
-
label:
|
|
523
|
-
color:
|
|
524
|
-
type:
|
|
521
|
+
const i = this.relativeDataset.map((o) => ({
|
|
522
|
+
label: o.name,
|
|
523
|
+
color: o.color,
|
|
524
|
+
type: o.type
|
|
525
525
|
})), s = [];
|
|
526
|
-
return this.timeLabels.forEach((
|
|
527
|
-
const t = [
|
|
526
|
+
return this.timeLabels.forEach((o, f) => {
|
|
527
|
+
const t = [o];
|
|
528
528
|
this.relativeDataset.forEach((e) => {
|
|
529
529
|
t.push(this.canShowValue(e.absoluteValues[f]) ? Number(e.absoluteValues[f].toFixed(this.FINAL_CONFIG.table.rounding)) : "");
|
|
530
530
|
}), s.push(t);
|
|
@@ -537,7 +537,7 @@ const Be = J(), Ye = {
|
|
|
537
537
|
const e = this.relativeDataset.map((I) => I.absoluteValues[t] ?? 0).reduce((I, w) => I + w, 0);
|
|
538
538
|
s.push([this.timeLabels[t] ?? "-"].concat(this.relativeDataset.map((I) => (I.absoluteValues[t] ?? 0).toFixed(this.FINAL_CONFIG.table.rounding))).concat((e ?? 0).toFixed(this.FINAL_CONFIG.table.rounding)));
|
|
539
539
|
}
|
|
540
|
-
const
|
|
540
|
+
const o = {
|
|
541
541
|
th: {
|
|
542
542
|
backgroundColor: this.FINAL_CONFIG.table.th.backgroundColor,
|
|
543
543
|
color: this.FINAL_CONFIG.table.th.color,
|
|
@@ -550,7 +550,7 @@ const Be = J(), Ye = {
|
|
|
550
550
|
},
|
|
551
551
|
breakpoint: this.FINAL_CONFIG.table.responsiveBreakpoint
|
|
552
552
|
}, f = [this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map((t) => t.name)).concat(this.FINAL_CONFIG.table.columnNames.total);
|
|
553
|
-
return { head: i, body: s, config:
|
|
553
|
+
return { head: i, body: s, config: o, colNames: f };
|
|
554
554
|
},
|
|
555
555
|
dataTooltipSlot() {
|
|
556
556
|
return {
|
|
@@ -569,13 +569,13 @@ const Be = J(), Ye = {
|
|
|
569
569
|
name: i.name,
|
|
570
570
|
color: i.color,
|
|
571
571
|
type: i.type,
|
|
572
|
-
value: i.absoluteValues.find((s,
|
|
572
|
+
value: i.absoluteValues.find((s, o) => o === this.selectedSerieIndex),
|
|
573
573
|
comments: i.comments || []
|
|
574
574
|
}));
|
|
575
575
|
},
|
|
576
576
|
tooltipContent() {
|
|
577
577
|
let i = "", s = this.selectedSeries.map((t) => t.value).filter((t) => this.isSafeValue(t) && t !== null).reduce((t, e) => Math.abs(t) + Math.abs(e), 0);
|
|
578
|
-
const
|
|
578
|
+
const o = this.timeLabels[this.selectedSerieIndex], f = this.FINAL_CONFIG.chart.tooltip.customFormat;
|
|
579
579
|
return this.isFunction(f) && this.functionReturnsString(() => f({
|
|
580
580
|
seriesIndex: this.selectedSerieIndex,
|
|
581
581
|
datapoint: this.selectedSeries,
|
|
@@ -592,7 +592,7 @@ const Be = J(), Ye = {
|
|
|
592
592
|
lines: this.lineSet,
|
|
593
593
|
plots: this.plotSet,
|
|
594
594
|
config: this.FINAL_CONFIG
|
|
595
|
-
}) : (
|
|
595
|
+
}) : (o && (i += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${o}</div>`), this.selectedSeries.forEach((t) => {
|
|
596
596
|
if (this.isSafeValue(t.value)) {
|
|
597
597
|
let e = "", I = "";
|
|
598
598
|
switch (this.icons[t.type]) {
|
|
@@ -680,8 +680,8 @@ const Be = J(), Ye = {
|
|
|
680
680
|
applyDataLabel: re,
|
|
681
681
|
assignStackRatios: se,
|
|
682
682
|
calcLinearProgression: ne,
|
|
683
|
-
calculateNiceScaleWithExactExtremes:
|
|
684
|
-
checkNaN:
|
|
683
|
+
calculateNiceScaleWithExactExtremes: ce,
|
|
684
|
+
checkNaN: oe,
|
|
685
685
|
closestDecimal: he,
|
|
686
686
|
convertColorToHex: de,
|
|
687
687
|
convertConfigColors: ue,
|
|
@@ -698,14 +698,15 @@ const Be = J(), Ye = {
|
|
|
698
698
|
isFunction: Fe,
|
|
699
699
|
isSafeValue: ye,
|
|
700
700
|
objectIsEmpty: Ae,
|
|
701
|
-
pdf:
|
|
702
|
-
|
|
701
|
+
pdf: Q,
|
|
702
|
+
setOpacity: Le,
|
|
703
|
+
shiftHue: Ce,
|
|
703
704
|
translateSize: Se,
|
|
704
|
-
treeShake:
|
|
705
|
-
useMouse:
|
|
705
|
+
treeShake: ke,
|
|
706
|
+
useMouse: ze,
|
|
706
707
|
useNestedProp: U,
|
|
707
708
|
prepareConfig() {
|
|
708
|
-
const i =
|
|
709
|
+
const i = we().vue_ui_xy;
|
|
709
710
|
if (!Object.keys(this.config || {}).length)
|
|
710
711
|
return i;
|
|
711
712
|
const s = this.useNestedProp({
|
|
@@ -732,9 +733,9 @@ const Be = J(), Ye = {
|
|
|
732
733
|
index: s
|
|
733
734
|
});
|
|
734
735
|
}), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((i) => {
|
|
735
|
-
i.series.forEach((s,
|
|
736
|
+
i.series.forEach((s, o) => {
|
|
736
737
|
this.isSafeValue(s) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
737
|
-
-----> The serie '${i.name}' contains the value '${s}' at index ${
|
|
738
|
+
-----> The serie '${i.name}' contains the value '${s}' at index ${o}.
|
|
738
739
|
'${s}' was converted to null to allow the chart to display.`);
|
|
739
740
|
});
|
|
740
741
|
}), this.mutableConfig = {
|
|
@@ -746,15 +747,15 @@ const Be = J(), Ye = {
|
|
|
746
747
|
isStacked: this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,
|
|
747
748
|
useIndividualScale: this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale
|
|
748
749
|
}, this.FINAL_CONFIG.responsive) {
|
|
749
|
-
const s = this.$refs.chart.parentNode, { height:
|
|
750
|
+
const s = this.$refs.chart.parentNode, { height: o, width: f } = s.getBoundingClientRect();
|
|
750
751
|
let t = null, e = 0;
|
|
751
752
|
this.FINAL_CONFIG.chart.title.show && (t = this.$refs.chartTitle, e = t.getBoundingClientRect().height);
|
|
752
753
|
let I = null, w = 0;
|
|
753
754
|
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (I = this.$refs.chartSlicer.$el, w = I.getBoundingClientRect().height);
|
|
754
755
|
let L = null, N = 0;
|
|
755
|
-
this.FINAL_CONFIG.chart.legend.show && (L = this.$refs.chartLegend, N = L.getBoundingClientRect().height), this.height =
|
|
756
|
-
for (const
|
|
757
|
-
this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (w = this.$refs.chartSlicer.$el.getBoundingClientRect().height), this.$refs.chartLegend && (N = this.$refs.chartLegend.getBoundingClientRect().height), this.height =
|
|
756
|
+
this.FINAL_CONFIG.chart.legend.show && (L = this.$refs.chartLegend, N = L.getBoundingClientRect().height), this.height = o - e - N - w, this.width = f, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes(), new ResizeObserver((M) => {
|
|
757
|
+
for (const S of M)
|
|
758
|
+
this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (w = this.$refs.chartSlicer.$el.getBoundingClientRect().height), this.$refs.chartLegend && (N = this.$refs.chartLegend.getBoundingClientRect().height), this.height = S.contentBoxSize[0].blockSize - e - N - w - 24, this.width = S.contentBoxSize[0].inlineSize, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
|
|
758
759
|
}).observe(s);
|
|
759
760
|
} else
|
|
760
761
|
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;
|
|
@@ -818,25 +819,25 @@ const Be = J(), Ye = {
|
|
|
818
819
|
},
|
|
819
820
|
createArea(i) {
|
|
820
821
|
if (!i[0]) return [-10, -10, "", -10, -10];
|
|
821
|
-
const s = { x: i[0].x, y: this.zero },
|
|
822
|
+
const s = { x: i[0].x, y: this.zero }, o = { x: i.at(-1).x, y: this.zero }, f = [];
|
|
822
823
|
return i.forEach((t) => {
|
|
823
824
|
f.push(`${t.x},${t.y} `);
|
|
824
|
-
}), [s.x, s.y, ...f,
|
|
825
|
+
}), [s.x, s.y, ...f, o.x, o.y].toString();
|
|
825
826
|
},
|
|
826
827
|
createIndividualArea(i, s) {
|
|
827
828
|
if (!i[0]) return [-10, -10, "", -10, -10];
|
|
828
|
-
const
|
|
829
|
+
const o = { x: i[0] ? i[0].x : Math.min(...i.filter((e) => !!e).map((e) => e.x)), y: s }, f = { x: i.at(-1) ? i.at(-1).x : Math.min(...i.filter((e) => !!e).map((e) => e.x)), y: s }, t = [];
|
|
829
830
|
return i.filter((e) => !!e).forEach((e) => {
|
|
830
831
|
t.push(`${e.x},${e.y} `);
|
|
831
|
-
}), [
|
|
832
|
+
}), [o.x, o.y, ...t, f.x, f.y].toString();
|
|
832
833
|
},
|
|
833
834
|
createStar: X,
|
|
834
835
|
createPolygonPath: P,
|
|
835
836
|
fillArray(i, s) {
|
|
836
|
-
let
|
|
837
|
+
let o = Array(i).fill(0);
|
|
837
838
|
for (let f = 0; f < s.length && f < i; f += 1)
|
|
838
|
-
|
|
839
|
-
return
|
|
839
|
+
o[f] = s[f];
|
|
840
|
+
return o;
|
|
840
841
|
},
|
|
841
842
|
refreshSlicer() {
|
|
842
843
|
this.slicer = {
|
|
@@ -866,12 +867,12 @@ const Be = J(), Ye = {
|
|
|
866
867
|
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(i);
|
|
867
868
|
},
|
|
868
869
|
findClosestValue(i, s) {
|
|
869
|
-
let
|
|
870
|
+
let o = s[0], f = Math.abs(i - s[0]);
|
|
870
871
|
for (let t = 1; t < s.length; t += 1) {
|
|
871
872
|
const e = Math.abs(i - s[t]);
|
|
872
|
-
e < f && s[t] < i && (
|
|
873
|
+
e < f && s[t] < i && (o = s[t], f = e);
|
|
873
874
|
}
|
|
874
|
-
return
|
|
875
|
+
return o;
|
|
875
876
|
},
|
|
876
877
|
ratioToMax(i) {
|
|
877
878
|
return i / (this.canShowValue(this.absoluteMax) ? this.absoluteMax : 1);
|
|
@@ -933,7 +934,7 @@ const Be = J(), Ye = {
|
|
|
933
934
|
}, 100);
|
|
934
935
|
},
|
|
935
936
|
generateCsv() {
|
|
936
|
-
const i = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], s = ["", ...this.table.head.map((e) => e.label)],
|
|
937
|
+
const i = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], s = ["", ...this.table.head.map((e) => e.label)], o = this.table.body, f = i.concat([s]).concat(o), t = this.createCsvContent(f);
|
|
937
938
|
this.downloadCsv({ csvContent: t, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
|
|
938
939
|
},
|
|
939
940
|
showSpinnerImage() {
|
|
@@ -951,31 +952,31 @@ const Be = J(), Ye = {
|
|
|
951
952
|
}, 100);
|
|
952
953
|
}
|
|
953
954
|
}
|
|
954
|
-
},
|
|
955
|
+
}, qe = ["id"], Ze = ["viewBox"], Ue = { key: 0 }, Je = { class: "vue-ui-xy-grid" }, Qe = ["stroke", "x1", "x2", "y1", "y2"], Ke = ["stroke", "x1", "x2", "y1", "y2"], je = { key: 1 }, $e = ["x1", "x2", "y1", "y2", "stroke"], et = ["x1", "x2", "y1", "y2", "stroke"], tt = ["x1", "x2", "y1", "y2", "stroke"], at = { key: 3 }, it = ["x1", "x2", "y1", "y2", "stroke"], lt = ["id"], rt = ["stop-color"], st = ["stop-color"], nt = ["stop-color"], ct = ["id"], ot = ["stop-color"], ht = ["stop-color"], dt = ["stop-color"], ut = ["id"], gt = ["stop-color"], ft = ["stop-color"], mt = ["id"], Nt = ["stop-color"], It = ["stop-color"], bt = ["id"], xt = ["stop-color"], _t = ["stop-color"], Ft = ["x", "y", "height", "width", "fill"], yt = ["x", "y", "width"], At = ["x", "y", "height", "width", "fill"], Lt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Ct = ["width", "x", "y"], St = { key: 0 }, kt = ["id"], wt = ["fill"], Ot = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], vt = ["x", "y", "font-size", "fill"], Gt = ["stroke", "x1", "x2", "y1", "y2"], zt = { key: 2 }, Mt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], pt = ["y", "width", "height", "fill"], Pt = ["x", "y", "width", "height", "fill"], Tt = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Vt = { key: 4 }, Rt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dt = ["fill", "font-size", "transform"], Ht = ["x1", "x2", "y1", "y2", "stroke"], Wt = ["x", "y", "font-size", "fill"], Et = ["x1", "x2", "y1", "y2", "stroke"], Bt = ["x", "y", "font-size", "fill"], Yt = ["width", "x", "y"], Xt = { style: { width: "100%" } }, qt = { key: 0 }, Zt = ["id"], Ut = ["fill"], Jt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Qt = ["x", "y", "font-size", "fill"], Kt = ["d", "stroke", "stroke-width", "stroke-dasharray"], jt = { key: 1 }, $t = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ea = { key: 0 }, ta = ["d", "fill"], aa = ["d", "fill"], ia = ["d", "stroke", "stroke-width", "stroke-dasharray"], la = { key: 2 }, ra = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], sa = ["width", "x", "y"], na = { style: { width: "100%" } }, ca = { key: 3 }, oa = ["id"], ha = ["fill"], da = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ua = ["x", "y", "font-size", "fill"], ga = { key: 5 }, fa = ["x", "y", "font-size", "fill"], ma = ["x", "y", "font-size", "fill", "font-weight"], Na = { key: 6 }, Ia = ["x", "y", "font-size", "fill"], ba = ["x", "y"], xa = ["x", "y"], _a = { key: 7 }, Fa = ["x", "y", "font-size", "fill"], ya = ["x", "y"], Aa = ["x", "y"], La = ["x", "y", "font-size", "fill", "innerHTML"], Ca = ["x", "y", "font-size", "fill", "innerHTML"], Sa = ["x", "y", "font-size", "fill", "innerHTML"], ka = ["x", "y", "font-size", "fill", "innerHTML"], wa = ["x", "y", "width", "height", "fill", "onMouseenter"], Oa = ["font-size", "fill", "transform"], va = ["x", "y", "font-size", "fill"], Ga = { key: 9 }, za = ["text-anchor", "font-size", "fill", "transform"], Ma = ["x", "y", "height", "width", "onMouseenter", "onClick"], pa = { key: 10 }, Pa = ["x", "y"], Ta = ["cx", "cy", "r", "fill"], Va = {
|
|
955
956
|
key: 3,
|
|
956
957
|
class: "vue-data-ui-watermark"
|
|
957
|
-
},
|
|
958
|
+
}, Ra = ["onClick"], Da = {
|
|
958
959
|
key: 0,
|
|
959
960
|
viewBox: "0 0 20 12",
|
|
960
961
|
height: "14",
|
|
961
962
|
width: "20"
|
|
962
|
-
},
|
|
963
|
+
}, Ha = ["fill"], Wa = {
|
|
963
964
|
key: 1,
|
|
964
965
|
viewBox: "0 0 12 12",
|
|
965
966
|
height: "14",
|
|
966
967
|
width: "14"
|
|
967
|
-
}, Ea = ["fill"],
|
|
968
|
+
}, Ea = ["fill"], Ba = {
|
|
968
969
|
key: 7,
|
|
969
970
|
ref: "chartLegend"
|
|
970
|
-
},
|
|
971
|
+
}, Ya = {
|
|
971
972
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
972
973
|
"data-html2canvas-ignore": ""
|
|
973
|
-
},
|
|
974
|
-
function
|
|
975
|
-
const I = T("Title"), w = T("UserOptions"), L = T("Shape"), N = T("Skeleton"), y = T("Slicer"),
|
|
974
|
+
}, Xa = ["innerHTML"];
|
|
975
|
+
function qa(i, s, o, f, t, e) {
|
|
976
|
+
const I = T("Title"), w = T("UserOptions"), L = T("Shape"), N = T("Skeleton"), y = T("Slicer"), M = T("Tooltip"), S = T("BaseIcon"), G = T("TableSparkline"), v = T("DataTable"), x = T("Accordion");
|
|
976
977
|
return l(), r("div", {
|
|
977
978
|
id: `vue-ui-xy_${t.uniqueId}`,
|
|
978
|
-
class:
|
|
979
|
+
class: p(`vue-ui-xy ${t.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
979
980
|
ref: "chart",
|
|
980
981
|
style: A(`background:${e.FINAL_CONFIG.chart.backgroundColor}; color:${e.FINAL_CONFIG.chart.color};width:100%;${e.FINAL_CONFIG.chart.title.text ? "" : "padding-top:36px"};font-family:${e.FINAL_CONFIG.chart.fontFamily};${e.FINAL_CONFIG.responsive ? "height: 100%" : ""}`)
|
|
981
982
|
}, [
|
|
@@ -1013,7 +1014,7 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1013
1014
|
hasImg: e.FINAL_CONFIG.chart.userOptions.buttons.img,
|
|
1014
1015
|
hasLabel: e.FINAL_CONFIG.chart.userOptions.buttons.labels,
|
|
1015
1016
|
hasTable: e.FINAL_CONFIG.chart.userOptions.buttons.table,
|
|
1016
|
-
hasStack:
|
|
1017
|
+
hasStack: o.dataset.length > 1 && e.FINAL_CONFIG.chart.userOptions.buttons.stack,
|
|
1017
1018
|
hasFullscreen: e.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,
|
|
1018
1019
|
isStacked: t.mutableConfig.isStacked,
|
|
1019
1020
|
isFullscreen: t.isFullscreen,
|
|
@@ -1028,7 +1029,7 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1028
1029
|
onToggleLabels: e.toggleLabels,
|
|
1029
1030
|
onToggleStack: e.toggleStack,
|
|
1030
1031
|
onToggleTooltip: e.toggleTooltip
|
|
1031
|
-
},
|
|
1032
|
+
}, De({ _: 2 }, [
|
|
1032
1033
|
i.$slots.optionTooltip ? {
|
|
1033
1034
|
name: "optionTooltip",
|
|
1034
1035
|
fn: z(() => [
|
|
@@ -1080,8 +1081,8 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1080
1081
|
} : void 0,
|
|
1081
1082
|
i.$slots.optionFullscreen ? {
|
|
1082
1083
|
name: "optionFullscreen",
|
|
1083
|
-
fn: z(({ toggleFullscreen: a, isFullscreen:
|
|
1084
|
-
O(i.$slots, "optionFullscreen", B(Y({ toggleFullscreen: a, isFullscreen:
|
|
1084
|
+
fn: z(({ toggleFullscreen: a, isFullscreen: c }) => [
|
|
1085
|
+
O(i.$slots, "optionFullscreen", B(Y({ toggleFullscreen: a, isFullscreen: c })), void 0, !0)
|
|
1085
1086
|
]),
|
|
1086
1087
|
key: "7"
|
|
1087
1088
|
} : void 0
|
|
@@ -1089,13 +1090,13 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1089
1090
|
e.isDataset ? (l(), r("svg", {
|
|
1090
1091
|
key: 2,
|
|
1091
1092
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1092
|
-
class:
|
|
1093
|
+
class: p([{ "vue-data-ui-fullscreen--on": t.isFullscreen, "vue-data-ui-fulscreen--off": !t.isFullscreen }, "vue-ui-xy-svg"]),
|
|
1093
1094
|
width: "100%",
|
|
1094
1095
|
viewBox: t.viewBox,
|
|
1095
1096
|
style: A(`background:${e.FINAL_CONFIG.chart.backgroundColor}; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
1096
1097
|
}, [
|
|
1097
|
-
e.maxSeries > 0 ? (l(), r("g",
|
|
1098
|
-
u("g",
|
|
1098
|
+
e.maxSeries > 0 ? (l(), r("g", Ue, [
|
|
1099
|
+
u("g", Je, [
|
|
1099
1100
|
e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (l(), r("line", {
|
|
1100
1101
|
key: 0,
|
|
1101
1102
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
@@ -1105,25 +1106,25 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1105
1106
|
y1: e.drawingArea.bottom,
|
|
1106
1107
|
y2: e.drawingArea.bottom,
|
|
1107
1108
|
"stroke-linecap": "round"
|
|
1108
|
-
}, null, 8,
|
|
1109
|
+
}, null, 8, Qe)) : h("", !0),
|
|
1109
1110
|
t.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (l(!0), r(m, { key: 2 }, b(e.allScales, (a) => (l(), r("g", null, [
|
|
1110
|
-
a.id === t.selectedScale && a.yLabels.length ? (l(!0), r(m, { key: 0 }, b(a.yLabels, (
|
|
1111
|
+
a.id === t.selectedScale && a.yLabels.length ? (l(!0), r(m, { key: 0 }, b(a.yLabels, (c) => (l(), r("line", {
|
|
1111
1112
|
x1: e.drawingArea.left + e.xPadding,
|
|
1112
1113
|
x2: e.drawingArea.right - e.xPadding,
|
|
1113
|
-
y1: e.checkNaN(
|
|
1114
|
-
y2: e.checkNaN(
|
|
1114
|
+
y1: e.checkNaN(c.y),
|
|
1115
|
+
y2: e.checkNaN(c.y),
|
|
1115
1116
|
stroke: a.color,
|
|
1116
1117
|
"stroke-width": 0.5,
|
|
1117
1118
|
"stroke-linecap": "round"
|
|
1118
|
-
}, null, 8,
|
|
1119
|
+
}, null, 8, et))), 256)) : a.yLabels.length ? (l(!0), r(m, { key: 1 }, b(a.yLabels, (c) => (l(), r("line", {
|
|
1119
1120
|
x1: e.drawingArea.left + e.xPadding,
|
|
1120
1121
|
x2: e.drawingArea.right - e.xPadding,
|
|
1121
|
-
y1: e.checkNaN(
|
|
1122
|
-
y2: e.checkNaN(
|
|
1122
|
+
y1: e.checkNaN(c.y),
|
|
1123
|
+
y2: e.checkNaN(c.y),
|
|
1123
1124
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1124
1125
|
"stroke-width": 0.5,
|
|
1125
1126
|
"stroke-linecap": "round"
|
|
1126
|
-
}, null, 8,
|
|
1127
|
+
}, null, 8, tt))), 256)) : h("", !0)
|
|
1127
1128
|
]))), 256)) : h("", !0) : (l(), r(m, { key: 1 }, [
|
|
1128
1129
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (l(), r("line", {
|
|
1129
1130
|
key: 0,
|
|
@@ -1135,7 +1136,7 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1135
1136
|
y2: e.drawingArea.bottom,
|
|
1136
1137
|
"stroke-linecap": "round"
|
|
1137
1138
|
}, null, 8, Ke)) : h("", !0),
|
|
1138
|
-
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (l(), r("g",
|
|
1139
|
+
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (l(), r("g", je, [
|
|
1139
1140
|
(l(!0), r(m, null, b(e.yLabels, (a) => (l(), r("line", {
|
|
1140
1141
|
x1: e.drawingArea.left + e.xPadding,
|
|
1141
1142
|
x2: e.drawingArea.right - e.xPadding,
|
|
@@ -1144,66 +1145,66 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1144
1145
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1145
1146
|
"stroke-width": 0.5,
|
|
1146
1147
|
"stroke-linecap": "round"
|
|
1147
|
-
}, null, 8,
|
|
1148
|
+
}, null, 8, $e))), 256))
|
|
1148
1149
|
])) : h("", !0)
|
|
1149
1150
|
], 64)),
|
|
1150
|
-
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (l(), r("g",
|
|
1151
|
-
(l(!0), r(m, null, b(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (a,
|
|
1152
|
-
key: `grid_vertical_line_${
|
|
1153
|
-
x1: e.drawingArea.width / e.maxSeries *
|
|
1154
|
-
x2: e.drawingArea.width / e.maxSeries *
|
|
1151
|
+
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (l(), r("g", at, [
|
|
1152
|
+
(l(!0), r(m, null, b(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (a, c) => (l(), r("line", {
|
|
1153
|
+
key: `grid_vertical_line_${c}`,
|
|
1154
|
+
x1: e.drawingArea.width / e.maxSeries * c + e.drawingArea.left + e.xPadding,
|
|
1155
|
+
x2: e.drawingArea.width / e.maxSeries * c + e.drawingArea.left + e.xPadding,
|
|
1155
1156
|
y1: e.drawingArea.top,
|
|
1156
1157
|
y2: e.drawingArea.bottom,
|
|
1157
1158
|
"stroke-width": "0.5",
|
|
1158
1159
|
stroke: e.FINAL_CONFIG.chart.grid.stroke
|
|
1159
|
-
}, null, 8,
|
|
1160
|
+
}, null, 8, it))), 128))
|
|
1160
1161
|
])) : h("", !0)
|
|
1161
1162
|
]),
|
|
1162
|
-
(l(!0), r(m, null, b(e.barSet, (a,
|
|
1163
|
-
key: `def_rect_${
|
|
1163
|
+
(l(!0), r(m, null, b(e.barSet, (a, c) => (l(), r("defs", {
|
|
1164
|
+
key: `def_rect_${c}`
|
|
1164
1165
|
}, [
|
|
1165
1166
|
u("linearGradient", {
|
|
1166
|
-
id: `rectGradient_pos_${
|
|
1167
|
+
id: `rectGradient_pos_${c}_${t.uniqueId}`,
|
|
1167
1168
|
x2: "0%",
|
|
1168
1169
|
y2: "100%"
|
|
1169
1170
|
}, [
|
|
1170
1171
|
u("stop", {
|
|
1171
1172
|
offset: "0%",
|
|
1172
1173
|
"stop-color": a.color
|
|
1173
|
-
}, null, 8,
|
|
1174
|
+
}, null, 8, rt),
|
|
1174
1175
|
u("stop", {
|
|
1175
1176
|
offset: "62%",
|
|
1176
|
-
"stop-color": `${e.shiftHue(a.color, 0.02)}
|
|
1177
|
-
}, null, 8,
|
|
1177
|
+
"stop-color": `${e.shiftHue(a.color, 0.02)}`
|
|
1178
|
+
}, null, 8, st),
|
|
1178
1179
|
u("stop", {
|
|
1179
1180
|
offset: "100%",
|
|
1180
|
-
"stop-color": `${e.shiftHue(a.color, 0.05)}
|
|
1181
|
-
}, null, 8,
|
|
1182
|
-
], 8,
|
|
1181
|
+
"stop-color": `${e.shiftHue(a.color, 0.05)}`
|
|
1182
|
+
}, null, 8, nt)
|
|
1183
|
+
], 8, lt),
|
|
1183
1184
|
u("linearGradient", {
|
|
1184
|
-
id: `rectGradient_neg_${
|
|
1185
|
+
id: `rectGradient_neg_${c}_${t.uniqueId}`,
|
|
1185
1186
|
x2: "0%",
|
|
1186
1187
|
y2: "100%"
|
|
1187
1188
|
}, [
|
|
1188
1189
|
u("stop", {
|
|
1189
1190
|
offset: "0%",
|
|
1190
|
-
"stop-color": `${e.shiftHue(a.color, 0.05)}
|
|
1191
|
+
"stop-color": `${e.shiftHue(a.color, 0.05)}`
|
|
1191
1192
|
}, null, 8, ot),
|
|
1192
1193
|
u("stop", {
|
|
1193
1194
|
offset: "38%",
|
|
1194
|
-
"stop-color": `${e.shiftHue(a.color, 0.02)}
|
|
1195
|
-
}, null, 8,
|
|
1195
|
+
"stop-color": `${e.shiftHue(a.color, 0.02)}`
|
|
1196
|
+
}, null, 8, ht),
|
|
1196
1197
|
u("stop", {
|
|
1197
1198
|
offset: "100%",
|
|
1198
1199
|
"stop-color": a.color
|
|
1199
|
-
}, null, 8,
|
|
1200
|
-
], 8,
|
|
1200
|
+
}, null, 8, dt)
|
|
1201
|
+
], 8, ct)
|
|
1201
1202
|
]))), 128)),
|
|
1202
|
-
(l(!0), r(m, null, b(e.plotSet, (a,
|
|
1203
|
-
key: `def_plot_${
|
|
1203
|
+
(l(!0), r(m, null, b(e.plotSet, (a, c) => (l(), r("defs", {
|
|
1204
|
+
key: `def_plot_${c}`
|
|
1204
1205
|
}, [
|
|
1205
1206
|
u("radialGradient", {
|
|
1206
|
-
id: `plotGradient_${
|
|
1207
|
+
id: `plotGradient_${c}_${t.uniqueId}`,
|
|
1207
1208
|
cx: "50%",
|
|
1208
1209
|
cy: "50%",
|
|
1209
1210
|
r: "50%",
|
|
@@ -1213,18 +1214,18 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1213
1214
|
u("stop", {
|
|
1214
1215
|
offset: "0%",
|
|
1215
1216
|
"stop-color": `${e.shiftHue(a.color, 0.05)}`
|
|
1216
|
-
}, null, 8,
|
|
1217
|
+
}, null, 8, gt),
|
|
1217
1218
|
u("stop", {
|
|
1218
1219
|
offset: "100%",
|
|
1219
1220
|
"stop-color": a.color
|
|
1220
|
-
}, null, 8,
|
|
1221
|
-
], 8,
|
|
1221
|
+
}, null, 8, ft)
|
|
1222
|
+
], 8, ut)
|
|
1222
1223
|
]))), 128)),
|
|
1223
|
-
(l(!0), r(m, null, b(e.lineSet, (a,
|
|
1224
|
-
key: `def_line_${
|
|
1224
|
+
(l(!0), r(m, null, b(e.lineSet, (a, c) => (l(), r("defs", {
|
|
1225
|
+
key: `def_line_${c}`
|
|
1225
1226
|
}, [
|
|
1226
1227
|
u("radialGradient", {
|
|
1227
|
-
id: `lineGradient_${
|
|
1228
|
+
id: `lineGradient_${c}_${t.uniqueId}`,
|
|
1228
1229
|
cx: "50%",
|
|
1229
1230
|
cy: "50%",
|
|
1230
1231
|
r: "50%",
|
|
@@ -1234,14 +1235,14 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1234
1235
|
u("stop", {
|
|
1235
1236
|
offset: "0%",
|
|
1236
1237
|
"stop-color": `${e.shiftHue(a.color, 0.05)}`
|
|
1237
|
-
}, null, 8,
|
|
1238
|
+
}, null, 8, Nt),
|
|
1238
1239
|
u("stop", {
|
|
1239
1240
|
offset: "100%",
|
|
1240
1241
|
"stop-color": a.color
|
|
1241
|
-
}, null, 8,
|
|
1242
|
-
], 8,
|
|
1242
|
+
}, null, 8, It)
|
|
1243
|
+
], 8, mt),
|
|
1243
1244
|
u("linearGradient", {
|
|
1244
|
-
id: `areaGradient_${
|
|
1245
|
+
id: `areaGradient_${c}_${t.uniqueId}`,
|
|
1245
1246
|
x1: "0%",
|
|
1246
1247
|
x2: "100%",
|
|
1247
1248
|
y1: "0%",
|
|
@@ -1249,13 +1250,13 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1249
1250
|
}, [
|
|
1250
1251
|
u("stop", {
|
|
1251
1252
|
offset: "0%",
|
|
1252
|
-
"stop-color": `${e.shiftHue(a.color, 0.03)
|
|
1253
|
-
}, null, 8,
|
|
1253
|
+
"stop-color": `${e.setOpacity(e.shiftHue(a.color, 0.03), e.FINAL_CONFIG.line.area.opacity)}`
|
|
1254
|
+
}, null, 8, xt),
|
|
1254
1255
|
u("stop", {
|
|
1255
1256
|
offset: "100%",
|
|
1256
|
-
"stop-color": `${a.color
|
|
1257
|
-
}, null, 8,
|
|
1258
|
-
], 8,
|
|
1257
|
+
"stop-color": `${e.setOpacity(a.color, e.FINAL_CONFIG.line.area.opacity)}`
|
|
1258
|
+
}, null, 8, _t)
|
|
1259
|
+
], 8, bt)
|
|
1259
1260
|
]))), 128)),
|
|
1260
1261
|
(l(!0), r(m, null, b(e.highlightAreas, (a) => (l(), r("g", null, [
|
|
1261
1262
|
a.show ? (l(), r(m, { key: 0 }, [
|
|
@@ -1265,8 +1266,8 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1265
1266
|
y: e.drawingArea.top,
|
|
1266
1267
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1267
1268
|
width: e.drawingArea.width / e.maxSeries * a.span < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries * a.span,
|
|
1268
|
-
fill:
|
|
1269
|
-
}, null, 8,
|
|
1269
|
+
fill: e.setOpacity(a.color, a.opacity)
|
|
1270
|
+
}, null, 8, Ft),
|
|
1270
1271
|
a.caption.text ? (l(), r("foreignObject", {
|
|
1271
1272
|
key: 0,
|
|
1272
1273
|
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),
|
|
@@ -1277,30 +1278,30 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1277
1278
|
}, [
|
|
1278
1279
|
u("div", {
|
|
1279
1280
|
style: A(`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"}`)
|
|
1280
|
-
},
|
|
1281
|
-
], 8,
|
|
1281
|
+
}, C(a.caption.text), 5)
|
|
1282
|
+
], 8, yt)) : h("", !0)
|
|
1282
1283
|
], 64)) : h("", !0)
|
|
1283
1284
|
]))), 256)),
|
|
1284
1285
|
u("g", null, [
|
|
1285
|
-
(l(!0), r(m, null, b(e.maxSeries, (a,
|
|
1286
|
-
key: `tooltip_trap_${
|
|
1286
|
+
(l(!0), r(m, null, b(e.maxSeries, (a, c) => (l(), r("g", {
|
|
1287
|
+
key: `tooltip_trap_${c}`
|
|
1287
1288
|
}, [
|
|
1288
1289
|
u("rect", {
|
|
1289
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
1290
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * c,
|
|
1290
1291
|
y: e.drawingArea.top,
|
|
1291
1292
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1292
1293
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1293
|
-
fill: [t.selectedMinimapIndex, t.selectedSerieIndex, t.selectedRowIndex].includes(
|
|
1294
|
-
}, null, 8,
|
|
1294
|
+
fill: [t.selectedMinimapIndex, t.selectedSerieIndex, t.selectedRowIndex].includes(c) ? e.setOpacity(e.FINAL_CONFIG.chart.highlighter.color, e.FINAL_CONFIG.chart.highlighter.opacity) : "transparent"
|
|
1295
|
+
}, null, 8, At)
|
|
1295
1296
|
]))), 128))
|
|
1296
1297
|
]),
|
|
1297
|
-
e.barSet.length ? (l(!0), r(m, { key: 0 }, b(e.barSet, (a,
|
|
1298
|
-
key: `serie_bar_${
|
|
1299
|
-
class:
|
|
1298
|
+
e.barSet.length ? (l(!0), r(m, { key: 0 }, b(e.barSet, (a, c) => (l(), r("g", {
|
|
1299
|
+
key: `serie_bar_${c}`,
|
|
1300
|
+
class: p(`serie_bar_${c}`),
|
|
1300
1301
|
style: A(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1301
1302
|
}, [
|
|
1302
1303
|
(l(!0), r(m, null, b(a.plots, (n, g) => (l(), r("g", {
|
|
1303
|
-
key: `bar_plot_${
|
|
1304
|
+
key: `bar_plot_${c}_${g}`
|
|
1304
1305
|
}, [
|
|
1305
1306
|
e.canShowValue(n.value) ? (l(), r("rect", {
|
|
1306
1307
|
key: 0,
|
|
@@ -1309,10 +1310,10 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1309
1310
|
height: t.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(n)) : Math.abs(e.calcRectHeight(n)),
|
|
1310
1311
|
width: e.calcRectWidth() - (t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? 0 : e.barPeriodGap) < 0 ? 1e-5 : e.calcRectWidth() - (t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? 0 : e.barPeriodGap),
|
|
1311
1312
|
rx: e.FINAL_CONFIG.bar.borderRadius,
|
|
1312
|
-
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${
|
|
1313
|
+
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${c}_${t.uniqueId})` : `url(#rectGradient_neg_${c}_${t.uniqueId})` : a.color,
|
|
1313
1314
|
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? a.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1314
1315
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1315
|
-
}, null, 8,
|
|
1316
|
+
}, null, 8, Lt)) : h("", !0),
|
|
1316
1317
|
n.comment && e.FINAL_CONFIG.chart.comments.show ? (l(), r("foreignObject", {
|
|
1317
1318
|
key: 1,
|
|
1318
1319
|
style: { overflow: "visible" },
|
|
@@ -1324,12 +1325,12 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1324
1325
|
O(i.$slots, "plot-comment", {
|
|
1325
1326
|
plot: { ...n, color: a.color }
|
|
1326
1327
|
}, void 0, !0)
|
|
1327
|
-
], 8,
|
|
1328
|
+
], 8, Ct)) : h("", !0)
|
|
1328
1329
|
]))), 128)),
|
|
1329
1330
|
Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (l(), r("g", St, [
|
|
1330
1331
|
u("defs", null, [
|
|
1331
1332
|
u("marker", {
|
|
1332
|
-
id: `bar_arrow_${
|
|
1333
|
+
id: `bar_arrow_${c}`,
|
|
1333
1334
|
markerWidth: 7,
|
|
1334
1335
|
markerHeight: 7,
|
|
1335
1336
|
refX: "0",
|
|
@@ -1339,8 +1340,8 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1339
1340
|
u("polygon", {
|
|
1340
1341
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1341
1342
|
fill: a.color
|
|
1342
|
-
}, null, 8,
|
|
1343
|
-
], 8,
|
|
1343
|
+
}, null, 8, wt)
|
|
1344
|
+
], 8, kt)
|
|
1344
1345
|
]),
|
|
1345
1346
|
a.plots.length > 1 ? (l(), r("line", {
|
|
1346
1347
|
key: 0,
|
|
@@ -1351,8 +1352,8 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1351
1352
|
"stroke-width": 1,
|
|
1352
1353
|
stroke: a.color,
|
|
1353
1354
|
"stroke-dasharray": 2,
|
|
1354
|
-
"marker-end": `url(#bar_arrow_${
|
|
1355
|
-
}, null, 8,
|
|
1355
|
+
"marker-end": `url(#bar_arrow_${c})`
|
|
1356
|
+
}, null, 8, Ot)) : h("", !0),
|
|
1356
1357
|
a.plots.length > 1 ? (l(), r("text", {
|
|
1357
1358
|
key: 1,
|
|
1358
1359
|
"text-anchor": "middle",
|
|
@@ -1360,11 +1361,11 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1360
1361
|
y: e.calcLinearProgression(a.plots).y2 - 6,
|
|
1361
1362
|
"font-size": t.fontSizes.plotLabels,
|
|
1362
1363
|
fill: a.color
|
|
1363
|
-
},
|
|
1364
|
+
}, C(e.dataLabel({
|
|
1364
1365
|
v: e.calcLinearProgression(a.plots).trend * 100,
|
|
1365
1366
|
s: "%",
|
|
1366
1367
|
r: 2
|
|
1367
|
-
})), 9,
|
|
1368
|
+
})), 9, vt)) : h("", !0)
|
|
1368
1369
|
])) : h("", !0)
|
|
1369
1370
|
], 6))), 128)) : h("", !0),
|
|
1370
1371
|
!t.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (l(), r("line", {
|
|
@@ -1376,8 +1377,8 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1376
1377
|
y1: e.checkNaN(e.zero),
|
|
1377
1378
|
y2: e.checkNaN(e.zero),
|
|
1378
1379
|
"stroke-linecap": "round"
|
|
1379
|
-
}, null, 8,
|
|
1380
|
-
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(t.selectedSerieIndex) || t.selectedMinimapIndex !== null) ? (l(), r("g",
|
|
1380
|
+
}, null, 8, Gt)) : h("", !0),
|
|
1381
|
+
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(t.selectedSerieIndex) || t.selectedMinimapIndex !== null) ? (l(), r("g", zt, [
|
|
1381
1382
|
u("line", {
|
|
1382
1383
|
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (t.selectedSerieIndex || t.selectedMinimapIndex) + e.drawingArea.width / e.maxSeries / 2,
|
|
1383
1384
|
x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (t.selectedSerieIndex || t.selectedMinimapIndex) + e.drawingArea.width / e.maxSeries / 2,
|
|
@@ -1388,7 +1389,7 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1388
1389
|
"stroke-dasharray": e.FINAL_CONFIG.chart.highlighter.lineDasharray,
|
|
1389
1390
|
"stroke-linecap": "round",
|
|
1390
1391
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
1391
|
-
}, null, 8,
|
|
1392
|
+
}, null, 8, Mt)
|
|
1392
1393
|
])) : h("", !0),
|
|
1393
1394
|
u("g", null, [
|
|
1394
1395
|
u("rect", {
|
|
@@ -1406,7 +1407,7 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1406
1407
|
width: e.FINAL_CONFIG.chart.padding.right - 1 + e.xPadding,
|
|
1407
1408
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1408
1409
|
fill: e.FINAL_CONFIG.chart.backgroundColor
|
|
1409
|
-
}, null, 8,
|
|
1410
|
+
}, null, 8, Pt)
|
|
1410
1411
|
]),
|
|
1411
1412
|
e.FINAL_CONFIG.chart.grid.frame.show ? (l(), r("rect", {
|
|
1412
1413
|
key: 3,
|
|
@@ -1421,8 +1422,8 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1421
1422
|
"stroke-linecap": e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,
|
|
1422
1423
|
"stroke-linejoin": e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,
|
|
1423
1424
|
"stroke-dasharray": e.FINAL_CONFIG.chart.grid.frame.strokeDasharray
|
|
1424
|
-
}, null, 8,
|
|
1425
|
-
e.FINAL_CONFIG.chart.grid.labels.show ? (l(), r("g",
|
|
1425
|
+
}, null, 8, Tt)) : h("", !0),
|
|
1426
|
+
e.FINAL_CONFIG.chart.grid.labels.show ? (l(), r("g", Vt, [
|
|
1426
1427
|
t.mutableConfig.useIndividualScale ? (l(), r(m, { key: 0 }, [
|
|
1427
1428
|
(l(!0), r(m, null, b(e.allScales, (a) => (l(), r("g", null, [
|
|
1428
1429
|
u("line", {
|
|
@@ -1434,7 +1435,7 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1434
1435
|
"stroke-width": e.FINAL_CONFIG.chart.grid.stroke,
|
|
1435
1436
|
"stroke-linecap": "round",
|
|
1436
1437
|
style: A(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1437
|
-
}, null, 12,
|
|
1438
|
+
}, null, 12, Rt)
|
|
1438
1439
|
]))), 256)),
|
|
1439
1440
|
(l(!0), r(m, null, b(e.allScales, (a) => (l(), r("g", {
|
|
1440
1441
|
style: A(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
@@ -1444,35 +1445,35 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1444
1445
|
"font-size": t.fontSizes.dataLabels,
|
|
1445
1446
|
"text-anchor": "middle",
|
|
1446
1447
|
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)`
|
|
1447
|
-
},
|
|
1448
|
-
(l(!0), r(m, null, b(a.yLabels, (
|
|
1448
|
+
}, C(a.name) + " " + C(a.scaleLabel ? `- ${a.scaleLabel}` : ""), 9, Dt),
|
|
1449
|
+
(l(!0), r(m, null, b(a.yLabels, (c, n) => (l(), r("line", {
|
|
1449
1450
|
x1: a.x - 3 + e.xPadding,
|
|
1450
1451
|
x2: a.x + e.xPadding,
|
|
1451
|
-
y1: e.checkNaN(
|
|
1452
|
-
y2: e.checkNaN(
|
|
1452
|
+
y1: e.checkNaN(c.y),
|
|
1453
|
+
y2: e.checkNaN(c.y),
|
|
1453
1454
|
stroke: a.color,
|
|
1454
1455
|
"stroke-width": 1,
|
|
1455
1456
|
"stroke-linecap": "round"
|
|
1456
|
-
}, null, 8,
|
|
1457
|
-
(l(!0), r(m, null, b(a.yLabels, (
|
|
1457
|
+
}, null, 8, Ht))), 256)),
|
|
1458
|
+
(l(!0), r(m, null, b(a.yLabels, (c, n) => (l(), r("text", {
|
|
1458
1459
|
x: a.x - 5 + e.xPadding,
|
|
1459
|
-
y: e.checkNaN(
|
|
1460
|
+
y: e.checkNaN(c.y) + t.fontSizes.dataLabels / 3,
|
|
1460
1461
|
"font-size": t.fontSizes.dataLabels,
|
|
1461
1462
|
"text-anchor": "end",
|
|
1462
1463
|
fill: a.color
|
|
1463
|
-
},
|
|
1464
|
+
}, C(e.applyDataLabel(
|
|
1464
1465
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1465
|
-
|
|
1466
|
+
c.value,
|
|
1466
1467
|
e.dataLabel({
|
|
1467
1468
|
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
1468
|
-
v:
|
|
1469
|
+
v: c.value,
|
|
1469
1470
|
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
1470
1471
|
r: 1
|
|
1471
1472
|
})
|
|
1472
|
-
)), 9,
|
|
1473
|
+
)), 9, Wt))), 256))
|
|
1473
1474
|
], 4))), 256))
|
|
1474
|
-
], 64)) : (l(!0), r(m, { key: 1 }, b(e.yLabels, (a,
|
|
1475
|
-
key: `yLabel_${
|
|
1475
|
+
], 64)) : (l(!0), r(m, { key: 1 }, b(e.yLabels, (a, c) => (l(), r("g", {
|
|
1476
|
+
key: `yLabel_${c}`
|
|
1476
1477
|
}, [
|
|
1477
1478
|
e.canShowValue(a) && a.value >= e.niceScale.min && a.value <= e.niceScale.max ? (l(), r("line", {
|
|
1478
1479
|
key: 0,
|
|
@@ -1491,7 +1492,7 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1491
1492
|
"font-size": t.fontSizes.dataLabels,
|
|
1492
1493
|
"text-anchor": "end",
|
|
1493
1494
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
1494
|
-
},
|
|
1495
|
+
}, C(e.canShowValue(a.value) ? e.applyDataLabel(
|
|
1495
1496
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1496
1497
|
a.value,
|
|
1497
1498
|
e.dataLabel({
|
|
@@ -1500,21 +1501,21 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1500
1501
|
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
1501
1502
|
r: 1
|
|
1502
1503
|
})
|
|
1503
|
-
) : ""), 9,
|
|
1504
|
+
) : ""), 9, Bt)) : h("", !0)
|
|
1504
1505
|
]))), 128))
|
|
1505
1506
|
])) : h("", !0),
|
|
1506
|
-
(l(!0), r(m, null, b(e.plotSet, (a,
|
|
1507
|
-
key: `serie_plot_${
|
|
1508
|
-
class:
|
|
1507
|
+
(l(!0), r(m, null, b(e.plotSet, (a, c) => (l(), r("g", {
|
|
1508
|
+
key: `serie_plot_${c}`,
|
|
1509
|
+
class: p(`serie_plot_${c}`),
|
|
1509
1510
|
style: A(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1510
1511
|
}, [
|
|
1511
1512
|
(l(!0), r(m, null, b(a.plots, (n, g) => (l(), r("g", {
|
|
1512
|
-
key: `circle_plot_${
|
|
1513
|
+
key: `circle_plot_${c}_${g}`
|
|
1513
1514
|
}, [
|
|
1514
1515
|
e.canShowValue(n.value) ? (l(), V(L, {
|
|
1515
1516
|
key: 0,
|
|
1516
1517
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(a.shape) ? a.shape : "circle",
|
|
1517
|
-
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${
|
|
1518
|
+
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${c}_${t.uniqueId})` : a.color,
|
|
1518
1519
|
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
1519
1520
|
radius: t.selectedSerieIndex !== null && t.selectedSerieIndex === g || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === g ? (t.plotRadii.plot || 6) * 1.5 : t.plotRadii.plot || 6,
|
|
1520
1521
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
@@ -1528,17 +1529,17 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1528
1529
|
x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1529
1530
|
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1530
1531
|
}, [
|
|
1531
|
-
u("div",
|
|
1532
|
+
u("div", Xt, [
|
|
1532
1533
|
O(i.$slots, "plot-comment", {
|
|
1533
1534
|
plot: { ...n, color: a.color }
|
|
1534
1535
|
}, void 0, !0)
|
|
1535
1536
|
])
|
|
1536
|
-
], 8,
|
|
1537
|
+
], 8, Yt)) : h("", !0)
|
|
1537
1538
|
]))), 128)),
|
|
1538
|
-
Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (l(), r("g",
|
|
1539
|
+
Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (l(), r("g", qt, [
|
|
1539
1540
|
u("defs", null, [
|
|
1540
1541
|
u("marker", {
|
|
1541
|
-
id: `plot_arrow_${
|
|
1542
|
+
id: `plot_arrow_${c}`,
|
|
1542
1543
|
markerWidth: 7,
|
|
1543
1544
|
markerHeight: 7,
|
|
1544
1545
|
refX: "0",
|
|
@@ -1548,8 +1549,8 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1548
1549
|
u("polygon", {
|
|
1549
1550
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1550
1551
|
fill: a.color
|
|
1551
|
-
}, null, 8,
|
|
1552
|
-
], 8,
|
|
1552
|
+
}, null, 8, Ut)
|
|
1553
|
+
], 8, Zt)
|
|
1553
1554
|
]),
|
|
1554
1555
|
a.plots.length > 1 ? (l(), r("line", {
|
|
1555
1556
|
key: 0,
|
|
@@ -1560,8 +1561,8 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1560
1561
|
"stroke-width": 1,
|
|
1561
1562
|
stroke: a.color,
|
|
1562
1563
|
"stroke-dasharray": 2,
|
|
1563
|
-
"marker-end": `url(#plot_arrow_${
|
|
1564
|
-
}, null, 8,
|
|
1564
|
+
"marker-end": `url(#plot_arrow_${c})`
|
|
1565
|
+
}, null, 8, Jt)) : h("", !0),
|
|
1565
1566
|
a.plots.length > 1 ? (l(), r("text", {
|
|
1566
1567
|
key: 1,
|
|
1567
1568
|
"text-anchor": "middle",
|
|
@@ -1569,16 +1570,16 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1569
1570
|
y: e.calcLinearProgression(a.plots).y2 - 6,
|
|
1570
1571
|
"font-size": t.fontSizes.plotLabels,
|
|
1571
1572
|
fill: a.color
|
|
1572
|
-
},
|
|
1573
|
+
}, C(e.dataLabel({
|
|
1573
1574
|
v: e.calcLinearProgression(a.plots).trend * 100,
|
|
1574
1575
|
s: "%",
|
|
1575
1576
|
r: 2
|
|
1576
|
-
})), 9,
|
|
1577
|
+
})), 9, Qt)) : h("", !0)
|
|
1577
1578
|
])) : h("", !0)
|
|
1578
1579
|
], 6))), 128)),
|
|
1579
|
-
(l(!0), r(m, null, b(e.lineSet, (a,
|
|
1580
|
-
key: `serie_line_${
|
|
1581
|
-
class:
|
|
1580
|
+
(l(!0), r(m, null, b(e.lineSet, (a, c) => (l(), r("g", {
|
|
1581
|
+
key: `serie_line_${c}`,
|
|
1582
|
+
class: p(`serie_line_${c}`),
|
|
1582
1583
|
style: A(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1583
1584
|
}, [
|
|
1584
1585
|
a.smooth && a.plots.length > 1 ? (l(), r("path", {
|
|
@@ -1588,9 +1589,9 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1588
1589
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1589
1590
|
"stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1590
1591
|
fill: "none"
|
|
1591
|
-
}, null, 8, Kt)) : a.plots.length > 1 ? (l(), r("g",
|
|
1592
|
+
}, null, 8, Kt)) : a.plots.length > 1 ? (l(), r("g", jt, [
|
|
1592
1593
|
(l(!0), r(m, null, b(a.plots, (n, g) => (l(), r("g", {
|
|
1593
|
-
key: `line_${
|
|
1594
|
+
key: `line_${c}_${g}`
|
|
1594
1595
|
}, [
|
|
1595
1596
|
n && g < a.plots.length - 1 && a.plots[g + 1] && e.canShowValue(n.value) && e.canShowValue(a.plots[g + 1].value) ? (l(), r("line", {
|
|
1596
1597
|
key: 0,
|
|
@@ -1603,25 +1604,25 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1603
1604
|
"stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1604
1605
|
"stroke-linejoin": "round",
|
|
1605
1606
|
"stroke-linecap": "round"
|
|
1606
|
-
}, null, 8,
|
|
1607
|
+
}, null, 8, $t)) : h("", !0)
|
|
1607
1608
|
]))), 128))
|
|
1608
1609
|
])) : h("", !0)
|
|
1609
1610
|
], 6))), 128)),
|
|
1610
|
-
(l(!0), r(m, null, b(e.lineSet, (a,
|
|
1611
|
-
key: `serie_line_${
|
|
1612
|
-
class:
|
|
1611
|
+
(l(!0), r(m, null, b(e.lineSet, (a, c) => (l(), r("g", {
|
|
1612
|
+
key: `serie_line_${c}`,
|
|
1613
|
+
class: p(`serie_line_${c}`),
|
|
1613
1614
|
style: A(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1614
1615
|
}, [
|
|
1615
|
-
a.useArea && a.plots.length > 1 ? (l(), r("g",
|
|
1616
|
+
a.useArea && a.plots.length > 1 ? (l(), r("g", ea, [
|
|
1616
1617
|
a.smooth ? (l(), r("path", {
|
|
1617
1618
|
key: 0,
|
|
1618
|
-
d: `M ${a.plots[0] ? a.plots[0].x : Math.min(...a.plots.filter((n) => !!n).map((n) => n.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 *
|
|
1619
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${
|
|
1620
|
-
}, null, 8,
|
|
1619
|
+
d: `M ${a.plots[0] ? a.plots[0].x : Math.min(...a.plots.filter((n) => !!n).map((n) => n.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 * c + e.slot.line / 2},${t.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset : e.drawingArea.bottom} Z`,
|
|
1620
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${c}_${t.uniqueId})` : e.setOpacity(a.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1621
|
+
}, null, 8, ta)) : (l(), r("path", {
|
|
1621
1622
|
key: 1,
|
|
1622
1623
|
d: `M${a.area}Z`,
|
|
1623
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${
|
|
1624
|
-
}, null, 8,
|
|
1624
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${c}_${t.uniqueId})` : e.setOpacity(a.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1625
|
+
}, null, 8, aa))
|
|
1625
1626
|
])) : h("", !0),
|
|
1626
1627
|
a.smooth && a.plots.length > 1 ? (l(), r("path", {
|
|
1627
1628
|
key: 1,
|
|
@@ -1630,9 +1631,9 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1630
1631
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth,
|
|
1631
1632
|
"stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1632
1633
|
fill: "none"
|
|
1633
|
-
}, null, 8,
|
|
1634
|
+
}, null, 8, ia)) : a.plots.length > 1 ? (l(), r("g", la, [
|
|
1634
1635
|
(l(!0), r(m, null, b(a.plots, (n, g) => (l(), r("g", {
|
|
1635
|
-
key: `line_${
|
|
1636
|
+
key: `line_${c}_${g}`
|
|
1636
1637
|
}, [
|
|
1637
1638
|
n && g < a.plots.length - 1 && a.plots[g + 1] && e.canShowValue(n.value) && e.canShowValue(a.plots[g + 1].value) ? (l(), r("line", {
|
|
1638
1639
|
key: 0,
|
|
@@ -1645,16 +1646,16 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1645
1646
|
"stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1646
1647
|
"stroke-linejoin": "round",
|
|
1647
1648
|
"stroke-linecap": "round"
|
|
1648
|
-
}, null, 8,
|
|
1649
|
+
}, null, 8, ra)) : h("", !0)
|
|
1649
1650
|
]))), 128))
|
|
1650
1651
|
])) : h("", !0),
|
|
1651
1652
|
(l(!0), r(m, null, b(a.plots, (n, g) => (l(), r("g", {
|
|
1652
|
-
key: `circle_line_${
|
|
1653
|
+
key: `circle_line_${c}_${g}`
|
|
1653
1654
|
}, [
|
|
1654
1655
|
n && e.canShowValue(n.value) ? (l(), V(L, {
|
|
1655
1656
|
key: 0,
|
|
1656
1657
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(a.shape) ? a.shape : "circle",
|
|
1657
|
-
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${
|
|
1658
|
+
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${c}_${t.uniqueId})` : a.color,
|
|
1658
1659
|
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
1659
1660
|
radius: t.selectedSerieIndex !== null && t.selectedSerieIndex === g || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === g ? (t.plotRadii.line || 6) * 1.5 : t.plotRadii.line || 6,
|
|
1660
1661
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
@@ -1668,17 +1669,17 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1668
1669
|
x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1669
1670
|
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1670
1671
|
}, [
|
|
1671
|
-
u("div",
|
|
1672
|
+
u("div", na, [
|
|
1672
1673
|
O(i.$slots, "plot-comment", {
|
|
1673
1674
|
plot: { ...n, color: a.color }
|
|
1674
1675
|
}, void 0, !0)
|
|
1675
1676
|
])
|
|
1676
|
-
], 8,
|
|
1677
|
+
], 8, sa)) : h("", !0)
|
|
1677
1678
|
]))), 128)),
|
|
1678
|
-
Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (l(), r("g",
|
|
1679
|
+
Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (l(), r("g", ca, [
|
|
1679
1680
|
u("defs", null, [
|
|
1680
1681
|
u("marker", {
|
|
1681
|
-
id: `line_arrow_${
|
|
1682
|
+
id: `line_arrow_${c}`,
|
|
1682
1683
|
markerWidth: 7,
|
|
1683
1684
|
markerHeight: 7,
|
|
1684
1685
|
refX: "0",
|
|
@@ -1688,7 +1689,7 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1688
1689
|
u("polygon", {
|
|
1689
1690
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1690
1691
|
fill: a.color
|
|
1691
|
-
}, null, 8,
|
|
1692
|
+
}, null, 8, ha)
|
|
1692
1693
|
], 8, oa)
|
|
1693
1694
|
]),
|
|
1694
1695
|
a.plots.length > 1 ? (l(), r("line", {
|
|
@@ -1700,8 +1701,8 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1700
1701
|
"stroke-width": 1,
|
|
1701
1702
|
stroke: a.color,
|
|
1702
1703
|
"stroke-dasharray": 2,
|
|
1703
|
-
"marker-end": `url(#line_arrow_${
|
|
1704
|
-
}, null, 8,
|
|
1704
|
+
"marker-end": `url(#line_arrow_${c})`
|
|
1705
|
+
}, null, 8, da)) : h("", !0),
|
|
1705
1706
|
a.plots.length > 1 ? (l(), r("text", {
|
|
1706
1707
|
key: 1,
|
|
1707
1708
|
"text-anchor": "middle",
|
|
@@ -1709,21 +1710,21 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1709
1710
|
y: e.calcLinearProgression(a.plots).y2 - 6,
|
|
1710
1711
|
"font-size": t.fontSizes.plotLabels,
|
|
1711
1712
|
fill: a.color
|
|
1712
|
-
},
|
|
1713
|
+
}, C(e.dataLabel({
|
|
1713
1714
|
v: e.calcLinearProgression(a.plots).trend * 100,
|
|
1714
1715
|
s: "%",
|
|
1715
1716
|
r: 2
|
|
1716
|
-
})), 9,
|
|
1717
|
+
})), 9, ua)) : h("", !0)
|
|
1717
1718
|
])) : h("", !0)
|
|
1718
1719
|
], 6))), 128)),
|
|
1719
|
-
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && t.mutableConfig.dataLabels.show ? (l(), r("g",
|
|
1720
|
-
(l(!0), r(m, null, b(e.barSet, (a,
|
|
1721
|
-
key: `xLabel_bar_${
|
|
1722
|
-
class:
|
|
1720
|
+
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && t.mutableConfig.dataLabels.show ? (l(), r("g", ga, [
|
|
1721
|
+
(l(!0), r(m, null, b(e.barSet, (a, c) => (l(), r("g", {
|
|
1722
|
+
key: `xLabel_bar_${c}`,
|
|
1723
|
+
class: p(`xLabel_bar_${c}`),
|
|
1723
1724
|
style: A(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1724
1725
|
}, [
|
|
1725
1726
|
(l(!0), r(m, null, b(a.plots, (n, g) => (l(), r("g", {
|
|
1726
|
-
key: `xLabel_bar_${
|
|
1727
|
+
key: `xLabel_bar_${c}_${g}`
|
|
1727
1728
|
}, [
|
|
1728
1729
|
n && (!Object.hasOwn(a, "dataLabels") || a.dataLabels === !0) && e.FINAL_CONFIG.bar.labels.show ? (l(), r("text", {
|
|
1729
1730
|
key: 0,
|
|
@@ -1732,7 +1733,7 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1732
1733
|
"text-anchor": "middle",
|
|
1733
1734
|
"font-size": t.fontSizes.plotLabels,
|
|
1734
1735
|
fill: e.FINAL_CONFIG.bar.labels.color
|
|
1735
|
-
},
|
|
1736
|
+
}, C(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
1736
1737
|
e.FINAL_CONFIG.bar.labels.formatter,
|
|
1737
1738
|
n.value,
|
|
1738
1739
|
e.dataLabel({
|
|
@@ -1745,7 +1746,7 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1745
1746
|
datapoint: n,
|
|
1746
1747
|
serie: a
|
|
1747
1748
|
}
|
|
1748
|
-
) : ""), 9,
|
|
1749
|
+
) : ""), 9, fa)) : h("", !0),
|
|
1749
1750
|
n && e.FINAL_CONFIG.bar.serieName.show ? (l(), r("text", {
|
|
1750
1751
|
key: 1,
|
|
1751
1752
|
x: t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? n.x + e.slot.line / 2 : n.x + e.calcRectWidth() * 1.1,
|
|
@@ -1754,18 +1755,18 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1754
1755
|
"font-size": t.fontSizes.plotLabels,
|
|
1755
1756
|
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? a.color : e.FINAL_CONFIG.bar.serieName.color,
|
|
1756
1757
|
"font-weight": e.FINAL_CONFIG.bar.serieName.bold ? "bold" : "normal"
|
|
1757
|
-
},
|
|
1758
|
+
}, C(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: a.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : a.name), 9, ma)) : h("", !0)
|
|
1758
1759
|
]))), 128))
|
|
1759
1760
|
], 6))), 128))
|
|
1760
1761
|
])) : h("", !0),
|
|
1761
|
-
e.FINAL_CONFIG.plot.labels.show && t.mutableConfig.dataLabels.show ? (l(), r("g",
|
|
1762
|
-
(l(!0), r(m, null, b(e.plotSet, (a,
|
|
1763
|
-
key: `xLabel_plot_${
|
|
1764
|
-
class:
|
|
1762
|
+
e.FINAL_CONFIG.plot.labels.show && t.mutableConfig.dataLabels.show ? (l(), r("g", Na, [
|
|
1763
|
+
(l(!0), r(m, null, b(e.plotSet, (a, c) => (l(), r("g", {
|
|
1764
|
+
key: `xLabel_plot_${c}`,
|
|
1765
|
+
class: p(`xLabel_plot_${c}`),
|
|
1765
1766
|
style: A(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1766
1767
|
}, [
|
|
1767
1768
|
(l(!0), r(m, null, b(a.plots, (n, g) => (l(), r("g", {
|
|
1768
|
-
key: `xLabel_plot_${
|
|
1769
|
+
key: `xLabel_plot_${c}_${g}`
|
|
1769
1770
|
}, [
|
|
1770
1771
|
n && !Object.hasOwn(a, "dataLabels") || a.dataLabels === !0 ? (l(), r("text", {
|
|
1771
1772
|
key: 0,
|
|
@@ -1774,7 +1775,7 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1774
1775
|
"text-anchor": "middle",
|
|
1775
1776
|
"font-size": t.fontSizes.plotLabels,
|
|
1776
1777
|
fill: e.FINAL_CONFIG.plot.labels.color
|
|
1777
|
-
},
|
|
1778
|
+
}, C(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
1778
1779
|
e.FINAL_CONFIG.plot.labels.formatter,
|
|
1779
1780
|
n.value,
|
|
1780
1781
|
e.dataLabel({
|
|
@@ -1787,7 +1788,7 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1787
1788
|
datapoint: n,
|
|
1788
1789
|
serie: a
|
|
1789
1790
|
}
|
|
1790
|
-
) : ""), 9,
|
|
1791
|
+
) : ""), 9, Ia)) : h("", !0),
|
|
1791
1792
|
n && g === 0 && a.useTag && a.useTag === "start" ? (l(), r("foreignObject", {
|
|
1792
1793
|
key: 1,
|
|
1793
1794
|
x: n.x,
|
|
@@ -1797,9 +1798,9 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1797
1798
|
style: { overflow: "visible" }
|
|
1798
1799
|
}, [
|
|
1799
1800
|
u("div", {
|
|
1800
|
-
style: A(`padding: 3px; background:${a.color
|
|
1801
|
-
},
|
|
1802
|
-
], 8,
|
|
1801
|
+
style: A(`padding: 3px; background:${e.setOpacity(a.color, 80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1802
|
+
}, C(a.name), 5)
|
|
1803
|
+
], 8, ba)) : h("", !0),
|
|
1803
1804
|
n && g === a.plots.length - 1 && a.useTag && a.useTag === "end" ? (l(), r("foreignObject", {
|
|
1804
1805
|
key: 2,
|
|
1805
1806
|
x: n.x - a.name.length * (t.fontSizes.plotLabels / 2),
|
|
@@ -1809,20 +1810,20 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1809
1810
|
style: { overflow: "visible" }
|
|
1810
1811
|
}, [
|
|
1811
1812
|
u("div", {
|
|
1812
|
-
style: A(`padding: 3px; background:${a.color
|
|
1813
|
-
},
|
|
1814
|
-
], 8,
|
|
1813
|
+
style: A(`padding: 3px; background:${e.setOpacity(a.color, 80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1814
|
+
}, C(a.name), 5)
|
|
1815
|
+
], 8, xa)) : h("", !0)
|
|
1815
1816
|
]))), 128))
|
|
1816
1817
|
], 6))), 128))
|
|
1817
1818
|
])) : h("", !0),
|
|
1818
|
-
e.FINAL_CONFIG.line.labels.show && t.mutableConfig.dataLabels.show ? (l(), r("g",
|
|
1819
|
-
(l(!0), r(m, null, b(e.lineSet, (a,
|
|
1820
|
-
key: `xLabel_line_${
|
|
1821
|
-
class:
|
|
1819
|
+
e.FINAL_CONFIG.line.labels.show && t.mutableConfig.dataLabels.show ? (l(), r("g", _a, [
|
|
1820
|
+
(l(!0), r(m, null, b(e.lineSet, (a, c) => (l(), r("g", {
|
|
1821
|
+
key: `xLabel_line_${c}`,
|
|
1822
|
+
class: p(`xLabel_line_${c}`),
|
|
1822
1823
|
style: A(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1823
1824
|
}, [
|
|
1824
1825
|
(l(!0), r(m, null, b(a.plots, (n, g) => (l(), r("g", {
|
|
1825
|
-
key: `xLabel_line_${
|
|
1826
|
+
key: `xLabel_line_${c}_${g}`
|
|
1826
1827
|
}, [
|
|
1827
1828
|
n && !Object.hasOwn(a, "dataLabels") || a.dataLabels === !0 ? (l(), r("text", {
|
|
1828
1829
|
key: 0,
|
|
@@ -1831,7 +1832,7 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1831
1832
|
"text-anchor": "middle",
|
|
1832
1833
|
"font-size": t.fontSizes.plotLabels,
|
|
1833
1834
|
fill: e.FINAL_CONFIG.line.labels.color
|
|
1834
|
-
},
|
|
1835
|
+
}, C(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
1835
1836
|
e.FINAL_CONFIG.line.labels.formatter,
|
|
1836
1837
|
n.value,
|
|
1837
1838
|
e.dataLabel({
|
|
@@ -1844,7 +1845,7 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1844
1845
|
datapoint: n,
|
|
1845
1846
|
serie: a
|
|
1846
1847
|
}
|
|
1847
|
-
) : ""), 9,
|
|
1848
|
+
) : ""), 9, Fa)) : h("", !0),
|
|
1848
1849
|
n && g === 0 && a.useTag && a.useTag === "start" ? (l(), r("foreignObject", {
|
|
1849
1850
|
key: 1,
|
|
1850
1851
|
x: n.x,
|
|
@@ -1854,9 +1855,9 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1854
1855
|
style: { overflow: "visible" }
|
|
1855
1856
|
}, [
|
|
1856
1857
|
u("div", {
|
|
1857
|
-
style: A(`padding: 3px; background:${a.color
|
|
1858
|
-
},
|
|
1859
|
-
], 8,
|
|
1858
|
+
style: A(`padding: 3px; background:${e.setOpacity(a.color, 80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1859
|
+
}, C(a.name), 5)
|
|
1860
|
+
], 8, ya)) : h("", !0),
|
|
1860
1861
|
n && g === a.plots.length - 1 && a.useTag && a.useTag === "end" ? (l(), r("foreignObject", {
|
|
1861
1862
|
key: 2,
|
|
1862
1863
|
x: n.x - a.name.length * (t.fontSizes.plotLabels / 2),
|
|
@@ -1866,19 +1867,19 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1866
1867
|
style: { overflow: "visible" }
|
|
1867
1868
|
}, [
|
|
1868
1869
|
u("div", {
|
|
1869
|
-
style: A(`padding: 3px; background:${a.color
|
|
1870
|
-
},
|
|
1871
|
-
], 8,
|
|
1870
|
+
style: A(`padding: 3px; background:${e.setOpacity(a.color, 80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1871
|
+
}, C(a.name), 5)
|
|
1872
|
+
], 8, Aa)) : h("", !0)
|
|
1872
1873
|
]))), 128))
|
|
1873
1874
|
], 6))), 128))
|
|
1874
1875
|
])) : h("", !0),
|
|
1875
|
-
(l(!0), r(m, null, b(e.lineSet, (a,
|
|
1876
|
-
key: `xLabel_line_${
|
|
1877
|
-
class:
|
|
1876
|
+
(l(!0), r(m, null, b(e.lineSet, (a, c) => (l(), r("g", {
|
|
1877
|
+
key: `xLabel_line_${c}`,
|
|
1878
|
+
class: p(`xLabel_line_${c}`),
|
|
1878
1879
|
style: A(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1879
1880
|
}, [
|
|
1880
1881
|
(l(!0), r(m, null, b(a.plots, (n, g) => (l(), r("g", {
|
|
1881
|
-
key: `xLabel_line_${
|
|
1882
|
+
key: `xLabel_line_${c}_${g}`
|
|
1882
1883
|
}, [
|
|
1883
1884
|
n && g === 0 && a.showSerieName && a.showSerieName === "start" ? (l(), r("text", {
|
|
1884
1885
|
key: 0,
|
|
@@ -1895,7 +1896,7 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1895
1896
|
y: n.y,
|
|
1896
1897
|
maxWords: 2
|
|
1897
1898
|
})
|
|
1898
|
-
}, null, 8,
|
|
1899
|
+
}, null, 8, La)) : h("", !0),
|
|
1899
1900
|
n && g === a.plots.length - 1 && a.showSerieName && a.showSerieName === "end" ? (l(), r("text", {
|
|
1900
1901
|
key: 1,
|
|
1901
1902
|
x: n.x + t.fontSizes.plotLabels,
|
|
@@ -1911,16 +1912,16 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1911
1912
|
y: n.y,
|
|
1912
1913
|
maxWords: 2
|
|
1913
1914
|
})
|
|
1914
|
-
}, null, 8,
|
|
1915
|
+
}, null, 8, Ca)) : h("", !0)
|
|
1915
1916
|
]))), 128))
|
|
1916
1917
|
], 6))), 128)),
|
|
1917
|
-
(l(!0), r(m, null, b(e.plotSet, (a,
|
|
1918
|
-
key: `xLabel_plot_${
|
|
1919
|
-
class:
|
|
1918
|
+
(l(!0), r(m, null, b(e.plotSet, (a, c) => (l(), r("g", {
|
|
1919
|
+
key: `xLabel_plot_${c}`,
|
|
1920
|
+
class: p(`xLabel_plot_${c}`),
|
|
1920
1921
|
style: A(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1921
1922
|
}, [
|
|
1922
1923
|
(l(!0), r(m, null, b(a.plots, (n, g) => (l(), r("g", {
|
|
1923
|
-
key: `xLabel_plot_${
|
|
1924
|
+
key: `xLabel_plot_${c}_${g}`
|
|
1924
1925
|
}, [
|
|
1925
1926
|
n && g === 0 && a.showSerieName && a.showSerieName === "start" ? (l(), r("text", {
|
|
1926
1927
|
key: 0,
|
|
@@ -1953,7 +1954,7 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1953
1954
|
y: n.y,
|
|
1954
1955
|
maxWords: 2
|
|
1955
1956
|
})
|
|
1956
|
-
}, null, 8,
|
|
1957
|
+
}, null, 8, ka)) : h("", !0)
|
|
1957
1958
|
]))), 128))
|
|
1958
1959
|
], 6))), 128)),
|
|
1959
1960
|
t.mutableConfig.useIndividualScale && !t.mutableConfig.isStacked ? (l(!0), r(m, { key: 8 }, b(e.allScales, (a) => (l(), r("rect", {
|
|
@@ -1961,10 +1962,10 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1961
1962
|
y: e.drawingArea.top,
|
|
1962
1963
|
width: e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
1963
1964
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1964
|
-
fill: t.selectedScale === a.id ?
|
|
1965
|
-
onMouseenter: (
|
|
1966
|
-
onMouseleave: s[0] || (s[0] = (
|
|
1967
|
-
}, null, 40,
|
|
1965
|
+
fill: t.selectedScale === a.id ? e.setOpacity(a.color, 20) : "transparent",
|
|
1966
|
+
onMouseenter: (c) => t.selectedScale = a.id,
|
|
1967
|
+
onMouseleave: s[0] || (s[0] = (c) => t.selectedScale = null)
|
|
1968
|
+
}, null, 40, wa))), 256)) : h("", !0),
|
|
1968
1969
|
u("g", null, [
|
|
1969
1970
|
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !t.mutableConfig.useIndividualScale ? (l(), r("text", {
|
|
1970
1971
|
key: 0,
|
|
@@ -1973,7 +1974,7 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1973
1974
|
transform: `translate(${t.fontSizes.yAxis + e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`,
|
|
1974
1975
|
"text-anchor": "middle",
|
|
1975
1976
|
style: { transition: "none" }
|
|
1976
|
-
},
|
|
1977
|
+
}, C(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, Oa)) : h("", !0),
|
|
1977
1978
|
e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (l(), r("text", {
|
|
1978
1979
|
key: 1,
|
|
1979
1980
|
"text-anchor": "middle",
|
|
@@ -1981,36 +1982,36 @@ function Xa(i, s, c, f, t, e) {
|
|
|
1981
1982
|
y: e.drawingArea.bottom + t.fontSizes.yAxis + t.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,
|
|
1982
1983
|
"font-size": t.fontSizes.yAxis,
|
|
1983
1984
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
1984
|
-
},
|
|
1985
|
+
}, C(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, va)) : h("", !0)
|
|
1985
1986
|
]),
|
|
1986
|
-
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (l(), r("g",
|
|
1987
|
-
(l(!0), r(m, null, b(e.timeLabels, (a,
|
|
1988
|
-
key: `time_label_${
|
|
1987
|
+
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (l(), r("g", Ga, [
|
|
1988
|
+
(l(!0), r(m, null, b(e.timeLabels, (a, c) => (l(), r("g", {
|
|
1989
|
+
key: `time_label_${c}`
|
|
1989
1990
|
}, [
|
|
1990
|
-
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 && (
|
|
1991
|
+
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 && (c === 0 || c === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || a && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && t.selectedSerieIndex === c && !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 && c % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (l(), r("text", {
|
|
1991
1992
|
key: 0,
|
|
1992
1993
|
"text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
1993
1994
|
"font-size": t.fontSizes.xAxis,
|
|
1994
1995
|
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
1995
|
-
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
1996
|
-
},
|
|
1996
|
+
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + 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})`
|
|
1997
|
+
}, C(a || ""), 9, za)) : h("", !0)
|
|
1997
1998
|
]))), 128))
|
|
1998
1999
|
])) : h("", !0),
|
|
1999
2000
|
u("g", null, [
|
|
2000
|
-
(l(!0), r(m, null, b(e.maxSeries, (a,
|
|
2001
|
-
key: `tooltip_trap_${
|
|
2001
|
+
(l(!0), r(m, null, b(e.maxSeries, (a, c) => (l(), r("g", {
|
|
2002
|
+
key: `tooltip_trap_${c}`
|
|
2002
2003
|
}, [
|
|
2003
2004
|
u("rect", {
|
|
2004
2005
|
"data-cy-trap": "",
|
|
2005
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
2006
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * c,
|
|
2006
2007
|
y: e.drawingArea.top,
|
|
2007
2008
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
2008
2009
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
2009
2010
|
fill: "transparent",
|
|
2010
|
-
onMouseenter: (n) => e.toggleTooltipVisibility(!0,
|
|
2011
|
+
onMouseenter: (n) => e.toggleTooltipVisibility(!0, c),
|
|
2011
2012
|
onMouseleave: s[1] || (s[1] = (n) => e.toggleTooltipVisibility(!1)),
|
|
2012
|
-
onClick: (n) => e.selectX(
|
|
2013
|
-
}, null, 40,
|
|
2013
|
+
onClick: (n) => e.selectX(c)
|
|
2014
|
+
}, null, 40, Ma)
|
|
2014
2015
|
]))), 128))
|
|
2015
2016
|
]),
|
|
2016
2017
|
e.FINAL_CONFIG.chart.timeTag.show && ![null, void 0].includes(t.selectedSerieIndex) ? (l(), r("g", pa, [
|
|
@@ -2024,19 +2025,19 @@ function Xa(i, s, c, f, t, e) {
|
|
|
2024
2025
|
u("div", {
|
|
2025
2026
|
class: "vue-ui-xy-time-tag",
|
|
2026
2027
|
style: A(`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`)
|
|
2027
|
-
},
|
|
2028
|
-
], 8,
|
|
2028
|
+
}, C(e.timeLabels[t.selectedSerieIndex] || t.selectedSerieIndex), 5)
|
|
2029
|
+
], 8, Pa)),
|
|
2029
2030
|
u("circle", {
|
|
2030
2031
|
cx: e.drawingArea.left + e.drawingArea.width / e.maxSeries * t.selectedSerieIndex + e.drawingArea.width / e.maxSeries / 2,
|
|
2031
2032
|
cy: e.drawingArea.bottom,
|
|
2032
2033
|
r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
|
|
2033
2034
|
fill: e.FINAL_CONFIG.chart.timeTag.circleMarker.color
|
|
2034
|
-
}, null, 8,
|
|
2035
|
+
}, null, 8, Ta)
|
|
2035
2036
|
])) : h("", !0)
|
|
2036
2037
|
])) : h("", !0),
|
|
2037
2038
|
O(i.$slots, "svg", { svg: e.svg }, void 0, !0)
|
|
2038
|
-
], 14,
|
|
2039
|
-
i.$slots.watermark ? (l(), r("div",
|
|
2039
|
+
], 14, Ze)) : h("", !0),
|
|
2040
|
+
i.$slots.watermark ? (l(), r("div", Va, [
|
|
2040
2041
|
O(i.$slots, "watermark", B(Y({ isPrinting: t.isPrinting || t.isImaging })), void 0, !0)
|
|
2041
2042
|
])) : h("", !0),
|
|
2042
2043
|
e.isDataset ? h("", !0) : (l(), V(N, {
|
|
@@ -2099,12 +2100,12 @@ function Xa(i, s, c, f, t, e) {
|
|
|
2099
2100
|
class: "vue-ui-xy-legend",
|
|
2100
2101
|
style: A(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
|
|
2101
2102
|
}, [
|
|
2102
|
-
(l(!0), r(m, null, b(e.absoluteDataset, (a,
|
|
2103
|
-
key: `div_legend_item_${
|
|
2103
|
+
(l(!0), r(m, null, b(e.absoluteDataset, (a, c) => (l(), r("div", {
|
|
2104
|
+
key: `div_legend_item_${c}`,
|
|
2104
2105
|
onClick: (n) => e.segregate(a),
|
|
2105
|
-
class:
|
|
2106
|
+
class: p({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": t.segregatedSeries.includes(a.id) })
|
|
2106
2107
|
}, [
|
|
2107
|
-
t.icons[a.type] === "line" ? (l(), r("svg",
|
|
2108
|
+
t.icons[a.type] === "line" ? (l(), r("svg", Da, [
|
|
2108
2109
|
u("rect", {
|
|
2109
2110
|
x: "0",
|
|
2110
2111
|
y: "7",
|
|
@@ -2113,7 +2114,7 @@ function Xa(i, s, c, f, t, e) {
|
|
|
2113
2114
|
height: "4",
|
|
2114
2115
|
width: "20",
|
|
2115
2116
|
fill: a.color
|
|
2116
|
-
}, null, 8,
|
|
2117
|
+
}, null, 8, Ha),
|
|
2117
2118
|
q(L, {
|
|
2118
2119
|
plot: { x: 10, y: 9 },
|
|
2119
2120
|
radius: 4,
|
|
@@ -2122,7 +2123,7 @@ function Xa(i, s, c, f, t, e) {
|
|
|
2122
2123
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
2123
2124
|
strokeWidth: 1
|
|
2124
2125
|
}, null, 8, ["color", "shape", "stroke"])
|
|
2125
|
-
])) : (l(), r("svg",
|
|
2126
|
+
])) : (l(), r("svg", Wa, [
|
|
2126
2127
|
t.icons[a.type] === "bar" ? (l(), r("rect", {
|
|
2127
2128
|
key: 0,
|
|
2128
2129
|
x: "0",
|
|
@@ -2142,12 +2143,12 @@ function Xa(i, s, c, f, t, e) {
|
|
|
2142
2143
|
])),
|
|
2143
2144
|
u("span", {
|
|
2144
2145
|
style: A(`color:${e.FINAL_CONFIG.chart.legend.color}`)
|
|
2145
|
-
},
|
|
2146
|
-
], 10,
|
|
2147
|
-
], 4)) : (l(), r("div",
|
|
2146
|
+
}, C(a.name), 5)
|
|
2147
|
+
], 10, Ra))), 128))
|
|
2148
|
+
], 4)) : (l(), r("div", Ba, [
|
|
2148
2149
|
O(i.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
|
|
2149
2150
|
], 512)),
|
|
2150
|
-
q(
|
|
2151
|
+
q(M, {
|
|
2151
2152
|
show: t.mutableConfig.showTooltip && t.isTooltip,
|
|
2152
2153
|
backgroundColor: e.FINAL_CONFIG.chart.tooltip.backgroundColor,
|
|
2153
2154
|
color: e.FINAL_CONFIG.chart.tooltip.color,
|
|
@@ -2190,18 +2191,18 @@ function Xa(i, s, c, f, t, e) {
|
|
|
2190
2191
|
u("div", {
|
|
2191
2192
|
style: A(`${t.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
2192
2193
|
}, [
|
|
2193
|
-
u("div",
|
|
2194
|
-
|
|
2194
|
+
u("div", Ya, [
|
|
2195
|
+
He(u("input", {
|
|
2195
2196
|
type: "checkbox",
|
|
2196
2197
|
"onUpdate:modelValue": s[4] || (s[4] = (a) => t.showSparklineTable = a)
|
|
2197
2198
|
}, null, 512), [
|
|
2198
|
-
[
|
|
2199
|
+
[We, t.showSparklineTable]
|
|
2199
2200
|
]),
|
|
2200
2201
|
u("div", {
|
|
2201
2202
|
onClick: s[5] || (s[5] = (a) => t.showSparklineTable = !t.showSparklineTable),
|
|
2202
2203
|
style: { cursor: "pointer" }
|
|
2203
2204
|
}, [
|
|
2204
|
-
q(
|
|
2205
|
+
q(S, {
|
|
2205
2206
|
name: "chartLine",
|
|
2206
2207
|
size: 20,
|
|
2207
2208
|
stroke: e.FINAL_CONFIG.chart.color
|
|
@@ -2222,10 +2223,10 @@ function Xa(i, s, c, f, t, e) {
|
|
|
2222
2223
|
onClose: s[6] || (s[6] = (a) => t.mutableConfig.showTable = !1)
|
|
2223
2224
|
}, {
|
|
2224
2225
|
th: z(({ th: a }) => [
|
|
2225
|
-
u("div", { innerHTML: a }, null, 8,
|
|
2226
|
+
u("div", { innerHTML: a }, null, 8, Xa)
|
|
2226
2227
|
]),
|
|
2227
2228
|
td: z(({ td: a }) => [
|
|
2228
|
-
Ee(
|
|
2229
|
+
Ee(C(isNaN(Number(a)) ? a : e.dataLabel({
|
|
2229
2230
|
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
2230
2231
|
v: a,
|
|
2231
2232
|
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
@@ -2238,9 +2239,9 @@ function Xa(i, s, c, f, t, e) {
|
|
|
2238
2239
|
]),
|
|
2239
2240
|
_: 1
|
|
2240
2241
|
}, 8, ["config"])) : h("", !0)
|
|
2241
|
-
], 14,
|
|
2242
|
+
], 14, qe);
|
|
2242
2243
|
}
|
|
2243
|
-
const
|
|
2244
|
+
const ci = /* @__PURE__ */ Be(Xe, [["render", qa], ["__scopeId", "data-v-0874a101"]]);
|
|
2244
2245
|
export {
|
|
2245
|
-
|
|
2246
|
+
ci as default
|
|
2246
2247
|
};
|