vue-data-ui 2.3.82 → 2.3.83
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-BTO6BS7p.cjs → Arrow-CcR4ZIEI.cjs} +1 -1
- package/dist/{Arrow-D-Ef1hLL.js → Arrow-M7fNgsWN.js} +1 -1
- package/dist/{BaseIcon-DS9Fpauh.cjs → BaseIcon-BHuHlqT8.cjs} +1 -1
- package/dist/{BaseIcon-CVe5ECp8.js → BaseIcon-DY4dOkkj.js} +1 -1
- package/dist/{DataTable-BfvpbyB5.cjs → DataTable-BYpARrqG.cjs} +1 -1
- package/dist/{DataTable-OKHTStDc.js → DataTable-NaCUmiJt.js} +2 -2
- package/dist/{Legend-Bt4nNAHo.js → Legend-CK7IfQW2.js} +1 -1
- package/dist/{Legend-B3B4K_lr.cjs → Legend-D8icDk38.cjs} +1 -1
- package/dist/{Shape-C0HIiqHY.js → Shape-BBQ0BAq6.js} +1 -1
- package/dist/{Shape-Dg4DHNlU.cjs → Shape-BSA-6ATj.cjs} +1 -1
- package/dist/{Slicer-BPvgOo6Z.cjs → Slicer-BEiXplka.cjs} +1 -1
- package/dist/{Slicer-CB-YgfIM.js → Slicer-BSNY_ZDL.js} +2 -2
- package/dist/{Title-B238VbIb.cjs → Title-1LPI4Pd7.cjs} +1 -1
- package/dist/{Title-CXeDgAE7.js → Title-I5LLf5MT.js} +1 -1
- package/dist/{Tooltip-hihJcWT0.cjs → Tooltip-BbUUQjWg.cjs} +1 -1
- package/dist/{Tooltip-_e0VoMC-.js → Tooltip-UuN-HISf.js} +1 -1
- package/dist/{index-B6m-GhsP.js → index-B6bGaBzE.js} +1 -1
- package/dist/{index-CeMgFh6-.cjs → index-CuTsdJDI.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +2 -0
- package/dist/types/vue-data-ui.d.ts +2 -0
- package/dist/{useNestedProp-BrcBWysp.js → useNestedProp-BS8PvQ5U.js} +1 -1
- package/dist/{useNestedProp-CD3RA8XO.cjs → useNestedProp-CAjEiadB.cjs} +1 -1
- package/dist/{usePrinter-_rbdfvVi.cjs → usePrinter-D47Cl-_I.cjs} +1 -1
- package/dist/{usePrinter-BkKBQlCO.js → usePrinter-DthbDD1O.js} +1 -1
- package/dist/{vue-data-ui-wvh5ZEeD.js → vue-data-ui-BesfxeQR.js} +57 -57
- package/dist/{vue-data-ui-BgHHdUNr.cjs → vue-data-ui-ZBy4ZyPH.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-DNHZheVL.js → vue-ui-3d-bar-BmCupY_F.js} +7 -7
- package/dist/{vue-ui-3d-bar-ia_wUTc1.cjs → vue-ui-3d-bar-ndPdPajx.cjs} +1 -1
- package/dist/{vue-ui-accordion-BygOGjRr.js → vue-ui-accordion-BblXoBgi.js} +3 -3
- package/dist/{vue-ui-accordion-CH_rY04P.cjs → vue-ui-accordion-DVK9JwAM.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-BZrN9gk2.js → vue-ui-age-pyramid-CzgKgRqy.js} +8 -8
- package/dist/{vue-ui-age-pyramid-DftioDeW.cjs → vue-ui-age-pyramid-ua3MdmCq.cjs} +1 -1
- package/dist/{vue-ui-annotator-DRpBiqTN.js → vue-ui-annotator-CQryTk_7.js} +1 -1
- package/dist/{vue-ui-annotator-BGYJrkr0.cjs → vue-ui-annotator-dTbuigK7.cjs} +1 -1
- package/dist/{vue-ui-candlestick-CVgaOkTY.cjs → vue-ui-candlestick-BSDnT9kJ.cjs} +1 -1
- package/dist/{vue-ui-candlestick-BP5nrvrA.js → vue-ui-candlestick-DH3-JcNQ.js} +9 -9
- package/dist/{vue-ui-carousel-table-Dtkm1_OH.js → vue-ui-carousel-table-BoLJlPIf.js} +4 -4
- package/dist/{vue-ui-carousel-table-Cd93n0fJ.cjs → vue-ui-carousel-table-DxDDpzyO.cjs} +1 -1
- package/dist/{vue-ui-chestnut-B6_rC31R.cjs → vue-ui-chestnut-BHo_m_eO.cjs} +1 -1
- package/dist/{vue-ui-chestnut-CKviQSxK.js → vue-ui-chestnut-DFCI0g97.js} +6 -6
- package/dist/{vue-ui-cursor-_egqr6DD.js → vue-ui-cursor-DjVXzBDJ.js} +2 -2
- package/dist/{vue-ui-cursor-C4FRP_Nc.cjs → vue-ui-cursor-WpptD__s.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DUgt8PIq.js → vue-ui-dashboard-Cms5XJQ9.js} +2 -2
- package/dist/{vue-ui-dashboard-iPdvuNQ9.cjs → vue-ui-dashboard-DewqEIU8.cjs} +1 -1
- package/dist/{vue-ui-digits-CcrjtXtk.js → vue-ui-digits-C0YWch_M.js} +2 -2
- package/dist/{vue-ui-digits-OWEvFsfq.cjs → vue-ui-digits-ChM4kqZY.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-PtyzK7G6.cjs → vue-ui-donut-evolution-ConFJEQl.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-D1LXnQfC.js → vue-ui-donut-evolution-bM3kCJUD.js} +9 -9
- package/dist/{vue-ui-donut-Dmr11NmB.js → vue-ui-donut-jnS5SfdU.js} +9 -9
- package/dist/{vue-ui-donut-D2SQezST.cjs → vue-ui-donut-wewLho92.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-CNX0gxiM.js → vue-ui-dumbbell-CJr-rur-.js} +8 -8
- package/dist/{vue-ui-dumbbell-Bbv_WYY2.cjs → vue-ui-dumbbell-DhZL7zEK.cjs} +1 -1
- package/dist/{vue-ui-flow-FsawfZQj.js → vue-ui-flow-C0vcVRWr.js} +7 -7
- package/dist/{vue-ui-flow-DRjha-Xx.cjs → vue-ui-flow-Cpwccu5D.cjs} +1 -1
- package/dist/{vue-ui-galaxy-Eev5Q8w4.js → vue-ui-galaxy-B3FMALkv.js} +9 -9
- package/dist/{vue-ui-galaxy-BCMTqPX1.cjs → vue-ui-galaxy-BfcyfvBH.cjs} +1 -1
- package/dist/{vue-ui-gauge-DBxTCkge.js → vue-ui-gauge-BwDm2zQl.js} +5 -5
- package/dist/{vue-ui-gauge-CPMlQvxU.cjs → vue-ui-gauge-CzhpktL0.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BAiNxz8X.js → vue-ui-gizmo-D9EQ3r0O.js} +2 -2
- package/dist/{vue-ui-gizmo-CxnoYWwd.cjs → vue-ui-gizmo-DA_RRisA.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BpHByyVR.js → vue-ui-heatmap-DAOrAKZ7.js} +8 -8
- package/dist/{vue-ui-heatmap-DvsH2Au0.cjs → vue-ui-heatmap-DgeFeTzQ.cjs} +1 -1
- package/dist/{vue-ui-kpi-DFquN6Ls.cjs → vue-ui-kpi-DP430jb8.cjs} +1 -1
- package/dist/{vue-ui-kpi-CyvW8X1f.js → vue-ui-kpi-_-b-280h.js} +3 -3
- package/dist/{vue-ui-mini-loader--6qogu7d.js → vue-ui-mini-loader-BHLoiHsr.js} +2 -2
- package/dist/{vue-ui-mini-loader-DIa_OVyM.cjs → vue-ui-mini-loader-CPtiWFfd.cjs} +1 -1
- package/dist/{vue-ui-molecule-YJ0bXwbB.js → vue-ui-molecule-BeBh4FNr.js} +9 -9
- package/dist/{vue-ui-molecule-CbLmk-Fv.cjs → vue-ui-molecule-Bo_vv3KE.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-B8QHrApG.js → vue-ui-mood-radar-BD9bJ50Z.js} +9 -9
- package/dist/{vue-ui-mood-radar-BV5RnpiH.cjs → vue-ui-mood-radar-BgM0X3vV.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-CLhrY6y1.js → vue-ui-nested-donuts-Cgto3tF8.js} +9 -9
- package/dist/{vue-ui-nested-donuts-DKAkxEPd.cjs → vue-ui-nested-donuts-eCox9YV-.cjs} +1 -1
- package/dist/{vue-ui-onion-CkknGnDm.cjs → vue-ui-onion-Bg4bO8zm.cjs} +1 -1
- package/dist/{vue-ui-onion-BXdEzlmA.js → vue-ui-onion-CuNbMdeS.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-CE31yJK_.cjs → vue-ui-parallel-coordinate-plot-Cn_H0TAS.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-4XBOTcO8.js → vue-ui-parallel-coordinate-plot-VJfABpcX.js} +10 -10
- package/dist/{vue-ui-quadrant-D9_7g38o.cjs → vue-ui-quadrant-CsBneYsu.cjs} +1 -1
- package/dist/{vue-ui-quadrant-CgMsyw3Q.js → vue-ui-quadrant-vM1usRVi.js} +10 -10
- package/dist/{vue-ui-quick-chart-Cgbq5tLg.js → vue-ui-quick-chart-BGVhBISR.js} +7 -7
- package/dist/{vue-ui-quick-chart-sMi9mLRt.cjs → vue-ui-quick-chart-Be96p8ex.cjs} +1 -1
- package/dist/{vue-ui-radar-BvN2WTtC.js → vue-ui-radar-B_GDv1OM.js} +10 -10
- package/dist/{vue-ui-radar-CkcPJX_6.cjs → vue-ui-radar-CkX69xOF.cjs} +1 -1
- package/dist/{vue-ui-rating-DfKMxLTK.js → vue-ui-rating-ANVaulU4.js} +2 -2
- package/dist/{vue-ui-rating-Cl-ncmAS.cjs → vue-ui-rating-C2XpUtCE.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CJP9zuqV.cjs → vue-ui-relation-circle-4JRcycOA.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-DV5lMEvZ.js → vue-ui-relation-circle-CeHXshK7.js} +5 -5
- package/dist/{vue-ui-rings-C8u__5v-.cjs → vue-ui-rings-BFDBWLpB.cjs} +1 -1
- package/dist/{vue-ui-rings-Bu-zVpHc.js → vue-ui-rings-BbmSC-kG.js} +9 -9
- package/dist/{vue-ui-scatter-D3FTfnsR.cjs → vue-ui-scatter-DXC7BLyb.cjs} +1 -1
- package/dist/{vue-ui-scatter-WeSsnz6H.js → vue-ui-scatter-dWaDeP28.js} +10 -10
- package/dist/{vue-ui-screenshot-BFL-8cPa.cjs → vue-ui-screenshot-CDkexSfB.cjs} +1 -1
- package/dist/{vue-ui-screenshot-B9Mbp_0-.js → vue-ui-screenshot-LFcpEMW-.js} +1 -1
- package/dist/{vue-ui-skeleton-dfikkXQa.cjs → vue-ui-skeleton-BR_pp7QN.cjs} +1 -1
- package/dist/{vue-ui-skeleton-BOhyMEA5.js → vue-ui-skeleton-DyodIkl3.js} +2 -2
- package/dist/{vue-ui-smiley-CwYjTYN8.js → vue-ui-smiley-BW1y5hnG.js} +2 -2
- package/dist/{vue-ui-smiley-BVd6D7fu.cjs → vue-ui-smiley-vzDOQmfu.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DuIEXk8W.cjs → vue-ui-spark-trend-B6bGMK7B.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-D6IwslA-.js → vue-ui-spark-trend-DANt3xrm.js} +4 -4
- package/dist/{vue-ui-sparkbar-woU3TqMe.cjs → vue-ui-sparkbar-D9lC7k4l.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-1v_BypP0.js → vue-ui-sparkbar-Ds2HHojQ.js} +3 -3
- package/dist/{vue-ui-sparkgauge-B4wnbfIi.cjs → vue-ui-sparkgauge-B1xubatN.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-Cwu4aQUR.js → vue-ui-sparkgauge-BtJZFN2Q.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BTdWXIO8.js → vue-ui-sparkhistogram-BK5q9yzw.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-wRqt6OJx.cjs → vue-ui-sparkhistogram-Czii-6F7.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DE3oMNsY.cjs → vue-ui-sparkline-BH7TjDt8.cjs} +1 -1
- package/dist/{vue-ui-sparkline-B2v0wJH3.js → vue-ui-sparkline-hX4509iJ.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-B4lRHLJK.js → vue-ui-sparkstackbar-D5GszwYa.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DIk48oMu.cjs → vue-ui-sparkstackbar-K6WpH3Yp.cjs} +1 -1
- package/dist/{vue-ui-stackbar-DSc8j8LH.js → vue-ui-stackbar-B_hMyMvl.js} +10 -10
- package/dist/{vue-ui-stackbar-DVdBUu5U.cjs → vue-ui-stackbar-D7LVOSv5.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-Cjays3PT.cjs → vue-ui-strip-plot-CVT5B7TW.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-6hhRMLCq.js → vue-ui-strip-plot-de9Eymtb.js} +9 -9
- package/dist/{vue-ui-table-DQkiNDaZ.js → vue-ui-table-BLHo9-_6.js} +1 -1
- package/dist/{vue-ui-table-D-_a1UzS.cjs → vue-ui-table-DCdfSuVG.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BRvVWrf1.cjs → vue-ui-table-heatmap-BszD4e0_.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-_KVKSH7q.js → vue-ui-table-heatmap-Dr5Qk35G.js} +4 -4
- package/dist/{vue-ui-table-sparkline-C_0i15kC.js → vue-ui-table-sparkline-B6IhXLL_.js} +5 -5
- package/dist/{vue-ui-table-sparkline-kyYy6tk8.cjs → vue-ui-table-sparkline-BWXuJi0-.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BjU-T5A0.cjs → vue-ui-thermometer-C1zl2BIB.cjs} +1 -1
- package/dist/{vue-ui-thermometer-y3Hm1mwz.js → vue-ui-thermometer-DXv1JPZX.js} +5 -5
- package/dist/{vue-ui-timer-CVHz7dT6.cjs → vue-ui-timer-Db-uYQDe.cjs} +1 -1
- package/dist/{vue-ui-timer-7ouUkgHq.js → vue-ui-timer-DtWdRECG.js} +4 -4
- package/dist/{vue-ui-tiremarks-8-riUzAT.js → vue-ui-tiremarks-Cda6cwHT.js} +5 -5
- package/dist/{vue-ui-tiremarks-Dr9qSWVo.cjs → vue-ui-tiremarks-CjBnqmbt.cjs} +1 -1
- package/dist/{vue-ui-treemap-CmoQK2_G.cjs → vue-ui-treemap-HzIfevi0.cjs} +1 -1
- package/dist/{vue-ui-treemap-ChYWvnSf.js → vue-ui-treemap-nX8RJJ0M.js} +9 -9
- package/dist/{vue-ui-vertical-bar-Doj3k8dI.cjs → vue-ui-vertical-bar-CemDj3SW.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-Ecx25LWQ.js → vue-ui-vertical-bar-Cq9OrF-E.js} +9 -9
- package/dist/{vue-ui-waffle-BgoDu9wa.cjs → vue-ui-waffle-Cb6ILDHZ.cjs} +1 -1
- package/dist/{vue-ui-waffle-BlqBRA5E.js → vue-ui-waffle-CdfiQX7W.js} +9 -9
- package/dist/{vue-ui-wheel-BlVmj1yz.cjs → vue-ui-wheel-DJ6FlnRI.cjs} +1 -1
- package/dist/{vue-ui-wheel-DNndo4fU.js → vue-ui-wheel-pj51puV8.js} +5 -5
- package/dist/{vue-ui-word-cloud-C9XDZjPt.js → vue-ui-word-cloud-D04mc7xB.js} +7 -7
- package/dist/{vue-ui-word-cloud-Cvyev8yY.cjs → vue-ui-word-cloud-DbFRSx5H.cjs} +1 -1
- package/dist/{vue-ui-xy-DkNi0ZJ4.js → vue-ui-xy-CTSQiIh0.js} +304 -283
- package/dist/vue-ui-xy-CUgcj9k1.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-DIFlyxki.js → vue-ui-xy-canvas-6lqDLyxU.js} +10 -10
- package/dist/{vue-ui-xy-canvas-a3pNJKYd.cjs → vue-ui-xy-canvas-D78-vkpW.cjs} +1 -1
- package/package.json +1 -1
- 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 ce, v as
|
|
4
|
-
import { D as Oe } from "./DataTable-
|
|
5
|
-
import { _ as ve } from "./Title-
|
|
6
|
-
import { _ as Ge, u as ze } from "./Tooltip-
|
|
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-DthbDD1O.js";
|
|
3
|
+
import { c as J, a as $, t as ee, z as te, p as ae, T as X, N as P, f as Z, I as ie, F as le, i as re, Z as se, W as ne, _ as ce, v as he, $ 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-B6bGaBzE.js";
|
|
4
|
+
import { D as Oe } from "./DataTable-NaCUmiJt.js";
|
|
5
|
+
import { _ as ve } from "./Title-I5LLf5MT.js";
|
|
6
|
+
import { _ as Ge, u as ze } from "./Tooltip-UuN-HISf.js";
|
|
7
|
+
import { _ as pe } from "./Shape-BBQ0BAq6.js";
|
|
8
|
+
import Me from "./BaseIcon-DY4dOkkj.js";
|
|
9
|
+
import Pe from "./vue-ui-table-sparkline-B6IhXLL_.js";
|
|
10
|
+
import Te from "./vue-ui-skeleton-DyodIkl3.js";
|
|
11
|
+
import { S as Ve } from "./Slicer-BSNY_ZDL.js";
|
|
12
|
+
import Re from "./vue-ui-accordion-BblXoBgi.js";
|
|
13
|
+
import { u as U } from "./useNestedProp-BS8PvQ5U.js";
|
|
14
|
+
import { resolveComponent as T, openBlock as l, createElementBlock as r, normalizeClass as M, normalizeStyle as A, createBlock as V, createCommentVNode as o, createSlots as De, withCtx as z, renderSlot as O, normalizeProps as B, guardReactiveProps as Y, createElementVNode as u, Fragment as N, renderList as x, toDisplayString as C, 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,26 +31,26 @@ const Ye = J(), Xe = {
|
|
|
31
31
|
},
|
|
32
32
|
components: {
|
|
33
33
|
DataTable: Oe,
|
|
34
|
-
Shape:
|
|
34
|
+
Shape: pe,
|
|
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((h, f) => {
|
|
46
|
+
[null, void 0].includes(h.series) && this.error({
|
|
47
47
|
componentName: "VueUiXy",
|
|
48
48
|
type: "datasetSerieAttribute",
|
|
49
49
|
property: "series (number[])",
|
|
50
50
|
index: f
|
|
51
51
|
});
|
|
52
52
|
});
|
|
53
|
-
const i = Math.max(...this.dataset.map((
|
|
53
|
+
const i = Math.max(...this.dataset.map((h) => h.series.length)), s = {
|
|
54
54
|
start: 0,
|
|
55
55
|
end: i
|
|
56
56
|
};
|
|
@@ -122,7 +122,7 @@ const Ye = J(), Xe = {
|
|
|
122
122
|
watch: {
|
|
123
123
|
dataset: {
|
|
124
124
|
handler(i, s) {
|
|
125
|
-
this.maxX = Math.max(...this.dataset.map((
|
|
125
|
+
this.maxX = Math.max(...this.dataset.map((h) => h.series.length)), this.slicer = {
|
|
126
126
|
start: 0,
|
|
127
127
|
end: this.maxX
|
|
128
128
|
}, this.slicerStep += 1, this.segregateStep += 1;
|
|
@@ -139,11 +139,11 @@ const Ye = J(), Xe = {
|
|
|
139
139
|
computed: {
|
|
140
140
|
minimap() {
|
|
141
141
|
if (!this.FINAL_CONFIG.chart.zoom.minimap.show) return [];
|
|
142
|
-
const i = this.datasetWithIds.filter((t) => !this.segregatedSeries.includes(t.id)), s = Math.max(...i.map((t) => t.series.length)),
|
|
142
|
+
const i = this.datasetWithIds.filter((t) => !this.segregatedSeries.includes(t.id)), s = Math.max(...i.map((t) => t.series.length)), h = [];
|
|
143
143
|
for (let t = 0; t < s; t += 1)
|
|
144
|
-
|
|
145
|
-
const f = Math.min(...
|
|
146
|
-
return
|
|
144
|
+
h.push(i.map((e) => e.series[t] || 0).reduce((e, I) => (e || 0) + (I || 0), 0));
|
|
145
|
+
const f = Math.min(...h);
|
|
146
|
+
return h.map((t) => t + (f < 0 ? Math.abs(f) : 0));
|
|
147
147
|
},
|
|
148
148
|
customPalette() {
|
|
149
149
|
return this.convertCustomPalette(this.FINAL_CONFIG.customPalette);
|
|
@@ -178,7 +178,7 @@ const Ye = J(), Xe = {
|
|
|
178
178
|
id: t.id,
|
|
179
179
|
yOffset: t.yOffset || 0,
|
|
180
180
|
individualHeight: t.individualHeight || this.drawingArea.height
|
|
181
|
-
})),
|
|
181
|
+
})), h = this.plotSet.map((t) => ({
|
|
182
182
|
name: t.name,
|
|
183
183
|
color: t.color,
|
|
184
184
|
scale: t.individualScale,
|
|
@@ -190,8 +190,8 @@ const Ye = J(), Xe = {
|
|
|
190
190
|
id: t.id,
|
|
191
191
|
yOffset: t.yOffset || 0,
|
|
192
192
|
individualHeight: t.individualHeight || this.drawingArea.height
|
|
193
|
-
})), f = [...i, ...s, ...
|
|
194
|
-
return [...i, ...s, ...
|
|
193
|
+
})), f = [...i, ...s, ...h].flatMap((t) => t).length;
|
|
194
|
+
return [...i, ...s, ...h].flatMap((t, e) => ({
|
|
195
195
|
id: t.id,
|
|
196
196
|
scaleLabel: t.scaleLabel,
|
|
197
197
|
name: t.name,
|
|
@@ -251,7 +251,7 @@ const Ye = J(), Xe = {
|
|
|
251
251
|
safeDataset() {
|
|
252
252
|
return this.useSafeValues ? this.dataset.map((i, s) => ({
|
|
253
253
|
...i,
|
|
254
|
-
series: i.series.map((
|
|
254
|
+
series: i.series.map((h) => this.isSafeValue(h) ? h : null).slice(this.slicer.start, this.slicer.end),
|
|
255
255
|
color: this.convertColorToHex(i.color ? i.color : this.customPalette[s] ? this.customPalette[s] : this.palette[s]),
|
|
256
256
|
id: `uniqueId_${s}`
|
|
257
257
|
})) : this.dataset;
|
|
@@ -259,13 +259,13 @@ const Ye = J(), Xe = {
|
|
|
259
259
|
relativeDataset() {
|
|
260
260
|
return this.safeDataset.map((i, s) => ({
|
|
261
261
|
...i,
|
|
262
|
-
series: i.series.map((
|
|
262
|
+
series: i.series.map((h) => h + this.relativeZero),
|
|
263
263
|
absoluteValues: i.series
|
|
264
264
|
})).filter((i) => !this.segregatedSeries.includes(i.id));
|
|
265
265
|
},
|
|
266
266
|
tableSparklineDataset() {
|
|
267
267
|
return this.relativeDataset.map((i) => {
|
|
268
|
-
const s = i.absoluteValues.map((
|
|
268
|
+
const s = i.absoluteValues.map((h) => [void 0, null].includes(h) ? 0 : h);
|
|
269
269
|
return {
|
|
270
270
|
id: i.id,
|
|
271
271
|
name: i.name,
|
|
@@ -304,7 +304,7 @@ const Ye = J(), Xe = {
|
|
|
304
304
|
return this.safeDataset.map((i, s) => ({
|
|
305
305
|
absoluteIndex: s,
|
|
306
306
|
...i,
|
|
307
|
-
series: i.series.map((
|
|
307
|
+
series: i.series.map((h) => h + this.relativeZero),
|
|
308
308
|
absoluteValues: i.series,
|
|
309
309
|
segregate: () => this.segregate(i),
|
|
310
310
|
isSegregated: this.segregatedSeries.includes(i.id)
|
|
@@ -313,54 +313,60 @@ const Ye = J(), Xe = {
|
|
|
313
313
|
barSet() {
|
|
314
314
|
return this.activeSeriesWithStackRatios.filter((i) => i.type === "bar").map((i, s) => {
|
|
315
315
|
this.checkAutoScaleError(i);
|
|
316
|
-
const
|
|
317
|
-
ratios: i.absoluteValues.filter((d) => ![null, void 0].includes(d)).map((d) => (d -
|
|
318
|
-
valueMin:
|
|
316
|
+
const h = Math.min(...i.absoluteValues.filter((d) => ![null, void 0].includes(d))), f = Math.max(...i.absoluteValues.filter((d) => ![null, void 0].includes(d))), e = {
|
|
317
|
+
ratios: i.absoluteValues.filter((d) => ![null, void 0].includes(d)).map((d) => (d - h) / (f - h)),
|
|
318
|
+
valueMin: h,
|
|
319
319
|
valueMax: f < 0 ? 0 : f
|
|
320
320
|
}, I = {
|
|
321
321
|
max: i.scaleMax || Math.max(...i.absoluteValues) || 1,
|
|
322
322
|
min: i.scaleMin || Math.min(...i.absoluteValues.filter((d) => ![void 0, null].includes(d))) > 0 ? 0 : Math.min(...i.absoluteValues.filter((d) => ![null, void 0].includes(d)))
|
|
323
|
-
}, w = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, L = 1.0000001,
|
|
324
|
-
const W = this.mutableConfig.useIndividualScale ? (i.absoluteValues[
|
|
323
|
+
}, w = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, L = 1.0000001, m = this.calculateNiceScaleWithExactExtremes(I.min, I.max === I.min ? I.max * L : I.max, w), y = this.calculateNiceScaleWithExactExtremes(e.valueMin, e.valueMax === e.valueMin ? e.valueMax * L : e.valueMax, w), p = m.min >= 0 ? 0 : Math.abs(m.min), S = 0, G = m.max + p, v = y.max + Math.abs(S), b = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - i.cumulatedStackRatio) : 0, a = this.mutableConfig.isStacked ? this.drawingArea.height * i.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, c = this.drawingArea.bottom - b - a * p / G, n = this.drawingArea.bottom - b - a * S / v, g = this.absoluteDataset.filter((d) => d.type === "bar").filter((d) => !this.segregatedSeries.includes(d.id)).length, R = i.series.map((d, F) => {
|
|
324
|
+
const W = this.mutableConfig.useIndividualScale ? (i.absoluteValues[F] + p) / 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(
|
|
326
|
+
yOffset: this.checkNaN(b),
|
|
327
327
|
individualHeight: this.checkNaN(a),
|
|
328
328
|
x: this.checkNaN(E),
|
|
329
|
-
y: this.drawingArea.bottom -
|
|
330
|
-
value: i.absoluteValues[
|
|
329
|
+
y: this.drawingArea.bottom - b - a * W,
|
|
330
|
+
value: i.absoluteValues[F],
|
|
331
331
|
zeroPosition: this.checkNaN(c),
|
|
332
332
|
individualMax: this.checkNaN(G),
|
|
333
|
-
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[
|
|
333
|
+
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
334
334
|
};
|
|
335
|
-
}), H = i.absoluteValues.map((d) => y.min >= 0 ? (d - Math.abs(y.min)) / (y.max - Math.abs(y.min)) : (d + Math.abs(y.min)) / (y.max + Math.abs(y.min))), D = i.series.map((d,
|
|
336
|
-
const W = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries *
|
|
335
|
+
}), H = i.absoluteValues.map((d) => y.min >= 0 ? (d - Math.abs(y.min)) / (y.max - Math.abs(y.min)) : (d + Math.abs(y.min)) / (y.max + Math.abs(y.min))), D = i.series.map((d, 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(
|
|
338
|
+
yOffset: this.checkNaN(b),
|
|
339
339
|
individualHeight: this.checkNaN(a),
|
|
340
340
|
x: this.checkNaN(W),
|
|
341
|
-
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(
|
|
342
|
-
value: i.absoluteValues[
|
|
341
|
+
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(b) - (this.checkNaN(a) * H[F] || 0)),
|
|
342
|
+
value: i.absoluteValues[F],
|
|
343
343
|
zeroPosition: this.checkNaN(c),
|
|
344
344
|
individualMax: this.checkNaN(G),
|
|
345
|
-
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[
|
|
345
|
+
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
346
346
|
};
|
|
347
|
-
}),
|
|
347
|
+
}), _ = m.ticks.map((d) => ({
|
|
348
348
|
y: d >= 0 ? c - a * (d / G) : c + a * Math.abs(d) / G,
|
|
349
|
-
value: d
|
|
349
|
+
value: d,
|
|
350
|
+
prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
351
|
+
suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
352
|
+
datapoint: i
|
|
350
353
|
})), k = y.ticks.map((d) => {
|
|
351
|
-
const
|
|
354
|
+
const F = (d - y.min) / (y.max - y.min);
|
|
352
355
|
return {
|
|
353
|
-
y: d >= 0 ? n - a *
|
|
354
|
-
value: d
|
|
356
|
+
y: d >= 0 ? n - a * F : n + a * F,
|
|
357
|
+
value: d,
|
|
358
|
+
prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
359
|
+
suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
360
|
+
datapoint: i
|
|
355
361
|
};
|
|
356
362
|
});
|
|
357
363
|
return {
|
|
358
364
|
...i,
|
|
359
|
-
yOffset:
|
|
365
|
+
yOffset: b,
|
|
360
366
|
autoScaleYLabels: k,
|
|
361
367
|
individualHeight: a,
|
|
362
|
-
scaleYLabels: i.autoScaling ? k :
|
|
363
|
-
individualScale: i.autoScaling ? y :
|
|
368
|
+
scaleYLabels: i.autoScaling ? k : _,
|
|
369
|
+
individualScale: i.autoScaling ? y : m,
|
|
364
370
|
individualMax: i.autoScaling ? v : G,
|
|
365
371
|
zeroPosition: i.autoScaling ? n : c,
|
|
366
372
|
plots: i.autoScaling ? D : R
|
|
@@ -376,46 +382,52 @@ const Ye = J(), Xe = {
|
|
|
376
382
|
lineSet() {
|
|
377
383
|
return this.activeSeriesWithStackRatios.filter((i) => i.type === "line").map((i) => {
|
|
378
384
|
this.checkAutoScaleError(i);
|
|
379
|
-
const s = Math.min(...i.absoluteValues.filter((d) => ![void 0, null].includes(d))),
|
|
380
|
-
ratios: i.absoluteValues.filter((d) => ![null, void 0].includes(d)).map((d) => (d - s) / (
|
|
385
|
+
const s = Math.min(...i.absoluteValues.filter((d) => ![void 0, null].includes(d))), h = Math.max(...i.absoluteValues.filter((d) => ![void 0, null].includes(d))) || 1, t = {
|
|
386
|
+
ratios: i.absoluteValues.filter((d) => ![null, void 0].includes(d)).map((d) => (d - s) / (h - s)),
|
|
381
387
|
valueMin: s,
|
|
382
|
-
valueMax:
|
|
388
|
+
valueMax: h
|
|
383
389
|
}, e = {
|
|
384
390
|
max: i.scaleMax || Math.max(...i.absoluteValues) || 1,
|
|
385
391
|
min: i.scaleMin || (Math.min(...i.absoluteValues) > 0 ? 0 : Math.min(...i.absoluteValues))
|
|
386
|
-
}, I = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, w = 1.0000001, L = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * w : e.max, I),
|
|
387
|
-
const W = this.mutableConfig.useIndividualScale ? (i.absoluteValues[
|
|
392
|
+
}, I = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, w = 1.0000001, L = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * w : e.max, I), m = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax === t.valueMin ? t.valueMax * w : t.valueMax, I), y = L.min >= 0 ? 0 : Math.abs(L.min), p = 0, S = L.max + Math.abs(y), G = m.max + Math.abs(p), v = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - i.cumulatedStackRatio) : 0, b = this.mutableConfig.isStacked ? this.drawingArea.height * i.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, a = this.drawingArea.bottom - v - b * y / S, c = this.drawingArea.bottom - v - b * p / G, n = i.series.map((d, F) => {
|
|
393
|
+
const W = this.mutableConfig.useIndividualScale ? (i.absoluteValues[F] + Math.abs(y)) / S : 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: i.absoluteValues[
|
|
392
|
-
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[
|
|
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: i.absoluteValues[F],
|
|
398
|
+
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
393
399
|
};
|
|
394
|
-
}), g = i.absoluteValues.map((d) =>
|
|
395
|
-
if (![void 0, null].includes(i.absoluteValues[
|
|
400
|
+
}), g = i.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 = i.series.map((d, F) => {
|
|
401
|
+
if (![void 0, null].includes(i.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: i.absoluteValues[
|
|
400
|
-
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[
|
|
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: i.absoluteValues[F],
|
|
406
|
+
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
401
407
|
};
|
|
402
|
-
}), H = this.createSmoothPath(n), D = this.createSmoothPath(R),
|
|
403
|
-
y: d >= 0 ? a -
|
|
404
|
-
value: d
|
|
405
|
-
|
|
406
|
-
|
|
408
|
+
}), H = this.createSmoothPath(n), D = this.createSmoothPath(R), _ = L.ticks.map((d) => ({
|
|
409
|
+
y: d >= 0 ? a - b * (d / S) : a + b * Math.abs(d) / S,
|
|
410
|
+
value: d,
|
|
411
|
+
prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
412
|
+
suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
413
|
+
datapoint: i
|
|
414
|
+
})), k = m.ticks.map((d) => {
|
|
415
|
+
const F = (d - m.min) / (m.max - m.min);
|
|
407
416
|
return {
|
|
408
|
-
y: d >= 0 ? c -
|
|
409
|
-
value: d
|
|
417
|
+
y: d >= 0 ? c - b * F : c + b * F,
|
|
418
|
+
value: d,
|
|
419
|
+
prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
420
|
+
suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
421
|
+
datapoint: i
|
|
410
422
|
};
|
|
411
423
|
});
|
|
412
424
|
return {
|
|
413
425
|
...i,
|
|
414
426
|
yOffset: v,
|
|
415
427
|
autoScaleYLabels: k,
|
|
416
|
-
individualHeight:
|
|
417
|
-
scaleYLabels: i.autoScaling ? k :
|
|
418
|
-
individualScale: i.autoScaling ?
|
|
428
|
+
individualHeight: b,
|
|
429
|
+
scaleYLabels: i.autoScaling ? k : _,
|
|
430
|
+
individualScale: i.autoScaling ? m : L,
|
|
419
431
|
individualMax: i.autoScaling ? G : S,
|
|
420
432
|
zeroPosition: i.autoScaling ? c : a,
|
|
421
433
|
curve: i.autoScaling ? D : H,
|
|
@@ -427,43 +439,49 @@ const Ye = J(), Xe = {
|
|
|
427
439
|
plotSet() {
|
|
428
440
|
return this.activeSeriesWithStackRatios.filter((i) => i.type === "plot").map((i) => {
|
|
429
441
|
this.checkAutoScaleError(i);
|
|
430
|
-
const s = Math.min(...i.absoluteValues.filter((
|
|
431
|
-
ratios: i.absoluteValues.filter((
|
|
442
|
+
const s = Math.min(...i.absoluteValues.filter((_) => ![null, void 0].includes(_))), h = Math.max(...i.absoluteValues.filter((_) => ![null, void 0].includes(_))) || 1, t = {
|
|
443
|
+
ratios: i.absoluteValues.filter((_) => ![null, void 0].includes(_)).map((_) => (_ - s) / (h - s)),
|
|
432
444
|
valueMin: s,
|
|
433
|
-
valueMax:
|
|
445
|
+
valueMax: h
|
|
434
446
|
}, e = {
|
|
435
447
|
max: i.scaleMax || Math.max(...i.absoluteValues) || 1,
|
|
436
448
|
min: i.scaleMin || Math.min(...i.absoluteValues) > 0 ? 0 : Math.min(...i.absoluteValues)
|
|
437
|
-
}, I = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, w = 1.0000001, L = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * w : e.max, I),
|
|
438
|
-
const d = this.mutableConfig.useIndividualScale ? (i.absoluteValues[k] + Math.abs(y)) / S : this.ratioToMax(
|
|
449
|
+
}, I = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, w = 1.0000001, L = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * w : e.max, I), m = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax === t.valueMin ? t.valueMax * w : t.valueMax, I), y = L.min >= 0 ? 0 : Math.abs(L.min), p = 0, S = L.max + y, G = m.max + Math.abs(p), v = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - i.cumulatedStackRatio) : 0, b = this.mutableConfig.isStacked ? this.drawingArea.height * i.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, a = this.drawingArea.bottom - v - b * y / S, c = this.drawingArea.bottom - v - b * p / G, n = i.series.map((_, k) => {
|
|
450
|
+
const d = this.mutableConfig.useIndividualScale ? (i.absoluteValues[k] + Math.abs(y)) / S : this.ratioToMax(_);
|
|
439
451
|
return {
|
|
440
452
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * k),
|
|
441
|
-
y: this.checkNaN(this.drawingArea.bottom - v -
|
|
453
|
+
y: this.checkNaN(this.drawingArea.bottom - v - b * d),
|
|
442
454
|
value: i.absoluteValues[k],
|
|
443
455
|
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[k] || ""
|
|
444
456
|
};
|
|
445
|
-
}), g = i.absoluteValues.map((
|
|
457
|
+
}), g = i.absoluteValues.map((_) => m.min >= 0 ? (_ - Math.abs(m.min)) / (m.max - Math.abs(m.min)) : (_ + Math.abs(m.min)) / (m.max + Math.abs(m.min))), R = i.series.map((_, k) => ({
|
|
446
458
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * k),
|
|
447
|
-
y: this.checkNaN(this.drawingArea.bottom - v - (
|
|
459
|
+
y: this.checkNaN(this.drawingArea.bottom - v - (b * g[k] || 0)),
|
|
448
460
|
value: i.absoluteValues[k],
|
|
449
461
|
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[k] || ""
|
|
450
|
-
})), H = L.ticks.map((
|
|
451
|
-
y:
|
|
452
|
-
value:
|
|
453
|
-
|
|
454
|
-
|
|
462
|
+
})), H = L.ticks.map((_) => ({
|
|
463
|
+
y: _ >= 0 ? a - b * (_ / S) : a + b * Math.abs(_) / S,
|
|
464
|
+
value: _,
|
|
465
|
+
prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
466
|
+
suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
467
|
+
datapoint: i
|
|
468
|
+
})), D = m.ticks.map((_) => {
|
|
469
|
+
const k = (_ - m.min) / (m.max - m.min);
|
|
455
470
|
return {
|
|
456
|
-
y:
|
|
457
|
-
value:
|
|
471
|
+
y: _ >= 0 ? c - b * k : c + b * k,
|
|
472
|
+
value: _,
|
|
473
|
+
prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
474
|
+
suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
475
|
+
datapoint: i
|
|
458
476
|
};
|
|
459
477
|
});
|
|
460
478
|
return {
|
|
461
479
|
...i,
|
|
462
480
|
yOffset: v,
|
|
463
481
|
autoScaleYLabels: D,
|
|
464
|
-
individualHeight:
|
|
482
|
+
individualHeight: b,
|
|
465
483
|
scaleYLabels: i.autoScaling ? D : H,
|
|
466
|
-
individualScale: i.autoScaling ?
|
|
484
|
+
individualScale: i.autoScaling ? m : L,
|
|
467
485
|
individualMax: i.autoScaling ? G : S,
|
|
468
486
|
zeroPosition: i.autoScaling ? c : a,
|
|
469
487
|
plots: i.autoScaling ? R : n
|
|
@@ -518,13 +536,13 @@ const Ye = J(), Xe = {
|
|
|
518
536
|
},
|
|
519
537
|
table() {
|
|
520
538
|
if (this.safeDataset.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
521
|
-
const i = this.relativeDataset.map((
|
|
522
|
-
label:
|
|
523
|
-
color:
|
|
524
|
-
type:
|
|
539
|
+
const i = this.relativeDataset.map((h) => ({
|
|
540
|
+
label: h.name,
|
|
541
|
+
color: h.color,
|
|
542
|
+
type: h.type
|
|
525
543
|
})), s = [];
|
|
526
|
-
return this.timeLabels.forEach((
|
|
527
|
-
const t = [
|
|
544
|
+
return this.timeLabels.forEach((h, f) => {
|
|
545
|
+
const t = [h];
|
|
528
546
|
this.relativeDataset.forEach((e) => {
|
|
529
547
|
t.push(this.canShowValue(e.absoluteValues[f]) ? Number(e.absoluteValues[f].toFixed(this.FINAL_CONFIG.table.rounding)) : "");
|
|
530
548
|
}), s.push(t);
|
|
@@ -537,7 +555,7 @@ const Ye = J(), Xe = {
|
|
|
537
555
|
const e = this.relativeDataset.map((I) => I.absoluteValues[t] ?? 0).reduce((I, w) => I + w, 0);
|
|
538
556
|
s.push([this.timeLabels[t] ?? "-"].concat(this.relativeDataset.map((I) => (I.absoluteValues[t] ?? 0).toFixed(this.FINAL_CONFIG.table.rounding))).concat((e ?? 0).toFixed(this.FINAL_CONFIG.table.rounding)));
|
|
539
557
|
}
|
|
540
|
-
const
|
|
558
|
+
const h = {
|
|
541
559
|
th: {
|
|
542
560
|
backgroundColor: this.FINAL_CONFIG.table.th.backgroundColor,
|
|
543
561
|
color: this.FINAL_CONFIG.table.th.color,
|
|
@@ -550,7 +568,7 @@ const Ye = J(), Xe = {
|
|
|
550
568
|
},
|
|
551
569
|
breakpoint: this.FINAL_CONFIG.table.responsiveBreakpoint
|
|
552
570
|
}, f = [this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map((t) => t.name)).concat(this.FINAL_CONFIG.table.columnNames.total);
|
|
553
|
-
return { head: i, body: s, config:
|
|
571
|
+
return { head: i, body: s, config: h, colNames: f };
|
|
554
572
|
},
|
|
555
573
|
dataTooltipSlot() {
|
|
556
574
|
return {
|
|
@@ -569,13 +587,13 @@ const Ye = J(), Xe = {
|
|
|
569
587
|
name: i.name,
|
|
570
588
|
color: i.color,
|
|
571
589
|
type: i.type,
|
|
572
|
-
value: i.absoluteValues.find((s,
|
|
590
|
+
value: i.absoluteValues.find((s, h) => h === this.selectedSerieIndex),
|
|
573
591
|
comments: i.comments || []
|
|
574
592
|
}));
|
|
575
593
|
},
|
|
576
594
|
tooltipContent() {
|
|
577
595
|
let i = "", s = this.selectedSeries.map((t) => t.value).filter((t) => this.isSafeValue(t) && t !== null).reduce((t, e) => Math.abs(t) + Math.abs(e), 0);
|
|
578
|
-
const
|
|
596
|
+
const h = this.timeLabels[this.selectedSerieIndex], f = this.FINAL_CONFIG.chart.tooltip.customFormat;
|
|
579
597
|
return this.isFunction(f) && this.functionReturnsString(() => f({
|
|
580
598
|
seriesIndex: this.selectedSerieIndex,
|
|
581
599
|
datapoint: this.selectedSeries,
|
|
@@ -592,7 +610,7 @@ const Ye = J(), Xe = {
|
|
|
592
610
|
lines: this.lineSet,
|
|
593
611
|
plots: this.plotSet,
|
|
594
612
|
config: this.FINAL_CONFIG
|
|
595
|
-
}) : (
|
|
613
|
+
}) : (h && (i += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${h}</div>`), this.selectedSeries.forEach((t) => {
|
|
596
614
|
if (this.isSafeValue(t.value)) {
|
|
597
615
|
let e = "", I = "";
|
|
598
616
|
switch (this.icons[t.type]) {
|
|
@@ -659,7 +677,9 @@ const Ye = J(), Xe = {
|
|
|
659
677
|
yLabels() {
|
|
660
678
|
return this.niceScale.ticks.map((i) => ({
|
|
661
679
|
y: i >= 0 ? this.zero - this.drawingArea.height * this.ratioToMax(i) : this.zero + this.drawingArea.height * this.ratioToMax(Math.abs(i)),
|
|
662
|
-
value: i
|
|
680
|
+
value: i,
|
|
681
|
+
prefix: this.FINAL_CONFIG.chart.labels.prefix,
|
|
682
|
+
suffix: this.FINAL_CONFIG.chart.labels.suffix
|
|
663
683
|
}));
|
|
664
684
|
},
|
|
665
685
|
zero() {
|
|
@@ -681,21 +701,21 @@ const Ye = J(), Xe = {
|
|
|
681
701
|
assignStackRatios: se,
|
|
682
702
|
calcLinearProgression: ne,
|
|
683
703
|
calculateNiceScaleWithExactExtremes: ce,
|
|
684
|
-
checkNaN:
|
|
685
|
-
closestDecimal:
|
|
704
|
+
checkNaN: he,
|
|
705
|
+
closestDecimal: oe,
|
|
686
706
|
convertColorToHex: de,
|
|
687
707
|
convertConfigColors: ue,
|
|
688
708
|
convertCustomPalette: ge,
|
|
689
709
|
createCsvContent: fe,
|
|
690
|
-
createSmoothPath:
|
|
691
|
-
createTSpans:
|
|
710
|
+
createSmoothPath: Ne,
|
|
711
|
+
createTSpans: me,
|
|
692
712
|
dataLabel: Z,
|
|
693
713
|
downloadCsv: Ie,
|
|
694
|
-
error:
|
|
695
|
-
functionReturnsString:
|
|
696
|
-
hasDeepProperty:
|
|
714
|
+
error: xe,
|
|
715
|
+
functionReturnsString: be,
|
|
716
|
+
hasDeepProperty: Fe,
|
|
697
717
|
img: j,
|
|
698
|
-
isFunction:
|
|
718
|
+
isFunction: _e,
|
|
699
719
|
isSafeValue: ye,
|
|
700
720
|
objectIsEmpty: Ae,
|
|
701
721
|
pdf: Q,
|
|
@@ -733,9 +753,9 @@ const Ye = J(), Xe = {
|
|
|
733
753
|
index: s
|
|
734
754
|
});
|
|
735
755
|
}), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((i) => {
|
|
736
|
-
i.series.forEach((s,
|
|
756
|
+
i.series.forEach((s, h) => {
|
|
737
757
|
this.isSafeValue(s) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
738
|
-
-----> The serie '${i.name}' contains the value '${s}' at index ${
|
|
758
|
+
-----> The serie '${i.name}' contains the value '${s}' at index ${h}.
|
|
739
759
|
'${s}' was converted to null to allow the chart to display.`);
|
|
740
760
|
});
|
|
741
761
|
}), this.mutableConfig = {
|
|
@@ -747,15 +767,15 @@ const Ye = J(), Xe = {
|
|
|
747
767
|
isStacked: this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,
|
|
748
768
|
useIndividualScale: this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale
|
|
749
769
|
}, this.FINAL_CONFIG.responsive) {
|
|
750
|
-
const s = this.$refs.chart.parentNode, { height:
|
|
770
|
+
const s = this.$refs.chart.parentNode, { height: h, width: f } = s.getBoundingClientRect();
|
|
751
771
|
let t = null, e = 0;
|
|
752
772
|
this.FINAL_CONFIG.chart.title.show && (t = this.$refs.chartTitle, e = t.getBoundingClientRect().height);
|
|
753
773
|
let I = null, w = 0;
|
|
754
774
|
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (I = this.$refs.chartSlicer.$el, w = I.getBoundingClientRect().height);
|
|
755
|
-
let L = null,
|
|
756
|
-
this.FINAL_CONFIG.chart.legend.show && (L = this.$refs.chartLegend,
|
|
757
|
-
for (const S of
|
|
758
|
-
this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (w = this.$refs.chartSlicer.$el.getBoundingClientRect().height), this.$refs.chartLegend && (
|
|
775
|
+
let L = null, m = 0;
|
|
776
|
+
this.FINAL_CONFIG.chart.legend.show && (L = this.$refs.chartLegend, m = L.getBoundingClientRect().height), this.height = h - e - m - w, this.width = f, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes(), new ResizeObserver((p) => {
|
|
777
|
+
for (const S of p)
|
|
778
|
+
this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (w = this.$refs.chartSlicer.$el.getBoundingClientRect().height), this.$refs.chartLegend && (m = this.$refs.chartLegend.getBoundingClientRect().height), this.height = S.contentBoxSize[0].blockSize - e - m - w - 24, this.width = S.contentBoxSize[0].inlineSize, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
|
|
759
779
|
}).observe(s);
|
|
760
780
|
} else
|
|
761
781
|
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;
|
|
@@ -819,25 +839,25 @@ const Ye = J(), Xe = {
|
|
|
819
839
|
},
|
|
820
840
|
createArea(i) {
|
|
821
841
|
if (!i[0]) return [-10, -10, "", -10, -10];
|
|
822
|
-
const s = { x: i[0].x, y: this.zero },
|
|
842
|
+
const s = { x: i[0].x, y: this.zero }, h = { x: i.at(-1).x, y: this.zero }, f = [];
|
|
823
843
|
return i.forEach((t) => {
|
|
824
844
|
f.push(`${t.x},${t.y} `);
|
|
825
|
-
}), [s.x, s.y, ...f,
|
|
845
|
+
}), [s.x, s.y, ...f, h.x, h.y].toString();
|
|
826
846
|
},
|
|
827
847
|
createIndividualArea(i, s) {
|
|
828
848
|
if (!i[0]) return [-10, -10, "", -10, -10];
|
|
829
|
-
const
|
|
849
|
+
const h = { x: i[0] ? i[0].x : Math.min(...i.filter((e) => !!e).map((e) => e.x)), y: s }, f = { x: i.at(-1) ? i.at(-1).x : Math.min(...i.filter((e) => !!e).map((e) => e.x)), y: s }, t = [];
|
|
830
850
|
return i.filter((e) => !!e).forEach((e) => {
|
|
831
851
|
t.push(`${e.x},${e.y} `);
|
|
832
|
-
}), [
|
|
852
|
+
}), [h.x, h.y, ...t, f.x, f.y].toString();
|
|
833
853
|
},
|
|
834
854
|
createStar: X,
|
|
835
855
|
createPolygonPath: P,
|
|
836
856
|
fillArray(i, s) {
|
|
837
|
-
let
|
|
857
|
+
let h = Array(i).fill(0);
|
|
838
858
|
for (let f = 0; f < s.length && f < i; f += 1)
|
|
839
|
-
|
|
840
|
-
return
|
|
859
|
+
h[f] = s[f];
|
|
860
|
+
return h;
|
|
841
861
|
},
|
|
842
862
|
refreshSlicer() {
|
|
843
863
|
this.slicer = {
|
|
@@ -867,12 +887,12 @@ const Ye = J(), Xe = {
|
|
|
867
887
|
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(i);
|
|
868
888
|
},
|
|
869
889
|
findClosestValue(i, s) {
|
|
870
|
-
let
|
|
890
|
+
let h = s[0], f = Math.abs(i - s[0]);
|
|
871
891
|
for (let t = 1; t < s.length; t += 1) {
|
|
872
892
|
const e = Math.abs(i - s[t]);
|
|
873
|
-
e < f && s[t] < i && (
|
|
893
|
+
e < f && s[t] < i && (h = s[t], f = e);
|
|
874
894
|
}
|
|
875
|
-
return
|
|
895
|
+
return h;
|
|
876
896
|
},
|
|
877
897
|
ratioToMax(i) {
|
|
878
898
|
return i / (this.canShowValue(this.absoluteMax) ? this.absoluteMax : 1);
|
|
@@ -934,7 +954,7 @@ const Ye = J(), Xe = {
|
|
|
934
954
|
}, 100);
|
|
935
955
|
},
|
|
936
956
|
generateCsv() {
|
|
937
|
-
const i = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], s = ["", ...this.table.head.map((e) => e.label)],
|
|
957
|
+
const i = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], s = ["", ...this.table.head.map((e) => e.label)], h = this.table.body, f = i.concat([s]).concat(h), t = this.createCsvContent(f);
|
|
938
958
|
this.downloadCsv({ csvContent: t, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
|
|
939
959
|
},
|
|
940
960
|
showSpinnerImage() {
|
|
@@ -952,7 +972,7 @@ const Ye = J(), Xe = {
|
|
|
952
972
|
}, 100);
|
|
953
973
|
}
|
|
954
974
|
}
|
|
955
|
-
}, qe = ["id"], Ze = ["viewBox"], Ue = { key: 0 }, Je = { class: "vue-ui-xy-grid" }, Qe = ["stroke", "x1", "x2", "y1", "y2"], Ke = ["stroke", "x1", "x2", "y1", "y2"], je = { key: 1 }, $e = ["x1", "x2", "y1", "y2", "stroke"], et = ["x1", "x2", "y1", "y2", "stroke"], tt = ["x1", "x2", "y1", "y2", "stroke"], at = { key: 3 }, it = ["x1", "x2", "y1", "y2", "stroke"], lt = ["id"], rt = ["stop-color"], st = ["stop-color"], nt = ["stop-color"], ct = ["id"],
|
|
975
|
+
}, qe = ["id"], Ze = ["viewBox"], Ue = { key: 0 }, Je = { class: "vue-ui-xy-grid" }, Qe = ["stroke", "x1", "x2", "y1", "y2"], Ke = ["stroke", "x1", "x2", "y1", "y2"], je = { key: 1 }, $e = ["x1", "x2", "y1", "y2", "stroke"], et = ["x1", "x2", "y1", "y2", "stroke"], tt = ["x1", "x2", "y1", "y2", "stroke"], at = { key: 3 }, it = ["x1", "x2", "y1", "y2", "stroke"], lt = ["id"], rt = ["stop-color"], st = ["stop-color"], nt = ["stop-color"], ct = ["id"], ht = ["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"], zt = { key: 2 }, pt = ["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%" } }, ca = { key: 3 }, ha = ["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 }, za = ["text-anchor", "font-size", "fill", "transform"], pa = ["x", "y", "height", "width", "onMouseenter", "onClick"], Ma = { key: 10 }, Pa = ["x", "y"], Ta = ["cx", "cy", "r", "fill"], Va = {
|
|
956
976
|
key: 3,
|
|
957
977
|
class: "vue-data-ui-watermark"
|
|
958
978
|
}, Ra = ["onClick"], Da = {
|
|
@@ -972,11 +992,11 @@ const Ye = J(), Xe = {
|
|
|
972
992
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
973
993
|
"data-html2canvas-ignore": ""
|
|
974
994
|
}, Xa = ["innerHTML"];
|
|
975
|
-
function qa(i, s,
|
|
976
|
-
const I = T("Title"), w = T("UserOptions"), L = T("Shape"),
|
|
995
|
+
function qa(i, s, h, f, t, e) {
|
|
996
|
+
const I = T("Title"), w = T("UserOptions"), L = T("Shape"), m = T("Skeleton"), y = T("Slicer"), p = T("Tooltip"), S = T("BaseIcon"), G = T("TableSparkline"), v = T("DataTable"), b = T("Accordion");
|
|
977
997
|
return l(), r("div", {
|
|
978
998
|
id: `vue-ui-xy_${t.uniqueId}`,
|
|
979
|
-
class:
|
|
999
|
+
class: M(`vue-ui-xy ${t.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
980
1000
|
ref: "chart",
|
|
981
1001
|
style: A(`background:${e.FINAL_CONFIG.chart.backgroundColor}; color:${e.FINAL_CONFIG.chart.color};width:100%;${e.FINAL_CONFIG.chart.title.text ? "" : "padding-top:36px"};font-family:${e.FINAL_CONFIG.chart.fontFamily};${e.FINAL_CONFIG.responsive ? "height: 100%" : ""}`)
|
|
982
1002
|
}, [
|
|
@@ -999,7 +1019,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
999
1019
|
}
|
|
1000
1020
|
}
|
|
1001
1021
|
}, null, 8, ["config"]))
|
|
1002
|
-
], 4)) :
|
|
1022
|
+
], 4)) : o("", !0),
|
|
1003
1023
|
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset ? (l(), V(w, {
|
|
1004
1024
|
ref: "defails",
|
|
1005
1025
|
key: `user_options_${t.step}`,
|
|
@@ -1014,7 +1034,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
1014
1034
|
hasImg: e.FINAL_CONFIG.chart.userOptions.buttons.img,
|
|
1015
1035
|
hasLabel: e.FINAL_CONFIG.chart.userOptions.buttons.labels,
|
|
1016
1036
|
hasTable: e.FINAL_CONFIG.chart.userOptions.buttons.table,
|
|
1017
|
-
hasStack:
|
|
1037
|
+
hasStack: h.dataset.length > 1 && e.FINAL_CONFIG.chart.userOptions.buttons.stack,
|
|
1018
1038
|
hasFullscreen: e.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,
|
|
1019
1039
|
isStacked: t.mutableConfig.isStacked,
|
|
1020
1040
|
isFullscreen: t.isFullscreen,
|
|
@@ -1086,11 +1106,11 @@ function qa(i, s, o, f, t, e) {
|
|
|
1086
1106
|
]),
|
|
1087
1107
|
key: "7"
|
|
1088
1108
|
} : 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"])) :
|
|
1109
|
+
]), 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
1110
|
e.isDataset ? (l(), r("svg", {
|
|
1091
1111
|
key: 2,
|
|
1092
1112
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1093
|
-
class:
|
|
1113
|
+
class: M([{ "vue-data-ui-fullscreen--on": t.isFullscreen, "vue-data-ui-fulscreen--off": !t.isFullscreen }, "vue-ui-xy-svg"]),
|
|
1094
1114
|
width: "100%",
|
|
1095
1115
|
viewBox: t.viewBox,
|
|
1096
1116
|
style: A(`background:${e.FINAL_CONFIG.chart.backgroundColor}; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
@@ -1106,9 +1126,9 @@ function qa(i, s, o, f, t, e) {
|
|
|
1106
1126
|
y1: e.drawingArea.bottom,
|
|
1107
1127
|
y2: e.drawingArea.bottom,
|
|
1108
1128
|
"stroke-linecap": "round"
|
|
1109
|
-
}, null, 8, Qe)) :
|
|
1110
|
-
t.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (l(!0), r(
|
|
1111
|
-
a.id === t.selectedScale && a.yLabels.length ? (l(!0), r(
|
|
1129
|
+
}, null, 8, Qe)) : o("", !0),
|
|
1130
|
+
t.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (l(!0), r(N, { key: 2 }, x(e.allScales, (a) => (l(), r("g", null, [
|
|
1131
|
+
a.id === t.selectedScale && a.yLabels.length ? (l(!0), r(N, { key: 0 }, x(a.yLabels, (c) => (l(), r("line", {
|
|
1112
1132
|
x1: e.drawingArea.left + e.xPadding,
|
|
1113
1133
|
x2: e.drawingArea.right - e.xPadding,
|
|
1114
1134
|
y1: e.checkNaN(c.y),
|
|
@@ -1116,7 +1136,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
1116
1136
|
stroke: a.color,
|
|
1117
1137
|
"stroke-width": 0.5,
|
|
1118
1138
|
"stroke-linecap": "round"
|
|
1119
|
-
}, null, 8, et))), 256)) : a.yLabels.length ? (l(!0), r(
|
|
1139
|
+
}, null, 8, et))), 256)) : a.yLabels.length ? (l(!0), r(N, { key: 1 }, x(a.yLabels, (c) => (l(), r("line", {
|
|
1120
1140
|
x1: e.drawingArea.left + e.xPadding,
|
|
1121
1141
|
x2: e.drawingArea.right - e.xPadding,
|
|
1122
1142
|
y1: e.checkNaN(c.y),
|
|
@@ -1124,8 +1144,8 @@ function qa(i, s, o, f, t, e) {
|
|
|
1124
1144
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1125
1145
|
"stroke-width": 0.5,
|
|
1126
1146
|
"stroke-linecap": "round"
|
|
1127
|
-
}, null, 8, tt))), 256)) :
|
|
1128
|
-
]))), 256)) :
|
|
1147
|
+
}, null, 8, tt))), 256)) : o("", !0)
|
|
1148
|
+
]))), 256)) : o("", !0) : (l(), r(N, { key: 1 }, [
|
|
1129
1149
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (l(), r("line", {
|
|
1130
1150
|
key: 0,
|
|
1131
1151
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
@@ -1135,9 +1155,9 @@ function qa(i, s, o, f, t, e) {
|
|
|
1135
1155
|
y1: e.drawingArea.top,
|
|
1136
1156
|
y2: e.drawingArea.bottom,
|
|
1137
1157
|
"stroke-linecap": "round"
|
|
1138
|
-
}, null, 8, Ke)) :
|
|
1158
|
+
}, null, 8, Ke)) : o("", !0),
|
|
1139
1159
|
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (l(), r("g", je, [
|
|
1140
|
-
(l(!0), r(
|
|
1160
|
+
(l(!0), r(N, null, x(e.yLabels, (a) => (l(), r("line", {
|
|
1141
1161
|
x1: e.drawingArea.left + e.xPadding,
|
|
1142
1162
|
x2: e.drawingArea.right - e.xPadding,
|
|
1143
1163
|
y1: e.checkNaN(a.y),
|
|
@@ -1146,10 +1166,10 @@ function qa(i, s, o, f, t, e) {
|
|
|
1146
1166
|
"stroke-width": 0.5,
|
|
1147
1167
|
"stroke-linecap": "round"
|
|
1148
1168
|
}, null, 8, $e))), 256))
|
|
1149
|
-
])) :
|
|
1169
|
+
])) : o("", !0)
|
|
1150
1170
|
], 64)),
|
|
1151
1171
|
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (l(), r("g", at, [
|
|
1152
|
-
(l(!0), r(
|
|
1172
|
+
(l(!0), r(N, null, x(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (a, c) => (l(), r("line", {
|
|
1153
1173
|
key: `grid_vertical_line_${c}`,
|
|
1154
1174
|
x1: e.drawingArea.width / e.maxSeries * c + e.drawingArea.left + e.xPadding,
|
|
1155
1175
|
x2: e.drawingArea.width / e.maxSeries * c + e.drawingArea.left + e.xPadding,
|
|
@@ -1158,9 +1178,9 @@ function qa(i, s, o, f, t, e) {
|
|
|
1158
1178
|
"stroke-width": "0.5",
|
|
1159
1179
|
stroke: e.FINAL_CONFIG.chart.grid.stroke
|
|
1160
1180
|
}, null, 8, it))), 128))
|
|
1161
|
-
])) :
|
|
1181
|
+
])) : o("", !0)
|
|
1162
1182
|
]),
|
|
1163
|
-
(l(!0), r(
|
|
1183
|
+
(l(!0), r(N, null, x(e.barSet, (a, c) => (l(), r("defs", {
|
|
1164
1184
|
key: `def_rect_${c}`
|
|
1165
1185
|
}, [
|
|
1166
1186
|
u("linearGradient", {
|
|
@@ -1189,18 +1209,18 @@ function qa(i, s, o, f, t, e) {
|
|
|
1189
1209
|
u("stop", {
|
|
1190
1210
|
offset: "0%",
|
|
1191
1211
|
"stop-color": `${e.shiftHue(a.color, 0.05)}`
|
|
1192
|
-
}, null, 8,
|
|
1212
|
+
}, null, 8, ht),
|
|
1193
1213
|
u("stop", {
|
|
1194
1214
|
offset: "38%",
|
|
1195
1215
|
"stop-color": `${e.shiftHue(a.color, 0.02)}`
|
|
1196
|
-
}, null, 8,
|
|
1216
|
+
}, null, 8, ot),
|
|
1197
1217
|
u("stop", {
|
|
1198
1218
|
offset: "100%",
|
|
1199
1219
|
"stop-color": a.color
|
|
1200
1220
|
}, null, 8, dt)
|
|
1201
1221
|
], 8, ct)
|
|
1202
1222
|
]))), 128)),
|
|
1203
|
-
(l(!0), r(
|
|
1223
|
+
(l(!0), r(N, null, x(e.plotSet, (a, c) => (l(), r("defs", {
|
|
1204
1224
|
key: `def_plot_${c}`
|
|
1205
1225
|
}, [
|
|
1206
1226
|
u("radialGradient", {
|
|
@@ -1221,7 +1241,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
1221
1241
|
}, null, 8, ft)
|
|
1222
1242
|
], 8, ut)
|
|
1223
1243
|
]))), 128)),
|
|
1224
|
-
(l(!0), r(
|
|
1244
|
+
(l(!0), r(N, null, x(e.lineSet, (a, c) => (l(), r("defs", {
|
|
1225
1245
|
key: `def_line_${c}`
|
|
1226
1246
|
}, [
|
|
1227
1247
|
u("radialGradient", {
|
|
@@ -1235,12 +1255,12 @@ function qa(i, s, o, f, t, e) {
|
|
|
1235
1255
|
u("stop", {
|
|
1236
1256
|
offset: "0%",
|
|
1237
1257
|
"stop-color": `${e.shiftHue(a.color, 0.05)}`
|
|
1238
|
-
}, null, 8,
|
|
1258
|
+
}, null, 8, mt),
|
|
1239
1259
|
u("stop", {
|
|
1240
1260
|
offset: "100%",
|
|
1241
1261
|
"stop-color": a.color
|
|
1242
1262
|
}, null, 8, It)
|
|
1243
|
-
], 8,
|
|
1263
|
+
], 8, Nt),
|
|
1244
1264
|
u("linearGradient", {
|
|
1245
1265
|
id: `areaGradient_${c}_${t.uniqueId}`,
|
|
1246
1266
|
x1: "0%",
|
|
@@ -1251,15 +1271,15 @@ function qa(i, s, o, f, t, e) {
|
|
|
1251
1271
|
u("stop", {
|
|
1252
1272
|
offset: "0%",
|
|
1253
1273
|
"stop-color": `${e.setOpacity(e.shiftHue(a.color, 0.03), e.FINAL_CONFIG.line.area.opacity)}`
|
|
1254
|
-
}, null, 8,
|
|
1274
|
+
}, null, 8, bt),
|
|
1255
1275
|
u("stop", {
|
|
1256
1276
|
offset: "100%",
|
|
1257
1277
|
"stop-color": `${e.setOpacity(a.color, e.FINAL_CONFIG.line.area.opacity)}`
|
|
1258
|
-
}, null, 8,
|
|
1259
|
-
], 8,
|
|
1278
|
+
}, null, 8, Ft)
|
|
1279
|
+
], 8, xt)
|
|
1260
1280
|
]))), 128)),
|
|
1261
|
-
(l(!0), r(
|
|
1262
|
-
a.show ? (l(), r(
|
|
1281
|
+
(l(!0), r(N, null, x(e.highlightAreas, (a) => (l(), r("g", null, [
|
|
1282
|
+
a.show ? (l(), r(N, { key: 0 }, [
|
|
1263
1283
|
u("rect", {
|
|
1264
1284
|
style: { transition: "none" },
|
|
1265
1285
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (a.from - t.slicer.start),
|
|
@@ -1267,7 +1287,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
1267
1287
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1268
1288
|
width: e.drawingArea.width / e.maxSeries * a.span < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries * a.span,
|
|
1269
1289
|
fill: e.setOpacity(a.color, a.opacity)
|
|
1270
|
-
}, null, 8,
|
|
1290
|
+
}, null, 8, _t),
|
|
1271
1291
|
a.caption.text ? (l(), r("foreignObject", {
|
|
1272
1292
|
key: 0,
|
|
1273
1293
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (a.from - t.slicer.start) - (a.caption.width === "auto" ? 0 : a.caption.width / 2 - e.drawingArea.width / e.maxSeries * a.span / 2),
|
|
@@ -1279,11 +1299,11 @@ function qa(i, s, o, f, t, e) {
|
|
|
1279
1299
|
u("div", {
|
|
1280
1300
|
style: A(`padding:${a.caption.padding}px;text-align:${a.caption.textAlign};font-size:${a.caption.fontSize}px;color:${a.caption.color};font-weight:${a.caption.bold ? "bold" : "normal"}`)
|
|
1281
1301
|
}, C(a.caption.text), 5)
|
|
1282
|
-
], 8, yt)) :
|
|
1283
|
-
], 64)) :
|
|
1302
|
+
], 8, yt)) : o("", !0)
|
|
1303
|
+
], 64)) : o("", !0)
|
|
1284
1304
|
]))), 256)),
|
|
1285
1305
|
u("g", null, [
|
|
1286
|
-
(l(!0), r(
|
|
1306
|
+
(l(!0), r(N, null, x(e.maxSeries, (a, c) => (l(), r("g", {
|
|
1287
1307
|
key: `tooltip_trap_${c}`
|
|
1288
1308
|
}, [
|
|
1289
1309
|
u("rect", {
|
|
@@ -1295,12 +1315,12 @@ function qa(i, s, o, f, t, e) {
|
|
|
1295
1315
|
}, null, 8, At)
|
|
1296
1316
|
]))), 128))
|
|
1297
1317
|
]),
|
|
1298
|
-
e.barSet.length ? (l(!0), r(
|
|
1318
|
+
e.barSet.length ? (l(!0), r(N, { key: 0 }, x(e.barSet, (a, c) => (l(), r("g", {
|
|
1299
1319
|
key: `serie_bar_${c}`,
|
|
1300
|
-
class:
|
|
1320
|
+
class: M(`serie_bar_${c}`),
|
|
1301
1321
|
style: A(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1302
1322
|
}, [
|
|
1303
|
-
(l(!0), r(
|
|
1323
|
+
(l(!0), r(N, null, x(a.plots, (n, g) => (l(), r("g", {
|
|
1304
1324
|
key: `bar_plot_${c}_${g}`
|
|
1305
1325
|
}, [
|
|
1306
1326
|
e.canShowValue(n.value) ? (l(), r("rect", {
|
|
@@ -1313,7 +1333,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
1313
1333
|
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${c}_${t.uniqueId})` : `url(#rectGradient_neg_${c}_${t.uniqueId})` : a.color,
|
|
1314
1334
|
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? a.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1315
1335
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1316
|
-
}, null, 8, Lt)) :
|
|
1336
|
+
}, null, 8, Lt)) : o("", !0),
|
|
1317
1337
|
n.comment && e.FINAL_CONFIG.chart.comments.show ? (l(), r("foreignObject", {
|
|
1318
1338
|
key: 1,
|
|
1319
1339
|
style: { overflow: "visible" },
|
|
@@ -1325,7 +1345,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
1325
1345
|
O(i.$slots, "plot-comment", {
|
|
1326
1346
|
plot: { ...n, color: a.color }
|
|
1327
1347
|
}, void 0, !0)
|
|
1328
|
-
], 8, Ct)) :
|
|
1348
|
+
], 8, Ct)) : o("", !0)
|
|
1329
1349
|
]))), 128)),
|
|
1330
1350
|
Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (l(), r("g", St, [
|
|
1331
1351
|
u("defs", null, [
|
|
@@ -1353,7 +1373,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
1353
1373
|
stroke: a.color,
|
|
1354
1374
|
"stroke-dasharray": 2,
|
|
1355
1375
|
"marker-end": `url(#bar_arrow_${c})`
|
|
1356
|
-
}, null, 8, Ot)) :
|
|
1376
|
+
}, null, 8, Ot)) : o("", !0),
|
|
1357
1377
|
a.plots.length > 1 ? (l(), r("text", {
|
|
1358
1378
|
key: 1,
|
|
1359
1379
|
"text-anchor": "middle",
|
|
@@ -1365,9 +1385,9 @@ function qa(i, s, o, f, t, e) {
|
|
|
1365
1385
|
v: e.calcLinearProgression(a.plots).trend * 100,
|
|
1366
1386
|
s: "%",
|
|
1367
1387
|
r: 2
|
|
1368
|
-
})), 9, vt)) :
|
|
1369
|
-
])) :
|
|
1370
|
-
], 6))), 128)) :
|
|
1388
|
+
})), 9, vt)) : o("", !0)
|
|
1389
|
+
])) : o("", !0)
|
|
1390
|
+
], 6))), 128)) : o("", !0),
|
|
1371
1391
|
!t.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (l(), r("line", {
|
|
1372
1392
|
key: 1,
|
|
1373
1393
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
@@ -1377,7 +1397,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
1377
1397
|
y1: e.checkNaN(e.zero),
|
|
1378
1398
|
y2: e.checkNaN(e.zero),
|
|
1379
1399
|
"stroke-linecap": "round"
|
|
1380
|
-
}, null, 8, Gt)) :
|
|
1400
|
+
}, null, 8, Gt)) : o("", !0),
|
|
1381
1401
|
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(t.selectedSerieIndex) || t.selectedMinimapIndex !== null) ? (l(), r("g", zt, [
|
|
1382
1402
|
u("line", {
|
|
1383
1403
|
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (t.selectedSerieIndex || t.selectedMinimapIndex) + e.drawingArea.width / e.maxSeries / 2,
|
|
@@ -1389,8 +1409,8 @@ function qa(i, s, o, f, t, e) {
|
|
|
1389
1409
|
"stroke-dasharray": e.FINAL_CONFIG.chart.highlighter.lineDasharray,
|
|
1390
1410
|
"stroke-linecap": "round",
|
|
1391
1411
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
1392
|
-
}, null, 8,
|
|
1393
|
-
])) :
|
|
1412
|
+
}, null, 8, pt)
|
|
1413
|
+
])) : o("", !0),
|
|
1394
1414
|
u("g", null, [
|
|
1395
1415
|
u("rect", {
|
|
1396
1416
|
style: { transition: "none" },
|
|
@@ -1399,7 +1419,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
1399
1419
|
width: e.FINAL_CONFIG.chart.padding.left - 1 + e.xPadding,
|
|
1400
1420
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1401
1421
|
fill: e.FINAL_CONFIG.chart.backgroundColor
|
|
1402
|
-
}, null, 8,
|
|
1422
|
+
}, null, 8, Mt),
|
|
1403
1423
|
u("rect", {
|
|
1404
1424
|
style: { transition: "none" },
|
|
1405
1425
|
x: e.drawingArea.right + 1 - e.xPadding,
|
|
@@ -1422,10 +1442,10 @@ function qa(i, s, o, f, t, e) {
|
|
|
1422
1442
|
"stroke-linecap": e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,
|
|
1423
1443
|
"stroke-linejoin": e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,
|
|
1424
1444
|
"stroke-dasharray": e.FINAL_CONFIG.chart.grid.frame.strokeDasharray
|
|
1425
|
-
}, null, 8, Tt)) :
|
|
1445
|
+
}, null, 8, Tt)) : o("", !0),
|
|
1426
1446
|
e.FINAL_CONFIG.chart.grid.labels.show ? (l(), r("g", Vt, [
|
|
1427
|
-
t.mutableConfig.useIndividualScale ? (l(), r(
|
|
1428
|
-
(l(!0), r(
|
|
1447
|
+
t.mutableConfig.useIndividualScale ? (l(), r(N, { key: 0 }, [
|
|
1448
|
+
(l(!0), r(N, null, x(e.allScales, (a) => (l(), r("g", null, [
|
|
1429
1449
|
u("line", {
|
|
1430
1450
|
x1: a.x + e.xPadding,
|
|
1431
1451
|
x2: a.x + e.xPadding,
|
|
@@ -1437,7 +1457,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
1437
1457
|
style: A(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1438
1458
|
}, null, 12, Rt)
|
|
1439
1459
|
]))), 256)),
|
|
1440
|
-
(l(!0), r(
|
|
1460
|
+
(l(!0), r(N, null, x(e.allScales, (a) => (l(), r("g", {
|
|
1441
1461
|
style: A(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1442
1462
|
}, [
|
|
1443
1463
|
u("text", {
|
|
@@ -1446,7 +1466,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
1446
1466
|
"text-anchor": "middle",
|
|
1447
1467
|
transform: `translate(${a.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + 5}, ${t.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset - a.individualHeight / 2 : e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`
|
|
1448
1468
|
}, C(a.name) + " " + C(a.scaleLabel ? `- ${a.scaleLabel}` : ""), 9, Dt),
|
|
1449
|
-
(l(!0), r(
|
|
1469
|
+
(l(!0), r(N, null, x(a.yLabels, (c, n) => (l(), r("line", {
|
|
1450
1470
|
x1: a.x - 3 + e.xPadding,
|
|
1451
1471
|
x2: a.x + e.xPadding,
|
|
1452
1472
|
y1: e.checkNaN(c.y),
|
|
@@ -1455,7 +1475,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
1455
1475
|
"stroke-width": 1,
|
|
1456
1476
|
"stroke-linecap": "round"
|
|
1457
1477
|
}, null, 8, Ht))), 256)),
|
|
1458
|
-
(l(!0), r(
|
|
1478
|
+
(l(!0), r(N, null, x(a.yLabels, (c, n) => (l(), r("text", {
|
|
1459
1479
|
x: a.x - 5 + e.xPadding,
|
|
1460
1480
|
y: e.checkNaN(c.y) + t.fontSizes.dataLabels / 3,
|
|
1461
1481
|
"font-size": t.fontSizes.dataLabels,
|
|
@@ -1465,14 +1485,15 @@ function qa(i, s, o, f, t, e) {
|
|
|
1465
1485
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1466
1486
|
c.value,
|
|
1467
1487
|
e.dataLabel({
|
|
1468
|
-
p:
|
|
1488
|
+
p: c.prefix,
|
|
1469
1489
|
v: c.value,
|
|
1470
|
-
s:
|
|
1490
|
+
s: c.suffix,
|
|
1471
1491
|
r: 1
|
|
1472
|
-
})
|
|
1492
|
+
}),
|
|
1493
|
+
{ datapoint: c.datapoint, seriesIndex: n }
|
|
1473
1494
|
)), 9, Wt))), 256))
|
|
1474
1495
|
], 4))), 256))
|
|
1475
|
-
], 64)) : (l(!0), r(
|
|
1496
|
+
], 64)) : (l(!0), r(N, { key: 1 }, x(e.yLabels, (a, c) => (l(), r("g", {
|
|
1476
1497
|
key: `yLabel_${c}`
|
|
1477
1498
|
}, [
|
|
1478
1499
|
e.canShowValue(a) && a.value >= e.niceScale.min && a.value <= e.niceScale.max ? (l(), r("line", {
|
|
@@ -1484,7 +1505,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
1484
1505
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1485
1506
|
"stroke-width": "1",
|
|
1486
1507
|
"stroke-linecap": "round"
|
|
1487
|
-
}, null, 8, Et)) :
|
|
1508
|
+
}, null, 8, Et)) : o("", !0),
|
|
1488
1509
|
a.value >= e.niceScale.min && a.value <= e.niceScale.max ? (l(), r("text", {
|
|
1489
1510
|
key: 1,
|
|
1490
1511
|
x: e.drawingArea.left - 7 + e.xPadding,
|
|
@@ -1496,20 +1517,20 @@ function qa(i, s, o, f, t, e) {
|
|
|
1496
1517
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1497
1518
|
a.value,
|
|
1498
1519
|
e.dataLabel({
|
|
1499
|
-
p:
|
|
1520
|
+
p: a.prefix,
|
|
1500
1521
|
v: a.value,
|
|
1501
|
-
s:
|
|
1522
|
+
s: a.suffix,
|
|
1502
1523
|
r: 1
|
|
1503
1524
|
})
|
|
1504
|
-
) : ""), 9, Bt)) :
|
|
1525
|
+
) : ""), 9, Bt)) : o("", !0)
|
|
1505
1526
|
]))), 128))
|
|
1506
|
-
])) :
|
|
1507
|
-
(l(!0), r(
|
|
1527
|
+
])) : o("", !0),
|
|
1528
|
+
(l(!0), r(N, null, x(e.plotSet, (a, c) => (l(), r("g", {
|
|
1508
1529
|
key: `serie_plot_${c}`,
|
|
1509
|
-
class:
|
|
1530
|
+
class: M(`serie_plot_${c}`),
|
|
1510
1531
|
style: A(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1511
1532
|
}, [
|
|
1512
|
-
(l(!0), r(
|
|
1533
|
+
(l(!0), r(N, null, x(a.plots, (n, g) => (l(), r("g", {
|
|
1513
1534
|
key: `circle_plot_${c}_${g}`
|
|
1514
1535
|
}, [
|
|
1515
1536
|
e.canShowValue(n.value) ? (l(), V(L, {
|
|
@@ -1520,7 +1541,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
1520
1541
|
radius: t.selectedSerieIndex !== null && t.selectedSerieIndex === g || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === g ? (t.plotRadii.plot || 6) * 1.5 : t.plotRadii.plot || 6,
|
|
1521
1542
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1522
1543
|
strokeWidth: 0.5
|
|
1523
|
-
}, null, 8, ["shape", "color", "plot", "radius", "stroke"])) :
|
|
1544
|
+
}, null, 8, ["shape", "color", "plot", "radius", "stroke"])) : o("", !0),
|
|
1524
1545
|
n.comment && e.FINAL_CONFIG.chart.comments.show ? (l(), r("foreignObject", {
|
|
1525
1546
|
key: 1,
|
|
1526
1547
|
style: { overflow: "visible" },
|
|
@@ -1534,7 +1555,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
1534
1555
|
plot: { ...n, color: a.color }
|
|
1535
1556
|
}, void 0, !0)
|
|
1536
1557
|
])
|
|
1537
|
-
], 8, Yt)) :
|
|
1558
|
+
], 8, Yt)) : o("", !0)
|
|
1538
1559
|
]))), 128)),
|
|
1539
1560
|
Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (l(), r("g", qt, [
|
|
1540
1561
|
u("defs", null, [
|
|
@@ -1562,7 +1583,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
1562
1583
|
stroke: a.color,
|
|
1563
1584
|
"stroke-dasharray": 2,
|
|
1564
1585
|
"marker-end": `url(#plot_arrow_${c})`
|
|
1565
|
-
}, null, 8, Jt)) :
|
|
1586
|
+
}, null, 8, Jt)) : o("", !0),
|
|
1566
1587
|
a.plots.length > 1 ? (l(), r("text", {
|
|
1567
1588
|
key: 1,
|
|
1568
1589
|
"text-anchor": "middle",
|
|
@@ -1574,12 +1595,12 @@ function qa(i, s, o, f, t, e) {
|
|
|
1574
1595
|
v: e.calcLinearProgression(a.plots).trend * 100,
|
|
1575
1596
|
s: "%",
|
|
1576
1597
|
r: 2
|
|
1577
|
-
})), 9, Qt)) :
|
|
1578
|
-
])) :
|
|
1598
|
+
})), 9, Qt)) : o("", !0)
|
|
1599
|
+
])) : o("", !0)
|
|
1579
1600
|
], 6))), 128)),
|
|
1580
|
-
(l(!0), r(
|
|
1601
|
+
(l(!0), r(N, null, x(e.lineSet, (a, c) => (l(), r("g", {
|
|
1581
1602
|
key: `serie_line_${c}`,
|
|
1582
|
-
class:
|
|
1603
|
+
class: M(`serie_line_${c}`),
|
|
1583
1604
|
style: A(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1584
1605
|
}, [
|
|
1585
1606
|
a.smooth && a.plots.length > 1 ? (l(), r("path", {
|
|
@@ -1590,7 +1611,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
1590
1611
|
"stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1591
1612
|
fill: "none"
|
|
1592
1613
|
}, null, 8, Kt)) : a.plots.length > 1 ? (l(), r("g", jt, [
|
|
1593
|
-
(l(!0), r(
|
|
1614
|
+
(l(!0), r(N, null, x(a.plots, (n, g) => (l(), r("g", {
|
|
1594
1615
|
key: `line_${c}_${g}`
|
|
1595
1616
|
}, [
|
|
1596
1617
|
n && g < a.plots.length - 1 && a.plots[g + 1] && e.canShowValue(n.value) && e.canShowValue(a.plots[g + 1].value) ? (l(), r("line", {
|
|
@@ -1604,13 +1625,13 @@ function qa(i, s, o, f, t, e) {
|
|
|
1604
1625
|
"stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1605
1626
|
"stroke-linejoin": "round",
|
|
1606
1627
|
"stroke-linecap": "round"
|
|
1607
|
-
}, null, 8, $t)) :
|
|
1628
|
+
}, null, 8, $t)) : o("", !0)
|
|
1608
1629
|
]))), 128))
|
|
1609
|
-
])) :
|
|
1630
|
+
])) : o("", !0)
|
|
1610
1631
|
], 6))), 128)),
|
|
1611
|
-
(l(!0), r(
|
|
1632
|
+
(l(!0), r(N, null, x(e.lineSet, (a, c) => (l(), r("g", {
|
|
1612
1633
|
key: `serie_line_${c}`,
|
|
1613
|
-
class:
|
|
1634
|
+
class: M(`serie_line_${c}`),
|
|
1614
1635
|
style: A(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1615
1636
|
}, [
|
|
1616
1637
|
a.useArea && a.plots.length > 1 ? (l(), r("g", ea, [
|
|
@@ -1623,7 +1644,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
1623
1644
|
d: `M${a.area}Z`,
|
|
1624
1645
|
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${c}_${t.uniqueId})` : e.setOpacity(a.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1625
1646
|
}, null, 8, aa))
|
|
1626
|
-
])) :
|
|
1647
|
+
])) : o("", !0),
|
|
1627
1648
|
a.smooth && a.plots.length > 1 ? (l(), r("path", {
|
|
1628
1649
|
key: 1,
|
|
1629
1650
|
d: `M${a.curve}`,
|
|
@@ -1632,7 +1653,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
1632
1653
|
"stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1633
1654
|
fill: "none"
|
|
1634
1655
|
}, null, 8, ia)) : a.plots.length > 1 ? (l(), r("g", la, [
|
|
1635
|
-
(l(!0), r(
|
|
1656
|
+
(l(!0), r(N, null, x(a.plots, (n, g) => (l(), r("g", {
|
|
1636
1657
|
key: `line_${c}_${g}`
|
|
1637
1658
|
}, [
|
|
1638
1659
|
n && g < a.plots.length - 1 && a.plots[g + 1] && e.canShowValue(n.value) && e.canShowValue(a.plots[g + 1].value) ? (l(), r("line", {
|
|
@@ -1646,10 +1667,10 @@ function qa(i, s, o, f, t, e) {
|
|
|
1646
1667
|
"stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1647
1668
|
"stroke-linejoin": "round",
|
|
1648
1669
|
"stroke-linecap": "round"
|
|
1649
|
-
}, null, 8, ra)) :
|
|
1670
|
+
}, null, 8, ra)) : o("", !0)
|
|
1650
1671
|
]))), 128))
|
|
1651
|
-
])) :
|
|
1652
|
-
(l(!0), r(
|
|
1672
|
+
])) : o("", !0),
|
|
1673
|
+
(l(!0), r(N, null, x(a.plots, (n, g) => (l(), r("g", {
|
|
1653
1674
|
key: `circle_line_${c}_${g}`
|
|
1654
1675
|
}, [
|
|
1655
1676
|
n && e.canShowValue(n.value) ? (l(), V(L, {
|
|
@@ -1660,7 +1681,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
1660
1681
|
radius: t.selectedSerieIndex !== null && t.selectedSerieIndex === g || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === g ? (t.plotRadii.line || 6) * 1.5 : t.plotRadii.line || 6,
|
|
1661
1682
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1662
1683
|
strokeWidth: 0.5
|
|
1663
|
-
}, null, 8, ["shape", "color", "plot", "radius", "stroke"])) :
|
|
1684
|
+
}, null, 8, ["shape", "color", "plot", "radius", "stroke"])) : o("", !0),
|
|
1664
1685
|
n.comment && e.FINAL_CONFIG.chart.comments.show ? (l(), r("foreignObject", {
|
|
1665
1686
|
key: 1,
|
|
1666
1687
|
style: { overflow: "visible" },
|
|
@@ -1674,7 +1695,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
1674
1695
|
plot: { ...n, color: a.color }
|
|
1675
1696
|
}, void 0, !0)
|
|
1676
1697
|
])
|
|
1677
|
-
], 8, sa)) :
|
|
1698
|
+
], 8, sa)) : o("", !0)
|
|
1678
1699
|
]))), 128)),
|
|
1679
1700
|
Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (l(), r("g", ca, [
|
|
1680
1701
|
u("defs", null, [
|
|
@@ -1689,8 +1710,8 @@ function qa(i, s, o, f, t, e) {
|
|
|
1689
1710
|
u("polygon", {
|
|
1690
1711
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1691
1712
|
fill: a.color
|
|
1692
|
-
}, null, 8,
|
|
1693
|
-
], 8,
|
|
1713
|
+
}, null, 8, oa)
|
|
1714
|
+
], 8, ha)
|
|
1694
1715
|
]),
|
|
1695
1716
|
a.plots.length > 1 ? (l(), r("line", {
|
|
1696
1717
|
key: 0,
|
|
@@ -1702,7 +1723,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
1702
1723
|
stroke: a.color,
|
|
1703
1724
|
"stroke-dasharray": 2,
|
|
1704
1725
|
"marker-end": `url(#line_arrow_${c})`
|
|
1705
|
-
}, null, 8, da)) :
|
|
1726
|
+
}, null, 8, da)) : o("", !0),
|
|
1706
1727
|
a.plots.length > 1 ? (l(), r("text", {
|
|
1707
1728
|
key: 1,
|
|
1708
1729
|
"text-anchor": "middle",
|
|
@@ -1714,16 +1735,16 @@ function qa(i, s, o, f, t, e) {
|
|
|
1714
1735
|
v: e.calcLinearProgression(a.plots).trend * 100,
|
|
1715
1736
|
s: "%",
|
|
1716
1737
|
r: 2
|
|
1717
|
-
})), 9, ua)) :
|
|
1718
|
-
])) :
|
|
1738
|
+
})), 9, ua)) : o("", !0)
|
|
1739
|
+
])) : o("", !0)
|
|
1719
1740
|
], 6))), 128)),
|
|
1720
1741
|
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && t.mutableConfig.dataLabels.show ? (l(), r("g", ga, [
|
|
1721
|
-
(l(!0), r(
|
|
1742
|
+
(l(!0), r(N, null, x(e.barSet, (a, c) => (l(), r("g", {
|
|
1722
1743
|
key: `xLabel_bar_${c}`,
|
|
1723
|
-
class:
|
|
1744
|
+
class: M(`xLabel_bar_${c}`),
|
|
1724
1745
|
style: A(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1725
1746
|
}, [
|
|
1726
|
-
(l(!0), r(
|
|
1747
|
+
(l(!0), r(N, null, x(a.plots, (n, g) => (l(), r("g", {
|
|
1727
1748
|
key: `xLabel_bar_${c}_${g}`
|
|
1728
1749
|
}, [
|
|
1729
1750
|
n && (!Object.hasOwn(a, "dataLabels") || a.dataLabels === !0) && e.FINAL_CONFIG.bar.labels.show ? (l(), r("text", {
|
|
@@ -1737,16 +1758,16 @@ function qa(i, s, o, f, t, e) {
|
|
|
1737
1758
|
e.FINAL_CONFIG.bar.labels.formatter,
|
|
1738
1759
|
n.value,
|
|
1739
1760
|
e.dataLabel({
|
|
1740
|
-
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
1761
|
+
p: a.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
1741
1762
|
v: n.value,
|
|
1742
|
-
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
1763
|
+
s: a.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
1743
1764
|
r: e.FINAL_CONFIG.bar.labels.rounding
|
|
1744
1765
|
}),
|
|
1745
1766
|
{
|
|
1746
1767
|
datapoint: n,
|
|
1747
1768
|
serie: a
|
|
1748
1769
|
}
|
|
1749
|
-
) : ""), 9, fa)) :
|
|
1770
|
+
) : ""), 9, fa)) : o("", !0),
|
|
1750
1771
|
n && e.FINAL_CONFIG.bar.serieName.show ? (l(), r("text", {
|
|
1751
1772
|
key: 1,
|
|
1752
1773
|
x: t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? n.x + e.slot.line / 2 : n.x + e.calcRectWidth() * 1.1,
|
|
@@ -1755,17 +1776,17 @@ function qa(i, s, o, f, t, e) {
|
|
|
1755
1776
|
"font-size": t.fontSizes.plotLabels,
|
|
1756
1777
|
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? a.color : e.FINAL_CONFIG.bar.serieName.color,
|
|
1757
1778
|
"font-weight": e.FINAL_CONFIG.bar.serieName.bold ? "bold" : "normal"
|
|
1758
|
-
}, C(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: a.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : a.name), 9,
|
|
1779
|
+
}, C(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: a.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : a.name), 9, Na)) : o("", !0)
|
|
1759
1780
|
]))), 128))
|
|
1760
1781
|
], 6))), 128))
|
|
1761
|
-
])) :
|
|
1762
|
-
e.FINAL_CONFIG.plot.labels.show && t.mutableConfig.dataLabels.show ? (l(), r("g",
|
|
1763
|
-
(l(!0), r(
|
|
1782
|
+
])) : o("", !0),
|
|
1783
|
+
e.FINAL_CONFIG.plot.labels.show && t.mutableConfig.dataLabels.show ? (l(), r("g", ma, [
|
|
1784
|
+
(l(!0), r(N, null, x(e.plotSet, (a, c) => (l(), r("g", {
|
|
1764
1785
|
key: `xLabel_plot_${c}`,
|
|
1765
|
-
class:
|
|
1786
|
+
class: M(`xLabel_plot_${c}`),
|
|
1766
1787
|
style: A(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1767
1788
|
}, [
|
|
1768
|
-
(l(!0), r(
|
|
1789
|
+
(l(!0), r(N, null, x(a.plots, (n, g) => (l(), r("g", {
|
|
1769
1790
|
key: `xLabel_plot_${c}_${g}`
|
|
1770
1791
|
}, [
|
|
1771
1792
|
n && !Object.hasOwn(a, "dataLabels") || a.dataLabels === !0 ? (l(), r("text", {
|
|
@@ -1779,16 +1800,16 @@ function qa(i, s, o, f, t, e) {
|
|
|
1779
1800
|
e.FINAL_CONFIG.plot.labels.formatter,
|
|
1780
1801
|
n.value,
|
|
1781
1802
|
e.dataLabel({
|
|
1782
|
-
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
1803
|
+
p: a.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
1783
1804
|
v: n.value,
|
|
1784
|
-
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
1805
|
+
s: a.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
1785
1806
|
r: e.FINAL_CONFIG.plot.labels.rounding
|
|
1786
1807
|
}),
|
|
1787
1808
|
{
|
|
1788
1809
|
datapoint: n,
|
|
1789
1810
|
serie: a
|
|
1790
1811
|
}
|
|
1791
|
-
) : ""), 9, Ia)) :
|
|
1812
|
+
) : ""), 9, Ia)) : o("", !0),
|
|
1792
1813
|
n && g === 0 && a.useTag && a.useTag === "start" ? (l(), r("foreignObject", {
|
|
1793
1814
|
key: 1,
|
|
1794
1815
|
x: n.x,
|
|
@@ -1800,7 +1821,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
1800
1821
|
u("div", {
|
|
1801
1822
|
style: A(`padding: 3px; background:${e.setOpacity(a.color, 80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1802
1823
|
}, C(a.name), 5)
|
|
1803
|
-
], 8,
|
|
1824
|
+
], 8, xa)) : o("", !0),
|
|
1804
1825
|
n && g === a.plots.length - 1 && a.useTag && a.useTag === "end" ? (l(), r("foreignObject", {
|
|
1805
1826
|
key: 2,
|
|
1806
1827
|
x: n.x - a.name.length * (t.fontSizes.plotLabels / 2),
|
|
@@ -1812,17 +1833,17 @@ function qa(i, s, o, f, t, e) {
|
|
|
1812
1833
|
u("div", {
|
|
1813
1834
|
style: A(`padding: 3px; background:${e.setOpacity(a.color, 80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1814
1835
|
}, C(a.name), 5)
|
|
1815
|
-
], 8,
|
|
1836
|
+
], 8, ba)) : o("", !0)
|
|
1816
1837
|
]))), 128))
|
|
1817
1838
|
], 6))), 128))
|
|
1818
|
-
])) :
|
|
1819
|
-
e.FINAL_CONFIG.line.labels.show && t.mutableConfig.dataLabels.show ? (l(), r("g",
|
|
1820
|
-
(l(!0), r(
|
|
1839
|
+
])) : o("", !0),
|
|
1840
|
+
e.FINAL_CONFIG.line.labels.show && t.mutableConfig.dataLabels.show ? (l(), r("g", Fa, [
|
|
1841
|
+
(l(!0), r(N, null, x(e.lineSet, (a, c) => (l(), r("g", {
|
|
1821
1842
|
key: `xLabel_line_${c}`,
|
|
1822
|
-
class:
|
|
1843
|
+
class: M(`xLabel_line_${c}`),
|
|
1823
1844
|
style: A(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1824
1845
|
}, [
|
|
1825
|
-
(l(!0), r(
|
|
1846
|
+
(l(!0), r(N, null, x(a.plots, (n, g) => (l(), r("g", {
|
|
1826
1847
|
key: `xLabel_line_${c}_${g}`
|
|
1827
1848
|
}, [
|
|
1828
1849
|
n && !Object.hasOwn(a, "dataLabels") || a.dataLabels === !0 ? (l(), r("text", {
|
|
@@ -1836,16 +1857,16 @@ function qa(i, s, o, f, t, e) {
|
|
|
1836
1857
|
e.FINAL_CONFIG.line.labels.formatter,
|
|
1837
1858
|
n.value,
|
|
1838
1859
|
e.dataLabel({
|
|
1839
|
-
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
1860
|
+
p: a.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
1840
1861
|
v: n.value,
|
|
1841
|
-
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
1862
|
+
s: a.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
1842
1863
|
r: e.FINAL_CONFIG.line.labels.rounding
|
|
1843
1864
|
}),
|
|
1844
1865
|
{
|
|
1845
1866
|
datapoint: n,
|
|
1846
1867
|
serie: a
|
|
1847
1868
|
}
|
|
1848
|
-
) : ""), 9,
|
|
1869
|
+
) : ""), 9, _a)) : o("", !0),
|
|
1849
1870
|
n && g === 0 && a.useTag && a.useTag === "start" ? (l(), r("foreignObject", {
|
|
1850
1871
|
key: 1,
|
|
1851
1872
|
x: n.x,
|
|
@@ -1857,7 +1878,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
1857
1878
|
u("div", {
|
|
1858
1879
|
style: A(`padding: 3px; background:${e.setOpacity(a.color, 80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1859
1880
|
}, C(a.name), 5)
|
|
1860
|
-
], 8, ya)) :
|
|
1881
|
+
], 8, ya)) : o("", !0),
|
|
1861
1882
|
n && g === a.plots.length - 1 && a.useTag && a.useTag === "end" ? (l(), r("foreignObject", {
|
|
1862
1883
|
key: 2,
|
|
1863
1884
|
x: n.x - a.name.length * (t.fontSizes.plotLabels / 2),
|
|
@@ -1869,16 +1890,16 @@ function qa(i, s, o, f, t, e) {
|
|
|
1869
1890
|
u("div", {
|
|
1870
1891
|
style: A(`padding: 3px; background:${e.setOpacity(a.color, 80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1871
1892
|
}, C(a.name), 5)
|
|
1872
|
-
], 8, Aa)) :
|
|
1893
|
+
], 8, Aa)) : o("", !0)
|
|
1873
1894
|
]))), 128))
|
|
1874
1895
|
], 6))), 128))
|
|
1875
|
-
])) :
|
|
1876
|
-
(l(!0), r(
|
|
1896
|
+
])) : o("", !0),
|
|
1897
|
+
(l(!0), r(N, null, x(e.lineSet, (a, c) => (l(), r("g", {
|
|
1877
1898
|
key: `xLabel_line_${c}`,
|
|
1878
|
-
class:
|
|
1899
|
+
class: M(`xLabel_line_${c}`),
|
|
1879
1900
|
style: A(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1880
1901
|
}, [
|
|
1881
|
-
(l(!0), r(
|
|
1902
|
+
(l(!0), r(N, null, x(a.plots, (n, g) => (l(), r("g", {
|
|
1882
1903
|
key: `xLabel_line_${c}_${g}`
|
|
1883
1904
|
}, [
|
|
1884
1905
|
n && g === 0 && a.showSerieName && a.showSerieName === "start" ? (l(), r("text", {
|
|
@@ -1896,7 +1917,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
1896
1917
|
y: n.y,
|
|
1897
1918
|
maxWords: 2
|
|
1898
1919
|
})
|
|
1899
|
-
}, null, 8, La)) :
|
|
1920
|
+
}, null, 8, La)) : o("", !0),
|
|
1900
1921
|
n && g === a.plots.length - 1 && a.showSerieName && a.showSerieName === "end" ? (l(), r("text", {
|
|
1901
1922
|
key: 1,
|
|
1902
1923
|
x: n.x + t.fontSizes.plotLabels,
|
|
@@ -1912,15 +1933,15 @@ function qa(i, s, o, f, t, e) {
|
|
|
1912
1933
|
y: n.y,
|
|
1913
1934
|
maxWords: 2
|
|
1914
1935
|
})
|
|
1915
|
-
}, null, 8, Ca)) :
|
|
1936
|
+
}, null, 8, Ca)) : o("", !0)
|
|
1916
1937
|
]))), 128))
|
|
1917
1938
|
], 6))), 128)),
|
|
1918
|
-
(l(!0), r(
|
|
1939
|
+
(l(!0), r(N, null, x(e.plotSet, (a, c) => (l(), r("g", {
|
|
1919
1940
|
key: `xLabel_plot_${c}`,
|
|
1920
|
-
class:
|
|
1941
|
+
class: M(`xLabel_plot_${c}`),
|
|
1921
1942
|
style: A(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1922
1943
|
}, [
|
|
1923
|
-
(l(!0), r(
|
|
1944
|
+
(l(!0), r(N, null, x(a.plots, (n, g) => (l(), r("g", {
|
|
1924
1945
|
key: `xLabel_plot_${c}_${g}`
|
|
1925
1946
|
}, [
|
|
1926
1947
|
n && g === 0 && a.showSerieName && a.showSerieName === "start" ? (l(), r("text", {
|
|
@@ -1938,7 +1959,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
1938
1959
|
y: n.y,
|
|
1939
1960
|
maxWords: 2
|
|
1940
1961
|
})
|
|
1941
|
-
}, null, 8, Sa)) :
|
|
1962
|
+
}, null, 8, Sa)) : o("", !0),
|
|
1942
1963
|
n && g === a.plots.length - 1 && a.showSerieName && a.showSerieName === "end" ? (l(), r("text", {
|
|
1943
1964
|
key: 1,
|
|
1944
1965
|
x: n.x + t.fontSizes.plotLabels,
|
|
@@ -1954,10 +1975,10 @@ function qa(i, s, o, f, t, e) {
|
|
|
1954
1975
|
y: n.y,
|
|
1955
1976
|
maxWords: 2
|
|
1956
1977
|
})
|
|
1957
|
-
}, null, 8, ka)) :
|
|
1978
|
+
}, null, 8, ka)) : o("", !0)
|
|
1958
1979
|
]))), 128))
|
|
1959
1980
|
], 6))), 128)),
|
|
1960
|
-
t.mutableConfig.useIndividualScale && !t.mutableConfig.isStacked ? (l(!0), r(
|
|
1981
|
+
t.mutableConfig.useIndividualScale && !t.mutableConfig.isStacked ? (l(!0), r(N, { key: 8 }, x(e.allScales, (a) => (l(), r("rect", {
|
|
1961
1982
|
x: a.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
1962
1983
|
y: e.drawingArea.top,
|
|
1963
1984
|
width: e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
@@ -1965,7 +1986,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
1965
1986
|
fill: t.selectedScale === a.id ? e.setOpacity(a.color, 20) : "transparent",
|
|
1966
1987
|
onMouseenter: (c) => t.selectedScale = a.id,
|
|
1967
1988
|
onMouseleave: s[0] || (s[0] = (c) => t.selectedScale = null)
|
|
1968
|
-
}, null, 40, wa))), 256)) :
|
|
1989
|
+
}, null, 40, wa))), 256)) : o("", !0),
|
|
1969
1990
|
u("g", null, [
|
|
1970
1991
|
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !t.mutableConfig.useIndividualScale ? (l(), r("text", {
|
|
1971
1992
|
key: 0,
|
|
@@ -1974,7 +1995,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
1974
1995
|
transform: `translate(${t.fontSizes.yAxis + e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`,
|
|
1975
1996
|
"text-anchor": "middle",
|
|
1976
1997
|
style: { transition: "none" }
|
|
1977
|
-
}, C(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, Oa)) :
|
|
1998
|
+
}, C(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, Oa)) : o("", !0),
|
|
1978
1999
|
e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (l(), r("text", {
|
|
1979
2000
|
key: 1,
|
|
1980
2001
|
"text-anchor": "middle",
|
|
@@ -1982,10 +2003,10 @@ function qa(i, s, o, f, t, e) {
|
|
|
1982
2003
|
y: e.drawingArea.bottom + t.fontSizes.yAxis + t.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,
|
|
1983
2004
|
"font-size": t.fontSizes.yAxis,
|
|
1984
2005
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
1985
|
-
}, C(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, va)) :
|
|
2006
|
+
}, C(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, va)) : o("", !0)
|
|
1986
2007
|
]),
|
|
1987
2008
|
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (l(), r("g", Ga, [
|
|
1988
|
-
(l(!0), r(
|
|
2009
|
+
(l(!0), r(N, null, x(e.timeLabels, (a, c) => (l(), r("g", {
|
|
1989
2010
|
key: `time_label_${c}`
|
|
1990
2011
|
}, [
|
|
1991
2012
|
a && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || a && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (c === 0 || c === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || a && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && t.selectedSerieIndex === c && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || a && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && c % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (l(), r("text", {
|
|
@@ -1994,11 +2015,11 @@ function qa(i, s, o, f, t, e) {
|
|
|
1994
2015
|
"font-size": t.fontSizes.xAxis,
|
|
1995
2016
|
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
1996
2017
|
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom + t.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`
|
|
1997
|
-
}, C(a || ""), 9, za)) :
|
|
2018
|
+
}, C(a || ""), 9, za)) : o("", !0)
|
|
1998
2019
|
]))), 128))
|
|
1999
|
-
])) :
|
|
2020
|
+
])) : o("", !0),
|
|
2000
2021
|
u("g", null, [
|
|
2001
|
-
(l(!0), r(
|
|
2022
|
+
(l(!0), r(N, null, x(e.maxSeries, (a, c) => (l(), r("g", {
|
|
2002
2023
|
key: `tooltip_trap_${c}`
|
|
2003
2024
|
}, [
|
|
2004
2025
|
u("rect", {
|
|
@@ -2011,10 +2032,10 @@ function qa(i, s, o, f, t, e) {
|
|
|
2011
2032
|
onMouseenter: (n) => e.toggleTooltipVisibility(!0, c),
|
|
2012
2033
|
onMouseleave: s[1] || (s[1] = (n) => e.toggleTooltipVisibility(!1)),
|
|
2013
2034
|
onClick: (n) => e.selectX(c)
|
|
2014
|
-
}, null, 40,
|
|
2035
|
+
}, null, 40, pa)
|
|
2015
2036
|
]))), 128))
|
|
2016
2037
|
]),
|
|
2017
|
-
e.FINAL_CONFIG.chart.timeTag.show && ![null, void 0].includes(t.selectedSerieIndex) ? (l(), r("g",
|
|
2038
|
+
e.FINAL_CONFIG.chart.timeTag.show && ![null, void 0].includes(t.selectedSerieIndex) ? (l(), r("g", Ma, [
|
|
2018
2039
|
(l(), r("foreignObject", {
|
|
2019
2040
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * t.selectedSerieIndex - 100 + e.drawingArea.width / e.maxSeries / 2,
|
|
2020
2041
|
y: e.drawingArea.bottom,
|
|
@@ -2033,14 +2054,14 @@ function qa(i, s, o, f, t, e) {
|
|
|
2033
2054
|
r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
|
|
2034
2055
|
fill: e.FINAL_CONFIG.chart.timeTag.circleMarker.color
|
|
2035
2056
|
}, null, 8, Ta)
|
|
2036
|
-
])) :
|
|
2037
|
-
])) :
|
|
2057
|
+
])) : o("", !0)
|
|
2058
|
+
])) : o("", !0),
|
|
2038
2059
|
O(i.$slots, "svg", { svg: e.svg }, void 0, !0)
|
|
2039
|
-
], 14, Ze)) :
|
|
2060
|
+
], 14, Ze)) : o("", !0),
|
|
2040
2061
|
i.$slots.watermark ? (l(), r("div", Va, [
|
|
2041
2062
|
O(i.$slots, "watermark", B(Y({ isPrinting: t.isPrinting || t.isImaging })), void 0, !0)
|
|
2042
|
-
])) :
|
|
2043
|
-
e.isDataset ?
|
|
2063
|
+
])) : o("", !0),
|
|
2064
|
+
e.isDataset ? o("", !0) : (l(), V(m, {
|
|
2044
2065
|
key: 4,
|
|
2045
2066
|
config: {
|
|
2046
2067
|
type: "line",
|
|
@@ -2093,17 +2114,17 @@ function qa(i, s, o, f, t, e) {
|
|
|
2093
2114
|
O(i.$slots, "reset-action", B(Y({ reset: a })), void 0, !0)
|
|
2094
2115
|
]),
|
|
2095
2116
|
_: 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"])) :
|
|
2117
|
+
}, 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
2118
|
e.FINAL_CONFIG.chart.legend.show ? (l(), r("div", {
|
|
2098
2119
|
key: 6,
|
|
2099
2120
|
ref: "chartLegend",
|
|
2100
2121
|
class: "vue-ui-xy-legend",
|
|
2101
2122
|
style: A(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
|
|
2102
2123
|
}, [
|
|
2103
|
-
(l(!0), r(
|
|
2124
|
+
(l(!0), r(N, null, x(e.absoluteDataset, (a, c) => (l(), r("div", {
|
|
2104
2125
|
key: `div_legend_item_${c}`,
|
|
2105
2126
|
onClick: (n) => e.segregate(a),
|
|
2106
|
-
class:
|
|
2127
|
+
class: M({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": t.segregatedSeries.includes(a.id) })
|
|
2107
2128
|
}, [
|
|
2108
2129
|
t.icons[a.type] === "line" ? (l(), r("svg", Da, [
|
|
2109
2130
|
u("rect", {
|
|
@@ -2148,7 +2169,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
2148
2169
|
], 4)) : (l(), r("div", Ba, [
|
|
2149
2170
|
O(i.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
|
|
2150
2171
|
], 512)),
|
|
2151
|
-
q(
|
|
2172
|
+
q(p, {
|
|
2152
2173
|
show: t.mutableConfig.showTooltip && t.isTooltip,
|
|
2153
2174
|
backgroundColor: e.FINAL_CONFIG.chart.tooltip.backgroundColor,
|
|
2154
2175
|
color: e.FINAL_CONFIG.chart.tooltip.color,
|
|
@@ -2171,7 +2192,7 @@ function qa(i, s, o, f, t, e) {
|
|
|
2171
2192
|
]),
|
|
2172
2193
|
_: 3
|
|
2173
2194
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
2174
|
-
e.isDataset ? (l(), V(
|
|
2195
|
+
e.isDataset ? (l(), V(b, {
|
|
2175
2196
|
key: 8,
|
|
2176
2197
|
hideDetails: "",
|
|
2177
2198
|
config: {
|
|
@@ -2238,10 +2259,10 @@ function qa(i, s, o, f, t, e) {
|
|
|
2238
2259
|
], 4)
|
|
2239
2260
|
]),
|
|
2240
2261
|
_: 1
|
|
2241
|
-
}, 8, ["config"])) :
|
|
2262
|
+
}, 8, ["config"])) : o("", !0)
|
|
2242
2263
|
], 14, qe);
|
|
2243
2264
|
}
|
|
2244
|
-
const ci = /* @__PURE__ */ Be(Xe, [["render", qa], ["__scopeId", "data-v-
|
|
2265
|
+
const ci = /* @__PURE__ */ Be(Xe, [["render", qa], ["__scopeId", "data-v-a2fd49c9"]]);
|
|
2245
2266
|
export {
|
|
2246
2267
|
ci as default
|
|
2247
2268
|
};
|