vue-data-ui 2.7.1 → 2.7.2-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-sEenfS8R.cjs → Arrow-Cuf9zUpa.cjs} +1 -1
- package/dist/{Arrow-BTKw6r9B.js → Arrow-SOQeOwmT.js} +1 -1
- package/dist/{BaseIcon-DnyvDfd_.cjs → BaseIcon-C0unoacb.cjs} +1 -1
- package/dist/{BaseIcon-DnLYMp6l.js → BaseIcon-DqYzMisq.js} +1 -1
- package/dist/{ColorPicker-9DFhTw_f.cjs → ColorPicker-DLNc3kpl.cjs} +1 -1
- package/dist/{ColorPicker-C6lNE5YG.js → ColorPicker-DyOTLjAA.js} +3 -3
- package/dist/{DataTable-CngiZztx.cjs → DataTable-ByOfBGEi.cjs} +1 -1
- package/dist/{DataTable-CqmM6dKK.js → DataTable-C_28ZqiP.js} +2 -2
- package/dist/{Legend-2egPeIm_.js → Legend-CmKaL7xe.js} +2 -2
- package/dist/{Legend-CYRB328N.cjs → Legend-mrAy7yUC.cjs} +1 -1
- package/dist/{PackageVersion-CwdFBcJ8.js → PackageVersion-39l3KkzC.js} +1 -1
- package/dist/{PackageVersion-yffL-jfv.cjs → PackageVersion-By81XV8X.cjs} +1 -1
- package/dist/{PenAndPaper--UiqgX9J.js → PenAndPaper-CmcfpltX.js} +3 -3
- package/dist/{PenAndPaper-CN2oty-x.cjs → PenAndPaper-DNbX5hR8.cjs} +1 -1
- package/dist/{Shape-BpeBdbVN.js → Shape-iIO-95sh.js} +1 -1
- package/dist/{Shape-CUqYvf42.cjs → Shape-x7U3IhoM.cjs} +1 -1
- package/dist/{Slicer-D1W5yNMr.js → Slicer-C49MotZz.js} +2 -2
- package/dist/{Slicer-BgcqkoSq.cjs → Slicer-Ct66sqV1.cjs} +1 -1
- package/dist/{Title-DIthuQxK.cjs → Title-BgVFZwZZ.cjs} +1 -1
- package/dist/{Title-D-MrSzZ9.js → Title-Co3F59jq.js} +1 -1
- package/dist/{Tooltip-D43-t32P.cjs → Tooltip-B8E9uCVm.cjs} +1 -1
- package/dist/{Tooltip-CB3FSZI5.js → Tooltip-Cr89wMKa.js} +1 -1
- package/dist/{dom-to-png-BJwSQsyy.cjs → dom-to-png-D9eujpXB.cjs} +1 -1
- package/dist/{dom-to-png-5VOUqviC.js → dom-to-png-DtBlqZMR.js} +1 -1
- package/dist/{img-DuSrtdjC.js → img-DQDP5JIH.js} +1 -1
- package/dist/{img-BfzPdY_5.cjs → img-DgRUFehB.cjs} +1 -1
- package/dist/index-BeJeDy5m.cjs +9 -0
- package/dist/{index-A6avPZLy.js → index-gC66Se26.js} +926 -810
- package/dist/{pdf-BgE_moLQ.cjs → pdf-Bu1ahAX2.cjs} +1 -1
- package/dist/{pdf-DjL_T4XI.js → pdf-lJiGVhtL.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1 -0
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useNestedProp-CcohWUPI.js → useNestedProp-BusTOV-6.js} +1 -1
- package/dist/{useNestedProp-BPS6WHYi.cjs → useNestedProp-CF-iHhIC.cjs} +1 -1
- package/dist/{usePrinter-Bn2DXY9B.cjs → usePrinter-Bz_kd3vb.cjs} +1 -1
- package/dist/{usePrinter-B6swu4OY.js → usePrinter-KMFl0n0s.js} +3 -3
- package/dist/{vue-data-ui-B80lDfFi.js → vue-data-ui-BApY_erH.js} +60 -60
- package/dist/{vue-data-ui-BsseA1is.cjs → vue-data-ui-Bak-lr4I.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +17 -17
- package/dist/{vue-ui-3d-bar-CcFHL1qI.js → vue-ui-3d-bar-BWjU0K3_.js} +9 -9
- package/dist/{vue-ui-3d-bar-DcrMP_O7.cjs → vue-ui-3d-bar-CmbTiJVx.cjs} +1 -1
- package/dist/{vue-ui-accordion-CGoz8eg6.cjs → vue-ui-accordion-CZBJSHT_.cjs} +1 -1
- package/dist/{vue-ui-accordion-B_xjSc0r.js → vue-ui-accordion-j2beIma_.js} +3 -3
- package/dist/{vue-ui-age-pyramid-AXVyoK6L.js → vue-ui-age-pyramid-Cmw4WVB4.js} +10 -10
- package/dist/{vue-ui-age-pyramid-BCNi5bGZ.cjs → vue-ui-age-pyramid-Sv-HbbDJ.cjs} +1 -1
- package/dist/{vue-ui-annotator-BtNdaDFA.cjs → vue-ui-annotator-BVv5XkoE.cjs} +1 -1
- package/dist/{vue-ui-annotator-BXvnhWt_.js → vue-ui-annotator-CKmqZjUD.js} +2 -2
- package/dist/{vue-ui-bullet-DRXo5EpT.js → vue-ui-bullet-U_yJjO0m.js} +8 -8
- package/dist/{vue-ui-bullet-CQxs2TaZ.cjs → vue-ui-bullet-vcmTY4AX.cjs} +1 -1
- package/dist/{vue-ui-candlestick-3nGxvy8S.cjs → vue-ui-candlestick-DQT-8PRz.cjs} +1 -1
- package/dist/{vue-ui-candlestick-BpqYCJVJ.js → vue-ui-candlestick-DhdlFIQE.js} +11 -11
- package/dist/{vue-ui-carousel-table-BYXPK4gh.cjs → vue-ui-carousel-table-BhC5cEe3.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-YrKkEqX7.js → vue-ui-carousel-table-Ej7qzKkp.js} +4 -4
- package/dist/{vue-ui-chestnut-FQoFMnGd.cjs → vue-ui-chestnut-BzNHXzDj.cjs} +2 -2
- package/dist/{vue-ui-chestnut-C25jWRRE.js → vue-ui-chestnut-L0bS5jtX.js} +14 -14
- package/dist/{vue-ui-circle-pack-CD8-rMNk.cjs → vue-ui-circle-pack-CVLJs0XP.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-PLHydEfP.js → vue-ui-circle-pack-DwCzeO3L.js} +9 -9
- package/dist/{vue-ui-cursor-nwZ7x8lx.cjs → vue-ui-cursor-0mZP5nBc.cjs} +1 -1
- package/dist/{vue-ui-cursor-CRb53VBn.js → vue-ui-cursor-DwHdXwLS.js} +2 -2
- package/dist/{vue-ui-dashboard-Bh3_EFPN.cjs → vue-ui-dashboard-CegApY8_.cjs} +1 -1
- package/dist/{vue-ui-dashboard-5frkuD5u.js → vue-ui-dashboard-DILmOchy.js} +3 -3
- package/dist/{vue-ui-digits-CDviNXaL.js → vue-ui-digits-Dbwzk-sl.js} +2 -2
- package/dist/{vue-ui-digits-DoTiNrVN.cjs → vue-ui-digits-me8Nky0A.cjs} +1 -1
- package/dist/{vue-ui-donut-CNNRNtzQ.js → vue-ui-donut-DwE-iZSV.js} +12 -12
- package/dist/{vue-ui-donut-BcszyS6r.cjs → vue-ui-donut-FoRYusUX.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-DfPyKT8R.cjs → vue-ui-donut-evolution-BIK2yfIJ.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-CHik7Z_g.js → vue-ui-donut-evolution-DhFABvEv.js} +11 -11
- package/dist/{vue-ui-dumbbell-D2UJtygq.cjs → vue-ui-dumbbell-CL15d-aQ.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-CgwlIofy.js → vue-ui-dumbbell-Cqq4iV6-.js} +10 -10
- package/dist/{vue-ui-flow-rDb1-sH0.js → vue-ui-flow-CU-orj9I.js} +9 -9
- package/dist/{vue-ui-flow-D6JFBrIX.cjs → vue-ui-flow-N825fjRf.cjs} +1 -1
- package/dist/{vue-ui-funnel-BY0tWmrS.cjs → vue-ui-funnel-B6XMYl89.cjs} +1 -1
- package/dist/{vue-ui-funnel-B6bLvPa_.js → vue-ui-funnel-DQmQmdNV.js} +9 -9
- package/dist/{vue-ui-galaxy-DckvTL3q.js → vue-ui-galaxy-nqyCbQ9j.js} +11 -11
- package/dist/{vue-ui-galaxy-B_52sAx2.cjs → vue-ui-galaxy-p-sbDnSY.cjs} +1 -1
- package/dist/{vue-ui-gauge-C2LiUQBN.js → vue-ui-gauge-BV3CJfqe.js} +7 -7
- package/dist/{vue-ui-gauge-Cs7mUhqe.cjs → vue-ui-gauge-DsZFk8T_.cjs} +1 -1
- package/dist/{vue-ui-gizmo-WAsThdrY.js → vue-ui-gizmo-CJwSAsxs.js} +3 -3
- package/dist/{vue-ui-gizmo-BpzuY03-.cjs → vue-ui-gizmo-CNRAH2zT.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DJB3RODU.js → vue-ui-heatmap-B1s7KejC.js} +10 -10
- package/dist/{vue-ui-heatmap-CGK5-uSo.cjs → vue-ui-heatmap-VXgeMOwT.cjs} +1 -1
- package/dist/{vue-ui-history-plot-CZCGVMtm.cjs → vue-ui-history-plot-JmeGiR--.cjs} +1 -1
- package/dist/{vue-ui-history-plot-UwqNF7IY.js → vue-ui-history-plot-z_KFt5z_.js} +11 -11
- package/dist/{vue-ui-kpi-DGwMrY-1.js → vue-ui-kpi-DabR5K70.js} +3 -3
- package/dist/{vue-ui-kpi-COSK1X00.cjs → vue-ui-kpi-FaGp6_XP.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CiDr-Ata.cjs → vue-ui-mini-loader-_plxZxma.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-wC1Se-5k.js → vue-ui-mini-loader-w-BmywLJ.js} +2 -2
- package/dist/{vue-ui-molecule-R-yZGvaP.cjs → vue-ui-molecule-3ClCLk7L.cjs} +1 -1
- package/dist/{vue-ui-molecule-DB8vn7Ud.js → vue-ui-molecule-aiWG--to.js} +11 -11
- package/dist/{vue-ui-mood-radar-B4V2v62P.cjs → vue-ui-mood-radar-CO5sPVVG.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DeLXvSPU.js → vue-ui-mood-radar-DwxCn06q.js} +11 -11
- package/dist/{vue-ui-nested-donuts-CsvNzTz6.cjs → vue-ui-nested-donuts-D0nALasd.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-PgGg2Jah.js → vue-ui-nested-donuts-ONgAaLY-.js} +11 -11
- package/dist/{vue-ui-onion-DCHNA84o.cjs → vue-ui-onion-CBqx4q4k.cjs} +1 -1
- package/dist/{vue-ui-onion-DZAkMkto.js → vue-ui-onion-DjoQuBo8.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-Bxjxz4LI.js → vue-ui-parallel-coordinate-plot-DWGVzaHE.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-Drm4BFOT.cjs → vue-ui-parallel-coordinate-plot-uNCmnSvz.cjs} +1 -1
- package/dist/{vue-ui-quadrant-D5anVEqh.cjs → vue-ui-quadrant-BOkyMgCm.cjs} +1 -1
- package/dist/{vue-ui-quadrant-nheekDou.js → vue-ui-quadrant-CgiD9c7i.js} +12 -12
- package/dist/{vue-ui-quick-chart-BpQr6koy.js → vue-ui-quick-chart-5NiRxtpD.js} +9 -9
- package/dist/{vue-ui-quick-chart-2-oPKc1z.cjs → vue-ui-quick-chart-BRp_bNso.cjs} +1 -1
- package/dist/{vue-ui-radar-Crx4uENB.cjs → vue-ui-radar-BpicgiWF.cjs} +1 -1
- package/dist/{vue-ui-radar-BH3cHleE.js → vue-ui-radar-CfKAy0nI.js} +12 -12
- package/dist/{vue-ui-rating-lZe0UltX.js → vue-ui-rating-CbZvsZNv.js} +2 -2
- package/dist/{vue-ui-rating-CHbI6v-k.cjs → vue-ui-rating-yiM_5H0W.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-DMuA1Jqp.cjs → vue-ui-relation-circle-Dg6rdyGP.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-D3dCS2lC.js → vue-ui-relation-circle-RRK2jhHr.js} +7 -7
- package/dist/{vue-ui-rings-CCePZEmj.cjs → vue-ui-rings-A49lyv-J.cjs} +1 -1
- package/dist/{vue-ui-rings-CL5eq_lr.js → vue-ui-rings-CiMKMEpp.js} +12 -12
- package/dist/{vue-ui-scatter-DhWpisoX.js → vue-ui-scatter-9PFXuvoo.js} +12 -12
- package/dist/{vue-ui-scatter-DrWHtQ7A.cjs → vue-ui-scatter-C_jHsy8M.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CDtUy7-2.js → vue-ui-skeleton-7Zfds6H1.js} +3 -3
- package/dist/{vue-ui-skeleton-CyD0WfiB.cjs → vue-ui-skeleton-KW-jcPRN.cjs} +1 -1
- package/dist/{vue-ui-smiley-CYAJ1Yz6.cjs → vue-ui-smiley-BNQlshyY.cjs} +1 -1
- package/dist/{vue-ui-smiley-CxC_mXgi.js → vue-ui-smiley-D0jhMBUh.js} +2 -2
- package/dist/{vue-ui-spark-trend-DqJoZswk.cjs → vue-ui-spark-trend-CLm12POW.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-W6ET0LN0.js → vue-ui-spark-trend-D8nDY0fS.js} +5 -5
- package/dist/{vue-ui-sparkbar-BaL4aiR2.cjs → vue-ui-sparkbar-ChEbpWYC.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DFk4vX4T.js → vue-ui-sparkbar-wKlwMCph.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DaCbYvsy.js → vue-ui-sparkgauge-CvhIe_mP.js} +4 -4
- package/dist/{vue-ui-sparkgauge-C0XL80YM.cjs → vue-ui-sparkgauge-DG824sGI.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-yHLpPhmY.cjs → vue-ui-sparkhistogram-B8k8a538.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-DO4EtsIl.js → vue-ui-sparkhistogram-CVmbTFTc.js} +5 -5
- package/dist/{vue-ui-sparkline-_3p0ZMii.cjs → vue-ui-sparkline-7wnWuXDQ.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BT2uzkRB.js → vue-ui-sparkline-CtqAbSzZ.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-D87hGVto.cjs → vue-ui-sparkstackbar-57SONMGP.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-CvPROcMS.js → vue-ui-sparkstackbar-DfwEeUC5.js} +5 -5
- package/dist/{vue-ui-stackbar-pZS4uclE.cjs → vue-ui-stackbar--0FZ_eBi.cjs} +1 -1
- package/dist/{vue-ui-stackbar-CF1ZciKz.js → vue-ui-stackbar-CGSVPiPx.js} +13 -13
- package/dist/{vue-ui-strip-plot-DqPSiGXm.cjs → vue-ui-strip-plot-C_ggDAQ-.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-DbJmyFzD.js → vue-ui-strip-plot-fJFkn8_0.js} +11 -11
- package/dist/{vue-ui-table-BvlGS9xl.js → vue-ui-table-CliL2Wsp.js} +1 -1
- package/dist/{vue-ui-table-_lP4IT01.cjs → vue-ui-table-Das3959J.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DVZ4FKcO.cjs → vue-ui-table-heatmap-C28ozf2S.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-I3d1FZkm.js → vue-ui-table-heatmap-ZsJMMGpG.js} +4 -4
- package/dist/{vue-ui-table-sparkline-DxgxuYn1.cjs → vue-ui-table-sparkline-0i9FAXug.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-KTwO8xf0.js → vue-ui-table-sparkline-CrQNShdH.js} +5 -5
- package/dist/{vue-ui-thermometer-CacmwD1Y.js → vue-ui-thermometer-BaGL6WSb.js} +7 -7
- package/dist/{vue-ui-thermometer-DbOYeE4L.cjs → vue-ui-thermometer-h0rymM2v.cjs} +1 -1
- package/dist/{vue-ui-timer-CE_E850f.cjs → vue-ui-timer-CFtgJ_Vi.cjs} +1 -1
- package/dist/{vue-ui-timer-CPDwkxN8.js → vue-ui-timer-Nk94fV-n.js} +5 -5
- package/dist/{vue-ui-tiremarks-CjEVWJs3.cjs → vue-ui-tiremarks-Cj8-XGcp.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-C0_iMDa_.js → vue-ui-tiremarks-zYgdq_99.js} +7 -7
- package/dist/{vue-ui-treemap-DwXyhU2O.js → vue-ui-treemap-CAxPcxn-.js} +12 -12
- package/dist/{vue-ui-treemap-Cz8zJOFx.cjs → vue-ui-treemap-CybL6mVf.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-CElDAKiI.cjs → vue-ui-vertical-bar-D4IkwvAB.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-RbZ1m7aH.js → vue-ui-vertical-bar-Di3FBkwJ.js} +12 -12
- package/dist/{vue-ui-waffle-CqnW-IzI.cjs → vue-ui-waffle-7otLUrER.cjs} +1 -1
- package/dist/{vue-ui-waffle-D2Olsiof.js → vue-ui-waffle-DBJAQsEf.js} +12 -12
- package/dist/{vue-ui-wheel-DJbSOnmZ.js → vue-ui-wheel-BTZEr2Vs.js} +7 -7
- package/dist/{vue-ui-wheel-DDllncND.cjs → vue-ui-wheel-BUJXtmeP.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-Cw03GidN.cjs → vue-ui-word-cloud-BEaRWIu-.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-BVjlvTWA.js → vue-ui-word-cloud-DBCVUkLM.js} +10 -10
- package/dist/vue-ui-xy-DbN93Pcf.cjs +3 -0
- package/dist/{vue-ui-xy-CvM6YBcJ.js → vue-ui-xy-aKaGgYGL.js} +769 -758
- package/dist/{vue-ui-xy-canvas-BwtGqNbz.cjs → vue-ui-xy-canvas-CF_lqLg-.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-CPwKMu2P.js → vue-ui-xy-canvas-CVQ__d4u.js} +12 -12
- package/package.json +1 -1
- package/dist/index-BkB2NdNK.cjs +0 -9
- package/dist/vue-ui-xy-CpTEJDag.cjs +0 -3
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { Q as H, Y as q, a7 as
|
|
2
|
-
import { D as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { u as
|
|
5
|
-
import { U as
|
|
6
|
-
import { _ as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { S as
|
|
11
|
-
import
|
|
12
|
-
import { u as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { P as
|
|
15
|
-
import { resolveComponent as R, createElementBlock as i, openBlock as r, normalizeStyle as
|
|
16
|
-
import { _ as
|
|
17
|
-
const
|
|
1
|
+
import { Q as H, Y as q, a7 as $, a8 as U, a9 as ee, aa as te, ab as le, ac as ae, ad as re, c as X, A as ie, F as se, w as ne, s as ce, o as oe, $ as he, ae as ue, x as de, C as ge, y as fe, a5 as Ie, e as Ne, r as me, f as Z, af as xe, S as be, T as Fe, q as _e, b as ye, z as Ae, d as Le, ag as Ce, v as Se, ah as ke, a3 as we, ai as Oe, i as Ge, G as ve, L as pe, u as ze, p as Me, B as Te, a as Pe, t as Ve } from "./index-gC66Se26.js";
|
|
2
|
+
import { D as Re } from "./DataTable-C_28ZqiP.js";
|
|
3
|
+
import { _ as He } from "./Title-Co3F59jq.js";
|
|
4
|
+
import { u as De, _ as We } from "./Tooltip-Cr89wMKa.js";
|
|
5
|
+
import { U as Be } from "./usePrinter-KMFl0n0s.js";
|
|
6
|
+
import { _ as Ee } from "./Shape-iIO-95sh.js";
|
|
7
|
+
import Ye from "./BaseIcon-DqYzMisq.js";
|
|
8
|
+
import qe from "./vue-ui-table-sparkline-CrQNShdH.js";
|
|
9
|
+
import Xe from "./vue-ui-skeleton-7Zfds6H1.js";
|
|
10
|
+
import { S as Ue } from "./Slicer-C49MotZz.js";
|
|
11
|
+
import Ze from "./vue-ui-accordion-j2beIma_.js";
|
|
12
|
+
import { u as J } from "./useNestedProp-BusTOV-6.js";
|
|
13
|
+
import { _ as Je } from "./PackageVersion-39l3KkzC.js";
|
|
14
|
+
import { P as Qe } from "./PenAndPaper-CmcfpltX.js";
|
|
15
|
+
import { resolveComponent as R, createElementBlock as i, openBlock as r, normalizeStyle as b, normalizeClass as W, createBlock as D, createCommentVNode as d, createVNode as Y, createSlots as Ke, withCtx as V, renderSlot as S, normalizeProps as B, guardReactiveProps as E, createElementVNode as f, createTextVNode as Q, Fragment as u, renderList as I, toDisplayString as P, mergeProps as K, withDirectives as je, vModelCheckbox as $e } from "vue";
|
|
16
|
+
import { _ as et } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
+
const tt = X(), lt = {
|
|
18
18
|
name: "vue-ui-xy",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -31,18 +31,18 @@ const Je = X(), Qe = {
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
components: {
|
|
34
|
-
DataTable:
|
|
35
|
-
Shape:
|
|
36
|
-
Title:
|
|
37
|
-
Tooltip:
|
|
38
|
-
UserOptions:
|
|
39
|
-
BaseIcon:
|
|
40
|
-
TableSparkline:
|
|
41
|
-
Skeleton:
|
|
42
|
-
Slicer:
|
|
43
|
-
Accordion:
|
|
44
|
-
PackageVersion:
|
|
45
|
-
PenAndPaper:
|
|
34
|
+
DataTable: Re,
|
|
35
|
+
Shape: Ee,
|
|
36
|
+
Title: He,
|
|
37
|
+
Tooltip: We,
|
|
38
|
+
UserOptions: Be,
|
|
39
|
+
BaseIcon: Ye,
|
|
40
|
+
TableSparkline: qe,
|
|
41
|
+
Skeleton: Xe,
|
|
42
|
+
Slicer: Ue,
|
|
43
|
+
Accordion: Ze,
|
|
44
|
+
PackageVersion: Je,
|
|
45
|
+
PenAndPaper: Qe
|
|
46
46
|
},
|
|
47
47
|
data() {
|
|
48
48
|
this.dataset.forEach((g, l) => {
|
|
@@ -53,20 +53,20 @@ const Je = X(), Qe = {
|
|
|
53
53
|
index: l
|
|
54
54
|
});
|
|
55
55
|
});
|
|
56
|
-
const t = this.config.downsample && this.config.downsample.threshold ? this.config.downsample.threshold : 500,
|
|
56
|
+
const t = this.config.downsample && this.config.downsample.threshold ? this.config.downsample.threshold : 500, n = Math.max(...this.dataset.map((g) => this.largestTriangleThreeBucketsArray({ data: g.series, threshold: t }).length)), o = {
|
|
57
57
|
start: 0,
|
|
58
|
-
end:
|
|
58
|
+
end: n
|
|
59
59
|
};
|
|
60
60
|
return {
|
|
61
|
-
themePalettes:
|
|
62
|
-
themes:
|
|
61
|
+
themePalettes: Ve,
|
|
62
|
+
themes: Pe,
|
|
63
63
|
slicerStep: 0,
|
|
64
64
|
selectedScale: null,
|
|
65
65
|
CTX: null,
|
|
66
66
|
CANVAS: null,
|
|
67
|
-
opacity:
|
|
67
|
+
opacity: Te,
|
|
68
68
|
useSafeValues: !0,
|
|
69
|
-
palette:
|
|
69
|
+
palette: Me,
|
|
70
70
|
height: 600,
|
|
71
71
|
width: 1e3,
|
|
72
72
|
viewBox: "0 0 1000 600",
|
|
@@ -106,10 +106,10 @@ const Je = X(), Qe = {
|
|
|
106
106
|
titleStep: 0,
|
|
107
107
|
slicer: o,
|
|
108
108
|
__to__: null,
|
|
109
|
-
maxX:
|
|
109
|
+
maxX: n,
|
|
110
110
|
showSparklineTable: !0,
|
|
111
111
|
segregateStep: 0,
|
|
112
|
-
sliderId:
|
|
112
|
+
sliderId: tt,
|
|
113
113
|
fontSizes: {
|
|
114
114
|
xAxis: 18,
|
|
115
115
|
yAxis: 12,
|
|
@@ -130,7 +130,7 @@ const Je = X(), Qe = {
|
|
|
130
130
|
},
|
|
131
131
|
watch: {
|
|
132
132
|
dataset: {
|
|
133
|
-
handler(t,
|
|
133
|
+
handler(t, n) {
|
|
134
134
|
this.maxX = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({
|
|
135
135
|
data: o.series,
|
|
136
136
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
@@ -142,7 +142,7 @@ const Je = X(), Qe = {
|
|
|
142
142
|
deep: !0
|
|
143
143
|
},
|
|
144
144
|
config: {
|
|
145
|
-
handler(t,
|
|
145
|
+
handler(t, n) {
|
|
146
146
|
this.FINAL_CONFIG = this.prepareConfig(), this.prepareChart(), this.titleStep += 1, this.tableStep += 1, this.mutableConfig = {
|
|
147
147
|
dataLabels: {
|
|
148
148
|
show: !0
|
|
@@ -158,8 +158,8 @@ const Je = X(), Qe = {
|
|
|
158
158
|
},
|
|
159
159
|
computed: {
|
|
160
160
|
chartAriaLabel() {
|
|
161
|
-
const t = this.FINAL_CONFIG.chart.title.text || "Chart visualization",
|
|
162
|
-
return `${t}. ${
|
|
161
|
+
const t = this.FINAL_CONFIG.chart.title.text || "Chart visualization", n = this.FINAL_CONFIG.chart.title.subtitle.text || "";
|
|
162
|
+
return `${t}. ${n}`;
|
|
163
163
|
},
|
|
164
164
|
optimize() {
|
|
165
165
|
return {
|
|
@@ -171,9 +171,9 @@ const Je = X(), Qe = {
|
|
|
171
171
|
},
|
|
172
172
|
minimap() {
|
|
173
173
|
if (!this.FINAL_CONFIG.chart.zoom.minimap.show) return [];
|
|
174
|
-
const t = this.datasetWithIds.filter((l) => !this.segregatedSeries.includes(l.id)),
|
|
175
|
-
for (let l = 0; l <
|
|
176
|
-
o.push(t.map((e) => e.series[l] || 0).reduce((e,
|
|
174
|
+
const t = this.datasetWithIds.filter((l) => !this.segregatedSeries.includes(l.id)), n = Math.max(...t.map((l) => l.series.length)), o = [];
|
|
175
|
+
for (let l = 0; l < n; l += 1)
|
|
176
|
+
o.push(t.map((e) => e.series[l] || 0).reduce((e, _) => (e || 0) + (_ || 0), 0));
|
|
177
177
|
const g = Math.min(...o);
|
|
178
178
|
return o.map((l) => l + (g < 0 ? Math.abs(g) : 0));
|
|
179
179
|
},
|
|
@@ -199,7 +199,7 @@ const Je = X(), Qe = {
|
|
|
199
199
|
yOffset: e.yOffset || 0,
|
|
200
200
|
individualHeight: e.individualHeight || this.drawingArea.height,
|
|
201
201
|
autoScaleYLabels: e.autoScaleYLabels
|
|
202
|
-
})),
|
|
202
|
+
})), n = this.barSet.map((e) => ({
|
|
203
203
|
name: e.name,
|
|
204
204
|
color: e.color,
|
|
205
205
|
scale: e.individualScale,
|
|
@@ -222,8 +222,8 @@ const Je = X(), Qe = {
|
|
|
222
222
|
id: e.id,
|
|
223
223
|
yOffset: e.yOffset || 0,
|
|
224
224
|
individualHeight: e.individualHeight || this.drawingArea.height
|
|
225
|
-
})), g = this.mutableConfig.useIndividualScale && !this.mutableConfig.isStacked ? Object.values(this.scaleGroups) : [...t, ...
|
|
226
|
-
return g.flatMap((e,
|
|
225
|
+
})), g = this.mutableConfig.useIndividualScale && !this.mutableConfig.isStacked ? Object.values(this.scaleGroups) : [...t, ...n, ...o], l = g.flatMap((e) => e).length;
|
|
226
|
+
return g.flatMap((e, _) => ({
|
|
227
227
|
unique: e.unique,
|
|
228
228
|
id: e.id,
|
|
229
229
|
groupId: e.groupId,
|
|
@@ -233,10 +233,10 @@ const Je = X(), Qe = {
|
|
|
233
233
|
scale: e.scale,
|
|
234
234
|
yOffset: e.yOffset,
|
|
235
235
|
individualHeight: e.individualHeight,
|
|
236
|
-
x: this.mutableConfig.isStacked ? this.drawingArea.left : this.drawingArea.left / l * (
|
|
237
|
-
yLabels: e.scaleYLabels || e.scale.ticks.map((
|
|
238
|
-
y:
|
|
239
|
-
value:
|
|
236
|
+
x: this.mutableConfig.isStacked ? this.drawingArea.left : this.drawingArea.left / l * (_ + 1),
|
|
237
|
+
yLabels: e.scaleYLabels || e.scale.ticks.map((x) => ({
|
|
238
|
+
y: x >= 0 ? e.zero - e.individualHeight * (x / e.max) : e.zero + e.individualHeight * Math.abs(x) / e.max,
|
|
239
|
+
value: x
|
|
240
240
|
}))
|
|
241
241
|
}));
|
|
242
242
|
},
|
|
@@ -260,9 +260,9 @@ const Je = X(), Qe = {
|
|
|
260
260
|
},
|
|
261
261
|
highlightAreas() {
|
|
262
262
|
if (Array.isArray(this.FINAL_CONFIG.chart.highlightArea))
|
|
263
|
-
return this.FINAL_CONFIG.chart.highlightArea.map((
|
|
264
|
-
...
|
|
265
|
-
span:
|
|
263
|
+
return this.FINAL_CONFIG.chart.highlightArea.map((n) => ({
|
|
264
|
+
...n,
|
|
265
|
+
span: n.from === n.to ? 1 : n.to < n.from ? 0 : n.to - n.from + 1
|
|
266
266
|
}));
|
|
267
267
|
const t = this.FINAL_CONFIG.chart.highlightArea;
|
|
268
268
|
return [{ ...t, span: t.from === t.to ? 1 : t.to < t.from ? 0 : t.to - t.from + 1 }];
|
|
@@ -277,33 +277,33 @@ const Je = X(), Qe = {
|
|
|
277
277
|
return this.niceScale.max + this.relativeZero;
|
|
278
278
|
},
|
|
279
279
|
datasetWithIds() {
|
|
280
|
-
return this.useSafeValues ? this.dataset.map((t,
|
|
280
|
+
return this.useSafeValues ? this.dataset.map((t, n) => ({
|
|
281
281
|
...t,
|
|
282
282
|
series: this.largestTriangleThreeBucketsArray({
|
|
283
283
|
data: t.series,
|
|
284
284
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
285
285
|
}),
|
|
286
|
-
id: `uniqueId_${
|
|
286
|
+
id: `uniqueId_${n}`
|
|
287
287
|
})) : this.dataset;
|
|
288
288
|
},
|
|
289
289
|
safeDataset() {
|
|
290
|
-
return this.useSafeValues ? this.dataset.map((t,
|
|
290
|
+
return this.useSafeValues ? this.dataset.map((t, n) => {
|
|
291
291
|
const o = this.largestTriangleThreeBucketsArray({
|
|
292
292
|
data: t.series,
|
|
293
293
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
294
|
-
}), g = `uniqueId_${
|
|
294
|
+
}), g = `uniqueId_${n}`;
|
|
295
295
|
return {
|
|
296
296
|
...t,
|
|
297
|
-
slotAbsoluteIndex:
|
|
297
|
+
slotAbsoluteIndex: n,
|
|
298
298
|
series: o.map((l) => this.isSafeValue(l) ? l : null).slice(this.slicer.start, this.slicer.end),
|
|
299
|
-
color: this.convertColorToHex(t.color ? t.color : this.customPalette[
|
|
299
|
+
color: this.convertColorToHex(t.color ? t.color : this.customPalette[n] ? this.customPalette[n] : this.palette[n]),
|
|
300
300
|
id: g,
|
|
301
301
|
scaleLabel: t.scaleLabel || g
|
|
302
302
|
};
|
|
303
303
|
}) : this.dataset;
|
|
304
304
|
},
|
|
305
305
|
relativeDataset() {
|
|
306
|
-
return this.safeDataset.map((t,
|
|
306
|
+
return this.safeDataset.map((t, n) => ({
|
|
307
307
|
...t,
|
|
308
308
|
series: t.series.map((o) => o + this.relativeZero),
|
|
309
309
|
absoluteValues: t.series
|
|
@@ -311,12 +311,12 @@ const Je = X(), Qe = {
|
|
|
311
311
|
},
|
|
312
312
|
tableSparklineDataset() {
|
|
313
313
|
return this.relativeDataset.map((t) => {
|
|
314
|
-
const
|
|
314
|
+
const n = t.absoluteValues.map((o) => [void 0, null].includes(o) ? 0 : o);
|
|
315
315
|
return {
|
|
316
316
|
id: t.id,
|
|
317
317
|
name: t.name,
|
|
318
318
|
color: t.color,
|
|
319
|
-
values: this.fillArray(this.maxSeries,
|
|
319
|
+
values: this.fillArray(this.maxSeries, n)
|
|
320
320
|
};
|
|
321
321
|
});
|
|
322
322
|
},
|
|
@@ -347,8 +347,8 @@ const Je = X(), Qe = {
|
|
|
347
347
|
};
|
|
348
348
|
},
|
|
349
349
|
absoluteDataset() {
|
|
350
|
-
return this.safeDataset.map((t,
|
|
351
|
-
absoluteIndex:
|
|
350
|
+
return this.safeDataset.map((t, n) => ({
|
|
351
|
+
absoluteIndex: n,
|
|
352
352
|
...t,
|
|
353
353
|
series: t.series.map((o) => o + this.relativeZero),
|
|
354
354
|
absoluteValues: t.series,
|
|
@@ -363,77 +363,77 @@ const Je = X(), Qe = {
|
|
|
363
363
|
return this.assignStackRatios(this.absoluteDataset.filter((t) => !this.segregatedSeries.includes(t.id)));
|
|
364
364
|
},
|
|
365
365
|
scaleGroups() {
|
|
366
|
-
const t = Object.groupBy(this.activeSeriesWithStackRatios, (o) => o.scaleLabel),
|
|
366
|
+
const t = Object.groupBy(this.activeSeriesWithStackRatios, (o) => o.scaleLabel), n = {};
|
|
367
367
|
for (const [o, g] of Object.entries(t)) {
|
|
368
368
|
const l = g.flatMap((e) => e.absoluteValues);
|
|
369
|
-
|
|
369
|
+
n[o] = {
|
|
370
370
|
min: Math.min(...l) || 0,
|
|
371
371
|
max: Math.max(...l) || 1,
|
|
372
372
|
groupId: `scale_group_${this.createUid()}`
|
|
373
373
|
};
|
|
374
374
|
}
|
|
375
|
-
return
|
|
375
|
+
return n;
|
|
376
376
|
},
|
|
377
377
|
barSet() {
|
|
378
|
-
return this.activeSeriesWithStackRatios.filter((t) => t.type === "bar").map((t,
|
|
378
|
+
return this.activeSeriesWithStackRatios.filter((t) => t.type === "bar").map((t, n) => {
|
|
379
379
|
this.checkAutoScaleError(t);
|
|
380
380
|
const o = this.scaleGroups[t.scaleLabel].min, g = this.scaleGroups[t.scaleLabel].max;
|
|
381
|
-
t.absoluteValues.filter((
|
|
381
|
+
t.absoluteValues.filter((A) => ![null, void 0].includes(A)).map((A) => (A - o) / (g - o));
|
|
382
382
|
const l = {
|
|
383
383
|
valueMin: o,
|
|
384
384
|
valueMax: g < 0 ? 0 : g
|
|
385
385
|
}, e = {
|
|
386
386
|
max: t.scaleMax || Math.max(...t.absoluteValues) || 1,
|
|
387
|
-
min: t.scaleMin || Math.min(...t.absoluteValues.filter((
|
|
388
|
-
},
|
|
389
|
-
const
|
|
387
|
+
min: t.scaleMin || Math.min(...t.absoluteValues.filter((A) => ![void 0, null].includes(A))) > 0 ? 0 : Math.min(...t.absoluteValues.filter((A) => ![null, void 0].includes(A)))
|
|
388
|
+
}, _ = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, x = 1.0000001, m = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * x : e.max, _), L = this.calculateNiceScaleWithExactExtremes(l.valueMin, l.valueMax === l.valueMin ? l.valueMax * x : l.valueMax, _), v = m.min >= 0 ? 0 : Math.abs(m.min), O = 0, p = m.max + v, k = L.max + Math.abs(O), F = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, C = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, G = this.drawingArea.bottom - F - C * v / p, z = this.drawingArea.bottom - F - C * O / k, a = this.absoluteDataset.filter((A) => A.type === "bar").filter((A) => !this.segregatedSeries.includes(A.id)).length, c = t.series.map((A, T) => {
|
|
389
|
+
const N = this.mutableConfig.useIndividualScale ? (t.absoluteValues[T] + v) / p : this.ratioToMax(A), w = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * T : this.drawingArea.left + this.slot.bar * n + this.slot.bar * T * a - this.barSlot / 2 - n * this.barPeriodGap;
|
|
390
390
|
return {
|
|
391
|
-
yOffset: this.checkNaN(
|
|
391
|
+
yOffset: this.checkNaN(F),
|
|
392
392
|
individualHeight: this.checkNaN(C),
|
|
393
|
-
x: this.checkNaN(
|
|
394
|
-
y: this.drawingArea.bottom -
|
|
395
|
-
value: t.absoluteValues[
|
|
396
|
-
zeroPosition: this.checkNaN(
|
|
397
|
-
individualMax: this.checkNaN(
|
|
398
|
-
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[
|
|
393
|
+
x: this.checkNaN(w),
|
|
394
|
+
y: this.drawingArea.bottom - F - C * N,
|
|
395
|
+
value: t.absoluteValues[T],
|
|
396
|
+
zeroPosition: this.checkNaN(G),
|
|
397
|
+
individualMax: this.checkNaN(p),
|
|
398
|
+
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[T] || ""
|
|
399
399
|
};
|
|
400
|
-
}),
|
|
401
|
-
const
|
|
400
|
+
}), s = t.absoluteValues.map((A) => L.min >= 0 ? (A - Math.abs(L.min)) / (L.max - Math.abs(L.min)) : (A + Math.abs(L.min)) / (L.max + Math.abs(L.min))), h = t.series.map((A, T) => {
|
|
401
|
+
const N = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * T : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar * n + this.slot.bar * T * this.absoluteDataset.filter((w) => w.type === "bar").filter((w) => !this.segregatedSeries.includes(w.id)).length;
|
|
402
402
|
return {
|
|
403
|
-
yOffset: this.checkNaN(
|
|
403
|
+
yOffset: this.checkNaN(F),
|
|
404
404
|
individualHeight: this.checkNaN(C),
|
|
405
|
-
x: this.checkNaN(
|
|
406
|
-
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(
|
|
407
|
-
value: t.absoluteValues[
|
|
408
|
-
zeroPosition: this.checkNaN(
|
|
409
|
-
individualMax: this.checkNaN(
|
|
410
|
-
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[
|
|
405
|
+
x: this.checkNaN(N),
|
|
406
|
+
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(F) - (this.checkNaN(C) * s[T] || 0)),
|
|
407
|
+
value: t.absoluteValues[T],
|
|
408
|
+
zeroPosition: this.checkNaN(G),
|
|
409
|
+
individualMax: this.checkNaN(p),
|
|
410
|
+
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[T] || ""
|
|
411
411
|
};
|
|
412
|
-
}),
|
|
413
|
-
y:
|
|
414
|
-
value:
|
|
412
|
+
}), y = m.ticks.map((A) => ({
|
|
413
|
+
y: A >= 0 ? G - C * (A / p) : G + C * Math.abs(A) / p,
|
|
414
|
+
value: A,
|
|
415
415
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
416
416
|
suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
417
417
|
datapoint: t
|
|
418
|
-
})), M = L.ticks.map((
|
|
419
|
-
const
|
|
418
|
+
})), M = L.ticks.map((A) => {
|
|
419
|
+
const T = (A - L.min) / (L.max - L.min);
|
|
420
420
|
return {
|
|
421
|
-
y:
|
|
422
|
-
value:
|
|
421
|
+
y: A >= 0 ? z - C * T : z + C * T,
|
|
422
|
+
value: A,
|
|
423
423
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
424
424
|
suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
425
425
|
datapoint: t
|
|
426
426
|
};
|
|
427
427
|
});
|
|
428
|
-
return this.scaleGroups[t.scaleLabel].name = t.name, this.scaleGroups[t.scaleLabel].groupName = t.scaleLabel, this.scaleGroups[t.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || t.color, this.scaleGroups[t.scaleLabel].color = t.color, this.scaleGroups[t.scaleLabel].scaleYLabels = t.autoScaling ? M :
|
|
428
|
+
return this.scaleGroups[t.scaleLabel].name = t.name, this.scaleGroups[t.scaleLabel].groupName = t.scaleLabel, this.scaleGroups[t.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || t.color, this.scaleGroups[t.scaleLabel].color = t.color, this.scaleGroups[t.scaleLabel].scaleYLabels = t.autoScaling ? M : y, this.scaleGroups[t.scaleLabel].zeroPosition = t.autoScaling ? z : G, this.scaleGroups[t.scaleLabel].individualMax = t.autoScaling ? k : p, this.scaleGroups[t.scaleLabel].scaleLabel = t.scaleLabel, this.scaleGroups[t.scaleLabel].id = t.id, this.scaleGroups[t.scaleLabel].yOffset = F, this.scaleGroups[t.scaleLabel].individualHeight = C, this.scaleGroups[t.scaleLabel].autoScaleYLabels = M, this.scaleGroups[t.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((A) => A.scaleLabel === t.scaleLabel).length === 1, {
|
|
429
429
|
...t,
|
|
430
|
-
yOffset:
|
|
430
|
+
yOffset: F,
|
|
431
431
|
autoScaleYLabels: M,
|
|
432
432
|
individualHeight: C,
|
|
433
|
-
scaleYLabels: t.autoScaling ? M :
|
|
433
|
+
scaleYLabels: t.autoScaling ? M : y,
|
|
434
434
|
individualScale: t.autoScaling ? L : m,
|
|
435
|
-
individualMax: t.autoScaling ?
|
|
436
|
-
zeroPosition: t.autoScaling ?
|
|
435
|
+
individualMax: t.autoScaling ? k : p,
|
|
436
|
+
zeroPosition: t.autoScaling ? z : G,
|
|
437
437
|
plots: t.autoScaling ? h : c,
|
|
438
438
|
groupId: this.scaleGroups[t.scaleLabel].groupId
|
|
439
439
|
};
|
|
@@ -442,61 +442,72 @@ const Je = X(), Qe = {
|
|
|
442
442
|
lineSet() {
|
|
443
443
|
return this.activeSeriesWithStackRatios.filter((t) => t.type === "line").map((t) => {
|
|
444
444
|
this.checkAutoScaleError(t);
|
|
445
|
-
const
|
|
446
|
-
t.absoluteValues.filter((
|
|
445
|
+
const n = this.scaleGroups[t.scaleLabel].min, o = this.scaleGroups[t.scaleLabel].max;
|
|
446
|
+
t.absoluteValues.filter((N) => ![null, void 0].includes(N)).map((N) => (N - n) / (o - n));
|
|
447
447
|
const g = {
|
|
448
|
-
valueMin:
|
|
448
|
+
valueMin: n,
|
|
449
449
|
valueMax: o
|
|
450
450
|
}, l = {
|
|
451
451
|
max: t.scaleMax || Math.max(...t.absoluteValues) || 1,
|
|
452
452
|
min: t.scaleMin || (Math.min(...t.absoluteValues) > 0 ? 0 : Math.min(...t.absoluteValues))
|
|
453
|
-
}, e = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,
|
|
454
|
-
const
|
|
453
|
+
}, e = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, x = this.calculateNiceScaleWithExactExtremes(l.min, l.max === l.min ? l.max * _ : l.max, e), m = this.calculateNiceScaleWithExactExtremes(g.valueMin, g.valueMax === g.valueMin ? g.valueMax * _ : g.valueMax, e), L = x.min >= 0 ? 0 : Math.abs(x.min), v = 0, O = x.max + Math.abs(L), p = m.max + Math.abs(v), k = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, F = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - k - F * L / O, G = this.drawingArea.bottom - k - F * v / p, z = t.series.map((N, w) => {
|
|
454
|
+
const j = this.mutableConfig.useIndividualScale ? (t.absoluteValues[w] + Math.abs(L)) / O : this.ratioToMax(N);
|
|
455
455
|
return {
|
|
456
|
-
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line *
|
|
457
|
-
y: this.checkNaN(this.drawingArea.bottom -
|
|
458
|
-
value: t.absoluteValues[
|
|
459
|
-
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[
|
|
456
|
+
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * w),
|
|
457
|
+
y: this.checkNaN(this.drawingArea.bottom - k - F * j),
|
|
458
|
+
value: t.absoluteValues[w],
|
|
459
|
+
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[w] || ""
|
|
460
460
|
};
|
|
461
|
-
}), a = t.absoluteValues.map((
|
|
462
|
-
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line *
|
|
461
|
+
}), a = t.absoluteValues.map((N) => m.min >= 0 ? (N - Math.abs(m.min)) / (m.max - Math.abs(m.min)) : (N + Math.abs(m.min)) / (m.max + Math.abs(m.min))), c = t.series.map((N, w) => [void 0, null].includes(t.absoluteValues[w]) ? {
|
|
462
|
+
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * w),
|
|
463
463
|
y: C,
|
|
464
|
-
value: t.absoluteValues[
|
|
465
|
-
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[
|
|
464
|
+
value: t.absoluteValues[w],
|
|
465
|
+
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[w] || ""
|
|
466
466
|
} : {
|
|
467
|
-
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line *
|
|
468
|
-
y: this.checkNaN(this.drawingArea.bottom -
|
|
469
|
-
value: t.absoluteValues[
|
|
470
|
-
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[
|
|
471
|
-
}),
|
|
472
|
-
y:
|
|
473
|
-
value:
|
|
467
|
+
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * w),
|
|
468
|
+
y: this.checkNaN(this.drawingArea.bottom - k - (F * a[w] || 0)),
|
|
469
|
+
value: t.absoluteValues[w],
|
|
470
|
+
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[w] || ""
|
|
471
|
+
}), s = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(z) : this.createSmoothPath(z.filter((N) => N.value !== null)), h = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(c) : this.createSmoothPath(c.filter((N) => N.value !== null)), y = this.FINAL_CONFIG.line.cutNullValues ? this.createStraightPathWithCuts(z) : this.createStraightPath(z.filter((N) => N.value !== null)), M = this.FINAL_CONFIG.line.cutNullValues ? this.createStraightPathWithCuts(c) : this.createStraightPath(c.filter((N) => N.value !== null)), A = x.ticks.map((N) => ({
|
|
472
|
+
y: N >= 0 ? C - F * (N / O) : C + F * Math.abs(N) / O,
|
|
473
|
+
value: N,
|
|
474
474
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
475
475
|
suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
476
476
|
datapoint: t
|
|
477
|
-
})),
|
|
478
|
-
const
|
|
477
|
+
})), T = m.ticks.map((N) => {
|
|
478
|
+
const w = (N - m.min) / (m.max - m.min);
|
|
479
479
|
return {
|
|
480
|
-
y:
|
|
481
|
-
value:
|
|
480
|
+
y: N >= 0 ? G - F * w : G + F * w,
|
|
481
|
+
value: N,
|
|
482
482
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
483
483
|
suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
484
484
|
datapoint: t
|
|
485
485
|
};
|
|
486
486
|
});
|
|
487
|
-
return this.scaleGroups[t.scaleLabel].name = t.name, this.scaleGroups[t.scaleLabel].groupName = t.scaleLabel, this.scaleGroups[t.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || t.color, this.scaleGroups[t.scaleLabel].color = t.color, this.scaleGroups[t.scaleLabel].scaleYLabels = t.autoScaling ?
|
|
487
|
+
return this.scaleGroups[t.scaleLabel].name = t.name, this.scaleGroups[t.scaleLabel].groupName = t.scaleLabel, this.scaleGroups[t.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || t.color, this.scaleGroups[t.scaleLabel].color = t.color, this.scaleGroups[t.scaleLabel].scaleYLabels = t.autoScaling ? T : A, this.scaleGroups[t.scaleLabel].zeroPosition = t.autoScaling ? G : C, this.scaleGroups[t.scaleLabel].individualMax = t.autoScaling ? p : O, this.scaleGroups[t.scaleLabel].scaleLabel = t.scaleLabel, this.scaleGroups[t.scaleLabel].id = t.id, this.scaleGroups[t.scaleLabel].yOffset = k, this.scaleGroups[t.scaleLabel].individualHeight = F, this.scaleGroups[t.scaleLabel].autoScaleYLabels = T, this.scaleGroups[t.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((N) => N.scaleLabel === t.scaleLabel).length === 1, {
|
|
488
488
|
...t,
|
|
489
|
-
yOffset:
|
|
490
|
-
autoScaleYLabels:
|
|
491
|
-
individualHeight:
|
|
492
|
-
scaleYLabels: t.autoScaling ?
|
|
493
|
-
individualScale: t.autoScaling ? m :
|
|
494
|
-
individualMax: t.autoScaling ?
|
|
495
|
-
zeroPosition: t.autoScaling ?
|
|
496
|
-
curve: t.autoScaling ? h :
|
|
497
|
-
plots: t.autoScaling ? c :
|
|
498
|
-
area: t.useArea ? this.mutableConfig.useIndividualScale ? this.
|
|
499
|
-
|
|
489
|
+
yOffset: k,
|
|
490
|
+
autoScaleYLabels: T,
|
|
491
|
+
individualHeight: F,
|
|
492
|
+
scaleYLabels: t.autoScaling ? T : A,
|
|
493
|
+
individualScale: t.autoScaling ? m : x,
|
|
494
|
+
individualMax: t.autoScaling ? p : O,
|
|
495
|
+
zeroPosition: t.autoScaling ? G : C,
|
|
496
|
+
curve: t.autoScaling ? h : s,
|
|
497
|
+
plots: t.autoScaling ? c : z,
|
|
498
|
+
area: t.useArea ? this.mutableConfig.useIndividualScale ? this.FINAL_CONFIG.line.cutNullValues ? this.createIndividualAreaWithCuts(
|
|
499
|
+
t.autoScaling ? c : z,
|
|
500
|
+
t.autoScaling ? G : C
|
|
501
|
+
) : this.createIndividualArea(
|
|
502
|
+
t.autoScaling ? c.filter((N) => N.value !== null) : z.filter((N) => N.value !== null),
|
|
503
|
+
t.autoScaling ? G : C
|
|
504
|
+
) : this.createArea(z.filter((N) => N.value !== null), k) : "",
|
|
505
|
+
curveAreas: t.useArea ? U(
|
|
506
|
+
t.autoScaling ? this.FINAL_CONFIG.line.cutNullValues ? c : c.filter((N) => N.value !== null) : this.FINAL_CONFIG.line.cutNullValues ? z : z.filter((N) => N.value !== null),
|
|
507
|
+
this.mutableConfig.useIndividualScale ? t.autoScaling ? G : C : this.zero,
|
|
508
|
+
this.FINAL_CONFIG.line.cutNullValues
|
|
509
|
+
) : [],
|
|
510
|
+
straight: t.autoScaling ? M : y,
|
|
500
511
|
groupId: this.scaleGroups[t.scaleLabel].groupId
|
|
501
512
|
};
|
|
502
513
|
});
|
|
@@ -504,53 +515,53 @@ const Je = X(), Qe = {
|
|
|
504
515
|
plotSet() {
|
|
505
516
|
return this.activeSeriesWithStackRatios.filter((t) => t.type === "plot").map((t) => {
|
|
506
517
|
this.checkAutoScaleError(t);
|
|
507
|
-
const
|
|
508
|
-
t.absoluteValues.filter((
|
|
518
|
+
const n = this.scaleGroups[t.scaleLabel].min, o = this.scaleGroups[t.scaleLabel].max;
|
|
519
|
+
t.absoluteValues.filter((y) => ![null, void 0].includes(y)).map((y) => (y - n) / (o - n));
|
|
509
520
|
const g = {
|
|
510
|
-
valueMin:
|
|
521
|
+
valueMin: n,
|
|
511
522
|
valueMax: o
|
|
512
523
|
}, l = {
|
|
513
524
|
max: t.scaleMax || Math.max(...t.absoluteValues) || 1,
|
|
514
525
|
min: t.scaleMin || Math.min(...t.absoluteValues) > 0 ? 0 : Math.min(...t.absoluteValues)
|
|
515
|
-
}, e = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,
|
|
516
|
-
const
|
|
526
|
+
}, e = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, x = this.calculateNiceScaleWithExactExtremes(l.min, l.max === l.min ? l.max * _ : l.max, e), m = this.calculateNiceScaleWithExactExtremes(g.valueMin, g.valueMax === g.valueMin ? g.valueMax * _ : g.valueMax, e), L = x.min >= 0 ? 0 : Math.abs(x.min), v = 0, O = x.max + L, p = m.max + Math.abs(v), k = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, F = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - k - F * L / O, G = this.drawingArea.bottom - k - F * v / p, z = t.series.map((y, M) => {
|
|
527
|
+
const A = this.mutableConfig.useIndividualScale ? (t.absoluteValues[M] + Math.abs(L)) / O : this.ratioToMax(y);
|
|
517
528
|
return {
|
|
518
529
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * M),
|
|
519
|
-
y: this.checkNaN(this.drawingArea.bottom -
|
|
530
|
+
y: this.checkNaN(this.drawingArea.bottom - k - F * A),
|
|
520
531
|
value: t.absoluteValues[M],
|
|
521
532
|
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[M] || ""
|
|
522
533
|
};
|
|
523
|
-
}), a = t.absoluteValues.map((
|
|
534
|
+
}), a = t.absoluteValues.map((y) => m.min >= 0 ? (y - Math.abs(m.min)) / (m.max - Math.abs(m.min)) : (y + Math.abs(m.min)) / (m.max + Math.abs(m.min))), c = t.series.map((y, M) => ({
|
|
524
535
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * M),
|
|
525
|
-
y: this.checkNaN(this.drawingArea.bottom -
|
|
536
|
+
y: this.checkNaN(this.drawingArea.bottom - k - (F * a[M] || 0)),
|
|
526
537
|
value: t.absoluteValues[M],
|
|
527
538
|
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[M] || ""
|
|
528
|
-
})),
|
|
529
|
-
y:
|
|
530
|
-
value:
|
|
539
|
+
})), s = x.ticks.map((y) => ({
|
|
540
|
+
y: y >= 0 ? C - F * (y / O) : C + F * Math.abs(y) / O,
|
|
541
|
+
value: y,
|
|
531
542
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
532
543
|
suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
533
544
|
datapoint: t
|
|
534
|
-
})), h = m.ticks.map((
|
|
535
|
-
const M = (
|
|
545
|
+
})), h = m.ticks.map((y) => {
|
|
546
|
+
const M = (y - m.min) / (m.max - m.min);
|
|
536
547
|
return {
|
|
537
|
-
y:
|
|
538
|
-
value:
|
|
548
|
+
y: y >= 0 ? G - F * M : G + F * M,
|
|
549
|
+
value: y,
|
|
539
550
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
540
551
|
suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
541
552
|
datapoint: t
|
|
542
553
|
};
|
|
543
554
|
});
|
|
544
|
-
return this.scaleGroups[t.scaleLabel].name = t.name, this.scaleGroups[t.scaleLabel].groupName = t.scaleLabel, this.scaleGroups[t.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || t.color, this.scaleGroups[t.scaleLabel].color = t.color, this.scaleGroups[t.scaleLabel].scaleYLabels = t.autoScaling ? h :
|
|
555
|
+
return this.scaleGroups[t.scaleLabel].name = t.name, this.scaleGroups[t.scaleLabel].groupName = t.scaleLabel, this.scaleGroups[t.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || t.color, this.scaleGroups[t.scaleLabel].color = t.color, this.scaleGroups[t.scaleLabel].scaleYLabels = t.autoScaling ? h : s, this.scaleGroups[t.scaleLabel].zeroPosition = t.autoScaling ? G : C, this.scaleGroups[t.scaleLabel].individualMax = t.autoScaling ? p : O, this.scaleGroups[t.scaleLabel].scaleLabel = t.scaleLabel, this.scaleGroups[t.scaleLabel].id = t.id, this.scaleGroups[t.scaleLabel].yOffset = k, this.scaleGroups[t.scaleLabel].individualHeight = F, this.scaleGroups[t.scaleLabel].autoScaleYLabels = h, this.scaleGroups[t.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((y) => y.scaleLabel === t.scaleLabel).length === 1, {
|
|
545
556
|
...t,
|
|
546
|
-
yOffset:
|
|
557
|
+
yOffset: k,
|
|
547
558
|
autoScaleYLabels: h,
|
|
548
|
-
individualHeight:
|
|
549
|
-
scaleYLabels: t.autoScaling ? h :
|
|
550
|
-
individualScale: t.autoScaling ? m :
|
|
551
|
-
individualMax: t.autoScaling ?
|
|
552
|
-
zeroPosition: t.autoScaling ?
|
|
553
|
-
plots: t.autoScaling ? c :
|
|
559
|
+
individualHeight: F,
|
|
560
|
+
scaleYLabels: t.autoScaling ? h : s,
|
|
561
|
+
individualScale: t.autoScaling ? m : x,
|
|
562
|
+
individualMax: t.autoScaling ? p : O,
|
|
563
|
+
zeroPosition: t.autoScaling ? G : C,
|
|
564
|
+
plots: t.autoScaling ? c : z,
|
|
554
565
|
groupId: this.scaleGroups[t.scaleLabel].groupId
|
|
555
566
|
};
|
|
556
567
|
});
|
|
@@ -559,11 +570,11 @@ const Je = X(), Qe = {
|
|
|
559
570
|
function t(g) {
|
|
560
571
|
const l = /* @__PURE__ */ new Set();
|
|
561
572
|
return g.forEach((e) => {
|
|
562
|
-
const
|
|
563
|
-
l.add(
|
|
573
|
+
const _ = e.scaleLabel || "__noScaleLabel__";
|
|
574
|
+
l.add(_);
|
|
564
575
|
}), l.size;
|
|
565
576
|
}
|
|
566
|
-
const
|
|
577
|
+
const n = t(this.absoluteDataset.filter((g) => !this.segregatedSeries.includes(g.id))), o = this.mutableConfig.useIndividualScale && this.FINAL_CONFIG.chart.grid.labels.show ? n * (this.mutableConfig.isStacked ? 0 : this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth) : 0;
|
|
567
578
|
return {
|
|
568
579
|
top: this.FINAL_CONFIG.chart.padding.top,
|
|
569
580
|
right: this.width - this.FINAL_CONFIG.chart.padding.right,
|
|
@@ -579,7 +590,7 @@ const Je = X(), Qe = {
|
|
|
579
590
|
min() {
|
|
580
591
|
if (this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin !== null)
|
|
581
592
|
return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin;
|
|
582
|
-
const t = Math.min(...this.safeDataset.filter((
|
|
593
|
+
const t = Math.min(...this.safeDataset.filter((n) => !this.segregatedSeries.includes(n.id)).map((n) => Math.min(...n.series)));
|
|
583
594
|
return t > 0 ? 0 : t;
|
|
584
595
|
},
|
|
585
596
|
niceScale() {
|
|
@@ -589,13 +600,13 @@ const Je = X(), Qe = {
|
|
|
589
600
|
return this.slicer.end - this.slicer.start;
|
|
590
601
|
},
|
|
591
602
|
timeLabels() {
|
|
592
|
-
const t = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length)),
|
|
603
|
+
const t = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length)), n = [];
|
|
593
604
|
for (let o = 0; o < t; o += 1)
|
|
594
|
-
|
|
605
|
+
n.push({
|
|
595
606
|
text: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[o] || String(o),
|
|
596
607
|
absoluteIndex: o
|
|
597
608
|
});
|
|
598
|
-
return
|
|
609
|
+
return n.slice(this.slicer.start, this.slicer.end);
|
|
599
610
|
},
|
|
600
611
|
slot() {
|
|
601
612
|
return {
|
|
@@ -605,7 +616,7 @@ const Je = X(), Qe = {
|
|
|
605
616
|
};
|
|
606
617
|
},
|
|
607
618
|
barSlot() {
|
|
608
|
-
const t = this.safeDataset.filter((
|
|
619
|
+
const t = this.safeDataset.filter((n) => n.type === "bar").filter((n) => !this.segregatedSeries.includes(n.id)).length;
|
|
609
620
|
return this.drawingArea.width / this.maxSeries / t - this.barPeriodGap * t;
|
|
610
621
|
},
|
|
611
622
|
barPeriodGap() {
|
|
@@ -620,36 +631,36 @@ const Je = X(), Qe = {
|
|
|
620
631
|
label: o.name,
|
|
621
632
|
color: o.color,
|
|
622
633
|
type: o.type
|
|
623
|
-
})),
|
|
634
|
+
})), n = [];
|
|
624
635
|
return this.timeLabels.forEach((o, g) => {
|
|
625
636
|
const l = [o.text];
|
|
626
637
|
this.relativeDataset.forEach((e) => {
|
|
627
638
|
l.push(this.canShowValue(e.absoluteValues[g]) ? Number(e.absoluteValues[g].toFixed(this.FINAL_CONFIG.table.rounding)) : "");
|
|
628
|
-
}),
|
|
629
|
-
}), { head: t, body:
|
|
639
|
+
}), n.push(l);
|
|
640
|
+
}), { head: t, body: n };
|
|
630
641
|
},
|
|
631
642
|
dataTable() {
|
|
632
643
|
const t = this.FINAL_CONFIG.table.showSum;
|
|
633
|
-
let
|
|
634
|
-
t && (
|
|
644
|
+
let n = [""].concat(this.relativeDataset.map((e) => e.name));
|
|
645
|
+
t && (n = n.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>'));
|
|
635
646
|
let o = [];
|
|
636
647
|
for (let e = 0; e < this.maxSeries; e += 1) {
|
|
637
|
-
const
|
|
648
|
+
const _ = this.relativeDataset.map((x) => x.absoluteValues[e] ?? 0).reduce((x, m) => x + m, 0);
|
|
638
649
|
o.push(
|
|
639
650
|
[
|
|
640
651
|
this.timeLabels[e].text ?? "-"
|
|
641
652
|
].concat(this.relativeDataset.map(
|
|
642
|
-
(
|
|
643
|
-
|
|
644
|
-
|
|
653
|
+
(x) => this.applyDataLabel(
|
|
654
|
+
x.type === "line" ? this.FINAL_CONFIG.line.labels.formatter : x.type === "bar" ? this.FINAL_CONFIG.bar.labels.formatter : this.FINAL_CONFIG.plot.labels.formatter,
|
|
655
|
+
x.absoluteValues[e] ?? 0,
|
|
645
656
|
this.dataLabel({
|
|
646
|
-
p:
|
|
647
|
-
v:
|
|
648
|
-
s:
|
|
657
|
+
p: x.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
658
|
+
v: x.absoluteValues[e] ?? 0,
|
|
659
|
+
s: x.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
649
660
|
r: this.FINAL_CONFIG.table.rounding
|
|
650
661
|
})
|
|
651
662
|
)
|
|
652
|
-
)).concat(t ? (
|
|
663
|
+
)).concat(t ? (_ ?? 0).toFixed(this.FINAL_CONFIG.table.rounding) : [])
|
|
653
664
|
);
|
|
654
665
|
}
|
|
655
666
|
const g = {
|
|
@@ -665,7 +676,7 @@ const Je = X(), Qe = {
|
|
|
665
676
|
},
|
|
666
677
|
breakpoint: this.FINAL_CONFIG.table.responsiveBreakpoint
|
|
667
678
|
}, l = [this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map((e) => e.name)).concat(this.FINAL_CONFIG.table.columnNames.total);
|
|
668
|
-
return { head:
|
|
679
|
+
return { head: n, body: o, config: g, colNames: l };
|
|
669
680
|
},
|
|
670
681
|
dataTooltipSlot() {
|
|
671
682
|
return {
|
|
@@ -685,14 +696,14 @@ const Je = X(), Qe = {
|
|
|
685
696
|
name: t.name,
|
|
686
697
|
color: t.color,
|
|
687
698
|
type: t.type,
|
|
688
|
-
value: t.absoluteValues.find((
|
|
699
|
+
value: t.absoluteValues.find((n, o) => o === this.selectedSerieIndex),
|
|
689
700
|
comments: t.comments || [],
|
|
690
701
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
691
702
|
suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix
|
|
692
703
|
}));
|
|
693
704
|
},
|
|
694
705
|
tooltipContent() {
|
|
695
|
-
let t = "",
|
|
706
|
+
let t = "", n = this.selectedSeries.map((l) => l.value).filter((l) => this.isSafeValue(l) && l !== null).reduce((l, e) => Math.abs(l) + Math.abs(e), 0);
|
|
696
707
|
const o = this.timeLabels[this.selectedSerieIndex], g = this.FINAL_CONFIG.chart.tooltip.customFormat;
|
|
697
708
|
return this.isFunction(g) && this.functionReturnsString(() => g({
|
|
698
709
|
seriesIndex: this.selectedSerieIndex,
|
|
@@ -712,13 +723,13 @@ const Je = X(), Qe = {
|
|
|
712
723
|
config: this.FINAL_CONFIG
|
|
713
724
|
}) : (o && o.text && this.FINAL_CONFIG.chart.tooltip.showTimeLabel && (t += `<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((l) => {
|
|
714
725
|
if (this.isSafeValue(l.value)) {
|
|
715
|
-
let e = "",
|
|
726
|
+
let e = "", _ = "";
|
|
716
727
|
switch (this.icons[l.type]) {
|
|
717
728
|
case "bar":
|
|
718
729
|
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="${l.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${this.$slots.pattern ? `url(#pattern_${this.uniqueId}_${l.slotAbsoluteIndex}` : l.color}" /></svg>`;
|
|
719
730
|
break;
|
|
720
731
|
case "line":
|
|
721
|
-
!l.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(l.shape) ?
|
|
732
|
+
!l.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(l.shape) ? _ = `<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${l.color}" />` : l.shape === "triangle" ? _ = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "square" ? _ = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "diamond" ? _ = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "pentagon" ? _ = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "hexagon" ? _ = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "star" && (_ = `<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${l.color}" points="${q({ 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="${l.color}" />${_}</svg>`;
|
|
722
733
|
break;
|
|
723
734
|
case "plot":
|
|
724
735
|
if (!l.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(l.shape)) {
|
|
@@ -760,8 +771,8 @@ const Je = X(), Qe = {
|
|
|
760
771
|
r: this.FINAL_CONFIG.chart.tooltip.roundingValue
|
|
761
772
|
}),
|
|
762
773
|
{ datapoint: l }
|
|
763
|
-
) : ""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage ? `(${
|
|
764
|
-
v: this.checkNaN(Math.abs(l.value) /
|
|
774
|
+
) : ""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage ? `(${Z({
|
|
775
|
+
v: this.checkNaN(Math.abs(l.value) / n * 100),
|
|
765
776
|
s: "%",
|
|
766
777
|
r: this.FINAL_CONFIG.chart.tooltip.roundingPercentage
|
|
767
778
|
})})` : ""}</div>`, this.FINAL_CONFIG.chart.comments.showInTooltip && l.comments.length && l.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex] && (t += `<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${l.color}">${l.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex]}</div>`);
|
|
@@ -798,45 +809,51 @@ const Je = X(), Qe = {
|
|
|
798
809
|
document.removeEventListener("scroll", this.hideTags);
|
|
799
810
|
},
|
|
800
811
|
methods: {
|
|
801
|
-
abbreviate:
|
|
802
|
-
adaptColorToBackground:
|
|
803
|
-
applyDataLabel:
|
|
804
|
-
assignStackRatios:
|
|
805
|
-
calcLinearProgression:
|
|
806
|
-
calculateNiceScaleWithExactExtremes:
|
|
807
|
-
checkNaN:
|
|
808
|
-
closestDecimal:
|
|
809
|
-
convertColorToHex:
|
|
810
|
-
convertConfigColors:
|
|
811
|
-
convertCustomPalette:
|
|
812
|
-
createCsvContent:
|
|
813
|
-
createSmoothPath:
|
|
814
|
-
createStraightPath:
|
|
815
|
-
createTSpans:
|
|
816
|
-
dataLabel:
|
|
817
|
-
downloadCsv:
|
|
818
|
-
error:
|
|
819
|
-
forceValidValue:
|
|
820
|
-
functionReturnsString:
|
|
821
|
-
hasDeepProperty:
|
|
822
|
-
isFunction:
|
|
823
|
-
isSafeValue:
|
|
824
|
-
largestTriangleThreeBucketsArray:
|
|
825
|
-
objectIsEmpty:
|
|
826
|
-
setOpacity:
|
|
827
|
-
shiftHue:
|
|
828
|
-
translateSize:
|
|
829
|
-
treeShake:
|
|
830
|
-
useMouse:
|
|
831
|
-
useNestedProp:
|
|
812
|
+
abbreviate: pe,
|
|
813
|
+
adaptColorToBackground: ve,
|
|
814
|
+
applyDataLabel: Ge,
|
|
815
|
+
assignStackRatios: Oe,
|
|
816
|
+
calcLinearProgression: we,
|
|
817
|
+
calculateNiceScaleWithExactExtremes: ke,
|
|
818
|
+
checkNaN: Se,
|
|
819
|
+
closestDecimal: Ce,
|
|
820
|
+
convertColorToHex: Le,
|
|
821
|
+
convertConfigColors: Ae,
|
|
822
|
+
convertCustomPalette: ye,
|
|
823
|
+
createCsvContent: _e,
|
|
824
|
+
createSmoothPath: Fe,
|
|
825
|
+
createStraightPath: be,
|
|
826
|
+
createTSpans: xe,
|
|
827
|
+
dataLabel: Z,
|
|
828
|
+
downloadCsv: me,
|
|
829
|
+
error: Ne,
|
|
830
|
+
forceValidValue: Ie,
|
|
831
|
+
functionReturnsString: fe,
|
|
832
|
+
hasDeepProperty: ge,
|
|
833
|
+
isFunction: de,
|
|
834
|
+
isSafeValue: ue,
|
|
835
|
+
largestTriangleThreeBucketsArray: he,
|
|
836
|
+
objectIsEmpty: oe,
|
|
837
|
+
setOpacity: ce,
|
|
838
|
+
shiftHue: ne,
|
|
839
|
+
translateSize: se,
|
|
840
|
+
treeShake: ie,
|
|
841
|
+
useMouse: De,
|
|
842
|
+
useNestedProp: J,
|
|
832
843
|
createUid: X,
|
|
833
|
-
placeXYTag:
|
|
844
|
+
placeXYTag: re,
|
|
845
|
+
createSmoothPathWithCuts: ae,
|
|
846
|
+
createStraightPathWithCuts: le,
|
|
847
|
+
createAreaWithCuts: te,
|
|
848
|
+
createIndividualAreaWithCuts: ee,
|
|
849
|
+
createSmoothAreaSegments: U,
|
|
850
|
+
createIndividualArea: $,
|
|
834
851
|
hideTags() {
|
|
835
852
|
const t = document.querySelectorAll(".vue-ui-xy-tag");
|
|
836
|
-
t.length && Array.from(t).forEach((
|
|
853
|
+
t.length && Array.from(t).forEach((n) => n.style.opacity = "0");
|
|
837
854
|
},
|
|
838
|
-
setTagRef(t,
|
|
839
|
-
o && (this.tagRefs[`${t}_${
|
|
855
|
+
setTagRef(t, n, o, g, l) {
|
|
856
|
+
o && (this.tagRefs[`${t}_${n}_${g}_${l}`] = o);
|
|
840
857
|
},
|
|
841
858
|
setUserOptionsVisibility(t = !1) {
|
|
842
859
|
this.showUserOptionsOnChartHover && (this.userOptionsVisible = t);
|
|
@@ -844,13 +861,13 @@ const Je = X(), Qe = {
|
|
|
844
861
|
toggleAnnotator() {
|
|
845
862
|
this.isAnnotator = !this.isAnnotator;
|
|
846
863
|
},
|
|
847
|
-
selectTimeLabel(t,
|
|
864
|
+
selectTimeLabel(t, n) {
|
|
848
865
|
const o = this.relativeDataset.map((g) => ({
|
|
849
866
|
shape: g.shape || null,
|
|
850
867
|
name: g.name,
|
|
851
868
|
color: g.color,
|
|
852
869
|
type: g.type,
|
|
853
|
-
value: g.absoluteValues.find((l, e) => e ===
|
|
870
|
+
value: g.absoluteValues.find((l, e) => e === n),
|
|
854
871
|
comments: g.comments || [],
|
|
855
872
|
prefix: g.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
856
873
|
suffix: g.suffix || this.FINAL_CONFIG.chart.labels.suffix
|
|
@@ -862,44 +879,44 @@ const Je = X(), Qe = {
|
|
|
862
879
|
});
|
|
863
880
|
},
|
|
864
881
|
getHighlightAreaPosition(t) {
|
|
865
|
-
const
|
|
882
|
+
const n = this.drawingArea.left + this.drawingArea.width / this.maxSeries * (t.from - this.slicer.start), o = this.drawingArea.width / (this.slicer.end - this.slicer.start) * t.span < 0 ? 1e-5 : this.drawingArea.width / (this.slicer.end - this.slicer.start) * t.span;
|
|
866
883
|
return {
|
|
867
|
-
x:
|
|
884
|
+
x: n < this.drawingArea.left ? this.drawingArea.left : n,
|
|
868
885
|
width: o
|
|
869
886
|
};
|
|
870
887
|
},
|
|
871
888
|
prepareConfig() {
|
|
872
|
-
const t =
|
|
889
|
+
const t = ze().vue_ui_xy;
|
|
873
890
|
if (!Object.keys(this.config || {}).length)
|
|
874
891
|
return t;
|
|
875
|
-
const
|
|
892
|
+
const n = this.useNestedProp({
|
|
876
893
|
userConfig: this.config,
|
|
877
894
|
defaultConfig: t
|
|
878
895
|
});
|
|
879
|
-
return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ?
|
|
880
|
-
...
|
|
881
|
-
userConfig: this.themes.vue_ui_xy[
|
|
882
|
-
defaultConfig:
|
|
896
|
+
return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ? n.chart.highlightArea = this.config.chart.highlightArea : n.chart.highlightArea = [this.config.chart.highlightArea]), this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMin") ? n.chart.grid.labels.yAxis.scaleMin = this.config.chart.grid.labels.yAxis.scaleMin : n.chart.grid.labels.yAxis.scaleMin = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMax") ? n.chart.grid.labels.yAxis.scaleMax = this.config.chart.grid.labels.yAxis.scaleMax : n.chart.grid.labels.yAxis.scaleMax = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.startIndex") ? n.chart.zoom.startIndex = this.config.chart.zoom.startIndex : n.chart.zoom.startIndex = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.endIndex") ? n.chart.zoom.endIndex = this.config.chart.zoom.endIndex : n.chart.zoom.endIndex = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.groupColor") ? n.chart.grid.labels.yAxis.groupColor = this.config.chart.grid.labels.yAxis.groupColor : n.chart.grid.labels.yAxis.groupColor = null, n.theme ? {
|
|
897
|
+
...J({
|
|
898
|
+
userConfig: this.themes.vue_ui_xy[n.theme] || this.config,
|
|
899
|
+
defaultConfig: n
|
|
883
900
|
}),
|
|
884
|
-
customPalette: this.themePalettes[
|
|
885
|
-
} :
|
|
901
|
+
customPalette: this.themePalettes[n.theme] || this.palette
|
|
902
|
+
} : n;
|
|
886
903
|
},
|
|
887
904
|
prepareChart() {
|
|
888
905
|
if (this.objectIsEmpty(this.dataset) ? this.error({
|
|
889
906
|
componentName: "VueUiXy",
|
|
890
907
|
type: "dataset"
|
|
891
|
-
}) : this.dataset.forEach((t,
|
|
908
|
+
}) : this.dataset.forEach((t, n) => {
|
|
892
909
|
[null, void 0].includes(t.name) && this.error({
|
|
893
910
|
componentName: "VueUiXy",
|
|
894
911
|
type: "datasetSerieAttribute",
|
|
895
912
|
property: "name (string)",
|
|
896
|
-
index:
|
|
913
|
+
index: n
|
|
897
914
|
});
|
|
898
915
|
}), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((t) => {
|
|
899
|
-
t.series.forEach((
|
|
900
|
-
this.isSafeValue(
|
|
901
|
-
-----> The serie '${t.name}' contains the value '${
|
|
902
|
-
'${
|
|
916
|
+
t.series.forEach((n, o) => {
|
|
917
|
+
this.isSafeValue(n) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
918
|
+
-----> The serie '${t.name}' contains the value '${n}' at index ${o}.
|
|
919
|
+
'${n}' was converted to null to allow the chart to display.`);
|
|
903
920
|
});
|
|
904
921
|
}), 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 = {
|
|
905
922
|
dataLabels: {
|
|
@@ -910,22 +927,22 @@ const Je = X(), Qe = {
|
|
|
910
927
|
isStacked: this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,
|
|
911
928
|
useIndividualScale: this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale
|
|
912
929
|
}, this.FINAL_CONFIG.responsive) {
|
|
913
|
-
const
|
|
930
|
+
const n = this.$refs.chart.parentNode, { height: o, width: g } = n.getBoundingClientRect();
|
|
914
931
|
let l = null, e = 0;
|
|
915
932
|
this.FINAL_CONFIG.chart.title.show && (l = this.$refs.chartTitle, e = l.getBoundingClientRect().height);
|
|
916
|
-
let
|
|
917
|
-
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (
|
|
933
|
+
let _ = null, x = 0;
|
|
934
|
+
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (_ = this.$refs.chartSlicer.$el, x = _.getBoundingClientRect().height);
|
|
918
935
|
let m = null, L = 0;
|
|
919
936
|
this.FINAL_CONFIG.chart.legend.show && (m = this.$refs.chartLegend, L = m.getBoundingClientRect().height);
|
|
920
|
-
let
|
|
921
|
-
this.$refs.source && (
|
|
922
|
-
let
|
|
923
|
-
this.$refs.noTitle && (
|
|
924
|
-
for (const
|
|
925
|
-
this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (
|
|
926
|
-
this.height =
|
|
937
|
+
let v = 0;
|
|
938
|
+
this.$refs.source && (v = this.$refs.source.getBoundingClientRect().height);
|
|
939
|
+
let O = 0;
|
|
940
|
+
this.$refs.noTitle && (O = this.$refs.noTitle.getBoundingClientRect().height), this.height = o - e - L - x - v - O, this.width = g, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes(), new ResizeObserver((k) => {
|
|
941
|
+
for (const F of k)
|
|
942
|
+
this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (x = this.$refs.chartSlicer.$el.getBoundingClientRect().height), this.$refs.chartLegend && (L = this.$refs.chartLegend.getBoundingClientRect().height), this.$refs.source && (v = this.$refs.source.getBoundingClientRect().height), requestAnimationFrame(() => {
|
|
943
|
+
this.height = F.contentBoxSize[0].blockSize - e - L - x - v - 24, this.width = F.contentBoxSize[0].inlineSize, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
|
|
927
944
|
});
|
|
928
|
-
}).observe(
|
|
945
|
+
}).observe(n);
|
|
929
946
|
} else
|
|
930
947
|
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;
|
|
931
948
|
},
|
|
@@ -986,26 +1003,20 @@ const Je = X(), Qe = {
|
|
|
986
1003
|
checkAutoScaleError(t) {
|
|
987
1004
|
t.autoScaling && (this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${t.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: ${t.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
|
|
988
1005
|
},
|
|
989
|
-
createArea(t) {
|
|
1006
|
+
createArea(t, n) {
|
|
1007
|
+
const o = this.mutableConfig.isStacked ? this.drawingArea.bottom - n : this.drawingArea.bottom;
|
|
990
1008
|
if (!t[0]) return [-10, -10, "", -10, -10];
|
|
991
|
-
const
|
|
992
|
-
return t.forEach((
|
|
993
|
-
|
|
994
|
-
}), [
|
|
995
|
-
},
|
|
996
|
-
createIndividualArea(t, s) {
|
|
997
|
-
if (!t[0]) return [-10, -10, "", -10, -10];
|
|
998
|
-
const o = { x: t[0] ? t[0].x : Math.min(...t.filter((e) => !!e).map((e) => e.x)), y: s }, g = { x: t.at(-1) ? t.at(-1).x : Math.min(...t.filter((e) => !!e).map((e) => e.x)), y: s }, l = [];
|
|
999
|
-
return t.filter((e) => !!e).forEach((e) => {
|
|
1000
|
-
l.push(`${e.x},${e.y} `);
|
|
1001
|
-
}), [o.x, o.y, ...l, g.x, g.y].toString();
|
|
1009
|
+
const g = { x: t[0].x, y: o }, l = { x: t.at(-1).x, y: o }, e = [];
|
|
1010
|
+
return t.forEach((_) => {
|
|
1011
|
+
e.push(`${_.x},${_.y} `);
|
|
1012
|
+
}), [g.x, g.y, ...e, l.x, l.y].toString();
|
|
1002
1013
|
},
|
|
1003
1014
|
createStar: q,
|
|
1004
1015
|
createPolygonPath: H,
|
|
1005
|
-
fillArray(t,
|
|
1016
|
+
fillArray(t, n) {
|
|
1006
1017
|
let o = Array(t).fill(0);
|
|
1007
|
-
for (let g = 0; g <
|
|
1008
|
-
o[g] =
|
|
1018
|
+
for (let g = 0; g < n.length && g < t; g += 1)
|
|
1019
|
+
o[g] = n[g];
|
|
1009
1020
|
return o;
|
|
1010
1021
|
},
|
|
1011
1022
|
async setupSlicer() {
|
|
@@ -1018,12 +1029,12 @@ const Je = X(), Qe = {
|
|
|
1018
1029
|
this.setupSlicer();
|
|
1019
1030
|
},
|
|
1020
1031
|
validSlicerEnd(t) {
|
|
1021
|
-
const
|
|
1022
|
-
return t >
|
|
1032
|
+
const n = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length));
|
|
1033
|
+
return t > n ? n : t < 0 || this.FINAL_CONFIG.chart.zoom.startIndex !== null && t < this.FINAL_CONFIG.chart.zoom.startIndex ? this.FINAL_CONFIG.chart.zoom.startIndex !== null ? this.FINAL_CONFIG.chart.zoom.startIndex + 1 : 1 : t;
|
|
1023
1034
|
},
|
|
1024
1035
|
calcRectHeight(t) {
|
|
1025
|
-
const
|
|
1026
|
-
return t.value >= 0 ? this.checkNaN(
|
|
1036
|
+
const n = ![null, void 0].includes(this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin) && this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin > 0 && this.min >= 0 ? this.drawingArea.bottom : this.zero;
|
|
1037
|
+
return t.value >= 0 ? this.checkNaN(n - t.y <= 0 ? 1e-5 : n - t.y) : this.checkNaN(t.y - this.zero <= 0 ? 1e-5 : t.y - this.zero);
|
|
1027
1038
|
},
|
|
1028
1039
|
calcIndividualHeight(t) {
|
|
1029
1040
|
return t.value >= 0 ? this.checkNaN(t.zeroPosition - t.y <= 0 ? 1e-5 : t.zeroPosition - t.y) : this.checkNaN(t.y - t.zeroPosition <= 0 ? 1e-5 : t.zeroPosition - t.y);
|
|
@@ -1043,11 +1054,11 @@ const Je = X(), Qe = {
|
|
|
1043
1054
|
canShowValue(t) {
|
|
1044
1055
|
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(t);
|
|
1045
1056
|
},
|
|
1046
|
-
findClosestValue(t,
|
|
1047
|
-
let o =
|
|
1048
|
-
for (let l = 1; l <
|
|
1049
|
-
const e = Math.abs(t -
|
|
1050
|
-
e < g &&
|
|
1057
|
+
findClosestValue(t, n) {
|
|
1058
|
+
let o = n[0], g = Math.abs(t - n[0]);
|
|
1059
|
+
for (let l = 1; l < n.length; l += 1) {
|
|
1060
|
+
const e = Math.abs(t - n[l]);
|
|
1061
|
+
e < g && n[l] < t && (o = n[l], g = e);
|
|
1051
1062
|
}
|
|
1052
1063
|
return o;
|
|
1053
1064
|
},
|
|
@@ -1058,11 +1069,11 @@ const Je = X(), Qe = {
|
|
|
1058
1069
|
this.$emit(
|
|
1059
1070
|
"selectX",
|
|
1060
1071
|
{
|
|
1061
|
-
dataset: this.relativeDataset.map((
|
|
1062
|
-
name:
|
|
1063
|
-
value: [null, void 0, NaN].includes(
|
|
1064
|
-
color:
|
|
1065
|
-
type:
|
|
1072
|
+
dataset: this.relativeDataset.map((n) => ({
|
|
1073
|
+
name: n.name,
|
|
1074
|
+
value: [null, void 0, NaN].includes(n.absoluteValues[t]) ? null : n.absoluteValues[t],
|
|
1075
|
+
color: n.color,
|
|
1076
|
+
type: n.type
|
|
1066
1077
|
})),
|
|
1067
1078
|
index: t,
|
|
1068
1079
|
indexLabel: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[t]
|
|
@@ -1079,20 +1090,20 @@ const Je = X(), Qe = {
|
|
|
1079
1090
|
},
|
|
1080
1091
|
segregate(t) {
|
|
1081
1092
|
if (this.segregatedSeries.includes(t.id))
|
|
1082
|
-
this.segregatedSeries = this.segregatedSeries.filter((
|
|
1093
|
+
this.segregatedSeries = this.segregatedSeries.filter((n) => n !== t.id);
|
|
1083
1094
|
else {
|
|
1084
1095
|
if (this.segregatedSeries.length + 1 === this.safeDataset.length) return;
|
|
1085
1096
|
this.segregatedSeries.push(t.id);
|
|
1086
1097
|
}
|
|
1087
|
-
this.$emit("selectLegend", this.relativeDataset.map((
|
|
1088
|
-
name:
|
|
1089
|
-
values:
|
|
1090
|
-
color:
|
|
1091
|
-
type:
|
|
1098
|
+
this.$emit("selectLegend", this.relativeDataset.map((n) => ({
|
|
1099
|
+
name: n.name,
|
|
1100
|
+
values: n.absoluteValues,
|
|
1101
|
+
color: n.color,
|
|
1102
|
+
type: n.type
|
|
1092
1103
|
}))), this.segregateStep += 1;
|
|
1093
1104
|
},
|
|
1094
|
-
toggleTooltipVisibility(t,
|
|
1095
|
-
this.isTooltip = t, t ? this.selectedSerieIndex =
|
|
1105
|
+
toggleTooltipVisibility(t, n = null) {
|
|
1106
|
+
this.isTooltip = t, t ? this.selectedSerieIndex = n : this.selectedSerieIndex = null;
|
|
1096
1107
|
},
|
|
1097
1108
|
toggleFullscreen(t) {
|
|
1098
1109
|
this.isFullscreen = t, this.step += 1;
|
|
@@ -1103,7 +1114,7 @@ const Je = X(), Qe = {
|
|
|
1103
1114
|
async generatePdf() {
|
|
1104
1115
|
this.showSpinnerPdf(), clearTimeout(this.__to__), this.isPrinting = !0, this.__to__ = setTimeout(async () => {
|
|
1105
1116
|
try {
|
|
1106
|
-
const { default: t } = await import("./pdf-
|
|
1117
|
+
const { default: t } = await import("./pdf-lJiGVhtL.js");
|
|
1107
1118
|
await t({
|
|
1108
1119
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1109
1120
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
@@ -1117,7 +1128,7 @@ const Je = X(), Qe = {
|
|
|
1117
1128
|
}, 100);
|
|
1118
1129
|
},
|
|
1119
1130
|
generateCsv() {
|
|
1120
|
-
const t = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]],
|
|
1131
|
+
const t = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], n = ["", ...this.table.head.map((e) => e.label)], o = this.table.body, g = t.concat([n]).concat(o), l = this.createCsvContent(g);
|
|
1121
1132
|
this.downloadCsv({ csvContent: l, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
|
|
1122
1133
|
},
|
|
1123
1134
|
showSpinnerImage() {
|
|
@@ -1126,7 +1137,7 @@ const Je = X(), Qe = {
|
|
|
1126
1137
|
async generateImage() {
|
|
1127
1138
|
this.showSpinnerImage(), clearTimeout(this.__to__), this.isImaging = !0, this.__to__ = setTimeout(async () => {
|
|
1128
1139
|
try {
|
|
1129
|
-
const { default: t } = await import("./img-
|
|
1140
|
+
const { default: t } = await import("./img-DQDP5JIH.js");
|
|
1130
1141
|
await t({
|
|
1131
1142
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1132
1143
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
@@ -1141,89 +1152,89 @@ const Je = X(), Qe = {
|
|
|
1141
1152
|
}, 100);
|
|
1142
1153
|
}
|
|
1143
1154
|
}
|
|
1144
|
-
},
|
|
1155
|
+
}, at = ["id"], rt = {
|
|
1145
1156
|
key: 1,
|
|
1146
1157
|
ref: "noTitle",
|
|
1147
1158
|
class: "vue-data-ui-no-title-space",
|
|
1148
1159
|
style: "height:36px; width: 100%; background:transparent"
|
|
1149
|
-
},
|
|
1160
|
+
}, it = ["viewBox", "aria-label"], st = ["x", "y", "width", "height"], nt = { key: 1 }, ct = { class: "vue-ui-xy-grid" }, ot = ["stroke", "x1", "x2", "y1", "y2"], ht = ["stroke", "x1", "x2", "y1", "y2"], ut = { key: 1 }, dt = ["x1", "x2", "y1", "y2", "stroke"], gt = ["x1", "x2", "y1", "y2", "stroke"], ft = ["x1", "x2", "y1", "y2", "stroke"], It = { key: 3 }, Nt = ["x1", "x2", "y1", "y2", "stroke"], mt = ["id"], xt = ["stop-color"], bt = ["stop-color"], Ft = ["stop-color"], _t = ["id"], yt = ["stop-color"], At = ["stop-color"], Lt = ["stop-color"], Ct = ["id"], St = ["stop-color"], kt = ["stop-color"], wt = ["id"], Ot = ["stop-color"], Gt = ["stop-color"], vt = ["id"], pt = ["stop-color"], zt = ["stop-color"], Mt = ["x", "y", "height", "width", "fill"], Tt = ["x", "y", "width"], Pt = ["x", "y", "height", "width", "fill"], Vt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Rt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Ht = ["width", "x", "y"], Dt = { key: 0 }, Wt = ["id"], Bt = ["fill"], Et = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Yt = ["x", "y", "font-size", "fill"], qt = ["stroke", "x1", "x2", "y1", "y2"], Xt = { key: 2 }, Ut = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Zt = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Jt = { key: 4 }, Qt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Kt = ["fill", "font-size", "transform"], jt = ["x1", "x2", "y1", "y2", "stroke"], $t = ["x", "y", "font-size", "fill"], el = ["x1", "x2", "y1", "y2", "stroke"], tl = ["x", "y", "font-size", "fill"], ll = ["width", "x", "y"], al = { style: { width: "100%" } }, rl = { key: 0 }, il = ["id"], sl = ["fill"], nl = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], cl = ["x", "y", "font-size", "fill"], ol = ["d", "stroke", "stroke-width", "stroke-dasharray"], hl = ["d", "stroke", "stroke-width", "stroke-dasharray"], ul = { key: 5 }, dl = { key: 0 }, gl = ["d", "fill"], fl = ["d", "fill"], Il = ["d", "fill"], Nl = ["d", "fill"], ml = ["d", "stroke", "stroke-width", "stroke-dasharray"], xl = ["d", "stroke", "stroke-width", "stroke-dasharray"], bl = ["width", "x", "y"], Fl = { style: { width: "100%" } }, _l = { key: 3 }, yl = ["id"], Al = ["fill"], Ll = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Cl = ["x", "y", "font-size", "fill"], Sl = { key: 6 }, kl = ["x", "y", "font-size", "fill"], wl = ["x", "y", "font-size", "fill", "font-weight"], Ol = { key: 7 }, Gl = ["x", "y", "font-size", "fill"], vl = { key: 8 }, pl = ["x", "y"], zl = ["innerHTML"], Ml = ["x", "y"], Tl = ["innerHTML"], Pl = ["x1", "x2", "y1", "y2", "stroke"], Vl = { key: 9 }, Rl = ["x", "y", "font-size", "fill"], Hl = { key: 10 }, Dl = ["x", "y"], Wl = ["innerHTML"], Bl = ["x", "y"], El = ["innerHTML"], Yl = ["x1", "x2", "y1", "y2", "stroke"], ql = ["x", "y", "font-size", "fill", "innerHTML"], Xl = ["x", "y", "font-size", "fill", "innerHTML"], Ul = ["x", "y", "font-size", "fill", "innerHTML"], Zl = ["x", "y", "font-size", "fill", "innerHTML"], Jl = ["id"], Ql = ["stop-color"], Kl = ["stop-color"], jl = ["x", "y", "width", "height", "fill", "onMouseenter"], $l = ["font-size", "fill", "transform"], ea = ["x", "y", "font-size", "fill"], ta = { key: 12 }, la = ["text-anchor", "font-size", "fill", "transform", "onClick"], aa = ["x", "y", "height", "width", "onMouseenter", "onClick"], ra = {
|
|
1150
1161
|
key: 13,
|
|
1151
1162
|
style: { "pointer-events": "none" }
|
|
1152
|
-
},
|
|
1163
|
+
}, ia = ["x", "y"], sa = ["cx", "cy", "r", "fill"], na = {
|
|
1153
1164
|
key: 5,
|
|
1154
1165
|
class: "vue-data-ui-watermark"
|
|
1155
|
-
},
|
|
1166
|
+
}, ca = {
|
|
1156
1167
|
class: "vue-ui-xy-tag-arrow",
|
|
1157
1168
|
height: "20",
|
|
1158
1169
|
viewBox: "0 0 10 20",
|
|
1159
1170
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1160
|
-
},
|
|
1171
|
+
}, oa = ["fill"], ha = ["innerHTML"], ua = {
|
|
1161
1172
|
class: "vue-ui-xy-tag-arrow",
|
|
1162
1173
|
height: "100%",
|
|
1163
1174
|
viewBox: "0 0 10 20",
|
|
1164
1175
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1165
|
-
},
|
|
1176
|
+
}, da = ["fill"], ga = ["innerHTML"], fa = {
|
|
1166
1177
|
class: "vue-ui-xy-tag-arrow",
|
|
1167
1178
|
height: "20",
|
|
1168
1179
|
viewBox: "0 0 10 20",
|
|
1169
1180
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1170
|
-
},
|
|
1181
|
+
}, Ia = ["fill"], Na = ["innerHTML"], ma = {
|
|
1171
1182
|
class: "vue-ui-xy-tag-arrow",
|
|
1172
1183
|
height: "100%",
|
|
1173
1184
|
viewBox: "0 0 10 20",
|
|
1174
1185
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1175
|
-
},
|
|
1186
|
+
}, xa = ["fill"], ba = ["innerHTML"], Fa = ["onClick"], _a = {
|
|
1176
1187
|
key: 0,
|
|
1177
1188
|
viewBox: "0 0 20 12",
|
|
1178
1189
|
height: "14",
|
|
1179
1190
|
width: "20"
|
|
1180
|
-
},
|
|
1191
|
+
}, ya = ["stroke", "fill"], Aa = {
|
|
1181
1192
|
key: 1,
|
|
1182
1193
|
viewBox: "0 0 40 40",
|
|
1183
1194
|
height: "14",
|
|
1184
1195
|
width: "14"
|
|
1185
|
-
},
|
|
1196
|
+
}, La = ["fill"], Ca = ["fill"], Sa = {
|
|
1186
1197
|
key: 2,
|
|
1187
1198
|
viewBox: "0 0 12 12",
|
|
1188
1199
|
height: "14",
|
|
1189
1200
|
width: "14"
|
|
1190
|
-
},
|
|
1201
|
+
}, ka = {
|
|
1191
1202
|
key: 9,
|
|
1192
1203
|
ref: "chartLegend"
|
|
1193
|
-
},
|
|
1204
|
+
}, wa = {
|
|
1194
1205
|
key: 10,
|
|
1195
1206
|
ref: "source",
|
|
1196
1207
|
dir: "auto"
|
|
1197
|
-
},
|
|
1208
|
+
}, Oa = {
|
|
1198
1209
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
1199
1210
|
"data-dom-to-png-ignore": ""
|
|
1200
|
-
},
|
|
1201
|
-
function
|
|
1202
|
-
const
|
|
1211
|
+
}, Ga = ["innerHTML"];
|
|
1212
|
+
function va(t, n, o, g, l, e) {
|
|
1213
|
+
const _ = R("PenAndPaper"), x = R("Title"), m = R("UserOptions"), L = R("PackageVersion"), v = R("Shape"), O = R("Skeleton"), p = R("Slicer"), k = R("Tooltip"), F = R("BaseIcon"), C = R("TableSparkline"), G = R("DataTable"), z = R("Accordion");
|
|
1203
1214
|
return r(), i("div", {
|
|
1204
1215
|
id: `vue-ui-xy_${l.uniqueId}`,
|
|
1205
|
-
class:
|
|
1216
|
+
class: W(`vue-ui-xy ${l.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1206
1217
|
ref: "chart",
|
|
1207
|
-
style:
|
|
1208
|
-
onMouseenter:
|
|
1209
|
-
onMouseleave:
|
|
1218
|
+
style: b(`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%" : ""}`),
|
|
1219
|
+
onMouseenter: n[7] || (n[7] = () => e.setUserOptionsVisibility(!0)),
|
|
1220
|
+
onMouseleave: n[8] || (n[8] = () => e.setUserOptionsVisibility(!1))
|
|
1210
1221
|
}, [
|
|
1211
|
-
e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (r(), D(
|
|
1222
|
+
e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (r(), D(_, {
|
|
1212
1223
|
key: 0,
|
|
1213
1224
|
svgRef: l.svgRef,
|
|
1214
1225
|
backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1215
1226
|
color: e.FINAL_CONFIG.chart.color,
|
|
1216
1227
|
active: l.isAnnotator,
|
|
1217
1228
|
onClose: e.toggleAnnotator
|
|
1218
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active", "onClose"])) :
|
|
1219
|
-
e.hasOptionsNoTitle ? (r(), i("div",
|
|
1229
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active", "onClose"])) : d("", !0),
|
|
1230
|
+
e.hasOptionsNoTitle ? (r(), i("div", rt, null, 512)) : d("", !0),
|
|
1220
1231
|
e.FINAL_CONFIG.chart.title.show ? (r(), i("div", {
|
|
1221
1232
|
key: 2,
|
|
1222
1233
|
ref: "chartTitle",
|
|
1223
1234
|
class: "vue-ui-xy-title",
|
|
1224
|
-
style:
|
|
1235
|
+
style: b(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
1225
1236
|
}, [
|
|
1226
|
-
(r(), D(
|
|
1237
|
+
(r(), D(x, {
|
|
1227
1238
|
key: `title_${l.titleStep}`,
|
|
1228
1239
|
config: {
|
|
1229
1240
|
title: {
|
|
@@ -1236,7 +1247,7 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1236
1247
|
}
|
|
1237
1248
|
}
|
|
1238
1249
|
}, null, 8, ["config"]))
|
|
1239
|
-
], 4)) :
|
|
1250
|
+
], 4)) : d("", !0),
|
|
1240
1251
|
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (l.keepUserOptionState || l.userOptionsVisible) ? (r(), D(m, {
|
|
1241
1252
|
ref: "defails",
|
|
1242
1253
|
key: `user_options_${l.step}`,
|
|
@@ -1270,94 +1281,94 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1270
1281
|
onToggleStack: e.toggleStack,
|
|
1271
1282
|
onToggleTooltip: e.toggleTooltip,
|
|
1272
1283
|
onToggleAnnotator: e.toggleAnnotator,
|
|
1273
|
-
style:
|
|
1284
|
+
style: b({
|
|
1274
1285
|
visibility: l.keepUserOptionState ? l.userOptionsVisible ? "visible" : "hidden" : "visible"
|
|
1275
1286
|
})
|
|
1276
|
-
},
|
|
1287
|
+
}, Ke({ _: 2 }, [
|
|
1277
1288
|
t.$slots.menuIcon ? {
|
|
1278
1289
|
name: "menuIcon",
|
|
1279
|
-
fn:
|
|
1280
|
-
S(t.$slots, "menuIcon", E(
|
|
1290
|
+
fn: V(({ isOpen: a, color: c }) => [
|
|
1291
|
+
S(t.$slots, "menuIcon", B(E({ isOpen: a, color: c })), void 0, !0)
|
|
1281
1292
|
]),
|
|
1282
1293
|
key: "0"
|
|
1283
1294
|
} : void 0,
|
|
1284
1295
|
t.$slots.optionTooltip ? {
|
|
1285
1296
|
name: "optionTooltip",
|
|
1286
|
-
fn:
|
|
1297
|
+
fn: V(() => [
|
|
1287
1298
|
S(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
1288
1299
|
]),
|
|
1289
1300
|
key: "1"
|
|
1290
1301
|
} : void 0,
|
|
1291
1302
|
t.$slots.optionPdf ? {
|
|
1292
1303
|
name: "optionPdf",
|
|
1293
|
-
fn:
|
|
1304
|
+
fn: V(() => [
|
|
1294
1305
|
S(t.$slots, "optionPdf", {}, void 0, !0)
|
|
1295
1306
|
]),
|
|
1296
1307
|
key: "2"
|
|
1297
1308
|
} : void 0,
|
|
1298
1309
|
t.$slots.optionCsv ? {
|
|
1299
1310
|
name: "optionCsv",
|
|
1300
|
-
fn:
|
|
1311
|
+
fn: V(() => [
|
|
1301
1312
|
S(t.$slots, "optionCsv", {}, void 0, !0)
|
|
1302
1313
|
]),
|
|
1303
1314
|
key: "3"
|
|
1304
1315
|
} : void 0,
|
|
1305
1316
|
t.$slots.optionImg ? {
|
|
1306
1317
|
name: "optionImg",
|
|
1307
|
-
fn:
|
|
1318
|
+
fn: V(() => [
|
|
1308
1319
|
S(t.$slots, "optionImg", {}, void 0, !0)
|
|
1309
1320
|
]),
|
|
1310
1321
|
key: "4"
|
|
1311
1322
|
} : void 0,
|
|
1312
1323
|
t.$slots.optionTable ? {
|
|
1313
1324
|
name: "optionTable",
|
|
1314
|
-
fn:
|
|
1325
|
+
fn: V(() => [
|
|
1315
1326
|
S(t.$slots, "optionTable", {}, void 0, !0)
|
|
1316
1327
|
]),
|
|
1317
1328
|
key: "5"
|
|
1318
1329
|
} : void 0,
|
|
1319
1330
|
t.$slots.optionLabels ? {
|
|
1320
1331
|
name: "optionLabels",
|
|
1321
|
-
fn:
|
|
1332
|
+
fn: V(() => [
|
|
1322
1333
|
S(t.$slots, "optionLabels", {}, void 0, !0)
|
|
1323
1334
|
]),
|
|
1324
1335
|
key: "6"
|
|
1325
1336
|
} : void 0,
|
|
1326
1337
|
t.$slots.optionStack ? {
|
|
1327
1338
|
name: "optionStack",
|
|
1328
|
-
fn:
|
|
1339
|
+
fn: V(() => [
|
|
1329
1340
|
S(t.$slots, "optionStack", {}, void 0, !0)
|
|
1330
1341
|
]),
|
|
1331
1342
|
key: "7"
|
|
1332
1343
|
} : void 0,
|
|
1333
1344
|
t.$slots.optionFullscreen ? {
|
|
1334
1345
|
name: "optionFullscreen",
|
|
1335
|
-
fn:
|
|
1336
|
-
S(t.$slots, "optionFullscreen", E(
|
|
1346
|
+
fn: V(({ toggleFullscreen: a, isFullscreen: c }) => [
|
|
1347
|
+
S(t.$slots, "optionFullscreen", B(E({ toggleFullscreen: a, isFullscreen: c })), void 0, !0)
|
|
1337
1348
|
]),
|
|
1338
1349
|
key: "8"
|
|
1339
1350
|
} : void 0,
|
|
1340
1351
|
t.$slots.optionAnnotator ? {
|
|
1341
1352
|
name: "optionAnnotator",
|
|
1342
|
-
fn:
|
|
1343
|
-
S(t.$slots, "optionAnnotator", E(
|
|
1353
|
+
fn: V(({ toggleAnnotator: a, isAnnotator: c }) => [
|
|
1354
|
+
S(t.$slots, "optionAnnotator", B(E({ toggleAnnotator: a, isAnnotator: c })), void 0, !0)
|
|
1344
1355
|
]),
|
|
1345
1356
|
key: "9"
|
|
1346
1357
|
} : void 0
|
|
1347
|
-
]), 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"])) :
|
|
1358
|
+
]), 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"])) : d("", !0),
|
|
1348
1359
|
e.isDataset ? (r(), i("svg", {
|
|
1349
1360
|
key: 4,
|
|
1350
1361
|
ref: "svgRef",
|
|
1351
1362
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1352
|
-
class:
|
|
1363
|
+
class: W([{ "vue-data-ui-fullscreen--on": l.isFullscreen, "vue-data-ui-fulscreen--off": !l.isFullscreen }, "vue-ui-xy-svg"]),
|
|
1353
1364
|
width: "100%",
|
|
1354
1365
|
viewBox: l.viewBox,
|
|
1355
|
-
style:
|
|
1366
|
+
style: b(`background: transparent; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`),
|
|
1356
1367
|
"aria-label": e.chartAriaLabel,
|
|
1357
1368
|
role: "img",
|
|
1358
1369
|
"aria-live": "polite"
|
|
1359
1370
|
}, [
|
|
1360
|
-
|
|
1371
|
+
Y(L),
|
|
1361
1372
|
t.$slots["chart-background"] ? (r(), i("foreignObject", {
|
|
1362
1373
|
key: 0,
|
|
1363
1374
|
x: e.drawingArea.left + e.xPadding < 0 ? 0 : e.drawingArea.left + e.xPadding,
|
|
@@ -1369,9 +1380,9 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1369
1380
|
}
|
|
1370
1381
|
}, [
|
|
1371
1382
|
S(t.$slots, "chart-background", {}, void 0, !0)
|
|
1372
|
-
], 8,
|
|
1373
|
-
e.maxSeries > 0 ? (r(), i("g",
|
|
1374
|
-
f("g",
|
|
1383
|
+
], 8, st)) : d("", !0),
|
|
1384
|
+
e.maxSeries > 0 ? (r(), i("g", nt, [
|
|
1385
|
+
f("g", ct, [
|
|
1375
1386
|
e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (r(), i("line", {
|
|
1376
1387
|
key: 0,
|
|
1377
1388
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
@@ -1381,9 +1392,9 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1381
1392
|
y1: e.forceValidValue(e.drawingArea.bottom),
|
|
1382
1393
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1383
1394
|
"stroke-linecap": "round"
|
|
1384
|
-
}, null, 8,
|
|
1385
|
-
l.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (r(!0), i(
|
|
1386
|
-
a.id === l.selectedScale && a.yLabels.length ? (r(!0), i(
|
|
1395
|
+
}, null, 8, ot)) : d("", !0),
|
|
1396
|
+
l.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (r(!0), i(u, { key: 2 }, I(e.allScales, (a) => (r(), i("g", null, [
|
|
1397
|
+
a.id === l.selectedScale && a.yLabels.length ? (r(!0), i(u, { key: 0 }, I(a.yLabels, (c) => (r(), i("line", {
|
|
1387
1398
|
x1: e.drawingArea.left + e.xPadding,
|
|
1388
1399
|
x2: e.drawingArea.right - e.xPadding,
|
|
1389
1400
|
y1: e.forceValidValue(c.y),
|
|
@@ -1391,7 +1402,7 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1391
1402
|
stroke: a.color,
|
|
1392
1403
|
"stroke-width": 0.5,
|
|
1393
1404
|
"stroke-linecap": "round"
|
|
1394
|
-
}, null, 8,
|
|
1405
|
+
}, null, 8, gt))), 256)) : a.yLabels.length ? (r(!0), i(u, { key: 1 }, I(a.yLabels, (c) => (r(), i("line", {
|
|
1395
1406
|
x1: e.drawingArea.left + e.xPadding,
|
|
1396
1407
|
x2: e.drawingArea.right - e.xPadding,
|
|
1397
1408
|
y1: e.forceValidValue(c.y),
|
|
@@ -1399,8 +1410,8 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1399
1410
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1400
1411
|
"stroke-width": 0.5,
|
|
1401
1412
|
"stroke-linecap": "round"
|
|
1402
|
-
}, null, 8,
|
|
1403
|
-
]))), 256)) :
|
|
1413
|
+
}, null, 8, ft))), 256)) : d("", !0)
|
|
1414
|
+
]))), 256)) : d("", !0) : (r(), i(u, { key: 1 }, [
|
|
1404
1415
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (r(), i("line", {
|
|
1405
1416
|
key: 0,
|
|
1406
1417
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
@@ -1410,9 +1421,9 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1410
1421
|
y1: e.forceValidValue(e.drawingArea.top),
|
|
1411
1422
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1412
1423
|
"stroke-linecap": "round"
|
|
1413
|
-
}, null, 8,
|
|
1414
|
-
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (r(), i("g",
|
|
1415
|
-
(r(!0), i(
|
|
1424
|
+
}, null, 8, ht)) : d("", !0),
|
|
1425
|
+
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (r(), i("g", ut, [
|
|
1426
|
+
(r(!0), i(u, null, I(e.yLabels, (a) => (r(), i("line", {
|
|
1416
1427
|
x1: e.drawingArea.left + e.xPadding,
|
|
1417
1428
|
x2: e.drawingArea.right - e.xPadding,
|
|
1418
1429
|
y1: e.forceValidValue(a.y),
|
|
@@ -1420,11 +1431,11 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1420
1431
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1421
1432
|
"stroke-width": 0.5,
|
|
1422
1433
|
"stroke-linecap": "round"
|
|
1423
|
-
}, null, 8,
|
|
1424
|
-
])) :
|
|
1434
|
+
}, null, 8, dt))), 256))
|
|
1435
|
+
])) : d("", !0)
|
|
1425
1436
|
], 64)),
|
|
1426
|
-
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (r(), i("g",
|
|
1427
|
-
(r(!0), i(
|
|
1437
|
+
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (r(), i("g", It, [
|
|
1438
|
+
(r(!0), i(u, null, I(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (a, c) => (r(), i("line", {
|
|
1428
1439
|
key: `grid_vertical_line_${c}`,
|
|
1429
1440
|
x1: e.drawingArea.width / e.maxSeries * c + e.drawingArea.left + e.xPadding,
|
|
1430
1441
|
x2: e.drawingArea.width / e.maxSeries * c + e.drawingArea.left + e.xPadding,
|
|
@@ -1432,10 +1443,10 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1432
1443
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1433
1444
|
"stroke-width": "0.5",
|
|
1434
1445
|
stroke: e.FINAL_CONFIG.chart.grid.stroke
|
|
1435
|
-
}, null, 8,
|
|
1436
|
-
])) :
|
|
1446
|
+
}, null, 8, Nt))), 128))
|
|
1447
|
+
])) : d("", !0)
|
|
1437
1448
|
]),
|
|
1438
|
-
(r(!0), i(
|
|
1449
|
+
(r(!0), i(u, null, I(e.barSet, (a, c) => (r(), i("defs", {
|
|
1439
1450
|
key: `def_rect_${c}`
|
|
1440
1451
|
}, [
|
|
1441
1452
|
f("linearGradient", {
|
|
@@ -1446,16 +1457,16 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1446
1457
|
f("stop", {
|
|
1447
1458
|
offset: "0%",
|
|
1448
1459
|
"stop-color": a.color
|
|
1449
|
-
}, null, 8,
|
|
1460
|
+
}, null, 8, xt),
|
|
1450
1461
|
f("stop", {
|
|
1451
1462
|
offset: "62%",
|
|
1452
1463
|
"stop-color": `${e.shiftHue(a.color, 0.02)}`
|
|
1453
|
-
}, null, 8,
|
|
1464
|
+
}, null, 8, bt),
|
|
1454
1465
|
f("stop", {
|
|
1455
1466
|
offset: "100%",
|
|
1456
1467
|
"stop-color": `${e.shiftHue(a.color, 0.05)}`
|
|
1457
|
-
}, null, 8,
|
|
1458
|
-
], 8,
|
|
1468
|
+
}, null, 8, Ft)
|
|
1469
|
+
], 8, mt),
|
|
1459
1470
|
f("linearGradient", {
|
|
1460
1471
|
id: `rectGradient_neg_${c}_${l.uniqueId}`,
|
|
1461
1472
|
x2: "0%",
|
|
@@ -1464,18 +1475,18 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1464
1475
|
f("stop", {
|
|
1465
1476
|
offset: "0%",
|
|
1466
1477
|
"stop-color": `${e.shiftHue(a.color, 0.05)}`
|
|
1467
|
-
}, null, 8,
|
|
1478
|
+
}, null, 8, yt),
|
|
1468
1479
|
f("stop", {
|
|
1469
1480
|
offset: "38%",
|
|
1470
1481
|
"stop-color": `${e.shiftHue(a.color, 0.02)}`
|
|
1471
|
-
}, null, 8,
|
|
1482
|
+
}, null, 8, At),
|
|
1472
1483
|
f("stop", {
|
|
1473
1484
|
offset: "100%",
|
|
1474
1485
|
"stop-color": a.color
|
|
1475
|
-
}, null, 8,
|
|
1476
|
-
], 8,
|
|
1486
|
+
}, null, 8, Lt)
|
|
1487
|
+
], 8, _t)
|
|
1477
1488
|
]))), 128)),
|
|
1478
|
-
(r(!0), i(
|
|
1489
|
+
(r(!0), i(u, null, I(e.plotSet, (a, c) => (r(), i("defs", {
|
|
1479
1490
|
key: `def_plot_${c}`
|
|
1480
1491
|
}, [
|
|
1481
1492
|
f("radialGradient", {
|
|
@@ -1489,14 +1500,14 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1489
1500
|
f("stop", {
|
|
1490
1501
|
offset: "0%",
|
|
1491
1502
|
"stop-color": `${e.shiftHue(a.color, 0.05)}`
|
|
1492
|
-
}, null, 8,
|
|
1503
|
+
}, null, 8, St),
|
|
1493
1504
|
f("stop", {
|
|
1494
1505
|
offset: "100%",
|
|
1495
1506
|
"stop-color": a.color
|
|
1496
|
-
}, null, 8,
|
|
1497
|
-
], 8,
|
|
1507
|
+
}, null, 8, kt)
|
|
1508
|
+
], 8, Ct)
|
|
1498
1509
|
]))), 128)),
|
|
1499
|
-
(r(!0), i(
|
|
1510
|
+
(r(!0), i(u, null, I(e.lineSet, (a, c) => (r(), i("defs", {
|
|
1500
1511
|
key: `def_line_${c}`
|
|
1501
1512
|
}, [
|
|
1502
1513
|
f("radialGradient", {
|
|
@@ -1510,12 +1521,12 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1510
1521
|
f("stop", {
|
|
1511
1522
|
offset: "0%",
|
|
1512
1523
|
"stop-color": `${e.shiftHue(a.color, 0.05)}`
|
|
1513
|
-
}, null, 8,
|
|
1524
|
+
}, null, 8, Ot),
|
|
1514
1525
|
f("stop", {
|
|
1515
1526
|
offset: "100%",
|
|
1516
1527
|
"stop-color": a.color
|
|
1517
|
-
}, null, 8,
|
|
1518
|
-
], 8,
|
|
1528
|
+
}, null, 8, Gt)
|
|
1529
|
+
], 8, wt),
|
|
1519
1530
|
f("linearGradient", {
|
|
1520
1531
|
id: `areaGradient_${c}_${l.uniqueId}`,
|
|
1521
1532
|
x1: "0%",
|
|
@@ -1526,31 +1537,31 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1526
1537
|
f("stop", {
|
|
1527
1538
|
offset: "0%",
|
|
1528
1539
|
"stop-color": `${e.setOpacity(e.shiftHue(a.color, 0.03), e.FINAL_CONFIG.line.area.opacity)}`
|
|
1529
|
-
}, null, 8,
|
|
1540
|
+
}, null, 8, pt),
|
|
1530
1541
|
f("stop", {
|
|
1531
1542
|
offset: "100%",
|
|
1532
1543
|
"stop-color": `${e.setOpacity(a.color, e.FINAL_CONFIG.line.area.opacity)}`
|
|
1533
|
-
}, null, 8,
|
|
1534
|
-
], 8,
|
|
1544
|
+
}, null, 8, zt)
|
|
1545
|
+
], 8, vt)
|
|
1535
1546
|
]))), 128)),
|
|
1536
|
-
(r(!0), i(
|
|
1537
|
-
a.show ? (r(!0), i(
|
|
1547
|
+
(r(!0), i(u, null, I(e.highlightAreas, (a) => (r(), i("g", null, [
|
|
1548
|
+
a.show ? (r(!0), i(u, { key: 0 }, I(a.span, (c, s) => (r(), i("g", null, [
|
|
1538
1549
|
f("rect", {
|
|
1539
|
-
style:
|
|
1550
|
+
style: b({
|
|
1540
1551
|
transition: "none",
|
|
1541
|
-
opacity: a.from +
|
|
1552
|
+
opacity: a.from + s >= l.slicer.start && a.from + s <= l.slicer.end - 1 ? 1 : 0
|
|
1542
1553
|
}),
|
|
1543
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (a.from +
|
|
1554
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (a.from + s - l.slicer.start),
|
|
1544
1555
|
y: e.drawingArea.top,
|
|
1545
1556
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1546
1557
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1547
1558
|
fill: e.setOpacity(a.color, a.opacity)
|
|
1548
|
-
}, null, 12,
|
|
1549
|
-
a.caption.text &&
|
|
1559
|
+
}, null, 12, Mt),
|
|
1560
|
+
a.caption.text && s === 0 ? (r(), i("foreignObject", {
|
|
1550
1561
|
key: 0,
|
|
1551
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (a.from +
|
|
1562
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (a.from + s - l.slicer.start) - (a.caption.width === "auto" ? 0 : a.caption.width / 2 - e.drawingArea.width / e.maxSeries * a.span / 2),
|
|
1552
1563
|
y: e.drawingArea.top + a.caption.offsetY,
|
|
1553
|
-
style:
|
|
1564
|
+
style: b({
|
|
1554
1565
|
overflow: "visible",
|
|
1555
1566
|
opacity: a.to >= l.slicer.start && a.from < l.slicer.end ? 1 : 0
|
|
1556
1567
|
}),
|
|
@@ -1558,13 +1569,13 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1558
1569
|
width: a.caption.width === "auto" ? e.drawingArea.width / e.maxSeries * a.span : a.caption.width
|
|
1559
1570
|
}, [
|
|
1560
1571
|
f("div", {
|
|
1561
|
-
style:
|
|
1562
|
-
},
|
|
1563
|
-
], 12,
|
|
1564
|
-
]))), 256)) :
|
|
1572
|
+
style: b(`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"}`)
|
|
1573
|
+
}, P(a.caption.text), 5)
|
|
1574
|
+
], 12, Tt)) : d("", !0)
|
|
1575
|
+
]))), 256)) : d("", !0)
|
|
1565
1576
|
]))), 256)),
|
|
1566
1577
|
f("g", null, [
|
|
1567
|
-
(r(!0), i(
|
|
1578
|
+
(r(!0), i(u, null, I(e.maxSeries, (a, c) => (r(), i("g", {
|
|
1568
1579
|
key: `tooltip_trap_highlighter_${c}`
|
|
1569
1580
|
}, [
|
|
1570
1581
|
f("rect", {
|
|
@@ -1573,53 +1584,53 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1573
1584
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1574
1585
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1575
1586
|
fill: [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(c) ? e.setOpacity(e.FINAL_CONFIG.chart.highlighter.color, e.FINAL_CONFIG.chart.highlighter.opacity) : "transparent"
|
|
1576
|
-
}, null, 8,
|
|
1587
|
+
}, null, 8, Pt)
|
|
1577
1588
|
]))), 128))
|
|
1578
1589
|
]),
|
|
1579
|
-
e.barSet.length ? (r(!0), i(
|
|
1590
|
+
e.barSet.length ? (r(!0), i(u, { key: 0 }, I(e.barSet, (a, c) => (r(), i("g", {
|
|
1580
1591
|
key: `serie_bar_${c}`,
|
|
1581
|
-
class:
|
|
1582
|
-
style:
|
|
1592
|
+
class: W(`serie_bar_${c}`),
|
|
1593
|
+
style: b(`opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1583
1594
|
}, [
|
|
1584
|
-
(r(!0), i(
|
|
1595
|
+
(r(!0), i(u, null, I(a.plots, (s, h) => (r(), i("g", {
|
|
1585
1596
|
key: `bar_plot_${c}_${h}`
|
|
1586
1597
|
}, [
|
|
1587
|
-
e.canShowValue(
|
|
1598
|
+
e.canShowValue(s.value) ? (r(), i("rect", {
|
|
1588
1599
|
key: 0,
|
|
1589
|
-
x: e.calcRectX(
|
|
1590
|
-
y: l.mutableConfig.useIndividualScale ? e.calcIndividualRectY(
|
|
1591
|
-
height: l.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(
|
|
1600
|
+
x: e.calcRectX(s),
|
|
1601
|
+
y: l.mutableConfig.useIndividualScale ? e.calcIndividualRectY(s) : e.calcRectY(s),
|
|
1602
|
+
height: l.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(s)) : Math.abs(e.calcRectHeight(s)),
|
|
1592
1603
|
width: e.calcRectWidth() - (l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? 0 : e.barPeriodGap) < 0 ? 1e-5 : e.calcRectWidth() - (l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? 0 : e.barPeriodGap),
|
|
1593
1604
|
rx: e.FINAL_CONFIG.bar.borderRadius,
|
|
1594
|
-
fill: e.FINAL_CONFIG.bar.useGradient ?
|
|
1605
|
+
fill: e.FINAL_CONFIG.bar.useGradient ? s.value >= 0 ? `url(#rectGradient_pos_${c}_${l.uniqueId})` : `url(#rectGradient_neg_${c}_${l.uniqueId})` : a.color,
|
|
1595
1606
|
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? a.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1596
1607
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1597
|
-
}, null, 8,
|
|
1598
|
-
e.canShowValue(
|
|
1608
|
+
}, null, 8, Vt)) : d("", !0),
|
|
1609
|
+
e.canShowValue(s.value) && t.$slots.pattern ? (r(), i("rect", {
|
|
1599
1610
|
key: 1,
|
|
1600
|
-
x: e.calcRectX(
|
|
1601
|
-
y: l.mutableConfig.useIndividualScale ? e.calcIndividualRectY(
|
|
1602
|
-
height: l.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(
|
|
1611
|
+
x: e.calcRectX(s),
|
|
1612
|
+
y: l.mutableConfig.useIndividualScale ? e.calcIndividualRectY(s) : e.calcRectY(s),
|
|
1613
|
+
height: l.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(s)) : Math.abs(e.calcRectHeight(s)),
|
|
1603
1614
|
width: e.calcRectWidth() - (l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? 0 : e.barPeriodGap) < 0 ? 1e-5 : e.calcRectWidth() - (l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? 0 : e.barPeriodGap),
|
|
1604
1615
|
rx: e.FINAL_CONFIG.bar.borderRadius,
|
|
1605
1616
|
fill: `url(#pattern_${l.uniqueId}_${a.slotAbsoluteIndex})`,
|
|
1606
1617
|
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? a.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1607
1618
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1608
|
-
}, null, 8,
|
|
1609
|
-
|
|
1619
|
+
}, null, 8, Rt)) : d("", !0),
|
|
1620
|
+
s.comment && e.FINAL_CONFIG.chart.comments.show ? (r(), i("foreignObject", {
|
|
1610
1621
|
key: 2,
|
|
1611
1622
|
style: { overflow: "visible" },
|
|
1612
1623
|
height: "12",
|
|
1613
1624
|
width: (e.calcRectWidth() - (l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? 0 : e.barPeriodGap) < 0 ? 1e-5 : e.calcRectWidth() - (l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? 0 : e.barPeriodGap) / 2) + e.FINAL_CONFIG.chart.comments.width,
|
|
1614
|
-
x: e.calcRectX(
|
|
1615
|
-
y: e.checkNaN(
|
|
1625
|
+
x: e.calcRectX(s) - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1626
|
+
y: e.checkNaN(s.y) + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1616
1627
|
}, [
|
|
1617
1628
|
S(t.$slots, "plot-comment", {
|
|
1618
|
-
plot: { ...
|
|
1629
|
+
plot: { ...s, color: a.color, seriesIndex: c, datapointIndex: h }
|
|
1619
1630
|
}, void 0, !0)
|
|
1620
|
-
], 8,
|
|
1631
|
+
], 8, Ht)) : d("", !0)
|
|
1621
1632
|
]))), 128)),
|
|
1622
|
-
Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (r(), i("g",
|
|
1633
|
+
Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (r(), i("g", Dt, [
|
|
1623
1634
|
f("defs", null, [
|
|
1624
1635
|
f("marker", {
|
|
1625
1636
|
id: `bar_arrow_${c}`,
|
|
@@ -1632,8 +1643,8 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1632
1643
|
f("polygon", {
|
|
1633
1644
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1634
1645
|
fill: a.color
|
|
1635
|
-
}, null, 8,
|
|
1636
|
-
], 8,
|
|
1646
|
+
}, null, 8, Bt)
|
|
1647
|
+
], 8, Wt)
|
|
1637
1648
|
]),
|
|
1638
1649
|
a.plots.length > 1 ? (r(), i("line", {
|
|
1639
1650
|
key: 0,
|
|
@@ -1645,7 +1656,7 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1645
1656
|
stroke: a.color,
|
|
1646
1657
|
"stroke-dasharray": 2,
|
|
1647
1658
|
"marker-end": `url(#bar_arrow_${c})`
|
|
1648
|
-
}, null, 8,
|
|
1659
|
+
}, null, 8, Et)) : d("", !0),
|
|
1649
1660
|
a.plots.length > 1 ? (r(), i("text", {
|
|
1650
1661
|
key: 1,
|
|
1651
1662
|
"text-anchor": "middle",
|
|
@@ -1653,13 +1664,13 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1653
1664
|
y: e.calcLinearProgression(a.plots).y2 - 6,
|
|
1654
1665
|
"font-size": l.fontSizes.plotLabels,
|
|
1655
1666
|
fill: a.color
|
|
1656
|
-
},
|
|
1667
|
+
}, P(e.dataLabel({
|
|
1657
1668
|
v: e.calcLinearProgression(a.plots).trend * 100,
|
|
1658
1669
|
s: "%",
|
|
1659
1670
|
r: 2
|
|
1660
|
-
})), 9,
|
|
1661
|
-
])) :
|
|
1662
|
-
], 6))), 128)) :
|
|
1671
|
+
})), 9, Yt)) : d("", !0)
|
|
1672
|
+
])) : d("", !0)
|
|
1673
|
+
], 6))), 128)) : d("", !0),
|
|
1663
1674
|
!l.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (r(), i("line", {
|
|
1664
1675
|
key: 1,
|
|
1665
1676
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
@@ -1669,8 +1680,8 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1669
1680
|
y1: e.forceValidValue(e.zero),
|
|
1670
1681
|
y2: e.forceValidValue(e.zero),
|
|
1671
1682
|
"stroke-linecap": "round"
|
|
1672
|
-
}, null, 8,
|
|
1673
|
-
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (r(), i("g",
|
|
1683
|
+
}, null, 8, qt)) : d("", !0),
|
|
1684
|
+
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (r(), i("g", Xt, [
|
|
1674
1685
|
f("line", {
|
|
1675
1686
|
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
|
|
1676
1687
|
x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
|
|
@@ -1681,8 +1692,8 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1681
1692
|
"stroke-dasharray": e.FINAL_CONFIG.chart.highlighter.lineDasharray,
|
|
1682
1693
|
"stroke-linecap": "round",
|
|
1683
1694
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
1684
|
-
}, null, 8,
|
|
1685
|
-
])) :
|
|
1695
|
+
}, null, 8, Ut)
|
|
1696
|
+
])) : d("", !0),
|
|
1686
1697
|
e.FINAL_CONFIG.chart.grid.frame.show ? (r(), i("rect", {
|
|
1687
1698
|
key: 3,
|
|
1688
1699
|
style: { pointerEvents: "none", transition: "none" },
|
|
@@ -1696,10 +1707,10 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1696
1707
|
"stroke-linecap": e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,
|
|
1697
1708
|
"stroke-linejoin": e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,
|
|
1698
1709
|
"stroke-dasharray": e.FINAL_CONFIG.chart.grid.frame.strokeDasharray
|
|
1699
|
-
}, null, 8,
|
|
1700
|
-
e.FINAL_CONFIG.chart.grid.labels.show ? (r(), i("g",
|
|
1701
|
-
l.mutableConfig.useIndividualScale ? (r(), i(
|
|
1702
|
-
(r(!0), i(
|
|
1710
|
+
}, null, 8, Zt)) : d("", !0),
|
|
1711
|
+
e.FINAL_CONFIG.chart.grid.labels.show ? (r(), i("g", Jt, [
|
|
1712
|
+
l.mutableConfig.useIndividualScale ? (r(), i(u, { key: 0 }, [
|
|
1713
|
+
(r(!0), i(u, null, I(e.allScales, (a) => (r(), i("g", null, [
|
|
1703
1714
|
f("line", {
|
|
1704
1715
|
x1: a.x + e.xPadding,
|
|
1705
1716
|
x2: a.x + e.xPadding,
|
|
@@ -1708,19 +1719,19 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1708
1719
|
stroke: a.color,
|
|
1709
1720
|
"stroke-width": e.FINAL_CONFIG.chart.grid.stroke,
|
|
1710
1721
|
"stroke-linecap": "round",
|
|
1711
|
-
style:
|
|
1712
|
-
}, null, 12,
|
|
1722
|
+
style: b(`opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1723
|
+
}, null, 12, Qt)
|
|
1713
1724
|
]))), 256)),
|
|
1714
|
-
(r(!0), i(
|
|
1715
|
-
style:
|
|
1725
|
+
(r(!0), i(u, null, I(e.allScales, (a) => (r(), i("g", {
|
|
1726
|
+
style: b(`opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1716
1727
|
}, [
|
|
1717
1728
|
f("text", {
|
|
1718
1729
|
fill: a.color,
|
|
1719
1730
|
"font-size": l.fontSizes.dataLabels,
|
|
1720
1731
|
"text-anchor": "middle",
|
|
1721
1732
|
transform: `translate(${a.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + 5 + e.xPadding + e.FINAL_CONFIG.chart.grid.labels.yAxis.scaleLabelOffsetX}, ${l.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset - a.individualHeight / 2 : e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`
|
|
1722
|
-
},
|
|
1723
|
-
(r(!0), i(
|
|
1733
|
+
}, P(a.name) + " " + P(a.scaleLabel && a.unique && a.scaleLabel !== a.id ? `- ${a.scaleLabel}` : ""), 9, Kt),
|
|
1734
|
+
(r(!0), i(u, null, I(a.yLabels, (c, s) => (r(), i("line", {
|
|
1724
1735
|
x1: a.x - 3 + e.xPadding,
|
|
1725
1736
|
x2: a.x + e.xPadding,
|
|
1726
1737
|
y1: e.forceValidValue(c.y),
|
|
@@ -1728,14 +1739,14 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1728
1739
|
stroke: a.color,
|
|
1729
1740
|
"stroke-width": 1,
|
|
1730
1741
|
"stroke-linecap": "round"
|
|
1731
|
-
}, null, 8,
|
|
1732
|
-
(r(!0), i(
|
|
1742
|
+
}, null, 8, jt))), 256)),
|
|
1743
|
+
(r(!0), i(u, null, I(a.yLabels, (c, s) => (r(), i("text", {
|
|
1733
1744
|
x: a.x - 5 + e.xPadding + e.FINAL_CONFIG.chart.grid.labels.yAxis.scaleValueOffsetX,
|
|
1734
1745
|
y: e.forceValidValue(c.y) + l.fontSizes.dataLabels / 3,
|
|
1735
1746
|
"font-size": l.fontSizes.dataLabels,
|
|
1736
1747
|
"text-anchor": "end",
|
|
1737
1748
|
fill: a.color
|
|
1738
|
-
},
|
|
1749
|
+
}, P(e.applyDataLabel(
|
|
1739
1750
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1740
1751
|
c.value,
|
|
1741
1752
|
e.dataLabel({
|
|
@@ -1744,10 +1755,10 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1744
1755
|
s: c.suffix,
|
|
1745
1756
|
r: 1
|
|
1746
1757
|
}),
|
|
1747
|
-
{ datapoint: c.datapoint, seriesIndex:
|
|
1748
|
-
)), 9,
|
|
1758
|
+
{ datapoint: c.datapoint, seriesIndex: s }
|
|
1759
|
+
)), 9, $t))), 256))
|
|
1749
1760
|
], 4))), 256))
|
|
1750
|
-
], 64)) : (r(!0), i(
|
|
1761
|
+
], 64)) : (r(!0), i(u, { key: 1 }, I(e.yLabels, (a, c) => (r(), i("g", {
|
|
1751
1762
|
key: `yLabel_${c}`
|
|
1752
1763
|
}, [
|
|
1753
1764
|
e.canShowValue(a) && a.value >= e.niceScale.min && a.value <= e.niceScale.max ? (r(), i("line", {
|
|
@@ -1759,7 +1770,7 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1759
1770
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1760
1771
|
"stroke-width": "1",
|
|
1761
1772
|
"stroke-linecap": "round"
|
|
1762
|
-
}, null, 8,
|
|
1773
|
+
}, null, 8, el)) : d("", !0),
|
|
1763
1774
|
a.value >= e.niceScale.min && a.value <= e.niceScale.max ? (r(), i("text", {
|
|
1764
1775
|
key: 1,
|
|
1765
1776
|
x: e.drawingArea.left - 7 + e.xPadding,
|
|
@@ -1767,7 +1778,7 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1767
1778
|
"font-size": l.fontSizes.dataLabels,
|
|
1768
1779
|
"text-anchor": "end",
|
|
1769
1780
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
1770
|
-
},
|
|
1781
|
+
}, P(e.canShowValue(a.value) ? e.applyDataLabel(
|
|
1771
1782
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1772
1783
|
a.value,
|
|
1773
1784
|
e.dataLabel({
|
|
@@ -1776,42 +1787,42 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1776
1787
|
s: a.suffix,
|
|
1777
1788
|
r: 1
|
|
1778
1789
|
})
|
|
1779
|
-
) : ""), 9,
|
|
1790
|
+
) : ""), 9, tl)) : d("", !0)
|
|
1780
1791
|
]))), 128))
|
|
1781
|
-
])) :
|
|
1782
|
-
(r(!0), i(
|
|
1792
|
+
])) : d("", !0),
|
|
1793
|
+
(r(!0), i(u, null, I(e.plotSet, (a, c) => (r(), i("g", {
|
|
1783
1794
|
key: `serie_plot_${c}`,
|
|
1784
|
-
class:
|
|
1785
|
-
style:
|
|
1795
|
+
class: W(`serie_plot_${c}`),
|
|
1796
|
+
style: b(`opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1786
1797
|
}, [
|
|
1787
|
-
(r(!0), i(
|
|
1798
|
+
(r(!0), i(u, null, I(a.plots, (s, h) => (r(), i("g", {
|
|
1788
1799
|
key: `circle_plot_${c}_${h}`
|
|
1789
1800
|
}, [
|
|
1790
|
-
|
|
1801
|
+
s && e.canShowValue(s.value) ? (r(), D(v, {
|
|
1791
1802
|
key: 0,
|
|
1792
1803
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(a.shape) ? a.shape : "circle",
|
|
1793
1804
|
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${c}_${l.uniqueId})` : e.FINAL_CONFIG.plot.dot.useSerieColor ? a.color : e.FINAL_CONFIG.plot.dot.fill,
|
|
1794
|
-
plot: { x: e.checkNaN(
|
|
1805
|
+
plot: { x: e.checkNaN(s.x), y: e.checkNaN(s.y) },
|
|
1795
1806
|
radius: l.selectedSerieIndex !== null && l.selectedSerieIndex === h || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === h ? (l.plotRadii.plot || 6) * 1.5 : l.plotRadii.plot || 6,
|
|
1796
1807
|
stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : a.color,
|
|
1797
1808
|
strokeWidth: e.FINAL_CONFIG.plot.dot.strokeWidth
|
|
1798
|
-
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) :
|
|
1799
|
-
|
|
1809
|
+
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : d("", !0),
|
|
1810
|
+
s.comment && e.FINAL_CONFIG.chart.comments.show ? (r(), i("foreignObject", {
|
|
1800
1811
|
key: 1,
|
|
1801
1812
|
style: { overflow: "visible" },
|
|
1802
1813
|
height: "12",
|
|
1803
1814
|
width: e.FINAL_CONFIG.chart.comments.width,
|
|
1804
|
-
x:
|
|
1805
|
-
y:
|
|
1815
|
+
x: s.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1816
|
+
y: s.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1806
1817
|
}, [
|
|
1807
|
-
f("div",
|
|
1818
|
+
f("div", al, [
|
|
1808
1819
|
S(t.$slots, "plot-comment", {
|
|
1809
|
-
plot: { ...
|
|
1820
|
+
plot: { ...s, color: a.color, seriesIndex: c, datapointIndex: h }
|
|
1810
1821
|
}, void 0, !0)
|
|
1811
1822
|
])
|
|
1812
|
-
], 8,
|
|
1823
|
+
], 8, ll)) : d("", !0)
|
|
1813
1824
|
]))), 128)),
|
|
1814
|
-
Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (r(), i("g",
|
|
1825
|
+
Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (r(), i("g", rl, [
|
|
1815
1826
|
f("defs", null, [
|
|
1816
1827
|
f("marker", {
|
|
1817
1828
|
id: `plot_arrow_${c}`,
|
|
@@ -1824,8 +1835,8 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1824
1835
|
f("polygon", {
|
|
1825
1836
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1826
1837
|
fill: a.color
|
|
1827
|
-
}, null, 8,
|
|
1828
|
-
], 8,
|
|
1838
|
+
}, null, 8, sl)
|
|
1839
|
+
], 8, il)
|
|
1829
1840
|
]),
|
|
1830
1841
|
a.plots.length > 1 ? (r(), i("line", {
|
|
1831
1842
|
key: 0,
|
|
@@ -1837,7 +1848,7 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1837
1848
|
stroke: a.color,
|
|
1838
1849
|
"stroke-dasharray": 2,
|
|
1839
1850
|
"marker-end": `url(#plot_arrow_${c})`
|
|
1840
|
-
}, null, 8,
|
|
1851
|
+
}, null, 8, nl)) : d("", !0),
|
|
1841
1852
|
a.plots.length > 1 ? (r(), i("text", {
|
|
1842
1853
|
key: 1,
|
|
1843
1854
|
"text-anchor": "middle",
|
|
@@ -1845,17 +1856,17 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1845
1856
|
y: e.calcLinearProgression(a.plots).y2 - 6,
|
|
1846
1857
|
"font-size": l.fontSizes.plotLabels,
|
|
1847
1858
|
fill: a.color
|
|
1848
|
-
},
|
|
1859
|
+
}, P(e.dataLabel({
|
|
1849
1860
|
v: e.calcLinearProgression(a.plots).trend * 100,
|
|
1850
1861
|
s: "%",
|
|
1851
1862
|
r: 2
|
|
1852
|
-
})), 9,
|
|
1853
|
-
])) :
|
|
1863
|
+
})), 9, cl)) : d("", !0)
|
|
1864
|
+
])) : d("", !0)
|
|
1854
1865
|
], 6))), 128)),
|
|
1855
|
-
(r(!0), i(
|
|
1866
|
+
(r(!0), i(u, null, I(e.lineSet, (a, c) => (r(), i("g", {
|
|
1856
1867
|
key: `serie_line_${c}`,
|
|
1857
|
-
class:
|
|
1858
|
-
style:
|
|
1868
|
+
class: W(`serie_line_${c}`),
|
|
1869
|
+
style: b(`opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1859
1870
|
}, [
|
|
1860
1871
|
a.smooth && a.plots.length > 1 ? (r(), i("path", {
|
|
1861
1872
|
key: 0,
|
|
@@ -1864,7 +1875,7 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1864
1875
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1865
1876
|
"stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1866
1877
|
fill: "none"
|
|
1867
|
-
}, null, 8,
|
|
1878
|
+
}, null, 8, ol)) : a.plots.length > 1 ? (r(), i("path", {
|
|
1868
1879
|
key: 1,
|
|
1869
1880
|
d: `M${a.straight}`,
|
|
1870
1881
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
@@ -1873,42 +1884,42 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1873
1884
|
fill: "none",
|
|
1874
1885
|
"stroke-linecap": "round",
|
|
1875
1886
|
"stroke-linejoin": "round"
|
|
1876
|
-
}, null, 8,
|
|
1887
|
+
}, null, 8, hl)) : d("", !0)
|
|
1877
1888
|
], 6))), 128)),
|
|
1878
|
-
t.$slots.pattern ? (r(), i("defs",
|
|
1879
|
-
(r(!0), i(
|
|
1889
|
+
t.$slots.pattern ? (r(), i("defs", ul, [
|
|
1890
|
+
(r(!0), i(u, null, I(e.safeDataset, (a, c) => S(t.$slots, "pattern", K({
|
|
1880
1891
|
key: `serie_pattern_slot_${c}`,
|
|
1881
1892
|
ref_for: !0
|
|
1882
1893
|
}, { ...a, seriesIndex: a.slotAbsoluteIndex, patternId: `pattern_${l.uniqueId}_${c}` }), void 0, !0)), 128))
|
|
1883
|
-
])) :
|
|
1884
|
-
(r(!0), i(
|
|
1894
|
+
])) : d("", !0),
|
|
1895
|
+
(r(!0), i(u, null, I(e.lineSet, (a, c) => (r(), i("g", {
|
|
1885
1896
|
key: `serie_line_${c}`,
|
|
1886
|
-
class:
|
|
1887
|
-
style:
|
|
1897
|
+
class: W(`serie_line_${c}`),
|
|
1898
|
+
style: b(`opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1888
1899
|
}, [
|
|
1889
|
-
a.useArea && a.plots.length > 1 ? (r(), i("g",
|
|
1890
|
-
a.smooth ? (r(), i(
|
|
1900
|
+
a.useArea && a.plots.length > 1 ? (r(), i("g", dl, [
|
|
1901
|
+
a.smooth ? (r(!0), i(u, { key: 0 }, I(a.curveAreas, (s, h) => (r(), i(u, { key: h }, [
|
|
1891
1902
|
f("path", {
|
|
1892
|
-
d:
|
|
1903
|
+
d: s,
|
|
1893
1904
|
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${c}_${l.uniqueId})` : e.setOpacity(a.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1894
|
-
}, null, 8,
|
|
1905
|
+
}, null, 8, gl),
|
|
1895
1906
|
t.$slots.pattern ? (r(), i("path", {
|
|
1896
1907
|
key: 0,
|
|
1897
|
-
d:
|
|
1908
|
+
d: s,
|
|
1898
1909
|
fill: `url(#pattern_${l.uniqueId}_${a.slotAbsoluteIndex})`
|
|
1899
|
-
}, null, 8,
|
|
1900
|
-
], 64)) : (r(), i(
|
|
1910
|
+
}, null, 8, fl)) : d("", !0)
|
|
1911
|
+
], 64))), 128)) : (r(!0), i(u, { key: 1 }, I(a.area.split(";"), (s, h) => (r(), i(u, { key: h }, [
|
|
1901
1912
|
f("path", {
|
|
1902
|
-
d: `M${
|
|
1913
|
+
d: `M${s}Z`,
|
|
1903
1914
|
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${c}_${l.uniqueId})` : e.setOpacity(a.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1904
|
-
}, null, 8,
|
|
1915
|
+
}, null, 8, Il),
|
|
1905
1916
|
t.$slots.pattern ? (r(), i("path", {
|
|
1906
1917
|
key: 0,
|
|
1907
|
-
d: `M${
|
|
1918
|
+
d: `M${s}Z`,
|
|
1908
1919
|
fill: `url(#pattern_${l.uniqueId}_${a.slotAbsoluteIndex})`
|
|
1909
|
-
}, null, 8,
|
|
1910
|
-
], 64))
|
|
1911
|
-
])) :
|
|
1920
|
+
}, null, 8, Nl)) : d("", !0)
|
|
1921
|
+
], 64))), 128))
|
|
1922
|
+
])) : d("", !0),
|
|
1912
1923
|
a.smooth && a.plots.length > 1 ? (r(), i("path", {
|
|
1913
1924
|
key: 1,
|
|
1914
1925
|
d: `M${a.curve}`,
|
|
@@ -1917,7 +1928,7 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1917
1928
|
"stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1918
1929
|
fill: "none",
|
|
1919
1930
|
"stroke-linecap": "round"
|
|
1920
|
-
}, null, 8,
|
|
1931
|
+
}, null, 8, ml)) : a.plots.length > 1 ? (r(), i("path", {
|
|
1921
1932
|
key: 2,
|
|
1922
1933
|
d: `M${a.straight}`,
|
|
1923
1934
|
stroke: a.color,
|
|
@@ -1926,35 +1937,35 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1926
1937
|
fill: "none",
|
|
1927
1938
|
"stroke-linecap": "round",
|
|
1928
1939
|
"stroke-linejoin": "round"
|
|
1929
|
-
}, null, 8,
|
|
1930
|
-
(r(!0), i(
|
|
1940
|
+
}, null, 8, xl)) : d("", !0),
|
|
1941
|
+
(r(!0), i(u, null, I(a.plots, (s, h) => (r(), i(u, {
|
|
1931
1942
|
key: `circle_line_${c}_${h}`
|
|
1932
1943
|
}, [
|
|
1933
|
-
!e.optimize.linePlot &&
|
|
1944
|
+
!e.optimize.linePlot && s && e.canShowValue(s.value) || e.optimize.linePlot && s && e.canShowValue(s.value) && (l.selectedSerieIndex !== null && l.selectedSerieIndex === h || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === h) ? (r(), D(v, {
|
|
1934
1945
|
key: 0,
|
|
1935
1946
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(a.shape) ? a.shape : "circle",
|
|
1936
1947
|
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${c}_${l.uniqueId})` : e.FINAL_CONFIG.line.dot.useSerieColor ? a.color : e.FINAL_CONFIG.line.dot.fill,
|
|
1937
|
-
plot: { x: e.checkNaN(
|
|
1948
|
+
plot: { x: e.checkNaN(s.x), y: e.checkNaN(s.y) },
|
|
1938
1949
|
radius: l.selectedSerieIndex !== null && l.selectedSerieIndex === h || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === h ? (l.plotRadii.line || 6) * 1.5 : l.plotRadii.line || 6,
|
|
1939
1950
|
stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : a.color,
|
|
1940
1951
|
strokeWidth: e.FINAL_CONFIG.line.dot.strokeWidth
|
|
1941
|
-
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) :
|
|
1942
|
-
|
|
1952
|
+
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : d("", !0),
|
|
1953
|
+
s.comment && e.FINAL_CONFIG.chart.comments.show ? (r(), i("foreignObject", {
|
|
1943
1954
|
key: 1,
|
|
1944
1955
|
style: { overflow: "visible" },
|
|
1945
1956
|
height: "12",
|
|
1946
1957
|
width: e.FINAL_CONFIG.chart.comments.width,
|
|
1947
|
-
x:
|
|
1948
|
-
y:
|
|
1958
|
+
x: s.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1959
|
+
y: s.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1949
1960
|
}, [
|
|
1950
|
-
f("div",
|
|
1961
|
+
f("div", Fl, [
|
|
1951
1962
|
S(t.$slots, "plot-comment", {
|
|
1952
|
-
plot: { ...
|
|
1963
|
+
plot: { ...s, color: a.color, seriesIndex: c, datapointIndex: h }
|
|
1953
1964
|
}, void 0, !0)
|
|
1954
1965
|
])
|
|
1955
|
-
], 8,
|
|
1966
|
+
], 8, bl)) : d("", !0)
|
|
1956
1967
|
], 64))), 128)),
|
|
1957
|
-
Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (r(), i("g",
|
|
1968
|
+
Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (r(), i("g", _l, [
|
|
1958
1969
|
f("defs", null, [
|
|
1959
1970
|
f("marker", {
|
|
1960
1971
|
id: `line_arrow_${c}`,
|
|
@@ -1967,8 +1978,8 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1967
1978
|
f("polygon", {
|
|
1968
1979
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1969
1980
|
fill: a.color
|
|
1970
|
-
}, null, 8,
|
|
1971
|
-
], 8,
|
|
1981
|
+
}, null, 8, Al)
|
|
1982
|
+
], 8, yl)
|
|
1972
1983
|
]),
|
|
1973
1984
|
a.plots.length > 1 ? (r(), i("line", {
|
|
1974
1985
|
key: 0,
|
|
@@ -1980,7 +1991,7 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1980
1991
|
stroke: a.color,
|
|
1981
1992
|
"stroke-dasharray": 2,
|
|
1982
1993
|
"marker-end": `url(#line_arrow_${c})`
|
|
1983
|
-
}, null, 8,
|
|
1994
|
+
}, null, 8, Ll)) : d("", !0),
|
|
1984
1995
|
a.plots.length > 1 ? (r(), i("text", {
|
|
1985
1996
|
key: 1,
|
|
1986
1997
|
"text-anchor": "middle",
|
|
@@ -1988,265 +1999,265 @@ function Ca(t, s, o, g, l, e) {
|
|
|
1988
1999
|
y: e.calcLinearProgression(a.plots).y2 - 6,
|
|
1989
2000
|
"font-size": l.fontSizes.plotLabels,
|
|
1990
2001
|
fill: a.color
|
|
1991
|
-
},
|
|
2002
|
+
}, P(e.dataLabel({
|
|
1992
2003
|
v: e.calcLinearProgression(a.plots).trend * 100,
|
|
1993
2004
|
s: "%",
|
|
1994
2005
|
r: 2
|
|
1995
|
-
})), 9,
|
|
1996
|
-
])) :
|
|
2006
|
+
})), 9, Cl)) : d("", !0)
|
|
2007
|
+
])) : d("", !0)
|
|
1997
2008
|
], 6))), 128)),
|
|
1998
|
-
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && l.mutableConfig.dataLabels.show ? (r(), i("g",
|
|
1999
|
-
(r(!0), i(
|
|
2009
|
+
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && l.mutableConfig.dataLabels.show ? (r(), i("g", Sl, [
|
|
2010
|
+
(r(!0), i(u, null, I(e.barSet, (a, c) => (r(), i(u, {
|
|
2000
2011
|
key: `xLabel_bar_${c}`
|
|
2001
2012
|
}, [
|
|
2002
|
-
(r(!0), i(
|
|
2013
|
+
(r(!0), i(u, null, I(a.plots, (s, h) => (r(), i(u, {
|
|
2003
2014
|
key: `xLabel_bar_${c}_${h}`
|
|
2004
2015
|
}, [
|
|
2005
|
-
|
|
2016
|
+
s && (!Object.hasOwn(a, "dataLabels") || a.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === h || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === h) && e.FINAL_CONFIG.bar.labels.show ? (r(), i("text", {
|
|
2006
2017
|
key: 0,
|
|
2007
|
-
x: l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ?
|
|
2008
|
-
y: e.checkNaN(
|
|
2018
|
+
x: l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? s.x + e.slot.line / 2 : e.calcRectX(s) + e.calcRectWidth() / 2 - e.barPeriodGap / 2,
|
|
2019
|
+
y: e.checkNaN(s.y) + (s.value >= 0 ? e.FINAL_CONFIG.bar.labels.offsetY : -e.FINAL_CONFIG.bar.labels.offsetY * 3),
|
|
2009
2020
|
"text-anchor": "middle",
|
|
2010
2021
|
"font-size": l.fontSizes.plotLabels,
|
|
2011
2022
|
fill: e.FINAL_CONFIG.bar.labels.color,
|
|
2012
|
-
style:
|
|
2013
|
-
},
|
|
2023
|
+
style: b(`opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2024
|
+
}, P(e.canShowValue(s.value) ? e.applyDataLabel(
|
|
2014
2025
|
e.FINAL_CONFIG.bar.labels.formatter,
|
|
2015
|
-
|
|
2026
|
+
s.value,
|
|
2016
2027
|
e.dataLabel({
|
|
2017
2028
|
p: a.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
2018
|
-
v:
|
|
2029
|
+
v: s.value,
|
|
2019
2030
|
s: a.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
2020
2031
|
r: e.FINAL_CONFIG.bar.labels.rounding
|
|
2021
2032
|
}),
|
|
2022
2033
|
{
|
|
2023
|
-
datapoint:
|
|
2034
|
+
datapoint: s,
|
|
2024
2035
|
serie: a
|
|
2025
2036
|
}
|
|
2026
|
-
) : ""), 13,
|
|
2027
|
-
|
|
2037
|
+
) : ""), 13, kl)) : d("", !0),
|
|
2038
|
+
s && e.FINAL_CONFIG.bar.serieName.show ? (r(), i("text", {
|
|
2028
2039
|
key: 1,
|
|
2029
|
-
x: l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ?
|
|
2030
|
-
y:
|
|
2040
|
+
x: l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? s.x + e.slot.line / 2 : s.x + e.calcRectWidth() * 1.1,
|
|
2041
|
+
y: s.y + (s.value > 0 ? e.FINAL_CONFIG.bar.serieName.offsetY : -e.FINAL_CONFIG.bar.serieName.offsetY * 3),
|
|
2031
2042
|
"text-anchor": "middle",
|
|
2032
2043
|
"font-size": l.fontSizes.plotLabels,
|
|
2033
2044
|
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? a.color : e.FINAL_CONFIG.bar.serieName.color,
|
|
2034
2045
|
"font-weight": e.FINAL_CONFIG.bar.serieName.bold ? "bold" : "normal",
|
|
2035
|
-
style:
|
|
2036
|
-
},
|
|
2046
|
+
style: b(`opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2047
|
+
}, P(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: a.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : a.name), 13, wl)) : d("", !0)
|
|
2037
2048
|
], 64))), 128))
|
|
2038
2049
|
], 64))), 128))
|
|
2039
|
-
])) :
|
|
2040
|
-
e.FINAL_CONFIG.plot.labels.show && l.mutableConfig.dataLabels.show ? (r(), i("g",
|
|
2041
|
-
(r(!0), i(
|
|
2050
|
+
])) : d("", !0),
|
|
2051
|
+
e.FINAL_CONFIG.plot.labels.show && l.mutableConfig.dataLabels.show ? (r(), i("g", Ol, [
|
|
2052
|
+
(r(!0), i(u, null, I(e.plotSet, (a, c) => (r(), i(u, {
|
|
2042
2053
|
key: `xLabel_plot_${c}`
|
|
2043
2054
|
}, [
|
|
2044
|
-
(r(!0), i(
|
|
2055
|
+
(r(!0), i(u, null, I(a.plots, (s, h) => (r(), i(u, {
|
|
2045
2056
|
key: `xLabel_plot_${c}_${h}`
|
|
2046
2057
|
}, [
|
|
2047
|
-
|
|
2058
|
+
s && !Object.hasOwn(a, "dataLabels") || a.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === h || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === h ? (r(), i("text", {
|
|
2048
2059
|
key: 0,
|
|
2049
|
-
x:
|
|
2050
|
-
y:
|
|
2060
|
+
x: s.x,
|
|
2061
|
+
y: s.y + e.FINAL_CONFIG.plot.labels.offsetY,
|
|
2051
2062
|
"text-anchor": "middle",
|
|
2052
2063
|
"font-size": l.fontSizes.plotLabels,
|
|
2053
2064
|
fill: e.FINAL_CONFIG.plot.labels.color,
|
|
2054
|
-
style:
|
|
2055
|
-
},
|
|
2065
|
+
style: b(`opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2066
|
+
}, P(e.canShowValue(s.value) ? e.applyDataLabel(
|
|
2056
2067
|
e.FINAL_CONFIG.plot.labels.formatter,
|
|
2057
|
-
|
|
2068
|
+
s.value,
|
|
2058
2069
|
e.dataLabel({
|
|
2059
2070
|
p: a.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
2060
|
-
v:
|
|
2071
|
+
v: s.value,
|
|
2061
2072
|
s: a.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
2062
2073
|
r: e.FINAL_CONFIG.plot.labels.rounding
|
|
2063
2074
|
}),
|
|
2064
2075
|
{
|
|
2065
|
-
datapoint:
|
|
2076
|
+
datapoint: s,
|
|
2066
2077
|
serie: a
|
|
2067
2078
|
}
|
|
2068
|
-
) : ""), 13,
|
|
2079
|
+
) : ""), 13, Gl)) : d("", !0)
|
|
2069
2080
|
], 64))), 128))
|
|
2070
2081
|
], 64))), 128))
|
|
2071
|
-
])) : (r(), i("g",
|
|
2072
|
-
(r(!0), i(
|
|
2082
|
+
])) : (r(), i("g", vl, [
|
|
2083
|
+
(r(!0), i(u, null, I(e.plotSet, (a, c) => (r(), i(u, {
|
|
2073
2084
|
key: `xLabel_plot_${c}`
|
|
2074
2085
|
}, [
|
|
2075
|
-
(r(!0), i(
|
|
2086
|
+
(r(!0), i(u, null, I(a.plots, (s, h) => (r(), i(u, {
|
|
2076
2087
|
key: `xLabel_plot_${c}_${h}`
|
|
2077
2088
|
}, [
|
|
2078
|
-
e.FINAL_CONFIG.plot.tag.followValue ? (r(), i(
|
|
2089
|
+
e.FINAL_CONFIG.plot.tag.followValue ? (r(), i(u, { key: 1 }, [
|
|
2079
2090
|
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(h) && a.useTag ? (r(), i("line", {
|
|
2080
2091
|
key: 0,
|
|
2081
2092
|
class: "vue-ui-xy-tag-plot",
|
|
2082
2093
|
x1: e.drawingArea.left,
|
|
2083
2094
|
x2: e.drawingArea.right,
|
|
2084
|
-
y1:
|
|
2085
|
-
y2:
|
|
2095
|
+
y1: s.y,
|
|
2096
|
+
y2: s.y,
|
|
2086
2097
|
"stroke-width": 1,
|
|
2087
2098
|
"stroke-linecap": "round",
|
|
2088
2099
|
"stroke-dasharray": "2",
|
|
2089
2100
|
stroke: a.color
|
|
2090
|
-
}, null, 8,
|
|
2091
|
-
], 64)) : (r(), i(
|
|
2092
|
-
|
|
2101
|
+
}, null, 8, Pl)) : d("", !0)
|
|
2102
|
+
], 64)) : (r(), i(u, { key: 0 }, [
|
|
2103
|
+
s && h === 0 && a.useTag && a.useTag === "start" ? (r(), i("foreignObject", {
|
|
2093
2104
|
key: 0,
|
|
2094
|
-
x:
|
|
2095
|
-
y:
|
|
2105
|
+
x: s.x,
|
|
2106
|
+
y: s.y - 20,
|
|
2096
2107
|
height: 24,
|
|
2097
2108
|
width: "150",
|
|
2098
|
-
style:
|
|
2109
|
+
style: b(`overflow: visible; opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2099
2110
|
}, [
|
|
2100
2111
|
f("div", {
|
|
2101
|
-
style:
|
|
2112
|
+
style: b(`padding: 3px; background:${e.setOpacity(a.color, 80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`),
|
|
2102
2113
|
innerHTML: e.applyDataLabel(
|
|
2103
2114
|
e.FINAL_CONFIG.plot.tag.formatter,
|
|
2104
|
-
|
|
2115
|
+
s.value,
|
|
2105
2116
|
a.name,
|
|
2106
2117
|
{
|
|
2107
|
-
datapoint:
|
|
2118
|
+
datapoint: s,
|
|
2108
2119
|
seriesIndex: h,
|
|
2109
2120
|
serieName: a.name
|
|
2110
2121
|
}
|
|
2111
2122
|
)
|
|
2112
|
-
}, null, 12,
|
|
2113
|
-
], 12,
|
|
2114
|
-
|
|
2123
|
+
}, null, 12, zl)
|
|
2124
|
+
], 12, pl)) : d("", !0),
|
|
2125
|
+
s && h === a.plots.length - 1 && a.useTag && a.useTag === "end" ? (r(), i("foreignObject", {
|
|
2115
2126
|
key: 1,
|
|
2116
|
-
x:
|
|
2117
|
-
y:
|
|
2127
|
+
x: s.x - a.name.length * (l.fontSizes.plotLabels / 2),
|
|
2128
|
+
y: s.y - 20,
|
|
2118
2129
|
height: 24,
|
|
2119
2130
|
width: "150",
|
|
2120
|
-
style:
|
|
2131
|
+
style: b(`overflow: visible; opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2121
2132
|
}, [
|
|
2122
2133
|
f("div", {
|
|
2123
|
-
style:
|
|
2134
|
+
style: b(`padding: 3px; background:${e.setOpacity(a.color, 80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`),
|
|
2124
2135
|
innerHTML: e.applyDataLabel(
|
|
2125
2136
|
e.FINAL_CONFIG.plot.tag.formatter,
|
|
2126
|
-
|
|
2137
|
+
s.value,
|
|
2127
2138
|
a.name,
|
|
2128
2139
|
{
|
|
2129
|
-
datapoint:
|
|
2140
|
+
datapoint: s,
|
|
2130
2141
|
seriesIndex: h,
|
|
2131
2142
|
serieName: a.name
|
|
2132
2143
|
}
|
|
2133
2144
|
)
|
|
2134
|
-
}, null, 12,
|
|
2135
|
-
], 12,
|
|
2145
|
+
}, null, 12, Tl)
|
|
2146
|
+
], 12, Ml)) : d("", !0)
|
|
2136
2147
|
], 64))
|
|
2137
2148
|
], 64))), 128))
|
|
2138
2149
|
], 64))), 128))
|
|
2139
2150
|
])),
|
|
2140
|
-
e.FINAL_CONFIG.line.labels.show && l.mutableConfig.dataLabels.show ? (r(), i("g",
|
|
2141
|
-
(r(!0), i(
|
|
2151
|
+
e.FINAL_CONFIG.line.labels.show && l.mutableConfig.dataLabels.show ? (r(), i("g", Vl, [
|
|
2152
|
+
(r(!0), i(u, null, I(e.lineSet, (a, c) => (r(), i(u, {
|
|
2142
2153
|
key: `xLabel_line_${c}`
|
|
2143
2154
|
}, [
|
|
2144
|
-
(r(!0), i(
|
|
2155
|
+
(r(!0), i(u, null, I(a.plots, (s, h) => (r(), i(u, {
|
|
2145
2156
|
key: `xLabel_line_${c}_${h}`
|
|
2146
2157
|
}, [
|
|
2147
|
-
|
|
2158
|
+
s && !Object.hasOwn(a, "dataLabels") || a.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === h || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === h ? (r(), i("text", {
|
|
2148
2159
|
key: 0,
|
|
2149
|
-
x:
|
|
2150
|
-
y:
|
|
2160
|
+
x: s.x,
|
|
2161
|
+
y: s.y + (s.value >= 0 ? e.FINAL_CONFIG.line.labels.offsetY : -e.FINAL_CONFIG.line.labels.offsetY * 3),
|
|
2151
2162
|
"text-anchor": "middle",
|
|
2152
2163
|
"font-size": l.fontSizes.plotLabels,
|
|
2153
2164
|
fill: e.FINAL_CONFIG.line.labels.color,
|
|
2154
|
-
style:
|
|
2155
|
-
},
|
|
2165
|
+
style: b(`opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2166
|
+
}, P(e.canShowValue(s.value) ? e.applyDataLabel(
|
|
2156
2167
|
e.FINAL_CONFIG.line.labels.formatter,
|
|
2157
|
-
|
|
2168
|
+
s.value,
|
|
2158
2169
|
e.dataLabel({
|
|
2159
2170
|
p: a.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
2160
|
-
v:
|
|
2171
|
+
v: s.value,
|
|
2161
2172
|
s: a.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
2162
2173
|
r: e.FINAL_CONFIG.line.labels.rounding
|
|
2163
2174
|
}),
|
|
2164
2175
|
{
|
|
2165
|
-
datapoint:
|
|
2176
|
+
datapoint: s,
|
|
2166
2177
|
serie: a
|
|
2167
2178
|
}
|
|
2168
|
-
) : ""), 13,
|
|
2179
|
+
) : ""), 13, Rl)) : d("", !0)
|
|
2169
2180
|
], 64))), 128))
|
|
2170
2181
|
], 64))), 128))
|
|
2171
|
-
])) : (r(), i("g",
|
|
2172
|
-
(r(!0), i(
|
|
2182
|
+
])) : (r(), i("g", Hl, [
|
|
2183
|
+
(r(!0), i(u, null, I(e.lineSet, (a, c) => (r(), i(u, {
|
|
2173
2184
|
key: `xLabel_line_${c}`
|
|
2174
2185
|
}, [
|
|
2175
|
-
(r(!0), i(
|
|
2186
|
+
(r(!0), i(u, null, I(a.plots, (s, h) => (r(), i(u, {
|
|
2176
2187
|
key: `xLabel_line_${c}_${h}`
|
|
2177
2188
|
}, [
|
|
2178
|
-
e.FINAL_CONFIG.line.tag.followValue ? (r(), i(
|
|
2189
|
+
e.FINAL_CONFIG.line.tag.followValue ? (r(), i(u, { key: 1 }, [
|
|
2179
2190
|
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(h) && a.useTag ? (r(), i("line", {
|
|
2180
2191
|
key: 0,
|
|
2181
2192
|
class: "vue-ui-xy-tag-line",
|
|
2182
2193
|
x1: e.drawingArea.left,
|
|
2183
2194
|
x2: e.drawingArea.right,
|
|
2184
|
-
y1:
|
|
2185
|
-
y2:
|
|
2195
|
+
y1: s.y,
|
|
2196
|
+
y2: s.y,
|
|
2186
2197
|
"stroke-width": 1,
|
|
2187
2198
|
"stroke-linecap": "round",
|
|
2188
2199
|
"stroke-dasharray": "2",
|
|
2189
2200
|
stroke: a.color
|
|
2190
|
-
}, null, 8,
|
|
2191
|
-
], 64)) : (r(), i(
|
|
2192
|
-
|
|
2201
|
+
}, null, 8, Yl)) : d("", !0)
|
|
2202
|
+
], 64)) : (r(), i(u, { key: 0 }, [
|
|
2203
|
+
s && h === 0 && a.useTag && a.useTag === "start" ? (r(), i("foreignObject", {
|
|
2193
2204
|
key: 0,
|
|
2194
|
-
x:
|
|
2195
|
-
y:
|
|
2205
|
+
x: s.x,
|
|
2206
|
+
y: s.y - 20,
|
|
2196
2207
|
height: 24,
|
|
2197
2208
|
width: "150",
|
|
2198
|
-
style:
|
|
2209
|
+
style: b(`overflow: visible; opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2199
2210
|
}, [
|
|
2200
2211
|
f("div", {
|
|
2201
|
-
style:
|
|
2212
|
+
style: b(`padding: 3px; background:${e.setOpacity(a.color, 80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`),
|
|
2202
2213
|
innerHTML: e.applyDataLabel(
|
|
2203
2214
|
e.FINAL_CONFIG.line.tag.formatter,
|
|
2204
|
-
|
|
2215
|
+
s.value,
|
|
2205
2216
|
a.name,
|
|
2206
2217
|
{
|
|
2207
|
-
datapoint:
|
|
2218
|
+
datapoint: s,
|
|
2208
2219
|
seriesIndex: h,
|
|
2209
2220
|
serieName: a.name
|
|
2210
2221
|
}
|
|
2211
2222
|
)
|
|
2212
|
-
}, null, 12,
|
|
2213
|
-
], 12,
|
|
2214
|
-
|
|
2223
|
+
}, null, 12, Wl)
|
|
2224
|
+
], 12, Dl)) : d("", !0),
|
|
2225
|
+
s && h === a.plots.length - 1 && a.useTag && a.useTag === "end" ? (r(), i("foreignObject", {
|
|
2215
2226
|
key: 1,
|
|
2216
|
-
x:
|
|
2217
|
-
y:
|
|
2227
|
+
x: s.x,
|
|
2228
|
+
y: s.y - 20,
|
|
2218
2229
|
height: 24,
|
|
2219
2230
|
width: "150",
|
|
2220
|
-
style:
|
|
2231
|
+
style: b(`overflow: visible; opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2221
2232
|
}, [
|
|
2222
2233
|
f("div", {
|
|
2223
|
-
style:
|
|
2234
|
+
style: b(`padding: 3px; background:${e.setOpacity(a.color, 80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`),
|
|
2224
2235
|
innerHTML: e.applyDataLabel(
|
|
2225
2236
|
e.FINAL_CONFIG.line.tag.formatter,
|
|
2226
|
-
|
|
2237
|
+
s.value,
|
|
2227
2238
|
a.name,
|
|
2228
2239
|
{
|
|
2229
|
-
datapoint:
|
|
2240
|
+
datapoint: s,
|
|
2230
2241
|
seriesIndex: h,
|
|
2231
2242
|
serieName: a.name
|
|
2232
2243
|
}
|
|
2233
2244
|
)
|
|
2234
|
-
}, null, 12,
|
|
2235
|
-
], 12,
|
|
2245
|
+
}, null, 12, El)
|
|
2246
|
+
], 12, Bl)) : d("", !0)
|
|
2236
2247
|
], 64))
|
|
2237
2248
|
], 64))), 128))
|
|
2238
2249
|
], 64))), 128))
|
|
2239
2250
|
])),
|
|
2240
|
-
(r(!0), i(
|
|
2251
|
+
(r(!0), i(u, null, I(e.lineSet, (a, c) => (r(), i(u, {
|
|
2241
2252
|
key: `xLabel_line_${c}`
|
|
2242
2253
|
}, [
|
|
2243
|
-
(r(!0), i(
|
|
2254
|
+
(r(!0), i(u, null, I(a.plots, (s, h) => (r(), i(u, {
|
|
2244
2255
|
key: `xLabel_line_${c}_${h}`
|
|
2245
2256
|
}, [
|
|
2246
|
-
|
|
2257
|
+
s && h === 0 && a.showSerieName && a.showSerieName === "start" ? (r(), i("text", {
|
|
2247
2258
|
key: 0,
|
|
2248
|
-
x:
|
|
2249
|
-
y:
|
|
2259
|
+
x: s.x - l.fontSizes.plotLabels,
|
|
2260
|
+
y: s.y,
|
|
2250
2261
|
"font-size": l.fontSizes.plotLabels,
|
|
2251
2262
|
"text-anchor": "end",
|
|
2252
2263
|
fill: a.color,
|
|
@@ -2254,16 +2265,16 @@ function Ca(t, s, o, g, l, e) {
|
|
|
2254
2265
|
content: a.name,
|
|
2255
2266
|
fontSize: l.fontSizes.plotLabels,
|
|
2256
2267
|
fill: a.color,
|
|
2257
|
-
x:
|
|
2258
|
-
y:
|
|
2268
|
+
x: s.x - l.fontSizes.plotLabels,
|
|
2269
|
+
y: s.y,
|
|
2259
2270
|
maxWords: 2
|
|
2260
2271
|
}),
|
|
2261
|
-
style:
|
|
2262
|
-
}, null, 12,
|
|
2263
|
-
|
|
2272
|
+
style: b(`opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2273
|
+
}, null, 12, ql)) : d("", !0),
|
|
2274
|
+
s && h === a.plots.length - 1 && a.showSerieName && a.showSerieName === "end" ? (r(), i("text", {
|
|
2264
2275
|
key: 1,
|
|
2265
|
-
x:
|
|
2266
|
-
y:
|
|
2276
|
+
x: s.x + l.fontSizes.plotLabels,
|
|
2277
|
+
y: s.y,
|
|
2267
2278
|
"font-size": l.fontSizes.plotLabels,
|
|
2268
2279
|
"text-anchor": "start",
|
|
2269
2280
|
fill: a.color,
|
|
@@ -2271,24 +2282,24 @@ function Ca(t, s, o, g, l, e) {
|
|
|
2271
2282
|
content: a.name,
|
|
2272
2283
|
fontSize: l.fontSizes.plotLabels,
|
|
2273
2284
|
fill: a.color,
|
|
2274
|
-
x:
|
|
2275
|
-
y:
|
|
2285
|
+
x: s.x + l.fontSizes.plotLabels,
|
|
2286
|
+
y: s.y,
|
|
2276
2287
|
maxWords: 2
|
|
2277
2288
|
}),
|
|
2278
|
-
style:
|
|
2279
|
-
}, null, 12,
|
|
2289
|
+
style: b(`opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2290
|
+
}, null, 12, Xl)) : d("", !0)
|
|
2280
2291
|
], 64))), 128))
|
|
2281
2292
|
], 64))), 128)),
|
|
2282
|
-
(r(!0), i(
|
|
2293
|
+
(r(!0), i(u, null, I(e.plotSet, (a, c) => (r(), i(u, {
|
|
2283
2294
|
key: `xLabel_plot_${c}`
|
|
2284
2295
|
}, [
|
|
2285
|
-
(r(!0), i(
|
|
2296
|
+
(r(!0), i(u, null, I(a.plots, (s, h) => (r(), i(u, {
|
|
2286
2297
|
key: `xLabel_plot_${c}_${h}`
|
|
2287
2298
|
}, [
|
|
2288
|
-
|
|
2299
|
+
s && h === 0 && a.showSerieName && a.showSerieName === "start" ? (r(), i("text", {
|
|
2289
2300
|
key: 0,
|
|
2290
|
-
x:
|
|
2291
|
-
y:
|
|
2301
|
+
x: s.x - l.fontSizes.plotLabels,
|
|
2302
|
+
y: s.y,
|
|
2292
2303
|
"font-size": l.fontSizes.plotLabels,
|
|
2293
2304
|
"text-anchor": "end",
|
|
2294
2305
|
fill: a.color,
|
|
@@ -2296,16 +2307,16 @@ function Ca(t, s, o, g, l, e) {
|
|
|
2296
2307
|
content: a.name,
|
|
2297
2308
|
fontSize: l.fontSizes.plotLabels,
|
|
2298
2309
|
fill: a.color,
|
|
2299
|
-
x:
|
|
2300
|
-
y:
|
|
2310
|
+
x: s.x - l.fontSizes.plotLabels,
|
|
2311
|
+
y: s.y,
|
|
2301
2312
|
maxWords: 2
|
|
2302
2313
|
}),
|
|
2303
|
-
style:
|
|
2304
|
-
}, null, 12,
|
|
2305
|
-
|
|
2314
|
+
style: b(`opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2315
|
+
}, null, 12, Ul)) : d("", !0),
|
|
2316
|
+
s && h === a.plots.length - 1 && a.showSerieName && a.showSerieName === "end" ? (r(), i("text", {
|
|
2306
2317
|
key: 1,
|
|
2307
|
-
x:
|
|
2308
|
-
y:
|
|
2318
|
+
x: s.x + l.fontSizes.plotLabels,
|
|
2319
|
+
y: s.y,
|
|
2309
2320
|
"font-size": l.fontSizes.plotLabels,
|
|
2310
2321
|
"text-anchor": "start",
|
|
2311
2322
|
fill: a.color,
|
|
@@ -2313,17 +2324,17 @@ function Ca(t, s, o, g, l, e) {
|
|
|
2313
2324
|
content: a.name,
|
|
2314
2325
|
fontSize: l.fontSizes.plotLabels,
|
|
2315
2326
|
fill: a.color,
|
|
2316
|
-
x:
|
|
2317
|
-
y:
|
|
2327
|
+
x: s.x + l.fontSizes.plotLabels,
|
|
2328
|
+
y: s.y,
|
|
2318
2329
|
maxWords: 2
|
|
2319
2330
|
}),
|
|
2320
|
-
style:
|
|
2321
|
-
}, null, 12,
|
|
2331
|
+
style: b(`opacity:${l.selectedScale ? l.selectedScale === a.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2332
|
+
}, null, 12, Zl)) : d("", !0)
|
|
2322
2333
|
], 64))), 128))
|
|
2323
2334
|
], 64))), 128)),
|
|
2324
|
-
l.mutableConfig.useIndividualScale && !l.mutableConfig.isStacked ? (r(), i(
|
|
2335
|
+
l.mutableConfig.useIndividualScale && !l.mutableConfig.isStacked ? (r(), i(u, { key: 11 }, [
|
|
2325
2336
|
f("defs", null, [
|
|
2326
|
-
(r(!0), i(
|
|
2337
|
+
(r(!0), i(u, null, I(e.allScales, (a, c) => (r(), i("linearGradient", {
|
|
2327
2338
|
id: `individual_scale_gradient_${l.uniqueId}_${c}`,
|
|
2328
2339
|
x1: "0%",
|
|
2329
2340
|
x2: "100%",
|
|
@@ -2334,24 +2345,24 @@ function Ca(t, s, o, g, l, e) {
|
|
|
2334
2345
|
offset: "0%",
|
|
2335
2346
|
"stop-color": e.FINAL_CONFIG.chart.backgroundColor,
|
|
2336
2347
|
"stop-opacity": "0"
|
|
2337
|
-
}, null, 8,
|
|
2348
|
+
}, null, 8, Ql),
|
|
2338
2349
|
f("stop", {
|
|
2339
2350
|
offset: "100%",
|
|
2340
2351
|
"stop-color": a.color,
|
|
2341
2352
|
"stop-opacity": "0.2"
|
|
2342
|
-
}, null, 8,
|
|
2343
|
-
], 8,
|
|
2353
|
+
}, null, 8, Kl)
|
|
2354
|
+
], 8, Jl))), 256))
|
|
2344
2355
|
]),
|
|
2345
|
-
(r(!0), i(
|
|
2356
|
+
(r(!0), i(u, null, I(e.allScales, (a, c) => (r(), i("rect", {
|
|
2346
2357
|
x: a.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + e.xPadding,
|
|
2347
2358
|
y: e.drawingArea.top,
|
|
2348
2359
|
width: e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
2349
2360
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
2350
2361
|
fill: l.selectedScale === a.groupId ? `url(#individual_scale_gradient_${l.uniqueId}_${c})` : "transparent",
|
|
2351
|
-
onMouseenter: (
|
|
2352
|
-
onMouseleave:
|
|
2353
|
-
}, null, 40,
|
|
2354
|
-
], 64)) :
|
|
2362
|
+
onMouseenter: (s) => l.selectedScale = a.groupId,
|
|
2363
|
+
onMouseleave: n[0] || (n[0] = (s) => l.selectedScale = null)
|
|
2364
|
+
}, null, 40, jl))), 256))
|
|
2365
|
+
], 64)) : d("", !0),
|
|
2355
2366
|
f("g", null, [
|
|
2356
2367
|
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !l.mutableConfig.useIndividualScale ? (r(), i("text", {
|
|
2357
2368
|
key: 0,
|
|
@@ -2360,7 +2371,7 @@ function Ca(t, s, o, g, l, e) {
|
|
|
2360
2371
|
transform: `translate(${l.fontSizes.yAxis + e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`,
|
|
2361
2372
|
"text-anchor": "middle",
|
|
2362
2373
|
style: { transition: "none" }
|
|
2363
|
-
},
|
|
2374
|
+
}, P(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, $l)) : d("", !0),
|
|
2364
2375
|
e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (r(), i("text", {
|
|
2365
2376
|
key: 1,
|
|
2366
2377
|
"text-anchor": "middle",
|
|
@@ -2368,11 +2379,11 @@ function Ca(t, s, o, g, l, e) {
|
|
|
2368
2379
|
y: e.drawingArea.bottom + l.fontSizes.yAxis + l.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,
|
|
2369
2380
|
"font-size": l.fontSizes.yAxis,
|
|
2370
2381
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
2371
|
-
},
|
|
2382
|
+
}, P(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, ea)) : d("", !0)
|
|
2372
2383
|
]),
|
|
2373
|
-
|
|
2374
|
-
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (r(), i("g",
|
|
2375
|
-
t.$slots["time-label"] ? (r(!0), i(
|
|
2384
|
+
n[9] || (n[9] = Q('v-for="(label, i) in timeLabels" :key="`time_label_${i}`" ')),
|
|
2385
|
+
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (r(), i("g", ta, [
|
|
2386
|
+
t.$slots["time-label"] ? (r(!0), i(u, { key: 0 }, I(e.timeLabels, (a, c) => S(t.$slots, "time-label", K({
|
|
2376
2387
|
key: `time_label_${c}`,
|
|
2377
2388
|
ref_for: !0
|
|
2378
2389
|
}, {
|
|
@@ -2385,7 +2396,7 @@ function Ca(t, s, o, g, l, e) {
|
|
|
2385
2396
|
content: a.text,
|
|
2386
2397
|
textAnchor: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2387
2398
|
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 && (c === 0 || c === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || a && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.selectedSerieIndex === c && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || a && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && c % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0
|
|
2388
|
-
}), void 0, !0)), 128)) : (r(!0), i(
|
|
2399
|
+
}), void 0, !0)), 128)) : (r(!0), i(u, { key: 1 }, I(e.timeLabels, (a, c) => (r(), i("g", {
|
|
2389
2400
|
key: `time_label_${c}`
|
|
2390
2401
|
}, [
|
|
2391
2402
|
a && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || a && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (c === 0 || c === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || a && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.selectedSerieIndex === c && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || a && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && c % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (r(), i("text", {
|
|
@@ -2398,23 +2409,23 @@ function Ca(t, s, o, g, l, e) {
|
|
|
2398
2409
|
cursor: "pointer"
|
|
2399
2410
|
},
|
|
2400
2411
|
onClick: () => e.selectTimeLabel(a, c)
|
|
2401
|
-
},
|
|
2412
|
+
}, P(a.text || ""), 9, la)) : d("", !0)
|
|
2402
2413
|
]))), 128))
|
|
2403
|
-
])) :
|
|
2414
|
+
])) : d("", !0),
|
|
2404
2415
|
f("g", null, [
|
|
2405
|
-
(r(!0), i(
|
|
2416
|
+
(r(!0), i(u, null, I(e.maxSeries, (a, c) => (r(), i("rect", {
|
|
2406
2417
|
key: `tooltip_trap_${c}`,
|
|
2407
2418
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * c,
|
|
2408
2419
|
y: e.drawingArea.top,
|
|
2409
2420
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
2410
2421
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
2411
2422
|
fill: "transparent",
|
|
2412
|
-
onMouseenter: (
|
|
2413
|
-
onMouseleave:
|
|
2414
|
-
onClick: (
|
|
2415
|
-
}, null, 40,
|
|
2423
|
+
onMouseenter: (s) => e.toggleTooltipVisibility(!0, c),
|
|
2424
|
+
onMouseleave: n[1] || (n[1] = (s) => e.toggleTooltipVisibility(!1)),
|
|
2425
|
+
onClick: (s) => e.selectX(c)
|
|
2426
|
+
}, null, 40, aa))), 128))
|
|
2416
2427
|
]),
|
|
2417
|
-
e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (r(), i("g",
|
|
2428
|
+
e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (r(), i("g", ra, [
|
|
2418
2429
|
(r(), i("foreignObject", {
|
|
2419
2430
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)) - 100 + e.drawingArea.width / e.maxSeries / 2,
|
|
2420
2431
|
y: e.drawingArea.bottom,
|
|
@@ -2424,47 +2435,47 @@ function Ca(t, s, o, g, l, e) {
|
|
|
2424
2435
|
}, [
|
|
2425
2436
|
f("div", {
|
|
2426
2437
|
class: "vue-ui-xy-time-tag",
|
|
2427
|
-
style:
|
|
2428
|
-
},
|
|
2429
|
-
], 8,
|
|
2438
|
+
style: b(`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`)
|
|
2439
|
+
}, P(e.timeLabels[(l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)].text || (l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)), 5)
|
|
2440
|
+
], 8, ia)),
|
|
2430
2441
|
f("circle", {
|
|
2431
2442
|
cx: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
|
|
2432
2443
|
cy: e.drawingArea.bottom,
|
|
2433
2444
|
r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
|
|
2434
2445
|
fill: e.FINAL_CONFIG.chart.timeTag.circleMarker.color
|
|
2435
|
-
}, null, 8,
|
|
2436
|
-
])) :
|
|
2437
|
-
])) :
|
|
2446
|
+
}, null, 8, sa)
|
|
2447
|
+
])) : d("", !0)
|
|
2448
|
+
])) : d("", !0),
|
|
2438
2449
|
S(t.$slots, "svg", { svg: e.svg }, void 0, !0)
|
|
2439
|
-
], 14,
|
|
2440
|
-
t.$slots.watermark ? (r(), i("div",
|
|
2441
|
-
S(t.$slots, "watermark", E(
|
|
2442
|
-
])) :
|
|
2443
|
-
(r(!0), i(
|
|
2450
|
+
], 14, it)) : d("", !0),
|
|
2451
|
+
t.$slots.watermark ? (r(), i("div", na, [
|
|
2452
|
+
S(t.$slots, "watermark", B(E({ isPrinting: l.isPrinting || l.isImaging })), void 0, !0)
|
|
2453
|
+
])) : d("", !0),
|
|
2454
|
+
(r(!0), i(u, null, I(e.lineSet, (a, c) => (r(), i(u, {
|
|
2444
2455
|
key: `tag_line_${c}`
|
|
2445
2456
|
}, [
|
|
2446
|
-
(r(!0), i(
|
|
2457
|
+
(r(!0), i(u, null, I(a.plots, (s, h) => (r(), i(u, {
|
|
2447
2458
|
key: `tag_line_${c}_${h}`
|
|
2448
2459
|
}, [
|
|
2449
2460
|
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(h) && a.useTag && a.useTag === "end" && e.FINAL_CONFIG.line.tag.followValue ? (r(), i("div", {
|
|
2450
2461
|
key: 0,
|
|
2451
2462
|
ref_for: !0,
|
|
2452
|
-
ref: (
|
|
2463
|
+
ref: (y) => e.setTagRef(c, h, y, "right", "line"),
|
|
2453
2464
|
class: "vue-ui-xy-tag",
|
|
2454
2465
|
"data-tag": "right",
|
|
2455
|
-
style:
|
|
2466
|
+
style: b({
|
|
2456
2467
|
position: "fixed",
|
|
2457
2468
|
top: e.placeXYTag({
|
|
2458
2469
|
svgElement: l.svgRef,
|
|
2459
2470
|
x: e.drawingArea.right + e.FINAL_CONFIG.line.tag.fontSize / 1.5,
|
|
2460
|
-
y:
|
|
2471
|
+
y: s.y,
|
|
2461
2472
|
element: l.tagRefs[`${c}_${h}_right_line`],
|
|
2462
2473
|
position: "right"
|
|
2463
2474
|
}).top + "px",
|
|
2464
2475
|
left: e.placeXYTag({
|
|
2465
2476
|
svgElement: l.svgRef,
|
|
2466
2477
|
x: e.drawingArea.right + e.FINAL_CONFIG.line.tag.fontSize / 1.5,
|
|
2467
|
-
y:
|
|
2478
|
+
y: s.y,
|
|
2468
2479
|
element: l.tagRefs[`${c}_${h}_right_line`],
|
|
2469
2480
|
position: "right"
|
|
2470
2481
|
}).left + "px",
|
|
@@ -2477,46 +2488,46 @@ function Ca(t, s, o, g, l, e) {
|
|
|
2477
2488
|
opacity: 1
|
|
2478
2489
|
})
|
|
2479
2490
|
}, [
|
|
2480
|
-
(r(), i("svg",
|
|
2491
|
+
(r(), i("svg", ca, [
|
|
2481
2492
|
f("path", {
|
|
2482
2493
|
d: "M 0,10 10,0 10,20 Z",
|
|
2483
2494
|
fill: a.color,
|
|
2484
2495
|
stroke: "none"
|
|
2485
|
-
}, null, 8,
|
|
2496
|
+
}, null, 8, oa)
|
|
2486
2497
|
])),
|
|
2487
2498
|
f("div", {
|
|
2488
2499
|
class: "vue-ui-xy-tag-content",
|
|
2489
2500
|
innerHTML: e.applyDataLabel(
|
|
2490
2501
|
e.FINAL_CONFIG.line.tag.formatter,
|
|
2491
|
-
|
|
2502
|
+
s.value,
|
|
2492
2503
|
a.name,
|
|
2493
2504
|
{
|
|
2494
|
-
datapoint:
|
|
2505
|
+
datapoint: s,
|
|
2495
2506
|
seriesIndex: h,
|
|
2496
2507
|
serieName: a.name
|
|
2497
2508
|
}
|
|
2498
2509
|
)
|
|
2499
|
-
}, null, 8,
|
|
2500
|
-
], 4)) :
|
|
2510
|
+
}, null, 8, ha)
|
|
2511
|
+
], 4)) : d("", !0),
|
|
2501
2512
|
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(h) && a.useTag && a.useTag === "start" && e.FINAL_CONFIG.line.tag.followValue ? (r(), i("div", {
|
|
2502
2513
|
key: 1,
|
|
2503
2514
|
ref_for: !0,
|
|
2504
|
-
ref: (
|
|
2515
|
+
ref: (y) => e.setTagRef(c, h, y, "left", "line"),
|
|
2505
2516
|
class: "vue-ui-xy-tag",
|
|
2506
2517
|
"data-tag": "left",
|
|
2507
|
-
style:
|
|
2518
|
+
style: b({
|
|
2508
2519
|
position: "fixed",
|
|
2509
2520
|
top: e.placeXYTag({
|
|
2510
2521
|
svgElement: l.svgRef,
|
|
2511
2522
|
x: e.drawingArea.left - e.FINAL_CONFIG.line.tag.fontSize / 1.5,
|
|
2512
|
-
y:
|
|
2523
|
+
y: s.y,
|
|
2513
2524
|
element: l.tagRefs[`${c}_${h}_left_line`],
|
|
2514
2525
|
position: "left"
|
|
2515
2526
|
}).top + "px",
|
|
2516
2527
|
left: e.placeXYTag({
|
|
2517
2528
|
svgElement: l.svgRef,
|
|
2518
2529
|
x: e.drawingArea.left - e.FINAL_CONFIG.line.tag.fontSize / 1.5,
|
|
2519
|
-
y:
|
|
2530
|
+
y: s.y,
|
|
2520
2531
|
element: l.tagRefs[`${c}_${h}_left_line`],
|
|
2521
2532
|
position: "left"
|
|
2522
2533
|
}).left + "px",
|
|
@@ -2529,54 +2540,54 @@ function Ca(t, s, o, g, l, e) {
|
|
|
2529
2540
|
opacity: 1
|
|
2530
2541
|
})
|
|
2531
2542
|
}, [
|
|
2532
|
-
(r(), i("svg",
|
|
2543
|
+
(r(), i("svg", ua, [
|
|
2533
2544
|
f("path", {
|
|
2534
2545
|
d: "M 0,0 10,10 0,20 Z",
|
|
2535
2546
|
fill: a.color,
|
|
2536
2547
|
stroke: "none"
|
|
2537
|
-
}, null, 8,
|
|
2548
|
+
}, null, 8, da)
|
|
2538
2549
|
])),
|
|
2539
2550
|
f("div", {
|
|
2540
2551
|
class: "vue-ui-xy-tag-content",
|
|
2541
2552
|
innerHTML: e.applyDataLabel(
|
|
2542
2553
|
e.FINAL_CONFIG.line.tag.formatter,
|
|
2543
|
-
|
|
2554
|
+
s.value,
|
|
2544
2555
|
a.name,
|
|
2545
2556
|
{
|
|
2546
|
-
datapoint:
|
|
2557
|
+
datapoint: s,
|
|
2547
2558
|
seriesIndex: h,
|
|
2548
2559
|
serieName: a.name
|
|
2549
2560
|
}
|
|
2550
2561
|
)
|
|
2551
|
-
}, null, 8,
|
|
2552
|
-
], 4)) :
|
|
2562
|
+
}, null, 8, ga)
|
|
2563
|
+
], 4)) : d("", !0)
|
|
2553
2564
|
], 64))), 128))
|
|
2554
2565
|
], 64))), 128)),
|
|
2555
|
-
(r(!0), i(
|
|
2566
|
+
(r(!0), i(u, null, I(e.plotSet, (a, c) => (r(), i(u, {
|
|
2556
2567
|
key: `tag_plot_${c}`
|
|
2557
2568
|
}, [
|
|
2558
|
-
(r(!0), i(
|
|
2569
|
+
(r(!0), i(u, null, I(a.plots, (s, h) => (r(), i(u, {
|
|
2559
2570
|
key: `tag_plot_${c}_${h}`
|
|
2560
2571
|
}, [
|
|
2561
2572
|
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(h) && a.useTag && a.useTag === "end" && e.FINAL_CONFIG.plot.tag.followValue ? (r(), i("div", {
|
|
2562
2573
|
key: 0,
|
|
2563
2574
|
ref_for: !0,
|
|
2564
|
-
ref: (
|
|
2575
|
+
ref: (y) => e.setTagRef(c, h, y, "right", "plot"),
|
|
2565
2576
|
class: "vue-ui-xy-tag",
|
|
2566
2577
|
"data-tag": "right",
|
|
2567
|
-
style:
|
|
2578
|
+
style: b({
|
|
2568
2579
|
position: "fixed",
|
|
2569
2580
|
top: e.placeXYTag({
|
|
2570
2581
|
svgElement: l.svgRef,
|
|
2571
2582
|
x: e.drawingArea.right + e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
|
|
2572
|
-
y:
|
|
2583
|
+
y: s.y,
|
|
2573
2584
|
element: l.tagRefs[`${c}_${h}_right_plot`],
|
|
2574
2585
|
position: "right"
|
|
2575
2586
|
}).top + "px",
|
|
2576
2587
|
left: e.placeXYTag({
|
|
2577
2588
|
svgElement: l.svgRef,
|
|
2578
2589
|
x: e.drawingArea.right + e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
|
|
2579
|
-
y:
|
|
2590
|
+
y: s.y,
|
|
2580
2591
|
element: l.tagRefs[`${c}_${h}_right_plot`],
|
|
2581
2592
|
position: "right"
|
|
2582
2593
|
}).left + "px",
|
|
@@ -2589,46 +2600,46 @@ function Ca(t, s, o, g, l, e) {
|
|
|
2589
2600
|
opacity: 1
|
|
2590
2601
|
})
|
|
2591
2602
|
}, [
|
|
2592
|
-
(r(), i("svg",
|
|
2603
|
+
(r(), i("svg", fa, [
|
|
2593
2604
|
f("path", {
|
|
2594
2605
|
d: "M 0,10 10,0 10,20 Z",
|
|
2595
2606
|
fill: a.color,
|
|
2596
2607
|
stroke: "none"
|
|
2597
|
-
}, null, 8,
|
|
2608
|
+
}, null, 8, Ia)
|
|
2598
2609
|
])),
|
|
2599
2610
|
f("div", {
|
|
2600
2611
|
class: "vue-ui-xy-tag-content",
|
|
2601
2612
|
innerHTML: e.applyDataLabel(
|
|
2602
2613
|
e.FINAL_CONFIG.plot.tag.formatter,
|
|
2603
|
-
|
|
2614
|
+
s.value,
|
|
2604
2615
|
a.name,
|
|
2605
2616
|
{
|
|
2606
|
-
datapoint:
|
|
2617
|
+
datapoint: s,
|
|
2607
2618
|
seriesIndex: h,
|
|
2608
2619
|
serieName: a.name
|
|
2609
2620
|
}
|
|
2610
2621
|
)
|
|
2611
|
-
}, null, 8,
|
|
2612
|
-
], 4)) :
|
|
2622
|
+
}, null, 8, Na)
|
|
2623
|
+
], 4)) : d("", !0),
|
|
2613
2624
|
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(h) && a.useTag && a.useTag === "start" && e.FINAL_CONFIG.plot.tag.followValue ? (r(), i("div", {
|
|
2614
2625
|
key: 1,
|
|
2615
2626
|
ref_for: !0,
|
|
2616
|
-
ref: (
|
|
2627
|
+
ref: (y) => e.setTagRef(c, h, y, "left", "plot"),
|
|
2617
2628
|
class: "vue-ui-xy-tag",
|
|
2618
2629
|
"data-tag": "left",
|
|
2619
|
-
style:
|
|
2630
|
+
style: b({
|
|
2620
2631
|
position: "fixed",
|
|
2621
2632
|
top: e.placeXYTag({
|
|
2622
2633
|
svgElement: l.svgRef,
|
|
2623
2634
|
x: e.drawingArea.left - e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
|
|
2624
|
-
y:
|
|
2635
|
+
y: s.y,
|
|
2625
2636
|
element: l.tagRefs[`${c}_${h}_left_plot`],
|
|
2626
2637
|
position: "left"
|
|
2627
2638
|
}).top + "px",
|
|
2628
2639
|
left: e.placeXYTag({
|
|
2629
2640
|
svgElement: l.svgRef,
|
|
2630
2641
|
x: e.drawingArea.left - e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
|
|
2631
|
-
y:
|
|
2642
|
+
y: s.y,
|
|
2632
2643
|
element: l.tagRefs[`${c}_${h}_left_plot`],
|
|
2633
2644
|
position: "left"
|
|
2634
2645
|
}).left + "px",
|
|
@@ -2641,30 +2652,30 @@ function Ca(t, s, o, g, l, e) {
|
|
|
2641
2652
|
opacity: 1
|
|
2642
2653
|
})
|
|
2643
2654
|
}, [
|
|
2644
|
-
(r(), i("svg",
|
|
2655
|
+
(r(), i("svg", ma, [
|
|
2645
2656
|
f("path", {
|
|
2646
2657
|
d: "M 0,0 10,10 0,20 Z",
|
|
2647
2658
|
fill: a.color,
|
|
2648
2659
|
stroke: "none"
|
|
2649
|
-
}, null, 8,
|
|
2660
|
+
}, null, 8, xa)
|
|
2650
2661
|
])),
|
|
2651
2662
|
f("div", {
|
|
2652
2663
|
class: "vue-ui-xy-tag-content",
|
|
2653
2664
|
innerHTML: e.applyDataLabel(
|
|
2654
2665
|
e.FINAL_CONFIG.plot.tag.formatter,
|
|
2655
|
-
|
|
2666
|
+
s.value,
|
|
2656
2667
|
a.name,
|
|
2657
2668
|
{
|
|
2658
|
-
datapoint:
|
|
2669
|
+
datapoint: s,
|
|
2659
2670
|
seriesIndex: h,
|
|
2660
2671
|
serieName: a.name
|
|
2661
2672
|
}
|
|
2662
2673
|
)
|
|
2663
|
-
}, null, 8,
|
|
2664
|
-
], 4)) :
|
|
2674
|
+
}, null, 8, ba)
|
|
2675
|
+
], 4)) : d("", !0)
|
|
2665
2676
|
], 64))), 128))
|
|
2666
2677
|
], 64))), 128)),
|
|
2667
|
-
e.isDataset ?
|
|
2678
|
+
e.isDataset ? d("", !0) : (r(), D(O, {
|
|
2668
2679
|
key: 6,
|
|
2669
2680
|
config: {
|
|
2670
2681
|
type: "line",
|
|
@@ -2682,7 +2693,7 @@ function Ca(t, s, o, g, l, e) {
|
|
|
2682
2693
|
}
|
|
2683
2694
|
}
|
|
2684
2695
|
}, null, 8, ["config"])),
|
|
2685
|
-
e.FINAL_CONFIG.chart.zoom.show && l.maxX > 6 && e.isDataset ? (r(), D(
|
|
2696
|
+
e.FINAL_CONFIG.chart.zoom.show && l.maxX > 6 && e.isDataset ? (r(), D(p, {
|
|
2686
2697
|
ref: "chartSlicer",
|
|
2687
2698
|
key: `slicer_${l.slicerStep}`,
|
|
2688
2699
|
background: e.FINAL_CONFIG.chart.zoom.color,
|
|
@@ -2708,9 +2719,9 @@ function Ca(t, s, o, g, l, e) {
|
|
|
2708
2719
|
valueStart: l.slicer.start,
|
|
2709
2720
|
valueEnd: l.slicer.end,
|
|
2710
2721
|
start: l.slicer.start,
|
|
2711
|
-
"onUpdate:start":
|
|
2722
|
+
"onUpdate:start": n[2] || (n[2] = (a) => l.slicer.start = a),
|
|
2712
2723
|
end: l.slicer.end,
|
|
2713
|
-
"onUpdate:end":
|
|
2724
|
+
"onUpdate:end": n[3] || (n[3] = (a) => l.slicer.end = a),
|
|
2714
2725
|
refreshStartPoint: e.FINAL_CONFIG.chart.zoom.startIndex !== null ? e.FINAL_CONFIG.chart.zoom.startIndex : 0,
|
|
2715
2726
|
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)),
|
|
2716
2727
|
enableRangeHandles: e.FINAL_CONFIG.chart.zoom.enableRangeHandles,
|
|
@@ -2718,23 +2729,23 @@ function Ca(t, s, o, g, l, e) {
|
|
|
2718
2729
|
onReset: e.refreshSlicer,
|
|
2719
2730
|
onTrapMouse: e.selectMinimapIndex
|
|
2720
2731
|
}, {
|
|
2721
|
-
"reset-action":
|
|
2722
|
-
S(t.$slots, "reset-action", E(
|
|
2732
|
+
"reset-action": V(({ reset: a }) => [
|
|
2733
|
+
S(t.$slots, "reset-action", B(E({ reset: a })), void 0, !0)
|
|
2723
2734
|
]),
|
|
2724
2735
|
_: 3
|
|
2725
|
-
}, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "onReset", "onTrapMouse"])) :
|
|
2736
|
+
}, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "onReset", "onTrapMouse"])) : d("", !0),
|
|
2726
2737
|
e.FINAL_CONFIG.chart.legend.show ? (r(), i("div", {
|
|
2727
2738
|
key: 8,
|
|
2728
2739
|
ref: "chartLegend",
|
|
2729
2740
|
class: "vue-ui-xy-legend",
|
|
2730
|
-
style:
|
|
2741
|
+
style: b(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
|
|
2731
2742
|
}, [
|
|
2732
|
-
(r(!0), i(
|
|
2743
|
+
(r(!0), i(u, null, I(e.absoluteDataset, (a, c) => (r(), i("div", {
|
|
2733
2744
|
key: `div_legend_item_${c}`,
|
|
2734
|
-
onClick: (
|
|
2735
|
-
class:
|
|
2745
|
+
onClick: (s) => e.segregate(a),
|
|
2746
|
+
class: W({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": l.segregatedSeries.includes(a.id) })
|
|
2736
2747
|
}, [
|
|
2737
|
-
l.icons[a.type] === "line" ? (r(), i("svg",
|
|
2748
|
+
l.icons[a.type] === "line" ? (r(), i("svg", _a, [
|
|
2738
2749
|
f("rect", {
|
|
2739
2750
|
x: "0",
|
|
2740
2751
|
y: "7.5",
|
|
@@ -2744,8 +2755,8 @@ function Ca(t, s, o, g, l, e) {
|
|
|
2744
2755
|
height: "3",
|
|
2745
2756
|
width: "20",
|
|
2746
2757
|
fill: a.color
|
|
2747
|
-
}, null, 8,
|
|
2748
|
-
|
|
2758
|
+
}, null, 8, ya),
|
|
2759
|
+
Y(v, {
|
|
2749
2760
|
plot: { x: 10, y: 9 },
|
|
2750
2761
|
radius: 4,
|
|
2751
2762
|
color: a.color,
|
|
@@ -2753,7 +2764,7 @@ function Ca(t, s, o, g, l, e) {
|
|
|
2753
2764
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
2754
2765
|
strokeWidth: 0.5
|
|
2755
2766
|
}, null, 8, ["color", "shape", "stroke"])
|
|
2756
|
-
])) : l.icons[a.type] === "bar" ? (r(), i("svg",
|
|
2767
|
+
])) : l.icons[a.type] === "bar" ? (r(), i("svg", Aa, [
|
|
2757
2768
|
l.icons[a.type] === "bar" && t.$slots.pattern ? (r(), i("rect", {
|
|
2758
2769
|
key: 0,
|
|
2759
2770
|
x: "0",
|
|
@@ -2763,7 +2774,7 @@ function Ca(t, s, o, g, l, e) {
|
|
|
2763
2774
|
width: "40",
|
|
2764
2775
|
stroke: "none",
|
|
2765
2776
|
fill: a.color
|
|
2766
|
-
}, null, 8,
|
|
2777
|
+
}, null, 8, La)) : d("", !0),
|
|
2767
2778
|
l.icons[a.type] === "bar" ? (r(), i("rect", {
|
|
2768
2779
|
key: 1,
|
|
2769
2780
|
x: "0",
|
|
@@ -2773,9 +2784,9 @@ function Ca(t, s, o, g, l, e) {
|
|
|
2773
2784
|
width: "40",
|
|
2774
2785
|
stroke: "none",
|
|
2775
2786
|
fill: t.$slots.pattern ? `url(#pattern_${l.uniqueId}_${a.slotAbsoluteIndex})` : a.color
|
|
2776
|
-
}, null, 8,
|
|
2777
|
-
])) : (r(), i("svg",
|
|
2778
|
-
|
|
2787
|
+
}, null, 8, Ca)) : d("", !0)
|
|
2788
|
+
])) : (r(), i("svg", Sa, [
|
|
2789
|
+
Y(v, {
|
|
2779
2790
|
plot: { x: 6, y: 6 },
|
|
2780
2791
|
radius: 5,
|
|
2781
2792
|
color: a.color,
|
|
@@ -2783,16 +2794,16 @@ function Ca(t, s, o, g, l, e) {
|
|
|
2783
2794
|
}, null, 8, ["color", "shape"])
|
|
2784
2795
|
])),
|
|
2785
2796
|
f("span", {
|
|
2786
|
-
style:
|
|
2787
|
-
},
|
|
2788
|
-
], 10,
|
|
2789
|
-
], 4)) : (r(), i("div",
|
|
2797
|
+
style: b(`color:${e.FINAL_CONFIG.chart.legend.color}`)
|
|
2798
|
+
}, P(a.name), 5)
|
|
2799
|
+
], 10, Fa))), 128))
|
|
2800
|
+
], 4)) : (r(), i("div", ka, [
|
|
2790
2801
|
S(t.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
|
|
2791
2802
|
], 512)),
|
|
2792
|
-
t.$slots.source ? (r(), i("div",
|
|
2803
|
+
t.$slots.source ? (r(), i("div", wa, [
|
|
2793
2804
|
S(t.$slots, "source", {}, void 0, !0)
|
|
2794
|
-
], 512)) :
|
|
2795
|
-
|
|
2805
|
+
], 512)) : d("", !0),
|
|
2806
|
+
Y(k, {
|
|
2796
2807
|
show: l.mutableConfig.showTooltip && l.isTooltip,
|
|
2797
2808
|
backgroundColor: e.FINAL_CONFIG.chart.tooltip.backgroundColor,
|
|
2798
2809
|
color: e.FINAL_CONFIG.chart.tooltip.color,
|
|
@@ -2808,15 +2819,15 @@ function Ca(t, s, o, g, l, e) {
|
|
|
2808
2819
|
isFullscreen: l.isFullscreen,
|
|
2809
2820
|
isCustom: e.FINAL_CONFIG.chart.tooltip.customFormat && typeof e.FINAL_CONFIG.chart.tooltip.customFormat == "function"
|
|
2810
2821
|
}, {
|
|
2811
|
-
"tooltip-before":
|
|
2812
|
-
S(t.$slots, "tooltip-before", E(
|
|
2822
|
+
"tooltip-before": V(() => [
|
|
2823
|
+
S(t.$slots, "tooltip-before", B(E({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2813
2824
|
]),
|
|
2814
|
-
"tooltip-after":
|
|
2815
|
-
S(t.$slots, "tooltip-after", E(
|
|
2825
|
+
"tooltip-after": V(() => [
|
|
2826
|
+
S(t.$slots, "tooltip-after", B(E({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2816
2827
|
]),
|
|
2817
2828
|
_: 3
|
|
2818
2829
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
2819
|
-
e.isDataset ? (r(), D(
|
|
2830
|
+
e.isDataset ? (r(), D(z, {
|
|
2820
2831
|
key: 11,
|
|
2821
2832
|
hideDetails: "",
|
|
2822
2833
|
config: {
|
|
@@ -2832,22 +2843,22 @@ function Ca(t, s, o, g, l, e) {
|
|
|
2832
2843
|
}
|
|
2833
2844
|
}
|
|
2834
2845
|
}, {
|
|
2835
|
-
content:
|
|
2846
|
+
content: V(() => [
|
|
2836
2847
|
f("div", {
|
|
2837
|
-
style:
|
|
2848
|
+
style: b(`${l.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
2838
2849
|
}, [
|
|
2839
|
-
f("div",
|
|
2840
|
-
|
|
2850
|
+
f("div", Oa, [
|
|
2851
|
+
je(f("input", {
|
|
2841
2852
|
type: "checkbox",
|
|
2842
|
-
"onUpdate:modelValue":
|
|
2853
|
+
"onUpdate:modelValue": n[4] || (n[4] = (a) => l.showSparklineTable = a)
|
|
2843
2854
|
}, null, 512), [
|
|
2844
|
-
[
|
|
2855
|
+
[$e, l.showSparklineTable]
|
|
2845
2856
|
]),
|
|
2846
2857
|
f("div", {
|
|
2847
|
-
onClick:
|
|
2858
|
+
onClick: n[5] || (n[5] = (a) => l.showSparklineTable = !l.showSparklineTable),
|
|
2848
2859
|
style: { cursor: "pointer" }
|
|
2849
2860
|
}, [
|
|
2850
|
-
|
|
2861
|
+
Y(F, {
|
|
2851
2862
|
name: "chartLine",
|
|
2852
2863
|
size: 20,
|
|
2853
2864
|
stroke: e.FINAL_CONFIG.chart.color
|
|
@@ -2858,20 +2869,20 @@ function Ca(t, s, o, g, l, e) {
|
|
|
2858
2869
|
key: `sparkline_${l.segregateStep}`,
|
|
2859
2870
|
dataset: e.tableSparklineDataset,
|
|
2860
2871
|
config: e.tableSparklineConfig
|
|
2861
|
-
}, null, 8, ["dataset", "config"])) : (r(), D(
|
|
2872
|
+
}, null, 8, ["dataset", "config"])) : (r(), D(G, {
|
|
2862
2873
|
key: `table_${l.tableStep}`,
|
|
2863
2874
|
colNames: e.dataTable.colNames,
|
|
2864
2875
|
head: e.dataTable.head,
|
|
2865
2876
|
body: e.dataTable.body,
|
|
2866
2877
|
config: e.dataTable.config,
|
|
2867
2878
|
title: `${e.FINAL_CONFIG.chart.title.text}${e.FINAL_CONFIG.chart.title.subtitle.text ? ` : ${e.FINAL_CONFIG.chart.title.subtitle.text}` : ""}`,
|
|
2868
|
-
onClose:
|
|
2879
|
+
onClose: n[6] || (n[6] = (a) => l.mutableConfig.showTable = !1)
|
|
2869
2880
|
}, {
|
|
2870
|
-
th:
|
|
2871
|
-
f("div", { innerHTML: a }, null, 8,
|
|
2881
|
+
th: V(({ th: a }) => [
|
|
2882
|
+
f("div", { innerHTML: a }, null, 8, Ga)
|
|
2872
2883
|
]),
|
|
2873
|
-
td:
|
|
2874
|
-
|
|
2884
|
+
td: V(({ td: a }) => [
|
|
2885
|
+
Q(P(isNaN(Number(a)) ? a : e.dataLabel({
|
|
2875
2886
|
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
2876
2887
|
v: a,
|
|
2877
2888
|
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
@@ -2883,10 +2894,10 @@ function Ca(t, s, o, g, l, e) {
|
|
|
2883
2894
|
], 4)
|
|
2884
2895
|
]),
|
|
2885
2896
|
_: 1
|
|
2886
|
-
}, 8, ["config"])) :
|
|
2887
|
-
], 46,
|
|
2897
|
+
}, 8, ["config"])) : d("", !0)
|
|
2898
|
+
], 46, at);
|
|
2888
2899
|
}
|
|
2889
|
-
const
|
|
2900
|
+
const Za = /* @__PURE__ */ et(lt, [["render", va], ["__scopeId", "data-v-e8723b00"]]);
|
|
2890
2901
|
export {
|
|
2891
|
-
|
|
2902
|
+
Za as default
|
|
2892
2903
|
};
|