vue-data-ui 2.4.63 → 2.4.65
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/README.md +66 -34
- package/dist/{Arrow-BpZBF7Ak.cjs → Arrow-BKPURRQ6.cjs} +1 -1
- package/dist/{Arrow-nOy23OOV.js → Arrow-C7ihyW4O.js} +1 -1
- package/dist/{BaseIcon-rzIvDo2Q.cjs → BaseIcon-CyTdOpDr.cjs} +1 -1
- package/dist/{BaseIcon-CrqNvGTs.js → BaseIcon-DpaRUsHC.js} +1 -1
- package/dist/{DataTable-CCJGHIVo.cjs → DataTable-CwzQ-L0W.cjs} +1 -1
- package/dist/{DataTable-BBh7_ttv.js → DataTable-DX_jYNWG.js} +2 -2
- package/dist/Legend-BMTBtkoQ.cjs +1 -0
- package/dist/Legend-DGUxLqhs.js +70 -0
- package/dist/{PackageVersion-dR8EUy_P.js → PackageVersion-B9_Ed72C.js} +1 -1
- package/dist/{PackageVersion-eZ5Dmuid.cjs → PackageVersion-D_9QTWVm.cjs} +1 -1
- package/dist/{PenAndPaper-D_w2N2qM.cjs → PenAndPaper-CfGYucSm.cjs} +1 -1
- package/dist/{PenAndPaper-CrXlqi9I.js → PenAndPaper-CzjoEhsO.js} +3 -3
- package/dist/{Shape-qkkvCKyp.cjs → Shape-CZB2KQ0L.cjs} +1 -1
- package/dist/{Shape-CwmKWYzq.js → Shape-aXd72O71.js} +1 -1
- package/dist/{Slicer-oNEtv1s3.cjs → Slicer-ChxjRhai.cjs} +1 -1
- package/dist/{Slicer-DvdU-uf8.js → Slicer-CopZgIzh.js} +2 -2
- package/dist/{Title-CoNtoGH9.cjs → Title-BnRtxxP4.cjs} +1 -1
- package/dist/{Title-obqvTiXP.js → Title-DyUTj8GI.js} +1 -1
- package/dist/{Tooltip-BK-ACGDE.js → Tooltip-B-0uEV3l.js} +1 -1
- package/dist/{Tooltip-Dz4wVJkz.cjs → Tooltip-CUoQNXZK.cjs} +1 -1
- package/dist/documentation/installation.md +34 -34
- package/dist/{index-Z_vzxZTo.js → index-BVNcFEqn.js} +398 -393
- package/dist/{index-ChOY3hT9.cjs → index-CKgv8c-A.cjs} +5 -5
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-CA8PjFJH.cjs → useNestedProp-0Mn5Z6Ae.cjs} +1 -1
- package/dist/{useNestedProp-Buhi5uyL.js → useNestedProp-D79dWdel.js} +1 -1
- package/dist/{usePrinter-Ck0oiMlt.js → usePrinter-Bcfs_I6G.js} +1 -1
- package/dist/{usePrinter-c3c7_uAW.cjs → usePrinter-Gkda9yEJ.cjs} +1 -1
- package/dist/{vue-data-ui-BGng_wXI.js → vue-data-ui-CXxR_hXg.js} +60 -60
- package/dist/{vue-data-ui-CihfnXFF.cjs → vue-data-ui-DAwVdbN1.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +9 -9
- package/dist/{vue-ui-3d-bar-BsxFEhMN.cjs → vue-ui-3d-bar-baVCskbW.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-B7k4LzL1.js → vue-ui-3d-bar-mxTzin_H.js} +9 -9
- package/dist/{vue-ui-accordion-CV2-8b1O.js → vue-ui-accordion-GNblUy42.js} +3 -3
- package/dist/{vue-ui-accordion-CZ8AlriN.cjs → vue-ui-accordion-xV0it5je.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Bc4DaLIy.js → vue-ui-age-pyramid-DFBuvQgd.js} +10 -10
- package/dist/{vue-ui-age-pyramid-C1crnKk7.cjs → vue-ui-age-pyramid-ULh6qSJs.cjs} +1 -1
- package/dist/{vue-ui-annotator-DNKcAaEh.cjs → vue-ui-annotator-C89rtAuX.cjs} +1 -1
- package/dist/{vue-ui-annotator-DLbAn_Mz.js → vue-ui-annotator-XbCqxBQ0.js} +1 -1
- package/dist/{vue-ui-bullet-ClODxNrk.js → vue-ui-bullet-D_CS85II.js} +8 -8
- package/dist/{vue-ui-bullet-CEO3AsWC.cjs → vue-ui-bullet-DxRqDaiw.cjs} +1 -1
- package/dist/{vue-ui-candlestick-DI7t6jqz.js → vue-ui-candlestick-C8mUQTPF.js} +11 -11
- package/dist/{vue-ui-candlestick-B00zQB4B.cjs → vue-ui-candlestick-CZxpFMKR.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-5jXlkslq.js → vue-ui-carousel-table-D5iLQe38.js} +4 -4
- package/dist/{vue-ui-carousel-table-Bm2D_0pZ.cjs → vue-ui-carousel-table-DKcc-jNW.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DP6-Gie6.cjs → vue-ui-chestnut-BFV6pTfc.cjs} +1 -1
- package/dist/{vue-ui-chestnut-CRZsXRUH.js → vue-ui-chestnut-BqGCLMiu.js} +8 -8
- package/dist/{vue-ui-cursor-BGe0gZK8.cjs → vue-ui-cursor-BJjzKpLm.cjs} +1 -1
- package/dist/{vue-ui-cursor-DA8bsmEc.js → vue-ui-cursor-BysQ-bDH.js} +2 -2
- package/dist/{vue-ui-dashboard-D2v4oSiB.cjs → vue-ui-dashboard-C0L_0gyc.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BZD-6Pz7.js → vue-ui-dashboard-zrJGrAmc.js} +2 -2
- package/dist/{vue-ui-digits-CKvrL9Wc.js → vue-ui-digits-B5P9UheE.js} +2 -2
- package/dist/{vue-ui-digits-DC8ZuHOj.cjs → vue-ui-digits-BG_xts2G.cjs} +1 -1
- package/dist/vue-ui-donut-7tNjrx1E.js +1173 -0
- package/dist/vue-ui-donut-B9M9CW9D.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-CBsxmrTO.js → vue-ui-donut-evolution-C7FpJ59u.js} +11 -11
- package/dist/{vue-ui-donut-evolution-AlCGLfzy.cjs → vue-ui-donut-evolution-CEvGFdxK.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-DB7jNjQP.js → vue-ui-dumbbell-CdxHbLz6.js} +10 -10
- package/dist/{vue-ui-dumbbell-B9cELz3z.cjs → vue-ui-dumbbell-DP27C8NG.cjs} +1 -1
- package/dist/{vue-ui-flow-Cw1Vfk_e.js → vue-ui-flow-cKQSDKfP.js} +9 -9
- package/dist/{vue-ui-flow-CCM51fzQ.cjs → vue-ui-flow-yW5Pa_MJ.cjs} +1 -1
- package/dist/{vue-ui-funnel--4JhwVwW.cjs → vue-ui-funnel-73aPtRj5.cjs} +1 -1
- package/dist/{vue-ui-funnel-CU72MuGg.js → vue-ui-funnel-qPYVhQpD.js} +9 -9
- package/dist/{vue-ui-galaxy-BKInqdOk.js → vue-ui-galaxy-2SRA_RYP.js} +11 -11
- package/dist/{vue-ui-galaxy-BJrkygeR.cjs → vue-ui-galaxy-9E5GUtBD.cjs} +1 -1
- package/dist/vue-ui-gauge-CBbvp9DU.cjs +1 -0
- package/dist/{vue-ui-gauge-DBPB11Eo.js → vue-ui-gauge-Cpvg4BBS.js} +236 -224
- package/dist/{vue-ui-gizmo-BSDdKP_q.js → vue-ui-gizmo-B5v0g_Ly.js} +3 -3
- package/dist/{vue-ui-gizmo-D7hHruEs.cjs → vue-ui-gizmo-BkNuHnnf.cjs} +1 -1
- package/dist/{vue-ui-heatmap-CysVyR78.cjs → vue-ui-heatmap-CcUuOqGT.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DhoDd6I_.js → vue-ui-heatmap-dNeKqLC0.js} +10 -10
- package/dist/{vue-ui-history-plot-C1IcR5tn.js → vue-ui-history-plot-COtfhHw8.js} +11 -11
- package/dist/{vue-ui-history-plot-D97p0C8E.cjs → vue-ui-history-plot-p18wqHFY.cjs} +1 -1
- package/dist/{vue-ui-kpi-Cu2PoWud.cjs → vue-ui-kpi-DCn50wZ8.cjs} +1 -1
- package/dist/{vue-ui-kpi-C43FJnkn.js → vue-ui-kpi-HyZOfh63.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bdr0862F.cjs → vue-ui-mini-loader-DaPxFP7e.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DgPnsWaW.js → vue-ui-mini-loader-Dp7zc34Q.js} +2 -2
- package/dist/{vue-ui-molecule-CvxtHapj.js → vue-ui-molecule-Oim4-hUn.js} +11 -11
- package/dist/{vue-ui-molecule-CEJzQ7RY.cjs → vue-ui-molecule-zkdP7FYM.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DIn_Oars.cjs → vue-ui-mood-radar-CKdM8iDY.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-B6EmzBGf.js → vue-ui-mood-radar-DsSO6gfa.js} +11 -11
- package/dist/{vue-ui-nested-donuts-D4pAkaZH.js → vue-ui-nested-donuts-B5NPJfg6.js} +11 -11
- package/dist/{vue-ui-nested-donuts-c2pJF_ex.cjs → vue-ui-nested-donuts-DbTXLan2.cjs} +1 -1
- package/dist/{vue-ui-onion-DHOhnx2s.cjs → vue-ui-onion-0Od2Vodu.cjs} +1 -1
- package/dist/{vue-ui-onion-98XPhnVF.js → vue-ui-onion-CID0DNSa.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-DLOtv_NO.js → vue-ui-parallel-coordinate-plot-DAfBgYbI.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-CrVVxflg.cjs → vue-ui-parallel-coordinate-plot-WtcXCTd-.cjs} +1 -1
- package/dist/{vue-ui-quadrant-DWM3zE7x.js → vue-ui-quadrant-063Cq0di.js} +12 -12
- package/dist/{vue-ui-quadrant-DbDQtcxz.cjs → vue-ui-quadrant-B6WNmecC.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-DP0hSesI.cjs → vue-ui-quick-chart-CwNFF0R4.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-CFVAisN4.js → vue-ui-quick-chart-DCPwhpbx.js} +9 -9
- package/dist/{vue-ui-radar-CNBN5GF9.js → vue-ui-radar-BmY47r3J.js} +12 -12
- package/dist/{vue-ui-radar-CDhwXWfs.cjs → vue-ui-radar-DcnVyGrM.cjs} +1 -1
- package/dist/{vue-ui-rating-cHW6zh7i.cjs → vue-ui-rating-D_9Fqvd_.cjs} +1 -1
- package/dist/{vue-ui-rating-CEfg8aGb.js → vue-ui-rating-b2SThMJw.js} +2 -2
- package/dist/{vue-ui-relation-circle-92LvehQf.js → vue-ui-relation-circle-B0Q2FdDW.js} +7 -7
- package/dist/{vue-ui-relation-circle-olDAN0lU.cjs → vue-ui-relation-circle-Cg3QL_aP.cjs} +1 -1
- package/dist/vue-ui-rings-BQdgj7bV.cjs +2 -0
- package/dist/vue-ui-rings-DlsKpDkQ.js +666 -0
- package/dist/{vue-ui-scatter-BvdgtUHX.cjs → vue-ui-scatter-D6Yb6VpP.cjs} +1 -1
- package/dist/{vue-ui-scatter-6wDrQ5fP.js → vue-ui-scatter-E_WveJ4p.js} +36 -36
- package/dist/{vue-ui-screenshot-CIAlcAvq.js → vue-ui-screenshot-CbLsOjZv.js} +1 -1
- package/dist/{vue-ui-screenshot-ChB7VFUO.cjs → vue-ui-screenshot-DhvqiF7S.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DlnPFtb4.cjs → vue-ui-skeleton-73YO0ovP.cjs} +1 -1
- package/dist/{vue-ui-skeleton-BMRe3SzB.js → vue-ui-skeleton-Bgf16k10.js} +3 -3
- package/dist/{vue-ui-smiley-DkrQ5gDD.cjs → vue-ui-smiley-D-QDQ3Re.cjs} +1 -1
- package/dist/{vue-ui-smiley-CN5FWJ1G.js → vue-ui-smiley-ne5pBMum.js} +2 -2
- package/dist/{vue-ui-spark-trend-MNkadB41.js → vue-ui-spark-trend-BkiRBoVD.js} +13 -13
- package/dist/{vue-ui-spark-trend-BlOdnAb4.cjs → vue-ui-spark-trend-Dq1hox65.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CBPO2mUa.js → vue-ui-sparkbar--Q2alJoW.js} +4 -4
- package/dist/{vue-ui-sparkbar-ChTbwY11.cjs → vue-ui-sparkbar-DV5CtFQY.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-VLkIev3p.js → vue-ui-sparkgauge-BOcEbdij.js} +4 -4
- package/dist/{vue-ui-sparkgauge-B7yvQfZW.cjs → vue-ui-sparkgauge-BVNkRW_m.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-DbOxX4Ks.js → vue-ui-sparkhistogram-CIJmWjb4.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-mYU6RAK_.cjs → vue-ui-sparkhistogram-CUiNT8vT.cjs} +1 -1
- package/dist/vue-ui-sparkline-BFlRfhM6.cjs +1 -0
- package/dist/{vue-ui-sparkline-D_-31O2S.js → vue-ui-sparkline-lY0wS6kU.js} +96 -96
- package/dist/{vue-ui-sparkstackbar-KaFMlIAL.cjs → vue-ui-sparkstackbar-CGeg_k0k.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-gW7rpJmQ.js → vue-ui-sparkstackbar-GHM4EY7-.js} +5 -5
- package/dist/vue-ui-stackbar-CQur8zP0.cjs +6 -0
- package/dist/vue-ui-stackbar-uR3T6rG4.js +1114 -0
- package/dist/{vue-ui-strip-plot-MlP5pDNx.cjs → vue-ui-strip-plot-CBYrZEIt.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-4o1zAxG_.js → vue-ui-strip-plot-CNFrYVZ6.js} +11 -11
- package/dist/{vue-ui-table-B0PFrkLI.cjs → vue-ui-table-BbTwHDCo.cjs} +1 -1
- package/dist/{vue-ui-table-DWNrd7zM.js → vue-ui-table-DZV-uDG2.js} +1 -1
- package/dist/{vue-ui-table-heatmap-BSKCS8Lq.js → vue-ui-table-heatmap-DQBm_9Z3.js} +14 -14
- package/dist/{vue-ui-table-heatmap-4k74Ux7O.cjs → vue-ui-table-heatmap-DSgQpgxG.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DCCogh2-.cjs → vue-ui-table-sparkline-AFK2LNsw.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-BrImSTh0.js → vue-ui-table-sparkline-wWAVQ0es.js} +5 -5
- package/dist/{vue-ui-thermometer-DswmMXiU.cjs → vue-ui-thermometer-CGFQfRUy.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DHEoT4yB.js → vue-ui-thermometer-DRZWIAFj.js} +7 -7
- package/dist/{vue-ui-timer-Tv94CYqL.cjs → vue-ui-timer-C-RRrh5f.cjs} +1 -1
- package/dist/{vue-ui-timer-BNFihNgK.js → vue-ui-timer-D2_1bbpl.js} +5 -5
- package/dist/{vue-ui-tiremarks-B2kuKLe-.cjs → vue-ui-tiremarks-CIeid_A2.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DzaUfiET.js → vue-ui-tiremarks-CdX2b-Fq.js} +7 -7
- package/dist/{vue-ui-treemap-qKZJcEYe.js → vue-ui-treemap-CgzgE20q.js} +11 -11
- package/dist/{vue-ui-treemap-Dmt3RPF2.cjs → vue-ui-treemap-r8xOrE8F.cjs} +1 -1
- package/dist/vue-ui-vertical-bar-BcxAjcoh.cjs +4 -0
- package/dist/vue-ui-vertical-bar-v9LvL35a.js +936 -0
- package/dist/{vue-ui-waffle-DjJoezg-.js → vue-ui-waffle-0mHE8fud.js} +11 -11
- package/dist/{vue-ui-waffle-fWQvVbAH.cjs → vue-ui-waffle-5h_9tS3C.cjs} +1 -1
- package/dist/{vue-ui-wheel-DOrWSWt6.js → vue-ui-wheel-BWL-td7-.js} +7 -7
- package/dist/{vue-ui-wheel-2qIHyZe1.cjs → vue-ui-wheel-rL5Shua2.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-Tgg5jCE6.cjs → vue-ui-word-cloud-2E23n-B8.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-UPPKGsXt.js → vue-ui-word-cloud-OkAF9hSC.js} +10 -10
- package/dist/{vue-ui-xy-zCJv-Vao.js → vue-ui-xy-C8E2WzGt.js} +866 -819
- package/dist/vue-ui-xy-DbJNxL5O.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-paHHRtqs.js → vue-ui-xy-canvas-C_0c8FlA.js} +31 -31
- package/dist/{vue-ui-xy-canvas-Dm3YUQ3g.cjs → vue-ui-xy-canvas-I7rw1uDf.cjs} +1 -1
- package/package.json +1 -1
- package/dist/Legend-CqilK5CI.cjs +0 -1
- package/dist/Legend-WOejx9sp.js +0 -68
- package/dist/vue-ui-donut-D5mDCNky.cjs +0 -1
- package/dist/vue-ui-donut-DDayabSz.js +0 -1122
- package/dist/vue-ui-gauge-Uo_1rs0Z.cjs +0 -1
- package/dist/vue-ui-rings-Bp0WLW4E.js +0 -628
- package/dist/vue-ui-rings-BwvTmRCE.cjs +0 -2
- package/dist/vue-ui-sparkline-DO496Tk5.cjs +0 -1
- package/dist/vue-ui-stackbar-CYHsSzEK.cjs +0 -6
- package/dist/vue-ui-stackbar-vIyS6oag.js +0 -1061
- package/dist/vue-ui-vertical-bar-CMXtevyE.js +0 -888
- package/dist/vue-ui-vertical-bar-CQ_qEJ_O.cjs +0 -4
- package/dist/vue-ui-xy-CMde0Kq-.cjs +0 -3
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { c as J, a as K, t as Q, z as j, p as $, V as
|
|
2
|
-
import { D as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { U as
|
|
6
|
-
import { _ as pe } from "./Shape-
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import Te from "./vue-ui-skeleton-
|
|
10
|
-
import { S as Pe } from "./Slicer-
|
|
11
|
-
import
|
|
12
|
-
import { u as Z } from "./useNestedProp-
|
|
13
|
-
import { _ as
|
|
14
|
-
import { P as
|
|
15
|
-
import { resolveComponent as
|
|
16
|
-
import { _ as
|
|
17
|
-
const
|
|
1
|
+
import { c as J, a as K, t as Q, z as j, p as $, V as X, O as R, f as U, L as ee, G as te, i as re, a4 as ae, a1 as le, a5 as ie, v as se, a6 as ne, d as he, B as oe, b as ce, q as de, R as ue, a7 as ge, r as fe, e as Ie, a2 as me, y as Ne, C as xe, x as be, a8 as Fe, Z as _e, o as Ae, s as ye, w as Le, F as Ce, A as Se, u as ke } from "./index-BVNcFEqn.js";
|
|
2
|
+
import { D as we } from "./DataTable-DX_jYNWG.js";
|
|
3
|
+
import { _ as Oe } from "./Title-DyUTj8GI.js";
|
|
4
|
+
import { _ as Ge, u as ve } from "./Tooltip-B-0uEV3l.js";
|
|
5
|
+
import { U as ze } from "./usePrinter-Bcfs_I6G.js";
|
|
6
|
+
import { _ as pe } from "./Shape-aXd72O71.js";
|
|
7
|
+
import Me from "./BaseIcon-DpaRUsHC.js";
|
|
8
|
+
import Ve from "./vue-ui-table-sparkline-wWAVQ0es.js";
|
|
9
|
+
import Te from "./vue-ui-skeleton-Bgf16k10.js";
|
|
10
|
+
import { S as Pe } from "./Slicer-CopZgIzh.js";
|
|
11
|
+
import Re from "./vue-ui-accordion-GNblUy42.js";
|
|
12
|
+
import { u as Z } from "./useNestedProp-D79dWdel.js";
|
|
13
|
+
import { _ as De } from "./PackageVersion-B9_Ed72C.js";
|
|
14
|
+
import { P as He } from "./PenAndPaper-CzjoEhsO.js";
|
|
15
|
+
import { resolveComponent as T, openBlock as l, createElementBlock as i, normalizeClass as P, normalizeStyle as L, createBlock as D, createCommentVNode as c, createSlots as Be, withCtx as M, renderSlot as S, normalizeProps as H, guardReactiveProps as B, createVNode as q, createElementVNode as f, Fragment as I, renderList as m, toDisplayString as k, mergeProps as We, withDirectives as Ee, vModelCheckbox as Ye, createTextVNode as qe } from "vue";
|
|
16
|
+
import { _ as Xe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
+
const Ue = J(), Ze = {
|
|
18
18
|
name: "vue-ui-xy",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -31,18 +31,18 @@ const Xe = J(), qe = {
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
components: {
|
|
34
|
-
DataTable:
|
|
34
|
+
DataTable: we,
|
|
35
35
|
Shape: pe,
|
|
36
|
-
Title:
|
|
37
|
-
Tooltip:
|
|
38
|
-
UserOptions:
|
|
39
|
-
BaseIcon:
|
|
40
|
-
TableSparkline:
|
|
36
|
+
Title: Oe,
|
|
37
|
+
Tooltip: Ge,
|
|
38
|
+
UserOptions: ze,
|
|
39
|
+
BaseIcon: Me,
|
|
40
|
+
TableSparkline: Ve,
|
|
41
41
|
Skeleton: Te,
|
|
42
42
|
Slicer: Pe,
|
|
43
|
-
Accordion:
|
|
44
|
-
PackageVersion:
|
|
45
|
-
PenAndPaper:
|
|
43
|
+
Accordion: Re,
|
|
44
|
+
PackageVersion: De,
|
|
45
|
+
PenAndPaper: He
|
|
46
46
|
},
|
|
47
47
|
data() {
|
|
48
48
|
this.dataset.forEach((u, t) => {
|
|
@@ -53,9 +53,9 @@ const Xe = 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, s = Math.max(...this.dataset.map((u) => this.largestTriangleThreeBucketsArray({ data: u.series, threshold: r }).length)), o = {
|
|
57
57
|
start: 0,
|
|
58
|
-
end:
|
|
58
|
+
end: s
|
|
59
59
|
};
|
|
60
60
|
return {
|
|
61
61
|
themePalettes: K,
|
|
@@ -106,10 +106,10 @@ const Xe = J(), qe = {
|
|
|
106
106
|
titleStep: 0,
|
|
107
107
|
slicer: o,
|
|
108
108
|
__to__: null,
|
|
109
|
-
maxX:
|
|
109
|
+
maxX: s,
|
|
110
110
|
showSparklineTable: !0,
|
|
111
111
|
segregateStep: 0,
|
|
112
|
-
sliderId:
|
|
112
|
+
sliderId: Ue,
|
|
113
113
|
fontSizes: {
|
|
114
114
|
xAxis: 18,
|
|
115
115
|
yAxis: 12,
|
|
@@ -128,7 +128,7 @@ const Xe = J(), qe = {
|
|
|
128
128
|
},
|
|
129
129
|
watch: {
|
|
130
130
|
dataset: {
|
|
131
|
-
handler(
|
|
131
|
+
handler(r, s) {
|
|
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,7 +140,7 @@ const Xe = J(), qe = {
|
|
|
140
140
|
deep: !0
|
|
141
141
|
},
|
|
142
142
|
config: {
|
|
143
|
-
handler(
|
|
143
|
+
handler(r, s) {
|
|
144
144
|
this.FINAL_CONFIG = this.prepareConfig(), this.prepareChart(), this.titleStep += 1, this.tableStep += 1;
|
|
145
145
|
},
|
|
146
146
|
deep: !0
|
|
@@ -152,9 +152,9 @@ const Xe = J(), qe = {
|
|
|
152
152
|
},
|
|
153
153
|
minimap() {
|
|
154
154
|
if (!this.FINAL_CONFIG.chart.zoom.minimap.show) return [];
|
|
155
|
-
const
|
|
156
|
-
for (let t = 0; t <
|
|
157
|
-
o.push(
|
|
155
|
+
const r = this.datasetWithIds.filter((t) => !this.segregatedSeries.includes(t.id)), s = Math.max(...r.map((t) => t.series.length)), o = [];
|
|
156
|
+
for (let t = 0; t < s; t += 1)
|
|
157
|
+
o.push(r.map((e) => e.series[t] || 0).reduce((e, x) => (e || 0) + (x || 0), 0));
|
|
158
158
|
const u = Math.min(...o);
|
|
159
159
|
return o.map((t) => t + (u < 0 ? Math.abs(u) : 0));
|
|
160
160
|
},
|
|
@@ -168,7 +168,7 @@ const Xe = J(), qe = {
|
|
|
168
168
|
return this.FINAL_CONFIG.chart.zoom.color;
|
|
169
169
|
},
|
|
170
170
|
allScales() {
|
|
171
|
-
const
|
|
171
|
+
const r = this.lineSet.map((t) => ({
|
|
172
172
|
name: t.name,
|
|
173
173
|
color: t.color,
|
|
174
174
|
scale: t.individualScale,
|
|
@@ -180,7 +180,7 @@ const Xe = J(), qe = {
|
|
|
180
180
|
yOffset: t.yOffset || 0,
|
|
181
181
|
individualHeight: t.individualHeight || this.drawingArea.height,
|
|
182
182
|
autoScaleYLabels: t.autoScaleYLabels
|
|
183
|
-
})),
|
|
183
|
+
})), s = this.barSet.map((t) => ({
|
|
184
184
|
name: t.name,
|
|
185
185
|
color: t.color,
|
|
186
186
|
scale: t.individualScale,
|
|
@@ -203,8 +203,8 @@ const Xe = J(), qe = {
|
|
|
203
203
|
id: t.id,
|
|
204
204
|
yOffset: t.yOffset || 0,
|
|
205
205
|
individualHeight: t.individualHeight || this.drawingArea.height
|
|
206
|
-
})), u = [...
|
|
207
|
-
return [...
|
|
206
|
+
})), u = [...r, ...s, ...o].flatMap((t) => t).length;
|
|
207
|
+
return [...r, ...s, ...o].flatMap((t, e) => ({
|
|
208
208
|
id: t.id,
|
|
209
209
|
scaleLabel: t.scaleLabel,
|
|
210
210
|
name: t.name,
|
|
@@ -223,28 +223,28 @@ const Xe = J(), qe = {
|
|
|
223
223
|
return !!this.dataset && this.dataset.length;
|
|
224
224
|
},
|
|
225
225
|
chartFont() {
|
|
226
|
-
const
|
|
227
|
-
return window.getComputedStyle(
|
|
226
|
+
const r = document.getElementById(`vue-ui-xy_${this.uniqueId}`);
|
|
227
|
+
return window.getComputedStyle(r, null).getPropertyValue("font-family");
|
|
228
228
|
},
|
|
229
229
|
FINAL_CONFIG: {
|
|
230
230
|
get: function() {
|
|
231
231
|
return this.prepareConfig();
|
|
232
232
|
},
|
|
233
|
-
set: function(
|
|
234
|
-
return
|
|
233
|
+
set: function(r) {
|
|
234
|
+
return r;
|
|
235
235
|
}
|
|
236
236
|
},
|
|
237
237
|
hasHighlightArea() {
|
|
238
|
-
return Array.isArray(this.FINAL_CONFIG.chart.highlightArea) ? this.FINAL_CONFIG.chart.highlightArea.some((
|
|
238
|
+
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;
|
|
239
239
|
},
|
|
240
240
|
highlightAreas() {
|
|
241
241
|
if (Array.isArray(this.FINAL_CONFIG.chart.highlightArea))
|
|
242
|
-
return this.FINAL_CONFIG.chart.highlightArea.map((
|
|
243
|
-
...
|
|
244
|
-
span:
|
|
242
|
+
return this.FINAL_CONFIG.chart.highlightArea.map((s) => ({
|
|
243
|
+
...s,
|
|
244
|
+
span: s.from === s.to ? 1 : s.to < s.from ? 0 : s.to - s.from + 1
|
|
245
245
|
}));
|
|
246
|
-
const
|
|
247
|
-
return [{ ...
|
|
246
|
+
const r = this.FINAL_CONFIG.chart.highlightArea;
|
|
247
|
+
return [{ ...r, span: r.from === r.to ? 1 : r.to < r.from ? 0 : r.to - r.from + 1 }];
|
|
248
248
|
},
|
|
249
249
|
xPadding() {
|
|
250
250
|
return this.FINAL_CONFIG.chart.grid.position === "middle" ? 0 : this.drawingArea.width / this.maxSeries / 2;
|
|
@@ -256,44 +256,45 @@ const Xe = J(), qe = {
|
|
|
256
256
|
return this.niceScale.max + this.relativeZero;
|
|
257
257
|
},
|
|
258
258
|
datasetWithIds() {
|
|
259
|
-
return this.useSafeValues ? this.dataset.map((
|
|
260
|
-
...
|
|
259
|
+
return this.useSafeValues ? this.dataset.map((r, s) => ({
|
|
260
|
+
...r,
|
|
261
261
|
series: this.largestTriangleThreeBucketsArray({
|
|
262
|
-
data:
|
|
262
|
+
data: r.series,
|
|
263
263
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
264
264
|
}),
|
|
265
|
-
id: `uniqueId_${
|
|
265
|
+
id: `uniqueId_${s}`
|
|
266
266
|
})) : this.dataset;
|
|
267
267
|
},
|
|
268
268
|
safeDataset() {
|
|
269
|
-
return this.useSafeValues ? this.dataset.map((
|
|
269
|
+
return this.useSafeValues ? this.dataset.map((r, s) => {
|
|
270
270
|
const o = this.largestTriangleThreeBucketsArray({
|
|
271
|
-
data:
|
|
271
|
+
data: r.series,
|
|
272
272
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
273
273
|
});
|
|
274
274
|
return {
|
|
275
|
-
...
|
|
275
|
+
...r,
|
|
276
|
+
slotAbsoluteIndex: s,
|
|
276
277
|
series: o.map((u) => this.isSafeValue(u) ? u : null).slice(this.slicer.start, this.slicer.end),
|
|
277
|
-
color: this.convertColorToHex(
|
|
278
|
-
id: `uniqueId_${
|
|
278
|
+
color: this.convertColorToHex(r.color ? r.color : this.customPalette[s] ? this.customPalette[s] : this.palette[s]),
|
|
279
|
+
id: `uniqueId_${s}`
|
|
279
280
|
};
|
|
280
281
|
}) : this.dataset;
|
|
281
282
|
},
|
|
282
283
|
relativeDataset() {
|
|
283
|
-
return this.safeDataset.map((
|
|
284
|
-
...
|
|
285
|
-
series:
|
|
286
|
-
absoluteValues:
|
|
287
|
-
})).filter((
|
|
284
|
+
return this.safeDataset.map((r, s) => ({
|
|
285
|
+
...r,
|
|
286
|
+
series: r.series.map((o) => o + this.relativeZero),
|
|
287
|
+
absoluteValues: r.series
|
|
288
|
+
})).filter((r) => !this.segregatedSeries.includes(r.id));
|
|
288
289
|
},
|
|
289
290
|
tableSparklineDataset() {
|
|
290
|
-
return this.relativeDataset.map((
|
|
291
|
-
const
|
|
291
|
+
return this.relativeDataset.map((r) => {
|
|
292
|
+
const s = r.absoluteValues.map((o) => [void 0, null].includes(o) ? 0 : o);
|
|
292
293
|
return {
|
|
293
|
-
id:
|
|
294
|
-
name:
|
|
295
|
-
color:
|
|
296
|
-
values: this.fillArray(this.maxSeries,
|
|
294
|
+
id: r.id,
|
|
295
|
+
name: r.name,
|
|
296
|
+
color: r.color,
|
|
297
|
+
values: this.fillArray(this.maxSeries, s)
|
|
297
298
|
};
|
|
298
299
|
});
|
|
299
300
|
},
|
|
@@ -324,75 +325,75 @@ const Xe = J(), qe = {
|
|
|
324
325
|
};
|
|
325
326
|
},
|
|
326
327
|
absoluteDataset() {
|
|
327
|
-
return this.safeDataset.map((
|
|
328
|
-
absoluteIndex:
|
|
329
|
-
...
|
|
330
|
-
series:
|
|
331
|
-
absoluteValues:
|
|
332
|
-
segregate: () => this.segregate(
|
|
333
|
-
isSegregated: this.segregatedSeries.includes(
|
|
328
|
+
return this.safeDataset.map((r, s) => ({
|
|
329
|
+
absoluteIndex: s,
|
|
330
|
+
...r,
|
|
331
|
+
series: r.series.map((o) => o + this.relativeZero),
|
|
332
|
+
absoluteValues: r.series,
|
|
333
|
+
segregate: () => this.segregate(r),
|
|
334
|
+
isSegregated: this.segregatedSeries.includes(r.id)
|
|
334
335
|
}));
|
|
335
336
|
},
|
|
336
337
|
barSet() {
|
|
337
|
-
return this.activeSeriesWithStackRatios.filter((
|
|
338
|
-
this.checkAutoScaleError(
|
|
339
|
-
const o = Math.min(...
|
|
340
|
-
ratios:
|
|
338
|
+
return this.activeSeriesWithStackRatios.filter((r) => r.type === "bar").map((r, s) => {
|
|
339
|
+
this.checkAutoScaleError(r);
|
|
340
|
+
const o = Math.min(...r.absoluteValues.filter((g) => ![null, void 0].includes(g))), u = Math.max(...r.absoluteValues.filter((g) => ![null, void 0].includes(g))), e = {
|
|
341
|
+
ratios: r.absoluteValues.filter((g) => ![null, void 0].includes(g)).map((g) => (g - o) / (u - o)),
|
|
341
342
|
valueMin: o,
|
|
342
343
|
valueMax: u < 0 ? 0 : u
|
|
343
344
|
}, x = {
|
|
344
|
-
max:
|
|
345
|
-
min:
|
|
346
|
-
}, A =
|
|
347
|
-
const
|
|
345
|
+
max: r.scaleMax || Math.max(...r.absoluteValues) || 1,
|
|
346
|
+
min: r.scaleMin || Math.min(...r.absoluteValues.filter((g) => ![void 0, null].includes(g))) > 0 ? 0 : Math.min(...r.absoluteValues.filter((g) => ![null, void 0].includes(g)))
|
|
347
|
+
}, A = r.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, w = 1.0000001, N = this.calculateNiceScaleWithExactExtremes(x.min, x.max === x.min ? x.max * w : x.max, A), b = this.calculateNiceScaleWithExactExtremes(e.valueMin, e.valueMax === e.valueMin ? e.valueMax * w : e.valueMax, A), V = N.min >= 0 ? 0 : Math.abs(N.min), v = 0, z = N.max + V, O = b.max + Math.abs(v), _ = 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, p = this.drawingArea.bottom - _ - C * V / z, a = this.drawingArea.bottom - _ - C * v / O, h = this.absoluteDataset.filter((g) => g.type === "bar").filter((g) => !this.segregatedSeries.includes(g.id)).length, n = r.series.map((g, F) => {
|
|
348
|
+
const E = this.mutableConfig.useIndividualScale ? (r.absoluteValues[F] + V) / z : this.ratioToMax(g), Y = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * F : this.drawingArea.left + this.slot.bar * s + this.slot.bar * F * h - this.barSlot / 2 - s * this.barPeriodGap;
|
|
348
349
|
return {
|
|
349
350
|
yOffset: this.checkNaN(_),
|
|
350
351
|
individualHeight: this.checkNaN(C),
|
|
351
352
|
x: this.checkNaN(Y),
|
|
352
|
-
y: this.drawingArea.bottom - _ - C *
|
|
353
|
-
value:
|
|
354
|
-
zeroPosition: this.checkNaN(
|
|
355
|
-
individualMax: this.checkNaN(
|
|
356
|
-
comment:
|
|
353
|
+
y: this.drawingArea.bottom - _ - C * E,
|
|
354
|
+
value: r.absoluteValues[F],
|
|
355
|
+
zeroPosition: this.checkNaN(p),
|
|
356
|
+
individualMax: this.checkNaN(z),
|
|
357
|
+
comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
357
358
|
};
|
|
358
|
-
}), d =
|
|
359
|
-
const
|
|
359
|
+
}), d = r.absoluteValues.map((g) => b.min >= 0 ? (g - Math.abs(b.min)) / (b.max - Math.abs(b.min)) : (g + Math.abs(b.min)) / (b.max + Math.abs(b.min))), W = r.series.map((g, F) => {
|
|
360
|
+
const E = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * F : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar * s + this.slot.bar * F * this.absoluteDataset.filter((Y) => Y.type === "bar").filter((Y) => !this.segregatedSeries.includes(Y.id)).length;
|
|
360
361
|
return {
|
|
361
362
|
yOffset: this.checkNaN(_),
|
|
362
363
|
individualHeight: this.checkNaN(C),
|
|
363
|
-
x: this.checkNaN(
|
|
364
|
+
x: this.checkNaN(E),
|
|
364
365
|
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(_) - (this.checkNaN(C) * d[F] || 0)),
|
|
365
|
-
value:
|
|
366
|
-
zeroPosition: this.checkNaN(
|
|
367
|
-
individualMax: this.checkNaN(
|
|
368
|
-
comment:
|
|
366
|
+
value: r.absoluteValues[F],
|
|
367
|
+
zeroPosition: this.checkNaN(p),
|
|
368
|
+
individualMax: this.checkNaN(z),
|
|
369
|
+
comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
369
370
|
};
|
|
370
371
|
}), y = N.ticks.map((g) => ({
|
|
371
|
-
y: g >= 0 ?
|
|
372
|
+
y: g >= 0 ? p - C * (g / z) : p + C * Math.abs(g) / z,
|
|
372
373
|
value: g,
|
|
373
|
-
prefix:
|
|
374
|
-
suffix:
|
|
375
|
-
datapoint:
|
|
374
|
+
prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
375
|
+
suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
376
|
+
datapoint: r
|
|
376
377
|
})), G = b.ticks.map((g) => {
|
|
377
378
|
const F = (g - b.min) / (b.max - b.min);
|
|
378
379
|
return {
|
|
379
|
-
y: g >= 0 ?
|
|
380
|
+
y: g >= 0 ? a - C * F : a + C * F,
|
|
380
381
|
value: g,
|
|
381
|
-
prefix:
|
|
382
|
-
suffix:
|
|
383
|
-
datapoint:
|
|
382
|
+
prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
383
|
+
suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
384
|
+
datapoint: r
|
|
384
385
|
};
|
|
385
386
|
});
|
|
386
387
|
return {
|
|
387
|
-
...
|
|
388
|
+
...r,
|
|
388
389
|
yOffset: _,
|
|
389
390
|
autoScaleYLabels: G,
|
|
390
391
|
individualHeight: C,
|
|
391
|
-
scaleYLabels:
|
|
392
|
-
individualScale:
|
|
393
|
-
individualMax:
|
|
394
|
-
zeroPosition:
|
|
395
|
-
plots:
|
|
392
|
+
scaleYLabels: r.autoScaling ? G : y,
|
|
393
|
+
individualScale: r.autoScaling ? b : N,
|
|
394
|
+
individualMax: r.autoScaling ? O : z,
|
|
395
|
+
zeroPosition: r.autoScaling ? a : p,
|
|
396
|
+
plots: r.autoScaling ? W : n
|
|
396
397
|
};
|
|
397
398
|
});
|
|
398
399
|
},
|
|
@@ -400,138 +401,138 @@ const Xe = J(), qe = {
|
|
|
400
401
|
return this.absoluteDataset.length;
|
|
401
402
|
},
|
|
402
403
|
activeSeriesWithStackRatios() {
|
|
403
|
-
return this.assignStackRatios(this.absoluteDataset.filter((
|
|
404
|
+
return this.assignStackRatios(this.absoluteDataset.filter((r) => !this.segregatedSeries.includes(r.id)));
|
|
404
405
|
},
|
|
405
406
|
lineSet() {
|
|
406
|
-
return this.activeSeriesWithStackRatios.filter((
|
|
407
|
-
this.checkAutoScaleError(
|
|
408
|
-
const
|
|
409
|
-
ratios:
|
|
410
|
-
valueMin:
|
|
407
|
+
return this.activeSeriesWithStackRatios.filter((r) => r.type === "line").map((r) => {
|
|
408
|
+
this.checkAutoScaleError(r);
|
|
409
|
+
const s = Math.min(...r.absoluteValues.filter((g) => ![void 0, null].includes(g))), o = Math.max(...r.absoluteValues.filter((g) => ![void 0, null].includes(g))) || 1, t = {
|
|
410
|
+
ratios: r.absoluteValues.filter((g) => ![null, void 0].includes(g)).map((g) => (g - s) / (o - s)),
|
|
411
|
+
valueMin: s,
|
|
411
412
|
valueMax: o
|
|
412
413
|
}, e = {
|
|
413
|
-
max:
|
|
414
|
-
min:
|
|
415
|
-
}, x =
|
|
416
|
-
const
|
|
414
|
+
max: r.scaleMax || Math.max(...r.absoluteValues) || 1,
|
|
415
|
+
min: r.scaleMin || (Math.min(...r.absoluteValues) > 0 ? 0 : Math.min(...r.absoluteValues))
|
|
416
|
+
}, x = r.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = 1.0000001, w = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * A : e.max, x), N = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax === t.valueMin ? t.valueMax * A : t.valueMax, x), b = w.min >= 0 ? 0 : Math.abs(w.min), V = 0, v = w.max + Math.abs(b), z = N.max + Math.abs(V), O = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - r.cumulatedStackRatio) : 0, _ = this.mutableConfig.isStacked ? this.drawingArea.height * r.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - O - _ * b / v, p = this.drawingArea.bottom - O - _ * V / z, a = r.series.map((g, F) => {
|
|
417
|
+
const E = this.mutableConfig.useIndividualScale ? (r.absoluteValues[F] + Math.abs(b)) / v : this.ratioToMax(g);
|
|
417
418
|
return {
|
|
418
419
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * F),
|
|
419
|
-
y: this.checkNaN(this.drawingArea.bottom - O - _ *
|
|
420
|
-
value:
|
|
421
|
-
comment:
|
|
420
|
+
y: this.checkNaN(this.drawingArea.bottom - O - _ * E),
|
|
421
|
+
value: r.absoluteValues[F],
|
|
422
|
+
comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
422
423
|
};
|
|
423
|
-
}), h =
|
|
424
|
+
}), h = r.absoluteValues.map((g) => N.min >= 0 ? (g - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (g + Math.abs(N.min)) / (N.max + Math.abs(N.min))), n = r.series.map((g, F) => [void 0, null].includes(r.absoluteValues[F]) ? {
|
|
424
425
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * F),
|
|
425
426
|
y: C,
|
|
426
|
-
value:
|
|
427
|
-
comment:
|
|
427
|
+
value: r.absoluteValues[F],
|
|
428
|
+
comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
428
429
|
} : {
|
|
429
430
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * F),
|
|
430
431
|
y: this.checkNaN(this.drawingArea.bottom - O - (_ * h[F] || 0)),
|
|
431
|
-
value:
|
|
432
|
-
comment:
|
|
433
|
-
}), d = this.createSmoothPath(
|
|
432
|
+
value: r.absoluteValues[F],
|
|
433
|
+
comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
434
|
+
}), d = this.createSmoothPath(a), W = this.createSmoothPath(n), y = w.ticks.map((g) => ({
|
|
434
435
|
y: g >= 0 ? C - _ * (g / v) : C + _ * Math.abs(g) / v,
|
|
435
436
|
value: g,
|
|
436
|
-
prefix:
|
|
437
|
-
suffix:
|
|
438
|
-
datapoint:
|
|
437
|
+
prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
438
|
+
suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
439
|
+
datapoint: r
|
|
439
440
|
})), G = N.ticks.map((g) => {
|
|
440
441
|
const F = (g - N.min) / (N.max - N.min);
|
|
441
442
|
return {
|
|
442
|
-
y: g >= 0 ?
|
|
443
|
+
y: g >= 0 ? p - _ * F : p + _ * F,
|
|
443
444
|
value: g,
|
|
444
|
-
prefix:
|
|
445
|
-
suffix:
|
|
446
|
-
datapoint:
|
|
445
|
+
prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
446
|
+
suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
447
|
+
datapoint: r
|
|
447
448
|
};
|
|
448
449
|
});
|
|
449
450
|
return {
|
|
450
|
-
...
|
|
451
|
+
...r,
|
|
451
452
|
yOffset: O,
|
|
452
453
|
autoScaleYLabels: G,
|
|
453
454
|
individualHeight: _,
|
|
454
|
-
scaleYLabels:
|
|
455
|
-
individualScale:
|
|
456
|
-
individualMax:
|
|
457
|
-
zeroPosition:
|
|
458
|
-
curve:
|
|
459
|
-
plots:
|
|
460
|
-
area:
|
|
455
|
+
scaleYLabels: r.autoScaling ? G : y,
|
|
456
|
+
individualScale: r.autoScaling ? N : w,
|
|
457
|
+
individualMax: r.autoScaling ? z : v,
|
|
458
|
+
zeroPosition: r.autoScaling ? p : C,
|
|
459
|
+
curve: r.autoScaling ? W : d,
|
|
460
|
+
plots: r.autoScaling ? n : a,
|
|
461
|
+
area: r.useArea ? this.mutableConfig.useIndividualScale ? this.createIndividualArea(r.autoScaling ? n : a, r.autoScaling ? p : C) : this.createArea(a) : ""
|
|
461
462
|
};
|
|
462
463
|
});
|
|
463
464
|
},
|
|
464
465
|
plotSet() {
|
|
465
|
-
return this.activeSeriesWithStackRatios.filter((
|
|
466
|
-
this.checkAutoScaleError(
|
|
467
|
-
const
|
|
468
|
-
ratios:
|
|
469
|
-
valueMin:
|
|
466
|
+
return this.activeSeriesWithStackRatios.filter((r) => r.type === "plot").map((r) => {
|
|
467
|
+
this.checkAutoScaleError(r);
|
|
468
|
+
const s = Math.min(...r.absoluteValues.filter((y) => ![null, void 0].includes(y))), o = Math.max(...r.absoluteValues.filter((y) => ![null, void 0].includes(y))) || 1, t = {
|
|
469
|
+
ratios: r.absoluteValues.filter((y) => ![null, void 0].includes(y)).map((y) => (y - s) / (o - s)),
|
|
470
|
+
valueMin: s,
|
|
470
471
|
valueMax: o
|
|
471
472
|
}, e = {
|
|
472
|
-
max:
|
|
473
|
-
min:
|
|
474
|
-
}, x =
|
|
475
|
-
const g = this.mutableConfig.useIndividualScale ? (
|
|
473
|
+
max: r.scaleMax || Math.max(...r.absoluteValues) || 1,
|
|
474
|
+
min: r.scaleMin || Math.min(...r.absoluteValues) > 0 ? 0 : Math.min(...r.absoluteValues)
|
|
475
|
+
}, x = r.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = 1.0000001, w = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * A : e.max, x), N = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax === t.valueMin ? t.valueMax * A : t.valueMax, x), b = w.min >= 0 ? 0 : Math.abs(w.min), V = 0, v = w.max + b, z = N.max + Math.abs(V), O = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - r.cumulatedStackRatio) : 0, _ = this.mutableConfig.isStacked ? this.drawingArea.height * r.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - O - _ * b / v, p = this.drawingArea.bottom - O - _ * V / z, a = r.series.map((y, G) => {
|
|
476
|
+
const g = this.mutableConfig.useIndividualScale ? (r.absoluteValues[G] + Math.abs(b)) / v : this.ratioToMax(y);
|
|
476
477
|
return {
|
|
477
478
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * G),
|
|
478
479
|
y: this.checkNaN(this.drawingArea.bottom - O - _ * g),
|
|
479
|
-
value:
|
|
480
|
-
comment:
|
|
480
|
+
value: r.absoluteValues[G],
|
|
481
|
+
comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[G] || ""
|
|
481
482
|
};
|
|
482
|
-
}), h =
|
|
483
|
+
}), h = r.absoluteValues.map((y) => N.min >= 0 ? (y - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (y + Math.abs(N.min)) / (N.max + Math.abs(N.min))), n = r.series.map((y, G) => ({
|
|
483
484
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * G),
|
|
484
485
|
y: this.checkNaN(this.drawingArea.bottom - O - (_ * h[G] || 0)),
|
|
485
|
-
value:
|
|
486
|
-
comment:
|
|
487
|
-
})), d =
|
|
486
|
+
value: r.absoluteValues[G],
|
|
487
|
+
comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[G] || ""
|
|
488
|
+
})), d = w.ticks.map((y) => ({
|
|
488
489
|
y: y >= 0 ? C - _ * (y / v) : C + _ * Math.abs(y) / v,
|
|
489
490
|
value: y,
|
|
490
|
-
prefix:
|
|
491
|
-
suffix:
|
|
492
|
-
datapoint:
|
|
493
|
-
})),
|
|
491
|
+
prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
492
|
+
suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
493
|
+
datapoint: r
|
|
494
|
+
})), W = N.ticks.map((y) => {
|
|
494
495
|
const G = (y - N.min) / (N.max - N.min);
|
|
495
496
|
return {
|
|
496
|
-
y: y >= 0 ?
|
|
497
|
+
y: y >= 0 ? p - _ * G : p + _ * G,
|
|
497
498
|
value: y,
|
|
498
|
-
prefix:
|
|
499
|
-
suffix:
|
|
500
|
-
datapoint:
|
|
499
|
+
prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
500
|
+
suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
501
|
+
datapoint: r
|
|
501
502
|
};
|
|
502
503
|
});
|
|
503
504
|
return {
|
|
504
|
-
...
|
|
505
|
+
...r,
|
|
505
506
|
yOffset: O,
|
|
506
|
-
autoScaleYLabels:
|
|
507
|
+
autoScaleYLabels: W,
|
|
507
508
|
individualHeight: _,
|
|
508
|
-
scaleYLabels:
|
|
509
|
-
individualScale:
|
|
510
|
-
individualMax:
|
|
511
|
-
zeroPosition:
|
|
512
|
-
plots:
|
|
509
|
+
scaleYLabels: r.autoScaling ? W : d,
|
|
510
|
+
individualScale: r.autoScaling ? N : w,
|
|
511
|
+
individualMax: r.autoScaling ? z : v,
|
|
512
|
+
zeroPosition: r.autoScaling ? p : C,
|
|
513
|
+
plots: r.autoScaling ? n : a
|
|
513
514
|
};
|
|
514
515
|
});
|
|
515
516
|
},
|
|
516
517
|
drawingArea() {
|
|
517
|
-
const
|
|
518
|
+
const r = this.mutableConfig.useIndividualScale && this.FINAL_CONFIG.chart.grid.labels.show ? this.absoluteDataset.filter((s) => !this.segregatedSeries.includes(s.id)).length * (this.mutableConfig.isStacked ? 0 : this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth) : 0;
|
|
518
519
|
return {
|
|
519
520
|
top: this.FINAL_CONFIG.chart.padding.top,
|
|
520
521
|
right: this.width - this.FINAL_CONFIG.chart.padding.right,
|
|
521
522
|
bottom: this.height - this.FINAL_CONFIG.chart.padding.bottom,
|
|
522
|
-
left: this.FINAL_CONFIG.chart.padding.left +
|
|
523
|
+
left: this.FINAL_CONFIG.chart.padding.left + r,
|
|
523
524
|
height: this.height - (this.FINAL_CONFIG.chart.padding.top + this.FINAL_CONFIG.chart.padding.bottom),
|
|
524
|
-
width: this.width - (this.FINAL_CONFIG.chart.padding.right + this.FINAL_CONFIG.chart.padding.left +
|
|
525
|
+
width: this.width - (this.FINAL_CONFIG.chart.padding.right + this.FINAL_CONFIG.chart.padding.left + r)
|
|
525
526
|
};
|
|
526
527
|
},
|
|
527
528
|
max() {
|
|
528
|
-
return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax ? this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax : Math.max(...this.safeDataset.filter((
|
|
529
|
+
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)));
|
|
529
530
|
},
|
|
530
531
|
min() {
|
|
531
532
|
if (this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin !== null)
|
|
532
533
|
return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin;
|
|
533
|
-
const
|
|
534
|
-
return
|
|
534
|
+
const r = Math.min(...this.safeDataset.filter((s) => !this.segregatedSeries.includes(s.id)).map((s) => Math.min(...s.series)));
|
|
535
|
+
return r > 0 ? 0 : r;
|
|
535
536
|
},
|
|
536
537
|
niceScale() {
|
|
537
538
|
return this.calculateNiceScaleWithExactExtremes(this.min, this.max < 0 ? 0 : this.max, this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps);
|
|
@@ -540,52 +541,52 @@ const Xe = J(), qe = {
|
|
|
540
541
|
return this.slicer.end - this.slicer.start;
|
|
541
542
|
},
|
|
542
543
|
timeLabels() {
|
|
543
|
-
const
|
|
544
|
-
for (let o = 0; o <
|
|
545
|
-
|
|
544
|
+
const r = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length)), s = [];
|
|
545
|
+
for (let o = 0; o < r; o += 1)
|
|
546
|
+
s.push({
|
|
546
547
|
text: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[o] || String(o),
|
|
547
548
|
absoluteIndex: o
|
|
548
549
|
});
|
|
549
|
-
return
|
|
550
|
+
return s.slice(this.slicer.start, this.slicer.end);
|
|
550
551
|
},
|
|
551
552
|
slot() {
|
|
552
553
|
return {
|
|
553
|
-
bar: this.drawingArea.width / this.maxSeries / this.safeDataset.filter((
|
|
554
|
+
bar: this.drawingArea.width / this.maxSeries / this.safeDataset.filter((r) => r.type === "bar").filter((r) => !this.segregatedSeries.includes(r.id)).length,
|
|
554
555
|
plot: this.drawingArea.width / this.maxSeries,
|
|
555
556
|
line: this.drawingArea.width / this.maxSeries
|
|
556
557
|
};
|
|
557
558
|
},
|
|
558
559
|
barSlot() {
|
|
559
|
-
const
|
|
560
|
-
return this.drawingArea.width / this.maxSeries /
|
|
560
|
+
const r = this.safeDataset.filter((s) => s.type === "bar").filter((s) => !this.segregatedSeries.includes(s.id)).length;
|
|
561
|
+
return this.drawingArea.width / this.maxSeries / r - this.barPeriodGap * r;
|
|
561
562
|
},
|
|
562
563
|
barPeriodGap() {
|
|
563
564
|
return this.slot.line * this.FINAL_CONFIG.bar.periodGap;
|
|
564
565
|
},
|
|
565
566
|
maxSlot() {
|
|
566
|
-
return Math.max(...Object.values(this.slot).filter((
|
|
567
|
+
return Math.max(...Object.values(this.slot).filter((r) => r !== 1 / 0));
|
|
567
568
|
},
|
|
568
569
|
table() {
|
|
569
570
|
if (this.safeDataset.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
570
|
-
const
|
|
571
|
+
const r = this.relativeDataset.map((o) => ({
|
|
571
572
|
label: o.name,
|
|
572
573
|
color: o.color,
|
|
573
574
|
type: o.type
|
|
574
|
-
})),
|
|
575
|
+
})), s = [];
|
|
575
576
|
return this.timeLabels.forEach((o, u) => {
|
|
576
577
|
const t = [o.text];
|
|
577
578
|
this.relativeDataset.forEach((e) => {
|
|
578
579
|
t.push(this.canShowValue(e.absoluteValues[u]) ? Number(e.absoluteValues[u].toFixed(this.FINAL_CONFIG.table.rounding)) : "");
|
|
579
|
-
}),
|
|
580
|
-
}), { head:
|
|
580
|
+
}), s.push(t);
|
|
581
|
+
}), { head: r, body: s };
|
|
581
582
|
},
|
|
582
583
|
dataTable() {
|
|
583
|
-
const
|
|
584
|
-
let
|
|
585
|
-
|
|
584
|
+
const r = this.FINAL_CONFIG.table.showSum;
|
|
585
|
+
let s = [""].concat(this.relativeDataset.map((e) => e.name));
|
|
586
|
+
r && (s = s.concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'));
|
|
586
587
|
let o = [];
|
|
587
588
|
for (let e = 0; e < this.maxSeries; e += 1) {
|
|
588
|
-
const x = this.relativeDataset.map((A) => A.absoluteValues[e] ?? 0).reduce((A,
|
|
589
|
+
const x = this.relativeDataset.map((A) => A.absoluteValues[e] ?? 0).reduce((A, w) => A + w, 0);
|
|
589
590
|
o.push(
|
|
590
591
|
[
|
|
591
592
|
this.timeLabels[e].text ?? "-"
|
|
@@ -600,7 +601,7 @@ const Xe = J(), qe = {
|
|
|
600
601
|
r: this.FINAL_CONFIG.table.rounding
|
|
601
602
|
})
|
|
602
603
|
)
|
|
603
|
-
)).concat(
|
|
604
|
+
)).concat(r ? (x ?? 0).toFixed(this.FINAL_CONFIG.table.rounding) : [])
|
|
604
605
|
);
|
|
605
606
|
}
|
|
606
607
|
const u = {
|
|
@@ -616,7 +617,7 @@ const Xe = J(), qe = {
|
|
|
616
617
|
},
|
|
617
618
|
breakpoint: this.FINAL_CONFIG.table.responsiveBreakpoint
|
|
618
619
|
}, t = [this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map((e) => e.name)).concat(this.FINAL_CONFIG.table.columnNames.total);
|
|
619
|
-
return { head:
|
|
620
|
+
return { head: s, body: o, config: u, colNames: t };
|
|
620
621
|
},
|
|
621
622
|
dataTooltipSlot() {
|
|
622
623
|
return {
|
|
@@ -630,19 +631,20 @@ const Xe = J(), qe = {
|
|
|
630
631
|
};
|
|
631
632
|
},
|
|
632
633
|
selectedSeries() {
|
|
633
|
-
return this.relativeDataset.map((
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
634
|
+
return this.relativeDataset.map((r) => ({
|
|
635
|
+
slotAbsoluteIndex: r.slotAbsoluteIndex,
|
|
636
|
+
shape: r.shape || null,
|
|
637
|
+
name: r.name,
|
|
638
|
+
color: r.color,
|
|
639
|
+
type: r.type,
|
|
640
|
+
value: r.absoluteValues.find((s, o) => o === this.selectedSerieIndex),
|
|
641
|
+
comments: r.comments || [],
|
|
642
|
+
prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
643
|
+
suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix
|
|
642
644
|
}));
|
|
643
645
|
},
|
|
644
646
|
tooltipContent() {
|
|
645
|
-
let
|
|
647
|
+
let r = "", s = this.selectedSeries.map((t) => t.value).filter((t) => this.isSafeValue(t) && t !== null).reduce((t, e) => Math.abs(t) + Math.abs(e), 0);
|
|
646
648
|
const o = this.timeLabels[this.selectedSerieIndex], u = this.FINAL_CONFIG.chart.tooltip.customFormat;
|
|
647
649
|
return this.isFunction(u) && this.functionReturnsString(() => u({
|
|
648
650
|
seriesIndex: this.selectedSerieIndex,
|
|
@@ -660,15 +662,15 @@ const Xe = J(), qe = {
|
|
|
660
662
|
lines: this.lineSet,
|
|
661
663
|
plots: this.plotSet,
|
|
662
664
|
config: this.FINAL_CONFIG
|
|
663
|
-
}) : (o && o.text && this.FINAL_CONFIG.chart.tooltip.showTimeLabel && (
|
|
665
|
+
}) : (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) => {
|
|
664
666
|
if (this.isSafeValue(t.value)) {
|
|
665
667
|
let e = "", x = "";
|
|
666
668
|
switch (this.icons[t.type]) {
|
|
667
669
|
case "bar":
|
|
668
|
-
e = `<svg viewBox="0 0
|
|
670
|
+
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>`;
|
|
669
671
|
break;
|
|
670
672
|
case "line":
|
|
671
|
-
!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? x = `<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" />` : t.shape === "triangle" ? x = `<path d="${R({ 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" ? x = `<path d="${R({ 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" ? x = `<path d="${R({ 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" ? x = `<path d="${R({ 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" ? x = `<path d="${R({ 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" && (x = `<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" points="${
|
|
673
|
+
!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? x = `<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" />` : t.shape === "triangle" ? x = `<path d="${R({ 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" ? x = `<path d="${R({ 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" ? x = `<path d="${R({ 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" ? x = `<path d="${R({ 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" ? x = `<path d="${R({ 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" && (x = `<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}" />${x}</svg>`;
|
|
672
674
|
break;
|
|
673
675
|
case "plot":
|
|
674
676
|
if (!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape)) {
|
|
@@ -676,7 +678,7 @@ const Xe = J(), qe = {
|
|
|
676
678
|
break;
|
|
677
679
|
}
|
|
678
680
|
if (t.shape === "star") {
|
|
679
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" points="${
|
|
681
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" points="${X({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
|
|
680
682
|
break;
|
|
681
683
|
}
|
|
682
684
|
if (t.shape === "triangle") {
|
|
@@ -700,7 +702,7 @@ const Xe = J(), qe = {
|
|
|
700
702
|
break;
|
|
701
703
|
}
|
|
702
704
|
}
|
|
703
|
-
|
|
705
|
+
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(
|
|
704
706
|
t.type === "line" ? this.FINAL_CONFIG.line.labels.formatter : t.type === "bar" ? this.FINAL_CONFIG.bar.labels.formatter : this.FINAL_CONFIG.plot.labels.formatter,
|
|
705
707
|
t.value,
|
|
706
708
|
this.dataLabel({
|
|
@@ -711,12 +713,12 @@ const Xe = J(), qe = {
|
|
|
711
713
|
}),
|
|
712
714
|
{ datapoint: t }
|
|
713
715
|
) : ""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage ? `(${U({
|
|
714
|
-
v: this.checkNaN(Math.abs(t.value) /
|
|
716
|
+
v: this.checkNaN(Math.abs(t.value) / s * 100),
|
|
715
717
|
s: "%",
|
|
716
718
|
r: this.FINAL_CONFIG.chart.tooltip.roundingPercentage
|
|
717
|
-
})})` : ""}</div>`, this.FINAL_CONFIG.chart.comments.showInTooltip && t.comments.length && t.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex] && (
|
|
719
|
+
})})` : ""}</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>`);
|
|
718
720
|
}
|
|
719
|
-
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${this.FINAL_CONFIG.chart.tooltip.color}">${
|
|
721
|
+
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${this.FINAL_CONFIG.chart.tooltip.color}">${r}</div>`);
|
|
720
722
|
},
|
|
721
723
|
svg() {
|
|
722
724
|
return {
|
|
@@ -725,9 +727,9 @@ const Xe = J(), qe = {
|
|
|
725
727
|
};
|
|
726
728
|
},
|
|
727
729
|
yLabels() {
|
|
728
|
-
return this.niceScale.ticks.map((
|
|
729
|
-
y:
|
|
730
|
-
value:
|
|
730
|
+
return this.niceScale.ticks.map((r) => ({
|
|
731
|
+
y: r >= 0 ? this.zero - this.drawingArea.height * this.ratioToMax(r) : this.zero + this.drawingArea.height * this.ratioToMax(Math.abs(r)),
|
|
732
|
+
value: r,
|
|
731
733
|
prefix: this.FINAL_CONFIG.chart.labels.prefix,
|
|
732
734
|
suffix: this.FINAL_CONFIG.chart.labels.suffix
|
|
733
735
|
}));
|
|
@@ -737,20 +739,20 @@ const Xe = J(), qe = {
|
|
|
737
739
|
}
|
|
738
740
|
},
|
|
739
741
|
mounted() {
|
|
740
|
-
this.prepareChart(), this.setupSlicer(), document.addEventListener("mousemove", (
|
|
742
|
+
this.prepareChart(), this.setupSlicer(), document.addEventListener("mousemove", (r) => {
|
|
741
743
|
this.clientPosition = {
|
|
742
|
-
x:
|
|
743
|
-
y:
|
|
744
|
+
x: r.clientX,
|
|
745
|
+
y: r.clientY
|
|
744
746
|
};
|
|
745
747
|
});
|
|
746
748
|
},
|
|
747
749
|
methods: {
|
|
748
750
|
abbreviate: ee,
|
|
749
751
|
adaptColorToBackground: te,
|
|
750
|
-
applyDataLabel:
|
|
751
|
-
assignStackRatios:
|
|
752
|
-
calcLinearProgression:
|
|
753
|
-
calculateNiceScaleWithExactExtremes:
|
|
752
|
+
applyDataLabel: re,
|
|
753
|
+
assignStackRatios: ae,
|
|
754
|
+
calcLinearProgression: le,
|
|
755
|
+
calculateNiceScaleWithExactExtremes: ie,
|
|
754
756
|
checkNaN: se,
|
|
755
757
|
closestDecimal: ne,
|
|
756
758
|
convertColorToHex: he,
|
|
@@ -762,80 +764,81 @@ const Xe = J(), qe = {
|
|
|
762
764
|
dataLabel: U,
|
|
763
765
|
downloadCsv: fe,
|
|
764
766
|
error: Ie,
|
|
767
|
+
forceValidValue: me,
|
|
765
768
|
functionReturnsString: Ne,
|
|
766
|
-
hasDeepProperty:
|
|
767
|
-
isFunction:
|
|
768
|
-
isSafeValue:
|
|
769
|
-
largestTriangleThreeBucketsArray:
|
|
770
|
-
objectIsEmpty:
|
|
771
|
-
setOpacity:
|
|
772
|
-
shiftHue:
|
|
773
|
-
translateSize:
|
|
774
|
-
treeShake:
|
|
775
|
-
useMouse:
|
|
769
|
+
hasDeepProperty: xe,
|
|
770
|
+
isFunction: be,
|
|
771
|
+
isSafeValue: Fe,
|
|
772
|
+
largestTriangleThreeBucketsArray: _e,
|
|
773
|
+
objectIsEmpty: Ae,
|
|
774
|
+
setOpacity: ye,
|
|
775
|
+
shiftHue: Le,
|
|
776
|
+
translateSize: Ce,
|
|
777
|
+
treeShake: Se,
|
|
778
|
+
useMouse: ve,
|
|
776
779
|
useNestedProp: Z,
|
|
777
|
-
setUserOptionsVisibility(
|
|
778
|
-
this.showUserOptionsOnChartHover && (this.userOptionsVisible =
|
|
780
|
+
setUserOptionsVisibility(r = !1) {
|
|
781
|
+
this.showUserOptionsOnChartHover && (this.userOptionsVisible = r);
|
|
779
782
|
},
|
|
780
783
|
toggleAnnotator() {
|
|
781
784
|
this.isAnnotator = !this.isAnnotator;
|
|
782
785
|
},
|
|
783
|
-
selectTimeLabel(
|
|
786
|
+
selectTimeLabel(r, s) {
|
|
784
787
|
const o = this.relativeDataset.map((u) => ({
|
|
785
788
|
shape: u.shape || null,
|
|
786
789
|
name: u.name,
|
|
787
790
|
color: u.color,
|
|
788
791
|
type: u.type,
|
|
789
|
-
value: u.absoluteValues.find((t, e) => e ===
|
|
792
|
+
value: u.absoluteValues.find((t, e) => e === s),
|
|
790
793
|
comments: u.comments || [],
|
|
791
794
|
prefix: u.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
792
795
|
suffix: u.suffix || this.FINAL_CONFIG.chart.labels.suffix
|
|
793
796
|
}));
|
|
794
797
|
this.$emit("selectTimeLabel", {
|
|
795
798
|
datapoint: o,
|
|
796
|
-
absoluteIndex:
|
|
797
|
-
label:
|
|
799
|
+
absoluteIndex: r.absoluteIndex,
|
|
800
|
+
label: r.text
|
|
798
801
|
});
|
|
799
802
|
},
|
|
800
|
-
getHighlightAreaPosition(
|
|
801
|
-
const
|
|
803
|
+
getHighlightAreaPosition(r) {
|
|
804
|
+
const s = 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;
|
|
802
805
|
return {
|
|
803
|
-
x:
|
|
806
|
+
x: s < this.drawingArea.left ? this.drawingArea.left : s,
|
|
804
807
|
width: o
|
|
805
808
|
};
|
|
806
809
|
},
|
|
807
810
|
prepareConfig() {
|
|
808
|
-
const
|
|
811
|
+
const r = ke().vue_ui_xy;
|
|
809
812
|
if (!Object.keys(this.config || {}).length)
|
|
810
|
-
return
|
|
811
|
-
const
|
|
813
|
+
return r;
|
|
814
|
+
const s = this.useNestedProp({
|
|
812
815
|
userConfig: this.config,
|
|
813
|
-
defaultConfig:
|
|
816
|
+
defaultConfig: r
|
|
814
817
|
});
|
|
815
|
-
return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ?
|
|
818
|
+
return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ? s.chart.highlightArea = this.config.chart.highlightArea : s.chart.highlightArea = [this.config.chart.highlightArea]), this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMin") ? s.chart.grid.labels.yAxis.scaleMin = this.config.chart.grid.labels.yAxis.scaleMin : s.chart.grid.labels.yAxis.scaleMin = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMax") ? s.chart.grid.labels.yAxis.scaleMax = this.config.chart.grid.labels.yAxis.scaleMax : s.chart.grid.labels.yAxis.scaleMax = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.startIndex") ? s.chart.zoom.startIndex = this.config.chart.zoom.startIndex : s.chart.zoom.startIndex = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.endIndex") ? s.chart.zoom.endIndex = this.config.chart.zoom.endIndex : s.chart.zoom.endIndex = null, s.theme ? {
|
|
816
819
|
...Z({
|
|
817
|
-
userConfig: this.themes.vue_ui_xy[
|
|
818
|
-
defaultConfig:
|
|
820
|
+
userConfig: this.themes.vue_ui_xy[s.theme] || this.config,
|
|
821
|
+
defaultConfig: s
|
|
819
822
|
}),
|
|
820
|
-
customPalette: this.themePalettes[
|
|
821
|
-
} :
|
|
823
|
+
customPalette: this.themePalettes[s.theme] || this.palette
|
|
824
|
+
} : s;
|
|
822
825
|
},
|
|
823
826
|
prepareChart() {
|
|
824
827
|
if (this.objectIsEmpty(this.dataset) ? this.error({
|
|
825
828
|
componentName: "VueUiXy",
|
|
826
829
|
type: "dataset"
|
|
827
|
-
}) : this.dataset.forEach((
|
|
828
|
-
[null, void 0].includes(
|
|
830
|
+
}) : this.dataset.forEach((r, s) => {
|
|
831
|
+
[null, void 0].includes(r.name) && this.error({
|
|
829
832
|
componentName: "VueUiXy",
|
|
830
833
|
type: "datasetSerieAttribute",
|
|
831
834
|
property: "name (string)",
|
|
832
|
-
index:
|
|
835
|
+
index: s
|
|
833
836
|
});
|
|
834
|
-
}), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((
|
|
835
|
-
|
|
836
|
-
this.isSafeValue(
|
|
837
|
-
-----> The serie '${
|
|
838
|
-
'${
|
|
837
|
+
}), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((r) => {
|
|
838
|
+
r.series.forEach((s, o) => {
|
|
839
|
+
this.isSafeValue(s) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
840
|
+
-----> The serie '${r.name}' contains the value '${s}' at index ${o}.
|
|
841
|
+
'${s}' was converted to null to allow the chart to display.`);
|
|
839
842
|
});
|
|
840
843
|
}), 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 = {
|
|
841
844
|
dataLabels: {
|
|
@@ -846,25 +849,25 @@ const Xe = J(), qe = {
|
|
|
846
849
|
isStacked: this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,
|
|
847
850
|
useIndividualScale: this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale
|
|
848
851
|
}, this.FINAL_CONFIG.responsive) {
|
|
849
|
-
const
|
|
852
|
+
const s = this.$refs.chart.parentNode, { height: o, width: u } = s.getBoundingClientRect();
|
|
850
853
|
let t = null, e = 0;
|
|
851
854
|
this.FINAL_CONFIG.chart.title.show && (t = this.$refs.chartTitle, e = t.getBoundingClientRect().height);
|
|
852
855
|
let x = null, A = 0;
|
|
853
856
|
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (x = this.$refs.chartSlicer.$el, A = x.getBoundingClientRect().height);
|
|
854
|
-
let
|
|
855
|
-
this.FINAL_CONFIG.chart.legend.show && (
|
|
857
|
+
let w = null, N = 0;
|
|
858
|
+
this.FINAL_CONFIG.chart.legend.show && (w = this.$refs.chartLegend, N = w.getBoundingClientRect().height);
|
|
856
859
|
let b = 0;
|
|
857
860
|
this.$refs.source && (b = this.$refs.source.getBoundingClientRect().height);
|
|
858
|
-
let
|
|
859
|
-
this.$refs.noTitle && (
|
|
860
|
-
for (const O of
|
|
861
|
+
let V = 0;
|
|
862
|
+
this.$refs.noTitle && (V = this.$refs.noTitle.getBoundingClientRect().height), this.height = o - e - N - A - b - V, this.width = u, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes(), new ResizeObserver((z) => {
|
|
863
|
+
for (const O of z)
|
|
861
864
|
this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (A = this.$refs.chartSlicer.$el.getBoundingClientRect().height), this.$refs.chartLegend && (N = this.$refs.chartLegend.getBoundingClientRect().height), this.$refs.source && (b = this.$refs.source.getBoundingClientRect().height), this.height = O.contentBoxSize[0].blockSize - e - N - A - b - 24, this.width = O.contentBoxSize[0].inlineSize, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
|
|
862
|
-
}).observe(
|
|
865
|
+
}).observe(s);
|
|
863
866
|
} else
|
|
864
867
|
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;
|
|
865
868
|
},
|
|
866
|
-
selectMinimapIndex(
|
|
867
|
-
this.selectedMinimapIndex =
|
|
869
|
+
selectMinimapIndex(r) {
|
|
870
|
+
this.selectedMinimapIndex = r;
|
|
868
871
|
},
|
|
869
872
|
convertSizes() {
|
|
870
873
|
this.fontSizes.dataLabels = this.translateSize({
|
|
@@ -917,118 +920,118 @@ const Xe = J(), qe = {
|
|
|
917
920
|
toggleTooltip() {
|
|
918
921
|
this.mutableConfig.showTooltip = !this.mutableConfig.showTooltip;
|
|
919
922
|
},
|
|
920
|
-
checkAutoScaleError(
|
|
921
|
-
|
|
923
|
+
checkAutoScaleError(r) {
|
|
924
|
+
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`));
|
|
922
925
|
},
|
|
923
|
-
createArea(
|
|
924
|
-
if (!
|
|
925
|
-
const
|
|
926
|
-
return
|
|
926
|
+
createArea(r) {
|
|
927
|
+
if (!r[0]) return [-10, -10, "", -10, -10];
|
|
928
|
+
const s = { x: r[0].x, y: this.zero }, o = { x: r.at(-1).x, y: this.zero }, u = [];
|
|
929
|
+
return r.forEach((t) => {
|
|
927
930
|
u.push(`${t.x},${t.y} `);
|
|
928
|
-
}), [
|
|
931
|
+
}), [s.x, s.y, ...u, o.x, o.y].toString();
|
|
929
932
|
},
|
|
930
|
-
createIndividualArea(
|
|
931
|
-
if (!
|
|
932
|
-
const o = { x:
|
|
933
|
-
return
|
|
933
|
+
createIndividualArea(r, s) {
|
|
934
|
+
if (!r[0]) return [-10, -10, "", -10, -10];
|
|
935
|
+
const o = { x: r[0] ? r[0].x : Math.min(...r.filter((e) => !!e).map((e) => e.x)), y: s }, u = { x: r.at(-1) ? r.at(-1).x : Math.min(...r.filter((e) => !!e).map((e) => e.x)), y: s }, t = [];
|
|
936
|
+
return r.filter((e) => !!e).forEach((e) => {
|
|
934
937
|
t.push(`${e.x},${e.y} `);
|
|
935
938
|
}), [o.x, o.y, ...t, u.x, u.y].toString();
|
|
936
939
|
},
|
|
937
|
-
createStar:
|
|
940
|
+
createStar: X,
|
|
938
941
|
createPolygonPath: R,
|
|
939
|
-
fillArray(
|
|
940
|
-
let o = Array(
|
|
941
|
-
for (let u = 0; u <
|
|
942
|
-
o[u] =
|
|
942
|
+
fillArray(r, s) {
|
|
943
|
+
let o = Array(r).fill(0);
|
|
944
|
+
for (let u = 0; u < s.length && u < r; u += 1)
|
|
945
|
+
o[u] = s[u];
|
|
943
946
|
return o;
|
|
944
947
|
},
|
|
945
948
|
async setupSlicer() {
|
|
946
949
|
(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 = {
|
|
947
950
|
start: 0,
|
|
948
|
-
end: Math.max(...this.dataset.map((
|
|
951
|
+
end: Math.max(...this.dataset.map((r) => this.largestTriangleThreeBucketsArray({ data: r.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length))
|
|
949
952
|
}, this.slicerStep += 1);
|
|
950
953
|
},
|
|
951
954
|
refreshSlicer() {
|
|
952
955
|
this.setupSlicer();
|
|
953
956
|
},
|
|
954
|
-
validSlicerEnd(
|
|
955
|
-
const
|
|
956
|
-
return
|
|
957
|
+
validSlicerEnd(r) {
|
|
958
|
+
const s = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length));
|
|
959
|
+
return r > s ? s : 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;
|
|
957
960
|
},
|
|
958
|
-
calcRectHeight(
|
|
959
|
-
return
|
|
961
|
+
calcRectHeight(r) {
|
|
962
|
+
return r.value >= 0 ? this.checkNaN(this.zero - r.y <= 0 ? 1e-5 : this.zero - r.y) : this.checkNaN(r.y - this.zero <= 0 ? 1e-5 : r.y - this.zero);
|
|
960
963
|
},
|
|
961
|
-
calcIndividualHeight(
|
|
962
|
-
return
|
|
964
|
+
calcIndividualHeight(r) {
|
|
965
|
+
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);
|
|
963
966
|
},
|
|
964
967
|
calcRectWidth() {
|
|
965
968
|
return this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.slot.line - this.drawingArea.width / this.maxSeries * 0.1 : this.slot.bar;
|
|
966
969
|
},
|
|
967
|
-
calcRectX(
|
|
968
|
-
return this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ?
|
|
970
|
+
calcRectX(r) {
|
|
971
|
+
return this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? r.x + this.drawingArea.width / this.maxSeries * 0.05 : r.x + this.slot.bar / 2;
|
|
969
972
|
},
|
|
970
|
-
calcRectY(
|
|
971
|
-
return
|
|
973
|
+
calcRectY(r) {
|
|
974
|
+
return r.value >= 0 ? r.y : this.zero;
|
|
972
975
|
},
|
|
973
|
-
calcIndividualRectY(
|
|
974
|
-
return
|
|
976
|
+
calcIndividualRectY(r) {
|
|
977
|
+
return r.value >= 0 ? r.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(r.zeroPosition) ? 0 : r.zeroPosition;
|
|
975
978
|
},
|
|
976
|
-
canShowValue(
|
|
977
|
-
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(
|
|
979
|
+
canShowValue(r) {
|
|
980
|
+
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(r);
|
|
978
981
|
},
|
|
979
|
-
findClosestValue(
|
|
980
|
-
let o =
|
|
981
|
-
for (let t = 1; t <
|
|
982
|
-
const e = Math.abs(
|
|
983
|
-
e < u &&
|
|
982
|
+
findClosestValue(r, s) {
|
|
983
|
+
let o = s[0], u = Math.abs(r - s[0]);
|
|
984
|
+
for (let t = 1; t < s.length; t += 1) {
|
|
985
|
+
const e = Math.abs(r - s[t]);
|
|
986
|
+
e < u && s[t] < r && (o = s[t], u = e);
|
|
984
987
|
}
|
|
985
988
|
return o;
|
|
986
989
|
},
|
|
987
|
-
ratioToMax(
|
|
988
|
-
return
|
|
990
|
+
ratioToMax(r) {
|
|
991
|
+
return r / (this.canShowValue(this.absoluteMax) ? this.absoluteMax : 1);
|
|
989
992
|
},
|
|
990
|
-
selectX(
|
|
993
|
+
selectX(r) {
|
|
991
994
|
this.$emit(
|
|
992
995
|
"selectX",
|
|
993
996
|
{
|
|
994
|
-
dataset: this.relativeDataset.map((
|
|
995
|
-
name:
|
|
996
|
-
value: [null, void 0, NaN].includes(
|
|
997
|
-
color:
|
|
998
|
-
type:
|
|
997
|
+
dataset: this.relativeDataset.map((s) => ({
|
|
998
|
+
name: s.name,
|
|
999
|
+
value: [null, void 0, NaN].includes(s.absoluteValues[r]) ? null : s.absoluteValues[r],
|
|
1000
|
+
color: s.color,
|
|
1001
|
+
type: s.type
|
|
999
1002
|
})),
|
|
1000
|
-
index:
|
|
1001
|
-
indexLabel: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[
|
|
1003
|
+
index: r,
|
|
1004
|
+
indexLabel: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[r]
|
|
1002
1005
|
}
|
|
1003
1006
|
);
|
|
1004
1007
|
},
|
|
1005
1008
|
getData() {
|
|
1006
|
-
return this.absoluteDataset.map((
|
|
1007
|
-
values:
|
|
1008
|
-
color:
|
|
1009
|
-
name:
|
|
1010
|
-
type:
|
|
1009
|
+
return this.absoluteDataset.map((r) => ({
|
|
1010
|
+
values: r.absoluteValues,
|
|
1011
|
+
color: r.color,
|
|
1012
|
+
name: r.name,
|
|
1013
|
+
type: r.type
|
|
1011
1014
|
}));
|
|
1012
1015
|
},
|
|
1013
|
-
segregate(
|
|
1014
|
-
if (this.segregatedSeries.includes(
|
|
1015
|
-
this.segregatedSeries = this.segregatedSeries.filter((
|
|
1016
|
+
segregate(r) {
|
|
1017
|
+
if (this.segregatedSeries.includes(r.id))
|
|
1018
|
+
this.segregatedSeries = this.segregatedSeries.filter((s) => s !== r.id);
|
|
1016
1019
|
else {
|
|
1017
1020
|
if (this.segregatedSeries.length + 1 === this.safeDataset.length) return;
|
|
1018
|
-
this.segregatedSeries.push(
|
|
1021
|
+
this.segregatedSeries.push(r.id);
|
|
1019
1022
|
}
|
|
1020
|
-
this.$emit("selectLegend", this.relativeDataset.map((
|
|
1021
|
-
name:
|
|
1022
|
-
values:
|
|
1023
|
-
color:
|
|
1024
|
-
type:
|
|
1023
|
+
this.$emit("selectLegend", this.relativeDataset.map((s) => ({
|
|
1024
|
+
name: s.name,
|
|
1025
|
+
values: s.absoluteValues,
|
|
1026
|
+
color: s.color,
|
|
1027
|
+
type: s.type
|
|
1025
1028
|
}))), this.segregateStep += 1;
|
|
1026
1029
|
},
|
|
1027
|
-
toggleTooltipVisibility(
|
|
1028
|
-
this.isTooltip =
|
|
1030
|
+
toggleTooltipVisibility(r, s = null) {
|
|
1031
|
+
this.isTooltip = r, r ? this.selectedSerieIndex = s : this.selectedSerieIndex = null;
|
|
1029
1032
|
},
|
|
1030
|
-
toggleFullscreen(
|
|
1031
|
-
this.isFullscreen =
|
|
1033
|
+
toggleFullscreen(r) {
|
|
1034
|
+
this.isFullscreen = r, this.step += 1;
|
|
1032
1035
|
},
|
|
1033
1036
|
showSpinnerPdf() {
|
|
1034
1037
|
this.isPrinting = !0;
|
|
@@ -1036,20 +1039,20 @@ const Xe = J(), qe = {
|
|
|
1036
1039
|
async generatePdf() {
|
|
1037
1040
|
this.showSpinnerPdf(), clearTimeout(this.__to__), this.isPrinting = !0, this.__to__ = setTimeout(async () => {
|
|
1038
1041
|
try {
|
|
1039
|
-
const { default:
|
|
1040
|
-
await
|
|
1042
|
+
const { default: r } = await import("./pdf-B7oVat64.js");
|
|
1043
|
+
await r({
|
|
1041
1044
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1042
1045
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy"
|
|
1043
1046
|
});
|
|
1044
|
-
} catch (
|
|
1045
|
-
console.error("Error generating PDF:",
|
|
1047
|
+
} catch (r) {
|
|
1048
|
+
console.error("Error generating PDF:", r);
|
|
1046
1049
|
} finally {
|
|
1047
1050
|
this.isPrinting = !1;
|
|
1048
1051
|
}
|
|
1049
1052
|
}, 100);
|
|
1050
1053
|
},
|
|
1051
1054
|
generateCsv() {
|
|
1052
|
-
const
|
|
1055
|
+
const r = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], s = ["", ...this.table.head.map((e) => e.label)], o = this.table.body, u = r.concat([s]).concat(o), t = this.createCsvContent(u);
|
|
1053
1056
|
this.downloadCsv({ csvContent: t, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
|
|
1054
1057
|
},
|
|
1055
1058
|
showSpinnerImage() {
|
|
@@ -1058,75 +1061,80 @@ const Xe = J(), qe = {
|
|
|
1058
1061
|
async generateImage() {
|
|
1059
1062
|
this.showSpinnerImage(), clearTimeout(this.__to__), this.isImaging = !0, this.__to__ = setTimeout(async () => {
|
|
1060
1063
|
try {
|
|
1061
|
-
const { default:
|
|
1062
|
-
await
|
|
1064
|
+
const { default: r } = await import("./img-DGzWcJ4Y.js");
|
|
1065
|
+
await r({
|
|
1063
1066
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1064
1067
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
1065
1068
|
format: "png"
|
|
1066
1069
|
});
|
|
1067
|
-
} catch (
|
|
1068
|
-
console.error("Error generating image:",
|
|
1070
|
+
} catch (r) {
|
|
1071
|
+
console.error("Error generating image:", r);
|
|
1069
1072
|
} finally {
|
|
1070
1073
|
this.isImaging = !1;
|
|
1071
1074
|
}
|
|
1072
1075
|
}, 100);
|
|
1073
1076
|
}
|
|
1074
1077
|
}
|
|
1075
|
-
},
|
|
1078
|
+
}, Je = ["id"], Ke = {
|
|
1076
1079
|
key: 1,
|
|
1077
1080
|
ref: "noTitle",
|
|
1078
1081
|
class: "vue-data-ui-no-title-space",
|
|
1079
1082
|
style: "height:36px; width: 100%; background:transparent"
|
|
1080
|
-
},
|
|
1083
|
+
}, Qe = ["viewBox"], je = ["x", "y", "width", "height"], $e = { key: 1 }, et = { class: "vue-ui-xy-grid" }, tt = ["stroke", "x1", "x2", "y1", "y2"], rt = ["stroke", "x1", "x2", "y1", "y2"], at = { key: 1 }, lt = ["x1", "x2", "y1", "y2", "stroke"], it = ["x1", "x2", "y1", "y2", "stroke"], st = ["x1", "x2", "y1", "y2", "stroke"], nt = { key: 3 }, ht = ["x1", "x2", "y1", "y2", "stroke"], ot = ["id"], ct = ["stop-color"], dt = ["stop-color"], ut = ["stop-color"], gt = ["id"], ft = ["stop-color"], It = ["stop-color"], mt = ["stop-color"], Nt = ["id"], xt = ["stop-color"], bt = ["stop-color"], Ft = ["id"], _t = ["stop-color"], At = ["stop-color"], yt = ["id"], Lt = ["stop-color"], Ct = ["stop-color"], St = ["x", "y", "height", "width", "fill"], kt = ["x", "y", "width"], wt = ["x", "y", "height", "width", "fill"], Ot = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Gt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], vt = ["width", "x", "y"], zt = { key: 0 }, pt = ["id"], Mt = ["fill"], Vt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Tt = ["x", "y", "font-size", "fill"], Pt = ["stroke", "x1", "x2", "y1", "y2"], Rt = { key: 2 }, Dt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ht = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Bt = { key: 4 }, Wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Et = ["fill", "font-size", "transform"], Yt = ["x1", "x2", "y1", "y2", "stroke"], qt = ["x", "y", "font-size", "fill"], Xt = ["x1", "x2", "y1", "y2", "stroke"], Ut = ["x", "y", "font-size", "fill"], Zt = ["width", "x", "y"], Jt = { style: { width: "100%" } }, Kt = { key: 0 }, Qt = ["id"], jt = ["fill"], $t = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], er = ["x", "y", "font-size", "fill"], tr = ["d", "stroke", "stroke-width", "stroke-dasharray"], rr = { key: 1 }, ar = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], lr = { key: 5 }, ir = { key: 0 }, sr = ["d", "fill"], nr = ["d", "fill"], hr = ["d", "fill"], or = ["d", "fill"], cr = ["d", "stroke", "stroke-width", "stroke-dasharray"], dr = { key: 2 }, ur = ["x1", "x2", "y1", "y2", "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 }, Lr = ["x", "y", "font-size", "fill"], Cr = ["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"], pr = ["x", "y", "font-size", "fill", "innerHTML"], Mr = ["x", "y", "font-size", "fill", "innerHTML"], Vr = ["x", "y", "width", "height", "fill", "onMouseenter"], Tr = ["font-size", "fill", "transform"], Pr = ["x", "y", "font-size", "fill"], Rr = { key: 10 }, Dr = ["text-anchor", "font-size", "fill", "transform", "onClick"], Hr = ["x", "y", "height", "width", "onMouseenter", "onClick"], Br = { key: 11 }, Wr = ["x", "y"], Er = ["cx", "cy", "r", "fill"], Yr = {
|
|
1081
1084
|
key: 5,
|
|
1082
1085
|
class: "vue-data-ui-watermark"
|
|
1083
|
-
},
|
|
1086
|
+
}, qr = ["onClick"], Xr = {
|
|
1084
1087
|
key: 0,
|
|
1085
1088
|
viewBox: "0 0 20 12",
|
|
1086
1089
|
height: "14",
|
|
1087
1090
|
width: "20"
|
|
1088
|
-
},
|
|
1091
|
+
}, Ur = ["stroke", "fill"], Zr = {
|
|
1089
1092
|
key: 1,
|
|
1093
|
+
viewBox: "0 0 40 40",
|
|
1094
|
+
height: "14",
|
|
1095
|
+
width: "14"
|
|
1096
|
+
}, Jr = ["fill"], Kr = ["fill"], Qr = {
|
|
1097
|
+
key: 2,
|
|
1090
1098
|
viewBox: "0 0 12 12",
|
|
1091
1099
|
height: "14",
|
|
1092
1100
|
width: "14"
|
|
1093
|
-
},
|
|
1101
|
+
}, jr = {
|
|
1094
1102
|
key: 9,
|
|
1095
1103
|
ref: "chartLegend"
|
|
1096
|
-
},
|
|
1104
|
+
}, $r = {
|
|
1097
1105
|
key: 10,
|
|
1098
1106
|
ref: "source",
|
|
1099
1107
|
dir: "auto"
|
|
1100
|
-
},
|
|
1108
|
+
}, ea = {
|
|
1101
1109
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
1102
1110
|
"data-html2canvas-ignore": ""
|
|
1103
|
-
},
|
|
1104
|
-
function
|
|
1105
|
-
const x =
|
|
1106
|
-
return
|
|
1111
|
+
}, ta = ["innerHTML"];
|
|
1112
|
+
function ra(r, s, o, u, t, e) {
|
|
1113
|
+
const x = T("PenAndPaper"), A = T("Title"), w = T("UserOptions"), N = T("PackageVersion"), b = T("Shape"), V = T("Skeleton"), v = T("Slicer"), z = T("Tooltip"), O = T("BaseIcon"), _ = T("TableSparkline"), C = T("DataTable"), p = T("Accordion");
|
|
1114
|
+
return l(), i("div", {
|
|
1107
1115
|
id: `vue-ui-xy_${t.uniqueId}`,
|
|
1108
|
-
class:
|
|
1116
|
+
class: P(`vue-ui-xy ${t.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1109
1117
|
ref: "chart",
|
|
1110
1118
|
style: L(`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%" : ""}`),
|
|
1111
|
-
onMouseenter:
|
|
1112
|
-
onMouseleave:
|
|
1119
|
+
onMouseenter: s[7] || (s[7] = () => e.setUserOptionsVisibility(!0)),
|
|
1120
|
+
onMouseleave: s[8] || (s[8] = () => e.setUserOptionsVisibility(!1))
|
|
1113
1121
|
}, [
|
|
1114
|
-
e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (
|
|
1122
|
+
e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (l(), D(x, {
|
|
1115
1123
|
key: 0,
|
|
1116
|
-
parent:
|
|
1124
|
+
parent: r.$refs.chart,
|
|
1117
1125
|
backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1118
1126
|
color: e.FINAL_CONFIG.chart.color,
|
|
1119
1127
|
active: t.isAnnotator,
|
|
1120
1128
|
onClose: e.toggleAnnotator
|
|
1121
1129
|
}, null, 8, ["parent", "backgroundColor", "color", "active", "onClose"])) : c("", !0),
|
|
1122
|
-
e.hasOptionsNoTitle ? (
|
|
1123
|
-
e.FINAL_CONFIG.chart.title.show ? (
|
|
1130
|
+
e.hasOptionsNoTitle ? (l(), i("div", Ke, null, 512)) : c("", !0),
|
|
1131
|
+
e.FINAL_CONFIG.chart.title.show ? (l(), i("div", {
|
|
1124
1132
|
key: 2,
|
|
1125
1133
|
ref: "chartTitle",
|
|
1126
1134
|
class: "vue-ui-xy-title",
|
|
1127
1135
|
style: L(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
1128
1136
|
}, [
|
|
1129
|
-
(
|
|
1137
|
+
(l(), D(A, {
|
|
1130
1138
|
key: `title_${t.titleStep}`,
|
|
1131
1139
|
config: {
|
|
1132
1140
|
title: {
|
|
@@ -1140,7 +1148,7 @@ function Zi(i, l, o, u, t, e) {
|
|
|
1140
1148
|
}
|
|
1141
1149
|
}, null, 8, ["config"]))
|
|
1142
1150
|
], 4)) : c("", !0),
|
|
1143
|
-
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (t.keepUserOptionState || t.userOptionsVisible) ? (
|
|
1151
|
+
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (t.keepUserOptionState || t.userOptionsVisible) ? (l(), D(w, {
|
|
1144
1152
|
ref: "defails",
|
|
1145
1153
|
key: `user_options_${t.step}`,
|
|
1146
1154
|
backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
@@ -1158,7 +1166,7 @@ function Zi(i, l, o, u, t, e) {
|
|
|
1158
1166
|
hasFullscreen: e.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,
|
|
1159
1167
|
isStacked: t.mutableConfig.isStacked,
|
|
1160
1168
|
isFullscreen: t.isFullscreen,
|
|
1161
|
-
chartElement:
|
|
1169
|
+
chartElement: r.$refs.chart,
|
|
1162
1170
|
position: e.FINAL_CONFIG.chart.userOptions.position,
|
|
1163
1171
|
isTooltip: t.mutableConfig.showTooltip,
|
|
1164
1172
|
titles: { ...e.FINAL_CONFIG.chart.userOptions.buttonTitles },
|
|
@@ -1176,81 +1184,81 @@ function Zi(i, l, o, u, t, e) {
|
|
|
1176
1184
|
style: L({
|
|
1177
1185
|
visibility: t.keepUserOptionState ? t.userOptionsVisible ? "visible" : "hidden" : "visible"
|
|
1178
1186
|
})
|
|
1179
|
-
},
|
|
1180
|
-
|
|
1187
|
+
}, Be({ _: 2 }, [
|
|
1188
|
+
r.$slots.optionTooltip ? {
|
|
1181
1189
|
name: "optionTooltip",
|
|
1182
1190
|
fn: M(() => [
|
|
1183
|
-
|
|
1191
|
+
S(r.$slots, "optionTooltip", {}, void 0, !0)
|
|
1184
1192
|
]),
|
|
1185
1193
|
key: "0"
|
|
1186
1194
|
} : void 0,
|
|
1187
|
-
|
|
1195
|
+
r.$slots.optionPdf ? {
|
|
1188
1196
|
name: "optionPdf",
|
|
1189
1197
|
fn: M(() => [
|
|
1190
|
-
|
|
1198
|
+
S(r.$slots, "optionPdf", {}, void 0, !0)
|
|
1191
1199
|
]),
|
|
1192
1200
|
key: "1"
|
|
1193
1201
|
} : void 0,
|
|
1194
|
-
|
|
1202
|
+
r.$slots.optionCsv ? {
|
|
1195
1203
|
name: "optionCsv",
|
|
1196
1204
|
fn: M(() => [
|
|
1197
|
-
|
|
1205
|
+
S(r.$slots, "optionCsv", {}, void 0, !0)
|
|
1198
1206
|
]),
|
|
1199
1207
|
key: "2"
|
|
1200
1208
|
} : void 0,
|
|
1201
|
-
|
|
1209
|
+
r.$slots.optionImg ? {
|
|
1202
1210
|
name: "optionImg",
|
|
1203
1211
|
fn: M(() => [
|
|
1204
|
-
|
|
1212
|
+
S(r.$slots, "optionImg", {}, void 0, !0)
|
|
1205
1213
|
]),
|
|
1206
1214
|
key: "3"
|
|
1207
1215
|
} : void 0,
|
|
1208
|
-
|
|
1216
|
+
r.$slots.optionTable ? {
|
|
1209
1217
|
name: "optionTable",
|
|
1210
1218
|
fn: M(() => [
|
|
1211
|
-
|
|
1219
|
+
S(r.$slots, "optionTable", {}, void 0, !0)
|
|
1212
1220
|
]),
|
|
1213
1221
|
key: "4"
|
|
1214
1222
|
} : void 0,
|
|
1215
|
-
|
|
1223
|
+
r.$slots.optionLabels ? {
|
|
1216
1224
|
name: "optionLabels",
|
|
1217
1225
|
fn: M(() => [
|
|
1218
|
-
|
|
1226
|
+
S(r.$slots, "optionLabels", {}, void 0, !0)
|
|
1219
1227
|
]),
|
|
1220
1228
|
key: "5"
|
|
1221
1229
|
} : void 0,
|
|
1222
|
-
|
|
1230
|
+
r.$slots.optionStack ? {
|
|
1223
1231
|
name: "optionStack",
|
|
1224
1232
|
fn: M(() => [
|
|
1225
|
-
|
|
1233
|
+
S(r.$slots, "optionStack", {}, void 0, !0)
|
|
1226
1234
|
]),
|
|
1227
1235
|
key: "6"
|
|
1228
1236
|
} : void 0,
|
|
1229
|
-
|
|
1237
|
+
r.$slots.optionFullscreen ? {
|
|
1230
1238
|
name: "optionFullscreen",
|
|
1231
|
-
fn: M(({ toggleFullscreen:
|
|
1232
|
-
|
|
1239
|
+
fn: M(({ toggleFullscreen: a, isFullscreen: h }) => [
|
|
1240
|
+
S(r.$slots, "optionFullscreen", H(B({ toggleFullscreen: a, isFullscreen: h })), void 0, !0)
|
|
1233
1241
|
]),
|
|
1234
1242
|
key: "7"
|
|
1235
1243
|
} : void 0,
|
|
1236
|
-
|
|
1244
|
+
r.$slots.optionAnnotator ? {
|
|
1237
1245
|
name: "optionAnnotator",
|
|
1238
|
-
fn: M(({ toggleAnnotator:
|
|
1239
|
-
|
|
1246
|
+
fn: M(({ toggleAnnotator: a, isAnnotator: h }) => [
|
|
1247
|
+
S(r.$slots, "optionAnnotator", H(B({ toggleAnnotator: a, isAnnotator: h })), void 0, !0)
|
|
1240
1248
|
]),
|
|
1241
1249
|
key: "8"
|
|
1242
1250
|
} : void 0
|
|
1243
1251
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onToggleFullscreen", "onGeneratePdf", "onGenerateCsv", "onGenerateImage", "onToggleTable", "onToggleLabels", "onToggleStack", "onToggleTooltip", "onToggleAnnotator", "style"])) : c("", !0),
|
|
1244
|
-
e.isDataset ? (
|
|
1252
|
+
e.isDataset ? (l(), i("svg", {
|
|
1245
1253
|
key: 4,
|
|
1246
1254
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1247
|
-
class:
|
|
1255
|
+
class: P([{ "vue-data-ui-fullscreen--on": t.isFullscreen, "vue-data-ui-fulscreen--off": !t.isFullscreen }, "vue-ui-xy-svg"]),
|
|
1248
1256
|
width: "100%",
|
|
1249
1257
|
viewBox: t.viewBox,
|
|
1250
1258
|
style: L(`background: transparent; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
1251
1259
|
}, [
|
|
1252
|
-
|
|
1253
|
-
|
|
1260
|
+
q(N),
|
|
1261
|
+
r.$slots["chart-background"] ? (l(), i("foreignObject", {
|
|
1254
1262
|
key: 0,
|
|
1255
1263
|
x: e.drawingArea.left + e.xPadding < 0 ? 0 : e.drawingArea.left + e.xPadding,
|
|
1256
1264
|
y: e.drawingArea.top,
|
|
@@ -1260,74 +1268,74 @@ function Zi(i, l, o, u, t, e) {
|
|
|
1260
1268
|
pointerEvents: "none"
|
|
1261
1269
|
}
|
|
1262
1270
|
}, [
|
|
1263
|
-
|
|
1264
|
-
], 8,
|
|
1265
|
-
e.maxSeries > 0 ? (
|
|
1266
|
-
f("g",
|
|
1267
|
-
e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (
|
|
1271
|
+
S(r.$slots, "chart-background", {}, void 0, !0)
|
|
1272
|
+
], 8, je)) : c("", !0),
|
|
1273
|
+
e.maxSeries > 0 ? (l(), i("g", $e, [
|
|
1274
|
+
f("g", et, [
|
|
1275
|
+
e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (l(), i("line", {
|
|
1268
1276
|
key: 0,
|
|
1269
1277
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1270
1278
|
"stroke-width": "1",
|
|
1271
1279
|
x1: e.drawingArea.left + e.xPadding,
|
|
1272
1280
|
x2: e.drawingArea.right - e.xPadding,
|
|
1273
|
-
y1: e.drawingArea.bottom,
|
|
1274
|
-
y2: e.drawingArea.bottom,
|
|
1281
|
+
y1: e.forceValidValue(e.drawingArea.bottom),
|
|
1282
|
+
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1275
1283
|
"stroke-linecap": "round"
|
|
1276
|
-
}, null, 8,
|
|
1277
|
-
t.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (
|
|
1278
|
-
|
|
1284
|
+
}, null, 8, tt)) : c("", !0),
|
|
1285
|
+
t.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (l(!0), i(I, { key: 2 }, m(e.allScales, (a) => (l(), i("g", null, [
|
|
1286
|
+
a.id === t.selectedScale && a.yLabels.length ? (l(!0), i(I, { key: 0 }, m(a.yLabels, (h) => (l(), i("line", {
|
|
1279
1287
|
x1: e.drawingArea.left + e.xPadding,
|
|
1280
1288
|
x2: e.drawingArea.right - e.xPadding,
|
|
1281
|
-
y1: e.
|
|
1282
|
-
y2: e.
|
|
1283
|
-
stroke:
|
|
1289
|
+
y1: e.forceValidValue(h.y),
|
|
1290
|
+
y2: e.forceValidValue(h.y),
|
|
1291
|
+
stroke: a.color,
|
|
1284
1292
|
"stroke-width": 0.5,
|
|
1285
1293
|
"stroke-linecap": "round"
|
|
1286
|
-
}, null, 8,
|
|
1294
|
+
}, null, 8, it))), 256)) : a.yLabels.length ? (l(!0), i(I, { key: 1 }, m(a.yLabels, (h) => (l(), i("line", {
|
|
1287
1295
|
x1: e.drawingArea.left + e.xPadding,
|
|
1288
1296
|
x2: e.drawingArea.right - e.xPadding,
|
|
1289
|
-
y1: e.
|
|
1290
|
-
y2: e.
|
|
1297
|
+
y1: e.forceValidValue(h.y),
|
|
1298
|
+
y2: e.forceValidValue(h.y),
|
|
1291
1299
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1292
1300
|
"stroke-width": 0.5,
|
|
1293
1301
|
"stroke-linecap": "round"
|
|
1294
|
-
}, null, 8,
|
|
1295
|
-
]))), 256)) : c("", !0) : (
|
|
1296
|
-
e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (
|
|
1302
|
+
}, null, 8, st))), 256)) : c("", !0)
|
|
1303
|
+
]))), 256)) : c("", !0) : (l(), i(I, { key: 1 }, [
|
|
1304
|
+
e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (l(), i("line", {
|
|
1297
1305
|
key: 0,
|
|
1298
1306
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1299
1307
|
"stroke-width": "1",
|
|
1300
1308
|
x1: e.drawingArea.left + e.xPadding,
|
|
1301
1309
|
x2: e.drawingArea.left + e.xPadding,
|
|
1302
|
-
y1: e.drawingArea.top,
|
|
1303
|
-
y2: e.drawingArea.bottom,
|
|
1310
|
+
y1: e.forceValidValue(e.drawingArea.top),
|
|
1311
|
+
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1304
1312
|
"stroke-linecap": "round"
|
|
1305
|
-
}, null, 8,
|
|
1306
|
-
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (
|
|
1307
|
-
(
|
|
1313
|
+
}, null, 8, rt)) : c("", !0),
|
|
1314
|
+
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (l(), i("g", at, [
|
|
1315
|
+
(l(!0), i(I, null, m(e.yLabels, (a) => (l(), i("line", {
|
|
1308
1316
|
x1: e.drawingArea.left + e.xPadding,
|
|
1309
1317
|
x2: e.drawingArea.right - e.xPadding,
|
|
1310
|
-
y1: e.
|
|
1311
|
-
y2: e.
|
|
1318
|
+
y1: e.forceValidValue(a.y),
|
|
1319
|
+
y2: e.forceValidValue(a.y),
|
|
1312
1320
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1313
1321
|
"stroke-width": 0.5,
|
|
1314
1322
|
"stroke-linecap": "round"
|
|
1315
|
-
}, null, 8,
|
|
1323
|
+
}, null, 8, lt))), 256))
|
|
1316
1324
|
])) : c("", !0)
|
|
1317
1325
|
], 64)),
|
|
1318
|
-
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (
|
|
1319
|
-
(
|
|
1326
|
+
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (l(), i("g", nt, [
|
|
1327
|
+
(l(!0), i(I, null, m(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (a, h) => (l(), i("line", {
|
|
1320
1328
|
key: `grid_vertical_line_${h}`,
|
|
1321
1329
|
x1: e.drawingArea.width / e.maxSeries * h + e.drawingArea.left + e.xPadding,
|
|
1322
1330
|
x2: e.drawingArea.width / e.maxSeries * h + e.drawingArea.left + e.xPadding,
|
|
1323
|
-
y1: e.drawingArea.top,
|
|
1324
|
-
y2: e.drawingArea.
|
|
1331
|
+
y1: e.forceValidValue(e.drawingArea.top),
|
|
1332
|
+
y2: e.forceValidValue(e.drawingArea.top),
|
|
1325
1333
|
"stroke-width": "0.5",
|
|
1326
1334
|
stroke: e.FINAL_CONFIG.chart.grid.stroke
|
|
1327
|
-
}, null, 8,
|
|
1335
|
+
}, null, 8, ht))), 128))
|
|
1328
1336
|
])) : c("", !0)
|
|
1329
1337
|
]),
|
|
1330
|
-
(
|
|
1338
|
+
(l(!0), i(I, null, m(e.barSet, (a, h) => (l(), i("defs", {
|
|
1331
1339
|
key: `def_rect_${h}`
|
|
1332
1340
|
}, [
|
|
1333
1341
|
f("linearGradient", {
|
|
@@ -1337,17 +1345,17 @@ function Zi(i, l, o, u, t, e) {
|
|
|
1337
1345
|
}, [
|
|
1338
1346
|
f("stop", {
|
|
1339
1347
|
offset: "0%",
|
|
1340
|
-
"stop-color":
|
|
1341
|
-
}, null, 8,
|
|
1348
|
+
"stop-color": a.color
|
|
1349
|
+
}, null, 8, ct),
|
|
1342
1350
|
f("stop", {
|
|
1343
1351
|
offset: "62%",
|
|
1344
|
-
"stop-color": `${e.shiftHue(
|
|
1345
|
-
}, null, 8,
|
|
1352
|
+
"stop-color": `${e.shiftHue(a.color, 0.02)}`
|
|
1353
|
+
}, null, 8, dt),
|
|
1346
1354
|
f("stop", {
|
|
1347
1355
|
offset: "100%",
|
|
1348
|
-
"stop-color": `${e.shiftHue(
|
|
1349
|
-
}, null, 8,
|
|
1350
|
-
], 8,
|
|
1356
|
+
"stop-color": `${e.shiftHue(a.color, 0.05)}`
|
|
1357
|
+
}, null, 8, ut)
|
|
1358
|
+
], 8, ot),
|
|
1351
1359
|
f("linearGradient", {
|
|
1352
1360
|
id: `rectGradient_neg_${h}_${t.uniqueId}`,
|
|
1353
1361
|
x2: "0%",
|
|
@@ -1355,19 +1363,19 @@ function Zi(i, l, o, u, t, e) {
|
|
|
1355
1363
|
}, [
|
|
1356
1364
|
f("stop", {
|
|
1357
1365
|
offset: "0%",
|
|
1358
|
-
"stop-color": `${e.shiftHue(
|
|
1359
|
-
}, null, 8,
|
|
1366
|
+
"stop-color": `${e.shiftHue(a.color, 0.05)}`
|
|
1367
|
+
}, null, 8, ft),
|
|
1360
1368
|
f("stop", {
|
|
1361
1369
|
offset: "38%",
|
|
1362
|
-
"stop-color": `${e.shiftHue(
|
|
1363
|
-
}, null, 8,
|
|
1370
|
+
"stop-color": `${e.shiftHue(a.color, 0.02)}`
|
|
1371
|
+
}, null, 8, It),
|
|
1364
1372
|
f("stop", {
|
|
1365
1373
|
offset: "100%",
|
|
1366
|
-
"stop-color":
|
|
1367
|
-
}, null, 8,
|
|
1368
|
-
], 8,
|
|
1374
|
+
"stop-color": a.color
|
|
1375
|
+
}, null, 8, mt)
|
|
1376
|
+
], 8, gt)
|
|
1369
1377
|
]))), 128)),
|
|
1370
|
-
(
|
|
1378
|
+
(l(!0), i(I, null, m(e.plotSet, (a, h) => (l(), i("defs", {
|
|
1371
1379
|
key: `def_plot_${h}`
|
|
1372
1380
|
}, [
|
|
1373
1381
|
f("radialGradient", {
|
|
@@ -1380,15 +1388,15 @@ function Zi(i, l, o, u, t, e) {
|
|
|
1380
1388
|
}, [
|
|
1381
1389
|
f("stop", {
|
|
1382
1390
|
offset: "0%",
|
|
1383
|
-
"stop-color": `${e.shiftHue(
|
|
1384
|
-
}, null, 8,
|
|
1391
|
+
"stop-color": `${e.shiftHue(a.color, 0.05)}`
|
|
1392
|
+
}, null, 8, xt),
|
|
1385
1393
|
f("stop", {
|
|
1386
1394
|
offset: "100%",
|
|
1387
|
-
"stop-color":
|
|
1388
|
-
}, null, 8,
|
|
1389
|
-
], 8,
|
|
1395
|
+
"stop-color": a.color
|
|
1396
|
+
}, null, 8, bt)
|
|
1397
|
+
], 8, Nt)
|
|
1390
1398
|
]))), 128)),
|
|
1391
|
-
(
|
|
1399
|
+
(l(!0), i(I, null, m(e.lineSet, (a, h) => (l(), i("defs", {
|
|
1392
1400
|
key: `def_line_${h}`
|
|
1393
1401
|
}, [
|
|
1394
1402
|
f("radialGradient", {
|
|
@@ -1401,13 +1409,13 @@ function Zi(i, l, o, u, t, e) {
|
|
|
1401
1409
|
}, [
|
|
1402
1410
|
f("stop", {
|
|
1403
1411
|
offset: "0%",
|
|
1404
|
-
"stop-color": `${e.shiftHue(
|
|
1405
|
-
}, null, 8,
|
|
1412
|
+
"stop-color": `${e.shiftHue(a.color, 0.05)}`
|
|
1413
|
+
}, null, 8, _t),
|
|
1406
1414
|
f("stop", {
|
|
1407
1415
|
offset: "100%",
|
|
1408
|
-
"stop-color":
|
|
1409
|
-
}, null, 8,
|
|
1410
|
-
], 8,
|
|
1416
|
+
"stop-color": a.color
|
|
1417
|
+
}, null, 8, At)
|
|
1418
|
+
], 8, Ft),
|
|
1411
1419
|
f("linearGradient", {
|
|
1412
1420
|
id: `areaGradient_${h}_${t.uniqueId}`,
|
|
1413
1421
|
x1: "0%",
|
|
@@ -1417,46 +1425,46 @@ function Zi(i, l, o, u, t, e) {
|
|
|
1417
1425
|
}, [
|
|
1418
1426
|
f("stop", {
|
|
1419
1427
|
offset: "0%",
|
|
1420
|
-
"stop-color": `${e.setOpacity(e.shiftHue(
|
|
1421
|
-
}, null, 8,
|
|
1428
|
+
"stop-color": `${e.setOpacity(e.shiftHue(a.color, 0.03), e.FINAL_CONFIG.line.area.opacity)}`
|
|
1429
|
+
}, null, 8, Lt),
|
|
1422
1430
|
f("stop", {
|
|
1423
1431
|
offset: "100%",
|
|
1424
|
-
"stop-color": `${e.setOpacity(
|
|
1425
|
-
}, null, 8,
|
|
1426
|
-
], 8,
|
|
1432
|
+
"stop-color": `${e.setOpacity(a.color, e.FINAL_CONFIG.line.area.opacity)}`
|
|
1433
|
+
}, null, 8, Ct)
|
|
1434
|
+
], 8, yt)
|
|
1427
1435
|
]))), 128)),
|
|
1428
|
-
(
|
|
1429
|
-
|
|
1436
|
+
(l(!0), i(I, null, m(e.highlightAreas, (a) => (l(), i("g", null, [
|
|
1437
|
+
a.show ? (l(!0), i(I, { key: 0 }, m(a.span, (h, n) => (l(), i("g", null, [
|
|
1430
1438
|
f("rect", {
|
|
1431
1439
|
style: L({
|
|
1432
1440
|
transition: "none",
|
|
1433
|
-
opacity:
|
|
1441
|
+
opacity: a.from + n >= t.slicer.start && a.from + n <= t.slicer.end - 1 ? 1 : 0
|
|
1434
1442
|
}),
|
|
1435
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (
|
|
1443
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (a.from + n - t.slicer.start),
|
|
1436
1444
|
y: e.drawingArea.top,
|
|
1437
1445
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1438
1446
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1439
|
-
fill: e.setOpacity(
|
|
1440
|
-
}, null, 12,
|
|
1441
|
-
|
|
1447
|
+
fill: e.setOpacity(a.color, a.opacity)
|
|
1448
|
+
}, null, 12, St),
|
|
1449
|
+
a.caption.text && n === 0 ? (l(), i("foreignObject", {
|
|
1442
1450
|
key: 0,
|
|
1443
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (
|
|
1444
|
-
y: e.drawingArea.top +
|
|
1451
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (a.from + n - t.slicer.start) - (a.caption.width === "auto" ? 0 : a.caption.width / 2 - e.drawingArea.width / e.maxSeries * a.span / 2),
|
|
1452
|
+
y: e.drawingArea.top + a.caption.offsetY,
|
|
1445
1453
|
style: L({
|
|
1446
1454
|
overflow: "visible",
|
|
1447
|
-
opacity:
|
|
1455
|
+
opacity: a.to >= t.slicer.start && a.from < t.slicer.end ? 1 : 0
|
|
1448
1456
|
}),
|
|
1449
1457
|
height: "1",
|
|
1450
|
-
width:
|
|
1458
|
+
width: a.caption.width === "auto" ? e.drawingArea.width / e.maxSeries * a.span : a.caption.width
|
|
1451
1459
|
}, [
|
|
1452
1460
|
f("div", {
|
|
1453
|
-
style: L(`padding:${
|
|
1454
|
-
},
|
|
1455
|
-
], 12,
|
|
1461
|
+
style: L(`padding:${a.caption.padding}px;text-align:${a.caption.textAlign};font-size:${a.caption.fontSize}px;color:${a.caption.color};font-weight:${a.caption.bold ? "bold" : "normal"}`)
|
|
1462
|
+
}, k(a.caption.text), 5)
|
|
1463
|
+
], 12, kt)) : c("", !0)
|
|
1456
1464
|
]))), 256)) : c("", !0)
|
|
1457
1465
|
]))), 256)),
|
|
1458
1466
|
f("g", null, [
|
|
1459
|
-
(
|
|
1467
|
+
(l(!0), i(I, null, m(e.maxSeries, (a, h) => (l(), i("g", {
|
|
1460
1468
|
key: `tooltip_trap_highlighter_${h}`
|
|
1461
1469
|
}, [
|
|
1462
1470
|
f("rect", {
|
|
@@ -1465,42 +1473,53 @@ function Zi(i, l, o, u, t, e) {
|
|
|
1465
1473
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1466
1474
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1467
1475
|
fill: [t.selectedMinimapIndex, t.selectedSerieIndex, t.selectedRowIndex].includes(h) ? e.setOpacity(e.FINAL_CONFIG.chart.highlighter.color, e.FINAL_CONFIG.chart.highlighter.opacity) : "transparent"
|
|
1468
|
-
}, null, 8,
|
|
1476
|
+
}, null, 8, wt)
|
|
1469
1477
|
]))), 128))
|
|
1470
1478
|
]),
|
|
1471
|
-
e.barSet.length ? (
|
|
1479
|
+
e.barSet.length ? (l(!0), i(I, { key: 0 }, m(e.barSet, (a, h) => (l(), i("g", {
|
|
1472
1480
|
key: `serie_bar_${h}`,
|
|
1473
|
-
class:
|
|
1474
|
-
style: L(`opacity:${t.selectedScale ? t.selectedScale ===
|
|
1481
|
+
class: P(`serie_bar_${h}`),
|
|
1482
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1475
1483
|
}, [
|
|
1476
|
-
(
|
|
1484
|
+
(l(!0), i(I, null, m(a.plots, (n, d) => (l(), i("g", {
|
|
1477
1485
|
key: `bar_plot_${h}_${d}`
|
|
1478
1486
|
}, [
|
|
1479
|
-
e.canShowValue(n.value) ? (
|
|
1487
|
+
e.canShowValue(n.value) ? (l(), i("rect", {
|
|
1480
1488
|
key: 0,
|
|
1481
1489
|
x: e.calcRectX(n),
|
|
1482
1490
|
y: t.mutableConfig.useIndividualScale ? e.calcIndividualRectY(n) : e.calcRectY(n),
|
|
1483
1491
|
height: t.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(n)) : Math.abs(e.calcRectHeight(n)),
|
|
1484
1492
|
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),
|
|
1485
1493
|
rx: e.FINAL_CONFIG.bar.borderRadius,
|
|
1486
|
-
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${h}_${t.uniqueId})` : `url(#rectGradient_neg_${h}_${t.uniqueId})` :
|
|
1487
|
-
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ?
|
|
1494
|
+
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${h}_${t.uniqueId})` : `url(#rectGradient_neg_${h}_${t.uniqueId})` : a.color,
|
|
1495
|
+
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? a.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1488
1496
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1489
|
-
}, null, 8,
|
|
1490
|
-
n.
|
|
1497
|
+
}, null, 8, Ot)) : c("", !0),
|
|
1498
|
+
e.canShowValue(n.value) && r.$slots.pattern ? (l(), i("rect", {
|
|
1491
1499
|
key: 1,
|
|
1500
|
+
x: e.calcRectX(n),
|
|
1501
|
+
y: t.mutableConfig.useIndividualScale ? e.calcIndividualRectY(n) : e.calcRectY(n),
|
|
1502
|
+
height: t.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(n)) : Math.abs(e.calcRectHeight(n)),
|
|
1503
|
+
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),
|
|
1504
|
+
rx: e.FINAL_CONFIG.bar.borderRadius,
|
|
1505
|
+
fill: `url(#pattern_${t.uniqueId}_${a.slotAbsoluteIndex})`,
|
|
1506
|
+
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? a.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1507
|
+
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1508
|
+
}, null, 8, Gt)) : c("", !0),
|
|
1509
|
+
n.comment && e.FINAL_CONFIG.chart.comments.show ? (l(), i("foreignObject", {
|
|
1510
|
+
key: 2,
|
|
1492
1511
|
style: { overflow: "visible" },
|
|
1493
1512
|
height: "12",
|
|
1494
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) / 2) + e.FINAL_CONFIG.chart.comments.width,
|
|
1495
1514
|
x: e.calcRectX(n) - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1496
1515
|
y: e.checkNaN(n.y) + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1497
1516
|
}, [
|
|
1498
|
-
|
|
1499
|
-
plot: { ...n, color:
|
|
1517
|
+
S(r.$slots, "plot-comment", {
|
|
1518
|
+
plot: { ...n, color: a.color, seriesIndex: h, datapointIndex: d }
|
|
1500
1519
|
}, void 0, !0)
|
|
1501
|
-
], 8,
|
|
1520
|
+
], 8, vt)) : c("", !0)
|
|
1502
1521
|
]))), 128)),
|
|
1503
|
-
Object.hasOwn(
|
|
1522
|
+
Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (l(), i("g", zt, [
|
|
1504
1523
|
f("defs", null, [
|
|
1505
1524
|
f("marker", {
|
|
1506
1525
|
id: `bar_arrow_${h}`,
|
|
@@ -1512,59 +1531,59 @@ function Zi(i, l, o, u, t, e) {
|
|
|
1512
1531
|
}, [
|
|
1513
1532
|
f("polygon", {
|
|
1514
1533
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1515
|
-
fill:
|
|
1516
|
-
}, null, 8,
|
|
1517
|
-
], 8,
|
|
1534
|
+
fill: a.color
|
|
1535
|
+
}, null, 8, Mt)
|
|
1536
|
+
], 8, pt)
|
|
1518
1537
|
]),
|
|
1519
|
-
|
|
1538
|
+
a.plots.length > 1 ? (l(), i("line", {
|
|
1520
1539
|
key: 0,
|
|
1521
|
-
x1: e.calcLinearProgression(
|
|
1522
|
-
x2: e.calcLinearProgression(
|
|
1523
|
-
y1: e.calcLinearProgression(
|
|
1524
|
-
y2: e.calcLinearProgression(
|
|
1540
|
+
x1: e.calcLinearProgression(a.plots).x1,
|
|
1541
|
+
x2: e.calcLinearProgression(a.plots).x2,
|
|
1542
|
+
y1: e.forceValidValue(e.calcLinearProgression(a.plots).y1),
|
|
1543
|
+
y2: e.forceValidValue(e.calcLinearProgression(a.plots).y2),
|
|
1525
1544
|
"stroke-width": 1,
|
|
1526
|
-
stroke:
|
|
1545
|
+
stroke: a.color,
|
|
1527
1546
|
"stroke-dasharray": 2,
|
|
1528
1547
|
"marker-end": `url(#bar_arrow_${h})`
|
|
1529
|
-
}, null, 8,
|
|
1530
|
-
|
|
1548
|
+
}, null, 8, Vt)) : c("", !0),
|
|
1549
|
+
a.plots.length > 1 ? (l(), i("text", {
|
|
1531
1550
|
key: 1,
|
|
1532
1551
|
"text-anchor": "middle",
|
|
1533
|
-
x: e.calcLinearProgression(
|
|
1534
|
-
y: e.calcLinearProgression(
|
|
1552
|
+
x: e.calcLinearProgression(a.plots).x2,
|
|
1553
|
+
y: e.calcLinearProgression(a.plots).y2 - 6,
|
|
1535
1554
|
"font-size": t.fontSizes.plotLabels,
|
|
1536
|
-
fill:
|
|
1537
|
-
},
|
|
1538
|
-
v: e.calcLinearProgression(
|
|
1555
|
+
fill: a.color
|
|
1556
|
+
}, k(e.dataLabel({
|
|
1557
|
+
v: e.calcLinearProgression(a.plots).trend * 100,
|
|
1539
1558
|
s: "%",
|
|
1540
1559
|
r: 2
|
|
1541
|
-
})), 9,
|
|
1560
|
+
})), 9, Tt)) : c("", !0)
|
|
1542
1561
|
])) : c("", !0)
|
|
1543
1562
|
], 6))), 128)) : c("", !0),
|
|
1544
|
-
!t.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (
|
|
1563
|
+
!t.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (l(), i("line", {
|
|
1545
1564
|
key: 1,
|
|
1546
1565
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1547
1566
|
"stroke-width": "1",
|
|
1548
1567
|
x1: e.drawingArea.left + e.xPadding,
|
|
1549
1568
|
x2: e.drawingArea.right - e.xPadding,
|
|
1550
|
-
y1: e.
|
|
1551
|
-
y2: e.
|
|
1569
|
+
y1: e.forceValidValue(e.zero),
|
|
1570
|
+
y2: e.forceValidValue(e.zero),
|
|
1552
1571
|
"stroke-linecap": "round"
|
|
1553
|
-
}, null, 8,
|
|
1554
|
-
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(t.selectedSerieIndex) || ![null, void 0].includes(t.selectedMinimapIndex)) ? (
|
|
1572
|
+
}, null, 8, Pt)) : c("", !0),
|
|
1573
|
+
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(t.selectedSerieIndex) || ![null, void 0].includes(t.selectedMinimapIndex)) ? (l(), i("g", Rt, [
|
|
1555
1574
|
f("line", {
|
|
1556
1575
|
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,
|
|
1557
1576
|
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,
|
|
1558
|
-
y1: e.drawingArea.top,
|
|
1559
|
-
y2: e.drawingArea.bottom,
|
|
1577
|
+
y1: e.forceValidValue(e.drawingArea.top),
|
|
1578
|
+
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1560
1579
|
stroke: e.FINAL_CONFIG.chart.highlighter.color,
|
|
1561
1580
|
"stroke-width": e.FINAL_CONFIG.chart.highlighter.lineWidth,
|
|
1562
1581
|
"stroke-dasharray": e.FINAL_CONFIG.chart.highlighter.lineDasharray,
|
|
1563
1582
|
"stroke-linecap": "round",
|
|
1564
1583
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
1565
|
-
}, null, 8,
|
|
1584
|
+
}, null, 8, Dt)
|
|
1566
1585
|
])) : c("", !0),
|
|
1567
|
-
e.FINAL_CONFIG.chart.grid.frame.show ? (
|
|
1586
|
+
e.FINAL_CONFIG.chart.grid.frame.show ? (l(), i("rect", {
|
|
1568
1587
|
key: 3,
|
|
1569
1588
|
style: { pointerEvents: "none", transition: "none" },
|
|
1570
1589
|
x: e.drawingArea.left + e.xPadding < 0 ? 0 : e.drawingArea.left + e.xPadding,
|
|
@@ -1577,46 +1596,46 @@ function Zi(i, l, o, u, t, e) {
|
|
|
1577
1596
|
"stroke-linecap": e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,
|
|
1578
1597
|
"stroke-linejoin": e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,
|
|
1579
1598
|
"stroke-dasharray": e.FINAL_CONFIG.chart.grid.frame.strokeDasharray
|
|
1580
|
-
}, null, 8,
|
|
1581
|
-
e.FINAL_CONFIG.chart.grid.labels.show ? (
|
|
1582
|
-
t.mutableConfig.useIndividualScale ? (
|
|
1583
|
-
(
|
|
1599
|
+
}, null, 8, Ht)) : c("", !0),
|
|
1600
|
+
e.FINAL_CONFIG.chart.grid.labels.show ? (l(), i("g", Bt, [
|
|
1601
|
+
t.mutableConfig.useIndividualScale ? (l(), i(I, { key: 0 }, [
|
|
1602
|
+
(l(!0), i(I, null, m(e.allScales, (a) => (l(), i("g", null, [
|
|
1584
1603
|
f("line", {
|
|
1585
|
-
x1:
|
|
1586
|
-
x2:
|
|
1587
|
-
y1: t.mutableConfig.isStacked ? e.
|
|
1588
|
-
y2: t.mutableConfig.isStacked ? e.
|
|
1589
|
-
stroke:
|
|
1604
|
+
x1: a.x + e.xPadding,
|
|
1605
|
+
x2: a.x + e.xPadding,
|
|
1606
|
+
y1: t.mutableConfig.isStacked ? e.forceValidValue(e.drawingArea.bottom - a.yOffset - a.individualHeight) : e.forceValidValue(e.drawingArea.top),
|
|
1607
|
+
y2: t.mutableConfig.isStacked ? e.forceValidValue(e.drawingArea.bottom - a.yOffset) : e.forceValidValue(e.drawingArea.bottom),
|
|
1608
|
+
stroke: a.color,
|
|
1590
1609
|
"stroke-width": e.FINAL_CONFIG.chart.grid.stroke,
|
|
1591
1610
|
"stroke-linecap": "round",
|
|
1592
|
-
style: L(`opacity:${t.selectedScale ? t.selectedScale ===
|
|
1593
|
-
}, null, 12,
|
|
1611
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1612
|
+
}, null, 12, Wt)
|
|
1594
1613
|
]))), 256)),
|
|
1595
|
-
(
|
|
1596
|
-
style: L(`opacity:${t.selectedScale ? t.selectedScale ===
|
|
1614
|
+
(l(!0), i(I, null, m(e.allScales, (a) => (l(), i("g", {
|
|
1615
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1597
1616
|
}, [
|
|
1598
1617
|
f("text", {
|
|
1599
|
-
fill:
|
|
1618
|
+
fill: a.color,
|
|
1600
1619
|
"font-size": t.fontSizes.dataLabels,
|
|
1601
1620
|
"text-anchor": "middle",
|
|
1602
|
-
transform: `translate(${
|
|
1603
|
-
},
|
|
1604
|
-
(
|
|
1605
|
-
x1:
|
|
1606
|
-
x2:
|
|
1607
|
-
y1: e.
|
|
1608
|
-
y2: e.
|
|
1609
|
-
stroke:
|
|
1621
|
+
transform: `translate(${a.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + 5}, ${t.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset - a.individualHeight / 2 : e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`
|
|
1622
|
+
}, k(a.name) + " " + k(a.scaleLabel ? `- ${a.scaleLabel}` : ""), 9, Et),
|
|
1623
|
+
(l(!0), i(I, null, m(a.yLabels, (h, n) => (l(), i("line", {
|
|
1624
|
+
x1: a.x - 3 + e.xPadding,
|
|
1625
|
+
x2: a.x + e.xPadding,
|
|
1626
|
+
y1: e.forceValidValue(h.y),
|
|
1627
|
+
y2: e.forceValidValue(h.y),
|
|
1628
|
+
stroke: a.color,
|
|
1610
1629
|
"stroke-width": 1,
|
|
1611
1630
|
"stroke-linecap": "round"
|
|
1612
|
-
}, null, 8,
|
|
1613
|
-
(
|
|
1614
|
-
x:
|
|
1615
|
-
y: e.
|
|
1631
|
+
}, null, 8, Yt))), 256)),
|
|
1632
|
+
(l(!0), i(I, null, m(a.yLabels, (h, n) => (l(), i("text", {
|
|
1633
|
+
x: a.x - 5 + e.xPadding,
|
|
1634
|
+
y: e.forceValidValue(h.y) + t.fontSizes.dataLabels / 3,
|
|
1616
1635
|
"font-size": t.fontSizes.dataLabels,
|
|
1617
1636
|
"text-anchor": "end",
|
|
1618
|
-
fill:
|
|
1619
|
-
},
|
|
1637
|
+
fill: a.color
|
|
1638
|
+
}, k(e.applyDataLabel(
|
|
1620
1639
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1621
1640
|
h.value,
|
|
1622
1641
|
e.dataLabel({
|
|
@@ -1626,58 +1645,58 @@ function Zi(i, l, o, u, t, e) {
|
|
|
1626
1645
|
r: 1
|
|
1627
1646
|
}),
|
|
1628
1647
|
{ datapoint: h.datapoint, seriesIndex: n }
|
|
1629
|
-
)), 9,
|
|
1648
|
+
)), 9, qt))), 256))
|
|
1630
1649
|
], 4))), 256))
|
|
1631
|
-
], 64)) : (
|
|
1650
|
+
], 64)) : (l(!0), i(I, { key: 1 }, m(e.yLabels, (a, h) => (l(), i("g", {
|
|
1632
1651
|
key: `yLabel_${h}`
|
|
1633
1652
|
}, [
|
|
1634
|
-
e.canShowValue(
|
|
1653
|
+
e.canShowValue(a) && a.value >= e.niceScale.min && a.value <= e.niceScale.max ? (l(), i("line", {
|
|
1635
1654
|
key: 0,
|
|
1636
1655
|
x1: e.drawingArea.left + e.xPadding,
|
|
1637
1656
|
x2: e.drawingArea.left - 5 + e.xPadding,
|
|
1638
|
-
y1: e.
|
|
1639
|
-
y2: e.
|
|
1657
|
+
y1: e.forceValidValue(a.y),
|
|
1658
|
+
y2: e.forceValidValue(a.y),
|
|
1640
1659
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1641
1660
|
"stroke-width": "1",
|
|
1642
1661
|
"stroke-linecap": "round"
|
|
1643
|
-
}, null, 8,
|
|
1644
|
-
|
|
1662
|
+
}, null, 8, Xt)) : c("", !0),
|
|
1663
|
+
a.value >= e.niceScale.min && a.value <= e.niceScale.max ? (l(), i("text", {
|
|
1645
1664
|
key: 1,
|
|
1646
1665
|
x: e.drawingArea.left - 7 + e.xPadding,
|
|
1647
|
-
y: e.checkNaN(
|
|
1666
|
+
y: e.checkNaN(a.y + t.fontSizes.dataLabels / 3),
|
|
1648
1667
|
"font-size": t.fontSizes.dataLabels,
|
|
1649
1668
|
"text-anchor": "end",
|
|
1650
1669
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
1651
|
-
},
|
|
1670
|
+
}, k(e.canShowValue(a.value) ? e.applyDataLabel(
|
|
1652
1671
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1653
|
-
|
|
1672
|
+
a.value,
|
|
1654
1673
|
e.dataLabel({
|
|
1655
|
-
p:
|
|
1656
|
-
v:
|
|
1657
|
-
s:
|
|
1674
|
+
p: a.prefix,
|
|
1675
|
+
v: a.value,
|
|
1676
|
+
s: a.suffix,
|
|
1658
1677
|
r: 1
|
|
1659
1678
|
})
|
|
1660
|
-
) : ""), 9,
|
|
1679
|
+
) : ""), 9, Ut)) : c("", !0)
|
|
1661
1680
|
]))), 128))
|
|
1662
1681
|
])) : c("", !0),
|
|
1663
|
-
(
|
|
1682
|
+
(l(!0), i(I, null, m(e.plotSet, (a, h) => (l(), i("g", {
|
|
1664
1683
|
key: `serie_plot_${h}`,
|
|
1665
|
-
class:
|
|
1666
|
-
style: L(`opacity:${t.selectedScale ? t.selectedScale ===
|
|
1684
|
+
class: P(`serie_plot_${h}`),
|
|
1685
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1667
1686
|
}, [
|
|
1668
|
-
(
|
|
1687
|
+
(l(!0), i(I, null, m(a.plots, (n, d) => (l(), i("g", {
|
|
1669
1688
|
key: `circle_plot_${h}_${d}`
|
|
1670
1689
|
}, [
|
|
1671
|
-
n && e.canShowValue(n.value) ? (
|
|
1690
|
+
n && e.canShowValue(n.value) ? (l(), D(b, {
|
|
1672
1691
|
key: 0,
|
|
1673
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
1674
|
-
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${h}_${t.uniqueId})` : e.FINAL_CONFIG.plot.dot.useSerieColor ?
|
|
1692
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(a.shape) ? a.shape : "circle",
|
|
1693
|
+
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${h}_${t.uniqueId})` : e.FINAL_CONFIG.plot.dot.useSerieColor ? a.color : e.FINAL_CONFIG.plot.dot.fill,
|
|
1675
1694
|
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
1676
1695
|
radius: t.selectedSerieIndex !== null && t.selectedSerieIndex === d || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === d ? (t.plotRadii.plot || 6) * 1.5 : t.plotRadii.plot || 6,
|
|
1677
|
-
stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor :
|
|
1696
|
+
stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : a.color,
|
|
1678
1697
|
strokeWidth: e.FINAL_CONFIG.plot.dot.strokeWidth
|
|
1679
1698
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : c("", !0),
|
|
1680
|
-
n.comment && e.FINAL_CONFIG.chart.comments.show ? (
|
|
1699
|
+
n.comment && e.FINAL_CONFIG.chart.comments.show ? (l(), i("foreignObject", {
|
|
1681
1700
|
key: 1,
|
|
1682
1701
|
style: { overflow: "visible" },
|
|
1683
1702
|
height: "12",
|
|
@@ -1685,14 +1704,14 @@ function Zi(i, l, o, u, t, e) {
|
|
|
1685
1704
|
x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1686
1705
|
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1687
1706
|
}, [
|
|
1688
|
-
f("div",
|
|
1689
|
-
|
|
1690
|
-
plot: { ...n, color:
|
|
1707
|
+
f("div", Jt, [
|
|
1708
|
+
S(r.$slots, "plot-comment", {
|
|
1709
|
+
plot: { ...n, color: a.color, seriesIndex: h, datapointIndex: d }
|
|
1691
1710
|
}, void 0, !0)
|
|
1692
1711
|
])
|
|
1693
|
-
], 8,
|
|
1712
|
+
], 8, Zt)) : c("", !0)
|
|
1694
1713
|
]))), 128)),
|
|
1695
|
-
Object.hasOwn(
|
|
1714
|
+
Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (l(), i("g", Kt, [
|
|
1696
1715
|
f("defs", null, [
|
|
1697
1716
|
f("marker", {
|
|
1698
1717
|
id: `plot_arrow_${h}`,
|
|
@@ -1704,120 +1723,137 @@ function Zi(i, l, o, u, t, e) {
|
|
|
1704
1723
|
}, [
|
|
1705
1724
|
f("polygon", {
|
|
1706
1725
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1707
|
-
fill:
|
|
1708
|
-
}, null, 8,
|
|
1709
|
-
], 8,
|
|
1726
|
+
fill: a.color
|
|
1727
|
+
}, null, 8, jt)
|
|
1728
|
+
], 8, Qt)
|
|
1710
1729
|
]),
|
|
1711
|
-
|
|
1730
|
+
a.plots.length > 1 ? (l(), i("line", {
|
|
1712
1731
|
key: 0,
|
|
1713
|
-
x1: e.calcLinearProgression(
|
|
1714
|
-
x2: e.calcLinearProgression(
|
|
1715
|
-
y1: e.calcLinearProgression(
|
|
1716
|
-
y2: e.calcLinearProgression(
|
|
1732
|
+
x1: e.calcLinearProgression(a.plots).x1,
|
|
1733
|
+
x2: e.calcLinearProgression(a.plots).x2,
|
|
1734
|
+
y1: e.forceValidValue(e.calcLinearProgression(a.plots).y1),
|
|
1735
|
+
y2: e.forceValidValue(e.calcLinearProgression(a.plots).y2),
|
|
1717
1736
|
"stroke-width": 1,
|
|
1718
|
-
stroke:
|
|
1737
|
+
stroke: a.color,
|
|
1719
1738
|
"stroke-dasharray": 2,
|
|
1720
1739
|
"marker-end": `url(#plot_arrow_${h})`
|
|
1721
|
-
}, null, 8,
|
|
1722
|
-
|
|
1740
|
+
}, null, 8, $t)) : c("", !0),
|
|
1741
|
+
a.plots.length > 1 ? (l(), i("text", {
|
|
1723
1742
|
key: 1,
|
|
1724
1743
|
"text-anchor": "middle",
|
|
1725
|
-
x: e.calcLinearProgression(
|
|
1726
|
-
y: e.calcLinearProgression(
|
|
1744
|
+
x: e.calcLinearProgression(a.plots).x2,
|
|
1745
|
+
y: e.calcLinearProgression(a.plots).y2 - 6,
|
|
1727
1746
|
"font-size": t.fontSizes.plotLabels,
|
|
1728
|
-
fill:
|
|
1729
|
-
},
|
|
1730
|
-
v: e.calcLinearProgression(
|
|
1747
|
+
fill: a.color
|
|
1748
|
+
}, k(e.dataLabel({
|
|
1749
|
+
v: e.calcLinearProgression(a.plots).trend * 100,
|
|
1731
1750
|
s: "%",
|
|
1732
1751
|
r: 2
|
|
1733
|
-
})), 9,
|
|
1752
|
+
})), 9, er)) : c("", !0)
|
|
1734
1753
|
])) : c("", !0)
|
|
1735
1754
|
], 6))), 128)),
|
|
1736
|
-
(
|
|
1755
|
+
(l(!0), i(I, null, m(e.lineSet, (a, h) => (l(), i("g", {
|
|
1737
1756
|
key: `serie_line_${h}`,
|
|
1738
|
-
class:
|
|
1739
|
-
style: L(`opacity:${t.selectedScale ? t.selectedScale ===
|
|
1757
|
+
class: P(`serie_line_${h}`),
|
|
1758
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1740
1759
|
}, [
|
|
1741
|
-
|
|
1760
|
+
a.smooth && a.plots.length > 1 ? (l(), i("path", {
|
|
1742
1761
|
key: 0,
|
|
1743
|
-
d: `M${
|
|
1762
|
+
d: `M${a.curve}`,
|
|
1744
1763
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1745
1764
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1746
|
-
"stroke-dasharray":
|
|
1765
|
+
"stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1747
1766
|
fill: "none"
|
|
1748
|
-
}, null, 8,
|
|
1749
|
-
(
|
|
1767
|
+
}, null, 8, tr)) : a.plots.length > 1 ? (l(), i("g", rr, [
|
|
1768
|
+
(l(!0), i(I, null, m(a.plots, (n, d) => (l(), i("g", {
|
|
1750
1769
|
key: `line_${h}_${d}`
|
|
1751
1770
|
}, [
|
|
1752
|
-
n && d <
|
|
1771
|
+
n && d < a.plots.length - 1 && a.plots[d + 1] && e.canShowValue(n.value) && e.canShowValue(a.plots[d + 1].value) ? (l(), i("line", {
|
|
1753
1772
|
key: 0,
|
|
1754
1773
|
x1: n.x,
|
|
1755
|
-
x2:
|
|
1756
|
-
y1: n.y,
|
|
1757
|
-
y2:
|
|
1774
|
+
x2: a.plots[d + 1].x,
|
|
1775
|
+
y1: e.forceValidValue(n.y),
|
|
1776
|
+
y2: e.forceValidValue(a.plots[d + 1].y),
|
|
1758
1777
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1759
1778
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1760
|
-
"stroke-dasharray":
|
|
1779
|
+
"stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1761
1780
|
"stroke-linejoin": "round",
|
|
1762
1781
|
"stroke-linecap": "round"
|
|
1763
|
-
}, null, 8,
|
|
1782
|
+
}, null, 8, ar)) : c("", !0)
|
|
1764
1783
|
]))), 128))
|
|
1765
1784
|
])) : c("", !0)
|
|
1766
1785
|
], 6))), 128)),
|
|
1767
|
-
|
|
1786
|
+
r.$slots.pattern ? (l(), i("defs", lr, [
|
|
1787
|
+
(l(!0), i(I, null, m(e.safeDataset, (a, h) => S(r.$slots, "pattern", We({
|
|
1788
|
+
key: `serie_pattern_slot_${h}`
|
|
1789
|
+
}, { ...a, seriesIndex: a.slotAbsoluteIndex, patternId: `pattern_${t.uniqueId}_${h}` }), void 0, !0)), 128))
|
|
1790
|
+
])) : c("", !0),
|
|
1791
|
+
(l(!0), i(I, null, m(e.lineSet, (a, h) => (l(), i("g", {
|
|
1768
1792
|
key: `serie_line_${h}`,
|
|
1769
|
-
class:
|
|
1770
|
-
style: L(`opacity:${t.selectedScale ? t.selectedScale ===
|
|
1793
|
+
class: P(`serie_line_${h}`),
|
|
1794
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1771
1795
|
}, [
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1796
|
+
a.useArea && a.plots.length > 1 ? (l(), i("g", ir, [
|
|
1797
|
+
a.smooth ? (l(), i(I, { key: 0 }, [
|
|
1798
|
+
r.$slots.pattern ? (l(), i("path", {
|
|
1799
|
+
key: 0,
|
|
1800
|
+
d: `M ${a.plots[0] ? a.plots[0].x : Math.min(...a.plots.filter((n) => !!n).map((n) => n.x))},${t.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset : e.drawingArea.bottom} ${a.curve} L ${a.plots.at(-1) ? a.plots.at(-1).x : e.drawingArea.left + e.slot.line * h + e.slot.line / 2},${t.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset : e.drawingArea.bottom} Z`,
|
|
1801
|
+
fill: `url(#pattern_${t.uniqueId}_${a.slotAbsoluteIndex})`
|
|
1802
|
+
}, null, 8, sr)) : (l(), i("path", {
|
|
1803
|
+
key: 1,
|
|
1804
|
+
d: `M ${a.plots[0] ? a.plots[0].x : Math.min(...a.plots.filter((n) => !!n).map((n) => n.x))},${t.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset : e.drawingArea.bottom} ${a.curve} L ${a.plots.at(-1) ? a.plots.at(-1).x : e.drawingArea.left + e.slot.line * h + e.slot.line / 2},${t.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset : e.drawingArea.bottom} Z`,
|
|
1805
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${h}_${t.uniqueId})` : e.setOpacity(a.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1806
|
+
}, null, 8, nr))
|
|
1807
|
+
], 64)) : (l(), i(I, { key: 1 }, [
|
|
1808
|
+
r.$slots.pattern ? (l(), i("path", {
|
|
1809
|
+
key: 0,
|
|
1810
|
+
d: `M${a.area}Z`,
|
|
1811
|
+
fill: `url(#pattern_${t.uniqueId}_${a.slotAbsoluteIndex})`
|
|
1812
|
+
}, null, 8, hr)) : (l(), i("path", {
|
|
1813
|
+
key: 1,
|
|
1814
|
+
d: `M${a.area}Z`,
|
|
1815
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${h}_${t.uniqueId})` : e.setOpacity(a.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1816
|
+
}, null, 8, or))
|
|
1817
|
+
], 64))
|
|
1782
1818
|
])) : c("", !0),
|
|
1783
|
-
|
|
1819
|
+
a.smooth && a.plots.length > 1 ? (l(), i("path", {
|
|
1784
1820
|
key: 1,
|
|
1785
|
-
d: `M${
|
|
1786
|
-
stroke:
|
|
1821
|
+
d: `M${a.curve}`,
|
|
1822
|
+
stroke: a.color,
|
|
1787
1823
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth,
|
|
1788
|
-
"stroke-dasharray":
|
|
1824
|
+
"stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1789
1825
|
fill: "none"
|
|
1790
|
-
}, null, 8,
|
|
1791
|
-
(
|
|
1826
|
+
}, null, 8, cr)) : a.plots.length > 1 ? (l(), i("g", dr, [
|
|
1827
|
+
(l(!0), i(I, null, m(a.plots, (n, d) => (l(), i("g", {
|
|
1792
1828
|
key: `line_${h}_${d}`
|
|
1793
1829
|
}, [
|
|
1794
|
-
n && d <
|
|
1830
|
+
n && d < a.plots.length - 1 && a.plots[d + 1] && e.canShowValue(n.value) && e.canShowValue(a.plots[d + 1].value) ? (l(), i("line", {
|
|
1795
1831
|
key: 0,
|
|
1796
1832
|
x1: n.x,
|
|
1797
|
-
x2:
|
|
1798
|
-
y1: n.y,
|
|
1799
|
-
y2:
|
|
1800
|
-
stroke:
|
|
1833
|
+
x2: a.plots[d + 1].x,
|
|
1834
|
+
y1: e.forceValidValue(n.y),
|
|
1835
|
+
y2: e.forceValidValue(a.plots[d + 1].y),
|
|
1836
|
+
stroke: a.color,
|
|
1801
1837
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth,
|
|
1802
|
-
"stroke-dasharray":
|
|
1838
|
+
"stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1803
1839
|
"stroke-linejoin": "round",
|
|
1804
1840
|
"stroke-linecap": "round"
|
|
1805
|
-
}, null, 8,
|
|
1841
|
+
}, null, 8, ur)) : c("", !0)
|
|
1806
1842
|
]))), 128))
|
|
1807
1843
|
])) : c("", !0),
|
|
1808
|
-
(
|
|
1844
|
+
(l(!0), i(I, null, m(a.plots, (n, d) => (l(), i("g", {
|
|
1809
1845
|
key: `circle_line_${h}_${d}`
|
|
1810
1846
|
}, [
|
|
1811
|
-
n && e.canShowValue(n.value) ? (
|
|
1847
|
+
n && e.canShowValue(n.value) ? (l(), D(b, {
|
|
1812
1848
|
key: 0,
|
|
1813
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
1814
|
-
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${h}_${t.uniqueId})` : e.FINAL_CONFIG.line.dot.useSerieColor ?
|
|
1849
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(a.shape) ? a.shape : "circle",
|
|
1850
|
+
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${h}_${t.uniqueId})` : e.FINAL_CONFIG.line.dot.useSerieColor ? a.color : e.FINAL_CONFIG.line.dot.fill,
|
|
1815
1851
|
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
1816
1852
|
radius: t.selectedSerieIndex !== null && t.selectedSerieIndex === d || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === d ? (t.plotRadii.line || 6) * 1.5 : t.plotRadii.line || 6,
|
|
1817
|
-
stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor :
|
|
1853
|
+
stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : a.color,
|
|
1818
1854
|
strokeWidth: e.FINAL_CONFIG.line.dot.strokeWidth
|
|
1819
1855
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : c("", !0),
|
|
1820
|
-
n.comment && e.FINAL_CONFIG.chart.comments.show ? (
|
|
1856
|
+
n.comment && e.FINAL_CONFIG.chart.comments.show ? (l(), i("foreignObject", {
|
|
1821
1857
|
key: 1,
|
|
1822
1858
|
style: { overflow: "visible" },
|
|
1823
1859
|
height: "12",
|
|
@@ -1825,14 +1861,14 @@ function Zi(i, l, o, u, t, e) {
|
|
|
1825
1861
|
x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1826
1862
|
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1827
1863
|
}, [
|
|
1828
|
-
f("div",
|
|
1829
|
-
|
|
1830
|
-
plot: { ...n, color:
|
|
1864
|
+
f("div", fr, [
|
|
1865
|
+
S(r.$slots, "plot-comment", {
|
|
1866
|
+
plot: { ...n, color: a.color, seriesIndex: h, datapointIndex: d }
|
|
1831
1867
|
}, void 0, !0)
|
|
1832
1868
|
])
|
|
1833
|
-
], 8,
|
|
1869
|
+
], 8, gr)) : c("", !0)
|
|
1834
1870
|
]))), 128)),
|
|
1835
|
-
Object.hasOwn(
|
|
1871
|
+
Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (l(), i("g", Ir, [
|
|
1836
1872
|
f("defs", null, [
|
|
1837
1873
|
f("marker", {
|
|
1838
1874
|
id: `line_arrow_${h}`,
|
|
@@ -1844,108 +1880,108 @@ function Zi(i, l, o, u, t, e) {
|
|
|
1844
1880
|
}, [
|
|
1845
1881
|
f("polygon", {
|
|
1846
1882
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1847
|
-
fill:
|
|
1848
|
-
}, null, 8,
|
|
1849
|
-
], 8,
|
|
1883
|
+
fill: a.color
|
|
1884
|
+
}, null, 8, Nr)
|
|
1885
|
+
], 8, mr)
|
|
1850
1886
|
]),
|
|
1851
|
-
|
|
1887
|
+
a.plots.length > 1 ? (l(), i("line", {
|
|
1852
1888
|
key: 0,
|
|
1853
|
-
x1: e.calcLinearProgression(
|
|
1854
|
-
x2: e.calcLinearProgression(
|
|
1855
|
-
y1: e.calcLinearProgression(
|
|
1856
|
-
y2: e.calcLinearProgression(
|
|
1889
|
+
x1: e.calcLinearProgression(a.plots).x1,
|
|
1890
|
+
x2: e.calcLinearProgression(a.plots).x2,
|
|
1891
|
+
y1: e.forceValidValue(e.calcLinearProgression(a.plots).y1),
|
|
1892
|
+
y2: e.forceValidValue(e.calcLinearProgression(a.plots).y2),
|
|
1857
1893
|
"stroke-width": 1,
|
|
1858
|
-
stroke:
|
|
1894
|
+
stroke: a.color,
|
|
1859
1895
|
"stroke-dasharray": 2,
|
|
1860
1896
|
"marker-end": `url(#line_arrow_${h})`
|
|
1861
|
-
}, null, 8,
|
|
1862
|
-
|
|
1897
|
+
}, null, 8, xr)) : c("", !0),
|
|
1898
|
+
a.plots.length > 1 ? (l(), i("text", {
|
|
1863
1899
|
key: 1,
|
|
1864
1900
|
"text-anchor": "middle",
|
|
1865
|
-
x: e.calcLinearProgression(
|
|
1866
|
-
y: e.calcLinearProgression(
|
|
1901
|
+
x: e.calcLinearProgression(a.plots).x2,
|
|
1902
|
+
y: e.calcLinearProgression(a.plots).y2 - 6,
|
|
1867
1903
|
"font-size": t.fontSizes.plotLabels,
|
|
1868
|
-
fill:
|
|
1869
|
-
},
|
|
1870
|
-
v: e.calcLinearProgression(
|
|
1904
|
+
fill: a.color
|
|
1905
|
+
}, k(e.dataLabel({
|
|
1906
|
+
v: e.calcLinearProgression(a.plots).trend * 100,
|
|
1871
1907
|
s: "%",
|
|
1872
1908
|
r: 2
|
|
1873
|
-
})), 9,
|
|
1909
|
+
})), 9, br)) : c("", !0)
|
|
1874
1910
|
])) : c("", !0)
|
|
1875
1911
|
], 6))), 128)),
|
|
1876
|
-
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && t.mutableConfig.dataLabels.show ? (
|
|
1877
|
-
(
|
|
1912
|
+
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && t.mutableConfig.dataLabels.show ? (l(), i("g", Fr, [
|
|
1913
|
+
(l(!0), i(I, null, m(e.barSet, (a, h) => (l(), i("g", {
|
|
1878
1914
|
key: `xLabel_bar_${h}`,
|
|
1879
|
-
class:
|
|
1880
|
-
style: L(`opacity:${t.selectedScale ? t.selectedScale ===
|
|
1915
|
+
class: P(`xLabel_bar_${h}`),
|
|
1916
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1881
1917
|
}, [
|
|
1882
|
-
(
|
|
1918
|
+
(l(!0), i(I, null, m(a.plots, (n, d) => (l(), i("g", {
|
|
1883
1919
|
key: `xLabel_bar_${h}_${d}`
|
|
1884
1920
|
}, [
|
|
1885
|
-
n && (!Object.hasOwn(
|
|
1921
|
+
n && (!Object.hasOwn(a, "dataLabels") || a.dataLabels === !0 || t.selectedSerieIndex !== null && t.selectedSerieIndex === d || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === d) && e.FINAL_CONFIG.bar.labels.show ? (l(), i("text", {
|
|
1886
1922
|
key: 0,
|
|
1887
1923
|
x: t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? n.x + e.slot.line / 2 : e.calcRectX(n) + e.calcRectWidth() / 2 - e.barPeriodGap / 2,
|
|
1888
1924
|
y: e.checkNaN(n.y) + (n.value >= 0 ? e.FINAL_CONFIG.bar.labels.offsetY : -e.FINAL_CONFIG.bar.labels.offsetY * 3),
|
|
1889
1925
|
"text-anchor": "middle",
|
|
1890
1926
|
"font-size": t.fontSizes.plotLabels,
|
|
1891
1927
|
fill: e.FINAL_CONFIG.bar.labels.color
|
|
1892
|
-
},
|
|
1928
|
+
}, k(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
1893
1929
|
e.FINAL_CONFIG.bar.labels.formatter,
|
|
1894
1930
|
n.value,
|
|
1895
1931
|
e.dataLabel({
|
|
1896
|
-
p:
|
|
1932
|
+
p: a.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
1897
1933
|
v: n.value,
|
|
1898
|
-
s:
|
|
1934
|
+
s: a.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
1899
1935
|
r: e.FINAL_CONFIG.bar.labels.rounding
|
|
1900
1936
|
}),
|
|
1901
1937
|
{
|
|
1902
1938
|
datapoint: n,
|
|
1903
|
-
serie:
|
|
1939
|
+
serie: a
|
|
1904
1940
|
}
|
|
1905
|
-
) : ""), 9,
|
|
1906
|
-
n && e.FINAL_CONFIG.bar.serieName.show ? (
|
|
1941
|
+
) : ""), 9, _r)) : c("", !0),
|
|
1942
|
+
n && e.FINAL_CONFIG.bar.serieName.show ? (l(), i("text", {
|
|
1907
1943
|
key: 1,
|
|
1908
1944
|
x: t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? n.x + e.slot.line / 2 : n.x + e.calcRectWidth() * 1.1,
|
|
1909
1945
|
y: n.y + (n.value > 0 ? e.FINAL_CONFIG.bar.serieName.offsetY : -e.FINAL_CONFIG.bar.serieName.offsetY * 3),
|
|
1910
1946
|
"text-anchor": "middle",
|
|
1911
1947
|
"font-size": t.fontSizes.plotLabels,
|
|
1912
|
-
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ?
|
|
1948
|
+
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? a.color : e.FINAL_CONFIG.bar.serieName.color,
|
|
1913
1949
|
"font-weight": e.FINAL_CONFIG.bar.serieName.bold ? "bold" : "normal"
|
|
1914
|
-
},
|
|
1950
|
+
}, k(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: a.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : a.name), 9, Ar)) : c("", !0)
|
|
1915
1951
|
]))), 128))
|
|
1916
1952
|
], 6))), 128))
|
|
1917
1953
|
])) : c("", !0),
|
|
1918
|
-
e.FINAL_CONFIG.plot.labels.show && t.mutableConfig.dataLabels.show ? (
|
|
1919
|
-
(
|
|
1954
|
+
e.FINAL_CONFIG.plot.labels.show && t.mutableConfig.dataLabels.show ? (l(), i("g", yr, [
|
|
1955
|
+
(l(!0), i(I, null, m(e.plotSet, (a, h) => (l(), i("g", {
|
|
1920
1956
|
key: `xLabel_plot_${h}`,
|
|
1921
|
-
class:
|
|
1922
|
-
style: L(`opacity:${t.selectedScale ? t.selectedScale ===
|
|
1957
|
+
class: P(`xLabel_plot_${h}`),
|
|
1958
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1923
1959
|
}, [
|
|
1924
|
-
(
|
|
1960
|
+
(l(!0), i(I, null, m(a.plots, (n, d) => (l(), i("g", {
|
|
1925
1961
|
key: `xLabel_plot_${h}_${d}`
|
|
1926
1962
|
}, [
|
|
1927
|
-
n && !Object.hasOwn(
|
|
1963
|
+
n && !Object.hasOwn(a, "dataLabels") || a.dataLabels === !0 || t.selectedSerieIndex !== null && t.selectedSerieIndex === d || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === d ? (l(), i("text", {
|
|
1928
1964
|
key: 0,
|
|
1929
1965
|
x: n.x,
|
|
1930
1966
|
y: n.y + e.FINAL_CONFIG.plot.labels.offsetY,
|
|
1931
1967
|
"text-anchor": "middle",
|
|
1932
1968
|
"font-size": t.fontSizes.plotLabels,
|
|
1933
1969
|
fill: e.FINAL_CONFIG.plot.labels.color
|
|
1934
|
-
},
|
|
1970
|
+
}, k(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
1935
1971
|
e.FINAL_CONFIG.plot.labels.formatter,
|
|
1936
1972
|
n.value,
|
|
1937
1973
|
e.dataLabel({
|
|
1938
|
-
p:
|
|
1974
|
+
p: a.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
1939
1975
|
v: n.value,
|
|
1940
|
-
s:
|
|
1976
|
+
s: a.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
1941
1977
|
r: e.FINAL_CONFIG.plot.labels.rounding
|
|
1942
1978
|
}),
|
|
1943
1979
|
{
|
|
1944
1980
|
datapoint: n,
|
|
1945
|
-
serie:
|
|
1981
|
+
serie: a
|
|
1946
1982
|
}
|
|
1947
|
-
) : ""), 9,
|
|
1948
|
-
n && d === 0 &&
|
|
1983
|
+
) : ""), 9, Lr)) : c("", !0),
|
|
1984
|
+
n && d === 0 && a.useTag && a.useTag === "start" ? (l(), i("foreignObject", {
|
|
1949
1985
|
key: 1,
|
|
1950
1986
|
x: n.x,
|
|
1951
1987
|
y: n.y - 20,
|
|
@@ -1954,55 +1990,55 @@ function Zi(i, l, o, u, t, e) {
|
|
|
1954
1990
|
style: { overflow: "visible" }
|
|
1955
1991
|
}, [
|
|
1956
1992
|
f("div", {
|
|
1957
|
-
style: L(`padding: 3px; background:${e.setOpacity(
|
|
1958
|
-
},
|
|
1959
|
-
], 8,
|
|
1960
|
-
n && d ===
|
|
1993
|
+
style: L(`padding: 3px; background:${e.setOpacity(a.color, 80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1994
|
+
}, k(a.name), 5)
|
|
1995
|
+
], 8, Cr)) : c("", !0),
|
|
1996
|
+
n && d === a.plots.length - 1 && a.useTag && a.useTag === "end" ? (l(), i("foreignObject", {
|
|
1961
1997
|
key: 2,
|
|
1962
|
-
x: n.x -
|
|
1998
|
+
x: n.x - a.name.length * (t.fontSizes.plotLabels / 2),
|
|
1963
1999
|
y: n.y - 20,
|
|
1964
2000
|
height: 24,
|
|
1965
2001
|
width: "150",
|
|
1966
2002
|
style: { overflow: "visible" }
|
|
1967
2003
|
}, [
|
|
1968
2004
|
f("div", {
|
|
1969
|
-
style: L(`padding: 3px; background:${e.setOpacity(
|
|
1970
|
-
},
|
|
1971
|
-
], 8,
|
|
2005
|
+
style: L(`padding: 3px; background:${e.setOpacity(a.color, 80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
2006
|
+
}, k(a.name), 5)
|
|
2007
|
+
], 8, Sr)) : c("", !0)
|
|
1972
2008
|
]))), 128))
|
|
1973
2009
|
], 6))), 128))
|
|
1974
2010
|
])) : c("", !0),
|
|
1975
|
-
e.FINAL_CONFIG.line.labels.show && t.mutableConfig.dataLabels.show ? (
|
|
1976
|
-
(
|
|
2011
|
+
e.FINAL_CONFIG.line.labels.show && t.mutableConfig.dataLabels.show ? (l(), i("g", kr, [
|
|
2012
|
+
(l(!0), i(I, null, m(e.lineSet, (a, h) => (l(), i("g", {
|
|
1977
2013
|
key: `xLabel_line_${h}`,
|
|
1978
|
-
class:
|
|
1979
|
-
style: L(`opacity:${t.selectedScale ? t.selectedScale ===
|
|
2014
|
+
class: P(`xLabel_line_${h}`),
|
|
2015
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1980
2016
|
}, [
|
|
1981
|
-
(
|
|
2017
|
+
(l(!0), i(I, null, m(a.plots, (n, d) => (l(), i("g", {
|
|
1982
2018
|
key: `xLabel_line_${h}_${d}`
|
|
1983
2019
|
}, [
|
|
1984
|
-
n && !Object.hasOwn(
|
|
2020
|
+
n && !Object.hasOwn(a, "dataLabels") || a.dataLabels === !0 || t.selectedSerieIndex !== null && t.selectedSerieIndex === d || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === d ? (l(), i("text", {
|
|
1985
2021
|
key: 0,
|
|
1986
2022
|
x: n.x,
|
|
1987
2023
|
y: n.y + (n.value >= 0 ? e.FINAL_CONFIG.line.labels.offsetY : -e.FINAL_CONFIG.line.labels.offsetY * 3),
|
|
1988
2024
|
"text-anchor": "middle",
|
|
1989
2025
|
"font-size": t.fontSizes.plotLabels,
|
|
1990
2026
|
fill: e.FINAL_CONFIG.line.labels.color
|
|
1991
|
-
},
|
|
2027
|
+
}, k(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
1992
2028
|
e.FINAL_CONFIG.line.labels.formatter,
|
|
1993
2029
|
n.value,
|
|
1994
2030
|
e.dataLabel({
|
|
1995
|
-
p:
|
|
2031
|
+
p: a.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
1996
2032
|
v: n.value,
|
|
1997
|
-
s:
|
|
2033
|
+
s: a.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
1998
2034
|
r: e.FINAL_CONFIG.line.labels.rounding
|
|
1999
2035
|
}),
|
|
2000
2036
|
{
|
|
2001
2037
|
datapoint: n,
|
|
2002
|
-
serie:
|
|
2038
|
+
serie: a
|
|
2003
2039
|
}
|
|
2004
|
-
) : ""), 9,
|
|
2005
|
-
n && d === 0 &&
|
|
2040
|
+
) : ""), 9, wr)) : c("", !0),
|
|
2041
|
+
n && d === 0 && a.useTag && a.useTag === "start" ? (l(), i("foreignObject", {
|
|
2006
2042
|
key: 1,
|
|
2007
2043
|
x: n.x,
|
|
2008
2044
|
y: n.y - 20,
|
|
@@ -2011,154 +2047,154 @@ function Zi(i, l, o, u, t, e) {
|
|
|
2011
2047
|
style: { overflow: "visible" }
|
|
2012
2048
|
}, [
|
|
2013
2049
|
f("div", {
|
|
2014
|
-
style: L(`padding: 3px; background:${e.setOpacity(
|
|
2015
|
-
},
|
|
2016
|
-
], 8,
|
|
2017
|
-
n && d ===
|
|
2050
|
+
style: L(`padding: 3px; background:${e.setOpacity(a.color, 80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
2051
|
+
}, k(a.name), 5)
|
|
2052
|
+
], 8, Or)) : c("", !0),
|
|
2053
|
+
n && d === a.plots.length - 1 && a.useTag && a.useTag === "end" ? (l(), i("foreignObject", {
|
|
2018
2054
|
key: 2,
|
|
2019
|
-
x: n.x -
|
|
2055
|
+
x: n.x - a.name.length * (t.fontSizes.plotLabels / 2),
|
|
2020
2056
|
y: n.y - 20,
|
|
2021
2057
|
height: 24,
|
|
2022
2058
|
width: "150",
|
|
2023
2059
|
style: { overflow: "visible" }
|
|
2024
2060
|
}, [
|
|
2025
2061
|
f("div", {
|
|
2026
|
-
style: L(`padding: 3px; background:${e.setOpacity(
|
|
2027
|
-
},
|
|
2028
|
-
], 8,
|
|
2062
|
+
style: L(`padding: 3px; background:${e.setOpacity(a.color, 80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
2063
|
+
}, k(a.name), 5)
|
|
2064
|
+
], 8, Gr)) : c("", !0)
|
|
2029
2065
|
]))), 128))
|
|
2030
2066
|
], 6))), 128))
|
|
2031
2067
|
])) : c("", !0),
|
|
2032
|
-
(
|
|
2068
|
+
(l(!0), i(I, null, m(e.lineSet, (a, h) => (l(), i("g", {
|
|
2033
2069
|
key: `xLabel_line_${h}`,
|
|
2034
|
-
class:
|
|
2035
|
-
style: L(`opacity:${t.selectedScale ? t.selectedScale ===
|
|
2070
|
+
class: P(`xLabel_line_${h}`),
|
|
2071
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2036
2072
|
}, [
|
|
2037
|
-
(
|
|
2073
|
+
(l(!0), i(I, null, m(a.plots, (n, d) => (l(), i("g", {
|
|
2038
2074
|
key: `xLabel_line_${h}_${d}`
|
|
2039
2075
|
}, [
|
|
2040
|
-
n && d === 0 &&
|
|
2076
|
+
n && d === 0 && a.showSerieName && a.showSerieName === "start" ? (l(), i("text", {
|
|
2041
2077
|
key: 0,
|
|
2042
2078
|
x: n.x - t.fontSizes.plotLabels,
|
|
2043
2079
|
y: n.y,
|
|
2044
2080
|
"font-size": t.fontSizes.plotLabels,
|
|
2045
2081
|
"text-anchor": "end",
|
|
2046
|
-
fill:
|
|
2082
|
+
fill: a.color,
|
|
2047
2083
|
innerHTML: e.createTSpans({
|
|
2048
|
-
content:
|
|
2084
|
+
content: a.name,
|
|
2049
2085
|
fontSize: t.fontSizes.plotLabels,
|
|
2050
|
-
fill:
|
|
2086
|
+
fill: a.color,
|
|
2051
2087
|
x: n.x - t.fontSizes.plotLabels,
|
|
2052
2088
|
y: n.y,
|
|
2053
2089
|
maxWords: 2
|
|
2054
2090
|
})
|
|
2055
|
-
}, null, 8,
|
|
2056
|
-
n && d ===
|
|
2091
|
+
}, null, 8, vr)) : c("", !0),
|
|
2092
|
+
n && d === a.plots.length - 1 && a.showSerieName && a.showSerieName === "end" ? (l(), i("text", {
|
|
2057
2093
|
key: 1,
|
|
2058
2094
|
x: n.x + t.fontSizes.plotLabels,
|
|
2059
2095
|
y: n.y,
|
|
2060
2096
|
"font-size": t.fontSizes.plotLabels,
|
|
2061
2097
|
"text-anchor": "start",
|
|
2062
|
-
fill:
|
|
2098
|
+
fill: a.color,
|
|
2063
2099
|
innerHTML: e.createTSpans({
|
|
2064
|
-
content:
|
|
2100
|
+
content: a.name,
|
|
2065
2101
|
fontSize: t.fontSizes.plotLabels,
|
|
2066
|
-
fill:
|
|
2102
|
+
fill: a.color,
|
|
2067
2103
|
x: n.x + t.fontSizes.plotLabels,
|
|
2068
2104
|
y: n.y,
|
|
2069
2105
|
maxWords: 2
|
|
2070
2106
|
})
|
|
2071
|
-
}, null, 8,
|
|
2107
|
+
}, null, 8, zr)) : c("", !0)
|
|
2072
2108
|
]))), 128))
|
|
2073
2109
|
], 6))), 128)),
|
|
2074
|
-
(
|
|
2110
|
+
(l(!0), i(I, null, m(e.plotSet, (a, h) => (l(), i("g", {
|
|
2075
2111
|
key: `xLabel_plot_${h}`,
|
|
2076
|
-
class:
|
|
2077
|
-
style: L(`opacity:${t.selectedScale ? t.selectedScale ===
|
|
2112
|
+
class: P(`xLabel_plot_${h}`),
|
|
2113
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2078
2114
|
}, [
|
|
2079
|
-
(
|
|
2115
|
+
(l(!0), i(I, null, m(a.plots, (n, d) => (l(), i("g", {
|
|
2080
2116
|
key: `xLabel_plot_${h}_${d}`
|
|
2081
2117
|
}, [
|
|
2082
|
-
n && d === 0 &&
|
|
2118
|
+
n && d === 0 && a.showSerieName && a.showSerieName === "start" ? (l(), i("text", {
|
|
2083
2119
|
key: 0,
|
|
2084
2120
|
x: n.x - t.fontSizes.plotLabels,
|
|
2085
2121
|
y: n.y,
|
|
2086
2122
|
"font-size": t.fontSizes.plotLabels,
|
|
2087
2123
|
"text-anchor": "end",
|
|
2088
|
-
fill:
|
|
2124
|
+
fill: a.color,
|
|
2089
2125
|
innerHTML: e.createTSpans({
|
|
2090
|
-
content:
|
|
2126
|
+
content: a.name,
|
|
2091
2127
|
fontSize: t.fontSizes.plotLabels,
|
|
2092
|
-
fill:
|
|
2128
|
+
fill: a.color,
|
|
2093
2129
|
x: n.x - t.fontSizes.plotLabels,
|
|
2094
2130
|
y: n.y,
|
|
2095
2131
|
maxWords: 2
|
|
2096
2132
|
})
|
|
2097
|
-
}, null, 8,
|
|
2098
|
-
n && d ===
|
|
2133
|
+
}, null, 8, pr)) : c("", !0),
|
|
2134
|
+
n && d === a.plots.length - 1 && a.showSerieName && a.showSerieName === "end" ? (l(), i("text", {
|
|
2099
2135
|
key: 1,
|
|
2100
2136
|
x: n.x + t.fontSizes.plotLabels,
|
|
2101
2137
|
y: n.y,
|
|
2102
2138
|
"font-size": t.fontSizes.plotLabels,
|
|
2103
2139
|
"text-anchor": "start",
|
|
2104
|
-
fill:
|
|
2140
|
+
fill: a.color,
|
|
2105
2141
|
innerHTML: e.createTSpans({
|
|
2106
|
-
content:
|
|
2142
|
+
content: a.name,
|
|
2107
2143
|
fontSize: t.fontSizes.plotLabels,
|
|
2108
|
-
fill:
|
|
2144
|
+
fill: a.color,
|
|
2109
2145
|
x: n.x + t.fontSizes.plotLabels,
|
|
2110
2146
|
y: n.y,
|
|
2111
2147
|
maxWords: 2
|
|
2112
2148
|
})
|
|
2113
|
-
}, null, 8,
|
|
2149
|
+
}, null, 8, Mr)) : c("", !0)
|
|
2114
2150
|
]))), 128))
|
|
2115
2151
|
], 6))), 128)),
|
|
2116
|
-
t.mutableConfig.useIndividualScale && !t.mutableConfig.isStacked ? (
|
|
2117
|
-
x:
|
|
2152
|
+
t.mutableConfig.useIndividualScale && !t.mutableConfig.isStacked ? (l(!0), i(I, { key: 9 }, m(e.allScales, (a) => (l(), i("rect", {
|
|
2153
|
+
x: a.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
2118
2154
|
y: e.drawingArea.top,
|
|
2119
2155
|
width: e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
2120
2156
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
2121
|
-
fill: t.selectedScale ===
|
|
2122
|
-
onMouseenter: (h) => t.selectedScale =
|
|
2123
|
-
onMouseleave:
|
|
2124
|
-
}, null, 40,
|
|
2157
|
+
fill: t.selectedScale === a.id ? e.setOpacity(a.color, 20) : "transparent",
|
|
2158
|
+
onMouseenter: (h) => t.selectedScale = a.id,
|
|
2159
|
+
onMouseleave: s[0] || (s[0] = (h) => t.selectedScale = null)
|
|
2160
|
+
}, null, 40, Vr))), 256)) : c("", !0),
|
|
2125
2161
|
f("g", null, [
|
|
2126
|
-
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !t.mutableConfig.useIndividualScale ? (
|
|
2162
|
+
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !t.mutableConfig.useIndividualScale ? (l(), i("text", {
|
|
2127
2163
|
key: 0,
|
|
2128
2164
|
"font-size": t.fontSizes.yAxis,
|
|
2129
2165
|
fill: e.FINAL_CONFIG.chart.grid.labels.color,
|
|
2130
2166
|
transform: `translate(${t.fontSizes.yAxis + e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`,
|
|
2131
2167
|
"text-anchor": "middle",
|
|
2132
2168
|
style: { transition: "none" }
|
|
2133
|
-
},
|
|
2134
|
-
e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (
|
|
2169
|
+
}, k(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, Tr)) : c("", !0),
|
|
2170
|
+
e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (l(), i("text", {
|
|
2135
2171
|
key: 1,
|
|
2136
2172
|
"text-anchor": "middle",
|
|
2137
2173
|
x: t.width / 2,
|
|
2138
2174
|
y: e.drawingArea.bottom + t.fontSizes.yAxis + t.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,
|
|
2139
2175
|
"font-size": t.fontSizes.yAxis,
|
|
2140
2176
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
2141
|
-
},
|
|
2177
|
+
}, k(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, Pr)) : c("", !0)
|
|
2142
2178
|
]),
|
|
2143
|
-
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (
|
|
2144
|
-
|
|
2179
|
+
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (l(), i("g", Rr, [
|
|
2180
|
+
r.$slots["time-label"] ? (l(!0), i(I, { key: 0 }, m(e.timeLabels, (a, h) => (l(), i("g", {
|
|
2145
2181
|
key: `time_label_${h}`
|
|
2146
2182
|
}, [
|
|
2147
|
-
|
|
2183
|
+
S(r.$slots, "time-label", H(B({
|
|
2148
2184
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * h + e.drawingArea.width / e.maxSeries / 2,
|
|
2149
2185
|
y: e.drawingArea.bottom + t.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset,
|
|
2150
2186
|
fontSize: t.fontSizes.xAxis,
|
|
2151
2187
|
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
2152
2188
|
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})`,
|
|
2153
|
-
absoluteIndex:
|
|
2154
|
-
content:
|
|
2189
|
+
absoluteIndex: a.absoluteIndex,
|
|
2190
|
+
content: a.text,
|
|
2155
2191
|
textAnchor: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2156
|
-
show:
|
|
2192
|
+
show: a && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || a && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (h === 0 || h === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || a && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && t.selectedSerieIndex === h && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || a && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && h % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0
|
|
2157
2193
|
})), void 0, !0)
|
|
2158
|
-
]))), 128)) : (
|
|
2194
|
+
]))), 128)) : (l(!0), i(I, { key: 1 }, m(e.timeLabels, (a, h) => (l(), i("g", {
|
|
2159
2195
|
key: `time_label_${h}`
|
|
2160
2196
|
}, [
|
|
2161
|
-
|
|
2197
|
+
a && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || a && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (h === 0 || h === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || a && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && t.selectedSerieIndex === h && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || a && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && h % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (l(), i("text", {
|
|
2162
2198
|
key: 0,
|
|
2163
2199
|
"text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2164
2200
|
"font-size": t.fontSizes.xAxis,
|
|
@@ -2167,12 +2203,12 @@ function Zi(i, l, o, u, t, e) {
|
|
|
2167
2203
|
style: {
|
|
2168
2204
|
cursor: "pointer"
|
|
2169
2205
|
},
|
|
2170
|
-
onClick: () => e.selectTimeLabel(
|
|
2171
|
-
},
|
|
2206
|
+
onClick: () => e.selectTimeLabel(a, h)
|
|
2207
|
+
}, k(a.text || ""), 9, Dr)) : c("", !0)
|
|
2172
2208
|
]))), 128))
|
|
2173
2209
|
])) : c("", !0),
|
|
2174
2210
|
f("g", null, [
|
|
2175
|
-
(
|
|
2211
|
+
(l(!0), i(I, null, m(e.maxSeries, (a, h) => (l(), i("g", {
|
|
2176
2212
|
key: `tooltip_trap_${h}`
|
|
2177
2213
|
}, [
|
|
2178
2214
|
f("rect", {
|
|
@@ -2183,13 +2219,13 @@ function Zi(i, l, o, u, t, e) {
|
|
|
2183
2219
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
2184
2220
|
fill: "transparent",
|
|
2185
2221
|
onMouseenter: (n) => e.toggleTooltipVisibility(!0, h),
|
|
2186
|
-
onMouseleave:
|
|
2222
|
+
onMouseleave: s[1] || (s[1] = (n) => e.toggleTooltipVisibility(!1)),
|
|
2187
2223
|
onClick: (n) => e.selectX(h)
|
|
2188
|
-
}, null, 40,
|
|
2224
|
+
}, null, 40, Hr)
|
|
2189
2225
|
]))), 128))
|
|
2190
2226
|
]),
|
|
2191
|
-
e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(t.selectedSerieIndex) || ![null, void 0].includes(t.selectedMinimapIndex)) ? (
|
|
2192
|
-
(
|
|
2227
|
+
e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(t.selectedSerieIndex) || ![null, void 0].includes(t.selectedMinimapIndex)) ? (l(), i("g", Br, [
|
|
2228
|
+
(l(), i("foreignObject", {
|
|
2193
2229
|
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,
|
|
2194
2230
|
y: e.drawingArea.bottom,
|
|
2195
2231
|
width: "200",
|
|
@@ -2199,22 +2235,22 @@ function Zi(i, l, o, u, t, e) {
|
|
|
2199
2235
|
f("div", {
|
|
2200
2236
|
class: "vue-ui-xy-time-tag",
|
|
2201
2237
|
style: L(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${e.FINAL_CONFIG.chart.timeTag.backgroundColor};color:${e.FINAL_CONFIG.chart.timeTag.color};font-size:${e.FINAL_CONFIG.chart.timeTag.fontSize}px`)
|
|
2202
|
-
},
|
|
2203
|
-
], 8,
|
|
2238
|
+
}, 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)
|
|
2239
|
+
], 8, Wr)),
|
|
2204
2240
|
f("circle", {
|
|
2205
2241
|
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,
|
|
2206
2242
|
cy: e.drawingArea.bottom,
|
|
2207
2243
|
r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
|
|
2208
2244
|
fill: e.FINAL_CONFIG.chart.timeTag.circleMarker.color
|
|
2209
|
-
}, null, 8,
|
|
2245
|
+
}, null, 8, Er)
|
|
2210
2246
|
])) : c("", !0)
|
|
2211
2247
|
])) : c("", !0),
|
|
2212
|
-
|
|
2213
|
-
], 14,
|
|
2214
|
-
|
|
2215
|
-
|
|
2248
|
+
S(r.$slots, "svg", { svg: e.svg }, void 0, !0)
|
|
2249
|
+
], 14, Qe)) : c("", !0),
|
|
2250
|
+
r.$slots.watermark ? (l(), i("div", Yr, [
|
|
2251
|
+
S(r.$slots, "watermark", H(B({ isPrinting: t.isPrinting || t.isImaging })), void 0, !0)
|
|
2216
2252
|
])) : c("", !0),
|
|
2217
|
-
e.isDataset ? c("", !0) : (
|
|
2253
|
+
e.isDataset ? c("", !0) : (l(), D(V, {
|
|
2218
2254
|
key: 6,
|
|
2219
2255
|
config: {
|
|
2220
2256
|
type: "line",
|
|
@@ -2232,7 +2268,7 @@ function Zi(i, l, o, u, t, e) {
|
|
|
2232
2268
|
}
|
|
2233
2269
|
}
|
|
2234
2270
|
}, null, 8, ["config"])),
|
|
2235
|
-
e.FINAL_CONFIG.chart.zoom.show && t.maxX > 6 && e.isDataset ? (
|
|
2271
|
+
e.FINAL_CONFIG.chart.zoom.show && t.maxX > 6 && e.isDataset ? (l(), D(v, {
|
|
2236
2272
|
ref: "chartSlicer",
|
|
2237
2273
|
key: `slicer_${t.slicerStep}`,
|
|
2238
2274
|
background: e.FINAL_CONFIG.chart.zoom.color,
|
|
@@ -2257,33 +2293,33 @@ function Zi(i, l, o, u, t, e) {
|
|
|
2257
2293
|
valueStart: t.slicer.start,
|
|
2258
2294
|
valueEnd: t.slicer.end,
|
|
2259
2295
|
start: t.slicer.start,
|
|
2260
|
-
"onUpdate:start":
|
|
2296
|
+
"onUpdate:start": s[2] || (s[2] = (a) => t.slicer.start = a),
|
|
2261
2297
|
end: t.slicer.end,
|
|
2262
|
-
"onUpdate:end":
|
|
2298
|
+
"onUpdate:end": s[3] || (s[3] = (a) => t.slicer.end = a),
|
|
2263
2299
|
refreshStartPoint: e.FINAL_CONFIG.chart.zoom.startIndex !== null ? e.FINAL_CONFIG.chart.zoom.startIndex : 0,
|
|
2264
|
-
refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...o.dataset.map((
|
|
2300
|
+
refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...o.dataset.map((a) => e.largestTriangleThreeBucketsArray({ data: a.series, threshold: e.FINAL_CONFIG.downsample.threshold }).length)),
|
|
2265
2301
|
enableRangeHandles: e.FINAL_CONFIG.chart.zoom.enableRangeHandles,
|
|
2266
2302
|
enableSelectionDrag: e.FINAL_CONFIG.chart.zoom.enableSelectionDrag,
|
|
2267
2303
|
onReset: e.refreshSlicer,
|
|
2268
2304
|
onTrapMouse: e.selectMinimapIndex
|
|
2269
2305
|
}, {
|
|
2270
|
-
"reset-action": M(({ reset:
|
|
2271
|
-
|
|
2306
|
+
"reset-action": M(({ reset: a }) => [
|
|
2307
|
+
S(r.$slots, "reset-action", H(B({ reset: a })), void 0, !0)
|
|
2272
2308
|
]),
|
|
2273
2309
|
_: 3
|
|
2274
2310
|
}, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "onReset", "onTrapMouse"])) : c("", !0),
|
|
2275
|
-
e.FINAL_CONFIG.chart.legend.show ? (
|
|
2311
|
+
e.FINAL_CONFIG.chart.legend.show ? (l(), i("div", {
|
|
2276
2312
|
key: 8,
|
|
2277
2313
|
ref: "chartLegend",
|
|
2278
2314
|
class: "vue-ui-xy-legend",
|
|
2279
2315
|
style: L(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
|
|
2280
2316
|
}, [
|
|
2281
|
-
(
|
|
2317
|
+
(l(!0), i(I, null, m(e.absoluteDataset, (a, h) => (l(), i("div", {
|
|
2282
2318
|
key: `div_legend_item_${h}`,
|
|
2283
|
-
onClick: (n) => e.segregate(
|
|
2284
|
-
class:
|
|
2319
|
+
onClick: (n) => e.segregate(a),
|
|
2320
|
+
class: P({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": t.segregatedSeries.includes(a.id) })
|
|
2285
2321
|
}, [
|
|
2286
|
-
t.icons[
|
|
2322
|
+
t.icons[a.type] === "line" ? (l(), i("svg", Xr, [
|
|
2287
2323
|
f("rect", {
|
|
2288
2324
|
x: "0",
|
|
2289
2325
|
y: "7.5",
|
|
@@ -2292,45 +2328,56 @@ function Zi(i, l, o, u, t, e) {
|
|
|
2292
2328
|
"stroke-width": 0.5,
|
|
2293
2329
|
height: "3",
|
|
2294
2330
|
width: "20",
|
|
2295
|
-
fill:
|
|
2296
|
-
}, null, 8,
|
|
2297
|
-
|
|
2331
|
+
fill: a.color
|
|
2332
|
+
}, null, 8, Ur),
|
|
2333
|
+
q(b, {
|
|
2298
2334
|
plot: { x: 10, y: 9 },
|
|
2299
2335
|
radius: 4,
|
|
2300
|
-
color:
|
|
2301
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
2336
|
+
color: a.color,
|
|
2337
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(a.shape) ? a.shape : "circle",
|
|
2302
2338
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
2303
2339
|
strokeWidth: 0.5
|
|
2304
2340
|
}, null, 8, ["color", "shape", "stroke"])
|
|
2305
|
-
])) :
|
|
2306
|
-
t.icons[
|
|
2341
|
+
])) : t.icons[a.type] === "bar" ? (l(), i("svg", Zr, [
|
|
2342
|
+
t.icons[a.type] === "bar" && r.$slots.pattern ? (l(), i("rect", {
|
|
2307
2343
|
key: 0,
|
|
2308
2344
|
x: "0",
|
|
2309
2345
|
y: "0",
|
|
2310
2346
|
rx: "1",
|
|
2311
|
-
height: "
|
|
2312
|
-
width: "
|
|
2347
|
+
height: "40",
|
|
2348
|
+
width: "40",
|
|
2313
2349
|
stroke: "none",
|
|
2314
|
-
fill:
|
|
2315
|
-
}, null, 8,
|
|
2350
|
+
fill: a.color
|
|
2351
|
+
}, null, 8, Jr)) : c("", !0),
|
|
2352
|
+
t.icons[a.type] === "bar" ? (l(), i("rect", {
|
|
2316
2353
|
key: 1,
|
|
2354
|
+
x: "0",
|
|
2355
|
+
y: "0",
|
|
2356
|
+
rx: "1",
|
|
2357
|
+
height: "40",
|
|
2358
|
+
width: "40",
|
|
2359
|
+
stroke: "none",
|
|
2360
|
+
fill: r.$slots.pattern ? `url(#pattern_${t.uniqueId}_${a.slotAbsoluteIndex})` : a.color
|
|
2361
|
+
}, null, 8, Kr)) : c("", !0)
|
|
2362
|
+
])) : (l(), i("svg", Qr, [
|
|
2363
|
+
q(b, {
|
|
2317
2364
|
plot: { x: 6, y: 6 },
|
|
2318
2365
|
radius: 5,
|
|
2319
|
-
color:
|
|
2320
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
2321
|
-
}, null, 8, ["color", "shape"])
|
|
2366
|
+
color: a.color,
|
|
2367
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(a.shape) ? a.shape : "circle"
|
|
2368
|
+
}, null, 8, ["color", "shape"])
|
|
2322
2369
|
])),
|
|
2323
2370
|
f("span", {
|
|
2324
2371
|
style: L(`color:${e.FINAL_CONFIG.chart.legend.color}`)
|
|
2325
|
-
},
|
|
2326
|
-
], 10,
|
|
2327
|
-
], 4)) : (
|
|
2328
|
-
|
|
2372
|
+
}, k(a.name), 5)
|
|
2373
|
+
], 10, qr))), 128))
|
|
2374
|
+
], 4)) : (l(), i("div", jr, [
|
|
2375
|
+
S(r.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
|
|
2329
2376
|
], 512)),
|
|
2330
|
-
|
|
2331
|
-
|
|
2377
|
+
r.$slots.source ? (l(), i("div", $r, [
|
|
2378
|
+
S(r.$slots, "source", {}, void 0, !0)
|
|
2332
2379
|
], 512)) : c("", !0),
|
|
2333
|
-
|
|
2380
|
+
q(z, {
|
|
2334
2381
|
show: t.mutableConfig.showTooltip && t.isTooltip,
|
|
2335
2382
|
backgroundColor: e.FINAL_CONFIG.chart.tooltip.backgroundColor,
|
|
2336
2383
|
color: e.FINAL_CONFIG.chart.tooltip.color,
|
|
@@ -2341,20 +2388,20 @@ function Zi(i, l, o, u, t, e) {
|
|
|
2341
2388
|
backgroundOpacity: e.FINAL_CONFIG.chart.tooltip.backgroundOpacity,
|
|
2342
2389
|
position: e.FINAL_CONFIG.chart.tooltip.position,
|
|
2343
2390
|
offsetY: e.FINAL_CONFIG.chart.tooltip.offsetY,
|
|
2344
|
-
parent:
|
|
2391
|
+
parent: r.$refs.chart,
|
|
2345
2392
|
content: e.tooltipContent,
|
|
2346
2393
|
isFullscreen: t.isFullscreen,
|
|
2347
2394
|
isCustom: e.FINAL_CONFIG.chart.tooltip.customFormat && typeof e.FINAL_CONFIG.chart.tooltip.customFormat == "function"
|
|
2348
2395
|
}, {
|
|
2349
2396
|
"tooltip-before": M(() => [
|
|
2350
|
-
|
|
2397
|
+
S(r.$slots, "tooltip-before", H(B({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2351
2398
|
]),
|
|
2352
2399
|
"tooltip-after": M(() => [
|
|
2353
|
-
|
|
2400
|
+
S(r.$slots, "tooltip-after", H(B({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2354
2401
|
]),
|
|
2355
2402
|
_: 3
|
|
2356
2403
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
2357
|
-
e.isDataset ? (
|
|
2404
|
+
e.isDataset ? (l(), D(p, {
|
|
2358
2405
|
key: 11,
|
|
2359
2406
|
hideDetails: "",
|
|
2360
2407
|
config: {
|
|
@@ -2374,44 +2421,44 @@ function Zi(i, l, o, u, t, e) {
|
|
|
2374
2421
|
f("div", {
|
|
2375
2422
|
style: L(`${t.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
2376
2423
|
}, [
|
|
2377
|
-
f("div",
|
|
2378
|
-
|
|
2424
|
+
f("div", ea, [
|
|
2425
|
+
Ee(f("input", {
|
|
2379
2426
|
type: "checkbox",
|
|
2380
|
-
"onUpdate:modelValue":
|
|
2427
|
+
"onUpdate:modelValue": s[4] || (s[4] = (a) => t.showSparklineTable = a)
|
|
2381
2428
|
}, null, 512), [
|
|
2382
|
-
[
|
|
2429
|
+
[Ye, t.showSparklineTable]
|
|
2383
2430
|
]),
|
|
2384
2431
|
f("div", {
|
|
2385
|
-
onClick:
|
|
2432
|
+
onClick: s[5] || (s[5] = (a) => t.showSparklineTable = !t.showSparklineTable),
|
|
2386
2433
|
style: { cursor: "pointer" }
|
|
2387
2434
|
}, [
|
|
2388
|
-
|
|
2435
|
+
q(O, {
|
|
2389
2436
|
name: "chartLine",
|
|
2390
2437
|
size: 20,
|
|
2391
2438
|
stroke: e.FINAL_CONFIG.chart.color
|
|
2392
2439
|
}, null, 8, ["stroke"])
|
|
2393
2440
|
])
|
|
2394
2441
|
]),
|
|
2395
|
-
t.showSparklineTable ? (
|
|
2442
|
+
t.showSparklineTable ? (l(), D(_, {
|
|
2396
2443
|
key: `sparkline_${t.segregateStep}`,
|
|
2397
2444
|
dataset: e.tableSparklineDataset,
|
|
2398
2445
|
config: e.tableSparklineConfig
|
|
2399
|
-
}, null, 8, ["dataset", "config"])) : (
|
|
2446
|
+
}, null, 8, ["dataset", "config"])) : (l(), D(C, {
|
|
2400
2447
|
key: `table_${t.tableStep}`,
|
|
2401
2448
|
colNames: e.dataTable.colNames,
|
|
2402
2449
|
head: e.dataTable.head,
|
|
2403
2450
|
body: e.dataTable.body,
|
|
2404
2451
|
config: e.dataTable.config,
|
|
2405
2452
|
title: `${e.FINAL_CONFIG.chart.title.text}${e.FINAL_CONFIG.chart.title.subtitle.text ? ` : ${e.FINAL_CONFIG.chart.title.subtitle.text}` : ""}`,
|
|
2406
|
-
onClose:
|
|
2453
|
+
onClose: s[6] || (s[6] = (a) => t.mutableConfig.showTable = !1)
|
|
2407
2454
|
}, {
|
|
2408
|
-
th: M(({ th:
|
|
2409
|
-
f("div", { innerHTML:
|
|
2455
|
+
th: M(({ th: a }) => [
|
|
2456
|
+
f("div", { innerHTML: a }, null, 8, ta)
|
|
2410
2457
|
]),
|
|
2411
|
-
td: M(({ td:
|
|
2412
|
-
|
|
2458
|
+
td: M(({ td: a }) => [
|
|
2459
|
+
qe(k(isNaN(Number(a)) ? a : e.dataLabel({
|
|
2413
2460
|
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
2414
|
-
v:
|
|
2461
|
+
v: a,
|
|
2415
2462
|
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
2416
2463
|
r: e.FINAL_CONFIG.table.rounding
|
|
2417
2464
|
})), 1)
|
|
@@ -2422,9 +2469,9 @@ function Zi(i, l, o, u, t, e) {
|
|
|
2422
2469
|
]),
|
|
2423
2470
|
_: 1
|
|
2424
2471
|
}, 8, ["config"])) : c("", !0)
|
|
2425
|
-
], 46,
|
|
2472
|
+
], 46, Je);
|
|
2426
2473
|
}
|
|
2427
|
-
const
|
|
2474
|
+
const ba = /* @__PURE__ */ Xe(Ze, [["render", ra], ["__scopeId", "data-v-a2f682ad"]]);
|
|
2428
2475
|
export {
|
|
2429
|
-
|
|
2476
|
+
ba as default
|
|
2430
2477
|
};
|