vue-data-ui 2.3.97 → 2.3.98
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-CD-z6ya0.cjs → Arrow-BLDzSVI-.cjs} +1 -1
- package/dist/{Arrow-BAg5kQhG.js → Arrow-DgyN_Z51.js} +1 -1
- package/dist/{BaseIcon-JWYc0t9a.cjs → BaseIcon-BriP3G7r.cjs} +1 -1
- package/dist/{BaseIcon-CiQsJmEc.js → BaseIcon-CdxkWcA_.js} +1 -1
- package/dist/{DataTable-BczvA492.js → DataTable-CFtLoh2y.js} +2 -2
- package/dist/{DataTable-DRJUrEXP.cjs → DataTable-DT8VcwR5.cjs} +1 -1
- package/dist/{Legend-DDmBZxt8.cjs → Legend-BiaVNQjc.cjs} +1 -1
- package/dist/{Legend-DnOc-JGW.js → Legend-DlZZeU8Y.js} +1 -1
- package/dist/{PackageVersion-DN8qp-uI.js → PackageVersion-B2pJ6f4s.js} +1 -1
- package/dist/{PackageVersion-rOhPenOY.cjs → PackageVersion-DMkpXFFU.cjs} +1 -1
- package/dist/{Shape-CDDjN4N-.cjs → Shape-CLCzNUYM.cjs} +1 -1
- package/dist/{Shape-DhRVUsKe.js → Shape-CbyenPbK.js} +1 -1
- package/dist/{Slicer-B7JFT6tT.js → Slicer-C2ocGjgt.js} +2 -2
- package/dist/{Slicer-IdC3VhM9.cjs → Slicer-CCE1xFS8.cjs} +1 -1
- package/dist/{Title-0tYDaWv7.js → Title-DqYX5EDQ.js} +1 -1
- package/dist/{Title-Cjusozo5.cjs → Title-spYln43E.cjs} +1 -1
- package/dist/{Tooltip-DdWGiVyf.js → Tooltip-7I8a4mo2.js} +1 -1
- package/dist/{Tooltip-CkqTs_wn.cjs → Tooltip-BgkDlGZj.cjs} +1 -1
- package/dist/{index-BJNSbAx7.js → index-CHn5mpNE.js} +731 -709
- package/dist/{index-NvxTr0fZ.cjs → index-xtIm3ydy.cjs} +8 -8
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-CLh4tPxT.js → useNestedProp-BF5raFbY.js} +1 -1
- package/dist/{useNestedProp-DhLxBAwX.cjs → useNestedProp-XzXFHriE.cjs} +1 -1
- package/dist/{usePrinter-0s8wVGIy.cjs → usePrinter-BrE53tUa.cjs} +1 -1
- package/dist/{usePrinter-CkV5eORP.js → usePrinter-DNwJl64i.js} +1 -1
- package/dist/{vue-data-ui-CyOAruHW.js → vue-data-ui-D74akyv3.js} +57 -57
- package/dist/{vue-data-ui-OR4tWNiS.cjs → vue-data-ui-DyzsgRrE.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +7 -7
- package/dist/{vue-ui-3d-bar-CxDdjFAw.js → vue-ui-3d-bar-CEIsvuEw.js} +8 -8
- package/dist/{vue-ui-3d-bar-DrnEff_D.cjs → vue-ui-3d-bar-DABkuo-g.cjs} +1 -1
- package/dist/{vue-ui-accordion-CxPjShWo.cjs → vue-ui-accordion-DDiQi7FV.cjs} +1 -1
- package/dist/{vue-ui-accordion-DDf5Y2GY.js → vue-ui-accordion-DXd5ND_A.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BMjBTeyH.js → vue-ui-age-pyramid-Bk87h-18.js} +9 -9
- package/dist/{vue-ui-age-pyramid-BiHpf1Rk.cjs → vue-ui-age-pyramid-DgDByrGl.cjs} +1 -1
- package/dist/{vue-ui-annotator-B-myvrhe.js → vue-ui-annotator-B6velitp.js} +1 -1
- package/dist/{vue-ui-annotator--NmsTiIf.cjs → vue-ui-annotator-CC523zDg.cjs} +1 -1
- package/dist/{vue-ui-candlestick-J1JpFsJT.js → vue-ui-candlestick-BW7ajYg7.js} +10 -10
- package/dist/{vue-ui-candlestick-DSwIFt7i.cjs → vue-ui-candlestick-DbU_XaYN.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Cg3I81MW.cjs → vue-ui-carousel-table-23OR7otR.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-B62mAFeV.js → vue-ui-carousel-table-C2GpkqxJ.js} +4 -4
- package/dist/{vue-ui-chestnut-ChAwKgeO.js → vue-ui-chestnut-s4sYE-Yq.js} +7 -7
- package/dist/{vue-ui-chestnut-lQvVg9Rn.cjs → vue-ui-chestnut-ynySog92.cjs} +1 -1
- package/dist/{vue-ui-cursor-XXjnAIH2.js → vue-ui-cursor-B3OZaotE.js} +2 -2
- package/dist/{vue-ui-cursor-D-qe8qez.cjs → vue-ui-cursor-C0JCZjSM.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CC-DF6iU.js → vue-ui-dashboard-B8glPKoJ.js} +2 -2
- package/dist/{vue-ui-dashboard-CB41KQ7y.cjs → vue-ui-dashboard-Bn3v9JMP.cjs} +1 -1
- package/dist/{vue-ui-digits-Degwjx76.js → vue-ui-digits-BTw5A-9I.js} +2 -2
- package/dist/{vue-ui-digits-CIHkrLL6.cjs → vue-ui-digits-Bf3jPyKq.cjs} +1 -1
- package/dist/{vue-ui-donut-CYBpOCFo.js → vue-ui-donut-CMHiEbv5.js} +10 -10
- package/dist/{vue-ui-donut-evolution-Bxq-hr-P.js → vue-ui-donut-evolution-Cn-kZE-i.js} +10 -10
- package/dist/{vue-ui-donut-evolution-Bbt27unL.cjs → vue-ui-donut-evolution-DMM09v7x.cjs} +1 -1
- package/dist/{vue-ui-donut-jwD3vNoD.cjs → vue-ui-donut-yfNvdjlP.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-7f9d2mh-.cjs → vue-ui-dumbbell-6liDM1Uq.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-KsVxecua.js → vue-ui-dumbbell-BRgiYAXh.js} +9 -9
- package/dist/{vue-ui-flow-BzcB3iiZ.cjs → vue-ui-flow-B7wvK8sK.cjs} +1 -1
- package/dist/{vue-ui-flow-FqXhCo7u.js → vue-ui-flow-CkRBNjsz.js} +8 -8
- package/dist/{vue-ui-galaxy-xVldWSiq.cjs → vue-ui-galaxy-BuuC5iw-.cjs} +1 -1
- package/dist/{vue-ui-galaxy-B9rSYr7m.js → vue-ui-galaxy-C1I2rPqV.js} +10 -10
- package/dist/{vue-ui-gauge-k6fqkXqN.js → vue-ui-gauge-B0PNChvw.js} +6 -6
- package/dist/{vue-ui-gauge-B4r-qdzi.cjs → vue-ui-gauge-BvJ0qzq4.cjs} +1 -1
- package/dist/{vue-ui-gizmo-By3-mz_t.cjs → vue-ui-gizmo-C6G_WlP5.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CYaThghf.js → vue-ui-gizmo-HvL1eMUO.js} +3 -3
- package/dist/{vue-ui-heatmap-B0w5CXLi.cjs → vue-ui-heatmap-5ALzyHu_.cjs} +1 -1
- package/dist/{vue-ui-heatmap-Bdffdnay.js → vue-ui-heatmap-CQXqbbaT.js} +9 -9
- package/dist/{vue-ui-kpi-BqN5GILt.cjs → vue-ui-kpi-5u25Gbfg.cjs} +1 -1
- package/dist/{vue-ui-kpi-DG8_lFYS.js → vue-ui-kpi-JIlZQFAC.js} +3 -3
- package/dist/{vue-ui-mini-loader-C-Na_wY7.cjs → vue-ui-mini-loader-DcJ58uSW.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BZS_gsWT.js → vue-ui-mini-loader-Dktn_fME.js} +2 -2
- package/dist/{vue-ui-molecule-BK6bSbRU.js → vue-ui-molecule-BSSNMC6m.js} +10 -10
- package/dist/{vue-ui-molecule-Cdg96qiI.cjs → vue-ui-molecule-Wefpekma.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-D-BCyG9b.cjs → vue-ui-mood-radar-B7oYZs55.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-D5GRHLEE.js → vue-ui-mood-radar-D4fVO5iO.js} +10 -10
- package/dist/{vue-ui-nested-donuts-mxJHstX4.js → vue-ui-nested-donuts-4_tabA8c.js} +10 -10
- package/dist/{vue-ui-nested-donuts-D1fD0b-H.cjs → vue-ui-nested-donuts-ClqZ-eJl.cjs} +1 -1
- package/dist/{vue-ui-onion-6mkIHe9R.js → vue-ui-onion-Ch6BgUFP.js} +10 -10
- package/dist/{vue-ui-onion-vKC5zZVM.cjs → vue-ui-onion-DQ9E4dGJ.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-B_gGjFqe.js → vue-ui-parallel-coordinate-plot-BtZ1F37V.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-DqbwxRdK.cjs → vue-ui-parallel-coordinate-plot-CeXmNMQ-.cjs} +1 -1
- package/dist/{vue-ui-quadrant-SEj9AJdW.js → vue-ui-quadrant-CGiq44Mt.js} +11 -11
- package/dist/{vue-ui-quadrant-C54oPX3B.cjs → vue-ui-quadrant-fhNZ5-B5.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-CqmbqQdH.js → vue-ui-quick-chart-B-vFmpy5.js} +8 -8
- package/dist/{vue-ui-quick-chart-DoEE3OMA.cjs → vue-ui-quick-chart-DI4IPOIj.cjs} +1 -1
- package/dist/{vue-ui-radar-Dr91p7eK.cjs → vue-ui-radar-B80HMKEf.cjs} +1 -1
- package/dist/{vue-ui-radar-CKjssi06.js → vue-ui-radar-DWzxx466.js} +11 -11
- package/dist/{vue-ui-rating-DQvO4ejI.cjs → vue-ui-rating-BOGhqulq.cjs} +1 -1
- package/dist/{vue-ui-rating-DUSE6rvR.js → vue-ui-rating-CPuKzB4x.js} +2 -2
- package/dist/{vue-ui-relation-circle-D089YHBB.cjs → vue-ui-relation-circle-DNaNyiIv.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BmijKEEN.js → vue-ui-relation-circle-dUlg-_QI.js} +6 -6
- package/dist/{vue-ui-rings-D237PxGP.cjs → vue-ui-rings-C_z0XK6f.cjs} +1 -1
- package/dist/{vue-ui-rings-BtzbZYTW.js → vue-ui-rings-CqFaPqaR.js} +10 -10
- package/dist/{vue-ui-scatter-BeKQhHUw.js → vue-ui-scatter-Bsfc6z4K.js} +147 -147
- package/dist/vue-ui-scatter-DFiICBjw.cjs +1 -0
- package/dist/{vue-ui-screenshot-DNuimpRf.js → vue-ui-screenshot-CXptYbDY.js} +1 -1
- package/dist/{vue-ui-screenshot-CnwCy_Kg.cjs → vue-ui-screenshot-uE34c5Im.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CsU74BI7.js → vue-ui-skeleton-BmPO8QNa.js} +3 -3
- package/dist/{vue-ui-skeleton-DYHqPo98.cjs → vue-ui-skeleton-g8cEqYmt.cjs} +1 -1
- package/dist/{vue-ui-smiley-d0tQ2o9w.js → vue-ui-smiley-ByBzn20M.js} +2 -2
- package/dist/{vue-ui-smiley-D150KQ7d.cjs → vue-ui-smiley-DQEb9ejw.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-BDibnFmx.cjs → vue-ui-spark-trend-BXiiilKK.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CtZdqmLI.js → vue-ui-spark-trend-DYfjqLKr.js} +18 -18
- package/dist/{vue-ui-sparkbar-BpFs4ZhV.cjs → vue-ui-sparkbar-BCqmWJWk.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-C-HlLkKi.js → vue-ui-sparkbar-D37uDtG6.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BHBI7l12.cjs → vue-ui-sparkgauge-Dp4bJ89f.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-BDRCFVP5.js → vue-ui-sparkgauge-f1tYOMwd.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-B5nNXynh.js → vue-ui-sparkhistogram-DHYJG6d0.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-BjWnqdfo.cjs → vue-ui-sparkhistogram-Gh_h9QK_.cjs} +1 -1
- package/dist/{vue-ui-sparkline-o3mpXRV-.js → vue-ui-sparkline-CENc9bgs.js} +4 -4
- package/dist/{vue-ui-sparkline-DpnhvlTf.cjs → vue-ui-sparkline-CkPExlPm.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-Bko-XhdQ.js → vue-ui-sparkstackbar-BNUyfD4B.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-CST5NcMP.cjs → vue-ui-sparkstackbar-WWR3yYii.cjs} +1 -1
- package/dist/{vue-ui-stackbar-Br1WGSyo.js → vue-ui-stackbar-BQC8Ca_b.js} +33 -33
- package/dist/{vue-ui-stackbar-B3nyr_3-.cjs → vue-ui-stackbar-CFIZ94i3.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-DkAf9HPJ.cjs → vue-ui-strip-plot-BEyk6uih.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-C7Q-J22i.js → vue-ui-strip-plot-OPkq7c7M.js} +10 -10
- package/dist/{vue-ui-table-1vOGIOAk.cjs → vue-ui-table-Btz8Txup.cjs} +1 -1
- package/dist/{vue-ui-table-BTXo44Nv.js → vue-ui-table-DQno4vjF.js} +16 -16
- package/dist/{vue-ui-table-heatmap-BNcfBY7T.cjs → vue-ui-table-heatmap-DAQ3DL1R.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BosdMOLZ.js → vue-ui-table-heatmap-Dvl7B3i2.js} +15 -15
- package/dist/{vue-ui-table-sparkline-D0NjMfnV.js → vue-ui-table-sparkline-DJwhjePK.js} +16 -16
- package/dist/{vue-ui-table-sparkline-BGCEgn2A.cjs → vue-ui-table-sparkline-ZEGDkLve.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CUBnp6lX.cjs → vue-ui-thermometer-DCP3GH7M.cjs} +1 -1
- package/dist/{vue-ui-thermometer-Bnn77E-v.js → vue-ui-thermometer-Dmi60VAf.js} +6 -6
- package/dist/{vue-ui-timer-JupC7c3X.js → vue-ui-timer-BffyRll5.js} +5 -5
- package/dist/{vue-ui-timer-D2WCDGWF.cjs → vue-ui-timer-BjlYd8dM.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-FxWaEnUD.cjs → vue-ui-tiremarks-2RGbitnQ.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-Db9JjYq5.js → vue-ui-tiremarks-GSBKzXEK.js} +6 -6
- package/dist/{vue-ui-treemap-DPD9rcYE.js → vue-ui-treemap-CuYV5RnC.js} +10 -10
- package/dist/{vue-ui-treemap-oplXghMz.cjs → vue-ui-treemap-D0wMLDpi.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-BrOR3Xkc.cjs → vue-ui-vertical-bar-CqH76_tw.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-DeUOAiy4.js → vue-ui-vertical-bar-n6-aILoL.js} +10 -10
- package/dist/{vue-ui-waffle-DGrZjGQR.cjs → vue-ui-waffle-CUw9wjum.cjs} +1 -1
- package/dist/{vue-ui-waffle-qvh8AKep.js → vue-ui-waffle-DN0nEorT.js} +10 -10
- package/dist/{vue-ui-wheel-CuEobbmN.cjs → vue-ui-wheel-bauD1n_w.cjs} +1 -1
- package/dist/{vue-ui-wheel-DmG03DhW.js → vue-ui-wheel-gFxj5brx.js} +6 -6
- package/dist/{vue-ui-word-cloud-Dg0WQKL1.js → vue-ui-word-cloud-BXCUAiAK.js} +26 -26
- package/dist/{vue-ui-word-cloud-CbnPyd1_.cjs → vue-ui-word-cloud-CzXCfW8Q.cjs} +1 -1
- package/dist/{vue-ui-xy-BBlRgHyb.js → vue-ui-xy-BbRzriSg.js} +272 -272
- package/dist/{vue-ui-xy-gHnKcmgZ.cjs → vue-ui-xy-CEfc7szr.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-CqyEve92.js → vue-ui-xy-canvas-Cw-F7w38.js} +34 -34
- package/dist/{vue-ui-xy-canvas-CzCS04yK.cjs → vue-ui-xy-canvas-DhHuhTxz.cjs} +1 -1
- package/package.json +1 -1
- package/dist/vue-ui-scatter-_bZ2lVMS.cjs +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { c as J, a as K, t as Q, z as j, p as $, U as q, O as T, f as U, K as ee, F as te, i as ae,
|
|
2
|
-
import { D as Se } from "./DataTable-
|
|
3
|
-
import { _ as ke } from "./Title-
|
|
4
|
-
import { _ as we, u as Oe } from "./Tooltip-
|
|
5
|
-
import { U as Ge } from "./usePrinter-
|
|
6
|
-
import { _ as ve } from "./Shape-
|
|
7
|
-
import pe from "./BaseIcon-
|
|
8
|
-
import ze from "./vue-ui-table-sparkline-
|
|
9
|
-
import Me from "./vue-ui-skeleton-
|
|
10
|
-
import { S as Pe } from "./Slicer-
|
|
11
|
-
import Te from "./vue-ui-accordion-
|
|
12
|
-
import { u as Z } from "./useNestedProp-
|
|
13
|
-
import { _ as Ve } from "./PackageVersion-
|
|
14
|
-
import { resolveComponent as V, openBlock as r, createElementBlock as l, normalizeClass as P, normalizeStyle as A, createBlock as R, createCommentVNode as h, createSlots as Re, withCtx as z, renderSlot as G, normalizeProps as B, guardReactiveProps as Y, createVNode as X, createElementVNode as
|
|
1
|
+
import { c as J, a as K, t as Q, z as j, p as $, U as q, O as T, f as U, K as ee, F as te, i as ae, $ as ie, Z as re, a0 as le, v as se, a1 as ne, d as oe, B as ce, b as he, q as de, R as ue, a2 as ge, r as fe, e as Ne, y as me, M as Ie, x as xe, a3 as be, o as Fe, s as _e, w as ye, E as Ae, A as Le, u as Ce } from "./index-CHn5mpNE.js";
|
|
2
|
+
import { D as Se } from "./DataTable-CFtLoh2y.js";
|
|
3
|
+
import { _ as ke } from "./Title-DqYX5EDQ.js";
|
|
4
|
+
import { _ as we, u as Oe } from "./Tooltip-7I8a4mo2.js";
|
|
5
|
+
import { U as Ge } from "./usePrinter-DNwJl64i.js";
|
|
6
|
+
import { _ as ve } from "./Shape-CbyenPbK.js";
|
|
7
|
+
import pe from "./BaseIcon-CdxkWcA_.js";
|
|
8
|
+
import ze from "./vue-ui-table-sparkline-DJwhjePK.js";
|
|
9
|
+
import Me from "./vue-ui-skeleton-BmPO8QNa.js";
|
|
10
|
+
import { S as Pe } from "./Slicer-C2ocGjgt.js";
|
|
11
|
+
import Te from "./vue-ui-accordion-DXd5ND_A.js";
|
|
12
|
+
import { u as Z } from "./useNestedProp-BF5raFbY.js";
|
|
13
|
+
import { _ as Ve } from "./PackageVersion-B2pJ6f4s.js";
|
|
14
|
+
import { resolveComponent as V, openBlock as r, createElementBlock as l, normalizeClass as P, normalizeStyle as A, createBlock as R, createCommentVNode as h, createSlots as Re, withCtx as z, renderSlot as G, normalizeProps as B, guardReactiveProps as Y, createVNode as X, createElementVNode as g, Fragment as m, renderList as I, toDisplayString as S, withDirectives as De, vModelCheckbox as We, createTextVNode as He } from "vue";
|
|
15
15
|
import { _ as Ee } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
16
|
const Be = J(), Ye = {
|
|
17
17
|
name: "vue-ui-xy",
|
|
@@ -43,15 +43,15 @@ const Be = J(), Ye = {
|
|
|
43
43
|
PackageVersion: Ve
|
|
44
44
|
},
|
|
45
45
|
data() {
|
|
46
|
-
this.dataset.forEach((
|
|
47
|
-
[null, void 0].includes(
|
|
46
|
+
this.dataset.forEach((c, N) => {
|
|
47
|
+
[null, void 0].includes(c.series) && this.error({
|
|
48
48
|
componentName: "VueUiXy",
|
|
49
49
|
type: "datasetSerieAttribute",
|
|
50
50
|
property: "series (number[])",
|
|
51
51
|
index: N
|
|
52
52
|
});
|
|
53
53
|
});
|
|
54
|
-
const t = Math.max(...this.dataset.map((
|
|
54
|
+
const t = Math.max(...this.dataset.map((c) => c.series.length)), s = {
|
|
55
55
|
start: 0,
|
|
56
56
|
end: t
|
|
57
57
|
};
|
|
@@ -123,7 +123,7 @@ const Be = J(), Ye = {
|
|
|
123
123
|
watch: {
|
|
124
124
|
dataset: {
|
|
125
125
|
handler(t, s) {
|
|
126
|
-
this.maxX = Math.max(...this.dataset.map((
|
|
126
|
+
this.maxX = Math.max(...this.dataset.map((c) => c.series.length)), this.slicer = {
|
|
127
127
|
start: 0,
|
|
128
128
|
end: this.maxX
|
|
129
129
|
}, this.slicerStep += 1, this.segregateStep += 1;
|
|
@@ -140,11 +140,11 @@ const Be = J(), Ye = {
|
|
|
140
140
|
computed: {
|
|
141
141
|
minimap() {
|
|
142
142
|
if (!this.FINAL_CONFIG.chart.zoom.minimap.show) return [];
|
|
143
|
-
const t = this.datasetWithIds.filter((i) => !this.segregatedSeries.includes(i.id)), s = Math.max(...t.map((i) => i.series.length)),
|
|
143
|
+
const t = this.datasetWithIds.filter((i) => !this.segregatedSeries.includes(i.id)), s = Math.max(...t.map((i) => i.series.length)), c = [];
|
|
144
144
|
for (let i = 0; i < s; i += 1)
|
|
145
|
-
|
|
146
|
-
const N = Math.min(...
|
|
147
|
-
return
|
|
145
|
+
c.push(t.map((e) => e.series[i] || 0).reduce((e, x) => (e || 0) + (x || 0), 0));
|
|
146
|
+
const N = Math.min(...c);
|
|
147
|
+
return c.map((i) => i + (N < 0 ? Math.abs(N) : 0));
|
|
148
148
|
},
|
|
149
149
|
customPalette() {
|
|
150
150
|
return this.convertCustomPalette(this.FINAL_CONFIG.customPalette);
|
|
@@ -179,7 +179,7 @@ const Be = J(), Ye = {
|
|
|
179
179
|
id: i.id,
|
|
180
180
|
yOffset: i.yOffset || 0,
|
|
181
181
|
individualHeight: i.individualHeight || this.drawingArea.height
|
|
182
|
-
})),
|
|
182
|
+
})), c = this.plotSet.map((i) => ({
|
|
183
183
|
name: i.name,
|
|
184
184
|
color: i.color,
|
|
185
185
|
scale: i.individualScale,
|
|
@@ -191,8 +191,8 @@ const Be = J(), Ye = {
|
|
|
191
191
|
id: i.id,
|
|
192
192
|
yOffset: i.yOffset || 0,
|
|
193
193
|
individualHeight: i.individualHeight || this.drawingArea.height
|
|
194
|
-
})), N = [...t, ...s, ...
|
|
195
|
-
return [...t, ...s, ...
|
|
194
|
+
})), N = [...t, ...s, ...c].flatMap((i) => i).length;
|
|
195
|
+
return [...t, ...s, ...c].flatMap((i, e) => ({
|
|
196
196
|
id: i.id,
|
|
197
197
|
scaleLabel: i.scaleLabel,
|
|
198
198
|
name: i.name,
|
|
@@ -252,7 +252,7 @@ const Be = J(), Ye = {
|
|
|
252
252
|
safeDataset() {
|
|
253
253
|
return this.useSafeValues ? this.dataset.map((t, s) => ({
|
|
254
254
|
...t,
|
|
255
|
-
series: t.series.map((
|
|
255
|
+
series: t.series.map((c) => this.isSafeValue(c) ? c : null).slice(this.slicer.start, this.slicer.end),
|
|
256
256
|
color: this.convertColorToHex(t.color ? t.color : this.customPalette[s] ? this.customPalette[s] : this.palette[s]),
|
|
257
257
|
id: `uniqueId_${s}`
|
|
258
258
|
})) : this.dataset;
|
|
@@ -260,13 +260,13 @@ const Be = J(), Ye = {
|
|
|
260
260
|
relativeDataset() {
|
|
261
261
|
return this.safeDataset.map((t, s) => ({
|
|
262
262
|
...t,
|
|
263
|
-
series: t.series.map((
|
|
263
|
+
series: t.series.map((c) => c + this.relativeZero),
|
|
264
264
|
absoluteValues: t.series
|
|
265
265
|
})).filter((t) => !this.segregatedSeries.includes(t.id));
|
|
266
266
|
},
|
|
267
267
|
tableSparklineDataset() {
|
|
268
268
|
return this.relativeDataset.map((t) => {
|
|
269
|
-
const s = t.absoluteValues.map((
|
|
269
|
+
const s = t.absoluteValues.map((c) => [void 0, null].includes(c) ? 0 : c);
|
|
270
270
|
return {
|
|
271
271
|
id: t.id,
|
|
272
272
|
name: t.name,
|
|
@@ -305,7 +305,7 @@ const Be = J(), Ye = {
|
|
|
305
305
|
return this.safeDataset.map((t, s) => ({
|
|
306
306
|
absoluteIndex: s,
|
|
307
307
|
...t,
|
|
308
|
-
series: t.series.map((
|
|
308
|
+
series: t.series.map((c) => c + this.relativeZero),
|
|
309
309
|
absoluteValues: t.series,
|
|
310
310
|
segregate: () => this.segregate(t),
|
|
311
311
|
isSegregated: this.segregatedSeries.includes(t.id)
|
|
@@ -314,14 +314,14 @@ const Be = J(), Ye = {
|
|
|
314
314
|
barSet() {
|
|
315
315
|
return this.activeSeriesWithStackRatios.filter((t) => t.type === "bar").map((t, s) => {
|
|
316
316
|
this.checkAutoScaleError(t);
|
|
317
|
-
const
|
|
318
|
-
ratios: t.absoluteValues.filter((d) => ![null, void 0].includes(d)).map((d) => (d -
|
|
319
|
-
valueMin:
|
|
317
|
+
const c = Math.min(...t.absoluteValues.filter((d) => ![null, void 0].includes(d))), N = Math.max(...t.absoluteValues.filter((d) => ![null, void 0].includes(d))), e = {
|
|
318
|
+
ratios: t.absoluteValues.filter((d) => ![null, void 0].includes(d)).map((d) => (d - c) / (N - c)),
|
|
319
|
+
valueMin: c,
|
|
320
320
|
valueMax: N < 0 ? 0 : N
|
|
321
321
|
}, x = {
|
|
322
322
|
max: t.scaleMax || Math.max(...t.absoluteValues) || 1,
|
|
323
323
|
min: t.scaleMin || Math.min(...t.absoluteValues.filter((d) => ![void 0, null].includes(d))) > 0 ? 0 : Math.min(...t.absoluteValues.filter((d) => ![null, void 0].includes(d)))
|
|
324
|
-
}, _ = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, f = this.calculateNiceScaleWithExactExtremes(x.min, x.max === x.min ? x.max * k : x.max, _), L = this.calculateNiceScaleWithExactExtremes(e.valueMin, e.valueMax === e.valueMin ? e.valueMax * k : e.valueMax, _), M = f.min >= 0 ? 0 : Math.abs(f.min), w = 0, p = f.max + M, v = L.max + Math.abs(w), F = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, C = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, a = this.drawingArea.bottom - F - C * M / p,
|
|
324
|
+
}, _ = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, f = this.calculateNiceScaleWithExactExtremes(x.min, x.max === x.min ? x.max * k : x.max, _), L = this.calculateNiceScaleWithExactExtremes(e.valueMin, e.valueMax === e.valueMin ? e.valueMax * k : e.valueMax, _), M = f.min >= 0 ? 0 : Math.abs(f.min), w = 0, p = f.max + M, v = L.max + Math.abs(w), F = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, C = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, a = this.drawingArea.bottom - F - C * M / p, o = this.drawingArea.bottom - F - C * w / v, n = this.absoluteDataset.filter((d) => d.type === "bar").filter((d) => !this.segregatedSeries.includes(d.id)).length, u = t.series.map((d, b) => {
|
|
325
325
|
const H = this.mutableConfig.useIndividualScale ? (t.absoluteValues[b] + M) / p : this.ratioToMax(d), E = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * b : this.drawingArea.left + this.slot.bar * s + this.slot.bar * b * n - this.barSlot / 2 - s * this.barPeriodGap;
|
|
326
326
|
return {
|
|
327
327
|
yOffset: this.checkNaN(F),
|
|
@@ -354,7 +354,7 @@ const Be = J(), Ye = {
|
|
|
354
354
|
})), O = L.ticks.map((d) => {
|
|
355
355
|
const b = (d - L.min) / (L.max - L.min);
|
|
356
356
|
return {
|
|
357
|
-
y: d >= 0 ?
|
|
357
|
+
y: d >= 0 ? o - C * b : o + C * b,
|
|
358
358
|
value: d,
|
|
359
359
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
360
360
|
suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
@@ -369,8 +369,8 @@ const Be = J(), Ye = {
|
|
|
369
369
|
scaleYLabels: t.autoScaling ? O : y,
|
|
370
370
|
individualScale: t.autoScaling ? L : f,
|
|
371
371
|
individualMax: t.autoScaling ? v : p,
|
|
372
|
-
zeroPosition: t.autoScaling ?
|
|
373
|
-
plots: t.autoScaling ? D :
|
|
372
|
+
zeroPosition: t.autoScaling ? o : a,
|
|
373
|
+
plots: t.autoScaling ? D : u
|
|
374
374
|
};
|
|
375
375
|
});
|
|
376
376
|
},
|
|
@@ -383,14 +383,14 @@ const Be = J(), Ye = {
|
|
|
383
383
|
lineSet() {
|
|
384
384
|
return this.activeSeriesWithStackRatios.filter((t) => t.type === "line").map((t) => {
|
|
385
385
|
this.checkAutoScaleError(t);
|
|
386
|
-
const s = Math.min(...t.absoluteValues.filter((d) => ![void 0, null].includes(d))),
|
|
387
|
-
ratios: t.absoluteValues.filter((d) => ![null, void 0].includes(d)).map((d) => (d - s) / (
|
|
386
|
+
const s = Math.min(...t.absoluteValues.filter((d) => ![void 0, null].includes(d))), c = Math.max(...t.absoluteValues.filter((d) => ![void 0, null].includes(d))) || 1, i = {
|
|
387
|
+
ratios: t.absoluteValues.filter((d) => ![null, void 0].includes(d)).map((d) => (d - s) / (c - s)),
|
|
388
388
|
valueMin: s,
|
|
389
|
-
valueMax:
|
|
389
|
+
valueMax: c
|
|
390
390
|
}, e = {
|
|
391
391
|
max: t.scaleMax || Math.max(...t.absoluteValues) || 1,
|
|
392
392
|
min: t.scaleMin || (Math.min(...t.absoluteValues) > 0 ? 0 : Math.min(...t.absoluteValues))
|
|
393
|
-
}, x = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, k = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * _ : e.max, x), f = this.calculateNiceScaleWithExactExtremes(i.valueMin, i.valueMax === i.valueMin ? i.valueMax * _ : i.valueMax, x), L = k.min >= 0 ? 0 : Math.abs(k.min), M = 0, w = k.max + Math.abs(L), p = f.max + Math.abs(M), v = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, F = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - v - F * L / w, a = this.drawingArea.bottom - v - F * M / p,
|
|
393
|
+
}, x = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, k = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * _ : e.max, x), f = this.calculateNiceScaleWithExactExtremes(i.valueMin, i.valueMax === i.valueMin ? i.valueMax * _ : i.valueMax, x), L = k.min >= 0 ? 0 : Math.abs(k.min), M = 0, w = k.max + Math.abs(L), p = f.max + Math.abs(M), v = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, F = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - v - F * L / w, a = this.drawingArea.bottom - v - F * M / p, o = t.series.map((d, b) => {
|
|
394
394
|
const H = this.mutableConfig.useIndividualScale ? (t.absoluteValues[b] + Math.abs(L)) / w : this.ratioToMax(d);
|
|
395
395
|
return {
|
|
396
396
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * b),
|
|
@@ -398,7 +398,7 @@ const Be = J(), Ye = {
|
|
|
398
398
|
value: t.absoluteValues[b],
|
|
399
399
|
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[b] || ""
|
|
400
400
|
};
|
|
401
|
-
}), n = t.absoluteValues.map((d) => f.min >= 0 ? (d - Math.abs(f.min)) / (f.max - Math.abs(f.min)) : (d + Math.abs(f.min)) / (f.max + Math.abs(f.min))),
|
|
401
|
+
}), n = t.absoluteValues.map((d) => f.min >= 0 ? (d - Math.abs(f.min)) / (f.max - Math.abs(f.min)) : (d + Math.abs(f.min)) / (f.max + Math.abs(f.min))), u = t.series.map((d, b) => [void 0, null].includes(t.absoluteValues[b]) ? {
|
|
402
402
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * b),
|
|
403
403
|
y: C,
|
|
404
404
|
value: t.absoluteValues[b],
|
|
@@ -408,7 +408,7 @@ const Be = J(), Ye = {
|
|
|
408
408
|
y: this.checkNaN(this.drawingArea.bottom - v - (F * n[b] || 0)),
|
|
409
409
|
value: t.absoluteValues[b],
|
|
410
410
|
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[b] || ""
|
|
411
|
-
}), W = this.createSmoothPath(
|
|
411
|
+
}), W = this.createSmoothPath(o), D = this.createSmoothPath(u), y = k.ticks.map((d) => ({
|
|
412
412
|
y: d >= 0 ? C - F * (d / w) : C + F * Math.abs(d) / w,
|
|
413
413
|
value: d,
|
|
414
414
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
@@ -434,22 +434,22 @@ const Be = J(), Ye = {
|
|
|
434
434
|
individualMax: t.autoScaling ? p : w,
|
|
435
435
|
zeroPosition: t.autoScaling ? a : C,
|
|
436
436
|
curve: t.autoScaling ? D : W,
|
|
437
|
-
plots: t.autoScaling ?
|
|
438
|
-
area: t.useArea ? this.mutableConfig.useIndividualScale ? this.createIndividualArea(t.autoScaling ?
|
|
437
|
+
plots: t.autoScaling ? u : o,
|
|
438
|
+
area: t.useArea ? this.mutableConfig.useIndividualScale ? this.createIndividualArea(t.autoScaling ? u : o, t.autoScaling ? a : C) : this.createArea(o) : ""
|
|
439
439
|
};
|
|
440
440
|
});
|
|
441
441
|
},
|
|
442
442
|
plotSet() {
|
|
443
443
|
return this.activeSeriesWithStackRatios.filter((t) => t.type === "plot").map((t) => {
|
|
444
444
|
this.checkAutoScaleError(t);
|
|
445
|
-
const s = Math.min(...t.absoluteValues.filter((y) => ![null, void 0].includes(y))),
|
|
446
|
-
ratios: t.absoluteValues.filter((y) => ![null, void 0].includes(y)).map((y) => (y - s) / (
|
|
445
|
+
const s = Math.min(...t.absoluteValues.filter((y) => ![null, void 0].includes(y))), c = Math.max(...t.absoluteValues.filter((y) => ![null, void 0].includes(y))) || 1, i = {
|
|
446
|
+
ratios: t.absoluteValues.filter((y) => ![null, void 0].includes(y)).map((y) => (y - s) / (c - s)),
|
|
447
447
|
valueMin: s,
|
|
448
|
-
valueMax:
|
|
448
|
+
valueMax: c
|
|
449
449
|
}, e = {
|
|
450
450
|
max: t.scaleMax || Math.max(...t.absoluteValues) || 1,
|
|
451
451
|
min: t.scaleMin || Math.min(...t.absoluteValues) > 0 ? 0 : Math.min(...t.absoluteValues)
|
|
452
|
-
}, x = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, k = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * _ : e.max, x), f = this.calculateNiceScaleWithExactExtremes(i.valueMin, i.valueMax === i.valueMin ? i.valueMax * _ : i.valueMax, x), L = k.min >= 0 ? 0 : Math.abs(k.min), M = 0, w = k.max + L, p = f.max + Math.abs(M), v = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, F = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - v - F * L / w, a = this.drawingArea.bottom - v - F * M / p,
|
|
452
|
+
}, x = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, k = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * _ : e.max, x), f = this.calculateNiceScaleWithExactExtremes(i.valueMin, i.valueMax === i.valueMin ? i.valueMax * _ : i.valueMax, x), L = k.min >= 0 ? 0 : Math.abs(k.min), M = 0, w = k.max + L, p = f.max + Math.abs(M), v = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, F = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - v - F * L / w, a = this.drawingArea.bottom - v - F * M / p, o = t.series.map((y, O) => {
|
|
453
453
|
const d = this.mutableConfig.useIndividualScale ? (t.absoluteValues[O] + Math.abs(L)) / w : this.ratioToMax(y);
|
|
454
454
|
return {
|
|
455
455
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * O),
|
|
@@ -457,7 +457,7 @@ const Be = J(), Ye = {
|
|
|
457
457
|
value: t.absoluteValues[O],
|
|
458
458
|
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[O] || ""
|
|
459
459
|
};
|
|
460
|
-
}), n = t.absoluteValues.map((y) => f.min >= 0 ? (y - Math.abs(f.min)) / (f.max - Math.abs(f.min)) : (y + Math.abs(f.min)) / (f.max + Math.abs(f.min))),
|
|
460
|
+
}), n = t.absoluteValues.map((y) => f.min >= 0 ? (y - Math.abs(f.min)) / (f.max - Math.abs(f.min)) : (y + Math.abs(f.min)) / (f.max + Math.abs(f.min))), u = t.series.map((y, O) => ({
|
|
461
461
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * O),
|
|
462
462
|
y: this.checkNaN(this.drawingArea.bottom - v - (F * n[O] || 0)),
|
|
463
463
|
value: t.absoluteValues[O],
|
|
@@ -487,7 +487,7 @@ const Be = J(), Ye = {
|
|
|
487
487
|
individualScale: t.autoScaling ? f : k,
|
|
488
488
|
individualMax: t.autoScaling ? p : w,
|
|
489
489
|
zeroPosition: t.autoScaling ? a : C,
|
|
490
|
-
plots: t.autoScaling ?
|
|
490
|
+
plots: t.autoScaling ? u : o
|
|
491
491
|
};
|
|
492
492
|
});
|
|
493
493
|
},
|
|
@@ -539,13 +539,13 @@ const Be = J(), Ye = {
|
|
|
539
539
|
},
|
|
540
540
|
table() {
|
|
541
541
|
if (this.safeDataset.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
542
|
-
const t = this.relativeDataset.map((
|
|
543
|
-
label:
|
|
544
|
-
color:
|
|
545
|
-
type:
|
|
542
|
+
const t = this.relativeDataset.map((c) => ({
|
|
543
|
+
label: c.name,
|
|
544
|
+
color: c.color,
|
|
545
|
+
type: c.type
|
|
546
546
|
})), s = [];
|
|
547
|
-
return this.timeLabels.forEach((
|
|
548
|
-
const i = [
|
|
547
|
+
return this.timeLabels.forEach((c, N) => {
|
|
548
|
+
const i = [c];
|
|
549
549
|
this.relativeDataset.forEach((e) => {
|
|
550
550
|
i.push(this.canShowValue(e.absoluteValues[N]) ? Number(e.absoluteValues[N].toFixed(this.FINAL_CONFIG.table.rounding)) : "");
|
|
551
551
|
}), s.push(i);
|
|
@@ -555,10 +555,10 @@ const Be = J(), Ye = {
|
|
|
555
555
|
const t = this.FINAL_CONFIG.table.showSum;
|
|
556
556
|
let s = [""].concat(this.relativeDataset.map((e) => e.name));
|
|
557
557
|
t && (s = s.concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'));
|
|
558
|
-
let
|
|
558
|
+
let c = [];
|
|
559
559
|
for (let e = 0; e < this.maxSeries; e += 1) {
|
|
560
560
|
const x = this.relativeDataset.map((_) => _.absoluteValues[e] ?? 0).reduce((_, k) => _ + k, 0);
|
|
561
|
-
|
|
561
|
+
c.push(
|
|
562
562
|
[
|
|
563
563
|
this.timeLabels[e] ?? "-"
|
|
564
564
|
].concat(this.relativeDataset.map(
|
|
@@ -588,7 +588,7 @@ const Be = J(), Ye = {
|
|
|
588
588
|
},
|
|
589
589
|
breakpoint: this.FINAL_CONFIG.table.responsiveBreakpoint
|
|
590
590
|
}, i = [this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map((e) => e.name)).concat(this.FINAL_CONFIG.table.columnNames.total);
|
|
591
|
-
return { head: s, body:
|
|
591
|
+
return { head: s, body: c, config: N, colNames: i };
|
|
592
592
|
},
|
|
593
593
|
dataTooltipSlot() {
|
|
594
594
|
return {
|
|
@@ -607,7 +607,7 @@ const Be = J(), Ye = {
|
|
|
607
607
|
name: t.name,
|
|
608
608
|
color: t.color,
|
|
609
609
|
type: t.type,
|
|
610
|
-
value: t.absoluteValues.find((s,
|
|
610
|
+
value: t.absoluteValues.find((s, c) => c === this.selectedSerieIndex),
|
|
611
611
|
comments: t.comments || [],
|
|
612
612
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
613
613
|
suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix
|
|
@@ -615,7 +615,7 @@ const Be = J(), Ye = {
|
|
|
615
615
|
},
|
|
616
616
|
tooltipContent() {
|
|
617
617
|
let t = "", s = this.selectedSeries.map((i) => i.value).filter((i) => this.isSafeValue(i) && i !== null).reduce((i, e) => Math.abs(i) + Math.abs(e), 0);
|
|
618
|
-
const
|
|
618
|
+
const c = this.timeLabels[this.selectedSerieIndex], N = this.FINAL_CONFIG.chart.tooltip.customFormat;
|
|
619
619
|
return this.isFunction(N) && this.functionReturnsString(() => N({
|
|
620
620
|
seriesIndex: this.selectedSerieIndex,
|
|
621
621
|
datapoint: this.selectedSeries,
|
|
@@ -632,7 +632,7 @@ const Be = J(), Ye = {
|
|
|
632
632
|
lines: this.lineSet,
|
|
633
633
|
plots: this.plotSet,
|
|
634
634
|
config: this.FINAL_CONFIG
|
|
635
|
-
}) : (
|
|
635
|
+
}) : (c && (t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${c}</div>`), this.selectedSeries.forEach((i) => {
|
|
636
636
|
if (this.isSafeValue(i.value)) {
|
|
637
637
|
let e = "", x = "";
|
|
638
638
|
switch (this.icons[i.type]) {
|
|
@@ -725,8 +725,8 @@ const Be = J(), Ye = {
|
|
|
725
725
|
calculateNiceScaleWithExactExtremes: le,
|
|
726
726
|
checkNaN: se,
|
|
727
727
|
closestDecimal: ne,
|
|
728
|
-
convertColorToHex:
|
|
729
|
-
convertConfigColors:
|
|
728
|
+
convertColorToHex: oe,
|
|
729
|
+
convertConfigColors: ce,
|
|
730
730
|
convertCustomPalette: he,
|
|
731
731
|
createCsvContent: de,
|
|
732
732
|
createSmoothPath: ue,
|
|
@@ -746,10 +746,10 @@ const Be = J(), Ye = {
|
|
|
746
746
|
useMouse: Oe,
|
|
747
747
|
useNestedProp: Z,
|
|
748
748
|
getHighlightAreaPosition(t) {
|
|
749
|
-
const s = this.drawingArea.left + this.drawingArea.width / this.maxSeries * (t.from - this.slicer.start),
|
|
749
|
+
const s = this.drawingArea.left + this.drawingArea.width / this.maxSeries * (t.from - this.slicer.start), c = this.drawingArea.width / (this.slicer.end - this.slicer.start) * t.span < 0 ? 1e-5 : this.drawingArea.width / (this.slicer.end - this.slicer.start) * t.span;
|
|
750
750
|
return {
|
|
751
751
|
x: s < this.drawingArea.left ? this.drawingArea.left : s,
|
|
752
|
-
width:
|
|
752
|
+
width: c
|
|
753
753
|
};
|
|
754
754
|
},
|
|
755
755
|
prepareConfig() {
|
|
@@ -780,9 +780,9 @@ const Be = J(), Ye = {
|
|
|
780
780
|
index: s
|
|
781
781
|
});
|
|
782
782
|
}), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((t) => {
|
|
783
|
-
t.series.forEach((s,
|
|
783
|
+
t.series.forEach((s, c) => {
|
|
784
784
|
this.isSafeValue(s) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
785
|
-
-----> The serie '${t.name}' contains the value '${s}' at index ${
|
|
785
|
+
-----> The serie '${t.name}' contains the value '${s}' at index ${c}.
|
|
786
786
|
'${s}' was converted to null to allow the chart to display.`);
|
|
787
787
|
});
|
|
788
788
|
}), this.mutableConfig = {
|
|
@@ -794,13 +794,13 @@ const Be = J(), Ye = {
|
|
|
794
794
|
isStacked: this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,
|
|
795
795
|
useIndividualScale: this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale
|
|
796
796
|
}, this.FINAL_CONFIG.responsive) {
|
|
797
|
-
const s = this.$refs.chart.parentNode, { height:
|
|
797
|
+
const s = this.$refs.chart.parentNode, { height: c, width: N } = s.getBoundingClientRect();
|
|
798
798
|
let i = null, e = 0;
|
|
799
799
|
this.FINAL_CONFIG.chart.title.show && (i = this.$refs.chartTitle, e = i.getBoundingClientRect().height);
|
|
800
800
|
let x = null, _ = 0;
|
|
801
801
|
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (x = this.$refs.chartSlicer.$el, _ = x.getBoundingClientRect().height);
|
|
802
802
|
let k = null, f = 0;
|
|
803
|
-
this.FINAL_CONFIG.chart.legend.show && (k = this.$refs.chartLegend, f = k.getBoundingClientRect().height), this.height =
|
|
803
|
+
this.FINAL_CONFIG.chart.legend.show && (k = this.$refs.chartLegend, f = k.getBoundingClientRect().height), this.height = c - e - f - _, this.width = N, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes(), new ResizeObserver((M) => {
|
|
804
804
|
for (const w of M)
|
|
805
805
|
this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (_ = this.$refs.chartSlicer.$el.getBoundingClientRect().height), this.$refs.chartLegend && (f = this.$refs.chartLegend.getBoundingClientRect().height), this.height = w.contentBoxSize[0].blockSize - e - f - _ - 24, this.width = w.contentBoxSize[0].inlineSize, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
|
|
806
806
|
}).observe(s);
|
|
@@ -866,25 +866,25 @@ const Be = J(), Ye = {
|
|
|
866
866
|
},
|
|
867
867
|
createArea(t) {
|
|
868
868
|
if (!t[0]) return [-10, -10, "", -10, -10];
|
|
869
|
-
const s = { x: t[0].x, y: this.zero },
|
|
869
|
+
const s = { x: t[0].x, y: this.zero }, c = { x: t.at(-1).x, y: this.zero }, N = [];
|
|
870
870
|
return t.forEach((i) => {
|
|
871
871
|
N.push(`${i.x},${i.y} `);
|
|
872
|
-
}), [s.x, s.y, ...N,
|
|
872
|
+
}), [s.x, s.y, ...N, c.x, c.y].toString();
|
|
873
873
|
},
|
|
874
874
|
createIndividualArea(t, s) {
|
|
875
875
|
if (!t[0]) return [-10, -10, "", -10, -10];
|
|
876
|
-
const
|
|
876
|
+
const c = { x: t[0] ? t[0].x : Math.min(...t.filter((e) => !!e).map((e) => e.x)), y: s }, N = { x: t.at(-1) ? t.at(-1).x : Math.min(...t.filter((e) => !!e).map((e) => e.x)), y: s }, i = [];
|
|
877
877
|
return t.filter((e) => !!e).forEach((e) => {
|
|
878
878
|
i.push(`${e.x},${e.y} `);
|
|
879
|
-
}), [
|
|
879
|
+
}), [c.x, c.y, ...i, N.x, N.y].toString();
|
|
880
880
|
},
|
|
881
881
|
createStar: q,
|
|
882
882
|
createPolygonPath: T,
|
|
883
883
|
fillArray(t, s) {
|
|
884
|
-
let
|
|
884
|
+
let c = Array(t).fill(0);
|
|
885
885
|
for (let N = 0; N < s.length && N < t; N += 1)
|
|
886
|
-
|
|
887
|
-
return
|
|
886
|
+
c[N] = s[N];
|
|
887
|
+
return c;
|
|
888
888
|
},
|
|
889
889
|
refreshSlicer() {
|
|
890
890
|
this.slicer = {
|
|
@@ -914,12 +914,12 @@ const Be = J(), Ye = {
|
|
|
914
914
|
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(t);
|
|
915
915
|
},
|
|
916
916
|
findClosestValue(t, s) {
|
|
917
|
-
let
|
|
917
|
+
let c = s[0], N = Math.abs(t - s[0]);
|
|
918
918
|
for (let i = 1; i < s.length; i += 1) {
|
|
919
919
|
const e = Math.abs(t - s[i]);
|
|
920
|
-
e < N && s[i] < t && (
|
|
920
|
+
e < N && s[i] < t && (c = s[i], N = e);
|
|
921
921
|
}
|
|
922
|
-
return
|
|
922
|
+
return c;
|
|
923
923
|
},
|
|
924
924
|
ratioToMax(t) {
|
|
925
925
|
return t / (this.canShowValue(this.absoluteMax) ? this.absoluteMax : 1);
|
|
@@ -986,7 +986,7 @@ const Be = J(), Ye = {
|
|
|
986
986
|
}, 100);
|
|
987
987
|
},
|
|
988
988
|
generateCsv() {
|
|
989
|
-
const t = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], s = ["", ...this.table.head.map((e) => e.label)],
|
|
989
|
+
const t = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], s = ["", ...this.table.head.map((e) => e.label)], c = this.table.body, N = t.concat([s]).concat(c), i = this.createCsvContent(N);
|
|
990
990
|
this.downloadCsv({ csvContent: i, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
|
|
991
991
|
},
|
|
992
992
|
showSpinnerImage() {
|
|
@@ -1009,7 +1009,7 @@ const Be = J(), Ye = {
|
|
|
1009
1009
|
}, 100);
|
|
1010
1010
|
}
|
|
1011
1011
|
}
|
|
1012
|
-
}, Xe = ["id"], qe = ["viewBox"], Ue = { key: 0 }, Ze = { class: "vue-ui-xy-grid" }, Je = ["stroke", "x1", "x2", "y1", "y2"], Ke = ["stroke", "x1", "x2", "y1", "y2"], Qe = { key: 1 }, je = ["x1", "x2", "y1", "y2", "stroke"], $e = ["x1", "x2", "y1", "y2", "stroke"], et = ["x1", "x2", "y1", "y2", "stroke"], tt = { key: 3 }, at = ["x1", "x2", "y1", "y2", "stroke"], it = ["id"], rt = ["stop-color"], lt = ["stop-color"], st = ["stop-color"], nt = ["id"],
|
|
1012
|
+
}, Xe = ["id"], qe = ["viewBox"], Ue = { key: 0 }, Ze = { class: "vue-ui-xy-grid" }, Je = ["stroke", "x1", "x2", "y1", "y2"], Ke = ["stroke", "x1", "x2", "y1", "y2"], Qe = { key: 1 }, je = ["x1", "x2", "y1", "y2", "stroke"], $e = ["x1", "x2", "y1", "y2", "stroke"], et = ["x1", "x2", "y1", "y2", "stroke"], tt = { key: 3 }, at = ["x1", "x2", "y1", "y2", "stroke"], it = ["id"], rt = ["stop-color"], lt = ["stop-color"], st = ["stop-color"], nt = ["id"], ot = ["stop-color"], ct = ["stop-color"], ht = ["stop-color"], dt = ["id"], ut = ["stop-color"], gt = ["stop-color"], ft = ["id"], Nt = ["stop-color"], mt = ["stop-color"], It = ["id"], xt = ["stop-color"], bt = ["stop-color"], Ft = ["x", "y", "height", "width", "fill"], _t = ["x", "y", "width"], yt = ["x", "y", "height", "width", "fill"], At = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Lt = ["width", "x", "y"], Ct = { key: 0 }, St = ["id"], kt = ["fill"], wt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Ot = ["x", "y", "font-size", "fill"], Gt = ["stroke", "x1", "x2", "y1", "y2"], vt = { key: 2 }, pt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], zt = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Mt = { key: 4 }, Pt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tt = ["fill", "font-size", "transform"], Vt = ["x1", "x2", "y1", "y2", "stroke"], Rt = ["x", "y", "font-size", "fill"], Dt = ["x1", "x2", "y1", "y2", "stroke"], Wt = ["x", "y", "font-size", "fill"], Ht = ["width", "x", "y"], Et = { style: { width: "100%" } }, Bt = { key: 0 }, Yt = ["id"], Xt = ["fill"], qt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Ut = ["x", "y", "font-size", "fill"], Zt = ["d", "stroke", "stroke-width", "stroke-dasharray"], Jt = { key: 1 }, Kt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Qt = { key: 0 }, jt = ["d", "fill"], $t = ["d", "fill"], ea = ["d", "stroke", "stroke-width", "stroke-dasharray"], ta = { key: 2 }, aa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ia = ["width", "x", "y"], ra = { style: { width: "100%" } }, la = { key: 3 }, sa = ["id"], na = ["fill"], oa = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ca = ["x", "y", "font-size", "fill"], ha = { key: 5 }, da = ["x", "y", "font-size", "fill"], ua = ["x", "y", "font-size", "fill", "font-weight"], ga = { key: 6 }, fa = ["x", "y", "font-size", "fill"], Na = ["x", "y"], ma = ["x", "y"], Ia = { key: 7 }, xa = ["x", "y", "font-size", "fill"], ba = ["x", "y"], Fa = ["x", "y"], _a = ["x", "y", "font-size", "fill", "innerHTML"], ya = ["x", "y", "font-size", "fill", "innerHTML"], Aa = ["x", "y", "font-size", "fill", "innerHTML"], La = ["x", "y", "font-size", "fill", "innerHTML"], Ca = ["x", "y", "width", "height", "fill", "onMouseenter"], Sa = ["font-size", "fill", "transform"], ka = ["x", "y", "font-size", "fill"], wa = { key: 9 }, Oa = ["text-anchor", "font-size", "fill", "transform"], Ga = ["x", "y", "height", "width", "onMouseenter", "onClick"], va = { key: 10 }, pa = ["x", "y"], za = ["cx", "cy", "r", "fill"], Ma = {
|
|
1013
1013
|
key: 3,
|
|
1014
1014
|
class: "vue-data-ui-watermark"
|
|
1015
1015
|
}, Pa = ["onClick"], Ta = {
|
|
@@ -1029,7 +1029,7 @@ const Be = J(), Ye = {
|
|
|
1029
1029
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
1030
1030
|
"data-html2canvas-ignore": ""
|
|
1031
1031
|
}, Ea = ["innerHTML"];
|
|
1032
|
-
function Ba(t, s,
|
|
1032
|
+
function Ba(t, s, c, N, i, e) {
|
|
1033
1033
|
const x = V("Title"), _ = V("UserOptions"), k = V("PackageVersion"), f = V("Shape"), L = V("Skeleton"), M = V("Slicer"), w = V("Tooltip"), p = V("BaseIcon"), v = V("TableSparkline"), F = V("DataTable"), C = V("Accordion");
|
|
1034
1034
|
return r(), l("div", {
|
|
1035
1035
|
id: `vue-ui-xy_${i.uniqueId}`,
|
|
@@ -1071,7 +1071,7 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1071
1071
|
hasImg: e.FINAL_CONFIG.chart.userOptions.buttons.img,
|
|
1072
1072
|
hasLabel: e.FINAL_CONFIG.chart.userOptions.buttons.labels,
|
|
1073
1073
|
hasTable: e.FINAL_CONFIG.chart.userOptions.buttons.table,
|
|
1074
|
-
hasStack:
|
|
1074
|
+
hasStack: c.dataset.length > 1 && e.FINAL_CONFIG.chart.userOptions.buttons.stack,
|
|
1075
1075
|
hasFullscreen: e.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,
|
|
1076
1076
|
isStacked: i.mutableConfig.isStacked,
|
|
1077
1077
|
isFullscreen: i.isFullscreen,
|
|
@@ -1139,8 +1139,8 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1139
1139
|
} : void 0,
|
|
1140
1140
|
t.$slots.optionFullscreen ? {
|
|
1141
1141
|
name: "optionFullscreen",
|
|
1142
|
-
fn: z(({ toggleFullscreen: a, isFullscreen:
|
|
1143
|
-
G(t.$slots, "optionFullscreen", B(Y({ toggleFullscreen: a, isFullscreen:
|
|
1142
|
+
fn: z(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
1143
|
+
G(t.$slots, "optionFullscreen", B(Y({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
1144
1144
|
]),
|
|
1145
1145
|
key: "7"
|
|
1146
1146
|
} : void 0
|
|
@@ -1155,7 +1155,7 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1155
1155
|
}, [
|
|
1156
1156
|
X(k),
|
|
1157
1157
|
e.maxSeries > 0 ? (r(), l("g", Ue, [
|
|
1158
|
-
|
|
1158
|
+
g("g", Ze, [
|
|
1159
1159
|
e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (r(), l("line", {
|
|
1160
1160
|
key: 0,
|
|
1161
1161
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
@@ -1167,19 +1167,19 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1167
1167
|
"stroke-linecap": "round"
|
|
1168
1168
|
}, null, 8, Je)) : h("", !0),
|
|
1169
1169
|
i.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (r(!0), l(m, { key: 2 }, I(e.allScales, (a) => (r(), l("g", null, [
|
|
1170
|
-
a.id === i.selectedScale && a.yLabels.length ? (r(!0), l(m, { key: 0 }, I(a.yLabels, (
|
|
1170
|
+
a.id === i.selectedScale && a.yLabels.length ? (r(!0), l(m, { key: 0 }, I(a.yLabels, (o) => (r(), l("line", {
|
|
1171
1171
|
x1: e.drawingArea.left + e.xPadding,
|
|
1172
1172
|
x2: e.drawingArea.right - e.xPadding,
|
|
1173
|
-
y1: e.checkNaN(
|
|
1174
|
-
y2: e.checkNaN(
|
|
1173
|
+
y1: e.checkNaN(o.y),
|
|
1174
|
+
y2: e.checkNaN(o.y),
|
|
1175
1175
|
stroke: a.color,
|
|
1176
1176
|
"stroke-width": 0.5,
|
|
1177
1177
|
"stroke-linecap": "round"
|
|
1178
|
-
}, null, 8, $e))), 256)) : a.yLabels.length ? (r(!0), l(m, { key: 1 }, I(a.yLabels, (
|
|
1178
|
+
}, null, 8, $e))), 256)) : a.yLabels.length ? (r(!0), l(m, { key: 1 }, I(a.yLabels, (o) => (r(), l("line", {
|
|
1179
1179
|
x1: e.drawingArea.left + e.xPadding,
|
|
1180
1180
|
x2: e.drawingArea.right - e.xPadding,
|
|
1181
|
-
y1: e.checkNaN(
|
|
1182
|
-
y2: e.checkNaN(
|
|
1181
|
+
y1: e.checkNaN(o.y),
|
|
1182
|
+
y2: e.checkNaN(o.y),
|
|
1183
1183
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1184
1184
|
"stroke-width": 0.5,
|
|
1185
1185
|
"stroke-linecap": "round"
|
|
@@ -1208,10 +1208,10 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1208
1208
|
])) : h("", !0)
|
|
1209
1209
|
], 64)),
|
|
1210
1210
|
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (r(), l("g", tt, [
|
|
1211
|
-
(r(!0), l(m, null, I(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (a,
|
|
1212
|
-
key: `grid_vertical_line_${
|
|
1213
|
-
x1: e.drawingArea.width / e.maxSeries *
|
|
1214
|
-
x2: e.drawingArea.width / e.maxSeries *
|
|
1211
|
+
(r(!0), l(m, null, I(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (a, o) => (r(), l("line", {
|
|
1212
|
+
key: `grid_vertical_line_${o}`,
|
|
1213
|
+
x1: e.drawingArea.width / e.maxSeries * o + e.drawingArea.left + e.xPadding,
|
|
1214
|
+
x2: e.drawingArea.width / e.maxSeries * o + e.drawingArea.left + e.xPadding,
|
|
1215
1215
|
y1: e.drawingArea.top,
|
|
1216
1216
|
y2: e.drawingArea.bottom,
|
|
1217
1217
|
"stroke-width": "0.5",
|
|
@@ -1219,107 +1219,107 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1219
1219
|
}, null, 8, at))), 128))
|
|
1220
1220
|
])) : h("", !0)
|
|
1221
1221
|
]),
|
|
1222
|
-
(r(!0), l(m, null, I(e.barSet, (a,
|
|
1223
|
-
key: `def_rect_${
|
|
1222
|
+
(r(!0), l(m, null, I(e.barSet, (a, o) => (r(), l("defs", {
|
|
1223
|
+
key: `def_rect_${o}`
|
|
1224
1224
|
}, [
|
|
1225
|
-
|
|
1226
|
-
id: `rectGradient_pos_${
|
|
1225
|
+
g("linearGradient", {
|
|
1226
|
+
id: `rectGradient_pos_${o}_${i.uniqueId}`,
|
|
1227
1227
|
x2: "0%",
|
|
1228
1228
|
y2: "100%"
|
|
1229
1229
|
}, [
|
|
1230
|
-
|
|
1230
|
+
g("stop", {
|
|
1231
1231
|
offset: "0%",
|
|
1232
1232
|
"stop-color": a.color
|
|
1233
1233
|
}, null, 8, rt),
|
|
1234
|
-
|
|
1234
|
+
g("stop", {
|
|
1235
1235
|
offset: "62%",
|
|
1236
1236
|
"stop-color": `${e.shiftHue(a.color, 0.02)}`
|
|
1237
1237
|
}, null, 8, lt),
|
|
1238
|
-
|
|
1238
|
+
g("stop", {
|
|
1239
1239
|
offset: "100%",
|
|
1240
1240
|
"stop-color": `${e.shiftHue(a.color, 0.05)}`
|
|
1241
1241
|
}, null, 8, st)
|
|
1242
1242
|
], 8, it),
|
|
1243
|
-
|
|
1244
|
-
id: `rectGradient_neg_${
|
|
1243
|
+
g("linearGradient", {
|
|
1244
|
+
id: `rectGradient_neg_${o}_${i.uniqueId}`,
|
|
1245
1245
|
x2: "0%",
|
|
1246
1246
|
y2: "100%"
|
|
1247
1247
|
}, [
|
|
1248
|
-
|
|
1248
|
+
g("stop", {
|
|
1249
1249
|
offset: "0%",
|
|
1250
1250
|
"stop-color": `${e.shiftHue(a.color, 0.05)}`
|
|
1251
|
-
}, null, 8,
|
|
1252
|
-
|
|
1251
|
+
}, null, 8, ot),
|
|
1252
|
+
g("stop", {
|
|
1253
1253
|
offset: "38%",
|
|
1254
1254
|
"stop-color": `${e.shiftHue(a.color, 0.02)}`
|
|
1255
|
-
}, null, 8,
|
|
1256
|
-
|
|
1255
|
+
}, null, 8, ct),
|
|
1256
|
+
g("stop", {
|
|
1257
1257
|
offset: "100%",
|
|
1258
1258
|
"stop-color": a.color
|
|
1259
1259
|
}, null, 8, ht)
|
|
1260
1260
|
], 8, nt)
|
|
1261
1261
|
]))), 128)),
|
|
1262
|
-
(r(!0), l(m, null, I(e.plotSet, (a,
|
|
1263
|
-
key: `def_plot_${
|
|
1262
|
+
(r(!0), l(m, null, I(e.plotSet, (a, o) => (r(), l("defs", {
|
|
1263
|
+
key: `def_plot_${o}`
|
|
1264
1264
|
}, [
|
|
1265
|
-
|
|
1266
|
-
id: `plotGradient_${
|
|
1265
|
+
g("radialGradient", {
|
|
1266
|
+
id: `plotGradient_${o}_${i.uniqueId}`,
|
|
1267
1267
|
cx: "50%",
|
|
1268
1268
|
cy: "50%",
|
|
1269
1269
|
r: "50%",
|
|
1270
1270
|
fx: "50%",
|
|
1271
1271
|
fy: "50%"
|
|
1272
1272
|
}, [
|
|
1273
|
-
|
|
1273
|
+
g("stop", {
|
|
1274
1274
|
offset: "0%",
|
|
1275
1275
|
"stop-color": `${e.shiftHue(a.color, 0.05)}`
|
|
1276
1276
|
}, null, 8, ut),
|
|
1277
|
-
|
|
1277
|
+
g("stop", {
|
|
1278
1278
|
offset: "100%",
|
|
1279
1279
|
"stop-color": a.color
|
|
1280
1280
|
}, null, 8, gt)
|
|
1281
1281
|
], 8, dt)
|
|
1282
1282
|
]))), 128)),
|
|
1283
|
-
(r(!0), l(m, null, I(e.lineSet, (a,
|
|
1284
|
-
key: `def_line_${
|
|
1283
|
+
(r(!0), l(m, null, I(e.lineSet, (a, o) => (r(), l("defs", {
|
|
1284
|
+
key: `def_line_${o}`
|
|
1285
1285
|
}, [
|
|
1286
|
-
|
|
1287
|
-
id: `lineGradient_${
|
|
1286
|
+
g("radialGradient", {
|
|
1287
|
+
id: `lineGradient_${o}_${i.uniqueId}`,
|
|
1288
1288
|
cx: "50%",
|
|
1289
1289
|
cy: "50%",
|
|
1290
1290
|
r: "50%",
|
|
1291
1291
|
fx: "50%",
|
|
1292
1292
|
fy: "50%"
|
|
1293
1293
|
}, [
|
|
1294
|
-
|
|
1294
|
+
g("stop", {
|
|
1295
1295
|
offset: "0%",
|
|
1296
1296
|
"stop-color": `${e.shiftHue(a.color, 0.05)}`
|
|
1297
1297
|
}, null, 8, Nt),
|
|
1298
|
-
|
|
1298
|
+
g("stop", {
|
|
1299
1299
|
offset: "100%",
|
|
1300
1300
|
"stop-color": a.color
|
|
1301
1301
|
}, null, 8, mt)
|
|
1302
1302
|
], 8, ft),
|
|
1303
|
-
|
|
1304
|
-
id: `areaGradient_${
|
|
1303
|
+
g("linearGradient", {
|
|
1304
|
+
id: `areaGradient_${o}_${i.uniqueId}`,
|
|
1305
1305
|
x1: "0%",
|
|
1306
1306
|
x2: "100%",
|
|
1307
1307
|
y1: "0%",
|
|
1308
1308
|
y2: "0%"
|
|
1309
1309
|
}, [
|
|
1310
|
-
|
|
1310
|
+
g("stop", {
|
|
1311
1311
|
offset: "0%",
|
|
1312
1312
|
"stop-color": `${e.setOpacity(e.shiftHue(a.color, 0.03), e.FINAL_CONFIG.line.area.opacity)}`
|
|
1313
1313
|
}, null, 8, xt),
|
|
1314
|
-
|
|
1314
|
+
g("stop", {
|
|
1315
1315
|
offset: "100%",
|
|
1316
1316
|
"stop-color": `${e.setOpacity(a.color, e.FINAL_CONFIG.line.area.opacity)}`
|
|
1317
1317
|
}, null, 8, bt)
|
|
1318
1318
|
], 8, It)
|
|
1319
1319
|
]))), 128)),
|
|
1320
1320
|
(r(!0), l(m, null, I(e.highlightAreas, (a) => (r(), l("g", null, [
|
|
1321
|
-
a.show ? (r(!0), l(m, { key: 0 }, I(a.span, (
|
|
1322
|
-
|
|
1321
|
+
a.show ? (r(!0), l(m, { key: 0 }, I(a.span, (o, n) => (r(), l("g", null, [
|
|
1322
|
+
g("rect", {
|
|
1323
1323
|
style: A({
|
|
1324
1324
|
transition: "none",
|
|
1325
1325
|
opacity: a.from + n >= i.slicer.start && a.from + n <= i.slicer.end - 1 ? 1 : 0
|
|
@@ -1341,32 +1341,32 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1341
1341
|
height: "1",
|
|
1342
1342
|
width: a.caption.width === "auto" ? e.drawingArea.width / e.maxSeries * a.span : a.caption.width
|
|
1343
1343
|
}, [
|
|
1344
|
-
|
|
1344
|
+
g("div", {
|
|
1345
1345
|
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"}`)
|
|
1346
1346
|
}, S(a.caption.text), 5)
|
|
1347
1347
|
], 12, _t)) : h("", !0)
|
|
1348
1348
|
]))), 256)) : h("", !0)
|
|
1349
1349
|
]))), 256)),
|
|
1350
|
-
|
|
1351
|
-
(r(!0), l(m, null, I(e.maxSeries, (a,
|
|
1352
|
-
key: `tooltip_trap_${
|
|
1350
|
+
g("g", null, [
|
|
1351
|
+
(r(!0), l(m, null, I(e.maxSeries, (a, o) => (r(), l("g", {
|
|
1352
|
+
key: `tooltip_trap_${o}`
|
|
1353
1353
|
}, [
|
|
1354
|
-
|
|
1355
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
1354
|
+
g("rect", {
|
|
1355
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * o,
|
|
1356
1356
|
y: e.drawingArea.top,
|
|
1357
1357
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1358
1358
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1359
|
-
fill: [i.selectedMinimapIndex, i.selectedSerieIndex, i.selectedRowIndex].includes(
|
|
1359
|
+
fill: [i.selectedMinimapIndex, i.selectedSerieIndex, i.selectedRowIndex].includes(o) ? e.setOpacity(e.FINAL_CONFIG.chart.highlighter.color, e.FINAL_CONFIG.chart.highlighter.opacity) : "transparent"
|
|
1360
1360
|
}, null, 8, yt)
|
|
1361
1361
|
]))), 128))
|
|
1362
1362
|
]),
|
|
1363
|
-
e.barSet.length ? (r(!0), l(m, { key: 0 }, I(e.barSet, (a,
|
|
1364
|
-
key: `serie_bar_${
|
|
1365
|
-
class: P(`serie_bar_${
|
|
1363
|
+
e.barSet.length ? (r(!0), l(m, { key: 0 }, I(e.barSet, (a, o) => (r(), l("g", {
|
|
1364
|
+
key: `serie_bar_${o}`,
|
|
1365
|
+
class: P(`serie_bar_${o}`),
|
|
1366
1366
|
style: A(`opacity:${i.selectedScale ? i.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1367
1367
|
}, [
|
|
1368
|
-
(r(!0), l(m, null, I(a.plots, (n,
|
|
1369
|
-
key: `bar_plot_${
|
|
1368
|
+
(r(!0), l(m, null, I(a.plots, (n, u) => (r(), l("g", {
|
|
1369
|
+
key: `bar_plot_${o}_${u}`
|
|
1370
1370
|
}, [
|
|
1371
1371
|
e.canShowValue(n.value) ? (r(), l("rect", {
|
|
1372
1372
|
key: 0,
|
|
@@ -1375,7 +1375,7 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1375
1375
|
height: i.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(n)) : Math.abs(e.calcRectHeight(n)),
|
|
1376
1376
|
width: e.calcRectWidth() - (i.mutableConfig.useIndividualScale && i.mutableConfig.isStacked ? 0 : e.barPeriodGap) < 0 ? 1e-5 : e.calcRectWidth() - (i.mutableConfig.useIndividualScale && i.mutableConfig.isStacked ? 0 : e.barPeriodGap),
|
|
1377
1377
|
rx: e.FINAL_CONFIG.bar.borderRadius,
|
|
1378
|
-
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${
|
|
1378
|
+
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${o}_${i.uniqueId})` : `url(#rectGradient_neg_${o}_${i.uniqueId})` : a.color,
|
|
1379
1379
|
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? a.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1380
1380
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1381
1381
|
}, null, 8, At)) : h("", !0),
|
|
@@ -1388,21 +1388,21 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1388
1388
|
y: e.checkNaN(n.y) + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1389
1389
|
}, [
|
|
1390
1390
|
G(t.$slots, "plot-comment", {
|
|
1391
|
-
plot: { ...n, color: a.color }
|
|
1391
|
+
plot: { ...n, color: a.color, seriesIndex: o, datapointIndex: u }
|
|
1392
1392
|
}, void 0, !0)
|
|
1393
1393
|
], 8, Lt)) : h("", !0)
|
|
1394
1394
|
]))), 128)),
|
|
1395
1395
|
Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (r(), l("g", Ct, [
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
id: `bar_arrow_${
|
|
1396
|
+
g("defs", null, [
|
|
1397
|
+
g("marker", {
|
|
1398
|
+
id: `bar_arrow_${o}`,
|
|
1399
1399
|
markerWidth: 7,
|
|
1400
1400
|
markerHeight: 7,
|
|
1401
1401
|
refX: "0",
|
|
1402
1402
|
refY: 7 / 2,
|
|
1403
1403
|
orient: "auto"
|
|
1404
1404
|
}, [
|
|
1405
|
-
|
|
1405
|
+
g("polygon", {
|
|
1406
1406
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1407
1407
|
fill: a.color
|
|
1408
1408
|
}, null, 8, kt)
|
|
@@ -1417,7 +1417,7 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1417
1417
|
"stroke-width": 1,
|
|
1418
1418
|
stroke: a.color,
|
|
1419
1419
|
"stroke-dasharray": 2,
|
|
1420
|
-
"marker-end": `url(#bar_arrow_${
|
|
1420
|
+
"marker-end": `url(#bar_arrow_${o})`
|
|
1421
1421
|
}, null, 8, wt)) : h("", !0),
|
|
1422
1422
|
a.plots.length > 1 ? (r(), l("text", {
|
|
1423
1423
|
key: 1,
|
|
@@ -1444,7 +1444,7 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1444
1444
|
"stroke-linecap": "round"
|
|
1445
1445
|
}, null, 8, Gt)) : h("", !0),
|
|
1446
1446
|
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(i.selectedSerieIndex) || i.selectedMinimapIndex !== null) ? (r(), l("g", vt, [
|
|
1447
|
-
|
|
1447
|
+
g("line", {
|
|
1448
1448
|
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (i.selectedSerieIndex || i.selectedMinimapIndex) + e.drawingArea.width / e.maxSeries / 2,
|
|
1449
1449
|
x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (i.selectedSerieIndex || i.selectedMinimapIndex) + e.drawingArea.width / e.maxSeries / 2,
|
|
1450
1450
|
y1: e.drawingArea.top,
|
|
@@ -1473,7 +1473,7 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1473
1473
|
e.FINAL_CONFIG.chart.grid.labels.show ? (r(), l("g", Mt, [
|
|
1474
1474
|
i.mutableConfig.useIndividualScale ? (r(), l(m, { key: 0 }, [
|
|
1475
1475
|
(r(!0), l(m, null, I(e.allScales, (a) => (r(), l("g", null, [
|
|
1476
|
-
|
|
1476
|
+
g("line", {
|
|
1477
1477
|
x1: a.x + e.xPadding,
|
|
1478
1478
|
x2: a.x + e.xPadding,
|
|
1479
1479
|
y1: i.mutableConfig.isStacked ? e.checkNaN(e.drawingArea.bottom - a.yOffset - a.individualHeight) : e.checkNaN(e.drawingArea.top),
|
|
@@ -1487,41 +1487,41 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1487
1487
|
(r(!0), l(m, null, I(e.allScales, (a) => (r(), l("g", {
|
|
1488
1488
|
style: A(`opacity:${i.selectedScale ? i.selectedScale === a.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1489
1489
|
}, [
|
|
1490
|
-
|
|
1490
|
+
g("text", {
|
|
1491
1491
|
fill: a.color,
|
|
1492
1492
|
"font-size": i.fontSizes.dataLabels,
|
|
1493
1493
|
"text-anchor": "middle",
|
|
1494
1494
|
transform: `translate(${a.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + 5}, ${i.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset - a.individualHeight / 2 : e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`
|
|
1495
1495
|
}, S(a.name) + " " + S(a.scaleLabel ? `- ${a.scaleLabel}` : ""), 9, Tt),
|
|
1496
|
-
(r(!0), l(m, null, I(a.yLabels, (
|
|
1496
|
+
(r(!0), l(m, null, I(a.yLabels, (o, n) => (r(), l("line", {
|
|
1497
1497
|
x1: a.x - 3 + e.xPadding,
|
|
1498
1498
|
x2: a.x + e.xPadding,
|
|
1499
|
-
y1: e.checkNaN(
|
|
1500
|
-
y2: e.checkNaN(
|
|
1499
|
+
y1: e.checkNaN(o.y),
|
|
1500
|
+
y2: e.checkNaN(o.y),
|
|
1501
1501
|
stroke: a.color,
|
|
1502
1502
|
"stroke-width": 1,
|
|
1503
1503
|
"stroke-linecap": "round"
|
|
1504
1504
|
}, null, 8, Vt))), 256)),
|
|
1505
|
-
(r(!0), l(m, null, I(a.yLabels, (
|
|
1505
|
+
(r(!0), l(m, null, I(a.yLabels, (o, n) => (r(), l("text", {
|
|
1506
1506
|
x: a.x - 5 + e.xPadding,
|
|
1507
|
-
y: e.checkNaN(
|
|
1507
|
+
y: e.checkNaN(o.y) + i.fontSizes.dataLabels / 3,
|
|
1508
1508
|
"font-size": i.fontSizes.dataLabels,
|
|
1509
1509
|
"text-anchor": "end",
|
|
1510
1510
|
fill: a.color
|
|
1511
1511
|
}, S(e.applyDataLabel(
|
|
1512
1512
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1513
|
-
|
|
1513
|
+
o.value,
|
|
1514
1514
|
e.dataLabel({
|
|
1515
|
-
p:
|
|
1516
|
-
v:
|
|
1517
|
-
s:
|
|
1515
|
+
p: o.prefix,
|
|
1516
|
+
v: o.value,
|
|
1517
|
+
s: o.suffix,
|
|
1518
1518
|
r: 1
|
|
1519
1519
|
}),
|
|
1520
|
-
{ datapoint:
|
|
1520
|
+
{ datapoint: o.datapoint, seriesIndex: n }
|
|
1521
1521
|
)), 9, Rt))), 256))
|
|
1522
1522
|
], 4))), 256))
|
|
1523
|
-
], 64)) : (r(!0), l(m, { key: 1 }, I(e.yLabels, (a,
|
|
1524
|
-
key: `yLabel_${
|
|
1523
|
+
], 64)) : (r(!0), l(m, { key: 1 }, I(e.yLabels, (a, o) => (r(), l("g", {
|
|
1524
|
+
key: `yLabel_${o}`
|
|
1525
1525
|
}, [
|
|
1526
1526
|
e.canShowValue(a) && a.value >= e.niceScale.min && a.value <= e.niceScale.max ? (r(), l("line", {
|
|
1527
1527
|
key: 0,
|
|
@@ -1552,20 +1552,20 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1552
1552
|
) : ""), 9, Wt)) : h("", !0)
|
|
1553
1553
|
]))), 128))
|
|
1554
1554
|
])) : h("", !0),
|
|
1555
|
-
(r(!0), l(m, null, I(e.plotSet, (a,
|
|
1556
|
-
key: `serie_plot_${
|
|
1557
|
-
class: P(`serie_plot_${
|
|
1555
|
+
(r(!0), l(m, null, I(e.plotSet, (a, o) => (r(), l("g", {
|
|
1556
|
+
key: `serie_plot_${o}`,
|
|
1557
|
+
class: P(`serie_plot_${o}`),
|
|
1558
1558
|
style: A(`opacity:${i.selectedScale ? i.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1559
1559
|
}, [
|
|
1560
|
-
(r(!0), l(m, null, I(a.plots, (n,
|
|
1561
|
-
key: `circle_plot_${
|
|
1560
|
+
(r(!0), l(m, null, I(a.plots, (n, u) => (r(), l("g", {
|
|
1561
|
+
key: `circle_plot_${o}_${u}`
|
|
1562
1562
|
}, [
|
|
1563
1563
|
n && e.canShowValue(n.value) ? (r(), R(f, {
|
|
1564
1564
|
key: 0,
|
|
1565
1565
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(a.shape) ? a.shape : "circle",
|
|
1566
|
-
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${
|
|
1566
|
+
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${o}_${i.uniqueId})` : e.FINAL_CONFIG.plot.dot.useSerieColor ? a.color : e.FINAL_CONFIG.plot.dot.fill,
|
|
1567
1567
|
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
1568
|
-
radius: i.selectedSerieIndex !== null && i.selectedSerieIndex ===
|
|
1568
|
+
radius: i.selectedSerieIndex !== null && i.selectedSerieIndex === u || i.selectedMinimapIndex !== null && i.selectedMinimapIndex === u ? (i.plotRadii.plot || 6) * 1.5 : i.plotRadii.plot || 6,
|
|
1569
1569
|
stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : a.color,
|
|
1570
1570
|
strokeWidth: e.FINAL_CONFIG.plot.dot.strokeWidth
|
|
1571
1571
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : h("", !0),
|
|
@@ -1577,24 +1577,24 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1577
1577
|
x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1578
1578
|
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1579
1579
|
}, [
|
|
1580
|
-
|
|
1580
|
+
g("div", Et, [
|
|
1581
1581
|
G(t.$slots, "plot-comment", {
|
|
1582
|
-
plot: { ...n, color: a.color }
|
|
1582
|
+
plot: { ...n, color: a.color, seriesIndex: o, datapointIndex: u }
|
|
1583
1583
|
}, void 0, !0)
|
|
1584
1584
|
])
|
|
1585
1585
|
], 8, Ht)) : h("", !0)
|
|
1586
1586
|
]))), 128)),
|
|
1587
1587
|
Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (r(), l("g", Bt, [
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
id: `plot_arrow_${
|
|
1588
|
+
g("defs", null, [
|
|
1589
|
+
g("marker", {
|
|
1590
|
+
id: `plot_arrow_${o}`,
|
|
1591
1591
|
markerWidth: 7,
|
|
1592
1592
|
markerHeight: 7,
|
|
1593
1593
|
refX: "0",
|
|
1594
1594
|
refY: 7 / 2,
|
|
1595
1595
|
orient: "auto"
|
|
1596
1596
|
}, [
|
|
1597
|
-
|
|
1597
|
+
g("polygon", {
|
|
1598
1598
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1599
1599
|
fill: a.color
|
|
1600
1600
|
}, null, 8, Xt)
|
|
@@ -1609,7 +1609,7 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1609
1609
|
"stroke-width": 1,
|
|
1610
1610
|
stroke: a.color,
|
|
1611
1611
|
"stroke-dasharray": 2,
|
|
1612
|
-
"marker-end": `url(#plot_arrow_${
|
|
1612
|
+
"marker-end": `url(#plot_arrow_${o})`
|
|
1613
1613
|
}, null, 8, qt)) : h("", !0),
|
|
1614
1614
|
a.plots.length > 1 ? (r(), l("text", {
|
|
1615
1615
|
key: 1,
|
|
@@ -1625,9 +1625,9 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1625
1625
|
})), 9, Ut)) : h("", !0)
|
|
1626
1626
|
])) : h("", !0)
|
|
1627
1627
|
], 6))), 128)),
|
|
1628
|
-
(r(!0), l(m, null, I(e.lineSet, (a,
|
|
1629
|
-
key: `serie_line_${
|
|
1630
|
-
class: P(`serie_line_${
|
|
1628
|
+
(r(!0), l(m, null, I(e.lineSet, (a, o) => (r(), l("g", {
|
|
1629
|
+
key: `serie_line_${o}`,
|
|
1630
|
+
class: P(`serie_line_${o}`),
|
|
1631
1631
|
style: A(`opacity:${i.selectedScale ? i.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1632
1632
|
}, [
|
|
1633
1633
|
a.smooth && a.plots.length > 1 ? (r(), l("path", {
|
|
@@ -1638,15 +1638,15 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1638
1638
|
"stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1639
1639
|
fill: "none"
|
|
1640
1640
|
}, null, 8, Zt)) : a.plots.length > 1 ? (r(), l("g", Jt, [
|
|
1641
|
-
(r(!0), l(m, null, I(a.plots, (n,
|
|
1642
|
-
key: `line_${
|
|
1641
|
+
(r(!0), l(m, null, I(a.plots, (n, u) => (r(), l("g", {
|
|
1642
|
+
key: `line_${o}_${u}`
|
|
1643
1643
|
}, [
|
|
1644
|
-
n &&
|
|
1644
|
+
n && u < a.plots.length - 1 && a.plots[u + 1] && e.canShowValue(n.value) && e.canShowValue(a.plots[u + 1].value) ? (r(), l("line", {
|
|
1645
1645
|
key: 0,
|
|
1646
1646
|
x1: n.x,
|
|
1647
|
-
x2: a.plots[
|
|
1647
|
+
x2: a.plots[u + 1].x,
|
|
1648
1648
|
y1: n.y,
|
|
1649
|
-
y2: a.plots[
|
|
1649
|
+
y2: a.plots[u + 1].y,
|
|
1650
1650
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1651
1651
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1652
1652
|
"stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
@@ -1656,20 +1656,20 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1656
1656
|
]))), 128))
|
|
1657
1657
|
])) : h("", !0)
|
|
1658
1658
|
], 6))), 128)),
|
|
1659
|
-
(r(!0), l(m, null, I(e.lineSet, (a,
|
|
1660
|
-
key: `serie_line_${
|
|
1661
|
-
class: P(`serie_line_${
|
|
1659
|
+
(r(!0), l(m, null, I(e.lineSet, (a, o) => (r(), l("g", {
|
|
1660
|
+
key: `serie_line_${o}`,
|
|
1661
|
+
class: P(`serie_line_${o}`),
|
|
1662
1662
|
style: A(`opacity:${i.selectedScale ? i.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1663
1663
|
}, [
|
|
1664
1664
|
a.useArea && a.plots.length > 1 ? (r(), l("g", Qt, [
|
|
1665
1665
|
a.smooth ? (r(), l("path", {
|
|
1666
1666
|
key: 0,
|
|
1667
|
-
d: `M ${a.plots[0] ? a.plots[0].x : Math.min(...a.plots.filter((n) => !!n).map((n) => n.x))},${i.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset : e.drawingArea.bottom} ${a.curve} L ${a.plots.at(-1) ? a.plots.at(-1).x : e.drawingArea.left + e.slot.line *
|
|
1668
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${
|
|
1667
|
+
d: `M ${a.plots[0] ? a.plots[0].x : Math.min(...a.plots.filter((n) => !!n).map((n) => n.x))},${i.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset : e.drawingArea.bottom} ${a.curve} L ${a.plots.at(-1) ? a.plots.at(-1).x : e.drawingArea.left + e.slot.line * o + e.slot.line / 2},${i.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset : e.drawingArea.bottom} Z`,
|
|
1668
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${o}_${i.uniqueId})` : e.setOpacity(a.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1669
1669
|
}, null, 8, jt)) : (r(), l("path", {
|
|
1670
1670
|
key: 1,
|
|
1671
1671
|
d: `M${a.area}Z`,
|
|
1672
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${
|
|
1672
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${o}_${i.uniqueId})` : e.setOpacity(a.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1673
1673
|
}, null, 8, $t))
|
|
1674
1674
|
])) : h("", !0),
|
|
1675
1675
|
a.smooth && a.plots.length > 1 ? (r(), l("path", {
|
|
@@ -1680,15 +1680,15 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1680
1680
|
"stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1681
1681
|
fill: "none"
|
|
1682
1682
|
}, null, 8, ea)) : a.plots.length > 1 ? (r(), l("g", ta, [
|
|
1683
|
-
(r(!0), l(m, null, I(a.plots, (n,
|
|
1684
|
-
key: `line_${
|
|
1683
|
+
(r(!0), l(m, null, I(a.plots, (n, u) => (r(), l("g", {
|
|
1684
|
+
key: `line_${o}_${u}`
|
|
1685
1685
|
}, [
|
|
1686
|
-
n &&
|
|
1686
|
+
n && u < a.plots.length - 1 && a.plots[u + 1] && e.canShowValue(n.value) && e.canShowValue(a.plots[u + 1].value) ? (r(), l("line", {
|
|
1687
1687
|
key: 0,
|
|
1688
1688
|
x1: n.x,
|
|
1689
|
-
x2: a.plots[
|
|
1689
|
+
x2: a.plots[u + 1].x,
|
|
1690
1690
|
y1: n.y,
|
|
1691
|
-
y2: a.plots[
|
|
1691
|
+
y2: a.plots[u + 1].y,
|
|
1692
1692
|
stroke: a.color,
|
|
1693
1693
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth,
|
|
1694
1694
|
"stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
@@ -1697,15 +1697,15 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1697
1697
|
}, null, 8, aa)) : h("", !0)
|
|
1698
1698
|
]))), 128))
|
|
1699
1699
|
])) : h("", !0),
|
|
1700
|
-
(r(!0), l(m, null, I(a.plots, (n,
|
|
1701
|
-
key: `circle_line_${
|
|
1700
|
+
(r(!0), l(m, null, I(a.plots, (n, u) => (r(), l("g", {
|
|
1701
|
+
key: `circle_line_${o}_${u}`
|
|
1702
1702
|
}, [
|
|
1703
1703
|
n && e.canShowValue(n.value) ? (r(), R(f, {
|
|
1704
1704
|
key: 0,
|
|
1705
1705
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(a.shape) ? a.shape : "circle",
|
|
1706
|
-
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${
|
|
1706
|
+
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${o}_${i.uniqueId})` : e.FINAL_CONFIG.line.dot.useSerieColor ? a.color : e.FINAL_CONFIG.line.dot.fill,
|
|
1707
1707
|
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
1708
|
-
radius: i.selectedSerieIndex !== null && i.selectedSerieIndex ===
|
|
1708
|
+
radius: i.selectedSerieIndex !== null && i.selectedSerieIndex === u || i.selectedMinimapIndex !== null && i.selectedMinimapIndex === u ? (i.plotRadii.line || 6) * 1.5 : i.plotRadii.line || 6,
|
|
1709
1709
|
stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : a.color,
|
|
1710
1710
|
strokeWidth: e.FINAL_CONFIG.line.dot.strokeWidth
|
|
1711
1711
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : h("", !0),
|
|
@@ -1717,24 +1717,24 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1717
1717
|
x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1718
1718
|
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1719
1719
|
}, [
|
|
1720
|
-
|
|
1720
|
+
g("div", ra, [
|
|
1721
1721
|
G(t.$slots, "plot-comment", {
|
|
1722
|
-
plot: { ...n, color: a.color }
|
|
1722
|
+
plot: { ...n, color: a.color, seriesIndex: o, datapointIndex: u }
|
|
1723
1723
|
}, void 0, !0)
|
|
1724
1724
|
])
|
|
1725
1725
|
], 8, ia)) : h("", !0)
|
|
1726
1726
|
]))), 128)),
|
|
1727
1727
|
Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (r(), l("g", la, [
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
id: `line_arrow_${
|
|
1728
|
+
g("defs", null, [
|
|
1729
|
+
g("marker", {
|
|
1730
|
+
id: `line_arrow_${o}`,
|
|
1731
1731
|
markerWidth: 7,
|
|
1732
1732
|
markerHeight: 7,
|
|
1733
1733
|
refX: "0",
|
|
1734
1734
|
refY: 7 / 2,
|
|
1735
1735
|
orient: "auto"
|
|
1736
1736
|
}, [
|
|
1737
|
-
|
|
1737
|
+
g("polygon", {
|
|
1738
1738
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1739
1739
|
fill: a.color
|
|
1740
1740
|
}, null, 8, na)
|
|
@@ -1749,8 +1749,8 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1749
1749
|
"stroke-width": 1,
|
|
1750
1750
|
stroke: a.color,
|
|
1751
1751
|
"stroke-dasharray": 2,
|
|
1752
|
-
"marker-end": `url(#line_arrow_${
|
|
1753
|
-
}, null, 8,
|
|
1752
|
+
"marker-end": `url(#line_arrow_${o})`
|
|
1753
|
+
}, null, 8, oa)) : h("", !0),
|
|
1754
1754
|
a.plots.length > 1 ? (r(), l("text", {
|
|
1755
1755
|
key: 1,
|
|
1756
1756
|
"text-anchor": "middle",
|
|
@@ -1762,17 +1762,17 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1762
1762
|
v: e.calcLinearProgression(a.plots).trend * 100,
|
|
1763
1763
|
s: "%",
|
|
1764
1764
|
r: 2
|
|
1765
|
-
})), 9,
|
|
1765
|
+
})), 9, ca)) : h("", !0)
|
|
1766
1766
|
])) : h("", !0)
|
|
1767
1767
|
], 6))), 128)),
|
|
1768
1768
|
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && i.mutableConfig.dataLabels.show ? (r(), l("g", ha, [
|
|
1769
|
-
(r(!0), l(m, null, I(e.barSet, (a,
|
|
1770
|
-
key: `xLabel_bar_${
|
|
1771
|
-
class: P(`xLabel_bar_${
|
|
1769
|
+
(r(!0), l(m, null, I(e.barSet, (a, o) => (r(), l("g", {
|
|
1770
|
+
key: `xLabel_bar_${o}`,
|
|
1771
|
+
class: P(`xLabel_bar_${o}`),
|
|
1772
1772
|
style: A(`opacity:${i.selectedScale ? i.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1773
1773
|
}, [
|
|
1774
|
-
(r(!0), l(m, null, I(a.plots, (n,
|
|
1775
|
-
key: `xLabel_bar_${
|
|
1774
|
+
(r(!0), l(m, null, I(a.plots, (n, u) => (r(), l("g", {
|
|
1775
|
+
key: `xLabel_bar_${o}_${u}`
|
|
1776
1776
|
}, [
|
|
1777
1777
|
n && (!Object.hasOwn(a, "dataLabels") || a.dataLabels === !0) && e.FINAL_CONFIG.bar.labels.show ? (r(), l("text", {
|
|
1778
1778
|
key: 0,
|
|
@@ -1808,13 +1808,13 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1808
1808
|
], 6))), 128))
|
|
1809
1809
|
])) : h("", !0),
|
|
1810
1810
|
e.FINAL_CONFIG.plot.labels.show && i.mutableConfig.dataLabels.show ? (r(), l("g", ga, [
|
|
1811
|
-
(r(!0), l(m, null, I(e.plotSet, (a,
|
|
1812
|
-
key: `xLabel_plot_${
|
|
1813
|
-
class: P(`xLabel_plot_${
|
|
1811
|
+
(r(!0), l(m, null, I(e.plotSet, (a, o) => (r(), l("g", {
|
|
1812
|
+
key: `xLabel_plot_${o}`,
|
|
1813
|
+
class: P(`xLabel_plot_${o}`),
|
|
1814
1814
|
style: A(`opacity:${i.selectedScale ? i.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1815
1815
|
}, [
|
|
1816
|
-
(r(!0), l(m, null, I(a.plots, (n,
|
|
1817
|
-
key: `xLabel_plot_${
|
|
1816
|
+
(r(!0), l(m, null, I(a.plots, (n, u) => (r(), l("g", {
|
|
1817
|
+
key: `xLabel_plot_${o}_${u}`
|
|
1818
1818
|
}, [
|
|
1819
1819
|
n && !Object.hasOwn(a, "dataLabels") || a.dataLabels === !0 ? (r(), l("text", {
|
|
1820
1820
|
key: 0,
|
|
@@ -1837,7 +1837,7 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1837
1837
|
serie: a
|
|
1838
1838
|
}
|
|
1839
1839
|
) : ""), 9, fa)) : h("", !0),
|
|
1840
|
-
n &&
|
|
1840
|
+
n && u === 0 && a.useTag && a.useTag === "start" ? (r(), l("foreignObject", {
|
|
1841
1841
|
key: 1,
|
|
1842
1842
|
x: n.x,
|
|
1843
1843
|
y: n.y - 20,
|
|
@@ -1845,11 +1845,11 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1845
1845
|
width: "150",
|
|
1846
1846
|
style: { overflow: "visible" }
|
|
1847
1847
|
}, [
|
|
1848
|
-
|
|
1848
|
+
g("div", {
|
|
1849
1849
|
style: A(`padding: 3px; background:${e.setOpacity(a.color, 80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${i.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1850
1850
|
}, S(a.name), 5)
|
|
1851
1851
|
], 8, Na)) : h("", !0),
|
|
1852
|
-
n &&
|
|
1852
|
+
n && u === a.plots.length - 1 && a.useTag && a.useTag === "end" ? (r(), l("foreignObject", {
|
|
1853
1853
|
key: 2,
|
|
1854
1854
|
x: n.x - a.name.length * (i.fontSizes.plotLabels / 2),
|
|
1855
1855
|
y: n.y - 20,
|
|
@@ -1857,7 +1857,7 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1857
1857
|
width: "150",
|
|
1858
1858
|
style: { overflow: "visible" }
|
|
1859
1859
|
}, [
|
|
1860
|
-
|
|
1860
|
+
g("div", {
|
|
1861
1861
|
style: A(`padding: 3px; background:${e.setOpacity(a.color, 80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${i.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1862
1862
|
}, S(a.name), 5)
|
|
1863
1863
|
], 8, ma)) : h("", !0)
|
|
@@ -1865,13 +1865,13 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1865
1865
|
], 6))), 128))
|
|
1866
1866
|
])) : h("", !0),
|
|
1867
1867
|
e.FINAL_CONFIG.line.labels.show && i.mutableConfig.dataLabels.show ? (r(), l("g", Ia, [
|
|
1868
|
-
(r(!0), l(m, null, I(e.lineSet, (a,
|
|
1869
|
-
key: `xLabel_line_${
|
|
1870
|
-
class: P(`xLabel_line_${
|
|
1868
|
+
(r(!0), l(m, null, I(e.lineSet, (a, o) => (r(), l("g", {
|
|
1869
|
+
key: `xLabel_line_${o}`,
|
|
1870
|
+
class: P(`xLabel_line_${o}`),
|
|
1871
1871
|
style: A(`opacity:${i.selectedScale ? i.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1872
1872
|
}, [
|
|
1873
|
-
(r(!0), l(m, null, I(a.plots, (n,
|
|
1874
|
-
key: `xLabel_line_${
|
|
1873
|
+
(r(!0), l(m, null, I(a.plots, (n, u) => (r(), l("g", {
|
|
1874
|
+
key: `xLabel_line_${o}_${u}`
|
|
1875
1875
|
}, [
|
|
1876
1876
|
n && !Object.hasOwn(a, "dataLabels") || a.dataLabels === !0 ? (r(), l("text", {
|
|
1877
1877
|
key: 0,
|
|
@@ -1894,7 +1894,7 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1894
1894
|
serie: a
|
|
1895
1895
|
}
|
|
1896
1896
|
) : ""), 9, xa)) : h("", !0),
|
|
1897
|
-
n &&
|
|
1897
|
+
n && u === 0 && a.useTag && a.useTag === "start" ? (r(), l("foreignObject", {
|
|
1898
1898
|
key: 1,
|
|
1899
1899
|
x: n.x,
|
|
1900
1900
|
y: n.y - 20,
|
|
@@ -1902,11 +1902,11 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1902
1902
|
width: "150",
|
|
1903
1903
|
style: { overflow: "visible" }
|
|
1904
1904
|
}, [
|
|
1905
|
-
|
|
1905
|
+
g("div", {
|
|
1906
1906
|
style: A(`padding: 3px; background:${e.setOpacity(a.color, 80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${i.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1907
1907
|
}, S(a.name), 5)
|
|
1908
1908
|
], 8, ba)) : h("", !0),
|
|
1909
|
-
n &&
|
|
1909
|
+
n && u === a.plots.length - 1 && a.useTag && a.useTag === "end" ? (r(), l("foreignObject", {
|
|
1910
1910
|
key: 2,
|
|
1911
1911
|
x: n.x - a.name.length * (i.fontSizes.plotLabels / 2),
|
|
1912
1912
|
y: n.y - 20,
|
|
@@ -1914,22 +1914,22 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1914
1914
|
width: "150",
|
|
1915
1915
|
style: { overflow: "visible" }
|
|
1916
1916
|
}, [
|
|
1917
|
-
|
|
1917
|
+
g("div", {
|
|
1918
1918
|
style: A(`padding: 3px; background:${e.setOpacity(a.color, 80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${i.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1919
1919
|
}, S(a.name), 5)
|
|
1920
1920
|
], 8, Fa)) : h("", !0)
|
|
1921
1921
|
]))), 128))
|
|
1922
1922
|
], 6))), 128))
|
|
1923
1923
|
])) : h("", !0),
|
|
1924
|
-
(r(!0), l(m, null, I(e.lineSet, (a,
|
|
1925
|
-
key: `xLabel_line_${
|
|
1926
|
-
class: P(`xLabel_line_${
|
|
1924
|
+
(r(!0), l(m, null, I(e.lineSet, (a, o) => (r(), l("g", {
|
|
1925
|
+
key: `xLabel_line_${o}`,
|
|
1926
|
+
class: P(`xLabel_line_${o}`),
|
|
1927
1927
|
style: A(`opacity:${i.selectedScale ? i.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1928
1928
|
}, [
|
|
1929
|
-
(r(!0), l(m, null, I(a.plots, (n,
|
|
1930
|
-
key: `xLabel_line_${
|
|
1929
|
+
(r(!0), l(m, null, I(a.plots, (n, u) => (r(), l("g", {
|
|
1930
|
+
key: `xLabel_line_${o}_${u}`
|
|
1931
1931
|
}, [
|
|
1932
|
-
n &&
|
|
1932
|
+
n && u === 0 && a.showSerieName && a.showSerieName === "start" ? (r(), l("text", {
|
|
1933
1933
|
key: 0,
|
|
1934
1934
|
x: n.x - i.fontSizes.plotLabels,
|
|
1935
1935
|
y: n.y,
|
|
@@ -1945,7 +1945,7 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1945
1945
|
maxWords: 2
|
|
1946
1946
|
})
|
|
1947
1947
|
}, null, 8, _a)) : h("", !0),
|
|
1948
|
-
n &&
|
|
1948
|
+
n && u === a.plots.length - 1 && a.showSerieName && a.showSerieName === "end" ? (r(), l("text", {
|
|
1949
1949
|
key: 1,
|
|
1950
1950
|
x: n.x + i.fontSizes.plotLabels,
|
|
1951
1951
|
y: n.y,
|
|
@@ -1963,15 +1963,15 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1963
1963
|
}, null, 8, ya)) : h("", !0)
|
|
1964
1964
|
]))), 128))
|
|
1965
1965
|
], 6))), 128)),
|
|
1966
|
-
(r(!0), l(m, null, I(e.plotSet, (a,
|
|
1967
|
-
key: `xLabel_plot_${
|
|
1968
|
-
class: P(`xLabel_plot_${
|
|
1966
|
+
(r(!0), l(m, null, I(e.plotSet, (a, o) => (r(), l("g", {
|
|
1967
|
+
key: `xLabel_plot_${o}`,
|
|
1968
|
+
class: P(`xLabel_plot_${o}`),
|
|
1969
1969
|
style: A(`opacity:${i.selectedScale ? i.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1970
1970
|
}, [
|
|
1971
|
-
(r(!0), l(m, null, I(a.plots, (n,
|
|
1972
|
-
key: `xLabel_plot_${
|
|
1971
|
+
(r(!0), l(m, null, I(a.plots, (n, u) => (r(), l("g", {
|
|
1972
|
+
key: `xLabel_plot_${o}_${u}`
|
|
1973
1973
|
}, [
|
|
1974
|
-
n &&
|
|
1974
|
+
n && u === 0 && a.showSerieName && a.showSerieName === "start" ? (r(), l("text", {
|
|
1975
1975
|
key: 0,
|
|
1976
1976
|
x: n.x - i.fontSizes.plotLabels,
|
|
1977
1977
|
y: n.y,
|
|
@@ -1987,7 +1987,7 @@ function Ba(t, s, o, N, i, e) {
|
|
|
1987
1987
|
maxWords: 2
|
|
1988
1988
|
})
|
|
1989
1989
|
}, null, 8, Aa)) : h("", !0),
|
|
1990
|
-
n &&
|
|
1990
|
+
n && u === a.plots.length - 1 && a.showSerieName && a.showSerieName === "end" ? (r(), l("text", {
|
|
1991
1991
|
key: 1,
|
|
1992
1992
|
x: n.x + i.fontSizes.plotLabels,
|
|
1993
1993
|
y: n.y,
|
|
@@ -2011,10 +2011,10 @@ function Ba(t, s, o, N, i, e) {
|
|
|
2011
2011
|
width: e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
2012
2012
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
2013
2013
|
fill: i.selectedScale === a.id ? e.setOpacity(a.color, 20) : "transparent",
|
|
2014
|
-
onMouseenter: (
|
|
2015
|
-
onMouseleave: s[0] || (s[0] = (
|
|
2014
|
+
onMouseenter: (o) => i.selectedScale = a.id,
|
|
2015
|
+
onMouseleave: s[0] || (s[0] = (o) => i.selectedScale = null)
|
|
2016
2016
|
}, null, 40, Ca))), 256)) : h("", !0),
|
|
2017
|
-
|
|
2017
|
+
g("g", null, [
|
|
2018
2018
|
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !i.mutableConfig.useIndividualScale ? (r(), l("text", {
|
|
2019
2019
|
key: 0,
|
|
2020
2020
|
"font-size": i.fontSizes.yAxis,
|
|
@@ -2033,32 +2033,32 @@ function Ba(t, s, o, N, i, e) {
|
|
|
2033
2033
|
}, S(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, ka)) : h("", !0)
|
|
2034
2034
|
]),
|
|
2035
2035
|
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (r(), l("g", wa, [
|
|
2036
|
-
(r(!0), l(m, null, I(e.timeLabels, (a,
|
|
2037
|
-
key: `time_label_${
|
|
2036
|
+
(r(!0), l(m, null, I(e.timeLabels, (a, o) => (r(), l("g", {
|
|
2037
|
+
key: `time_label_${o}`
|
|
2038
2038
|
}, [
|
|
2039
|
-
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 && (
|
|
2039
|
+
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 && (o === 0 || o === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || a && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && i.selectedSerieIndex === o && !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 && o % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (r(), l("text", {
|
|
2040
2040
|
key: 0,
|
|
2041
2041
|
"text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2042
2042
|
"font-size": i.fontSizes.xAxis,
|
|
2043
2043
|
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
2044
|
-
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
2044
|
+
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * o + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom + i.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`
|
|
2045
2045
|
}, S(a || ""), 9, Oa)) : h("", !0)
|
|
2046
2046
|
]))), 128))
|
|
2047
2047
|
])) : h("", !0),
|
|
2048
|
-
|
|
2049
|
-
(r(!0), l(m, null, I(e.maxSeries, (a,
|
|
2050
|
-
key: `tooltip_trap_${
|
|
2048
|
+
g("g", null, [
|
|
2049
|
+
(r(!0), l(m, null, I(e.maxSeries, (a, o) => (r(), l("g", {
|
|
2050
|
+
key: `tooltip_trap_${o}`
|
|
2051
2051
|
}, [
|
|
2052
|
-
|
|
2052
|
+
g("rect", {
|
|
2053
2053
|
"data-cy-trap": "",
|
|
2054
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
2054
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * o,
|
|
2055
2055
|
y: e.drawingArea.top,
|
|
2056
2056
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
2057
2057
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
2058
2058
|
fill: "transparent",
|
|
2059
|
-
onMouseenter: (n) => e.toggleTooltipVisibility(!0,
|
|
2059
|
+
onMouseenter: (n) => e.toggleTooltipVisibility(!0, o),
|
|
2060
2060
|
onMouseleave: s[1] || (s[1] = (n) => e.toggleTooltipVisibility(!1)),
|
|
2061
|
-
onClick: (n) => e.selectX(
|
|
2061
|
+
onClick: (n) => e.selectX(o)
|
|
2062
2062
|
}, null, 40, Ga)
|
|
2063
2063
|
]))), 128))
|
|
2064
2064
|
]),
|
|
@@ -2070,12 +2070,12 @@ function Ba(t, s, o, N, i, e) {
|
|
|
2070
2070
|
height: "40",
|
|
2071
2071
|
style: { overflow: "visible !important" }
|
|
2072
2072
|
}, [
|
|
2073
|
-
|
|
2073
|
+
g("div", {
|
|
2074
2074
|
class: "vue-ui-xy-time-tag",
|
|
2075
2075
|
style: A(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${e.FINAL_CONFIG.chart.timeTag.backgroundColor};color:${e.FINAL_CONFIG.chart.timeTag.color};font-size:${e.FINAL_CONFIG.chart.timeTag.fontSize}px`)
|
|
2076
2076
|
}, S(e.timeLabels[i.selectedSerieIndex] || i.selectedSerieIndex), 5)
|
|
2077
2077
|
], 8, pa)),
|
|
2078
|
-
|
|
2078
|
+
g("circle", {
|
|
2079
2079
|
cx: e.drawingArea.left + e.drawingArea.width / e.maxSeries * i.selectedSerieIndex + e.drawingArea.width / e.maxSeries / 2,
|
|
2080
2080
|
cy: e.drawingArea.bottom,
|
|
2081
2081
|
r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
|
|
@@ -2148,13 +2148,13 @@ function Ba(t, s, o, N, i, e) {
|
|
|
2148
2148
|
class: "vue-ui-xy-legend",
|
|
2149
2149
|
style: A(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
|
|
2150
2150
|
}, [
|
|
2151
|
-
(r(!0), l(m, null, I(e.absoluteDataset, (a,
|
|
2152
|
-
key: `div_legend_item_${
|
|
2151
|
+
(r(!0), l(m, null, I(e.absoluteDataset, (a, o) => (r(), l("div", {
|
|
2152
|
+
key: `div_legend_item_${o}`,
|
|
2153
2153
|
onClick: (n) => e.segregate(a),
|
|
2154
2154
|
class: P({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": i.segregatedSeries.includes(a.id) })
|
|
2155
2155
|
}, [
|
|
2156
2156
|
i.icons[a.type] === "line" ? (r(), l("svg", Ta, [
|
|
2157
|
-
|
|
2157
|
+
g("rect", {
|
|
2158
2158
|
x: "0",
|
|
2159
2159
|
y: "7",
|
|
2160
2160
|
rx: "3",
|
|
@@ -2189,7 +2189,7 @@ function Ba(t, s, o, N, i, e) {
|
|
|
2189
2189
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(a.shape) ? a.shape : "circle"
|
|
2190
2190
|
}, null, 8, ["color", "shape"]))
|
|
2191
2191
|
])),
|
|
2192
|
-
|
|
2192
|
+
g("span", {
|
|
2193
2193
|
style: A(`color:${e.FINAL_CONFIG.chart.legend.color}`)
|
|
2194
2194
|
}, S(a.name), 5)
|
|
2195
2195
|
], 10, Pa))), 128))
|
|
@@ -2236,17 +2236,17 @@ function Ba(t, s, o, N, i, e) {
|
|
|
2236
2236
|
}
|
|
2237
2237
|
}, {
|
|
2238
2238
|
content: z(() => [
|
|
2239
|
-
|
|
2239
|
+
g("div", {
|
|
2240
2240
|
style: A(`${i.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
2241
2241
|
}, [
|
|
2242
|
-
|
|
2243
|
-
De(
|
|
2242
|
+
g("div", Ha, [
|
|
2243
|
+
De(g("input", {
|
|
2244
2244
|
type: "checkbox",
|
|
2245
2245
|
"onUpdate:modelValue": s[4] || (s[4] = (a) => i.showSparklineTable = a)
|
|
2246
2246
|
}, null, 512), [
|
|
2247
2247
|
[We, i.showSparklineTable]
|
|
2248
2248
|
]),
|
|
2249
|
-
|
|
2249
|
+
g("div", {
|
|
2250
2250
|
onClick: s[5] || (s[5] = (a) => i.showSparklineTable = !i.showSparklineTable),
|
|
2251
2251
|
style: { cursor: "pointer" }
|
|
2252
2252
|
}, [
|
|
@@ -2271,7 +2271,7 @@ function Ba(t, s, o, N, i, e) {
|
|
|
2271
2271
|
onClose: s[6] || (s[6] = (a) => i.mutableConfig.showTable = !1)
|
|
2272
2272
|
}, {
|
|
2273
2273
|
th: z(({ th: a }) => [
|
|
2274
|
-
|
|
2274
|
+
g("div", { innerHTML: a }, null, 8, Ea)
|
|
2275
2275
|
]),
|
|
2276
2276
|
td: z(({ td: a }) => [
|
|
2277
2277
|
He(S(isNaN(Number(a)) ? a : e.dataLabel({
|
|
@@ -2289,7 +2289,7 @@ function Ba(t, s, o, N, i, e) {
|
|
|
2289
2289
|
}, 8, ["config"])) : h("", !0)
|
|
2290
2290
|
], 14, Xe);
|
|
2291
2291
|
}
|
|
2292
|
-
const li = /* @__PURE__ */ Ee(Ye, [["render", Ba], ["__scopeId", "data-v-
|
|
2292
|
+
const li = /* @__PURE__ */ Ee(Ye, [["render", Ba], ["__scopeId", "data-v-fe7409df"]]);
|
|
2293
2293
|
export {
|
|
2294
2294
|
li as default
|
|
2295
2295
|
};
|