vue-data-ui 2.4.85 → 2.4.87
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-Ajt3NMEa.cjs → Arrow-B6C-c2DT.cjs} +1 -1
- package/dist/{Arrow-Qayb_B0s.js → Arrow-C8PrFeHS.js} +1 -1
- package/dist/{BaseIcon-BVrsMbvi.cjs → BaseIcon-CdOKZmHr.cjs} +1 -1
- package/dist/{BaseIcon-B8U62FEj.js → BaseIcon-plElWres.js} +1 -1
- package/dist/{DataTable-1PQD-SFb.cjs → DataTable-BmKl4AAb.cjs} +1 -1
- package/dist/{DataTable-C0tCPQ9i.js → DataTable-CKke7C6w.js} +2 -2
- package/dist/{Legend-BJ2Wbqut.cjs → Legend-CY6wjCYY.cjs} +1 -1
- package/dist/{Legend-BTpe6qQB.js → Legend-DMeEvZOT.js} +2 -2
- package/dist/{PackageVersion-BjfedMsH.cjs → PackageVersion-DvDNPRrJ.cjs} +1 -1
- package/dist/{PackageVersion-CENy3Lm2.js → PackageVersion-Rh3rgo6A.js} +1 -1
- package/dist/{PenAndPaper-nqRtAh6J.cjs → PenAndPaper--xHLJRME.cjs} +1 -1
- package/dist/{PenAndPaper-Dr7ndoP_.js → PenAndPaper-DqVsdeLc.js} +3 -3
- package/dist/{Shape-zFv85Gc2.js → Shape-CL3HglYL.js} +1 -1
- package/dist/{Shape-Boa32JEn.cjs → Shape-DEwnzwRB.cjs} +1 -1
- package/dist/{Slicer-D6QLMg5N.cjs → Slicer-CnNbe-dl.cjs} +1 -1
- package/dist/{Slicer-BUYuk07t.js → Slicer-ZryQKOl5.js} +2 -2
- package/dist/{Title-CaET2xuF.js → Title-BU5Aq1_x.js} +1 -1
- package/dist/{Title-DJUxOiaO.cjs → Title-C10173bN.cjs} +1 -1
- package/dist/{Tooltip-C5QuW94e.cjs → Tooltip-CL7aSMgq.cjs} +1 -1
- package/dist/{Tooltip-Bkc4233T.js → Tooltip-Dm-obTbx.js} +1 -1
- package/dist/{index-COIn1phv.cjs → index-1HOIfTy2.cjs} +1 -1
- package/dist/{index-B7nCQFK0.js → index-BG5J_ybN.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-CbMuGGl3.cjs → useNestedProp-BFNnjpX-.cjs} +1 -1
- package/dist/{useNestedProp-C9rlBRTT.js → useNestedProp-BN1ZmAKT.js} +1 -1
- package/dist/{usePrinter-CQMn1b4E.js → usePrinter-CWeJt84b.js} +1 -1
- package/dist/{usePrinter-CXXfgFFN.cjs → usePrinter-i-j4CdEi.cjs} +1 -1
- package/dist/{vue-data-ui-Bu_VIHgr.cjs → vue-data-ui-549nX1yu.cjs} +1 -1
- package/dist/{vue-data-ui-BnsKGbqb.js → vue-data-ui-B5u9V9lC.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-V5FBS9MA.js → vue-ui-3d-bar-DBtozgXL.js} +38 -38
- package/dist/{vue-ui-3d-bar-D39F2dKF.cjs → vue-ui-3d-bar-J7LkJgTZ.cjs} +11 -11
- package/dist/{vue-ui-accordion-CGlnNTr8.cjs → vue-ui-accordion-Cd6GaDwU.cjs} +1 -1
- package/dist/{vue-ui-accordion-B8ptB5BQ.js → vue-ui-accordion-JBOceVq2.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bjp1R8Ku.js → vue-ui-age-pyramid-BIkYjL8e.js} +29 -29
- package/dist/vue-ui-age-pyramid-DeryBRqg.cjs +1 -0
- package/dist/{vue-ui-annotator-V9m5fTGG.js → vue-ui-annotator-Bt90Iec6.js} +1 -1
- package/dist/{vue-ui-annotator-BoWZZRPg.cjs → vue-ui-annotator-Dw8cVACs.cjs} +1 -1
- package/dist/{vue-ui-bullet-DLIxlhFF.cjs → vue-ui-bullet-BMAYQESQ.cjs} +1 -1
- package/dist/{vue-ui-bullet-Bqvb5PV-.js → vue-ui-bullet-DzosZUYl.js} +8 -8
- package/dist/{vue-ui-candlestick-D4BD8LyJ.cjs → vue-ui-candlestick-BaLnAKB9.cjs} +2 -2
- package/dist/{vue-ui-candlestick-DHCtmsh3.js → vue-ui-candlestick-dTATEFOU.js} +48 -48
- package/dist/{vue-ui-carousel-table-VIuoh2QI.cjs → vue-ui-carousel-table-CWNI7Ri5.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Cn2RJkSb.js → vue-ui-carousel-table-rMcj65Bo.js} +4 -4
- package/dist/{vue-ui-chestnut-C5qUO1uK.js → vue-ui-chestnut-B_NLFSaY.js} +29 -29
- package/dist/{vue-ui-chestnut-ClG9HZoC.cjs → vue-ui-chestnut-DjOEVM3w.cjs} +2 -2
- package/dist/{vue-ui-cursor-Bo8et-dD.cjs → vue-ui-cursor-CBUwAZd1.cjs} +1 -1
- package/dist/{vue-ui-cursor-eJau3iyr.js → vue-ui-cursor-CTvVj3YO.js} +2 -2
- package/dist/{vue-ui-dashboard-DnaH9bCw.js → vue-ui-dashboard-CG9J3DLT.js} +2 -2
- package/dist/{vue-ui-dashboard-WJqGQ8iR.cjs → vue-ui-dashboard-DcfhPFVi.cjs} +1 -1
- package/dist/{vue-ui-digits-qIckO4-r.cjs → vue-ui-digits-B8lUQcKK.cjs} +1 -1
- package/dist/{vue-ui-digits-Cqjts2eq.js → vue-ui-digits-CF6qbsmO.js} +2 -2
- package/dist/{vue-ui-donut-pprcnbIw.js → vue-ui-donut-Bbkz0M-R.js} +76 -76
- package/dist/vue-ui-donut-CzmOCuxn.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-EzYvP11F.js → vue-ui-donut-evolution-BkE-sAyn.js} +66 -66
- package/dist/vue-ui-donut-evolution-CjFUAKXU.cjs +1 -0
- package/dist/vue-ui-dumbbell-BiHzKPGP.cjs +9 -0
- package/dist/{vue-ui-dumbbell-DaxcxmnU.js → vue-ui-dumbbell-D8JuHhzi.js} +28 -28
- package/dist/vue-ui-flow-CR1Qo5Rt.cjs +1 -0
- package/dist/{vue-ui-flow-DbRgaKBu.js → vue-ui-flow-Cie8iHDK.js} +31 -31
- package/dist/vue-ui-funnel-B8uRuzDx.cjs +1 -0
- package/dist/{vue-ui-funnel-B2del8KB.js → vue-ui-funnel-tW6PGqcE.js} +32 -32
- package/dist/vue-ui-galaxy-BfbYEvnO.cjs +1 -0
- package/dist/{vue-ui-galaxy-pUYeASJf.js → vue-ui-galaxy-p4j0h3ZX.js} +81 -81
- package/dist/{vue-ui-gauge-DpsXpEaW.js → vue-ui-gauge-CtVmazzP.js} +7 -7
- package/dist/{vue-ui-gauge-BOXoAgWk.cjs → vue-ui-gauge-DnTOvr4T.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Bq9uAmqd.cjs → vue-ui-gizmo-BdlVxVqD.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BpYrhkon.js → vue-ui-gizmo-wjZJgWPe.js} +3 -3
- package/dist/{vue-ui-heatmap-Cz6_9Veh.js → vue-ui-heatmap-DJXLmzGL.js} +63 -63
- package/dist/vue-ui-heatmap-Gd3nkwzC.cjs +1 -0
- package/dist/vue-ui-history-plot-CevSrT7E.cjs +1 -0
- package/dist/{vue-ui-history-plot-DAotUjSF.js → vue-ui-history-plot-DJQck-9N.js} +69 -69
- package/dist/{vue-ui-kpi-D6mp6EQ2.cjs → vue-ui-kpi-D8NVXEfO.cjs} +1 -1
- package/dist/{vue-ui-kpi-Ch2p7m-i.js → vue-ui-kpi-MK6JH8yi.js} +3 -3
- package/dist/{vue-ui-mini-loader-E13lmwfO.js → vue-ui-mini-loader-UiC0NYsO.js} +2 -2
- package/dist/{vue-ui-mini-loader-CO-KGVlC.cjs → vue-ui-mini-loader-a8JZaxIy.cjs} +1 -1
- package/dist/vue-ui-molecule-CXgKUNCL.cjs +1 -0
- package/dist/{vue-ui-molecule-C69K6EPO.js → vue-ui-molecule-Cz9zZQ95.js} +155 -155
- package/dist/vue-ui-mood-radar-B-PSds5c.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DDtky572.js → vue-ui-mood-radar-BMMCFkEk.js} +33 -33
- package/dist/{vue-ui-nested-donuts-DMCd6DqT.cjs → vue-ui-nested-donuts-Cdx6UQwF.cjs} +5 -5
- package/dist/{vue-ui-nested-donuts-AYPYIRrE.js → vue-ui-nested-donuts-Da9c-H0Y.js} +147 -147
- package/dist/{vue-ui-onion-Bsa88sKK.js → vue-ui-onion-D1wExDGP.js} +44 -44
- package/dist/{vue-ui-onion-BedLvfFe.cjs → vue-ui-onion-HAS4P8nS.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-KCEb4iRs.js → vue-ui-parallel-coordinate-plot-BH0xKZAE.js} +79 -79
- package/dist/{vue-ui-parallel-coordinate-plot-CSOMIABF.cjs → vue-ui-parallel-coordinate-plot-BYeyzJnE.cjs} +3 -3
- package/dist/{vue-ui-quadrant-Bd_88Eht.js → vue-ui-quadrant-BDkbMaNf.js} +108 -108
- package/dist/vue-ui-quadrant-DbWSZWfP.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CXAYKYHa.js → vue-ui-quick-chart-D3b2YwMY.js} +212 -212
- package/dist/vue-ui-quick-chart-qnbmA75J.cjs +15 -0
- package/dist/{vue-ui-radar-De397oTB.js → vue-ui-radar--Bt67L0i.js} +107 -107
- package/dist/vue-ui-radar-DSZpmaIZ.cjs +1 -0
- package/dist/{vue-ui-rating-wK3_ZWE5.js → vue-ui-rating-Bgr7tvIq.js} +2 -2
- package/dist/{vue-ui-rating-BjiMVoyX.cjs → vue-ui-rating-Z_ANkBeZ.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BEGyr1h-.cjs → vue-ui-relation-circle-3cgv8yC-.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BxlK8MVs.js → vue-ui-relation-circle-B22VP_p1.js} +7 -7
- package/dist/{vue-ui-rings-BcNMBXxq.cjs → vue-ui-rings-DZEwaUv5.cjs} +2 -2
- package/dist/{vue-ui-rings-BXrtMSML.js → vue-ui-rings-DgzfAEvJ.js} +66 -66
- package/dist/{vue-ui-scatter-BWZfLJ9P.js → vue-ui-scatter-BwlbShJE.js} +85 -85
- package/dist/vue-ui-scatter-CSI15Dgp.cjs +1 -0
- package/dist/{vue-ui-screenshot-BJgOwFMW.cjs → vue-ui-screenshot-DK2xyINC.cjs} +1 -1
- package/dist/{vue-ui-screenshot-hw4PC9Uu.js → vue-ui-screenshot-Dk0TqQpi.js} +1 -1
- package/dist/{vue-ui-skeleton-BIqMxXV7.cjs → vue-ui-skeleton-CLiDRcQX.cjs} +1 -1
- package/dist/{vue-ui-skeleton-D66ZIUln.js → vue-ui-skeleton-c211TxZ8.js} +3 -3
- package/dist/{vue-ui-smiley-Duy5Xo-j.cjs → vue-ui-smiley-Kr6bQ-7L.cjs} +1 -1
- package/dist/{vue-ui-smiley-DWPYdcDB.js → vue-ui-smiley-hIooew3m.js} +2 -2
- package/dist/{vue-ui-spark-trend-Ce4IaqPz.js → vue-ui-spark-trend-CgpDYM8f.js} +5 -5
- package/dist/{vue-ui-spark-trend-DP5foaNi.cjs → vue-ui-spark-trend-SVqMwS1X.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-Bbns4V16.cjs → vue-ui-sparkbar-DY1J0X8K.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-Fa-Kc9Fr.js → vue-ui-sparkbar-D_HgtfBM.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BrLrvNLH.cjs → vue-ui-sparkgauge-C4p0nAHp.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DUWcJ7cM.js → vue-ui-sparkgauge-jO5jKAyz.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-PgC-c-5a.js → vue-ui-sparkhistogram-BpQfz14e.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-B0rhs_UN.cjs → vue-ui-sparkhistogram-gSNvSVcP.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BqNlrKjb.js → vue-ui-sparkline-BTgaJjMj.js} +4 -4
- package/dist/{vue-ui-sparkline-c5Awoj8J.cjs → vue-ui-sparkline-D53BDGCi.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DyJIUulr.js → vue-ui-sparkstackbar-COm1EqFN.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-BmYIcpVZ.cjs → vue-ui-sparkstackbar-DcEhBuvP.cjs} +1 -1
- package/dist/{vue-ui-stackbar-BebRtOYL.js → vue-ui-stackbar-BHyysJyj.js} +51 -51
- package/dist/{vue-ui-stackbar-DJ9NH_l1.cjs → vue-ui-stackbar-D4-vrvMz.cjs} +3 -3
- package/dist/{vue-ui-strip-plot-BGHj1BHd.js → vue-ui-strip-plot-BOLWDlTl.js} +118 -118
- package/dist/vue-ui-strip-plot-iUjpocRA.cjs +1 -0
- package/dist/{vue-ui-table-BFdGppRF.cjs → vue-ui-table-DG3-RAEv.cjs} +1 -1
- package/dist/{vue-ui-table-ClPMKcMn.js → vue-ui-table-XThR7HtD.js} +1 -1
- package/dist/{vue-ui-table-heatmap-B7wTjM-H.cjs → vue-ui-table-heatmap-B82Dmfv2.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DVQtPt-M.js → vue-ui-table-heatmap-DxWQ3cdf.js} +4 -4
- package/dist/{vue-ui-table-sparkline-DjxKXWQm.js → vue-ui-table-sparkline-BIQAc-eX.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DaKODjfM.cjs → vue-ui-table-sparkline-C3JrSwmi.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CV_9k37V.js → vue-ui-thermometer-Ci0OBAEN.js} +7 -7
- package/dist/{vue-ui-thermometer-DE9r0emf.cjs → vue-ui-thermometer-t1cul6jD.cjs} +1 -1
- package/dist/{vue-ui-timer-Ct-KYWSX.cjs → vue-ui-timer-BLqulQx5.cjs} +1 -1
- package/dist/{vue-ui-timer-2w5Ayq7G.js → vue-ui-timer-CwJoQApu.js} +5 -5
- package/dist/{vue-ui-tiremarks-BJnh0GBj.js → vue-ui-tiremarks-CFVl_w7d.js} +7 -7
- package/dist/{vue-ui-tiremarks-Cf04zARl.cjs → vue-ui-tiremarks-_d9WOe-N.cjs} +1 -1
- package/dist/vue-ui-treemap-BaQFfbqL.cjs +1 -0
- package/dist/{vue-ui-treemap-BD546LBi.js → vue-ui-treemap-BtjPxOzu.js} +108 -108
- package/dist/{vue-ui-vertical-bar-D3QKHHnS.cjs → vue-ui-vertical-bar-BcjM9qCI.cjs} +3 -3
- package/dist/{vue-ui-vertical-bar-E5CTb1Bd.js → vue-ui-vertical-bar-xnQDjCLE.js} +54 -54
- package/dist/{vue-ui-waffle-BAJIMbZK.js → vue-ui-waffle-BMFtG4mh.js} +99 -99
- package/dist/vue-ui-waffle-DGarEDP5.cjs +1 -0
- package/dist/{vue-ui-wheel-CPPLUSFq.js → vue-ui-wheel-DIr8JQt0.js} +7 -7
- package/dist/{vue-ui-wheel-Dy_B7BTG.cjs → vue-ui-wheel-DLFWUmdm.cjs} +1 -1
- package/dist/vue-ui-word-cloud-CDQ4rkP-.cjs +1 -0
- package/dist/{vue-ui-word-cloud-BVZcDY7m.js → vue-ui-word-cloud-CrSkUMkN.js} +81 -81
- package/dist/{vue-ui-xy-tB-6IP2y.js → vue-ui-xy-DPT3SYuU.js} +815 -818
- package/dist/vue-ui-xy-DfnDyl8o.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-DFUfTZwz.js → vue-ui-xy-canvas-C3iMSkvP.js} +35 -35
- package/dist/{vue-ui-xy-canvas-BSZTrqci.cjs → vue-ui-xy-canvas-DEyhDtC-.cjs} +3 -3
- package/package.json +1 -1
- package/dist/vue-ui-age-pyramid-BdseHKUc.cjs +0 -1
- package/dist/vue-ui-donut-BP7yj2DU.cjs +0 -1
- package/dist/vue-ui-donut-evolution-Cz8uFJp8.cjs +0 -1
- package/dist/vue-ui-dumbbell-CYqHCr2S.cjs +0 -9
- package/dist/vue-ui-flow-HeRCplGL.cjs +0 -1
- package/dist/vue-ui-funnel-DxniWNkD.cjs +0 -1
- package/dist/vue-ui-galaxy-BDA64dud.cjs +0 -1
- package/dist/vue-ui-heatmap-CbKgGLtN.cjs +0 -1
- package/dist/vue-ui-history-plot-BoMdvItE.cjs +0 -1
- package/dist/vue-ui-molecule-CeoDnPXB.cjs +0 -1
- package/dist/vue-ui-mood-radar-BwOqQUuT.cjs +0 -1
- package/dist/vue-ui-quadrant-BXQVOvpY.cjs +0 -1
- package/dist/vue-ui-quick-chart-dLItYwM_.cjs +0 -15
- package/dist/vue-ui-radar-BuNtocmn.cjs +0 -1
- package/dist/vue-ui-scatter-DTy3yPVu.cjs +0 -1
- package/dist/vue-ui-strip-plot-f7vejZht.cjs +0 -1
- package/dist/vue-ui-treemap-D0vi4bv4.cjs +0 -1
- package/dist/vue-ui-waffle-BL0e3Yeq.cjs +0 -1
- package/dist/vue-ui-word-cloud-BPoAoeWZ.cjs +0 -1
- package/dist/vue-ui-xy-D4hRtHAi.cjs +0 -3
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { D as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { U as
|
|
6
|
-
import { _ as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { S as
|
|
11
|
-
import
|
|
12
|
-
import { u as Z } from "./useNestedProp-
|
|
13
|
-
import { _ as
|
|
14
|
-
import { P as
|
|
15
|
-
import { resolveComponent as R, openBlock as a, createElementBlock as s, normalizeClass as
|
|
1
|
+
import { c as K, a as $, t as ee, z as te, p as re, V as X, O as D, f as U, L as ie, G as ae, i as le, a4 as se, a1 as ne, a5 as he, v as oe, a6 as ce, d as de, B as ue, b as ge, q as fe, R as Ie, Q as me, a7 as Ne, r as xe, e as be, a2 as Fe, y as _e, C as Ae, x as ye, a8 as Ce, Z as Le, o as Se, s as ke, w as we, F as Oe, A as Ge, u as ve } from "./index-BG5J_ybN.js";
|
|
2
|
+
import { D as ze } from "./DataTable-CKke7C6w.js";
|
|
3
|
+
import { _ as Me } from "./Title-BU5Aq1_x.js";
|
|
4
|
+
import { _ as pe, u as Te } from "./Tooltip-Dm-obTbx.js";
|
|
5
|
+
import { U as Pe } from "./usePrinter-CWeJt84b.js";
|
|
6
|
+
import { _ as Ve } from "./Shape-CL3HglYL.js";
|
|
7
|
+
import Re from "./BaseIcon-plElWres.js";
|
|
8
|
+
import De from "./vue-ui-table-sparkline-BIQAc-eX.js";
|
|
9
|
+
import He from "./vue-ui-skeleton-c211TxZ8.js";
|
|
10
|
+
import { S as Be } from "./Slicer-ZryQKOl5.js";
|
|
11
|
+
import We from "./vue-ui-accordion-JBOceVq2.js";
|
|
12
|
+
import { u as Z } from "./useNestedProp-BN1ZmAKT.js";
|
|
13
|
+
import { _ as Ee } from "./PackageVersion-Rh3rgo6A.js";
|
|
14
|
+
import { P as Ye } from "./PenAndPaper-DqVsdeLc.js";
|
|
15
|
+
import { resolveComponent as R, openBlock as a, createElementBlock as s, normalizeClass as B, normalizeStyle as O, createBlock as H, createCommentVNode as c, createSlots as qe, withCtx as P, renderSlot as S, normalizeProps as W, guardReactiveProps as Y, createVNode as q, createElementVNode as g, Fragment as u, renderList as m, toDisplayString as k, mergeProps as J, createTextVNode as Q, withDirectives as Xe, vModelCheckbox as Ue } from "vue";
|
|
16
16
|
import { _ as Ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
-
const Je =
|
|
17
|
+
const Je = K(), Qe = {
|
|
18
18
|
name: "vue-ui-xy",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -31,18 +31,18 @@ const Je = J(), Qe = {
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
components: {
|
|
34
|
-
DataTable:
|
|
35
|
-
Shape:
|
|
36
|
-
Title:
|
|
37
|
-
Tooltip:
|
|
38
|
-
UserOptions:
|
|
39
|
-
BaseIcon:
|
|
40
|
-
TableSparkline:
|
|
41
|
-
Skeleton:
|
|
42
|
-
Slicer:
|
|
43
|
-
Accordion:
|
|
44
|
-
PackageVersion:
|
|
45
|
-
PenAndPaper:
|
|
34
|
+
DataTable: ze,
|
|
35
|
+
Shape: Ve,
|
|
36
|
+
Title: Me,
|
|
37
|
+
Tooltip: pe,
|
|
38
|
+
UserOptions: Pe,
|
|
39
|
+
BaseIcon: Re,
|
|
40
|
+
TableSparkline: De,
|
|
41
|
+
Skeleton: He,
|
|
42
|
+
Slicer: Be,
|
|
43
|
+
Accordion: We,
|
|
44
|
+
PackageVersion: Ee,
|
|
45
|
+
PenAndPaper: Ye
|
|
46
46
|
},
|
|
47
47
|
data() {
|
|
48
48
|
this.dataset.forEach((d, t) => {
|
|
@@ -53,20 +53,20 @@ const Je = J(), Qe = {
|
|
|
53
53
|
index: t
|
|
54
54
|
});
|
|
55
55
|
});
|
|
56
|
-
const
|
|
56
|
+
const r = this.config.downsample && this.config.downsample.threshold ? this.config.downsample.threshold : 500, l = Math.max(...this.dataset.map((d) => this.largestTriangleThreeBucketsArray({ data: d.series, threshold: r }).length)), o = {
|
|
57
57
|
start: 0,
|
|
58
58
|
end: l
|
|
59
59
|
};
|
|
60
60
|
return {
|
|
61
|
-
themePalettes:
|
|
62
|
-
themes:
|
|
61
|
+
themePalettes: $,
|
|
62
|
+
themes: ee,
|
|
63
63
|
slicerStep: 0,
|
|
64
64
|
selectedScale: null,
|
|
65
65
|
CTX: null,
|
|
66
66
|
CANVAS: null,
|
|
67
|
-
opacity:
|
|
67
|
+
opacity: te,
|
|
68
68
|
useSafeValues: !0,
|
|
69
|
-
palette:
|
|
69
|
+
palette: re,
|
|
70
70
|
height: 600,
|
|
71
71
|
width: 1e3,
|
|
72
72
|
viewBox: "0 0 1000 600",
|
|
@@ -100,7 +100,7 @@ const Je = J(), Qe = {
|
|
|
100
100
|
selectedSerieIndex: null,
|
|
101
101
|
selectedRowIndex: null,
|
|
102
102
|
segregatedSeries: [],
|
|
103
|
-
uniqueId:
|
|
103
|
+
uniqueId: K(),
|
|
104
104
|
step: 0,
|
|
105
105
|
tableStep: 0,
|
|
106
106
|
titleStep: 0,
|
|
@@ -128,7 +128,7 @@ const Je = J(), Qe = {
|
|
|
128
128
|
},
|
|
129
129
|
watch: {
|
|
130
130
|
dataset: {
|
|
131
|
-
handler(
|
|
131
|
+
handler(r, l) {
|
|
132
132
|
this.maxX = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({
|
|
133
133
|
data: o.series,
|
|
134
134
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
@@ -140,8 +140,16 @@ const Je = J(), Qe = {
|
|
|
140
140
|
deep: !0
|
|
141
141
|
},
|
|
142
142
|
config: {
|
|
143
|
-
handler(
|
|
144
|
-
this.FINAL_CONFIG = this.prepareConfig(), this.prepareChart(), this.titleStep += 1, this.tableStep += 1
|
|
143
|
+
handler(r, l) {
|
|
144
|
+
this.FINAL_CONFIG = this.prepareConfig(), this.prepareChart(), this.titleStep += 1, this.tableStep += 1, this.mutableConfig = {
|
|
145
|
+
dataLabels: {
|
|
146
|
+
show: !0
|
|
147
|
+
},
|
|
148
|
+
showTooltip: this.FINAL_CONFIG.chart.tooltip.show === !0,
|
|
149
|
+
showTable: this.FINAL_CONFIG.showTable === !0,
|
|
150
|
+
isStacked: this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,
|
|
151
|
+
useIndividualScale: this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale
|
|
152
|
+
};
|
|
145
153
|
},
|
|
146
154
|
deep: !0
|
|
147
155
|
}
|
|
@@ -157,9 +165,9 @@ const Je = J(), Qe = {
|
|
|
157
165
|
},
|
|
158
166
|
minimap() {
|
|
159
167
|
if (!this.FINAL_CONFIG.chart.zoom.minimap.show) return [];
|
|
160
|
-
const
|
|
168
|
+
const r = this.datasetWithIds.filter((t) => !this.segregatedSeries.includes(t.id)), l = Math.max(...r.map((t) => t.series.length)), o = [];
|
|
161
169
|
for (let t = 0; t < l; t += 1)
|
|
162
|
-
o.push(
|
|
170
|
+
o.push(r.map((e) => e.series[t] || 0).reduce((e, N) => (e || 0) + (N || 0), 0));
|
|
163
171
|
const d = Math.min(...o);
|
|
164
172
|
return o.map((t) => t + (d < 0 ? Math.abs(d) : 0));
|
|
165
173
|
},
|
|
@@ -173,7 +181,7 @@ const Je = J(), Qe = {
|
|
|
173
181
|
return this.FINAL_CONFIG.chart.zoom.color;
|
|
174
182
|
},
|
|
175
183
|
allScales() {
|
|
176
|
-
const
|
|
184
|
+
const r = this.lineSet.map((t) => ({
|
|
177
185
|
name: t.name,
|
|
178
186
|
color: t.color,
|
|
179
187
|
scale: t.individualScale,
|
|
@@ -208,8 +216,8 @@ const Je = J(), Qe = {
|
|
|
208
216
|
id: t.id,
|
|
209
217
|
yOffset: t.yOffset || 0,
|
|
210
218
|
individualHeight: t.individualHeight || this.drawingArea.height
|
|
211
|
-
})), d = [...
|
|
212
|
-
return [...
|
|
219
|
+
})), d = [...r, ...l, ...o].flatMap((t) => t).length;
|
|
220
|
+
return [...r, ...l, ...o].flatMap((t, e) => ({
|
|
213
221
|
id: t.id,
|
|
214
222
|
scaleLabel: t.scaleLabel,
|
|
215
223
|
name: t.name,
|
|
@@ -228,19 +236,19 @@ const Je = J(), Qe = {
|
|
|
228
236
|
return !!this.dataset && this.dataset.length;
|
|
229
237
|
},
|
|
230
238
|
chartFont() {
|
|
231
|
-
const
|
|
232
|
-
return window.getComputedStyle(
|
|
239
|
+
const r = document.getElementById(`vue-ui-xy_${this.uniqueId}`);
|
|
240
|
+
return window.getComputedStyle(r, null).getPropertyValue("font-family");
|
|
233
241
|
},
|
|
234
242
|
FINAL_CONFIG: {
|
|
235
243
|
get: function() {
|
|
236
244
|
return this.prepareConfig();
|
|
237
245
|
},
|
|
238
|
-
set: function(
|
|
239
|
-
return
|
|
246
|
+
set: function(r) {
|
|
247
|
+
return r;
|
|
240
248
|
}
|
|
241
249
|
},
|
|
242
250
|
hasHighlightArea() {
|
|
243
|
-
return Array.isArray(this.FINAL_CONFIG.chart.highlightArea) ? this.FINAL_CONFIG.chart.highlightArea.some((
|
|
251
|
+
return Array.isArray(this.FINAL_CONFIG.chart.highlightArea) ? this.FINAL_CONFIG.chart.highlightArea.some((r) => r.show) : this.FINAL_CONFIG.chart.highlightArea && this.FINAL_CONFIG.chart.highlightArea.show;
|
|
244
252
|
},
|
|
245
253
|
highlightAreas() {
|
|
246
254
|
if (Array.isArray(this.FINAL_CONFIG.chart.highlightArea))
|
|
@@ -248,8 +256,8 @@ const Je = J(), Qe = {
|
|
|
248
256
|
...l,
|
|
249
257
|
span: l.from === l.to ? 1 : l.to < l.from ? 0 : l.to - l.from + 1
|
|
250
258
|
}));
|
|
251
|
-
const
|
|
252
|
-
return [{ ...
|
|
259
|
+
const r = this.FINAL_CONFIG.chart.highlightArea;
|
|
260
|
+
return [{ ...r, span: r.from === r.to ? 1 : r.to < r.from ? 0 : r.to - r.from + 1 }];
|
|
253
261
|
},
|
|
254
262
|
xPadding() {
|
|
255
263
|
return this.FINAL_CONFIG.chart.grid.position === "middle" ? 0 : this.drawingArea.width / this.maxSeries / 2;
|
|
@@ -261,44 +269,44 @@ const Je = J(), Qe = {
|
|
|
261
269
|
return this.niceScale.max + this.relativeZero;
|
|
262
270
|
},
|
|
263
271
|
datasetWithIds() {
|
|
264
|
-
return this.useSafeValues ? this.dataset.map((
|
|
265
|
-
...
|
|
272
|
+
return this.useSafeValues ? this.dataset.map((r, l) => ({
|
|
273
|
+
...r,
|
|
266
274
|
series: this.largestTriangleThreeBucketsArray({
|
|
267
|
-
data:
|
|
275
|
+
data: r.series,
|
|
268
276
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
269
277
|
}),
|
|
270
278
|
id: `uniqueId_${l}`
|
|
271
279
|
})) : this.dataset;
|
|
272
280
|
},
|
|
273
281
|
safeDataset() {
|
|
274
|
-
return this.useSafeValues ? this.dataset.map((
|
|
282
|
+
return this.useSafeValues ? this.dataset.map((r, l) => {
|
|
275
283
|
const o = this.largestTriangleThreeBucketsArray({
|
|
276
|
-
data:
|
|
284
|
+
data: r.series,
|
|
277
285
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
278
286
|
});
|
|
279
287
|
return {
|
|
280
|
-
...
|
|
288
|
+
...r,
|
|
281
289
|
slotAbsoluteIndex: l,
|
|
282
290
|
series: o.map((d) => this.isSafeValue(d) ? d : null).slice(this.slicer.start, this.slicer.end),
|
|
283
|
-
color: this.convertColorToHex(
|
|
291
|
+
color: this.convertColorToHex(r.color ? r.color : this.customPalette[l] ? this.customPalette[l] : this.palette[l]),
|
|
284
292
|
id: `uniqueId_${l}`
|
|
285
293
|
};
|
|
286
294
|
}) : this.dataset;
|
|
287
295
|
},
|
|
288
296
|
relativeDataset() {
|
|
289
|
-
return this.safeDataset.map((
|
|
290
|
-
...
|
|
291
|
-
series:
|
|
292
|
-
absoluteValues:
|
|
293
|
-
})).filter((
|
|
297
|
+
return this.safeDataset.map((r, l) => ({
|
|
298
|
+
...r,
|
|
299
|
+
series: r.series.map((o) => o + this.relativeZero),
|
|
300
|
+
absoluteValues: r.series
|
|
301
|
+
})).filter((r) => !this.segregatedSeries.includes(r.id));
|
|
294
302
|
},
|
|
295
303
|
tableSparklineDataset() {
|
|
296
|
-
return this.relativeDataset.map((
|
|
297
|
-
const l =
|
|
304
|
+
return this.relativeDataset.map((r) => {
|
|
305
|
+
const l = r.absoluteValues.map((o) => [void 0, null].includes(o) ? 0 : o);
|
|
298
306
|
return {
|
|
299
|
-
id:
|
|
300
|
-
name:
|
|
301
|
-
color:
|
|
307
|
+
id: r.id,
|
|
308
|
+
name: r.name,
|
|
309
|
+
color: r.color,
|
|
302
310
|
values: this.fillArray(this.maxSeries, l)
|
|
303
311
|
};
|
|
304
312
|
});
|
|
@@ -330,75 +338,75 @@ const Je = J(), Qe = {
|
|
|
330
338
|
};
|
|
331
339
|
},
|
|
332
340
|
absoluteDataset() {
|
|
333
|
-
return this.safeDataset.map((
|
|
341
|
+
return this.safeDataset.map((r, l) => ({
|
|
334
342
|
absoluteIndex: l,
|
|
335
|
-
...
|
|
336
|
-
series:
|
|
337
|
-
absoluteValues:
|
|
338
|
-
segregate: () => this.segregate(
|
|
339
|
-
isSegregated: this.segregatedSeries.includes(
|
|
343
|
+
...r,
|
|
344
|
+
series: r.series.map((o) => o + this.relativeZero),
|
|
345
|
+
absoluteValues: r.series,
|
|
346
|
+
segregate: () => this.segregate(r),
|
|
347
|
+
isSegregated: this.segregatedSeries.includes(r.id)
|
|
340
348
|
}));
|
|
341
349
|
},
|
|
342
350
|
barSet() {
|
|
343
|
-
return this.activeSeriesWithStackRatios.filter((
|
|
344
|
-
this.checkAutoScaleError(
|
|
345
|
-
const o = Math.min(...
|
|
346
|
-
ratios:
|
|
351
|
+
return this.activeSeriesWithStackRatios.filter((r) => r.type === "bar").map((r, l) => {
|
|
352
|
+
this.checkAutoScaleError(r);
|
|
353
|
+
const o = Math.min(...r.absoluteValues.filter((x) => ![null, void 0].includes(x))), d = Math.max(...r.absoluteValues.filter((x) => ![null, void 0].includes(x))), e = {
|
|
354
|
+
ratios: r.absoluteValues.filter((x) => ![null, void 0].includes(x)).map((x) => (x - o) / (d - o)),
|
|
347
355
|
valueMin: o,
|
|
348
356
|
valueMax: d < 0 ? 0 : d
|
|
349
357
|
}, N = {
|
|
350
|
-
max:
|
|
351
|
-
min:
|
|
352
|
-
}, _ =
|
|
353
|
-
const y = this.mutableConfig.useIndividualScale ? (
|
|
358
|
+
max: r.scaleMax || Math.max(...r.absoluteValues) || 1,
|
|
359
|
+
min: r.scaleMin || Math.min(...r.absoluteValues.filter((x) => ![void 0, null].includes(x))) > 0 ? 0 : Math.min(...r.absoluteValues.filter((x) => ![null, void 0].includes(x)))
|
|
360
|
+
}, _ = r.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, w = 1.0000001, I = this.calculateNiceScaleWithExactExtremes(N.min, N.max === N.min ? N.max * w : N.max, _), b = this.calculateNiceScaleWithExactExtremes(e.valueMin, e.valueMax === e.valueMin ? e.valueMax * w : e.valueMax, _), V = I.min >= 0 ? 0 : Math.abs(I.min), v = 0, z = I.max + V, G = b.max + Math.abs(v), F = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - r.cumulatedStackRatio) : 0, C = this.mutableConfig.isStacked ? this.drawingArea.height * r.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, T = this.drawingArea.bottom - F - C * V / z, i = this.drawingArea.bottom - F - C * v / G, h = this.absoluteDataset.filter((x) => x.type === "bar").filter((x) => !this.segregatedSeries.includes(x.id)).length, n = r.series.map((x, p) => {
|
|
361
|
+
const y = this.mutableConfig.useIndividualScale ? (r.absoluteValues[p] + V) / z : this.ratioToMax(x), L = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * p : this.drawingArea.left + this.slot.bar * l + this.slot.bar * p * h - this.barSlot / 2 - l * this.barPeriodGap;
|
|
354
362
|
return {
|
|
355
363
|
yOffset: this.checkNaN(F),
|
|
356
364
|
individualHeight: this.checkNaN(C),
|
|
357
|
-
x: this.checkNaN(
|
|
365
|
+
x: this.checkNaN(L),
|
|
358
366
|
y: this.drawingArea.bottom - F - C * y,
|
|
359
|
-
value:
|
|
367
|
+
value: r.absoluteValues[p],
|
|
360
368
|
zeroPosition: this.checkNaN(T),
|
|
361
369
|
individualMax: this.checkNaN(z),
|
|
362
|
-
comment:
|
|
370
|
+
comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[p] || ""
|
|
363
371
|
};
|
|
364
|
-
}),
|
|
365
|
-
const y = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * p : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar * l + this.slot.bar * p * this.absoluteDataset.filter((
|
|
372
|
+
}), f = r.absoluteValues.map((x) => b.min >= 0 ? (x - Math.abs(b.min)) / (b.max - Math.abs(b.min)) : (x + Math.abs(b.min)) / (b.max + Math.abs(b.min))), E = r.series.map((x, p) => {
|
|
373
|
+
const y = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * p : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar * l + this.slot.bar * p * this.absoluteDataset.filter((L) => L.type === "bar").filter((L) => !this.segregatedSeries.includes(L.id)).length;
|
|
366
374
|
return {
|
|
367
375
|
yOffset: this.checkNaN(F),
|
|
368
376
|
individualHeight: this.checkNaN(C),
|
|
369
377
|
x: this.checkNaN(y),
|
|
370
|
-
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(F) - (this.checkNaN(C) *
|
|
371
|
-
value:
|
|
378
|
+
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(F) - (this.checkNaN(C) * f[p] || 0)),
|
|
379
|
+
value: r.absoluteValues[p],
|
|
372
380
|
zeroPosition: this.checkNaN(T),
|
|
373
381
|
individualMax: this.checkNaN(z),
|
|
374
|
-
comment:
|
|
382
|
+
comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[p] || ""
|
|
375
383
|
};
|
|
376
384
|
}), A = I.ticks.map((x) => ({
|
|
377
385
|
y: x >= 0 ? T - C * (x / z) : T + C * Math.abs(x) / z,
|
|
378
386
|
value: x,
|
|
379
|
-
prefix:
|
|
380
|
-
suffix:
|
|
381
|
-
datapoint:
|
|
387
|
+
prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
388
|
+
suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
389
|
+
datapoint: r
|
|
382
390
|
})), M = b.ticks.map((x) => {
|
|
383
391
|
const p = (x - b.min) / (b.max - b.min);
|
|
384
392
|
return {
|
|
385
|
-
y: x >= 0 ?
|
|
393
|
+
y: x >= 0 ? i - C * p : i + C * p,
|
|
386
394
|
value: x,
|
|
387
|
-
prefix:
|
|
388
|
-
suffix:
|
|
389
|
-
datapoint:
|
|
395
|
+
prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
396
|
+
suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
397
|
+
datapoint: r
|
|
390
398
|
};
|
|
391
399
|
});
|
|
392
400
|
return {
|
|
393
|
-
...
|
|
401
|
+
...r,
|
|
394
402
|
yOffset: F,
|
|
395
403
|
autoScaleYLabels: M,
|
|
396
404
|
individualHeight: C,
|
|
397
|
-
scaleYLabels:
|
|
398
|
-
individualScale:
|
|
399
|
-
individualMax:
|
|
400
|
-
zeroPosition:
|
|
401
|
-
plots:
|
|
405
|
+
scaleYLabels: r.autoScaling ? M : A,
|
|
406
|
+
individualScale: r.autoScaling ? b : I,
|
|
407
|
+
individualMax: r.autoScaling ? G : z,
|
|
408
|
+
zeroPosition: r.autoScaling ? i : T,
|
|
409
|
+
plots: r.autoScaling ? E : n
|
|
402
410
|
};
|
|
403
411
|
});
|
|
404
412
|
},
|
|
@@ -406,139 +414,139 @@ const Je = J(), Qe = {
|
|
|
406
414
|
return this.absoluteDataset.length;
|
|
407
415
|
},
|
|
408
416
|
activeSeriesWithStackRatios() {
|
|
409
|
-
return this.assignStackRatios(this.absoluteDataset.filter((
|
|
417
|
+
return this.assignStackRatios(this.absoluteDataset.filter((r) => !this.segregatedSeries.includes(r.id)));
|
|
410
418
|
},
|
|
411
419
|
lineSet() {
|
|
412
|
-
return this.activeSeriesWithStackRatios.filter((
|
|
413
|
-
this.checkAutoScaleError(
|
|
414
|
-
const l = Math.min(...
|
|
415
|
-
ratios:
|
|
420
|
+
return this.activeSeriesWithStackRatios.filter((r) => r.type === "line").map((r) => {
|
|
421
|
+
this.checkAutoScaleError(r);
|
|
422
|
+
const l = Math.min(...r.absoluteValues.filter((y) => ![void 0, null].includes(y))), o = Math.max(...r.absoluteValues.filter((y) => ![void 0, null].includes(y))) || 1, t = {
|
|
423
|
+
ratios: r.absoluteValues.filter((y) => ![null, void 0].includes(y)).map((y) => (y - l) / (o - l)),
|
|
416
424
|
valueMin: l,
|
|
417
425
|
valueMax: o
|
|
418
426
|
}, e = {
|
|
419
|
-
max:
|
|
420
|
-
min:
|
|
421
|
-
}, N =
|
|
422
|
-
const
|
|
427
|
+
max: r.scaleMax || Math.max(...r.absoluteValues) || 1,
|
|
428
|
+
min: r.scaleMin || (Math.min(...r.absoluteValues) > 0 ? 0 : Math.min(...r.absoluteValues))
|
|
429
|
+
}, N = r.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, w = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * _ : e.max, N), I = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax === t.valueMin ? t.valueMax * _ : t.valueMax, N), b = w.min >= 0 ? 0 : Math.abs(w.min), V = 0, v = w.max + Math.abs(b), z = I.max + Math.abs(V), G = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - r.cumulatedStackRatio) : 0, F = this.mutableConfig.isStacked ? this.drawingArea.height * r.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - G - F * b / v, T = this.drawingArea.bottom - G - F * V / z, i = r.series.map((y, L) => {
|
|
430
|
+
const j = this.mutableConfig.useIndividualScale ? (r.absoluteValues[L] + Math.abs(b)) / v : this.ratioToMax(y);
|
|
423
431
|
return {
|
|
424
|
-
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line *
|
|
425
|
-
y: this.checkNaN(this.drawingArea.bottom - G - F *
|
|
426
|
-
value:
|
|
427
|
-
comment:
|
|
432
|
+
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * L),
|
|
433
|
+
y: this.checkNaN(this.drawingArea.bottom - G - F * j),
|
|
434
|
+
value: r.absoluteValues[L],
|
|
435
|
+
comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[L] || ""
|
|
428
436
|
};
|
|
429
|
-
}), h =
|
|
430
|
-
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line *
|
|
437
|
+
}), h = r.absoluteValues.map((y) => I.min >= 0 ? (y - Math.abs(I.min)) / (I.max - Math.abs(I.min)) : (y + Math.abs(I.min)) / (I.max + Math.abs(I.min))), n = r.series.map((y, L) => [void 0, null].includes(r.absoluteValues[L]) ? {
|
|
438
|
+
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * L),
|
|
431
439
|
y: C,
|
|
432
|
-
value:
|
|
433
|
-
comment:
|
|
440
|
+
value: r.absoluteValues[L],
|
|
441
|
+
comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[L] || ""
|
|
434
442
|
} : {
|
|
435
|
-
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line *
|
|
436
|
-
y: this.checkNaN(this.drawingArea.bottom - G - (F * h[
|
|
437
|
-
value:
|
|
438
|
-
comment:
|
|
439
|
-
}),
|
|
443
|
+
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * L),
|
|
444
|
+
y: this.checkNaN(this.drawingArea.bottom - G - (F * h[L] || 0)),
|
|
445
|
+
value: r.absoluteValues[L],
|
|
446
|
+
comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[L] || ""
|
|
447
|
+
}), f = this.createSmoothPath(i), E = this.createSmoothPath(n), A = this.createStraightPath(i), M = this.createStraightPath(n), x = w.ticks.map((y) => ({
|
|
440
448
|
y: y >= 0 ? C - F * (y / v) : C + F * Math.abs(y) / v,
|
|
441
449
|
value: y,
|
|
442
|
-
prefix:
|
|
443
|
-
suffix:
|
|
444
|
-
datapoint:
|
|
450
|
+
prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
451
|
+
suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
452
|
+
datapoint: r
|
|
445
453
|
})), p = I.ticks.map((y) => {
|
|
446
|
-
const
|
|
454
|
+
const L = (y - I.min) / (I.max - I.min);
|
|
447
455
|
return {
|
|
448
|
-
y: y >= 0 ? T - F *
|
|
456
|
+
y: y >= 0 ? T - F * L : T + F * L,
|
|
449
457
|
value: y,
|
|
450
|
-
prefix:
|
|
451
|
-
suffix:
|
|
452
|
-
datapoint:
|
|
458
|
+
prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
459
|
+
suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
460
|
+
datapoint: r
|
|
453
461
|
};
|
|
454
462
|
});
|
|
455
463
|
return {
|
|
456
|
-
...
|
|
464
|
+
...r,
|
|
457
465
|
yOffset: G,
|
|
458
466
|
autoScaleYLabels: p,
|
|
459
467
|
individualHeight: F,
|
|
460
|
-
scaleYLabels:
|
|
461
|
-
individualScale:
|
|
462
|
-
individualMax:
|
|
463
|
-
zeroPosition:
|
|
464
|
-
curve:
|
|
465
|
-
plots:
|
|
466
|
-
area:
|
|
467
|
-
straight:
|
|
468
|
+
scaleYLabels: r.autoScaling ? p : x,
|
|
469
|
+
individualScale: r.autoScaling ? I : w,
|
|
470
|
+
individualMax: r.autoScaling ? z : v,
|
|
471
|
+
zeroPosition: r.autoScaling ? T : C,
|
|
472
|
+
curve: r.autoScaling ? E : f,
|
|
473
|
+
plots: r.autoScaling ? n : i,
|
|
474
|
+
area: r.useArea ? this.mutableConfig.useIndividualScale ? this.createIndividualArea(r.autoScaling ? n : i, r.autoScaling ? T : C) : this.createArea(i) : "",
|
|
475
|
+
straight: r.autoScaling ? M : A
|
|
468
476
|
};
|
|
469
477
|
});
|
|
470
478
|
},
|
|
471
479
|
plotSet() {
|
|
472
|
-
return this.activeSeriesWithStackRatios.filter((
|
|
473
|
-
this.checkAutoScaleError(
|
|
474
|
-
const l = Math.min(...
|
|
475
|
-
ratios:
|
|
480
|
+
return this.activeSeriesWithStackRatios.filter((r) => r.type === "plot").map((r) => {
|
|
481
|
+
this.checkAutoScaleError(r);
|
|
482
|
+
const l = Math.min(...r.absoluteValues.filter((A) => ![null, void 0].includes(A))), o = Math.max(...r.absoluteValues.filter((A) => ![null, void 0].includes(A))) || 1, t = {
|
|
483
|
+
ratios: r.absoluteValues.filter((A) => ![null, void 0].includes(A)).map((A) => (A - l) / (o - l)),
|
|
476
484
|
valueMin: l,
|
|
477
485
|
valueMax: o
|
|
478
486
|
}, e = {
|
|
479
|
-
max:
|
|
480
|
-
min:
|
|
481
|
-
}, N =
|
|
482
|
-
const x = this.mutableConfig.useIndividualScale ? (
|
|
487
|
+
max: r.scaleMax || Math.max(...r.absoluteValues) || 1,
|
|
488
|
+
min: r.scaleMin || Math.min(...r.absoluteValues) > 0 ? 0 : Math.min(...r.absoluteValues)
|
|
489
|
+
}, N = r.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, w = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * _ : e.max, N), I = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax === t.valueMin ? t.valueMax * _ : t.valueMax, N), b = w.min >= 0 ? 0 : Math.abs(w.min), V = 0, v = w.max + b, z = I.max + Math.abs(V), G = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - r.cumulatedStackRatio) : 0, F = this.mutableConfig.isStacked ? this.drawingArea.height * r.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - G - F * b / v, T = this.drawingArea.bottom - G - F * V / z, i = r.series.map((A, M) => {
|
|
490
|
+
const x = this.mutableConfig.useIndividualScale ? (r.absoluteValues[M] + Math.abs(b)) / v : this.ratioToMax(A);
|
|
483
491
|
return {
|
|
484
492
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * M),
|
|
485
493
|
y: this.checkNaN(this.drawingArea.bottom - G - F * x),
|
|
486
|
-
value:
|
|
487
|
-
comment:
|
|
494
|
+
value: r.absoluteValues[M],
|
|
495
|
+
comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[M] || ""
|
|
488
496
|
};
|
|
489
|
-
}), h =
|
|
497
|
+
}), h = r.absoluteValues.map((A) => I.min >= 0 ? (A - Math.abs(I.min)) / (I.max - Math.abs(I.min)) : (A + Math.abs(I.min)) / (I.max + Math.abs(I.min))), n = r.series.map((A, M) => ({
|
|
490
498
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * M),
|
|
491
499
|
y: this.checkNaN(this.drawingArea.bottom - G - (F * h[M] || 0)),
|
|
492
|
-
value:
|
|
493
|
-
comment:
|
|
494
|
-
})),
|
|
500
|
+
value: r.absoluteValues[M],
|
|
501
|
+
comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[M] || ""
|
|
502
|
+
})), f = w.ticks.map((A) => ({
|
|
495
503
|
y: A >= 0 ? C - F * (A / v) : C + F * Math.abs(A) / v,
|
|
496
504
|
value: A,
|
|
497
|
-
prefix:
|
|
498
|
-
suffix:
|
|
499
|
-
datapoint:
|
|
500
|
-
})),
|
|
505
|
+
prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
506
|
+
suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
507
|
+
datapoint: r
|
|
508
|
+
})), E = I.ticks.map((A) => {
|
|
501
509
|
const M = (A - I.min) / (I.max - I.min);
|
|
502
510
|
return {
|
|
503
511
|
y: A >= 0 ? T - F * M : T + F * M,
|
|
504
512
|
value: A,
|
|
505
|
-
prefix:
|
|
506
|
-
suffix:
|
|
507
|
-
datapoint:
|
|
513
|
+
prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
514
|
+
suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
515
|
+
datapoint: r
|
|
508
516
|
};
|
|
509
517
|
});
|
|
510
518
|
return {
|
|
511
|
-
...
|
|
519
|
+
...r,
|
|
512
520
|
yOffset: G,
|
|
513
|
-
autoScaleYLabels:
|
|
521
|
+
autoScaleYLabels: E,
|
|
514
522
|
individualHeight: F,
|
|
515
|
-
scaleYLabels:
|
|
516
|
-
individualScale:
|
|
517
|
-
individualMax:
|
|
518
|
-
zeroPosition:
|
|
519
|
-
plots:
|
|
523
|
+
scaleYLabels: r.autoScaling ? E : f,
|
|
524
|
+
individualScale: r.autoScaling ? I : w,
|
|
525
|
+
individualMax: r.autoScaling ? z : v,
|
|
526
|
+
zeroPosition: r.autoScaling ? T : C,
|
|
527
|
+
plots: r.autoScaling ? n : i
|
|
520
528
|
};
|
|
521
529
|
});
|
|
522
530
|
},
|
|
523
531
|
drawingArea() {
|
|
524
|
-
const
|
|
532
|
+
const r = this.mutableConfig.useIndividualScale && this.FINAL_CONFIG.chart.grid.labels.show ? this.absoluteDataset.filter((l) => !this.segregatedSeries.includes(l.id)).length * (this.mutableConfig.isStacked ? 0 : this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth) : 0;
|
|
525
533
|
return {
|
|
526
534
|
top: this.FINAL_CONFIG.chart.padding.top,
|
|
527
535
|
right: this.width - this.FINAL_CONFIG.chart.padding.right,
|
|
528
536
|
bottom: this.height - this.FINAL_CONFIG.chart.padding.bottom,
|
|
529
|
-
left: this.FINAL_CONFIG.chart.padding.left +
|
|
537
|
+
left: this.FINAL_CONFIG.chart.padding.left + r,
|
|
530
538
|
height: this.height - (this.FINAL_CONFIG.chart.padding.top + this.FINAL_CONFIG.chart.padding.bottom),
|
|
531
|
-
width: this.width - (this.FINAL_CONFIG.chart.padding.right + this.FINAL_CONFIG.chart.padding.left +
|
|
539
|
+
width: this.width - (this.FINAL_CONFIG.chart.padding.right + this.FINAL_CONFIG.chart.padding.left + r)
|
|
532
540
|
};
|
|
533
541
|
},
|
|
534
542
|
max() {
|
|
535
|
-
return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax ? this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax : Math.max(...this.safeDataset.filter((
|
|
543
|
+
return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax ? this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax : Math.max(...this.safeDataset.filter((r) => !this.segregatedSeries.includes(r.id)).map((r) => Math.max(...r.series)));
|
|
536
544
|
},
|
|
537
545
|
min() {
|
|
538
546
|
if (this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin !== null)
|
|
539
547
|
return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin;
|
|
540
|
-
const
|
|
541
|
-
return
|
|
548
|
+
const r = Math.min(...this.safeDataset.filter((l) => !this.segregatedSeries.includes(l.id)).map((l) => Math.min(...l.series)));
|
|
549
|
+
return r > 0 ? 0 : r;
|
|
542
550
|
},
|
|
543
551
|
niceScale() {
|
|
544
552
|
return this.calculateNiceScaleWithExactExtremes(this.min, this.max < 0 ? 0 : this.max, this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps);
|
|
@@ -547,8 +555,8 @@ const Je = J(), Qe = {
|
|
|
547
555
|
return this.slicer.end - this.slicer.start;
|
|
548
556
|
},
|
|
549
557
|
timeLabels() {
|
|
550
|
-
const
|
|
551
|
-
for (let o = 0; o <
|
|
558
|
+
const r = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length)), l = [];
|
|
559
|
+
for (let o = 0; o < r; o += 1)
|
|
552
560
|
l.push({
|
|
553
561
|
text: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[o] || String(o),
|
|
554
562
|
absoluteIndex: o
|
|
@@ -557,24 +565,24 @@ const Je = J(), Qe = {
|
|
|
557
565
|
},
|
|
558
566
|
slot() {
|
|
559
567
|
return {
|
|
560
|
-
bar: this.drawingArea.width / this.maxSeries / this.safeDataset.filter((
|
|
568
|
+
bar: this.drawingArea.width / this.maxSeries / this.safeDataset.filter((r) => r.type === "bar").filter((r) => !this.segregatedSeries.includes(r.id)).length,
|
|
561
569
|
plot: this.drawingArea.width / this.maxSeries,
|
|
562
570
|
line: this.drawingArea.width / this.maxSeries
|
|
563
571
|
};
|
|
564
572
|
},
|
|
565
573
|
barSlot() {
|
|
566
|
-
const
|
|
567
|
-
return this.drawingArea.width / this.maxSeries /
|
|
574
|
+
const r = this.safeDataset.filter((l) => l.type === "bar").filter((l) => !this.segregatedSeries.includes(l.id)).length;
|
|
575
|
+
return this.drawingArea.width / this.maxSeries / r - this.barPeriodGap * r;
|
|
568
576
|
},
|
|
569
577
|
barPeriodGap() {
|
|
570
578
|
return this.slot.line * this.FINAL_CONFIG.bar.periodGap;
|
|
571
579
|
},
|
|
572
580
|
maxSlot() {
|
|
573
|
-
return Math.max(...Object.values(this.slot).filter((
|
|
581
|
+
return Math.max(...Object.values(this.slot).filter((r) => r !== 1 / 0));
|
|
574
582
|
},
|
|
575
583
|
table() {
|
|
576
584
|
if (this.safeDataset.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
577
|
-
const
|
|
585
|
+
const r = this.relativeDataset.map((o) => ({
|
|
578
586
|
label: o.name,
|
|
579
587
|
color: o.color,
|
|
580
588
|
type: o.type
|
|
@@ -584,15 +592,15 @@ const Je = J(), Qe = {
|
|
|
584
592
|
this.relativeDataset.forEach((e) => {
|
|
585
593
|
t.push(this.canShowValue(e.absoluteValues[d]) ? Number(e.absoluteValues[d].toFixed(this.FINAL_CONFIG.table.rounding)) : "");
|
|
586
594
|
}), l.push(t);
|
|
587
|
-
}), { head:
|
|
595
|
+
}), { head: r, body: l };
|
|
588
596
|
},
|
|
589
597
|
dataTable() {
|
|
590
|
-
const
|
|
598
|
+
const r = this.FINAL_CONFIG.table.showSum;
|
|
591
599
|
let l = [""].concat(this.relativeDataset.map((e) => e.name));
|
|
592
|
-
|
|
600
|
+
r && (l = l.concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'));
|
|
593
601
|
let o = [];
|
|
594
602
|
for (let e = 0; e < this.maxSeries; e += 1) {
|
|
595
|
-
const N = this.relativeDataset.map((_) => _.absoluteValues[e] ?? 0).reduce((_,
|
|
603
|
+
const N = this.relativeDataset.map((_) => _.absoluteValues[e] ?? 0).reduce((_, w) => _ + w, 0);
|
|
596
604
|
o.push(
|
|
597
605
|
[
|
|
598
606
|
this.timeLabels[e].text ?? "-"
|
|
@@ -607,7 +615,7 @@ const Je = J(), Qe = {
|
|
|
607
615
|
r: this.FINAL_CONFIG.table.rounding
|
|
608
616
|
})
|
|
609
617
|
)
|
|
610
|
-
)).concat(
|
|
618
|
+
)).concat(r ? (N ?? 0).toFixed(this.FINAL_CONFIG.table.rounding) : [])
|
|
611
619
|
);
|
|
612
620
|
}
|
|
613
621
|
const d = {
|
|
@@ -637,20 +645,20 @@ const Je = J(), Qe = {
|
|
|
637
645
|
};
|
|
638
646
|
},
|
|
639
647
|
selectedSeries() {
|
|
640
|
-
return this.relativeDataset.map((
|
|
641
|
-
slotAbsoluteIndex:
|
|
642
|
-
shape:
|
|
643
|
-
name:
|
|
644
|
-
color:
|
|
645
|
-
type:
|
|
646
|
-
value:
|
|
647
|
-
comments:
|
|
648
|
-
prefix:
|
|
649
|
-
suffix:
|
|
648
|
+
return this.relativeDataset.map((r) => ({
|
|
649
|
+
slotAbsoluteIndex: r.slotAbsoluteIndex,
|
|
650
|
+
shape: r.shape || null,
|
|
651
|
+
name: r.name,
|
|
652
|
+
color: r.color,
|
|
653
|
+
type: r.type,
|
|
654
|
+
value: r.absoluteValues.find((l, o) => o === this.selectedSerieIndex),
|
|
655
|
+
comments: r.comments || [],
|
|
656
|
+
prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
657
|
+
suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix
|
|
650
658
|
}));
|
|
651
659
|
},
|
|
652
660
|
tooltipContent() {
|
|
653
|
-
let
|
|
661
|
+
let r = "", l = this.selectedSeries.map((t) => t.value).filter((t) => this.isSafeValue(t) && t !== null).reduce((t, e) => Math.abs(t) + Math.abs(e), 0);
|
|
654
662
|
const o = this.timeLabels[this.selectedSerieIndex], d = this.FINAL_CONFIG.chart.tooltip.customFormat;
|
|
655
663
|
return this.isFunction(d) && this.functionReturnsString(() => d({
|
|
656
664
|
seriesIndex: this.selectedSerieIndex,
|
|
@@ -668,7 +676,7 @@ const Je = J(), Qe = {
|
|
|
668
676
|
lines: this.lineSet,
|
|
669
677
|
plots: this.plotSet,
|
|
670
678
|
config: this.FINAL_CONFIG
|
|
671
|
-
}) : (o && o.text && this.FINAL_CONFIG.chart.tooltip.showTimeLabel && (
|
|
679
|
+
}) : (o && o.text && this.FINAL_CONFIG.chart.tooltip.showTimeLabel && (r += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${o.text}</div>`), this.selectedSeries.forEach((t) => {
|
|
672
680
|
if (this.isSafeValue(t.value)) {
|
|
673
681
|
let e = "", N = "";
|
|
674
682
|
switch (this.icons[t.type]) {
|
|
@@ -676,7 +684,7 @@ const Je = J(), Qe = {
|
|
|
676
684
|
e = `<svg viewBox="0 0 40 40" height="14" width="14">${this.$slots.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${t.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${this.$slots.pattern ? `url(#pattern_${this.uniqueId}_${t.slotAbsoluteIndex}` : t.color}" /></svg>`;
|
|
677
685
|
break;
|
|
678
686
|
case "line":
|
|
679
|
-
!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? N = `<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" />` : t.shape === "triangle" ? N = `<path d="${
|
|
687
|
+
!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? N = `<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" />` : t.shape === "triangle" ? N = `<path d="${D({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "square" ? N = `<path d="${D({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "diamond" ? N = `<path d="${D({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "pentagon" ? N = `<path d="${D({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "hexagon" ? N = `<path d="${D({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "star" && (N = `<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" points="${X({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), e = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${t.color}" />${N}</svg>`;
|
|
680
688
|
break;
|
|
681
689
|
case "plot":
|
|
682
690
|
if (!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape)) {
|
|
@@ -688,27 +696,27 @@ const Je = J(), Qe = {
|
|
|
688
696
|
break;
|
|
689
697
|
}
|
|
690
698
|
if (t.shape === "triangle") {
|
|
691
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
699
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${D({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
692
700
|
break;
|
|
693
701
|
}
|
|
694
702
|
if (t.shape === "square") {
|
|
695
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
703
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${D({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
696
704
|
break;
|
|
697
705
|
}
|
|
698
706
|
if (t.shape === "diamond") {
|
|
699
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
707
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${D({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
700
708
|
break;
|
|
701
709
|
}
|
|
702
710
|
if (t.shape === "pentagon") {
|
|
703
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
711
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${D({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
704
712
|
break;
|
|
705
713
|
}
|
|
706
714
|
if (t.shape === "hexagon") {
|
|
707
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
715
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${D({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
708
716
|
break;
|
|
709
717
|
}
|
|
710
718
|
}
|
|
711
|
-
|
|
719
|
+
r += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${e}</div> ${t.name}: <b>${this.FINAL_CONFIG.chart.tooltip.showValue ? this.applyDataLabel(
|
|
712
720
|
t.type === "line" ? this.FINAL_CONFIG.line.labels.formatter : t.type === "bar" ? this.FINAL_CONFIG.bar.labels.formatter : this.FINAL_CONFIG.plot.labels.formatter,
|
|
713
721
|
t.value,
|
|
714
722
|
this.dataLabel({
|
|
@@ -722,9 +730,9 @@ const Je = J(), Qe = {
|
|
|
722
730
|
v: this.checkNaN(Math.abs(t.value) / l * 100),
|
|
723
731
|
s: "%",
|
|
724
732
|
r: this.FINAL_CONFIG.chart.tooltip.roundingPercentage
|
|
725
|
-
})})` : ""}</div>`, this.FINAL_CONFIG.chart.comments.showInTooltip && t.comments.length && t.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex] && (
|
|
733
|
+
})})` : ""}</div>`, this.FINAL_CONFIG.chart.comments.showInTooltip && t.comments.length && t.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex] && (r += `<div class="vue-data-ui-tooltip-comment" style="background:${t.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${t.color}">${t.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex]}</div>`);
|
|
726
734
|
}
|
|
727
|
-
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${this.FINAL_CONFIG.chart.tooltip.color}">${
|
|
735
|
+
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${this.FINAL_CONFIG.chart.tooltip.color}">${r}</div>`);
|
|
728
736
|
},
|
|
729
737
|
svg() {
|
|
730
738
|
return {
|
|
@@ -733,9 +741,9 @@ const Je = J(), Qe = {
|
|
|
733
741
|
};
|
|
734
742
|
},
|
|
735
743
|
yLabels() {
|
|
736
|
-
return this.niceScale.ticks.map((
|
|
737
|
-
y:
|
|
738
|
-
value:
|
|
744
|
+
return this.niceScale.ticks.map((r) => ({
|
|
745
|
+
y: r >= 0 ? this.zero - this.drawingArea.height * this.ratioToMax(r) : this.zero + this.drawingArea.height * this.ratioToMax(Math.abs(r)),
|
|
746
|
+
value: r,
|
|
739
747
|
prefix: this.FINAL_CONFIG.chart.labels.prefix,
|
|
740
748
|
suffix: this.FINAL_CONFIG.chart.labels.suffix
|
|
741
749
|
}));
|
|
@@ -745,52 +753,52 @@ const Je = J(), Qe = {
|
|
|
745
753
|
}
|
|
746
754
|
},
|
|
747
755
|
mounted() {
|
|
748
|
-
this.prepareChart(), this.setupSlicer(), document.addEventListener("mousemove", (
|
|
756
|
+
this.prepareChart(), this.setupSlicer(), document.addEventListener("mousemove", (r) => {
|
|
749
757
|
this.clientPosition = {
|
|
750
|
-
x:
|
|
751
|
-
y:
|
|
758
|
+
x: r.clientX,
|
|
759
|
+
y: r.clientY
|
|
752
760
|
};
|
|
753
761
|
});
|
|
754
762
|
},
|
|
755
763
|
methods: {
|
|
756
|
-
abbreviate:
|
|
757
|
-
adaptColorToBackground:
|
|
758
|
-
applyDataLabel:
|
|
759
|
-
assignStackRatios:
|
|
760
|
-
calcLinearProgression:
|
|
761
|
-
calculateNiceScaleWithExactExtremes:
|
|
762
|
-
checkNaN:
|
|
763
|
-
closestDecimal:
|
|
764
|
-
convertColorToHex:
|
|
765
|
-
convertConfigColors:
|
|
766
|
-
convertCustomPalette:
|
|
767
|
-
createCsvContent:
|
|
768
|
-
createSmoothPath:
|
|
769
|
-
createStraightPath:
|
|
770
|
-
createTSpans:
|
|
764
|
+
abbreviate: ie,
|
|
765
|
+
adaptColorToBackground: ae,
|
|
766
|
+
applyDataLabel: le,
|
|
767
|
+
assignStackRatios: se,
|
|
768
|
+
calcLinearProgression: ne,
|
|
769
|
+
calculateNiceScaleWithExactExtremes: he,
|
|
770
|
+
checkNaN: oe,
|
|
771
|
+
closestDecimal: ce,
|
|
772
|
+
convertColorToHex: de,
|
|
773
|
+
convertConfigColors: ue,
|
|
774
|
+
convertCustomPalette: ge,
|
|
775
|
+
createCsvContent: fe,
|
|
776
|
+
createSmoothPath: Ie,
|
|
777
|
+
createStraightPath: me,
|
|
778
|
+
createTSpans: Ne,
|
|
771
779
|
dataLabel: U,
|
|
772
|
-
downloadCsv:
|
|
773
|
-
error:
|
|
774
|
-
forceValidValue:
|
|
775
|
-
functionReturnsString:
|
|
776
|
-
hasDeepProperty:
|
|
777
|
-
isFunction:
|
|
778
|
-
isSafeValue:
|
|
779
|
-
largestTriangleThreeBucketsArray:
|
|
780
|
-
objectIsEmpty:
|
|
781
|
-
setOpacity:
|
|
782
|
-
shiftHue:
|
|
783
|
-
translateSize:
|
|
784
|
-
treeShake:
|
|
785
|
-
useMouse:
|
|
780
|
+
downloadCsv: xe,
|
|
781
|
+
error: be,
|
|
782
|
+
forceValidValue: Fe,
|
|
783
|
+
functionReturnsString: _e,
|
|
784
|
+
hasDeepProperty: Ae,
|
|
785
|
+
isFunction: ye,
|
|
786
|
+
isSafeValue: Ce,
|
|
787
|
+
largestTriangleThreeBucketsArray: Le,
|
|
788
|
+
objectIsEmpty: Se,
|
|
789
|
+
setOpacity: ke,
|
|
790
|
+
shiftHue: we,
|
|
791
|
+
translateSize: Oe,
|
|
792
|
+
treeShake: Ge,
|
|
793
|
+
useMouse: Te,
|
|
786
794
|
useNestedProp: Z,
|
|
787
|
-
setUserOptionsVisibility(
|
|
788
|
-
this.showUserOptionsOnChartHover && (this.userOptionsVisible =
|
|
795
|
+
setUserOptionsVisibility(r = !1) {
|
|
796
|
+
this.showUserOptionsOnChartHover && (this.userOptionsVisible = r);
|
|
789
797
|
},
|
|
790
798
|
toggleAnnotator() {
|
|
791
799
|
this.isAnnotator = !this.isAnnotator;
|
|
792
800
|
},
|
|
793
|
-
selectTimeLabel(
|
|
801
|
+
selectTimeLabel(r, l) {
|
|
794
802
|
const o = this.relativeDataset.map((d) => ({
|
|
795
803
|
shape: d.shape || null,
|
|
796
804
|
name: d.name,
|
|
@@ -803,24 +811,24 @@ const Je = J(), Qe = {
|
|
|
803
811
|
}));
|
|
804
812
|
this.$emit("selectTimeLabel", {
|
|
805
813
|
datapoint: o,
|
|
806
|
-
absoluteIndex:
|
|
807
|
-
label:
|
|
814
|
+
absoluteIndex: r.absoluteIndex,
|
|
815
|
+
label: r.text
|
|
808
816
|
});
|
|
809
817
|
},
|
|
810
|
-
getHighlightAreaPosition(
|
|
811
|
-
const l = this.drawingArea.left + this.drawingArea.width / this.maxSeries * (
|
|
818
|
+
getHighlightAreaPosition(r) {
|
|
819
|
+
const l = this.drawingArea.left + this.drawingArea.width / this.maxSeries * (r.from - this.slicer.start), o = this.drawingArea.width / (this.slicer.end - this.slicer.start) * r.span < 0 ? 1e-5 : this.drawingArea.width / (this.slicer.end - this.slicer.start) * r.span;
|
|
812
820
|
return {
|
|
813
821
|
x: l < this.drawingArea.left ? this.drawingArea.left : l,
|
|
814
822
|
width: o
|
|
815
823
|
};
|
|
816
824
|
},
|
|
817
825
|
prepareConfig() {
|
|
818
|
-
const
|
|
826
|
+
const r = ve().vue_ui_xy;
|
|
819
827
|
if (!Object.keys(this.config || {}).length)
|
|
820
|
-
return
|
|
828
|
+
return r;
|
|
821
829
|
const l = this.useNestedProp({
|
|
822
830
|
userConfig: this.config,
|
|
823
|
-
defaultConfig:
|
|
831
|
+
defaultConfig: r
|
|
824
832
|
});
|
|
825
833
|
return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ? l.chart.highlightArea = this.config.chart.highlightArea : l.chart.highlightArea = [this.config.chart.highlightArea]), this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMin") ? l.chart.grid.labels.yAxis.scaleMin = this.config.chart.grid.labels.yAxis.scaleMin : l.chart.grid.labels.yAxis.scaleMin = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMax") ? l.chart.grid.labels.yAxis.scaleMax = this.config.chart.grid.labels.yAxis.scaleMax : l.chart.grid.labels.yAxis.scaleMax = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.startIndex") ? l.chart.zoom.startIndex = this.config.chart.zoom.startIndex : l.chart.zoom.startIndex = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.endIndex") ? l.chart.zoom.endIndex = this.config.chart.zoom.endIndex : l.chart.zoom.endIndex = null, l.theme ? {
|
|
826
834
|
...Z({
|
|
@@ -834,17 +842,17 @@ const Je = J(), Qe = {
|
|
|
834
842
|
if (this.objectIsEmpty(this.dataset) ? this.error({
|
|
835
843
|
componentName: "VueUiXy",
|
|
836
844
|
type: "dataset"
|
|
837
|
-
}) : this.dataset.forEach((
|
|
838
|
-
[null, void 0].includes(
|
|
845
|
+
}) : this.dataset.forEach((r, l) => {
|
|
846
|
+
[null, void 0].includes(r.name) && this.error({
|
|
839
847
|
componentName: "VueUiXy",
|
|
840
848
|
type: "datasetSerieAttribute",
|
|
841
849
|
property: "name (string)",
|
|
842
850
|
index: l
|
|
843
851
|
});
|
|
844
|
-
}), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((
|
|
845
|
-
|
|
852
|
+
}), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((r) => {
|
|
853
|
+
r.series.forEach((l, o) => {
|
|
846
854
|
this.isSafeValue(l) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
847
|
-
-----> The serie '${
|
|
855
|
+
-----> The serie '${r.name}' contains the value '${l}' at index ${o}.
|
|
848
856
|
'${l}' was converted to null to allow the chart to display.`);
|
|
849
857
|
});
|
|
850
858
|
}), this.showUserOptionsOnChartHover = this.FINAL_CONFIG.chart.userOptions.showOnChartHover, this.keepUserOptionState = this.FINAL_CONFIG.chart.userOptions.keepStateOnChartLeave, this.userOptionsVisible = !this.FINAL_CONFIG.chart.userOptions.showOnChartHover, this.mutableConfig = {
|
|
@@ -861,8 +869,8 @@ const Je = J(), Qe = {
|
|
|
861
869
|
this.FINAL_CONFIG.chart.title.show && (t = this.$refs.chartTitle, e = t.getBoundingClientRect().height);
|
|
862
870
|
let N = null, _ = 0;
|
|
863
871
|
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (N = this.$refs.chartSlicer.$el, _ = N.getBoundingClientRect().height);
|
|
864
|
-
let
|
|
865
|
-
this.FINAL_CONFIG.chart.legend.show && (
|
|
872
|
+
let w = null, I = 0;
|
|
873
|
+
this.FINAL_CONFIG.chart.legend.show && (w = this.$refs.chartLegend, I = w.getBoundingClientRect().height);
|
|
866
874
|
let b = 0;
|
|
867
875
|
this.$refs.source && (b = this.$refs.source.getBoundingClientRect().height);
|
|
868
876
|
let V = 0;
|
|
@@ -875,8 +883,8 @@ const Je = J(), Qe = {
|
|
|
875
883
|
} else
|
|
876
884
|
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;
|
|
877
885
|
},
|
|
878
|
-
selectMinimapIndex(
|
|
879
|
-
this.selectedMinimapIndex =
|
|
886
|
+
selectMinimapIndex(r) {
|
|
887
|
+
this.selectedMinimapIndex = r;
|
|
880
888
|
},
|
|
881
889
|
convertSizes() {
|
|
882
890
|
this.fontSizes.dataLabels = this.translateSize({
|
|
@@ -929,106 +937,106 @@ const Je = J(), Qe = {
|
|
|
929
937
|
toggleTooltip() {
|
|
930
938
|
this.mutableConfig.showTooltip = !this.mutableConfig.showTooltip;
|
|
931
939
|
},
|
|
932
|
-
checkAutoScaleError(
|
|
933
|
-
|
|
940
|
+
checkAutoScaleError(r) {
|
|
941
|
+
r.autoScaling && (this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${r.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${r.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
|
|
934
942
|
},
|
|
935
|
-
createArea(
|
|
936
|
-
if (!
|
|
937
|
-
const l = { x:
|
|
938
|
-
return
|
|
943
|
+
createArea(r) {
|
|
944
|
+
if (!r[0]) return [-10, -10, "", -10, -10];
|
|
945
|
+
const l = { x: r[0].x, y: this.zero }, o = { x: r.at(-1).x, y: this.zero }, d = [];
|
|
946
|
+
return r.forEach((t) => {
|
|
939
947
|
d.push(`${t.x},${t.y} `);
|
|
940
948
|
}), [l.x, l.y, ...d, o.x, o.y].toString();
|
|
941
949
|
},
|
|
942
|
-
createIndividualArea(
|
|
943
|
-
if (!
|
|
944
|
-
const o = { x:
|
|
945
|
-
return
|
|
950
|
+
createIndividualArea(r, l) {
|
|
951
|
+
if (!r[0]) return [-10, -10, "", -10, -10];
|
|
952
|
+
const o = { x: r[0] ? r[0].x : Math.min(...r.filter((e) => !!e).map((e) => e.x)), y: l }, d = { x: r.at(-1) ? r.at(-1).x : Math.min(...r.filter((e) => !!e).map((e) => e.x)), y: l }, t = [];
|
|
953
|
+
return r.filter((e) => !!e).forEach((e) => {
|
|
946
954
|
t.push(`${e.x},${e.y} `);
|
|
947
955
|
}), [o.x, o.y, ...t, d.x, d.y].toString();
|
|
948
956
|
},
|
|
949
957
|
createStar: X,
|
|
950
|
-
createPolygonPath:
|
|
951
|
-
fillArray(
|
|
952
|
-
let o = Array(
|
|
953
|
-
for (let d = 0; d < l.length && d <
|
|
958
|
+
createPolygonPath: D,
|
|
959
|
+
fillArray(r, l) {
|
|
960
|
+
let o = Array(r).fill(0);
|
|
961
|
+
for (let d = 0; d < l.length && d < r; d += 1)
|
|
954
962
|
o[d] = l[d];
|
|
955
963
|
return o;
|
|
956
964
|
},
|
|
957
965
|
async setupSlicer() {
|
|
958
966
|
(this.FINAL_CONFIG.chart.zoom.startIndex !== null || this.FINAL_CONFIG.chart.zoom.endIndex !== null) && this.$refs.chartSlicer ? (this.FINAL_CONFIG.chart.zoom.startIndex !== null && (await this.$nextTick(), await this.$nextTick(), this.$refs.chartSlicer.setStartValue(this.FINAL_CONFIG.chart.zoom.startIndex)), this.FINAL_CONFIG.chart.zoom.endIndex !== null && (await this.$nextTick(), await this.$nextTick(), this.$refs.chartSlicer.setEndValue(this.validSlicerEnd(this.FINAL_CONFIG.chart.zoom.endIndex + 1)))) : (this.slicer = {
|
|
959
967
|
start: 0,
|
|
960
|
-
end: Math.max(...this.dataset.map((
|
|
968
|
+
end: Math.max(...this.dataset.map((r) => this.largestTriangleThreeBucketsArray({ data: r.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length))
|
|
961
969
|
}, this.slicerStep += 1);
|
|
962
970
|
},
|
|
963
971
|
refreshSlicer() {
|
|
964
972
|
this.setupSlicer();
|
|
965
973
|
},
|
|
966
|
-
validSlicerEnd(
|
|
974
|
+
validSlicerEnd(r) {
|
|
967
975
|
const l = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length));
|
|
968
|
-
return
|
|
976
|
+
return r > l ? l : r < 0 || this.FINAL_CONFIG.chart.zoom.startIndex !== null && r < this.FINAL_CONFIG.chart.zoom.startIndex ? this.FINAL_CONFIG.chart.zoom.startIndex !== null ? this.FINAL_CONFIG.chart.zoom.startIndex + 1 : 1 : r;
|
|
969
977
|
},
|
|
970
|
-
calcRectHeight(
|
|
978
|
+
calcRectHeight(r) {
|
|
971
979
|
const l = ![null, void 0].includes(this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin) && this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin > 0 && this.min >= 0 ? this.drawingArea.bottom : this.zero;
|
|
972
|
-
return
|
|
980
|
+
return r.value >= 0 ? this.checkNaN(l - r.y <= 0 ? 1e-5 : l - r.y) : this.checkNaN(r.y - this.zero <= 0 ? 1e-5 : r.y - this.zero);
|
|
973
981
|
},
|
|
974
|
-
calcIndividualHeight(
|
|
975
|
-
return
|
|
982
|
+
calcIndividualHeight(r) {
|
|
983
|
+
return r.value >= 0 ? this.checkNaN(r.zeroPosition - r.y <= 0 ? 1e-5 : r.zeroPosition - r.y) : this.checkNaN(r.y - r.zeroPosition <= 0 ? 1e-5 : r.zeroPosition - r.y);
|
|
976
984
|
},
|
|
977
985
|
calcRectWidth() {
|
|
978
986
|
return this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.slot.line - this.drawingArea.width / this.maxSeries * 0.1 : this.slot.bar;
|
|
979
987
|
},
|
|
980
|
-
calcRectX(
|
|
981
|
-
return this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ?
|
|
988
|
+
calcRectX(r) {
|
|
989
|
+
return this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? r.x + this.drawingArea.width / this.maxSeries * 0.05 : r.x + this.slot.bar / 2;
|
|
982
990
|
},
|
|
983
|
-
calcRectY(
|
|
984
|
-
return
|
|
991
|
+
calcRectY(r) {
|
|
992
|
+
return r.value >= 0 ? r.y : this.zero;
|
|
985
993
|
},
|
|
986
|
-
calcIndividualRectY(
|
|
987
|
-
return
|
|
994
|
+
calcIndividualRectY(r) {
|
|
995
|
+
return r.value >= 0 ? r.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(r.zeroPosition) ? 0 : r.zeroPosition;
|
|
988
996
|
},
|
|
989
|
-
canShowValue(
|
|
990
|
-
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(
|
|
997
|
+
canShowValue(r) {
|
|
998
|
+
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(r);
|
|
991
999
|
},
|
|
992
|
-
findClosestValue(
|
|
993
|
-
let o = l[0], d = Math.abs(
|
|
1000
|
+
findClosestValue(r, l) {
|
|
1001
|
+
let o = l[0], d = Math.abs(r - l[0]);
|
|
994
1002
|
for (let t = 1; t < l.length; t += 1) {
|
|
995
|
-
const e = Math.abs(
|
|
996
|
-
e < d && l[t] <
|
|
1003
|
+
const e = Math.abs(r - l[t]);
|
|
1004
|
+
e < d && l[t] < r && (o = l[t], d = e);
|
|
997
1005
|
}
|
|
998
1006
|
return o;
|
|
999
1007
|
},
|
|
1000
|
-
ratioToMax(
|
|
1001
|
-
return
|
|
1008
|
+
ratioToMax(r) {
|
|
1009
|
+
return r / (this.canShowValue(this.absoluteMax) ? this.absoluteMax : 1);
|
|
1002
1010
|
},
|
|
1003
|
-
selectX(
|
|
1011
|
+
selectX(r) {
|
|
1004
1012
|
this.$emit(
|
|
1005
1013
|
"selectX",
|
|
1006
1014
|
{
|
|
1007
1015
|
dataset: this.relativeDataset.map((l) => ({
|
|
1008
1016
|
name: l.name,
|
|
1009
|
-
value: [null, void 0, NaN].includes(l.absoluteValues[
|
|
1017
|
+
value: [null, void 0, NaN].includes(l.absoluteValues[r]) ? null : l.absoluteValues[r],
|
|
1010
1018
|
color: l.color,
|
|
1011
1019
|
type: l.type
|
|
1012
1020
|
})),
|
|
1013
|
-
index:
|
|
1014
|
-
indexLabel: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[
|
|
1021
|
+
index: r,
|
|
1022
|
+
indexLabel: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[r]
|
|
1015
1023
|
}
|
|
1016
1024
|
);
|
|
1017
1025
|
},
|
|
1018
1026
|
getData() {
|
|
1019
|
-
return this.absoluteDataset.map((
|
|
1020
|
-
values:
|
|
1021
|
-
color:
|
|
1022
|
-
name:
|
|
1023
|
-
type:
|
|
1027
|
+
return this.absoluteDataset.map((r) => ({
|
|
1028
|
+
values: r.absoluteValues,
|
|
1029
|
+
color: r.color,
|
|
1030
|
+
name: r.name,
|
|
1031
|
+
type: r.type
|
|
1024
1032
|
}));
|
|
1025
1033
|
},
|
|
1026
|
-
segregate(
|
|
1027
|
-
if (this.segregatedSeries.includes(
|
|
1028
|
-
this.segregatedSeries = this.segregatedSeries.filter((l) => l !==
|
|
1034
|
+
segregate(r) {
|
|
1035
|
+
if (this.segregatedSeries.includes(r.id))
|
|
1036
|
+
this.segregatedSeries = this.segregatedSeries.filter((l) => l !== r.id);
|
|
1029
1037
|
else {
|
|
1030
1038
|
if (this.segregatedSeries.length + 1 === this.safeDataset.length) return;
|
|
1031
|
-
this.segregatedSeries.push(
|
|
1039
|
+
this.segregatedSeries.push(r.id);
|
|
1032
1040
|
}
|
|
1033
1041
|
this.$emit("selectLegend", this.relativeDataset.map((l) => ({
|
|
1034
1042
|
name: l.name,
|
|
@@ -1037,11 +1045,11 @@ const Je = J(), Qe = {
|
|
|
1037
1045
|
type: l.type
|
|
1038
1046
|
}))), this.segregateStep += 1;
|
|
1039
1047
|
},
|
|
1040
|
-
toggleTooltipVisibility(
|
|
1041
|
-
this.isTooltip =
|
|
1048
|
+
toggleTooltipVisibility(r, l = null) {
|
|
1049
|
+
this.isTooltip = r, r ? this.selectedSerieIndex = l : this.selectedSerieIndex = null;
|
|
1042
1050
|
},
|
|
1043
|
-
toggleFullscreen(
|
|
1044
|
-
this.isFullscreen =
|
|
1051
|
+
toggleFullscreen(r) {
|
|
1052
|
+
this.isFullscreen = r, this.step += 1;
|
|
1045
1053
|
},
|
|
1046
1054
|
showSpinnerPdf() {
|
|
1047
1055
|
this.isPrinting = !0;
|
|
@@ -1049,20 +1057,20 @@ const Je = J(), Qe = {
|
|
|
1049
1057
|
async generatePdf() {
|
|
1050
1058
|
this.showSpinnerPdf(), clearTimeout(this.__to__), this.isPrinting = !0, this.__to__ = setTimeout(async () => {
|
|
1051
1059
|
try {
|
|
1052
|
-
const { default:
|
|
1053
|
-
await
|
|
1060
|
+
const { default: r } = await import("./pdf-B7oVat64.js");
|
|
1061
|
+
await r({
|
|
1054
1062
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1055
1063
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy"
|
|
1056
1064
|
});
|
|
1057
|
-
} catch (
|
|
1058
|
-
console.error("Error generating PDF:",
|
|
1065
|
+
} catch (r) {
|
|
1066
|
+
console.error("Error generating PDF:", r);
|
|
1059
1067
|
} finally {
|
|
1060
1068
|
this.isPrinting = !1;
|
|
1061
1069
|
}
|
|
1062
1070
|
}, 100);
|
|
1063
1071
|
},
|
|
1064
1072
|
generateCsv() {
|
|
1065
|
-
const
|
|
1073
|
+
const r = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], l = ["", ...this.table.head.map((e) => e.label)], o = this.table.body, d = r.concat([l]).concat(o), t = this.createCsvContent(d);
|
|
1066
1074
|
this.downloadCsv({ csvContent: t, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
|
|
1067
1075
|
},
|
|
1068
1076
|
showSpinnerImage() {
|
|
@@ -1071,14 +1079,14 @@ const Je = J(), Qe = {
|
|
|
1071
1079
|
async generateImage() {
|
|
1072
1080
|
this.showSpinnerImage(), clearTimeout(this.__to__), this.isImaging = !0, this.__to__ = setTimeout(async () => {
|
|
1073
1081
|
try {
|
|
1074
|
-
const { default:
|
|
1075
|
-
await
|
|
1082
|
+
const { default: r } = await import("./img-DGzWcJ4Y.js");
|
|
1083
|
+
await r({
|
|
1076
1084
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1077
1085
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
1078
1086
|
format: "png"
|
|
1079
1087
|
});
|
|
1080
|
-
} catch (
|
|
1081
|
-
console.error("Error generating image:",
|
|
1088
|
+
} catch (r) {
|
|
1089
|
+
console.error("Error generating image:", r);
|
|
1082
1090
|
} finally {
|
|
1083
1091
|
this.isImaging = !1;
|
|
1084
1092
|
}
|
|
@@ -1090,48 +1098,51 @@ const Je = J(), Qe = {
|
|
|
1090
1098
|
ref: "noTitle",
|
|
1091
1099
|
class: "vue-data-ui-no-title-space",
|
|
1092
1100
|
style: "height:36px; width: 100%; background:transparent"
|
|
1093
|
-
}, $e = ["viewBox"], et = ["x", "y", "width", "height"], tt = { key: 1 },
|
|
1101
|
+
}, $e = ["viewBox"], et = ["x", "y", "width", "height"], tt = { key: 1 }, rt = { class: "vue-ui-xy-grid" }, it = ["stroke", "x1", "x2", "y1", "y2"], at = ["stroke", "x1", "x2", "y1", "y2"], lt = { key: 1 }, st = ["x1", "x2", "y1", "y2", "stroke"], nt = ["x1", "x2", "y1", "y2", "stroke"], ht = ["x1", "x2", "y1", "y2", "stroke"], ot = { key: 3 }, ct = ["x1", "x2", "y1", "y2", "stroke"], dt = ["id"], ut = ["stop-color"], gt = ["stop-color"], ft = ["stop-color"], It = ["id"], mt = ["stop-color"], Nt = ["stop-color"], xt = ["stop-color"], bt = ["id"], Ft = ["stop-color"], _t = ["stop-color"], At = ["id"], yt = ["stop-color"], Ct = ["stop-color"], Lt = ["id"], St = ["stop-color"], kt = ["stop-color"], wt = ["x", "y", "height", "width", "fill"], Ot = ["x", "y", "width"], Gt = ["x", "y", "height", "width", "fill"], vt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], zt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Mt = ["width", "x", "y"], pt = { key: 0 }, Tt = ["id"], Pt = ["fill"], Vt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Rt = ["x", "y", "font-size", "fill"], Dt = ["stroke", "x1", "x2", "y1", "y2"], Ht = { key: 2 }, Bt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Wt = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Et = { key: 4 }, Yt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], qt = ["fill", "font-size", "transform"], Xt = ["x1", "x2", "y1", "y2", "stroke"], Ut = ["x", "y", "font-size", "fill"], Zt = ["x1", "x2", "y1", "y2", "stroke"], Jt = ["x", "y", "font-size", "fill"], Qt = ["width", "x", "y"], Kt = { style: { width: "100%" } }, jt = { key: 0 }, $t = ["id"], er = ["fill"], tr = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], rr = ["x", "y", "font-size", "fill"], ir = ["d", "stroke", "stroke-width", "stroke-dasharray"], ar = ["d", "stroke", "stroke-width", "stroke-dasharray"], lr = { key: 5 }, sr = { key: 0 }, nr = ["d", "fill"], hr = ["d", "fill"], or = ["d", "fill"], cr = ["d", "fill"], dr = ["d", "stroke", "stroke-width", "stroke-dasharray"], ur = ["d", "stroke", "stroke-width", "stroke-dasharray"], gr = ["width", "x", "y"], fr = { style: { width: "100%" } }, Ir = { key: 3 }, mr = ["id"], Nr = ["fill"], xr = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], br = ["x", "y", "font-size", "fill"], Fr = { key: 6 }, _r = ["x", "y", "font-size", "fill"], Ar = ["x", "y", "font-size", "fill", "font-weight"], yr = { key: 7 }, Cr = ["x", "y", "font-size", "fill"], Lr = ["x", "y"], Sr = ["x", "y"], kr = { key: 8 }, wr = ["x", "y", "font-size", "fill"], Or = ["x", "y"], Gr = ["x", "y"], vr = ["x", "y", "font-size", "fill", "innerHTML"], zr = ["x", "y", "font-size", "fill", "innerHTML"], Mr = ["x", "y", "font-size", "fill", "innerHTML"], pr = ["x", "y", "font-size", "fill", "innerHTML"], Tr = ["x", "y", "width", "height", "fill", "onMouseenter"], Pr = ["font-size", "fill", "transform"], Vr = ["x", "y", "font-size", "fill"], Rr = { key: 10 }, Dr = ["text-anchor", "font-size", "fill", "transform", "onClick"], Hr = ["x", "y", "height", "width", "onMouseenter", "onClick"], Br = {
|
|
1102
|
+
key: 11,
|
|
1103
|
+
style: { "pointer-events": "none" }
|
|
1104
|
+
}, Wr = ["x", "y"], Er = ["cx", "cy", "r", "fill"], Yr = {
|
|
1094
1105
|
key: 5,
|
|
1095
1106
|
class: "vue-data-ui-watermark"
|
|
1096
|
-
},
|
|
1107
|
+
}, qr = ["onClick"], Xr = {
|
|
1097
1108
|
key: 0,
|
|
1098
1109
|
viewBox: "0 0 20 12",
|
|
1099
1110
|
height: "14",
|
|
1100
1111
|
width: "20"
|
|
1101
|
-
},
|
|
1112
|
+
}, Ur = ["stroke", "fill"], Zr = {
|
|
1102
1113
|
key: 1,
|
|
1103
1114
|
viewBox: "0 0 40 40",
|
|
1104
1115
|
height: "14",
|
|
1105
1116
|
width: "14"
|
|
1106
|
-
},
|
|
1117
|
+
}, Jr = ["fill"], Qr = ["fill"], Kr = {
|
|
1107
1118
|
key: 2,
|
|
1108
1119
|
viewBox: "0 0 12 12",
|
|
1109
1120
|
height: "14",
|
|
1110
1121
|
width: "14"
|
|
1111
|
-
},
|
|
1122
|
+
}, jr = {
|
|
1112
1123
|
key: 9,
|
|
1113
1124
|
ref: "chartLegend"
|
|
1114
|
-
}, $
|
|
1125
|
+
}, $r = {
|
|
1115
1126
|
key: 10,
|
|
1116
1127
|
ref: "source",
|
|
1117
1128
|
dir: "auto"
|
|
1118
|
-
},
|
|
1129
|
+
}, ei = {
|
|
1119
1130
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
1120
1131
|
"data-html2canvas-ignore": ""
|
|
1121
|
-
},
|
|
1122
|
-
function
|
|
1123
|
-
const N = R("PenAndPaper"), _ = R("Title"),
|
|
1132
|
+
}, ti = ["innerHTML"];
|
|
1133
|
+
function ri(r, l, o, d, t, e) {
|
|
1134
|
+
const N = R("PenAndPaper"), _ = R("Title"), w = R("UserOptions"), I = R("PackageVersion"), b = R("Shape"), V = R("Skeleton"), v = R("Slicer"), z = R("Tooltip"), G = R("BaseIcon"), F = R("TableSparkline"), C = R("DataTable"), T = R("Accordion");
|
|
1124
1135
|
return a(), s("div", {
|
|
1125
1136
|
id: `vue-ui-xy_${t.uniqueId}`,
|
|
1126
|
-
class:
|
|
1137
|
+
class: B(`vue-ui-xy ${t.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1127
1138
|
ref: "chart",
|
|
1128
|
-
style:
|
|
1139
|
+
style: O(`background:${e.FINAL_CONFIG.chart.backgroundColor}; color:${e.FINAL_CONFIG.chart.color};width:100%;font-family:${e.FINAL_CONFIG.chart.fontFamily};${e.FINAL_CONFIG.responsive ? "height: 100%" : ""}`),
|
|
1129
1140
|
onMouseenter: l[7] || (l[7] = () => e.setUserOptionsVisibility(!0)),
|
|
1130
1141
|
onMouseleave: l[8] || (l[8] = () => e.setUserOptionsVisibility(!1))
|
|
1131
1142
|
}, [
|
|
1132
|
-
e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (a(),
|
|
1143
|
+
e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (a(), H(N, {
|
|
1133
1144
|
key: 0,
|
|
1134
|
-
parent:
|
|
1145
|
+
parent: r.$refs.chart,
|
|
1135
1146
|
backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1136
1147
|
color: e.FINAL_CONFIG.chart.color,
|
|
1137
1148
|
active: t.isAnnotator,
|
|
@@ -1142,9 +1153,9 @@ function ir(i, l, o, d, t, e) {
|
|
|
1142
1153
|
key: 2,
|
|
1143
1154
|
ref: "chartTitle",
|
|
1144
1155
|
class: "vue-ui-xy-title",
|
|
1145
|
-
style:
|
|
1156
|
+
style: O(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
1146
1157
|
}, [
|
|
1147
|
-
(a(),
|
|
1158
|
+
(a(), H(_, {
|
|
1148
1159
|
key: `title_${t.titleStep}`,
|
|
1149
1160
|
config: {
|
|
1150
1161
|
title: {
|
|
@@ -1158,7 +1169,7 @@ function ir(i, l, o, d, t, e) {
|
|
|
1158
1169
|
}
|
|
1159
1170
|
}, null, 8, ["config"]))
|
|
1160
1171
|
], 4)) : c("", !0),
|
|
1161
|
-
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (t.keepUserOptionState || t.userOptionsVisible) ? (a(),
|
|
1172
|
+
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (t.keepUserOptionState || t.userOptionsVisible) ? (a(), H(w, {
|
|
1162
1173
|
ref: "defails",
|
|
1163
1174
|
key: `user_options_${t.step}`,
|
|
1164
1175
|
backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
@@ -1176,7 +1187,7 @@ function ir(i, l, o, d, t, e) {
|
|
|
1176
1187
|
hasFullscreen: e.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,
|
|
1177
1188
|
isStacked: t.mutableConfig.isStacked,
|
|
1178
1189
|
isFullscreen: t.isFullscreen,
|
|
1179
|
-
chartElement:
|
|
1190
|
+
chartElement: r.$refs.chart,
|
|
1180
1191
|
position: e.FINAL_CONFIG.chart.userOptions.position,
|
|
1181
1192
|
isTooltip: t.mutableConfig.showTooltip,
|
|
1182
1193
|
titles: { ...e.FINAL_CONFIG.chart.userOptions.buttonTitles },
|
|
@@ -1191,70 +1202,70 @@ function ir(i, l, o, d, t, e) {
|
|
|
1191
1202
|
onToggleStack: e.toggleStack,
|
|
1192
1203
|
onToggleTooltip: e.toggleTooltip,
|
|
1193
1204
|
onToggleAnnotator: e.toggleAnnotator,
|
|
1194
|
-
style:
|
|
1205
|
+
style: O({
|
|
1195
1206
|
visibility: t.keepUserOptionState ? t.userOptionsVisible ? "visible" : "hidden" : "visible"
|
|
1196
1207
|
})
|
|
1197
|
-
},
|
|
1198
|
-
|
|
1208
|
+
}, qe({ _: 2 }, [
|
|
1209
|
+
r.$slots.optionTooltip ? {
|
|
1199
1210
|
name: "optionTooltip",
|
|
1200
1211
|
fn: P(() => [
|
|
1201
|
-
|
|
1212
|
+
S(r.$slots, "optionTooltip", {}, void 0, !0)
|
|
1202
1213
|
]),
|
|
1203
1214
|
key: "0"
|
|
1204
1215
|
} : void 0,
|
|
1205
|
-
|
|
1216
|
+
r.$slots.optionPdf ? {
|
|
1206
1217
|
name: "optionPdf",
|
|
1207
1218
|
fn: P(() => [
|
|
1208
|
-
|
|
1219
|
+
S(r.$slots, "optionPdf", {}, void 0, !0)
|
|
1209
1220
|
]),
|
|
1210
1221
|
key: "1"
|
|
1211
1222
|
} : void 0,
|
|
1212
|
-
|
|
1223
|
+
r.$slots.optionCsv ? {
|
|
1213
1224
|
name: "optionCsv",
|
|
1214
1225
|
fn: P(() => [
|
|
1215
|
-
|
|
1226
|
+
S(r.$slots, "optionCsv", {}, void 0, !0)
|
|
1216
1227
|
]),
|
|
1217
1228
|
key: "2"
|
|
1218
1229
|
} : void 0,
|
|
1219
|
-
|
|
1230
|
+
r.$slots.optionImg ? {
|
|
1220
1231
|
name: "optionImg",
|
|
1221
1232
|
fn: P(() => [
|
|
1222
|
-
|
|
1233
|
+
S(r.$slots, "optionImg", {}, void 0, !0)
|
|
1223
1234
|
]),
|
|
1224
1235
|
key: "3"
|
|
1225
1236
|
} : void 0,
|
|
1226
|
-
|
|
1237
|
+
r.$slots.optionTable ? {
|
|
1227
1238
|
name: "optionTable",
|
|
1228
1239
|
fn: P(() => [
|
|
1229
|
-
|
|
1240
|
+
S(r.$slots, "optionTable", {}, void 0, !0)
|
|
1230
1241
|
]),
|
|
1231
1242
|
key: "4"
|
|
1232
1243
|
} : void 0,
|
|
1233
|
-
|
|
1244
|
+
r.$slots.optionLabels ? {
|
|
1234
1245
|
name: "optionLabels",
|
|
1235
1246
|
fn: P(() => [
|
|
1236
|
-
|
|
1247
|
+
S(r.$slots, "optionLabels", {}, void 0, !0)
|
|
1237
1248
|
]),
|
|
1238
1249
|
key: "5"
|
|
1239
1250
|
} : void 0,
|
|
1240
|
-
|
|
1251
|
+
r.$slots.optionStack ? {
|
|
1241
1252
|
name: "optionStack",
|
|
1242
1253
|
fn: P(() => [
|
|
1243
|
-
|
|
1254
|
+
S(r.$slots, "optionStack", {}, void 0, !0)
|
|
1244
1255
|
]),
|
|
1245
1256
|
key: "6"
|
|
1246
1257
|
} : void 0,
|
|
1247
|
-
|
|
1258
|
+
r.$slots.optionFullscreen ? {
|
|
1248
1259
|
name: "optionFullscreen",
|
|
1249
|
-
fn: P(({ toggleFullscreen:
|
|
1250
|
-
|
|
1260
|
+
fn: P(({ toggleFullscreen: i, isFullscreen: h }) => [
|
|
1261
|
+
S(r.$slots, "optionFullscreen", W(Y({ toggleFullscreen: i, isFullscreen: h })), void 0, !0)
|
|
1251
1262
|
]),
|
|
1252
1263
|
key: "7"
|
|
1253
1264
|
} : void 0,
|
|
1254
|
-
|
|
1265
|
+
r.$slots.optionAnnotator ? {
|
|
1255
1266
|
name: "optionAnnotator",
|
|
1256
|
-
fn: P(({ toggleAnnotator:
|
|
1257
|
-
|
|
1267
|
+
fn: P(({ toggleAnnotator: i, isAnnotator: h }) => [
|
|
1268
|
+
S(r.$slots, "optionAnnotator", W(Y({ toggleAnnotator: i, isAnnotator: h })), void 0, !0)
|
|
1258
1269
|
]),
|
|
1259
1270
|
key: "8"
|
|
1260
1271
|
} : void 0
|
|
@@ -1262,13 +1273,13 @@ function ir(i, l, o, d, t, e) {
|
|
|
1262
1273
|
e.isDataset ? (a(), s("svg", {
|
|
1263
1274
|
key: 4,
|
|
1264
1275
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1265
|
-
class:
|
|
1276
|
+
class: B([{ "vue-data-ui-fullscreen--on": t.isFullscreen, "vue-data-ui-fulscreen--off": !t.isFullscreen }, "vue-ui-xy-svg"]),
|
|
1266
1277
|
width: "100%",
|
|
1267
1278
|
viewBox: t.viewBox,
|
|
1268
|
-
style:
|
|
1279
|
+
style: O(`background: transparent; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
1269
1280
|
}, [
|
|
1270
1281
|
q(I),
|
|
1271
|
-
|
|
1282
|
+
r.$slots["chart-background"] ? (a(), s("foreignObject", {
|
|
1272
1283
|
key: 0,
|
|
1273
1284
|
x: e.drawingArea.left + e.xPadding < 0 ? 0 : e.drawingArea.left + e.xPadding,
|
|
1274
1285
|
y: e.drawingArea.top,
|
|
@@ -1278,10 +1289,10 @@ function ir(i, l, o, d, t, e) {
|
|
|
1278
1289
|
pointerEvents: "none"
|
|
1279
1290
|
}
|
|
1280
1291
|
}, [
|
|
1281
|
-
|
|
1292
|
+
S(r.$slots, "chart-background", {}, void 0, !0)
|
|
1282
1293
|
], 8, et)) : c("", !0),
|
|
1283
1294
|
e.maxSeries > 0 ? (a(), s("g", tt, [
|
|
1284
|
-
|
|
1295
|
+
g("g", rt, [
|
|
1285
1296
|
e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (a(), s("line", {
|
|
1286
1297
|
key: 0,
|
|
1287
1298
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
@@ -1291,17 +1302,17 @@ function ir(i, l, o, d, t, e) {
|
|
|
1291
1302
|
y1: e.forceValidValue(e.drawingArea.bottom),
|
|
1292
1303
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1293
1304
|
"stroke-linecap": "round"
|
|
1294
|
-
}, null, 8,
|
|
1295
|
-
t.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(!0), s(
|
|
1296
|
-
|
|
1305
|
+
}, null, 8, it)) : c("", !0),
|
|
1306
|
+
t.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(!0), s(u, { key: 2 }, m(e.allScales, (i) => (a(), s("g", null, [
|
|
1307
|
+
i.id === t.selectedScale && i.yLabels.length ? (a(!0), s(u, { key: 0 }, m(i.yLabels, (h) => (a(), s("line", {
|
|
1297
1308
|
x1: e.drawingArea.left + e.xPadding,
|
|
1298
1309
|
x2: e.drawingArea.right - e.xPadding,
|
|
1299
1310
|
y1: e.forceValidValue(h.y),
|
|
1300
1311
|
y2: e.forceValidValue(h.y),
|
|
1301
|
-
stroke:
|
|
1312
|
+
stroke: i.color,
|
|
1302
1313
|
"stroke-width": 0.5,
|
|
1303
1314
|
"stroke-linecap": "round"
|
|
1304
|
-
}, null, 8, nt))), 256)) :
|
|
1315
|
+
}, null, 8, nt))), 256)) : i.yLabels.length ? (a(!0), s(u, { key: 1 }, m(i.yLabels, (h) => (a(), s("line", {
|
|
1305
1316
|
x1: e.drawingArea.left + e.xPadding,
|
|
1306
1317
|
x2: e.drawingArea.right - e.xPadding,
|
|
1307
1318
|
y1: e.forceValidValue(h.y),
|
|
@@ -1310,7 +1321,7 @@ function ir(i, l, o, d, t, e) {
|
|
|
1310
1321
|
"stroke-width": 0.5,
|
|
1311
1322
|
"stroke-linecap": "round"
|
|
1312
1323
|
}, null, 8, ht))), 256)) : c("", !0)
|
|
1313
|
-
]))), 256)) : c("", !0) : (a(), s(
|
|
1324
|
+
]))), 256)) : c("", !0) : (a(), s(u, { key: 1 }, [
|
|
1314
1325
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (a(), s("line", {
|
|
1315
1326
|
key: 0,
|
|
1316
1327
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
@@ -1322,11 +1333,11 @@ function ir(i, l, o, d, t, e) {
|
|
|
1322
1333
|
"stroke-linecap": "round"
|
|
1323
1334
|
}, null, 8, at)) : c("", !0),
|
|
1324
1335
|
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(), s("g", lt, [
|
|
1325
|
-
(a(!0), s(
|
|
1336
|
+
(a(!0), s(u, null, m(e.yLabels, (i) => (a(), s("line", {
|
|
1326
1337
|
x1: e.drawingArea.left + e.xPadding,
|
|
1327
1338
|
x2: e.drawingArea.right - e.xPadding,
|
|
1328
|
-
y1: e.forceValidValue(
|
|
1329
|
-
y2: e.forceValidValue(
|
|
1339
|
+
y1: e.forceValidValue(i.y),
|
|
1340
|
+
y2: e.forceValidValue(i.y),
|
|
1330
1341
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1331
1342
|
"stroke-width": 0.5,
|
|
1332
1343
|
"stroke-linecap": "round"
|
|
@@ -1334,7 +1345,7 @@ function ir(i, l, o, d, t, e) {
|
|
|
1334
1345
|
])) : c("", !0)
|
|
1335
1346
|
], 64)),
|
|
1336
1347
|
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (a(), s("g", ot, [
|
|
1337
|
-
(a(!0), s(
|
|
1348
|
+
(a(!0), s(u, null, m(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (i, h) => (a(), s("line", {
|
|
1338
1349
|
key: `grid_vertical_line_${h}`,
|
|
1339
1350
|
x1: e.drawingArea.width / e.maxSeries * h + e.drawingArea.left + e.xPadding,
|
|
1340
1351
|
x2: e.drawingArea.width / e.maxSeries * h + e.drawingArea.left + e.xPadding,
|
|
@@ -1345,50 +1356,50 @@ function ir(i, l, o, d, t, e) {
|
|
|
1345
1356
|
}, null, 8, ct))), 128))
|
|
1346
1357
|
])) : c("", !0)
|
|
1347
1358
|
]),
|
|
1348
|
-
(a(!0), s(
|
|
1359
|
+
(a(!0), s(u, null, m(e.barSet, (i, h) => (a(), s("defs", {
|
|
1349
1360
|
key: `def_rect_${h}`
|
|
1350
1361
|
}, [
|
|
1351
|
-
|
|
1362
|
+
g("linearGradient", {
|
|
1352
1363
|
id: `rectGradient_pos_${h}_${t.uniqueId}`,
|
|
1353
1364
|
x2: "0%",
|
|
1354
1365
|
y2: "100%"
|
|
1355
1366
|
}, [
|
|
1356
|
-
|
|
1367
|
+
g("stop", {
|
|
1357
1368
|
offset: "0%",
|
|
1358
|
-
"stop-color":
|
|
1369
|
+
"stop-color": i.color
|
|
1359
1370
|
}, null, 8, ut),
|
|
1360
|
-
|
|
1371
|
+
g("stop", {
|
|
1361
1372
|
offset: "62%",
|
|
1362
|
-
"stop-color": `${e.shiftHue(
|
|
1373
|
+
"stop-color": `${e.shiftHue(i.color, 0.02)}`
|
|
1363
1374
|
}, null, 8, gt),
|
|
1364
|
-
|
|
1375
|
+
g("stop", {
|
|
1365
1376
|
offset: "100%",
|
|
1366
|
-
"stop-color": `${e.shiftHue(
|
|
1377
|
+
"stop-color": `${e.shiftHue(i.color, 0.05)}`
|
|
1367
1378
|
}, null, 8, ft)
|
|
1368
1379
|
], 8, dt),
|
|
1369
|
-
|
|
1380
|
+
g("linearGradient", {
|
|
1370
1381
|
id: `rectGradient_neg_${h}_${t.uniqueId}`,
|
|
1371
1382
|
x2: "0%",
|
|
1372
1383
|
y2: "100%"
|
|
1373
1384
|
}, [
|
|
1374
|
-
|
|
1385
|
+
g("stop", {
|
|
1375
1386
|
offset: "0%",
|
|
1376
|
-
"stop-color": `${e.shiftHue(
|
|
1387
|
+
"stop-color": `${e.shiftHue(i.color, 0.05)}`
|
|
1377
1388
|
}, null, 8, mt),
|
|
1378
|
-
|
|
1389
|
+
g("stop", {
|
|
1379
1390
|
offset: "38%",
|
|
1380
|
-
"stop-color": `${e.shiftHue(
|
|
1391
|
+
"stop-color": `${e.shiftHue(i.color, 0.02)}`
|
|
1381
1392
|
}, null, 8, Nt),
|
|
1382
|
-
|
|
1393
|
+
g("stop", {
|
|
1383
1394
|
offset: "100%",
|
|
1384
|
-
"stop-color":
|
|
1395
|
+
"stop-color": i.color
|
|
1385
1396
|
}, null, 8, xt)
|
|
1386
1397
|
], 8, It)
|
|
1387
1398
|
]))), 128)),
|
|
1388
|
-
(a(!0), s(
|
|
1399
|
+
(a(!0), s(u, null, m(e.plotSet, (i, h) => (a(), s("defs", {
|
|
1389
1400
|
key: `def_plot_${h}`
|
|
1390
1401
|
}, [
|
|
1391
|
-
|
|
1402
|
+
g("radialGradient", {
|
|
1392
1403
|
id: `plotGradient_${h}_${t.uniqueId}`,
|
|
1393
1404
|
cx: "50%",
|
|
1394
1405
|
cy: "50%",
|
|
@@ -1396,20 +1407,20 @@ function ir(i, l, o, d, t, e) {
|
|
|
1396
1407
|
fx: "50%",
|
|
1397
1408
|
fy: "50%"
|
|
1398
1409
|
}, [
|
|
1399
|
-
|
|
1410
|
+
g("stop", {
|
|
1400
1411
|
offset: "0%",
|
|
1401
|
-
"stop-color": `${e.shiftHue(
|
|
1412
|
+
"stop-color": `${e.shiftHue(i.color, 0.05)}`
|
|
1402
1413
|
}, null, 8, Ft),
|
|
1403
|
-
|
|
1414
|
+
g("stop", {
|
|
1404
1415
|
offset: "100%",
|
|
1405
|
-
"stop-color":
|
|
1416
|
+
"stop-color": i.color
|
|
1406
1417
|
}, null, 8, _t)
|
|
1407
1418
|
], 8, bt)
|
|
1408
1419
|
]))), 128)),
|
|
1409
|
-
(a(!0), s(
|
|
1420
|
+
(a(!0), s(u, null, m(e.lineSet, (i, h) => (a(), s("defs", {
|
|
1410
1421
|
key: `def_line_${h}`
|
|
1411
1422
|
}, [
|
|
1412
|
-
|
|
1423
|
+
g("radialGradient", {
|
|
1413
1424
|
id: `lineGradient_${h}_${t.uniqueId}`,
|
|
1414
1425
|
cx: "50%",
|
|
1415
1426
|
cy: "50%",
|
|
@@ -1417,67 +1428,67 @@ function ir(i, l, o, d, t, e) {
|
|
|
1417
1428
|
fx: "50%",
|
|
1418
1429
|
fy: "50%"
|
|
1419
1430
|
}, [
|
|
1420
|
-
|
|
1431
|
+
g("stop", {
|
|
1421
1432
|
offset: "0%",
|
|
1422
|
-
"stop-color": `${e.shiftHue(
|
|
1433
|
+
"stop-color": `${e.shiftHue(i.color, 0.05)}`
|
|
1423
1434
|
}, null, 8, yt),
|
|
1424
|
-
|
|
1435
|
+
g("stop", {
|
|
1425
1436
|
offset: "100%",
|
|
1426
|
-
"stop-color":
|
|
1427
|
-
}, null, 8,
|
|
1437
|
+
"stop-color": i.color
|
|
1438
|
+
}, null, 8, Ct)
|
|
1428
1439
|
], 8, At),
|
|
1429
|
-
|
|
1440
|
+
g("linearGradient", {
|
|
1430
1441
|
id: `areaGradient_${h}_${t.uniqueId}`,
|
|
1431
1442
|
x1: "0%",
|
|
1432
1443
|
x2: "100%",
|
|
1433
1444
|
y1: "0%",
|
|
1434
1445
|
y2: "0%"
|
|
1435
1446
|
}, [
|
|
1436
|
-
|
|
1447
|
+
g("stop", {
|
|
1437
1448
|
offset: "0%",
|
|
1438
|
-
"stop-color": `${e.setOpacity(e.shiftHue(
|
|
1449
|
+
"stop-color": `${e.setOpacity(e.shiftHue(i.color, 0.03), e.FINAL_CONFIG.line.area.opacity)}`
|
|
1439
1450
|
}, null, 8, St),
|
|
1440
|
-
|
|
1451
|
+
g("stop", {
|
|
1441
1452
|
offset: "100%",
|
|
1442
|
-
"stop-color": `${e.setOpacity(
|
|
1453
|
+
"stop-color": `${e.setOpacity(i.color, e.FINAL_CONFIG.line.area.opacity)}`
|
|
1443
1454
|
}, null, 8, kt)
|
|
1444
|
-
], 8,
|
|
1455
|
+
], 8, Lt)
|
|
1445
1456
|
]))), 128)),
|
|
1446
|
-
(a(!0), s(
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
style:
|
|
1457
|
+
(a(!0), s(u, null, m(e.highlightAreas, (i) => (a(), s("g", null, [
|
|
1458
|
+
i.show ? (a(!0), s(u, { key: 0 }, m(i.span, (h, n) => (a(), s("g", null, [
|
|
1459
|
+
g("rect", {
|
|
1460
|
+
style: O({
|
|
1450
1461
|
transition: "none",
|
|
1451
|
-
opacity:
|
|
1462
|
+
opacity: i.from + n >= t.slicer.start && i.from + n <= t.slicer.end - 1 ? 1 : 0
|
|
1452
1463
|
}),
|
|
1453
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (
|
|
1464
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (i.from + n - t.slicer.start),
|
|
1454
1465
|
y: e.drawingArea.top,
|
|
1455
1466
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1456
1467
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1457
|
-
fill: e.setOpacity(
|
|
1468
|
+
fill: e.setOpacity(i.color, i.opacity)
|
|
1458
1469
|
}, null, 12, wt),
|
|
1459
|
-
|
|
1470
|
+
i.caption.text && n === 0 ? (a(), s("foreignObject", {
|
|
1460
1471
|
key: 0,
|
|
1461
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (
|
|
1462
|
-
y: e.drawingArea.top +
|
|
1463
|
-
style:
|
|
1472
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (i.from + n - t.slicer.start) - (i.caption.width === "auto" ? 0 : i.caption.width / 2 - e.drawingArea.width / e.maxSeries * i.span / 2),
|
|
1473
|
+
y: e.drawingArea.top + i.caption.offsetY,
|
|
1474
|
+
style: O({
|
|
1464
1475
|
overflow: "visible",
|
|
1465
|
-
opacity:
|
|
1476
|
+
opacity: i.to >= t.slicer.start && i.from < t.slicer.end ? 1 : 0
|
|
1466
1477
|
}),
|
|
1467
1478
|
height: "1",
|
|
1468
|
-
width:
|
|
1479
|
+
width: i.caption.width === "auto" ? e.drawingArea.width / e.maxSeries * i.span : i.caption.width
|
|
1469
1480
|
}, [
|
|
1470
|
-
|
|
1471
|
-
style:
|
|
1472
|
-
},
|
|
1481
|
+
g("div", {
|
|
1482
|
+
style: O(`padding:${i.caption.padding}px;text-align:${i.caption.textAlign};font-size:${i.caption.fontSize}px;color:${i.caption.color};font-weight:${i.caption.bold ? "bold" : "normal"}`)
|
|
1483
|
+
}, k(i.caption.text), 5)
|
|
1473
1484
|
], 12, Ot)) : c("", !0)
|
|
1474
1485
|
]))), 256)) : c("", !0)
|
|
1475
1486
|
]))), 256)),
|
|
1476
|
-
|
|
1477
|
-
(a(!0), s(
|
|
1487
|
+
g("g", null, [
|
|
1488
|
+
(a(!0), s(u, null, m(e.maxSeries, (i, h) => (a(), s("g", {
|
|
1478
1489
|
key: `tooltip_trap_highlighter_${h}`
|
|
1479
1490
|
}, [
|
|
1480
|
-
|
|
1491
|
+
g("rect", {
|
|
1481
1492
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * h,
|
|
1482
1493
|
y: e.drawingArea.top,
|
|
1483
1494
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
@@ -1486,13 +1497,13 @@ function ir(i, l, o, d, t, e) {
|
|
|
1486
1497
|
}, null, 8, Gt)
|
|
1487
1498
|
]))), 128))
|
|
1488
1499
|
]),
|
|
1489
|
-
e.barSet.length ? (a(!0), s(
|
|
1500
|
+
e.barSet.length ? (a(!0), s(u, { key: 0 }, m(e.barSet, (i, h) => (a(), s("g", {
|
|
1490
1501
|
key: `serie_bar_${h}`,
|
|
1491
|
-
class:
|
|
1492
|
-
style:
|
|
1502
|
+
class: B(`serie_bar_${h}`),
|
|
1503
|
+
style: O(`opacity:${t.selectedScale ? t.selectedScale === i.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1493
1504
|
}, [
|
|
1494
|
-
(a(!0), s(
|
|
1495
|
-
key: `bar_plot_${h}_${
|
|
1505
|
+
(a(!0), s(u, null, m(i.plots, (n, f) => (a(), s("g", {
|
|
1506
|
+
key: `bar_plot_${h}_${f}`
|
|
1496
1507
|
}, [
|
|
1497
1508
|
e.canShowValue(n.value) ? (a(), s("rect", {
|
|
1498
1509
|
key: 0,
|
|
@@ -1501,19 +1512,19 @@ function ir(i, l, o, d, t, e) {
|
|
|
1501
1512
|
height: t.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(n)) : Math.abs(e.calcRectHeight(n)),
|
|
1502
1513
|
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),
|
|
1503
1514
|
rx: e.FINAL_CONFIG.bar.borderRadius,
|
|
1504
|
-
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${h}_${t.uniqueId})` : `url(#rectGradient_neg_${h}_${t.uniqueId})` :
|
|
1505
|
-
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ?
|
|
1515
|
+
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${h}_${t.uniqueId})` : `url(#rectGradient_neg_${h}_${t.uniqueId})` : i.color,
|
|
1516
|
+
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? i.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1506
1517
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1507
1518
|
}, null, 8, vt)) : c("", !0),
|
|
1508
|
-
e.canShowValue(n.value) &&
|
|
1519
|
+
e.canShowValue(n.value) && r.$slots.pattern ? (a(), s("rect", {
|
|
1509
1520
|
key: 1,
|
|
1510
1521
|
x: e.calcRectX(n),
|
|
1511
1522
|
y: t.mutableConfig.useIndividualScale ? e.calcIndividualRectY(n) : e.calcRectY(n),
|
|
1512
1523
|
height: t.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(n)) : Math.abs(e.calcRectHeight(n)),
|
|
1513
1524
|
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),
|
|
1514
1525
|
rx: e.FINAL_CONFIG.bar.borderRadius,
|
|
1515
|
-
fill: `url(#pattern_${t.uniqueId}_${
|
|
1516
|
-
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ?
|
|
1526
|
+
fill: `url(#pattern_${t.uniqueId}_${i.slotAbsoluteIndex})`,
|
|
1527
|
+
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? i.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1517
1528
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1518
1529
|
}, null, 8, zt)) : c("", !0),
|
|
1519
1530
|
n.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), s("foreignObject", {
|
|
@@ -1524,14 +1535,14 @@ function ir(i, l, o, d, t, e) {
|
|
|
1524
1535
|
x: e.calcRectX(n) - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1525
1536
|
y: e.checkNaN(n.y) + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1526
1537
|
}, [
|
|
1527
|
-
|
|
1528
|
-
plot: { ...n, color:
|
|
1538
|
+
S(r.$slots, "plot-comment", {
|
|
1539
|
+
plot: { ...n, color: i.color, seriesIndex: h, datapointIndex: f }
|
|
1529
1540
|
}, void 0, !0)
|
|
1530
1541
|
], 8, Mt)) : c("", !0)
|
|
1531
1542
|
]))), 128)),
|
|
1532
|
-
Object.hasOwn(
|
|
1533
|
-
|
|
1534
|
-
|
|
1543
|
+
Object.hasOwn(i, "useProgression") && i.useProgression === !0 && !isNaN(e.calcLinearProgression(i.plots).trend) ? (a(), s("g", pt, [
|
|
1544
|
+
g("defs", null, [
|
|
1545
|
+
g("marker", {
|
|
1535
1546
|
id: `bar_arrow_${h}`,
|
|
1536
1547
|
markerWidth: 7,
|
|
1537
1548
|
markerHeight: 7,
|
|
@@ -1539,32 +1550,32 @@ function ir(i, l, o, d, t, e) {
|
|
|
1539
1550
|
refY: 7 / 2,
|
|
1540
1551
|
orient: "auto"
|
|
1541
1552
|
}, [
|
|
1542
|
-
|
|
1553
|
+
g("polygon", {
|
|
1543
1554
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1544
|
-
fill:
|
|
1555
|
+
fill: i.color
|
|
1545
1556
|
}, null, 8, Pt)
|
|
1546
1557
|
], 8, Tt)
|
|
1547
1558
|
]),
|
|
1548
|
-
|
|
1559
|
+
i.plots.length > 1 ? (a(), s("line", {
|
|
1549
1560
|
key: 0,
|
|
1550
|
-
x1: e.calcLinearProgression(
|
|
1551
|
-
x2: e.calcLinearProgression(
|
|
1552
|
-
y1: e.forceValidValue(e.calcLinearProgression(
|
|
1553
|
-
y2: e.forceValidValue(e.calcLinearProgression(
|
|
1561
|
+
x1: e.calcLinearProgression(i.plots).x1,
|
|
1562
|
+
x2: e.calcLinearProgression(i.plots).x2,
|
|
1563
|
+
y1: e.forceValidValue(e.calcLinearProgression(i.plots).y1),
|
|
1564
|
+
y2: e.forceValidValue(e.calcLinearProgression(i.plots).y2),
|
|
1554
1565
|
"stroke-width": 1,
|
|
1555
|
-
stroke:
|
|
1566
|
+
stroke: i.color,
|
|
1556
1567
|
"stroke-dasharray": 2,
|
|
1557
1568
|
"marker-end": `url(#bar_arrow_${h})`
|
|
1558
1569
|
}, null, 8, Vt)) : c("", !0),
|
|
1559
|
-
|
|
1570
|
+
i.plots.length > 1 ? (a(), s("text", {
|
|
1560
1571
|
key: 1,
|
|
1561
1572
|
"text-anchor": "middle",
|
|
1562
|
-
x: e.calcLinearProgression(
|
|
1563
|
-
y: e.calcLinearProgression(
|
|
1573
|
+
x: e.calcLinearProgression(i.plots).x2,
|
|
1574
|
+
y: e.calcLinearProgression(i.plots).y2 - 6,
|
|
1564
1575
|
"font-size": t.fontSizes.plotLabels,
|
|
1565
|
-
fill:
|
|
1566
|
-
},
|
|
1567
|
-
v: e.calcLinearProgression(
|
|
1576
|
+
fill: i.color
|
|
1577
|
+
}, k(e.dataLabel({
|
|
1578
|
+
v: e.calcLinearProgression(i.plots).trend * 100,
|
|
1568
1579
|
s: "%",
|
|
1569
1580
|
r: 2
|
|
1570
1581
|
})), 9, Rt)) : c("", !0)
|
|
@@ -1581,7 +1592,7 @@ function ir(i, l, o, d, t, e) {
|
|
|
1581
1592
|
"stroke-linecap": "round"
|
|
1582
1593
|
}, null, 8, Dt)) : c("", !0),
|
|
1583
1594
|
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(t.selectedSerieIndex) || ![null, void 0].includes(t.selectedMinimapIndex)) ? (a(), s("g", Ht, [
|
|
1584
|
-
|
|
1595
|
+
g("line", {
|
|
1585
1596
|
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((t.selectedSerieIndex !== null ? t.selectedSerieIndex : 0) || (t.selectedMinimapIndex !== null ? t.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
|
|
1586
1597
|
x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((t.selectedSerieIndex !== null ? t.selectedSerieIndex : 0) || (t.selectedMinimapIndex !== null ? t.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
|
|
1587
1598
|
y1: e.forceValidValue(e.drawingArea.top),
|
|
@@ -1608,44 +1619,44 @@ function ir(i, l, o, d, t, e) {
|
|
|
1608
1619
|
"stroke-dasharray": e.FINAL_CONFIG.chart.grid.frame.strokeDasharray
|
|
1609
1620
|
}, null, 8, Wt)) : c("", !0),
|
|
1610
1621
|
e.FINAL_CONFIG.chart.grid.labels.show ? (a(), s("g", Et, [
|
|
1611
|
-
t.mutableConfig.useIndividualScale ? (a(), s(
|
|
1612
|
-
(a(!0), s(
|
|
1613
|
-
|
|
1614
|
-
x1:
|
|
1615
|
-
x2:
|
|
1616
|
-
y1: t.mutableConfig.isStacked ? e.forceValidValue(e.drawingArea.bottom -
|
|
1617
|
-
y2: t.mutableConfig.isStacked ? e.forceValidValue(e.drawingArea.bottom -
|
|
1618
|
-
stroke:
|
|
1622
|
+
t.mutableConfig.useIndividualScale ? (a(), s(u, { key: 0 }, [
|
|
1623
|
+
(a(!0), s(u, null, m(e.allScales, (i) => (a(), s("g", null, [
|
|
1624
|
+
g("line", {
|
|
1625
|
+
x1: i.x + e.xPadding,
|
|
1626
|
+
x2: i.x + e.xPadding,
|
|
1627
|
+
y1: t.mutableConfig.isStacked ? e.forceValidValue(e.drawingArea.bottom - i.yOffset - i.individualHeight) : e.forceValidValue(e.drawingArea.top),
|
|
1628
|
+
y2: t.mutableConfig.isStacked ? e.forceValidValue(e.drawingArea.bottom - i.yOffset) : e.forceValidValue(e.drawingArea.bottom),
|
|
1629
|
+
stroke: i.color,
|
|
1619
1630
|
"stroke-width": e.FINAL_CONFIG.chart.grid.stroke,
|
|
1620
1631
|
"stroke-linecap": "round",
|
|
1621
|
-
style:
|
|
1632
|
+
style: O(`opacity:${t.selectedScale ? t.selectedScale === i.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1622
1633
|
}, null, 12, Yt)
|
|
1623
1634
|
]))), 256)),
|
|
1624
|
-
(a(!0), s(
|
|
1625
|
-
style:
|
|
1635
|
+
(a(!0), s(u, null, m(e.allScales, (i) => (a(), s("g", {
|
|
1636
|
+
style: O(`opacity:${t.selectedScale ? t.selectedScale === i.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1626
1637
|
}, [
|
|
1627
|
-
|
|
1628
|
-
fill:
|
|
1638
|
+
g("text", {
|
|
1639
|
+
fill: i.color,
|
|
1629
1640
|
"font-size": t.fontSizes.dataLabels,
|
|
1630
1641
|
"text-anchor": "middle",
|
|
1631
|
-
transform: `translate(${
|
|
1632
|
-
},
|
|
1633
|
-
(a(!0), s(
|
|
1634
|
-
x1:
|
|
1635
|
-
x2:
|
|
1642
|
+
transform: `translate(${i.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + 5 + e.xPadding}, ${t.mutableConfig.isStacked ? e.drawingArea.bottom - i.yOffset - i.individualHeight / 2 : e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`
|
|
1643
|
+
}, k(i.name) + " " + k(i.scaleLabel ? `- ${i.scaleLabel}` : ""), 9, qt),
|
|
1644
|
+
(a(!0), s(u, null, m(i.yLabels, (h, n) => (a(), s("line", {
|
|
1645
|
+
x1: i.x - 3 + e.xPadding,
|
|
1646
|
+
x2: i.x + e.xPadding,
|
|
1636
1647
|
y1: e.forceValidValue(h.y),
|
|
1637
1648
|
y2: e.forceValidValue(h.y),
|
|
1638
|
-
stroke:
|
|
1649
|
+
stroke: i.color,
|
|
1639
1650
|
"stroke-width": 1,
|
|
1640
1651
|
"stroke-linecap": "round"
|
|
1641
1652
|
}, null, 8, Xt))), 256)),
|
|
1642
|
-
(a(!0), s(
|
|
1643
|
-
x:
|
|
1653
|
+
(a(!0), s(u, null, m(i.yLabels, (h, n) => (a(), s("text", {
|
|
1654
|
+
x: i.x - 5 + e.xPadding,
|
|
1644
1655
|
y: e.forceValidValue(h.y) + t.fontSizes.dataLabels / 3,
|
|
1645
1656
|
"font-size": t.fontSizes.dataLabels,
|
|
1646
1657
|
"text-anchor": "end",
|
|
1647
|
-
fill:
|
|
1648
|
-
},
|
|
1658
|
+
fill: i.color
|
|
1659
|
+
}, k(e.applyDataLabel(
|
|
1649
1660
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1650
1661
|
h.value,
|
|
1651
1662
|
e.dataLabel({
|
|
@@ -1657,53 +1668,53 @@ function ir(i, l, o, d, t, e) {
|
|
|
1657
1668
|
{ datapoint: h.datapoint, seriesIndex: n }
|
|
1658
1669
|
)), 9, Ut))), 256))
|
|
1659
1670
|
], 4))), 256))
|
|
1660
|
-
], 64)) : (a(!0), s(
|
|
1671
|
+
], 64)) : (a(!0), s(u, { key: 1 }, m(e.yLabels, (i, h) => (a(), s("g", {
|
|
1661
1672
|
key: `yLabel_${h}`
|
|
1662
1673
|
}, [
|
|
1663
|
-
e.canShowValue(
|
|
1674
|
+
e.canShowValue(i) && i.value >= e.niceScale.min && i.value <= e.niceScale.max ? (a(), s("line", {
|
|
1664
1675
|
key: 0,
|
|
1665
1676
|
x1: e.drawingArea.left + e.xPadding,
|
|
1666
1677
|
x2: e.drawingArea.left - 5 + e.xPadding,
|
|
1667
|
-
y1: e.forceValidValue(
|
|
1668
|
-
y2: e.forceValidValue(
|
|
1678
|
+
y1: e.forceValidValue(i.y),
|
|
1679
|
+
y2: e.forceValidValue(i.y),
|
|
1669
1680
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1670
1681
|
"stroke-width": "1",
|
|
1671
1682
|
"stroke-linecap": "round"
|
|
1672
1683
|
}, null, 8, Zt)) : c("", !0),
|
|
1673
|
-
|
|
1684
|
+
i.value >= e.niceScale.min && i.value <= e.niceScale.max ? (a(), s("text", {
|
|
1674
1685
|
key: 1,
|
|
1675
1686
|
x: e.drawingArea.left - 7 + e.xPadding,
|
|
1676
|
-
y: e.checkNaN(
|
|
1687
|
+
y: e.checkNaN(i.y + t.fontSizes.dataLabels / 3),
|
|
1677
1688
|
"font-size": t.fontSizes.dataLabels,
|
|
1678
1689
|
"text-anchor": "end",
|
|
1679
1690
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
1680
|
-
},
|
|
1691
|
+
}, k(e.canShowValue(i.value) ? e.applyDataLabel(
|
|
1681
1692
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1682
|
-
|
|
1693
|
+
i.value,
|
|
1683
1694
|
e.dataLabel({
|
|
1684
|
-
p:
|
|
1685
|
-
v:
|
|
1686
|
-
s:
|
|
1695
|
+
p: i.prefix,
|
|
1696
|
+
v: i.value,
|
|
1697
|
+
s: i.suffix,
|
|
1687
1698
|
r: 1
|
|
1688
1699
|
})
|
|
1689
1700
|
) : ""), 9, Jt)) : c("", !0)
|
|
1690
1701
|
]))), 128))
|
|
1691
1702
|
])) : c("", !0),
|
|
1692
|
-
(a(!0), s(
|
|
1703
|
+
(a(!0), s(u, null, m(e.plotSet, (i, h) => (a(), s("g", {
|
|
1693
1704
|
key: `serie_plot_${h}`,
|
|
1694
|
-
class:
|
|
1695
|
-
style:
|
|
1705
|
+
class: B(`serie_plot_${h}`),
|
|
1706
|
+
style: O(`opacity:${t.selectedScale ? t.selectedScale === i.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1696
1707
|
}, [
|
|
1697
|
-
(a(!0), s(
|
|
1698
|
-
key: `circle_plot_${h}_${
|
|
1708
|
+
(a(!0), s(u, null, m(i.plots, (n, f) => (a(), s("g", {
|
|
1709
|
+
key: `circle_plot_${h}_${f}`
|
|
1699
1710
|
}, [
|
|
1700
|
-
n && e.canShowValue(n.value) ? (a(),
|
|
1711
|
+
n && e.canShowValue(n.value) ? (a(), H(b, {
|
|
1701
1712
|
key: 0,
|
|
1702
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
1703
|
-
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${h}_${t.uniqueId})` : e.FINAL_CONFIG.plot.dot.useSerieColor ?
|
|
1713
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(i.shape) ? i.shape : "circle",
|
|
1714
|
+
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${h}_${t.uniqueId})` : e.FINAL_CONFIG.plot.dot.useSerieColor ? i.color : e.FINAL_CONFIG.plot.dot.fill,
|
|
1704
1715
|
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
1705
|
-
radius: t.selectedSerieIndex !== null && t.selectedSerieIndex ===
|
|
1706
|
-
stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor :
|
|
1716
|
+
radius: t.selectedSerieIndex !== null && t.selectedSerieIndex === f || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === f ? (t.plotRadii.plot || 6) * 1.5 : t.plotRadii.plot || 6,
|
|
1717
|
+
stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : i.color,
|
|
1707
1718
|
strokeWidth: e.FINAL_CONFIG.plot.dot.strokeWidth
|
|
1708
1719
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : c("", !0),
|
|
1709
1720
|
n.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), s("foreignObject", {
|
|
@@ -1714,16 +1725,16 @@ function ir(i, l, o, d, t, e) {
|
|
|
1714
1725
|
x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1715
1726
|
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1716
1727
|
}, [
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
plot: { ...n, color:
|
|
1728
|
+
g("div", Kt, [
|
|
1729
|
+
S(r.$slots, "plot-comment", {
|
|
1730
|
+
plot: { ...n, color: i.color, seriesIndex: h, datapointIndex: f }
|
|
1720
1731
|
}, void 0, !0)
|
|
1721
1732
|
])
|
|
1722
1733
|
], 8, Qt)) : c("", !0)
|
|
1723
1734
|
]))), 128)),
|
|
1724
|
-
Object.hasOwn(
|
|
1725
|
-
|
|
1726
|
-
|
|
1735
|
+
Object.hasOwn(i, "useProgression") && i.useProgression === !0 && !isNaN(e.calcLinearProgression(i.plots).trend) ? (a(), s("g", jt, [
|
|
1736
|
+
g("defs", null, [
|
|
1737
|
+
g("marker", {
|
|
1727
1738
|
id: `plot_arrow_${h}`,
|
|
1728
1739
|
markerWidth: 7,
|
|
1729
1740
|
markerHeight: 7,
|
|
@@ -1731,121 +1742,121 @@ function ir(i, l, o, d, t, e) {
|
|
|
1731
1742
|
refY: 7 / 2,
|
|
1732
1743
|
orient: "auto"
|
|
1733
1744
|
}, [
|
|
1734
|
-
|
|
1745
|
+
g("polygon", {
|
|
1735
1746
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1736
|
-
fill:
|
|
1737
|
-
}, null, 8,
|
|
1747
|
+
fill: i.color
|
|
1748
|
+
}, null, 8, er)
|
|
1738
1749
|
], 8, $t)
|
|
1739
1750
|
]),
|
|
1740
|
-
|
|
1751
|
+
i.plots.length > 1 ? (a(), s("line", {
|
|
1741
1752
|
key: 0,
|
|
1742
|
-
x1: e.calcLinearProgression(
|
|
1743
|
-
x2: e.calcLinearProgression(
|
|
1744
|
-
y1: e.forceValidValue(e.calcLinearProgression(
|
|
1745
|
-
y2: e.forceValidValue(e.calcLinearProgression(
|
|
1753
|
+
x1: e.calcLinearProgression(i.plots).x1,
|
|
1754
|
+
x2: e.calcLinearProgression(i.plots).x2,
|
|
1755
|
+
y1: e.forceValidValue(e.calcLinearProgression(i.plots).y1),
|
|
1756
|
+
y2: e.forceValidValue(e.calcLinearProgression(i.plots).y2),
|
|
1746
1757
|
"stroke-width": 1,
|
|
1747
|
-
stroke:
|
|
1758
|
+
stroke: i.color,
|
|
1748
1759
|
"stroke-dasharray": 2,
|
|
1749
1760
|
"marker-end": `url(#plot_arrow_${h})`
|
|
1750
|
-
}, null, 8,
|
|
1751
|
-
|
|
1761
|
+
}, null, 8, tr)) : c("", !0),
|
|
1762
|
+
i.plots.length > 1 ? (a(), s("text", {
|
|
1752
1763
|
key: 1,
|
|
1753
1764
|
"text-anchor": "middle",
|
|
1754
|
-
x: e.calcLinearProgression(
|
|
1755
|
-
y: e.calcLinearProgression(
|
|
1765
|
+
x: e.calcLinearProgression(i.plots).x2,
|
|
1766
|
+
y: e.calcLinearProgression(i.plots).y2 - 6,
|
|
1756
1767
|
"font-size": t.fontSizes.plotLabels,
|
|
1757
|
-
fill:
|
|
1758
|
-
},
|
|
1759
|
-
v: e.calcLinearProgression(
|
|
1768
|
+
fill: i.color
|
|
1769
|
+
}, k(e.dataLabel({
|
|
1770
|
+
v: e.calcLinearProgression(i.plots).trend * 100,
|
|
1760
1771
|
s: "%",
|
|
1761
1772
|
r: 2
|
|
1762
|
-
})), 9,
|
|
1773
|
+
})), 9, rr)) : c("", !0)
|
|
1763
1774
|
])) : c("", !0)
|
|
1764
1775
|
], 6))), 128)),
|
|
1765
|
-
(a(!0), s(
|
|
1776
|
+
(a(!0), s(u, null, m(e.lineSet, (i, h) => (a(), s("g", {
|
|
1766
1777
|
key: `serie_line_${h}`,
|
|
1767
|
-
class:
|
|
1768
|
-
style:
|
|
1778
|
+
class: B(`serie_line_${h}`),
|
|
1779
|
+
style: O(`opacity:${t.selectedScale ? t.selectedScale === i.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1769
1780
|
}, [
|
|
1770
|
-
|
|
1781
|
+
i.smooth && i.plots.length > 1 ? (a(), s("path", {
|
|
1771
1782
|
key: 0,
|
|
1772
|
-
d: `M${
|
|
1783
|
+
d: `M${i.curve}`,
|
|
1773
1784
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1774
1785
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1775
|
-
"stroke-dasharray":
|
|
1786
|
+
"stroke-dasharray": i.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1776
1787
|
fill: "none"
|
|
1777
|
-
}, null, 8,
|
|
1788
|
+
}, null, 8, ir)) : i.plots.length > 1 ? (a(), s("path", {
|
|
1778
1789
|
key: 1,
|
|
1779
|
-
d: `M${
|
|
1790
|
+
d: `M${i.straight}`,
|
|
1780
1791
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1781
1792
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1782
|
-
"stroke-dasharray":
|
|
1793
|
+
"stroke-dasharray": i.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1783
1794
|
fill: "none",
|
|
1784
1795
|
"stroke-linecap": "round",
|
|
1785
1796
|
"stroke-linejoin": "round"
|
|
1786
|
-
}, null, 8,
|
|
1797
|
+
}, null, 8, ar)) : c("", !0)
|
|
1787
1798
|
], 6))), 128)),
|
|
1788
|
-
|
|
1789
|
-
(a(!0), s(
|
|
1799
|
+
r.$slots.pattern ? (a(), s("defs", lr, [
|
|
1800
|
+
(a(!0), s(u, null, m(e.safeDataset, (i, h) => S(r.$slots, "pattern", J({
|
|
1790
1801
|
key: `serie_pattern_slot_${h}`
|
|
1791
|
-
}, { ...
|
|
1802
|
+
}, { ...i, seriesIndex: i.slotAbsoluteIndex, patternId: `pattern_${t.uniqueId}_${h}` }), void 0, !0)), 128))
|
|
1792
1803
|
])) : c("", !0),
|
|
1793
|
-
(a(!0), s(
|
|
1804
|
+
(a(!0), s(u, null, m(e.lineSet, (i, h) => (a(), s("g", {
|
|
1794
1805
|
key: `serie_line_${h}`,
|
|
1795
|
-
class:
|
|
1796
|
-
style:
|
|
1806
|
+
class: B(`serie_line_${h}`),
|
|
1807
|
+
style: O(`opacity:${t.selectedScale ? t.selectedScale === i.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1797
1808
|
}, [
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
d: `M ${
|
|
1802
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${h}_${t.uniqueId})` : e.setOpacity(
|
|
1803
|
-
}, null, 8,
|
|
1804
|
-
|
|
1809
|
+
i.useArea && i.plots.length > 1 ? (a(), s("g", sr, [
|
|
1810
|
+
i.smooth ? (a(), s(u, { key: 0 }, [
|
|
1811
|
+
g("path", {
|
|
1812
|
+
d: `M ${i.plots[0] ? i.plots[0].x : Math.min(...i.plots.filter((n) => !!n).map((n) => n.x))},${t.mutableConfig.isStacked ? e.drawingArea.bottom - i.yOffset : e.drawingArea.bottom} ${i.curve} L ${i.plots.at(-1) ? i.plots.at(-1).x : e.drawingArea.left + e.slot.line * h + e.slot.line / 2},${t.mutableConfig.isStacked ? e.drawingArea.bottom - i.yOffset : e.drawingArea.bottom} Z`,
|
|
1813
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${h}_${t.uniqueId})` : e.setOpacity(i.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1814
|
+
}, null, 8, nr),
|
|
1815
|
+
r.$slots.pattern ? (a(), s("path", {
|
|
1805
1816
|
key: 0,
|
|
1806
|
-
d: `M ${
|
|
1807
|
-
fill: `url(#pattern_${t.uniqueId}_${
|
|
1808
|
-
}, null, 8,
|
|
1809
|
-
], 64)) : (a(), s(
|
|
1810
|
-
|
|
1811
|
-
d: `M${
|
|
1812
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${h}_${t.uniqueId})` : e.setOpacity(
|
|
1813
|
-
}, null, 8,
|
|
1814
|
-
|
|
1817
|
+
d: `M ${i.plots[0] ? i.plots[0].x : Math.min(...i.plots.filter((n) => !!n).map((n) => n.x))},${t.mutableConfig.isStacked ? e.drawingArea.bottom - i.yOffset : e.drawingArea.bottom} ${i.curve} L ${i.plots.at(-1) ? i.plots.at(-1).x : e.drawingArea.left + e.slot.line * h + e.slot.line / 2},${t.mutableConfig.isStacked ? e.drawingArea.bottom - i.yOffset : e.drawingArea.bottom} Z`,
|
|
1818
|
+
fill: `url(#pattern_${t.uniqueId}_${i.slotAbsoluteIndex})`
|
|
1819
|
+
}, null, 8, hr)) : c("", !0)
|
|
1820
|
+
], 64)) : (a(), s(u, { key: 1 }, [
|
|
1821
|
+
g("path", {
|
|
1822
|
+
d: `M${i.area}Z`,
|
|
1823
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${h}_${t.uniqueId})` : e.setOpacity(i.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1824
|
+
}, null, 8, or),
|
|
1825
|
+
r.$slots.pattern ? (a(), s("path", {
|
|
1815
1826
|
key: 0,
|
|
1816
|
-
d: `M${
|
|
1817
|
-
fill: `url(#pattern_${t.uniqueId}_${
|
|
1818
|
-
}, null, 8,
|
|
1827
|
+
d: `M${i.area}Z`,
|
|
1828
|
+
fill: `url(#pattern_${t.uniqueId}_${i.slotAbsoluteIndex})`
|
|
1829
|
+
}, null, 8, cr)) : c("", !0)
|
|
1819
1830
|
], 64))
|
|
1820
1831
|
])) : c("", !0),
|
|
1821
|
-
|
|
1832
|
+
i.smooth && i.plots.length > 1 ? (a(), s("path", {
|
|
1822
1833
|
key: 1,
|
|
1823
|
-
d: `M${
|
|
1824
|
-
stroke:
|
|
1834
|
+
d: `M${i.curve}`,
|
|
1835
|
+
stroke: i.color,
|
|
1825
1836
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth,
|
|
1826
|
-
"stroke-dasharray":
|
|
1837
|
+
"stroke-dasharray": i.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1827
1838
|
fill: "none",
|
|
1828
1839
|
"stroke-linecap": "round"
|
|
1829
|
-
}, null, 8,
|
|
1840
|
+
}, null, 8, dr)) : i.plots.length > 1 ? (a(), s("path", {
|
|
1830
1841
|
key: 2,
|
|
1831
|
-
d: `M${
|
|
1832
|
-
stroke:
|
|
1842
|
+
d: `M${i.straight}`,
|
|
1843
|
+
stroke: i.color,
|
|
1833
1844
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth,
|
|
1834
|
-
"stroke-dasharray":
|
|
1845
|
+
"stroke-dasharray": i.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1835
1846
|
fill: "none",
|
|
1836
1847
|
"stroke-linecap": "round",
|
|
1837
1848
|
"stroke-linejoin": "round"
|
|
1838
|
-
}, null, 8,
|
|
1839
|
-
(a(!0), s(
|
|
1840
|
-
key: `circle_line_${h}_${
|
|
1849
|
+
}, null, 8, ur)) : c("", !0),
|
|
1850
|
+
(a(!0), s(u, null, m(i.plots, (n, f) => (a(), s(u, {
|
|
1851
|
+
key: `circle_line_${h}_${f}`
|
|
1841
1852
|
}, [
|
|
1842
|
-
!e.optimize.linePlot && n && e.canShowValue(n.value) || e.optimize.linePlot && n && e.canShowValue(n.value) && (t.selectedSerieIndex !== null && t.selectedSerieIndex ===
|
|
1853
|
+
!e.optimize.linePlot && n && e.canShowValue(n.value) || e.optimize.linePlot && n && e.canShowValue(n.value) && (t.selectedSerieIndex !== null && t.selectedSerieIndex === f || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === f) ? (a(), H(b, {
|
|
1843
1854
|
key: 0,
|
|
1844
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
1845
|
-
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${h}_${t.uniqueId})` : e.FINAL_CONFIG.line.dot.useSerieColor ?
|
|
1855
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(i.shape) ? i.shape : "circle",
|
|
1856
|
+
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${h}_${t.uniqueId})` : e.FINAL_CONFIG.line.dot.useSerieColor ? i.color : e.FINAL_CONFIG.line.dot.fill,
|
|
1846
1857
|
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
1847
|
-
radius: t.selectedSerieIndex !== null && t.selectedSerieIndex ===
|
|
1848
|
-
stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor :
|
|
1858
|
+
radius: t.selectedSerieIndex !== null && t.selectedSerieIndex === f || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === f ? (t.plotRadii.line || 6) * 1.5 : t.plotRadii.line || 6,
|
|
1859
|
+
stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : i.color,
|
|
1849
1860
|
strokeWidth: e.FINAL_CONFIG.line.dot.strokeWidth
|
|
1850
1861
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : c("", !0),
|
|
1851
1862
|
n.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), s("foreignObject", {
|
|
@@ -1856,16 +1867,16 @@ function ir(i, l, o, d, t, e) {
|
|
|
1856
1867
|
x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1857
1868
|
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1858
1869
|
}, [
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
plot: { ...n, color:
|
|
1870
|
+
g("div", fr, [
|
|
1871
|
+
S(r.$slots, "plot-comment", {
|
|
1872
|
+
plot: { ...n, color: i.color, seriesIndex: h, datapointIndex: f }
|
|
1862
1873
|
}, void 0, !0)
|
|
1863
1874
|
])
|
|
1864
|
-
], 8,
|
|
1865
|
-
]))), 128)),
|
|
1866
|
-
Object.hasOwn(
|
|
1867
|
-
|
|
1868
|
-
|
|
1875
|
+
], 8, gr)) : c("", !0)
|
|
1876
|
+
], 64))), 128)),
|
|
1877
|
+
Object.hasOwn(i, "useProgression") && i.useProgression === !0 && !isNaN(e.calcLinearProgression(i.plots).trend) ? (a(), s("g", Ir, [
|
|
1878
|
+
g("defs", null, [
|
|
1879
|
+
g("marker", {
|
|
1869
1880
|
id: `line_arrow_${h}`,
|
|
1870
1881
|
markerWidth: 7,
|
|
1871
1882
|
markerHeight: 7,
|
|
@@ -1873,110 +1884,106 @@ function ir(i, l, o, d, t, e) {
|
|
|
1873
1884
|
refY: 7 / 2,
|
|
1874
1885
|
orient: "auto"
|
|
1875
1886
|
}, [
|
|
1876
|
-
|
|
1887
|
+
g("polygon", {
|
|
1877
1888
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1878
|
-
fill:
|
|
1879
|
-
}, null, 8,
|
|
1880
|
-
], 8,
|
|
1889
|
+
fill: i.color
|
|
1890
|
+
}, null, 8, Nr)
|
|
1891
|
+
], 8, mr)
|
|
1881
1892
|
]),
|
|
1882
|
-
|
|
1893
|
+
i.plots.length > 1 ? (a(), s("line", {
|
|
1883
1894
|
key: 0,
|
|
1884
|
-
x1: e.calcLinearProgression(
|
|
1885
|
-
x2: e.calcLinearProgression(
|
|
1886
|
-
y1: e.forceValidValue(e.calcLinearProgression(
|
|
1887
|
-
y2: e.forceValidValue(e.calcLinearProgression(
|
|
1895
|
+
x1: e.calcLinearProgression(i.plots).x1,
|
|
1896
|
+
x2: e.calcLinearProgression(i.plots).x2,
|
|
1897
|
+
y1: e.forceValidValue(e.calcLinearProgression(i.plots).y1),
|
|
1898
|
+
y2: e.forceValidValue(e.calcLinearProgression(i.plots).y2),
|
|
1888
1899
|
"stroke-width": 1,
|
|
1889
|
-
stroke:
|
|
1900
|
+
stroke: i.color,
|
|
1890
1901
|
"stroke-dasharray": 2,
|
|
1891
1902
|
"marker-end": `url(#line_arrow_${h})`
|
|
1892
|
-
}, null, 8,
|
|
1893
|
-
|
|
1903
|
+
}, null, 8, xr)) : c("", !0),
|
|
1904
|
+
i.plots.length > 1 ? (a(), s("text", {
|
|
1894
1905
|
key: 1,
|
|
1895
1906
|
"text-anchor": "middle",
|
|
1896
|
-
x: e.calcLinearProgression(
|
|
1897
|
-
y: e.calcLinearProgression(
|
|
1907
|
+
x: e.calcLinearProgression(i.plots).x2,
|
|
1908
|
+
y: e.calcLinearProgression(i.plots).y2 - 6,
|
|
1898
1909
|
"font-size": t.fontSizes.plotLabels,
|
|
1899
|
-
fill:
|
|
1900
|
-
},
|
|
1901
|
-
v: e.calcLinearProgression(
|
|
1910
|
+
fill: i.color
|
|
1911
|
+
}, k(e.dataLabel({
|
|
1912
|
+
v: e.calcLinearProgression(i.plots).trend * 100,
|
|
1902
1913
|
s: "%",
|
|
1903
1914
|
r: 2
|
|
1904
|
-
})), 9,
|
|
1915
|
+
})), 9, br)) : c("", !0)
|
|
1905
1916
|
])) : c("", !0)
|
|
1906
1917
|
], 6))), 128)),
|
|
1907
|
-
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && t.mutableConfig.dataLabels.show ? (a(), s("g",
|
|
1908
|
-
(a(!0), s(
|
|
1909
|
-
key: `xLabel_bar_${h}
|
|
1910
|
-
class: D(`xLabel_bar_${h}`),
|
|
1911
|
-
style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1918
|
+
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && t.mutableConfig.dataLabels.show ? (a(), s("g", Fr, [
|
|
1919
|
+
(a(!0), s(u, null, m(e.barSet, (i, h) => (a(), s(u, {
|
|
1920
|
+
key: `xLabel_bar_${h}`
|
|
1912
1921
|
}, [
|
|
1913
|
-
(a(!0), s(
|
|
1914
|
-
key: `xLabel_bar_${h}_${
|
|
1922
|
+
(a(!0), s(u, null, m(i.plots, (n, f) => (a(), s(u, {
|
|
1923
|
+
key: `xLabel_bar_${h}_${f}`
|
|
1915
1924
|
}, [
|
|
1916
|
-
n && (!Object.hasOwn(
|
|
1925
|
+
n && (!Object.hasOwn(i, "dataLabels") || i.dataLabels === !0 || t.selectedSerieIndex !== null && t.selectedSerieIndex === f || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === f) && e.FINAL_CONFIG.bar.labels.show ? (a(), s("text", {
|
|
1917
1926
|
key: 0,
|
|
1918
1927
|
x: t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? n.x + e.slot.line / 2 : e.calcRectX(n) + e.calcRectWidth() / 2 - e.barPeriodGap / 2,
|
|
1919
1928
|
y: e.checkNaN(n.y) + (n.value >= 0 ? e.FINAL_CONFIG.bar.labels.offsetY : -e.FINAL_CONFIG.bar.labels.offsetY * 3),
|
|
1920
1929
|
"text-anchor": "middle",
|
|
1921
1930
|
"font-size": t.fontSizes.plotLabels,
|
|
1922
1931
|
fill: e.FINAL_CONFIG.bar.labels.color
|
|
1923
|
-
},
|
|
1932
|
+
}, k(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
1924
1933
|
e.FINAL_CONFIG.bar.labels.formatter,
|
|
1925
1934
|
n.value,
|
|
1926
1935
|
e.dataLabel({
|
|
1927
|
-
p:
|
|
1936
|
+
p: i.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
1928
1937
|
v: n.value,
|
|
1929
|
-
s:
|
|
1938
|
+
s: i.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
1930
1939
|
r: e.FINAL_CONFIG.bar.labels.rounding
|
|
1931
1940
|
}),
|
|
1932
1941
|
{
|
|
1933
1942
|
datapoint: n,
|
|
1934
|
-
serie:
|
|
1943
|
+
serie: i
|
|
1935
1944
|
}
|
|
1936
|
-
) : ""), 9,
|
|
1945
|
+
) : ""), 9, _r)) : c("", !0),
|
|
1937
1946
|
n && e.FINAL_CONFIG.bar.serieName.show ? (a(), s("text", {
|
|
1938
1947
|
key: 1,
|
|
1939
1948
|
x: t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? n.x + e.slot.line / 2 : n.x + e.calcRectWidth() * 1.1,
|
|
1940
1949
|
y: n.y + (n.value > 0 ? e.FINAL_CONFIG.bar.serieName.offsetY : -e.FINAL_CONFIG.bar.serieName.offsetY * 3),
|
|
1941
1950
|
"text-anchor": "middle",
|
|
1942
1951
|
"font-size": t.fontSizes.plotLabels,
|
|
1943
|
-
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ?
|
|
1952
|
+
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? i.color : e.FINAL_CONFIG.bar.serieName.color,
|
|
1944
1953
|
"font-weight": e.FINAL_CONFIG.bar.serieName.bold ? "bold" : "normal"
|
|
1945
|
-
},
|
|
1946
|
-
]))), 128))
|
|
1947
|
-
],
|
|
1954
|
+
}, k(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: i.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : i.name), 9, Ar)) : c("", !0)
|
|
1955
|
+
], 64))), 128))
|
|
1956
|
+
], 64))), 128))
|
|
1948
1957
|
])) : c("", !0),
|
|
1949
|
-
e.FINAL_CONFIG.plot.labels.show && t.mutableConfig.dataLabels.show ? (a(), s("g",
|
|
1950
|
-
(a(!0), s(
|
|
1951
|
-
key: `xLabel_plot_${h}
|
|
1952
|
-
class: D(`xLabel_plot_${h}`),
|
|
1953
|
-
style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1958
|
+
e.FINAL_CONFIG.plot.labels.show && t.mutableConfig.dataLabels.show ? (a(), s("g", yr, [
|
|
1959
|
+
(a(!0), s(u, null, m(e.plotSet, (i, h) => (a(), s(u, {
|
|
1960
|
+
key: `xLabel_plot_${h}`
|
|
1954
1961
|
}, [
|
|
1955
|
-
(a(!0), s(
|
|
1956
|
-
key: `xLabel_plot_${h}_${
|
|
1962
|
+
(a(!0), s(u, null, m(i.plots, (n, f) => (a(), s(u, {
|
|
1963
|
+
key: `xLabel_plot_${h}_${f}`
|
|
1957
1964
|
}, [
|
|
1958
|
-
n && !Object.hasOwn(
|
|
1965
|
+
n && !Object.hasOwn(i, "dataLabels") || i.dataLabels === !0 || t.selectedSerieIndex !== null && t.selectedSerieIndex === f || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === f ? (a(), s("text", {
|
|
1959
1966
|
key: 0,
|
|
1960
1967
|
x: n.x,
|
|
1961
1968
|
y: n.y + e.FINAL_CONFIG.plot.labels.offsetY,
|
|
1962
1969
|
"text-anchor": "middle",
|
|
1963
1970
|
"font-size": t.fontSizes.plotLabels,
|
|
1964
1971
|
fill: e.FINAL_CONFIG.plot.labels.color
|
|
1965
|
-
},
|
|
1972
|
+
}, k(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
1966
1973
|
e.FINAL_CONFIG.plot.labels.formatter,
|
|
1967
1974
|
n.value,
|
|
1968
1975
|
e.dataLabel({
|
|
1969
|
-
p:
|
|
1976
|
+
p: i.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
1970
1977
|
v: n.value,
|
|
1971
|
-
s:
|
|
1978
|
+
s: i.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
1972
1979
|
r: e.FINAL_CONFIG.plot.labels.rounding
|
|
1973
1980
|
}),
|
|
1974
1981
|
{
|
|
1975
1982
|
datapoint: n,
|
|
1976
|
-
serie:
|
|
1983
|
+
serie: i
|
|
1977
1984
|
}
|
|
1978
|
-
) : ""), 9,
|
|
1979
|
-
n &&
|
|
1985
|
+
) : ""), 9, Cr)) : c("", !0),
|
|
1986
|
+
n && f === 0 && i.useTag && i.useTag === "start" ? (a(), s("foreignObject", {
|
|
1980
1987
|
key: 1,
|
|
1981
1988
|
x: n.x,
|
|
1982
1989
|
y: n.y - 20,
|
|
@@ -1984,56 +1991,54 @@ function ir(i, l, o, d, t, e) {
|
|
|
1984
1991
|
width: "150",
|
|
1985
1992
|
style: { overflow: "visible" }
|
|
1986
1993
|
}, [
|
|
1987
|
-
|
|
1988
|
-
style:
|
|
1989
|
-
},
|
|
1990
|
-
], 8,
|
|
1991
|
-
n &&
|
|
1994
|
+
g("div", {
|
|
1995
|
+
style: O(`padding: 3px; background:${e.setOpacity(i.color, 80)};color:${e.adaptColorToBackground(i.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1996
|
+
}, k(i.name), 5)
|
|
1997
|
+
], 8, Lr)) : c("", !0),
|
|
1998
|
+
n && f === i.plots.length - 1 && i.useTag && i.useTag === "end" ? (a(), s("foreignObject", {
|
|
1992
1999
|
key: 2,
|
|
1993
|
-
x: n.x -
|
|
2000
|
+
x: n.x - i.name.length * (t.fontSizes.plotLabels / 2),
|
|
1994
2001
|
y: n.y - 20,
|
|
1995
2002
|
height: 24,
|
|
1996
2003
|
width: "150",
|
|
1997
2004
|
style: { overflow: "visible" }
|
|
1998
2005
|
}, [
|
|
1999
|
-
|
|
2000
|
-
style:
|
|
2001
|
-
},
|
|
2002
|
-
], 8,
|
|
2003
|
-
]))), 128))
|
|
2004
|
-
],
|
|
2006
|
+
g("div", {
|
|
2007
|
+
style: O(`padding: 3px; background:${e.setOpacity(i.color, 80)};color:${e.adaptColorToBackground(i.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
2008
|
+
}, k(i.name), 5)
|
|
2009
|
+
], 8, Sr)) : c("", !0)
|
|
2010
|
+
], 64))), 128))
|
|
2011
|
+
], 64))), 128))
|
|
2005
2012
|
])) : c("", !0),
|
|
2006
|
-
e.FINAL_CONFIG.line.labels.show && t.mutableConfig.dataLabels.show ? (a(), s("g",
|
|
2007
|
-
(a(!0), s(
|
|
2008
|
-
key: `xLabel_line_${h}
|
|
2009
|
-
class: D(`xLabel_line_${h}`),
|
|
2010
|
-
style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2013
|
+
e.FINAL_CONFIG.line.labels.show && t.mutableConfig.dataLabels.show ? (a(), s("g", kr, [
|
|
2014
|
+
(a(!0), s(u, null, m(e.lineSet, (i, h) => (a(), s(u, {
|
|
2015
|
+
key: `xLabel_line_${h}`
|
|
2011
2016
|
}, [
|
|
2012
|
-
(a(!0), s(
|
|
2013
|
-
key: `xLabel_line_${h}_${
|
|
2017
|
+
(a(!0), s(u, null, m(i.plots, (n, f) => (a(), s(u, {
|
|
2018
|
+
key: `xLabel_line_${h}_${f}`
|
|
2014
2019
|
}, [
|
|
2015
|
-
n && !Object.hasOwn(
|
|
2020
|
+
n && !Object.hasOwn(i, "dataLabels") || i.dataLabels === !0 || t.selectedSerieIndex !== null && t.selectedSerieIndex === f || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === f ? (a(), s("text", {
|
|
2016
2021
|
key: 0,
|
|
2017
2022
|
x: n.x,
|
|
2018
2023
|
y: n.y + (n.value >= 0 ? e.FINAL_CONFIG.line.labels.offsetY : -e.FINAL_CONFIG.line.labels.offsetY * 3),
|
|
2019
2024
|
"text-anchor": "middle",
|
|
2020
2025
|
"font-size": t.fontSizes.plotLabels,
|
|
2021
2026
|
fill: e.FINAL_CONFIG.line.labels.color
|
|
2022
|
-
},
|
|
2027
|
+
}, k(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
2023
2028
|
e.FINAL_CONFIG.line.labels.formatter,
|
|
2024
2029
|
n.value,
|
|
2025
2030
|
e.dataLabel({
|
|
2026
|
-
p:
|
|
2031
|
+
p: i.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
2027
2032
|
v: n.value,
|
|
2028
|
-
s:
|
|
2033
|
+
s: i.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
2029
2034
|
r: e.FINAL_CONFIG.line.labels.rounding
|
|
2030
2035
|
}),
|
|
2031
2036
|
{
|
|
2032
2037
|
datapoint: n,
|
|
2033
|
-
serie:
|
|
2038
|
+
serie: i
|
|
2034
2039
|
}
|
|
2035
|
-
) : ""), 9,
|
|
2036
|
-
n &&
|
|
2040
|
+
) : ""), 9, wr)) : c("", !0),
|
|
2041
|
+
n && f === 0 && i.useTag && i.useTag === "start" ? (a(), s("foreignObject", {
|
|
2037
2042
|
key: 1,
|
|
2038
2043
|
x: n.x,
|
|
2039
2044
|
y: n.y - 20,
|
|
@@ -2041,119 +2046,115 @@ function ir(i, l, o, d, t, e) {
|
|
|
2041
2046
|
width: "150",
|
|
2042
2047
|
style: { overflow: "visible" }
|
|
2043
2048
|
}, [
|
|
2044
|
-
|
|
2045
|
-
style:
|
|
2046
|
-
},
|
|
2047
|
-
], 8,
|
|
2048
|
-
n &&
|
|
2049
|
+
g("div", {
|
|
2050
|
+
style: O(`padding: 3px; background:${e.setOpacity(i.color, 80)};color:${e.adaptColorToBackground(i.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
2051
|
+
}, k(i.name), 5)
|
|
2052
|
+
], 8, Or)) : c("", !0),
|
|
2053
|
+
n && f === i.plots.length - 1 && i.useTag && i.useTag === "end" ? (a(), s("foreignObject", {
|
|
2049
2054
|
key: 2,
|
|
2050
|
-
x: n.x -
|
|
2055
|
+
x: n.x - i.name.length * (t.fontSizes.plotLabels / 2),
|
|
2051
2056
|
y: n.y - 20,
|
|
2052
2057
|
height: 24,
|
|
2053
2058
|
width: "150",
|
|
2054
2059
|
style: { overflow: "visible" }
|
|
2055
2060
|
}, [
|
|
2056
|
-
|
|
2057
|
-
style:
|
|
2058
|
-
},
|
|
2059
|
-
], 8,
|
|
2060
|
-
]))), 128))
|
|
2061
|
-
],
|
|
2061
|
+
g("div", {
|
|
2062
|
+
style: O(`padding: 3px; background:${e.setOpacity(i.color, 80)};color:${e.adaptColorToBackground(i.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
2063
|
+
}, k(i.name), 5)
|
|
2064
|
+
], 8, Gr)) : c("", !0)
|
|
2065
|
+
], 64))), 128))
|
|
2066
|
+
], 64))), 128))
|
|
2062
2067
|
])) : c("", !0),
|
|
2063
|
-
(a(!0), s(
|
|
2064
|
-
key: `xLabel_line_${h}
|
|
2065
|
-
class: D(`xLabel_line_${h}`),
|
|
2066
|
-
style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2068
|
+
(a(!0), s(u, null, m(e.lineSet, (i, h) => (a(), s(u, {
|
|
2069
|
+
key: `xLabel_line_${h}`
|
|
2067
2070
|
}, [
|
|
2068
|
-
(a(!0), s(
|
|
2069
|
-
key: `xLabel_line_${h}_${
|
|
2071
|
+
(a(!0), s(u, null, m(i.plots, (n, f) => (a(), s(u, {
|
|
2072
|
+
key: `xLabel_line_${h}_${f}`
|
|
2070
2073
|
}, [
|
|
2071
|
-
n &&
|
|
2074
|
+
n && f === 0 && i.showSerieName && i.showSerieName === "start" ? (a(), s("text", {
|
|
2072
2075
|
key: 0,
|
|
2073
2076
|
x: n.x - t.fontSizes.plotLabels,
|
|
2074
2077
|
y: n.y,
|
|
2075
2078
|
"font-size": t.fontSizes.plotLabels,
|
|
2076
2079
|
"text-anchor": "end",
|
|
2077
|
-
fill:
|
|
2080
|
+
fill: i.color,
|
|
2078
2081
|
innerHTML: e.createTSpans({
|
|
2079
|
-
content:
|
|
2082
|
+
content: i.name,
|
|
2080
2083
|
fontSize: t.fontSizes.plotLabels,
|
|
2081
|
-
fill:
|
|
2084
|
+
fill: i.color,
|
|
2082
2085
|
x: n.x - t.fontSizes.plotLabels,
|
|
2083
2086
|
y: n.y,
|
|
2084
2087
|
maxWords: 2
|
|
2085
2088
|
})
|
|
2086
|
-
}, null, 8,
|
|
2087
|
-
n &&
|
|
2089
|
+
}, null, 8, vr)) : c("", !0),
|
|
2090
|
+
n && f === i.plots.length - 1 && i.showSerieName && i.showSerieName === "end" ? (a(), s("text", {
|
|
2088
2091
|
key: 1,
|
|
2089
2092
|
x: n.x + t.fontSizes.plotLabels,
|
|
2090
2093
|
y: n.y,
|
|
2091
2094
|
"font-size": t.fontSizes.plotLabels,
|
|
2092
2095
|
"text-anchor": "start",
|
|
2093
|
-
fill:
|
|
2096
|
+
fill: i.color,
|
|
2094
2097
|
innerHTML: e.createTSpans({
|
|
2095
|
-
content:
|
|
2098
|
+
content: i.name,
|
|
2096
2099
|
fontSize: t.fontSizes.plotLabels,
|
|
2097
|
-
fill:
|
|
2100
|
+
fill: i.color,
|
|
2098
2101
|
x: n.x + t.fontSizes.plotLabels,
|
|
2099
2102
|
y: n.y,
|
|
2100
2103
|
maxWords: 2
|
|
2101
2104
|
})
|
|
2102
|
-
}, null, 8,
|
|
2103
|
-
]))), 128))
|
|
2104
|
-
],
|
|
2105
|
-
(a(!0), s(
|
|
2106
|
-
key: `xLabel_plot_${h}
|
|
2107
|
-
class: D(`xLabel_plot_${h}`),
|
|
2108
|
-
style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2105
|
+
}, null, 8, zr)) : c("", !0)
|
|
2106
|
+
], 64))), 128))
|
|
2107
|
+
], 64))), 128)),
|
|
2108
|
+
(a(!0), s(u, null, m(e.plotSet, (i, h) => (a(), s(u, {
|
|
2109
|
+
key: `xLabel_plot_${h}`
|
|
2109
2110
|
}, [
|
|
2110
|
-
(a(!0), s(
|
|
2111
|
-
key: `xLabel_plot_${h}_${
|
|
2111
|
+
(a(!0), s(u, null, m(i.plots, (n, f) => (a(), s(u, {
|
|
2112
|
+
key: `xLabel_plot_${h}_${f}`
|
|
2112
2113
|
}, [
|
|
2113
|
-
n &&
|
|
2114
|
+
n && f === 0 && i.showSerieName && i.showSerieName === "start" ? (a(), s("text", {
|
|
2114
2115
|
key: 0,
|
|
2115
2116
|
x: n.x - t.fontSizes.plotLabels,
|
|
2116
2117
|
y: n.y,
|
|
2117
2118
|
"font-size": t.fontSizes.plotLabels,
|
|
2118
2119
|
"text-anchor": "end",
|
|
2119
|
-
fill:
|
|
2120
|
+
fill: i.color,
|
|
2120
2121
|
innerHTML: e.createTSpans({
|
|
2121
|
-
content:
|
|
2122
|
+
content: i.name,
|
|
2122
2123
|
fontSize: t.fontSizes.plotLabels,
|
|
2123
|
-
fill:
|
|
2124
|
+
fill: i.color,
|
|
2124
2125
|
x: n.x - t.fontSizes.plotLabels,
|
|
2125
2126
|
y: n.y,
|
|
2126
2127
|
maxWords: 2
|
|
2127
2128
|
})
|
|
2128
|
-
}, null, 8,
|
|
2129
|
-
n &&
|
|
2129
|
+
}, null, 8, Mr)) : c("", !0),
|
|
2130
|
+
n && f === i.plots.length - 1 && i.showSerieName && i.showSerieName === "end" ? (a(), s("text", {
|
|
2130
2131
|
key: 1,
|
|
2131
2132
|
x: n.x + t.fontSizes.plotLabels,
|
|
2132
2133
|
y: n.y,
|
|
2133
2134
|
"font-size": t.fontSizes.plotLabels,
|
|
2134
2135
|
"text-anchor": "start",
|
|
2135
|
-
fill:
|
|
2136
|
+
fill: i.color,
|
|
2136
2137
|
innerHTML: e.createTSpans({
|
|
2137
|
-
content:
|
|
2138
|
+
content: i.name,
|
|
2138
2139
|
fontSize: t.fontSizes.plotLabels,
|
|
2139
|
-
fill:
|
|
2140
|
+
fill: i.color,
|
|
2140
2141
|
x: n.x + t.fontSizes.plotLabels,
|
|
2141
2142
|
y: n.y,
|
|
2142
2143
|
maxWords: 2
|
|
2143
2144
|
})
|
|
2144
|
-
}, null, 8,
|
|
2145
|
-
]))), 128))
|
|
2146
|
-
],
|
|
2147
|
-
t.mutableConfig.useIndividualScale && !t.mutableConfig.isStacked ? (a(!0), s(
|
|
2148
|
-
x:
|
|
2145
|
+
}, null, 8, pr)) : c("", !0)
|
|
2146
|
+
], 64))), 128))
|
|
2147
|
+
], 64))), 128)),
|
|
2148
|
+
t.mutableConfig.useIndividualScale && !t.mutableConfig.isStacked ? (a(!0), s(u, { key: 9 }, m(e.allScales, (i) => (a(), s("rect", {
|
|
2149
|
+
x: i.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + e.xPadding,
|
|
2149
2150
|
y: e.drawingArea.top,
|
|
2150
2151
|
width: e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
2151
2152
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
2152
|
-
fill: t.selectedScale ===
|
|
2153
|
-
onMouseenter: (h) => t.selectedScale =
|
|
2153
|
+
fill: t.selectedScale === i.id ? e.setOpacity(i.color, 20) : "transparent",
|
|
2154
|
+
onMouseenter: (h) => t.selectedScale = i.id,
|
|
2154
2155
|
onMouseleave: l[0] || (l[0] = (h) => t.selectedScale = null)
|
|
2155
|
-
}, null, 40,
|
|
2156
|
-
|
|
2156
|
+
}, null, 40, Tr))), 256)) : c("", !0),
|
|
2157
|
+
g("g", null, [
|
|
2157
2158
|
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !t.mutableConfig.useIndividualScale ? (a(), s("text", {
|
|
2158
2159
|
key: 0,
|
|
2159
2160
|
"font-size": t.fontSizes.yAxis,
|
|
@@ -2161,7 +2162,7 @@ function ir(i, l, o, d, t, e) {
|
|
|
2161
2162
|
transform: `translate(${t.fontSizes.yAxis + e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`,
|
|
2162
2163
|
"text-anchor": "middle",
|
|
2163
2164
|
style: { transition: "none" }
|
|
2164
|
-
},
|
|
2165
|
+
}, k(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, Pr)) : c("", !0),
|
|
2165
2166
|
e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (a(), s("text", {
|
|
2166
2167
|
key: 1,
|
|
2167
2168
|
"text-anchor": "middle",
|
|
@@ -2169,27 +2170,26 @@ function ir(i, l, o, d, t, e) {
|
|
|
2169
2170
|
y: e.drawingArea.bottom + t.fontSizes.yAxis + t.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,
|
|
2170
2171
|
"font-size": t.fontSizes.yAxis,
|
|
2171
2172
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
2172
|
-
},
|
|
2173
|
+
}, k(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, Vr)) : c("", !0)
|
|
2173
2174
|
]),
|
|
2174
|
-
|
|
2175
|
-
|
|
2175
|
+
Q('v-for="(label, i) in timeLabels" :key="`time_label_${i}`" '),
|
|
2176
|
+
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (a(), s("g", Rr, [
|
|
2177
|
+
r.$slots["time-label"] ? (a(!0), s(u, { key: 0 }, m(e.timeLabels, (i, h) => S(r.$slots, "time-label", W(J({
|
|
2176
2178
|
key: `time_label_${h}`
|
|
2177
|
-
},
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
})), void 0, !0)
|
|
2189
|
-
]))), 128)) : (a(!0), s(f, { key: 1 }, m(e.timeLabels, (r, h) => (a(), s("g", {
|
|
2179
|
+
}, {
|
|
2180
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * h + e.drawingArea.width / e.maxSeries / 2,
|
|
2181
|
+
y: e.drawingArea.bottom + t.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset,
|
|
2182
|
+
fontSize: t.fontSizes.xAxis,
|
|
2183
|
+
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
2184
|
+
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * h + 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})`,
|
|
2185
|
+
absoluteIndex: i.absoluteIndex,
|
|
2186
|
+
content: i.text,
|
|
2187
|
+
textAnchor: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2188
|
+
show: i && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || i && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (h === 0 || h === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || i && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && t.selectedSerieIndex === h && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || i && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && h % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0
|
|
2189
|
+
})), void 0, !0)), 128)) : (a(!0), s(u, { key: 1 }, m(e.timeLabels, (i, h) => (a(), s("g", {
|
|
2190
2190
|
key: `time_label_${h}`
|
|
2191
2191
|
}, [
|
|
2192
|
-
|
|
2192
|
+
i && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || i && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (h === 0 || h === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || i && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && t.selectedSerieIndex === h && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || i && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && h % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (a(), s("text", {
|
|
2193
2193
|
key: 0,
|
|
2194
2194
|
"text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2195
2195
|
"font-size": t.fontSizes.xAxis,
|
|
@@ -2198,28 +2198,25 @@ function ir(i, l, o, d, t, e) {
|
|
|
2198
2198
|
style: {
|
|
2199
2199
|
cursor: "pointer"
|
|
2200
2200
|
},
|
|
2201
|
-
onClick: () => e.selectTimeLabel(
|
|
2202
|
-
},
|
|
2201
|
+
onClick: () => e.selectTimeLabel(i, h)
|
|
2202
|
+
}, k(i.text || ""), 9, Dr)) : c("", !0)
|
|
2203
2203
|
]))), 128))
|
|
2204
2204
|
])) : c("", !0),
|
|
2205
|
-
|
|
2206
|
-
(a(!0), s(
|
|
2207
|
-
key: `tooltip_trap_${h}
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
onClick: (n) => e.selectX(h)
|
|
2219
|
-
}, null, 40, Hi)
|
|
2220
|
-
]))), 128))
|
|
2205
|
+
g("g", null, [
|
|
2206
|
+
(a(!0), s(u, null, m(e.maxSeries, (i, h) => (a(), s("rect", {
|
|
2207
|
+
key: `tooltip_trap_${h}`,
|
|
2208
|
+
"data-cy-trap": "",
|
|
2209
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * h,
|
|
2210
|
+
y: e.drawingArea.top,
|
|
2211
|
+
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
2212
|
+
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
2213
|
+
fill: "transparent",
|
|
2214
|
+
onMouseenter: (n) => e.toggleTooltipVisibility(!0, h),
|
|
2215
|
+
onMouseleave: l[1] || (l[1] = (n) => e.toggleTooltipVisibility(!1)),
|
|
2216
|
+
onClick: (n) => e.selectX(h)
|
|
2217
|
+
}, null, 40, Hr))), 128))
|
|
2221
2218
|
]),
|
|
2222
|
-
e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(t.selectedSerieIndex) || ![null, void 0].includes(t.selectedMinimapIndex)) ? (a(), s("g",
|
|
2219
|
+
e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(t.selectedSerieIndex) || ![null, void 0].includes(t.selectedMinimapIndex)) ? (a(), s("g", Br, [
|
|
2223
2220
|
(a(), s("foreignObject", {
|
|
2224
2221
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((t.selectedSerieIndex !== null ? t.selectedSerieIndex : 0) || (t.selectedMinimapIndex !== null ? t.selectedMinimapIndex : 0)) - 100 + e.drawingArea.width / e.maxSeries / 2,
|
|
2225
2222
|
y: e.drawingArea.bottom,
|
|
@@ -2227,25 +2224,25 @@ function ir(i, l, o, d, t, e) {
|
|
|
2227
2224
|
height: "40",
|
|
2228
2225
|
style: { overflow: "visible !important" }
|
|
2229
2226
|
}, [
|
|
2230
|
-
|
|
2227
|
+
g("div", {
|
|
2231
2228
|
class: "vue-ui-xy-time-tag",
|
|
2232
|
-
style:
|
|
2233
|
-
},
|
|
2234
|
-
], 8,
|
|
2235
|
-
|
|
2229
|
+
style: O(`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`)
|
|
2230
|
+
}, k(e.timeLabels[(t.selectedSerieIndex !== null ? t.selectedSerieIndex : 0) || (t.selectedMinimapIndex !== null ? t.selectedMinimapIndex : 0)].text || (t.selectedSerieIndex !== null ? t.selectedSerieIndex : 0) || (t.selectedMinimapIndex !== null ? t.selectedMinimapIndex : 0)), 5)
|
|
2231
|
+
], 8, Wr)),
|
|
2232
|
+
g("circle", {
|
|
2236
2233
|
cx: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((t.selectedSerieIndex !== null ? t.selectedSerieIndex : 0) || (t.selectedMinimapIndex !== null ? t.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
|
|
2237
2234
|
cy: e.drawingArea.bottom,
|
|
2238
2235
|
r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
|
|
2239
2236
|
fill: e.FINAL_CONFIG.chart.timeTag.circleMarker.color
|
|
2240
|
-
}, null, 8,
|
|
2237
|
+
}, null, 8, Er)
|
|
2241
2238
|
])) : c("", !0)
|
|
2242
2239
|
])) : c("", !0),
|
|
2243
|
-
|
|
2240
|
+
S(r.$slots, "svg", { svg: e.svg }, void 0, !0)
|
|
2244
2241
|
], 14, $e)) : c("", !0),
|
|
2245
|
-
|
|
2246
|
-
|
|
2242
|
+
r.$slots.watermark ? (a(), s("div", Yr, [
|
|
2243
|
+
S(r.$slots, "watermark", W(Y({ isPrinting: t.isPrinting || t.isImaging })), void 0, !0)
|
|
2247
2244
|
])) : c("", !0),
|
|
2248
|
-
e.isDataset ? c("", !0) : (a(),
|
|
2245
|
+
e.isDataset ? c("", !0) : (a(), H(V, {
|
|
2249
2246
|
key: 6,
|
|
2250
2247
|
config: {
|
|
2251
2248
|
type: "line",
|
|
@@ -2263,7 +2260,7 @@ function ir(i, l, o, d, t, e) {
|
|
|
2263
2260
|
}
|
|
2264
2261
|
}
|
|
2265
2262
|
}, null, 8, ["config"])),
|
|
2266
|
-
e.FINAL_CONFIG.chart.zoom.show && t.maxX > 6 && e.isDataset ? (a(),
|
|
2263
|
+
e.FINAL_CONFIG.chart.zoom.show && t.maxX > 6 && e.isDataset ? (a(), H(v, {
|
|
2267
2264
|
ref: "chartSlicer",
|
|
2268
2265
|
key: `slicer_${t.slicerStep}`,
|
|
2269
2266
|
background: e.FINAL_CONFIG.chart.zoom.color,
|
|
@@ -2289,18 +2286,18 @@ function ir(i, l, o, d, t, e) {
|
|
|
2289
2286
|
valueStart: t.slicer.start,
|
|
2290
2287
|
valueEnd: t.slicer.end,
|
|
2291
2288
|
start: t.slicer.start,
|
|
2292
|
-
"onUpdate:start": l[2] || (l[2] = (
|
|
2289
|
+
"onUpdate:start": l[2] || (l[2] = (i) => t.slicer.start = i),
|
|
2293
2290
|
end: t.slicer.end,
|
|
2294
|
-
"onUpdate:end": l[3] || (l[3] = (
|
|
2291
|
+
"onUpdate:end": l[3] || (l[3] = (i) => t.slicer.end = i),
|
|
2295
2292
|
refreshStartPoint: e.FINAL_CONFIG.chart.zoom.startIndex !== null ? e.FINAL_CONFIG.chart.zoom.startIndex : 0,
|
|
2296
|
-
refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...o.dataset.map((
|
|
2293
|
+
refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...o.dataset.map((i) => e.largestTriangleThreeBucketsArray({ data: i.series, threshold: e.FINAL_CONFIG.downsample.threshold }).length)),
|
|
2297
2294
|
enableRangeHandles: e.FINAL_CONFIG.chart.zoom.enableRangeHandles,
|
|
2298
2295
|
enableSelectionDrag: e.FINAL_CONFIG.chart.zoom.enableSelectionDrag,
|
|
2299
2296
|
onReset: e.refreshSlicer,
|
|
2300
2297
|
onTrapMouse: e.selectMinimapIndex
|
|
2301
2298
|
}, {
|
|
2302
|
-
"reset-action": P(({ reset:
|
|
2303
|
-
|
|
2299
|
+
"reset-action": P(({ reset: i }) => [
|
|
2300
|
+
S(r.$slots, "reset-action", W(Y({ reset: i })), void 0, !0)
|
|
2304
2301
|
]),
|
|
2305
2302
|
_: 3
|
|
2306
2303
|
}, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "onReset", "onTrapMouse"])) : c("", !0),
|
|
@@ -2308,15 +2305,15 @@ function ir(i, l, o, d, t, e) {
|
|
|
2308
2305
|
key: 8,
|
|
2309
2306
|
ref: "chartLegend",
|
|
2310
2307
|
class: "vue-ui-xy-legend",
|
|
2311
|
-
style:
|
|
2308
|
+
style: O(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
|
|
2312
2309
|
}, [
|
|
2313
|
-
(a(!0), s(
|
|
2310
|
+
(a(!0), s(u, null, m(e.absoluteDataset, (i, h) => (a(), s("div", {
|
|
2314
2311
|
key: `div_legend_item_${h}`,
|
|
2315
|
-
onClick: (n) => e.segregate(
|
|
2316
|
-
class:
|
|
2312
|
+
onClick: (n) => e.segregate(i),
|
|
2313
|
+
class: B({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": t.segregatedSeries.includes(i.id) })
|
|
2317
2314
|
}, [
|
|
2318
|
-
t.icons[
|
|
2319
|
-
|
|
2315
|
+
t.icons[i.type] === "line" ? (a(), s("svg", Xr, [
|
|
2316
|
+
g("rect", {
|
|
2320
2317
|
x: "0",
|
|
2321
2318
|
y: "7.5",
|
|
2322
2319
|
rx: "1.5",
|
|
@@ -2324,18 +2321,18 @@ function ir(i, l, o, d, t, e) {
|
|
|
2324
2321
|
"stroke-width": 0.5,
|
|
2325
2322
|
height: "3",
|
|
2326
2323
|
width: "20",
|
|
2327
|
-
fill:
|
|
2328
|
-
}, null, 8,
|
|
2324
|
+
fill: i.color
|
|
2325
|
+
}, null, 8, Ur),
|
|
2329
2326
|
q(b, {
|
|
2330
2327
|
plot: { x: 10, y: 9 },
|
|
2331
2328
|
radius: 4,
|
|
2332
|
-
color:
|
|
2333
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
2329
|
+
color: i.color,
|
|
2330
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(i.shape) ? i.shape : "circle",
|
|
2334
2331
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
2335
2332
|
strokeWidth: 0.5
|
|
2336
2333
|
}, null, 8, ["color", "shape", "stroke"])
|
|
2337
|
-
])) : t.icons[
|
|
2338
|
-
t.icons[
|
|
2334
|
+
])) : t.icons[i.type] === "bar" ? (a(), s("svg", Zr, [
|
|
2335
|
+
t.icons[i.type] === "bar" && r.$slots.pattern ? (a(), s("rect", {
|
|
2339
2336
|
key: 0,
|
|
2340
2337
|
x: "0",
|
|
2341
2338
|
y: "0",
|
|
@@ -2343,9 +2340,9 @@ function ir(i, l, o, d, t, e) {
|
|
|
2343
2340
|
height: "40",
|
|
2344
2341
|
width: "40",
|
|
2345
2342
|
stroke: "none",
|
|
2346
|
-
fill:
|
|
2347
|
-
}, null, 8,
|
|
2348
|
-
t.icons[
|
|
2343
|
+
fill: i.color
|
|
2344
|
+
}, null, 8, Jr)) : c("", !0),
|
|
2345
|
+
t.icons[i.type] === "bar" ? (a(), s("rect", {
|
|
2349
2346
|
key: 1,
|
|
2350
2347
|
x: "0",
|
|
2351
2348
|
y: "0",
|
|
@@ -2353,25 +2350,25 @@ function ir(i, l, o, d, t, e) {
|
|
|
2353
2350
|
height: "40",
|
|
2354
2351
|
width: "40",
|
|
2355
2352
|
stroke: "none",
|
|
2356
|
-
fill:
|
|
2357
|
-
}, null, 8,
|
|
2358
|
-
])) : (a(), s("svg",
|
|
2353
|
+
fill: r.$slots.pattern ? `url(#pattern_${t.uniqueId}_${i.slotAbsoluteIndex})` : i.color
|
|
2354
|
+
}, null, 8, Qr)) : c("", !0)
|
|
2355
|
+
])) : (a(), s("svg", Kr, [
|
|
2359
2356
|
q(b, {
|
|
2360
2357
|
plot: { x: 6, y: 6 },
|
|
2361
2358
|
radius: 5,
|
|
2362
|
-
color:
|
|
2363
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
2359
|
+
color: i.color,
|
|
2360
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(i.shape) ? i.shape : "circle"
|
|
2364
2361
|
}, null, 8, ["color", "shape"])
|
|
2365
2362
|
])),
|
|
2366
|
-
|
|
2367
|
-
style:
|
|
2368
|
-
},
|
|
2369
|
-
], 10,
|
|
2370
|
-
], 4)) : (a(), s("div",
|
|
2371
|
-
|
|
2363
|
+
g("span", {
|
|
2364
|
+
style: O(`color:${e.FINAL_CONFIG.chart.legend.color}`)
|
|
2365
|
+
}, k(i.name), 5)
|
|
2366
|
+
], 10, qr))), 128))
|
|
2367
|
+
], 4)) : (a(), s("div", jr, [
|
|
2368
|
+
S(r.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
|
|
2372
2369
|
], 512)),
|
|
2373
|
-
|
|
2374
|
-
|
|
2370
|
+
r.$slots.source ? (a(), s("div", $r, [
|
|
2371
|
+
S(r.$slots, "source", {}, void 0, !0)
|
|
2375
2372
|
], 512)) : c("", !0),
|
|
2376
2373
|
q(z, {
|
|
2377
2374
|
show: t.mutableConfig.showTooltip && t.isTooltip,
|
|
@@ -2384,20 +2381,20 @@ function ir(i, l, o, d, t, e) {
|
|
|
2384
2381
|
backgroundOpacity: e.FINAL_CONFIG.chart.tooltip.backgroundOpacity,
|
|
2385
2382
|
position: e.FINAL_CONFIG.chart.tooltip.position,
|
|
2386
2383
|
offsetY: e.FINAL_CONFIG.chart.tooltip.offsetY,
|
|
2387
|
-
parent:
|
|
2384
|
+
parent: r.$refs.chart,
|
|
2388
2385
|
content: e.tooltipContent,
|
|
2389
2386
|
isFullscreen: t.isFullscreen,
|
|
2390
2387
|
isCustom: e.FINAL_CONFIG.chart.tooltip.customFormat && typeof e.FINAL_CONFIG.chart.tooltip.customFormat == "function"
|
|
2391
2388
|
}, {
|
|
2392
2389
|
"tooltip-before": P(() => [
|
|
2393
|
-
|
|
2390
|
+
S(r.$slots, "tooltip-before", W(Y({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2394
2391
|
]),
|
|
2395
2392
|
"tooltip-after": P(() => [
|
|
2396
|
-
|
|
2393
|
+
S(r.$slots, "tooltip-after", W(Y({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2397
2394
|
]),
|
|
2398
2395
|
_: 3
|
|
2399
2396
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
2400
|
-
e.isDataset ? (a(),
|
|
2397
|
+
e.isDataset ? (a(), H(T, {
|
|
2401
2398
|
key: 11,
|
|
2402
2399
|
hideDetails: "",
|
|
2403
2400
|
config: {
|
|
@@ -2414,18 +2411,18 @@ function ir(i, l, o, d, t, e) {
|
|
|
2414
2411
|
}
|
|
2415
2412
|
}, {
|
|
2416
2413
|
content: P(() => [
|
|
2417
|
-
|
|
2418
|
-
style:
|
|
2414
|
+
g("div", {
|
|
2415
|
+
style: O(`${t.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
2419
2416
|
}, [
|
|
2420
|
-
|
|
2421
|
-
|
|
2417
|
+
g("div", ei, [
|
|
2418
|
+
Xe(g("input", {
|
|
2422
2419
|
type: "checkbox",
|
|
2423
|
-
"onUpdate:modelValue": l[4] || (l[4] = (
|
|
2420
|
+
"onUpdate:modelValue": l[4] || (l[4] = (i) => t.showSparklineTable = i)
|
|
2424
2421
|
}, null, 512), [
|
|
2425
|
-
[
|
|
2422
|
+
[Ue, t.showSparklineTable]
|
|
2426
2423
|
]),
|
|
2427
|
-
|
|
2428
|
-
onClick: l[5] || (l[5] = (
|
|
2424
|
+
g("div", {
|
|
2425
|
+
onClick: l[5] || (l[5] = (i) => t.showSparklineTable = !t.showSparklineTable),
|
|
2429
2426
|
style: { cursor: "pointer" }
|
|
2430
2427
|
}, [
|
|
2431
2428
|
q(G, {
|
|
@@ -2435,26 +2432,26 @@ function ir(i, l, o, d, t, e) {
|
|
|
2435
2432
|
}, null, 8, ["stroke"])
|
|
2436
2433
|
])
|
|
2437
2434
|
]),
|
|
2438
|
-
t.showSparklineTable ? (a(),
|
|
2435
|
+
t.showSparklineTable ? (a(), H(F, {
|
|
2439
2436
|
key: `sparkline_${t.segregateStep}`,
|
|
2440
2437
|
dataset: e.tableSparklineDataset,
|
|
2441
2438
|
config: e.tableSparklineConfig
|
|
2442
|
-
}, null, 8, ["dataset", "config"])) : (a(),
|
|
2439
|
+
}, null, 8, ["dataset", "config"])) : (a(), H(C, {
|
|
2443
2440
|
key: `table_${t.tableStep}`,
|
|
2444
2441
|
colNames: e.dataTable.colNames,
|
|
2445
2442
|
head: e.dataTable.head,
|
|
2446
2443
|
body: e.dataTable.body,
|
|
2447
2444
|
config: e.dataTable.config,
|
|
2448
2445
|
title: `${e.FINAL_CONFIG.chart.title.text}${e.FINAL_CONFIG.chart.title.subtitle.text ? ` : ${e.FINAL_CONFIG.chart.title.subtitle.text}` : ""}`,
|
|
2449
|
-
onClose: l[6] || (l[6] = (
|
|
2446
|
+
onClose: l[6] || (l[6] = (i) => t.mutableConfig.showTable = !1)
|
|
2450
2447
|
}, {
|
|
2451
|
-
th: P(({ th:
|
|
2452
|
-
|
|
2448
|
+
th: P(({ th: i }) => [
|
|
2449
|
+
g("div", { innerHTML: i }, null, 8, ti)
|
|
2453
2450
|
]),
|
|
2454
|
-
td: P(({ td:
|
|
2455
|
-
|
|
2451
|
+
td: P(({ td: i }) => [
|
|
2452
|
+
Q(k(isNaN(Number(i)) ? i : e.dataLabel({
|
|
2456
2453
|
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
2457
|
-
v:
|
|
2454
|
+
v: i,
|
|
2458
2455
|
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
2459
2456
|
r: e.FINAL_CONFIG.table.rounding
|
|
2460
2457
|
})), 1)
|
|
@@ -2467,7 +2464,7 @@ function ir(i, l, o, d, t, e) {
|
|
|
2467
2464
|
}, 8, ["config"])) : c("", !0)
|
|
2468
2465
|
], 46, Ke);
|
|
2469
2466
|
}
|
|
2470
|
-
const
|
|
2467
|
+
const bi = /* @__PURE__ */ Ze(Qe, [["render", ri], ["__scopeId", "data-v-2ea54cd5"]]);
|
|
2471
2468
|
export {
|
|
2472
|
-
|
|
2469
|
+
bi as default
|
|
2473
2470
|
};
|