vue-data-ui 3.0.0-next.12 → 3.0.0-next.14

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.
Files changed (88) hide show
  1. package/dist/{Arrow-BiAmFGIB.js → Arrow-Df8gUfKn.js} +1 -1
  2. package/dist/{BaseDraggableDialog-BVjPhHKc.js → BaseDraggableDialog-BCt4MsxV.js} +2 -2
  3. package/dist/{BaseIcon-CG1tOsBy.js → BaseIcon-BRbpfizy.js} +1 -1
  4. package/dist/{ColorPicker-4UrAndHc.js → ColorPicker-I_IO8XQE.js} +2 -2
  5. package/dist/{DataTable-Cev0QtA2.js → DataTable-rKKFtHrS.js} +2 -2
  6. package/dist/{Legend-DQliVrSV.js → Legend-C8sMzjM5.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-D87hlY0g.js → NonSvgPenAndPaper-BeXXzLia.js} +3 -3
  8. package/dist/{PackageVersion-BZbNvVyJ.js → PackageVersion-5SA7DsrF.js} +1 -1
  9. package/dist/{PenAndPaper-D5HobI7o.js → PenAndPaper-BGxzp1tk.js} +3 -3
  10. package/dist/{Shape-CKRHe03z.js → Shape-B8I8cX9P.js} +1 -1
  11. package/dist/{Slicer-B1zI4voq.js → Slicer-CDDwWiXn.js} +2 -2
  12. package/dist/{SparkTooltip-BePFbjhL.js → SparkTooltip-pC3sNWMM.js} +1 -1
  13. package/dist/{Title-Cno-L3Ha.js → Title-DUpdvxB-.js} +1 -1
  14. package/dist/{Tooltip-G9os5KhJ.js → Tooltip-CxwXrJ2u.js} +1 -1
  15. package/dist/{UserOptions-BPLtX6px.js → UserOptions-B-B0E6a5.js} +2 -2
  16. package/dist/{dom-to-png-DioXR05J.js → dom-to-png-Bq_2sR69.js} +1 -1
  17. package/dist/{img-zELq-TSa.js → img-BQ7u3oEW.js} +1 -1
  18. package/dist/{index-DCL-vPlu.js → index-BTYCKUoi.js} +1 -1
  19. package/dist/{pdf-DogMVBQe.js → pdf-NTBK6dp2.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/{useNestedProp-1a1Az-U2.js → useNestedProp-B-t-jGcw.js} +1 -1
  22. package/dist/{usePrinter-BW7v769d.js → usePrinter-JUJEFx1t.js} +2 -2
  23. package/dist/{vue-data-ui-cgBKyJQU.js → vue-data-ui-CYQK3vMW.js} +64 -64
  24. package/dist/vue-data-ui.js +1 -1
  25. package/dist/{vue-ui-3d-bar-dcv9UBU8.js → vue-ui-3d-bar-hGiJlcJT.js} +6 -6
  26. package/dist/{vue-ui-accordion-CGuJJbHj.js → vue-ui-accordion-xabUfErM.js} +3 -3
  27. package/dist/{vue-ui-age-pyramid-B8fvHW4r.js → vue-ui-age-pyramid-C7EIPKdt.js} +6 -6
  28. package/dist/{vue-ui-annotator-BxXkESyy.js → vue-ui-annotator-BY5ktFWe.js} +2 -2
  29. package/dist/{vue-ui-bullet-m_FxxB-2.js → vue-ui-bullet-uDEZoL_W.js} +7 -7
  30. package/dist/{vue-ui-candlestick-Bwd1ut50.js → vue-ui-candlestick-DZiJKV1j.js} +7 -7
  31. package/dist/{vue-ui-carousel-table-B_Kyr8rz.js → vue-ui-carousel-table-CaPCrEx5.js} +4 -4
  32. package/dist/{vue-ui-chestnut-BrpqTw0b.js → vue-ui-chestnut-D6XjQLZS.js} +5 -5
  33. package/dist/{vue-ui-chord-HlpYSwfu.js → vue-ui-chord-VjnKLL_F.js} +8 -8
  34. package/dist/{vue-ui-circle-pack-BXnBaTx8.js → vue-ui-circle-pack-Bxbsiblv.js} +6 -6
  35. package/dist/{vue-ui-cursor-CkK1H2Th.js → vue-ui-cursor-CPaMzMTt.js} +2 -2
  36. package/dist/{vue-ui-dashboard-fsNC-ohr.js → vue-ui-dashboard-CJFGrlam.js} +62 -62
  37. package/dist/{vue-ui-digits-OOYlai20.js → vue-ui-digits-JdnhWHy3.js} +2 -2
  38. package/dist/{vue-ui-donut-OuyER4LX.js → vue-ui-donut-DW4Uuk1O.js} +8 -8
  39. package/dist/{vue-ui-donut-evolution-C9U-WIT-.js → vue-ui-donut-evolution-Ck7szypt.js} +8 -8
  40. package/dist/{vue-ui-dumbbell-DVjUDMaA.js → vue-ui-dumbbell-B4tM6L6O.js} +7 -7
  41. package/dist/{vue-ui-flow-D5tCM25o.js → vue-ui-flow-CnKNdChb.js} +7 -7
  42. package/dist/{vue-ui-funnel-Dp4nmbm4.js → vue-ui-funnel-D9vN0K4N.js} +6 -6
  43. package/dist/{vue-ui-galaxy-ChX1EnmD.js → vue-ui-galaxy-hqW8gZC8.js} +5 -5
  44. package/dist/{vue-ui-gauge-CfxNMwo4.js → vue-ui-gauge-BIHaFKGe.js} +6 -6
  45. package/dist/{vue-ui-gizmo-BG_HXh-D.js → vue-ui-gizmo-BNx0RyLX.js} +3 -3
  46. package/dist/{vue-ui-heatmap-CZPPc505.js → vue-ui-heatmap-pI3leYdq.js} +7 -7
  47. package/dist/{vue-ui-history-plot-BW0yRKct.js → vue-ui-history-plot-CMvUONaA.js} +7 -7
  48. package/dist/{vue-ui-kpi-fiLr_erK.js → vue-ui-kpi-BX98lOc3.js} +3 -3
  49. package/dist/{vue-ui-mini-loader-oLYnGT8X.js → vue-ui-mini-loader-BXMkA0X3.js} +2 -2
  50. package/dist/{vue-ui-molecule-DEZYMxeT.js → vue-ui-molecule-DBe7E0UX.js} +5 -5
  51. package/dist/{vue-ui-mood-radar-Dj1iDgGH.js → vue-ui-mood-radar-CqgqKMrU.js} +7 -7
  52. package/dist/{vue-ui-nested-donuts-Dcjq0bnm.js → vue-ui-nested-donuts-B9IZOv55.js} +9 -9
  53. package/dist/{vue-ui-onion-BKSlKAlV.js → vue-ui-onion-Cve7udCr.js} +7 -7
  54. package/dist/{vue-ui-parallel-coordinate-plot-tQv3Iv0X.js → vue-ui-parallel-coordinate-plot-DrFuATLX.js} +8 -8
  55. package/dist/{vue-ui-quadrant-B9ZRgQRr.js → vue-ui-quadrant-Cd7rBFlO.js} +8 -8
  56. package/dist/{vue-ui-quick-chart-B60MpFYM.js → vue-ui-quick-chart-DOQqwKIm.js} +6 -6
  57. package/dist/{vue-ui-radar-BMlCthxP.js → vue-ui-radar-B0qBtilD.js} +7 -7
  58. package/dist/{vue-ui-rating-CBjenRdh.js → vue-ui-rating-DVItAjf1.js} +2 -2
  59. package/dist/{vue-ui-relation-circle-CUVal0u0.js → vue-ui-relation-circle-C52oNc3f.js} +6 -6
  60. package/dist/{vue-ui-ridgeline-d9Non4g5.js → vue-ui-ridgeline-qoBnw17e.js} +8 -8
  61. package/dist/{vue-ui-rings-D00G2P8e.js → vue-ui-rings-BJk34upx.js} +8 -8
  62. package/dist/{vue-ui-scatter-DR50S4CP.js → vue-ui-scatter-zTDbWgjG.js} +8 -8
  63. package/dist/{vue-ui-skeleton-462wqv3t.js → vue-ui-skeleton-UJqwc3T_.js} +3 -3
  64. package/dist/{vue-ui-smiley-C6Hm5yld.js → vue-ui-smiley-FlvU1Ik1.js} +2 -2
  65. package/dist/{vue-ui-spark-trend-CF1XeRKn.js → vue-ui-spark-trend-ChyfTLAU.js} +3 -3
  66. package/dist/{vue-ui-sparkbar-CzL0-9wn.js → vue-ui-sparkbar-BooSOZvg.js} +3 -3
  67. package/dist/{vue-ui-sparkgauge-h9uemTs8.js → vue-ui-sparkgauge-BoEF2rBO.js} +3 -3
  68. package/dist/{vue-ui-sparkhistogram-BJwFEfvs.js → vue-ui-sparkhistogram-DNR15bO-.js} +4 -4
  69. package/dist/{vue-ui-sparkline-DbAAdjA_.js → vue-ui-sparkline-DIUtAvF1.js} +3 -3
  70. package/dist/{vue-ui-sparkstackbar-BH8r0oxP.js → vue-ui-sparkstackbar-CpR2OkgM.js} +3 -3
  71. package/dist/{vue-ui-stackbar-BH0Rzt86.js → vue-ui-stackbar-BlwJq3CC.js} +9 -9
  72. package/dist/{vue-ui-strip-plot-hwDRpEYC.js → vue-ui-strip-plot-CVzDDHxi.js} +7 -7
  73. package/dist/{vue-ui-table-CueBFw56.js → vue-ui-table-CyDFGDdb.js} +3 -3
  74. package/dist/{vue-ui-table-heatmap-_gHdy9Xh.js → vue-ui-table-heatmap-CV8bTqJY.js} +5 -5
  75. package/dist/{vue-ui-table-sparkline-BI0KHY1K.js → vue-ui-table-sparkline-BBfZ4a4I.js} +4 -4
  76. package/dist/{vue-ui-thermometer-C56cXDFk.js → vue-ui-thermometer-BuLgCYzm.js} +6 -6
  77. package/dist/{vue-ui-timer-BOH1kmte.js → vue-ui-timer-B4yLUrpp.js} +5 -5
  78. package/dist/{vue-ui-tiremarks-CMHizdpb.js → vue-ui-tiremarks-Di3CX421.js} +6 -6
  79. package/dist/{vue-ui-treemap-DykXQM1p.js → vue-ui-treemap-48PGiwvy.js} +8 -8
  80. package/dist/{vue-ui-vertical-bar-Dcd6pa_B.js → vue-ui-vertical-bar-CRMu_fga.js} +9 -9
  81. package/dist/{vue-ui-waffle-DdHzkmlR.js → vue-ui-waffle-Dk3tTWdO.js} +8 -8
  82. package/dist/{vue-ui-wheel-yycsJGow.js → vue-ui-wheel-BSS8Pwh9.js} +6 -6
  83. package/dist/{vue-ui-word-cloud-DOCZG4sG.js → vue-ui-word-cloud-ClzPci72.js} +6 -6
  84. package/dist/{vue-ui-world-DmqpYNHN.js → vue-ui-world-B4Erd9j8.js} +6 -6
  85. package/dist/vue-ui-xy-6RfR55GH.js +2992 -0
  86. package/dist/{vue-ui-xy-canvas-CPtnHo7Z.js → vue-ui-xy-canvas-C1Yk4nEd.js} +8 -8
  87. package/package.json +1 -1
  88. package/dist/vue-ui-xy-CkAsIr0W.js +0 -2982
@@ -0,0 +1,2992 @@
1
+ import { defineAsyncComponent as Fe, useSlots as Vt, getCurrentInstance as Pt, ref as w, computed as A, onMounted as la, toRefs as Ht, onBeforeUnmount as Ea, watch as Cl, nextTick as me, createElementBlock as r, openBlock as u, normalizeStyle as C, normalizeClass as Ke, createBlock as Ie, createCommentVNode as d, createVNode as yl, unref as v, createSlots as Rt, withCtx as se, renderSlot as U, normalizeProps as Qe, guardReactiveProps as je, createElementVNode as g, Fragment as h, renderList as y, toDisplayString as ae, mergeProps as aa, withDirectives as Bt, vModelCheckbox as Yt, createTextVNode as Ft } from "vue";
2
+ import { u as Et, c as ta, e as oa, A as Wt, a5 as Ee, b as Gt, D as pl, ab as el, d as Xt, p as Dt, ac as Il, aa as R, ad as Ut, v as T, ae as Wa, V as Ga, af as Xa, U as Da, ag as qt, ah as Ua, ai as qa, x as Zt, y as Jt, _ as Za, R as Te, i as ce, f as ye, w as ll, s as $e, a8 as G, L as Kt, F as We, aj as Tl, I as Qt, ak as Ge, C as ul, t as jt, a as eo, o as Ja, q as lo, r as ao, E as rl } from "./index-BTYCKUoi.js";
3
+ import { u as sa } from "./useNestedProp-B-t-jGcw.js";
4
+ import { u as to } from "./useTimeLabels-DFkUfjfs.js";
5
+ import { S as oo } from "./Slicer-CDDwWiXn.js";
6
+ import so from "./Title-DUpdvxB-.js";
7
+ import { _ as Ol } from "./Shape-B8I8cX9P.js";
8
+ import uo from "./img-BQ7u3oEW.js";
9
+ import { u as ro } from "./usePrinter-JUJEFx1t.js";
10
+ import { u as io, B as no } from "./useLoading-Bt5Doa8m.js";
11
+ import { _ as co } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
+ const vo = ["id"], ho = ["width", "viewBox", "aria-label"], fo = ["x", "y", "width", "height"], go = { key: 1 }, xo = { class: "vue-ui-xy-grid" }, bo = ["stroke", "x1", "x2", "y1", "y2"], mo = ["stroke", "x1", "x2", "y1", "y2"], yo = { key: 1 }, po = ["x1", "x2", "y1", "y2", "stroke"], ko = ["x1", "x2", "y1", "y2", "stroke"], _o = ["x1", "x2", "y1", "y2", "stroke"], wo = { key: 3 }, So = ["d", "stroke"], $o = { key: 4 }, Lo = ["d", "stroke"], Ao = ["id"], Mo = ["stop-color"], zo = ["stop-color"], Co = ["stop-color"], Io = ["id"], To = ["stop-color"], Oo = ["stop-color"], No = ["stop-color"], Vo = ["id"], Po = ["stop-color"], Ho = ["stop-color"], Ro = ["id"], Bo = ["stop-color"], Yo = ["stop-color"], Fo = ["id"], Eo = ["stop-color"], Wo = ["stop-color"], Go = ["x", "y", "height", "width", "fill"], Xo = ["x", "y", "width"], Do = { key: 0 }, Uo = ["x", "y", "height", "width", "fill"], qo = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Zo = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Jo = ["width", "x", "y"], Ko = { key: 0 }, Qo = ["id"], jo = ["fill"], es = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ls = ["x", "y", "font-size", "fill"], as = ["stroke", "x1", "x2", "y1", "y2"], ts = { key: 3 }, os = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ss = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], us = {
13
+ key: 5,
14
+ ref: "scaleLabels"
15
+ }, rs = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], is = ["fill", "font-size", "transform"], ns = ["x1", "x2", "y1", "y2", "stroke"], cs = ["x", "y", "font-size", "fill"], vs = ["x1", "x2", "y1", "y2", "stroke"], ds = ["x", "y", "font-size", "fill"], hs = ["width", "x", "y"], fs = { style: { width: "100%" } }, gs = { key: 0 }, xs = ["id"], bs = ["fill"], ms = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ys = ["x", "y", "font-size", "fill"], ps = ["d", "stroke", "stroke-width", "stroke-dasharray"], ks = ["d", "stroke", "stroke-width", "stroke-dasharray"], _s = { key: 6 }, ws = { key: 0 }, Ss = ["d", "fill"], $s = ["d", "fill"], Ls = ["d", "fill"], As = ["d", "fill"], Ms = ["d", "stroke", "stroke-width", "stroke-dasharray"], zs = ["d", "stroke", "stroke-width", "stroke-dasharray"], Cs = ["width", "x", "y"], Is = { style: { width: "100%" } }, Ts = { key: 3 }, Os = ["id"], Ns = ["fill"], Vs = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Ps = ["x", "y", "font-size", "fill"], Hs = { key: 7 }, Rs = ["x", "y", "font-size", "fill"], Bs = ["x", "y", "font-size", "fill", "font-weight"], Ys = { key: 8 }, Fs = ["x", "y", "font-size", "fill"], Es = { key: 9 }, Ws = ["x", "y"], Gs = ["innerHTML"], Xs = ["x", "y"], Ds = ["innerHTML"], Us = ["x1", "x2", "y1", "y2", "stroke"], qs = { key: 10 }, Zs = ["x", "y", "font-size", "fill"], Js = { key: 11 }, Ks = ["x", "y"], Qs = ["innerHTML"], js = ["x", "y"], eu = ["innerHTML"], lu = ["x1", "x2", "y1", "y2", "stroke"], au = ["x", "y", "font-size", "fill", "innerHTML"], tu = ["x", "y", "font-size", "fill", "innerHTML"], ou = ["x", "y", "font-size", "fill", "innerHTML"], su = ["x", "y", "font-size", "fill", "innerHTML"], uu = ["id"], ru = ["stop-color"], iu = ["stop-color"], nu = ["x", "y", "width", "height", "fill", "onMouseenter"], cu = ["font-size", "fill", "transform"], vu = ["x", "y", "font-size", "fill"], du = ["text-anchor", "font-size", "fill", "transform", "onClick"], hu = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], fu = { key: 14 }, gu = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], xu = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], bu = ["y", "x", "width", "height", "fill"], mu = ["id", "x", "y", "font-size", "fill", "text-anchor"], yu = { key: 15 }, pu = ["x", "y", "height", "width", "onMouseenter", "onClick"], ku = {
16
+ key: 16,
17
+ style: { "pointer-events": "none" }
18
+ }, _u = ["x", "y"], wu = ["cx", "cy", "r", "fill"], Su = {
19
+ key: 4,
20
+ class: "vue-data-ui-watermark"
21
+ }, $u = {
22
+ class: "vue-ui-xy-tag-arrow",
23
+ height: "20",
24
+ viewBox: "0 0 10 20",
25
+ style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
26
+ }, Lu = ["fill"], Au = ["innerHTML"], Mu = {
27
+ class: "vue-ui-xy-tag-arrow",
28
+ height: "100%",
29
+ viewBox: "0 0 10 20",
30
+ style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
31
+ }, zu = ["fill"], Cu = ["innerHTML"], Iu = {
32
+ class: "vue-ui-xy-tag-arrow",
33
+ height: "20",
34
+ viewBox: "0 0 10 20",
35
+ style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
36
+ }, Tu = ["fill"], Ou = ["innerHTML"], Nu = {
37
+ class: "vue-ui-xy-tag-arrow",
38
+ height: "100%",
39
+ viewBox: "0 0 10 20",
40
+ style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
41
+ }, Vu = ["fill"], Pu = ["innerHTML"], Hu = ["onClick"], Ru = {
42
+ key: 0,
43
+ viewBox: "0 0 20 12",
44
+ height: "14",
45
+ width: "20"
46
+ }, Bu = ["stroke", "fill"], Yu = {
47
+ key: 1,
48
+ viewBox: "0 0 40 40",
49
+ height: "14",
50
+ width: "14"
51
+ }, Fu = ["fill"], Eu = ["fill"], Wu = {
52
+ key: 2,
53
+ viewBox: "0 0 12 12",
54
+ height: "14",
55
+ width: "14"
56
+ }, Gu = {
57
+ style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
58
+ "data-dom-to-png-ignore": ""
59
+ }, Xu = ["innerHTML"], Du = {
60
+ __name: "vue-ui-xy",
61
+ props: {
62
+ config: {
63
+ type: Object,
64
+ default() {
65
+ return {};
66
+ }
67
+ },
68
+ dataset: {
69
+ type: Array,
70
+ default() {
71
+ return [];
72
+ }
73
+ }
74
+ },
75
+ emits: ["selectTimeLabel", "selectX", "selectLegend"],
76
+ setup(Nl, { expose: Ka, emit: Qa }) {
77
+ const m = Nl, ja = Fe(() => import("./DataTable-rKKFtHrS.js")), et = Fe(() => import("./Tooltip-CxwXrJ2u.js")), lt = Fe(() => import("./UserOptions-B-B0E6a5.js")), at = Fe(() => import("./BaseIcon-BRbpfizy.js")), tt = Fe(() => import("./vue-ui-table-sparkline-BBfZ4a4I.js")), ot = Fe(() => import("./vue-ui-accordion-xabUfErM.js")), st = Fe(() => import("./PackageVersion-5SA7DsrF.js")), ut = Fe(() => import("./PenAndPaper-BGxzp1tk.js")), Vl = Qa, ua = Vt(), rt = Pt(), { vue_ui_xy: Pl } = Et(), ge = w(null), il = w(null), Le = w(null), al = w(null), nl = w(null), cl = w(null), ra = w(null), Hl = w(null), Rl = w(null), Bl = w(null), Xe = w(null), Yl = w(null), Fl = w(0), M = w(null), ia = w(!0), ue = w(600), Z = w(1e3), De = w("0 0 1000 600"), it = w({ x: 0, y: 0 }), vl = w({ line: "line", bar: "bar", plot: "plot" }), kl = w(!1), tl = w(!1), na = w(!1), _ = w(null), Ue = w(null), te = w([]), q = w(ta()), ca = w(0), va = w(0), da = w(0), dl = w(!0), El = w(0), O = w(null), ha = w(!1), Wl = w(!0), _l = w(!0), pe = w(null), Oe = w({}), wl = w(null), fa = w(0), nt = w(1), ct = A(() => ({
78
+ height: ue.value,
79
+ width: Z.value
80
+ })), vt = m.config.downsample && m.config.downsample.threshold ? m.config.downsample.threshold : 500, f = w({
81
+ dataLabels: { show: !0 },
82
+ showTooltip: !0,
83
+ showTable: !1,
84
+ isStacked: !1,
85
+ useIndividualScale: !1
86
+ }), x = w({
87
+ xAxis: 18,
88
+ yAxis: 12,
89
+ dataLabels: 20,
90
+ plotLabels: 10
91
+ }), Ae = w({ plot: 3, line: 3 });
92
+ la(() => {
93
+ m.dataset.length && m.dataset.forEach((a, c) => {
94
+ [null, void 0].includes(a.series) && oa({
95
+ componentName: "VueUiXy",
96
+ type: "datasetSerieAttribute",
97
+ property: "series (number[])",
98
+ index: c,
99
+ debug: xl.value
100
+ });
101
+ });
102
+ });
103
+ function Gl() {
104
+ if (!Object.keys(m.config || {}).length)
105
+ return Pl;
106
+ const a = sa({
107
+ userConfig: m.config,
108
+ defaultConfig: Pl
109
+ });
110
+ return m.config && ul(m.config, "chart.highlightArea") && (Array.isArray(m.config.chart.highlightArea) ? a.chart.highlightArea = m.config.chart.highlightArea : a.chart.highlightArea = [m.config.chart.highlightArea]), m.config && ul(m.config, "chart.grid.labels.yAxis.scaleMin") ? a.chart.grid.labels.yAxis.scaleMin = m.config.chart.grid.labels.yAxis.scaleMin : a.chart.grid.labels.yAxis.scaleMin = null, m.config && ul(m.config, "chart.grid.labels.yAxis.scaleMax") ? a.chart.grid.labels.yAxis.scaleMax = m.config.chart.grid.labels.yAxis.scaleMax : a.chart.grid.labels.yAxis.scaleMax = null, m.config && ul(m.config, "chart.zoom.startIndex") ? a.chart.zoom.startIndex = m.config.chart.zoom.startIndex : a.chart.zoom.startIndex = null, m.config && ul(m.config, "chart.zoom.endIndex") ? a.chart.zoom.endIndex = m.config.chart.zoom.endIndex : a.chart.zoom.endIndex = null, m.config && ul(m.config, "chart.grid.labels.yAxis.groupColor") ? a.chart.grid.labels.yAxis.groupColor = m.config.chart.grid.labels.yAxis.groupColor : a.chart.grid.labels.yAxis.groupColor = null, m.config && m.config.chart.annotations && Array.isArray(m.config.chart.annotations) && m.config.chart.annotations.length ? a.chart.annotations = m.config.chart.annotations.map((c) => sa({
111
+ defaultConfig: Pl.chart.annotations[0],
112
+ userConfig: c
113
+ })) : a.chart.annotations = [], m.config && m.config.autoSize && (m.config && m.config.debug && (m.config.chart.padding.top && console.warn("Vue Data UI - VueUiXy - autoSize mode ignores chart.padding.top, set a 0 value to remove this warning"), m.config.chart.padding.right && console.warn("Vue Data UI - VueUiXy - autoSize mode ignores chart.padding.right, set a 0 value to remove this warning"), m.config.chart.padding.bottom && console.warn("Vue Data UI - VueUiXy - autoSize mode ignores chart.padding.bottom, set a 0 value to remove this warning"), m.config.chart.padding.left && console.warn("Vue Data UI - VueUiXy - autoSize mode ignores chart.padding.left, set a 0 value to remove this warning")), a.chart.padding = {
114
+ top: 0,
115
+ right: 0,
116
+ bottom: 0,
117
+ left: 0
118
+ }), a.theme ? {
119
+ ...sa({
120
+ userConfig: eo.vue_ui_xy[a.theme] || m.config,
121
+ defaultConfig: a
122
+ }),
123
+ customPalette: jt[a.theme] || m.palette
124
+ } : a;
125
+ }
126
+ const Xl = A({
127
+ get() {
128
+ return !!m.dataset && m.dataset.length;
129
+ },
130
+ set(a) {
131
+ return a;
132
+ }
133
+ }), l = w(Gl()), { loading: Dl, FINAL_DATASET: Ne, manualLoading: Sl } = io({
134
+ ...Ht(m),
135
+ FINAL_CONFIG: l,
136
+ prepareConfig: Gl,
137
+ callback: () => {
138
+ Promise.resolve().then(async () => {
139
+ await ea(), l.value.autoSize && (ol(), Ql());
140
+ });
141
+ },
142
+ skeletonDataset: [
143
+ {
144
+ name: "",
145
+ series: [0, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 134],
146
+ type: "line",
147
+ smooth: !0,
148
+ color: "#BABABA"
149
+ },
150
+ {
151
+ name: "",
152
+ series: [0, 0.5, 1, 1.5, 2.5, 4, 6.5, 10.5, 17, 27.5, 44.5, 67],
153
+ type: "bar",
154
+ color: "#CACACA"
155
+ }
156
+ ],
157
+ skeletonConfig: Wt({
158
+ defaultConfig: l.value,
159
+ userConfig: {
160
+ autoSize: !1,
161
+ useCssAnimation: !1,
162
+ showTable: !1,
163
+ chart: {
164
+ annotations: [],
165
+ highlightArea: [],
166
+ backgroundColor: "#99999930",
167
+ grid: {
168
+ stroke: "#6A6A6A",
169
+ labels: {
170
+ show: !1,
171
+ axis: {
172
+ yLabel: "",
173
+ xLabel: ""
174
+ },
175
+ xAxisLabels: { show: !1 },
176
+ yAxis: {
177
+ commonScaleSteps: 10,
178
+ useNiceScale: !0,
179
+ stacked: !1,
180
+ scaleMin: 0,
181
+ scaleMax: 134
182
+ },
183
+ zeroLine: { show: !0 }
184
+ }
185
+ },
186
+ legend: { show: !1 },
187
+ padding: {
188
+ top: 12,
189
+ bottom: 24,
190
+ left: 24,
191
+ right: 24
192
+ },
193
+ userOptions: { show: !1 },
194
+ zoom: { show: !1 }
195
+ },
196
+ bar: {
197
+ serieName: { show: !1 },
198
+ labels: { show: !1 },
199
+ border: {
200
+ useSerieColor: !1,
201
+ stroke: "#999999"
202
+ }
203
+ },
204
+ line: {
205
+ dot: {
206
+ useSerieColor: !1,
207
+ fill: "#8A8A8A"
208
+ },
209
+ labels: { show: !1 }
210
+ }
211
+ }
212
+ })
213
+ }), He = A({
214
+ get: () => Math.max(...Ne.value.map((a) => Ee({ data: a.series, threshold: vt }).length)),
215
+ set: (a) => a
216
+ }), S = w({ start: 0, end: He.value }), { isPrinting: Ul, isImaging: ga, generatePdf: xa, generateImage: ba } = ro({
217
+ elementId: `vue-ui-xy_${q.value}`,
218
+ fileName: l.value.chart.title.text || "vue-ui-xy",
219
+ options: l.value.chart.userOptions.print
220
+ }), X = A(() => l.value.autoSize), ql = A(() => {
221
+ const [a, c, e, s] = De.value.split(" ").map(Number);
222
+ return { x: a, y: c, width: e, height: s };
223
+ }), ma = A(() => Gt(l.value.customPalette)), $l = A(() => l.value.chart.grid.labels.yAxis.scaleMax ? l.value.chart.grid.labels.yAxis.scaleMax : Math.max(...Ve.value.filter((a) => !te.value.includes(a.id)).map((a) => Math.max(...a.series)))), Zl = A(() => {
224
+ if (l.value.chart.grid.labels.yAxis.scaleMin !== null)
225
+ return l.value.chart.grid.labels.yAxis.scaleMin;
226
+ const a = Math.min(...Ve.value.filter((c) => !te.value.includes(c.id)).map((c) => Math.min(...c.series)));
227
+ return a > 0 ? 0 : a;
228
+ }), ke = A(() => l.value.chart.grid.labels.yAxis.useNiceScale ? pl(Zl.value, $l.value < 0 ? 0 : $l.value, l.value.chart.grid.labels.yAxis.commonScaleSteps) : el(Zl.value, $l.value < 0 ? 0 : $l.value, l.value.chart.grid.labels.yAxis.commonScaleSteps)), hl = A(() => [null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) ? ke.value.min >= 0 ? 0 : Math.abs(ke.value.min) : -ke.value.min), Ve = A(() => ia.value ? Ne.value.map((a, c) => {
229
+ const e = Ee({
230
+ data: a.series,
231
+ threshold: l.value.downsample.threshold
232
+ }), s = `uniqueId_${c}`;
233
+ return {
234
+ ...a,
235
+ slotAbsoluteIndex: c,
236
+ series: e.map((t) => Il(t) ? t : null).slice(S.value.start, S.value.end),
237
+ color: Xt(a.color ? a.color : ma.value[c] ? ma.value[c] : Dt[c]),
238
+ id: s,
239
+ scaleLabel: a.scaleLabel || s
240
+ };
241
+ }) : Ne.value), Me = A(() => Ve.value.map((a, c) => ({
242
+ absoluteIndex: c,
243
+ ...a,
244
+ series: a.series.map((e) => e + hl.value),
245
+ absoluteValues: a.series,
246
+ segregate: () => za(a),
247
+ isSegregated: te.value.includes(a.id)
248
+ }))), _e = A(() => Ve.value.map((a, c) => ({
249
+ ...a,
250
+ series: a.series.map((e) => e + hl.value),
251
+ absoluteValues: a.series
252
+ })).filter((a) => !te.value.includes(a.id))), i = A(() => {
253
+ function a(s) {
254
+ const t = /* @__PURE__ */ new Set();
255
+ return s.forEach((n) => {
256
+ const o = n.scaleLabel || "__noScaleLabel__";
257
+ t.add(o);
258
+ }), t.size;
259
+ }
260
+ const c = a(Me.value.filter((s) => !te.value.includes(s.id))), e = f.value.useIndividualScale && l.value.chart.grid.labels.show ? c * (f.value.isStacked ? 0 : l.value.chart.grid.labels.yAxis.labelWidth) : 0;
261
+ return {
262
+ top: X.value ? 0 : l.value.chart.padding.top,
263
+ right: X.value ? Z.value : Z.value - l.value.chart.padding.right,
264
+ bottom: X.value ? ue.value : ue.value - l.value.chart.padding.bottom,
265
+ left: X.value ? e : l.value.chart.padding.left + e,
266
+ height: X.value ? ue.value : ue.value - (l.value.chart.padding.top + l.value.chart.padding.bottom),
267
+ width: X.value ? Z.value - e : Z.value - (l.value.chart.padding.right + l.value.chart.padding.left + e)
268
+ };
269
+ }), dt = A(() => {
270
+ const a = l.value.chart.grid.position === "middle" ? 1 : 0, c = b.value + a, e = R(i.value.top), s = R(i.value.bottom);
271
+ return Array.from({ length: c }).map((t, n) => {
272
+ const o = i.value.width / b.value * n + i.value.left + Y.value;
273
+ return `M${o},${e} L${o},${s}`;
274
+ }).join(" ");
275
+ }), ht = A(() => {
276
+ if (!l.value.chart.grid.labels.xAxis.showCrosshairs)
277
+ return "";
278
+ const {
279
+ showOnlyAtModulo: a,
280
+ showOnlyFirstAndLast: c,
281
+ modulo: e
282
+ } = l.value.chart.grid.labels.xAxisLabels, s = Math.floor((S.value.end - S.value.start) / e);
283
+ return de.value.map((t, n) => {
284
+ if (!t) return null;
285
+ const o = a && b.value <= e, B = !c && !a, F = c && !a && (n === 0 || n === de.value.length - 1), K = c && !a && _.value === n, $ = !c && a && n % s === 0;
286
+ if (!(o || B || F || K || $))
287
+ return null;
288
+ const z = i.value.width / b.value, E = i.value.left + z * n + z / 2, k = l.value.chart.grid.labels.xAxis.crosshairSize, N = l.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero, L = N ? re.value - (re.value === i.value.bottom ? 0 : k / 2) : i.value.bottom, Q = N ? re.value + k / (re.value === i.value.bottom ? 1 : 2) : i.value.bottom + k;
289
+ return `M${E},${L} L${E},${Q}`;
290
+ }).filter((t) => t !== null).join(" ");
291
+ });
292
+ function ya() {
293
+ return !!rt?.vnode.props?.onSelectTimeLabel;
294
+ }
295
+ function ft(a, c, e) {
296
+ if (!wl.value) {
297
+ const s = document.createElement("canvas");
298
+ wl.value = s.getContext("2d");
299
+ }
300
+ return wl.value.font = `normal ${a}px sans-serif`, wl.value;
301
+ }
302
+ function pa() {
303
+ const a = ge.value.querySelectorAll(".vue-ui-xy-tag");
304
+ a.length && Array.from(a).forEach((c) => c.style.opacity = "0");
305
+ }
306
+ function Ll(a, c, e, s, t) {
307
+ e && (Oe.value[`${a}_${c}_${s}_${t}`] = e);
308
+ }
309
+ const Jl = w(!1);
310
+ async function ka(a = !1) {
311
+ await me(), Jl.value = a, ha.value && (_l.value = a);
312
+ }
313
+ function Kl() {
314
+ kl.value = !kl.value;
315
+ }
316
+ const de = A(() => {
317
+ const a = Math.max(...Ne.value.map((c) => Ee({ data: c.series, threshold: l.value.downsample.threshold }).length));
318
+ return to({
319
+ values: l.value.chart.grid.labels.xAxisLabels.values,
320
+ maxDatapoints: a,
321
+ formatter: l.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
322
+ start: S.value.start,
323
+ end: S.value.end
324
+ });
325
+ });
326
+ function _a(a, c) {
327
+ const e = _e.value.map((s) => ({
328
+ shape: s.shape || null,
329
+ name: s.name,
330
+ color: s.color,
331
+ type: s.type,
332
+ value: s.absoluteValues.find((t, n) => n === c),
333
+ comments: s.comments || [],
334
+ prefix: s.prefix || l.value.chart.labels.prefix,
335
+ suffix: s.suffix || l.value.chart.labels.suffix
336
+ }));
337
+ Vl("selectTimeLabel", {
338
+ datapoint: e,
339
+ absoluteIndex: a.absoluteIndex,
340
+ label: a.text
341
+ });
342
+ }
343
+ const b = A(() => S.value.end - S.value.start);
344
+ async function gt() {
345
+ if (!Hl.value) return;
346
+ await me();
347
+ let a = i.value.bottom;
348
+ Bl.value && (a += Bl.value.getBBox().height), Hl.value.setAttribute("y", a + x.value.xAxis * 1.3 + l.value.chart.grid.labels.axis.xLabelOffsetY);
349
+ }
350
+ async function xt() {
351
+ Rl.value && (await me(), Rl.value.setAttribute("transform", `translate(${ql.value.x + l.value.chart.grid.labels.axis.yLabelOffsetX + x.value.yAxis}, ${i.value.top + i.value.height / 2}) rotate(-90)`));
352
+ }
353
+ async function ol() {
354
+ await me();
355
+ const a = ra.value;
356
+ if (!a) return;
357
+ De.value = `0 0 ${l.value.chart.width} ${l.value.chart.height}`, gt(), await me(), xt();
358
+ const c = a.getBBox();
359
+ De.value = `${c.x} ${c.y - x.value.plotLabels} ${c.width + l.value.chart.padding.left} ${c.height + x.value.plotLabels + l.value.chart.padding.top}`, await me(), ge.value.classList.remove("no-transition");
360
+ }
361
+ function Ql() {
362
+ if (l.value.responsive && ge.value) {
363
+ const a = ge.value.parentNode;
364
+ if (a) {
365
+ const c = a.getBoundingClientRect().width;
366
+ a.style.width = c - 0.1 + "px", setTimeout(() => {
367
+ a.style.width = c + "px";
368
+ }, 0);
369
+ }
370
+ }
371
+ }
372
+ function bt(a) {
373
+ O.value = a;
374
+ }
375
+ function wa() {
376
+ f.value.isStacked = !f.value.isStacked, f.value.isStacked ? f.value.useIndividualScale = !0 : f.value.useIndividualScale = l.value.chart.grid.labels.yAxis.useIndividualScale;
377
+ }
378
+ function jl(a) {
379
+ xl.value && a.autoScaling && (l.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), l.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
380
+ }
381
+ function mt(a, c) {
382
+ let e = Array(a).fill(0);
383
+ for (let s = 0; s < c.length && s < a; s += 1)
384
+ e[s] = c[s];
385
+ return e;
386
+ }
387
+ function yt(a) {
388
+ const c = Math.max(...Ne.value.map((e) => Ee({ data: e.series, threshold: l.value.downsample.threshold }).length));
389
+ return a > c ? c : a < 0 || l.value.chart.zoom.startIndex !== null && a < l.value.chart.zoom.startIndex ? l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex + 1 : 1 : a;
390
+ }
391
+ async function ea() {
392
+ (l.value.chart.zoom.startIndex !== null || l.value.chart.zoom.endIndex !== null) && Le.value ? (l.value.chart.zoom.startIndex !== null && (await me(), await me(), Le.value.setStartValue(l.value.chart.zoom.startIndex)), l.value.chart.zoom.endIndex !== null && (await me(), await me(), Le.value.setEndValue(yt(l.value.chart.zoom.endIndex + 1)))) : (S.value = {
393
+ start: 0,
394
+ end: Math.max(...Ne.value.map((a) => Ee({ data: a.series, threshold: l.value.downsample.threshold }).length))
395
+ }, Fl.value += 1);
396
+ }
397
+ function pt() {
398
+ ea();
399
+ }
400
+ function xe(a) {
401
+ return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(a);
402
+ }
403
+ const Sa = A(() => ke.value.max + hl.value);
404
+ function qe(a) {
405
+ return a / (xe(Sa.value) ? Sa.value : 1);
406
+ }
407
+ const re = A(() => isNaN(qe(hl.value)) ? i.value.bottom : i.value.bottom - i.value.height * qe(hl.value));
408
+ function $a(a) {
409
+ const c = ![null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) && l.value.chart.grid.labels.yAxis.scaleMin > 0 && Zl.value >= 0 ? i.value.bottom : re.value;
410
+ return a.value >= 0 ? T(c - a.y <= 0 ? 1e-5 : c - a.y) : T(a.y - re.value <= 0 ? 1e-5 : a.y - re.value);
411
+ }
412
+ function La(a) {
413
+ return a.value >= 0 ? T(a.zeroPosition - a.y <= 0 ? 1e-5 : a.zeroPosition - a.y) : T(a.y - a.zeroPosition <= 0 ? 1e-5 : a.zeroPosition - a.y);
414
+ }
415
+ const J = A(() => ({
416
+ bar: i.value.width / b.value / Ve.value.filter((a) => a.type === "bar").filter((a) => !te.value.includes(a.id)).length,
417
+ plot: i.value.width / b.value,
418
+ line: i.value.width / b.value
419
+ }));
420
+ function we() {
421
+ return f.value.useIndividualScale && f.value.isStacked ? J.value.line - i.value.width / b.value * 0.1 : J.value.bar;
422
+ }
423
+ function Al(a) {
424
+ return f.value.useIndividualScale && f.value.isStacked ? a.x + i.value.width / b.value * 0.05 : a.x + J.value.bar / 2;
425
+ }
426
+ function Aa(a) {
427
+ return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(re.value) ? i.bottom.value : re.value;
428
+ }
429
+ function Ma(a) {
430
+ return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(a.zeroPosition) ? 0 : a.zeroPosition;
431
+ }
432
+ function kt(a) {
433
+ Vl(
434
+ "selectX",
435
+ {
436
+ dataset: _e.value.map((c) => ({
437
+ name: c.name,
438
+ value: [null, void 0, NaN].includes(c.absoluteValues[a]) ? null : c.absoluteValues[a],
439
+ color: c.color,
440
+ type: c.type
441
+ })),
442
+ index: a,
443
+ indexLabel: l.value.chart.grid.labels.xAxisLabels.values[a]
444
+ }
445
+ );
446
+ }
447
+ function _t() {
448
+ return Me.value.map((a) => ({
449
+ values: a.absoluteValues,
450
+ color: a.color,
451
+ name: a.name,
452
+ type: a.type
453
+ }));
454
+ }
455
+ async function wt({ scale: a = 2 } = {}) {
456
+ if (!ge.value) return;
457
+ const { width: c, height: e } = ge.value.getBoundingClientRect(), s = c / e, { imageUri: t, base64: n } = await uo({ domElement: ge.value, base64: !0, img: !0, scale: a });
458
+ return {
459
+ imageUri: t,
460
+ base64: n,
461
+ title: l.value.chart.title.text,
462
+ width: c,
463
+ height: e,
464
+ aspectRatio: s
465
+ };
466
+ }
467
+ function za(a) {
468
+ if (te.value.includes(a.id))
469
+ te.value = te.value.filter((c) => c !== a.id);
470
+ else {
471
+ if (te.value.length + 1 === Ve.value.length) return;
472
+ te.value.push(a.id);
473
+ }
474
+ Vl("selectLegend", _e.value.map((c) => ({
475
+ name: c.name,
476
+ values: c.absoluteValues,
477
+ color: c.color,
478
+ type: c.type
479
+ }))), El.value += 1;
480
+ }
481
+ const St = A(() => {
482
+ const a = l.value.chart.title.text || "Chart visualization", c = l.value.chart.title.subtitle.text || "";
483
+ return `${a}. ${c}`;
484
+ }), Ca = A(() => ({
485
+ linePlot: b.value > l.value.line.dot.hideAboveMaxSerieLength
486
+ })), $t = A(() => l.value.chart.userOptions.show && (!l.value.chart.title.show || !l.value.chart.title.text)), Lt = A(() => {
487
+ if (Array.isArray(l.value.chart.highlightArea))
488
+ return l.value.chart.highlightArea.map((c) => {
489
+ const e = Math.min(c.to, He.value - 1);
490
+ return {
491
+ ...c,
492
+ span: c.from === e ? 1 : e < c.from ? 0 : e - c.from + 1
493
+ };
494
+ });
495
+ const a = {
496
+ ...l.value.chart.highlightArea,
497
+ to: Math.min(l.value.chart.highlightArea.to, He.value - 1)
498
+ };
499
+ return [{ ...a, span: a.from === a.to ? 1 : a.to < a.from ? 0 : a.to - a.from + 1 }];
500
+ }), At = A(() => ia.value ? Ne.value.map((a, c) => ({
501
+ ...a,
502
+ series: Ee({
503
+ data: a.series,
504
+ threshold: l.value.downsample.threshold
505
+ }),
506
+ id: `uniqueId_${c}`
507
+ })) : Ne.value), Mt = A(() => _e.value.map((a) => {
508
+ const c = a.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
509
+ return {
510
+ id: a.id,
511
+ name: a.name,
512
+ color: a.color,
513
+ values: mt(b.value, c)
514
+ };
515
+ })), zt = A(() => ({
516
+ responsiveBreakpoint: l.value.table.responsiveBreakpoint,
517
+ roundingValues: l.value.table.rounding,
518
+ showAverage: !1,
519
+ showMedian: !1,
520
+ showTotal: !1,
521
+ fontFamily: l.value.chart.fontFamily,
522
+ prefix: l.value.chart.labels.prefix,
523
+ suffix: l.value.chart.labels.suffix,
524
+ colNames: de.value.map((a) => a.text),
525
+ thead: {
526
+ backgroundColor: l.value.table.th.backgroundColor,
527
+ color: l.value.table.th.color,
528
+ outline: l.value.table.th.outline
529
+ },
530
+ tbody: {
531
+ backgroundColor: l.value.table.td.backgroundColor,
532
+ color: l.value.table.td.color,
533
+ outline: l.value.table.td.outline
534
+ },
535
+ userOptions: {
536
+ show: !1
537
+ }
538
+ })), Y = A(() => l.value.chart.grid.position === "middle" ? 0 : i.value.width / b.value / 2), Ze = A(() => Ut(Me.value.filter((a) => !te.value.includes(a.id)))), p = A(() => {
539
+ const a = Object.groupBy(Ze.value, (e) => e.scaleLabel), c = {};
540
+ for (const [e, s] of Object.entries(a)) {
541
+ const t = s.flatMap((n) => n.absoluteValues);
542
+ c[e] = {
543
+ min: Math.min(...t) || 0,
544
+ max: Math.max(...t) || 1,
545
+ groupId: `scale_group_${ta()}`
546
+ };
547
+ }
548
+ return c;
549
+ }), Ct = A(() => {
550
+ const a = Ve.value.filter((c) => c.type === "bar").filter((c) => !te.value.includes(c.id)).length;
551
+ return i.value.width / b.value / a - Pe.value * a;
552
+ }), Pe = A(() => J.value.line * l.value.bar.periodGap), It = A(() => {
553
+ if (!l.value.chart.zoom.minimap.show) return [];
554
+ const a = At.value.filter((t) => !te.value.includes(t.id)), c = Math.max(...a.map((t) => t.series.length)), e = [];
555
+ for (let t = 0; t < c; t += 1)
556
+ e.push(a.map((n) => n.series[t] || 0).reduce((n, o) => (n || 0) + (o || 0), 0));
557
+ const s = Math.min(...e);
558
+ return e.map((t) => t + (s < 0 ? Math.abs(s) : 0));
559
+ }), fl = A(() => _e.value.map((a) => ({
560
+ slotAbsoluteIndex: a.slotAbsoluteIndex,
561
+ shape: a.shape || null,
562
+ name: a.name,
563
+ color: a.color,
564
+ type: a.type,
565
+ value: a.absoluteValues.find((c, e) => e === _.value),
566
+ comments: a.comments || [],
567
+ prefix: a.prefix || l.value.chart.labels.prefix,
568
+ suffix: a.suffix || l.value.chart.labels.suffix
569
+ }))), Ia = A(() => ke.value.ticks.map((a) => ({
570
+ y: a >= 0 ? re.value - i.value.height * qe(a) : re.value + i.value.height * qe(Math.abs(a)),
571
+ value: a,
572
+ prefix: l.value.chart.labels.prefix,
573
+ suffix: l.value.chart.labels.suffix
574
+ }))), Ta = A(() => {
575
+ const a = l.value.chart.annotations;
576
+ if (!a || !Array.isArray(a) || a.every(($) => !$.show)) return [];
577
+ const c = a.filter(
578
+ ($) => $.show && ($.yAxis.yTop != null || $.yAxis.yBottom != null)
579
+ );
580
+ if (!c.length) return [];
581
+ const { left: e, right: s } = i.value, t = re.value, n = i.value.height, o = ke.value.min, F = ke.value.max - o, K = ($) => {
582
+ const z = ($ - 0) / F;
583
+ return t - z * n;
584
+ };
585
+ return c.map(($) => {
586
+ const { yAxis: { yTop: z, yBottom: E, label: k } } = $, N = z != null && E != null && z !== E, L = z == null ? null : K(z), Q = E == null ? null : K(E), ie = ft(k.fontSize);
587
+ ie.font = `${k.fontSize}px sans-serif`;
588
+ const D = ie.measureText(k.text).width, be = k.fontSize, Ce = (k.position === "start" ? e + k.padding.left : s - k.padding.right) + k.offsetX, he = (L != null && Q != null ? Math.min(L, Q) : L ?? Q) - k.fontSize / 3 + k.offsetY - k.padding.top;
589
+ let P;
590
+ k.textAnchor === "middle" ? P = Ce - D / 2 - k.padding.left : k.textAnchor === "end" ? P = Ce - D - k.padding.right : P = Ce - k.padding.left;
591
+ const H = he - be * 0.75 - k.padding.top;
592
+ return {
593
+ show: ![L, Q, H].includes(NaN),
594
+ id: `annotation_y_${ta()}`,
595
+ hasArea: N,
596
+ areaHeight: N ? Math.abs(L - Q) : 0,
597
+ yTop: L,
598
+ yBottom: Q,
599
+ config: $.yAxis,
600
+ x1: e,
601
+ x2: s,
602
+ _text: { x: Ce, y: he },
603
+ _box: {
604
+ x: P,
605
+ y: H,
606
+ width: D + k.padding.left + k.padding.right,
607
+ height: be + k.padding.top + k.padding.bottom,
608
+ fill: k.backgroundColor,
609
+ stroke: k.border.stroke,
610
+ rx: k.border.rx,
611
+ ry: k.border.ry,
612
+ strokeWidth: k.border.strokeWidth
613
+ }
614
+ };
615
+ });
616
+ }), Re = A(() => {
617
+ const a = Ze.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (c - 1) : 0, n = i.value.height - t;
618
+ return a.filter((o) => o.type === "bar").map((o, B) => {
619
+ jl(o);
620
+ const F = p.value[o.scaleLabel].min, K = p.value[o.scaleLabel].max;
621
+ o.absoluteValues.filter((V) => ![null, void 0].includes(V)).map((V) => (V - F) / (K - F));
622
+ const $ = {
623
+ valueMin: F,
624
+ valueMax: K < 0 ? 0 : K
625
+ }, z = {
626
+ max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
627
+ min: o.scaleMin || Math.min(...o.absoluteValues.filter((V) => ![void 0, null].includes(V))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((V) => ![null, void 0].includes(V)))
628
+ }, E = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ? pl(z.min, z.max === z.min ? z.max * k : z.max, E) : el(z.min, z.max === z.min ? z.max * k : z.max, E), L = l.value.chart.grid.labels.yAxis.useNiceScale ? pl($.valueMin, $.valueMax === $.valueMin ? $.valueMax * k : $.valueMax, E) : el($.valueMin, $.valueMax === $.valueMin ? $.valueMax * k : $.valueMax, E), Q = N.min >= 0 ? 0 : Math.abs(N.min), ie = 0, D = N.max + Q, be = L.max + Math.abs(ie), Ce = o.stackIndex, sl = c - 1 - Ce, he = s ? 1 - o.cumulatedStackRatio : 0, P = s ? n * he + e * sl : 0, H = s ? n * o.stackRatio : i.value.height, j = i.value.bottom - P - H * Q / D, fe = i.value.bottom - P - H * ie / be, ne = Me.value.filter((V) => V.type === "bar").filter((V) => !te.value.includes(V.id)).length, bl = o.series.map((V, le) => {
629
+ const Ye = f.value.useIndividualScale ? (o.absoluteValues[le] + Q) / D : qe(V), Je = f.value.useIndividualScale && f.value.isStacked ? i.value.left + i.value.width / b.value * le : i.value.left + J.value.bar * B + J.value.bar * le * ne - Ct.value / 2 - B * Pe.value;
630
+ return {
631
+ yOffset: T(P),
632
+ individualHeight: T(H),
633
+ x: T(Je),
634
+ y: i.value.bottom - P - H * Ye,
635
+ value: o.absoluteValues[le],
636
+ zeroPosition: T(j),
637
+ individualMax: T(D),
638
+ comment: o.comments && o.comments.slice(S.value.start, S.value.end)[le] || ""
639
+ };
640
+ }), ve = o.absoluteValues.map((V) => L.min >= 0 ? (V - Math.abs(L.min)) / (L.max - Math.abs(L.min)) : (V + Math.abs(L.min)) / (L.max + Math.abs(L.min))), Be = o.series.map((V, le) => {
641
+ const Ye = f.value.useIndividualScale && f.value.isStacked ? i.value.left + i.value.width / b.value * le : i.value.left - J.value.bar / 2 + J.value.bar * B + J.value.bar * le * Me.value.filter((Je) => Je.type === "bar").filter((Je) => !te.value.includes(Je.id)).length;
642
+ return {
643
+ yOffset: T(P),
644
+ individualHeight: T(H),
645
+ x: T(Ye),
646
+ y: T(i.value.bottom - T(P) - (T(H) * ve[le] || 0)),
647
+ value: o.absoluteValues[le],
648
+ zeroPosition: T(j),
649
+ individualMax: T(D),
650
+ comment: o.comments && o.comments.slice(S.value.start, S.value.end)[le] || ""
651
+ };
652
+ }), W = N.ticks.map((V) => ({
653
+ y: V >= 0 ? j - H * (V / D) : j + H * Math.abs(V) / D,
654
+ value: V,
655
+ prefix: o.prefix || l.value.chart.labels.prefix,
656
+ suffix: o.suffix || l.value.chart.labels.suffix,
657
+ datapoint: o
658
+ })), ee = L.ticks.map((V) => {
659
+ const le = (V - L.min) / (L.max - L.min);
660
+ return {
661
+ y: V >= 0 ? fe - H * le : fe + H * le,
662
+ value: V,
663
+ prefix: o.prefix || l.value.chart.labels.prefix,
664
+ suffix: o.suffix || l.value.chart.labels.suffix,
665
+ datapoint: o
666
+ };
667
+ });
668
+ return p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ? ee : W, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? fe : j, p.value[o.scaleLabel].individualMax = o.autoScaling ? be : D, p.value[o.scaleLabel].scaleLabel = o.scaleLabel, p.value[o.scaleLabel].id = o.id, p.value[o.scaleLabel].yOffset = P, p.value[o.scaleLabel].individualHeight = H, p.value[o.scaleLabel].autoScaleYLabels = ee, p.value[o.scaleLabel].unique = Ze.value.filter((V) => V.scaleLabel === o.scaleLabel).length === 1, {
669
+ ...o,
670
+ yOffset: P,
671
+ autoScaleYLabels: ee,
672
+ individualHeight: H,
673
+ scaleYLabels: o.autoScaling ? ee : W,
674
+ individualScale: o.autoScaling ? L : N,
675
+ individualMax: o.autoScaling ? be : D,
676
+ zeroPosition: o.autoScaling ? fe : j,
677
+ plots: o.autoScaling ? Be : bl,
678
+ groupId: p.value[o.scaleLabel].groupId
679
+ };
680
+ });
681
+ }), Se = A(() => {
682
+ const a = Ze.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (c - 1) : 0, n = i.value.height - t;
683
+ return a.filter((o) => o.type === "line").map((o, B) => {
684
+ jl(o);
685
+ const F = p.value[o.scaleLabel].min, K = p.value[o.scaleLabel].max;
686
+ o.absoluteValues.filter((I) => ![null, void 0].includes(I)).map((I) => (I - F) / (K - F));
687
+ const $ = {
688
+ valueMin: F,
689
+ valueMax: K
690
+ }, z = {
691
+ max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
692
+ min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
693
+ }, E = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ? pl(z.min, z.max === z.min ? z.max * k : z.max, E) : el(z.min, z.max === z.min ? z.max * k : z.max, E), L = l.value.chart.grid.labels.yAxis.useNiceScale ? pl($.valueMin, $.valueMax === $.valueMin ? $.valueMax * k : $.valueMax, E) : el($.valueMin, $.valueMax === $.valueMin ? $.valueMax * k : $.valueMax, E), Q = N.min >= 0 ? 0 : Math.abs(N.min), ie = 0, D = N.max + Math.abs(Q), be = L.max + Math.abs(ie), Ce = o.stackIndex, sl = c - 1 - Ce, he = s ? 1 - o.cumulatedStackRatio : 0, P = s ? n * he + e * sl : 0, H = s ? n * o.stackRatio : i.value.height, j = i.value.bottom - P - H * Q / D, fe = i.value.bottom - P - H * ie / be, ne = o.series.map((I, oe) => {
694
+ const Nt = f.value.useIndividualScale ? (o.absoluteValues[oe] + Math.abs(Q)) / D : qe(I);
695
+ return {
696
+ x: T(i.value.left + J.value.line / 2 + J.value.line * oe),
697
+ y: T(i.value.bottom - P - H * Nt),
698
+ value: o.absoluteValues[oe],
699
+ comment: o.comments && o.comments.slice(S.value.start, S.value.end)[oe] || ""
700
+ };
701
+ }), bl = o.absoluteValues.map((I) => L.min >= 0 ? (I - Math.abs(L.min)) / (L.max - Math.abs(L.min)) : (I + Math.abs(L.min)) / (L.max + Math.abs(L.min))), ve = o.series.map((I, oe) => [void 0, null].includes(o.absoluteValues[oe]) ? {
702
+ x: T(i.value.left + J.value.line / 2 + J.value.line * oe),
703
+ y: j,
704
+ value: o.absoluteValues[oe],
705
+ comment: o.comments && o.comments.slice(S.value.start, S.value.end)[oe] || ""
706
+ } : {
707
+ x: T(i.value.left + J.value.line / 2 + J.value.line * oe),
708
+ y: T(i.value.bottom - P - (H * bl[oe] || 0)),
709
+ value: o.absoluteValues[oe],
710
+ comment: o.comments && o.comments.slice(S.value.start, S.value.end)[oe] || ""
711
+ }), Be = l.value.line.cutNullValues ? Wa(ne) : Ga(ne.filter((I) => I.value !== null)), W = l.value.line.cutNullValues ? Wa(ve) : Ga(ve.filter((I) => I.value !== null)), ee = l.value.line.cutNullValues ? Xa(ne) : Da(ne.filter((I) => I.value !== null)), V = l.value.line.cutNullValues ? Xa(ve) : Da(ve.filter((I) => I.value !== null)), le = N.ticks.map((I) => ({
712
+ y: I >= 0 ? j - H * (I / D) : j + H * Math.abs(I) / D,
713
+ value: I,
714
+ prefix: o.prefix || l.value.chart.labels.prefix,
715
+ suffix: o.suffix || l.value.chart.labels.suffix,
716
+ datapoint: o
717
+ })), Ye = L.ticks.map((I) => {
718
+ const oe = (I - L.min) / (L.max - L.min);
719
+ return {
720
+ y: I >= 0 ? fe - H * oe : fe + H * oe,
721
+ value: I,
722
+ prefix: o.prefix || l.value.chart.labels.prefix,
723
+ suffix: o.suffix || l.value.chart.labels.suffix,
724
+ datapoint: o
725
+ };
726
+ });
727
+ p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Ye : le, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? fe : j, p.value[o.scaleLabel].individualMax = o.autoScaling ? be : D, p.value[o.scaleLabel].scaleLabel = o.scaleLabel, p.value[o.scaleLabel].id = o.id, p.value[o.scaleLabel].yOffset = P, p.value[o.scaleLabel].individualHeight = H, p.value[o.scaleLabel].autoScaleYLabels = Ye, p.value[o.scaleLabel].unique = Ze.value.filter((I) => I.scaleLabel === o.scaleLabel).length === 1;
728
+ const Je = f.value.useIndividualScale ? o.autoScaling ? fe : j : re.value, ml = Math.max(Math.max(o.autoScaling ? fe : le.at(-1) ? le.at(-1).y : 0, i.value.top), Je);
729
+ return {
730
+ ...o,
731
+ yOffset: P,
732
+ autoScaleYLabels: Ye,
733
+ individualHeight: H,
734
+ scaleYLabels: o.autoScaling ? Ye : le,
735
+ individualScale: o.autoScaling ? L : N,
736
+ individualMax: o.autoScaling ? be : D,
737
+ zeroPosition: o.autoScaling ? fe : j,
738
+ curve: o.autoScaling ? W : Be,
739
+ plots: o.autoScaling ? ve : ne,
740
+ area: o.useArea ? f.value.useIndividualScale ? l.value.line.cutNullValues ? Ua(
741
+ o.autoScaling ? ve : ne,
742
+ ml
743
+ ) : qa(
744
+ o.autoScaling ? ve.filter((I) => I.value !== null) : ne.filter((I) => I.value !== null),
745
+ ml
746
+ ) : l.value.line.cutNullValues ? Ua(ne, ml) : qa(ne.filter((I) => I.value !== null), ml) : "",
747
+ curveAreas: o.useArea ? qt(
748
+ o.autoScaling ? l.value.line.cutNullValues ? ve : ve.filter((I) => I.value !== null) : l.value.line.cutNullValues ? ne : ne.filter((I) => I.value !== null),
749
+ ml,
750
+ l.value.line.cutNullValues
751
+ ) : [],
752
+ straight: o.autoScaling ? V : ee,
753
+ groupId: p.value[o.scaleLabel].groupId
754
+ };
755
+ });
756
+ }), ze = A(() => {
757
+ const a = Ze.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (c - 1) : 0, n = i.value.height - t;
758
+ return a.filter((o) => o.type === "plot").map((o) => {
759
+ jl(o);
760
+ const B = p.value[o.scaleLabel].min, F = p.value[o.scaleLabel].max;
761
+ o.absoluteValues.filter((W) => ![null, void 0].includes(W)).map((W) => (W - B) / (F - B));
762
+ const K = {
763
+ valueMin: B,
764
+ valueMax: F
765
+ }, $ = {
766
+ max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
767
+ min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
768
+ }, z = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, E = 1.0000001, k = el($.min, $.max === $.min ? $.max * E : $.max, z), N = el(K.valueMin, K.valueMax === K.valueMin ? K.valueMax * E : K.valueMax, z), L = k.min >= 0 ? 0 : Math.abs(k.min), Q = 0, ie = k.max + L, D = N.max + Math.abs(Q), be = o.stackIndex, Ce = c - 1 - be, sl = s ? 1 - o.cumulatedStackRatio : 0, he = s ? n * sl + e * Ce : 0, P = s ? n * o.stackRatio : i.value.height, H = i.value.bottom - he - P * L / ie, j = i.value.bottom - he - P * Q / D, fe = o.series.map((W, ee) => {
769
+ const V = f.value.useIndividualScale ? (o.absoluteValues[ee] + Math.abs(L)) / ie : qe(W);
770
+ return {
771
+ x: T(i.value.left + J.value.plot / 2 + J.value.plot * ee),
772
+ y: T(i.value.bottom - he - P * V),
773
+ value: o.absoluteValues[ee],
774
+ comment: o.comments && o.comments.slice(S.value.start, S.value.end)[ee] || ""
775
+ };
776
+ }), ne = o.absoluteValues.map((W) => N.min >= 0 ? (W - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (W + Math.abs(N.min)) / (N.max + Math.abs(N.min))), bl = o.series.map((W, ee) => ({
777
+ x: T(i.value.left + J.value.plot / 2 + J.value.plot * ee),
778
+ y: T(i.value.bottom - he - (P * ne[ee] || 0)),
779
+ value: o.absoluteValues[ee],
780
+ comment: o.comments && o.comments.slice(S.value.start, S.value.end)[ee] || ""
781
+ })), ve = k.ticks.map((W) => ({
782
+ y: W >= 0 ? H - P * (W / ie) : H + P * Math.abs(W) / ie,
783
+ value: W,
784
+ prefix: o.prefix || l.value.chart.labels.prefix,
785
+ suffix: o.suffix || l.value.chart.labels.suffix,
786
+ datapoint: o
787
+ })), Be = N.ticks.map((W) => {
788
+ const ee = (W - N.min) / (N.max - N.min);
789
+ return {
790
+ y: W >= 0 ? j - P * ee : j + P * ee,
791
+ value: W,
792
+ prefix: o.prefix || l.value.chart.labels.prefix,
793
+ suffix: o.suffix || l.value.chart.labels.suffix,
794
+ datapoint: o
795
+ };
796
+ });
797
+ return p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Be : ve, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? j : H, p.value[o.scaleLabel].individualMax = o.autoScaling ? D : ie, p.value[o.scaleLabel].scaleLabel = o.scaleLabel, p.value[o.scaleLabel].id = o.id, p.value[o.scaleLabel].yOffset = he, p.value[o.scaleLabel].individualHeight = P, p.value[o.scaleLabel].autoScaleYLabels = Be, p.value[o.scaleLabel].unique = Ze.value.filter((W) => W.scaleLabel === o.scaleLabel).length === 1, {
798
+ ...o,
799
+ yOffset: he,
800
+ autoScaleYLabels: Be,
801
+ individualHeight: P,
802
+ scaleYLabels: o.autoScaling ? Be : ve,
803
+ individualScale: o.autoScaling ? N : k,
804
+ individualMax: o.autoScaling ? D : ie,
805
+ zeroPosition: o.autoScaling ? j : H,
806
+ plots: o.autoScaling ? bl : fe,
807
+ groupId: p.value[o.scaleLabel].groupId
808
+ };
809
+ });
810
+ }), gl = A(() => {
811
+ const a = Se.value.map((n) => ({
812
+ name: n.name,
813
+ color: n.color,
814
+ scale: n.individualScale,
815
+ scaleYLabels: n.scaleYLabels,
816
+ zero: n.zeroPosition,
817
+ max: n.individualMax,
818
+ scaleLabel: n.scaleLabel || "",
819
+ id: n.id,
820
+ yOffset: n.yOffset || 0,
821
+ individualHeight: n.individualHeight || i.value.height,
822
+ autoScaleYLabels: n.autoScaleYLabels
823
+ })), c = Re.value.map((n) => ({
824
+ name: n.name,
825
+ color: n.color,
826
+ scale: n.individualScale,
827
+ scaleYLabels: n.scaleYLabels,
828
+ zero: n.zeroPosition,
829
+ max: n.individualMax,
830
+ scaleLabel: n.scaleLabel || "",
831
+ id: n.id,
832
+ yOffset: n.yOffset || 0,
833
+ individualHeight: n.individualHeight || i.value.height
834
+ })), e = ze.value.map((n) => ({
835
+ name: n.name,
836
+ color: n.color,
837
+ scale: n.individualScale,
838
+ scaleYLabels: n.scaleYLabels,
839
+ // FIX
840
+ zero: n.zeroPosition,
841
+ max: n.individualMax,
842
+ scaleLabel: n.scaleLabel || "",
843
+ id: n.id,
844
+ yOffset: n.yOffset || 0,
845
+ individualHeight: n.individualHeight || i.value.height
846
+ })), s = f.value.useIndividualScale && !f.value.isStacked ? Object.values(p.value) : [...a, ...c, ...e], t = s.flatMap((n) => n).length;
847
+ return s.flatMap((n, o) => {
848
+ let B = 0;
849
+ return X.value ? B = f.value.isStacked ? i.value.left : i.value.left - o * (l.value.chart.grid.labels.yAxis.labelWidth + x.value.dataLabels * 2) : B = f.value.isStacked ? i.value.left : i.value.left / t * (o + 1), {
850
+ unique: n.unique,
851
+ id: n.id,
852
+ groupId: n.groupId,
853
+ scaleLabel: n.scaleLabel,
854
+ name: f.value.useIndividualScale && !f.value.isStacked ? n.unique ? n.name : n.groupName : n.name,
855
+ color: f.value.useIndividualScale && !f.value.isStacked ? n.unique ? n.color : n.groupColor : n.color,
856
+ scale: n.scale,
857
+ yOffset: n.yOffset,
858
+ individualHeight: n.individualHeight,
859
+ x: B,
860
+ yLabels: n.scaleYLabels || n.scale.ticks.map((F) => ({
861
+ y: F >= 0 ? n.zero - n.individualHeight * (F / n.max) : n.zero + n.individualHeight * Math.abs(F) / n.max,
862
+ value: F
863
+ }))
864
+ };
865
+ });
866
+ }), Oa = A(() => ({
867
+ datapoint: fl.value,
868
+ seriesIndex: _.value,
869
+ series: Me.value,
870
+ bars: Re.value,
871
+ lines: Se.value,
872
+ plots: ze.value,
873
+ config: l.value
874
+ })), Tt = A(() => {
875
+ let a = "", c = fl.value.map((t) => t.value).filter((t) => Il(t) && t !== null).reduce((t, n) => Math.abs(t) + Math.abs(n), 0);
876
+ const e = de.value[_.value], s = l.value.chart.tooltip.customFormat;
877
+ return Zt(s) && Jt(() => s({
878
+ absoluteIndex: _.value + S.value.start,
879
+ seriesIndex: _.value,
880
+ datapoint: fl.value,
881
+ series: Me.value,
882
+ bars: Re.value,
883
+ lines: Se.value,
884
+ plots: ze.value,
885
+ config: l.value
886
+ })) ? s({
887
+ absoluteIndex: _.value + S.value.start,
888
+ seriesIndex: _.value,
889
+ datapoint: fl.value,
890
+ series: Me.value,
891
+ bars: Re.value,
892
+ lines: Se.value,
893
+ plots: ze.value,
894
+ config: l.value
895
+ }) : (e && e.text && l.value.chart.tooltip.showTimeLabel && (a += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${l.value.chart.tooltip.borderColor}; width:100%">${e.text}</div>`), fl.value.forEach((t) => {
896
+ if (Il(t.value)) {
897
+ let n = "", o = "";
898
+ switch (vl.value[t.type]) {
899
+ case "bar":
900
+ n = `<svg viewBox="0 0 40 40" height="14" width="14">${ua.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="${ua.pattern ? `url(#pattern_${q.value}_${t.slotAbsoluteIndex}` : t.color}" /></svg>`;
901
+ break;
902
+ case "line":
903
+ !t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" />` : t.shape === "triangle" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "square" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "diamond" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "pentagon" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "hexagon" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "star" && (o = `<polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" points="${Za({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), n = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${t.color}" />${o}</svg>`;
904
+ break;
905
+ case "plot":
906
+ if (!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape)) {
907
+ n = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" /></svg>`;
908
+ break;
909
+ }
910
+ if (t.shape === "star") {
911
+ n = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" points="${Za({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
912
+ break;
913
+ }
914
+ if (t.shape === "triangle") {
915
+ n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Te({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
916
+ break;
917
+ }
918
+ if (t.shape === "square") {
919
+ n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Te({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
920
+ break;
921
+ }
922
+ if (t.shape === "diamond") {
923
+ n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Te({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
924
+ break;
925
+ }
926
+ if (t.shape === "pentagon") {
927
+ n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Te({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
928
+ break;
929
+ }
930
+ if (t.shape === "hexagon") {
931
+ n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Te({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
932
+ break;
933
+ }
934
+ }
935
+ a += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${n}</div> ${t.name}: <b>${l.value.chart.tooltip.showValue ? ce(
936
+ t.type === "line" ? l.value.line.labels.formatter : t.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
937
+ t.value,
938
+ ye({
939
+ p: t.prefix,
940
+ v: t.value,
941
+ s: t.suffix,
942
+ r: l.value.chart.tooltip.roundingValue
943
+ }),
944
+ { datapoint: t }
945
+ ) : ""}</b> ${l.value.chart.tooltip.showPercentage ? `(${ye({
946
+ v: T(Math.abs(t.value) / c * 100),
947
+ s: "%",
948
+ r: l.value.chart.tooltip.roundingPercentage
949
+ })})` : ""}</div>`, l.value.chart.comments.showInTooltip && t.comments.length && t.comments.slice(S.value.start, S.value.end)[_.value] && (a += `<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(S.value.start, S.value.end)[_.value]}</div>`);
950
+ }
951
+ }), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${l.value.chart.tooltip.color}">${a}</div>`);
952
+ });
953
+ A(() => {
954
+ if (Ve.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
955
+ const a = _e.value.map((e) => ({
956
+ label: e.name,
957
+ color: e.color,
958
+ type: e.type
959
+ })), c = [];
960
+ return de.value.forEach((e, s) => {
961
+ const t = [e.text];
962
+ _e.value.forEach((n) => {
963
+ t.push(xe(n.absoluteValues[s]) ? Number(n.absoluteValues[s].toFixed(l.value.table.rounding)) : "");
964
+ }), c.push(t);
965
+ }), { head: a, body: c };
966
+ });
967
+ const Ml = A(() => {
968
+ const a = l.value.table.showSum;
969
+ let c = [""].concat(_e.value.map((n) => n.name));
970
+ a && (c = c.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>'));
971
+ let e = [];
972
+ for (let n = 0; n < b.value; n += 1) {
973
+ const o = _e.value.map((B) => B.absoluteValues[n] ?? 0).reduce((B, F) => B + F, 0);
974
+ e.push(
975
+ [
976
+ de.value[n].text ?? "-"
977
+ ].concat(_e.value.map(
978
+ (B) => ce(
979
+ B.type === "line" ? l.value.line.labels.formatter : B.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
980
+ B.absoluteValues[n] ?? 0,
981
+ ye({
982
+ p: B.prefix || l.value.chart.labels.prefix,
983
+ v: B.absoluteValues[n] ?? 0,
984
+ s: B.suffix || l.value.chart.labels.suffix,
985
+ r: l.value.table.rounding
986
+ })
987
+ )
988
+ )).concat(a ? (o ?? 0).toFixed(l.value.table.rounding) : [])
989
+ );
990
+ }
991
+ const s = {
992
+ th: {
993
+ backgroundColor: l.value.table.th.backgroundColor,
994
+ color: l.value.table.th.color,
995
+ outline: l.value.table.th.outline
996
+ },
997
+ td: {
998
+ backgroundColor: l.value.table.td.backgroundColor,
999
+ color: l.value.table.td.color,
1000
+ outline: l.value.table.td.outline
1001
+ },
1002
+ breakpoint: l.value.table.responsiveBreakpoint
1003
+ }, t = [l.value.table.columnNames.period].concat(_e.value.map((n) => n.name)).concat(l.value.table.columnNames.total);
1004
+ return { head: c, body: e, config: s, colNames: t };
1005
+ });
1006
+ function Na(a = null) {
1007
+ const c = [[l.value.chart.title.text], [l.value.chart.title.subtitle.text], [""]], e = ["", ...t.value.head.map((o) => o.label)], s = t.value.body, t = c.concat([e]).concat(s), n = lo(t);
1008
+ a ? a(n) : ao({ csvContent: n, title: l.value.chart.title.text || "vue-ui-xy" });
1009
+ }
1010
+ function Va(a, c = null) {
1011
+ na.value = a, a ? _.value = c : _.value = null;
1012
+ }
1013
+ function Pa() {
1014
+ f.value.showTable = !f.value.showTable;
1015
+ }
1016
+ function Ha() {
1017
+ f.value.dataLabels.show = !f.value.dataLabels.show;
1018
+ }
1019
+ function Ra() {
1020
+ f.value.showTooltip = !f.value.showTooltip;
1021
+ }
1022
+ function Ba(a) {
1023
+ tl.value = a, ca.value += 1;
1024
+ }
1025
+ function Ya() {
1026
+ if (!l.value.responsiveProportionalSizing) {
1027
+ x.value.dataLabels = l.value.chart.grid.labels.fontSize, x.value.yAxis = l.value.chart.grid.labels.axis.fontSize, x.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, x.value.plotLabels = l.value.chart.labels.fontSize, Ae.value.plot = l.value.plot.radius, Ae.value.line = l.value.line.radius;
1028
+ return;
1029
+ }
1030
+ x.value.dataLabels = rl({
1031
+ relator: ue.value,
1032
+ adjuster: 400,
1033
+ source: l.value.chart.grid.labels.fontSize,
1034
+ threshold: 10,
1035
+ fallback: 10
1036
+ }), x.value.yAxis = rl({
1037
+ relator: Z.value,
1038
+ adjuster: 1e3,
1039
+ source: l.value.chart.grid.labels.axis.fontSize,
1040
+ threshold: 10,
1041
+ fallback: 10
1042
+ }), x.value.xAxis = rl({
1043
+ relator: Z.value,
1044
+ adjuster: 1e3,
1045
+ source: l.value.chart.grid.labels.xAxisLabels.fontSize,
1046
+ threshold: 10,
1047
+ fallback: 10
1048
+ }), x.value.plotLabels = rl({
1049
+ relator: Z.value,
1050
+ adjuster: 800,
1051
+ source: l.value.chart.labels.fontSize,
1052
+ threshold: 10,
1053
+ fallback: 10
1054
+ }), Ae.value.plot = rl({
1055
+ relator: Z.value,
1056
+ adjuster: 800,
1057
+ source: l.value.plot.radius,
1058
+ threshold: 1,
1059
+ fallback: 1
1060
+ }), Ae.value.line = rl({
1061
+ relator: Z.value,
1062
+ adjuster: 800,
1063
+ source: l.value.line.radius,
1064
+ threshold: 1,
1065
+ fallback: 1
1066
+ });
1067
+ }
1068
+ const xl = A(() => !!l.value.debug);
1069
+ function Fa() {
1070
+ Ja(m.dataset) ? (oa({
1071
+ componentName: "VueUiXy",
1072
+ type: "dataset",
1073
+ debug: xl.value
1074
+ }), Sl.value = !0) : m.dataset.forEach((c, e) => {
1075
+ [null, void 0].includes(c.name) && (oa({
1076
+ componentName: "VueUiXy",
1077
+ type: "datasetSerieAttribute",
1078
+ property: "name (string)",
1079
+ index: e,
1080
+ debug: xl.value
1081
+ }), Sl.value = !0);
1082
+ }), xl.value && m.dataset.forEach((c) => {
1083
+ c.series.forEach((e, s) => {
1084
+ Il(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
1085
+ -----> The serie '${c.name}' contains the value '${e}' at index ${s}.
1086
+ '${e}' was converted to null to allow the chart to display.`);
1087
+ });
1088
+ }), Ja(m.dataset) || (Sl.value = l.value.loading), ha.value = l.value.chart.userOptions.showOnChartHover, Wl.value = l.value.chart.userOptions.keepStateOnChartLeave, _l.value = !l.value.chart.userOptions.showOnChartHover, f.value = {
1089
+ dataLabels: {
1090
+ show: !0
1091
+ },
1092
+ showTooltip: l.value.chart.tooltip.show === !0,
1093
+ showTable: l.value.showTable === !0,
1094
+ isStacked: l.value.chart.grid.labels.yAxis.stacked,
1095
+ useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
1096
+ };
1097
+ const a = X.value ? 0 : 12;
1098
+ if (l.value.responsive) {
1099
+ const e = ge.value.parentNode;
1100
+ Xe.value && (Xe.value.unobserve(Yl.value), Xe.value.disconnect());
1101
+ const { height: s, width: t } = e.getBoundingClientRect();
1102
+ let n = null, o = 0;
1103
+ l.value.chart.title.show && il.value && (n = il.value, o = n.getBoundingClientRect().height);
1104
+ let B = null, F = 0;
1105
+ l.value.chart.zoom.show && He.value > 6 && Xl.value && Le.value && Le.value.$el && (B = Le.value.$el, F = B.getBoundingClientRect().height);
1106
+ let K = null, $ = 0;
1107
+ l.value.chart.legend.show && al.value && (K = al.value, $ = K.getBoundingClientRect().height);
1108
+ let z = 0;
1109
+ nl.value && (z = nl.value.getBoundingClientRect().height);
1110
+ let E = 0;
1111
+ cl.value && (E = cl.value.getBoundingClientRect().height), ue.value = s - o - $ - F - z - E - a, Z.value = t, X.value ? ol() : De.value = `0 0 ${Z.value < 0 ? 10 : Z.value} ${ue.value < 0 ? 10 : ue.value}`, Ya();
1112
+ const k = new ResizeObserver((N) => {
1113
+ for (const L of N)
1114
+ l.value.chart.title.show && il.value ? o = il.value.getBoundingClientRect().height : o = 0, Le.value && Le.value.$el ? F = Le.value.$el.getBoundingClientRect().height : F = 0, al.value ? $ = al.value.getBoundingClientRect().height : $ = 0, nl.value ? z = nl.value.getBoundingClientRect().height : z = 0, cl.value ? E = cl.value.getBoundingClientRect().height : E = 0, X.value && ge.value.classList.add("no-transition"), requestAnimationFrame(() => {
1115
+ ue.value = L.contentRect.height - o - $ - F - z - E - (X.value ? 48 : a), X.value ? (fa.value = L.contentRect.height - ue.value, Z.value = L.contentBoxSize[0].inlineSize, nt.value = Z.value / fa.value, ol()) : (Z.value = L.contentBoxSize[0].inlineSize, De.value = `0 0 ${Z.value < 0 ? 10 : Z.value} ${ue.value < 0 ? 10 : ue.value}`), Ya();
1116
+ });
1117
+ });
1118
+ Xe.value = k, Yl.value = e, k.observe(e);
1119
+ } else
1120
+ ue.value = l.value.chart.height, Z.value = l.value.chart.width, x.value.dataLabels = l.value.chart.grid.labels.fontSize, x.value.yAxis = l.value.chart.grid.labels.axis.fontSize, x.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, x.value.plotLabels = l.value.chart.labels.fontSize, Ae.value.plot = l.value.plot.radius, Ae.value.line = l.value.line.radius, X.value ? ol() : De.value = `0 0 ${Z.value} ${ue.value}`;
1121
+ }
1122
+ la(() => {
1123
+ Fa(), ea(), document.addEventListener("mousemove", (a) => {
1124
+ it.value = {
1125
+ x: a.clientX,
1126
+ y: a.clientY
1127
+ };
1128
+ }), document.addEventListener("scroll", pa);
1129
+ }), Ea(() => {
1130
+ document.removeEventListener("scroll", pa), Xe.value && (Xe.value.unobserve(Yl.value), Xe.value.disconnect());
1131
+ }), Cl(() => f.value.isStacked, async () => {
1132
+ X.value && (await me(), ol(), Ql());
1133
+ });
1134
+ let zl;
1135
+ async function Ot() {
1136
+ await me(), ol(), Ql(), zl.disconnect();
1137
+ }
1138
+ return la(() => {
1139
+ ge.value && (zl = new ResizeObserver((a) => {
1140
+ for (const c of a) {
1141
+ const { width: e, height: s } = c.contentRect;
1142
+ if (e > 0 && s > 0) {
1143
+ Ot();
1144
+ break;
1145
+ }
1146
+ }
1147
+ }), zl.observe(ge.value.parentElement));
1148
+ }), Ea(() => {
1149
+ zl?.disconnect();
1150
+ }), Cl(() => m.dataset, (a) => {
1151
+ Array.isArray(a) && a.length > 0 && (Sl.value = !1), He.value = Math.max(...Ne.value.map((c) => Ee({
1152
+ data: c.series,
1153
+ threshold: l.value.downsample.threshold
1154
+ }).length)), S.value = {
1155
+ start: 0,
1156
+ end: He.value
1157
+ }, Fl.value += 1, El.value += 1;
1158
+ }, { deep: !0 }), Cl(() => m.config, (a) => {
1159
+ Dl.value || (l.value = Gl()), Fa(), da.value += 1, va.value += 1, f.value = {
1160
+ dataLabels: {
1161
+ show: !0
1162
+ },
1163
+ showTooltip: l.value.chart.tooltip.show === !0,
1164
+ showTable: l.value.showTable === !0,
1165
+ isStacked: l.value.chart.grid.labels.yAxis.stacked,
1166
+ useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
1167
+ };
1168
+ }, { deep: !0 }), Cl(l, () => {
1169
+ f.value = {
1170
+ dataLabels: {
1171
+ show: !0
1172
+ },
1173
+ showTooltip: l.value.chart.tooltip.show === !0,
1174
+ showTable: l.value.showTable === !0,
1175
+ isStacked: l.value.chart.grid.labels.yAxis.stacked,
1176
+ useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
1177
+ };
1178
+ }, { immediate: !0 }), Ka({
1179
+ getData: _t,
1180
+ getImage: wt,
1181
+ generatePdf: xa,
1182
+ generateImage: ba,
1183
+ generateCsv: Na,
1184
+ toggleStack: wa,
1185
+ toggleTable: Pa,
1186
+ toggleLabels: Ha,
1187
+ toggleTooltip: Ra,
1188
+ toggleAnnotator: Kl,
1189
+ toggleFullscreen: Ba
1190
+ }), (a, c) => (u(), r("div", {
1191
+ id: `vue-ui-xy_${q.value}`,
1192
+ class: Ke(`vue-ui-xy ${tl.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${l.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1193
+ ref_key: "chart",
1194
+ ref: ge,
1195
+ style: C(`background:${l.value.chart.backgroundColor}; color:${l.value.chart.color};width:100%;font-family:${l.value.chart.fontFamily};${l.value.responsive ? "height: 100%" : ""}`),
1196
+ onMouseenter: c[7] || (c[7] = () => ka(!0)),
1197
+ onMouseleave: c[8] || (c[8] = () => ka(!1))
1198
+ }, [
1199
+ l.value.chart.userOptions.buttons.annotator && pe.value ? (u(), Ie(v(ut), {
1200
+ key: 0,
1201
+ svgRef: pe.value,
1202
+ backgroundColor: l.value.chart.backgroundColor,
1203
+ color: l.value.chart.color,
1204
+ active: kl.value,
1205
+ onClose: Kl
1206
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
1207
+ $t.value ? (u(), r("div", {
1208
+ key: 1,
1209
+ ref_key: "noTitle",
1210
+ ref: cl,
1211
+ class: "vue-data-ui-no-title-space",
1212
+ style: "height:36px; width: 100%; background:transparent"
1213
+ }, null, 512)) : d("", !0),
1214
+ l.value.chart.title.show ? (u(), r("div", {
1215
+ key: 2,
1216
+ ref_key: "chartTitle",
1217
+ ref: il,
1218
+ class: "vue-ui-xy-title",
1219
+ style: C(`font-family:${l.value.chart.fontFamily}`)
1220
+ }, [
1221
+ (u(), Ie(so, {
1222
+ key: `title_${da.value}`,
1223
+ config: {
1224
+ title: {
1225
+ cy: "xy-div-title",
1226
+ ...l.value.chart.title
1227
+ },
1228
+ subtitle: {
1229
+ cy: "xy-div-subtitle",
1230
+ ...l.value.chart.title.subtitle
1231
+ }
1232
+ }
1233
+ }, null, 8, ["config"]))
1234
+ ], 4)) : d("", !0),
1235
+ l.value.chart.userOptions.show && (Wl.value || _l.value) ? (u(), Ie(v(lt), {
1236
+ ref: "defails",
1237
+ key: `user_options_${ca.value}`,
1238
+ backgroundColor: l.value.chart.backgroundColor,
1239
+ color: l.value.chart.color,
1240
+ isPrinting: v(Ul),
1241
+ isImaging: v(ga),
1242
+ uid: q.value,
1243
+ hasTooltip: l.value.chart.userOptions.buttons.tooltip && l.value.chart.tooltip.show,
1244
+ hasPdf: l.value.chart.userOptions.buttons.pdf,
1245
+ hasXls: l.value.chart.userOptions.buttons.csv,
1246
+ hasImg: l.value.chart.userOptions.buttons.img,
1247
+ hasLabel: l.value.chart.userOptions.buttons.labels,
1248
+ hasTable: l.value.chart.userOptions.buttons.table,
1249
+ hasStack: Nl.dataset.length > 1 && l.value.chart.userOptions.buttons.stack,
1250
+ hasFullscreen: l.value.chart.userOptions.buttons.fullscreen,
1251
+ isStacked: f.value.isStacked,
1252
+ isFullscreen: tl.value,
1253
+ chartElement: a.$refs.chart,
1254
+ position: l.value.chart.userOptions.position,
1255
+ isTooltip: f.value.showTooltip,
1256
+ titles: { ...l.value.chart.userOptions.buttonTitles },
1257
+ hasAnnotator: l.value.chart.userOptions.buttons.annotator,
1258
+ isAnnotation: kl.value,
1259
+ callbacks: l.value.chart.userOptions.callbacks,
1260
+ printScale: l.value.chart.userOptions.print.scale,
1261
+ onToggleFullscreen: Ba,
1262
+ onGeneratePdf: v(xa),
1263
+ onGenerateCsv: Na,
1264
+ onGenerateImage: v(ba),
1265
+ onToggleTable: Pa,
1266
+ onToggleLabels: Ha,
1267
+ onToggleStack: wa,
1268
+ onToggleTooltip: Ra,
1269
+ onToggleAnnotator: Kl,
1270
+ style: C({
1271
+ visibility: Wl.value ? _l.value ? "visible" : "hidden" : "visible"
1272
+ })
1273
+ }, Rt({ _: 2 }, [
1274
+ a.$slots.menuIcon ? {
1275
+ name: "menuIcon",
1276
+ fn: se(({ isOpen: e, color: s }) => [
1277
+ U(a.$slots, "menuIcon", Qe(je({ isOpen: e, color: s })), void 0, !0)
1278
+ ]),
1279
+ key: "0"
1280
+ } : void 0,
1281
+ a.$slots.optionTooltip ? {
1282
+ name: "optionTooltip",
1283
+ fn: se(() => [
1284
+ U(a.$slots, "optionTooltip", {}, void 0, !0)
1285
+ ]),
1286
+ key: "1"
1287
+ } : void 0,
1288
+ a.$slots.optionPdf ? {
1289
+ name: "optionPdf",
1290
+ fn: se(() => [
1291
+ U(a.$slots, "optionPdf", {}, void 0, !0)
1292
+ ]),
1293
+ key: "2"
1294
+ } : void 0,
1295
+ a.$slots.optionCsv ? {
1296
+ name: "optionCsv",
1297
+ fn: se(() => [
1298
+ U(a.$slots, "optionCsv", {}, void 0, !0)
1299
+ ]),
1300
+ key: "3"
1301
+ } : void 0,
1302
+ a.$slots.optionImg ? {
1303
+ name: "optionImg",
1304
+ fn: se(() => [
1305
+ U(a.$slots, "optionImg", {}, void 0, !0)
1306
+ ]),
1307
+ key: "4"
1308
+ } : void 0,
1309
+ a.$slots.optionTable ? {
1310
+ name: "optionTable",
1311
+ fn: se(() => [
1312
+ U(a.$slots, "optionTable", {}, void 0, !0)
1313
+ ]),
1314
+ key: "5"
1315
+ } : void 0,
1316
+ a.$slots.optionLabels ? {
1317
+ name: "optionLabels",
1318
+ fn: se(() => [
1319
+ U(a.$slots, "optionLabels", {}, void 0, !0)
1320
+ ]),
1321
+ key: "6"
1322
+ } : void 0,
1323
+ a.$slots.optionStack ? {
1324
+ name: "optionStack",
1325
+ fn: se(() => [
1326
+ U(a.$slots, "optionStack", {}, void 0, !0)
1327
+ ]),
1328
+ key: "7"
1329
+ } : void 0,
1330
+ a.$slots.optionFullscreen ? {
1331
+ name: "optionFullscreen",
1332
+ fn: se(({ toggleFullscreen: e, isFullscreen: s }) => [
1333
+ U(a.$slots, "optionFullscreen", Qe(je({ toggleFullscreen: e, isFullscreen: s })), void 0, !0)
1334
+ ]),
1335
+ key: "8"
1336
+ } : void 0,
1337
+ a.$slots.optionAnnotator ? {
1338
+ name: "optionAnnotator",
1339
+ fn: se(({ toggleAnnotator: e, isAnnotator: s }) => [
1340
+ U(a.$slots, "optionAnnotator", Qe(je({ toggleAnnotator: e, isAnnotator: s })), void 0, !0)
1341
+ ]),
1342
+ key: "9"
1343
+ } : void 0
1344
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
1345
+ (u(), r("svg", {
1346
+ ref_key: "svgRef",
1347
+ ref: pe,
1348
+ xmlns: "http://www.w3.org/2000/svg",
1349
+ class: Ke([{ "vue-data-ui-fullscreen--on": tl.value, "vue-data-ui-fulscreen--off": !tl.value }, "vue-ui-xy-svg vue-data-ui-svg"]),
1350
+ width: X.value ? void 0 : "100%",
1351
+ viewBox: De.value,
1352
+ style: C(`background: transparent; color:${l.value.chart.color}; font-family:${l.value.chart.fontFamily}`),
1353
+ "aria-label": St.value,
1354
+ role: "img",
1355
+ "aria-live": "polite",
1356
+ preserveAspectRatio: "xMidYMid"
1357
+ }, [
1358
+ g("g", {
1359
+ ref_key: "G",
1360
+ ref: ra,
1361
+ class: "vue-data-ui-g"
1362
+ }, [
1363
+ yl(v(st)),
1364
+ a.$slots["chart-background"] ? (u(), r("foreignObject", {
1365
+ key: 0,
1366
+ x: i.value.left + Y.value < 0 ? 0 : i.value.left + Y.value,
1367
+ y: i.value.top,
1368
+ width: i.value.width - (l.value.chart.grid.position === "middle" ? 0 : i.value.width / b.value) < 0 ? 0 : i.value.width - (l.value.chart.grid.position === "middle" ? 0 : i.value.width / b.value),
1369
+ height: i.value.height < 0 ? 0 : i.value.height,
1370
+ style: {
1371
+ pointerEvents: "none"
1372
+ }
1373
+ }, [
1374
+ U(a.$slots, "chart-background", {}, void 0, !0)
1375
+ ], 8, fo)) : d("", !0),
1376
+ b.value > 0 ? (u(), r("g", go, [
1377
+ g("g", xo, [
1378
+ l.value.chart.grid.labels.xAxis.showBaseline ? (u(), r("line", {
1379
+ key: 0,
1380
+ stroke: l.value.chart.grid.stroke,
1381
+ "stroke-width": "1",
1382
+ x1: i.value.left + Y.value,
1383
+ x2: i.value.right - Y.value,
1384
+ y1: v(R)(i.value.bottom),
1385
+ y2: v(R)(i.value.bottom),
1386
+ "stroke-linecap": "round",
1387
+ style: { animation: "none !important" }
1388
+ }, null, 8, bo)) : d("", !0),
1389
+ f.value.useIndividualScale ? l.value.chart.grid.showHorizontalLines ? (u(!0), r(h, { key: 2 }, y(gl.value, (e) => (u(), r("g", null, [
1390
+ e.id === M.value && e.yLabels.length ? (u(!0), r(h, { key: 0 }, y(e.yLabels, (s) => (u(), r("line", {
1391
+ x1: i.value.left + Y.value,
1392
+ x2: i.value.right - Y.value,
1393
+ y1: v(R)(s.y),
1394
+ y2: v(R)(s.y),
1395
+ stroke: e.color,
1396
+ "stroke-width": 0.5,
1397
+ "stroke-linecap": "round",
1398
+ style: { animation: "none !important" }
1399
+ }, null, 8, ko))), 256)) : e.yLabels.length ? (u(!0), r(h, { key: 1 }, y(e.yLabels, (s) => (u(), r("line", {
1400
+ x1: i.value.left + Y.value,
1401
+ x2: i.value.right - Y.value,
1402
+ y1: v(R)(s.y),
1403
+ y2: v(R)(s.y),
1404
+ stroke: l.value.chart.grid.stroke,
1405
+ "stroke-width": 0.5,
1406
+ "stroke-linecap": "round",
1407
+ style: { animation: "none !important" }
1408
+ }, null, 8, _o))), 256)) : d("", !0)
1409
+ ]))), 256)) : d("", !0) : (u(), r(h, { key: 1 }, [
1410
+ l.value.chart.grid.labels.yAxis.showBaseline ? (u(), r("line", {
1411
+ key: 0,
1412
+ stroke: l.value.chart.grid.stroke,
1413
+ "stroke-width": "1",
1414
+ x1: i.value.left + Y.value,
1415
+ x2: i.value.left + Y.value,
1416
+ y1: v(R)(i.value.top),
1417
+ y2: v(R)(i.value.bottom),
1418
+ "stroke-linecap": "round",
1419
+ style: { animation: "none !important" }
1420
+ }, null, 8, mo)) : d("", !0),
1421
+ l.value.chart.grid.showHorizontalLines ? (u(), r("g", yo, [
1422
+ (u(!0), r(h, null, y(Ia.value, (e) => (u(), r("line", {
1423
+ x1: i.value.left + Y.value,
1424
+ x2: i.value.right - Y.value,
1425
+ y1: v(R)(e.y),
1426
+ y2: v(R)(e.y),
1427
+ stroke: l.value.chart.grid.stroke,
1428
+ "stroke-width": 0.5,
1429
+ "stroke-linecap": "round",
1430
+ style: { animation: "none !important" }
1431
+ }, null, 8, po))), 256))
1432
+ ])) : d("", !0)
1433
+ ], 64)),
1434
+ l.value.chart.grid.showVerticalLines ? (u(), r("g", wo, [
1435
+ g("path", {
1436
+ d: dt.value,
1437
+ "stroke-width": 0.5,
1438
+ stroke: l.value.chart.grid.stroke,
1439
+ "stroke-linecap": "round",
1440
+ style: { animation: "none !important" }
1441
+ }, null, 8, So)
1442
+ ])) : d("", !0),
1443
+ l.value.chart.grid.labels.xAxisLabels.show ? (u(), r("g", $o, [
1444
+ g("path", {
1445
+ d: ht.value,
1446
+ stroke: l.value.chart.grid.stroke,
1447
+ "stroke-width": 1,
1448
+ "stroke-linecap": "round",
1449
+ style: { animation: "none !important" }
1450
+ }, null, 8, Lo)
1451
+ ])) : d("", !0)
1452
+ ]),
1453
+ (u(!0), r(h, null, y(Re.value, (e, s) => (u(), r("defs", {
1454
+ key: `def_rect_${s}`
1455
+ }, [
1456
+ g("linearGradient", {
1457
+ id: `rectGradient_pos_${s}_${q.value}`,
1458
+ x2: "0%",
1459
+ y2: "100%"
1460
+ }, [
1461
+ g("stop", {
1462
+ offset: "0%",
1463
+ "stop-color": e.color
1464
+ }, null, 8, Mo),
1465
+ g("stop", {
1466
+ offset: "62%",
1467
+ "stop-color": `${v(ll)(e.color, 0.02)}`
1468
+ }, null, 8, zo),
1469
+ g("stop", {
1470
+ offset: "100%",
1471
+ "stop-color": `${v(ll)(e.color, 0.05)}`
1472
+ }, null, 8, Co)
1473
+ ], 8, Ao),
1474
+ g("linearGradient", {
1475
+ id: `rectGradient_neg_${s}_${q.value}`,
1476
+ x2: "0%",
1477
+ y2: "100%"
1478
+ }, [
1479
+ g("stop", {
1480
+ offset: "0%",
1481
+ "stop-color": `${v(ll)(e.color, 0.05)}`
1482
+ }, null, 8, To),
1483
+ g("stop", {
1484
+ offset: "38%",
1485
+ "stop-color": `${v(ll)(e.color, 0.02)}`
1486
+ }, null, 8, Oo),
1487
+ g("stop", {
1488
+ offset: "100%",
1489
+ "stop-color": e.color
1490
+ }, null, 8, No)
1491
+ ], 8, Io)
1492
+ ]))), 128)),
1493
+ (u(!0), r(h, null, y(ze.value, (e, s) => (u(), r("defs", {
1494
+ key: `def_plot_${s}`
1495
+ }, [
1496
+ g("radialGradient", {
1497
+ id: `plotGradient_${s}_${q.value}`,
1498
+ cx: "50%",
1499
+ cy: "50%",
1500
+ r: "50%",
1501
+ fx: "50%",
1502
+ fy: "50%"
1503
+ }, [
1504
+ g("stop", {
1505
+ offset: "0%",
1506
+ "stop-color": `${v(ll)(e.color, 0.05)}`
1507
+ }, null, 8, Po),
1508
+ g("stop", {
1509
+ offset: "100%",
1510
+ "stop-color": e.color
1511
+ }, null, 8, Ho)
1512
+ ], 8, Vo)
1513
+ ]))), 128)),
1514
+ (u(!0), r(h, null, y(Se.value, (e, s) => (u(), r("defs", {
1515
+ key: `def_line_${s}`
1516
+ }, [
1517
+ g("radialGradient", {
1518
+ id: `lineGradient_${s}_${q.value}`,
1519
+ cx: "50%",
1520
+ cy: "50%",
1521
+ r: "50%",
1522
+ fx: "50%",
1523
+ fy: "50%"
1524
+ }, [
1525
+ g("stop", {
1526
+ offset: "0%",
1527
+ "stop-color": `${v(ll)(e.color, 0.05)}`
1528
+ }, null, 8, Bo),
1529
+ g("stop", {
1530
+ offset: "100%",
1531
+ "stop-color": e.color
1532
+ }, null, 8, Yo)
1533
+ ], 8, Ro),
1534
+ g("linearGradient", {
1535
+ id: `areaGradient_${s}_${q.value}`,
1536
+ x1: "0%",
1537
+ x2: "100%",
1538
+ y1: "0%",
1539
+ y2: "0%"
1540
+ }, [
1541
+ g("stop", {
1542
+ offset: "0%",
1543
+ "stop-color": `${v($e)(v(ll)(e.color, 0.03), l.value.line.area.opacity)}`
1544
+ }, null, 8, Eo),
1545
+ g("stop", {
1546
+ offset: "100%",
1547
+ "stop-color": `${v($e)(e.color, l.value.line.area.opacity)}`
1548
+ }, null, 8, Wo)
1549
+ ], 8, Fo)
1550
+ ]))), 128)),
1551
+ (u(!0), r(h, null, y(Lt.value, (e) => (u(), r("g", null, [
1552
+ e.show ? (u(), r(h, { key: 0 }, [
1553
+ (u(!0), r(h, null, y(e.span, (s, t) => (u(), r("g", null, [
1554
+ g("rect", {
1555
+ style: C({
1556
+ transition: "none",
1557
+ opacity: e.from + t >= S.value.start && e.from + t <= S.value.end - 1 ? 1 : 0
1558
+ }),
1559
+ x: i.value.left + i.value.width / b.value * (e.from + t - S.value.start),
1560
+ y: i.value.top,
1561
+ height: i.value.height < 0 ? 10 : i.value.height,
1562
+ width: i.value.width / b.value < 0 ? 1e-5 : i.value.width / b.value,
1563
+ fill: v($e)(e.color, e.opacity)
1564
+ }, null, 12, Go)
1565
+ ]))), 256)),
1566
+ (u(!0), r(h, null, y(e.span, (s, t) => (u(), r("g", null, [
1567
+ e.caption.text && t === 0 ? (u(), r("foreignObject", {
1568
+ key: 0,
1569
+ x: i.value.left + i.value.width / b.value * (e.from + t - S.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - i.value.width / b.value * e.span / 2),
1570
+ y: i.value.top + e.caption.offsetY,
1571
+ style: C({
1572
+ overflow: "visible",
1573
+ opacity: e.to >= S.value.start && e.from < S.value.end ? 1 : 0
1574
+ }),
1575
+ height: "1",
1576
+ width: e.caption.width === "auto" ? i.value.width / b.value * e.span : e.caption.width
1577
+ }, [
1578
+ g("div", {
1579
+ style: C(`padding:${e.caption.padding}px;text-align:${e.caption.textAlign};font-size:${e.caption.fontSize}px;color:${e.caption.color};font-weight:${e.caption.bold ? "bold" : "normal"}`)
1580
+ }, ae(e.caption.text), 5)
1581
+ ], 12, Xo)) : d("", !0)
1582
+ ]))), 256))
1583
+ ], 64)) : d("", !0)
1584
+ ]))), 256)),
1585
+ Jl.value ? (u(), r("g", Do, [
1586
+ (u(!0), r(h, null, y(b.value, (e, s) => (u(), r("g", {
1587
+ key: `tooltip_trap_highlighter_${s}`
1588
+ }, [
1589
+ g("rect", {
1590
+ x: i.value.left + i.value.width / b.value * s,
1591
+ y: i.value.top,
1592
+ height: i.value.height < 0 ? 10 : i.value.height,
1593
+ width: i.value.width / b.value < 0 ? 1e-5 : i.value.width / b.value,
1594
+ fill: [O.value, _.value, Ue.value].includes(s) ? v($e)(l.value.chart.highlighter.color, l.value.chart.highlighter.opacity) : "transparent"
1595
+ }, null, 8, Uo)
1596
+ ]))), 128))
1597
+ ])) : d("", !0),
1598
+ Re.value.length ? (u(!0), r(h, { key: 1 }, y(Re.value, (e, s) => (u(), r("g", {
1599
+ key: `serie_bar_${s}`,
1600
+ class: Ke(`serie_bar_${s}`),
1601
+ style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1602
+ }, [
1603
+ (u(!0), r(h, null, y(e.plots, (t, n) => (u(), r("g", {
1604
+ key: `bar_plot_${s}_${n}`
1605
+ }, [
1606
+ xe(t.value) ? (u(), r("rect", {
1607
+ key: 0,
1608
+ x: Al(t),
1609
+ y: f.value.useIndividualScale ? Ma(t) : Aa(t),
1610
+ height: f.value.useIndividualScale ? Math.abs(La(t)) : Math.abs($a(t)),
1611
+ width: we() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Pe.value) < 0 ? 1e-5 : we() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Pe.value),
1612
+ rx: l.value.bar.borderRadius,
1613
+ fill: l.value.bar.useGradient ? t.value >= 0 ? `url(#rectGradient_pos_${s}_${q.value})` : `url(#rectGradient_neg_${s}_${q.value})` : e.color,
1614
+ stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
1615
+ "stroke-width": l.value.bar.border.strokeWidth,
1616
+ style: C(`${v(Dl) ? "transition:none !important" : ""}`)
1617
+ }, null, 12, qo)) : d("", !0),
1618
+ xe(t.value) && a.$slots.pattern ? (u(), r("rect", {
1619
+ key: 1,
1620
+ x: Al(t),
1621
+ y: f.value.useIndividualScale ? Ma(t) : Aa(t),
1622
+ height: f.value.useIndividualScale ? Math.abs(La(t)) : Math.abs($a(t)),
1623
+ width: we() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Pe.value) < 0 ? 1e-5 : we() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Pe.value),
1624
+ rx: l.value.bar.borderRadius,
1625
+ fill: `url(#pattern_${q.value}_${e.slotAbsoluteIndex})`,
1626
+ stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
1627
+ "stroke-width": l.value.bar.border.strokeWidth
1628
+ }, null, 8, Zo)) : d("", !0),
1629
+ t.comment && l.value.chart.comments.show ? (u(), r("foreignObject", {
1630
+ key: 2,
1631
+ style: { overflow: "visible" },
1632
+ height: "12",
1633
+ width: (we() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Pe.value) < 0 ? 1e-5 : we() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Pe.value) / 2) + l.value.chart.comments.width,
1634
+ x: Al(t) - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
1635
+ y: v(T)(t.y) + l.value.chart.comments.offsetY + 6
1636
+ }, [
1637
+ U(a.$slots, "plot-comment", {
1638
+ plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: n }
1639
+ }, void 0, !0)
1640
+ ], 8, Jo)) : d("", !0)
1641
+ ]))), 128)),
1642
+ Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(G)(e.plots).trend) ? (u(), r("g", Ko, [
1643
+ g("defs", null, [
1644
+ g("marker", {
1645
+ id: `bar_arrow_${s}`,
1646
+ markerWidth: 7,
1647
+ markerHeight: 7,
1648
+ refX: "0",
1649
+ refY: 7 / 2,
1650
+ orient: "auto"
1651
+ }, [
1652
+ g("polygon", {
1653
+ points: `0 0, 7 ${7 / 2}, 0 7`,
1654
+ fill: e.color
1655
+ }, null, 8, jo)
1656
+ ], 8, Qo)
1657
+ ]),
1658
+ e.plots.length > 1 ? (u(), r("line", {
1659
+ key: 0,
1660
+ x1: v(G)(e.plots).x1 + we(),
1661
+ x2: v(G)(e.plots).x2 + we(),
1662
+ y1: v(R)(v(G)(e.plots).y1),
1663
+ y2: v(R)(v(G)(e.plots).y2),
1664
+ "stroke-width": 1,
1665
+ stroke: e.color,
1666
+ "stroke-dasharray": 2,
1667
+ "marker-end": `url(#bar_arrow_${s})`
1668
+ }, null, 8, es)) : d("", !0),
1669
+ e.plots.length > 1 ? (u(), r("text", {
1670
+ key: 1,
1671
+ "text-anchor": "middle",
1672
+ x: v(G)(e.plots).x2 + we(),
1673
+ y: v(G)(e.plots).y2 - 6,
1674
+ "font-size": x.value.plotLabels,
1675
+ fill: e.color
1676
+ }, ae(v(ye)({
1677
+ v: v(G)(e.plots).trend * 100,
1678
+ s: "%",
1679
+ r: 2
1680
+ })), 9, ls)) : d("", !0)
1681
+ ])) : d("", !0)
1682
+ ], 6))), 128)) : d("", !0),
1683
+ !f.value.useIndividualScale && l.value.chart.grid.labels.zeroLine.show ? (u(), r("line", {
1684
+ key: 2,
1685
+ stroke: l.value.chart.grid.stroke,
1686
+ "stroke-width": "1",
1687
+ x1: i.value.left + Y.value,
1688
+ x2: i.value.right - Y.value,
1689
+ y1: v(R)(re.value),
1690
+ y2: v(R)(re.value),
1691
+ "stroke-linecap": "round",
1692
+ style: { animation: "none !important" }
1693
+ }, null, 8, as)) : d("", !0),
1694
+ l.value.chart.highlighter.useLine && (![null, void 0].includes(_.value) || ![null, void 0].includes(O.value)) ? (u(), r("g", ts, [
1695
+ g("line", {
1696
+ x1: i.value.left + i.value.width / b.value * ((_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)) + i.value.width / b.value / 2,
1697
+ x2: i.value.left + i.value.width / b.value * ((_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)) + i.value.width / b.value / 2,
1698
+ y1: v(R)(i.value.top),
1699
+ y2: v(R)(i.value.bottom),
1700
+ stroke: l.value.chart.highlighter.color,
1701
+ "stroke-width": l.value.chart.highlighter.lineWidth,
1702
+ "stroke-dasharray": l.value.chart.highlighter.lineDasharray,
1703
+ "stroke-linecap": "round",
1704
+ style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
1705
+ }, null, 8, os)
1706
+ ])) : d("", !0),
1707
+ l.value.chart.grid.frame.show ? (u(), r("rect", {
1708
+ key: 4,
1709
+ style: { pointerEvents: "none", transition: "none", animation: "none !important" },
1710
+ x: i.value.left + Y.value < 0 ? 0 : i.value.left + Y.value,
1711
+ y: i.value.top,
1712
+ width: i.value.width - (l.value.chart.grid.position === "middle" ? 0 : i.value.width / b.value) < 0 ? 0 : i.value.width - (l.value.chart.grid.position === "middle" ? 0 : i.value.width / b.value),
1713
+ height: i.value.height < 0 ? 0 : i.value.height,
1714
+ fill: "transparent",
1715
+ stroke: l.value.chart.grid.frame.stroke,
1716
+ "stroke-width": l.value.chart.grid.frame.strokeWidth,
1717
+ "stroke-linecap": l.value.chart.grid.frame.strokeLinecap,
1718
+ "stroke-linejoin": l.value.chart.grid.frame.strokeLinejoin,
1719
+ "stroke-dasharray": l.value.chart.grid.frame.strokeDasharray
1720
+ }, null, 8, ss)) : d("", !0),
1721
+ l.value.chart.grid.labels.show ? (u(), r("g", us, [
1722
+ f.value.useIndividualScale ? (u(), r(h, { key: 0 }, [
1723
+ (u(!0), r(h, null, y(gl.value, (e) => (u(), r("g", null, [
1724
+ g("line", {
1725
+ x1: e.x + Y.value,
1726
+ x2: e.x + Y.value,
1727
+ y1: f.value.isStacked ? v(R)(i.value.bottom - e.yOffset - e.individualHeight) : v(R)(i.value.top),
1728
+ y2: f.value.isStacked ? v(R)(i.value.bottom - e.yOffset) : v(R)(i.value.bottom),
1729
+ stroke: e.color,
1730
+ "stroke-width": l.value.chart.grid.stroke,
1731
+ "stroke-linecap": "round",
1732
+ style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
1733
+ }, null, 12, rs)
1734
+ ]))), 256)),
1735
+ (u(!0), r(h, null, y(gl.value, (e) => (u(), r("g", {
1736
+ style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
1737
+ }, [
1738
+ g("text", {
1739
+ fill: e.color,
1740
+ "font-size": x.value.dataLabels,
1741
+ "text-anchor": "middle",
1742
+ transform: `translate(${e.x - l.value.chart.grid.labels.yAxis.labelWidth + 5 + Y.value + l.value.chart.grid.labels.yAxis.scaleLabelOffsetX}, ${f.value.isStacked ? i.value.bottom - e.yOffset - e.individualHeight / 2 : i.value.top + i.value.height / 2}) rotate(-90)`
1743
+ }, ae(e.name) + " " + ae(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `- ${e.scaleLabel}` : ""), 9, is),
1744
+ (u(!0), r(h, null, y(e.yLabels, (s, t) => (u(), r(h, null, [
1745
+ l.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), r("line", {
1746
+ key: 0,
1747
+ x1: e.x + 3 + Y.value - l.value.chart.grid.labels.yAxis.crosshairSize,
1748
+ x2: e.x + Y.value,
1749
+ y1: v(R)(s.y),
1750
+ y2: v(R)(s.y),
1751
+ stroke: e.color,
1752
+ "stroke-width": 1,
1753
+ "stroke-linecap": "round",
1754
+ style: { animation: "none !important" }
1755
+ }, null, 8, ns)) : d("", !0)
1756
+ ], 64))), 256)),
1757
+ (u(!0), r(h, null, y(e.yLabels, (s, t) => (u(), r("text", {
1758
+ x: X.value ? e.x - x.value.dataLabels / 2 + Y.value + l.value.chart.grid.labels.yAxis.scaleValueOffsetX : e.x - 5 + Y.value + l.value.chart.grid.labels.yAxis.scaleValueOffsetX,
1759
+ y: v(R)(s.y) + x.value.dataLabels / 3,
1760
+ "font-size": x.value.dataLabels,
1761
+ "text-anchor": "end",
1762
+ fill: e.color
1763
+ }, ae(v(ce)(
1764
+ l.value.chart.grid.labels.yAxis.formatter,
1765
+ s.value,
1766
+ v(ye)({
1767
+ p: s.prefix,
1768
+ v: s.value,
1769
+ s: s.suffix,
1770
+ r: 1
1771
+ }),
1772
+ { datapoint: s.datapoint, seriesIndex: t }
1773
+ )), 9, cs))), 256))
1774
+ ], 4))), 256))
1775
+ ], 64)) : (u(!0), r(h, { key: 1 }, y(Ia.value, (e, s) => (u(), r("g", {
1776
+ key: `yLabel_${s}`
1777
+ }, [
1778
+ xe(e) && e.value >= ke.value.min && e.value <= ke.value.max && l.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), r("line", {
1779
+ key: 0,
1780
+ x1: i.value.left + Y.value,
1781
+ x2: i.value.left - l.value.chart.grid.labels.yAxis.crosshairSize + Y.value,
1782
+ y1: v(R)(e.y),
1783
+ y2: v(R)(e.y),
1784
+ stroke: l.value.chart.grid.stroke,
1785
+ "stroke-width": "1",
1786
+ "stroke-linecap": "round",
1787
+ style: { animation: "none !important" }
1788
+ }, null, 8, vs)) : d("", !0),
1789
+ e.value >= ke.value.min && e.value <= ke.value.max ? (u(), r("text", {
1790
+ key: 1,
1791
+ x: i.value.left - 7 + Y.value,
1792
+ y: v(T)(e.y + x.value.dataLabels / 3),
1793
+ "font-size": x.value.dataLabels,
1794
+ "text-anchor": "end",
1795
+ fill: l.value.chart.grid.labels.color
1796
+ }, ae(xe(e.value) ? v(ce)(
1797
+ l.value.chart.grid.labels.yAxis.formatter,
1798
+ e.value,
1799
+ v(ye)({
1800
+ p: e.prefix,
1801
+ v: e.value,
1802
+ s: e.suffix,
1803
+ r: 1
1804
+ })
1805
+ ) : ""), 9, ds)) : d("", !0)
1806
+ ]))), 128))
1807
+ ], 512)) : d("", !0),
1808
+ (u(!0), r(h, null, y(ze.value, (e, s) => (u(), r("g", {
1809
+ key: `serie_plot_${s}`,
1810
+ class: Ke(`serie_plot_${s}`),
1811
+ style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1812
+ }, [
1813
+ (u(!0), r(h, null, y(e.plots, (t, n) => (u(), r("g", {
1814
+ key: `circle_plot_${s}_${n}`
1815
+ }, [
1816
+ t && xe(t.value) ? (u(), Ie(Ol, {
1817
+ key: 0,
1818
+ shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
1819
+ color: l.value.plot.useGradient ? `url(#plotGradient_${s}_${q.value})` : l.value.plot.dot.useSerieColor ? e.color : l.value.plot.dot.fill,
1820
+ plot: { x: v(T)(t.x), y: v(T)(t.y) },
1821
+ radius: _.value !== null && _.value === n || O.value !== null && O.value === n ? (Ae.value.plot || 6) * 1.5 : Ae.value.plot || 6,
1822
+ stroke: l.value.plot.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
1823
+ strokeWidth: l.value.plot.dot.strokeWidth
1824
+ }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : d("", !0),
1825
+ t.comment && l.value.chart.comments.show ? (u(), r("foreignObject", {
1826
+ key: 1,
1827
+ style: { overflow: "visible" },
1828
+ height: "12",
1829
+ width: l.value.chart.comments.width,
1830
+ x: t.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
1831
+ y: t.y + l.value.chart.comments.offsetY + 6
1832
+ }, [
1833
+ g("div", fs, [
1834
+ U(a.$slots, "plot-comment", {
1835
+ plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: n }
1836
+ }, void 0, !0)
1837
+ ])
1838
+ ], 8, hs)) : d("", !0)
1839
+ ]))), 128)),
1840
+ Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(G)(e.plots).trend) ? (u(), r("g", gs, [
1841
+ g("defs", null, [
1842
+ g("marker", {
1843
+ id: `plot_arrow_${s}`,
1844
+ markerWidth: 7,
1845
+ markerHeight: 7,
1846
+ refX: "0",
1847
+ refY: 7 / 2,
1848
+ orient: "auto"
1849
+ }, [
1850
+ g("polygon", {
1851
+ points: `0 0, 7 ${7 / 2}, 0 7`,
1852
+ fill: e.color
1853
+ }, null, 8, bs)
1854
+ ], 8, xs)
1855
+ ]),
1856
+ e.plots.length > 1 ? (u(), r("line", {
1857
+ key: 0,
1858
+ x1: v(G)(e.plots).x1,
1859
+ x2: v(G)(e.plots).x2,
1860
+ y1: v(R)(v(G)(e.plots).y1),
1861
+ y2: v(R)(v(G)(e.plots).y2),
1862
+ "stroke-width": 1,
1863
+ stroke: e.color,
1864
+ "stroke-dasharray": 2,
1865
+ "marker-end": `url(#plot_arrow_${s})`
1866
+ }, null, 8, ms)) : d("", !0),
1867
+ e.plots.length > 1 ? (u(), r("text", {
1868
+ key: 1,
1869
+ "text-anchor": "middle",
1870
+ x: v(G)(e.plots).x2,
1871
+ y: v(G)(e.plots).y2 - 6,
1872
+ "font-size": x.value.plotLabels,
1873
+ fill: e.color
1874
+ }, ae(v(ye)({
1875
+ v: v(G)(e.plots).trend * 100,
1876
+ s: "%",
1877
+ r: 2
1878
+ })), 9, ys)) : d("", !0)
1879
+ ])) : d("", !0)
1880
+ ], 6))), 128)),
1881
+ (u(!0), r(h, null, y(Se.value, (e, s) => (u(), r("g", {
1882
+ key: `serie_line_${s}`,
1883
+ class: Ke(`serie_line_${s}`),
1884
+ style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1885
+ }, [
1886
+ e.smooth && e.plots.length > 1 && e.curve ? (u(), r("path", {
1887
+ key: 0,
1888
+ d: `M${e.curve}`,
1889
+ stroke: l.value.chart.backgroundColor,
1890
+ "stroke-width": l.value.line.strokeWidth + 1,
1891
+ "stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
1892
+ fill: "none"
1893
+ }, null, 8, ps)) : e.plots.length > 1 && e.straight ? (u(), r("path", {
1894
+ key: 1,
1895
+ d: `M${e.straight}`,
1896
+ stroke: l.value.chart.backgroundColor,
1897
+ "stroke-width": l.value.line.strokeWidth + 1,
1898
+ "stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
1899
+ fill: "none",
1900
+ "stroke-linecap": "round",
1901
+ "stroke-linejoin": "round"
1902
+ }, null, 8, ks)) : d("", !0)
1903
+ ], 6))), 128)),
1904
+ a.$slots.pattern ? (u(), r("defs", _s, [
1905
+ (u(!0), r(h, null, y(Ve.value, (e, s) => U(a.$slots, "pattern", aa({
1906
+ key: `serie_pattern_slot_${s}`
1907
+ }, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${q.value}_${s}` }), void 0, !0)), 128))
1908
+ ])) : d("", !0),
1909
+ (u(!0), r(h, null, y(Se.value, (e, s) => (u(), r("g", {
1910
+ key: `serie_line_${s}`,
1911
+ class: Ke(`serie_line_${s}`),
1912
+ style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1913
+ }, [
1914
+ e.useArea && e.plots.length > 1 ? (u(), r("g", ws, [
1915
+ e.smooth ? (u(!0), r(h, { key: 0 }, y(e.curveAreas, (t, n) => (u(), r(h, { key: n }, [
1916
+ g("path", {
1917
+ d: t,
1918
+ fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${q.value})` : v($e)(e.color, l.value.line.area.opacity)
1919
+ }, null, 8, Ss),
1920
+ a.$slots.pattern ? (u(), r("path", {
1921
+ key: 0,
1922
+ d: t,
1923
+ fill: `url(#pattern_${q.value}_${e.slotAbsoluteIndex})`
1924
+ }, null, 8, $s)) : d("", !0)
1925
+ ], 64))), 128)) : (u(!0), r(h, { key: 1 }, y(e.area.split(";"), (t, n) => (u(), r(h, { key: n }, [
1926
+ g("path", {
1927
+ d: `M${t}Z`,
1928
+ fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${q.value})` : v($e)(e.color, l.value.line.area.opacity)
1929
+ }, null, 8, Ls),
1930
+ a.$slots.pattern ? (u(), r("path", {
1931
+ key: 0,
1932
+ d: `M${t}Z`,
1933
+ fill: `url(#pattern_${q.value}_${e.slotAbsoluteIndex})`
1934
+ }, null, 8, As)) : d("", !0)
1935
+ ], 64))), 128))
1936
+ ])) : d("", !0),
1937
+ e.smooth && e.plots.length > 1 && e.curve ? (u(), r("path", {
1938
+ key: 1,
1939
+ d: `M${e.curve}`,
1940
+ stroke: e.color,
1941
+ "stroke-width": l.value.line.strokeWidth,
1942
+ "stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
1943
+ fill: "none",
1944
+ "stroke-linecap": "round"
1945
+ }, null, 8, Ms)) : e.plots.length > 1 && e.straight ? (u(), r("path", {
1946
+ key: 2,
1947
+ d: `M${e.straight}`,
1948
+ stroke: e.color,
1949
+ "stroke-width": l.value.line.strokeWidth,
1950
+ "stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
1951
+ fill: "none",
1952
+ "stroke-linecap": "round",
1953
+ "stroke-linejoin": "round"
1954
+ }, null, 8, zs)) : d("", !0),
1955
+ (u(!0), r(h, null, y(e.plots, (t, n) => (u(), r(h, {
1956
+ key: `circle_line_${s}_${n}`
1957
+ }, [
1958
+ !Ca.value.linePlot && t && xe(t.value) || Ca.value.linePlot && t && xe(t.value) && (_.value !== null && _.value === n || O.value !== null && O.value === n) ? (u(), Ie(Ol, {
1959
+ key: 0,
1960
+ shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
1961
+ color: l.value.line.useGradient ? `url(#lineGradient_${s}_${q.value})` : l.value.line.dot.useSerieColor ? e.color : l.value.line.dot.fill,
1962
+ plot: { x: v(T)(t.x), y: v(T)(t.y) },
1963
+ radius: _.value !== null && _.value === n || O.value !== null && O.value === n ? (Ae.value.line || 6) * 1.5 : Ae.value.line || 6,
1964
+ stroke: l.value.line.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
1965
+ strokeWidth: l.value.line.dot.strokeWidth
1966
+ }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : d("", !0),
1967
+ t.comment && l.value.chart.comments.show ? (u(), r("foreignObject", {
1968
+ key: 1,
1969
+ style: { overflow: "visible" },
1970
+ height: "12",
1971
+ width: l.value.chart.comments.width,
1972
+ x: t.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
1973
+ y: t.y + l.value.chart.comments.offsetY + 6
1974
+ }, [
1975
+ g("div", Is, [
1976
+ U(a.$slots, "plot-comment", {
1977
+ plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: n }
1978
+ }, void 0, !0)
1979
+ ])
1980
+ ], 8, Cs)) : d("", !0)
1981
+ ], 64))), 128)),
1982
+ Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(G)(e.plots).trend) ? (u(), r("g", Ts, [
1983
+ g("defs", null, [
1984
+ g("marker", {
1985
+ id: `line_arrow_${s}`,
1986
+ markerWidth: 7,
1987
+ markerHeight: 7,
1988
+ refX: "0",
1989
+ refY: 7 / 2,
1990
+ orient: "auto"
1991
+ }, [
1992
+ g("polygon", {
1993
+ points: `0 0, 7 ${7 / 2}, 0 7`,
1994
+ fill: e.color
1995
+ }, null, 8, Ns)
1996
+ ], 8, Os)
1997
+ ]),
1998
+ e.plots.length > 1 ? (u(), r("line", {
1999
+ key: 0,
2000
+ x1: v(G)(e.plots).x1,
2001
+ x2: v(G)(e.plots).x2,
2002
+ y1: v(R)(v(G)(e.plots).y1),
2003
+ y2: v(R)(v(G)(e.plots).y2),
2004
+ "stroke-width": 1,
2005
+ stroke: e.color,
2006
+ "stroke-dasharray": 2,
2007
+ "marker-end": `url(#line_arrow_${s})`
2008
+ }, null, 8, Vs)) : d("", !0),
2009
+ e.plots.length > 1 ? (u(), r("text", {
2010
+ key: 1,
2011
+ "text-anchor": "middle",
2012
+ x: v(G)(e.plots).x2,
2013
+ y: v(G)(e.plots).y2 - 6,
2014
+ "font-size": x.value.plotLabels,
2015
+ fill: e.color
2016
+ }, ae(v(ye)({
2017
+ v: v(G)(e.plots).trend * 100,
2018
+ s: "%",
2019
+ r: 2
2020
+ })), 9, Ps)) : d("", !0)
2021
+ ])) : d("", !0)
2022
+ ], 6))), 128)),
2023
+ (l.value.bar.labels.show || l.value.bar.serieName.show) && f.value.dataLabels.show ? (u(), r("g", Hs, [
2024
+ (u(!0), r(h, null, y(Re.value, (e, s) => (u(), r(h, {
2025
+ key: `xLabel_bar_${s}`
2026
+ }, [
2027
+ (u(!0), r(h, null, y(e.plots, (t, n) => (u(), r(h, {
2028
+ key: `xLabel_bar_${s}_${n}`
2029
+ }, [
2030
+ t && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === n || O.value !== null && O.value === n) && l.value.bar.labels.show ? (u(), r("text", {
2031
+ key: 0,
2032
+ x: f.value.useIndividualScale && f.value.isStacked ? t.x + J.value.line / 2 : Al(t) + we() / 2 - Pe.value / 2,
2033
+ y: v(T)(t.y) + (t.value >= 0 ? l.value.bar.labels.offsetY : -l.value.bar.labels.offsetY * 3),
2034
+ "text-anchor": "middle",
2035
+ "font-size": x.value.plotLabels,
2036
+ fill: l.value.bar.labels.color,
2037
+ style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2038
+ }, ae(xe(t.value) ? v(ce)(
2039
+ l.value.bar.labels.formatter,
2040
+ t.value,
2041
+ v(ye)({
2042
+ p: e.prefix || l.value.chart.labels.prefix,
2043
+ v: t.value,
2044
+ s: e.suffix || l.value.chart.labels.suffix,
2045
+ r: l.value.bar.labels.rounding
2046
+ }),
2047
+ {
2048
+ datapoint: t,
2049
+ serie: e
2050
+ }
2051
+ ) : ""), 13, Rs)) : d("", !0),
2052
+ t && l.value.bar.serieName.show ? (u(), r("text", {
2053
+ key: 1,
2054
+ x: f.value.useIndividualScale && f.value.isStacked ? t.x + J.value.line / 2 : t.x + we() * 1.1,
2055
+ y: t.y + (t.value > 0 ? l.value.bar.serieName.offsetY : -l.value.bar.serieName.offsetY * 3),
2056
+ "text-anchor": "middle",
2057
+ "font-size": x.value.plotLabels,
2058
+ fill: l.value.bar.serieName.useSerieColor ? e.color : l.value.bar.serieName.color,
2059
+ "font-weight": l.value.bar.serieName.bold ? "bold" : "normal",
2060
+ style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2061
+ }, ae(l.value.bar.serieName.useAbbreviation ? v(Kt)({ source: e.name, length: l.value.bar.serieName.abbreviationSize }) : e.name), 13, Bs)) : d("", !0)
2062
+ ], 64))), 128))
2063
+ ], 64))), 128))
2064
+ ])) : d("", !0),
2065
+ l.value.plot.labels.show && f.value.dataLabels.show ? (u(), r("g", Ys, [
2066
+ (u(!0), r(h, null, y(ze.value, (e, s) => (u(), r(h, {
2067
+ key: `xLabel_plot_${s}`
2068
+ }, [
2069
+ (u(!0), r(h, null, y(e.plots, (t, n) => (u(), r(h, {
2070
+ key: `xLabel_plot_${s}_${n}`
2071
+ }, [
2072
+ t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === n || O.value !== null && O.value === n ? (u(), r("text", {
2073
+ key: 0,
2074
+ x: t.x,
2075
+ y: t.y + l.value.plot.labels.offsetY,
2076
+ "text-anchor": "middle",
2077
+ "font-size": x.value.plotLabels,
2078
+ fill: l.value.plot.labels.color,
2079
+ style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2080
+ }, ae(xe(t.value) ? v(ce)(
2081
+ l.value.plot.labels.formatter,
2082
+ t.value,
2083
+ v(ye)({
2084
+ p: e.prefix || l.value.chart.labels.prefix,
2085
+ v: t.value,
2086
+ s: e.suffix || l.value.chart.labels.suffix,
2087
+ r: l.value.plot.labels.rounding
2088
+ }),
2089
+ {
2090
+ datapoint: t,
2091
+ serie: e
2092
+ }
2093
+ ) : ""), 13, Fs)) : d("", !0)
2094
+ ], 64))), 128))
2095
+ ], 64))), 128))
2096
+ ])) : (u(), r("g", Es, [
2097
+ (u(!0), r(h, null, y(ze.value, (e, s) => (u(), r(h, {
2098
+ key: `xLabel_plot_${s}`
2099
+ }, [
2100
+ (u(!0), r(h, null, y(e.plots, (t, n) => (u(), r(h, {
2101
+ key: `xLabel_plot_${s}_${n}`
2102
+ }, [
2103
+ l.value.plot.tag.followValue ? (u(), r(h, { key: 1 }, [
2104
+ [O.value, _.value, Ue.value].includes(n) && e.useTag ? (u(), r("line", {
2105
+ key: 0,
2106
+ class: "vue-ui-xy-tag-plot",
2107
+ x1: i.value.left,
2108
+ x2: i.value.right,
2109
+ y1: t.y,
2110
+ y2: t.y,
2111
+ "stroke-width": 1,
2112
+ "stroke-linecap": "round",
2113
+ "stroke-dasharray": "2",
2114
+ stroke: e.color
2115
+ }, null, 8, Us)) : d("", !0)
2116
+ ], 64)) : (u(), r(h, { key: 0 }, [
2117
+ t && n === 0 && e.useTag && e.useTag === "start" ? (u(), r("foreignObject", {
2118
+ key: 0,
2119
+ x: t.x,
2120
+ y: t.y - 20,
2121
+ height: 24,
2122
+ width: "150",
2123
+ style: C(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2124
+ }, [
2125
+ g("div", {
2126
+ style: C(`padding: 3px; background:${v($e)(e.color, 80)};color:${v(We)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
2127
+ innerHTML: v(ce)(
2128
+ l.value.plot.tag.formatter,
2129
+ t.value,
2130
+ e.name,
2131
+ {
2132
+ datapoint: t,
2133
+ seriesIndex: n,
2134
+ serieName: e.name
2135
+ }
2136
+ )
2137
+ }, null, 12, Gs)
2138
+ ], 12, Ws)) : d("", !0),
2139
+ t && n === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (u(), r("foreignObject", {
2140
+ key: 1,
2141
+ x: t.x - e.name.length * (x.value.plotLabels / 2),
2142
+ y: t.y - 20,
2143
+ height: 24,
2144
+ width: "150",
2145
+ style: C(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2146
+ }, [
2147
+ g("div", {
2148
+ style: C(`padding: 3px; background:${v($e)(e.color, 80)};color:${v(We)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
2149
+ innerHTML: v(ce)(
2150
+ l.value.plot.tag.formatter,
2151
+ t.value,
2152
+ e.name,
2153
+ {
2154
+ datapoint: t,
2155
+ seriesIndex: n,
2156
+ serieName: e.name
2157
+ }
2158
+ )
2159
+ }, null, 12, Ds)
2160
+ ], 12, Xs)) : d("", !0)
2161
+ ], 64))
2162
+ ], 64))), 128))
2163
+ ], 64))), 128))
2164
+ ])),
2165
+ l.value.line.labels.show && f.value.dataLabels.show ? (u(), r("g", qs, [
2166
+ (u(!0), r(h, null, y(Se.value, (e, s) => (u(), r(h, {
2167
+ key: `xLabel_line_${s}`
2168
+ }, [
2169
+ (u(!0), r(h, null, y(e.plots, (t, n) => (u(), r(h, {
2170
+ key: `xLabel_line_${s}_${n}`
2171
+ }, [
2172
+ t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === n || O.value !== null && O.value === n ? (u(), r("text", {
2173
+ key: 0,
2174
+ x: t.x,
2175
+ y: t.y + (t.value >= 0 ? l.value.line.labels.offsetY : -l.value.line.labels.offsetY * 3),
2176
+ "text-anchor": "middle",
2177
+ "font-size": x.value.plotLabels,
2178
+ fill: l.value.line.labels.color,
2179
+ style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2180
+ }, ae(xe(t.value) ? v(ce)(
2181
+ l.value.line.labels.formatter,
2182
+ t.value,
2183
+ v(ye)({
2184
+ p: e.prefix || l.value.chart.labels.prefix,
2185
+ v: t.value,
2186
+ s: e.suffix || l.value.chart.labels.suffix,
2187
+ r: l.value.line.labels.rounding
2188
+ }),
2189
+ {
2190
+ datapoint: t,
2191
+ serie: e
2192
+ }
2193
+ ) : ""), 13, Zs)) : d("", !0)
2194
+ ], 64))), 128))
2195
+ ], 64))), 128))
2196
+ ])) : (u(), r("g", Js, [
2197
+ (u(!0), r(h, null, y(Se.value, (e, s) => (u(), r(h, {
2198
+ key: `xLabel_line_${s}`
2199
+ }, [
2200
+ (u(!0), r(h, null, y(e.plots, (t, n) => (u(), r(h, {
2201
+ key: `xLabel_line_${s}_${n}`
2202
+ }, [
2203
+ l.value.line.tag.followValue ? (u(), r(h, { key: 1 }, [
2204
+ [O.value, _.value, Ue.value].includes(n) && e.useTag ? (u(), r("line", {
2205
+ key: 0,
2206
+ class: "vue-ui-xy-tag-line",
2207
+ x1: i.value.left,
2208
+ x2: i.value.right,
2209
+ y1: t.y,
2210
+ y2: t.y,
2211
+ "stroke-width": 1,
2212
+ "stroke-linecap": "round",
2213
+ "stroke-dasharray": "2",
2214
+ stroke: e.color
2215
+ }, null, 8, lu)) : d("", !0)
2216
+ ], 64)) : (u(), r(h, { key: 0 }, [
2217
+ t && n === 0 && e.useTag && e.useTag === "start" ? (u(), r("foreignObject", {
2218
+ key: 0,
2219
+ x: t.x,
2220
+ y: t.y - 20,
2221
+ height: 24,
2222
+ width: "150",
2223
+ style: C(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2224
+ }, [
2225
+ g("div", {
2226
+ style: C(`padding: 3px; background:${v($e)(e.color, 80)};color:${v(We)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
2227
+ innerHTML: v(ce)(
2228
+ l.value.line.tag.formatter,
2229
+ t.value,
2230
+ e.name,
2231
+ {
2232
+ datapoint: t,
2233
+ seriesIndex: n,
2234
+ serieName: e.name
2235
+ }
2236
+ )
2237
+ }, null, 12, Qs)
2238
+ ], 12, Ks)) : d("", !0),
2239
+ t && n === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (u(), r("foreignObject", {
2240
+ key: 1,
2241
+ x: t.x,
2242
+ y: t.y - 20,
2243
+ height: 24,
2244
+ width: "150",
2245
+ style: C(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2246
+ }, [
2247
+ g("div", {
2248
+ style: C(`padding: 3px; background:${v($e)(e.color, 80)};color:${v(We)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
2249
+ innerHTML: v(ce)(
2250
+ l.value.line.tag.formatter,
2251
+ t.value,
2252
+ e.name,
2253
+ {
2254
+ datapoint: t,
2255
+ seriesIndex: n,
2256
+ serieName: e.name
2257
+ }
2258
+ )
2259
+ }, null, 12, eu)
2260
+ ], 12, js)) : d("", !0)
2261
+ ], 64))
2262
+ ], 64))), 128))
2263
+ ], 64))), 128))
2264
+ ])),
2265
+ (u(!0), r(h, null, y(Se.value, (e, s) => (u(), r(h, {
2266
+ key: `xLabel_line_${s}`
2267
+ }, [
2268
+ (u(!0), r(h, null, y(e.plots, (t, n) => (u(), r(h, {
2269
+ key: `xLabel_line_${s}_${n}`
2270
+ }, [
2271
+ t && n === 0 && e.showSerieName && e.showSerieName === "start" ? (u(), r("text", {
2272
+ key: 0,
2273
+ x: t.x - x.value.plotLabels,
2274
+ y: t.y,
2275
+ "font-size": x.value.plotLabels,
2276
+ "text-anchor": "end",
2277
+ fill: e.color,
2278
+ innerHTML: v(Tl)({
2279
+ content: e.name,
2280
+ fontSize: x.value.plotLabels,
2281
+ fill: e.color,
2282
+ x: t.x - x.value.plotLabels,
2283
+ y: t.y,
2284
+ maxWords: 2
2285
+ }),
2286
+ style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2287
+ }, null, 12, au)) : d("", !0),
2288
+ t && n === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), r("text", {
2289
+ key: 1,
2290
+ x: t.x + x.value.plotLabels,
2291
+ y: t.y,
2292
+ "font-size": x.value.plotLabels,
2293
+ "text-anchor": "start",
2294
+ fill: e.color,
2295
+ innerHTML: v(Tl)({
2296
+ content: e.name,
2297
+ fontSize: x.value.plotLabels,
2298
+ fill: e.color,
2299
+ x: t.x + x.value.plotLabels,
2300
+ y: t.y,
2301
+ maxWords: 2
2302
+ }),
2303
+ style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2304
+ }, null, 12, tu)) : d("", !0)
2305
+ ], 64))), 128))
2306
+ ], 64))), 128)),
2307
+ (u(!0), r(h, null, y(ze.value, (e, s) => (u(), r(h, {
2308
+ key: `xLabel_plot_${s}`
2309
+ }, [
2310
+ (u(!0), r(h, null, y(e.plots, (t, n) => (u(), r(h, {
2311
+ key: `xLabel_plot_${s}_${n}`
2312
+ }, [
2313
+ t && n === 0 && e.showSerieName && e.showSerieName === "start" ? (u(), r("text", {
2314
+ key: 0,
2315
+ x: t.x - x.value.plotLabels,
2316
+ y: t.y,
2317
+ "font-size": x.value.plotLabels,
2318
+ "text-anchor": "end",
2319
+ fill: e.color,
2320
+ innerHTML: v(Tl)({
2321
+ content: e.name,
2322
+ fontSize: x.value.plotLabels,
2323
+ fill: e.color,
2324
+ x: t.x - x.value.plotLabels,
2325
+ y: t.y,
2326
+ maxWords: 2
2327
+ }),
2328
+ style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2329
+ }, null, 12, ou)) : d("", !0),
2330
+ t && n === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), r("text", {
2331
+ key: 1,
2332
+ x: t.x + x.value.plotLabels,
2333
+ y: t.y,
2334
+ "font-size": x.value.plotLabels,
2335
+ "text-anchor": "start",
2336
+ fill: e.color,
2337
+ innerHTML: v(Tl)({
2338
+ content: e.name,
2339
+ fontSize: x.value.plotLabels,
2340
+ fill: e.color,
2341
+ x: t.x + x.value.plotLabels,
2342
+ y: t.y,
2343
+ maxWords: 2
2344
+ }),
2345
+ style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2346
+ }, null, 12, su)) : d("", !0)
2347
+ ], 64))), 128))
2348
+ ], 64))), 128)),
2349
+ f.value.useIndividualScale && !f.value.isStacked ? (u(), r(h, { key: 12 }, [
2350
+ g("defs", null, [
2351
+ (u(!0), r(h, null, y(gl.value, (e, s) => (u(), r("linearGradient", {
2352
+ id: `individual_scale_gradient_${q.value}_${s}`,
2353
+ x1: "0%",
2354
+ x2: "100%",
2355
+ y1: "0%",
2356
+ y2: "0%"
2357
+ }, [
2358
+ g("stop", {
2359
+ offset: "0%",
2360
+ "stop-color": l.value.chart.backgroundColor,
2361
+ "stop-opacity": "0"
2362
+ }, null, 8, ru),
2363
+ g("stop", {
2364
+ offset: "100%",
2365
+ "stop-color": e.color,
2366
+ "stop-opacity": "0.2"
2367
+ }, null, 8, iu)
2368
+ ], 8, uu))), 256))
2369
+ ]),
2370
+ (u(!0), r(h, null, y(gl.value, (e, s) => (u(), r("rect", {
2371
+ x: e.x - l.value.chart.grid.labels.yAxis.labelWidth + Y.value,
2372
+ y: i.value.top,
2373
+ width: l.value.chart.grid.labels.yAxis.labelWidth,
2374
+ height: i.value.height < 0 ? 10 : i.value.height,
2375
+ fill: M.value === e.groupId ? `url(#individual_scale_gradient_${q.value}_${s})` : "transparent",
2376
+ onMouseenter: (t) => M.value = e.groupId,
2377
+ onMouseleave: c[0] || (c[0] = (t) => M.value = null)
2378
+ }, null, 40, nu))), 256))
2379
+ ], 64)) : d("", !0),
2380
+ g("g", null, [
2381
+ l.value.chart.grid.labels.axis.yLabel && !f.value.useIndividualScale ? (u(), r("text", {
2382
+ key: 0,
2383
+ ref_key: "yAxisLabel",
2384
+ ref: Rl,
2385
+ "font-size": x.value.yAxis,
2386
+ fill: l.value.chart.grid.labels.color,
2387
+ transform: X.value ? void 0 : `translate(${x.value.yAxis + l.value.chart.grid.labels.axis.yLabelOffsetX}, ${i.value.top + i.value.height / 2}) rotate(-90)`,
2388
+ "text-anchor": "middle",
2389
+ style: { transition: "none" }
2390
+ }, ae(l.value.chart.grid.labels.axis.yLabel), 9, cu)) : d("", !0),
2391
+ l.value.chart.grid.labels.axis.xLabel ? (u(), r("text", {
2392
+ key: 1,
2393
+ ref_key: "xAxisLabel",
2394
+ ref: Hl,
2395
+ "text-anchor": "middle",
2396
+ x: X.value ? ql.value.width / 2 - Math.abs(ql.value.x) : Z.value / 2,
2397
+ y: X.value ? void 0 : i.value.bottom + x.value.yAxis + x.value.xAxis * 1.3 + l.value.chart.grid.labels.axis.xLabelOffsetY,
2398
+ "font-size": x.value.yAxis,
2399
+ fill: l.value.chart.grid.labels.color
2400
+ }, ae(l.value.chart.grid.labels.axis.xLabel), 9, vu)) : d("", !0)
2401
+ ]),
2402
+ l.value.chart.grid.labels.xAxisLabels.show ? (u(), r("g", {
2403
+ key: 13,
2404
+ ref_key: "timeLabelsEls",
2405
+ ref: Bl
2406
+ }, [
2407
+ a.$slots["time-label"] ? (u(!0), r(h, { key: 0 }, y(de.value, (e, s) => U(a.$slots, "time-label", aa({
2408
+ key: `time_label_${s}`,
2409
+ ref_for: !0
2410
+ }, {
2411
+ x: i.value.left + i.value.width / b.value * s + i.value.width / b.value / 2,
2412
+ y: X.value ? i.value.bottom + l.value.chart.grid.labels.xAxisLabels.yOffset : i.value.bottom + x.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset,
2413
+ fontSize: x.value.xAxis,
2414
+ fill: l.value.chart.grid.labels.xAxisLabels.color,
2415
+ transform: X.value ? `translate(${i.value.left + i.value.width / b.value * s + i.value.width / b.value / 2}, ${i.value.bottom + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})` : `translate(${i.value.left + i.value.width / b.value * s + i.value.width / b.value / 2}, ${i.value.bottom + x.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
2416
+ absoluteIndex: e.absoluteIndex,
2417
+ content: e.text,
2418
+ textAnchor: l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2419
+ show: e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= l.value.chart.grid.labels.xAxisLabels.modulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === de.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && _.value === s && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((S.value.end - S.value.start) / l.value.chart.grid.labels.xAxisLabels.modulo) === 0
2420
+ }), void 0, !0)), 128)) : (u(!0), r(h, { key: 1 }, y(de.value, (e, s) => (u(), r("g", {
2421
+ key: `time_label_${s}`
2422
+ }, [
2423
+ e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= l.value.chart.grid.labels.xAxisLabels.modulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === de.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && _.value === s && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((S.value.end - S.value.start) / l.value.chart.grid.labels.xAxisLabels.modulo) === 0 ? (u(), r(h, { key: 0 }, [
2424
+ String(e.text).includes(`
2425
+ `) ? (u(), r("text", {
2426
+ key: 1,
2427
+ "text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2428
+ "font-size": x.value.xAxis,
2429
+ fill: l.value.chart.grid.labels.xAxisLabels.color,
2430
+ transform: X.value ? `translate(${i.value.left + i.value.width / b.value * s + i.value.width / b.value / 2}, ${i.value.bottom + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})` : `translate(${i.value.left + i.value.width / b.value * s + i.value.width / b.value / 2}, ${i.value.bottom + x.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
2431
+ style: C({
2432
+ cursor: ya() ? "pointer" : "default"
2433
+ }),
2434
+ innerHTML: v(Qt)({
2435
+ content: String(e.text),
2436
+ fontSize: x.value.xAxis,
2437
+ fill: l.value.chart.grid.labels.xAxisLabels.color,
2438
+ x: 0,
2439
+ y: 0
2440
+ }),
2441
+ onClick: () => _a(e, s)
2442
+ }, null, 12, hu)) : (u(), r("text", {
2443
+ key: 0,
2444
+ "text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2445
+ "font-size": x.value.xAxis,
2446
+ fill: l.value.chart.grid.labels.xAxisLabels.color,
2447
+ transform: X.value ? `translate(${i.value.left + i.value.width / b.value * s + i.value.width / b.value / 2}, ${i.value.bottom + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})` : `translate(${i.value.left + i.value.width / b.value * s + i.value.width / b.value / 2}, ${i.value.bottom + x.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
2448
+ style: C({
2449
+ cursor: ya() ? "pointer" : "default"
2450
+ }),
2451
+ onClick: () => _a(e, s)
2452
+ }, ae(e.text || ""), 13, du))
2453
+ ], 64)) : d("", !0)
2454
+ ]))), 128))
2455
+ ], 512)) : d("", !0),
2456
+ Ta.value.length && !f.value.isStacked ? (u(), r("g", fu, [
2457
+ (u(!0), r(h, null, y(Ta.value, (e) => (u(), r("g", {
2458
+ key: e.uid
2459
+ }, [
2460
+ e.yTop && e.show && isFinite(e.yTop) ? (u(), r("line", {
2461
+ key: 0,
2462
+ x1: e.x1,
2463
+ y1: e.yTop,
2464
+ x2: e.x2,
2465
+ y2: e.yTop,
2466
+ stroke: e.config.line.stroke,
2467
+ "stroke-width": e.config.line.strokeWidth,
2468
+ "stroke-dasharray": e.config.line.strokeDasharray,
2469
+ "stroke-linecap": "round",
2470
+ style: { animation: "none !important" }
2471
+ }, null, 8, gu)) : d("", !0),
2472
+ e.yBottom && e.show && isFinite(e.yBottom) ? (u(), r("line", {
2473
+ key: 1,
2474
+ x1: e.x1,
2475
+ y1: e.yBottom,
2476
+ x2: e.x2,
2477
+ y2: e.yBottom,
2478
+ stroke: e.config.line.stroke,
2479
+ "stroke-width": e.config.line.strokeWidth,
2480
+ "stroke-dasharray": e.config.line.strokeDasharray,
2481
+ "stroke-linecap": "round",
2482
+ style: { animation: "none !important" }
2483
+ }, null, 8, xu)) : d("", !0),
2484
+ e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (u(), r("rect", {
2485
+ key: 2,
2486
+ y: Math.min(e.yTop, e.yBottom),
2487
+ x: e.x1,
2488
+ width: i.value.width,
2489
+ height: v(T)(e.areaHeight, 0),
2490
+ fill: v($e)(e.config.area.fill, e.config.area.opacity),
2491
+ style: { animation: "none !important" }
2492
+ }, null, 8, bu)) : d("", !0),
2493
+ e.config.label.text && e.show && isFinite(e._box.y) ? (u(), r("rect", aa({
2494
+ key: 3,
2495
+ class: "vue-ui-xy-annotation-label-box"
2496
+ }, { ref_for: !0 }, e._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : d("", !0),
2497
+ e.config.label.text && e.show && isFinite(e._text.y) ? (u(), r("text", {
2498
+ key: 4,
2499
+ id: e.id,
2500
+ class: "vue-ui-xy-annotation-label",
2501
+ x: e._text.x,
2502
+ y: e._text.y,
2503
+ "font-size": e.config.label.fontSize,
2504
+ fill: e.config.label.color,
2505
+ "text-anchor": e.config.label.textAnchor
2506
+ }, ae(e.config.label.text), 9, mu)) : d("", !0)
2507
+ ]))), 128))
2508
+ ])) : d("", !0),
2509
+ Jl.value ? (u(), r("g", yu, [
2510
+ (u(!0), r(h, null, y(b.value, (e, s) => (u(), r("rect", {
2511
+ key: `tooltip_trap_${s}`,
2512
+ x: i.value.left + i.value.width / b.value * s,
2513
+ y: i.value.top,
2514
+ height: i.value.height < 0 ? 10 : i.value.height,
2515
+ width: i.value.width / b.value < 0 ? 1e-5 : i.value.width / b.value,
2516
+ fill: "transparent",
2517
+ onMouseenter: (t) => Va(!0, s),
2518
+ onMouseleave: c[1] || (c[1] = (t) => Va(!1)),
2519
+ onClick: (t) => kt(s)
2520
+ }, null, 40, pu))), 128))
2521
+ ])) : d("", !0),
2522
+ l.value.chart.timeTag.show && (![null, void 0].includes(_.value) || ![null, void 0].includes(O.value)) ? (u(), r("g", ku, [
2523
+ (u(), r("foreignObject", {
2524
+ x: i.value.left + i.value.width / b.value * ((_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)) - 100 + i.value.width / b.value / 2,
2525
+ y: i.value.bottom,
2526
+ width: "200",
2527
+ height: "40",
2528
+ style: { overflow: "visible !important" }
2529
+ }, [
2530
+ g("div", {
2531
+ class: "vue-ui-xy-time-tag",
2532
+ style: C(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${l.value.chart.timeTag.backgroundColor};color:${l.value.chart.timeTag.color};font-size:${l.value.chart.timeTag.fontSize}px`)
2533
+ }, ae(de.value[(_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)].text || (_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)), 5)
2534
+ ], 8, _u)),
2535
+ g("circle", {
2536
+ cx: i.value.left + i.value.width / b.value * ((_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)) + i.value.width / b.value / 2,
2537
+ cy: i.value.bottom,
2538
+ r: l.value.chart.timeTag.circleMarker.radius,
2539
+ fill: l.value.chart.timeTag.circleMarker.color
2540
+ }, null, 8, wu)
2541
+ ])) : d("", !0)
2542
+ ])) : d("", !0),
2543
+ U(a.$slots, "svg", { svg: ct.value }, void 0, !0)
2544
+ ], 512)
2545
+ ], 14, ho)),
2546
+ a.$slots.watermark ? (u(), r("div", Su, [
2547
+ U(a.$slots, "watermark", Qe(je({ isPrinting: v(Ul) || v(ga) })), void 0, !0)
2548
+ ])) : d("", !0),
2549
+ (u(!0), r(h, null, y(Se.value, (e, s) => (u(), r(h, {
2550
+ key: `tag_line_${s}`
2551
+ }, [
2552
+ (u(!0), r(h, null, y(e.plots, (t, n) => (u(), r(h, {
2553
+ key: `tag_line_${s}_${n}`
2554
+ }, [
2555
+ [O.value, _.value, Ue.value].includes(n) && e.useTag && e.useTag === "end" && l.value.line.tag.followValue ? (u(), r("div", {
2556
+ key: 0,
2557
+ ref_for: !0,
2558
+ ref: (o) => Ll(s, n, o, "right", "line"),
2559
+ class: "vue-ui-xy-tag",
2560
+ "data-tag": "right",
2561
+ style: C({
2562
+ position: "fixed",
2563
+ top: v(Ge)({
2564
+ svgElement: pe.value,
2565
+ x: i.value.right + l.value.line.tag.fontSize / 1.5,
2566
+ y: t.y,
2567
+ element: Oe.value[`${s}_${n}_right_line`],
2568
+ position: "right"
2569
+ }).top + "px",
2570
+ left: v(Ge)({
2571
+ svgElement: pe.value,
2572
+ x: i.value.right + l.value.line.tag.fontSize / 1.5,
2573
+ y: t.y,
2574
+ element: Oe.value[`${s}_${n}_right_line`],
2575
+ position: "right"
2576
+ }).left + "px",
2577
+ height: "fit-content",
2578
+ width: "fit-content",
2579
+ background: e.color,
2580
+ color: v(We)(e.color),
2581
+ padding: "0 6px",
2582
+ fontSize: l.value.line.tag.fontSize + "px",
2583
+ opacity: 1
2584
+ })
2585
+ }, [
2586
+ (u(), r("svg", $u, [
2587
+ g("path", {
2588
+ d: "M 0,10 10,0 10,20 Z",
2589
+ fill: e.color,
2590
+ stroke: "none"
2591
+ }, null, 8, Lu)
2592
+ ])),
2593
+ g("div", {
2594
+ class: "vue-ui-xy-tag-content",
2595
+ innerHTML: v(ce)(
2596
+ l.value.line.tag.formatter,
2597
+ t.value,
2598
+ e.name,
2599
+ {
2600
+ datapoint: t,
2601
+ seriesIndex: n,
2602
+ serieName: e.name
2603
+ }
2604
+ )
2605
+ }, null, 8, Au)
2606
+ ], 4)) : d("", !0),
2607
+ [O.value, _.value, Ue.value].includes(n) && e.useTag && e.useTag === "start" && l.value.line.tag.followValue ? (u(), r("div", {
2608
+ key: 1,
2609
+ ref_for: !0,
2610
+ ref: (o) => Ll(s, n, o, "left", "line"),
2611
+ class: "vue-ui-xy-tag",
2612
+ "data-tag": "left",
2613
+ style: C({
2614
+ position: "fixed",
2615
+ top: v(Ge)({
2616
+ svgElement: pe.value,
2617
+ x: i.value.left - l.value.line.tag.fontSize / 1.5,
2618
+ y: t.y,
2619
+ element: Oe.value[`${s}_${n}_left_line`],
2620
+ position: "left"
2621
+ }).top + "px",
2622
+ left: v(Ge)({
2623
+ svgElement: pe.value,
2624
+ x: i.value.left - l.value.line.tag.fontSize / 1.5,
2625
+ y: t.y,
2626
+ element: Oe.value[`${s}_${n}_left_line`],
2627
+ position: "left"
2628
+ }).left + "px",
2629
+ height: "fit-content",
2630
+ width: "fit-content",
2631
+ background: e.color,
2632
+ color: v(We)(e.color),
2633
+ padding: "0 6px",
2634
+ fontSize: l.value.line.tag.fontSize + "px",
2635
+ opacity: 1
2636
+ })
2637
+ }, [
2638
+ (u(), r("svg", Mu, [
2639
+ g("path", {
2640
+ d: "M 0,0 10,10 0,20 Z",
2641
+ fill: e.color,
2642
+ stroke: "none"
2643
+ }, null, 8, zu)
2644
+ ])),
2645
+ g("div", {
2646
+ class: "vue-ui-xy-tag-content",
2647
+ innerHTML: v(ce)(
2648
+ l.value.line.tag.formatter,
2649
+ t.value,
2650
+ e.name,
2651
+ {
2652
+ datapoint: t,
2653
+ seriesIndex: n,
2654
+ serieName: e.name
2655
+ }
2656
+ )
2657
+ }, null, 8, Cu)
2658
+ ], 4)) : d("", !0)
2659
+ ], 64))), 128))
2660
+ ], 64))), 128)),
2661
+ (u(!0), r(h, null, y(ze.value, (e, s) => (u(), r(h, {
2662
+ key: `tag_plot_${s}`
2663
+ }, [
2664
+ (u(!0), r(h, null, y(e.plots, (t, n) => (u(), r(h, {
2665
+ key: `tag_plot_${s}_${n}`
2666
+ }, [
2667
+ [O.value, _.value, Ue.value].includes(n) && e.useTag && e.useTag === "end" && l.value.plot.tag.followValue ? (u(), r("div", {
2668
+ key: 0,
2669
+ ref_for: !0,
2670
+ ref: (o) => Ll(s, n, o, "right", "plot"),
2671
+ class: "vue-ui-xy-tag",
2672
+ "data-tag": "right",
2673
+ style: C({
2674
+ position: "fixed",
2675
+ top: v(Ge)({
2676
+ svgElement: pe.value,
2677
+ x: i.value.right + l.value.plot.tag.fontSize / 1.5,
2678
+ y: t.y,
2679
+ element: Oe.value[`${s}_${n}_right_plot`],
2680
+ position: "right"
2681
+ }).top + "px",
2682
+ left: v(Ge)({
2683
+ svgElement: pe.value,
2684
+ x: i.value.right + l.value.plot.tag.fontSize / 1.5,
2685
+ y: t.y,
2686
+ element: Oe.value[`${s}_${n}_right_plot`],
2687
+ position: "right"
2688
+ }).left + "px",
2689
+ height: "fit-content",
2690
+ width: "fit-content",
2691
+ background: e.color,
2692
+ color: v(We)(e.color),
2693
+ padding: "0 6px",
2694
+ fontSize: l.value.plot.tag.fontSize + "px",
2695
+ opacity: 1
2696
+ })
2697
+ }, [
2698
+ (u(), r("svg", Iu, [
2699
+ g("path", {
2700
+ d: "M 0,10 10,0 10,20 Z",
2701
+ fill: e.color,
2702
+ stroke: "none"
2703
+ }, null, 8, Tu)
2704
+ ])),
2705
+ g("div", {
2706
+ class: "vue-ui-xy-tag-content",
2707
+ innerHTML: v(ce)(
2708
+ l.value.plot.tag.formatter,
2709
+ t.value,
2710
+ e.name,
2711
+ {
2712
+ datapoint: t,
2713
+ seriesIndex: n,
2714
+ serieName: e.name
2715
+ }
2716
+ )
2717
+ }, null, 8, Ou)
2718
+ ], 4)) : d("", !0),
2719
+ [O.value, _.value, Ue.value].includes(n) && e.useTag && e.useTag === "start" && l.value.plot.tag.followValue ? (u(), r("div", {
2720
+ key: 1,
2721
+ ref_for: !0,
2722
+ ref: (o) => Ll(s, n, o, "left", "plot"),
2723
+ class: "vue-ui-xy-tag",
2724
+ "data-tag": "left",
2725
+ style: C({
2726
+ position: "fixed",
2727
+ top: v(Ge)({
2728
+ svgElement: pe.value,
2729
+ x: i.value.left - l.value.plot.tag.fontSize / 1.5,
2730
+ y: t.y,
2731
+ element: Oe.value[`${s}_${n}_left_plot`],
2732
+ position: "left"
2733
+ }).top + "px",
2734
+ left: v(Ge)({
2735
+ svgElement: pe.value,
2736
+ x: i.value.left - l.value.plot.tag.fontSize / 1.5,
2737
+ y: t.y,
2738
+ element: Oe.value[`${s}_${n}_left_plot`],
2739
+ position: "left"
2740
+ }).left + "px",
2741
+ height: "fit-content",
2742
+ width: "fit-content",
2743
+ background: e.color,
2744
+ color: v(We)(e.color),
2745
+ padding: "0 6px",
2746
+ fontSize: l.value.plot.tag.fontSize + "px",
2747
+ opacity: 1
2748
+ })
2749
+ }, [
2750
+ (u(), r("svg", Nu, [
2751
+ g("path", {
2752
+ d: "M 0,0 10,10 0,20 Z",
2753
+ fill: e.color,
2754
+ stroke: "none"
2755
+ }, null, 8, Vu)
2756
+ ])),
2757
+ g("div", {
2758
+ class: "vue-ui-xy-tag-content",
2759
+ innerHTML: v(ce)(
2760
+ l.value.plot.tag.formatter,
2761
+ t.value,
2762
+ e.name,
2763
+ {
2764
+ datapoint: t,
2765
+ seriesIndex: n,
2766
+ serieName: e.name
2767
+ }
2768
+ )
2769
+ }, null, 8, Pu)
2770
+ ], 4)) : d("", !0)
2771
+ ], 64))), 128))
2772
+ ], 64))), 128)),
2773
+ l.value.chart.zoom.show && He.value > 6 && Xl.value ? (u(), Ie(oo, {
2774
+ ref_key: "chartSlicer",
2775
+ ref: Le,
2776
+ key: `slicer_${Fl.value}`,
2777
+ background: l.value.chart.zoom.color,
2778
+ fontSize: l.value.chart.zoom.fontSize,
2779
+ useResetSlot: l.value.chart.zoom.useResetSlot,
2780
+ labelLeft: de.value[0].text,
2781
+ labelRight: de.value.at(-1).text,
2782
+ textColor: l.value.chart.color,
2783
+ inputColor: l.value.chart.zoom.color,
2784
+ selectColor: l.value.chart.zoom.highlightColor,
2785
+ borderColor: l.value.chart.backgroundColor,
2786
+ minimap: It.value,
2787
+ smoothMinimap: l.value.chart.zoom.minimap.smooth,
2788
+ minimapSelectedColor: l.value.chart.zoom.minimap.selectedColor,
2789
+ minimapSelectionRadius: l.value.chart.zoom.minimap.selectionRadius,
2790
+ minimapLineColor: l.value.chart.zoom.minimap.lineColor,
2791
+ minimapSelectedColorOpacity: l.value.chart.zoom.minimap.selectedColorOpacity,
2792
+ minimapSelectedIndex: _.value,
2793
+ minimapIndicatorColor: l.value.chart.zoom.minimap.indicatorColor,
2794
+ verticalHandles: l.value.chart.zoom.minimap.verticalHandles,
2795
+ max: He.value,
2796
+ min: 0,
2797
+ valueStart: S.value.start,
2798
+ valueEnd: S.value.end,
2799
+ start: S.value.start,
2800
+ "onUpdate:start": c[2] || (c[2] = (e) => S.value.start = e),
2801
+ end: S.value.end,
2802
+ "onUpdate:end": c[3] || (c[3] = (e) => S.value.end = e),
2803
+ refreshStartPoint: l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex : 0,
2804
+ refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...Nl.dataset.map((e) => v(Ee)({ data: e.series, threshold: l.value.downsample.threshold }).length)),
2805
+ enableRangeHandles: l.value.chart.zoom.enableRangeHandles,
2806
+ enableSelectionDrag: l.value.chart.zoom.enableSelectionDrag,
2807
+ onReset: pt,
2808
+ onTrapMouse: bt
2809
+ }, {
2810
+ "reset-action": se(({ reset: e }) => [
2811
+ U(a.$slots, "reset-action", Qe(je({ reset: e })), void 0, !0)
2812
+ ]),
2813
+ _: 3
2814
+ }, 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"])) : d("", !0),
2815
+ l.value.chart.legend.show ? (u(), r("div", {
2816
+ key: 6,
2817
+ ref_key: "chartLegend",
2818
+ ref: al,
2819
+ class: "vue-ui-xy-legend",
2820
+ style: C(`font-size:${l.value.chart.legend.fontSize}px`)
2821
+ }, [
2822
+ (u(!0), r(h, null, y(Me.value, (e, s) => (u(), r("div", {
2823
+ key: `div_legend_item_${s}`,
2824
+ onClick: (t) => za(e),
2825
+ class: Ke({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": te.value.includes(e.id) })
2826
+ }, [
2827
+ vl.value[e.type] === "line" ? (u(), r("svg", Ru, [
2828
+ g("rect", {
2829
+ x: "0",
2830
+ y: "7.5",
2831
+ rx: "1.5",
2832
+ stroke: l.value.chart.backgroundColor,
2833
+ "stroke-width": 0.5,
2834
+ height: "3",
2835
+ width: "20",
2836
+ fill: e.color
2837
+ }, null, 8, Bu),
2838
+ yl(Ol, {
2839
+ plot: { x: 10, y: 9 },
2840
+ radius: 4,
2841
+ color: e.color,
2842
+ shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
2843
+ stroke: l.value.chart.backgroundColor,
2844
+ strokeWidth: 0.5
2845
+ }, null, 8, ["color", "shape", "stroke"])
2846
+ ])) : vl.value[e.type] === "bar" ? (u(), r("svg", Yu, [
2847
+ vl.value[e.type] === "bar" && a.$slots.pattern ? (u(), r("rect", {
2848
+ key: 0,
2849
+ x: "0",
2850
+ y: "0",
2851
+ rx: "1",
2852
+ height: "40",
2853
+ width: "40",
2854
+ stroke: "none",
2855
+ fill: e.color
2856
+ }, null, 8, Fu)) : d("", !0),
2857
+ vl.value[e.type] === "bar" ? (u(), r("rect", {
2858
+ key: 1,
2859
+ x: "0",
2860
+ y: "0",
2861
+ rx: "1",
2862
+ height: "40",
2863
+ width: "40",
2864
+ stroke: "none",
2865
+ fill: a.$slots.pattern ? `url(#pattern_${q.value}_${e.slotAbsoluteIndex})` : e.color
2866
+ }, null, 8, Eu)) : d("", !0)
2867
+ ])) : (u(), r("svg", Wu, [
2868
+ yl(Ol, {
2869
+ plot: { x: 6, y: 6 },
2870
+ radius: 5,
2871
+ color: e.color,
2872
+ shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle"
2873
+ }, null, 8, ["color", "shape"])
2874
+ ])),
2875
+ g("span", {
2876
+ style: C(`color:${l.value.chart.legend.color}`)
2877
+ }, ae(e.name), 5)
2878
+ ], 10, Hu))), 128))
2879
+ ], 4)) : (u(), r("div", {
2880
+ key: 7,
2881
+ ref_key: "chartLegend",
2882
+ ref: al
2883
+ }, [
2884
+ U(a.$slots, "legend", { legend: Me.value }, void 0, !0)
2885
+ ], 512)),
2886
+ a.$slots.source ? (u(), r("div", {
2887
+ key: 8,
2888
+ ref_key: "source",
2889
+ ref: nl,
2890
+ dir: "auto"
2891
+ }, [
2892
+ U(a.$slots, "source", {}, void 0, !0)
2893
+ ], 512)) : d("", !0),
2894
+ yl(v(et), {
2895
+ show: f.value.showTooltip && na.value,
2896
+ backgroundColor: l.value.chart.tooltip.backgroundColor,
2897
+ color: l.value.chart.tooltip.color,
2898
+ fontSize: l.value.chart.tooltip.fontSize,
2899
+ borderRadius: l.value.chart.tooltip.borderRadius,
2900
+ borderColor: l.value.chart.tooltip.borderColor,
2901
+ borderWidth: l.value.chart.tooltip.borderWidth,
2902
+ backgroundOpacity: l.value.chart.tooltip.backgroundOpacity,
2903
+ position: l.value.chart.tooltip.position,
2904
+ offsetY: l.value.chart.tooltip.offsetY,
2905
+ parent: a.$refs.chart,
2906
+ content: Tt.value,
2907
+ isFullscreen: tl.value,
2908
+ isCustom: l.value.chart.tooltip.customFormat && typeof l.value.chart.tooltip.customFormat == "function"
2909
+ }, {
2910
+ "tooltip-before": se(() => [
2911
+ U(a.$slots, "tooltip-before", Qe(je({ ...Oa.value })), void 0, !0)
2912
+ ]),
2913
+ "tooltip-after": se(() => [
2914
+ U(a.$slots, "tooltip-after", Qe(je({ ...Oa.value })), void 0, !0)
2915
+ ]),
2916
+ _: 3
2917
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
2918
+ Xl.value ? (u(), Ie(v(ot), {
2919
+ key: 9,
2920
+ hideDetails: "",
2921
+ config: {
2922
+ open: f.value.showTable,
2923
+ maxHeight: 1e4,
2924
+ body: {
2925
+ backgroundColor: l.value.chart.backgroundColor,
2926
+ color: l.value.chart.color
2927
+ },
2928
+ head: {
2929
+ backgroundColor: l.value.chart.backgroundColor,
2930
+ color: l.value.chart.color
2931
+ }
2932
+ }
2933
+ }, {
2934
+ content: se(() => [
2935
+ g("div", {
2936
+ style: C(`${v(Ul) ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
2937
+ }, [
2938
+ g("div", Gu, [
2939
+ Bt(g("input", {
2940
+ type: "checkbox",
2941
+ "onUpdate:modelValue": c[4] || (c[4] = (e) => dl.value = e)
2942
+ }, null, 512), [
2943
+ [Yt, dl.value]
2944
+ ]),
2945
+ g("div", {
2946
+ onClick: c[5] || (c[5] = (e) => dl.value = !dl.value),
2947
+ style: { cursor: "pointer" }
2948
+ }, [
2949
+ yl(v(at), {
2950
+ name: "chartLine",
2951
+ size: 20,
2952
+ stroke: l.value.chart.color
2953
+ }, null, 8, ["stroke"])
2954
+ ])
2955
+ ]),
2956
+ dl.value ? (u(), Ie(v(tt), {
2957
+ key: `sparkline_${El.value}`,
2958
+ dataset: Mt.value,
2959
+ config: zt.value
2960
+ }, null, 8, ["dataset", "config"])) : (u(), Ie(v(ja), {
2961
+ key: `table_${va.value}`,
2962
+ colNames: Ml.value.colNames,
2963
+ head: Ml.value.head,
2964
+ body: Ml.value.body,
2965
+ config: Ml.value.config,
2966
+ title: `${l.value.chart.title.text}${l.value.chart.title.subtitle.text ? ` : ${l.value.chart.title.subtitle.text}` : ""}`,
2967
+ onClose: c[6] || (c[6] = (e) => f.value.showTable = !1)
2968
+ }, {
2969
+ th: se(({ th: e }) => [
2970
+ g("div", { innerHTML: e }, null, 8, Xu)
2971
+ ]),
2972
+ td: se(({ td: e }) => [
2973
+ Ft(ae(isNaN(Number(e)) ? e : v(ye)({
2974
+ p: l.value.chart.labels.prefix,
2975
+ v: e,
2976
+ s: l.value.chart.labels.suffix,
2977
+ r: l.value.table.rounding
2978
+ })), 1)
2979
+ ]),
2980
+ _: 1
2981
+ }, 8, ["colNames", "head", "body", "config", "title"]))
2982
+ ], 4)
2983
+ ]),
2984
+ _: 1
2985
+ }, 8, ["config"])) : d("", !0),
2986
+ v(Dl) ? (u(), Ie(no, { key: 10 })) : d("", !0)
2987
+ ], 46, vo));
2988
+ }
2989
+ }, or = /* @__PURE__ */ co(Du, [["__scopeId", "data-v-f9325c33"]]);
2990
+ export {
2991
+ or as default
2992
+ };