vue-data-ui 2.3.82 → 2.3.84
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-D-Ef1hLL.js → Arrow-CQ1ubni5.js} +1 -1
- package/dist/{Arrow-BTO6BS7p.cjs → Arrow-Uk_vwKtL.cjs} +1 -1
- package/dist/{BaseIcon-CVe5ECp8.js → BaseIcon-B9ZZ6wkT.js} +1 -1
- package/dist/{BaseIcon-DS9Fpauh.cjs → BaseIcon-CF1HQdM0.cjs} +1 -1
- package/dist/{DataTable-OKHTStDc.js → DataTable-C-iU_7h7.js} +2 -2
- package/dist/{DataTable-BfvpbyB5.cjs → DataTable-CEtr89Og.cjs} +1 -1
- package/dist/{Legend-B3B4K_lr.cjs → Legend-D2ZBCCXe.cjs} +1 -1
- package/dist/{Legend-Bt4nNAHo.js → Legend-pU_BwhaW.js} +1 -1
- package/dist/{Shape-Dg4DHNlU.cjs → Shape-BO_KyCq8.cjs} +1 -1
- package/dist/{Shape-C0HIiqHY.js → Shape-CyM44biU.js} +1 -1
- package/dist/{Slicer-BPvgOo6Z.cjs → Slicer-BAMZ4wsl.cjs} +1 -1
- package/dist/{Slicer-CB-YgfIM.js → Slicer-CZobytqL.js} +2 -2
- package/dist/{Title-B238VbIb.cjs → Title-B1_d29Eh.cjs} +1 -1
- package/dist/{Title-CXeDgAE7.js → Title-Bk3h09h9.js} +1 -1
- package/dist/{Tooltip-hihJcWT0.cjs → Tooltip-BU4cSEF0.cjs} +1 -1
- package/dist/{Tooltip-_e0VoMC-.js → Tooltip-CdB80DsD.js} +1 -1
- package/dist/index-Cx-40Fnz.cjs +4 -0
- package/dist/{index-B6m-GhsP.js → index-DI4DaxVG.js} +2 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +3 -0
- package/dist/types/vue-data-ui.d.ts +3 -0
- package/dist/{useNestedProp-CD3RA8XO.cjs → useNestedProp-BdsfyHWU.cjs} +1 -1
- package/dist/{useNestedProp-BrcBWysp.js → useNestedProp-COsQo-tX.js} +1 -1
- package/dist/{usePrinter-BkKBQlCO.js → usePrinter-D9bNzUQP.js} +1 -1
- package/dist/{usePrinter-_rbdfvVi.cjs → usePrinter-DbhL59iY.cjs} +1 -1
- package/dist/{vue-data-ui-wvh5ZEeD.js → vue-data-ui-9nofTL7J.js} +57 -57
- package/dist/{vue-data-ui-BgHHdUNr.cjs → vue-data-ui-kGaLyV0o.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-ia_wUTc1.cjs → vue-ui-3d-bar-1aTroDle.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-DNHZheVL.js → vue-ui-3d-bar-lKgwKkVj.js} +7 -7
- package/dist/{vue-ui-accordion-CH_rY04P.cjs → vue-ui-accordion-C8ka_Ot0.cjs} +1 -1
- package/dist/{vue-ui-accordion-BygOGjRr.js → vue-ui-accordion-DsN9lxvc.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BZrN9gk2.js → vue-ui-age-pyramid-D2lSXDX6.js} +8 -8
- package/dist/{vue-ui-age-pyramid-DftioDeW.cjs → vue-ui-age-pyramid-D8Tr8jvT.cjs} +1 -1
- package/dist/{vue-ui-annotator-BGYJrkr0.cjs → vue-ui-annotator-DmfAqbqB.cjs} +1 -1
- package/dist/{vue-ui-annotator-DRpBiqTN.js → vue-ui-annotator-DoLG0N5e.js} +1 -1
- package/dist/{vue-ui-candlestick-CVgaOkTY.cjs → vue-ui-candlestick-BAuWAMct.cjs} +1 -1
- package/dist/{vue-ui-candlestick-BP5nrvrA.js → vue-ui-candlestick-vhHV9d6O.js} +9 -9
- package/dist/{vue-ui-carousel-table-Dtkm1_OH.js → vue-ui-carousel-table-BmyArloA.js} +4 -4
- package/dist/{vue-ui-carousel-table-Cd93n0fJ.cjs → vue-ui-carousel-table-DaQV2SlJ.cjs} +1 -1
- package/dist/{vue-ui-chestnut-CKviQSxK.js → vue-ui-chestnut-DgbbDtL0.js} +6 -6
- package/dist/{vue-ui-chestnut-B6_rC31R.cjs → vue-ui-chestnut-DvNW2Y0z.cjs} +1 -1
- package/dist/{vue-ui-cursor-_egqr6DD.js → vue-ui-cursor-7-jKCnOY.js} +2 -2
- package/dist/{vue-ui-cursor-C4FRP_Nc.cjs → vue-ui-cursor-zXDNHCZv.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DUgt8PIq.js → vue-ui-dashboard-B_pnIQ5P.js} +2 -2
- package/dist/{vue-ui-dashboard-iPdvuNQ9.cjs → vue-ui-dashboard-DMossMh1.cjs} +1 -1
- package/dist/{vue-ui-digits-OWEvFsfq.cjs → vue-ui-digits-BL8Vyod-.cjs} +1 -1
- package/dist/{vue-ui-digits-CcrjtXtk.js → vue-ui-digits-C-lpZ-rg.js} +2 -2
- package/dist/{vue-ui-donut-Dmr11NmB.js → vue-ui-donut-e-p-l-_7.js} +9 -9
- package/dist/{vue-ui-donut-evolution-PtyzK7G6.cjs → vue-ui-donut-evolution-DsdzjA88.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-D1LXnQfC.js → vue-ui-donut-evolution-Ol1YS2OF.js} +9 -9
- package/dist/{vue-ui-donut-D2SQezST.cjs → vue-ui-donut-w1eqaTu0.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-CNX0gxiM.js → vue-ui-dumbbell-BjTXdj83.js} +8 -8
- package/dist/{vue-ui-dumbbell-Bbv_WYY2.cjs → vue-ui-dumbbell-CMFNfda1.cjs} +1 -1
- package/dist/{vue-ui-flow-FsawfZQj.js → vue-ui-flow-B4mdXrld.js} +7 -7
- package/dist/{vue-ui-flow-DRjha-Xx.cjs → vue-ui-flow-oBnzNN4s.cjs} +1 -1
- package/dist/{vue-ui-galaxy-BCMTqPX1.cjs → vue-ui-galaxy-DgxKqf6u.cjs} +1 -1
- package/dist/{vue-ui-galaxy-Eev5Q8w4.js → vue-ui-galaxy-Eg1e5SG7.js} +9 -9
- package/dist/{vue-ui-gauge-CPMlQvxU.cjs → vue-ui-gauge-B64pcc54.cjs} +1 -1
- package/dist/{vue-ui-gauge-DBxTCkge.js → vue-ui-gauge-BTt63SCn.js} +5 -5
- package/dist/{vue-ui-gizmo-BAiNxz8X.js → vue-ui-gizmo-C0aF0qVF.js} +2 -2
- package/dist/{vue-ui-gizmo-CxnoYWwd.cjs → vue-ui-gizmo-bFlUFJa8.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DvsH2Au0.cjs → vue-ui-heatmap-cjY0mi4a.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BpHByyVR.js → vue-ui-heatmap-kiVWYvjC.js} +8 -8
- package/dist/{vue-ui-kpi-CyvW8X1f.js → vue-ui-kpi-DdtZLwfi.js} +3 -3
- package/dist/{vue-ui-kpi-DFquN6Ls.cjs → vue-ui-kpi-qw5ofS-z.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DIa_OVyM.cjs → vue-ui-mini-loader-B8YrB3X-.cjs} +1 -1
- package/dist/{vue-ui-mini-loader--6qogu7d.js → vue-ui-mini-loader-DcL5v-Tv.js} +2 -2
- package/dist/{vue-ui-molecule-CbLmk-Fv.cjs → vue-ui-molecule-B8cYtnHq.cjs} +1 -1
- package/dist/{vue-ui-molecule-YJ0bXwbB.js → vue-ui-molecule-BpomHzqe.js} +9 -9
- package/dist/{vue-ui-mood-radar-BV5RnpiH.cjs → vue-ui-mood-radar-BA2VVPO5.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-B8QHrApG.js → vue-ui-mood-radar-BV9xC9xF.js} +9 -9
- package/dist/{vue-ui-nested-donuts-DKAkxEPd.cjs → vue-ui-nested-donuts-C3CMWjgk.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-CLhrY6y1.js → vue-ui-nested-donuts-D7D20nJu.js} +9 -9
- package/dist/{vue-ui-onion-BXdEzlmA.js → vue-ui-onion-4wR10l5H.js} +9 -9
- package/dist/{vue-ui-onion-CkknGnDm.cjs → vue-ui-onion-CVp0g8MP.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CE31yJK_.cjs → vue-ui-parallel-coordinate-plot-CmaHQR6-.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-4XBOTcO8.js → vue-ui-parallel-coordinate-plot-DA3byJV2.js} +10 -10
- package/dist/{vue-ui-quadrant-D9_7g38o.cjs → vue-ui-quadrant-B8ffMNIS.cjs} +1 -1
- package/dist/{vue-ui-quadrant-CgMsyw3Q.js → vue-ui-quadrant-D5wvd5h3.js} +10 -10
- package/dist/{vue-ui-quick-chart-Cgbq5tLg.js → vue-ui-quick-chart-CTSq5JJE.js} +7 -7
- package/dist/{vue-ui-quick-chart-sMi9mLRt.cjs → vue-ui-quick-chart-hnVT9GKL.cjs} +1 -1
- package/dist/{vue-ui-radar-BvN2WTtC.js → vue-ui-radar-OW6awckj.js} +10 -10
- package/dist/{vue-ui-radar-CkcPJX_6.cjs → vue-ui-radar-ySl7KzoX.cjs} +1 -1
- package/dist/{vue-ui-rating-Cl-ncmAS.cjs → vue-ui-rating-3ZVG38br.cjs} +1 -1
- package/dist/{vue-ui-rating-DfKMxLTK.js → vue-ui-rating-C6gyJWJF.js} +2 -2
- package/dist/{vue-ui-relation-circle-CJP9zuqV.cjs → vue-ui-relation-circle-CMW26dvv.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-DV5lMEvZ.js → vue-ui-relation-circle-Dr9-ozKG.js} +5 -5
- package/dist/{vue-ui-rings-C8u__5v-.cjs → vue-ui-rings-CR1t6iss.cjs} +1 -1
- package/dist/{vue-ui-rings-Bu-zVpHc.js → vue-ui-rings-Ce6tFKrN.js} +9 -9
- package/dist/{vue-ui-scatter-D3FTfnsR.cjs → vue-ui-scatter-CKtgbptk.cjs} +1 -1
- package/dist/{vue-ui-scatter-WeSsnz6H.js → vue-ui-scatter-C_3WQPMf.js} +10 -10
- package/dist/{vue-ui-screenshot-B9Mbp_0-.js → vue-ui-screenshot-BvE2dsvU.js} +1 -1
- package/dist/{vue-ui-screenshot-BFL-8cPa.cjs → vue-ui-screenshot-D6N4GbAL.cjs} +1 -1
- package/dist/{vue-ui-skeleton-dfikkXQa.cjs → vue-ui-skeleton-CkSlhfsB.cjs} +1 -1
- package/dist/{vue-ui-skeleton-BOhyMEA5.js → vue-ui-skeleton-DH4t1hrL.js} +2 -2
- package/dist/{vue-ui-smiley-CwYjTYN8.js → vue-ui-smiley-C-92SyPZ.js} +2 -2
- package/dist/{vue-ui-smiley-BVd6D7fu.cjs → vue-ui-smiley-CSA28QLT.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-D6IwslA-.js → vue-ui-spark-trend-CrElvUcG.js} +4 -4
- package/dist/{vue-ui-spark-trend-DuIEXk8W.cjs → vue-ui-spark-trend-D4d4Mr24.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-woU3TqMe.cjs → vue-ui-sparkbar-DDqy0UBm.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-1v_BypP0.js → vue-ui-sparkbar-DrbkUcOX.js} +3 -3
- package/dist/{vue-ui-sparkgauge-B4wnbfIi.cjs → vue-ui-sparkgauge-D6cG2rb8.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-Cwu4aQUR.js → vue-ui-sparkgauge-PSRf_u0V.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-wRqt6OJx.cjs → vue-ui-sparkhistogram-B9sVdLfh.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-BTdWXIO8.js → vue-ui-sparkhistogram-pZslBri7.js} +4 -4
- package/dist/{vue-ui-sparkline-B2v0wJH3.js → vue-ui-sparkline-BPExupWx.js} +3 -3
- package/dist/{vue-ui-sparkline-DE3oMNsY.cjs → vue-ui-sparkline-CqgArzCs.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DIk48oMu.cjs → vue-ui-sparkstackbar-BbGJ75_9.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-B4lRHLJK.js → vue-ui-sparkstackbar-i02y9FzO.js} +3 -3
- package/dist/{vue-ui-stackbar-DVdBUu5U.cjs → vue-ui-stackbar-CRbcnnwn.cjs} +1 -1
- package/dist/{vue-ui-stackbar-DSc8j8LH.js → vue-ui-stackbar-DfXxN_P3.js} +10 -10
- package/dist/{vue-ui-strip-plot-6hhRMLCq.js → vue-ui-strip-plot-BZ-we0b1.js} +9 -9
- package/dist/{vue-ui-strip-plot-Cjays3PT.cjs → vue-ui-strip-plot-oZBXDxc-.cjs} +1 -1
- package/dist/{vue-ui-table-DQkiNDaZ.js → vue-ui-table-BqLbMTHt.js} +1 -1
- package/dist/{vue-ui-table-D-_a1UzS.cjs → vue-ui-table-Dy26T2oy.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BRvVWrf1.cjs → vue-ui-table-heatmap-BnwiB4id.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-_KVKSH7q.js → vue-ui-table-heatmap-KzoqT8nX.js} +4 -4
- package/dist/{vue-ui-table-sparkline-kyYy6tk8.cjs → vue-ui-table-sparkline-BBEsDDnN.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-C_0i15kC.js → vue-ui-table-sparkline-BakiSjV4.js} +5 -5
- package/dist/{vue-ui-thermometer-y3Hm1mwz.js → vue-ui-thermometer-D7cgRJoy.js} +5 -5
- package/dist/{vue-ui-thermometer-BjU-T5A0.cjs → vue-ui-thermometer-E0mrvP4G.cjs} +1 -1
- package/dist/{vue-ui-timer-CVHz7dT6.cjs → vue-ui-timer-COLXZ1J1.cjs} +1 -1
- package/dist/{vue-ui-timer-7ouUkgHq.js → vue-ui-timer-r4VFny9D.js} +4 -4
- package/dist/{vue-ui-tiremarks-Dr9qSWVo.cjs → vue-ui-tiremarks-C15sglnJ.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-8-riUzAT.js → vue-ui-tiremarks-DNQpuz8A.js} +5 -5
- package/dist/{vue-ui-treemap-ChYWvnSf.js → vue-ui-treemap-CD5GoXrU.js} +9 -9
- package/dist/{vue-ui-treemap-CmoQK2_G.cjs → vue-ui-treemap-CsHaQjwu.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-Ecx25LWQ.js → vue-ui-vertical-bar-DRH98pOw.js} +9 -9
- package/dist/{vue-ui-vertical-bar-Doj3k8dI.cjs → vue-ui-vertical-bar-DucujxOR.cjs} +1 -1
- package/dist/{vue-ui-waffle-BgoDu9wa.cjs → vue-ui-waffle-DhroAZB3.cjs} +1 -1
- package/dist/{vue-ui-waffle-BlqBRA5E.js → vue-ui-waffle-l9NGD_0B.js} +9 -9
- package/dist/{vue-ui-wheel-BlVmj1yz.cjs → vue-ui-wheel-Bd87HcGT.cjs} +1 -1
- package/dist/{vue-ui-wheel-DNndo4fU.js → vue-ui-wheel-BpqWo_KY.js} +5 -5
- package/dist/{vue-ui-word-cloud-Cvyev8yY.cjs → vue-ui-word-cloud-D5JLdr9g.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-C9XDZjPt.js → vue-ui-word-cloud-DLaAm8t8.js} +7 -7
- package/dist/vue-ui-xy-BHzOpYm9.cjs +3 -0
- package/dist/{vue-ui-xy-DkNi0ZJ4.js → vue-ui-xy-Ct-9OxiZ.js} +946 -906
- package/dist/{vue-ui-xy-canvas-DIFlyxki.js → vue-ui-xy-canvas-BU3nj2M1.js} +10 -10
- package/dist/{vue-ui-xy-canvas-a3pNJKYd.cjs → vue-ui-xy-canvas-Bub1qCm9.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-CeMgFh6-.cjs +0 -4
- package/dist/vue-ui-xy-x5TSd-hr.cjs +0 -3
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { p as Q } from "./pdf-97UbtKC2.js";
|
|
2
|
-
import { U as K, s as j } from "./usePrinter-
|
|
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
|
|
4
|
-
import { D as Oe } from "./DataTable-
|
|
5
|
-
import { _ as ve } from "./Title-
|
|
6
|
-
import { _ as Ge, u as
|
|
7
|
-
import { _ as
|
|
8
|
-
import
|
|
9
|
-
import Pe from "./vue-ui-table-sparkline-
|
|
10
|
-
import Te from "./vue-ui-skeleton-
|
|
11
|
-
import { S as Ve } from "./Slicer-
|
|
12
|
-
import Re from "./vue-ui-accordion-
|
|
13
|
-
import { u as U } from "./useNestedProp-
|
|
14
|
-
import { resolveComponent as T, openBlock as l, createElementBlock as r, normalizeClass as
|
|
2
|
+
import { U as K, s as j } from "./usePrinter-D9bNzUQP.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 he, v as ce, $ as oe, d as de, B as ue, b as ge, q as fe, Q as Ne, a0 as me, r as Ie, e as xe, y as be, L as Fe, x as _e, a1 as ye, o as Ae, s as Le, w as Ce, E as Se, A as ke, u as we } from "./index-DI4DaxVG.js";
|
|
4
|
+
import { D as Oe } from "./DataTable-C-iU_7h7.js";
|
|
5
|
+
import { _ as ve } from "./Title-Bk3h09h9.js";
|
|
6
|
+
import { _ as Ge, u as pe } from "./Tooltip-CdB80DsD.js";
|
|
7
|
+
import { _ as ze } from "./Shape-CyM44biU.js";
|
|
8
|
+
import Me from "./BaseIcon-B9ZZ6wkT.js";
|
|
9
|
+
import Pe from "./vue-ui-table-sparkline-BakiSjV4.js";
|
|
10
|
+
import Te from "./vue-ui-skeleton-DH4t1hrL.js";
|
|
11
|
+
import { S as Ve } from "./Slicer-CZobytqL.js";
|
|
12
|
+
import Re from "./vue-ui-accordion-DsN9lxvc.js";
|
|
13
|
+
import { u as U } from "./useNestedProp-COsQo-tX.js";
|
|
14
|
+
import { resolveComponent as T, openBlock as l, createElementBlock as r, normalizeClass as M, normalizeStyle as C, createBlock as V, createCommentVNode as o, createSlots as De, withCtx as p, renderSlot as O, normalizeProps as B, guardReactiveProps as Y, createElementVNode as u, Fragment as N, renderList as I, toDisplayString as S, createVNode as q, withDirectives as He, vModelCheckbox as We, createTextVNode as Ee } from "vue";
|
|
15
15
|
import { _ as Be } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
16
|
const Ye = J(), Xe = {
|
|
17
17
|
name: "vue-ui-xy",
|
|
@@ -31,28 +31,28 @@ const Ye = J(), Xe = {
|
|
|
31
31
|
},
|
|
32
32
|
components: {
|
|
33
33
|
DataTable: Oe,
|
|
34
|
-
Shape:
|
|
34
|
+
Shape: ze,
|
|
35
35
|
Title: ve,
|
|
36
36
|
Tooltip: Ge,
|
|
37
37
|
UserOptions: K,
|
|
38
|
-
BaseIcon:
|
|
38
|
+
BaseIcon: Me,
|
|
39
39
|
TableSparkline: Pe,
|
|
40
40
|
Skeleton: Te,
|
|
41
41
|
Slicer: Ve,
|
|
42
42
|
Accordion: Re
|
|
43
43
|
},
|
|
44
44
|
data() {
|
|
45
|
-
this.dataset.forEach((
|
|
46
|
-
[null, void 0].includes(
|
|
45
|
+
this.dataset.forEach((c, f) => {
|
|
46
|
+
[null, void 0].includes(c.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
|
|
53
|
+
const a = Math.max(...this.dataset.map((c) => c.series.length)), s = {
|
|
54
54
|
start: 0,
|
|
55
|
-
end:
|
|
55
|
+
end: a
|
|
56
56
|
};
|
|
57
57
|
return {
|
|
58
58
|
themePalettes: $,
|
|
@@ -102,7 +102,7 @@ const Ye = J(), Xe = {
|
|
|
102
102
|
titleStep: 0,
|
|
103
103
|
slicer: s,
|
|
104
104
|
__to__: null,
|
|
105
|
-
maxX:
|
|
105
|
+
maxX: a,
|
|
106
106
|
showSparklineTable: !0,
|
|
107
107
|
segregateStep: 0,
|
|
108
108
|
sliderId: Ye,
|
|
@@ -121,8 +121,8 @@ const Ye = J(), Xe = {
|
|
|
121
121
|
},
|
|
122
122
|
watch: {
|
|
123
123
|
dataset: {
|
|
124
|
-
handler(
|
|
125
|
-
this.maxX = Math.max(...this.dataset.map((
|
|
124
|
+
handler(a, s) {
|
|
125
|
+
this.maxX = Math.max(...this.dataset.map((c) => c.series.length)), this.slicer = {
|
|
126
126
|
start: 0,
|
|
127
127
|
end: this.maxX
|
|
128
128
|
}, this.slicerStep += 1, this.segregateStep += 1;
|
|
@@ -130,7 +130,7 @@ const Ye = J(), Xe = {
|
|
|
130
130
|
deep: !0
|
|
131
131
|
},
|
|
132
132
|
config: {
|
|
133
|
-
handler(
|
|
133
|
+
handler(a, s) {
|
|
134
134
|
this.FINAL_CONFIG = this.prepareConfig(), this.prepareChart(), this.titleStep += 1, this.tableStep += 1;
|
|
135
135
|
},
|
|
136
136
|
deep: !0
|
|
@@ -139,11 +139,11 @@ const Ye = J(), Xe = {
|
|
|
139
139
|
computed: {
|
|
140
140
|
minimap() {
|
|
141
141
|
if (!this.FINAL_CONFIG.chart.zoom.minimap.show) return [];
|
|
142
|
-
const
|
|
143
|
-
for (let
|
|
144
|
-
|
|
145
|
-
const f = Math.min(...
|
|
146
|
-
return
|
|
142
|
+
const a = this.datasetWithIds.filter((i) => !this.segregatedSeries.includes(i.id)), s = Math.max(...a.map((i) => i.series.length)), c = [];
|
|
143
|
+
for (let i = 0; i < s; i += 1)
|
|
144
|
+
c.push(a.map((e) => e.series[i] || 0).reduce((e, x) => (e || 0) + (x || 0), 0));
|
|
145
|
+
const f = Math.min(...c);
|
|
146
|
+
return c.map((i) => i + (f < 0 ? Math.abs(f) : 0));
|
|
147
147
|
},
|
|
148
148
|
customPalette() {
|
|
149
149
|
return this.convertCustomPalette(this.FINAL_CONFIG.customPalette);
|
|
@@ -155,54 +155,54 @@ const Ye = J(), Xe = {
|
|
|
155
155
|
return this.FINAL_CONFIG.chart.zoom.color;
|
|
156
156
|
},
|
|
157
157
|
allScales() {
|
|
158
|
-
const
|
|
159
|
-
name:
|
|
160
|
-
color:
|
|
161
|
-
scale:
|
|
162
|
-
scaleYLabels:
|
|
163
|
-
zero:
|
|
164
|
-
max:
|
|
165
|
-
scaleLabel:
|
|
166
|
-
id:
|
|
167
|
-
yOffset:
|
|
168
|
-
individualHeight:
|
|
169
|
-
autoScaleYLabels:
|
|
170
|
-
})), s = this.barSet.map((
|
|
171
|
-
name:
|
|
172
|
-
color:
|
|
173
|
-
scale:
|
|
174
|
-
scaleYLabels:
|
|
175
|
-
zero:
|
|
176
|
-
max:
|
|
177
|
-
scaleLabel:
|
|
178
|
-
id:
|
|
179
|
-
yOffset:
|
|
180
|
-
individualHeight:
|
|
181
|
-
})),
|
|
182
|
-
name:
|
|
183
|
-
color:
|
|
184
|
-
scale:
|
|
185
|
-
scaleYLabels:
|
|
158
|
+
const a = this.lineSet.map((i) => ({
|
|
159
|
+
name: i.name,
|
|
160
|
+
color: i.color,
|
|
161
|
+
scale: i.individualScale,
|
|
162
|
+
scaleYLabels: i.scaleYLabels,
|
|
163
|
+
zero: i.zeroPosition,
|
|
164
|
+
max: i.individualMax,
|
|
165
|
+
scaleLabel: i.scaleLabel || "",
|
|
166
|
+
id: i.id,
|
|
167
|
+
yOffset: i.yOffset || 0,
|
|
168
|
+
individualHeight: i.individualHeight || this.drawingArea.height,
|
|
169
|
+
autoScaleYLabels: i.autoScaleYLabels
|
|
170
|
+
})), s = this.barSet.map((i) => ({
|
|
171
|
+
name: i.name,
|
|
172
|
+
color: i.color,
|
|
173
|
+
scale: i.individualScale,
|
|
174
|
+
scaleYLabels: i.scaleYLabels,
|
|
175
|
+
zero: i.zeroPosition,
|
|
176
|
+
max: i.individualMax,
|
|
177
|
+
scaleLabel: i.scaleLabel || "",
|
|
178
|
+
id: i.id,
|
|
179
|
+
yOffset: i.yOffset || 0,
|
|
180
|
+
individualHeight: i.individualHeight || this.drawingArea.height
|
|
181
|
+
})), c = this.plotSet.map((i) => ({
|
|
182
|
+
name: i.name,
|
|
183
|
+
color: i.color,
|
|
184
|
+
scale: i.individualScale,
|
|
185
|
+
scaleYLabels: i.scaleYLabels,
|
|
186
186
|
// FIX
|
|
187
|
-
zero:
|
|
188
|
-
max:
|
|
189
|
-
scaleLabel:
|
|
190
|
-
id:
|
|
191
|
-
yOffset:
|
|
192
|
-
individualHeight:
|
|
193
|
-
})), f = [...
|
|
194
|
-
return [...
|
|
195
|
-
id:
|
|
196
|
-
scaleLabel:
|
|
197
|
-
name:
|
|
198
|
-
color:
|
|
199
|
-
scale:
|
|
200
|
-
yOffset:
|
|
201
|
-
individualHeight:
|
|
187
|
+
zero: i.zeroPosition,
|
|
188
|
+
max: i.individualMax,
|
|
189
|
+
scaleLabel: i.scaleLabel || "",
|
|
190
|
+
id: i.id,
|
|
191
|
+
yOffset: i.yOffset || 0,
|
|
192
|
+
individualHeight: i.individualHeight || this.drawingArea.height
|
|
193
|
+
})), f = [...a, ...s, ...c].flatMap((i) => i).length;
|
|
194
|
+
return [...a, ...s, ...c].flatMap((i, e) => ({
|
|
195
|
+
id: i.id,
|
|
196
|
+
scaleLabel: i.scaleLabel,
|
|
197
|
+
name: i.name,
|
|
198
|
+
color: i.color,
|
|
199
|
+
scale: i.scale,
|
|
200
|
+
yOffset: i.yOffset,
|
|
201
|
+
individualHeight: i.individualHeight,
|
|
202
202
|
x: this.mutableConfig.isStacked ? this.drawingArea.left : this.drawingArea.left / f * (e + 1),
|
|
203
|
-
yLabels:
|
|
204
|
-
y:
|
|
205
|
-
value:
|
|
203
|
+
yLabels: i.scaleYLabels || i.scale.ticks.map((x) => ({
|
|
204
|
+
y: x >= 0 ? i.zero - i.individualHeight * (x / i.max) : i.zero + i.individualHeight * Math.abs(x) / i.max,
|
|
205
|
+
value: x
|
|
206
206
|
}))
|
|
207
207
|
}));
|
|
208
208
|
},
|
|
@@ -210,19 +210,19 @@ const Ye = J(), Xe = {
|
|
|
210
210
|
return !!this.dataset && this.dataset.length;
|
|
211
211
|
},
|
|
212
212
|
chartFont() {
|
|
213
|
-
const
|
|
214
|
-
return window.getComputedStyle(
|
|
213
|
+
const a = document.getElementById(`vue-ui-xy_${this.uniqueId}`);
|
|
214
|
+
return window.getComputedStyle(a, null).getPropertyValue("font-family");
|
|
215
215
|
},
|
|
216
216
|
FINAL_CONFIG: {
|
|
217
217
|
get: function() {
|
|
218
218
|
return this.prepareConfig();
|
|
219
219
|
},
|
|
220
|
-
set: function(
|
|
221
|
-
return
|
|
220
|
+
set: function(a) {
|
|
221
|
+
return a;
|
|
222
222
|
}
|
|
223
223
|
},
|
|
224
224
|
hasHighlightArea() {
|
|
225
|
-
return Array.isArray(this.FINAL_CONFIG.chart.highlightArea) ? this.FINAL_CONFIG.chart.highlightArea.some((
|
|
225
|
+
return Array.isArray(this.FINAL_CONFIG.chart.highlightArea) ? this.FINAL_CONFIG.chart.highlightArea.some((a) => a.show) : this.FINAL_CONFIG.chart.highlightArea && this.FINAL_CONFIG.chart.highlightArea.show;
|
|
226
226
|
},
|
|
227
227
|
highlightAreas() {
|
|
228
228
|
if (Array.isArray(this.FINAL_CONFIG.chart.highlightArea))
|
|
@@ -230,8 +230,8 @@ const Ye = J(), Xe = {
|
|
|
230
230
|
...s,
|
|
231
231
|
span: s.from === s.to ? 1 : s.to < s.from ? 0 : s.to - s.from + 1
|
|
232
232
|
}));
|
|
233
|
-
const
|
|
234
|
-
return [{ ...
|
|
233
|
+
const a = this.FINAL_CONFIG.chart.highlightArea;
|
|
234
|
+
return [{ ...a, span: a.from === a.to ? 1 : a.to < a.from ? 0 : a.to - a.from + 1 }];
|
|
235
235
|
},
|
|
236
236
|
xPadding() {
|
|
237
237
|
return this.FINAL_CONFIG.chart.grid.position === "middle" ? 0 : this.drawingArea.width / this.maxSeries / 2;
|
|
@@ -243,33 +243,33 @@ const Ye = J(), Xe = {
|
|
|
243
243
|
return this.niceScale.max + this.relativeZero;
|
|
244
244
|
},
|
|
245
245
|
datasetWithIds() {
|
|
246
|
-
return this.useSafeValues ? this.dataset.map((
|
|
247
|
-
...
|
|
246
|
+
return this.useSafeValues ? this.dataset.map((a, s) => ({
|
|
247
|
+
...a,
|
|
248
248
|
id: `uniqueId_${s}`
|
|
249
249
|
})) : this.dataset;
|
|
250
250
|
},
|
|
251
251
|
safeDataset() {
|
|
252
|
-
return this.useSafeValues ? this.dataset.map((
|
|
253
|
-
...
|
|
254
|
-
series:
|
|
255
|
-
color: this.convertColorToHex(
|
|
252
|
+
return this.useSafeValues ? this.dataset.map((a, s) => ({
|
|
253
|
+
...a,
|
|
254
|
+
series: a.series.map((c) => this.isSafeValue(c) ? c : null).slice(this.slicer.start, this.slicer.end),
|
|
255
|
+
color: this.convertColorToHex(a.color ? a.color : this.customPalette[s] ? this.customPalette[s] : this.palette[s]),
|
|
256
256
|
id: `uniqueId_${s}`
|
|
257
257
|
})) : this.dataset;
|
|
258
258
|
},
|
|
259
259
|
relativeDataset() {
|
|
260
|
-
return this.safeDataset.map((
|
|
261
|
-
...
|
|
262
|
-
series:
|
|
263
|
-
absoluteValues:
|
|
264
|
-
})).filter((
|
|
260
|
+
return this.safeDataset.map((a, s) => ({
|
|
261
|
+
...a,
|
|
262
|
+
series: a.series.map((c) => c + this.relativeZero),
|
|
263
|
+
absoluteValues: a.series
|
|
264
|
+
})).filter((a) => !this.segregatedSeries.includes(a.id));
|
|
265
265
|
},
|
|
266
266
|
tableSparklineDataset() {
|
|
267
|
-
return this.relativeDataset.map((
|
|
268
|
-
const s =
|
|
267
|
+
return this.relativeDataset.map((a) => {
|
|
268
|
+
const s = a.absoluteValues.map((c) => [void 0, null].includes(c) ? 0 : c);
|
|
269
269
|
return {
|
|
270
|
-
id:
|
|
271
|
-
name:
|
|
272
|
-
color:
|
|
270
|
+
id: a.id,
|
|
271
|
+
name: a.name,
|
|
272
|
+
color: a.color,
|
|
273
273
|
values: this.fillArray(this.maxSeries, s)
|
|
274
274
|
};
|
|
275
275
|
});
|
|
@@ -301,69 +301,75 @@ const Ye = J(), Xe = {
|
|
|
301
301
|
};
|
|
302
302
|
},
|
|
303
303
|
absoluteDataset() {
|
|
304
|
-
return this.safeDataset.map((
|
|
304
|
+
return this.safeDataset.map((a, s) => ({
|
|
305
305
|
absoluteIndex: s,
|
|
306
|
-
...
|
|
307
|
-
series:
|
|
308
|
-
absoluteValues:
|
|
309
|
-
segregate: () => this.segregate(
|
|
310
|
-
isSegregated: this.segregatedSeries.includes(
|
|
306
|
+
...a,
|
|
307
|
+
series: a.series.map((c) => c + this.relativeZero),
|
|
308
|
+
absoluteValues: a.series,
|
|
309
|
+
segregate: () => this.segregate(a),
|
|
310
|
+
isSegregated: this.segregatedSeries.includes(a.id)
|
|
311
311
|
}));
|
|
312
312
|
},
|
|
313
313
|
barSet() {
|
|
314
|
-
return this.activeSeriesWithStackRatios.filter((
|
|
315
|
-
this.checkAutoScaleError(
|
|
316
|
-
const
|
|
317
|
-
ratios:
|
|
318
|
-
valueMin:
|
|
314
|
+
return this.activeSeriesWithStackRatios.filter((a) => a.type === "bar").map((a, s) => {
|
|
315
|
+
this.checkAutoScaleError(a);
|
|
316
|
+
const c = Math.min(...a.absoluteValues.filter((d) => ![null, void 0].includes(d))), f = Math.max(...a.absoluteValues.filter((d) => ![null, void 0].includes(d))), e = {
|
|
317
|
+
ratios: a.absoluteValues.filter((d) => ![null, void 0].includes(d)).map((d) => (d - c) / (f - c)),
|
|
318
|
+
valueMin: c,
|
|
319
319
|
valueMax: f < 0 ? 0 : f
|
|
320
|
-
},
|
|
321
|
-
max:
|
|
322
|
-
min:
|
|
323
|
-
},
|
|
324
|
-
const W = this.mutableConfig.useIndividualScale ? (
|
|
320
|
+
}, x = {
|
|
321
|
+
max: a.scaleMax || Math.max(...a.absoluteValues) || 1,
|
|
322
|
+
min: a.scaleMin || Math.min(...a.absoluteValues.filter((d) => ![void 0, null].includes(d))) > 0 ? 0 : Math.min(...a.absoluteValues.filter((d) => ![null, void 0].includes(d)))
|
|
323
|
+
}, _ = a.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = 1.0000001, m = this.calculateNiceScaleWithExactExtremes(x.min, x.max === x.min ? x.max * A : x.max, _), L = this.calculateNiceScaleWithExactExtremes(e.valueMin, e.valueMax === e.valueMin ? e.valueMax * A : e.valueMax, _), z = m.min >= 0 ? 0 : Math.abs(m.min), k = 0, G = m.max + z, v = L.max + Math.abs(k), b = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - a.cumulatedStackRatio) : 0, t = this.mutableConfig.isStacked ? this.drawingArea.height * a.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, h = this.drawingArea.bottom - b - t * z / G, n = this.drawingArea.bottom - b - t * k / v, g = this.absoluteDataset.filter((d) => d.type === "bar").filter((d) => !this.segregatedSeries.includes(d.id)).length, R = a.series.map((d, F) => {
|
|
324
|
+
const W = this.mutableConfig.useIndividualScale ? (a.absoluteValues[F] + z) / G : this.ratioToMax(d), E = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * F : this.drawingArea.left + this.slot.bar * s + this.slot.bar * F * g - this.barSlot / 2 - s * this.barPeriodGap;
|
|
325
325
|
return {
|
|
326
|
-
yOffset: this.checkNaN(
|
|
327
|
-
individualHeight: this.checkNaN(
|
|
326
|
+
yOffset: this.checkNaN(b),
|
|
327
|
+
individualHeight: this.checkNaN(t),
|
|
328
328
|
x: this.checkNaN(E),
|
|
329
|
-
y: this.drawingArea.bottom -
|
|
330
|
-
value:
|
|
331
|
-
zeroPosition: this.checkNaN(
|
|
329
|
+
y: this.drawingArea.bottom - b - t * W,
|
|
330
|
+
value: a.absoluteValues[F],
|
|
331
|
+
zeroPosition: this.checkNaN(h),
|
|
332
332
|
individualMax: this.checkNaN(G),
|
|
333
|
-
comment:
|
|
333
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
334
334
|
};
|
|
335
|
-
}), H =
|
|
336
|
-
const W = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries *
|
|
335
|
+
}), H = a.absoluteValues.map((d) => L.min >= 0 ? (d - Math.abs(L.min)) / (L.max - Math.abs(L.min)) : (d + Math.abs(L.min)) / (L.max + Math.abs(L.min))), D = a.series.map((d, F) => {
|
|
336
|
+
const W = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * F : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar * s + this.slot.bar * F * this.absoluteDataset.filter((E) => E.type === "bar").filter((E) => !this.segregatedSeries.includes(E.id)).length;
|
|
337
337
|
return {
|
|
338
|
-
yOffset: this.checkNaN(
|
|
339
|
-
individualHeight: this.checkNaN(
|
|
338
|
+
yOffset: this.checkNaN(b),
|
|
339
|
+
individualHeight: this.checkNaN(t),
|
|
340
340
|
x: this.checkNaN(W),
|
|
341
|
-
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(
|
|
342
|
-
value:
|
|
343
|
-
zeroPosition: this.checkNaN(
|
|
341
|
+
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(b) - (this.checkNaN(t) * H[F] || 0)),
|
|
342
|
+
value: a.absoluteValues[F],
|
|
343
|
+
zeroPosition: this.checkNaN(h),
|
|
344
344
|
individualMax: this.checkNaN(G),
|
|
345
|
-
comment:
|
|
345
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
346
346
|
};
|
|
347
|
-
}),
|
|
348
|
-
y: d >= 0 ?
|
|
349
|
-
value: d
|
|
350
|
-
|
|
351
|
-
|
|
347
|
+
}), y = m.ticks.map((d) => ({
|
|
348
|
+
y: d >= 0 ? h - t * (d / G) : h + t * Math.abs(d) / G,
|
|
349
|
+
value: d,
|
|
350
|
+
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
351
|
+
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
352
|
+
datapoint: a
|
|
353
|
+
})), w = L.ticks.map((d) => {
|
|
354
|
+
const F = (d - L.min) / (L.max - L.min);
|
|
352
355
|
return {
|
|
353
|
-
y: d >= 0 ? n -
|
|
354
|
-
value: d
|
|
356
|
+
y: d >= 0 ? n - t * F : n + t * F,
|
|
357
|
+
value: d,
|
|
358
|
+
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
359
|
+
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
360
|
+
datapoint: a
|
|
355
361
|
};
|
|
356
362
|
});
|
|
357
363
|
return {
|
|
358
|
-
...
|
|
359
|
-
yOffset:
|
|
360
|
-
autoScaleYLabels:
|
|
361
|
-
individualHeight:
|
|
362
|
-
scaleYLabels:
|
|
363
|
-
individualScale:
|
|
364
|
-
individualMax:
|
|
365
|
-
zeroPosition:
|
|
366
|
-
plots:
|
|
364
|
+
...a,
|
|
365
|
+
yOffset: b,
|
|
366
|
+
autoScaleYLabels: w,
|
|
367
|
+
individualHeight: t,
|
|
368
|
+
scaleYLabels: a.autoScaling ? w : y,
|
|
369
|
+
individualScale: a.autoScaling ? L : m,
|
|
370
|
+
individualMax: a.autoScaling ? v : G,
|
|
371
|
+
zeroPosition: a.autoScaling ? n : h,
|
|
372
|
+
plots: a.autoScaling ? D : R
|
|
367
373
|
};
|
|
368
374
|
});
|
|
369
375
|
},
|
|
@@ -371,124 +377,136 @@ const Ye = J(), Xe = {
|
|
|
371
377
|
return this.absoluteDataset.length;
|
|
372
378
|
},
|
|
373
379
|
activeSeriesWithStackRatios() {
|
|
374
|
-
return this.assignStackRatios(this.absoluteDataset.filter((
|
|
380
|
+
return this.assignStackRatios(this.absoluteDataset.filter((a) => !this.segregatedSeries.includes(a.id)));
|
|
375
381
|
},
|
|
376
382
|
lineSet() {
|
|
377
|
-
return this.activeSeriesWithStackRatios.filter((
|
|
378
|
-
this.checkAutoScaleError(
|
|
379
|
-
const s = Math.min(...
|
|
380
|
-
ratios:
|
|
383
|
+
return this.activeSeriesWithStackRatios.filter((a) => a.type === "line").map((a) => {
|
|
384
|
+
this.checkAutoScaleError(a);
|
|
385
|
+
const s = Math.min(...a.absoluteValues.filter((d) => ![void 0, null].includes(d))), c = Math.max(...a.absoluteValues.filter((d) => ![void 0, null].includes(d))) || 1, i = {
|
|
386
|
+
ratios: a.absoluteValues.filter((d) => ![null, void 0].includes(d)).map((d) => (d - s) / (c - s)),
|
|
381
387
|
valueMin: s,
|
|
382
|
-
valueMax:
|
|
388
|
+
valueMax: c
|
|
383
389
|
}, e = {
|
|
384
|
-
max:
|
|
385
|
-
min:
|
|
386
|
-
},
|
|
387
|
-
const W = this.mutableConfig.useIndividualScale ? (
|
|
390
|
+
max: a.scaleMax || Math.max(...a.absoluteValues) || 1,
|
|
391
|
+
min: a.scaleMin || (Math.min(...a.absoluteValues) > 0 ? 0 : Math.min(...a.absoluteValues))
|
|
392
|
+
}, x = a.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, A = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * _ : e.max, x), m = this.calculateNiceScaleWithExactExtremes(i.valueMin, i.valueMax === i.valueMin ? i.valueMax * _ : i.valueMax, x), L = A.min >= 0 ? 0 : Math.abs(A.min), z = 0, k = A.max + Math.abs(L), G = m.max + Math.abs(z), v = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - a.cumulatedStackRatio) : 0, b = this.mutableConfig.isStacked ? this.drawingArea.height * a.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, t = this.drawingArea.bottom - v - b * L / k, h = this.drawingArea.bottom - v - b * z / G, n = a.series.map((d, F) => {
|
|
393
|
+
const W = this.mutableConfig.useIndividualScale ? (a.absoluteValues[F] + Math.abs(L)) / k : this.ratioToMax(d);
|
|
388
394
|
return {
|
|
389
|
-
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line *
|
|
390
|
-
y: this.checkNaN(this.drawingArea.bottom - v -
|
|
391
|
-
value:
|
|
392
|
-
comment:
|
|
395
|
+
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * F),
|
|
396
|
+
y: this.checkNaN(this.drawingArea.bottom - v - b * W),
|
|
397
|
+
value: a.absoluteValues[F],
|
|
398
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
393
399
|
};
|
|
394
|
-
}), g =
|
|
395
|
-
if (![void 0, null].includes(
|
|
400
|
+
}), g = a.absoluteValues.map((d) => m.min >= 0 ? (d - Math.abs(m.min)) / (m.max - Math.abs(m.min)) : (d + Math.abs(m.min)) / (m.max + Math.abs(m.min))), R = a.series.map((d, F) => {
|
|
401
|
+
if (![void 0, null].includes(a.absoluteValues[F]))
|
|
396
402
|
return {
|
|
397
|
-
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line *
|
|
398
|
-
y: this.checkNaN(this.drawingArea.bottom - v - (
|
|
399
|
-
value:
|
|
400
|
-
comment:
|
|
403
|
+
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * F),
|
|
404
|
+
y: this.checkNaN(this.drawingArea.bottom - v - (b * g[F] || 0)),
|
|
405
|
+
value: a.absoluteValues[F],
|
|
406
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
401
407
|
};
|
|
402
|
-
}), H = this.createSmoothPath(n), D = this.createSmoothPath(R),
|
|
403
|
-
y: d >= 0 ?
|
|
404
|
-
value: d
|
|
405
|
-
|
|
406
|
-
|
|
408
|
+
}), H = this.createSmoothPath(n), D = this.createSmoothPath(R), y = A.ticks.map((d) => ({
|
|
409
|
+
y: d >= 0 ? t - b * (d / k) : t + b * Math.abs(d) / k,
|
|
410
|
+
value: d,
|
|
411
|
+
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
412
|
+
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
413
|
+
datapoint: a
|
|
414
|
+
})), w = m.ticks.map((d) => {
|
|
415
|
+
const F = (d - m.min) / (m.max - m.min);
|
|
407
416
|
return {
|
|
408
|
-
y: d >= 0 ?
|
|
409
|
-
value: d
|
|
417
|
+
y: d >= 0 ? h - b * F : h + b * F,
|
|
418
|
+
value: d,
|
|
419
|
+
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
420
|
+
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
421
|
+
datapoint: a
|
|
410
422
|
};
|
|
411
423
|
});
|
|
412
424
|
return {
|
|
413
|
-
...
|
|
425
|
+
...a,
|
|
414
426
|
yOffset: v,
|
|
415
|
-
autoScaleYLabels:
|
|
416
|
-
individualHeight:
|
|
417
|
-
scaleYLabels:
|
|
418
|
-
individualScale:
|
|
419
|
-
individualMax:
|
|
420
|
-
zeroPosition:
|
|
421
|
-
curve:
|
|
422
|
-
plots:
|
|
423
|
-
area:
|
|
427
|
+
autoScaleYLabels: w,
|
|
428
|
+
individualHeight: b,
|
|
429
|
+
scaleYLabels: a.autoScaling ? w : y,
|
|
430
|
+
individualScale: a.autoScaling ? m : A,
|
|
431
|
+
individualMax: a.autoScaling ? G : k,
|
|
432
|
+
zeroPosition: a.autoScaling ? h : t,
|
|
433
|
+
curve: a.autoScaling ? D : H,
|
|
434
|
+
plots: a.autoScaling ? R : n,
|
|
435
|
+
area: a.useArea ? this.mutableConfig.useIndividualScale ? this.createIndividualArea(a.autoScaling ? R : n, a.autoScaling ? h : t) : this.createArea(n) : ""
|
|
424
436
|
};
|
|
425
437
|
});
|
|
426
438
|
},
|
|
427
439
|
plotSet() {
|
|
428
|
-
return this.activeSeriesWithStackRatios.filter((
|
|
429
|
-
this.checkAutoScaleError(
|
|
430
|
-
const s = Math.min(...
|
|
431
|
-
ratios:
|
|
440
|
+
return this.activeSeriesWithStackRatios.filter((a) => a.type === "plot").map((a) => {
|
|
441
|
+
this.checkAutoScaleError(a);
|
|
442
|
+
const s = Math.min(...a.absoluteValues.filter((y) => ![null, void 0].includes(y))), c = Math.max(...a.absoluteValues.filter((y) => ![null, void 0].includes(y))) || 1, i = {
|
|
443
|
+
ratios: a.absoluteValues.filter((y) => ![null, void 0].includes(y)).map((y) => (y - s) / (c - s)),
|
|
432
444
|
valueMin: s,
|
|
433
|
-
valueMax:
|
|
445
|
+
valueMax: c
|
|
434
446
|
}, e = {
|
|
435
|
-
max:
|
|
436
|
-
min:
|
|
437
|
-
},
|
|
438
|
-
const d = this.mutableConfig.useIndividualScale ? (
|
|
447
|
+
max: a.scaleMax || Math.max(...a.absoluteValues) || 1,
|
|
448
|
+
min: a.scaleMin || Math.min(...a.absoluteValues) > 0 ? 0 : Math.min(...a.absoluteValues)
|
|
449
|
+
}, x = a.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, A = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * _ : e.max, x), m = this.calculateNiceScaleWithExactExtremes(i.valueMin, i.valueMax === i.valueMin ? i.valueMax * _ : i.valueMax, x), L = A.min >= 0 ? 0 : Math.abs(A.min), z = 0, k = A.max + L, G = m.max + Math.abs(z), v = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - a.cumulatedStackRatio) : 0, b = this.mutableConfig.isStacked ? this.drawingArea.height * a.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, t = this.drawingArea.bottom - v - b * L / k, h = this.drawingArea.bottom - v - b * z / G, n = a.series.map((y, w) => {
|
|
450
|
+
const d = this.mutableConfig.useIndividualScale ? (a.absoluteValues[w] + Math.abs(L)) / k : this.ratioToMax(y);
|
|
439
451
|
return {
|
|
440
|
-
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot *
|
|
441
|
-
y: this.checkNaN(this.drawingArea.bottom - v -
|
|
442
|
-
value:
|
|
443
|
-
comment:
|
|
452
|
+
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * w),
|
|
453
|
+
y: this.checkNaN(this.drawingArea.bottom - v - b * d),
|
|
454
|
+
value: a.absoluteValues[w],
|
|
455
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[w] || ""
|
|
444
456
|
};
|
|
445
|
-
}), g =
|
|
446
|
-
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot *
|
|
447
|
-
y: this.checkNaN(this.drawingArea.bottom - v - (
|
|
448
|
-
value:
|
|
449
|
-
comment:
|
|
450
|
-
})), H =
|
|
451
|
-
y:
|
|
452
|
-
value:
|
|
453
|
-
|
|
454
|
-
|
|
457
|
+
}), g = a.absoluteValues.map((y) => m.min >= 0 ? (y - Math.abs(m.min)) / (m.max - Math.abs(m.min)) : (y + Math.abs(m.min)) / (m.max + Math.abs(m.min))), R = a.series.map((y, w) => ({
|
|
458
|
+
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * w),
|
|
459
|
+
y: this.checkNaN(this.drawingArea.bottom - v - (b * g[w] || 0)),
|
|
460
|
+
value: a.absoluteValues[w],
|
|
461
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[w] || ""
|
|
462
|
+
})), H = A.ticks.map((y) => ({
|
|
463
|
+
y: y >= 0 ? t - b * (y / k) : t + b * Math.abs(y) / k,
|
|
464
|
+
value: y,
|
|
465
|
+
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
466
|
+
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
467
|
+
datapoint: a
|
|
468
|
+
})), D = m.ticks.map((y) => {
|
|
469
|
+
const w = (y - m.min) / (m.max - m.min);
|
|
455
470
|
return {
|
|
456
|
-
y:
|
|
457
|
-
value:
|
|
471
|
+
y: y >= 0 ? h - b * w : h + b * w,
|
|
472
|
+
value: y,
|
|
473
|
+
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
474
|
+
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
475
|
+
datapoint: a
|
|
458
476
|
};
|
|
459
477
|
});
|
|
460
478
|
return {
|
|
461
|
-
...
|
|
479
|
+
...a,
|
|
462
480
|
yOffset: v,
|
|
463
481
|
autoScaleYLabels: D,
|
|
464
|
-
individualHeight:
|
|
465
|
-
scaleYLabels:
|
|
466
|
-
individualScale:
|
|
467
|
-
individualMax:
|
|
468
|
-
zeroPosition:
|
|
469
|
-
plots:
|
|
482
|
+
individualHeight: b,
|
|
483
|
+
scaleYLabels: a.autoScaling ? D : H,
|
|
484
|
+
individualScale: a.autoScaling ? m : A,
|
|
485
|
+
individualMax: a.autoScaling ? G : k,
|
|
486
|
+
zeroPosition: a.autoScaling ? h : t,
|
|
487
|
+
plots: a.autoScaling ? R : n
|
|
470
488
|
};
|
|
471
489
|
});
|
|
472
490
|
},
|
|
473
491
|
drawingArea() {
|
|
474
|
-
const
|
|
492
|
+
const a = this.mutableConfig.useIndividualScale && this.FINAL_CONFIG.chart.grid.labels.show ? this.absoluteDataset.filter((s) => !this.segregatedSeries.includes(s.id)).length * (this.mutableConfig.isStacked ? 0 : this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth) : 0;
|
|
475
493
|
return {
|
|
476
494
|
top: this.FINAL_CONFIG.chart.padding.top,
|
|
477
495
|
right: this.width - this.FINAL_CONFIG.chart.padding.right,
|
|
478
496
|
bottom: this.height - this.FINAL_CONFIG.chart.padding.bottom,
|
|
479
|
-
left: this.FINAL_CONFIG.chart.padding.left +
|
|
497
|
+
left: this.FINAL_CONFIG.chart.padding.left + a,
|
|
480
498
|
height: this.height - (this.FINAL_CONFIG.chart.padding.top + this.FINAL_CONFIG.chart.padding.bottom),
|
|
481
|
-
width: this.width - (this.FINAL_CONFIG.chart.padding.right + this.FINAL_CONFIG.chart.padding.left +
|
|
499
|
+
width: this.width - (this.FINAL_CONFIG.chart.padding.right + this.FINAL_CONFIG.chart.padding.left + a)
|
|
482
500
|
};
|
|
483
501
|
},
|
|
484
502
|
max() {
|
|
485
|
-
return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax ? this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax : Math.max(...this.safeDataset.filter((
|
|
503
|
+
return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax ? this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax : Math.max(...this.safeDataset.filter((a) => !this.segregatedSeries.includes(a.id)).map((a) => Math.max(...a.series)));
|
|
486
504
|
},
|
|
487
505
|
min() {
|
|
488
506
|
if (this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin !== null)
|
|
489
507
|
return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin;
|
|
490
|
-
const
|
|
491
|
-
return
|
|
508
|
+
const a = Math.min(...this.safeDataset.filter((s) => !this.segregatedSeries.includes(s.id)).map((s) => Math.min(...s.series)));
|
|
509
|
+
return a > 0 ? 0 : a;
|
|
492
510
|
},
|
|
493
511
|
niceScale() {
|
|
494
512
|
return this.calculateNiceScaleWithExactExtremes(this.min, this.max < 0 ? 0 : this.max, this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps);
|
|
@@ -501,43 +519,60 @@ const Ye = J(), Xe = {
|
|
|
501
519
|
},
|
|
502
520
|
slot() {
|
|
503
521
|
return {
|
|
504
|
-
bar: this.drawingArea.width / this.maxSeries / this.safeDataset.filter((
|
|
522
|
+
bar: this.drawingArea.width / this.maxSeries / this.safeDataset.filter((a) => a.type === "bar").filter((a) => !this.segregatedSeries.includes(a.id)).length,
|
|
505
523
|
plot: this.drawingArea.width / this.maxSeries,
|
|
506
524
|
line: this.drawingArea.width / this.maxSeries
|
|
507
525
|
};
|
|
508
526
|
},
|
|
509
527
|
barSlot() {
|
|
510
|
-
const
|
|
511
|
-
return this.drawingArea.width / this.maxSeries /
|
|
528
|
+
const a = this.safeDataset.filter((s) => s.type === "bar").filter((s) => !this.segregatedSeries.includes(s.id)).length;
|
|
529
|
+
return this.drawingArea.width / this.maxSeries / a - this.barPeriodGap * a;
|
|
512
530
|
},
|
|
513
531
|
barPeriodGap() {
|
|
514
532
|
return this.slot.line * this.FINAL_CONFIG.bar.periodGap;
|
|
515
533
|
},
|
|
516
534
|
maxSlot() {
|
|
517
|
-
return Math.max(...Object.values(this.slot).filter((
|
|
535
|
+
return Math.max(...Object.values(this.slot).filter((a) => a !== 1 / 0));
|
|
518
536
|
},
|
|
519
537
|
table() {
|
|
520
538
|
if (this.safeDataset.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
521
|
-
const
|
|
522
|
-
label:
|
|
523
|
-
color:
|
|
524
|
-
type:
|
|
539
|
+
const a = this.relativeDataset.map((c) => ({
|
|
540
|
+
label: c.name,
|
|
541
|
+
color: c.color,
|
|
542
|
+
type: c.type
|
|
525
543
|
})), s = [];
|
|
526
|
-
return this.timeLabels.forEach((
|
|
527
|
-
const
|
|
544
|
+
return this.timeLabels.forEach((c, f) => {
|
|
545
|
+
const i = [c];
|
|
528
546
|
this.relativeDataset.forEach((e) => {
|
|
529
|
-
|
|
530
|
-
}), s.push(
|
|
531
|
-
}), { head:
|
|
547
|
+
i.push(this.canShowValue(e.absoluteValues[f]) ? Number(e.absoluteValues[f].toFixed(this.FINAL_CONFIG.table.rounding)) : "");
|
|
548
|
+
}), s.push(i);
|
|
549
|
+
}), { head: a, body: s };
|
|
532
550
|
},
|
|
533
551
|
dataTable() {
|
|
534
|
-
const
|
|
535
|
-
let s = [];
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
552
|
+
const a = this.FINAL_CONFIG.table.showSum;
|
|
553
|
+
let s = [""].concat(this.relativeDataset.map((e) => e.name));
|
|
554
|
+
a && (s = s.concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'));
|
|
555
|
+
let c = [];
|
|
556
|
+
for (let e = 0; e < this.maxSeries; e += 1) {
|
|
557
|
+
const x = this.relativeDataset.map((_) => _.absoluteValues[e] ?? 0).reduce((_, A) => _ + A, 0);
|
|
558
|
+
c.push(
|
|
559
|
+
[
|
|
560
|
+
this.timeLabels[e] ?? "-"
|
|
561
|
+
].concat(this.relativeDataset.map(
|
|
562
|
+
(_) => this.applyDataLabel(
|
|
563
|
+
_.type === "line" ? this.FINAL_CONFIG.line.labels.formatter : _.type === "bar" ? this.FINAL_CONFIG.bar.labels.formatter : this.FINAL_CONFIG.plot.labels.formatter,
|
|
564
|
+
_.absoluteValues[e] ?? 0,
|
|
565
|
+
this.dataLabel({
|
|
566
|
+
p: _.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
567
|
+
v: _.absoluteValues[e] ?? 0,
|
|
568
|
+
s: _.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
569
|
+
r: this.FINAL_CONFIG.table.rounding
|
|
570
|
+
})
|
|
571
|
+
)
|
|
572
|
+
)).concat(a ? (x ?? 0).toFixed(this.FINAL_CONFIG.table.rounding) : [])
|
|
573
|
+
);
|
|
539
574
|
}
|
|
540
|
-
const
|
|
575
|
+
const f = {
|
|
541
576
|
th: {
|
|
542
577
|
backgroundColor: this.FINAL_CONFIG.table.th.backgroundColor,
|
|
543
578
|
color: this.FINAL_CONFIG.table.th.color,
|
|
@@ -549,8 +584,8 @@ const Ye = J(), Xe = {
|
|
|
549
584
|
outline: this.FINAL_CONFIG.table.td.outline
|
|
550
585
|
},
|
|
551
586
|
breakpoint: this.FINAL_CONFIG.table.responsiveBreakpoint
|
|
552
|
-
},
|
|
553
|
-
return { head:
|
|
587
|
+
}, i = [this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map((e) => e.name)).concat(this.FINAL_CONFIG.table.columnNames.total);
|
|
588
|
+
return { head: s, body: c, config: f, colNames: i };
|
|
554
589
|
},
|
|
555
590
|
dataTooltipSlot() {
|
|
556
591
|
return {
|
|
@@ -564,18 +599,20 @@ const Ye = J(), Xe = {
|
|
|
564
599
|
};
|
|
565
600
|
},
|
|
566
601
|
selectedSeries() {
|
|
567
|
-
return this.relativeDataset.map((
|
|
568
|
-
shape:
|
|
569
|
-
name:
|
|
570
|
-
color:
|
|
571
|
-
type:
|
|
572
|
-
value:
|
|
573
|
-
comments:
|
|
602
|
+
return this.relativeDataset.map((a) => ({
|
|
603
|
+
shape: a.shape || null,
|
|
604
|
+
name: a.name,
|
|
605
|
+
color: a.color,
|
|
606
|
+
type: a.type,
|
|
607
|
+
value: a.absoluteValues.find((s, c) => c === this.selectedSerieIndex),
|
|
608
|
+
comments: a.comments || [],
|
|
609
|
+
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
610
|
+
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix
|
|
574
611
|
}));
|
|
575
612
|
},
|
|
576
613
|
tooltipContent() {
|
|
577
|
-
let
|
|
578
|
-
const
|
|
614
|
+
let a = "", s = this.selectedSeries.map((i) => i.value).filter((i) => this.isSafeValue(i) && i !== null).reduce((i, e) => Math.abs(i) + Math.abs(e), 0);
|
|
615
|
+
const c = this.timeLabels[this.selectedSerieIndex], f = this.FINAL_CONFIG.chart.tooltip.customFormat;
|
|
579
616
|
return this.isFunction(f) && this.functionReturnsString(() => f({
|
|
580
617
|
seriesIndex: this.selectedSerieIndex,
|
|
581
618
|
datapoint: this.selectedSeries,
|
|
@@ -592,63 +629,63 @@ const Ye = J(), Xe = {
|
|
|
592
629
|
lines: this.lineSet,
|
|
593
630
|
plots: this.plotSet,
|
|
594
631
|
config: this.FINAL_CONFIG
|
|
595
|
-
}) : (
|
|
596
|
-
if (this.isSafeValue(
|
|
597
|
-
let e = "",
|
|
598
|
-
switch (this.icons[
|
|
632
|
+
}) : (c && (a += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${c}</div>`), this.selectedSeries.forEach((i) => {
|
|
633
|
+
if (this.isSafeValue(i.value)) {
|
|
634
|
+
let e = "", x = "";
|
|
635
|
+
switch (this.icons[i.type]) {
|
|
599
636
|
case "bar":
|
|
600
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" rx="1" stroke="none" height="12" width="12" fill="${
|
|
637
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" rx="1" stroke="none" height="12" width="12" fill="${i.color}" /></svg>`;
|
|
601
638
|
break;
|
|
602
639
|
case "line":
|
|
603
|
-
!
|
|
640
|
+
!i.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(i.shape) ? x = `<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${i.color}" />` : i.shape === "triangle" ? x = `<path d="${P({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${i.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />` : i.shape === "square" ? x = `<path d="${P({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${i.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />` : i.shape === "diamond" ? x = `<path d="${P({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${i.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />` : i.shape === "pentagon" ? x = `<path d="${P({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${i.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />` : i.shape === "hexagon" ? x = `<path d="${P({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${i.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />` : i.shape === "star" && (x = `<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${i.color}" points="${X({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), e = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="3" x="0" y="6" stroke="none" height="4" width="20" fill="${i.color}" />${x}</svg>`;
|
|
604
641
|
break;
|
|
605
642
|
case "plot":
|
|
606
|
-
if (!
|
|
607
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${
|
|
643
|
+
if (!i.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(i.shape)) {
|
|
644
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${i.color}" /></svg>`;
|
|
608
645
|
break;
|
|
609
646
|
}
|
|
610
|
-
if (
|
|
611
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${
|
|
647
|
+
if (i.shape === "star") {
|
|
648
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${i.color}" points="${X({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
|
|
612
649
|
break;
|
|
613
650
|
}
|
|
614
|
-
if (
|
|
615
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${P({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${
|
|
651
|
+
if (i.shape === "triangle") {
|
|
652
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${P({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${i.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
616
653
|
break;
|
|
617
654
|
}
|
|
618
|
-
if (
|
|
619
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${P({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${
|
|
655
|
+
if (i.shape === "square") {
|
|
656
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${P({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${i.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
620
657
|
break;
|
|
621
658
|
}
|
|
622
|
-
if (
|
|
623
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${P({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${
|
|
659
|
+
if (i.shape === "diamond") {
|
|
660
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${P({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${i.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
624
661
|
break;
|
|
625
662
|
}
|
|
626
|
-
if (
|
|
627
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${P({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${
|
|
663
|
+
if (i.shape === "pentagon") {
|
|
664
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${P({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${i.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
628
665
|
break;
|
|
629
666
|
}
|
|
630
|
-
if (
|
|
631
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${P({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${
|
|
667
|
+
if (i.shape === "hexagon") {
|
|
668
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${P({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${i.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
632
669
|
break;
|
|
633
670
|
}
|
|
634
671
|
}
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
672
|
+
a += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${e}</div> ${i.name}: <b>${this.FINAL_CONFIG.chart.tooltip.showValue ? this.applyDataLabel(
|
|
673
|
+
i.type === "line" ? this.FINAL_CONFIG.line.labels.formatter : i.type === "bar" ? this.FINAL_CONFIG.bar.labels.formatter : this.FINAL_CONFIG.plot.labels.formatter,
|
|
674
|
+
i.value,
|
|
638
675
|
this.dataLabel({
|
|
639
|
-
p:
|
|
640
|
-
v:
|
|
641
|
-
s:
|
|
676
|
+
p: i.prefix,
|
|
677
|
+
v: i.value,
|
|
678
|
+
s: i.suffix,
|
|
642
679
|
r: this.FINAL_CONFIG.chart.tooltip.roundingValue
|
|
643
680
|
}),
|
|
644
|
-
{ datapoint:
|
|
681
|
+
{ datapoint: i }
|
|
645
682
|
) : ""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage ? `(${Z({
|
|
646
|
-
v: this.checkNaN(Math.abs(
|
|
683
|
+
v: this.checkNaN(Math.abs(i.value) / s * 100),
|
|
647
684
|
s: "%",
|
|
648
685
|
r: this.FINAL_CONFIG.chart.tooltip.roundingPercentage
|
|
649
|
-
})})` : ""}</div>`, this.FINAL_CONFIG.chart.comments.showInTooltip &&
|
|
686
|
+
})})` : ""}</div>`, this.FINAL_CONFIG.chart.comments.showInTooltip && i.comments.length && i.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex] && (a += `<div class="vue-data-ui-tooltip-comment" style="background:${i.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${i.color}">${i.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex]}</div>`);
|
|
650
687
|
}
|
|
651
|
-
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${this.FINAL_CONFIG.chart.tooltip.color}">${
|
|
688
|
+
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${this.FINAL_CONFIG.chart.tooltip.color}">${a}</div>`);
|
|
652
689
|
},
|
|
653
690
|
svg() {
|
|
654
691
|
return {
|
|
@@ -657,9 +694,11 @@ const Ye = J(), Xe = {
|
|
|
657
694
|
};
|
|
658
695
|
},
|
|
659
696
|
yLabels() {
|
|
660
|
-
return this.niceScale.ticks.map((
|
|
661
|
-
y:
|
|
662
|
-
value:
|
|
697
|
+
return this.niceScale.ticks.map((a) => ({
|
|
698
|
+
y: a >= 0 ? this.zero - this.drawingArea.height * this.ratioToMax(a) : this.zero + this.drawingArea.height * this.ratioToMax(Math.abs(a)),
|
|
699
|
+
value: a,
|
|
700
|
+
prefix: this.FINAL_CONFIG.chart.labels.prefix,
|
|
701
|
+
suffix: this.FINAL_CONFIG.chart.labels.suffix
|
|
663
702
|
}));
|
|
664
703
|
},
|
|
665
704
|
zero() {
|
|
@@ -667,10 +706,10 @@ const Ye = J(), Xe = {
|
|
|
667
706
|
}
|
|
668
707
|
},
|
|
669
708
|
mounted() {
|
|
670
|
-
this.prepareChart(), document.addEventListener("mousemove", (
|
|
709
|
+
this.prepareChart(), document.addEventListener("mousemove", (a) => {
|
|
671
710
|
this.clientPosition = {
|
|
672
|
-
x:
|
|
673
|
-
y:
|
|
711
|
+
x: a.clientX,
|
|
712
|
+
y: a.clientY
|
|
674
713
|
};
|
|
675
714
|
});
|
|
676
715
|
},
|
|
@@ -680,22 +719,22 @@ const Ye = J(), Xe = {
|
|
|
680
719
|
applyDataLabel: re,
|
|
681
720
|
assignStackRatios: se,
|
|
682
721
|
calcLinearProgression: ne,
|
|
683
|
-
calculateNiceScaleWithExactExtremes:
|
|
684
|
-
checkNaN:
|
|
685
|
-
closestDecimal:
|
|
722
|
+
calculateNiceScaleWithExactExtremes: he,
|
|
723
|
+
checkNaN: ce,
|
|
724
|
+
closestDecimal: oe,
|
|
686
725
|
convertColorToHex: de,
|
|
687
726
|
convertConfigColors: ue,
|
|
688
727
|
convertCustomPalette: ge,
|
|
689
728
|
createCsvContent: fe,
|
|
690
|
-
createSmoothPath:
|
|
691
|
-
createTSpans:
|
|
729
|
+
createSmoothPath: Ne,
|
|
730
|
+
createTSpans: me,
|
|
692
731
|
dataLabel: Z,
|
|
693
732
|
downloadCsv: Ie,
|
|
694
|
-
error:
|
|
695
|
-
functionReturnsString:
|
|
696
|
-
hasDeepProperty:
|
|
733
|
+
error: xe,
|
|
734
|
+
functionReturnsString: be,
|
|
735
|
+
hasDeepProperty: Fe,
|
|
697
736
|
img: j,
|
|
698
|
-
isFunction:
|
|
737
|
+
isFunction: _e,
|
|
699
738
|
isSafeValue: ye,
|
|
700
739
|
objectIsEmpty: Ae,
|
|
701
740
|
pdf: Q,
|
|
@@ -703,15 +742,15 @@ const Ye = J(), Xe = {
|
|
|
703
742
|
shiftHue: Ce,
|
|
704
743
|
translateSize: Se,
|
|
705
744
|
treeShake: ke,
|
|
706
|
-
useMouse:
|
|
745
|
+
useMouse: pe,
|
|
707
746
|
useNestedProp: U,
|
|
708
747
|
prepareConfig() {
|
|
709
|
-
const
|
|
748
|
+
const a = we().vue_ui_xy;
|
|
710
749
|
if (!Object.keys(this.config || {}).length)
|
|
711
|
-
return
|
|
750
|
+
return a;
|
|
712
751
|
const s = this.useNestedProp({
|
|
713
752
|
userConfig: this.config,
|
|
714
|
-
defaultConfig:
|
|
753
|
+
defaultConfig: a
|
|
715
754
|
});
|
|
716
755
|
return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ? s.chart.highlightArea = this.config.chart.highlightArea : s.chart.highlightArea = [this.config.chart.highlightArea]), this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMin") ? s.chart.grid.labels.yAxis.scaleMin = this.config.chart.grid.labels.yAxis.scaleMin : s.chart.grid.labels.yAxis.scaleMin = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMax") ? s.chart.grid.labels.yAxis.scaleMax = this.config.chart.grid.labels.yAxis.scaleMax : s.chart.grid.labels.yAxis.scaleMax = null, s.theme ? {
|
|
717
756
|
...U({
|
|
@@ -725,17 +764,17 @@ const Ye = J(), Xe = {
|
|
|
725
764
|
if (this.objectIsEmpty(this.dataset) ? this.error({
|
|
726
765
|
componentName: "VueUiXy",
|
|
727
766
|
type: "dataset"
|
|
728
|
-
}) : this.dataset.forEach((
|
|
729
|
-
[null, void 0].includes(
|
|
767
|
+
}) : this.dataset.forEach((a, s) => {
|
|
768
|
+
[null, void 0].includes(a.name) && this.error({
|
|
730
769
|
componentName: "VueUiXy",
|
|
731
770
|
type: "datasetSerieAttribute",
|
|
732
771
|
property: "name (string)",
|
|
733
772
|
index: s
|
|
734
773
|
});
|
|
735
|
-
}), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((
|
|
736
|
-
|
|
774
|
+
}), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((a) => {
|
|
775
|
+
a.series.forEach((s, c) => {
|
|
737
776
|
this.isSafeValue(s) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
738
|
-
-----> The serie '${
|
|
777
|
+
-----> The serie '${a.name}' contains the value '${s}' at index ${c}.
|
|
739
778
|
'${s}' was converted to null to allow the chart to display.`);
|
|
740
779
|
});
|
|
741
780
|
}), this.mutableConfig = {
|
|
@@ -747,21 +786,21 @@ const Ye = J(), Xe = {
|
|
|
747
786
|
isStacked: this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,
|
|
748
787
|
useIndividualScale: this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale
|
|
749
788
|
}, this.FINAL_CONFIG.responsive) {
|
|
750
|
-
const s = this.$refs.chart.parentNode, { height:
|
|
751
|
-
let
|
|
752
|
-
this.FINAL_CONFIG.chart.title.show && (
|
|
753
|
-
let
|
|
754
|
-
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (
|
|
755
|
-
let
|
|
756
|
-
this.FINAL_CONFIG.chart.legend.show && (
|
|
757
|
-
for (const
|
|
758
|
-
this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (
|
|
789
|
+
const s = this.$refs.chart.parentNode, { height: c, width: f } = s.getBoundingClientRect();
|
|
790
|
+
let i = null, e = 0;
|
|
791
|
+
this.FINAL_CONFIG.chart.title.show && (i = this.$refs.chartTitle, e = i.getBoundingClientRect().height);
|
|
792
|
+
let x = null, _ = 0;
|
|
793
|
+
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (x = this.$refs.chartSlicer.$el, _ = x.getBoundingClientRect().height);
|
|
794
|
+
let A = null, m = 0;
|
|
795
|
+
this.FINAL_CONFIG.chart.legend.show && (A = this.$refs.chartLegend, m = A.getBoundingClientRect().height), this.height = c - e - m - _, this.width = f, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes(), new ResizeObserver((z) => {
|
|
796
|
+
for (const k of z)
|
|
797
|
+
this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (_ = this.$refs.chartSlicer.$el.getBoundingClientRect().height), this.$refs.chartLegend && (m = this.$refs.chartLegend.getBoundingClientRect().height), this.height = k.contentBoxSize[0].blockSize - e - m - _ - 24, this.width = k.contentBoxSize[0].inlineSize, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
|
|
759
798
|
}).observe(s);
|
|
760
799
|
} else
|
|
761
800
|
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;
|
|
762
801
|
},
|
|
763
|
-
selectMinimapIndex(
|
|
764
|
-
this.selectedMinimapIndex =
|
|
802
|
+
selectMinimapIndex(a) {
|
|
803
|
+
this.selectedMinimapIndex = a;
|
|
765
804
|
},
|
|
766
805
|
convertSizes() {
|
|
767
806
|
this.fontSizes.dataLabels = this.translateSize({
|
|
@@ -814,98 +853,98 @@ const Ye = J(), Xe = {
|
|
|
814
853
|
toggleTooltip() {
|
|
815
854
|
this.mutableConfig.showTooltip = !this.mutableConfig.showTooltip;
|
|
816
855
|
},
|
|
817
|
-
checkAutoScaleError(
|
|
818
|
-
|
|
856
|
+
checkAutoScaleError(a) {
|
|
857
|
+
a.autoScaling && (this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
|
|
819
858
|
},
|
|
820
|
-
createArea(
|
|
821
|
-
if (!
|
|
822
|
-
const s = { x:
|
|
823
|
-
return
|
|
824
|
-
f.push(`${
|
|
825
|
-
}), [s.x, s.y, ...f,
|
|
859
|
+
createArea(a) {
|
|
860
|
+
if (!a[0]) return [-10, -10, "", -10, -10];
|
|
861
|
+
const s = { x: a[0].x, y: this.zero }, c = { x: a.at(-1).x, y: this.zero }, f = [];
|
|
862
|
+
return a.forEach((i) => {
|
|
863
|
+
f.push(`${i.x},${i.y} `);
|
|
864
|
+
}), [s.x, s.y, ...f, c.x, c.y].toString();
|
|
826
865
|
},
|
|
827
|
-
createIndividualArea(
|
|
828
|
-
if (!
|
|
829
|
-
const
|
|
830
|
-
return
|
|
831
|
-
|
|
832
|
-
}), [
|
|
866
|
+
createIndividualArea(a, s) {
|
|
867
|
+
if (!a[0]) return [-10, -10, "", -10, -10];
|
|
868
|
+
const c = { x: a[0] ? a[0].x : Math.min(...a.filter((e) => !!e).map((e) => e.x)), y: s }, f = { x: a.at(-1) ? a.at(-1).x : Math.min(...a.filter((e) => !!e).map((e) => e.x)), y: s }, i = [];
|
|
869
|
+
return a.filter((e) => !!e).forEach((e) => {
|
|
870
|
+
i.push(`${e.x},${e.y} `);
|
|
871
|
+
}), [c.x, c.y, ...i, f.x, f.y].toString();
|
|
833
872
|
},
|
|
834
873
|
createStar: X,
|
|
835
874
|
createPolygonPath: P,
|
|
836
|
-
fillArray(
|
|
837
|
-
let
|
|
838
|
-
for (let f = 0; f < s.length && f <
|
|
839
|
-
|
|
840
|
-
return
|
|
875
|
+
fillArray(a, s) {
|
|
876
|
+
let c = Array(a).fill(0);
|
|
877
|
+
for (let f = 0; f < s.length && f < a; f += 1)
|
|
878
|
+
c[f] = s[f];
|
|
879
|
+
return c;
|
|
841
880
|
},
|
|
842
881
|
refreshSlicer() {
|
|
843
882
|
this.slicer = {
|
|
844
883
|
start: 0,
|
|
845
|
-
end: Math.max(...this.dataset.map((
|
|
884
|
+
end: Math.max(...this.dataset.map((a) => a.series.length))
|
|
846
885
|
}, this.slicerStep += 1;
|
|
847
886
|
},
|
|
848
|
-
calcRectHeight(
|
|
849
|
-
return
|
|
887
|
+
calcRectHeight(a) {
|
|
888
|
+
return a.value >= 0 ? this.checkNaN(this.zero - a.y <= 0 ? 1e-5 : this.zero - a.y) : this.checkNaN(a.y - this.zero <= 0 ? 1e-5 : a.y - this.zero);
|
|
850
889
|
},
|
|
851
|
-
calcIndividualHeight(
|
|
852
|
-
return
|
|
890
|
+
calcIndividualHeight(a) {
|
|
891
|
+
return a.value >= 0 ? this.checkNaN(a.zeroPosition - a.y <= 0 ? 1e-5 : a.zeroPosition - a.y) : this.checkNaN(a.y - a.zeroPosition <= 0 ? 1e-5 : a.zeroPosition - a.y);
|
|
853
892
|
},
|
|
854
893
|
calcRectWidth() {
|
|
855
894
|
return this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.slot.line - this.drawingArea.width / this.maxSeries * 0.1 : this.slot.bar;
|
|
856
895
|
},
|
|
857
|
-
calcRectX(
|
|
858
|
-
return this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ?
|
|
896
|
+
calcRectX(a) {
|
|
897
|
+
return this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? a.x + this.drawingArea.width / this.maxSeries * 0.05 : a.x + this.slot.bar / 2;
|
|
859
898
|
},
|
|
860
|
-
calcRectY(
|
|
861
|
-
return
|
|
899
|
+
calcRectY(a) {
|
|
900
|
+
return a.value >= 0 ? a.y : this.zero;
|
|
862
901
|
},
|
|
863
|
-
calcIndividualRectY(
|
|
864
|
-
return
|
|
902
|
+
calcIndividualRectY(a) {
|
|
903
|
+
return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(a.zeroPosition) ? 0 : a.zeroPosition;
|
|
865
904
|
},
|
|
866
|
-
canShowValue(
|
|
867
|
-
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(
|
|
905
|
+
canShowValue(a) {
|
|
906
|
+
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(a);
|
|
868
907
|
},
|
|
869
|
-
findClosestValue(
|
|
870
|
-
let
|
|
871
|
-
for (let
|
|
872
|
-
const e = Math.abs(
|
|
873
|
-
e < f && s[
|
|
908
|
+
findClosestValue(a, s) {
|
|
909
|
+
let c = s[0], f = Math.abs(a - s[0]);
|
|
910
|
+
for (let i = 1; i < s.length; i += 1) {
|
|
911
|
+
const e = Math.abs(a - s[i]);
|
|
912
|
+
e < f && s[i] < a && (c = s[i], f = e);
|
|
874
913
|
}
|
|
875
|
-
return
|
|
914
|
+
return c;
|
|
876
915
|
},
|
|
877
|
-
ratioToMax(
|
|
878
|
-
return
|
|
916
|
+
ratioToMax(a) {
|
|
917
|
+
return a / (this.canShowValue(this.absoluteMax) ? this.absoluteMax : 1);
|
|
879
918
|
},
|
|
880
|
-
selectX(
|
|
919
|
+
selectX(a) {
|
|
881
920
|
this.$emit(
|
|
882
921
|
"selectX",
|
|
883
922
|
{
|
|
884
923
|
dataset: this.relativeDataset.map((s) => ({
|
|
885
924
|
name: s.name,
|
|
886
|
-
value: [null, void 0, NaN].includes(s.absoluteValues[
|
|
925
|
+
value: [null, void 0, NaN].includes(s.absoluteValues[a]) ? null : s.absoluteValues[a],
|
|
887
926
|
color: s.color,
|
|
888
927
|
type: s.type
|
|
889
928
|
})),
|
|
890
|
-
index:
|
|
891
|
-
indexLabel: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[
|
|
929
|
+
index: a,
|
|
930
|
+
indexLabel: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[a]
|
|
892
931
|
}
|
|
893
932
|
);
|
|
894
933
|
},
|
|
895
934
|
getData() {
|
|
896
|
-
return this.absoluteDataset.map((
|
|
897
|
-
values:
|
|
898
|
-
color:
|
|
899
|
-
name:
|
|
900
|
-
type:
|
|
935
|
+
return this.absoluteDataset.map((a) => ({
|
|
936
|
+
values: a.absoluteValues,
|
|
937
|
+
color: a.color,
|
|
938
|
+
name: a.name,
|
|
939
|
+
type: a.type
|
|
901
940
|
}));
|
|
902
941
|
},
|
|
903
|
-
segregate(
|
|
904
|
-
if (this.segregatedSeries.includes(
|
|
905
|
-
this.segregatedSeries = this.segregatedSeries.filter((s) => s !==
|
|
942
|
+
segregate(a) {
|
|
943
|
+
if (this.segregatedSeries.includes(a.id))
|
|
944
|
+
this.segregatedSeries = this.segregatedSeries.filter((s) => s !== a.id);
|
|
906
945
|
else {
|
|
907
946
|
if (this.segregatedSeries.length + 1 === this.safeDataset.length) return;
|
|
908
|
-
this.segregatedSeries.push(
|
|
947
|
+
this.segregatedSeries.push(a.id);
|
|
909
948
|
}
|
|
910
949
|
this.$emit("selectLegend", this.relativeDataset.map((s) => ({
|
|
911
950
|
name: s.name,
|
|
@@ -914,11 +953,11 @@ const Ye = J(), Xe = {
|
|
|
914
953
|
type: s.type
|
|
915
954
|
}))), this.segregateStep += 1;
|
|
916
955
|
},
|
|
917
|
-
toggleTooltipVisibility(
|
|
918
|
-
this.isTooltip =
|
|
956
|
+
toggleTooltipVisibility(a, s = null) {
|
|
957
|
+
this.isTooltip = a, a ? this.selectedSerieIndex = s : this.selectedSerieIndex = null;
|
|
919
958
|
},
|
|
920
|
-
toggleFullscreen(
|
|
921
|
-
this.isFullscreen =
|
|
959
|
+
toggleFullscreen(a) {
|
|
960
|
+
this.isFullscreen = a, this.step += 1;
|
|
922
961
|
},
|
|
923
962
|
showSpinnerPdf() {
|
|
924
963
|
this.isPrinting = !0;
|
|
@@ -934,8 +973,8 @@ const Ye = J(), Xe = {
|
|
|
934
973
|
}, 100);
|
|
935
974
|
},
|
|
936
975
|
generateCsv() {
|
|
937
|
-
const
|
|
938
|
-
this.downloadCsv({ csvContent:
|
|
976
|
+
const a = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], s = ["", ...this.table.head.map((e) => e.label)], c = this.table.body, f = a.concat([s]).concat(c), i = this.createCsvContent(f);
|
|
977
|
+
this.downloadCsv({ csvContent: i, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
|
|
939
978
|
},
|
|
940
979
|
showSpinnerImage() {
|
|
941
980
|
this.isImaging = !0;
|
|
@@ -952,7 +991,7 @@ const Ye = J(), Xe = {
|
|
|
952
991
|
}, 100);
|
|
953
992
|
}
|
|
954
993
|
}
|
|
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"],
|
|
994
|
+
}, 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"], ht = ["id"], ct = ["stop-color"], ot = ["stop-color"], dt = ["stop-color"], ut = ["id"], gt = ["stop-color"], ft = ["stop-color"], Nt = ["id"], mt = ["stop-color"], It = ["stop-color"], xt = ["id"], bt = ["stop-color"], Ft = ["stop-color"], _t = ["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"], pt = { key: 2 }, zt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Mt = ["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%" } }, ha = { key: 3 }, ca = ["id"], oa = ["fill"], da = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ua = ["x", "y", "font-size", "fill"], ga = { key: 5 }, fa = ["x", "y", "font-size", "fill"], Na = ["x", "y", "font-size", "fill", "font-weight"], ma = { key: 6 }, Ia = ["x", "y", "font-size", "fill"], xa = ["x", "y"], ba = ["x", "y"], Fa = { key: 7 }, _a = ["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 }, pa = ["text-anchor", "font-size", "fill", "transform"], za = ["x", "y", "height", "width", "onMouseenter", "onClick"], Ma = { key: 10 }, Pa = ["x", "y"], Ta = ["cx", "cy", "r", "fill"], Va = {
|
|
956
995
|
key: 3,
|
|
957
996
|
class: "vue-data-ui-watermark"
|
|
958
997
|
}, Ra = ["onClick"], Da = {
|
|
@@ -972,22 +1011,22 @@ const Ye = J(), Xe = {
|
|
|
972
1011
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
973
1012
|
"data-html2canvas-ignore": ""
|
|
974
1013
|
}, Xa = ["innerHTML"];
|
|
975
|
-
function qa(
|
|
976
|
-
const
|
|
1014
|
+
function qa(a, s, c, f, i, e) {
|
|
1015
|
+
const x = T("Title"), _ = T("UserOptions"), A = T("Shape"), m = T("Skeleton"), L = T("Slicer"), z = T("Tooltip"), k = T("BaseIcon"), G = T("TableSparkline"), v = T("DataTable"), b = T("Accordion");
|
|
977
1016
|
return l(), r("div", {
|
|
978
|
-
id: `vue-ui-xy_${
|
|
979
|
-
class:
|
|
1017
|
+
id: `vue-ui-xy_${i.uniqueId}`,
|
|
1018
|
+
class: M(`vue-ui-xy ${i.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
980
1019
|
ref: "chart",
|
|
981
|
-
style:
|
|
1020
|
+
style: C(`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%" : ""}`)
|
|
982
1021
|
}, [
|
|
983
1022
|
e.FINAL_CONFIG.chart.title.show ? (l(), r("div", {
|
|
984
1023
|
key: 0,
|
|
985
1024
|
ref: "chartTitle",
|
|
986
1025
|
class: "vue-ui-xy-title",
|
|
987
|
-
style:
|
|
1026
|
+
style: C(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
988
1027
|
}, [
|
|
989
|
-
(l(), V(
|
|
990
|
-
key: `title_${
|
|
1028
|
+
(l(), V(x, {
|
|
1029
|
+
key: `title_${i.titleStep}`,
|
|
991
1030
|
config: {
|
|
992
1031
|
title: {
|
|
993
1032
|
cy: "xy-div-title",
|
|
@@ -999,27 +1038,27 @@ function qa(i, s, o, f, t, e) {
|
|
|
999
1038
|
}
|
|
1000
1039
|
}
|
|
1001
1040
|
}, null, 8, ["config"]))
|
|
1002
|
-
], 4)) :
|
|
1003
|
-
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset ? (l(), V(
|
|
1041
|
+
], 4)) : o("", !0),
|
|
1042
|
+
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset ? (l(), V(_, {
|
|
1004
1043
|
ref: "defails",
|
|
1005
|
-
key: `user_options_${
|
|
1044
|
+
key: `user_options_${i.step}`,
|
|
1006
1045
|
backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1007
1046
|
color: e.FINAL_CONFIG.chart.color,
|
|
1008
|
-
isPrinting:
|
|
1009
|
-
isImaging:
|
|
1010
|
-
uid:
|
|
1047
|
+
isPrinting: i.isPrinting,
|
|
1048
|
+
isImaging: i.isImaging,
|
|
1049
|
+
uid: i.uniqueId,
|
|
1011
1050
|
hasTooltip: e.FINAL_CONFIG.chart.userOptions.buttons.tooltip && e.FINAL_CONFIG.chart.tooltip.show,
|
|
1012
1051
|
hasPdf: e.FINAL_CONFIG.chart.userOptions.buttons.pdf,
|
|
1013
1052
|
hasXls: e.FINAL_CONFIG.chart.userOptions.buttons.csv,
|
|
1014
1053
|
hasImg: e.FINAL_CONFIG.chart.userOptions.buttons.img,
|
|
1015
1054
|
hasLabel: e.FINAL_CONFIG.chart.userOptions.buttons.labels,
|
|
1016
1055
|
hasTable: e.FINAL_CONFIG.chart.userOptions.buttons.table,
|
|
1017
|
-
hasStack:
|
|
1056
|
+
hasStack: c.dataset.length > 1 && e.FINAL_CONFIG.chart.userOptions.buttons.stack,
|
|
1018
1057
|
hasFullscreen: e.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,
|
|
1019
|
-
isStacked:
|
|
1020
|
-
isFullscreen:
|
|
1021
|
-
chartElement:
|
|
1022
|
-
isTooltip:
|
|
1058
|
+
isStacked: i.mutableConfig.isStacked,
|
|
1059
|
+
isFullscreen: i.isFullscreen,
|
|
1060
|
+
chartElement: a.$refs.chart,
|
|
1061
|
+
isTooltip: i.mutableConfig.showTooltip,
|
|
1023
1062
|
titles: { ...e.FINAL_CONFIG.chart.userOptions.buttonTitles },
|
|
1024
1063
|
onToggleFullscreen: e.toggleFullscreen,
|
|
1025
1064
|
onGeneratePdf: e.generatePdf,
|
|
@@ -1030,70 +1069,70 @@ function qa(i, s, o, f, t, e) {
|
|
|
1030
1069
|
onToggleStack: e.toggleStack,
|
|
1031
1070
|
onToggleTooltip: e.toggleTooltip
|
|
1032
1071
|
}, De({ _: 2 }, [
|
|
1033
|
-
|
|
1072
|
+
a.$slots.optionTooltip ? {
|
|
1034
1073
|
name: "optionTooltip",
|
|
1035
|
-
fn:
|
|
1036
|
-
O(
|
|
1074
|
+
fn: p(() => [
|
|
1075
|
+
O(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
1037
1076
|
]),
|
|
1038
1077
|
key: "0"
|
|
1039
1078
|
} : void 0,
|
|
1040
|
-
|
|
1079
|
+
a.$slots.optionPdf ? {
|
|
1041
1080
|
name: "optionPdf",
|
|
1042
|
-
fn:
|
|
1043
|
-
O(
|
|
1081
|
+
fn: p(() => [
|
|
1082
|
+
O(a.$slots, "optionPdf", {}, void 0, !0)
|
|
1044
1083
|
]),
|
|
1045
1084
|
key: "1"
|
|
1046
1085
|
} : void 0,
|
|
1047
|
-
|
|
1086
|
+
a.$slots.optionCsv ? {
|
|
1048
1087
|
name: "optionCsv",
|
|
1049
|
-
fn:
|
|
1050
|
-
O(
|
|
1088
|
+
fn: p(() => [
|
|
1089
|
+
O(a.$slots, "optionCsv", {}, void 0, !0)
|
|
1051
1090
|
]),
|
|
1052
1091
|
key: "2"
|
|
1053
1092
|
} : void 0,
|
|
1054
|
-
|
|
1093
|
+
a.$slots.optionImg ? {
|
|
1055
1094
|
name: "optionImg",
|
|
1056
|
-
fn:
|
|
1057
|
-
O(
|
|
1095
|
+
fn: p(() => [
|
|
1096
|
+
O(a.$slots, "optionImg", {}, void 0, !0)
|
|
1058
1097
|
]),
|
|
1059
1098
|
key: "3"
|
|
1060
1099
|
} : void 0,
|
|
1061
|
-
|
|
1100
|
+
a.$slots.optionTable ? {
|
|
1062
1101
|
name: "optionTable",
|
|
1063
|
-
fn:
|
|
1064
|
-
O(
|
|
1102
|
+
fn: p(() => [
|
|
1103
|
+
O(a.$slots, "optionTable", {}, void 0, !0)
|
|
1065
1104
|
]),
|
|
1066
1105
|
key: "4"
|
|
1067
1106
|
} : void 0,
|
|
1068
|
-
|
|
1107
|
+
a.$slots.optionLabels ? {
|
|
1069
1108
|
name: "optionLabels",
|
|
1070
|
-
fn:
|
|
1071
|
-
O(
|
|
1109
|
+
fn: p(() => [
|
|
1110
|
+
O(a.$slots, "optionLabels", {}, void 0, !0)
|
|
1072
1111
|
]),
|
|
1073
1112
|
key: "5"
|
|
1074
1113
|
} : void 0,
|
|
1075
|
-
|
|
1114
|
+
a.$slots.optionStack ? {
|
|
1076
1115
|
name: "optionStack",
|
|
1077
|
-
fn:
|
|
1078
|
-
O(
|
|
1116
|
+
fn: p(() => [
|
|
1117
|
+
O(a.$slots, "optionStack", {}, void 0, !0)
|
|
1079
1118
|
]),
|
|
1080
1119
|
key: "6"
|
|
1081
1120
|
} : void 0,
|
|
1082
|
-
|
|
1121
|
+
a.$slots.optionFullscreen ? {
|
|
1083
1122
|
name: "optionFullscreen",
|
|
1084
|
-
fn:
|
|
1085
|
-
O(
|
|
1123
|
+
fn: p(({ toggleFullscreen: t, isFullscreen: h }) => [
|
|
1124
|
+
O(a.$slots, "optionFullscreen", B(Y({ toggleFullscreen: t, isFullscreen: h })), void 0, !0)
|
|
1086
1125
|
]),
|
|
1087
1126
|
key: "7"
|
|
1088
1127
|
} : void 0
|
|
1089
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "isTooltip", "titles", "onToggleFullscreen", "onGeneratePdf", "onGenerateCsv", "onGenerateImage", "onToggleTable", "onToggleLabels", "onToggleStack", "onToggleTooltip"])) :
|
|
1128
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "isTooltip", "titles", "onToggleFullscreen", "onGeneratePdf", "onGenerateCsv", "onGenerateImage", "onToggleTable", "onToggleLabels", "onToggleStack", "onToggleTooltip"])) : o("", !0),
|
|
1090
1129
|
e.isDataset ? (l(), r("svg", {
|
|
1091
1130
|
key: 2,
|
|
1092
1131
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1093
|
-
class:
|
|
1132
|
+
class: M([{ "vue-data-ui-fullscreen--on": i.isFullscreen, "vue-data-ui-fulscreen--off": !i.isFullscreen }, "vue-ui-xy-svg"]),
|
|
1094
1133
|
width: "100%",
|
|
1095
|
-
viewBox:
|
|
1096
|
-
style:
|
|
1134
|
+
viewBox: i.viewBox,
|
|
1135
|
+
style: C(`background:${e.FINAL_CONFIG.chart.backgroundColor}; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
1097
1136
|
}, [
|
|
1098
1137
|
e.maxSeries > 0 ? (l(), r("g", Ue, [
|
|
1099
1138
|
u("g", Je, [
|
|
@@ -1106,26 +1145,26 @@ function qa(i, s, o, f, t, e) {
|
|
|
1106
1145
|
y1: e.drawingArea.bottom,
|
|
1107
1146
|
y2: e.drawingArea.bottom,
|
|
1108
1147
|
"stroke-linecap": "round"
|
|
1109
|
-
}, null, 8, Qe)) :
|
|
1110
|
-
|
|
1111
|
-
|
|
1148
|
+
}, null, 8, Qe)) : o("", !0),
|
|
1149
|
+
i.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (l(!0), r(N, { key: 2 }, I(e.allScales, (t) => (l(), r("g", null, [
|
|
1150
|
+
t.id === i.selectedScale && t.yLabels.length ? (l(!0), r(N, { key: 0 }, I(t.yLabels, (h) => (l(), r("line", {
|
|
1112
1151
|
x1: e.drawingArea.left + e.xPadding,
|
|
1113
1152
|
x2: e.drawingArea.right - e.xPadding,
|
|
1114
|
-
y1: e.checkNaN(
|
|
1115
|
-
y2: e.checkNaN(
|
|
1116
|
-
stroke:
|
|
1153
|
+
y1: e.checkNaN(h.y),
|
|
1154
|
+
y2: e.checkNaN(h.y),
|
|
1155
|
+
stroke: t.color,
|
|
1117
1156
|
"stroke-width": 0.5,
|
|
1118
1157
|
"stroke-linecap": "round"
|
|
1119
|
-
}, null, 8, et))), 256)) :
|
|
1158
|
+
}, null, 8, et))), 256)) : t.yLabels.length ? (l(!0), r(N, { key: 1 }, I(t.yLabels, (h) => (l(), r("line", {
|
|
1120
1159
|
x1: e.drawingArea.left + e.xPadding,
|
|
1121
1160
|
x2: e.drawingArea.right - e.xPadding,
|
|
1122
|
-
y1: e.checkNaN(
|
|
1123
|
-
y2: e.checkNaN(
|
|
1161
|
+
y1: e.checkNaN(h.y),
|
|
1162
|
+
y2: e.checkNaN(h.y),
|
|
1124
1163
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1125
1164
|
"stroke-width": 0.5,
|
|
1126
1165
|
"stroke-linecap": "round"
|
|
1127
|
-
}, null, 8, tt))), 256)) :
|
|
1128
|
-
]))), 256)) :
|
|
1166
|
+
}, null, 8, tt))), 256)) : o("", !0)
|
|
1167
|
+
]))), 256)) : o("", !0) : (l(), r(N, { key: 1 }, [
|
|
1129
1168
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (l(), r("line", {
|
|
1130
1169
|
key: 0,
|
|
1131
1170
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
@@ -1135,76 +1174,76 @@ function qa(i, s, o, f, t, e) {
|
|
|
1135
1174
|
y1: e.drawingArea.top,
|
|
1136
1175
|
y2: e.drawingArea.bottom,
|
|
1137
1176
|
"stroke-linecap": "round"
|
|
1138
|
-
}, null, 8, Ke)) :
|
|
1177
|
+
}, null, 8, Ke)) : o("", !0),
|
|
1139
1178
|
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (l(), r("g", je, [
|
|
1140
|
-
(l(!0), r(
|
|
1179
|
+
(l(!0), r(N, null, I(e.yLabels, (t) => (l(), r("line", {
|
|
1141
1180
|
x1: e.drawingArea.left + e.xPadding,
|
|
1142
1181
|
x2: e.drawingArea.right - e.xPadding,
|
|
1143
|
-
y1: e.checkNaN(
|
|
1144
|
-
y2: e.checkNaN(
|
|
1182
|
+
y1: e.checkNaN(t.y),
|
|
1183
|
+
y2: e.checkNaN(t.y),
|
|
1145
1184
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1146
1185
|
"stroke-width": 0.5,
|
|
1147
1186
|
"stroke-linecap": "round"
|
|
1148
1187
|
}, null, 8, $e))), 256))
|
|
1149
|
-
])) :
|
|
1188
|
+
])) : o("", !0)
|
|
1150
1189
|
], 64)),
|
|
1151
1190
|
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (l(), r("g", at, [
|
|
1152
|
-
(l(!0), r(
|
|
1153
|
-
key: `grid_vertical_line_${
|
|
1154
|
-
x1: e.drawingArea.width / e.maxSeries *
|
|
1155
|
-
x2: e.drawingArea.width / e.maxSeries *
|
|
1191
|
+
(l(!0), r(N, null, I(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (t, h) => (l(), r("line", {
|
|
1192
|
+
key: `grid_vertical_line_${h}`,
|
|
1193
|
+
x1: e.drawingArea.width / e.maxSeries * h + e.drawingArea.left + e.xPadding,
|
|
1194
|
+
x2: e.drawingArea.width / e.maxSeries * h + e.drawingArea.left + e.xPadding,
|
|
1156
1195
|
y1: e.drawingArea.top,
|
|
1157
1196
|
y2: e.drawingArea.bottom,
|
|
1158
1197
|
"stroke-width": "0.5",
|
|
1159
1198
|
stroke: e.FINAL_CONFIG.chart.grid.stroke
|
|
1160
1199
|
}, null, 8, it))), 128))
|
|
1161
|
-
])) :
|
|
1200
|
+
])) : o("", !0)
|
|
1162
1201
|
]),
|
|
1163
|
-
(l(!0), r(
|
|
1164
|
-
key: `def_rect_${
|
|
1202
|
+
(l(!0), r(N, null, I(e.barSet, (t, h) => (l(), r("defs", {
|
|
1203
|
+
key: `def_rect_${h}`
|
|
1165
1204
|
}, [
|
|
1166
1205
|
u("linearGradient", {
|
|
1167
|
-
id: `rectGradient_pos_${
|
|
1206
|
+
id: `rectGradient_pos_${h}_${i.uniqueId}`,
|
|
1168
1207
|
x2: "0%",
|
|
1169
1208
|
y2: "100%"
|
|
1170
1209
|
}, [
|
|
1171
1210
|
u("stop", {
|
|
1172
1211
|
offset: "0%",
|
|
1173
|
-
"stop-color":
|
|
1212
|
+
"stop-color": t.color
|
|
1174
1213
|
}, null, 8, rt),
|
|
1175
1214
|
u("stop", {
|
|
1176
1215
|
offset: "62%",
|
|
1177
|
-
"stop-color": `${e.shiftHue(
|
|
1216
|
+
"stop-color": `${e.shiftHue(t.color, 0.02)}`
|
|
1178
1217
|
}, null, 8, st),
|
|
1179
1218
|
u("stop", {
|
|
1180
1219
|
offset: "100%",
|
|
1181
|
-
"stop-color": `${e.shiftHue(
|
|
1220
|
+
"stop-color": `${e.shiftHue(t.color, 0.05)}`
|
|
1182
1221
|
}, null, 8, nt)
|
|
1183
1222
|
], 8, lt),
|
|
1184
1223
|
u("linearGradient", {
|
|
1185
|
-
id: `rectGradient_neg_${
|
|
1224
|
+
id: `rectGradient_neg_${h}_${i.uniqueId}`,
|
|
1186
1225
|
x2: "0%",
|
|
1187
1226
|
y2: "100%"
|
|
1188
1227
|
}, [
|
|
1189
1228
|
u("stop", {
|
|
1190
1229
|
offset: "0%",
|
|
1191
|
-
"stop-color": `${e.shiftHue(
|
|
1192
|
-
}, null, 8,
|
|
1230
|
+
"stop-color": `${e.shiftHue(t.color, 0.05)}`
|
|
1231
|
+
}, null, 8, ct),
|
|
1193
1232
|
u("stop", {
|
|
1194
1233
|
offset: "38%",
|
|
1195
|
-
"stop-color": `${e.shiftHue(
|
|
1196
|
-
}, null, 8,
|
|
1234
|
+
"stop-color": `${e.shiftHue(t.color, 0.02)}`
|
|
1235
|
+
}, null, 8, ot),
|
|
1197
1236
|
u("stop", {
|
|
1198
1237
|
offset: "100%",
|
|
1199
|
-
"stop-color":
|
|
1238
|
+
"stop-color": t.color
|
|
1200
1239
|
}, null, 8, dt)
|
|
1201
|
-
], 8,
|
|
1240
|
+
], 8, ht)
|
|
1202
1241
|
]))), 128)),
|
|
1203
|
-
(l(!0), r(
|
|
1204
|
-
key: `def_plot_${
|
|
1242
|
+
(l(!0), r(N, null, I(e.plotSet, (t, h) => (l(), r("defs", {
|
|
1243
|
+
key: `def_plot_${h}`
|
|
1205
1244
|
}, [
|
|
1206
1245
|
u("radialGradient", {
|
|
1207
|
-
id: `plotGradient_${
|
|
1246
|
+
id: `plotGradient_${h}_${i.uniqueId}`,
|
|
1208
1247
|
cx: "50%",
|
|
1209
1248
|
cy: "50%",
|
|
1210
1249
|
r: "50%",
|
|
@@ -1213,19 +1252,19 @@ function qa(i, s, o, f, t, e) {
|
|
|
1213
1252
|
}, [
|
|
1214
1253
|
u("stop", {
|
|
1215
1254
|
offset: "0%",
|
|
1216
|
-
"stop-color": `${e.shiftHue(
|
|
1255
|
+
"stop-color": `${e.shiftHue(t.color, 0.05)}`
|
|
1217
1256
|
}, null, 8, gt),
|
|
1218
1257
|
u("stop", {
|
|
1219
1258
|
offset: "100%",
|
|
1220
|
-
"stop-color":
|
|
1259
|
+
"stop-color": t.color
|
|
1221
1260
|
}, null, 8, ft)
|
|
1222
1261
|
], 8, ut)
|
|
1223
1262
|
]))), 128)),
|
|
1224
|
-
(l(!0), r(
|
|
1225
|
-
key: `def_line_${
|
|
1263
|
+
(l(!0), r(N, null, I(e.lineSet, (t, h) => (l(), r("defs", {
|
|
1264
|
+
key: `def_line_${h}`
|
|
1226
1265
|
}, [
|
|
1227
1266
|
u("radialGradient", {
|
|
1228
|
-
id: `lineGradient_${
|
|
1267
|
+
id: `lineGradient_${h}_${i.uniqueId}`,
|
|
1229
1268
|
cx: "50%",
|
|
1230
1269
|
cy: "50%",
|
|
1231
1270
|
r: "50%",
|
|
@@ -1234,15 +1273,15 @@ function qa(i, s, o, f, t, e) {
|
|
|
1234
1273
|
}, [
|
|
1235
1274
|
u("stop", {
|
|
1236
1275
|
offset: "0%",
|
|
1237
|
-
"stop-color": `${e.shiftHue(
|
|
1238
|
-
}, null, 8,
|
|
1276
|
+
"stop-color": `${e.shiftHue(t.color, 0.05)}`
|
|
1277
|
+
}, null, 8, mt),
|
|
1239
1278
|
u("stop", {
|
|
1240
1279
|
offset: "100%",
|
|
1241
|
-
"stop-color":
|
|
1280
|
+
"stop-color": t.color
|
|
1242
1281
|
}, null, 8, It)
|
|
1243
|
-
], 8,
|
|
1282
|
+
], 8, Nt),
|
|
1244
1283
|
u("linearGradient", {
|
|
1245
|
-
id: `areaGradient_${
|
|
1284
|
+
id: `areaGradient_${h}_${i.uniqueId}`,
|
|
1246
1285
|
x1: "0%",
|
|
1247
1286
|
x2: "100%",
|
|
1248
1287
|
y1: "0%",
|
|
@@ -1250,87 +1289,87 @@ function qa(i, s, o, f, t, e) {
|
|
|
1250
1289
|
}, [
|
|
1251
1290
|
u("stop", {
|
|
1252
1291
|
offset: "0%",
|
|
1253
|
-
"stop-color": `${e.setOpacity(e.shiftHue(
|
|
1254
|
-
}, null, 8,
|
|
1292
|
+
"stop-color": `${e.setOpacity(e.shiftHue(t.color, 0.03), e.FINAL_CONFIG.line.area.opacity)}`
|
|
1293
|
+
}, null, 8, bt),
|
|
1255
1294
|
u("stop", {
|
|
1256
1295
|
offset: "100%",
|
|
1257
|
-
"stop-color": `${e.setOpacity(
|
|
1258
|
-
}, null, 8,
|
|
1259
|
-
], 8,
|
|
1296
|
+
"stop-color": `${e.setOpacity(t.color, e.FINAL_CONFIG.line.area.opacity)}`
|
|
1297
|
+
}, null, 8, Ft)
|
|
1298
|
+
], 8, xt)
|
|
1260
1299
|
]))), 128)),
|
|
1261
|
-
(l(!0), r(
|
|
1262
|
-
|
|
1300
|
+
(l(!0), r(N, null, I(e.highlightAreas, (t) => (l(), r("g", null, [
|
|
1301
|
+
t.show ? (l(), r(N, { key: 0 }, [
|
|
1263
1302
|
u("rect", {
|
|
1264
1303
|
style: { transition: "none" },
|
|
1265
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (
|
|
1304
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (t.from - i.slicer.start),
|
|
1266
1305
|
y: e.drawingArea.top,
|
|
1267
1306
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1268
|
-
width: e.drawingArea.width / e.maxSeries *
|
|
1269
|
-
fill: e.setOpacity(
|
|
1270
|
-
}, null, 8,
|
|
1271
|
-
|
|
1307
|
+
width: e.drawingArea.width / e.maxSeries * t.span < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries * t.span,
|
|
1308
|
+
fill: e.setOpacity(t.color, t.opacity)
|
|
1309
|
+
}, null, 8, _t),
|
|
1310
|
+
t.caption.text ? (l(), r("foreignObject", {
|
|
1272
1311
|
key: 0,
|
|
1273
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (
|
|
1274
|
-
y: e.drawingArea.top +
|
|
1312
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (t.from - i.slicer.start) - (t.caption.width === "auto" ? 0 : t.caption.width / 2 - e.drawingArea.width / e.maxSeries * t.span / 2),
|
|
1313
|
+
y: e.drawingArea.top + t.caption.offsetY,
|
|
1275
1314
|
style: { overflow: "visible" },
|
|
1276
1315
|
height: "1",
|
|
1277
|
-
width:
|
|
1316
|
+
width: t.caption.width === "auto" ? e.drawingArea.width / e.maxSeries * t.span : t.caption.width
|
|
1278
1317
|
}, [
|
|
1279
1318
|
u("div", {
|
|
1280
|
-
style:
|
|
1281
|
-
},
|
|
1282
|
-
], 8, yt)) :
|
|
1283
|
-
], 64)) :
|
|
1319
|
+
style: C(`padding:${t.caption.padding}px;text-align:${t.caption.textAlign};font-size:${t.caption.fontSize}px;color:${t.caption.color};font-weight:${t.caption.bold ? "bold" : "normal"}`)
|
|
1320
|
+
}, S(t.caption.text), 5)
|
|
1321
|
+
], 8, yt)) : o("", !0)
|
|
1322
|
+
], 64)) : o("", !0)
|
|
1284
1323
|
]))), 256)),
|
|
1285
1324
|
u("g", null, [
|
|
1286
|
-
(l(!0), r(
|
|
1287
|
-
key: `tooltip_trap_${
|
|
1325
|
+
(l(!0), r(N, null, I(e.maxSeries, (t, h) => (l(), r("g", {
|
|
1326
|
+
key: `tooltip_trap_${h}`
|
|
1288
1327
|
}, [
|
|
1289
1328
|
u("rect", {
|
|
1290
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
1329
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * h,
|
|
1291
1330
|
y: e.drawingArea.top,
|
|
1292
1331
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1293
1332
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1294
|
-
fill: [
|
|
1333
|
+
fill: [i.selectedMinimapIndex, i.selectedSerieIndex, i.selectedRowIndex].includes(h) ? e.setOpacity(e.FINAL_CONFIG.chart.highlighter.color, e.FINAL_CONFIG.chart.highlighter.opacity) : "transparent"
|
|
1295
1334
|
}, null, 8, At)
|
|
1296
1335
|
]))), 128))
|
|
1297
1336
|
]),
|
|
1298
|
-
e.barSet.length ? (l(!0), r(
|
|
1299
|
-
key: `serie_bar_${
|
|
1300
|
-
class:
|
|
1301
|
-
style:
|
|
1337
|
+
e.barSet.length ? (l(!0), r(N, { key: 0 }, I(e.barSet, (t, h) => (l(), r("g", {
|
|
1338
|
+
key: `serie_bar_${h}`,
|
|
1339
|
+
class: M(`serie_bar_${h}`),
|
|
1340
|
+
style: C(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1302
1341
|
}, [
|
|
1303
|
-
(l(!0), r(
|
|
1304
|
-
key: `bar_plot_${
|
|
1342
|
+
(l(!0), r(N, null, I(t.plots, (n, g) => (l(), r("g", {
|
|
1343
|
+
key: `bar_plot_${h}_${g}`
|
|
1305
1344
|
}, [
|
|
1306
1345
|
e.canShowValue(n.value) ? (l(), r("rect", {
|
|
1307
1346
|
key: 0,
|
|
1308
1347
|
x: e.calcRectX(n),
|
|
1309
|
-
y:
|
|
1310
|
-
height:
|
|
1311
|
-
width: e.calcRectWidth() - (
|
|
1348
|
+
y: i.mutableConfig.useIndividualScale ? e.calcIndividualRectY(n) : e.calcRectY(n),
|
|
1349
|
+
height: i.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(n)) : Math.abs(e.calcRectHeight(n)),
|
|
1350
|
+
width: e.calcRectWidth() - (i.mutableConfig.useIndividualScale && i.mutableConfig.isStacked ? 0 : e.barPeriodGap) < 0 ? 1e-5 : e.calcRectWidth() - (i.mutableConfig.useIndividualScale && i.mutableConfig.isStacked ? 0 : e.barPeriodGap),
|
|
1312
1351
|
rx: e.FINAL_CONFIG.bar.borderRadius,
|
|
1313
|
-
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${
|
|
1314
|
-
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ?
|
|
1352
|
+
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${h}_${i.uniqueId})` : `url(#rectGradient_neg_${h}_${i.uniqueId})` : t.color,
|
|
1353
|
+
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? t.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1315
1354
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1316
|
-
}, null, 8, Lt)) :
|
|
1355
|
+
}, null, 8, Lt)) : o("", !0),
|
|
1317
1356
|
n.comment && e.FINAL_CONFIG.chart.comments.show ? (l(), r("foreignObject", {
|
|
1318
1357
|
key: 1,
|
|
1319
1358
|
style: { overflow: "visible" },
|
|
1320
1359
|
height: "12",
|
|
1321
|
-
width: (e.calcRectWidth() - (
|
|
1360
|
+
width: (e.calcRectWidth() - (i.mutableConfig.useIndividualScale && i.mutableConfig.isStacked ? 0 : e.barPeriodGap) < 0 ? 1e-5 : e.calcRectWidth() - (i.mutableConfig.useIndividualScale && i.mutableConfig.isStacked ? 0 : e.barPeriodGap) / 2) + e.FINAL_CONFIG.chart.comments.width,
|
|
1322
1361
|
x: e.calcRectX(n) - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1323
1362
|
y: e.checkNaN(n.y) + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1324
1363
|
}, [
|
|
1325
|
-
O(
|
|
1326
|
-
plot: { ...n, color:
|
|
1364
|
+
O(a.$slots, "plot-comment", {
|
|
1365
|
+
plot: { ...n, color: t.color }
|
|
1327
1366
|
}, void 0, !0)
|
|
1328
|
-
], 8, Ct)) :
|
|
1367
|
+
], 8, Ct)) : o("", !0)
|
|
1329
1368
|
]))), 128)),
|
|
1330
|
-
Object.hasOwn(
|
|
1369
|
+
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (l(), r("g", St, [
|
|
1331
1370
|
u("defs", null, [
|
|
1332
1371
|
u("marker", {
|
|
1333
|
-
id: `bar_arrow_${
|
|
1372
|
+
id: `bar_arrow_${h}`,
|
|
1334
1373
|
markerWidth: 7,
|
|
1335
1374
|
markerHeight: 7,
|
|
1336
1375
|
refX: "0",
|
|
@@ -1339,36 +1378,36 @@ function qa(i, s, o, f, t, e) {
|
|
|
1339
1378
|
}, [
|
|
1340
1379
|
u("polygon", {
|
|
1341
1380
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1342
|
-
fill:
|
|
1381
|
+
fill: t.color
|
|
1343
1382
|
}, null, 8, wt)
|
|
1344
1383
|
], 8, kt)
|
|
1345
1384
|
]),
|
|
1346
|
-
|
|
1385
|
+
t.plots.length > 1 ? (l(), r("line", {
|
|
1347
1386
|
key: 0,
|
|
1348
|
-
x1: e.calcLinearProgression(
|
|
1349
|
-
x2: e.calcLinearProgression(
|
|
1350
|
-
y1: e.calcLinearProgression(
|
|
1351
|
-
y2: e.calcLinearProgression(
|
|
1387
|
+
x1: e.calcLinearProgression(t.plots).x1,
|
|
1388
|
+
x2: e.calcLinearProgression(t.plots).x2,
|
|
1389
|
+
y1: e.calcLinearProgression(t.plots).y1,
|
|
1390
|
+
y2: e.calcLinearProgression(t.plots).y2,
|
|
1352
1391
|
"stroke-width": 1,
|
|
1353
|
-
stroke:
|
|
1392
|
+
stroke: t.color,
|
|
1354
1393
|
"stroke-dasharray": 2,
|
|
1355
|
-
"marker-end": `url(#bar_arrow_${
|
|
1356
|
-
}, null, 8, Ot)) :
|
|
1357
|
-
|
|
1394
|
+
"marker-end": `url(#bar_arrow_${h})`
|
|
1395
|
+
}, null, 8, Ot)) : o("", !0),
|
|
1396
|
+
t.plots.length > 1 ? (l(), r("text", {
|
|
1358
1397
|
key: 1,
|
|
1359
1398
|
"text-anchor": "middle",
|
|
1360
|
-
x: e.calcLinearProgression(
|
|
1361
|
-
y: e.calcLinearProgression(
|
|
1362
|
-
"font-size":
|
|
1363
|
-
fill:
|
|
1364
|
-
},
|
|
1365
|
-
v: e.calcLinearProgression(
|
|
1399
|
+
x: e.calcLinearProgression(t.plots).x2,
|
|
1400
|
+
y: e.calcLinearProgression(t.plots).y2 - 6,
|
|
1401
|
+
"font-size": i.fontSizes.plotLabels,
|
|
1402
|
+
fill: t.color
|
|
1403
|
+
}, S(e.dataLabel({
|
|
1404
|
+
v: e.calcLinearProgression(t.plots).trend * 100,
|
|
1366
1405
|
s: "%",
|
|
1367
1406
|
r: 2
|
|
1368
|
-
})), 9, vt)) :
|
|
1369
|
-
])) :
|
|
1370
|
-
], 6))), 128)) :
|
|
1371
|
-
!
|
|
1407
|
+
})), 9, vt)) : o("", !0)
|
|
1408
|
+
])) : o("", !0)
|
|
1409
|
+
], 6))), 128)) : o("", !0),
|
|
1410
|
+
!i.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (l(), r("line", {
|
|
1372
1411
|
key: 1,
|
|
1373
1412
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1374
1413
|
"stroke-width": "1",
|
|
@@ -1377,11 +1416,11 @@ function qa(i, s, o, f, t, e) {
|
|
|
1377
1416
|
y1: e.checkNaN(e.zero),
|
|
1378
1417
|
y2: e.checkNaN(e.zero),
|
|
1379
1418
|
"stroke-linecap": "round"
|
|
1380
|
-
}, null, 8, Gt)) :
|
|
1381
|
-
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(
|
|
1419
|
+
}, null, 8, Gt)) : o("", !0),
|
|
1420
|
+
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(i.selectedSerieIndex) || i.selectedMinimapIndex !== null) ? (l(), r("g", pt, [
|
|
1382
1421
|
u("line", {
|
|
1383
|
-
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (
|
|
1384
|
-
x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (
|
|
1422
|
+
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (i.selectedSerieIndex || i.selectedMinimapIndex) + e.drawingArea.width / e.maxSeries / 2,
|
|
1423
|
+
x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (i.selectedSerieIndex || i.selectedMinimapIndex) + e.drawingArea.width / e.maxSeries / 2,
|
|
1385
1424
|
y1: e.drawingArea.top,
|
|
1386
1425
|
y2: e.drawingArea.bottom,
|
|
1387
1426
|
stroke: e.FINAL_CONFIG.chart.highlighter.color,
|
|
@@ -1389,8 +1428,8 @@ function qa(i, s, o, f, t, e) {
|
|
|
1389
1428
|
"stroke-dasharray": e.FINAL_CONFIG.chart.highlighter.lineDasharray,
|
|
1390
1429
|
"stroke-linecap": "round",
|
|
1391
1430
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
1392
|
-
}, null, 8,
|
|
1393
|
-
])) :
|
|
1431
|
+
}, null, 8, zt)
|
|
1432
|
+
])) : o("", !0),
|
|
1394
1433
|
u("g", null, [
|
|
1395
1434
|
u("rect", {
|
|
1396
1435
|
style: { transition: "none" },
|
|
@@ -1399,7 +1438,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
1399
1438
|
width: e.FINAL_CONFIG.chart.padding.left - 1 + e.xPadding,
|
|
1400
1439
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1401
1440
|
fill: e.FINAL_CONFIG.chart.backgroundColor
|
|
1402
|
-
}, null, 8,
|
|
1441
|
+
}, null, 8, Mt),
|
|
1403
1442
|
u("rect", {
|
|
1404
1443
|
style: { transition: "none" },
|
|
1405
1444
|
x: e.drawingArea.right + 1 - e.xPadding,
|
|
@@ -1422,105 +1461,106 @@ function qa(i, s, o, f, t, e) {
|
|
|
1422
1461
|
"stroke-linecap": e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,
|
|
1423
1462
|
"stroke-linejoin": e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,
|
|
1424
1463
|
"stroke-dasharray": e.FINAL_CONFIG.chart.grid.frame.strokeDasharray
|
|
1425
|
-
}, null, 8, Tt)) :
|
|
1464
|
+
}, null, 8, Tt)) : o("", !0),
|
|
1426
1465
|
e.FINAL_CONFIG.chart.grid.labels.show ? (l(), r("g", Vt, [
|
|
1427
|
-
|
|
1428
|
-
(l(!0), r(
|
|
1466
|
+
i.mutableConfig.useIndividualScale ? (l(), r(N, { key: 0 }, [
|
|
1467
|
+
(l(!0), r(N, null, I(e.allScales, (t) => (l(), r("g", null, [
|
|
1429
1468
|
u("line", {
|
|
1430
|
-
x1:
|
|
1431
|
-
x2:
|
|
1432
|
-
y1:
|
|
1433
|
-
y2:
|
|
1434
|
-
stroke:
|
|
1469
|
+
x1: t.x + e.xPadding,
|
|
1470
|
+
x2: t.x + e.xPadding,
|
|
1471
|
+
y1: i.mutableConfig.isStacked ? e.checkNaN(e.drawingArea.bottom - t.yOffset - t.individualHeight) : e.checkNaN(e.drawingArea.top),
|
|
1472
|
+
y2: i.mutableConfig.isStacked ? e.checkNaN(e.drawingArea.bottom - t.yOffset) : e.checkNaN(e.drawingArea.bottom),
|
|
1473
|
+
stroke: t.color,
|
|
1435
1474
|
"stroke-width": e.FINAL_CONFIG.chart.grid.stroke,
|
|
1436
1475
|
"stroke-linecap": "round",
|
|
1437
|
-
style:
|
|
1476
|
+
style: C(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1438
1477
|
}, null, 12, Rt)
|
|
1439
1478
|
]))), 256)),
|
|
1440
|
-
(l(!0), r(
|
|
1441
|
-
style:
|
|
1479
|
+
(l(!0), r(N, null, I(e.allScales, (t) => (l(), r("g", {
|
|
1480
|
+
style: C(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1442
1481
|
}, [
|
|
1443
1482
|
u("text", {
|
|
1444
|
-
fill:
|
|
1445
|
-
"font-size":
|
|
1483
|
+
fill: t.color,
|
|
1484
|
+
"font-size": i.fontSizes.dataLabels,
|
|
1446
1485
|
"text-anchor": "middle",
|
|
1447
|
-
transform: `translate(${
|
|
1448
|
-
},
|
|
1449
|
-
(l(!0), r(
|
|
1450
|
-
x1:
|
|
1451
|
-
x2:
|
|
1452
|
-
y1: e.checkNaN(
|
|
1453
|
-
y2: e.checkNaN(
|
|
1454
|
-
stroke:
|
|
1486
|
+
transform: `translate(${t.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + 5}, ${i.mutableConfig.isStacked ? e.drawingArea.bottom - t.yOffset - t.individualHeight / 2 : e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`
|
|
1487
|
+
}, S(t.name) + " " + S(t.scaleLabel ? `- ${t.scaleLabel}` : ""), 9, Dt),
|
|
1488
|
+
(l(!0), r(N, null, I(t.yLabels, (h, n) => (l(), r("line", {
|
|
1489
|
+
x1: t.x - 3 + e.xPadding,
|
|
1490
|
+
x2: t.x + e.xPadding,
|
|
1491
|
+
y1: e.checkNaN(h.y),
|
|
1492
|
+
y2: e.checkNaN(h.y),
|
|
1493
|
+
stroke: t.color,
|
|
1455
1494
|
"stroke-width": 1,
|
|
1456
1495
|
"stroke-linecap": "round"
|
|
1457
1496
|
}, null, 8, Ht))), 256)),
|
|
1458
|
-
(l(!0), r(
|
|
1459
|
-
x:
|
|
1460
|
-
y: e.checkNaN(
|
|
1461
|
-
"font-size":
|
|
1497
|
+
(l(!0), r(N, null, I(t.yLabels, (h, n) => (l(), r("text", {
|
|
1498
|
+
x: t.x - 5 + e.xPadding,
|
|
1499
|
+
y: e.checkNaN(h.y) + i.fontSizes.dataLabels / 3,
|
|
1500
|
+
"font-size": i.fontSizes.dataLabels,
|
|
1462
1501
|
"text-anchor": "end",
|
|
1463
|
-
fill:
|
|
1464
|
-
},
|
|
1502
|
+
fill: t.color
|
|
1503
|
+
}, S(e.applyDataLabel(
|
|
1465
1504
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1466
|
-
|
|
1505
|
+
h.value,
|
|
1467
1506
|
e.dataLabel({
|
|
1468
|
-
p:
|
|
1469
|
-
v:
|
|
1470
|
-
s:
|
|
1507
|
+
p: h.prefix,
|
|
1508
|
+
v: h.value,
|
|
1509
|
+
s: h.suffix,
|
|
1471
1510
|
r: 1
|
|
1472
|
-
})
|
|
1511
|
+
}),
|
|
1512
|
+
{ datapoint: h.datapoint, seriesIndex: n }
|
|
1473
1513
|
)), 9, Wt))), 256))
|
|
1474
1514
|
], 4))), 256))
|
|
1475
|
-
], 64)) : (l(!0), r(
|
|
1476
|
-
key: `yLabel_${
|
|
1515
|
+
], 64)) : (l(!0), r(N, { key: 1 }, I(e.yLabels, (t, h) => (l(), r("g", {
|
|
1516
|
+
key: `yLabel_${h}`
|
|
1477
1517
|
}, [
|
|
1478
|
-
e.canShowValue(
|
|
1518
|
+
e.canShowValue(t) && t.value >= e.niceScale.min && t.value <= e.niceScale.max ? (l(), r("line", {
|
|
1479
1519
|
key: 0,
|
|
1480
1520
|
x1: e.drawingArea.left + e.xPadding,
|
|
1481
1521
|
x2: e.drawingArea.left - 5 + e.xPadding,
|
|
1482
|
-
y1: e.checkNaN(
|
|
1483
|
-
y2: e.checkNaN(
|
|
1522
|
+
y1: e.checkNaN(t.y),
|
|
1523
|
+
y2: e.checkNaN(t.y),
|
|
1484
1524
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1485
1525
|
"stroke-width": "1",
|
|
1486
1526
|
"stroke-linecap": "round"
|
|
1487
|
-
}, null, 8, Et)) :
|
|
1488
|
-
|
|
1527
|
+
}, null, 8, Et)) : o("", !0),
|
|
1528
|
+
t.value >= e.niceScale.min && t.value <= e.niceScale.max ? (l(), r("text", {
|
|
1489
1529
|
key: 1,
|
|
1490
1530
|
x: e.drawingArea.left - 7 + e.xPadding,
|
|
1491
|
-
y: e.checkNaN(
|
|
1492
|
-
"font-size":
|
|
1531
|
+
y: e.checkNaN(t.y + i.fontSizes.dataLabels / 3),
|
|
1532
|
+
"font-size": i.fontSizes.dataLabels,
|
|
1493
1533
|
"text-anchor": "end",
|
|
1494
1534
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
1495
|
-
},
|
|
1535
|
+
}, S(e.canShowValue(t.value) ? e.applyDataLabel(
|
|
1496
1536
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1497
|
-
|
|
1537
|
+
t.value,
|
|
1498
1538
|
e.dataLabel({
|
|
1499
|
-
p:
|
|
1500
|
-
v:
|
|
1501
|
-
s:
|
|
1539
|
+
p: t.prefix,
|
|
1540
|
+
v: t.value,
|
|
1541
|
+
s: t.suffix,
|
|
1502
1542
|
r: 1
|
|
1503
1543
|
})
|
|
1504
|
-
) : ""), 9, Bt)) :
|
|
1544
|
+
) : ""), 9, Bt)) : o("", !0)
|
|
1505
1545
|
]))), 128))
|
|
1506
|
-
])) :
|
|
1507
|
-
(l(!0), r(
|
|
1508
|
-
key: `serie_plot_${
|
|
1509
|
-
class:
|
|
1510
|
-
style:
|
|
1546
|
+
])) : o("", !0),
|
|
1547
|
+
(l(!0), r(N, null, I(e.plotSet, (t, h) => (l(), r("g", {
|
|
1548
|
+
key: `serie_plot_${h}`,
|
|
1549
|
+
class: M(`serie_plot_${h}`),
|
|
1550
|
+
style: C(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1511
1551
|
}, [
|
|
1512
|
-
(l(!0), r(
|
|
1513
|
-
key: `circle_plot_${
|
|
1552
|
+
(l(!0), r(N, null, I(t.plots, (n, g) => (l(), r("g", {
|
|
1553
|
+
key: `circle_plot_${h}_${g}`
|
|
1514
1554
|
}, [
|
|
1515
|
-
e.canShowValue(n.value) ? (l(), V(
|
|
1555
|
+
e.canShowValue(n.value) ? (l(), V(A, {
|
|
1516
1556
|
key: 0,
|
|
1517
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
1518
|
-
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${
|
|
1557
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(t.shape) ? t.shape : "circle",
|
|
1558
|
+
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${h}_${i.uniqueId})` : t.color,
|
|
1519
1559
|
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
1520
|
-
radius:
|
|
1560
|
+
radius: i.selectedSerieIndex !== null && i.selectedSerieIndex === g || i.selectedMinimapIndex !== null && i.selectedMinimapIndex === g ? (i.plotRadii.plot || 6) * 1.5 : i.plotRadii.plot || 6,
|
|
1521
1561
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1522
1562
|
strokeWidth: 0.5
|
|
1523
|
-
}, null, 8, ["shape", "color", "plot", "radius", "stroke"])) :
|
|
1563
|
+
}, null, 8, ["shape", "color", "plot", "radius", "stroke"])) : o("", !0),
|
|
1524
1564
|
n.comment && e.FINAL_CONFIG.chart.comments.show ? (l(), r("foreignObject", {
|
|
1525
1565
|
key: 1,
|
|
1526
1566
|
style: { overflow: "visible" },
|
|
@@ -1530,16 +1570,16 @@ function qa(i, s, o, f, t, e) {
|
|
|
1530
1570
|
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1531
1571
|
}, [
|
|
1532
1572
|
u("div", Xt, [
|
|
1533
|
-
O(
|
|
1534
|
-
plot: { ...n, color:
|
|
1573
|
+
O(a.$slots, "plot-comment", {
|
|
1574
|
+
plot: { ...n, color: t.color }
|
|
1535
1575
|
}, void 0, !0)
|
|
1536
1576
|
])
|
|
1537
|
-
], 8, Yt)) :
|
|
1577
|
+
], 8, Yt)) : o("", !0)
|
|
1538
1578
|
]))), 128)),
|
|
1539
|
-
Object.hasOwn(
|
|
1579
|
+
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (l(), r("g", qt, [
|
|
1540
1580
|
u("defs", null, [
|
|
1541
1581
|
u("marker", {
|
|
1542
|
-
id: `plot_arrow_${
|
|
1582
|
+
id: `plot_arrow_${h}`,
|
|
1543
1583
|
markerWidth: 7,
|
|
1544
1584
|
markerHeight: 7,
|
|
1545
1585
|
refX: "0",
|
|
@@ -1548,119 +1588,119 @@ function qa(i, s, o, f, t, e) {
|
|
|
1548
1588
|
}, [
|
|
1549
1589
|
u("polygon", {
|
|
1550
1590
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1551
|
-
fill:
|
|
1591
|
+
fill: t.color
|
|
1552
1592
|
}, null, 8, Ut)
|
|
1553
1593
|
], 8, Zt)
|
|
1554
1594
|
]),
|
|
1555
|
-
|
|
1595
|
+
t.plots.length > 1 ? (l(), r("line", {
|
|
1556
1596
|
key: 0,
|
|
1557
|
-
x1: e.calcLinearProgression(
|
|
1558
|
-
x2: e.calcLinearProgression(
|
|
1559
|
-
y1: e.calcLinearProgression(
|
|
1560
|
-
y2: e.calcLinearProgression(
|
|
1597
|
+
x1: e.calcLinearProgression(t.plots).x1,
|
|
1598
|
+
x2: e.calcLinearProgression(t.plots).x2,
|
|
1599
|
+
y1: e.calcLinearProgression(t.plots).y1,
|
|
1600
|
+
y2: e.calcLinearProgression(t.plots).y2,
|
|
1561
1601
|
"stroke-width": 1,
|
|
1562
|
-
stroke:
|
|
1602
|
+
stroke: t.color,
|
|
1563
1603
|
"stroke-dasharray": 2,
|
|
1564
|
-
"marker-end": `url(#plot_arrow_${
|
|
1565
|
-
}, null, 8, Jt)) :
|
|
1566
|
-
|
|
1604
|
+
"marker-end": `url(#plot_arrow_${h})`
|
|
1605
|
+
}, null, 8, Jt)) : o("", !0),
|
|
1606
|
+
t.plots.length > 1 ? (l(), r("text", {
|
|
1567
1607
|
key: 1,
|
|
1568
1608
|
"text-anchor": "middle",
|
|
1569
|
-
x: e.calcLinearProgression(
|
|
1570
|
-
y: e.calcLinearProgression(
|
|
1571
|
-
"font-size":
|
|
1572
|
-
fill:
|
|
1573
|
-
},
|
|
1574
|
-
v: e.calcLinearProgression(
|
|
1609
|
+
x: e.calcLinearProgression(t.plots).x2,
|
|
1610
|
+
y: e.calcLinearProgression(t.plots).y2 - 6,
|
|
1611
|
+
"font-size": i.fontSizes.plotLabels,
|
|
1612
|
+
fill: t.color
|
|
1613
|
+
}, S(e.dataLabel({
|
|
1614
|
+
v: e.calcLinearProgression(t.plots).trend * 100,
|
|
1575
1615
|
s: "%",
|
|
1576
1616
|
r: 2
|
|
1577
|
-
})), 9, Qt)) :
|
|
1578
|
-
])) :
|
|
1617
|
+
})), 9, Qt)) : o("", !0)
|
|
1618
|
+
])) : o("", !0)
|
|
1579
1619
|
], 6))), 128)),
|
|
1580
|
-
(l(!0), r(
|
|
1581
|
-
key: `serie_line_${
|
|
1582
|
-
class:
|
|
1583
|
-
style:
|
|
1620
|
+
(l(!0), r(N, null, I(e.lineSet, (t, h) => (l(), r("g", {
|
|
1621
|
+
key: `serie_line_${h}`,
|
|
1622
|
+
class: M(`serie_line_${h}`),
|
|
1623
|
+
style: C(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1584
1624
|
}, [
|
|
1585
|
-
|
|
1625
|
+
t.smooth && t.plots.length > 1 ? (l(), r("path", {
|
|
1586
1626
|
key: 0,
|
|
1587
|
-
d: `M${
|
|
1627
|
+
d: `M${t.curve}`,
|
|
1588
1628
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1589
1629
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1590
|
-
"stroke-dasharray":
|
|
1630
|
+
"stroke-dasharray": t.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1591
1631
|
fill: "none"
|
|
1592
|
-
}, null, 8, Kt)) :
|
|
1593
|
-
(l(!0), r(
|
|
1594
|
-
key: `line_${
|
|
1632
|
+
}, null, 8, Kt)) : t.plots.length > 1 ? (l(), r("g", jt, [
|
|
1633
|
+
(l(!0), r(N, null, I(t.plots, (n, g) => (l(), r("g", {
|
|
1634
|
+
key: `line_${h}_${g}`
|
|
1595
1635
|
}, [
|
|
1596
|
-
n && g <
|
|
1636
|
+
n && g < t.plots.length - 1 && t.plots[g + 1] && e.canShowValue(n.value) && e.canShowValue(t.plots[g + 1].value) ? (l(), r("line", {
|
|
1597
1637
|
key: 0,
|
|
1598
1638
|
x1: n.x,
|
|
1599
|
-
x2:
|
|
1639
|
+
x2: t.plots[g + 1].x,
|
|
1600
1640
|
y1: n.y,
|
|
1601
|
-
y2:
|
|
1641
|
+
y2: t.plots[g + 1].y,
|
|
1602
1642
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1603
1643
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1604
|
-
"stroke-dasharray":
|
|
1644
|
+
"stroke-dasharray": t.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1605
1645
|
"stroke-linejoin": "round",
|
|
1606
1646
|
"stroke-linecap": "round"
|
|
1607
|
-
}, null, 8, $t)) :
|
|
1647
|
+
}, null, 8, $t)) : o("", !0)
|
|
1608
1648
|
]))), 128))
|
|
1609
|
-
])) :
|
|
1649
|
+
])) : o("", !0)
|
|
1610
1650
|
], 6))), 128)),
|
|
1611
|
-
(l(!0), r(
|
|
1612
|
-
key: `serie_line_${
|
|
1613
|
-
class:
|
|
1614
|
-
style:
|
|
1651
|
+
(l(!0), r(N, null, I(e.lineSet, (t, h) => (l(), r("g", {
|
|
1652
|
+
key: `serie_line_${h}`,
|
|
1653
|
+
class: M(`serie_line_${h}`),
|
|
1654
|
+
style: C(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1615
1655
|
}, [
|
|
1616
|
-
|
|
1617
|
-
|
|
1656
|
+
t.useArea && t.plots.length > 1 ? (l(), r("g", ea, [
|
|
1657
|
+
t.smooth ? (l(), r("path", {
|
|
1618
1658
|
key: 0,
|
|
1619
|
-
d: `M ${
|
|
1620
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${
|
|
1659
|
+
d: `M ${t.plots[0] ? t.plots[0].x : Math.min(...t.plots.filter((n) => !!n).map((n) => n.x))},${i.mutableConfig.isStacked ? e.drawingArea.bottom - t.yOffset : e.drawingArea.bottom} ${t.curve} L ${t.plots.at(-1) ? t.plots.at(-1).x : e.drawingArea.left + e.slot.line * h + e.slot.line / 2},${i.mutableConfig.isStacked ? e.drawingArea.bottom - t.yOffset : e.drawingArea.bottom} Z`,
|
|
1660
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${h}_${i.uniqueId})` : e.setOpacity(t.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1621
1661
|
}, null, 8, ta)) : (l(), r("path", {
|
|
1622
1662
|
key: 1,
|
|
1623
|
-
d: `M${
|
|
1624
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${
|
|
1663
|
+
d: `M${t.area}Z`,
|
|
1664
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${h}_${i.uniqueId})` : e.setOpacity(t.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1625
1665
|
}, null, 8, aa))
|
|
1626
|
-
])) :
|
|
1627
|
-
|
|
1666
|
+
])) : o("", !0),
|
|
1667
|
+
t.smooth && t.plots.length > 1 ? (l(), r("path", {
|
|
1628
1668
|
key: 1,
|
|
1629
|
-
d: `M${
|
|
1630
|
-
stroke:
|
|
1669
|
+
d: `M${t.curve}`,
|
|
1670
|
+
stroke: t.color,
|
|
1631
1671
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth,
|
|
1632
|
-
"stroke-dasharray":
|
|
1672
|
+
"stroke-dasharray": t.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1633
1673
|
fill: "none"
|
|
1634
|
-
}, null, 8, ia)) :
|
|
1635
|
-
(l(!0), r(
|
|
1636
|
-
key: `line_${
|
|
1674
|
+
}, null, 8, ia)) : t.plots.length > 1 ? (l(), r("g", la, [
|
|
1675
|
+
(l(!0), r(N, null, I(t.plots, (n, g) => (l(), r("g", {
|
|
1676
|
+
key: `line_${h}_${g}`
|
|
1637
1677
|
}, [
|
|
1638
|
-
n && g <
|
|
1678
|
+
n && g < t.plots.length - 1 && t.plots[g + 1] && e.canShowValue(n.value) && e.canShowValue(t.plots[g + 1].value) ? (l(), r("line", {
|
|
1639
1679
|
key: 0,
|
|
1640
1680
|
x1: n.x,
|
|
1641
|
-
x2:
|
|
1681
|
+
x2: t.plots[g + 1].x,
|
|
1642
1682
|
y1: n.y,
|
|
1643
|
-
y2:
|
|
1644
|
-
stroke:
|
|
1683
|
+
y2: t.plots[g + 1].y,
|
|
1684
|
+
stroke: t.color,
|
|
1645
1685
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth,
|
|
1646
|
-
"stroke-dasharray":
|
|
1686
|
+
"stroke-dasharray": t.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1647
1687
|
"stroke-linejoin": "round",
|
|
1648
1688
|
"stroke-linecap": "round"
|
|
1649
|
-
}, null, 8, ra)) :
|
|
1689
|
+
}, null, 8, ra)) : o("", !0)
|
|
1650
1690
|
]))), 128))
|
|
1651
|
-
])) :
|
|
1652
|
-
(l(!0), r(
|
|
1653
|
-
key: `circle_line_${
|
|
1691
|
+
])) : o("", !0),
|
|
1692
|
+
(l(!0), r(N, null, I(t.plots, (n, g) => (l(), r("g", {
|
|
1693
|
+
key: `circle_line_${h}_${g}`
|
|
1654
1694
|
}, [
|
|
1655
|
-
n && e.canShowValue(n.value) ? (l(), V(
|
|
1695
|
+
n && e.canShowValue(n.value) ? (l(), V(A, {
|
|
1656
1696
|
key: 0,
|
|
1657
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
1658
|
-
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${
|
|
1697
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(t.shape) ? t.shape : "circle",
|
|
1698
|
+
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${h}_${i.uniqueId})` : t.color,
|
|
1659
1699
|
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
1660
|
-
radius:
|
|
1700
|
+
radius: i.selectedSerieIndex !== null && i.selectedSerieIndex === g || i.selectedMinimapIndex !== null && i.selectedMinimapIndex === g ? (i.plotRadii.line || 6) * 1.5 : i.plotRadii.line || 6,
|
|
1661
1701
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1662
1702
|
strokeWidth: 0.5
|
|
1663
|
-
}, null, 8, ["shape", "color", "plot", "radius", "stroke"])) :
|
|
1703
|
+
}, null, 8, ["shape", "color", "plot", "radius", "stroke"])) : o("", !0),
|
|
1664
1704
|
n.comment && e.FINAL_CONFIG.chart.comments.show ? (l(), r("foreignObject", {
|
|
1665
1705
|
key: 1,
|
|
1666
1706
|
style: { overflow: "visible" },
|
|
@@ -1670,16 +1710,16 @@ function qa(i, s, o, f, t, e) {
|
|
|
1670
1710
|
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1671
1711
|
}, [
|
|
1672
1712
|
u("div", na, [
|
|
1673
|
-
O(
|
|
1674
|
-
plot: { ...n, color:
|
|
1713
|
+
O(a.$slots, "plot-comment", {
|
|
1714
|
+
plot: { ...n, color: t.color }
|
|
1675
1715
|
}, void 0, !0)
|
|
1676
1716
|
])
|
|
1677
|
-
], 8, sa)) :
|
|
1717
|
+
], 8, sa)) : o("", !0)
|
|
1678
1718
|
]))), 128)),
|
|
1679
|
-
Object.hasOwn(
|
|
1719
|
+
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (l(), r("g", ha, [
|
|
1680
1720
|
u("defs", null, [
|
|
1681
1721
|
u("marker", {
|
|
1682
|
-
id: `line_arrow_${
|
|
1722
|
+
id: `line_arrow_${h}`,
|
|
1683
1723
|
markerWidth: 7,
|
|
1684
1724
|
markerHeight: 7,
|
|
1685
1725
|
refX: "0",
|
|
@@ -1688,108 +1728,108 @@ function qa(i, s, o, f, t, e) {
|
|
|
1688
1728
|
}, [
|
|
1689
1729
|
u("polygon", {
|
|
1690
1730
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1691
|
-
fill:
|
|
1692
|
-
}, null, 8,
|
|
1693
|
-
], 8,
|
|
1731
|
+
fill: t.color
|
|
1732
|
+
}, null, 8, oa)
|
|
1733
|
+
], 8, ca)
|
|
1694
1734
|
]),
|
|
1695
|
-
|
|
1735
|
+
t.plots.length > 1 ? (l(), r("line", {
|
|
1696
1736
|
key: 0,
|
|
1697
|
-
x1: e.calcLinearProgression(
|
|
1698
|
-
x2: e.calcLinearProgression(
|
|
1699
|
-
y1: e.calcLinearProgression(
|
|
1700
|
-
y2: e.calcLinearProgression(
|
|
1737
|
+
x1: e.calcLinearProgression(t.plots).x1,
|
|
1738
|
+
x2: e.calcLinearProgression(t.plots).x2,
|
|
1739
|
+
y1: e.calcLinearProgression(t.plots).y1,
|
|
1740
|
+
y2: e.calcLinearProgression(t.plots).y2,
|
|
1701
1741
|
"stroke-width": 1,
|
|
1702
|
-
stroke:
|
|
1742
|
+
stroke: t.color,
|
|
1703
1743
|
"stroke-dasharray": 2,
|
|
1704
|
-
"marker-end": `url(#line_arrow_${
|
|
1705
|
-
}, null, 8, da)) :
|
|
1706
|
-
|
|
1744
|
+
"marker-end": `url(#line_arrow_${h})`
|
|
1745
|
+
}, null, 8, da)) : o("", !0),
|
|
1746
|
+
t.plots.length > 1 ? (l(), r("text", {
|
|
1707
1747
|
key: 1,
|
|
1708
1748
|
"text-anchor": "middle",
|
|
1709
|
-
x: e.calcLinearProgression(
|
|
1710
|
-
y: e.calcLinearProgression(
|
|
1711
|
-
"font-size":
|
|
1712
|
-
fill:
|
|
1713
|
-
},
|
|
1714
|
-
v: e.calcLinearProgression(
|
|
1749
|
+
x: e.calcLinearProgression(t.plots).x2,
|
|
1750
|
+
y: e.calcLinearProgression(t.plots).y2 - 6,
|
|
1751
|
+
"font-size": i.fontSizes.plotLabels,
|
|
1752
|
+
fill: t.color
|
|
1753
|
+
}, S(e.dataLabel({
|
|
1754
|
+
v: e.calcLinearProgression(t.plots).trend * 100,
|
|
1715
1755
|
s: "%",
|
|
1716
1756
|
r: 2
|
|
1717
|
-
})), 9, ua)) :
|
|
1718
|
-
])) :
|
|
1757
|
+
})), 9, ua)) : o("", !0)
|
|
1758
|
+
])) : o("", !0)
|
|
1719
1759
|
], 6))), 128)),
|
|
1720
|
-
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) &&
|
|
1721
|
-
(l(!0), r(
|
|
1722
|
-
key: `xLabel_bar_${
|
|
1723
|
-
class:
|
|
1724
|
-
style:
|
|
1760
|
+
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && i.mutableConfig.dataLabels.show ? (l(), r("g", ga, [
|
|
1761
|
+
(l(!0), r(N, null, I(e.barSet, (t, h) => (l(), r("g", {
|
|
1762
|
+
key: `xLabel_bar_${h}`,
|
|
1763
|
+
class: M(`xLabel_bar_${h}`),
|
|
1764
|
+
style: C(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1725
1765
|
}, [
|
|
1726
|
-
(l(!0), r(
|
|
1727
|
-
key: `xLabel_bar_${
|
|
1766
|
+
(l(!0), r(N, null, I(t.plots, (n, g) => (l(), r("g", {
|
|
1767
|
+
key: `xLabel_bar_${h}_${g}`
|
|
1728
1768
|
}, [
|
|
1729
|
-
n && (!Object.hasOwn(
|
|
1769
|
+
n && (!Object.hasOwn(t, "dataLabels") || t.dataLabels === !0) && e.FINAL_CONFIG.bar.labels.show ? (l(), r("text", {
|
|
1730
1770
|
key: 0,
|
|
1731
|
-
x:
|
|
1771
|
+
x: i.mutableConfig.useIndividualScale && i.mutableConfig.isStacked ? n.x + e.slot.line / 2 : e.calcRectX(n) + e.calcRectWidth() / 2 - e.barPeriodGap / 2,
|
|
1732
1772
|
y: e.checkNaN(n.y) + (n.value > 0 ? e.FINAL_CONFIG.bar.labels.offsetY : -e.FINAL_CONFIG.bar.labels.offsetY * 3),
|
|
1733
1773
|
"text-anchor": "middle",
|
|
1734
|
-
"font-size":
|
|
1774
|
+
"font-size": i.fontSizes.plotLabels,
|
|
1735
1775
|
fill: e.FINAL_CONFIG.bar.labels.color
|
|
1736
|
-
},
|
|
1776
|
+
}, S(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
1737
1777
|
e.FINAL_CONFIG.bar.labels.formatter,
|
|
1738
1778
|
n.value,
|
|
1739
1779
|
e.dataLabel({
|
|
1740
|
-
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
1780
|
+
p: t.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
1741
1781
|
v: n.value,
|
|
1742
|
-
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
1782
|
+
s: t.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
1743
1783
|
r: e.FINAL_CONFIG.bar.labels.rounding
|
|
1744
1784
|
}),
|
|
1745
1785
|
{
|
|
1746
1786
|
datapoint: n,
|
|
1747
|
-
serie:
|
|
1787
|
+
serie: t
|
|
1748
1788
|
}
|
|
1749
|
-
) : ""), 9, fa)) :
|
|
1789
|
+
) : ""), 9, fa)) : o("", !0),
|
|
1750
1790
|
n && e.FINAL_CONFIG.bar.serieName.show ? (l(), r("text", {
|
|
1751
1791
|
key: 1,
|
|
1752
|
-
x:
|
|
1792
|
+
x: i.mutableConfig.useIndividualScale && i.mutableConfig.isStacked ? n.x + e.slot.line / 2 : n.x + e.calcRectWidth() * 1.1,
|
|
1753
1793
|
y: n.y + (n.value > 0 ? e.FINAL_CONFIG.bar.serieName.offsetY : -e.FINAL_CONFIG.bar.serieName.offsetY * 3),
|
|
1754
1794
|
"text-anchor": "middle",
|
|
1755
|
-
"font-size":
|
|
1756
|
-
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ?
|
|
1795
|
+
"font-size": i.fontSizes.plotLabels,
|
|
1796
|
+
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? t.color : e.FINAL_CONFIG.bar.serieName.color,
|
|
1757
1797
|
"font-weight": e.FINAL_CONFIG.bar.serieName.bold ? "bold" : "normal"
|
|
1758
|
-
},
|
|
1798
|
+
}, S(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: t.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : t.name), 9, Na)) : o("", !0)
|
|
1759
1799
|
]))), 128))
|
|
1760
1800
|
], 6))), 128))
|
|
1761
|
-
])) :
|
|
1762
|
-
e.FINAL_CONFIG.plot.labels.show &&
|
|
1763
|
-
(l(!0), r(
|
|
1764
|
-
key: `xLabel_plot_${
|
|
1765
|
-
class:
|
|
1766
|
-
style:
|
|
1801
|
+
])) : o("", !0),
|
|
1802
|
+
e.FINAL_CONFIG.plot.labels.show && i.mutableConfig.dataLabels.show ? (l(), r("g", ma, [
|
|
1803
|
+
(l(!0), r(N, null, I(e.plotSet, (t, h) => (l(), r("g", {
|
|
1804
|
+
key: `xLabel_plot_${h}`,
|
|
1805
|
+
class: M(`xLabel_plot_${h}`),
|
|
1806
|
+
style: C(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1767
1807
|
}, [
|
|
1768
|
-
(l(!0), r(
|
|
1769
|
-
key: `xLabel_plot_${
|
|
1808
|
+
(l(!0), r(N, null, I(t.plots, (n, g) => (l(), r("g", {
|
|
1809
|
+
key: `xLabel_plot_${h}_${g}`
|
|
1770
1810
|
}, [
|
|
1771
|
-
n && !Object.hasOwn(
|
|
1811
|
+
n && !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 ? (l(), r("text", {
|
|
1772
1812
|
key: 0,
|
|
1773
1813
|
x: n.x,
|
|
1774
1814
|
y: n.y + e.FINAL_CONFIG.plot.labels.offsetY,
|
|
1775
1815
|
"text-anchor": "middle",
|
|
1776
|
-
"font-size":
|
|
1816
|
+
"font-size": i.fontSizes.plotLabels,
|
|
1777
1817
|
fill: e.FINAL_CONFIG.plot.labels.color
|
|
1778
|
-
},
|
|
1818
|
+
}, S(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
1779
1819
|
e.FINAL_CONFIG.plot.labels.formatter,
|
|
1780
1820
|
n.value,
|
|
1781
1821
|
e.dataLabel({
|
|
1782
|
-
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
1822
|
+
p: t.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
1783
1823
|
v: n.value,
|
|
1784
|
-
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
1824
|
+
s: t.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
1785
1825
|
r: e.FINAL_CONFIG.plot.labels.rounding
|
|
1786
1826
|
}),
|
|
1787
1827
|
{
|
|
1788
1828
|
datapoint: n,
|
|
1789
|
-
serie:
|
|
1829
|
+
serie: t
|
|
1790
1830
|
}
|
|
1791
|
-
) : ""), 9, Ia)) :
|
|
1792
|
-
n && g === 0 &&
|
|
1831
|
+
) : ""), 9, Ia)) : o("", !0),
|
|
1832
|
+
n && g === 0 && t.useTag && t.useTag === "start" ? (l(), r("foreignObject", {
|
|
1793
1833
|
key: 1,
|
|
1794
1834
|
x: n.x,
|
|
1795
1835
|
y: n.y - 20,
|
|
@@ -1798,55 +1838,55 @@ function qa(i, s, o, f, t, e) {
|
|
|
1798
1838
|
style: { overflow: "visible" }
|
|
1799
1839
|
}, [
|
|
1800
1840
|
u("div", {
|
|
1801
|
-
style:
|
|
1802
|
-
},
|
|
1803
|
-
], 8,
|
|
1804
|
-
n && g ===
|
|
1841
|
+
style: C(`padding: 3px; background:${e.setOpacity(t.color, 80)};color:${e.adaptColorToBackground(t.color)};width:fit-content;font-size:${i.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1842
|
+
}, S(t.name), 5)
|
|
1843
|
+
], 8, xa)) : o("", !0),
|
|
1844
|
+
n && g === t.plots.length - 1 && t.useTag && t.useTag === "end" ? (l(), r("foreignObject", {
|
|
1805
1845
|
key: 2,
|
|
1806
|
-
x: n.x -
|
|
1846
|
+
x: n.x - t.name.length * (i.fontSizes.plotLabels / 2),
|
|
1807
1847
|
y: n.y - 20,
|
|
1808
1848
|
height: 24,
|
|
1809
1849
|
width: "150",
|
|
1810
1850
|
style: { overflow: "visible" }
|
|
1811
1851
|
}, [
|
|
1812
1852
|
u("div", {
|
|
1813
|
-
style:
|
|
1814
|
-
},
|
|
1815
|
-
], 8,
|
|
1853
|
+
style: C(`padding: 3px; background:${e.setOpacity(t.color, 80)};color:${e.adaptColorToBackground(t.color)};width:fit-content;font-size:${i.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1854
|
+
}, S(t.name), 5)
|
|
1855
|
+
], 8, ba)) : o("", !0)
|
|
1816
1856
|
]))), 128))
|
|
1817
1857
|
], 6))), 128))
|
|
1818
|
-
])) :
|
|
1819
|
-
e.FINAL_CONFIG.line.labels.show &&
|
|
1820
|
-
(l(!0), r(
|
|
1821
|
-
key: `xLabel_line_${
|
|
1822
|
-
class:
|
|
1823
|
-
style:
|
|
1858
|
+
])) : o("", !0),
|
|
1859
|
+
e.FINAL_CONFIG.line.labels.show && i.mutableConfig.dataLabels.show ? (l(), r("g", Fa, [
|
|
1860
|
+
(l(!0), r(N, null, I(e.lineSet, (t, h) => (l(), r("g", {
|
|
1861
|
+
key: `xLabel_line_${h}`,
|
|
1862
|
+
class: M(`xLabel_line_${h}`),
|
|
1863
|
+
style: C(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1824
1864
|
}, [
|
|
1825
|
-
(l(!0), r(
|
|
1826
|
-
key: `xLabel_line_${
|
|
1865
|
+
(l(!0), r(N, null, I(t.plots, (n, g) => (l(), r("g", {
|
|
1866
|
+
key: `xLabel_line_${h}_${g}`
|
|
1827
1867
|
}, [
|
|
1828
|
-
n && !Object.hasOwn(
|
|
1868
|
+
n && !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 ? (l(), r("text", {
|
|
1829
1869
|
key: 0,
|
|
1830
1870
|
x: n.x,
|
|
1831
1871
|
y: n.y + (n.value > 0 ? e.FINAL_CONFIG.line.labels.offsetY : -e.FINAL_CONFIG.line.labels.offsetY * 3),
|
|
1832
1872
|
"text-anchor": "middle",
|
|
1833
|
-
"font-size":
|
|
1873
|
+
"font-size": i.fontSizes.plotLabels,
|
|
1834
1874
|
fill: e.FINAL_CONFIG.line.labels.color
|
|
1835
|
-
},
|
|
1875
|
+
}, S(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
1836
1876
|
e.FINAL_CONFIG.line.labels.formatter,
|
|
1837
1877
|
n.value,
|
|
1838
1878
|
e.dataLabel({
|
|
1839
|
-
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
1879
|
+
p: t.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
1840
1880
|
v: n.value,
|
|
1841
|
-
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
1881
|
+
s: t.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
1842
1882
|
r: e.FINAL_CONFIG.line.labels.rounding
|
|
1843
1883
|
}),
|
|
1844
1884
|
{
|
|
1845
1885
|
datapoint: n,
|
|
1846
|
-
serie:
|
|
1886
|
+
serie: t
|
|
1847
1887
|
}
|
|
1848
|
-
) : ""), 9,
|
|
1849
|
-
n && g === 0 &&
|
|
1888
|
+
) : ""), 9, _a)) : o("", !0),
|
|
1889
|
+
n && g === 0 && t.useTag && t.useTag === "start" ? (l(), r("foreignObject", {
|
|
1850
1890
|
key: 1,
|
|
1851
1891
|
x: n.x,
|
|
1852
1892
|
y: n.y - 20,
|
|
@@ -1855,168 +1895,168 @@ function qa(i, s, o, f, t, e) {
|
|
|
1855
1895
|
style: { overflow: "visible" }
|
|
1856
1896
|
}, [
|
|
1857
1897
|
u("div", {
|
|
1858
|
-
style:
|
|
1859
|
-
},
|
|
1860
|
-
], 8, ya)) :
|
|
1861
|
-
n && g ===
|
|
1898
|
+
style: C(`padding: 3px; background:${e.setOpacity(t.color, 80)};color:${e.adaptColorToBackground(t.color)};width:fit-content;font-size:${i.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1899
|
+
}, S(t.name), 5)
|
|
1900
|
+
], 8, ya)) : o("", !0),
|
|
1901
|
+
n && g === t.plots.length - 1 && t.useTag && t.useTag === "end" ? (l(), r("foreignObject", {
|
|
1862
1902
|
key: 2,
|
|
1863
|
-
x: n.x -
|
|
1903
|
+
x: n.x - t.name.length * (i.fontSizes.plotLabels / 2),
|
|
1864
1904
|
y: n.y - 20,
|
|
1865
1905
|
height: 24,
|
|
1866
1906
|
width: "150",
|
|
1867
1907
|
style: { overflow: "visible" }
|
|
1868
1908
|
}, [
|
|
1869
1909
|
u("div", {
|
|
1870
|
-
style:
|
|
1871
|
-
},
|
|
1872
|
-
], 8, Aa)) :
|
|
1910
|
+
style: C(`padding: 3px; background:${e.setOpacity(t.color, 80)};color:${e.adaptColorToBackground(t.color)};width:fit-content;font-size:${i.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1911
|
+
}, S(t.name), 5)
|
|
1912
|
+
], 8, Aa)) : o("", !0)
|
|
1873
1913
|
]))), 128))
|
|
1874
1914
|
], 6))), 128))
|
|
1875
|
-
])) :
|
|
1876
|
-
(l(!0), r(
|
|
1877
|
-
key: `xLabel_line_${
|
|
1878
|
-
class:
|
|
1879
|
-
style:
|
|
1915
|
+
])) : o("", !0),
|
|
1916
|
+
(l(!0), r(N, null, I(e.lineSet, (t, h) => (l(), r("g", {
|
|
1917
|
+
key: `xLabel_line_${h}`,
|
|
1918
|
+
class: M(`xLabel_line_${h}`),
|
|
1919
|
+
style: C(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1880
1920
|
}, [
|
|
1881
|
-
(l(!0), r(
|
|
1882
|
-
key: `xLabel_line_${
|
|
1921
|
+
(l(!0), r(N, null, I(t.plots, (n, g) => (l(), r("g", {
|
|
1922
|
+
key: `xLabel_line_${h}_${g}`
|
|
1883
1923
|
}, [
|
|
1884
|
-
n && g === 0 &&
|
|
1924
|
+
n && g === 0 && t.showSerieName && t.showSerieName === "start" ? (l(), r("text", {
|
|
1885
1925
|
key: 0,
|
|
1886
|
-
x: n.x -
|
|
1926
|
+
x: n.x - i.fontSizes.plotLabels,
|
|
1887
1927
|
y: n.y,
|
|
1888
|
-
"font-size":
|
|
1928
|
+
"font-size": i.fontSizes.plotLabels,
|
|
1889
1929
|
"text-anchor": "end",
|
|
1890
|
-
fill:
|
|
1930
|
+
fill: t.color,
|
|
1891
1931
|
innerHTML: e.createTSpans({
|
|
1892
|
-
content:
|
|
1893
|
-
fontSize:
|
|
1894
|
-
fill:
|
|
1895
|
-
x: n.x -
|
|
1932
|
+
content: t.name,
|
|
1933
|
+
fontSize: i.fontSizes.plotLabels,
|
|
1934
|
+
fill: t.color,
|
|
1935
|
+
x: n.x - i.fontSizes.plotLabels,
|
|
1896
1936
|
y: n.y,
|
|
1897
1937
|
maxWords: 2
|
|
1898
1938
|
})
|
|
1899
|
-
}, null, 8, La)) :
|
|
1900
|
-
n && g ===
|
|
1939
|
+
}, null, 8, La)) : o("", !0),
|
|
1940
|
+
n && g === t.plots.length - 1 && t.showSerieName && t.showSerieName === "end" ? (l(), r("text", {
|
|
1901
1941
|
key: 1,
|
|
1902
|
-
x: n.x +
|
|
1942
|
+
x: n.x + i.fontSizes.plotLabels,
|
|
1903
1943
|
y: n.y,
|
|
1904
|
-
"font-size":
|
|
1944
|
+
"font-size": i.fontSizes.plotLabels,
|
|
1905
1945
|
"text-anchor": "start",
|
|
1906
|
-
fill:
|
|
1946
|
+
fill: t.color,
|
|
1907
1947
|
innerHTML: e.createTSpans({
|
|
1908
|
-
content:
|
|
1909
|
-
fontSize:
|
|
1910
|
-
fill:
|
|
1911
|
-
x: n.x +
|
|
1948
|
+
content: t.name,
|
|
1949
|
+
fontSize: i.fontSizes.plotLabels,
|
|
1950
|
+
fill: t.color,
|
|
1951
|
+
x: n.x + i.fontSizes.plotLabels,
|
|
1912
1952
|
y: n.y,
|
|
1913
1953
|
maxWords: 2
|
|
1914
1954
|
})
|
|
1915
|
-
}, null, 8, Ca)) :
|
|
1955
|
+
}, null, 8, Ca)) : o("", !0)
|
|
1916
1956
|
]))), 128))
|
|
1917
1957
|
], 6))), 128)),
|
|
1918
|
-
(l(!0), r(
|
|
1919
|
-
key: `xLabel_plot_${
|
|
1920
|
-
class:
|
|
1921
|
-
style:
|
|
1958
|
+
(l(!0), r(N, null, I(e.plotSet, (t, h) => (l(), r("g", {
|
|
1959
|
+
key: `xLabel_plot_${h}`,
|
|
1960
|
+
class: M(`xLabel_plot_${h}`),
|
|
1961
|
+
style: C(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1922
1962
|
}, [
|
|
1923
|
-
(l(!0), r(
|
|
1924
|
-
key: `xLabel_plot_${
|
|
1963
|
+
(l(!0), r(N, null, I(t.plots, (n, g) => (l(), r("g", {
|
|
1964
|
+
key: `xLabel_plot_${h}_${g}`
|
|
1925
1965
|
}, [
|
|
1926
|
-
n && g === 0 &&
|
|
1966
|
+
n && g === 0 && t.showSerieName && t.showSerieName === "start" ? (l(), r("text", {
|
|
1927
1967
|
key: 0,
|
|
1928
|
-
x: n.x -
|
|
1968
|
+
x: n.x - i.fontSizes.plotLabels,
|
|
1929
1969
|
y: n.y,
|
|
1930
|
-
"font-size":
|
|
1970
|
+
"font-size": i.fontSizes.plotLabels,
|
|
1931
1971
|
"text-anchor": "end",
|
|
1932
|
-
fill:
|
|
1972
|
+
fill: t.color,
|
|
1933
1973
|
innerHTML: e.createTSpans({
|
|
1934
|
-
content:
|
|
1935
|
-
fontSize:
|
|
1936
|
-
fill:
|
|
1937
|
-
x: n.x -
|
|
1974
|
+
content: t.name,
|
|
1975
|
+
fontSize: i.fontSizes.plotLabels,
|
|
1976
|
+
fill: t.color,
|
|
1977
|
+
x: n.x - i.fontSizes.plotLabels,
|
|
1938
1978
|
y: n.y,
|
|
1939
1979
|
maxWords: 2
|
|
1940
1980
|
})
|
|
1941
|
-
}, null, 8, Sa)) :
|
|
1942
|
-
n && g ===
|
|
1981
|
+
}, null, 8, Sa)) : o("", !0),
|
|
1982
|
+
n && g === t.plots.length - 1 && t.showSerieName && t.showSerieName === "end" ? (l(), r("text", {
|
|
1943
1983
|
key: 1,
|
|
1944
|
-
x: n.x +
|
|
1984
|
+
x: n.x + i.fontSizes.plotLabels,
|
|
1945
1985
|
y: n.y,
|
|
1946
|
-
"font-size":
|
|
1986
|
+
"font-size": i.fontSizes.plotLabels,
|
|
1947
1987
|
"text-anchor": "start",
|
|
1948
|
-
fill:
|
|
1988
|
+
fill: t.color,
|
|
1949
1989
|
innerHTML: e.createTSpans({
|
|
1950
|
-
content:
|
|
1951
|
-
fontSize:
|
|
1952
|
-
fill:
|
|
1953
|
-
x: n.x +
|
|
1990
|
+
content: t.name,
|
|
1991
|
+
fontSize: i.fontSizes.plotLabels,
|
|
1992
|
+
fill: t.color,
|
|
1993
|
+
x: n.x + i.fontSizes.plotLabels,
|
|
1954
1994
|
y: n.y,
|
|
1955
1995
|
maxWords: 2
|
|
1956
1996
|
})
|
|
1957
|
-
}, null, 8, ka)) :
|
|
1997
|
+
}, null, 8, ka)) : o("", !0)
|
|
1958
1998
|
]))), 128))
|
|
1959
1999
|
], 6))), 128)),
|
|
1960
|
-
|
|
1961
|
-
x:
|
|
2000
|
+
i.mutableConfig.useIndividualScale && !i.mutableConfig.isStacked ? (l(!0), r(N, { key: 8 }, I(e.allScales, (t) => (l(), r("rect", {
|
|
2001
|
+
x: t.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
1962
2002
|
y: e.drawingArea.top,
|
|
1963
2003
|
width: e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
1964
2004
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1965
|
-
fill:
|
|
1966
|
-
onMouseenter: (
|
|
1967
|
-
onMouseleave: s[0] || (s[0] = (
|
|
1968
|
-
}, null, 40, wa))), 256)) :
|
|
2005
|
+
fill: i.selectedScale === t.id ? e.setOpacity(t.color, 20) : "transparent",
|
|
2006
|
+
onMouseenter: (h) => i.selectedScale = t.id,
|
|
2007
|
+
onMouseleave: s[0] || (s[0] = (h) => i.selectedScale = null)
|
|
2008
|
+
}, null, 40, wa))), 256)) : o("", !0),
|
|
1969
2009
|
u("g", null, [
|
|
1970
|
-
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !
|
|
2010
|
+
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !i.mutableConfig.useIndividualScale ? (l(), r("text", {
|
|
1971
2011
|
key: 0,
|
|
1972
|
-
"font-size":
|
|
2012
|
+
"font-size": i.fontSizes.yAxis,
|
|
1973
2013
|
fill: e.FINAL_CONFIG.chart.grid.labels.color,
|
|
1974
|
-
transform: `translate(${
|
|
2014
|
+
transform: `translate(${i.fontSizes.yAxis + e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`,
|
|
1975
2015
|
"text-anchor": "middle",
|
|
1976
2016
|
style: { transition: "none" }
|
|
1977
|
-
},
|
|
2017
|
+
}, S(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, Oa)) : o("", !0),
|
|
1978
2018
|
e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (l(), r("text", {
|
|
1979
2019
|
key: 1,
|
|
1980
2020
|
"text-anchor": "middle",
|
|
1981
|
-
x:
|
|
1982
|
-
y: e.drawingArea.bottom +
|
|
1983
|
-
"font-size":
|
|
2021
|
+
x: i.width / 2,
|
|
2022
|
+
y: e.drawingArea.bottom + i.fontSizes.yAxis + i.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,
|
|
2023
|
+
"font-size": i.fontSizes.yAxis,
|
|
1984
2024
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
1985
|
-
},
|
|
2025
|
+
}, S(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, va)) : o("", !0)
|
|
1986
2026
|
]),
|
|
1987
2027
|
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (l(), r("g", Ga, [
|
|
1988
|
-
(l(!0), r(
|
|
1989
|
-
key: `time_label_${
|
|
2028
|
+
(l(!0), r(N, null, I(e.timeLabels, (t, h) => (l(), r("g", {
|
|
2029
|
+
key: `time_label_${h}`
|
|
1990
2030
|
}, [
|
|
1991
|
-
|
|
2031
|
+
t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (h === 0 || h === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && i.selectedSerieIndex === h && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && h % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (l(), r("text", {
|
|
1992
2032
|
key: 0,
|
|
1993
2033
|
"text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
1994
|
-
"font-size":
|
|
2034
|
+
"font-size": i.fontSizes.xAxis,
|
|
1995
2035
|
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
1996
|
-
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
1997
|
-
},
|
|
2036
|
+
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * h + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom + i.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`
|
|
2037
|
+
}, S(t || ""), 9, pa)) : o("", !0)
|
|
1998
2038
|
]))), 128))
|
|
1999
|
-
])) :
|
|
2039
|
+
])) : o("", !0),
|
|
2000
2040
|
u("g", null, [
|
|
2001
|
-
(l(!0), r(
|
|
2002
|
-
key: `tooltip_trap_${
|
|
2041
|
+
(l(!0), r(N, null, I(e.maxSeries, (t, h) => (l(), r("g", {
|
|
2042
|
+
key: `tooltip_trap_${h}`
|
|
2003
2043
|
}, [
|
|
2004
2044
|
u("rect", {
|
|
2005
2045
|
"data-cy-trap": "",
|
|
2006
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
2046
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * h,
|
|
2007
2047
|
y: e.drawingArea.top,
|
|
2008
2048
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
2009
2049
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
2010
2050
|
fill: "transparent",
|
|
2011
|
-
onMouseenter: (n) => e.toggleTooltipVisibility(!0,
|
|
2051
|
+
onMouseenter: (n) => e.toggleTooltipVisibility(!0, h),
|
|
2012
2052
|
onMouseleave: s[1] || (s[1] = (n) => e.toggleTooltipVisibility(!1)),
|
|
2013
|
-
onClick: (n) => e.selectX(
|
|
2014
|
-
}, null, 40,
|
|
2053
|
+
onClick: (n) => e.selectX(h)
|
|
2054
|
+
}, null, 40, za)
|
|
2015
2055
|
]))), 128))
|
|
2016
2056
|
]),
|
|
2017
|
-
e.FINAL_CONFIG.chart.timeTag.show && ![null, void 0].includes(
|
|
2057
|
+
e.FINAL_CONFIG.chart.timeTag.show && ![null, void 0].includes(i.selectedSerieIndex) ? (l(), r("g", Ma, [
|
|
2018
2058
|
(l(), r("foreignObject", {
|
|
2019
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
2059
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * i.selectedSerieIndex - 100 + e.drawingArea.width / e.maxSeries / 2,
|
|
2020
2060
|
y: e.drawingArea.bottom,
|
|
2021
2061
|
width: "200",
|
|
2022
2062
|
height: "40",
|
|
@@ -2024,23 +2064,23 @@ function qa(i, s, o, f, t, e) {
|
|
|
2024
2064
|
}, [
|
|
2025
2065
|
u("div", {
|
|
2026
2066
|
class: "vue-ui-xy-time-tag",
|
|
2027
|
-
style:
|
|
2028
|
-
},
|
|
2067
|
+
style: C(`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`)
|
|
2068
|
+
}, S(e.timeLabels[i.selectedSerieIndex] || i.selectedSerieIndex), 5)
|
|
2029
2069
|
], 8, Pa)),
|
|
2030
2070
|
u("circle", {
|
|
2031
|
-
cx: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
2071
|
+
cx: e.drawingArea.left + e.drawingArea.width / e.maxSeries * i.selectedSerieIndex + e.drawingArea.width / e.maxSeries / 2,
|
|
2032
2072
|
cy: e.drawingArea.bottom,
|
|
2033
2073
|
r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
|
|
2034
2074
|
fill: e.FINAL_CONFIG.chart.timeTag.circleMarker.color
|
|
2035
2075
|
}, null, 8, Ta)
|
|
2036
|
-
])) :
|
|
2037
|
-
])) :
|
|
2038
|
-
O(
|
|
2039
|
-
], 14, Ze)) :
|
|
2040
|
-
|
|
2041
|
-
O(
|
|
2042
|
-
])) :
|
|
2043
|
-
e.isDataset ?
|
|
2076
|
+
])) : o("", !0)
|
|
2077
|
+
])) : o("", !0),
|
|
2078
|
+
O(a.$slots, "svg", { svg: e.svg }, void 0, !0)
|
|
2079
|
+
], 14, Ze)) : o("", !0),
|
|
2080
|
+
a.$slots.watermark ? (l(), r("div", Va, [
|
|
2081
|
+
O(a.$slots, "watermark", B(Y({ isPrinting: i.isPrinting || i.isImaging })), void 0, !0)
|
|
2082
|
+
])) : o("", !0),
|
|
2083
|
+
e.isDataset ? o("", !0) : (l(), V(m, {
|
|
2044
2084
|
key: 4,
|
|
2045
2085
|
config: {
|
|
2046
2086
|
type: "line",
|
|
@@ -2058,14 +2098,14 @@ function qa(i, s, o, f, t, e) {
|
|
|
2058
2098
|
}
|
|
2059
2099
|
}
|
|
2060
2100
|
}, null, 8, ["config"])),
|
|
2061
|
-
e.FINAL_CONFIG.chart.zoom.show &&
|
|
2101
|
+
e.FINAL_CONFIG.chart.zoom.show && i.maxX > 6 && e.isDataset ? (l(), V(L, {
|
|
2062
2102
|
ref: "chartSlicer",
|
|
2063
|
-
key: `slicer_${
|
|
2103
|
+
key: `slicer_${i.slicerStep}`,
|
|
2064
2104
|
background: e.FINAL_CONFIG.chart.zoom.color,
|
|
2065
2105
|
fontSize: e.FINAL_CONFIG.chart.zoom.fontSize,
|
|
2066
2106
|
useResetSlot: e.FINAL_CONFIG.chart.zoom.useResetSlot,
|
|
2067
|
-
labelLeft: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[
|
|
2068
|
-
labelRight: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[
|
|
2107
|
+
labelLeft: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[i.slicer.start],
|
|
2108
|
+
labelRight: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[i.slicer.end - 1],
|
|
2069
2109
|
textColor: e.FINAL_CONFIG.chart.color,
|
|
2070
2110
|
inputColor: e.FINAL_CONFIG.chart.zoom.color,
|
|
2071
2111
|
selectColor: e.FINAL_CONFIG.chart.zoom.highlightColor,
|
|
@@ -2076,36 +2116,36 @@ function qa(i, s, o, f, t, e) {
|
|
|
2076
2116
|
minimapSelectionRadius: e.FINAL_CONFIG.chart.zoom.minimap.selectionRadius,
|
|
2077
2117
|
minimapLineColor: e.FINAL_CONFIG.chart.zoom.minimap.lineColor,
|
|
2078
2118
|
minimapSelectedColorOpacity: e.FINAL_CONFIG.chart.zoom.minimap.selectedColorOpacity,
|
|
2079
|
-
minimapSelectedIndex:
|
|
2119
|
+
minimapSelectedIndex: i.selectedSerieIndex,
|
|
2080
2120
|
minimapIndicatorColor: e.FINAL_CONFIG.chart.zoom.minimap.indicatorColor,
|
|
2081
|
-
max:
|
|
2121
|
+
max: i.maxX,
|
|
2082
2122
|
min: 0,
|
|
2083
|
-
valueStart:
|
|
2084
|
-
valueEnd:
|
|
2085
|
-
start:
|
|
2086
|
-
"onUpdate:start": s[2] || (s[2] = (
|
|
2087
|
-
end:
|
|
2088
|
-
"onUpdate:end": s[3] || (s[3] = (
|
|
2123
|
+
valueStart: i.slicer.start,
|
|
2124
|
+
valueEnd: i.slicer.end,
|
|
2125
|
+
start: i.slicer.start,
|
|
2126
|
+
"onUpdate:start": s[2] || (s[2] = (t) => i.slicer.start = t),
|
|
2127
|
+
end: i.slicer.end,
|
|
2128
|
+
"onUpdate:end": s[3] || (s[3] = (t) => i.slicer.end = t),
|
|
2089
2129
|
onReset: e.refreshSlicer,
|
|
2090
2130
|
onTrapMouse: e.selectMinimapIndex
|
|
2091
2131
|
}, {
|
|
2092
|
-
"reset-action":
|
|
2093
|
-
O(
|
|
2132
|
+
"reset-action": p(({ reset: t }) => [
|
|
2133
|
+
O(a.$slots, "reset-action", B(Y({ reset: t })), void 0, !0)
|
|
2094
2134
|
]),
|
|
2095
2135
|
_: 3
|
|
2096
|
-
}, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "max", "valueStart", "valueEnd", "start", "end", "onReset", "onTrapMouse"])) :
|
|
2136
|
+
}, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "max", "valueStart", "valueEnd", "start", "end", "onReset", "onTrapMouse"])) : o("", !0),
|
|
2097
2137
|
e.FINAL_CONFIG.chart.legend.show ? (l(), r("div", {
|
|
2098
2138
|
key: 6,
|
|
2099
2139
|
ref: "chartLegend",
|
|
2100
2140
|
class: "vue-ui-xy-legend",
|
|
2101
|
-
style:
|
|
2141
|
+
style: C(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
|
|
2102
2142
|
}, [
|
|
2103
|
-
(l(!0), r(
|
|
2104
|
-
key: `div_legend_item_${
|
|
2105
|
-
onClick: (n) => e.segregate(
|
|
2106
|
-
class:
|
|
2143
|
+
(l(!0), r(N, null, I(e.absoluteDataset, (t, h) => (l(), r("div", {
|
|
2144
|
+
key: `div_legend_item_${h}`,
|
|
2145
|
+
onClick: (n) => e.segregate(t),
|
|
2146
|
+
class: M({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": i.segregatedSeries.includes(t.id) })
|
|
2107
2147
|
}, [
|
|
2108
|
-
|
|
2148
|
+
i.icons[t.type] === "line" ? (l(), r("svg", Da, [
|
|
2109
2149
|
u("rect", {
|
|
2110
2150
|
x: "0",
|
|
2111
2151
|
y: "7",
|
|
@@ -2113,18 +2153,18 @@ function qa(i, s, o, f, t, e) {
|
|
|
2113
2153
|
stroke: "none",
|
|
2114
2154
|
height: "4",
|
|
2115
2155
|
width: "20",
|
|
2116
|
-
fill:
|
|
2156
|
+
fill: t.color
|
|
2117
2157
|
}, null, 8, Ha),
|
|
2118
|
-
q(
|
|
2158
|
+
q(A, {
|
|
2119
2159
|
plot: { x: 10, y: 9 },
|
|
2120
2160
|
radius: 4,
|
|
2121
|
-
color:
|
|
2122
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
2161
|
+
color: t.color,
|
|
2162
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(t.shape) ? t.shape : "circle",
|
|
2123
2163
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
2124
2164
|
strokeWidth: 1
|
|
2125
2165
|
}, null, 8, ["color", "shape", "stroke"])
|
|
2126
2166
|
])) : (l(), r("svg", Wa, [
|
|
2127
|
-
|
|
2167
|
+
i.icons[t.type] === "bar" ? (l(), r("rect", {
|
|
2128
2168
|
key: 0,
|
|
2129
2169
|
x: "0",
|
|
2130
2170
|
y: "0",
|
|
@@ -2132,24 +2172,24 @@ function qa(i, s, o, f, t, e) {
|
|
|
2132
2172
|
height: "12",
|
|
2133
2173
|
width: "12",
|
|
2134
2174
|
stroke: "none",
|
|
2135
|
-
fill:
|
|
2136
|
-
}, null, 8, Ea)) : (l(), V(
|
|
2175
|
+
fill: t.color
|
|
2176
|
+
}, null, 8, Ea)) : (l(), V(A, {
|
|
2137
2177
|
key: 1,
|
|
2138
2178
|
plot: { x: 6, y: 6 },
|
|
2139
2179
|
radius: 5,
|
|
2140
|
-
color:
|
|
2141
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
2180
|
+
color: t.color,
|
|
2181
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(t.shape) ? t.shape : "circle"
|
|
2142
2182
|
}, null, 8, ["color", "shape"]))
|
|
2143
2183
|
])),
|
|
2144
2184
|
u("span", {
|
|
2145
|
-
style:
|
|
2146
|
-
},
|
|
2185
|
+
style: C(`color:${e.FINAL_CONFIG.chart.legend.color}`)
|
|
2186
|
+
}, S(t.name), 5)
|
|
2147
2187
|
], 10, Ra))), 128))
|
|
2148
2188
|
], 4)) : (l(), r("div", Ba, [
|
|
2149
|
-
O(
|
|
2189
|
+
O(a.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
|
|
2150
2190
|
], 512)),
|
|
2151
|
-
q(
|
|
2152
|
-
show:
|
|
2191
|
+
q(z, {
|
|
2192
|
+
show: i.mutableConfig.showTooltip && i.isTooltip,
|
|
2153
2193
|
backgroundColor: e.FINAL_CONFIG.chart.tooltip.backgroundColor,
|
|
2154
2194
|
color: e.FINAL_CONFIG.chart.tooltip.color,
|
|
2155
2195
|
fontSize: e.FINAL_CONFIG.chart.tooltip.fontSize,
|
|
@@ -2159,23 +2199,23 @@ function qa(i, s, o, f, t, e) {
|
|
|
2159
2199
|
backgroundOpacity: e.FINAL_CONFIG.chart.tooltip.backgroundOpacity,
|
|
2160
2200
|
position: e.FINAL_CONFIG.chart.tooltip.position,
|
|
2161
2201
|
offsetY: e.FINAL_CONFIG.chart.tooltip.offsetY,
|
|
2162
|
-
parent:
|
|
2202
|
+
parent: a.$refs.chart,
|
|
2163
2203
|
content: e.tooltipContent,
|
|
2164
2204
|
isCustom: e.FINAL_CONFIG.chart.tooltip.customFormat && typeof e.FINAL_CONFIG.chart.tooltip.customFormat == "function"
|
|
2165
2205
|
}, {
|
|
2166
|
-
"tooltip-before":
|
|
2167
|
-
O(
|
|
2206
|
+
"tooltip-before": p(() => [
|
|
2207
|
+
O(a.$slots, "tooltip-before", B(Y({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2168
2208
|
]),
|
|
2169
|
-
"tooltip-after":
|
|
2170
|
-
O(
|
|
2209
|
+
"tooltip-after": p(() => [
|
|
2210
|
+
O(a.$slots, "tooltip-after", B(Y({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2171
2211
|
]),
|
|
2172
2212
|
_: 3
|
|
2173
2213
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
2174
|
-
e.isDataset ? (l(), V(
|
|
2214
|
+
e.isDataset ? (l(), V(b, {
|
|
2175
2215
|
key: 8,
|
|
2176
2216
|
hideDetails: "",
|
|
2177
2217
|
config: {
|
|
2178
|
-
open:
|
|
2218
|
+
open: i.mutableConfig.showTable,
|
|
2179
2219
|
maxHeight: 1e4,
|
|
2180
2220
|
body: {
|
|
2181
2221
|
backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
@@ -2187,48 +2227,48 @@ function qa(i, s, o, f, t, e) {
|
|
|
2187
2227
|
}
|
|
2188
2228
|
}
|
|
2189
2229
|
}, {
|
|
2190
|
-
content:
|
|
2230
|
+
content: p(() => [
|
|
2191
2231
|
u("div", {
|
|
2192
|
-
style:
|
|
2232
|
+
style: C(`${i.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
2193
2233
|
}, [
|
|
2194
2234
|
u("div", Ya, [
|
|
2195
2235
|
He(u("input", {
|
|
2196
2236
|
type: "checkbox",
|
|
2197
|
-
"onUpdate:modelValue": s[4] || (s[4] = (
|
|
2237
|
+
"onUpdate:modelValue": s[4] || (s[4] = (t) => i.showSparklineTable = t)
|
|
2198
2238
|
}, null, 512), [
|
|
2199
|
-
[We,
|
|
2239
|
+
[We, i.showSparklineTable]
|
|
2200
2240
|
]),
|
|
2201
2241
|
u("div", {
|
|
2202
|
-
onClick: s[5] || (s[5] = (
|
|
2242
|
+
onClick: s[5] || (s[5] = (t) => i.showSparklineTable = !i.showSparklineTable),
|
|
2203
2243
|
style: { cursor: "pointer" }
|
|
2204
2244
|
}, [
|
|
2205
|
-
q(
|
|
2245
|
+
q(k, {
|
|
2206
2246
|
name: "chartLine",
|
|
2207
2247
|
size: 20,
|
|
2208
2248
|
stroke: e.FINAL_CONFIG.chart.color
|
|
2209
2249
|
}, null, 8, ["stroke"])
|
|
2210
2250
|
])
|
|
2211
2251
|
]),
|
|
2212
|
-
|
|
2213
|
-
key: `sparkline_${
|
|
2252
|
+
i.showSparklineTable ? (l(), V(G, {
|
|
2253
|
+
key: `sparkline_${i.segregateStep}`,
|
|
2214
2254
|
dataset: e.tableSparklineDataset,
|
|
2215
2255
|
config: e.tableSparklineConfig
|
|
2216
2256
|
}, null, 8, ["dataset", "config"])) : (l(), V(v, {
|
|
2217
|
-
key: `table_${
|
|
2257
|
+
key: `table_${i.tableStep}`,
|
|
2218
2258
|
colNames: e.dataTable.colNames,
|
|
2219
2259
|
head: e.dataTable.head,
|
|
2220
2260
|
body: e.dataTable.body,
|
|
2221
2261
|
config: e.dataTable.config,
|
|
2222
2262
|
title: `${e.FINAL_CONFIG.chart.title.text}${e.FINAL_CONFIG.chart.title.subtitle.text ? ` : ${e.FINAL_CONFIG.chart.title.subtitle.text}` : ""}`,
|
|
2223
|
-
onClose: s[6] || (s[6] = (
|
|
2263
|
+
onClose: s[6] || (s[6] = (t) => i.mutableConfig.showTable = !1)
|
|
2224
2264
|
}, {
|
|
2225
|
-
th:
|
|
2226
|
-
u("div", { innerHTML:
|
|
2265
|
+
th: p(({ th: t }) => [
|
|
2266
|
+
u("div", { innerHTML: t }, null, 8, Xa)
|
|
2227
2267
|
]),
|
|
2228
|
-
td:
|
|
2229
|
-
Ee(
|
|
2268
|
+
td: p(({ td: t }) => [
|
|
2269
|
+
Ee(S(isNaN(Number(t)) ? t : e.dataLabel({
|
|
2230
2270
|
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
2231
|
-
v:
|
|
2271
|
+
v: t,
|
|
2232
2272
|
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
2233
2273
|
r: e.FINAL_CONFIG.table.rounding
|
|
2234
2274
|
})), 1)
|
|
@@ -2238,10 +2278,10 @@ function qa(i, s, o, f, t, e) {
|
|
|
2238
2278
|
], 4)
|
|
2239
2279
|
]),
|
|
2240
2280
|
_: 1
|
|
2241
|
-
}, 8, ["config"])) :
|
|
2281
|
+
}, 8, ["config"])) : o("", !0)
|
|
2242
2282
|
], 14, qe);
|
|
2243
2283
|
}
|
|
2244
|
-
const
|
|
2284
|
+
const hi = /* @__PURE__ */ Be(Xe, [["render", qa], ["__scopeId", "data-v-7fe10bbc"]]);
|
|
2245
2285
|
export {
|
|
2246
|
-
|
|
2286
|
+
hi as default
|
|
2247
2287
|
};
|