vue-data-ui 2.4.82 → 2.4.84
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-BT-lmouw.js → Arrow-CExa0Dz7.js} +1 -1
- package/dist/{Arrow-5fWeb1w_.cjs → Arrow-DCfmf5dA.cjs} +1 -1
- package/dist/{BaseIcon-B7oE_tLN.cjs → BaseIcon-64qWZUaJ.cjs} +1 -1
- package/dist/{BaseIcon-DIxHp0nP.js → BaseIcon-I6DfuN0D.js} +1 -1
- package/dist/{DataTable-CISfs21D.cjs → DataTable-C_6KWwfC.cjs} +1 -1
- package/dist/{DataTable-dr19AFlT.js → DataTable-DYhXzoFM.js} +2 -2
- package/dist/{Legend-ChILUEFI.cjs → Legend-BkolTSZc.cjs} +1 -1
- package/dist/{Legend-C6VqGE0l.js → Legend-D8VMKZ6f.js} +2 -2
- package/dist/{PackageVersion-CNuNuAb9.cjs → PackageVersion-BV362f3w.cjs} +1 -1
- package/dist/{PackageVersion-6TSHlmr5.js → PackageVersion-CO2IMTO9.js} +1 -1
- package/dist/{PenAndPaper-C5Ug24R7.js → PenAndPaper-CnW2eqXw.js} +3 -3
- package/dist/{PenAndPaper-TVeCVXVN.cjs → PenAndPaper-DvN8ocWC.cjs} +1 -1
- package/dist/{Shape-C8l-pKBy.js → Shape-Bit--n_P.js} +1 -1
- package/dist/{Shape-Qq8Lt1_F.cjs → Shape-VkiqMBJb.cjs} +1 -1
- package/dist/{Slicer-CA7iwke8.js → Slicer-BIRZ38gw.js} +109 -124
- package/dist/Slicer-D8EYKe1g.cjs +1 -0
- package/dist/{Title-BfHZu6bz.cjs → Title-BVwrrnjn.cjs} +1 -1
- package/dist/{Title-BcYvD5u3.js → Title-C_gOJvlv.js} +1 -1
- package/dist/{Tooltip-fKt9YG50.cjs → Tooltip-CfsfUzgu.cjs} +1 -1
- package/dist/{Tooltip-CnEP60Ez.js → Tooltip-Czv48jTt.js} +1 -1
- package/dist/{index-CsThtcFA.js → index-CFW17vb1.js} +2 -1
- package/dist/index-DtU3BvTq.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +3 -2
- package/dist/types/vue-data-ui.d.ts +3 -2
- package/dist/{useNestedProp-Bjmt-GbY.cjs → useNestedProp-Bwqm-3kz.cjs} +1 -1
- package/dist/{useNestedProp-CYmg6HKV.js → useNestedProp-HPB1YHuD.js} +1 -1
- package/dist/{usePrinter-CHJnz2qB.js → usePrinter-19frcFuH.js} +1 -1
- package/dist/{usePrinter-CbaWB90M.cjs → usePrinter-CdEwyYTo.cjs} +1 -1
- package/dist/{vue-data-ui-a870gnq3.js → vue-data-ui-Cwa_3CUx.js} +60 -60
- package/dist/{vue-data-ui-ClVg2Y5S.cjs → vue-data-ui-Do7J2TPn.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-Dx1wzhEz.cjs → vue-ui-3d-bar-BHQnk6JC.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-B2Q2fngm.js → vue-ui-3d-bar-DFyAJ8Js.js} +9 -9
- package/dist/{vue-ui-accordion-R1MtUDWQ.js → vue-ui-accordion-B8vShfXi.js} +3 -3
- package/dist/{vue-ui-accordion-BMncws2N.cjs → vue-ui-accordion-DP9u_TW0.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-BXXcKMhA.cjs → vue-ui-age-pyramid-DZM35V2u.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-CvZ4900w.js → vue-ui-age-pyramid-Dmve7QfH.js} +10 -10
- package/dist/{vue-ui-annotator-B6bMxIm1.js → vue-ui-annotator-BlXk3QBH.js} +1 -1
- package/dist/{vue-ui-annotator-D1cPic7r.cjs → vue-ui-annotator-D9EQpzhs.cjs} +1 -1
- package/dist/{vue-ui-bullet-CbeR4GvU.js → vue-ui-bullet-C_689DzY.js} +8 -8
- package/dist/{vue-ui-bullet-B4RNYl7A.cjs → vue-ui-bullet-HVCVCTLU.cjs} +1 -1
- package/dist/{vue-ui-candlestick-LXQaBwq2.js → vue-ui-candlestick-BeoPugFC.js} +11 -11
- package/dist/{vue-ui-candlestick-fWCn56wl.cjs → vue-ui-candlestick-jaQCvTyL.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DY7iX4zw.cjs → vue-ui-carousel-table-C6TjkSgb.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Dlk54jHH.js → vue-ui-carousel-table-DSJth2mn.js} +4 -4
- package/dist/{vue-ui-chestnut-Dbss-s8e.cjs → vue-ui-chestnut-B2ufyy3m.cjs} +1 -1
- package/dist/{vue-ui-chestnut-GBYmNV4D.js → vue-ui-chestnut-DYFaL9sS.js} +8 -8
- package/dist/{vue-ui-cursor-Uhbo_5YV.js → vue-ui-cursor-0SZiJ6tf.js} +2 -2
- package/dist/{vue-ui-cursor-_a97vjKf.cjs → vue-ui-cursor-B8ne66iS.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CV6lepNo.js → vue-ui-dashboard-9JNDS8H_.js} +2 -2
- package/dist/{vue-ui-dashboard-C3kIRgS8.cjs → vue-ui-dashboard-Cc6YeOue.cjs} +1 -1
- package/dist/{vue-ui-digits-DtoCv8V3.js → vue-ui-digits-DNyhJL4P.js} +2 -2
- package/dist/{vue-ui-digits-r0hIfpvm.cjs → vue-ui-digits-lJ7p7zK0.cjs} +1 -1
- package/dist/{vue-ui-donut-ueAPKu-p.cjs → vue-ui-donut-B1pUA9f9.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-D21cjJEu.js → vue-ui-donut-evolution-BZgaPkPQ.js} +11 -11
- package/dist/{vue-ui-donut-evolution-BxD06YTP.cjs → vue-ui-donut-evolution-CNUN-Ibl.cjs} +1 -1
- package/dist/{vue-ui-donut-HK1nAqAJ.js → vue-ui-donut-rUTpcnu6.js} +12 -12
- package/dist/{vue-ui-dumbbell-BxQj5hna.cjs → vue-ui-dumbbell-Cvsoh0T7.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-D4xDpW8L.js → vue-ui-dumbbell-Dt0y6iAc.js} +10 -10
- package/dist/{vue-ui-flow-BzJzxkns.js → vue-ui-flow-CNJvuCPl.js} +9 -9
- package/dist/{vue-ui-flow-eaxLYKe-.cjs → vue-ui-flow-DoDnRTz2.cjs} +1 -1
- package/dist/{vue-ui-funnel-BtIOBN21.cjs → vue-ui-funnel-BuMkpJAC.cjs} +1 -1
- package/dist/{vue-ui-funnel-DIdawbhb.js → vue-ui-funnel-CzxjqsPW.js} +9 -9
- package/dist/{vue-ui-galaxy-tr5z8bv6.js → vue-ui-galaxy-4lQvAV3d.js} +11 -11
- package/dist/{vue-ui-galaxy-CxvvMYCm.cjs → vue-ui-galaxy-Bd3A40CM.cjs} +1 -1
- package/dist/{vue-ui-gauge-DAy5qpGS.cjs → vue-ui-gauge-BE_j4sWG.cjs} +1 -1
- package/dist/{vue-ui-gauge-BTEuwgTK.js → vue-ui-gauge-C-VzxGad.js} +7 -7
- package/dist/{vue-ui-gizmo-CyoKhkTE.js → vue-ui-gizmo-CE_RL3QC.js} +3 -3
- package/dist/{vue-ui-gizmo-D2YvYKEm.cjs → vue-ui-gizmo-C_H8YGW3.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DE0CkJHT.cjs → vue-ui-heatmap-9F3jF9Ph.cjs} +1 -1
- package/dist/{vue-ui-heatmap-CrhZjdV7.js → vue-ui-heatmap-GRSinjd8.js} +10 -10
- package/dist/{vue-ui-history-plot-DYFZMxHM.cjs → vue-ui-history-plot-CCRPcG-q.cjs} +1 -1
- package/dist/{vue-ui-history-plot-C6pcuMqp.js → vue-ui-history-plot-DmGaPsqO.js} +11 -11
- package/dist/{vue-ui-kpi-DkwXPmZL.js → vue-ui-kpi-BeGj6WIY.js} +3 -3
- package/dist/{vue-ui-kpi-C0u9ZU1f.cjs → vue-ui-kpi-Ce45VFCW.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CVQ_qNNC.cjs → vue-ui-mini-loader-D3edtEz_.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CLq0Otkj.js → vue-ui-mini-loader-DE8S92Sq.js} +2 -2
- package/dist/{vue-ui-molecule-HxXY9Y9M.js → vue-ui-molecule-B3DvbGKk.js} +11 -11
- package/dist/{vue-ui-molecule-DtaeRbOZ.cjs → vue-ui-molecule-CBXx1n83.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-CODX8As4.js → vue-ui-mood-radar-D86fg_ce.js} +11 -11
- package/dist/{vue-ui-mood-radar-sNI9CnUS.cjs → vue-ui-mood-radar-LiiA0Dc-.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-DtFEYjqG.cjs → vue-ui-nested-donuts-BXKM6dJG.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-DfslWJLV.js → vue-ui-nested-donuts-jk4b-l4R.js} +11 -11
- package/dist/{vue-ui-onion-CX8XeQ_l.js → vue-ui-onion-0OpNltFd.js} +11 -11
- package/dist/{vue-ui-onion-DiZRACmp.cjs → vue-ui-onion-DMDU5CNx.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-DZYR4krE.cjs → vue-ui-parallel-coordinate-plot-C6z7ZrZv.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-BHeEm0CR.js → vue-ui-parallel-coordinate-plot-CK1Npqa-.js} +12 -12
- package/dist/{vue-ui-quadrant-BgL1hao5.js → vue-ui-quadrant-BTXxbgGe.js} +12 -12
- package/dist/{vue-ui-quadrant-C9wYDYfI.cjs → vue-ui-quadrant-BseIxY55.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-ajTnMBSM.cjs → vue-ui-quick-chart-C648x_Ta.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-Bu3Xcdlq.js → vue-ui-quick-chart-DxTYh43Q.js} +9 -9
- package/dist/{vue-ui-radar-Dt-kzWMo.cjs → vue-ui-radar-BRL3W3Na.cjs} +1 -1
- package/dist/{vue-ui-radar-Cf6_-n4V.js → vue-ui-radar-ogrYz2LM.js} +12 -12
- package/dist/{vue-ui-rating-DTNBXEgx.cjs → vue-ui-rating-BA3qzlLU.cjs} +1 -1
- package/dist/{vue-ui-rating-DuNJPTBF.js → vue-ui-rating-BDOw91i1.js} +2 -2
- package/dist/{vue-ui-relation-circle-CqdnjJWQ.js → vue-ui-relation-circle-DzIUtPsI.js} +7 -7
- package/dist/{vue-ui-relation-circle-PMwBj9LN.cjs → vue-ui-relation-circle-lh7NE0h5.cjs} +1 -1
- package/dist/{vue-ui-rings-IvHrVEYG.cjs → vue-ui-rings-CC2lRhXV.cjs} +1 -1
- package/dist/{vue-ui-rings-BzXcjj0z.js → vue-ui-rings-ZT5FspBJ.js} +12 -12
- package/dist/{vue-ui-scatter-DfejYNwd.js → vue-ui-scatter-DWrEQi8R.js} +12 -12
- package/dist/{vue-ui-scatter-DjHl-XIs.cjs → vue-ui-scatter-ebuihNvY.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Bfl3heZK.cjs → vue-ui-screenshot-C5qnoqpN.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DHY194Cs.js → vue-ui-screenshot-Cu9IDDlN.js} +1 -1
- package/dist/{vue-ui-skeleton-CA5wMVV8.cjs → vue-ui-skeleton-BJjc2poJ.cjs} +1 -1
- package/dist/{vue-ui-skeleton-nkyhyXuS.js → vue-ui-skeleton-RRyod9qq.js} +3 -3
- package/dist/{vue-ui-smiley-Dpq9NCdW.js → vue-ui-smiley-Ph-v2-Ai.js} +2 -2
- package/dist/{vue-ui-smiley-DihuGEvz.cjs → vue-ui-smiley-y9nTUBhA.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CNf8eqXP.js → vue-ui-spark-trend-Bny5SJnu.js} +5 -5
- package/dist/{vue-ui-spark-trend-D4IpFyAT.cjs → vue-ui-spark-trend-CLToG1xM.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CRA8l9nA.js → vue-ui-sparkbar-Cte6J2j-.js} +4 -4
- package/dist/{vue-ui-sparkbar-DyDAQS5l.cjs → vue-ui-sparkbar-XuIl0I-2.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-q1_NKm6X.cjs → vue-ui-sparkgauge-85UuRRgo.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DQO5INkx.js → vue-ui-sparkgauge-NGpDEiOA.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-CQu6JcH7.js → vue-ui-sparkhistogram-DC6GQfGG.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-Cz82BTxJ.cjs → vue-ui-sparkhistogram-g9PwZ66_.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CvMlOA7f.cjs → vue-ui-sparkline-BiqTIIb1.cjs} +1 -1
- package/dist/{vue-ui-sparkline-ZbKFEB1a.js → vue-ui-sparkline-Cv0OStNn.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-k4dcyRXf.cjs → vue-ui-sparkstackbar-Dvi0gC4_.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DOUIhmBs.js → vue-ui-sparkstackbar-lUSVcaQd.js} +5 -5
- package/dist/{vue-ui-stackbar-lt8TicVU.js → vue-ui-stackbar-CqbbJfYt.js} +13 -13
- package/dist/{vue-ui-stackbar-CIE2n1Cj.cjs → vue-ui-stackbar-DjJtIsdz.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-Ch1RGWoV.js → vue-ui-strip-plot-BCg5ReEr.js} +11 -11
- package/dist/{vue-ui-strip-plot-DIRlVsXS.cjs → vue-ui-strip-plot-y7iID0n4.cjs} +1 -1
- package/dist/{vue-ui-table-ifejCKXI.cjs → vue-ui-table-BLtxfmhY.cjs} +1 -1
- package/dist/{vue-ui-table-CWEb3B8S.js → vue-ui-table-C0gtq240.js} +1 -1
- package/dist/{vue-ui-table-heatmap-BW4pIWmr.cjs → vue-ui-table-heatmap-Df4MQoU-.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DogGKS4T.js → vue-ui-table-heatmap-QuqCtJWs.js} +4 -4
- package/dist/{vue-ui-table-sparkline-CYL8rQT-.cjs → vue-ui-table-sparkline-CUD-P2XB.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-BBC4lVJM.js → vue-ui-table-sparkline-Cgt7aEwb.js} +5 -5
- package/dist/{vue-ui-thermometer-hKww43ns.js → vue-ui-thermometer-Dmba_BQM.js} +7 -7
- package/dist/{vue-ui-thermometer-32WmHGq2.cjs → vue-ui-thermometer-DwFIhO9V.cjs} +1 -1
- package/dist/{vue-ui-timer-4yQ-u1yo.js → vue-ui-timer-C7B7kC_T.js} +5 -5
- package/dist/{vue-ui-timer-Kz8NeyKP.cjs → vue-ui-timer-mYvuMMWA.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-pkikDuDs.cjs → vue-ui-tiremarks-Cbu6E711.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-Ci1FA555.js → vue-ui-tiremarks-D5xKuhfo.js} +7 -7
- package/dist/{vue-ui-treemap-s0g9gFUq.js → vue-ui-treemap-4MV0XnQk.js} +11 -11
- package/dist/{vue-ui-treemap-Cam7JIbV.cjs → vue-ui-treemap-CE67vTLK.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-Dpf8M5Y2.js → vue-ui-vertical-bar-CXyj54xk.js} +12 -12
- package/dist/{vue-ui-vertical-bar-DCuXkLMy.cjs → vue-ui-vertical-bar-CoReGxcB.cjs} +1 -1
- package/dist/{vue-ui-waffle-B0f6wQb5.cjs → vue-ui-waffle-8nA0-Wb6.cjs} +1 -1
- package/dist/{vue-ui-waffle-Cjt8sDM6.js → vue-ui-waffle-DEs7x_2T.js} +12 -12
- package/dist/{vue-ui-wheel-DUMSmVGA.cjs → vue-ui-wheel-CJr7fA0P.cjs} +1 -1
- package/dist/{vue-ui-wheel-DnMqTLDg.js → vue-ui-wheel-g8X99gKX.js} +7 -7
- package/dist/{vue-ui-word-cloud-DJx2N2OK.cjs → vue-ui-word-cloud-B6swJJCN.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-D4-GAo5m.js → vue-ui-word-cloud-CVa0GWD2.js} +11 -11
- package/dist/{vue-ui-xy-5YlIb5hC.js → vue-ui-xy-BGlQK1KX.js} +831 -839
- package/dist/{vue-ui-xy-canvas-D96s0y9X.cjs → vue-ui-xy-canvas-B8lWHhig.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-CM-75r6I.js → vue-ui-xy-canvas-C5WvLq7x.js} +11 -11
- package/dist/vue-ui-xy-lkMHpHRs.cjs +3 -0
- package/package.json +1 -1
- package/dist/Slicer-CPf6wtKj.cjs +0 -1
- package/dist/index-JEIXBRiX.cjs +0 -9
- package/dist/vue-ui-xy-DunM3FBg.cjs +0 -3
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { c as J, a as K, t as
|
|
2
|
-
import { D as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { U as
|
|
6
|
-
import { _ as
|
|
7
|
-
import
|
|
8
|
-
import Ve from "./vue-ui-table-sparkline-
|
|
9
|
-
import
|
|
10
|
-
import { S as
|
|
11
|
-
import
|
|
12
|
-
import { u as Z } from "./useNestedProp-
|
|
13
|
-
import { _ as
|
|
14
|
-
import { P as
|
|
15
|
-
import { resolveComponent as
|
|
16
|
-
import { _ as
|
|
17
|
-
const
|
|
1
|
+
import { c as J, a as K, t as j, z as $, p as ee, V as X, O as H, f as U, L as te, G as ie, i as re, a4 as ae, a1 as le, a5 as se, v as ne, a6 as he, d as oe, B as ce, b as de, q as ue, R as ge, Q as fe, a7 as Ie, r as me, e as Ne, a2 as xe, y as be, C as Fe, x as _e, a8 as Ae, Z as ye, o as Le, s as Ce, w as Se, F as ke, A as we, u as Oe } from "./index-CFW17vb1.js";
|
|
2
|
+
import { D as Ge } from "./DataTable-DYhXzoFM.js";
|
|
3
|
+
import { _ as ve } from "./Title-C_gOJvlv.js";
|
|
4
|
+
import { _ as ze, u as Me } from "./Tooltip-Czv48jTt.js";
|
|
5
|
+
import { U as pe } from "./usePrinter-19frcFuH.js";
|
|
6
|
+
import { _ as Te } from "./Shape-Bit--n_P.js";
|
|
7
|
+
import Pe from "./BaseIcon-I6DfuN0D.js";
|
|
8
|
+
import Ve from "./vue-ui-table-sparkline-Cgt7aEwb.js";
|
|
9
|
+
import Re from "./vue-ui-skeleton-RRyod9qq.js";
|
|
10
|
+
import { S as De } from "./Slicer-BIRZ38gw.js";
|
|
11
|
+
import He from "./vue-ui-accordion-B8vShfXi.js";
|
|
12
|
+
import { u as Z } from "./useNestedProp-HPB1YHuD.js";
|
|
13
|
+
import { _ as Be } from "./PackageVersion-CO2IMTO9.js";
|
|
14
|
+
import { P as We } from "./PenAndPaper-CnW2eqXw.js";
|
|
15
|
+
import { resolveComponent as R, openBlock as a, createElementBlock as s, normalizeClass as D, normalizeStyle as L, createBlock as B, createCommentVNode as c, createSlots as Ee, withCtx as P, renderSlot as k, normalizeProps as W, guardReactiveProps as E, createVNode as q, createElementVNode as u, Fragment as f, renderList as m, toDisplayString as w, mergeProps as Ye, withDirectives as qe, vModelCheckbox as Xe, createTextVNode as Ue } from "vue";
|
|
16
|
+
import { _ as Ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
+
const Je = J(), Qe = {
|
|
18
18
|
name: "vue-ui-xy",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -31,42 +31,42 @@ const Ue = J(), Ze = {
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
components: {
|
|
34
|
-
DataTable:
|
|
35
|
-
Shape:
|
|
36
|
-
Title:
|
|
37
|
-
Tooltip:
|
|
38
|
-
UserOptions:
|
|
39
|
-
BaseIcon:
|
|
34
|
+
DataTable: Ge,
|
|
35
|
+
Shape: Te,
|
|
36
|
+
Title: ve,
|
|
37
|
+
Tooltip: ze,
|
|
38
|
+
UserOptions: pe,
|
|
39
|
+
BaseIcon: Pe,
|
|
40
40
|
TableSparkline: Ve,
|
|
41
|
-
Skeleton:
|
|
42
|
-
Slicer:
|
|
43
|
-
Accordion:
|
|
44
|
-
PackageVersion:
|
|
45
|
-
PenAndPaper:
|
|
41
|
+
Skeleton: Re,
|
|
42
|
+
Slicer: De,
|
|
43
|
+
Accordion: He,
|
|
44
|
+
PackageVersion: Be,
|
|
45
|
+
PenAndPaper: We
|
|
46
46
|
},
|
|
47
47
|
data() {
|
|
48
|
-
this.dataset.forEach((
|
|
49
|
-
[null, void 0].includes(
|
|
48
|
+
this.dataset.forEach((d, t) => {
|
|
49
|
+
[null, void 0].includes(d.series) && this.error({
|
|
50
50
|
componentName: "VueUiXy",
|
|
51
51
|
type: "datasetSerieAttribute",
|
|
52
52
|
property: "series (number[])",
|
|
53
53
|
index: t
|
|
54
54
|
});
|
|
55
55
|
});
|
|
56
|
-
const
|
|
56
|
+
const i = this.config.downsample && this.config.downsample.threshold ? this.config.downsample.threshold : 500, l = Math.max(...this.dataset.map((d) => this.largestTriangleThreeBucketsArray({ data: d.series, threshold: i }).length)), o = {
|
|
57
57
|
start: 0,
|
|
58
|
-
end:
|
|
58
|
+
end: l
|
|
59
59
|
};
|
|
60
60
|
return {
|
|
61
61
|
themePalettes: K,
|
|
62
|
-
themes:
|
|
62
|
+
themes: j,
|
|
63
63
|
slicerStep: 0,
|
|
64
64
|
selectedScale: null,
|
|
65
65
|
CTX: null,
|
|
66
66
|
CANVAS: null,
|
|
67
|
-
opacity:
|
|
67
|
+
opacity: $,
|
|
68
68
|
useSafeValues: !0,
|
|
69
|
-
palette:
|
|
69
|
+
palette: ee,
|
|
70
70
|
height: 600,
|
|
71
71
|
width: 1e3,
|
|
72
72
|
viewBox: "0 0 1000 600",
|
|
@@ -106,10 +106,10 @@ const Ue = J(), Ze = {
|
|
|
106
106
|
titleStep: 0,
|
|
107
107
|
slicer: o,
|
|
108
108
|
__to__: null,
|
|
109
|
-
maxX:
|
|
109
|
+
maxX: l,
|
|
110
110
|
showSparklineTable: !0,
|
|
111
111
|
segregateStep: 0,
|
|
112
|
-
sliderId:
|
|
112
|
+
sliderId: Je,
|
|
113
113
|
fontSizes: {
|
|
114
114
|
xAxis: 18,
|
|
115
115
|
yAxis: 12,
|
|
@@ -128,7 +128,7 @@ const Ue = J(), Ze = {
|
|
|
128
128
|
},
|
|
129
129
|
watch: {
|
|
130
130
|
dataset: {
|
|
131
|
-
handler(
|
|
131
|
+
handler(i, l) {
|
|
132
132
|
this.maxX = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({
|
|
133
133
|
data: o.series,
|
|
134
134
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
@@ -140,23 +140,28 @@ const Ue = J(), Ze = {
|
|
|
140
140
|
deep: !0
|
|
141
141
|
},
|
|
142
142
|
config: {
|
|
143
|
-
handler(
|
|
143
|
+
handler(i, l) {
|
|
144
144
|
this.FINAL_CONFIG = this.prepareConfig(), this.prepareChart(), this.titleStep += 1, this.tableStep += 1;
|
|
145
145
|
},
|
|
146
146
|
deep: !0
|
|
147
147
|
}
|
|
148
148
|
},
|
|
149
149
|
computed: {
|
|
150
|
+
optimize() {
|
|
151
|
+
return {
|
|
152
|
+
linePlot: this.maxSeries > this.FINAL_CONFIG.line.dot.hideAboveMaxSerieLength
|
|
153
|
+
};
|
|
154
|
+
},
|
|
150
155
|
hasOptionsNoTitle() {
|
|
151
156
|
return this.FINAL_CONFIG.chart.userOptions.show && (!this.FINAL_CONFIG.chart.title.show || !this.FINAL_CONFIG.chart.title.text);
|
|
152
157
|
},
|
|
153
158
|
minimap() {
|
|
154
159
|
if (!this.FINAL_CONFIG.chart.zoom.minimap.show) return [];
|
|
155
|
-
const
|
|
156
|
-
for (let t = 0; t <
|
|
157
|
-
o.push(
|
|
158
|
-
const
|
|
159
|
-
return o.map((t) => t + (
|
|
160
|
+
const i = this.datasetWithIds.filter((t) => !this.segregatedSeries.includes(t.id)), l = Math.max(...i.map((t) => t.series.length)), o = [];
|
|
161
|
+
for (let t = 0; t < l; t += 1)
|
|
162
|
+
o.push(i.map((e) => e.series[t] || 0).reduce((e, N) => (e || 0) + (N || 0), 0));
|
|
163
|
+
const d = Math.min(...o);
|
|
164
|
+
return o.map((t) => t + (d < 0 ? Math.abs(d) : 0));
|
|
160
165
|
},
|
|
161
166
|
customPalette() {
|
|
162
167
|
return this.convertCustomPalette(this.FINAL_CONFIG.customPalette);
|
|
@@ -168,7 +173,7 @@ const Ue = J(), Ze = {
|
|
|
168
173
|
return this.FINAL_CONFIG.chart.zoom.color;
|
|
169
174
|
},
|
|
170
175
|
allScales() {
|
|
171
|
-
const
|
|
176
|
+
const i = this.lineSet.map((t) => ({
|
|
172
177
|
name: t.name,
|
|
173
178
|
color: t.color,
|
|
174
179
|
scale: t.individualScale,
|
|
@@ -180,7 +185,7 @@ const Ue = J(), Ze = {
|
|
|
180
185
|
yOffset: t.yOffset || 0,
|
|
181
186
|
individualHeight: t.individualHeight || this.drawingArea.height,
|
|
182
187
|
autoScaleYLabels: t.autoScaleYLabels
|
|
183
|
-
})),
|
|
188
|
+
})), l = this.barSet.map((t) => ({
|
|
184
189
|
name: t.name,
|
|
185
190
|
color: t.color,
|
|
186
191
|
scale: t.individualScale,
|
|
@@ -203,8 +208,8 @@ const Ue = J(), Ze = {
|
|
|
203
208
|
id: t.id,
|
|
204
209
|
yOffset: t.yOffset || 0,
|
|
205
210
|
individualHeight: t.individualHeight || this.drawingArea.height
|
|
206
|
-
})),
|
|
207
|
-
return [...
|
|
211
|
+
})), d = [...i, ...l, ...o].flatMap((t) => t).length;
|
|
212
|
+
return [...i, ...l, ...o].flatMap((t, e) => ({
|
|
208
213
|
id: t.id,
|
|
209
214
|
scaleLabel: t.scaleLabel,
|
|
210
215
|
name: t.name,
|
|
@@ -212,10 +217,10 @@ const Ue = J(), Ze = {
|
|
|
212
217
|
scale: t.scale,
|
|
213
218
|
yOffset: t.yOffset,
|
|
214
219
|
individualHeight: t.individualHeight,
|
|
215
|
-
x: this.mutableConfig.isStacked ? this.drawingArea.left : this.drawingArea.left /
|
|
216
|
-
yLabels: t.scaleYLabels || t.scale.ticks.map((
|
|
217
|
-
y:
|
|
218
|
-
value:
|
|
220
|
+
x: this.mutableConfig.isStacked ? this.drawingArea.left : this.drawingArea.left / d * (e + 1),
|
|
221
|
+
yLabels: t.scaleYLabels || t.scale.ticks.map((N) => ({
|
|
222
|
+
y: N >= 0 ? t.zero - t.individualHeight * (N / t.max) : t.zero + t.individualHeight * Math.abs(N) / t.max,
|
|
223
|
+
value: N
|
|
219
224
|
}))
|
|
220
225
|
}));
|
|
221
226
|
},
|
|
@@ -223,28 +228,28 @@ const Ue = J(), Ze = {
|
|
|
223
228
|
return !!this.dataset && this.dataset.length;
|
|
224
229
|
},
|
|
225
230
|
chartFont() {
|
|
226
|
-
const
|
|
227
|
-
return window.getComputedStyle(
|
|
231
|
+
const i = document.getElementById(`vue-ui-xy_${this.uniqueId}`);
|
|
232
|
+
return window.getComputedStyle(i, null).getPropertyValue("font-family");
|
|
228
233
|
},
|
|
229
234
|
FINAL_CONFIG: {
|
|
230
235
|
get: function() {
|
|
231
236
|
return this.prepareConfig();
|
|
232
237
|
},
|
|
233
|
-
set: function(
|
|
234
|
-
return
|
|
238
|
+
set: function(i) {
|
|
239
|
+
return i;
|
|
235
240
|
}
|
|
236
241
|
},
|
|
237
242
|
hasHighlightArea() {
|
|
238
|
-
return Array.isArray(this.FINAL_CONFIG.chart.highlightArea) ? this.FINAL_CONFIG.chart.highlightArea.some((
|
|
243
|
+
return Array.isArray(this.FINAL_CONFIG.chart.highlightArea) ? this.FINAL_CONFIG.chart.highlightArea.some((i) => i.show) : this.FINAL_CONFIG.chart.highlightArea && this.FINAL_CONFIG.chart.highlightArea.show;
|
|
239
244
|
},
|
|
240
245
|
highlightAreas() {
|
|
241
246
|
if (Array.isArray(this.FINAL_CONFIG.chart.highlightArea))
|
|
242
|
-
return this.FINAL_CONFIG.chart.highlightArea.map((
|
|
243
|
-
...
|
|
244
|
-
span:
|
|
247
|
+
return this.FINAL_CONFIG.chart.highlightArea.map((l) => ({
|
|
248
|
+
...l,
|
|
249
|
+
span: l.from === l.to ? 1 : l.to < l.from ? 0 : l.to - l.from + 1
|
|
245
250
|
}));
|
|
246
|
-
const
|
|
247
|
-
return [{ ...
|
|
251
|
+
const i = this.FINAL_CONFIG.chart.highlightArea;
|
|
252
|
+
return [{ ...i, span: i.from === i.to ? 1 : i.to < i.from ? 0 : i.to - i.from + 1 }];
|
|
248
253
|
},
|
|
249
254
|
xPadding() {
|
|
250
255
|
return this.FINAL_CONFIG.chart.grid.position === "middle" ? 0 : this.drawingArea.width / this.maxSeries / 2;
|
|
@@ -256,45 +261,45 @@ const Ue = J(), Ze = {
|
|
|
256
261
|
return this.niceScale.max + this.relativeZero;
|
|
257
262
|
},
|
|
258
263
|
datasetWithIds() {
|
|
259
|
-
return this.useSafeValues ? this.dataset.map((
|
|
260
|
-
...
|
|
264
|
+
return this.useSafeValues ? this.dataset.map((i, l) => ({
|
|
265
|
+
...i,
|
|
261
266
|
series: this.largestTriangleThreeBucketsArray({
|
|
262
|
-
data:
|
|
267
|
+
data: i.series,
|
|
263
268
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
264
269
|
}),
|
|
265
|
-
id: `uniqueId_${
|
|
270
|
+
id: `uniqueId_${l}`
|
|
266
271
|
})) : this.dataset;
|
|
267
272
|
},
|
|
268
273
|
safeDataset() {
|
|
269
|
-
return this.useSafeValues ? this.dataset.map((
|
|
274
|
+
return this.useSafeValues ? this.dataset.map((i, l) => {
|
|
270
275
|
const o = this.largestTriangleThreeBucketsArray({
|
|
271
|
-
data:
|
|
276
|
+
data: i.series,
|
|
272
277
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
273
278
|
});
|
|
274
279
|
return {
|
|
275
|
-
...
|
|
276
|
-
slotAbsoluteIndex:
|
|
277
|
-
series: o.map((
|
|
278
|
-
color: this.convertColorToHex(
|
|
279
|
-
id: `uniqueId_${
|
|
280
|
+
...i,
|
|
281
|
+
slotAbsoluteIndex: l,
|
|
282
|
+
series: o.map((d) => this.isSafeValue(d) ? d : null).slice(this.slicer.start, this.slicer.end),
|
|
283
|
+
color: this.convertColorToHex(i.color ? i.color : this.customPalette[l] ? this.customPalette[l] : this.palette[l]),
|
|
284
|
+
id: `uniqueId_${l}`
|
|
280
285
|
};
|
|
281
286
|
}) : this.dataset;
|
|
282
287
|
},
|
|
283
288
|
relativeDataset() {
|
|
284
|
-
return this.safeDataset.map((
|
|
285
|
-
...
|
|
286
|
-
series:
|
|
287
|
-
absoluteValues:
|
|
288
|
-
})).filter((
|
|
289
|
+
return this.safeDataset.map((i, l) => ({
|
|
290
|
+
...i,
|
|
291
|
+
series: i.series.map((o) => o + this.relativeZero),
|
|
292
|
+
absoluteValues: i.series
|
|
293
|
+
})).filter((i) => !this.segregatedSeries.includes(i.id));
|
|
289
294
|
},
|
|
290
295
|
tableSparklineDataset() {
|
|
291
|
-
return this.relativeDataset.map((
|
|
292
|
-
const
|
|
296
|
+
return this.relativeDataset.map((i) => {
|
|
297
|
+
const l = i.absoluteValues.map((o) => [void 0, null].includes(o) ? 0 : o);
|
|
293
298
|
return {
|
|
294
|
-
id:
|
|
295
|
-
name:
|
|
296
|
-
color:
|
|
297
|
-
values: this.fillArray(this.maxSeries,
|
|
299
|
+
id: i.id,
|
|
300
|
+
name: i.name,
|
|
301
|
+
color: i.color,
|
|
302
|
+
values: this.fillArray(this.maxSeries, l)
|
|
298
303
|
};
|
|
299
304
|
});
|
|
300
305
|
},
|
|
@@ -325,75 +330,75 @@ const Ue = J(), Ze = {
|
|
|
325
330
|
};
|
|
326
331
|
},
|
|
327
332
|
absoluteDataset() {
|
|
328
|
-
return this.safeDataset.map((
|
|
329
|
-
absoluteIndex:
|
|
330
|
-
...
|
|
331
|
-
series:
|
|
332
|
-
absoluteValues:
|
|
333
|
-
segregate: () => this.segregate(
|
|
334
|
-
isSegregated: this.segregatedSeries.includes(
|
|
333
|
+
return this.safeDataset.map((i, l) => ({
|
|
334
|
+
absoluteIndex: l,
|
|
335
|
+
...i,
|
|
336
|
+
series: i.series.map((o) => o + this.relativeZero),
|
|
337
|
+
absoluteValues: i.series,
|
|
338
|
+
segregate: () => this.segregate(i),
|
|
339
|
+
isSegregated: this.segregatedSeries.includes(i.id)
|
|
335
340
|
}));
|
|
336
341
|
},
|
|
337
342
|
barSet() {
|
|
338
|
-
return this.activeSeriesWithStackRatios.filter((
|
|
339
|
-
this.checkAutoScaleError(
|
|
340
|
-
const o = Math.min(...
|
|
341
|
-
ratios:
|
|
343
|
+
return this.activeSeriesWithStackRatios.filter((i) => i.type === "bar").map((i, l) => {
|
|
344
|
+
this.checkAutoScaleError(i);
|
|
345
|
+
const o = Math.min(...i.absoluteValues.filter((x) => ![null, void 0].includes(x))), d = Math.max(...i.absoluteValues.filter((x) => ![null, void 0].includes(x))), e = {
|
|
346
|
+
ratios: i.absoluteValues.filter((x) => ![null, void 0].includes(x)).map((x) => (x - o) / (d - o)),
|
|
342
347
|
valueMin: o,
|
|
343
|
-
valueMax:
|
|
344
|
-
},
|
|
345
|
-
max:
|
|
346
|
-
min:
|
|
347
|
-
},
|
|
348
|
-
const
|
|
348
|
+
valueMax: d < 0 ? 0 : d
|
|
349
|
+
}, N = {
|
|
350
|
+
max: i.scaleMax || Math.max(...i.absoluteValues) || 1,
|
|
351
|
+
min: i.scaleMin || Math.min(...i.absoluteValues.filter((x) => ![void 0, null].includes(x))) > 0 ? 0 : Math.min(...i.absoluteValues.filter((x) => ![null, void 0].includes(x)))
|
|
352
|
+
}, _ = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, O = 1.0000001, I = this.calculateNiceScaleWithExactExtremes(N.min, N.max === N.min ? N.max * O : N.max, _), b = this.calculateNiceScaleWithExactExtremes(e.valueMin, e.valueMax === e.valueMin ? e.valueMax * O : e.valueMax, _), V = I.min >= 0 ? 0 : Math.abs(I.min), v = 0, z = I.max + V, G = b.max + Math.abs(v), F = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - i.cumulatedStackRatio) : 0, C = this.mutableConfig.isStacked ? this.drawingArea.height * i.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, T = this.drawingArea.bottom - F - C * V / z, r = this.drawingArea.bottom - F - C * v / G, h = this.absoluteDataset.filter((x) => x.type === "bar").filter((x) => !this.segregatedSeries.includes(x.id)).length, n = i.series.map((x, p) => {
|
|
353
|
+
const y = this.mutableConfig.useIndividualScale ? (i.absoluteValues[p] + V) / z : this.ratioToMax(x), S = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * p : this.drawingArea.left + this.slot.bar * l + this.slot.bar * p * h - this.barSlot / 2 - l * this.barPeriodGap;
|
|
349
354
|
return {
|
|
350
|
-
yOffset: this.checkNaN(
|
|
355
|
+
yOffset: this.checkNaN(F),
|
|
351
356
|
individualHeight: this.checkNaN(C),
|
|
352
|
-
x: this.checkNaN(
|
|
353
|
-
y: this.drawingArea.bottom -
|
|
354
|
-
value:
|
|
355
|
-
zeroPosition: this.checkNaN(
|
|
357
|
+
x: this.checkNaN(S),
|
|
358
|
+
y: this.drawingArea.bottom - F - C * y,
|
|
359
|
+
value: i.absoluteValues[p],
|
|
360
|
+
zeroPosition: this.checkNaN(T),
|
|
356
361
|
individualMax: this.checkNaN(z),
|
|
357
|
-
comment:
|
|
362
|
+
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[p] || ""
|
|
358
363
|
};
|
|
359
|
-
}),
|
|
360
|
-
const
|
|
364
|
+
}), g = i.absoluteValues.map((x) => b.min >= 0 ? (x - Math.abs(b.min)) / (b.max - Math.abs(b.min)) : (x + Math.abs(b.min)) / (b.max + Math.abs(b.min))), Y = i.series.map((x, p) => {
|
|
365
|
+
const y = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * p : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar * l + this.slot.bar * p * this.absoluteDataset.filter((S) => S.type === "bar").filter((S) => !this.segregatedSeries.includes(S.id)).length;
|
|
361
366
|
return {
|
|
362
|
-
yOffset: this.checkNaN(
|
|
367
|
+
yOffset: this.checkNaN(F),
|
|
363
368
|
individualHeight: this.checkNaN(C),
|
|
364
|
-
x: this.checkNaN(
|
|
365
|
-
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(
|
|
366
|
-
value:
|
|
367
|
-
zeroPosition: this.checkNaN(
|
|
369
|
+
x: this.checkNaN(y),
|
|
370
|
+
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(F) - (this.checkNaN(C) * g[p] || 0)),
|
|
371
|
+
value: i.absoluteValues[p],
|
|
372
|
+
zeroPosition: this.checkNaN(T),
|
|
368
373
|
individualMax: this.checkNaN(z),
|
|
369
|
-
comment:
|
|
374
|
+
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[p] || ""
|
|
370
375
|
};
|
|
371
|
-
}),
|
|
372
|
-
y:
|
|
373
|
-
value:
|
|
374
|
-
prefix:
|
|
375
|
-
suffix:
|
|
376
|
-
datapoint:
|
|
377
|
-
})),
|
|
378
|
-
const
|
|
376
|
+
}), A = I.ticks.map((x) => ({
|
|
377
|
+
y: x >= 0 ? T - C * (x / z) : T + C * Math.abs(x) / z,
|
|
378
|
+
value: x,
|
|
379
|
+
prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
380
|
+
suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
381
|
+
datapoint: i
|
|
382
|
+
})), M = b.ticks.map((x) => {
|
|
383
|
+
const p = (x - b.min) / (b.max - b.min);
|
|
379
384
|
return {
|
|
380
|
-
y:
|
|
381
|
-
value:
|
|
382
|
-
prefix:
|
|
383
|
-
suffix:
|
|
384
|
-
datapoint:
|
|
385
|
+
y: x >= 0 ? r - C * p : r + C * p,
|
|
386
|
+
value: x,
|
|
387
|
+
prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
388
|
+
suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
389
|
+
datapoint: i
|
|
385
390
|
};
|
|
386
391
|
});
|
|
387
392
|
return {
|
|
388
|
-
...
|
|
389
|
-
yOffset:
|
|
390
|
-
autoScaleYLabels:
|
|
393
|
+
...i,
|
|
394
|
+
yOffset: F,
|
|
395
|
+
autoScaleYLabels: M,
|
|
391
396
|
individualHeight: C,
|
|
392
|
-
scaleYLabels:
|
|
393
|
-
individualScale:
|
|
394
|
-
individualMax:
|
|
395
|
-
zeroPosition:
|
|
396
|
-
plots:
|
|
397
|
+
scaleYLabels: i.autoScaling ? M : A,
|
|
398
|
+
individualScale: i.autoScaling ? b : I,
|
|
399
|
+
individualMax: i.autoScaling ? G : z,
|
|
400
|
+
zeroPosition: i.autoScaling ? r : T,
|
|
401
|
+
plots: i.autoScaling ? Y : n
|
|
397
402
|
};
|
|
398
403
|
});
|
|
399
404
|
},
|
|
@@ -401,138 +406,139 @@ const Ue = J(), Ze = {
|
|
|
401
406
|
return this.absoluteDataset.length;
|
|
402
407
|
},
|
|
403
408
|
activeSeriesWithStackRatios() {
|
|
404
|
-
return this.assignStackRatios(this.absoluteDataset.filter((
|
|
409
|
+
return this.assignStackRatios(this.absoluteDataset.filter((i) => !this.segregatedSeries.includes(i.id)));
|
|
405
410
|
},
|
|
406
411
|
lineSet() {
|
|
407
|
-
return this.activeSeriesWithStackRatios.filter((
|
|
408
|
-
this.checkAutoScaleError(
|
|
409
|
-
const
|
|
410
|
-
ratios:
|
|
411
|
-
valueMin:
|
|
412
|
+
return this.activeSeriesWithStackRatios.filter((i) => i.type === "line").map((i) => {
|
|
413
|
+
this.checkAutoScaleError(i);
|
|
414
|
+
const l = Math.min(...i.absoluteValues.filter((y) => ![void 0, null].includes(y))), o = Math.max(...i.absoluteValues.filter((y) => ![void 0, null].includes(y))) || 1, t = {
|
|
415
|
+
ratios: i.absoluteValues.filter((y) => ![null, void 0].includes(y)).map((y) => (y - l) / (o - l)),
|
|
416
|
+
valueMin: l,
|
|
412
417
|
valueMax: o
|
|
413
418
|
}, e = {
|
|
414
|
-
max:
|
|
415
|
-
min:
|
|
416
|
-
},
|
|
417
|
-
const
|
|
419
|
+
max: i.scaleMax || Math.max(...i.absoluteValues) || 1,
|
|
420
|
+
min: i.scaleMin || (Math.min(...i.absoluteValues) > 0 ? 0 : Math.min(...i.absoluteValues))
|
|
421
|
+
}, N = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, O = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * _ : e.max, N), I = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax === t.valueMin ? t.valueMax * _ : t.valueMax, N), b = O.min >= 0 ? 0 : Math.abs(O.min), V = 0, v = O.max + Math.abs(b), z = I.max + Math.abs(V), G = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - i.cumulatedStackRatio) : 0, F = this.mutableConfig.isStacked ? this.drawingArea.height * i.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - G - F * b / v, T = this.drawingArea.bottom - G - F * V / z, r = i.series.map((y, S) => {
|
|
422
|
+
const Q = this.mutableConfig.useIndividualScale ? (i.absoluteValues[S] + Math.abs(b)) / v : this.ratioToMax(y);
|
|
418
423
|
return {
|
|
419
|
-
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line *
|
|
420
|
-
y: this.checkNaN(this.drawingArea.bottom -
|
|
421
|
-
value:
|
|
422
|
-
comment:
|
|
424
|
+
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * S),
|
|
425
|
+
y: this.checkNaN(this.drawingArea.bottom - G - F * Q),
|
|
426
|
+
value: i.absoluteValues[S],
|
|
427
|
+
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[S] || ""
|
|
423
428
|
};
|
|
424
|
-
}), h =
|
|
425
|
-
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line *
|
|
429
|
+
}), h = i.absoluteValues.map((y) => I.min >= 0 ? (y - Math.abs(I.min)) / (I.max - Math.abs(I.min)) : (y + Math.abs(I.min)) / (I.max + Math.abs(I.min))), n = i.series.map((y, S) => [void 0, null].includes(i.absoluteValues[S]) ? {
|
|
430
|
+
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * S),
|
|
426
431
|
y: C,
|
|
427
|
-
value:
|
|
428
|
-
comment:
|
|
432
|
+
value: i.absoluteValues[S],
|
|
433
|
+
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[S] || ""
|
|
429
434
|
} : {
|
|
430
|
-
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line *
|
|
431
|
-
y: this.checkNaN(this.drawingArea.bottom -
|
|
432
|
-
value:
|
|
433
|
-
comment:
|
|
434
|
-
}),
|
|
435
|
-
y:
|
|
436
|
-
value:
|
|
437
|
-
prefix:
|
|
438
|
-
suffix:
|
|
439
|
-
datapoint:
|
|
440
|
-
})),
|
|
441
|
-
const
|
|
435
|
+
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * S),
|
|
436
|
+
y: this.checkNaN(this.drawingArea.bottom - G - (F * h[S] || 0)),
|
|
437
|
+
value: i.absoluteValues[S],
|
|
438
|
+
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[S] || ""
|
|
439
|
+
}), g = this.createSmoothPath(r), Y = this.createSmoothPath(n), A = this.createStraightPath(r), M = this.createStraightPath(n), x = O.ticks.map((y) => ({
|
|
440
|
+
y: y >= 0 ? C - F * (y / v) : C + F * Math.abs(y) / v,
|
|
441
|
+
value: y,
|
|
442
|
+
prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
443
|
+
suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
444
|
+
datapoint: i
|
|
445
|
+
})), p = I.ticks.map((y) => {
|
|
446
|
+
const S = (y - I.min) / (I.max - I.min);
|
|
442
447
|
return {
|
|
443
|
-
y:
|
|
444
|
-
value:
|
|
445
|
-
prefix:
|
|
446
|
-
suffix:
|
|
447
|
-
datapoint:
|
|
448
|
+
y: y >= 0 ? T - F * S : T + F * S,
|
|
449
|
+
value: y,
|
|
450
|
+
prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
451
|
+
suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
452
|
+
datapoint: i
|
|
448
453
|
};
|
|
449
454
|
});
|
|
450
455
|
return {
|
|
451
|
-
...
|
|
452
|
-
yOffset:
|
|
453
|
-
autoScaleYLabels:
|
|
454
|
-
individualHeight:
|
|
455
|
-
scaleYLabels:
|
|
456
|
-
individualScale:
|
|
457
|
-
individualMax:
|
|
458
|
-
zeroPosition:
|
|
459
|
-
curve:
|
|
460
|
-
plots:
|
|
461
|
-
area:
|
|
456
|
+
...i,
|
|
457
|
+
yOffset: G,
|
|
458
|
+
autoScaleYLabels: p,
|
|
459
|
+
individualHeight: F,
|
|
460
|
+
scaleYLabels: i.autoScaling ? p : x,
|
|
461
|
+
individualScale: i.autoScaling ? I : O,
|
|
462
|
+
individualMax: i.autoScaling ? z : v,
|
|
463
|
+
zeroPosition: i.autoScaling ? T : C,
|
|
464
|
+
curve: i.autoScaling ? Y : g,
|
|
465
|
+
plots: i.autoScaling ? n : r,
|
|
466
|
+
area: i.useArea ? this.mutableConfig.useIndividualScale ? this.createIndividualArea(i.autoScaling ? n : r, i.autoScaling ? T : C) : this.createArea(r) : "",
|
|
467
|
+
straight: i.autoScaling ? M : A
|
|
462
468
|
};
|
|
463
469
|
});
|
|
464
470
|
},
|
|
465
471
|
plotSet() {
|
|
466
|
-
return this.activeSeriesWithStackRatios.filter((
|
|
467
|
-
this.checkAutoScaleError(
|
|
468
|
-
const
|
|
469
|
-
ratios:
|
|
470
|
-
valueMin:
|
|
472
|
+
return this.activeSeriesWithStackRatios.filter((i) => i.type === "plot").map((i) => {
|
|
473
|
+
this.checkAutoScaleError(i);
|
|
474
|
+
const l = Math.min(...i.absoluteValues.filter((A) => ![null, void 0].includes(A))), o = Math.max(...i.absoluteValues.filter((A) => ![null, void 0].includes(A))) || 1, t = {
|
|
475
|
+
ratios: i.absoluteValues.filter((A) => ![null, void 0].includes(A)).map((A) => (A - l) / (o - l)),
|
|
476
|
+
valueMin: l,
|
|
471
477
|
valueMax: o
|
|
472
478
|
}, e = {
|
|
473
|
-
max:
|
|
474
|
-
min:
|
|
475
|
-
},
|
|
476
|
-
const
|
|
479
|
+
max: i.scaleMax || Math.max(...i.absoluteValues) || 1,
|
|
480
|
+
min: i.scaleMin || Math.min(...i.absoluteValues) > 0 ? 0 : Math.min(...i.absoluteValues)
|
|
481
|
+
}, N = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, O = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * _ : e.max, N), I = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax === t.valueMin ? t.valueMax * _ : t.valueMax, N), b = O.min >= 0 ? 0 : Math.abs(O.min), V = 0, v = O.max + b, z = I.max + Math.abs(V), G = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - i.cumulatedStackRatio) : 0, F = this.mutableConfig.isStacked ? this.drawingArea.height * i.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - G - F * b / v, T = this.drawingArea.bottom - G - F * V / z, r = i.series.map((A, M) => {
|
|
482
|
+
const x = this.mutableConfig.useIndividualScale ? (i.absoluteValues[M] + Math.abs(b)) / v : this.ratioToMax(A);
|
|
477
483
|
return {
|
|
478
|
-
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot *
|
|
479
|
-
y: this.checkNaN(this.drawingArea.bottom -
|
|
480
|
-
value:
|
|
481
|
-
comment:
|
|
484
|
+
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * M),
|
|
485
|
+
y: this.checkNaN(this.drawingArea.bottom - G - F * x),
|
|
486
|
+
value: i.absoluteValues[M],
|
|
487
|
+
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[M] || ""
|
|
482
488
|
};
|
|
483
|
-
}), h =
|
|
484
|
-
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot *
|
|
485
|
-
y: this.checkNaN(this.drawingArea.bottom -
|
|
486
|
-
value:
|
|
487
|
-
comment:
|
|
488
|
-
})),
|
|
489
|
-
y:
|
|
490
|
-
value:
|
|
491
|
-
prefix:
|
|
492
|
-
suffix:
|
|
493
|
-
datapoint:
|
|
494
|
-
})),
|
|
495
|
-
const
|
|
489
|
+
}), h = i.absoluteValues.map((A) => I.min >= 0 ? (A - Math.abs(I.min)) / (I.max - Math.abs(I.min)) : (A + Math.abs(I.min)) / (I.max + Math.abs(I.min))), n = i.series.map((A, M) => ({
|
|
490
|
+
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * M),
|
|
491
|
+
y: this.checkNaN(this.drawingArea.bottom - G - (F * h[M] || 0)),
|
|
492
|
+
value: i.absoluteValues[M],
|
|
493
|
+
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[M] || ""
|
|
494
|
+
})), g = O.ticks.map((A) => ({
|
|
495
|
+
y: A >= 0 ? C - F * (A / v) : C + F * Math.abs(A) / v,
|
|
496
|
+
value: A,
|
|
497
|
+
prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
498
|
+
suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
499
|
+
datapoint: i
|
|
500
|
+
})), Y = I.ticks.map((A) => {
|
|
501
|
+
const M = (A - I.min) / (I.max - I.min);
|
|
496
502
|
return {
|
|
497
|
-
y:
|
|
498
|
-
value:
|
|
499
|
-
prefix:
|
|
500
|
-
suffix:
|
|
501
|
-
datapoint:
|
|
503
|
+
y: A >= 0 ? T - F * M : T + F * M,
|
|
504
|
+
value: A,
|
|
505
|
+
prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
506
|
+
suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
507
|
+
datapoint: i
|
|
502
508
|
};
|
|
503
509
|
});
|
|
504
510
|
return {
|
|
505
|
-
...
|
|
506
|
-
yOffset:
|
|
507
|
-
autoScaleYLabels:
|
|
508
|
-
individualHeight:
|
|
509
|
-
scaleYLabels:
|
|
510
|
-
individualScale:
|
|
511
|
-
individualMax:
|
|
512
|
-
zeroPosition:
|
|
513
|
-
plots:
|
|
511
|
+
...i,
|
|
512
|
+
yOffset: G,
|
|
513
|
+
autoScaleYLabels: Y,
|
|
514
|
+
individualHeight: F,
|
|
515
|
+
scaleYLabels: i.autoScaling ? Y : g,
|
|
516
|
+
individualScale: i.autoScaling ? I : O,
|
|
517
|
+
individualMax: i.autoScaling ? z : v,
|
|
518
|
+
zeroPosition: i.autoScaling ? T : C,
|
|
519
|
+
plots: i.autoScaling ? n : r
|
|
514
520
|
};
|
|
515
521
|
});
|
|
516
522
|
},
|
|
517
523
|
drawingArea() {
|
|
518
|
-
const
|
|
524
|
+
const i = this.mutableConfig.useIndividualScale && this.FINAL_CONFIG.chart.grid.labels.show ? this.absoluteDataset.filter((l) => !this.segregatedSeries.includes(l.id)).length * (this.mutableConfig.isStacked ? 0 : this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth) : 0;
|
|
519
525
|
return {
|
|
520
526
|
top: this.FINAL_CONFIG.chart.padding.top,
|
|
521
527
|
right: this.width - this.FINAL_CONFIG.chart.padding.right,
|
|
522
528
|
bottom: this.height - this.FINAL_CONFIG.chart.padding.bottom,
|
|
523
|
-
left: this.FINAL_CONFIG.chart.padding.left +
|
|
529
|
+
left: this.FINAL_CONFIG.chart.padding.left + i,
|
|
524
530
|
height: this.height - (this.FINAL_CONFIG.chart.padding.top + this.FINAL_CONFIG.chart.padding.bottom),
|
|
525
|
-
width: this.width - (this.FINAL_CONFIG.chart.padding.right + this.FINAL_CONFIG.chart.padding.left +
|
|
531
|
+
width: this.width - (this.FINAL_CONFIG.chart.padding.right + this.FINAL_CONFIG.chart.padding.left + i)
|
|
526
532
|
};
|
|
527
533
|
},
|
|
528
534
|
max() {
|
|
529
|
-
return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax ? this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax : Math.max(...this.safeDataset.filter((
|
|
535
|
+
return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax ? this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax : Math.max(...this.safeDataset.filter((i) => !this.segregatedSeries.includes(i.id)).map((i) => Math.max(...i.series)));
|
|
530
536
|
},
|
|
531
537
|
min() {
|
|
532
538
|
if (this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin !== null)
|
|
533
539
|
return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin;
|
|
534
|
-
const
|
|
535
|
-
return
|
|
540
|
+
const i = Math.min(...this.safeDataset.filter((l) => !this.segregatedSeries.includes(l.id)).map((l) => Math.min(...l.series)));
|
|
541
|
+
return i > 0 ? 0 : i;
|
|
536
542
|
},
|
|
537
543
|
niceScale() {
|
|
538
544
|
return this.calculateNiceScaleWithExactExtremes(this.min, this.max < 0 ? 0 : this.max, this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps);
|
|
@@ -541,70 +547,70 @@ const Ue = J(), Ze = {
|
|
|
541
547
|
return this.slicer.end - this.slicer.start;
|
|
542
548
|
},
|
|
543
549
|
timeLabels() {
|
|
544
|
-
const
|
|
545
|
-
for (let o = 0; o <
|
|
546
|
-
|
|
550
|
+
const i = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length)), l = [];
|
|
551
|
+
for (let o = 0; o < i; o += 1)
|
|
552
|
+
l.push({
|
|
547
553
|
text: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[o] || String(o),
|
|
548
554
|
absoluteIndex: o
|
|
549
555
|
});
|
|
550
|
-
return
|
|
556
|
+
return l.slice(this.slicer.start, this.slicer.end);
|
|
551
557
|
},
|
|
552
558
|
slot() {
|
|
553
559
|
return {
|
|
554
|
-
bar: this.drawingArea.width / this.maxSeries / this.safeDataset.filter((
|
|
560
|
+
bar: this.drawingArea.width / this.maxSeries / this.safeDataset.filter((i) => i.type === "bar").filter((i) => !this.segregatedSeries.includes(i.id)).length,
|
|
555
561
|
plot: this.drawingArea.width / this.maxSeries,
|
|
556
562
|
line: this.drawingArea.width / this.maxSeries
|
|
557
563
|
};
|
|
558
564
|
},
|
|
559
565
|
barSlot() {
|
|
560
|
-
const
|
|
561
|
-
return this.drawingArea.width / this.maxSeries /
|
|
566
|
+
const i = this.safeDataset.filter((l) => l.type === "bar").filter((l) => !this.segregatedSeries.includes(l.id)).length;
|
|
567
|
+
return this.drawingArea.width / this.maxSeries / i - this.barPeriodGap * i;
|
|
562
568
|
},
|
|
563
569
|
barPeriodGap() {
|
|
564
570
|
return this.slot.line * this.FINAL_CONFIG.bar.periodGap;
|
|
565
571
|
},
|
|
566
572
|
maxSlot() {
|
|
567
|
-
return Math.max(...Object.values(this.slot).filter((
|
|
573
|
+
return Math.max(...Object.values(this.slot).filter((i) => i !== 1 / 0));
|
|
568
574
|
},
|
|
569
575
|
table() {
|
|
570
576
|
if (this.safeDataset.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
571
|
-
const
|
|
577
|
+
const i = this.relativeDataset.map((o) => ({
|
|
572
578
|
label: o.name,
|
|
573
579
|
color: o.color,
|
|
574
580
|
type: o.type
|
|
575
|
-
})),
|
|
576
|
-
return this.timeLabels.forEach((o,
|
|
581
|
+
})), l = [];
|
|
582
|
+
return this.timeLabels.forEach((o, d) => {
|
|
577
583
|
const t = [o.text];
|
|
578
584
|
this.relativeDataset.forEach((e) => {
|
|
579
|
-
t.push(this.canShowValue(e.absoluteValues[
|
|
580
|
-
}),
|
|
581
|
-
}), { head:
|
|
585
|
+
t.push(this.canShowValue(e.absoluteValues[d]) ? Number(e.absoluteValues[d].toFixed(this.FINAL_CONFIG.table.rounding)) : "");
|
|
586
|
+
}), l.push(t);
|
|
587
|
+
}), { head: i, body: l };
|
|
582
588
|
},
|
|
583
589
|
dataTable() {
|
|
584
|
-
const
|
|
585
|
-
let
|
|
586
|
-
|
|
590
|
+
const i = this.FINAL_CONFIG.table.showSum;
|
|
591
|
+
let l = [""].concat(this.relativeDataset.map((e) => e.name));
|
|
592
|
+
i && (l = l.concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'));
|
|
587
593
|
let o = [];
|
|
588
594
|
for (let e = 0; e < this.maxSeries; e += 1) {
|
|
589
|
-
const
|
|
595
|
+
const N = this.relativeDataset.map((_) => _.absoluteValues[e] ?? 0).reduce((_, O) => _ + O, 0);
|
|
590
596
|
o.push(
|
|
591
597
|
[
|
|
592
598
|
this.timeLabels[e].text ?? "-"
|
|
593
599
|
].concat(this.relativeDataset.map(
|
|
594
|
-
(
|
|
595
|
-
|
|
596
|
-
|
|
600
|
+
(_) => this.applyDataLabel(
|
|
601
|
+
_.type === "line" ? this.FINAL_CONFIG.line.labels.formatter : _.type === "bar" ? this.FINAL_CONFIG.bar.labels.formatter : this.FINAL_CONFIG.plot.labels.formatter,
|
|
602
|
+
_.absoluteValues[e] ?? 0,
|
|
597
603
|
this.dataLabel({
|
|
598
|
-
p:
|
|
599
|
-
v:
|
|
600
|
-
s:
|
|
604
|
+
p: _.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
605
|
+
v: _.absoluteValues[e] ?? 0,
|
|
606
|
+
s: _.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
601
607
|
r: this.FINAL_CONFIG.table.rounding
|
|
602
608
|
})
|
|
603
609
|
)
|
|
604
|
-
)).concat(
|
|
610
|
+
)).concat(i ? (N ?? 0).toFixed(this.FINAL_CONFIG.table.rounding) : [])
|
|
605
611
|
);
|
|
606
612
|
}
|
|
607
|
-
const
|
|
613
|
+
const d = {
|
|
608
614
|
th: {
|
|
609
615
|
backgroundColor: this.FINAL_CONFIG.table.th.backgroundColor,
|
|
610
616
|
color: this.FINAL_CONFIG.table.th.color,
|
|
@@ -617,7 +623,7 @@ const Ue = J(), Ze = {
|
|
|
617
623
|
},
|
|
618
624
|
breakpoint: this.FINAL_CONFIG.table.responsiveBreakpoint
|
|
619
625
|
}, t = [this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map((e) => e.name)).concat(this.FINAL_CONFIG.table.columnNames.total);
|
|
620
|
-
return { head:
|
|
626
|
+
return { head: l, body: o, config: d, colNames: t };
|
|
621
627
|
},
|
|
622
628
|
dataTooltipSlot() {
|
|
623
629
|
return {
|
|
@@ -631,22 +637,22 @@ const Ue = J(), Ze = {
|
|
|
631
637
|
};
|
|
632
638
|
},
|
|
633
639
|
selectedSeries() {
|
|
634
|
-
return this.relativeDataset.map((
|
|
635
|
-
slotAbsoluteIndex:
|
|
636
|
-
shape:
|
|
637
|
-
name:
|
|
638
|
-
color:
|
|
639
|
-
type:
|
|
640
|
-
value:
|
|
641
|
-
comments:
|
|
642
|
-
prefix:
|
|
643
|
-
suffix:
|
|
640
|
+
return this.relativeDataset.map((i) => ({
|
|
641
|
+
slotAbsoluteIndex: i.slotAbsoluteIndex,
|
|
642
|
+
shape: i.shape || null,
|
|
643
|
+
name: i.name,
|
|
644
|
+
color: i.color,
|
|
645
|
+
type: i.type,
|
|
646
|
+
value: i.absoluteValues.find((l, o) => o === this.selectedSerieIndex),
|
|
647
|
+
comments: i.comments || [],
|
|
648
|
+
prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
649
|
+
suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix
|
|
644
650
|
}));
|
|
645
651
|
},
|
|
646
652
|
tooltipContent() {
|
|
647
|
-
let
|
|
648
|
-
const o = this.timeLabels[this.selectedSerieIndex],
|
|
649
|
-
return this.isFunction(
|
|
653
|
+
let i = "", l = this.selectedSeries.map((t) => t.value).filter((t) => this.isSafeValue(t) && t !== null).reduce((t, e) => Math.abs(t) + Math.abs(e), 0);
|
|
654
|
+
const o = this.timeLabels[this.selectedSerieIndex], d = this.FINAL_CONFIG.chart.tooltip.customFormat;
|
|
655
|
+
return this.isFunction(d) && this.functionReturnsString(() => d({
|
|
650
656
|
seriesIndex: this.selectedSerieIndex,
|
|
651
657
|
datapoint: this.selectedSeries,
|
|
652
658
|
series: this.absoluteDataset,
|
|
@@ -654,7 +660,7 @@ const Ue = J(), Ze = {
|
|
|
654
660
|
lines: this.lineSet,
|
|
655
661
|
plots: this.plotSet,
|
|
656
662
|
config: this.FINAL_CONFIG
|
|
657
|
-
})) ?
|
|
663
|
+
})) ? d({
|
|
658
664
|
seriesIndex: this.selectedSerieIndex,
|
|
659
665
|
datapoint: this.selectedSeries,
|
|
660
666
|
series: this.absoluteDataset,
|
|
@@ -662,15 +668,15 @@ const Ue = J(), Ze = {
|
|
|
662
668
|
lines: this.lineSet,
|
|
663
669
|
plots: this.plotSet,
|
|
664
670
|
config: this.FINAL_CONFIG
|
|
665
|
-
}) : (o && o.text && this.FINAL_CONFIG.chart.tooltip.showTimeLabel && (
|
|
671
|
+
}) : (o && o.text && this.FINAL_CONFIG.chart.tooltip.showTimeLabel && (i += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${o.text}</div>`), this.selectedSeries.forEach((t) => {
|
|
666
672
|
if (this.isSafeValue(t.value)) {
|
|
667
|
-
let e = "",
|
|
673
|
+
let e = "", N = "";
|
|
668
674
|
switch (this.icons[t.type]) {
|
|
669
675
|
case "bar":
|
|
670
676
|
e = `<svg viewBox="0 0 40 40" height="14" width="14">${this.$slots.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${t.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${this.$slots.pattern ? `url(#pattern_${this.uniqueId}_${t.slotAbsoluteIndex}` : t.color}" /></svg>`;
|
|
671
677
|
break;
|
|
672
678
|
case "line":
|
|
673
|
-
!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ?
|
|
679
|
+
!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? N = `<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" />` : t.shape === "triangle" ? N = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "square" ? N = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "diamond" ? N = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "pentagon" ? N = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "hexagon" ? N = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "star" && (N = `<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" points="${X({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), e = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${t.color}" />${N}</svg>`;
|
|
674
680
|
break;
|
|
675
681
|
case "plot":
|
|
676
682
|
if (!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape)) {
|
|
@@ -682,27 +688,27 @@ const Ue = J(), Ze = {
|
|
|
682
688
|
break;
|
|
683
689
|
}
|
|
684
690
|
if (t.shape === "triangle") {
|
|
685
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
691
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${H({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
686
692
|
break;
|
|
687
693
|
}
|
|
688
694
|
if (t.shape === "square") {
|
|
689
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
695
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${H({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
690
696
|
break;
|
|
691
697
|
}
|
|
692
698
|
if (t.shape === "diamond") {
|
|
693
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
699
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${H({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
694
700
|
break;
|
|
695
701
|
}
|
|
696
702
|
if (t.shape === "pentagon") {
|
|
697
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
703
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${H({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
698
704
|
break;
|
|
699
705
|
}
|
|
700
706
|
if (t.shape === "hexagon") {
|
|
701
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
707
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${H({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
702
708
|
break;
|
|
703
709
|
}
|
|
704
710
|
}
|
|
705
|
-
|
|
711
|
+
i += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${e}</div> ${t.name}: <b>${this.FINAL_CONFIG.chart.tooltip.showValue ? this.applyDataLabel(
|
|
706
712
|
t.type === "line" ? this.FINAL_CONFIG.line.labels.formatter : t.type === "bar" ? this.FINAL_CONFIG.bar.labels.formatter : this.FINAL_CONFIG.plot.labels.formatter,
|
|
707
713
|
t.value,
|
|
708
714
|
this.dataLabel({
|
|
@@ -713,12 +719,12 @@ const Ue = J(), Ze = {
|
|
|
713
719
|
}),
|
|
714
720
|
{ datapoint: t }
|
|
715
721
|
) : ""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage ? `(${U({
|
|
716
|
-
v: this.checkNaN(Math.abs(t.value) /
|
|
722
|
+
v: this.checkNaN(Math.abs(t.value) / l * 100),
|
|
717
723
|
s: "%",
|
|
718
724
|
r: this.FINAL_CONFIG.chart.tooltip.roundingPercentage
|
|
719
|
-
})})` : ""}</div>`, this.FINAL_CONFIG.chart.comments.showInTooltip && t.comments.length && t.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex] && (
|
|
725
|
+
})})` : ""}</div>`, this.FINAL_CONFIG.chart.comments.showInTooltip && t.comments.length && t.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex] && (i += `<div class="vue-data-ui-tooltip-comment" style="background:${t.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${t.color}">${t.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex]}</div>`);
|
|
720
726
|
}
|
|
721
|
-
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${this.FINAL_CONFIG.chart.tooltip.color}">${
|
|
727
|
+
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${this.FINAL_CONFIG.chart.tooltip.color}">${i}</div>`);
|
|
722
728
|
},
|
|
723
729
|
svg() {
|
|
724
730
|
return {
|
|
@@ -727,9 +733,9 @@ const Ue = J(), Ze = {
|
|
|
727
733
|
};
|
|
728
734
|
},
|
|
729
735
|
yLabels() {
|
|
730
|
-
return this.niceScale.ticks.map((
|
|
731
|
-
y:
|
|
732
|
-
value:
|
|
736
|
+
return this.niceScale.ticks.map((i) => ({
|
|
737
|
+
y: i >= 0 ? this.zero - this.drawingArea.height * this.ratioToMax(i) : this.zero + this.drawingArea.height * this.ratioToMax(Math.abs(i)),
|
|
738
|
+
value: i,
|
|
733
739
|
prefix: this.FINAL_CONFIG.chart.labels.prefix,
|
|
734
740
|
suffix: this.FINAL_CONFIG.chart.labels.suffix
|
|
735
741
|
}));
|
|
@@ -739,106 +745,107 @@ const Ue = J(), Ze = {
|
|
|
739
745
|
}
|
|
740
746
|
},
|
|
741
747
|
mounted() {
|
|
742
|
-
this.prepareChart(), this.setupSlicer(), document.addEventListener("mousemove", (
|
|
748
|
+
this.prepareChart(), this.setupSlicer(), document.addEventListener("mousemove", (i) => {
|
|
743
749
|
this.clientPosition = {
|
|
744
|
-
x:
|
|
745
|
-
y:
|
|
750
|
+
x: i.clientX,
|
|
751
|
+
y: i.clientY
|
|
746
752
|
};
|
|
747
753
|
});
|
|
748
754
|
},
|
|
749
755
|
methods: {
|
|
750
|
-
abbreviate:
|
|
751
|
-
adaptColorToBackground:
|
|
752
|
-
applyDataLabel:
|
|
753
|
-
assignStackRatios:
|
|
756
|
+
abbreviate: te,
|
|
757
|
+
adaptColorToBackground: ie,
|
|
758
|
+
applyDataLabel: re,
|
|
759
|
+
assignStackRatios: ae,
|
|
754
760
|
calcLinearProgression: le,
|
|
755
|
-
calculateNiceScaleWithExactExtremes:
|
|
756
|
-
checkNaN:
|
|
757
|
-
closestDecimal:
|
|
758
|
-
convertColorToHex:
|
|
759
|
-
convertConfigColors:
|
|
760
|
-
convertCustomPalette:
|
|
761
|
-
createCsvContent:
|
|
762
|
-
createSmoothPath:
|
|
763
|
-
|
|
761
|
+
calculateNiceScaleWithExactExtremes: se,
|
|
762
|
+
checkNaN: ne,
|
|
763
|
+
closestDecimal: he,
|
|
764
|
+
convertColorToHex: oe,
|
|
765
|
+
convertConfigColors: ce,
|
|
766
|
+
convertCustomPalette: de,
|
|
767
|
+
createCsvContent: ue,
|
|
768
|
+
createSmoothPath: ge,
|
|
769
|
+
createStraightPath: fe,
|
|
770
|
+
createTSpans: Ie,
|
|
764
771
|
dataLabel: U,
|
|
765
|
-
downloadCsv:
|
|
766
|
-
error:
|
|
767
|
-
forceValidValue:
|
|
768
|
-
functionReturnsString:
|
|
769
|
-
hasDeepProperty:
|
|
770
|
-
isFunction:
|
|
771
|
-
isSafeValue:
|
|
772
|
-
largestTriangleThreeBucketsArray:
|
|
773
|
-
objectIsEmpty:
|
|
774
|
-
setOpacity:
|
|
775
|
-
shiftHue:
|
|
776
|
-
translateSize:
|
|
777
|
-
treeShake:
|
|
778
|
-
useMouse:
|
|
772
|
+
downloadCsv: me,
|
|
773
|
+
error: Ne,
|
|
774
|
+
forceValidValue: xe,
|
|
775
|
+
functionReturnsString: be,
|
|
776
|
+
hasDeepProperty: Fe,
|
|
777
|
+
isFunction: _e,
|
|
778
|
+
isSafeValue: Ae,
|
|
779
|
+
largestTriangleThreeBucketsArray: ye,
|
|
780
|
+
objectIsEmpty: Le,
|
|
781
|
+
setOpacity: Ce,
|
|
782
|
+
shiftHue: Se,
|
|
783
|
+
translateSize: ke,
|
|
784
|
+
treeShake: we,
|
|
785
|
+
useMouse: Me,
|
|
779
786
|
useNestedProp: Z,
|
|
780
|
-
setUserOptionsVisibility(
|
|
781
|
-
this.showUserOptionsOnChartHover && (this.userOptionsVisible =
|
|
787
|
+
setUserOptionsVisibility(i = !1) {
|
|
788
|
+
this.showUserOptionsOnChartHover && (this.userOptionsVisible = i);
|
|
782
789
|
},
|
|
783
790
|
toggleAnnotator() {
|
|
784
791
|
this.isAnnotator = !this.isAnnotator;
|
|
785
792
|
},
|
|
786
|
-
selectTimeLabel(
|
|
787
|
-
const o = this.relativeDataset.map((
|
|
788
|
-
shape:
|
|
789
|
-
name:
|
|
790
|
-
color:
|
|
791
|
-
type:
|
|
792
|
-
value:
|
|
793
|
-
comments:
|
|
794
|
-
prefix:
|
|
795
|
-
suffix:
|
|
793
|
+
selectTimeLabel(i, l) {
|
|
794
|
+
const o = this.relativeDataset.map((d) => ({
|
|
795
|
+
shape: d.shape || null,
|
|
796
|
+
name: d.name,
|
|
797
|
+
color: d.color,
|
|
798
|
+
type: d.type,
|
|
799
|
+
value: d.absoluteValues.find((t, e) => e === l),
|
|
800
|
+
comments: d.comments || [],
|
|
801
|
+
prefix: d.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
802
|
+
suffix: d.suffix || this.FINAL_CONFIG.chart.labels.suffix
|
|
796
803
|
}));
|
|
797
804
|
this.$emit("selectTimeLabel", {
|
|
798
805
|
datapoint: o,
|
|
799
|
-
absoluteIndex:
|
|
800
|
-
label:
|
|
806
|
+
absoluteIndex: i.absoluteIndex,
|
|
807
|
+
label: i.text
|
|
801
808
|
});
|
|
802
809
|
},
|
|
803
|
-
getHighlightAreaPosition(
|
|
804
|
-
const
|
|
810
|
+
getHighlightAreaPosition(i) {
|
|
811
|
+
const l = this.drawingArea.left + this.drawingArea.width / this.maxSeries * (i.from - this.slicer.start), o = this.drawingArea.width / (this.slicer.end - this.slicer.start) * i.span < 0 ? 1e-5 : this.drawingArea.width / (this.slicer.end - this.slicer.start) * i.span;
|
|
805
812
|
return {
|
|
806
|
-
x:
|
|
813
|
+
x: l < this.drawingArea.left ? this.drawingArea.left : l,
|
|
807
814
|
width: o
|
|
808
815
|
};
|
|
809
816
|
},
|
|
810
817
|
prepareConfig() {
|
|
811
|
-
const
|
|
818
|
+
const i = Oe().vue_ui_xy;
|
|
812
819
|
if (!Object.keys(this.config || {}).length)
|
|
813
|
-
return
|
|
814
|
-
const
|
|
820
|
+
return i;
|
|
821
|
+
const l = this.useNestedProp({
|
|
815
822
|
userConfig: this.config,
|
|
816
|
-
defaultConfig:
|
|
823
|
+
defaultConfig: i
|
|
817
824
|
});
|
|
818
|
-
return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ?
|
|
825
|
+
return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ? l.chart.highlightArea = this.config.chart.highlightArea : l.chart.highlightArea = [this.config.chart.highlightArea]), this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMin") ? l.chart.grid.labels.yAxis.scaleMin = this.config.chart.grid.labels.yAxis.scaleMin : l.chart.grid.labels.yAxis.scaleMin = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMax") ? l.chart.grid.labels.yAxis.scaleMax = this.config.chart.grid.labels.yAxis.scaleMax : l.chart.grid.labels.yAxis.scaleMax = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.startIndex") ? l.chart.zoom.startIndex = this.config.chart.zoom.startIndex : l.chart.zoom.startIndex = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.endIndex") ? l.chart.zoom.endIndex = this.config.chart.zoom.endIndex : l.chart.zoom.endIndex = null, l.theme ? {
|
|
819
826
|
...Z({
|
|
820
|
-
userConfig: this.themes.vue_ui_xy[
|
|
821
|
-
defaultConfig:
|
|
827
|
+
userConfig: this.themes.vue_ui_xy[l.theme] || this.config,
|
|
828
|
+
defaultConfig: l
|
|
822
829
|
}),
|
|
823
|
-
customPalette: this.themePalettes[
|
|
824
|
-
} :
|
|
830
|
+
customPalette: this.themePalettes[l.theme] || this.palette
|
|
831
|
+
} : l;
|
|
825
832
|
},
|
|
826
833
|
prepareChart() {
|
|
827
834
|
if (this.objectIsEmpty(this.dataset) ? this.error({
|
|
828
835
|
componentName: "VueUiXy",
|
|
829
836
|
type: "dataset"
|
|
830
|
-
}) : this.dataset.forEach((
|
|
831
|
-
[null, void 0].includes(
|
|
837
|
+
}) : this.dataset.forEach((i, l) => {
|
|
838
|
+
[null, void 0].includes(i.name) && this.error({
|
|
832
839
|
componentName: "VueUiXy",
|
|
833
840
|
type: "datasetSerieAttribute",
|
|
834
841
|
property: "name (string)",
|
|
835
|
-
index:
|
|
842
|
+
index: l
|
|
836
843
|
});
|
|
837
|
-
}), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((
|
|
838
|
-
|
|
839
|
-
this.isSafeValue(
|
|
840
|
-
-----> The serie '${
|
|
841
|
-
'${
|
|
844
|
+
}), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((i) => {
|
|
845
|
+
i.series.forEach((l, o) => {
|
|
846
|
+
this.isSafeValue(l) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
847
|
+
-----> The serie '${i.name}' contains the value '${l}' at index ${o}.
|
|
848
|
+
'${l}' was converted to null to allow the chart to display.`);
|
|
842
849
|
});
|
|
843
850
|
}), 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 = {
|
|
844
851
|
dataLabels: {
|
|
@@ -849,25 +856,25 @@ const Ue = J(), Ze = {
|
|
|
849
856
|
isStacked: this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,
|
|
850
857
|
useIndividualScale: this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale
|
|
851
858
|
}, this.FINAL_CONFIG.responsive) {
|
|
852
|
-
const
|
|
859
|
+
const l = this.$refs.chart.parentNode, { height: o, width: d } = l.getBoundingClientRect();
|
|
853
860
|
let t = null, e = 0;
|
|
854
861
|
this.FINAL_CONFIG.chart.title.show && (t = this.$refs.chartTitle, e = t.getBoundingClientRect().height);
|
|
855
|
-
let
|
|
856
|
-
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (
|
|
857
|
-
let
|
|
858
|
-
this.FINAL_CONFIG.chart.legend.show && (
|
|
862
|
+
let N = null, _ = 0;
|
|
863
|
+
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (N = this.$refs.chartSlicer.$el, _ = N.getBoundingClientRect().height);
|
|
864
|
+
let O = null, I = 0;
|
|
865
|
+
this.FINAL_CONFIG.chart.legend.show && (O = this.$refs.chartLegend, I = O.getBoundingClientRect().height);
|
|
859
866
|
let b = 0;
|
|
860
867
|
this.$refs.source && (b = this.$refs.source.getBoundingClientRect().height);
|
|
861
868
|
let V = 0;
|
|
862
|
-
this.$refs.noTitle && (V = this.$refs.noTitle.getBoundingClientRect().height), this.height = o - e -
|
|
863
|
-
for (const
|
|
864
|
-
this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (
|
|
865
|
-
}).observe(
|
|
869
|
+
this.$refs.noTitle && (V = this.$refs.noTitle.getBoundingClientRect().height), this.height = o - e - I - _ - b - V, this.width = d, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes(), new ResizeObserver((z) => {
|
|
870
|
+
for (const G of z)
|
|
871
|
+
this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (_ = this.$refs.chartSlicer.$el.getBoundingClientRect().height), this.$refs.chartLegend && (I = this.$refs.chartLegend.getBoundingClientRect().height), this.$refs.source && (b = this.$refs.source.getBoundingClientRect().height), this.height = G.contentBoxSize[0].blockSize - e - I - _ - b - 24, this.width = G.contentBoxSize[0].inlineSize, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
|
|
872
|
+
}).observe(l);
|
|
866
873
|
} else
|
|
867
874
|
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;
|
|
868
875
|
},
|
|
869
|
-
selectMinimapIndex(
|
|
870
|
-
this.selectedMinimapIndex =
|
|
876
|
+
selectMinimapIndex(i) {
|
|
877
|
+
this.selectedMinimapIndex = i;
|
|
871
878
|
},
|
|
872
879
|
convertSizes() {
|
|
873
880
|
this.fontSizes.dataLabels = this.translateSize({
|
|
@@ -920,119 +927,119 @@ const Ue = J(), Ze = {
|
|
|
920
927
|
toggleTooltip() {
|
|
921
928
|
this.mutableConfig.showTooltip = !this.mutableConfig.showTooltip;
|
|
922
929
|
},
|
|
923
|
-
checkAutoScaleError(
|
|
924
|
-
|
|
930
|
+
checkAutoScaleError(i) {
|
|
931
|
+
i.autoScaling && (this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${i.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: ${i.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
|
|
925
932
|
},
|
|
926
|
-
createArea(
|
|
927
|
-
if (!
|
|
928
|
-
const
|
|
929
|
-
return
|
|
930
|
-
|
|
931
|
-
}), [
|
|
933
|
+
createArea(i) {
|
|
934
|
+
if (!i[0]) return [-10, -10, "", -10, -10];
|
|
935
|
+
const l = { x: i[0].x, y: this.zero }, o = { x: i.at(-1).x, y: this.zero }, d = [];
|
|
936
|
+
return i.forEach((t) => {
|
|
937
|
+
d.push(`${t.x},${t.y} `);
|
|
938
|
+
}), [l.x, l.y, ...d, o.x, o.y].toString();
|
|
932
939
|
},
|
|
933
|
-
createIndividualArea(
|
|
934
|
-
if (!
|
|
935
|
-
const o = { x:
|
|
936
|
-
return
|
|
940
|
+
createIndividualArea(i, l) {
|
|
941
|
+
if (!i[0]) return [-10, -10, "", -10, -10];
|
|
942
|
+
const o = { x: i[0] ? i[0].x : Math.min(...i.filter((e) => !!e).map((e) => e.x)), y: l }, d = { x: i.at(-1) ? i.at(-1).x : Math.min(...i.filter((e) => !!e).map((e) => e.x)), y: l }, t = [];
|
|
943
|
+
return i.filter((e) => !!e).forEach((e) => {
|
|
937
944
|
t.push(`${e.x},${e.y} `);
|
|
938
|
-
}), [o.x, o.y, ...t,
|
|
945
|
+
}), [o.x, o.y, ...t, d.x, d.y].toString();
|
|
939
946
|
},
|
|
940
947
|
createStar: X,
|
|
941
|
-
createPolygonPath:
|
|
942
|
-
fillArray(
|
|
943
|
-
let o = Array(
|
|
944
|
-
for (let
|
|
945
|
-
o[
|
|
948
|
+
createPolygonPath: H,
|
|
949
|
+
fillArray(i, l) {
|
|
950
|
+
let o = Array(i).fill(0);
|
|
951
|
+
for (let d = 0; d < l.length && d < i; d += 1)
|
|
952
|
+
o[d] = l[d];
|
|
946
953
|
return o;
|
|
947
954
|
},
|
|
948
955
|
async setupSlicer() {
|
|
949
956
|
(this.FINAL_CONFIG.chart.zoom.startIndex !== null || this.FINAL_CONFIG.chart.zoom.endIndex !== null) && this.$refs.chartSlicer ? (this.FINAL_CONFIG.chart.zoom.startIndex !== null && (await this.$nextTick(), await this.$nextTick(), this.$refs.chartSlicer.setStartValue(this.FINAL_CONFIG.chart.zoom.startIndex)), this.FINAL_CONFIG.chart.zoom.endIndex !== null && (await this.$nextTick(), await this.$nextTick(), this.$refs.chartSlicer.setEndValue(this.validSlicerEnd(this.FINAL_CONFIG.chart.zoom.endIndex + 1)))) : (this.slicer = {
|
|
950
957
|
start: 0,
|
|
951
|
-
end: Math.max(...this.dataset.map((
|
|
958
|
+
end: Math.max(...this.dataset.map((i) => this.largestTriangleThreeBucketsArray({ data: i.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length))
|
|
952
959
|
}, this.slicerStep += 1);
|
|
953
960
|
},
|
|
954
961
|
refreshSlicer() {
|
|
955
962
|
this.setupSlicer();
|
|
956
963
|
},
|
|
957
|
-
validSlicerEnd(
|
|
958
|
-
const
|
|
959
|
-
return
|
|
964
|
+
validSlicerEnd(i) {
|
|
965
|
+
const l = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length));
|
|
966
|
+
return i > l ? l : i < 0 || this.FINAL_CONFIG.chart.zoom.startIndex !== null && i < this.FINAL_CONFIG.chart.zoom.startIndex ? this.FINAL_CONFIG.chart.zoom.startIndex !== null ? this.FINAL_CONFIG.chart.zoom.startIndex + 1 : 1 : i;
|
|
960
967
|
},
|
|
961
|
-
calcRectHeight(
|
|
962
|
-
const
|
|
963
|
-
return
|
|
968
|
+
calcRectHeight(i) {
|
|
969
|
+
const l = ![null, void 0].includes(this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin) && this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin > 0 && this.min >= 0 ? this.drawingArea.bottom : this.zero;
|
|
970
|
+
return i.value >= 0 ? this.checkNaN(l - i.y <= 0 ? 1e-5 : l - i.y) : this.checkNaN(i.y - this.zero <= 0 ? 1e-5 : i.y - this.zero);
|
|
964
971
|
},
|
|
965
|
-
calcIndividualHeight(
|
|
966
|
-
return
|
|
972
|
+
calcIndividualHeight(i) {
|
|
973
|
+
return i.value >= 0 ? this.checkNaN(i.zeroPosition - i.y <= 0 ? 1e-5 : i.zeroPosition - i.y) : this.checkNaN(i.y - i.zeroPosition <= 0 ? 1e-5 : i.zeroPosition - i.y);
|
|
967
974
|
},
|
|
968
975
|
calcRectWidth() {
|
|
969
976
|
return this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.slot.line - this.drawingArea.width / this.maxSeries * 0.1 : this.slot.bar;
|
|
970
977
|
},
|
|
971
|
-
calcRectX(
|
|
972
|
-
return this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ?
|
|
978
|
+
calcRectX(i) {
|
|
979
|
+
return this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? i.x + this.drawingArea.width / this.maxSeries * 0.05 : i.x + this.slot.bar / 2;
|
|
973
980
|
},
|
|
974
|
-
calcRectY(
|
|
975
|
-
return
|
|
981
|
+
calcRectY(i) {
|
|
982
|
+
return i.value >= 0 ? i.y : this.zero;
|
|
976
983
|
},
|
|
977
|
-
calcIndividualRectY(
|
|
978
|
-
return
|
|
984
|
+
calcIndividualRectY(i) {
|
|
985
|
+
return i.value >= 0 ? i.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(i.zeroPosition) ? 0 : i.zeroPosition;
|
|
979
986
|
},
|
|
980
|
-
canShowValue(
|
|
981
|
-
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(
|
|
987
|
+
canShowValue(i) {
|
|
988
|
+
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(i);
|
|
982
989
|
},
|
|
983
|
-
findClosestValue(
|
|
984
|
-
let o =
|
|
985
|
-
for (let t = 1; t <
|
|
986
|
-
const e = Math.abs(
|
|
987
|
-
e <
|
|
990
|
+
findClosestValue(i, l) {
|
|
991
|
+
let o = l[0], d = Math.abs(i - l[0]);
|
|
992
|
+
for (let t = 1; t < l.length; t += 1) {
|
|
993
|
+
const e = Math.abs(i - l[t]);
|
|
994
|
+
e < d && l[t] < i && (o = l[t], d = e);
|
|
988
995
|
}
|
|
989
996
|
return o;
|
|
990
997
|
},
|
|
991
|
-
ratioToMax(
|
|
992
|
-
return
|
|
998
|
+
ratioToMax(i) {
|
|
999
|
+
return i / (this.canShowValue(this.absoluteMax) ? this.absoluteMax : 1);
|
|
993
1000
|
},
|
|
994
|
-
selectX(
|
|
1001
|
+
selectX(i) {
|
|
995
1002
|
this.$emit(
|
|
996
1003
|
"selectX",
|
|
997
1004
|
{
|
|
998
|
-
dataset: this.relativeDataset.map((
|
|
999
|
-
name:
|
|
1000
|
-
value: [null, void 0, NaN].includes(
|
|
1001
|
-
color:
|
|
1002
|
-
type:
|
|
1005
|
+
dataset: this.relativeDataset.map((l) => ({
|
|
1006
|
+
name: l.name,
|
|
1007
|
+
value: [null, void 0, NaN].includes(l.absoluteValues[i]) ? null : l.absoluteValues[i],
|
|
1008
|
+
color: l.color,
|
|
1009
|
+
type: l.type
|
|
1003
1010
|
})),
|
|
1004
|
-
index:
|
|
1005
|
-
indexLabel: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[
|
|
1011
|
+
index: i,
|
|
1012
|
+
indexLabel: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[i]
|
|
1006
1013
|
}
|
|
1007
1014
|
);
|
|
1008
1015
|
},
|
|
1009
1016
|
getData() {
|
|
1010
|
-
return this.absoluteDataset.map((
|
|
1011
|
-
values:
|
|
1012
|
-
color:
|
|
1013
|
-
name:
|
|
1014
|
-
type:
|
|
1017
|
+
return this.absoluteDataset.map((i) => ({
|
|
1018
|
+
values: i.absoluteValues,
|
|
1019
|
+
color: i.color,
|
|
1020
|
+
name: i.name,
|
|
1021
|
+
type: i.type
|
|
1015
1022
|
}));
|
|
1016
1023
|
},
|
|
1017
|
-
segregate(
|
|
1018
|
-
if (this.segregatedSeries.includes(
|
|
1019
|
-
this.segregatedSeries = this.segregatedSeries.filter((
|
|
1024
|
+
segregate(i) {
|
|
1025
|
+
if (this.segregatedSeries.includes(i.id))
|
|
1026
|
+
this.segregatedSeries = this.segregatedSeries.filter((l) => l !== i.id);
|
|
1020
1027
|
else {
|
|
1021
1028
|
if (this.segregatedSeries.length + 1 === this.safeDataset.length) return;
|
|
1022
|
-
this.segregatedSeries.push(
|
|
1029
|
+
this.segregatedSeries.push(i.id);
|
|
1023
1030
|
}
|
|
1024
|
-
this.$emit("selectLegend", this.relativeDataset.map((
|
|
1025
|
-
name:
|
|
1026
|
-
values:
|
|
1027
|
-
color:
|
|
1028
|
-
type:
|
|
1031
|
+
this.$emit("selectLegend", this.relativeDataset.map((l) => ({
|
|
1032
|
+
name: l.name,
|
|
1033
|
+
values: l.absoluteValues,
|
|
1034
|
+
color: l.color,
|
|
1035
|
+
type: l.type
|
|
1029
1036
|
}))), this.segregateStep += 1;
|
|
1030
1037
|
},
|
|
1031
|
-
toggleTooltipVisibility(
|
|
1032
|
-
this.isTooltip =
|
|
1038
|
+
toggleTooltipVisibility(i, l = null) {
|
|
1039
|
+
this.isTooltip = i, i ? this.selectedSerieIndex = l : this.selectedSerieIndex = null;
|
|
1033
1040
|
},
|
|
1034
|
-
toggleFullscreen(
|
|
1035
|
-
this.isFullscreen =
|
|
1041
|
+
toggleFullscreen(i) {
|
|
1042
|
+
this.isFullscreen = i, this.step += 1;
|
|
1036
1043
|
},
|
|
1037
1044
|
showSpinnerPdf() {
|
|
1038
1045
|
this.isPrinting = !0;
|
|
@@ -1040,20 +1047,20 @@ const Ue = J(), Ze = {
|
|
|
1040
1047
|
async generatePdf() {
|
|
1041
1048
|
this.showSpinnerPdf(), clearTimeout(this.__to__), this.isPrinting = !0, this.__to__ = setTimeout(async () => {
|
|
1042
1049
|
try {
|
|
1043
|
-
const { default:
|
|
1044
|
-
await
|
|
1050
|
+
const { default: i } = await import("./pdf-B7oVat64.js");
|
|
1051
|
+
await i({
|
|
1045
1052
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1046
1053
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy"
|
|
1047
1054
|
});
|
|
1048
|
-
} catch (
|
|
1049
|
-
console.error("Error generating PDF:",
|
|
1055
|
+
} catch (i) {
|
|
1056
|
+
console.error("Error generating PDF:", i);
|
|
1050
1057
|
} finally {
|
|
1051
1058
|
this.isPrinting = !1;
|
|
1052
1059
|
}
|
|
1053
1060
|
}, 100);
|
|
1054
1061
|
},
|
|
1055
1062
|
generateCsv() {
|
|
1056
|
-
const
|
|
1063
|
+
const i = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], l = ["", ...this.table.head.map((e) => e.label)], o = this.table.body, d = i.concat([l]).concat(o), t = this.createCsvContent(d);
|
|
1057
1064
|
this.downloadCsv({ csvContent: t, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
|
|
1058
1065
|
},
|
|
1059
1066
|
showSpinnerImage() {
|
|
@@ -1062,47 +1069,47 @@ const Ue = J(), Ze = {
|
|
|
1062
1069
|
async generateImage() {
|
|
1063
1070
|
this.showSpinnerImage(), clearTimeout(this.__to__), this.isImaging = !0, this.__to__ = setTimeout(async () => {
|
|
1064
1071
|
try {
|
|
1065
|
-
const { default:
|
|
1066
|
-
await
|
|
1072
|
+
const { default: i } = await import("./img-DGzWcJ4Y.js");
|
|
1073
|
+
await i({
|
|
1067
1074
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1068
1075
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
1069
1076
|
format: "png"
|
|
1070
1077
|
});
|
|
1071
|
-
} catch (
|
|
1072
|
-
console.error("Error generating image:",
|
|
1078
|
+
} catch (i) {
|
|
1079
|
+
console.error("Error generating image:", i);
|
|
1073
1080
|
} finally {
|
|
1074
1081
|
this.isImaging = !1;
|
|
1075
1082
|
}
|
|
1076
1083
|
}, 100);
|
|
1077
1084
|
}
|
|
1078
1085
|
}
|
|
1079
|
-
},
|
|
1086
|
+
}, Ke = ["id"], je = {
|
|
1080
1087
|
key: 1,
|
|
1081
1088
|
ref: "noTitle",
|
|
1082
1089
|
class: "vue-data-ui-no-title-space",
|
|
1083
1090
|
style: "height:36px; width: 100%; background:transparent"
|
|
1084
|
-
},
|
|
1091
|
+
}, $e = ["viewBox"], et = ["x", "y", "width", "height"], tt = { key: 1 }, it = { class: "vue-ui-xy-grid" }, rt = ["stroke", "x1", "x2", "y1", "y2"], at = ["stroke", "x1", "x2", "y1", "y2"], lt = { key: 1 }, st = ["x1", "x2", "y1", "y2", "stroke"], nt = ["x1", "x2", "y1", "y2", "stroke"], ht = ["x1", "x2", "y1", "y2", "stroke"], ot = { key: 3 }, ct = ["x1", "x2", "y1", "y2", "stroke"], dt = ["id"], ut = ["stop-color"], gt = ["stop-color"], ft = ["stop-color"], It = ["id"], mt = ["stop-color"], Nt = ["stop-color"], xt = ["stop-color"], bt = ["id"], Ft = ["stop-color"], _t = ["stop-color"], At = ["id"], yt = ["stop-color"], Lt = ["stop-color"], Ct = ["id"], St = ["stop-color"], kt = ["stop-color"], wt = ["x", "y", "height", "width", "fill"], Ot = ["x", "y", "width"], Gt = ["x", "y", "height", "width", "fill"], vt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], zt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Mt = ["width", "x", "y"], pt = { key: 0 }, Tt = ["id"], Pt = ["fill"], Vt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Rt = ["x", "y", "font-size", "fill"], Dt = ["stroke", "x1", "x2", "y1", "y2"], Ht = { key: 2 }, Bt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Wt = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Et = { key: 4 }, Yt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], qt = ["fill", "font-size", "transform"], Xt = ["x1", "x2", "y1", "y2", "stroke"], Ut = ["x", "y", "font-size", "fill"], Zt = ["x1", "x2", "y1", "y2", "stroke"], Jt = ["x", "y", "font-size", "fill"], Qt = ["width", "x", "y"], Kt = { style: { width: "100%" } }, jt = { key: 0 }, $t = ["id"], ei = ["fill"], ti = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ii = ["x", "y", "font-size", "fill"], ri = ["d", "stroke", "stroke-width", "stroke-dasharray"], ai = ["d", "stroke", "stroke-width", "stroke-dasharray"], li = { key: 5 }, si = { key: 0 }, ni = ["d", "fill"], hi = ["d", "fill"], oi = ["d", "fill"], ci = ["d", "fill"], di = ["d", "stroke", "stroke-width", "stroke-dasharray"], ui = ["d", "stroke", "stroke-width", "stroke-dasharray"], gi = ["width", "x", "y"], fi = { style: { width: "100%" } }, Ii = { key: 3 }, mi = ["id"], Ni = ["fill"], xi = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], bi = ["x", "y", "font-size", "fill"], Fi = { key: 6 }, _i = ["x", "y", "font-size", "fill"], Ai = ["x", "y", "font-size", "fill", "font-weight"], yi = { key: 7 }, Li = ["x", "y", "font-size", "fill"], Ci = ["x", "y"], Si = ["x", "y"], ki = { key: 8 }, wi = ["x", "y", "font-size", "fill"], Oi = ["x", "y"], Gi = ["x", "y"], vi = ["x", "y", "font-size", "fill", "innerHTML"], zi = ["x", "y", "font-size", "fill", "innerHTML"], Mi = ["x", "y", "font-size", "fill", "innerHTML"], pi = ["x", "y", "font-size", "fill", "innerHTML"], Ti = ["x", "y", "width", "height", "fill", "onMouseenter"], Pi = ["font-size", "fill", "transform"], Vi = ["x", "y", "font-size", "fill"], Ri = { key: 10 }, Di = ["text-anchor", "font-size", "fill", "transform", "onClick"], Hi = ["x", "y", "height", "width", "onMouseenter", "onClick"], Bi = { key: 11 }, Wi = ["x", "y"], Ei = ["cx", "cy", "r", "fill"], Yi = {
|
|
1085
1092
|
key: 5,
|
|
1086
1093
|
class: "vue-data-ui-watermark"
|
|
1087
|
-
},
|
|
1094
|
+
}, qi = ["onClick"], Xi = {
|
|
1088
1095
|
key: 0,
|
|
1089
1096
|
viewBox: "0 0 20 12",
|
|
1090
1097
|
height: "14",
|
|
1091
1098
|
width: "20"
|
|
1092
|
-
},
|
|
1099
|
+
}, Ui = ["stroke", "fill"], Zi = {
|
|
1093
1100
|
key: 1,
|
|
1094
1101
|
viewBox: "0 0 40 40",
|
|
1095
1102
|
height: "14",
|
|
1096
1103
|
width: "14"
|
|
1097
|
-
},
|
|
1104
|
+
}, Ji = ["fill"], Qi = ["fill"], Ki = {
|
|
1098
1105
|
key: 2,
|
|
1099
1106
|
viewBox: "0 0 12 12",
|
|
1100
1107
|
height: "14",
|
|
1101
1108
|
width: "14"
|
|
1102
|
-
},
|
|
1109
|
+
}, ji = {
|
|
1103
1110
|
key: 9,
|
|
1104
1111
|
ref: "chartLegend"
|
|
1105
|
-
}, $
|
|
1112
|
+
}, $i = {
|
|
1106
1113
|
key: 10,
|
|
1107
1114
|
ref: "source",
|
|
1108
1115
|
dir: "auto"
|
|
@@ -1110,32 +1117,32 @@ const Ue = J(), Ze = {
|
|
|
1110
1117
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
1111
1118
|
"data-html2canvas-ignore": ""
|
|
1112
1119
|
}, tr = ["innerHTML"];
|
|
1113
|
-
function
|
|
1114
|
-
const
|
|
1115
|
-
return
|
|
1120
|
+
function ir(i, l, o, d, t, e) {
|
|
1121
|
+
const N = R("PenAndPaper"), _ = R("Title"), O = R("UserOptions"), I = R("PackageVersion"), b = R("Shape"), V = R("Skeleton"), v = R("Slicer"), z = R("Tooltip"), G = R("BaseIcon"), F = R("TableSparkline"), C = R("DataTable"), T = R("Accordion");
|
|
1122
|
+
return a(), s("div", {
|
|
1116
1123
|
id: `vue-ui-xy_${t.uniqueId}`,
|
|
1117
|
-
class:
|
|
1124
|
+
class: D(`vue-ui-xy ${t.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1118
1125
|
ref: "chart",
|
|
1119
1126
|
style: L(`background:${e.FINAL_CONFIG.chart.backgroundColor}; color:${e.FINAL_CONFIG.chart.color};width:100%;font-family:${e.FINAL_CONFIG.chart.fontFamily};${e.FINAL_CONFIG.responsive ? "height: 100%" : ""}`),
|
|
1120
|
-
onMouseenter:
|
|
1121
|
-
onMouseleave:
|
|
1127
|
+
onMouseenter: l[7] || (l[7] = () => e.setUserOptionsVisibility(!0)),
|
|
1128
|
+
onMouseleave: l[8] || (l[8] = () => e.setUserOptionsVisibility(!1))
|
|
1122
1129
|
}, [
|
|
1123
|
-
e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (
|
|
1130
|
+
e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (a(), B(N, {
|
|
1124
1131
|
key: 0,
|
|
1125
|
-
parent:
|
|
1132
|
+
parent: i.$refs.chart,
|
|
1126
1133
|
backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1127
1134
|
color: e.FINAL_CONFIG.chart.color,
|
|
1128
1135
|
active: t.isAnnotator,
|
|
1129
1136
|
onClose: e.toggleAnnotator
|
|
1130
1137
|
}, null, 8, ["parent", "backgroundColor", "color", "active", "onClose"])) : c("", !0),
|
|
1131
|
-
e.hasOptionsNoTitle ? (
|
|
1132
|
-
e.FINAL_CONFIG.chart.title.show ? (
|
|
1138
|
+
e.hasOptionsNoTitle ? (a(), s("div", je, null, 512)) : c("", !0),
|
|
1139
|
+
e.FINAL_CONFIG.chart.title.show ? (a(), s("div", {
|
|
1133
1140
|
key: 2,
|
|
1134
1141
|
ref: "chartTitle",
|
|
1135
1142
|
class: "vue-ui-xy-title",
|
|
1136
1143
|
style: L(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
1137
1144
|
}, [
|
|
1138
|
-
(
|
|
1145
|
+
(a(), B(_, {
|
|
1139
1146
|
key: `title_${t.titleStep}`,
|
|
1140
1147
|
config: {
|
|
1141
1148
|
title: {
|
|
@@ -1149,7 +1156,7 @@ function ar(a, s, o, u, t, e) {
|
|
|
1149
1156
|
}
|
|
1150
1157
|
}, null, 8, ["config"]))
|
|
1151
1158
|
], 4)) : c("", !0),
|
|
1152
|
-
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (t.keepUserOptionState || t.userOptionsVisible) ? (
|
|
1159
|
+
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (t.keepUserOptionState || t.userOptionsVisible) ? (a(), B(O, {
|
|
1153
1160
|
ref: "defails",
|
|
1154
1161
|
key: `user_options_${t.step}`,
|
|
1155
1162
|
backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
@@ -1167,7 +1174,7 @@ function ar(a, s, o, u, t, e) {
|
|
|
1167
1174
|
hasFullscreen: e.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,
|
|
1168
1175
|
isStacked: t.mutableConfig.isStacked,
|
|
1169
1176
|
isFullscreen: t.isFullscreen,
|
|
1170
|
-
chartElement:
|
|
1177
|
+
chartElement: i.$refs.chart,
|
|
1171
1178
|
position: e.FINAL_CONFIG.chart.userOptions.position,
|
|
1172
1179
|
isTooltip: t.mutableConfig.showTooltip,
|
|
1173
1180
|
titles: { ...e.FINAL_CONFIG.chart.userOptions.buttonTitles },
|
|
@@ -1185,81 +1192,81 @@ function ar(a, s, o, u, t, e) {
|
|
|
1185
1192
|
style: L({
|
|
1186
1193
|
visibility: t.keepUserOptionState ? t.userOptionsVisible ? "visible" : "hidden" : "visible"
|
|
1187
1194
|
})
|
|
1188
|
-
},
|
|
1189
|
-
|
|
1195
|
+
}, Ee({ _: 2 }, [
|
|
1196
|
+
i.$slots.optionTooltip ? {
|
|
1190
1197
|
name: "optionTooltip",
|
|
1191
|
-
fn:
|
|
1192
|
-
|
|
1198
|
+
fn: P(() => [
|
|
1199
|
+
k(i.$slots, "optionTooltip", {}, void 0, !0)
|
|
1193
1200
|
]),
|
|
1194
1201
|
key: "0"
|
|
1195
1202
|
} : void 0,
|
|
1196
|
-
|
|
1203
|
+
i.$slots.optionPdf ? {
|
|
1197
1204
|
name: "optionPdf",
|
|
1198
|
-
fn:
|
|
1199
|
-
|
|
1205
|
+
fn: P(() => [
|
|
1206
|
+
k(i.$slots, "optionPdf", {}, void 0, !0)
|
|
1200
1207
|
]),
|
|
1201
1208
|
key: "1"
|
|
1202
1209
|
} : void 0,
|
|
1203
|
-
|
|
1210
|
+
i.$slots.optionCsv ? {
|
|
1204
1211
|
name: "optionCsv",
|
|
1205
|
-
fn:
|
|
1206
|
-
|
|
1212
|
+
fn: P(() => [
|
|
1213
|
+
k(i.$slots, "optionCsv", {}, void 0, !0)
|
|
1207
1214
|
]),
|
|
1208
1215
|
key: "2"
|
|
1209
1216
|
} : void 0,
|
|
1210
|
-
|
|
1217
|
+
i.$slots.optionImg ? {
|
|
1211
1218
|
name: "optionImg",
|
|
1212
|
-
fn:
|
|
1213
|
-
|
|
1219
|
+
fn: P(() => [
|
|
1220
|
+
k(i.$slots, "optionImg", {}, void 0, !0)
|
|
1214
1221
|
]),
|
|
1215
1222
|
key: "3"
|
|
1216
1223
|
} : void 0,
|
|
1217
|
-
|
|
1224
|
+
i.$slots.optionTable ? {
|
|
1218
1225
|
name: "optionTable",
|
|
1219
|
-
fn:
|
|
1220
|
-
|
|
1226
|
+
fn: P(() => [
|
|
1227
|
+
k(i.$slots, "optionTable", {}, void 0, !0)
|
|
1221
1228
|
]),
|
|
1222
1229
|
key: "4"
|
|
1223
1230
|
} : void 0,
|
|
1224
|
-
|
|
1231
|
+
i.$slots.optionLabels ? {
|
|
1225
1232
|
name: "optionLabels",
|
|
1226
|
-
fn:
|
|
1227
|
-
|
|
1233
|
+
fn: P(() => [
|
|
1234
|
+
k(i.$slots, "optionLabels", {}, void 0, !0)
|
|
1228
1235
|
]),
|
|
1229
1236
|
key: "5"
|
|
1230
1237
|
} : void 0,
|
|
1231
|
-
|
|
1238
|
+
i.$slots.optionStack ? {
|
|
1232
1239
|
name: "optionStack",
|
|
1233
|
-
fn:
|
|
1234
|
-
|
|
1240
|
+
fn: P(() => [
|
|
1241
|
+
k(i.$slots, "optionStack", {}, void 0, !0)
|
|
1235
1242
|
]),
|
|
1236
1243
|
key: "6"
|
|
1237
1244
|
} : void 0,
|
|
1238
|
-
|
|
1245
|
+
i.$slots.optionFullscreen ? {
|
|
1239
1246
|
name: "optionFullscreen",
|
|
1240
|
-
fn:
|
|
1241
|
-
|
|
1247
|
+
fn: P(({ toggleFullscreen: r, isFullscreen: h }) => [
|
|
1248
|
+
k(i.$slots, "optionFullscreen", W(E({ toggleFullscreen: r, isFullscreen: h })), void 0, !0)
|
|
1242
1249
|
]),
|
|
1243
1250
|
key: "7"
|
|
1244
1251
|
} : void 0,
|
|
1245
|
-
|
|
1252
|
+
i.$slots.optionAnnotator ? {
|
|
1246
1253
|
name: "optionAnnotator",
|
|
1247
|
-
fn:
|
|
1248
|
-
|
|
1254
|
+
fn: P(({ toggleAnnotator: r, isAnnotator: h }) => [
|
|
1255
|
+
k(i.$slots, "optionAnnotator", W(E({ toggleAnnotator: r, isAnnotator: h })), void 0, !0)
|
|
1249
1256
|
]),
|
|
1250
1257
|
key: "8"
|
|
1251
1258
|
} : void 0
|
|
1252
1259
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onToggleFullscreen", "onGeneratePdf", "onGenerateCsv", "onGenerateImage", "onToggleTable", "onToggleLabels", "onToggleStack", "onToggleTooltip", "onToggleAnnotator", "style"])) : c("", !0),
|
|
1253
|
-
e.isDataset ? (
|
|
1260
|
+
e.isDataset ? (a(), s("svg", {
|
|
1254
1261
|
key: 4,
|
|
1255
1262
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1256
|
-
class:
|
|
1263
|
+
class: D([{ "vue-data-ui-fullscreen--on": t.isFullscreen, "vue-data-ui-fulscreen--off": !t.isFullscreen }, "vue-ui-xy-svg"]),
|
|
1257
1264
|
width: "100%",
|
|
1258
1265
|
viewBox: t.viewBox,
|
|
1259
1266
|
style: L(`background: transparent; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
1260
1267
|
}, [
|
|
1261
|
-
q(
|
|
1262
|
-
|
|
1268
|
+
q(I),
|
|
1269
|
+
i.$slots["chart-background"] ? (a(), s("foreignObject", {
|
|
1263
1270
|
key: 0,
|
|
1264
1271
|
x: e.drawingArea.left + e.xPadding < 0 ? 0 : e.drawingArea.left + e.xPadding,
|
|
1265
1272
|
y: e.drawingArea.top,
|
|
@@ -1269,11 +1276,11 @@ function ar(a, s, o, u, t, e) {
|
|
|
1269
1276
|
pointerEvents: "none"
|
|
1270
1277
|
}
|
|
1271
1278
|
}, [
|
|
1272
|
-
|
|
1273
|
-
], 8,
|
|
1274
|
-
e.maxSeries > 0 ? (
|
|
1275
|
-
|
|
1276
|
-
e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (
|
|
1279
|
+
k(i.$slots, "chart-background", {}, void 0, !0)
|
|
1280
|
+
], 8, et)) : c("", !0),
|
|
1281
|
+
e.maxSeries > 0 ? (a(), s("g", tt, [
|
|
1282
|
+
u("g", it, [
|
|
1283
|
+
e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (a(), s("line", {
|
|
1277
1284
|
key: 0,
|
|
1278
1285
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1279
1286
|
"stroke-width": "1",
|
|
@@ -1282,9 +1289,9 @@ function ar(a, s, o, u, t, e) {
|
|
|
1282
1289
|
y1: e.forceValidValue(e.drawingArea.bottom),
|
|
1283
1290
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1284
1291
|
"stroke-linecap": "round"
|
|
1285
|
-
}, null, 8,
|
|
1286
|
-
t.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (
|
|
1287
|
-
r.id === t.selectedScale && r.yLabels.length ? (
|
|
1292
|
+
}, null, 8, rt)) : c("", !0),
|
|
1293
|
+
t.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(!0), s(f, { key: 2 }, m(e.allScales, (r) => (a(), s("g", null, [
|
|
1294
|
+
r.id === t.selectedScale && r.yLabels.length ? (a(!0), s(f, { key: 0 }, m(r.yLabels, (h) => (a(), s("line", {
|
|
1288
1295
|
x1: e.drawingArea.left + e.xPadding,
|
|
1289
1296
|
x2: e.drawingArea.right - e.xPadding,
|
|
1290
1297
|
y1: e.forceValidValue(h.y),
|
|
@@ -1292,7 +1299,7 @@ function ar(a, s, o, u, t, e) {
|
|
|
1292
1299
|
stroke: r.color,
|
|
1293
1300
|
"stroke-width": 0.5,
|
|
1294
1301
|
"stroke-linecap": "round"
|
|
1295
|
-
}, null, 8,
|
|
1302
|
+
}, null, 8, nt))), 256)) : r.yLabels.length ? (a(!0), s(f, { key: 1 }, m(r.yLabels, (h) => (a(), s("line", {
|
|
1296
1303
|
x1: e.drawingArea.left + e.xPadding,
|
|
1297
1304
|
x2: e.drawingArea.right - e.xPadding,
|
|
1298
1305
|
y1: e.forceValidValue(h.y),
|
|
@@ -1300,9 +1307,9 @@ function ar(a, s, o, u, t, e) {
|
|
|
1300
1307
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1301
1308
|
"stroke-width": 0.5,
|
|
1302
1309
|
"stroke-linecap": "round"
|
|
1303
|
-
}, null, 8,
|
|
1304
|
-
]))), 256)) : c("", !0) : (
|
|
1305
|
-
e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (
|
|
1310
|
+
}, null, 8, ht))), 256)) : c("", !0)
|
|
1311
|
+
]))), 256)) : c("", !0) : (a(), s(f, { key: 1 }, [
|
|
1312
|
+
e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (a(), s("line", {
|
|
1306
1313
|
key: 0,
|
|
1307
1314
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1308
1315
|
"stroke-width": "1",
|
|
@@ -1312,8 +1319,8 @@ function ar(a, s, o, u, t, e) {
|
|
|
1312
1319
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1313
1320
|
"stroke-linecap": "round"
|
|
1314
1321
|
}, null, 8, at)) : c("", !0),
|
|
1315
|
-
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (
|
|
1316
|
-
(
|
|
1322
|
+
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(), s("g", lt, [
|
|
1323
|
+
(a(!0), s(f, null, m(e.yLabels, (r) => (a(), s("line", {
|
|
1317
1324
|
x1: e.drawingArea.left + e.xPadding,
|
|
1318
1325
|
x2: e.drawingArea.right - e.xPadding,
|
|
1319
1326
|
y1: e.forceValidValue(r.y),
|
|
@@ -1321,11 +1328,11 @@ function ar(a, s, o, u, t, e) {
|
|
|
1321
1328
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1322
1329
|
"stroke-width": 0.5,
|
|
1323
1330
|
"stroke-linecap": "round"
|
|
1324
|
-
}, null, 8,
|
|
1331
|
+
}, null, 8, st))), 256))
|
|
1325
1332
|
])) : c("", !0)
|
|
1326
1333
|
], 64)),
|
|
1327
|
-
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (
|
|
1328
|
-
(
|
|
1334
|
+
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (a(), s("g", ot, [
|
|
1335
|
+
(a(!0), s(f, null, m(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (r, h) => (a(), s("line", {
|
|
1329
1336
|
key: `grid_vertical_line_${h}`,
|
|
1330
1337
|
x1: e.drawingArea.width / e.maxSeries * h + e.drawingArea.left + e.xPadding,
|
|
1331
1338
|
x2: e.drawingArea.width / e.maxSeries * h + e.drawingArea.left + e.xPadding,
|
|
@@ -1333,53 +1340,53 @@ function ar(a, s, o, u, t, e) {
|
|
|
1333
1340
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1334
1341
|
"stroke-width": "0.5",
|
|
1335
1342
|
stroke: e.FINAL_CONFIG.chart.grid.stroke
|
|
1336
|
-
}, null, 8,
|
|
1343
|
+
}, null, 8, ct))), 128))
|
|
1337
1344
|
])) : c("", !0)
|
|
1338
1345
|
]),
|
|
1339
|
-
(
|
|
1346
|
+
(a(!0), s(f, null, m(e.barSet, (r, h) => (a(), s("defs", {
|
|
1340
1347
|
key: `def_rect_${h}`
|
|
1341
1348
|
}, [
|
|
1342
|
-
|
|
1349
|
+
u("linearGradient", {
|
|
1343
1350
|
id: `rectGradient_pos_${h}_${t.uniqueId}`,
|
|
1344
1351
|
x2: "0%",
|
|
1345
1352
|
y2: "100%"
|
|
1346
1353
|
}, [
|
|
1347
|
-
|
|
1354
|
+
u("stop", {
|
|
1348
1355
|
offset: "0%",
|
|
1349
1356
|
"stop-color": r.color
|
|
1350
|
-
}, null, 8,
|
|
1351
|
-
|
|
1357
|
+
}, null, 8, ut),
|
|
1358
|
+
u("stop", {
|
|
1352
1359
|
offset: "62%",
|
|
1353
1360
|
"stop-color": `${e.shiftHue(r.color, 0.02)}`
|
|
1354
|
-
}, null, 8,
|
|
1355
|
-
|
|
1361
|
+
}, null, 8, gt),
|
|
1362
|
+
u("stop", {
|
|
1356
1363
|
offset: "100%",
|
|
1357
1364
|
"stop-color": `${e.shiftHue(r.color, 0.05)}`
|
|
1358
|
-
}, null, 8,
|
|
1359
|
-
], 8,
|
|
1360
|
-
|
|
1365
|
+
}, null, 8, ft)
|
|
1366
|
+
], 8, dt),
|
|
1367
|
+
u("linearGradient", {
|
|
1361
1368
|
id: `rectGradient_neg_${h}_${t.uniqueId}`,
|
|
1362
1369
|
x2: "0%",
|
|
1363
1370
|
y2: "100%"
|
|
1364
1371
|
}, [
|
|
1365
|
-
|
|
1372
|
+
u("stop", {
|
|
1366
1373
|
offset: "0%",
|
|
1367
1374
|
"stop-color": `${e.shiftHue(r.color, 0.05)}`
|
|
1368
|
-
}, null, 8,
|
|
1369
|
-
|
|
1375
|
+
}, null, 8, mt),
|
|
1376
|
+
u("stop", {
|
|
1370
1377
|
offset: "38%",
|
|
1371
1378
|
"stop-color": `${e.shiftHue(r.color, 0.02)}`
|
|
1372
|
-
}, null, 8,
|
|
1373
|
-
|
|
1379
|
+
}, null, 8, Nt),
|
|
1380
|
+
u("stop", {
|
|
1374
1381
|
offset: "100%",
|
|
1375
1382
|
"stop-color": r.color
|
|
1376
|
-
}, null, 8,
|
|
1377
|
-
], 8,
|
|
1383
|
+
}, null, 8, xt)
|
|
1384
|
+
], 8, It)
|
|
1378
1385
|
]))), 128)),
|
|
1379
|
-
(
|
|
1386
|
+
(a(!0), s(f, null, m(e.plotSet, (r, h) => (a(), s("defs", {
|
|
1380
1387
|
key: `def_plot_${h}`
|
|
1381
1388
|
}, [
|
|
1382
|
-
|
|
1389
|
+
u("radialGradient", {
|
|
1383
1390
|
id: `plotGradient_${h}_${t.uniqueId}`,
|
|
1384
1391
|
cx: "50%",
|
|
1385
1392
|
cy: "50%",
|
|
@@ -1387,20 +1394,20 @@ function ar(a, s, o, u, t, e) {
|
|
|
1387
1394
|
fx: "50%",
|
|
1388
1395
|
fy: "50%"
|
|
1389
1396
|
}, [
|
|
1390
|
-
|
|
1397
|
+
u("stop", {
|
|
1391
1398
|
offset: "0%",
|
|
1392
1399
|
"stop-color": `${e.shiftHue(r.color, 0.05)}`
|
|
1393
|
-
}, null, 8,
|
|
1394
|
-
|
|
1400
|
+
}, null, 8, Ft),
|
|
1401
|
+
u("stop", {
|
|
1395
1402
|
offset: "100%",
|
|
1396
1403
|
"stop-color": r.color
|
|
1397
|
-
}, null, 8,
|
|
1398
|
-
], 8,
|
|
1404
|
+
}, null, 8, _t)
|
|
1405
|
+
], 8, bt)
|
|
1399
1406
|
]))), 128)),
|
|
1400
|
-
(
|
|
1407
|
+
(a(!0), s(f, null, m(e.lineSet, (r, h) => (a(), s("defs", {
|
|
1401
1408
|
key: `def_line_${h}`
|
|
1402
1409
|
}, [
|
|
1403
|
-
|
|
1410
|
+
u("radialGradient", {
|
|
1404
1411
|
id: `lineGradient_${h}_${t.uniqueId}`,
|
|
1405
1412
|
cx: "50%",
|
|
1406
1413
|
cy: "50%",
|
|
@@ -1408,35 +1415,35 @@ function ar(a, s, o, u, t, e) {
|
|
|
1408
1415
|
fx: "50%",
|
|
1409
1416
|
fy: "50%"
|
|
1410
1417
|
}, [
|
|
1411
|
-
|
|
1418
|
+
u("stop", {
|
|
1412
1419
|
offset: "0%",
|
|
1413
1420
|
"stop-color": `${e.shiftHue(r.color, 0.05)}`
|
|
1414
|
-
}, null, 8,
|
|
1415
|
-
|
|
1421
|
+
}, null, 8, yt),
|
|
1422
|
+
u("stop", {
|
|
1416
1423
|
offset: "100%",
|
|
1417
1424
|
"stop-color": r.color
|
|
1418
|
-
}, null, 8,
|
|
1419
|
-
], 8,
|
|
1420
|
-
|
|
1425
|
+
}, null, 8, Lt)
|
|
1426
|
+
], 8, At),
|
|
1427
|
+
u("linearGradient", {
|
|
1421
1428
|
id: `areaGradient_${h}_${t.uniqueId}`,
|
|
1422
1429
|
x1: "0%",
|
|
1423
1430
|
x2: "100%",
|
|
1424
1431
|
y1: "0%",
|
|
1425
1432
|
y2: "0%"
|
|
1426
1433
|
}, [
|
|
1427
|
-
|
|
1434
|
+
u("stop", {
|
|
1428
1435
|
offset: "0%",
|
|
1429
1436
|
"stop-color": `${e.setOpacity(e.shiftHue(r.color, 0.03), e.FINAL_CONFIG.line.area.opacity)}`
|
|
1430
|
-
}, null, 8,
|
|
1431
|
-
|
|
1437
|
+
}, null, 8, St),
|
|
1438
|
+
u("stop", {
|
|
1432
1439
|
offset: "100%",
|
|
1433
1440
|
"stop-color": `${e.setOpacity(r.color, e.FINAL_CONFIG.line.area.opacity)}`
|
|
1434
|
-
}, null, 8,
|
|
1435
|
-
], 8,
|
|
1441
|
+
}, null, 8, kt)
|
|
1442
|
+
], 8, Ct)
|
|
1436
1443
|
]))), 128)),
|
|
1437
|
-
(
|
|
1438
|
-
r.show ? (
|
|
1439
|
-
|
|
1444
|
+
(a(!0), s(f, null, m(e.highlightAreas, (r) => (a(), s("g", null, [
|
|
1445
|
+
r.show ? (a(!0), s(f, { key: 0 }, m(r.span, (h, n) => (a(), s("g", null, [
|
|
1446
|
+
u("rect", {
|
|
1440
1447
|
style: L({
|
|
1441
1448
|
transition: "none",
|
|
1442
1449
|
opacity: r.from + n >= t.slicer.start && r.from + n <= t.slicer.end - 1 ? 1 : 0
|
|
@@ -1446,8 +1453,8 @@ function ar(a, s, o, u, t, e) {
|
|
|
1446
1453
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1447
1454
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1448
1455
|
fill: e.setOpacity(r.color, r.opacity)
|
|
1449
|
-
}, null, 12,
|
|
1450
|
-
r.caption.text && n === 0 ? (
|
|
1456
|
+
}, null, 12, wt),
|
|
1457
|
+
r.caption.text && n === 0 ? (a(), s("foreignObject", {
|
|
1451
1458
|
key: 0,
|
|
1452
1459
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (r.from + n - t.slicer.start) - (r.caption.width === "auto" ? 0 : r.caption.width / 2 - e.drawingArea.width / e.maxSeries * r.span / 2),
|
|
1453
1460
|
y: e.drawingArea.top + r.caption.offsetY,
|
|
@@ -1458,34 +1465,34 @@ function ar(a, s, o, u, t, e) {
|
|
|
1458
1465
|
height: "1",
|
|
1459
1466
|
width: r.caption.width === "auto" ? e.drawingArea.width / e.maxSeries * r.span : r.caption.width
|
|
1460
1467
|
}, [
|
|
1461
|
-
|
|
1468
|
+
u("div", {
|
|
1462
1469
|
style: L(`padding:${r.caption.padding}px;text-align:${r.caption.textAlign};font-size:${r.caption.fontSize}px;color:${r.caption.color};font-weight:${r.caption.bold ? "bold" : "normal"}`)
|
|
1463
|
-
},
|
|
1464
|
-
], 12,
|
|
1470
|
+
}, w(r.caption.text), 5)
|
|
1471
|
+
], 12, Ot)) : c("", !0)
|
|
1465
1472
|
]))), 256)) : c("", !0)
|
|
1466
1473
|
]))), 256)),
|
|
1467
|
-
|
|
1468
|
-
(
|
|
1474
|
+
u("g", null, [
|
|
1475
|
+
(a(!0), s(f, null, m(e.maxSeries, (r, h) => (a(), s("g", {
|
|
1469
1476
|
key: `tooltip_trap_highlighter_${h}`
|
|
1470
1477
|
}, [
|
|
1471
|
-
|
|
1478
|
+
u("rect", {
|
|
1472
1479
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * h,
|
|
1473
1480
|
y: e.drawingArea.top,
|
|
1474
1481
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1475
1482
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1476
1483
|
fill: [t.selectedMinimapIndex, t.selectedSerieIndex, t.selectedRowIndex].includes(h) ? e.setOpacity(e.FINAL_CONFIG.chart.highlighter.color, e.FINAL_CONFIG.chart.highlighter.opacity) : "transparent"
|
|
1477
|
-
}, null, 8,
|
|
1484
|
+
}, null, 8, Gt)
|
|
1478
1485
|
]))), 128))
|
|
1479
1486
|
]),
|
|
1480
|
-
e.barSet.length ? (
|
|
1487
|
+
e.barSet.length ? (a(!0), s(f, { key: 0 }, m(e.barSet, (r, h) => (a(), s("g", {
|
|
1481
1488
|
key: `serie_bar_${h}`,
|
|
1482
|
-
class:
|
|
1489
|
+
class: D(`serie_bar_${h}`),
|
|
1483
1490
|
style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1484
1491
|
}, [
|
|
1485
|
-
(
|
|
1486
|
-
key: `bar_plot_${h}_${
|
|
1492
|
+
(a(!0), s(f, null, m(r.plots, (n, g) => (a(), s("g", {
|
|
1493
|
+
key: `bar_plot_${h}_${g}`
|
|
1487
1494
|
}, [
|
|
1488
|
-
e.canShowValue(n.value) ? (
|
|
1495
|
+
e.canShowValue(n.value) ? (a(), s("rect", {
|
|
1489
1496
|
key: 0,
|
|
1490
1497
|
x: e.calcRectX(n),
|
|
1491
1498
|
y: t.mutableConfig.useIndividualScale ? e.calcIndividualRectY(n) : e.calcRectY(n),
|
|
@@ -1495,8 +1502,8 @@ function ar(a, s, o, u, t, e) {
|
|
|
1495
1502
|
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${h}_${t.uniqueId})` : `url(#rectGradient_neg_${h}_${t.uniqueId})` : r.color,
|
|
1496
1503
|
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? r.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1497
1504
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1498
|
-
}, null, 8,
|
|
1499
|
-
e.canShowValue(n.value) &&
|
|
1505
|
+
}, null, 8, vt)) : c("", !0),
|
|
1506
|
+
e.canShowValue(n.value) && i.$slots.pattern ? (a(), s("rect", {
|
|
1500
1507
|
key: 1,
|
|
1501
1508
|
x: e.calcRectX(n),
|
|
1502
1509
|
y: t.mutableConfig.useIndividualScale ? e.calcIndividualRectY(n) : e.calcRectY(n),
|
|
@@ -1506,8 +1513,8 @@ function ar(a, s, o, u, t, e) {
|
|
|
1506
1513
|
fill: `url(#pattern_${t.uniqueId}_${r.slotAbsoluteIndex})`,
|
|
1507
1514
|
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? r.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1508
1515
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1509
|
-
}, null, 8,
|
|
1510
|
-
n.comment && e.FINAL_CONFIG.chart.comments.show ? (
|
|
1516
|
+
}, null, 8, zt)) : c("", !0),
|
|
1517
|
+
n.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), s("foreignObject", {
|
|
1511
1518
|
key: 2,
|
|
1512
1519
|
style: { overflow: "visible" },
|
|
1513
1520
|
height: "12",
|
|
@@ -1515,14 +1522,14 @@ function ar(a, s, o, u, t, e) {
|
|
|
1515
1522
|
x: e.calcRectX(n) - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1516
1523
|
y: e.checkNaN(n.y) + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1517
1524
|
}, [
|
|
1518
|
-
|
|
1519
|
-
plot: { ...n, color: r.color, seriesIndex: h, datapointIndex:
|
|
1525
|
+
k(i.$slots, "plot-comment", {
|
|
1526
|
+
plot: { ...n, color: r.color, seriesIndex: h, datapointIndex: g }
|
|
1520
1527
|
}, void 0, !0)
|
|
1521
|
-
], 8,
|
|
1528
|
+
], 8, Mt)) : c("", !0)
|
|
1522
1529
|
]))), 128)),
|
|
1523
|
-
Object.hasOwn(r, "useProgression") && r.useProgression === !0 && !isNaN(e.calcLinearProgression(r.plots).trend) ? (
|
|
1524
|
-
|
|
1525
|
-
|
|
1530
|
+
Object.hasOwn(r, "useProgression") && r.useProgression === !0 && !isNaN(e.calcLinearProgression(r.plots).trend) ? (a(), s("g", pt, [
|
|
1531
|
+
u("defs", null, [
|
|
1532
|
+
u("marker", {
|
|
1526
1533
|
id: `bar_arrow_${h}`,
|
|
1527
1534
|
markerWidth: 7,
|
|
1528
1535
|
markerHeight: 7,
|
|
@@ -1530,13 +1537,13 @@ function ar(a, s, o, u, t, e) {
|
|
|
1530
1537
|
refY: 7 / 2,
|
|
1531
1538
|
orient: "auto"
|
|
1532
1539
|
}, [
|
|
1533
|
-
|
|
1540
|
+
u("polygon", {
|
|
1534
1541
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1535
1542
|
fill: r.color
|
|
1536
|
-
}, null, 8,
|
|
1537
|
-
], 8,
|
|
1543
|
+
}, null, 8, Pt)
|
|
1544
|
+
], 8, Tt)
|
|
1538
1545
|
]),
|
|
1539
|
-
r.plots.length > 1 ? (
|
|
1546
|
+
r.plots.length > 1 ? (a(), s("line", {
|
|
1540
1547
|
key: 0,
|
|
1541
1548
|
x1: e.calcLinearProgression(r.plots).x1,
|
|
1542
1549
|
x2: e.calcLinearProgression(r.plots).x2,
|
|
@@ -1547,21 +1554,21 @@ function ar(a, s, o, u, t, e) {
|
|
|
1547
1554
|
"stroke-dasharray": 2,
|
|
1548
1555
|
"marker-end": `url(#bar_arrow_${h})`
|
|
1549
1556
|
}, null, 8, Vt)) : c("", !0),
|
|
1550
|
-
r.plots.length > 1 ? (
|
|
1557
|
+
r.plots.length > 1 ? (a(), s("text", {
|
|
1551
1558
|
key: 1,
|
|
1552
1559
|
"text-anchor": "middle",
|
|
1553
1560
|
x: e.calcLinearProgression(r.plots).x2,
|
|
1554
1561
|
y: e.calcLinearProgression(r.plots).y2 - 6,
|
|
1555
1562
|
"font-size": t.fontSizes.plotLabels,
|
|
1556
1563
|
fill: r.color
|
|
1557
|
-
},
|
|
1564
|
+
}, w(e.dataLabel({
|
|
1558
1565
|
v: e.calcLinearProgression(r.plots).trend * 100,
|
|
1559
1566
|
s: "%",
|
|
1560
1567
|
r: 2
|
|
1561
|
-
})), 9,
|
|
1568
|
+
})), 9, Rt)) : c("", !0)
|
|
1562
1569
|
])) : c("", !0)
|
|
1563
1570
|
], 6))), 128)) : c("", !0),
|
|
1564
|
-
!t.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (
|
|
1571
|
+
!t.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (a(), s("line", {
|
|
1565
1572
|
key: 1,
|
|
1566
1573
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1567
1574
|
"stroke-width": "1",
|
|
@@ -1570,9 +1577,9 @@ function ar(a, s, o, u, t, e) {
|
|
|
1570
1577
|
y1: e.forceValidValue(e.zero),
|
|
1571
1578
|
y2: e.forceValidValue(e.zero),
|
|
1572
1579
|
"stroke-linecap": "round"
|
|
1573
|
-
}, null, 8,
|
|
1574
|
-
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(t.selectedSerieIndex) || ![null, void 0].includes(t.selectedMinimapIndex)) ? (
|
|
1575
|
-
|
|
1580
|
+
}, null, 8, Dt)) : c("", !0),
|
|
1581
|
+
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(t.selectedSerieIndex) || ![null, void 0].includes(t.selectedMinimapIndex)) ? (a(), s("g", Ht, [
|
|
1582
|
+
u("line", {
|
|
1576
1583
|
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((t.selectedSerieIndex !== null ? t.selectedSerieIndex : 0) || (t.selectedMinimapIndex !== null ? t.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
|
|
1577
1584
|
x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((t.selectedSerieIndex !== null ? t.selectedSerieIndex : 0) || (t.selectedMinimapIndex !== null ? t.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
|
|
1578
1585
|
y1: e.forceValidValue(e.drawingArea.top),
|
|
@@ -1582,9 +1589,9 @@ function ar(a, s, o, u, t, e) {
|
|
|
1582
1589
|
"stroke-dasharray": e.FINAL_CONFIG.chart.highlighter.lineDasharray,
|
|
1583
1590
|
"stroke-linecap": "round",
|
|
1584
1591
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
1585
|
-
}, null, 8,
|
|
1592
|
+
}, null, 8, Bt)
|
|
1586
1593
|
])) : c("", !0),
|
|
1587
|
-
e.FINAL_CONFIG.chart.grid.frame.show ? (
|
|
1594
|
+
e.FINAL_CONFIG.chart.grid.frame.show ? (a(), s("rect", {
|
|
1588
1595
|
key: 3,
|
|
1589
1596
|
style: { pointerEvents: "none", transition: "none" },
|
|
1590
1597
|
x: e.drawingArea.left + e.xPadding < 0 ? 0 : e.drawingArea.left + e.xPadding,
|
|
@@ -1597,11 +1604,11 @@ function ar(a, s, o, u, t, e) {
|
|
|
1597
1604
|
"stroke-linecap": e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,
|
|
1598
1605
|
"stroke-linejoin": e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,
|
|
1599
1606
|
"stroke-dasharray": e.FINAL_CONFIG.chart.grid.frame.strokeDasharray
|
|
1600
|
-
}, null, 8,
|
|
1601
|
-
e.FINAL_CONFIG.chart.grid.labels.show ? (
|
|
1602
|
-
t.mutableConfig.useIndividualScale ? (
|
|
1603
|
-
(
|
|
1604
|
-
|
|
1607
|
+
}, null, 8, Wt)) : c("", !0),
|
|
1608
|
+
e.FINAL_CONFIG.chart.grid.labels.show ? (a(), s("g", Et, [
|
|
1609
|
+
t.mutableConfig.useIndividualScale ? (a(), s(f, { key: 0 }, [
|
|
1610
|
+
(a(!0), s(f, null, m(e.allScales, (r) => (a(), s("g", null, [
|
|
1611
|
+
u("line", {
|
|
1605
1612
|
x1: r.x + e.xPadding,
|
|
1606
1613
|
x2: r.x + e.xPadding,
|
|
1607
1614
|
y1: t.mutableConfig.isStacked ? e.forceValidValue(e.drawingArea.bottom - r.yOffset - r.individualHeight) : e.forceValidValue(e.drawingArea.top),
|
|
@@ -1610,18 +1617,18 @@ function ar(a, s, o, u, t, e) {
|
|
|
1610
1617
|
"stroke-width": e.FINAL_CONFIG.chart.grid.stroke,
|
|
1611
1618
|
"stroke-linecap": "round",
|
|
1612
1619
|
style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1613
|
-
}, null, 12,
|
|
1620
|
+
}, null, 12, Yt)
|
|
1614
1621
|
]))), 256)),
|
|
1615
|
-
(
|
|
1622
|
+
(a(!0), s(f, null, m(e.allScales, (r) => (a(), s("g", {
|
|
1616
1623
|
style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1617
1624
|
}, [
|
|
1618
|
-
|
|
1625
|
+
u("text", {
|
|
1619
1626
|
fill: r.color,
|
|
1620
1627
|
"font-size": t.fontSizes.dataLabels,
|
|
1621
1628
|
"text-anchor": "middle",
|
|
1622
1629
|
transform: `translate(${r.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + 5 + e.xPadding}, ${t.mutableConfig.isStacked ? e.drawingArea.bottom - r.yOffset - r.individualHeight / 2 : e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`
|
|
1623
|
-
},
|
|
1624
|
-
(
|
|
1630
|
+
}, w(r.name) + " " + w(r.scaleLabel ? `- ${r.scaleLabel}` : ""), 9, qt),
|
|
1631
|
+
(a(!0), s(f, null, m(r.yLabels, (h, n) => (a(), s("line", {
|
|
1625
1632
|
x1: r.x - 3 + e.xPadding,
|
|
1626
1633
|
x2: r.x + e.xPadding,
|
|
1627
1634
|
y1: e.forceValidValue(h.y),
|
|
@@ -1629,14 +1636,14 @@ function ar(a, s, o, u, t, e) {
|
|
|
1629
1636
|
stroke: r.color,
|
|
1630
1637
|
"stroke-width": 1,
|
|
1631
1638
|
"stroke-linecap": "round"
|
|
1632
|
-
}, null, 8,
|
|
1633
|
-
(
|
|
1639
|
+
}, null, 8, Xt))), 256)),
|
|
1640
|
+
(a(!0), s(f, null, m(r.yLabels, (h, n) => (a(), s("text", {
|
|
1634
1641
|
x: r.x - 5 + e.xPadding,
|
|
1635
1642
|
y: e.forceValidValue(h.y) + t.fontSizes.dataLabels / 3,
|
|
1636
1643
|
"font-size": t.fontSizes.dataLabels,
|
|
1637
1644
|
"text-anchor": "end",
|
|
1638
1645
|
fill: r.color
|
|
1639
|
-
},
|
|
1646
|
+
}, w(e.applyDataLabel(
|
|
1640
1647
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1641
1648
|
h.value,
|
|
1642
1649
|
e.dataLabel({
|
|
@@ -1646,12 +1653,12 @@ function ar(a, s, o, u, t, e) {
|
|
|
1646
1653
|
r: 1
|
|
1647
1654
|
}),
|
|
1648
1655
|
{ datapoint: h.datapoint, seriesIndex: n }
|
|
1649
|
-
)), 9,
|
|
1656
|
+
)), 9, Ut))), 256))
|
|
1650
1657
|
], 4))), 256))
|
|
1651
|
-
], 64)) : (
|
|
1658
|
+
], 64)) : (a(!0), s(f, { key: 1 }, m(e.yLabels, (r, h) => (a(), s("g", {
|
|
1652
1659
|
key: `yLabel_${h}`
|
|
1653
1660
|
}, [
|
|
1654
|
-
e.canShowValue(r) && r.value >= e.niceScale.min && r.value <= e.niceScale.max ? (
|
|
1661
|
+
e.canShowValue(r) && r.value >= e.niceScale.min && r.value <= e.niceScale.max ? (a(), s("line", {
|
|
1655
1662
|
key: 0,
|
|
1656
1663
|
x1: e.drawingArea.left + e.xPadding,
|
|
1657
1664
|
x2: e.drawingArea.left - 5 + e.xPadding,
|
|
@@ -1660,15 +1667,15 @@ function ar(a, s, o, u, t, e) {
|
|
|
1660
1667
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1661
1668
|
"stroke-width": "1",
|
|
1662
1669
|
"stroke-linecap": "round"
|
|
1663
|
-
}, null, 8,
|
|
1664
|
-
r.value >= e.niceScale.min && r.value <= e.niceScale.max ? (
|
|
1670
|
+
}, null, 8, Zt)) : c("", !0),
|
|
1671
|
+
r.value >= e.niceScale.min && r.value <= e.niceScale.max ? (a(), s("text", {
|
|
1665
1672
|
key: 1,
|
|
1666
1673
|
x: e.drawingArea.left - 7 + e.xPadding,
|
|
1667
1674
|
y: e.checkNaN(r.y + t.fontSizes.dataLabels / 3),
|
|
1668
1675
|
"font-size": t.fontSizes.dataLabels,
|
|
1669
1676
|
"text-anchor": "end",
|
|
1670
1677
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
1671
|
-
},
|
|
1678
|
+
}, w(e.canShowValue(r.value) ? e.applyDataLabel(
|
|
1672
1679
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1673
1680
|
r.value,
|
|
1674
1681
|
e.dataLabel({
|
|
@@ -1677,27 +1684,27 @@ function ar(a, s, o, u, t, e) {
|
|
|
1677
1684
|
s: r.suffix,
|
|
1678
1685
|
r: 1
|
|
1679
1686
|
})
|
|
1680
|
-
) : ""), 9,
|
|
1687
|
+
) : ""), 9, Jt)) : c("", !0)
|
|
1681
1688
|
]))), 128))
|
|
1682
1689
|
])) : c("", !0),
|
|
1683
|
-
(
|
|
1690
|
+
(a(!0), s(f, null, m(e.plotSet, (r, h) => (a(), s("g", {
|
|
1684
1691
|
key: `serie_plot_${h}`,
|
|
1685
|
-
class:
|
|
1692
|
+
class: D(`serie_plot_${h}`),
|
|
1686
1693
|
style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1687
1694
|
}, [
|
|
1688
|
-
(
|
|
1689
|
-
key: `circle_plot_${h}_${
|
|
1695
|
+
(a(!0), s(f, null, m(r.plots, (n, g) => (a(), s("g", {
|
|
1696
|
+
key: `circle_plot_${h}_${g}`
|
|
1690
1697
|
}, [
|
|
1691
|
-
n && e.canShowValue(n.value) ? (
|
|
1698
|
+
n && e.canShowValue(n.value) ? (a(), B(b, {
|
|
1692
1699
|
key: 0,
|
|
1693
1700
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(r.shape) ? r.shape : "circle",
|
|
1694
1701
|
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${h}_${t.uniqueId})` : e.FINAL_CONFIG.plot.dot.useSerieColor ? r.color : e.FINAL_CONFIG.plot.dot.fill,
|
|
1695
1702
|
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
1696
|
-
radius: t.selectedSerieIndex !== null && t.selectedSerieIndex ===
|
|
1703
|
+
radius: t.selectedSerieIndex !== null && t.selectedSerieIndex === g || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === g ? (t.plotRadii.plot || 6) * 1.5 : t.plotRadii.plot || 6,
|
|
1697
1704
|
stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : r.color,
|
|
1698
1705
|
strokeWidth: e.FINAL_CONFIG.plot.dot.strokeWidth
|
|
1699
1706
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : c("", !0),
|
|
1700
|
-
n.comment && e.FINAL_CONFIG.chart.comments.show ? (
|
|
1707
|
+
n.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), s("foreignObject", {
|
|
1701
1708
|
key: 1,
|
|
1702
1709
|
style: { overflow: "visible" },
|
|
1703
1710
|
height: "12",
|
|
@@ -1705,16 +1712,16 @@ function ar(a, s, o, u, t, e) {
|
|
|
1705
1712
|
x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1706
1713
|
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1707
1714
|
}, [
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
plot: { ...n, color: r.color, seriesIndex: h, datapointIndex:
|
|
1715
|
+
u("div", Kt, [
|
|
1716
|
+
k(i.$slots, "plot-comment", {
|
|
1717
|
+
plot: { ...n, color: r.color, seriesIndex: h, datapointIndex: g }
|
|
1711
1718
|
}, void 0, !0)
|
|
1712
1719
|
])
|
|
1713
|
-
], 8,
|
|
1720
|
+
], 8, Qt)) : c("", !0)
|
|
1714
1721
|
]))), 128)),
|
|
1715
|
-
Object.hasOwn(r, "useProgression") && r.useProgression === !0 && !isNaN(e.calcLinearProgression(r.plots).trend) ? (
|
|
1716
|
-
|
|
1717
|
-
|
|
1722
|
+
Object.hasOwn(r, "useProgression") && r.useProgression === !0 && !isNaN(e.calcLinearProgression(r.plots).trend) ? (a(), s("g", jt, [
|
|
1723
|
+
u("defs", null, [
|
|
1724
|
+
u("marker", {
|
|
1718
1725
|
id: `plot_arrow_${h}`,
|
|
1719
1726
|
markerWidth: 7,
|
|
1720
1727
|
markerHeight: 7,
|
|
@@ -1722,13 +1729,13 @@ function ar(a, s, o, u, t, e) {
|
|
|
1722
1729
|
refY: 7 / 2,
|
|
1723
1730
|
orient: "auto"
|
|
1724
1731
|
}, [
|
|
1725
|
-
|
|
1732
|
+
u("polygon", {
|
|
1726
1733
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1727
1734
|
fill: r.color
|
|
1728
|
-
}, null, 8,
|
|
1729
|
-
], 8,
|
|
1735
|
+
}, null, 8, ei)
|
|
1736
|
+
], 8, $t)
|
|
1730
1737
|
]),
|
|
1731
|
-
r.plots.length > 1 ? (
|
|
1738
|
+
r.plots.length > 1 ? (a(), s("line", {
|
|
1732
1739
|
key: 0,
|
|
1733
1740
|
x1: e.calcLinearProgression(r.plots).x1,
|
|
1734
1741
|
x2: e.calcLinearProgression(r.plots).x2,
|
|
@@ -1738,123 +1745,108 @@ function ar(a, s, o, u, t, e) {
|
|
|
1738
1745
|
stroke: r.color,
|
|
1739
1746
|
"stroke-dasharray": 2,
|
|
1740
1747
|
"marker-end": `url(#plot_arrow_${h})`
|
|
1741
|
-
}, null, 8,
|
|
1742
|
-
r.plots.length > 1 ? (
|
|
1748
|
+
}, null, 8, ti)) : c("", !0),
|
|
1749
|
+
r.plots.length > 1 ? (a(), s("text", {
|
|
1743
1750
|
key: 1,
|
|
1744
1751
|
"text-anchor": "middle",
|
|
1745
1752
|
x: e.calcLinearProgression(r.plots).x2,
|
|
1746
1753
|
y: e.calcLinearProgression(r.plots).y2 - 6,
|
|
1747
1754
|
"font-size": t.fontSizes.plotLabels,
|
|
1748
1755
|
fill: r.color
|
|
1749
|
-
},
|
|
1756
|
+
}, w(e.dataLabel({
|
|
1750
1757
|
v: e.calcLinearProgression(r.plots).trend * 100,
|
|
1751
1758
|
s: "%",
|
|
1752
1759
|
r: 2
|
|
1753
|
-
})), 9,
|
|
1760
|
+
})), 9, ii)) : c("", !0)
|
|
1754
1761
|
])) : c("", !0)
|
|
1755
1762
|
], 6))), 128)),
|
|
1756
|
-
(
|
|
1763
|
+
(a(!0), s(f, null, m(e.lineSet, (r, h) => (a(), s("g", {
|
|
1757
1764
|
key: `serie_line_${h}`,
|
|
1758
|
-
class:
|
|
1765
|
+
class: D(`serie_line_${h}`),
|
|
1759
1766
|
style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1760
1767
|
}, [
|
|
1761
|
-
r.smooth && r.plots.length > 1 ? (
|
|
1768
|
+
r.smooth && r.plots.length > 1 ? (a(), s("path", {
|
|
1762
1769
|
key: 0,
|
|
1763
1770
|
d: `M${r.curve}`,
|
|
1764
1771
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1765
1772
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1766
1773
|
"stroke-dasharray": r.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1767
1774
|
fill: "none"
|
|
1768
|
-
}, null, 8,
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1779
|
-
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1780
|
-
"stroke-dasharray": r.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1781
|
-
"stroke-linejoin": "round",
|
|
1782
|
-
"stroke-linecap": "round"
|
|
1783
|
-
}, null, 8, ra)) : c("", !0)
|
|
1784
|
-
]))), 128))
|
|
1785
|
-
])) : c("", !0)
|
|
1775
|
+
}, null, 8, ri)) : r.plots.length > 1 ? (a(), s("path", {
|
|
1776
|
+
key: 1,
|
|
1777
|
+
d: `M${r.straight}`,
|
|
1778
|
+
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1779
|
+
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1780
|
+
"stroke-dasharray": r.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1781
|
+
fill: "none",
|
|
1782
|
+
"stroke-linecap": "round",
|
|
1783
|
+
"stroke-linejoin": "round"
|
|
1784
|
+
}, null, 8, ai)) : c("", !0)
|
|
1786
1785
|
], 6))), 128)),
|
|
1787
|
-
|
|
1788
|
-
(
|
|
1786
|
+
i.$slots.pattern ? (a(), s("defs", li, [
|
|
1787
|
+
(a(!0), s(f, null, m(e.safeDataset, (r, h) => k(i.$slots, "pattern", Ye({
|
|
1789
1788
|
key: `serie_pattern_slot_${h}`
|
|
1790
1789
|
}, { ...r, seriesIndex: r.slotAbsoluteIndex, patternId: `pattern_${t.uniqueId}_${h}` }), void 0, !0)), 128))
|
|
1791
1790
|
])) : c("", !0),
|
|
1792
|
-
(
|
|
1791
|
+
(a(!0), s(f, null, m(e.lineSet, (r, h) => (a(), s("g", {
|
|
1793
1792
|
key: `serie_line_${h}`,
|
|
1794
|
-
class:
|
|
1793
|
+
class: D(`serie_line_${h}`),
|
|
1795
1794
|
style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1796
1795
|
}, [
|
|
1797
|
-
r.useArea && r.plots.length > 1 ? (
|
|
1798
|
-
r.smooth ? (
|
|
1799
|
-
|
|
1796
|
+
r.useArea && r.plots.length > 1 ? (a(), s("g", si, [
|
|
1797
|
+
r.smooth ? (a(), s(f, { key: 0 }, [
|
|
1798
|
+
u("path", {
|
|
1800
1799
|
d: `M ${r.plots[0] ? r.plots[0].x : Math.min(...r.plots.filter((n) => !!n).map((n) => n.x))},${t.mutableConfig.isStacked ? e.drawingArea.bottom - r.yOffset : e.drawingArea.bottom} ${r.curve} L ${r.plots.at(-1) ? r.plots.at(-1).x : e.drawingArea.left + e.slot.line * h + e.slot.line / 2},${t.mutableConfig.isStacked ? e.drawingArea.bottom - r.yOffset : e.drawingArea.bottom} Z`,
|
|
1801
1800
|
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${h}_${t.uniqueId})` : e.setOpacity(r.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1802
|
-
}, null, 8,
|
|
1803
|
-
|
|
1801
|
+
}, null, 8, ni),
|
|
1802
|
+
i.$slots.pattern ? (a(), s("path", {
|
|
1804
1803
|
key: 0,
|
|
1805
1804
|
d: `M ${r.plots[0] ? r.plots[0].x : Math.min(...r.plots.filter((n) => !!n).map((n) => n.x))},${t.mutableConfig.isStacked ? e.drawingArea.bottom - r.yOffset : e.drawingArea.bottom} ${r.curve} L ${r.plots.at(-1) ? r.plots.at(-1).x : e.drawingArea.left + e.slot.line * h + e.slot.line / 2},${t.mutableConfig.isStacked ? e.drawingArea.bottom - r.yOffset : e.drawingArea.bottom} Z`,
|
|
1806
1805
|
fill: `url(#pattern_${t.uniqueId}_${r.slotAbsoluteIndex})`
|
|
1807
|
-
}, null, 8,
|
|
1808
|
-
], 64)) : (
|
|
1809
|
-
|
|
1806
|
+
}, null, 8, hi)) : c("", !0)
|
|
1807
|
+
], 64)) : (a(), s(f, { key: 1 }, [
|
|
1808
|
+
u("path", {
|
|
1810
1809
|
d: `M${r.area}Z`,
|
|
1811
1810
|
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${h}_${t.uniqueId})` : e.setOpacity(r.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1812
|
-
}, null, 8,
|
|
1813
|
-
|
|
1811
|
+
}, null, 8, oi),
|
|
1812
|
+
i.$slots.pattern ? (a(), s("path", {
|
|
1814
1813
|
key: 0,
|
|
1815
1814
|
d: `M${r.area}Z`,
|
|
1816
1815
|
fill: `url(#pattern_${t.uniqueId}_${r.slotAbsoluteIndex})`
|
|
1817
|
-
}, null, 8,
|
|
1816
|
+
}, null, 8, ci)) : c("", !0)
|
|
1818
1817
|
], 64))
|
|
1819
1818
|
])) : c("", !0),
|
|
1820
|
-
r.smooth && r.plots.length > 1 ? (
|
|
1819
|
+
r.smooth && r.plots.length > 1 ? (a(), s("path", {
|
|
1821
1820
|
key: 1,
|
|
1822
1821
|
d: `M${r.curve}`,
|
|
1823
1822
|
stroke: r.color,
|
|
1824
1823
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth,
|
|
1825
1824
|
"stroke-dasharray": r.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1826
|
-
fill: "none"
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
}
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
"stroke-linejoin": "round",
|
|
1841
|
-
"stroke-linecap": "round"
|
|
1842
|
-
}, null, 8, ua)) : c("", !0)
|
|
1843
|
-
]))), 128))
|
|
1844
|
-
])) : c("", !0),
|
|
1845
|
-
(l(!0), i(I, null, m(r.plots, (n, d) => (l(), i("g", {
|
|
1846
|
-
key: `circle_line_${h}_${d}`
|
|
1825
|
+
fill: "none",
|
|
1826
|
+
"stroke-linecap": "round"
|
|
1827
|
+
}, null, 8, di)) : r.plots.length > 1 ? (a(), s("path", {
|
|
1828
|
+
key: 2,
|
|
1829
|
+
d: `M${r.straight}`,
|
|
1830
|
+
stroke: r.color,
|
|
1831
|
+
"stroke-width": e.FINAL_CONFIG.line.strokeWidth,
|
|
1832
|
+
"stroke-dasharray": r.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1833
|
+
fill: "none",
|
|
1834
|
+
"stroke-linecap": "round",
|
|
1835
|
+
"stroke-linejoin": "round"
|
|
1836
|
+
}, null, 8, ui)) : c("", !0),
|
|
1837
|
+
(a(!0), s(f, null, m(r.plots, (n, g) => (a(), s("g", {
|
|
1838
|
+
key: `circle_line_${h}_${g}`
|
|
1847
1839
|
}, [
|
|
1848
|
-
n && e.canShowValue(n.value) ? (
|
|
1840
|
+
!e.optimize.linePlot && n && e.canShowValue(n.value) || e.optimize.linePlot && n && e.canShowValue(n.value) && (t.selectedSerieIndex !== null && t.selectedSerieIndex === g || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === g) ? (a(), B(b, {
|
|
1849
1841
|
key: 0,
|
|
1850
1842
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(r.shape) ? r.shape : "circle",
|
|
1851
1843
|
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${h}_${t.uniqueId})` : e.FINAL_CONFIG.line.dot.useSerieColor ? r.color : e.FINAL_CONFIG.line.dot.fill,
|
|
1852
1844
|
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
1853
|
-
radius: t.selectedSerieIndex !== null && t.selectedSerieIndex ===
|
|
1845
|
+
radius: t.selectedSerieIndex !== null && t.selectedSerieIndex === g || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === g ? (t.plotRadii.line || 6) * 1.5 : t.plotRadii.line || 6,
|
|
1854
1846
|
stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : r.color,
|
|
1855
1847
|
strokeWidth: e.FINAL_CONFIG.line.dot.strokeWidth
|
|
1856
1848
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : c("", !0),
|
|
1857
|
-
n.comment && e.FINAL_CONFIG.chart.comments.show ? (
|
|
1849
|
+
n.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), s("foreignObject", {
|
|
1858
1850
|
key: 1,
|
|
1859
1851
|
style: { overflow: "visible" },
|
|
1860
1852
|
height: "12",
|
|
@@ -1862,16 +1854,16 @@ function ar(a, s, o, u, t, e) {
|
|
|
1862
1854
|
x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1863
1855
|
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1864
1856
|
}, [
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
plot: { ...n, color: r.color, seriesIndex: h, datapointIndex:
|
|
1857
|
+
u("div", fi, [
|
|
1858
|
+
k(i.$slots, "plot-comment", {
|
|
1859
|
+
plot: { ...n, color: r.color, seriesIndex: h, datapointIndex: g }
|
|
1868
1860
|
}, void 0, !0)
|
|
1869
1861
|
])
|
|
1870
|
-
], 8,
|
|
1862
|
+
], 8, gi)) : c("", !0)
|
|
1871
1863
|
]))), 128)),
|
|
1872
|
-
Object.hasOwn(r, "useProgression") && r.useProgression === !0 && !isNaN(e.calcLinearProgression(r.plots).trend) ? (
|
|
1873
|
-
|
|
1874
|
-
|
|
1864
|
+
Object.hasOwn(r, "useProgression") && r.useProgression === !0 && !isNaN(e.calcLinearProgression(r.plots).trend) ? (a(), s("g", Ii, [
|
|
1865
|
+
u("defs", null, [
|
|
1866
|
+
u("marker", {
|
|
1875
1867
|
id: `line_arrow_${h}`,
|
|
1876
1868
|
markerWidth: 7,
|
|
1877
1869
|
markerHeight: 7,
|
|
@@ -1879,13 +1871,13 @@ function ar(a, s, o, u, t, e) {
|
|
|
1879
1871
|
refY: 7 / 2,
|
|
1880
1872
|
orient: "auto"
|
|
1881
1873
|
}, [
|
|
1882
|
-
|
|
1874
|
+
u("polygon", {
|
|
1883
1875
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1884
1876
|
fill: r.color
|
|
1885
|
-
}, null, 8,
|
|
1886
|
-
], 8,
|
|
1877
|
+
}, null, 8, Ni)
|
|
1878
|
+
], 8, mi)
|
|
1887
1879
|
]),
|
|
1888
|
-
r.plots.length > 1 ? (
|
|
1880
|
+
r.plots.length > 1 ? (a(), s("line", {
|
|
1889
1881
|
key: 0,
|
|
1890
1882
|
x1: e.calcLinearProgression(r.plots).x1,
|
|
1891
1883
|
x2: e.calcLinearProgression(r.plots).x2,
|
|
@@ -1895,38 +1887,38 @@ function ar(a, s, o, u, t, e) {
|
|
|
1895
1887
|
stroke: r.color,
|
|
1896
1888
|
"stroke-dasharray": 2,
|
|
1897
1889
|
"marker-end": `url(#line_arrow_${h})`
|
|
1898
|
-
}, null, 8,
|
|
1899
|
-
r.plots.length > 1 ? (
|
|
1890
|
+
}, null, 8, xi)) : c("", !0),
|
|
1891
|
+
r.plots.length > 1 ? (a(), s("text", {
|
|
1900
1892
|
key: 1,
|
|
1901
1893
|
"text-anchor": "middle",
|
|
1902
1894
|
x: e.calcLinearProgression(r.plots).x2,
|
|
1903
1895
|
y: e.calcLinearProgression(r.plots).y2 - 6,
|
|
1904
1896
|
"font-size": t.fontSizes.plotLabels,
|
|
1905
1897
|
fill: r.color
|
|
1906
|
-
},
|
|
1898
|
+
}, w(e.dataLabel({
|
|
1907
1899
|
v: e.calcLinearProgression(r.plots).trend * 100,
|
|
1908
1900
|
s: "%",
|
|
1909
1901
|
r: 2
|
|
1910
|
-
})), 9,
|
|
1902
|
+
})), 9, bi)) : c("", !0)
|
|
1911
1903
|
])) : c("", !0)
|
|
1912
1904
|
], 6))), 128)),
|
|
1913
|
-
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && t.mutableConfig.dataLabels.show ? (
|
|
1914
|
-
(
|
|
1905
|
+
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && t.mutableConfig.dataLabels.show ? (a(), s("g", Fi, [
|
|
1906
|
+
(a(!0), s(f, null, m(e.barSet, (r, h) => (a(), s("g", {
|
|
1915
1907
|
key: `xLabel_bar_${h}`,
|
|
1916
|
-
class:
|
|
1908
|
+
class: D(`xLabel_bar_${h}`),
|
|
1917
1909
|
style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1918
1910
|
}, [
|
|
1919
|
-
(
|
|
1920
|
-
key: `xLabel_bar_${h}_${
|
|
1911
|
+
(a(!0), s(f, null, m(r.plots, (n, g) => (a(), s("g", {
|
|
1912
|
+
key: `xLabel_bar_${h}_${g}`
|
|
1921
1913
|
}, [
|
|
1922
|
-
n && (!Object.hasOwn(r, "dataLabels") || r.dataLabels === !0 || t.selectedSerieIndex !== null && t.selectedSerieIndex ===
|
|
1914
|
+
n && (!Object.hasOwn(r, "dataLabels") || r.dataLabels === !0 || t.selectedSerieIndex !== null && t.selectedSerieIndex === g || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === g) && e.FINAL_CONFIG.bar.labels.show ? (a(), s("text", {
|
|
1923
1915
|
key: 0,
|
|
1924
1916
|
x: t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? n.x + e.slot.line / 2 : e.calcRectX(n) + e.calcRectWidth() / 2 - e.barPeriodGap / 2,
|
|
1925
1917
|
y: e.checkNaN(n.y) + (n.value >= 0 ? e.FINAL_CONFIG.bar.labels.offsetY : -e.FINAL_CONFIG.bar.labels.offsetY * 3),
|
|
1926
1918
|
"text-anchor": "middle",
|
|
1927
1919
|
"font-size": t.fontSizes.plotLabels,
|
|
1928
1920
|
fill: e.FINAL_CONFIG.bar.labels.color
|
|
1929
|
-
},
|
|
1921
|
+
}, w(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
1930
1922
|
e.FINAL_CONFIG.bar.labels.formatter,
|
|
1931
1923
|
n.value,
|
|
1932
1924
|
e.dataLabel({
|
|
@@ -1939,8 +1931,8 @@ function ar(a, s, o, u, t, e) {
|
|
|
1939
1931
|
datapoint: n,
|
|
1940
1932
|
serie: r
|
|
1941
1933
|
}
|
|
1942
|
-
) : ""), 9,
|
|
1943
|
-
n && e.FINAL_CONFIG.bar.serieName.show ? (
|
|
1934
|
+
) : ""), 9, _i)) : c("", !0),
|
|
1935
|
+
n && e.FINAL_CONFIG.bar.serieName.show ? (a(), s("text", {
|
|
1944
1936
|
key: 1,
|
|
1945
1937
|
x: t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? n.x + e.slot.line / 2 : n.x + e.calcRectWidth() * 1.1,
|
|
1946
1938
|
y: n.y + (n.value > 0 ? e.FINAL_CONFIG.bar.serieName.offsetY : -e.FINAL_CONFIG.bar.serieName.offsetY * 3),
|
|
@@ -1948,27 +1940,27 @@ function ar(a, s, o, u, t, e) {
|
|
|
1948
1940
|
"font-size": t.fontSizes.plotLabels,
|
|
1949
1941
|
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? r.color : e.FINAL_CONFIG.bar.serieName.color,
|
|
1950
1942
|
"font-weight": e.FINAL_CONFIG.bar.serieName.bold ? "bold" : "normal"
|
|
1951
|
-
},
|
|
1943
|
+
}, w(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: r.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : r.name), 9, Ai)) : c("", !0)
|
|
1952
1944
|
]))), 128))
|
|
1953
1945
|
], 6))), 128))
|
|
1954
1946
|
])) : c("", !0),
|
|
1955
|
-
e.FINAL_CONFIG.plot.labels.show && t.mutableConfig.dataLabels.show ? (
|
|
1956
|
-
(
|
|
1947
|
+
e.FINAL_CONFIG.plot.labels.show && t.mutableConfig.dataLabels.show ? (a(), s("g", yi, [
|
|
1948
|
+
(a(!0), s(f, null, m(e.plotSet, (r, h) => (a(), s("g", {
|
|
1957
1949
|
key: `xLabel_plot_${h}`,
|
|
1958
|
-
class:
|
|
1950
|
+
class: D(`xLabel_plot_${h}`),
|
|
1959
1951
|
style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1960
1952
|
}, [
|
|
1961
|
-
(
|
|
1962
|
-
key: `xLabel_plot_${h}_${
|
|
1953
|
+
(a(!0), s(f, null, m(r.plots, (n, g) => (a(), s("g", {
|
|
1954
|
+
key: `xLabel_plot_${h}_${g}`
|
|
1963
1955
|
}, [
|
|
1964
|
-
n && !Object.hasOwn(r, "dataLabels") || r.dataLabels === !0 || t.selectedSerieIndex !== null && t.selectedSerieIndex ===
|
|
1956
|
+
n && !Object.hasOwn(r, "dataLabels") || r.dataLabels === !0 || t.selectedSerieIndex !== null && t.selectedSerieIndex === g || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === g ? (a(), s("text", {
|
|
1965
1957
|
key: 0,
|
|
1966
1958
|
x: n.x,
|
|
1967
1959
|
y: n.y + e.FINAL_CONFIG.plot.labels.offsetY,
|
|
1968
1960
|
"text-anchor": "middle",
|
|
1969
1961
|
"font-size": t.fontSizes.plotLabels,
|
|
1970
1962
|
fill: e.FINAL_CONFIG.plot.labels.color
|
|
1971
|
-
},
|
|
1963
|
+
}, w(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
1972
1964
|
e.FINAL_CONFIG.plot.labels.formatter,
|
|
1973
1965
|
n.value,
|
|
1974
1966
|
e.dataLabel({
|
|
@@ -1981,8 +1973,8 @@ function ar(a, s, o, u, t, e) {
|
|
|
1981
1973
|
datapoint: n,
|
|
1982
1974
|
serie: r
|
|
1983
1975
|
}
|
|
1984
|
-
) : ""), 9,
|
|
1985
|
-
n &&
|
|
1976
|
+
) : ""), 9, Li)) : c("", !0),
|
|
1977
|
+
n && g === 0 && r.useTag && r.useTag === "start" ? (a(), s("foreignObject", {
|
|
1986
1978
|
key: 1,
|
|
1987
1979
|
x: n.x,
|
|
1988
1980
|
y: n.y - 20,
|
|
@@ -1990,11 +1982,11 @@ function ar(a, s, o, u, t, e) {
|
|
|
1990
1982
|
width: "150",
|
|
1991
1983
|
style: { overflow: "visible" }
|
|
1992
1984
|
}, [
|
|
1993
|
-
|
|
1985
|
+
u("div", {
|
|
1994
1986
|
style: L(`padding: 3px; background:${e.setOpacity(r.color, 80)};color:${e.adaptColorToBackground(r.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1995
|
-
},
|
|
1996
|
-
], 8,
|
|
1997
|
-
n &&
|
|
1987
|
+
}, w(r.name), 5)
|
|
1988
|
+
], 8, Ci)) : c("", !0),
|
|
1989
|
+
n && g === r.plots.length - 1 && r.useTag && r.useTag === "end" ? (a(), s("foreignObject", {
|
|
1998
1990
|
key: 2,
|
|
1999
1991
|
x: n.x - r.name.length * (t.fontSizes.plotLabels / 2),
|
|
2000
1992
|
y: n.y - 20,
|
|
@@ -2002,30 +1994,30 @@ function ar(a, s, o, u, t, e) {
|
|
|
2002
1994
|
width: "150",
|
|
2003
1995
|
style: { overflow: "visible" }
|
|
2004
1996
|
}, [
|
|
2005
|
-
|
|
1997
|
+
u("div", {
|
|
2006
1998
|
style: L(`padding: 3px; background:${e.setOpacity(r.color, 80)};color:${e.adaptColorToBackground(r.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
2007
|
-
},
|
|
2008
|
-
], 8,
|
|
1999
|
+
}, w(r.name), 5)
|
|
2000
|
+
], 8, Si)) : c("", !0)
|
|
2009
2001
|
]))), 128))
|
|
2010
2002
|
], 6))), 128))
|
|
2011
2003
|
])) : c("", !0),
|
|
2012
|
-
e.FINAL_CONFIG.line.labels.show && t.mutableConfig.dataLabels.show ? (
|
|
2013
|
-
(
|
|
2004
|
+
e.FINAL_CONFIG.line.labels.show && t.mutableConfig.dataLabels.show ? (a(), s("g", ki, [
|
|
2005
|
+
(a(!0), s(f, null, m(e.lineSet, (r, h) => (a(), s("g", {
|
|
2014
2006
|
key: `xLabel_line_${h}`,
|
|
2015
|
-
class:
|
|
2007
|
+
class: D(`xLabel_line_${h}`),
|
|
2016
2008
|
style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2017
2009
|
}, [
|
|
2018
|
-
(
|
|
2019
|
-
key: `xLabel_line_${h}_${
|
|
2010
|
+
(a(!0), s(f, null, m(r.plots, (n, g) => (a(), s("g", {
|
|
2011
|
+
key: `xLabel_line_${h}_${g}`
|
|
2020
2012
|
}, [
|
|
2021
|
-
n && !Object.hasOwn(r, "dataLabels") || r.dataLabels === !0 || t.selectedSerieIndex !== null && t.selectedSerieIndex ===
|
|
2013
|
+
n && !Object.hasOwn(r, "dataLabels") || r.dataLabels === !0 || t.selectedSerieIndex !== null && t.selectedSerieIndex === g || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === g ? (a(), s("text", {
|
|
2022
2014
|
key: 0,
|
|
2023
2015
|
x: n.x,
|
|
2024
2016
|
y: n.y + (n.value >= 0 ? e.FINAL_CONFIG.line.labels.offsetY : -e.FINAL_CONFIG.line.labels.offsetY * 3),
|
|
2025
2017
|
"text-anchor": "middle",
|
|
2026
2018
|
"font-size": t.fontSizes.plotLabels,
|
|
2027
2019
|
fill: e.FINAL_CONFIG.line.labels.color
|
|
2028
|
-
},
|
|
2020
|
+
}, w(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
2029
2021
|
e.FINAL_CONFIG.line.labels.formatter,
|
|
2030
2022
|
n.value,
|
|
2031
2023
|
e.dataLabel({
|
|
@@ -2038,8 +2030,8 @@ function ar(a, s, o, u, t, e) {
|
|
|
2038
2030
|
datapoint: n,
|
|
2039
2031
|
serie: r
|
|
2040
2032
|
}
|
|
2041
|
-
) : ""), 9,
|
|
2042
|
-
n &&
|
|
2033
|
+
) : ""), 9, wi)) : c("", !0),
|
|
2034
|
+
n && g === 0 && r.useTag && r.useTag === "start" ? (a(), s("foreignObject", {
|
|
2043
2035
|
key: 1,
|
|
2044
2036
|
x: n.x,
|
|
2045
2037
|
y: n.y - 20,
|
|
@@ -2047,11 +2039,11 @@ function ar(a, s, o, u, t, e) {
|
|
|
2047
2039
|
width: "150",
|
|
2048
2040
|
style: { overflow: "visible" }
|
|
2049
2041
|
}, [
|
|
2050
|
-
|
|
2042
|
+
u("div", {
|
|
2051
2043
|
style: L(`padding: 3px; background:${e.setOpacity(r.color, 80)};color:${e.adaptColorToBackground(r.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
2052
|
-
},
|
|
2053
|
-
], 8,
|
|
2054
|
-
n &&
|
|
2044
|
+
}, w(r.name), 5)
|
|
2045
|
+
], 8, Oi)) : c("", !0),
|
|
2046
|
+
n && g === r.plots.length - 1 && r.useTag && r.useTag === "end" ? (a(), s("foreignObject", {
|
|
2055
2047
|
key: 2,
|
|
2056
2048
|
x: n.x - r.name.length * (t.fontSizes.plotLabels / 2),
|
|
2057
2049
|
y: n.y - 20,
|
|
@@ -2059,22 +2051,22 @@ function ar(a, s, o, u, t, e) {
|
|
|
2059
2051
|
width: "150",
|
|
2060
2052
|
style: { overflow: "visible" }
|
|
2061
2053
|
}, [
|
|
2062
|
-
|
|
2054
|
+
u("div", {
|
|
2063
2055
|
style: L(`padding: 3px; background:${e.setOpacity(r.color, 80)};color:${e.adaptColorToBackground(r.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
2064
|
-
},
|
|
2065
|
-
], 8,
|
|
2056
|
+
}, w(r.name), 5)
|
|
2057
|
+
], 8, Gi)) : c("", !0)
|
|
2066
2058
|
]))), 128))
|
|
2067
2059
|
], 6))), 128))
|
|
2068
2060
|
])) : c("", !0),
|
|
2069
|
-
(
|
|
2061
|
+
(a(!0), s(f, null, m(e.lineSet, (r, h) => (a(), s("g", {
|
|
2070
2062
|
key: `xLabel_line_${h}`,
|
|
2071
|
-
class:
|
|
2063
|
+
class: D(`xLabel_line_${h}`),
|
|
2072
2064
|
style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2073
2065
|
}, [
|
|
2074
|
-
(
|
|
2075
|
-
key: `xLabel_line_${h}_${
|
|
2066
|
+
(a(!0), s(f, null, m(r.plots, (n, g) => (a(), s("g", {
|
|
2067
|
+
key: `xLabel_line_${h}_${g}`
|
|
2076
2068
|
}, [
|
|
2077
|
-
n &&
|
|
2069
|
+
n && g === 0 && r.showSerieName && r.showSerieName === "start" ? (a(), s("text", {
|
|
2078
2070
|
key: 0,
|
|
2079
2071
|
x: n.x - t.fontSizes.plotLabels,
|
|
2080
2072
|
y: n.y,
|
|
@@ -2089,8 +2081,8 @@ function ar(a, s, o, u, t, e) {
|
|
|
2089
2081
|
y: n.y,
|
|
2090
2082
|
maxWords: 2
|
|
2091
2083
|
})
|
|
2092
|
-
}, null, 8,
|
|
2093
|
-
n &&
|
|
2084
|
+
}, null, 8, vi)) : c("", !0),
|
|
2085
|
+
n && g === r.plots.length - 1 && r.showSerieName && r.showSerieName === "end" ? (a(), s("text", {
|
|
2094
2086
|
key: 1,
|
|
2095
2087
|
x: n.x + t.fontSizes.plotLabels,
|
|
2096
2088
|
y: n.y,
|
|
@@ -2105,18 +2097,18 @@ function ar(a, s, o, u, t, e) {
|
|
|
2105
2097
|
y: n.y,
|
|
2106
2098
|
maxWords: 2
|
|
2107
2099
|
})
|
|
2108
|
-
}, null, 8,
|
|
2100
|
+
}, null, 8, zi)) : c("", !0)
|
|
2109
2101
|
]))), 128))
|
|
2110
2102
|
], 6))), 128)),
|
|
2111
|
-
(
|
|
2103
|
+
(a(!0), s(f, null, m(e.plotSet, (r, h) => (a(), s("g", {
|
|
2112
2104
|
key: `xLabel_plot_${h}`,
|
|
2113
|
-
class:
|
|
2105
|
+
class: D(`xLabel_plot_${h}`),
|
|
2114
2106
|
style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2115
2107
|
}, [
|
|
2116
|
-
(
|
|
2117
|
-
key: `xLabel_plot_${h}_${
|
|
2108
|
+
(a(!0), s(f, null, m(r.plots, (n, g) => (a(), s("g", {
|
|
2109
|
+
key: `xLabel_plot_${h}_${g}`
|
|
2118
2110
|
}, [
|
|
2119
|
-
n &&
|
|
2111
|
+
n && g === 0 && r.showSerieName && r.showSerieName === "start" ? (a(), s("text", {
|
|
2120
2112
|
key: 0,
|
|
2121
2113
|
x: n.x - t.fontSizes.plotLabels,
|
|
2122
2114
|
y: n.y,
|
|
@@ -2131,8 +2123,8 @@ function ar(a, s, o, u, t, e) {
|
|
|
2131
2123
|
y: n.y,
|
|
2132
2124
|
maxWords: 2
|
|
2133
2125
|
})
|
|
2134
|
-
}, null, 8,
|
|
2135
|
-
n &&
|
|
2126
|
+
}, null, 8, Mi)) : c("", !0),
|
|
2127
|
+
n && g === r.plots.length - 1 && r.showSerieName && r.showSerieName === "end" ? (a(), s("text", {
|
|
2136
2128
|
key: 1,
|
|
2137
2129
|
x: n.x + t.fontSizes.plotLabels,
|
|
2138
2130
|
y: n.y,
|
|
@@ -2147,41 +2139,41 @@ function ar(a, s, o, u, t, e) {
|
|
|
2147
2139
|
y: n.y,
|
|
2148
2140
|
maxWords: 2
|
|
2149
2141
|
})
|
|
2150
|
-
}, null, 8,
|
|
2142
|
+
}, null, 8, pi)) : c("", !0)
|
|
2151
2143
|
]))), 128))
|
|
2152
2144
|
], 6))), 128)),
|
|
2153
|
-
t.mutableConfig.useIndividualScale && !t.mutableConfig.isStacked ? (
|
|
2145
|
+
t.mutableConfig.useIndividualScale && !t.mutableConfig.isStacked ? (a(!0), s(f, { key: 9 }, m(e.allScales, (r) => (a(), s("rect", {
|
|
2154
2146
|
x: r.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + e.xPadding,
|
|
2155
2147
|
y: e.drawingArea.top,
|
|
2156
2148
|
width: e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
2157
2149
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
2158
2150
|
fill: t.selectedScale === r.id ? e.setOpacity(r.color, 20) : "transparent",
|
|
2159
2151
|
onMouseenter: (h) => t.selectedScale = r.id,
|
|
2160
|
-
onMouseleave:
|
|
2161
|
-
}, null, 40,
|
|
2162
|
-
|
|
2163
|
-
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !t.mutableConfig.useIndividualScale ? (
|
|
2152
|
+
onMouseleave: l[0] || (l[0] = (h) => t.selectedScale = null)
|
|
2153
|
+
}, null, 40, Ti))), 256)) : c("", !0),
|
|
2154
|
+
u("g", null, [
|
|
2155
|
+
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !t.mutableConfig.useIndividualScale ? (a(), s("text", {
|
|
2164
2156
|
key: 0,
|
|
2165
2157
|
"font-size": t.fontSizes.yAxis,
|
|
2166
2158
|
fill: e.FINAL_CONFIG.chart.grid.labels.color,
|
|
2167
2159
|
transform: `translate(${t.fontSizes.yAxis + e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`,
|
|
2168
2160
|
"text-anchor": "middle",
|
|
2169
2161
|
style: { transition: "none" }
|
|
2170
|
-
},
|
|
2171
|
-
e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (
|
|
2162
|
+
}, w(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, Pi)) : c("", !0),
|
|
2163
|
+
e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (a(), s("text", {
|
|
2172
2164
|
key: 1,
|
|
2173
2165
|
"text-anchor": "middle",
|
|
2174
2166
|
x: t.width / 2,
|
|
2175
2167
|
y: e.drawingArea.bottom + t.fontSizes.yAxis + t.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,
|
|
2176
2168
|
"font-size": t.fontSizes.yAxis,
|
|
2177
2169
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
2178
|
-
},
|
|
2170
|
+
}, w(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, Vi)) : c("", !0)
|
|
2179
2171
|
]),
|
|
2180
|
-
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (
|
|
2181
|
-
|
|
2172
|
+
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (a(), s("g", Ri, [
|
|
2173
|
+
i.$slots["time-label"] ? (a(!0), s(f, { key: 0 }, m(e.timeLabels, (r, h) => (a(), s("g", {
|
|
2182
2174
|
key: `time_label_${h}`
|
|
2183
2175
|
}, [
|
|
2184
|
-
|
|
2176
|
+
k(i.$slots, "time-label", W(E({
|
|
2185
2177
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * h + e.drawingArea.width / e.maxSeries / 2,
|
|
2186
2178
|
y: e.drawingArea.bottom + t.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset,
|
|
2187
2179
|
fontSize: t.fontSizes.xAxis,
|
|
@@ -2192,10 +2184,10 @@ function ar(a, s, o, u, t, e) {
|
|
|
2192
2184
|
textAnchor: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2193
2185
|
show: r && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (h === 0 || h === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && t.selectedSerieIndex === h && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && h % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0
|
|
2194
2186
|
})), void 0, !0)
|
|
2195
|
-
]))), 128)) : (
|
|
2187
|
+
]))), 128)) : (a(!0), s(f, { key: 1 }, m(e.timeLabels, (r, h) => (a(), s("g", {
|
|
2196
2188
|
key: `time_label_${h}`
|
|
2197
2189
|
}, [
|
|
2198
|
-
r && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (h === 0 || h === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && t.selectedSerieIndex === h && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && h % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (
|
|
2190
|
+
r && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (h === 0 || h === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && t.selectedSerieIndex === h && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && h % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (a(), s("text", {
|
|
2199
2191
|
key: 0,
|
|
2200
2192
|
"text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2201
2193
|
"font-size": t.fontSizes.xAxis,
|
|
@@ -2205,14 +2197,14 @@ function ar(a, s, o, u, t, e) {
|
|
|
2205
2197
|
cursor: "pointer"
|
|
2206
2198
|
},
|
|
2207
2199
|
onClick: () => e.selectTimeLabel(r, h)
|
|
2208
|
-
},
|
|
2200
|
+
}, w(r.text || ""), 9, Di)) : c("", !0)
|
|
2209
2201
|
]))), 128))
|
|
2210
2202
|
])) : c("", !0),
|
|
2211
|
-
|
|
2212
|
-
(
|
|
2203
|
+
u("g", null, [
|
|
2204
|
+
(a(!0), s(f, null, m(e.maxSeries, (r, h) => (a(), s("g", {
|
|
2213
2205
|
key: `tooltip_trap_${h}`
|
|
2214
2206
|
}, [
|
|
2215
|
-
|
|
2207
|
+
u("rect", {
|
|
2216
2208
|
"data-cy-trap": "",
|
|
2217
2209
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * h,
|
|
2218
2210
|
y: e.drawingArea.top,
|
|
@@ -2220,38 +2212,38 @@ function ar(a, s, o, u, t, e) {
|
|
|
2220
2212
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
2221
2213
|
fill: "transparent",
|
|
2222
2214
|
onMouseenter: (n) => e.toggleTooltipVisibility(!0, h),
|
|
2223
|
-
onMouseleave:
|
|
2215
|
+
onMouseleave: l[1] || (l[1] = (n) => e.toggleTooltipVisibility(!1)),
|
|
2224
2216
|
onClick: (n) => e.selectX(h)
|
|
2225
|
-
}, null, 40,
|
|
2217
|
+
}, null, 40, Hi)
|
|
2226
2218
|
]))), 128))
|
|
2227
2219
|
]),
|
|
2228
|
-
e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(t.selectedSerieIndex) || ![null, void 0].includes(t.selectedMinimapIndex)) ? (
|
|
2229
|
-
(
|
|
2220
|
+
e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(t.selectedSerieIndex) || ![null, void 0].includes(t.selectedMinimapIndex)) ? (a(), s("g", Bi, [
|
|
2221
|
+
(a(), s("foreignObject", {
|
|
2230
2222
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((t.selectedSerieIndex !== null ? t.selectedSerieIndex : 0) || (t.selectedMinimapIndex !== null ? t.selectedMinimapIndex : 0)) - 100 + e.drawingArea.width / e.maxSeries / 2,
|
|
2231
2223
|
y: e.drawingArea.bottom,
|
|
2232
2224
|
width: "200",
|
|
2233
2225
|
height: "40",
|
|
2234
2226
|
style: { overflow: "visible !important" }
|
|
2235
2227
|
}, [
|
|
2236
|
-
|
|
2228
|
+
u("div", {
|
|
2237
2229
|
class: "vue-ui-xy-time-tag",
|
|
2238
2230
|
style: L(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${e.FINAL_CONFIG.chart.timeTag.backgroundColor};color:${e.FINAL_CONFIG.chart.timeTag.color};font-size:${e.FINAL_CONFIG.chart.timeTag.fontSize}px`)
|
|
2239
|
-
},
|
|
2240
|
-
], 8,
|
|
2241
|
-
|
|
2231
|
+
}, w(e.timeLabels[(t.selectedSerieIndex !== null ? t.selectedSerieIndex : 0) || (t.selectedMinimapIndex !== null ? t.selectedMinimapIndex : 0)].text || (t.selectedSerieIndex !== null ? t.selectedSerieIndex : 0) || (t.selectedMinimapIndex !== null ? t.selectedMinimapIndex : 0)), 5)
|
|
2232
|
+
], 8, Wi)),
|
|
2233
|
+
u("circle", {
|
|
2242
2234
|
cx: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((t.selectedSerieIndex !== null ? t.selectedSerieIndex : 0) || (t.selectedMinimapIndex !== null ? t.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
|
|
2243
2235
|
cy: e.drawingArea.bottom,
|
|
2244
2236
|
r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
|
|
2245
2237
|
fill: e.FINAL_CONFIG.chart.timeTag.circleMarker.color
|
|
2246
|
-
}, null, 8,
|
|
2238
|
+
}, null, 8, Ei)
|
|
2247
2239
|
])) : c("", !0)
|
|
2248
2240
|
])) : c("", !0),
|
|
2249
|
-
|
|
2250
|
-
], 14,
|
|
2251
|
-
|
|
2252
|
-
|
|
2241
|
+
k(i.$slots, "svg", { svg: e.svg }, void 0, !0)
|
|
2242
|
+
], 14, $e)) : c("", !0),
|
|
2243
|
+
i.$slots.watermark ? (a(), s("div", Yi, [
|
|
2244
|
+
k(i.$slots, "watermark", W(E({ isPrinting: t.isPrinting || t.isImaging })), void 0, !0)
|
|
2253
2245
|
])) : c("", !0),
|
|
2254
|
-
e.isDataset ? c("", !0) : (
|
|
2246
|
+
e.isDataset ? c("", !0) : (a(), B(V, {
|
|
2255
2247
|
key: 6,
|
|
2256
2248
|
config: {
|
|
2257
2249
|
type: "line",
|
|
@@ -2269,7 +2261,7 @@ function ar(a, s, o, u, t, e) {
|
|
|
2269
2261
|
}
|
|
2270
2262
|
}
|
|
2271
2263
|
}, null, 8, ["config"])),
|
|
2272
|
-
e.FINAL_CONFIG.chart.zoom.show && t.maxX > 6 && e.isDataset ? (
|
|
2264
|
+
e.FINAL_CONFIG.chart.zoom.show && t.maxX > 6 && e.isDataset ? (a(), B(v, {
|
|
2273
2265
|
ref: "chartSlicer",
|
|
2274
2266
|
key: `slicer_${t.slicerStep}`,
|
|
2275
2267
|
background: e.FINAL_CONFIG.chart.zoom.color,
|
|
@@ -2295,9 +2287,9 @@ function ar(a, s, o, u, t, e) {
|
|
|
2295
2287
|
valueStart: t.slicer.start,
|
|
2296
2288
|
valueEnd: t.slicer.end,
|
|
2297
2289
|
start: t.slicer.start,
|
|
2298
|
-
"onUpdate:start":
|
|
2290
|
+
"onUpdate:start": l[2] || (l[2] = (r) => t.slicer.start = r),
|
|
2299
2291
|
end: t.slicer.end,
|
|
2300
|
-
"onUpdate:end":
|
|
2292
|
+
"onUpdate:end": l[3] || (l[3] = (r) => t.slicer.end = r),
|
|
2301
2293
|
refreshStartPoint: e.FINAL_CONFIG.chart.zoom.startIndex !== null ? e.FINAL_CONFIG.chart.zoom.startIndex : 0,
|
|
2302
2294
|
refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...o.dataset.map((r) => e.largestTriangleThreeBucketsArray({ data: r.series, threshold: e.FINAL_CONFIG.downsample.threshold }).length)),
|
|
2303
2295
|
enableRangeHandles: e.FINAL_CONFIG.chart.zoom.enableRangeHandles,
|
|
@@ -2305,24 +2297,24 @@ function ar(a, s, o, u, t, e) {
|
|
|
2305
2297
|
onReset: e.refreshSlicer,
|
|
2306
2298
|
onTrapMouse: e.selectMinimapIndex
|
|
2307
2299
|
}, {
|
|
2308
|
-
"reset-action":
|
|
2309
|
-
|
|
2300
|
+
"reset-action": P(({ reset: r }) => [
|
|
2301
|
+
k(i.$slots, "reset-action", W(E({ reset: r })), void 0, !0)
|
|
2310
2302
|
]),
|
|
2311
2303
|
_: 3
|
|
2312
2304
|
}, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "onReset", "onTrapMouse"])) : c("", !0),
|
|
2313
|
-
e.FINAL_CONFIG.chart.legend.show ? (
|
|
2305
|
+
e.FINAL_CONFIG.chart.legend.show ? (a(), s("div", {
|
|
2314
2306
|
key: 8,
|
|
2315
2307
|
ref: "chartLegend",
|
|
2316
2308
|
class: "vue-ui-xy-legend",
|
|
2317
2309
|
style: L(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
|
|
2318
2310
|
}, [
|
|
2319
|
-
(
|
|
2311
|
+
(a(!0), s(f, null, m(e.absoluteDataset, (r, h) => (a(), s("div", {
|
|
2320
2312
|
key: `div_legend_item_${h}`,
|
|
2321
2313
|
onClick: (n) => e.segregate(r),
|
|
2322
|
-
class:
|
|
2314
|
+
class: D({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": t.segregatedSeries.includes(r.id) })
|
|
2323
2315
|
}, [
|
|
2324
|
-
t.icons[r.type] === "line" ? (
|
|
2325
|
-
|
|
2316
|
+
t.icons[r.type] === "line" ? (a(), s("svg", Xi, [
|
|
2317
|
+
u("rect", {
|
|
2326
2318
|
x: "0",
|
|
2327
2319
|
y: "7.5",
|
|
2328
2320
|
rx: "1.5",
|
|
@@ -2331,7 +2323,7 @@ function ar(a, s, o, u, t, e) {
|
|
|
2331
2323
|
height: "3",
|
|
2332
2324
|
width: "20",
|
|
2333
2325
|
fill: r.color
|
|
2334
|
-
}, null, 8,
|
|
2326
|
+
}, null, 8, Ui),
|
|
2335
2327
|
q(b, {
|
|
2336
2328
|
plot: { x: 10, y: 9 },
|
|
2337
2329
|
radius: 4,
|
|
@@ -2340,8 +2332,8 @@ function ar(a, s, o, u, t, e) {
|
|
|
2340
2332
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
2341
2333
|
strokeWidth: 0.5
|
|
2342
2334
|
}, null, 8, ["color", "shape", "stroke"])
|
|
2343
|
-
])) : t.icons[r.type] === "bar" ? (
|
|
2344
|
-
t.icons[r.type] === "bar" &&
|
|
2335
|
+
])) : t.icons[r.type] === "bar" ? (a(), s("svg", Zi, [
|
|
2336
|
+
t.icons[r.type] === "bar" && i.$slots.pattern ? (a(), s("rect", {
|
|
2345
2337
|
key: 0,
|
|
2346
2338
|
x: "0",
|
|
2347
2339
|
y: "0",
|
|
@@ -2350,8 +2342,8 @@ function ar(a, s, o, u, t, e) {
|
|
|
2350
2342
|
width: "40",
|
|
2351
2343
|
stroke: "none",
|
|
2352
2344
|
fill: r.color
|
|
2353
|
-
}, null, 8,
|
|
2354
|
-
t.icons[r.type] === "bar" ? (
|
|
2345
|
+
}, null, 8, Ji)) : c("", !0),
|
|
2346
|
+
t.icons[r.type] === "bar" ? (a(), s("rect", {
|
|
2355
2347
|
key: 1,
|
|
2356
2348
|
x: "0",
|
|
2357
2349
|
y: "0",
|
|
@@ -2359,9 +2351,9 @@ function ar(a, s, o, u, t, e) {
|
|
|
2359
2351
|
height: "40",
|
|
2360
2352
|
width: "40",
|
|
2361
2353
|
stroke: "none",
|
|
2362
|
-
fill:
|
|
2363
|
-
}, null, 8,
|
|
2364
|
-
])) : (
|
|
2354
|
+
fill: i.$slots.pattern ? `url(#pattern_${t.uniqueId}_${r.slotAbsoluteIndex})` : r.color
|
|
2355
|
+
}, null, 8, Qi)) : c("", !0)
|
|
2356
|
+
])) : (a(), s("svg", Ki, [
|
|
2365
2357
|
q(b, {
|
|
2366
2358
|
plot: { x: 6, y: 6 },
|
|
2367
2359
|
radius: 5,
|
|
@@ -2369,15 +2361,15 @@ function ar(a, s, o, u, t, e) {
|
|
|
2369
2361
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(r.shape) ? r.shape : "circle"
|
|
2370
2362
|
}, null, 8, ["color", "shape"])
|
|
2371
2363
|
])),
|
|
2372
|
-
|
|
2364
|
+
u("span", {
|
|
2373
2365
|
style: L(`color:${e.FINAL_CONFIG.chart.legend.color}`)
|
|
2374
|
-
},
|
|
2375
|
-
], 10,
|
|
2376
|
-
], 4)) : (
|
|
2377
|
-
|
|
2366
|
+
}, w(r.name), 5)
|
|
2367
|
+
], 10, qi))), 128))
|
|
2368
|
+
], 4)) : (a(), s("div", ji, [
|
|
2369
|
+
k(i.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
|
|
2378
2370
|
], 512)),
|
|
2379
|
-
|
|
2380
|
-
|
|
2371
|
+
i.$slots.source ? (a(), s("div", $i, [
|
|
2372
|
+
k(i.$slots, "source", {}, void 0, !0)
|
|
2381
2373
|
], 512)) : c("", !0),
|
|
2382
2374
|
q(z, {
|
|
2383
2375
|
show: t.mutableConfig.showTooltip && t.isTooltip,
|
|
@@ -2390,20 +2382,20 @@ function ar(a, s, o, u, t, e) {
|
|
|
2390
2382
|
backgroundOpacity: e.FINAL_CONFIG.chart.tooltip.backgroundOpacity,
|
|
2391
2383
|
position: e.FINAL_CONFIG.chart.tooltip.position,
|
|
2392
2384
|
offsetY: e.FINAL_CONFIG.chart.tooltip.offsetY,
|
|
2393
|
-
parent:
|
|
2385
|
+
parent: i.$refs.chart,
|
|
2394
2386
|
content: e.tooltipContent,
|
|
2395
2387
|
isFullscreen: t.isFullscreen,
|
|
2396
2388
|
isCustom: e.FINAL_CONFIG.chart.tooltip.customFormat && typeof e.FINAL_CONFIG.chart.tooltip.customFormat == "function"
|
|
2397
2389
|
}, {
|
|
2398
|
-
"tooltip-before":
|
|
2399
|
-
|
|
2390
|
+
"tooltip-before": P(() => [
|
|
2391
|
+
k(i.$slots, "tooltip-before", W(E({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2400
2392
|
]),
|
|
2401
|
-
"tooltip-after":
|
|
2402
|
-
|
|
2393
|
+
"tooltip-after": P(() => [
|
|
2394
|
+
k(i.$slots, "tooltip-after", W(E({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2403
2395
|
]),
|
|
2404
2396
|
_: 3
|
|
2405
2397
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
2406
|
-
e.isDataset ? (
|
|
2398
|
+
e.isDataset ? (a(), B(T, {
|
|
2407
2399
|
key: 11,
|
|
2408
2400
|
hideDetails: "",
|
|
2409
2401
|
config: {
|
|
@@ -2419,46 +2411,46 @@ function ar(a, s, o, u, t, e) {
|
|
|
2419
2411
|
}
|
|
2420
2412
|
}
|
|
2421
2413
|
}, {
|
|
2422
|
-
content:
|
|
2423
|
-
|
|
2414
|
+
content: P(() => [
|
|
2415
|
+
u("div", {
|
|
2424
2416
|
style: L(`${t.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
2425
2417
|
}, [
|
|
2426
|
-
|
|
2427
|
-
|
|
2418
|
+
u("div", er, [
|
|
2419
|
+
qe(u("input", {
|
|
2428
2420
|
type: "checkbox",
|
|
2429
|
-
"onUpdate:modelValue":
|
|
2421
|
+
"onUpdate:modelValue": l[4] || (l[4] = (r) => t.showSparklineTable = r)
|
|
2430
2422
|
}, null, 512), [
|
|
2431
|
-
[
|
|
2423
|
+
[Xe, t.showSparklineTable]
|
|
2432
2424
|
]),
|
|
2433
|
-
|
|
2434
|
-
onClick:
|
|
2425
|
+
u("div", {
|
|
2426
|
+
onClick: l[5] || (l[5] = (r) => t.showSparklineTable = !t.showSparklineTable),
|
|
2435
2427
|
style: { cursor: "pointer" }
|
|
2436
2428
|
}, [
|
|
2437
|
-
q(
|
|
2429
|
+
q(G, {
|
|
2438
2430
|
name: "chartLine",
|
|
2439
2431
|
size: 20,
|
|
2440
2432
|
stroke: e.FINAL_CONFIG.chart.color
|
|
2441
2433
|
}, null, 8, ["stroke"])
|
|
2442
2434
|
])
|
|
2443
2435
|
]),
|
|
2444
|
-
t.showSparklineTable ? (
|
|
2436
|
+
t.showSparklineTable ? (a(), B(F, {
|
|
2445
2437
|
key: `sparkline_${t.segregateStep}`,
|
|
2446
2438
|
dataset: e.tableSparklineDataset,
|
|
2447
2439
|
config: e.tableSparklineConfig
|
|
2448
|
-
}, null, 8, ["dataset", "config"])) : (
|
|
2440
|
+
}, null, 8, ["dataset", "config"])) : (a(), B(C, {
|
|
2449
2441
|
key: `table_${t.tableStep}`,
|
|
2450
2442
|
colNames: e.dataTable.colNames,
|
|
2451
2443
|
head: e.dataTable.head,
|
|
2452
2444
|
body: e.dataTable.body,
|
|
2453
2445
|
config: e.dataTable.config,
|
|
2454
2446
|
title: `${e.FINAL_CONFIG.chart.title.text}${e.FINAL_CONFIG.chart.title.subtitle.text ? ` : ${e.FINAL_CONFIG.chart.title.subtitle.text}` : ""}`,
|
|
2455
|
-
onClose:
|
|
2447
|
+
onClose: l[6] || (l[6] = (r) => t.mutableConfig.showTable = !1)
|
|
2456
2448
|
}, {
|
|
2457
|
-
th:
|
|
2458
|
-
|
|
2449
|
+
th: P(({ th: r }) => [
|
|
2450
|
+
u("div", { innerHTML: r }, null, 8, tr)
|
|
2459
2451
|
]),
|
|
2460
|
-
td:
|
|
2461
|
-
|
|
2452
|
+
td: P(({ td: r }) => [
|
|
2453
|
+
Ue(w(isNaN(Number(r)) ? r : e.dataLabel({
|
|
2462
2454
|
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
2463
2455
|
v: r,
|
|
2464
2456
|
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
@@ -2471,9 +2463,9 @@ function ar(a, s, o, u, t, e) {
|
|
|
2471
2463
|
]),
|
|
2472
2464
|
_: 1
|
|
2473
2465
|
}, 8, ["config"])) : c("", !0)
|
|
2474
|
-
], 46,
|
|
2466
|
+
], 46, Ke);
|
|
2475
2467
|
}
|
|
2476
|
-
const br = /* @__PURE__ */
|
|
2468
|
+
const br = /* @__PURE__ */ Ze(Qe, [["render", ir], ["__scopeId", "data-v-fb685f15"]]);
|
|
2477
2469
|
export {
|
|
2478
2470
|
br as default
|
|
2479
2471
|
};
|