vue-data-ui 2.3.46 → 2.3.48
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-C45xNtet.cjs → Arrow-DVDUyObR.cjs} +1 -1
- package/dist/{Arrow-QBHviXQB.js → Arrow-Zxlib5TA.js} +1 -1
- package/dist/{BaseIcon-Ct3EasCg.js → BaseIcon-B_4EdVx8.js} +1 -1
- package/dist/{BaseIcon-NNgCqsH0.cjs → BaseIcon-DQUa2wbN.cjs} +1 -1
- package/dist/{DataTable-CkeQ7c6_.js → DataTable-97z7jeB3.js} +2 -2
- package/dist/{DataTable-BGF6x8iX.cjs → DataTable-pfsiGYAz.cjs} +1 -1
- package/dist/{Legend-aFYc_s9T.js → Legend-Dc30ZC8U.js} +1 -1
- package/dist/{Legend-DjuRskVd.cjs → Legend-lleMcfy9.cjs} +1 -1
- package/dist/{Shape-BTMZlA5Q.cjs → Shape-BtSgIgD_.cjs} +1 -1
- package/dist/{Shape-DoAgLIYa.js → Shape-Cjf9rDFw.js} +1 -1
- package/dist/Slicer-CanBZJ4V.cjs +1 -0
- package/dist/Slicer-dehuss8u.js +253 -0
- package/dist/{Title-NelrBSGO.cjs → Title-CUtmTGbN.cjs} +1 -1
- package/dist/{Title-D8HoSXgM.js → Title-DZ-9X7T_.js} +1 -1
- package/dist/{Tooltip-DTwn_FW5.js → Tooltip-BE1vKyP4.js} +1 -1
- package/dist/{Tooltip-CK94hatv.cjs → Tooltip-DhxfsNhL.cjs} +1 -1
- package/dist/{index-C1-FJ0sT.js → index-CAkeI2u7.js} +560 -552
- package/dist/index-DGxA8bUJ.cjs +4 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +8 -0
- package/dist/types/vue-data-ui.d.ts +8 -0
- package/dist/{useNestedProp-CcMb2mLY.cjs → useNestedProp-DM4rgjhE.cjs} +1 -1
- package/dist/{useNestedProp-1fJhHDhT.js → useNestedProp-N72tOTWX.js} +1 -1
- package/dist/{usePrinter-AfD8nrd2.cjs → usePrinter-DbJ9I2vE.cjs} +1 -1
- package/dist/{usePrinter-B1a6uNio.js → usePrinter-MbSdbzew.js} +1 -1
- package/dist/{vue-data-ui-DfYg-sm0.cjs → vue-data-ui-BQHuRwzO.cjs} +1 -1
- package/dist/{vue-data-ui-DgzO0vYA.js → vue-data-ui-BtPs_riR.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-ikMJ_M47.js → vue-ui-3d-bar-CLfyDLPQ.js} +7 -7
- package/dist/{vue-ui-3d-bar-DctYjGhv.cjs → vue-ui-3d-bar-DXIhL0TF.cjs} +1 -1
- package/dist/{vue-ui-accordion-BLoKd0D-.js → vue-ui-accordion-BbsnFhS8.js} +3 -3
- package/dist/{vue-ui-accordion-CS2POBdq.cjs → vue-ui-accordion-Bs0EHuxc.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-C9hzFCN4.js → vue-ui-age-pyramid-B4ZZuW-3.js} +8 -8
- package/dist/{vue-ui-age-pyramid-6GljtWMq.cjs → vue-ui-age-pyramid-DpsPcpxc.cjs} +1 -1
- package/dist/{vue-ui-annotator-BFTGfEfF.cjs → vue-ui-annotator-B6tm7G-3.cjs} +1 -1
- package/dist/{vue-ui-annotator-DgdkTVYV.js → vue-ui-annotator-BhE_ZF6c.js} +1 -1
- package/dist/{vue-ui-candlestick-BW-okjzH.js → vue-ui-candlestick-C4uPOJHQ.js} +9 -9
- package/dist/{vue-ui-candlestick-C31d7Jvz.cjs → vue-ui-candlestick-DWF0o42E.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DlFu0byl.cjs → vue-ui-carousel-table-BOx_7UQr.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Cw7Vpun2.js → vue-ui-carousel-table-CuK3NH57.js} +4 -4
- package/dist/{vue-ui-chestnut-SLvSoUlS.js → vue-ui-chestnut-C7w4B_ur.js} +6 -6
- package/dist/{vue-ui-chestnut-B-H0j9-6.cjs → vue-ui-chestnut-wEen0cKE.cjs} +1 -1
- package/dist/{vue-ui-cursor-BnoYo8DD.js → vue-ui-cursor-Ctgm3n3f.js} +2 -2
- package/dist/{vue-ui-cursor-eMGHt_Cm.cjs → vue-ui-cursor-Yv8kl6qP.cjs} +1 -1
- package/dist/{vue-ui-dashboard-cOx4Zbit.js → vue-ui-dashboard-2lnPhwSk.js} +2 -2
- package/dist/{vue-ui-dashboard-BpwA8NTi.cjs → vue-ui-dashboard-DPpvlOhB.cjs} +1 -1
- package/dist/{vue-ui-digits-wo7Gctkj.js → vue-ui-digits-BaQVgAB3.js} +2 -2
- package/dist/{vue-ui-digits-MhR768JU.cjs → vue-ui-digits-CDsLYZQx.cjs} +1 -1
- package/dist/vue-ui-donut-BJvvOCw4.cjs +1 -0
- package/dist/{vue-ui-donut-CABoxvoV.js → vue-ui-donut-Bkhnx2Na.js} +45 -45
- package/dist/{vue-ui-donut-evolution-r6wIb3Tt.js → vue-ui-donut-evolution-ASmhsxgl.js} +9 -9
- package/dist/{vue-ui-donut-evolution-DzkcS9ET.cjs → vue-ui-donut-evolution-R7XCcHKT.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-D3pvOoxP.js → vue-ui-dumbbell-Bnx1whQL.js} +8 -8
- package/dist/{vue-ui-dumbbell-DSSBvwhU.cjs → vue-ui-dumbbell-DOf__qbw.cjs} +1 -1
- package/dist/{vue-ui-flow-CCMFNXxy.js → vue-ui-flow-Cpt4rGww.js} +7 -7
- package/dist/{vue-ui-flow-Cp7EQLnA.cjs → vue-ui-flow-DESqaa_D.cjs} +1 -1
- package/dist/{vue-ui-galaxy-DHXdjlQl.cjs → vue-ui-galaxy-lyWd6uQ2.cjs} +1 -1
- package/dist/{vue-ui-galaxy-BVu0ZEeg.js → vue-ui-galaxy-yll2l5no.js} +9 -9
- package/dist/{vue-ui-gauge-DRy_VLi-.js → vue-ui-gauge-DvErHglc.js} +5 -5
- package/dist/{vue-ui-gauge-nnDuY2_P.cjs → vue-ui-gauge-_imuFpna.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Bhqq90Gt.cjs → vue-ui-gizmo-BoTTd12O.cjs} +1 -1
- package/dist/{vue-ui-gizmo-B8rEv-J5.js → vue-ui-gizmo-CcJZ1BaJ.js} +2 -2
- package/dist/{vue-ui-heatmap-DoEghJHO.cjs → vue-ui-heatmap-BfVdowyK.cjs} +1 -1
- package/dist/{vue-ui-heatmap-CESWvx6H.js → vue-ui-heatmap-DJ1FMowz.js} +8 -8
- package/dist/{vue-ui-kpi-CHrIMR-b.cjs → vue-ui-kpi-BtOxRhb1.cjs} +1 -1
- package/dist/{vue-ui-kpi-CBH1WOLl.js → vue-ui-kpi-tyv7wQWA.js} +3 -3
- package/dist/{vue-ui-mini-loader-YjK49sOM.js → vue-ui-mini-loader-BZSFz3n8.js} +2 -2
- package/dist/{vue-ui-mini-loader-CP5HRcth.cjs → vue-ui-mini-loader-DAp6v1OO.cjs} +1 -1
- package/dist/{vue-ui-molecule-CZDSsnRY.js → vue-ui-molecule-B_IidHvj.js} +9 -9
- package/dist/{vue-ui-molecule-BIuegM-N.cjs → vue-ui-molecule-DRC62I9B.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-CcnUPS5r.js → vue-ui-mood-radar-BdYscbyC.js} +9 -9
- package/dist/{vue-ui-mood-radar-DYTpiKG1.cjs → vue-ui-mood-radar-DTVywXlL.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-Dk0HSrH4.js → vue-ui-nested-donuts-Bw0Iifx1.js} +9 -9
- package/dist/{vue-ui-nested-donuts-CvPo6PIH.cjs → vue-ui-nested-donuts-EPd_poHo.cjs} +1 -1
- package/dist/{vue-ui-onion-C_Dy0awV.cjs → vue-ui-onion-4ULM84d3.cjs} +1 -1
- package/dist/{vue-ui-onion-C93R_Klx.js → vue-ui-onion-B9wG-dIS.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-aEJjFh7V.js → vue-ui-parallel-coordinate-plot-5T4gwxht.js} +10 -10
- package/dist/{vue-ui-parallel-coordinate-plot-Do8zOqso.cjs → vue-ui-parallel-coordinate-plot-BUfuDzc3.cjs} +1 -1
- package/dist/{vue-ui-quadrant-7zsx3EOw.js → vue-ui-quadrant-C8Gob7gq.js} +10 -10
- package/dist/{vue-ui-quadrant-CMP5gv34.cjs → vue-ui-quadrant-Dr5JjCka.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-DlKpBf-X.cjs → vue-ui-quick-chart-8GGtO2tf.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-yGY2-cME.js → vue-ui-quick-chart-CFHyJ7rZ.js} +6 -6
- package/dist/{vue-ui-radar-CBAE5b_H.js → vue-ui-radar-Cr1Mb9Bx.js} +10 -10
- package/dist/{vue-ui-radar-FvOQWErL.cjs → vue-ui-radar-Dy5kHYce.cjs} +1 -1
- package/dist/{vue-ui-rating-D4ytgNsW.cjs → vue-ui-rating-BDKvG8bm.cjs} +1 -1
- package/dist/{vue-ui-rating-DCX9Hr51.js → vue-ui-rating-ClL1a6MY.js} +2 -2
- package/dist/{vue-ui-relation-circle-C0t4M_Eb.cjs → vue-ui-relation-circle-Cq__UW9k.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-C5uvdRCs.js → vue-ui-relation-circle-oVSySfff.js} +5 -5
- package/dist/{vue-ui-rings-Cx9I0XCp.js → vue-ui-rings-B7381qCZ.js} +9 -9
- package/dist/{vue-ui-rings-CljU3aO-.cjs → vue-ui-rings-C8g7Xj86.cjs} +1 -1
- package/dist/{vue-ui-scatter-BxrCbWPm.js → vue-ui-scatter-Bh2Mjbi3.js} +10 -10
- package/dist/{vue-ui-scatter-BkvHY89U.cjs → vue-ui-scatter-D_DPdRoK.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Cf9NK_5w.js → vue-ui-screenshot-Bl86uY0k.js} +1 -1
- package/dist/{vue-ui-screenshot-B198lkuF.cjs → vue-ui-screenshot-D46q2vBL.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DpqVx122.cjs → vue-ui-skeleton-CHI4nqtV.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DogpCRv2.js → vue-ui-skeleton-DtWvFTM9.js} +2 -2
- package/dist/{vue-ui-smiley-wnlpDBHn.js → vue-ui-smiley-BCsFzW-q.js} +2 -2
- package/dist/{vue-ui-smiley-Hv5SONWU.cjs → vue-ui-smiley-CvpjObu1.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DBFYuxbh.cjs → vue-ui-spark-trend-BGEFwDpP.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-_STSpU0x.js → vue-ui-spark-trend-Cb1unGKY.js} +4 -4
- package/dist/{vue-ui-sparkbar-B2C4gKQS.js → vue-ui-sparkbar-2-EGfoOE.js} +3 -3
- package/dist/{vue-ui-sparkbar-D1OrFmz5.cjs → vue-ui-sparkbar-K6DV0yr0.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CgX6ZpW7.cjs → vue-ui-sparkgauge-0uv6HhvN.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-fsJt_SRA.js → vue-ui-sparkgauge-DdQDS2KM.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-gue0JMvB.js → vue-ui-sparkhistogram-CQOY13sM.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-CV8k8NPB.cjs → vue-ui-sparkhistogram-DV6-Hmhz.cjs} +1 -1
- package/dist/{vue-ui-sparkline-ClFxAQkz.js → vue-ui-sparkline-Cnu3UnAn.js} +3 -3
- package/dist/{vue-ui-sparkline-DN7RZ5FX.cjs → vue-ui-sparkline-oYEzsMF2.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-3D6MkgTR.js → vue-ui-sparkstackbar-CoHqnRmF.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-Dxy0P3xJ.cjs → vue-ui-sparkstackbar-vJoAUAZJ.cjs} +1 -1
- package/dist/{vue-ui-stackbar-DAFHq-wh.js → vue-ui-stackbar-BGNfdn6K.js} +10 -10
- package/dist/{vue-ui-stackbar-BY0bcCBX.cjs → vue-ui-stackbar-BKiUGEDc.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-B3ItWHyf.js → vue-ui-strip-plot-CPXr1Unl.js} +9 -9
- package/dist/{vue-ui-strip-plot-lfB-YBkt.cjs → vue-ui-strip-plot-DTvz7qPm.cjs} +1 -1
- package/dist/{vue-ui-table-Dxc80GV0.js → vue-ui-table-BkY3KOTh.js} +1 -1
- package/dist/{vue-ui-table-CiksARcd.cjs → vue-ui-table-XywHpa9F.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-C_Wr83fl.cjs → vue-ui-table-heatmap-CiRaCqLh.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-AI2JeTUR.js → vue-ui-table-heatmap-Ft_4H5TG.js} +4 -4
- package/dist/{vue-ui-table-sparkline-D2KWAYWO.js → vue-ui-table-sparkline-CXD6RQwT.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BPYQI2Vo.cjs → vue-ui-table-sparkline-c_fn53DV.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BopRBXkF.cjs → vue-ui-thermometer-Cm-phIMA.cjs} +1 -1
- package/dist/{vue-ui-thermometer-szsOVqgO.js → vue-ui-thermometer-DPv-QZyR.js} +5 -5
- package/dist/{vue-ui-timer-Ctcaiaej.cjs → vue-ui-timer-B-1okA9J.cjs} +1 -1
- package/dist/{vue-ui-timer-CpuqP9iZ.js → vue-ui-timer-B_e8jeFu.js} +4 -4
- package/dist/{vue-ui-tiremarks-9P4vBFZV.js → vue-ui-tiremarks-BTx3UPF6.js} +5 -5
- package/dist/{vue-ui-tiremarks-Cge2TXFU.cjs → vue-ui-tiremarks-n429npvo.cjs} +1 -1
- package/dist/{vue-ui-treemap-BxdorPsS.cjs → vue-ui-treemap-C6dlrtc-.cjs} +1 -1
- package/dist/{vue-ui-treemap-CLOwIrHN.js → vue-ui-treemap-Df7c03TV.js} +9 -9
- package/dist/{vue-ui-vertical-bar-BREOjM7U.cjs → vue-ui-vertical-bar-D04Qa1Ve.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-Br8Slvab.js → vue-ui-vertical-bar-bipz8aIc.js} +9 -9
- package/dist/{vue-ui-waffle-CPqrsii3.cjs → vue-ui-waffle-1JK9OthJ.cjs} +1 -1
- package/dist/{vue-ui-waffle-B62b9gwj.js → vue-ui-waffle-Dc-Drk3w.js} +9 -9
- package/dist/{vue-ui-wheel-B3Nw-ICG.js → vue-ui-wheel-CTD6Bxrd.js} +5 -5
- package/dist/{vue-ui-wheel-HqeFI8W9.cjs → vue-ui-wheel-w2xLqgyW.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-HgAIxI93.js → vue-ui-word-cloud-DO8E-MmK.js} +7 -7
- package/dist/{vue-ui-word-cloud-B_W87vAs.cjs → vue-ui-word-cloud-DxIS-nBr.cjs} +1 -1
- package/dist/{vue-ui-xy-DpqyiCx6.js → vue-ui-xy-CM5MM7qx.js} +337 -316
- package/dist/{vue-ui-xy-canvas-CjGlVtb_.js → vue-ui-xy-canvas-Any2UpuS.js} +10 -10
- package/dist/{vue-ui-xy-canvas-5f_5ULEA.cjs → vue-ui-xy-canvas-Dg1-pLp8.cjs} +1 -1
- package/dist/vue-ui-xy-y3ThqwCN.cjs +3 -0
- package/package.json +1 -1
- package/dist/Slicer-BCr6bV0X.cjs +0 -1
- package/dist/Slicer-I9LVm-u8.js +0 -156
- package/dist/index-CEhe8nzy.cjs +0 -4
- package/dist/vue-ui-donut-C4bFM2ww.cjs +0 -1
- package/dist/vue-ui-xy-CWQd12R4.cjs +0 -3
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { p as J } from "./pdf-97UbtKC2.js";
|
|
2
|
-
import { U as K, s as Q } from "./usePrinter-
|
|
3
|
-
import { c as Z, a as j, t as $, v as ee, p as te, u as ae, P as X, J as P, f as q, F as le, D as re, i as ie, U as se, S as
|
|
4
|
-
import { D as ke } from "./DataTable-
|
|
5
|
-
import { _ as we } from "./Title-
|
|
6
|
-
import { _ as Oe, u as ve } from "./Tooltip-
|
|
7
|
-
import { _ as Ge } from "./Shape-
|
|
8
|
-
import ze from "./BaseIcon-
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { S as Pe } from "./Slicer-
|
|
12
|
-
import Te from "./vue-ui-accordion-
|
|
13
|
-
import { u as U } from "./useNestedProp-
|
|
14
|
-
import { resolveComponent as T, openBlock as r, createElementBlock as i, normalizeClass as
|
|
15
|
-
import { _ as
|
|
16
|
-
const
|
|
2
|
+
import { U as K, s as Q } from "./usePrinter-MbSdbzew.js";
|
|
3
|
+
import { c as Z, a as j, t as $, v as ee, p as te, u as ae, P as X, J as P, f as q, F as le, D as re, i as ie, U as se, S as ne, V as oe, W as he, Y as ce, d as de, z as ue, b as ge, q as fe, M as me, Z as be, r as Ie, e as Ne, x as xe, _ as _e, w as Fe, $ as ye, o as Ae, s as Le, C as Se, y as Ce } from "./index-CAkeI2u7.js";
|
|
4
|
+
import { D as ke } from "./DataTable-97z7jeB3.js";
|
|
5
|
+
import { _ as we } from "./Title-DZ-9X7T_.js";
|
|
6
|
+
import { _ as Oe, u as ve } from "./Tooltip-BE1vKyP4.js";
|
|
7
|
+
import { _ as Ge } from "./Shape-Cjf9rDFw.js";
|
|
8
|
+
import ze from "./BaseIcon-B_4EdVx8.js";
|
|
9
|
+
import Me from "./vue-ui-table-sparkline-CXD6RQwT.js";
|
|
10
|
+
import pe from "./vue-ui-skeleton-DtWvFTM9.js";
|
|
11
|
+
import { S as Pe } from "./Slicer-dehuss8u.js";
|
|
12
|
+
import Te from "./vue-ui-accordion-BbsnFhS8.js";
|
|
13
|
+
import { u as U } from "./useNestedProp-N72tOTWX.js";
|
|
14
|
+
import { resolveComponent as T, openBlock as r, createElementBlock as i, normalizeClass as p, normalizeStyle as L, createVNode as Y, createCommentVNode as h, createBlock as V, createSlots as Ve, withCtx as z, renderSlot as v, normalizeProps as H, guardReactiveProps as B, createElementVNode as u, Fragment as b, renderList as I, toDisplayString as C, withDirectives as Re, vModelCheckbox as De, createTextVNode as We } from "vue";
|
|
15
|
+
import { _ as Ee } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const He = Z(), Be = {
|
|
17
17
|
name: "vue-ui-xy",
|
|
18
18
|
props: {
|
|
19
19
|
config: {
|
|
@@ -36,18 +36,18 @@ const We = Z(), Be = {
|
|
|
36
36
|
Tooltip: Oe,
|
|
37
37
|
UserOptions: K,
|
|
38
38
|
BaseIcon: ze,
|
|
39
|
-
TableSparkline:
|
|
40
|
-
Skeleton:
|
|
39
|
+
TableSparkline: Me,
|
|
40
|
+
Skeleton: pe,
|
|
41
41
|
Slicer: Pe,
|
|
42
42
|
Accordion: Te
|
|
43
43
|
},
|
|
44
44
|
data() {
|
|
45
|
-
this.dataset.forEach((c,
|
|
45
|
+
this.dataset.forEach((c, f) => {
|
|
46
46
|
[null, void 0].includes(c.series) && this.error({
|
|
47
47
|
componentName: "VueUiXy",
|
|
48
48
|
type: "datasetSerieAttribute",
|
|
49
49
|
property: "series (number[])",
|
|
50
|
-
index:
|
|
50
|
+
index: f
|
|
51
51
|
});
|
|
52
52
|
});
|
|
53
53
|
const l = Math.max(...this.dataset.map((c) => c.series.length)), s = {
|
|
@@ -103,7 +103,7 @@ const We = Z(), Be = {
|
|
|
103
103
|
maxX: l,
|
|
104
104
|
showSparklineTable: !0,
|
|
105
105
|
segregateStep: 0,
|
|
106
|
-
sliderId:
|
|
106
|
+
sliderId: He,
|
|
107
107
|
fontSizes: {
|
|
108
108
|
xAxis: 18,
|
|
109
109
|
yAxis: 12,
|
|
@@ -117,6 +117,14 @@ const We = Z(), Be = {
|
|
|
117
117
|
};
|
|
118
118
|
},
|
|
119
119
|
computed: {
|
|
120
|
+
minimap() {
|
|
121
|
+
if (!this.FINAL_CONFIG.chart.zoom.minimap.show) return [];
|
|
122
|
+
const l = this.datasetWithIds.filter((t) => !this.segregatedSeries.includes(t.id)), s = Math.max(...l.map((t) => t.series.length)), c = [];
|
|
123
|
+
for (let t = 0; t < s; t += 1)
|
|
124
|
+
c.push(l.map((e) => e.series[t] || 0).reduce((e, N) => (e || 0) + (N || 0), 0));
|
|
125
|
+
const f = Math.min(...c);
|
|
126
|
+
return c.map((t) => t + (f < 0 ? Math.abs(f) : 0));
|
|
127
|
+
},
|
|
120
128
|
customPalette() {
|
|
121
129
|
return this.convertCustomPalette(this.FINAL_CONFIG.customPalette);
|
|
122
130
|
},
|
|
@@ -162,7 +170,7 @@ const We = Z(), Be = {
|
|
|
162
170
|
id: t.id,
|
|
163
171
|
yOffset: t.yOffset || 0,
|
|
164
172
|
individualHeight: t.individualHeight || this.drawingArea.height
|
|
165
|
-
})),
|
|
173
|
+
})), f = [...l, ...s, ...c].flatMap((t) => t).length;
|
|
166
174
|
return [...l, ...s, ...c].flatMap((t, e) => ({
|
|
167
175
|
id: t.id,
|
|
168
176
|
scaleLabel: t.scaleLabel,
|
|
@@ -171,7 +179,7 @@ const We = Z(), Be = {
|
|
|
171
179
|
scale: t.scale,
|
|
172
180
|
yOffset: t.yOffset,
|
|
173
181
|
individualHeight: t.individualHeight,
|
|
174
|
-
x: this.mutableConfig.isStacked ? this.drawingArea.left : this.drawingArea.left /
|
|
182
|
+
x: this.mutableConfig.isStacked ? this.drawingArea.left : this.drawingArea.left / f * (e + 1),
|
|
175
183
|
yLabels: t.scaleYLabels || t.scale.ticks.map((N) => ({
|
|
176
184
|
y: N >= 0 ? t.zero - t.individualHeight * (N / t.max) : t.zero + t.individualHeight * Math.abs(N) / t.max,
|
|
177
185
|
value: N
|
|
@@ -227,6 +235,12 @@ const We = Z(), Be = {
|
|
|
227
235
|
absoluteMax() {
|
|
228
236
|
return this.niceScale.max + this.relativeZero;
|
|
229
237
|
},
|
|
238
|
+
datasetWithIds() {
|
|
239
|
+
return this.useSafeValues ? this.dataset.map((l, s) => ({
|
|
240
|
+
...l,
|
|
241
|
+
id: `uniqueId_${s}`
|
|
242
|
+
})) : this.dataset;
|
|
243
|
+
},
|
|
230
244
|
safeDataset() {
|
|
231
245
|
return this.useSafeValues ? this.dataset.map((l, s) => ({
|
|
232
246
|
...l,
|
|
@@ -292,44 +306,44 @@ const We = Z(), Be = {
|
|
|
292
306
|
barSet() {
|
|
293
307
|
return this.activeSeriesWithStackRatios.filter((l) => l.type === "bar").map((l, s) => {
|
|
294
308
|
this.checkAutoScaleError(l);
|
|
295
|
-
const c = Math.min(...l.absoluteValues.filter((d) => ![null, void 0].includes(d))),
|
|
296
|
-
ratios: l.absoluteValues.filter((d) => ![null, void 0].includes(d)).map((d) => (d - c) / (
|
|
309
|
+
const c = Math.min(...l.absoluteValues.filter((d) => ![null, void 0].includes(d))), f = Math.max(...l.absoluteValues.filter((d) => ![null, void 0].includes(d))), e = {
|
|
310
|
+
ratios: l.absoluteValues.filter((d) => ![null, void 0].includes(d)).map((d) => (d - c) / (f - c)),
|
|
297
311
|
valueMin: c,
|
|
298
|
-
valueMax:
|
|
312
|
+
valueMax: f < 0 ? 0 : f
|
|
299
313
|
}, N = {
|
|
300
314
|
max: l.scaleMax || Math.max(...l.absoluteValues) || 1,
|
|
301
315
|
min: l.scaleMin || Math.min(...l.absoluteValues.filter((d) => ![void 0, null].includes(d))) > 0 ? 0 : Math.min(...l.absoluteValues.filter((d) => ![null, void 0].includes(d)))
|
|
302
|
-
}, A = l.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,
|
|
303
|
-
const
|
|
316
|
+
}, A = l.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, m = this.calculateNiceScaleWithExactExtremes(N.min, N.max, A), _ = this.calculateNiceScaleWithExactExtremes(e.valueMin, e.valueMax, A), M = m.min >= 0 ? 0 : Math.abs(m.min), k = 0, w = m.max + M, G = _.max + Math.abs(k), x = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - l.cumulatedStackRatio) : 0, S = this.mutableConfig.isStacked ? this.drawingArea.height * l.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, a = this.drawingArea.bottom - x - S * M / w, o = this.drawingArea.bottom - x - S * k / G, n = this.absoluteDataset.filter((d) => d.type === "bar").filter((d) => !this.segregatedSeries.includes(d.id)).length, g = l.series.map((d, F) => {
|
|
317
|
+
const W = this.mutableConfig.useIndividualScale ? (l.absoluteValues[F] + M) / w : 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 * n - this.barSlot / 2 - s * this.barPeriodGap;
|
|
304
318
|
return {
|
|
305
319
|
yOffset: x,
|
|
306
320
|
individualHeight: S,
|
|
307
|
-
x:
|
|
308
|
-
y: this.drawingArea.bottom - x - S *
|
|
321
|
+
x: E,
|
|
322
|
+
y: this.drawingArea.bottom - x - S * W,
|
|
309
323
|
value: l.absoluteValues[F],
|
|
310
324
|
zeroPosition: a,
|
|
311
325
|
individualMax: w,
|
|
312
326
|
comment: l.comments && l.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
313
327
|
};
|
|
314
328
|
}), D = l.absoluteValues.map((d) => _.min >= 0 ? (d - Math.abs(_.min)) / (_.max - Math.abs(_.min)) : (d + Math.abs(_.min)) / (_.max + Math.abs(_.min))), R = l.series.map((d, F) => {
|
|
315
|
-
const
|
|
329
|
+
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;
|
|
316
330
|
return {
|
|
317
331
|
yOffset: x,
|
|
318
332
|
individualHeight: S,
|
|
319
|
-
x:
|
|
333
|
+
x: W,
|
|
320
334
|
y: this.drawingArea.bottom - x - (S * D[F] || 0),
|
|
321
335
|
value: l.absoluteValues[F],
|
|
322
336
|
zeroPosition: a,
|
|
323
337
|
individualMax: w,
|
|
324
338
|
comment: l.comments && l.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
325
339
|
};
|
|
326
|
-
}), y =
|
|
340
|
+
}), y = m.ticks.map((d) => ({
|
|
327
341
|
y: d >= 0 ? a - S * (d / w) : a + S * Math.abs(d) / w,
|
|
328
342
|
value: d
|
|
329
343
|
})), O = _.ticks.map((d) => {
|
|
330
344
|
const F = (d - _.min) / (_.max - _.min);
|
|
331
345
|
return {
|
|
332
|
-
y: d >= 0 ?
|
|
346
|
+
y: d >= 0 ? o - S * F : o + S * F,
|
|
333
347
|
value: d
|
|
334
348
|
};
|
|
335
349
|
});
|
|
@@ -339,9 +353,9 @@ const We = Z(), Be = {
|
|
|
339
353
|
autoScaleYLabels: O,
|
|
340
354
|
individualHeight: S,
|
|
341
355
|
scaleYLabels: l.autoScaling ? O : y,
|
|
342
|
-
individualScale: l.autoScaling ? _ :
|
|
356
|
+
individualScale: l.autoScaling ? _ : m,
|
|
343
357
|
individualMax: l.autoScaling ? G : w,
|
|
344
|
-
zeroPosition: l.autoScaling ?
|
|
358
|
+
zeroPosition: l.autoScaling ? o : a,
|
|
345
359
|
plots: l.autoScaling ? R : g
|
|
346
360
|
};
|
|
347
361
|
});
|
|
@@ -362,27 +376,27 @@ const We = Z(), Be = {
|
|
|
362
376
|
}, e = {
|
|
363
377
|
max: l.scaleMax || Math.max(...l.absoluteValues) || 1,
|
|
364
378
|
min: l.scaleMin || (Math.min(...l.absoluteValues) > 0 ? 0 : Math.min(...l.absoluteValues))
|
|
365
|
-
}, N = l.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = this.calculateNiceScaleWithExactExtremes(e.min, e.max, N),
|
|
366
|
-
const
|
|
379
|
+
}, N = l.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = this.calculateNiceScaleWithExactExtremes(e.min, e.max, N), m = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax, N), _ = A.min >= 0 ? 0 : Math.abs(A.min), M = 0, k = A.max + Math.abs(_), w = m.max + Math.abs(M), G = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - l.cumulatedStackRatio) : 0, x = this.mutableConfig.isStacked ? this.drawingArea.height * l.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, S = this.drawingArea.bottom - G - x * _ / k, a = this.drawingArea.bottom - G - x * M / w, o = l.series.map((d, F) => {
|
|
380
|
+
const W = this.mutableConfig.useIndividualScale ? (l.absoluteValues[F] + Math.abs(_)) / k : this.ratioToMax(d);
|
|
367
381
|
return {
|
|
368
382
|
x: this.drawingArea.left + this.slot.line / 2 + this.slot.line * F,
|
|
369
|
-
y: this.drawingArea.bottom - G - x *
|
|
383
|
+
y: this.drawingArea.bottom - G - x * W,
|
|
370
384
|
value: l.absoluteValues[F],
|
|
371
385
|
comment: l.comments && l.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
372
386
|
};
|
|
373
|
-
}),
|
|
387
|
+
}), n = l.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))), g = l.series.map((d, F) => {
|
|
374
388
|
if (![void 0, null].includes(l.absoluteValues[F]))
|
|
375
389
|
return {
|
|
376
390
|
x: this.drawingArea.left + this.slot.line / 2 + this.slot.line * F,
|
|
377
|
-
y: this.drawingArea.bottom - G - (x *
|
|
391
|
+
y: this.drawingArea.bottom - G - (x * n[F] || 0),
|
|
378
392
|
value: l.absoluteValues[F],
|
|
379
393
|
comment: l.comments && l.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
380
394
|
};
|
|
381
|
-
}), D = this.createSmoothPath(
|
|
395
|
+
}), D = this.createSmoothPath(o), R = this.createSmoothPath(g), y = A.ticks.map((d) => ({
|
|
382
396
|
y: d >= 0 ? S - x * (d / k) : S + x * Math.abs(d) / k,
|
|
383
397
|
value: d
|
|
384
|
-
})), O =
|
|
385
|
-
const F = (d -
|
|
398
|
+
})), O = m.ticks.map((d) => {
|
|
399
|
+
const F = (d - m.min) / (m.max - m.min);
|
|
386
400
|
return {
|
|
387
401
|
y: d >= 0 ? a - x * F : a + x * F,
|
|
388
402
|
value: d
|
|
@@ -394,12 +408,12 @@ const We = Z(), Be = {
|
|
|
394
408
|
autoScaleYLabels: O,
|
|
395
409
|
individualHeight: x,
|
|
396
410
|
scaleYLabels: l.autoScaling ? O : y,
|
|
397
|
-
individualScale: l.autoScaling ?
|
|
411
|
+
individualScale: l.autoScaling ? m : A,
|
|
398
412
|
individualMax: l.autoScaling ? w : k,
|
|
399
413
|
zeroPosition: l.autoScaling ? a : S,
|
|
400
414
|
curve: l.autoScaling ? R : D,
|
|
401
|
-
plots: l.autoScaling ? g :
|
|
402
|
-
area: l.useArea ? this.mutableConfig.useIndividualScale ? this.createIndividualArea(l.autoScaling ? g :
|
|
415
|
+
plots: l.autoScaling ? g : o,
|
|
416
|
+
area: l.useArea ? this.mutableConfig.useIndividualScale ? this.createIndividualArea(l.autoScaling ? g : o, l.autoScaling ? a : S) : this.createArea(o) : ""
|
|
403
417
|
};
|
|
404
418
|
});
|
|
405
419
|
},
|
|
@@ -413,7 +427,7 @@ const We = Z(), Be = {
|
|
|
413
427
|
}, e = {
|
|
414
428
|
max: l.scaleMax || Math.max(...l.absoluteValues) || 1,
|
|
415
429
|
min: l.scaleMin || Math.min(...l.absoluteValues) > 0 ? 0 : Math.min(...l.absoluteValues)
|
|
416
|
-
}, N = l.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = this.calculateNiceScaleWithExactExtremes(e.min, e.max, N),
|
|
430
|
+
}, N = l.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = this.calculateNiceScaleWithExactExtremes(e.min, e.max, N), m = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax, N), _ = A.min >= 0 ? 0 : Math.abs(A.min), M = 0, k = A.max + _, w = m.max + Math.abs(M), G = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - l.cumulatedStackRatio) : 0, x = this.mutableConfig.isStacked ? this.drawingArea.height * l.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, S = this.drawingArea.bottom - G - x * _ / k, a = this.drawingArea.bottom - G - x * M / w, o = l.series.map((y, O) => {
|
|
417
431
|
const d = this.mutableConfig.useIndividualScale ? (l.absoluteValues[O] + Math.abs(_)) / k : this.ratioToMax(y);
|
|
418
432
|
return {
|
|
419
433
|
x: this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * O,
|
|
@@ -421,16 +435,16 @@ const We = Z(), Be = {
|
|
|
421
435
|
value: l.absoluteValues[O],
|
|
422
436
|
comment: l.comments && l.comments.slice(this.slicer.start, this.slicer.end)[O] || ""
|
|
423
437
|
};
|
|
424
|
-
}),
|
|
438
|
+
}), n = l.absoluteValues.map((y) => m.min >= 0 ? (y - Math.abs(m.min)) / (m.max - Math.abs(m.min)) : (y + Math.abs(m.min)) / (m.max + Math.abs(m.min))), g = l.series.map((y, O) => ({
|
|
425
439
|
x: this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * O,
|
|
426
|
-
y: this.drawingArea.bottom - G - (x *
|
|
440
|
+
y: this.drawingArea.bottom - G - (x * n[O] || 0),
|
|
427
441
|
value: l.absoluteValues[O],
|
|
428
442
|
comment: l.comments && l.comments.slice(this.slicer.start, this.slicer.end)[O] || ""
|
|
429
443
|
})), D = A.ticks.map((y) => ({
|
|
430
444
|
y: y >= 0 ? S - x * (y / k) : S + x * Math.abs(y) / k,
|
|
431
445
|
value: y
|
|
432
|
-
})), R =
|
|
433
|
-
const O = (y -
|
|
446
|
+
})), R = m.ticks.map((y) => {
|
|
447
|
+
const O = (y - m.min) / (m.max - m.min);
|
|
434
448
|
return {
|
|
435
449
|
y: y >= 0 ? a - x * O : a + x * O,
|
|
436
450
|
value: y
|
|
@@ -442,10 +456,10 @@ const We = Z(), Be = {
|
|
|
442
456
|
autoScaleYLabels: R,
|
|
443
457
|
individualHeight: x,
|
|
444
458
|
scaleYLabels: l.autoScaling ? R : D,
|
|
445
|
-
individualScale: l.autoScaling ?
|
|
459
|
+
individualScale: l.autoScaling ? m : A,
|
|
446
460
|
individualMax: l.autoScaling ? w : k,
|
|
447
461
|
zeroPosition: l.autoScaling ? a : S,
|
|
448
|
-
plots: l.autoScaling ? g :
|
|
462
|
+
plots: l.autoScaling ? g : o
|
|
449
463
|
};
|
|
450
464
|
});
|
|
451
465
|
},
|
|
@@ -502,10 +516,10 @@ const We = Z(), Be = {
|
|
|
502
516
|
color: c.color,
|
|
503
517
|
type: c.type
|
|
504
518
|
})), s = [];
|
|
505
|
-
return this.timeLabels.forEach((c,
|
|
519
|
+
return this.timeLabels.forEach((c, f) => {
|
|
506
520
|
const t = [c];
|
|
507
521
|
this.relativeDataset.forEach((e) => {
|
|
508
|
-
t.push(this.canShowValue(e.absoluteValues[
|
|
522
|
+
t.push(this.canShowValue(e.absoluteValues[f]) ? Number(e.absoluteValues[f].toFixed(this.FINAL_CONFIG.table.rounding)) : "");
|
|
509
523
|
}), s.push(t);
|
|
510
524
|
}), { head: l, body: s };
|
|
511
525
|
},
|
|
@@ -528,8 +542,8 @@ const We = Z(), Be = {
|
|
|
528
542
|
outline: this.FINAL_CONFIG.table.td.outline
|
|
529
543
|
},
|
|
530
544
|
breakpoint: this.FINAL_CONFIG.table.responsiveBreakpoint
|
|
531
|
-
},
|
|
532
|
-
return { head: l, body: s, config: c, colNames:
|
|
545
|
+
}, f = [this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map((t) => t.name)).concat(this.FINAL_CONFIG.table.columnNames.total);
|
|
546
|
+
return { head: l, body: s, config: c, colNames: f };
|
|
533
547
|
},
|
|
534
548
|
dataTooltipSlot() {
|
|
535
549
|
return {
|
|
@@ -554,8 +568,8 @@ const We = Z(), Be = {
|
|
|
554
568
|
},
|
|
555
569
|
tooltipContent() {
|
|
556
570
|
let l = "", s = this.selectedSeries.map((t) => t.value).filter((t) => this.isSafeValue(t) && t !== null).reduce((t, e) => Math.abs(t) + Math.abs(e), 0);
|
|
557
|
-
const c = this.timeLabels[this.selectedSerieIndex],
|
|
558
|
-
return this.isFunction(
|
|
571
|
+
const c = this.timeLabels[this.selectedSerieIndex], f = this.FINAL_CONFIG.chart.tooltip.customFormat;
|
|
572
|
+
return this.isFunction(f) && this.functionReturnsString(() => f({
|
|
559
573
|
seriesIndex: this.selectedSerieIndex,
|
|
560
574
|
datapoint: this.selectedSeries,
|
|
561
575
|
series: this.absoluteDataset,
|
|
@@ -563,7 +577,7 @@ const We = Z(), Be = {
|
|
|
563
577
|
lines: this.lineSet,
|
|
564
578
|
plots: this.plotSet,
|
|
565
579
|
config: this.FINAL_CONFIG
|
|
566
|
-
})) ?
|
|
580
|
+
})) ? f({
|
|
567
581
|
seriesIndex: this.selectedSerieIndex,
|
|
568
582
|
datapoint: this.selectedSeries,
|
|
569
583
|
series: this.absoluteDataset,
|
|
@@ -676,15 +690,15 @@ const We = Z(), Be = {
|
|
|
676
690
|
isStacked: this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,
|
|
677
691
|
useIndividualScale: this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale
|
|
678
692
|
}, this.FINAL_CONFIG.responsive) {
|
|
679
|
-
const s = this.$refs.chart.parentNode, { height: c, width:
|
|
693
|
+
const s = this.$refs.chart.parentNode, { height: c, width: f } = s.getBoundingClientRect();
|
|
680
694
|
let t = null, e = 0;
|
|
681
695
|
this.FINAL_CONFIG.chart.title.show && (t = this.$refs.chartTitle, e = t.getBoundingClientRect().height);
|
|
682
696
|
let N = null, A = 0;
|
|
683
697
|
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (N = this.$refs.chartSlicer.$el, A = N.getBoundingClientRect().height);
|
|
684
|
-
let
|
|
685
|
-
this.FINAL_CONFIG.chart.legend.show && (
|
|
698
|
+
let m = null, _ = 0;
|
|
699
|
+
this.FINAL_CONFIG.chart.legend.show && (m = this.$refs.chartLegend, _ = m.getBoundingClientRect().height), this.height = c - e - _ - A, this.width = f, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes(), new ResizeObserver((k) => {
|
|
686
700
|
for (const w of k)
|
|
687
|
-
|
|
701
|
+
this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer.$el && (A = this.$refs.chartSlicer.$el.getBoundingClientRect().height), this.$refs.chartLegend && (_ = this.$refs.chartLegend.getBoundingClientRect().height), this.height = w.contentBoxSize[0].blockSize - e - _ - A - 24, this.width = w.contentBoxSize[0].inlineSize, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
|
|
688
702
|
}).observe(s);
|
|
689
703
|
} else
|
|
690
704
|
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;
|
|
@@ -694,16 +708,16 @@ const We = Z(), Be = {
|
|
|
694
708
|
adaptColorToBackground: re,
|
|
695
709
|
applyDataLabel: ie,
|
|
696
710
|
assignStackRatios: se,
|
|
697
|
-
calcLinearProgression:
|
|
698
|
-
calculateNiceScaleWithExactExtremes:
|
|
711
|
+
calcLinearProgression: ne,
|
|
712
|
+
calculateNiceScaleWithExactExtremes: oe,
|
|
699
713
|
checkNaN: he,
|
|
700
714
|
closestDecimal: ce,
|
|
701
715
|
convertColorToHex: de,
|
|
702
716
|
convertConfigColors: ue,
|
|
703
717
|
convertCustomPalette: ge,
|
|
704
718
|
createCsvContent: fe,
|
|
705
|
-
createSmoothPath:
|
|
706
|
-
createTSpans:
|
|
719
|
+
createSmoothPath: me,
|
|
720
|
+
createTSpans: be,
|
|
707
721
|
dataLabel: q,
|
|
708
722
|
downloadCsv: Ie,
|
|
709
723
|
error: Ne,
|
|
@@ -775,24 +789,24 @@ const We = Z(), Be = {
|
|
|
775
789
|
},
|
|
776
790
|
createArea(l) {
|
|
777
791
|
if (!l[0]) return [-10, -10, "", -10, -10];
|
|
778
|
-
const s = { x: l[0].x, y: this.zero }, c = { x: l.at(-1).x, y: this.zero },
|
|
792
|
+
const s = { x: l[0].x, y: this.zero }, c = { x: l.at(-1).x, y: this.zero }, f = [];
|
|
779
793
|
return l.forEach((t) => {
|
|
780
|
-
|
|
781
|
-
}), [s.x, s.y, ...
|
|
794
|
+
f.push(`${t.x},${t.y} `);
|
|
795
|
+
}), [s.x, s.y, ...f, c.x, c.y].toString();
|
|
782
796
|
},
|
|
783
797
|
createIndividualArea(l, s) {
|
|
784
798
|
if (!l[0]) return [-10, -10, "", -10, -10];
|
|
785
|
-
const c = { x: l[0] ? l[0].x : Math.min(...l.filter((e) => !!e).map((e) => e.x)), y: s },
|
|
799
|
+
const c = { x: l[0] ? l[0].x : Math.min(...l.filter((e) => !!e).map((e) => e.x)), y: s }, f = { x: l.at(-1) ? l.at(-1).x : Math.min(...l.filter((e) => !!e).map((e) => e.x)), y: s }, t = [];
|
|
786
800
|
return l.filter((e) => !!e).forEach((e) => {
|
|
787
801
|
t.push(`${e.x},${e.y} `);
|
|
788
|
-
}), [c.x, c.y, ...t,
|
|
802
|
+
}), [c.x, c.y, ...t, f.x, f.y].toString();
|
|
789
803
|
},
|
|
790
804
|
createStar: X,
|
|
791
805
|
createPolygonPath: P,
|
|
792
806
|
fillArray(l, s) {
|
|
793
807
|
let c = Array(l).fill(0);
|
|
794
|
-
for (let
|
|
795
|
-
c[
|
|
808
|
+
for (let f = 0; f < s.length && f < l; f += 1)
|
|
809
|
+
c[f] = s[f];
|
|
796
810
|
return c;
|
|
797
811
|
},
|
|
798
812
|
refreshSlicer() {
|
|
@@ -823,10 +837,10 @@ const We = Z(), Be = {
|
|
|
823
837
|
return ![null, void 0, NaN].includes(l);
|
|
824
838
|
},
|
|
825
839
|
findClosestValue(l, s) {
|
|
826
|
-
let c = s[0],
|
|
840
|
+
let c = s[0], f = Math.abs(l - s[0]);
|
|
827
841
|
for (let t = 1; t < s.length; t += 1) {
|
|
828
842
|
const e = Math.abs(l - s[t]);
|
|
829
|
-
e <
|
|
843
|
+
e < f && s[t] < l && (c = s[t], f = e);
|
|
830
844
|
}
|
|
831
845
|
return c;
|
|
832
846
|
},
|
|
@@ -890,7 +904,7 @@ const We = Z(), Be = {
|
|
|
890
904
|
}, 100);
|
|
891
905
|
},
|
|
892
906
|
generateCsv() {
|
|
893
|
-
const l = [[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,
|
|
907
|
+
const l = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], s = ["", ...this.table.head.map((e) => e.label)], c = this.table.body, f = l.concat([s]).concat(c), t = this.createCsvContent(f);
|
|
894
908
|
this.downloadCsv({ csvContent: t, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
|
|
895
909
|
},
|
|
896
910
|
showSpinnerImage() {
|
|
@@ -908,7 +922,7 @@ const We = Z(), Be = {
|
|
|
908
922
|
}, 100);
|
|
909
923
|
}
|
|
910
924
|
}
|
|
911
|
-
}, Ye = ["id"], Xe = ["viewBox"], qe = { key: 0 }, Ue = { class: "vue-ui-xy-grid" }, Ze = ["stroke", "x1", "x2", "y1", "y2"], Je = ["stroke", "x1", "x2", "y1", "y2"], Ke = { key: 1 }, Qe = ["x1", "x2", "y1", "y2", "stroke"], je = ["x1", "x2", "y1", "y2", "stroke"], $e = ["x1", "x2", "y1", "y2", "stroke"], et = { key: 3 }, tt = ["x1", "x2", "y1", "y2", "stroke"], at = ["id"], lt = ["stop-color"], rt = ["stop-color"], it = ["stop-color"], st = ["id"],
|
|
925
|
+
}, Ye = ["id"], Xe = ["viewBox"], qe = { key: 0 }, Ue = { class: "vue-ui-xy-grid" }, Ze = ["stroke", "x1", "x2", "y1", "y2"], Je = ["stroke", "x1", "x2", "y1", "y2"], Ke = { key: 1 }, Qe = ["x1", "x2", "y1", "y2", "stroke"], je = ["x1", "x2", "y1", "y2", "stroke"], $e = ["x1", "x2", "y1", "y2", "stroke"], et = { key: 3 }, tt = ["x1", "x2", "y1", "y2", "stroke"], at = ["id"], lt = ["stop-color"], rt = ["stop-color"], it = ["stop-color"], st = ["id"], nt = ["stop-color"], ot = ["stop-color"], ht = ["stop-color"], ct = ["id"], dt = ["stop-color"], ut = ["stop-color"], gt = ["id"], ft = ["stop-color"], mt = ["stop-color"], bt = ["id"], It = ["stop-color"], Nt = ["stop-color"], xt = ["x", "y", "height", "width", "fill"], _t = ["x", "y", "width"], Ft = ["x", "y", "height", "width", "fill"], yt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], At = ["width", "x", "y"], Lt = { key: 0 }, St = ["id"], Ct = ["fill"], kt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], wt = ["x", "y", "font-size", "fill"], Ot = ["stroke", "x1", "x2", "y1", "y2"], vt = { key: 2 }, Gt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], zt = ["y", "width", "height", "fill"], Mt = ["x", "y", "width", "height", "fill"], pt = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Pt = { key: 4 }, Tt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Vt = ["fill", "font-size", "transform"], Rt = ["x1", "x2", "y1", "y2", "stroke"], Dt = ["x", "y", "font-size", "fill"], Wt = ["x1", "x2", "y1", "y2", "stroke"], Et = ["x", "y", "font-size", "fill"], Ht = ["width", "x", "y"], Bt = { style: { width: "100%" } }, Yt = { key: 0 }, Xt = ["id"], qt = ["fill"], Ut = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Zt = ["x", "y", "font-size", "fill"], Jt = ["d", "stroke", "stroke-width", "stroke-dasharray"], Kt = { key: 1 }, Qt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], jt = { key: 0 }, $t = ["d", "fill"], ea = ["d", "fill"], ta = ["d", "stroke", "stroke-width", "stroke-dasharray"], aa = { key: 2 }, la = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ra = ["width", "x", "y"], ia = { style: { width: "100%" } }, sa = { key: 3 }, na = ["id"], oa = ["fill"], ha = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ca = ["x", "y", "font-size", "fill"], da = { key: 5 }, ua = ["x", "y", "font-size", "fill"], ga = ["x", "y", "font-size", "fill", "font-weight"], fa = { key: 6 }, ma = ["x", "y", "font-size", "fill"], ba = ["x", "y"], Ia = ["x", "y"], Na = { key: 7 }, xa = ["x", "y", "font-size", "fill"], _a = ["x", "y"], Fa = ["x", "y"], ya = ["x", "y", "font-size", "fill", "innerHTML"], Aa = ["x", "y", "font-size", "fill", "innerHTML"], La = ["x", "y", "font-size", "fill", "innerHTML"], Sa = ["x", "y", "font-size", "fill", "innerHTML"], Ca = ["x", "y", "width", "height", "fill", "onMouseenter"], ka = ["font-size", "fill", "transform"], wa = ["x", "y", "font-size", "fill"], Oa = { key: 9 }, va = ["text-anchor", "font-size", "fill", "transform"], Ga = ["x", "y", "height", "width", "onMouseenter", "onClick"], za = { key: 10 }, Ma = ["x", "y"], pa = ["cx", "cy", "r", "fill"], Pa = {
|
|
912
926
|
key: 3,
|
|
913
927
|
class: "vue-data-ui-watermark"
|
|
914
928
|
}, Ta = ["onClick"], Va = {
|
|
@@ -921,18 +935,18 @@ const We = Z(), Be = {
|
|
|
921
935
|
viewBox: "0 0 12 12",
|
|
922
936
|
height: "14",
|
|
923
937
|
width: "14"
|
|
924
|
-
},
|
|
938
|
+
}, Wa = ["fill"], Ea = {
|
|
925
939
|
key: 7,
|
|
926
940
|
ref: "chartLegend"
|
|
927
|
-
},
|
|
941
|
+
}, Ha = {
|
|
928
942
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
929
943
|
"data-html2canvas-ignore": ""
|
|
930
944
|
}, Ba = ["innerHTML"];
|
|
931
|
-
function Ya(l, s, c,
|
|
932
|
-
const N = T("Title"), A = T("UserOptions"),
|
|
945
|
+
function Ya(l, s, c, f, t, e) {
|
|
946
|
+
const N = T("Title"), A = T("UserOptions"), m = T("Shape"), _ = T("Skeleton"), M = T("Slicer"), k = T("Tooltip"), w = T("BaseIcon"), G = T("TableSparkline"), x = T("DataTable"), S = T("Accordion");
|
|
933
947
|
return r(), i("div", {
|
|
934
948
|
id: `vue-ui-xy_${t.uniqueId}`,
|
|
935
|
-
class:
|
|
949
|
+
class: p(`vue-ui-xy ${t.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
936
950
|
ref: "chart",
|
|
937
951
|
style: L(`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%" : ""}`)
|
|
938
952
|
}, [
|
|
@@ -1036,8 +1050,8 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1036
1050
|
} : void 0,
|
|
1037
1051
|
l.$slots.optionFullscreen ? {
|
|
1038
1052
|
name: "optionFullscreen",
|
|
1039
|
-
fn: z(({ toggleFullscreen: a, isFullscreen:
|
|
1040
|
-
v(l.$slots, "optionFullscreen",
|
|
1053
|
+
fn: z(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
1054
|
+
v(l.$slots, "optionFullscreen", H(B({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
1041
1055
|
]),
|
|
1042
1056
|
key: "7"
|
|
1043
1057
|
} : void 0
|
|
@@ -1045,7 +1059,7 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1045
1059
|
e.isDataset ? (r(), i("svg", {
|
|
1046
1060
|
key: 2,
|
|
1047
1061
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1048
|
-
class:
|
|
1062
|
+
class: p([{ "vue-data-ui-fullscreen--on": t.isFullscreen, "vue-data-ui-fulscreen--off": !t.isFullscreen }, "vue-ui-xy-svg"]),
|
|
1049
1063
|
width: "100%",
|
|
1050
1064
|
viewBox: t.viewBox,
|
|
1051
1065
|
style: L(`background:${e.FINAL_CONFIG.chart.backgroundColor}; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
@@ -1063,19 +1077,19 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1063
1077
|
"stroke-linecap": "round"
|
|
1064
1078
|
}, null, 8, Ze)) : h("", !0),
|
|
1065
1079
|
t.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (r(!0), i(b, { key: 2 }, I(e.allScales, (a) => (r(), i("g", null, [
|
|
1066
|
-
a.id === t.selectedScale && a.yLabels.length ? (r(!0), i(b, { key: 0 }, I(a.yLabels, (
|
|
1080
|
+
a.id === t.selectedScale && a.yLabels.length ? (r(!0), i(b, { key: 0 }, I(a.yLabels, (o) => (r(), i("line", {
|
|
1067
1081
|
x1: e.drawingArea.left + e.xPadding,
|
|
1068
1082
|
x2: e.drawingArea.right - e.xPadding,
|
|
1069
|
-
y1:
|
|
1070
|
-
y2:
|
|
1083
|
+
y1: o.y,
|
|
1084
|
+
y2: o.y,
|
|
1071
1085
|
stroke: a.color,
|
|
1072
1086
|
"stroke-width": 0.5,
|
|
1073
1087
|
"stroke-linecap": "round"
|
|
1074
|
-
}, null, 8, je))), 256)) : a.yLabels.length ? (r(!0), i(b, { key: 1 }, I(a.yLabels, (
|
|
1088
|
+
}, null, 8, je))), 256)) : a.yLabels.length ? (r(!0), i(b, { key: 1 }, I(a.yLabels, (o) => (r(), i("line", {
|
|
1075
1089
|
x1: e.drawingArea.left + e.xPadding,
|
|
1076
1090
|
x2: e.drawingArea.right - e.xPadding,
|
|
1077
|
-
y1:
|
|
1078
|
-
y2:
|
|
1091
|
+
y1: o.y,
|
|
1092
|
+
y2: o.y,
|
|
1079
1093
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1080
1094
|
"stroke-width": 0.5,
|
|
1081
1095
|
"stroke-linecap": "round"
|
|
@@ -1104,10 +1118,10 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1104
1118
|
])) : h("", !0)
|
|
1105
1119
|
], 64)),
|
|
1106
1120
|
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (r(), i("g", et, [
|
|
1107
|
-
(r(!0), i(b, null, I(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (a,
|
|
1108
|
-
key: `grid_vertical_line_${
|
|
1109
|
-
x1: e.drawingArea.width / e.maxSeries *
|
|
1110
|
-
x2: e.drawingArea.width / e.maxSeries *
|
|
1121
|
+
(r(!0), i(b, null, I(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (a, o) => (r(), i("line", {
|
|
1122
|
+
key: `grid_vertical_line_${o}`,
|
|
1123
|
+
x1: e.drawingArea.width / e.maxSeries * o + e.drawingArea.left + e.xPadding,
|
|
1124
|
+
x2: e.drawingArea.width / e.maxSeries * o + e.drawingArea.left + e.xPadding,
|
|
1111
1125
|
y1: e.drawingArea.top,
|
|
1112
1126
|
y2: e.drawingArea.bottom,
|
|
1113
1127
|
"stroke-width": "0.5",
|
|
@@ -1115,11 +1129,11 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1115
1129
|
}, null, 8, tt))), 128))
|
|
1116
1130
|
])) : h("", !0)
|
|
1117
1131
|
]),
|
|
1118
|
-
(r(!0), i(b, null, I(e.barSet, (a,
|
|
1119
|
-
key: `def_rect_${
|
|
1132
|
+
(r(!0), i(b, null, I(e.barSet, (a, o) => (r(), i("defs", {
|
|
1133
|
+
key: `def_rect_${o}`
|
|
1120
1134
|
}, [
|
|
1121
1135
|
u("linearGradient", {
|
|
1122
|
-
id: `rectGradient_pos_${
|
|
1136
|
+
id: `rectGradient_pos_${o}_${t.uniqueId}`,
|
|
1123
1137
|
x2: "0%",
|
|
1124
1138
|
y2: "100%"
|
|
1125
1139
|
}, [
|
|
@@ -1137,29 +1151,29 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1137
1151
|
}, null, 8, it)
|
|
1138
1152
|
], 8, at),
|
|
1139
1153
|
u("linearGradient", {
|
|
1140
|
-
id: `rectGradient_neg_${
|
|
1154
|
+
id: `rectGradient_neg_${o}_${t.uniqueId}`,
|
|
1141
1155
|
x2: "0%",
|
|
1142
1156
|
y2: "100%"
|
|
1143
1157
|
}, [
|
|
1144
1158
|
u("stop", {
|
|
1145
1159
|
offset: "0%",
|
|
1146
1160
|
"stop-color": `${e.shiftHue(a.color, 0.05)}66`
|
|
1147
|
-
}, null, 8,
|
|
1161
|
+
}, null, 8, nt),
|
|
1148
1162
|
u("stop", {
|
|
1149
1163
|
offset: "38%",
|
|
1150
1164
|
"stop-color": `${e.shiftHue(a.color, 0.02)}DE`
|
|
1151
|
-
}, null, 8,
|
|
1165
|
+
}, null, 8, ot),
|
|
1152
1166
|
u("stop", {
|
|
1153
1167
|
offset: "100%",
|
|
1154
1168
|
"stop-color": a.color
|
|
1155
1169
|
}, null, 8, ht)
|
|
1156
1170
|
], 8, st)
|
|
1157
1171
|
]))), 128)),
|
|
1158
|
-
(r(!0), i(b, null, I(e.plotSet, (a,
|
|
1159
|
-
key: `def_plot_${
|
|
1172
|
+
(r(!0), i(b, null, I(e.plotSet, (a, o) => (r(), i("defs", {
|
|
1173
|
+
key: `def_plot_${o}`
|
|
1160
1174
|
}, [
|
|
1161
1175
|
u("radialGradient", {
|
|
1162
|
-
id: `plotGradient_${
|
|
1176
|
+
id: `plotGradient_${o}_${t.uniqueId}`,
|
|
1163
1177
|
cx: "50%",
|
|
1164
1178
|
cy: "50%",
|
|
1165
1179
|
r: "50%",
|
|
@@ -1176,11 +1190,11 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1176
1190
|
}, null, 8, ut)
|
|
1177
1191
|
], 8, ct)
|
|
1178
1192
|
]))), 128)),
|
|
1179
|
-
(r(!0), i(b, null, I(e.lineSet, (a,
|
|
1180
|
-
key: `def_line_${
|
|
1193
|
+
(r(!0), i(b, null, I(e.lineSet, (a, o) => (r(), i("defs", {
|
|
1194
|
+
key: `def_line_${o}`
|
|
1181
1195
|
}, [
|
|
1182
1196
|
u("radialGradient", {
|
|
1183
|
-
id: `lineGradient_${
|
|
1197
|
+
id: `lineGradient_${o}_${t.uniqueId}`,
|
|
1184
1198
|
cx: "50%",
|
|
1185
1199
|
cy: "50%",
|
|
1186
1200
|
r: "50%",
|
|
@@ -1194,10 +1208,10 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1194
1208
|
u("stop", {
|
|
1195
1209
|
offset: "100%",
|
|
1196
1210
|
"stop-color": a.color
|
|
1197
|
-
}, null, 8,
|
|
1211
|
+
}, null, 8, mt)
|
|
1198
1212
|
], 8, gt),
|
|
1199
1213
|
u("linearGradient", {
|
|
1200
|
-
id: `areaGradient_${
|
|
1214
|
+
id: `areaGradient_${o}_${t.uniqueId}`,
|
|
1201
1215
|
x1: "0%",
|
|
1202
1216
|
x2: "100%",
|
|
1203
1217
|
y1: "0%",
|
|
@@ -1211,11 +1225,12 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1211
1225
|
offset: "100%",
|
|
1212
1226
|
"stop-color": `${a.color}${t.opacity[e.FINAL_CONFIG.line.area.opacity]}`
|
|
1213
1227
|
}, null, 8, Nt)
|
|
1214
|
-
], 8,
|
|
1228
|
+
], 8, bt)
|
|
1215
1229
|
]))), 128)),
|
|
1216
1230
|
(r(!0), i(b, null, I(e.highlightAreas, (a) => (r(), i("g", null, [
|
|
1217
1231
|
a.show ? (r(), i(b, { key: 0 }, [
|
|
1218
1232
|
u("rect", {
|
|
1233
|
+
style: { transition: "none" },
|
|
1219
1234
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (a.from - t.slicer.start),
|
|
1220
1235
|
y: e.drawingArea.top,
|
|
1221
1236
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
@@ -1237,54 +1252,54 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1237
1252
|
], 64)) : h("", !0)
|
|
1238
1253
|
]))), 256)),
|
|
1239
1254
|
u("g", null, [
|
|
1240
|
-
(r(!0), i(b, null, I(e.maxSeries, (a,
|
|
1241
|
-
key: `tooltip_trap_${
|
|
1255
|
+
(r(!0), i(b, null, I(e.maxSeries, (a, o) => (r(), i("g", {
|
|
1256
|
+
key: `tooltip_trap_${o}`
|
|
1242
1257
|
}, [
|
|
1243
1258
|
u("rect", {
|
|
1244
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
1259
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * o,
|
|
1245
1260
|
y: e.drawingArea.top,
|
|
1246
1261
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1247
1262
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1248
|
-
fill: t.selectedSerieIndex ===
|
|
1263
|
+
fill: t.selectedSerieIndex === o || t.selectedRowIndex === o ? `${e.FINAL_CONFIG.chart.highlighter.color}${t.opacity[e.FINAL_CONFIG.chart.highlighter.opacity]}` : "transparent"
|
|
1249
1264
|
}, null, 8, Ft)
|
|
1250
1265
|
]))), 128))
|
|
1251
1266
|
]),
|
|
1252
|
-
e.barSet.length ? (r(!0), i(b, { key: 0 }, I(e.barSet, (a,
|
|
1253
|
-
key: `serie_bar_${
|
|
1254
|
-
class:
|
|
1267
|
+
e.barSet.length ? (r(!0), i(b, { key: 0 }, I(e.barSet, (a, o) => (r(), i("g", {
|
|
1268
|
+
key: `serie_bar_${o}`,
|
|
1269
|
+
class: p(`serie_bar_${o}`),
|
|
1255
1270
|
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1256
1271
|
}, [
|
|
1257
|
-
(r(!0), i(b, null, I(a.plots, (
|
|
1258
|
-
key: `bar_plot_${
|
|
1272
|
+
(r(!0), i(b, null, I(a.plots, (n, g) => (r(), i("g", {
|
|
1273
|
+
key: `bar_plot_${o}_${g}`
|
|
1259
1274
|
}, [
|
|
1260
|
-
e.canShowValue(
|
|
1275
|
+
e.canShowValue(n.value) ? (r(), i("rect", {
|
|
1261
1276
|
key: 0,
|
|
1262
|
-
x: e.calcRectX(
|
|
1263
|
-
y: t.mutableConfig.useIndividualScale ? e.calcIndividualRectY(
|
|
1264
|
-
height: t.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(
|
|
1277
|
+
x: e.calcRectX(n),
|
|
1278
|
+
y: t.mutableConfig.useIndividualScale ? e.calcIndividualRectY(n) : e.calcRectY(n),
|
|
1279
|
+
height: t.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(n)) : Math.abs(e.calcRectHeight(n)),
|
|
1265
1280
|
width: e.calcRectWidth() - (t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? 0 : e.barPeriodGap) < 0 ? 1e-5 : e.calcRectWidth() - (t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? 0 : e.barPeriodGap),
|
|
1266
1281
|
rx: e.FINAL_CONFIG.bar.borderRadius,
|
|
1267
|
-
fill: e.FINAL_CONFIG.bar.useGradient ?
|
|
1282
|
+
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${o}_${t.uniqueId})` : `url(#rectGradient_neg_${o}_${t.uniqueId})` : a.color,
|
|
1268
1283
|
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? a.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1269
1284
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1270
1285
|
}, null, 8, yt)) : h("", !0),
|
|
1271
|
-
|
|
1286
|
+
n.comment && e.FINAL_CONFIG.chart.comments.show ? (r(), i("foreignObject", {
|
|
1272
1287
|
key: 1,
|
|
1273
1288
|
style: { overflow: "visible" },
|
|
1274
1289
|
height: "12",
|
|
1275
1290
|
width: (e.calcRectWidth() - (t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? 0 : e.barPeriodGap) < 0 ? 1e-5 : e.calcRectWidth() - (t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? 0 : e.barPeriodGap) / 2) + e.FINAL_CONFIG.chart.comments.width,
|
|
1276
|
-
x: e.calcRectX(
|
|
1277
|
-
y:
|
|
1291
|
+
x: e.calcRectX(n) - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1292
|
+
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1278
1293
|
}, [
|
|
1279
1294
|
v(l.$slots, "plot-comment", {
|
|
1280
|
-
plot: { ...
|
|
1295
|
+
plot: { ...n, color: a.color }
|
|
1281
1296
|
}, void 0, !0)
|
|
1282
1297
|
], 8, At)) : h("", !0)
|
|
1283
1298
|
]))), 128)),
|
|
1284
1299
|
Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (r(), i("g", Lt, [
|
|
1285
1300
|
u("defs", null, [
|
|
1286
1301
|
u("marker", {
|
|
1287
|
-
id: `bar_arrow_${
|
|
1302
|
+
id: `bar_arrow_${o}`,
|
|
1288
1303
|
markerWidth: 7,
|
|
1289
1304
|
markerHeight: 7,
|
|
1290
1305
|
refX: "0",
|
|
@@ -1306,7 +1321,7 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1306
1321
|
"stroke-width": 1,
|
|
1307
1322
|
stroke: a.color,
|
|
1308
1323
|
"stroke-dasharray": 2,
|
|
1309
|
-
"marker-end": `url(#bar_arrow_${
|
|
1324
|
+
"marker-end": `url(#bar_arrow_${o})`
|
|
1310
1325
|
}, null, 8, kt)) : h("", !0),
|
|
1311
1326
|
a.plots.length > 1 ? (r(), i("text", {
|
|
1312
1327
|
key: 1,
|
|
@@ -1328,8 +1343,8 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1328
1343
|
"stroke-width": "1",
|
|
1329
1344
|
x1: e.drawingArea.left + e.xPadding,
|
|
1330
1345
|
x2: e.drawingArea.right - e.xPadding,
|
|
1331
|
-
y1: e.zero,
|
|
1332
|
-
y2: e.zero,
|
|
1346
|
+
y1: e.checkNaN(e.zero),
|
|
1347
|
+
y2: e.checkNaN(e.zero),
|
|
1333
1348
|
"stroke-linecap": "round"
|
|
1334
1349
|
}, null, 8, Ot)) : h("", !0),
|
|
1335
1350
|
e.FINAL_CONFIG.chart.highlighter.useLine && ![null, void 0].includes(t.selectedSerieIndex) ? (r(), i("g", vt, [
|
|
@@ -1347,6 +1362,7 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1347
1362
|
])) : h("", !0),
|
|
1348
1363
|
u("g", null, [
|
|
1349
1364
|
u("rect", {
|
|
1365
|
+
style: { transition: "none" },
|
|
1350
1366
|
x: 0,
|
|
1351
1367
|
y: e.drawingArea.top,
|
|
1352
1368
|
width: e.FINAL_CONFIG.chart.padding.left - 1 + e.xPadding,
|
|
@@ -1354,35 +1370,36 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1354
1370
|
fill: e.FINAL_CONFIG.chart.backgroundColor
|
|
1355
1371
|
}, null, 8, zt),
|
|
1356
1372
|
u("rect", {
|
|
1373
|
+
style: { transition: "none" },
|
|
1357
1374
|
x: e.drawingArea.right + 1 - e.xPadding,
|
|
1358
1375
|
y: e.drawingArea.top,
|
|
1359
1376
|
width: e.FINAL_CONFIG.chart.padding.right - 1 + e.xPadding,
|
|
1360
1377
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1361
1378
|
fill: e.FINAL_CONFIG.chart.backgroundColor
|
|
1362
|
-
}, null, 8,
|
|
1379
|
+
}, null, 8, Mt)
|
|
1363
1380
|
]),
|
|
1364
1381
|
e.FINAL_CONFIG.chart.grid.frame.show ? (r(), i("rect", {
|
|
1365
1382
|
key: 3,
|
|
1366
|
-
style: { pointerEvents: "none" },
|
|
1367
|
-
x: e.drawingArea.left + e.xPadding,
|
|
1383
|
+
style: { pointerEvents: "none", transition: "none" },
|
|
1384
|
+
x: e.drawingArea.left + e.xPadding < 0 ? 0 : e.drawingArea.left + e.xPadding,
|
|
1368
1385
|
y: e.drawingArea.top,
|
|
1369
|
-
width: e.drawingArea.width - (e.FINAL_CONFIG.chart.grid.position === "middle" ? 0 : e.drawingArea.width / e.maxSeries),
|
|
1370
|
-
height: e.drawingArea.height,
|
|
1386
|
+
width: e.drawingArea.width - (e.FINAL_CONFIG.chart.grid.position === "middle" ? 0 : e.drawingArea.width / e.maxSeries) < 0 ? 0 : e.drawingArea.width - (e.FINAL_CONFIG.chart.grid.position === "middle" ? 0 : e.drawingArea.width / e.maxSeries),
|
|
1387
|
+
height: e.drawingArea.height < 0 ? 0 : e.drawingArea.height,
|
|
1371
1388
|
fill: "transparent",
|
|
1372
1389
|
stroke: e.FINAL_CONFIG.chart.grid.frame.stroke,
|
|
1373
1390
|
"stroke-width": e.FINAL_CONFIG.chart.grid.frame.strokeWidth,
|
|
1374
1391
|
"stroke-linecap": e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,
|
|
1375
1392
|
"stroke-linejoin": e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,
|
|
1376
1393
|
"stroke-dasharray": e.FINAL_CONFIG.chart.grid.frame.strokeDasharray
|
|
1377
|
-
}, null, 8,
|
|
1394
|
+
}, null, 8, pt)) : h("", !0),
|
|
1378
1395
|
e.FINAL_CONFIG.chart.grid.labels.show ? (r(), i("g", Pt, [
|
|
1379
1396
|
t.mutableConfig.useIndividualScale ? (r(), i(b, { key: 0 }, [
|
|
1380
1397
|
(r(!0), i(b, null, I(e.allScales, (a) => (r(), i("g", null, [
|
|
1381
1398
|
u("line", {
|
|
1382
1399
|
x1: a.x + e.xPadding,
|
|
1383
1400
|
x2: a.x + e.xPadding,
|
|
1384
|
-
y1: t.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset - a.individualHeight : e.drawingArea.top,
|
|
1385
|
-
y2: t.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset : e.drawingArea.bottom,
|
|
1401
|
+
y1: t.mutableConfig.isStacked ? e.checkNaN(e.drawingArea.bottom - a.yOffset - a.individualHeight) : e.checkNaN(e.drawingArea.top),
|
|
1402
|
+
y2: t.mutableConfig.isStacked ? e.checkNaN(e.drawingArea.bottom - a.yOffset) : e.checkNaN(e.drawingArea.bottom),
|
|
1386
1403
|
stroke: a.color,
|
|
1387
1404
|
"stroke-width": e.FINAL_CONFIG.chart.grid.stroke,
|
|
1388
1405
|
"stroke-linecap": "round",
|
|
@@ -1398,49 +1415,49 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1398
1415
|
"text-anchor": "middle",
|
|
1399
1416
|
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)`
|
|
1400
1417
|
}, C(a.name) + " " + C(a.scaleLabel ? `- ${a.scaleLabel}` : ""), 9, Vt),
|
|
1401
|
-
(r(!0), i(b, null, I(a.yLabels, (
|
|
1418
|
+
(r(!0), i(b, null, I(a.yLabels, (o, n) => (r(), i("line", {
|
|
1402
1419
|
x1: a.x - 3 + e.xPadding,
|
|
1403
1420
|
x2: a.x + e.xPadding,
|
|
1404
|
-
y1:
|
|
1405
|
-
y2:
|
|
1421
|
+
y1: e.checkNaN(o.y),
|
|
1422
|
+
y2: e.checkNaN(o.y),
|
|
1406
1423
|
stroke: a.color,
|
|
1407
1424
|
"stroke-width": 1,
|
|
1408
1425
|
"stroke-linecap": "round"
|
|
1409
1426
|
}, null, 8, Rt))), 256)),
|
|
1410
|
-
(r(!0), i(b, null, I(a.yLabels, (
|
|
1427
|
+
(r(!0), i(b, null, I(a.yLabels, (o, n) => (r(), i("text", {
|
|
1411
1428
|
x: a.x - 5 + e.xPadding,
|
|
1412
|
-
y:
|
|
1429
|
+
y: o.y + e.xPadding,
|
|
1413
1430
|
"font-size": t.fontSizes.dataLabels,
|
|
1414
1431
|
"text-anchor": "end",
|
|
1415
1432
|
fill: a.color
|
|
1416
1433
|
}, C(e.applyDataLabel(
|
|
1417
1434
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1418
|
-
|
|
1435
|
+
o.value,
|
|
1419
1436
|
e.dataLabel({
|
|
1420
1437
|
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
1421
|
-
v:
|
|
1438
|
+
v: o.value,
|
|
1422
1439
|
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
1423
1440
|
r: 1
|
|
1424
1441
|
})
|
|
1425
1442
|
)), 9, Dt))), 256))
|
|
1426
1443
|
], 4))), 256))
|
|
1427
|
-
], 64)) : (r(!0), i(b, { key: 1 }, I(e.yLabels, (a,
|
|
1428
|
-
key: `yLabel_${
|
|
1444
|
+
], 64)) : (r(!0), i(b, { key: 1 }, I(e.yLabels, (a, o) => (r(), i("g", {
|
|
1445
|
+
key: `yLabel_${o}`
|
|
1429
1446
|
}, [
|
|
1430
1447
|
e.canShowValue(a) && a.value >= e.niceScale.min && a.value <= e.niceScale.max ? (r(), i("line", {
|
|
1431
1448
|
key: 0,
|
|
1432
1449
|
x1: e.drawingArea.left + e.xPadding,
|
|
1433
1450
|
x2: e.drawingArea.left - 5 + e.xPadding,
|
|
1434
|
-
y1: a.y,
|
|
1435
|
-
y2: a.y,
|
|
1451
|
+
y1: e.checkNaN(a.y),
|
|
1452
|
+
y2: e.checkNaN(a.y),
|
|
1436
1453
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1437
1454
|
"stroke-width": "1",
|
|
1438
1455
|
"stroke-linecap": "round"
|
|
1439
|
-
}, null, 8,
|
|
1456
|
+
}, null, 8, Wt)) : h("", !0),
|
|
1440
1457
|
a.value >= e.niceScale.min && a.value <= e.niceScale.max ? (r(), i("text", {
|
|
1441
1458
|
key: 1,
|
|
1442
1459
|
x: e.drawingArea.left - 7 + e.xPadding,
|
|
1443
|
-
y: a.y + t.fontSizes.dataLabels / 3,
|
|
1460
|
+
y: e.checkNaN(a.y + t.fontSizes.dataLabels / 3),
|
|
1444
1461
|
"font-size": t.fontSizes.dataLabels,
|
|
1445
1462
|
"text-anchor": "end",
|
|
1446
1463
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
@@ -1453,45 +1470,45 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1453
1470
|
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
1454
1471
|
r: 1
|
|
1455
1472
|
})
|
|
1456
|
-
) : ""), 9,
|
|
1473
|
+
) : ""), 9, Et)) : h("", !0)
|
|
1457
1474
|
]))), 128))
|
|
1458
1475
|
])) : h("", !0),
|
|
1459
|
-
(r(!0), i(b, null, I(e.plotSet, (a,
|
|
1460
|
-
key: `serie_plot_${
|
|
1461
|
-
class:
|
|
1476
|
+
(r(!0), i(b, null, I(e.plotSet, (a, o) => (r(), i("g", {
|
|
1477
|
+
key: `serie_plot_${o}`,
|
|
1478
|
+
class: p(`serie_plot_${o}`),
|
|
1462
1479
|
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1463
1480
|
}, [
|
|
1464
|
-
(r(!0), i(b, null, I(a.plots, (
|
|
1465
|
-
key: `circle_plot_${
|
|
1481
|
+
(r(!0), i(b, null, I(a.plots, (n, g) => (r(), i("g", {
|
|
1482
|
+
key: `circle_plot_${o}_${g}`
|
|
1466
1483
|
}, [
|
|
1467
|
-
e.canShowValue(
|
|
1484
|
+
e.canShowValue(n.value) ? (r(), V(m, {
|
|
1468
1485
|
key: 0,
|
|
1469
1486
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(a.shape) ? a.shape : "circle",
|
|
1470
|
-
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${
|
|
1471
|
-
plot: { x:
|
|
1487
|
+
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${o}_${t.uniqueId})` : a.color,
|
|
1488
|
+
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
1472
1489
|
radius: t.selectedSerieIndex !== null && t.selectedSerieIndex === g ? (t.plotRadii.plot || 6) * 1.5 : t.plotRadii.plot || 6,
|
|
1473
1490
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1474
1491
|
strokeWidth: 0.5
|
|
1475
1492
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke"])) : h("", !0),
|
|
1476
|
-
|
|
1493
|
+
n.comment && e.FINAL_CONFIG.chart.comments.show ? (r(), i("foreignObject", {
|
|
1477
1494
|
key: 1,
|
|
1478
1495
|
style: { overflow: "visible" },
|
|
1479
1496
|
height: "12",
|
|
1480
1497
|
width: e.FINAL_CONFIG.chart.comments.width,
|
|
1481
|
-
x:
|
|
1482
|
-
y:
|
|
1498
|
+
x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1499
|
+
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1483
1500
|
}, [
|
|
1484
1501
|
u("div", Bt, [
|
|
1485
1502
|
v(l.$slots, "plot-comment", {
|
|
1486
|
-
plot: { ...
|
|
1503
|
+
plot: { ...n, color: a.color }
|
|
1487
1504
|
}, void 0, !0)
|
|
1488
1505
|
])
|
|
1489
|
-
], 8,
|
|
1506
|
+
], 8, Ht)) : h("", !0)
|
|
1490
1507
|
]))), 128)),
|
|
1491
1508
|
Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (r(), i("g", Yt, [
|
|
1492
1509
|
u("defs", null, [
|
|
1493
1510
|
u("marker", {
|
|
1494
|
-
id: `plot_arrow_${
|
|
1511
|
+
id: `plot_arrow_${o}`,
|
|
1495
1512
|
markerWidth: 7,
|
|
1496
1513
|
markerHeight: 7,
|
|
1497
1514
|
refX: "0",
|
|
@@ -1513,7 +1530,7 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1513
1530
|
"stroke-width": 1,
|
|
1514
1531
|
stroke: a.color,
|
|
1515
1532
|
"stroke-dasharray": 2,
|
|
1516
|
-
"marker-end": `url(#plot_arrow_${
|
|
1533
|
+
"marker-end": `url(#plot_arrow_${o})`
|
|
1517
1534
|
}, null, 8, Ut)) : h("", !0),
|
|
1518
1535
|
a.plots.length > 1 ? (r(), i("text", {
|
|
1519
1536
|
key: 1,
|
|
@@ -1529,9 +1546,9 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1529
1546
|
})), 9, Zt)) : h("", !0)
|
|
1530
1547
|
])) : h("", !0)
|
|
1531
1548
|
], 6))), 128)),
|
|
1532
|
-
(r(!0), i(b, null, I(e.lineSet, (a,
|
|
1533
|
-
key: `serie_line_${
|
|
1534
|
-
class:
|
|
1549
|
+
(r(!0), i(b, null, I(e.lineSet, (a, o) => (r(), i("g", {
|
|
1550
|
+
key: `serie_line_${o}`,
|
|
1551
|
+
class: p(`serie_line_${o}`),
|
|
1535
1552
|
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1536
1553
|
}, [
|
|
1537
1554
|
a.smooth && a.plots.length > 1 ? (r(), i("path", {
|
|
@@ -1542,14 +1559,14 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1542
1559
|
"stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1543
1560
|
fill: "none"
|
|
1544
1561
|
}, null, 8, Jt)) : a.plots.length > 1 ? (r(), i("g", Kt, [
|
|
1545
|
-
(r(!0), i(b, null, I(a.plots, (
|
|
1546
|
-
key: `line_${
|
|
1562
|
+
(r(!0), i(b, null, I(a.plots, (n, g) => (r(), i("g", {
|
|
1563
|
+
key: `line_${o}_${g}`
|
|
1547
1564
|
}, [
|
|
1548
|
-
|
|
1565
|
+
n && g < a.plots.length - 1 && a.plots[g + 1] && e.canShowValue(n.value) && e.canShowValue(a.plots[g + 1].value) ? (r(), i("line", {
|
|
1549
1566
|
key: 0,
|
|
1550
|
-
x1:
|
|
1567
|
+
x1: n.x,
|
|
1551
1568
|
x2: a.plots[g + 1].x,
|
|
1552
|
-
y1:
|
|
1569
|
+
y1: n.y,
|
|
1553
1570
|
y2: a.plots[g + 1].y,
|
|
1554
1571
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1555
1572
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
@@ -1560,20 +1577,20 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1560
1577
|
]))), 128))
|
|
1561
1578
|
])) : h("", !0)
|
|
1562
1579
|
], 6))), 128)),
|
|
1563
|
-
(r(!0), i(b, null, I(e.lineSet, (a,
|
|
1564
|
-
key: `serie_line_${
|
|
1565
|
-
class:
|
|
1580
|
+
(r(!0), i(b, null, I(e.lineSet, (a, o) => (r(), i("g", {
|
|
1581
|
+
key: `serie_line_${o}`,
|
|
1582
|
+
class: p(`serie_line_${o}`),
|
|
1566
1583
|
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1567
1584
|
}, [
|
|
1568
1585
|
a.useArea && a.plots.length > 1 ? (r(), i("g", jt, [
|
|
1569
1586
|
a.smooth ? (r(), i("path", {
|
|
1570
1587
|
key: 0,
|
|
1571
|
-
d: `M ${a.plots[0] ? a.plots[0].x : Math.min(...a.plots.filter((
|
|
1572
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${
|
|
1588
|
+
d: `M ${a.plots[0] ? a.plots[0].x : Math.min(...a.plots.filter((n) => !!n).map((n) => n.x))},${t.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset : e.drawingArea.bottom} ${a.curve} L ${a.plots.at(-1) ? a.plots.at(-1).x : e.drawingArea.left + e.slot.line * o + e.slot.line / 2},${t.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset : e.drawingArea.bottom} Z`,
|
|
1589
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${o}_${t.uniqueId})` : `${a.color}${t.opacity[e.FINAL_CONFIG.line.area.opacity]}`
|
|
1573
1590
|
}, null, 8, $t)) : (r(), i("path", {
|
|
1574
1591
|
key: 1,
|
|
1575
1592
|
d: `M${a.area}Z`,
|
|
1576
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${
|
|
1593
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${o}_${t.uniqueId})` : `${a.color}${t.opacity[e.FINAL_CONFIG.line.area.opacity]}`
|
|
1577
1594
|
}, null, 8, ea))
|
|
1578
1595
|
])) : h("", !0),
|
|
1579
1596
|
a.smooth && a.plots.length > 1 ? (r(), i("path", {
|
|
@@ -1584,14 +1601,14 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1584
1601
|
"stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1585
1602
|
fill: "none"
|
|
1586
1603
|
}, null, 8, ta)) : a.plots.length > 1 ? (r(), i("g", aa, [
|
|
1587
|
-
(r(!0), i(b, null, I(a.plots, (
|
|
1588
|
-
key: `line_${
|
|
1604
|
+
(r(!0), i(b, null, I(a.plots, (n, g) => (r(), i("g", {
|
|
1605
|
+
key: `line_${o}_${g}`
|
|
1589
1606
|
}, [
|
|
1590
|
-
|
|
1607
|
+
n && g < a.plots.length - 1 && a.plots[g + 1] && e.canShowValue(n.value) && e.canShowValue(a.plots[g + 1].value) ? (r(), i("line", {
|
|
1591
1608
|
key: 0,
|
|
1592
|
-
x1:
|
|
1609
|
+
x1: n.x,
|
|
1593
1610
|
x2: a.plots[g + 1].x,
|
|
1594
|
-
y1:
|
|
1611
|
+
y1: n.y,
|
|
1595
1612
|
y2: a.plots[g + 1].y,
|
|
1596
1613
|
stroke: a.color,
|
|
1597
1614
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth,
|
|
@@ -1601,29 +1618,29 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1601
1618
|
}, null, 8, la)) : h("", !0)
|
|
1602
1619
|
]))), 128))
|
|
1603
1620
|
])) : h("", !0),
|
|
1604
|
-
(r(!0), i(b, null, I(a.plots, (
|
|
1605
|
-
key: `circle_line_${
|
|
1621
|
+
(r(!0), i(b, null, I(a.plots, (n, g) => (r(), i("g", {
|
|
1622
|
+
key: `circle_line_${o}_${g}`
|
|
1606
1623
|
}, [
|
|
1607
|
-
|
|
1624
|
+
n && e.canShowValue(n.value) ? (r(), V(m, {
|
|
1608
1625
|
key: 0,
|
|
1609
1626
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(a.shape) ? a.shape : "circle",
|
|
1610
|
-
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${
|
|
1611
|
-
plot: { x:
|
|
1627
|
+
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${o}_${t.uniqueId})` : a.color,
|
|
1628
|
+
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
1612
1629
|
radius: t.selectedSerieIndex !== null && t.selectedSerieIndex === g ? (t.plotRadii.line || 6) * 1.5 : t.plotRadii.line,
|
|
1613
1630
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1614
1631
|
strokeWidth: 0.5
|
|
1615
1632
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke"])) : h("", !0),
|
|
1616
|
-
|
|
1633
|
+
n.comment && e.FINAL_CONFIG.chart.comments.show ? (r(), i("foreignObject", {
|
|
1617
1634
|
key: 1,
|
|
1618
1635
|
style: { overflow: "visible" },
|
|
1619
1636
|
height: "12",
|
|
1620
1637
|
width: e.FINAL_CONFIG.chart.comments.width,
|
|
1621
|
-
x:
|
|
1622
|
-
y:
|
|
1638
|
+
x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1639
|
+
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1623
1640
|
}, [
|
|
1624
1641
|
u("div", ia, [
|
|
1625
1642
|
v(l.$slots, "plot-comment", {
|
|
1626
|
-
plot: { ...
|
|
1643
|
+
plot: { ...n, color: a.color }
|
|
1627
1644
|
}, void 0, !0)
|
|
1628
1645
|
])
|
|
1629
1646
|
], 8, ra)) : h("", !0)
|
|
@@ -1631,7 +1648,7 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1631
1648
|
Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (r(), i("g", sa, [
|
|
1632
1649
|
u("defs", null, [
|
|
1633
1650
|
u("marker", {
|
|
1634
|
-
id: `line_arrow_${
|
|
1651
|
+
id: `line_arrow_${o}`,
|
|
1635
1652
|
markerWidth: 7,
|
|
1636
1653
|
markerHeight: 7,
|
|
1637
1654
|
refX: "0",
|
|
@@ -1641,8 +1658,8 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1641
1658
|
u("polygon", {
|
|
1642
1659
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1643
1660
|
fill: a.color
|
|
1644
|
-
}, null, 8,
|
|
1645
|
-
], 8,
|
|
1661
|
+
}, null, 8, oa)
|
|
1662
|
+
], 8, na)
|
|
1646
1663
|
]),
|
|
1647
1664
|
a.plots.length > 1 ? (r(), i("line", {
|
|
1648
1665
|
key: 0,
|
|
@@ -1653,7 +1670,7 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1653
1670
|
"stroke-width": 1,
|
|
1654
1671
|
stroke: a.color,
|
|
1655
1672
|
"stroke-dasharray": 2,
|
|
1656
|
-
"marker-end": `url(#line_arrow_${
|
|
1673
|
+
"marker-end": `url(#line_arrow_${o})`
|
|
1657
1674
|
}, null, 8, ha)) : h("", !0),
|
|
1658
1675
|
a.plots.length > 1 ? (r(), i("text", {
|
|
1659
1676
|
key: 1,
|
|
@@ -1670,39 +1687,39 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1670
1687
|
])) : h("", !0)
|
|
1671
1688
|
], 6))), 128)),
|
|
1672
1689
|
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && t.mutableConfig.dataLabels.show ? (r(), i("g", da, [
|
|
1673
|
-
(r(!0), i(b, null, I(e.barSet, (a,
|
|
1674
|
-
key: `xLabel_bar_${
|
|
1675
|
-
class:
|
|
1690
|
+
(r(!0), i(b, null, I(e.barSet, (a, o) => (r(), i("g", {
|
|
1691
|
+
key: `xLabel_bar_${o}`,
|
|
1692
|
+
class: p(`xLabel_bar_${o}`),
|
|
1676
1693
|
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1677
1694
|
}, [
|
|
1678
|
-
(r(!0), i(b, null, I(a.plots, (
|
|
1679
|
-
key: `xLabel_bar_${
|
|
1695
|
+
(r(!0), i(b, null, I(a.plots, (n, g) => (r(), i("g", {
|
|
1696
|
+
key: `xLabel_bar_${o}_${g}`
|
|
1680
1697
|
}, [
|
|
1681
|
-
|
|
1698
|
+
n && (!Object.hasOwn(a, "dataLabels") || a.dataLabels === !0) && e.FINAL_CONFIG.bar.labels.show ? (r(), i("text", {
|
|
1682
1699
|
key: 0,
|
|
1683
|
-
x: t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ?
|
|
1684
|
-
y:
|
|
1700
|
+
x: t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? n.x + e.slot.line / 2 : e.calcRectX(n) + e.calcRectWidth() / 2 - e.barPeriodGap / 2,
|
|
1701
|
+
y: n.y + (n.value > 0 ? e.FINAL_CONFIG.bar.labels.offsetY : -e.FINAL_CONFIG.bar.labels.offsetY * 3),
|
|
1685
1702
|
"text-anchor": "middle",
|
|
1686
1703
|
"font-size": t.fontSizes.plotLabels,
|
|
1687
1704
|
fill: e.FINAL_CONFIG.bar.labels.color
|
|
1688
|
-
}, C(e.canShowValue(
|
|
1705
|
+
}, C(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
1689
1706
|
e.FINAL_CONFIG.bar.labels.formatter,
|
|
1690
|
-
|
|
1707
|
+
n.value,
|
|
1691
1708
|
e.dataLabel({
|
|
1692
1709
|
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
1693
|
-
v:
|
|
1710
|
+
v: n.value,
|
|
1694
1711
|
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
1695
1712
|
r: e.FINAL_CONFIG.bar.labels.rounding
|
|
1696
1713
|
}),
|
|
1697
1714
|
{
|
|
1698
|
-
datapoint:
|
|
1715
|
+
datapoint: n,
|
|
1699
1716
|
serie: a
|
|
1700
1717
|
}
|
|
1701
1718
|
) : ""), 9, ua)) : h("", !0),
|
|
1702
|
-
|
|
1719
|
+
n && e.FINAL_CONFIG.bar.serieName.show ? (r(), i("text", {
|
|
1703
1720
|
key: 1,
|
|
1704
|
-
x: t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ?
|
|
1705
|
-
y:
|
|
1721
|
+
x: t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? n.x + e.slot.line / 2 : n.x + e.calcRectWidth() * 1.1,
|
|
1722
|
+
y: n.y + (n.value > 0 ? e.FINAL_CONFIG.bar.serieName.offsetY : -e.FINAL_CONFIG.bar.serieName.offsetY * 3),
|
|
1706
1723
|
"text-anchor": "middle",
|
|
1707
1724
|
"font-size": t.fontSizes.plotLabels,
|
|
1708
1725
|
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? a.color : e.FINAL_CONFIG.bar.serieName.color,
|
|
@@ -1712,39 +1729,39 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1712
1729
|
], 6))), 128))
|
|
1713
1730
|
])) : h("", !0),
|
|
1714
1731
|
e.FINAL_CONFIG.plot.labels.show && t.mutableConfig.dataLabels.show ? (r(), i("g", fa, [
|
|
1715
|
-
(r(!0), i(b, null, I(e.plotSet, (a,
|
|
1716
|
-
key: `xLabel_plot_${
|
|
1717
|
-
class:
|
|
1732
|
+
(r(!0), i(b, null, I(e.plotSet, (a, o) => (r(), i("g", {
|
|
1733
|
+
key: `xLabel_plot_${o}`,
|
|
1734
|
+
class: p(`xLabel_plot_${o}`),
|
|
1718
1735
|
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1719
1736
|
}, [
|
|
1720
|
-
(r(!0), i(b, null, I(a.plots, (
|
|
1721
|
-
key: `xLabel_plot_${
|
|
1737
|
+
(r(!0), i(b, null, I(a.plots, (n, g) => (r(), i("g", {
|
|
1738
|
+
key: `xLabel_plot_${o}_${g}`
|
|
1722
1739
|
}, [
|
|
1723
|
-
|
|
1740
|
+
n && !Object.hasOwn(a, "dataLabels") || a.dataLabels === !0 ? (r(), i("text", {
|
|
1724
1741
|
key: 0,
|
|
1725
|
-
x:
|
|
1726
|
-
y:
|
|
1742
|
+
x: n.x,
|
|
1743
|
+
y: n.y + e.FINAL_CONFIG.plot.labels.offsetY,
|
|
1727
1744
|
"text-anchor": "middle",
|
|
1728
1745
|
"font-size": t.fontSizes.plotLabels,
|
|
1729
1746
|
fill: e.FINAL_CONFIG.plot.labels.color
|
|
1730
|
-
}, C(e.canShowValue(
|
|
1747
|
+
}, C(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
1731
1748
|
e.FINAL_CONFIG.plot.labels.formatter,
|
|
1732
|
-
|
|
1749
|
+
n.value,
|
|
1733
1750
|
e.dataLabel({
|
|
1734
1751
|
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
1735
|
-
v:
|
|
1752
|
+
v: n.value,
|
|
1736
1753
|
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
1737
1754
|
r: e.FINAL_CONFIG.plot.labels.rounding
|
|
1738
1755
|
}),
|
|
1739
1756
|
{
|
|
1740
|
-
datapoint:
|
|
1757
|
+
datapoint: n,
|
|
1741
1758
|
serie: a
|
|
1742
1759
|
}
|
|
1743
|
-
) : ""), 9,
|
|
1744
|
-
|
|
1760
|
+
) : ""), 9, ma)) : h("", !0),
|
|
1761
|
+
n && g === 0 && a.useTag && a.useTag === "start" ? (r(), i("foreignObject", {
|
|
1745
1762
|
key: 1,
|
|
1746
|
-
x:
|
|
1747
|
-
y:
|
|
1763
|
+
x: n.x,
|
|
1764
|
+
y: n.y - 20,
|
|
1748
1765
|
height: 24,
|
|
1749
1766
|
width: "150",
|
|
1750
1767
|
style: { overflow: "visible" }
|
|
@@ -1752,11 +1769,11 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1752
1769
|
u("div", {
|
|
1753
1770
|
style: L(`padding: 3px; background:${a.color}${t.opacity[80]};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1754
1771
|
}, C(a.name), 5)
|
|
1755
|
-
], 8,
|
|
1756
|
-
|
|
1772
|
+
], 8, ba)) : h("", !0),
|
|
1773
|
+
n && g === a.plots.length - 1 && a.useTag && a.useTag === "end" ? (r(), i("foreignObject", {
|
|
1757
1774
|
key: 2,
|
|
1758
|
-
x:
|
|
1759
|
-
y:
|
|
1775
|
+
x: n.x - a.name.length * (t.fontSizes.plotLabels / 2),
|
|
1776
|
+
y: n.y - 20,
|
|
1760
1777
|
height: 24,
|
|
1761
1778
|
width: "150",
|
|
1762
1779
|
style: { overflow: "visible" }
|
|
@@ -1769,39 +1786,39 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1769
1786
|
], 6))), 128))
|
|
1770
1787
|
])) : h("", !0),
|
|
1771
1788
|
e.FINAL_CONFIG.line.labels.show && t.mutableConfig.dataLabels.show ? (r(), i("g", Na, [
|
|
1772
|
-
(r(!0), i(b, null, I(e.lineSet, (a,
|
|
1773
|
-
key: `xLabel_line_${
|
|
1774
|
-
class:
|
|
1789
|
+
(r(!0), i(b, null, I(e.lineSet, (a, o) => (r(), i("g", {
|
|
1790
|
+
key: `xLabel_line_${o}`,
|
|
1791
|
+
class: p(`xLabel_line_${o}`),
|
|
1775
1792
|
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1776
1793
|
}, [
|
|
1777
|
-
(r(!0), i(b, null, I(a.plots, (
|
|
1778
|
-
key: `xLabel_line_${
|
|
1794
|
+
(r(!0), i(b, null, I(a.plots, (n, g) => (r(), i("g", {
|
|
1795
|
+
key: `xLabel_line_${o}_${g}`
|
|
1779
1796
|
}, [
|
|
1780
|
-
|
|
1797
|
+
n && !Object.hasOwn(a, "dataLabels") || a.dataLabels === !0 ? (r(), i("text", {
|
|
1781
1798
|
key: 0,
|
|
1782
|
-
x:
|
|
1783
|
-
y:
|
|
1799
|
+
x: n.x,
|
|
1800
|
+
y: n.y + (n.value > 0 ? e.FINAL_CONFIG.line.labels.offsetY : -e.FINAL_CONFIG.line.labels.offsetY * 3),
|
|
1784
1801
|
"text-anchor": "middle",
|
|
1785
1802
|
"font-size": t.fontSizes.plotLabels,
|
|
1786
1803
|
fill: e.FINAL_CONFIG.line.labels.color
|
|
1787
|
-
}, C(e.canShowValue(
|
|
1804
|
+
}, C(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
1788
1805
|
e.FINAL_CONFIG.line.labels.formatter,
|
|
1789
|
-
|
|
1806
|
+
n.value,
|
|
1790
1807
|
e.dataLabel({
|
|
1791
1808
|
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
1792
|
-
v:
|
|
1809
|
+
v: n.value,
|
|
1793
1810
|
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
1794
1811
|
r: e.FINAL_CONFIG.line.labels.rounding
|
|
1795
1812
|
}),
|
|
1796
1813
|
{
|
|
1797
|
-
datapoint:
|
|
1814
|
+
datapoint: n,
|
|
1798
1815
|
serie: a
|
|
1799
1816
|
}
|
|
1800
1817
|
) : ""), 9, xa)) : h("", !0),
|
|
1801
|
-
|
|
1818
|
+
n && g === 0 && a.useTag && a.useTag === "start" ? (r(), i("foreignObject", {
|
|
1802
1819
|
key: 1,
|
|
1803
|
-
x:
|
|
1804
|
-
y:
|
|
1820
|
+
x: n.x,
|
|
1821
|
+
y: n.y - 20,
|
|
1805
1822
|
height: 24,
|
|
1806
1823
|
width: "150",
|
|
1807
1824
|
style: { overflow: "visible" }
|
|
@@ -1810,10 +1827,10 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1810
1827
|
style: L(`padding: 3px; background:${a.color}${t.opacity[80]};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1811
1828
|
}, C(a.name), 5)
|
|
1812
1829
|
], 8, _a)) : h("", !0),
|
|
1813
|
-
|
|
1830
|
+
n && g === a.plots.length - 1 && a.useTag && a.useTag === "end" ? (r(), i("foreignObject", {
|
|
1814
1831
|
key: 2,
|
|
1815
|
-
x:
|
|
1816
|
-
y:
|
|
1832
|
+
x: n.x - a.name.length * (t.fontSizes.plotLabels / 2),
|
|
1833
|
+
y: n.y - 20,
|
|
1817
1834
|
height: 24,
|
|
1818
1835
|
width: "150",
|
|
1819
1836
|
style: { overflow: "visible" }
|
|
@@ -1825,18 +1842,18 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1825
1842
|
]))), 128))
|
|
1826
1843
|
], 6))), 128))
|
|
1827
1844
|
])) : h("", !0),
|
|
1828
|
-
(r(!0), i(b, null, I(e.lineSet, (a,
|
|
1829
|
-
key: `xLabel_line_${
|
|
1830
|
-
class:
|
|
1845
|
+
(r(!0), i(b, null, I(e.lineSet, (a, o) => (r(), i("g", {
|
|
1846
|
+
key: `xLabel_line_${o}`,
|
|
1847
|
+
class: p(`xLabel_line_${o}`),
|
|
1831
1848
|
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1832
1849
|
}, [
|
|
1833
|
-
(r(!0), i(b, null, I(a.plots, (
|
|
1834
|
-
key: `xLabel_line_${
|
|
1850
|
+
(r(!0), i(b, null, I(a.plots, (n, g) => (r(), i("g", {
|
|
1851
|
+
key: `xLabel_line_${o}_${g}`
|
|
1835
1852
|
}, [
|
|
1836
|
-
|
|
1853
|
+
n && g === 0 && a.showSerieName && a.showSerieName === "start" ? (r(), i("text", {
|
|
1837
1854
|
key: 0,
|
|
1838
|
-
x:
|
|
1839
|
-
y:
|
|
1855
|
+
x: n.x - t.fontSizes.plotLabels,
|
|
1856
|
+
y: n.y,
|
|
1840
1857
|
"font-size": t.fontSizes.plotLabels,
|
|
1841
1858
|
"text-anchor": "end",
|
|
1842
1859
|
fill: a.color,
|
|
@@ -1844,15 +1861,15 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1844
1861
|
content: a.name,
|
|
1845
1862
|
fontSize: t.fontSizes.plotLabels,
|
|
1846
1863
|
fill: a.color,
|
|
1847
|
-
x:
|
|
1848
|
-
y:
|
|
1864
|
+
x: n.x - t.fontSizes.plotLabels,
|
|
1865
|
+
y: n.y,
|
|
1849
1866
|
maxWords: 2
|
|
1850
1867
|
})
|
|
1851
1868
|
}, null, 8, ya)) : h("", !0),
|
|
1852
|
-
|
|
1869
|
+
n && g === a.plots.length - 1 && a.showSerieName && a.showSerieName === "end" ? (r(), i("text", {
|
|
1853
1870
|
key: 1,
|
|
1854
|
-
x:
|
|
1855
|
-
y:
|
|
1871
|
+
x: n.x + t.fontSizes.plotLabels,
|
|
1872
|
+
y: n.y,
|
|
1856
1873
|
"font-size": t.fontSizes.plotLabels,
|
|
1857
1874
|
"text-anchor": "start",
|
|
1858
1875
|
fill: a.color,
|
|
@@ -1860,25 +1877,25 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1860
1877
|
content: a.name,
|
|
1861
1878
|
fontSize: t.fontSizes.plotLabels,
|
|
1862
1879
|
fill: a.color,
|
|
1863
|
-
x:
|
|
1864
|
-
y:
|
|
1880
|
+
x: n.x + t.fontSizes.plotLabels,
|
|
1881
|
+
y: n.y,
|
|
1865
1882
|
maxWords: 2
|
|
1866
1883
|
})
|
|
1867
1884
|
}, null, 8, Aa)) : h("", !0)
|
|
1868
1885
|
]))), 128))
|
|
1869
1886
|
], 6))), 128)),
|
|
1870
|
-
(r(!0), i(b, null, I(e.plotSet, (a,
|
|
1871
|
-
key: `xLabel_plot_${
|
|
1872
|
-
class:
|
|
1887
|
+
(r(!0), i(b, null, I(e.plotSet, (a, o) => (r(), i("g", {
|
|
1888
|
+
key: `xLabel_plot_${o}`,
|
|
1889
|
+
class: p(`xLabel_plot_${o}`),
|
|
1873
1890
|
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1874
1891
|
}, [
|
|
1875
|
-
(r(!0), i(b, null, I(a.plots, (
|
|
1876
|
-
key: `xLabel_plot_${
|
|
1892
|
+
(r(!0), i(b, null, I(a.plots, (n, g) => (r(), i("g", {
|
|
1893
|
+
key: `xLabel_plot_${o}_${g}`
|
|
1877
1894
|
}, [
|
|
1878
|
-
|
|
1895
|
+
n && g === 0 && a.showSerieName && a.showSerieName === "start" ? (r(), i("text", {
|
|
1879
1896
|
key: 0,
|
|
1880
|
-
x:
|
|
1881
|
-
y:
|
|
1897
|
+
x: n.x - t.fontSizes.plotLabels,
|
|
1898
|
+
y: n.y,
|
|
1882
1899
|
"font-size": t.fontSizes.plotLabels,
|
|
1883
1900
|
"text-anchor": "end",
|
|
1884
1901
|
fill: a.color,
|
|
@@ -1886,15 +1903,15 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1886
1903
|
content: a.name,
|
|
1887
1904
|
fontSize: t.fontSizes.plotLabels,
|
|
1888
1905
|
fill: a.color,
|
|
1889
|
-
x:
|
|
1890
|
-
y:
|
|
1906
|
+
x: n.x - t.fontSizes.plotLabels,
|
|
1907
|
+
y: n.y,
|
|
1891
1908
|
maxWords: 2
|
|
1892
1909
|
})
|
|
1893
1910
|
}, null, 8, La)) : h("", !0),
|
|
1894
|
-
|
|
1911
|
+
n && g === a.plots.length - 1 && a.showSerieName && a.showSerieName === "end" ? (r(), i("text", {
|
|
1895
1912
|
key: 1,
|
|
1896
|
-
x:
|
|
1897
|
-
y:
|
|
1913
|
+
x: n.x + t.fontSizes.plotLabels,
|
|
1914
|
+
y: n.y,
|
|
1898
1915
|
"font-size": t.fontSizes.plotLabels,
|
|
1899
1916
|
"text-anchor": "start",
|
|
1900
1917
|
fill: a.color,
|
|
@@ -1902,8 +1919,8 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1902
1919
|
content: a.name,
|
|
1903
1920
|
fontSize: t.fontSizes.plotLabels,
|
|
1904
1921
|
fill: a.color,
|
|
1905
|
-
x:
|
|
1906
|
-
y:
|
|
1922
|
+
x: n.x + t.fontSizes.plotLabels,
|
|
1923
|
+
y: n.y,
|
|
1907
1924
|
maxWords: 2
|
|
1908
1925
|
})
|
|
1909
1926
|
}, null, 8, Sa)) : h("", !0)
|
|
@@ -1915,8 +1932,8 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1915
1932
|
width: e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
1916
1933
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1917
1934
|
fill: t.selectedScale === a.id ? `${a.color}20` : "transparent",
|
|
1918
|
-
onMouseenter: (
|
|
1919
|
-
onMouseleave: s[0] || (s[0] = (
|
|
1935
|
+
onMouseenter: (o) => t.selectedScale = a.id,
|
|
1936
|
+
onMouseleave: s[0] || (s[0] = (o) => t.selectedScale = null)
|
|
1920
1937
|
}, null, 40, Ca))), 256)) : h("", !0),
|
|
1921
1938
|
u("g", null, [
|
|
1922
1939
|
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !t.mutableConfig.useIndividualScale ? (r(), i("text", {
|
|
@@ -1937,32 +1954,32 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1937
1954
|
}, C(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, wa)) : h("", !0)
|
|
1938
1955
|
]),
|
|
1939
1956
|
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (r(), i("g", Oa, [
|
|
1940
|
-
(r(!0), i(b, null, I(e.timeLabels, (a,
|
|
1941
|
-
key: `time_label_${
|
|
1957
|
+
(r(!0), i(b, null, I(e.timeLabels, (a, o) => (r(), i("g", {
|
|
1958
|
+
key: `time_label_${o}`
|
|
1942
1959
|
}, [
|
|
1943
|
-
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 && (
|
|
1960
|
+
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 && t.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(), i("text", {
|
|
1944
1961
|
key: 0,
|
|
1945
1962
|
"text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
1946
1963
|
"font-size": t.fontSizes.xAxis,
|
|
1947
1964
|
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
1948
|
-
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
1965
|
+
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * o + 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})`
|
|
1949
1966
|
}, C(a || ""), 9, va)) : h("", !0)
|
|
1950
1967
|
]))), 128))
|
|
1951
1968
|
])) : h("", !0),
|
|
1952
1969
|
u("g", null, [
|
|
1953
|
-
(r(!0), i(b, null, I(e.maxSeries, (a,
|
|
1954
|
-
key: `tooltip_trap_${
|
|
1970
|
+
(r(!0), i(b, null, I(e.maxSeries, (a, o) => (r(), i("g", {
|
|
1971
|
+
key: `tooltip_trap_${o}`
|
|
1955
1972
|
}, [
|
|
1956
1973
|
u("rect", {
|
|
1957
1974
|
"data-cy-trap": "",
|
|
1958
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
1975
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * o,
|
|
1959
1976
|
y: e.drawingArea.top,
|
|
1960
1977
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1961
1978
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1962
1979
|
fill: "transparent",
|
|
1963
|
-
onMouseenter: (
|
|
1964
|
-
onMouseleave: s[1] || (s[1] = (
|
|
1965
|
-
onClick: (
|
|
1980
|
+
onMouseenter: (n) => e.toggleTooltipVisibility(!0, o),
|
|
1981
|
+
onMouseleave: s[1] || (s[1] = (n) => e.toggleTooltipVisibility(!1)),
|
|
1982
|
+
onClick: (n) => e.selectX(o)
|
|
1966
1983
|
}, null, 40, Ga)
|
|
1967
1984
|
]))), 128))
|
|
1968
1985
|
]),
|
|
@@ -1978,19 +1995,19 @@ function Ya(l, s, c, m, t, e) {
|
|
|
1978
1995
|
class: "vue-ui-xy-time-tag",
|
|
1979
1996
|
style: L(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${e.FINAL_CONFIG.chart.timeTag.backgroundColor};color:${e.FINAL_CONFIG.chart.timeTag.color};font-size:${e.FINAL_CONFIG.chart.timeTag.fontSize}px`)
|
|
1980
1997
|
}, C(e.timeLabels[t.selectedSerieIndex] || t.selectedSerieIndex), 5)
|
|
1981
|
-
], 8,
|
|
1998
|
+
], 8, Ma)),
|
|
1982
1999
|
u("circle", {
|
|
1983
2000
|
cx: e.drawingArea.left + e.drawingArea.width / e.maxSeries * t.selectedSerieIndex + e.drawingArea.width / e.maxSeries / 2,
|
|
1984
2001
|
cy: e.drawingArea.bottom,
|
|
1985
2002
|
r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
|
|
1986
2003
|
fill: e.FINAL_CONFIG.chart.timeTag.circleMarker.color
|
|
1987
|
-
}, null, 8,
|
|
2004
|
+
}, null, 8, pa)
|
|
1988
2005
|
])) : h("", !0)
|
|
1989
2006
|
])) : h("", !0),
|
|
1990
2007
|
v(l.$slots, "svg", { svg: e.svg }, void 0, !0)
|
|
1991
2008
|
], 14, Xe)) : h("", !0),
|
|
1992
2009
|
l.$slots.watermark ? (r(), i("div", Pa, [
|
|
1993
|
-
v(l.$slots, "watermark",
|
|
2010
|
+
v(l.$slots, "watermark", H(B({ isPrinting: t.isPrinting || t.isImaging })), void 0, !0)
|
|
1994
2011
|
])) : h("", !0),
|
|
1995
2012
|
e.isDataset ? h("", !0) : (r(), V(_, {
|
|
1996
2013
|
key: 4,
|
|
@@ -2010,7 +2027,7 @@ function Ya(l, s, c, m, t, e) {
|
|
|
2010
2027
|
}
|
|
2011
2028
|
}
|
|
2012
2029
|
}, null, 8, ["config"])),
|
|
2013
|
-
e.FINAL_CONFIG.chart.zoom.show && t.maxX > 6 && e.isDataset ? (r(), V(
|
|
2030
|
+
e.FINAL_CONFIG.chart.zoom.show && t.maxX > 6 && e.isDataset ? (r(), V(M, {
|
|
2014
2031
|
ref: "chartSlicer",
|
|
2015
2032
|
key: `slicer_${t.slicerStep}`,
|
|
2016
2033
|
background: e.FINAL_CONFIG.chart.zoom.color,
|
|
@@ -2022,6 +2039,10 @@ function Ya(l, s, c, m, t, e) {
|
|
|
2022
2039
|
inputColor: e.FINAL_CONFIG.chart.zoom.color,
|
|
2023
2040
|
selectColor: e.FINAL_CONFIG.chart.zoom.highlightColor,
|
|
2024
2041
|
borderColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
2042
|
+
minimap: e.minimap,
|
|
2043
|
+
smoothMinimap: e.FINAL_CONFIG.chart.zoom.minimap.smooth,
|
|
2044
|
+
minimapSelectedColor: e.FINAL_CONFIG.chart.zoom.minimap.selectedColor,
|
|
2045
|
+
minimapSelectionRadius: e.FINAL_CONFIG.chart.zoom.minimap.selectionRadius,
|
|
2025
2046
|
max: t.maxX,
|
|
2026
2047
|
min: 0,
|
|
2027
2048
|
valueStart: t.slicer.start,
|
|
@@ -2033,20 +2054,20 @@ function Ya(l, s, c, m, t, e) {
|
|
|
2033
2054
|
onReset: e.refreshSlicer
|
|
2034
2055
|
}, {
|
|
2035
2056
|
"reset-action": z(({ reset: a }) => [
|
|
2036
|
-
v(l.$slots, "reset-action",
|
|
2057
|
+
v(l.$slots, "reset-action", H(B({ reset: a })), void 0, !0)
|
|
2037
2058
|
]),
|
|
2038
2059
|
_: 3
|
|
2039
|
-
}, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "max", "valueStart", "valueEnd", "start", "end", "onReset"])) : h("", !0),
|
|
2060
|
+
}, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "max", "valueStart", "valueEnd", "start", "end", "onReset"])) : h("", !0),
|
|
2040
2061
|
e.FINAL_CONFIG.chart.legend.show ? (r(), i("div", {
|
|
2041
2062
|
key: 6,
|
|
2042
2063
|
ref: "chartLegend",
|
|
2043
2064
|
class: "vue-ui-xy-legend",
|
|
2044
2065
|
style: L(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
|
|
2045
2066
|
}, [
|
|
2046
|
-
(r(!0), i(b, null, I(e.absoluteDataset, (a,
|
|
2047
|
-
key: `div_legend_item_${
|
|
2048
|
-
onClick: (
|
|
2049
|
-
class:
|
|
2067
|
+
(r(!0), i(b, null, I(e.absoluteDataset, (a, o) => (r(), i("div", {
|
|
2068
|
+
key: `div_legend_item_${o}`,
|
|
2069
|
+
onClick: (n) => e.segregate(a),
|
|
2070
|
+
class: p({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": t.segregatedSeries.includes(a.id) })
|
|
2050
2071
|
}, [
|
|
2051
2072
|
t.icons[a.type] === "line" ? (r(), i("svg", Va, [
|
|
2052
2073
|
u("rect", {
|
|
@@ -2058,7 +2079,7 @@ function Ya(l, s, c, m, t, e) {
|
|
|
2058
2079
|
width: "20",
|
|
2059
2080
|
fill: a.color
|
|
2060
2081
|
}, null, 8, Ra),
|
|
2061
|
-
Y(
|
|
2082
|
+
Y(m, {
|
|
2062
2083
|
plot: { x: 10, y: 9 },
|
|
2063
2084
|
radius: 4,
|
|
2064
2085
|
color: a.color,
|
|
@@ -2076,7 +2097,7 @@ function Ya(l, s, c, m, t, e) {
|
|
|
2076
2097
|
width: "12",
|
|
2077
2098
|
stroke: "none",
|
|
2078
2099
|
fill: a.color
|
|
2079
|
-
}, null, 8,
|
|
2100
|
+
}, null, 8, Wa)) : (r(), V(m, {
|
|
2080
2101
|
key: 1,
|
|
2081
2102
|
plot: { x: 6, y: 6 },
|
|
2082
2103
|
radius: 5,
|
|
@@ -2088,7 +2109,7 @@ function Ya(l, s, c, m, t, e) {
|
|
|
2088
2109
|
style: L(`color:${e.FINAL_CONFIG.chart.legend.color}`)
|
|
2089
2110
|
}, C(a.name), 5)
|
|
2090
2111
|
], 10, Ta))), 128))
|
|
2091
|
-
], 4)) : (r(), i("div",
|
|
2112
|
+
], 4)) : (r(), i("div", Ea, [
|
|
2092
2113
|
v(l.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
|
|
2093
2114
|
], 512)),
|
|
2094
2115
|
Y(k, {
|
|
@@ -2107,10 +2128,10 @@ function Ya(l, s, c, m, t, e) {
|
|
|
2107
2128
|
isCustom: e.FINAL_CONFIG.chart.tooltip.customFormat && typeof e.FINAL_CONFIG.chart.tooltip.customFormat == "function"
|
|
2108
2129
|
}, {
|
|
2109
2130
|
"tooltip-before": z(() => [
|
|
2110
|
-
v(l.$slots, "tooltip-before",
|
|
2131
|
+
v(l.$slots, "tooltip-before", H(B({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2111
2132
|
]),
|
|
2112
2133
|
"tooltip-after": z(() => [
|
|
2113
|
-
v(l.$slots, "tooltip-after",
|
|
2134
|
+
v(l.$slots, "tooltip-after", H(B({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2114
2135
|
]),
|
|
2115
2136
|
_: 3
|
|
2116
2137
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
@@ -2134,7 +2155,7 @@ function Ya(l, s, c, m, t, e) {
|
|
|
2134
2155
|
u("div", {
|
|
2135
2156
|
style: L(`${t.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
2136
2157
|
}, [
|
|
2137
|
-
u("div",
|
|
2158
|
+
u("div", Ha, [
|
|
2138
2159
|
Re(u("input", {
|
|
2139
2160
|
type: "checkbox",
|
|
2140
2161
|
"onUpdate:modelValue": s[4] || (s[4] = (a) => t.showSparklineTable = a)
|
|
@@ -2169,7 +2190,7 @@ function Ya(l, s, c, m, t, e) {
|
|
|
2169
2190
|
u("div", { innerHTML: a }, null, 8, Ba)
|
|
2170
2191
|
]),
|
|
2171
2192
|
td: z(({ td: a }) => [
|
|
2172
|
-
|
|
2193
|
+
We(C(isNaN(Number(a)) ? a : e.dataLabel({
|
|
2173
2194
|
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
2174
2195
|
v: a,
|
|
2175
2196
|
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
@@ -2184,7 +2205,7 @@ function Ya(l, s, c, m, t, e) {
|
|
|
2184
2205
|
}, 8, ["config"])) : h("", !0)
|
|
2185
2206
|
], 14, Ye);
|
|
2186
2207
|
}
|
|
2187
|
-
const sl = /* @__PURE__ */
|
|
2208
|
+
const sl = /* @__PURE__ */ Ee(Be, [["render", Ya], ["__scopeId", "data-v-ca48ab99"]]);
|
|
2188
2209
|
export {
|
|
2189
2210
|
sl as default
|
|
2190
2211
|
};
|