vue-data-ui 3.0.0-next.26 → 3.0.0-next.28

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 (90) hide show
  1. package/dist/{Arrow-CsNgq2ZF.js → Arrow-FEiXAF1f.js} +1 -1
  2. package/dist/{BaseDraggableDialog-yqJAu5Cf.js → BaseDraggableDialog-B0E68Ss_.js} +2 -2
  3. package/dist/{BaseIcon-CIPCGWyZ.js → BaseIcon-CNk8ZQxC.js} +1 -1
  4. package/dist/{ColorPicker-CzNlpUdq.js → ColorPicker-Bh0sQqJU.js} +2 -2
  5. package/dist/{DataTable-6ZKiedr4.js → DataTable-BtWOpycK.js} +2 -2
  6. package/dist/{Legend-B0mt4iJx.js → Legend-DTMU8MPG.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-DLef79mr.js → NonSvgPenAndPaper-DFdkMS2K.js} +3 -3
  8. package/dist/{PackageVersion-DF_M_33r.js → PackageVersion-BcAEQLLi.js} +1 -1
  9. package/dist/{PenAndPaper-i2SC47RS.js → PenAndPaper-CmO7bEfi.js} +3 -3
  10. package/dist/{Shape-XBUldhbb.js → Shape-CQVlnhqo.js} +1 -1
  11. package/dist/{Slicer-CoD6AOHL.js → Slicer-DVW32UTi.js} +2 -2
  12. package/dist/{SparkTooltip-BgBRqkPH.js → SparkTooltip-BKSFRids.js} +1 -1
  13. package/dist/{Title-IaxR8U-N.js → Title-CGN9QiYI.js} +1 -1
  14. package/dist/{Tooltip-DCh0ZmS5.js → Tooltip-mMwokTkO.js} +1 -1
  15. package/dist/{UserOptions-J_zxxPnc.js → UserOptions-DYn2297n.js} +2 -2
  16. package/dist/{dom-to-png-Bm-vMd2x.js → dom-to-png-BVzHEl2w.js} +1 -1
  17. package/dist/{img-B3U0-8wy.js → img-ChuzqrF3.js} +1 -1
  18. package/dist/{index-gToq10k7.js → index-DwurWOmm.js} +354 -337
  19. package/dist/{pdf-BdjzkOlO.js → pdf-C9A0Wlta.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +8 -2
  22. package/dist/types/vue-data-ui.d.ts +8 -2
  23. package/dist/{useNestedProp-gmapANmc.js → useNestedProp-CFAjw-uI.js} +1 -1
  24. package/dist/{usePrinter-CbZEI2_c.js → usePrinter-BvsDO5CU.js} +2 -2
  25. package/dist/{vue-data-ui-CZVJfC0E.js → vue-data-ui-DnH55d6o.js} +64 -64
  26. package/dist/vue-data-ui.js +1 -1
  27. package/dist/{vue-ui-3d-bar-MTNEP9CL.js → vue-ui-3d-bar-BIPJDf4a.js} +6 -6
  28. package/dist/{vue-ui-accordion-DLihDfed.js → vue-ui-accordion-C7ba8AVe.js} +3 -3
  29. package/dist/{vue-ui-age-pyramid-IY3QdXfK.js → vue-ui-age-pyramid-CIg_Ehbq.js} +6 -6
  30. package/dist/{vue-ui-annotator-CJeQgt2n.js → vue-ui-annotator-C3nqKGzo.js} +2 -2
  31. package/dist/{vue-ui-bullet-DGldX5sC.js → vue-ui-bullet-DK3bEHJG.js} +7 -7
  32. package/dist/{vue-ui-candlestick-C-HIjwPy.js → vue-ui-candlestick-HXpLcsDU.js} +149 -150
  33. package/dist/{vue-ui-carousel-table-BmiJoBXA.js → vue-ui-carousel-table-BnplX7KO.js} +4 -4
  34. package/dist/{vue-ui-chestnut-CZlbhQrJ.js → vue-ui-chestnut-sQskMYei.js} +5 -5
  35. package/dist/{vue-ui-chord-Dq4rskRf.js → vue-ui-chord-CT-viUg5.js} +8 -8
  36. package/dist/{vue-ui-circle-pack-DW9-8rGV.js → vue-ui-circle-pack-BEjSuhTw.js} +6 -6
  37. package/dist/{vue-ui-cursor-D0tCtX4f.js → vue-ui-cursor-DP40Z3Pg.js} +2 -2
  38. package/dist/{vue-ui-dashboard-Bk_MJlYy.js → vue-ui-dashboard-CoukhCPg.js} +62 -62
  39. package/dist/{vue-ui-digits-BA_tNRkj.js → vue-ui-digits-FLazCL03.js} +2 -2
  40. package/dist/{vue-ui-donut-DzAeK2TE.js → vue-ui-donut-C_f5VCo9.js} +8 -8
  41. package/dist/vue-ui-donut-evolution-C8eGM4Wc.js +1072 -0
  42. package/dist/{vue-ui-dumbbell-_YZFjBH6.js → vue-ui-dumbbell-Bcy0H0ej.js} +7 -7
  43. package/dist/{vue-ui-flow-C7aLXJTA.js → vue-ui-flow-PBHoj24k.js} +7 -7
  44. package/dist/{vue-ui-funnel-B_3QpOUU.js → vue-ui-funnel--s2L_i_f.js} +6 -6
  45. package/dist/{vue-ui-galaxy-DuU1fS4U.js → vue-ui-galaxy-5iik4XcF.js} +5 -5
  46. package/dist/{vue-ui-gauge-_cAQb9Hn.js → vue-ui-gauge-Cc8XdZEO.js} +6 -6
  47. package/dist/{vue-ui-gizmo-DqYMjhpX.js → vue-ui-gizmo-D9YdWF0U.js} +3 -3
  48. package/dist/{vue-ui-heatmap-BkU3wZkK.js → vue-ui-heatmap-CNuiN6e-.js} +7 -7
  49. package/dist/{vue-ui-history-plot-C83pTqnc.js → vue-ui-history-plot-DTv_F82N.js} +7 -7
  50. package/dist/{vue-ui-kpi-CWu4hx68.js → vue-ui-kpi-pLPQLsiF.js} +3 -3
  51. package/dist/{vue-ui-mini-loader-Cw48lkNp.js → vue-ui-mini-loader-CDYKGa7j.js} +2 -2
  52. package/dist/{vue-ui-molecule-CWNMsooa.js → vue-ui-molecule-BV9JjR8F.js} +5 -5
  53. package/dist/{vue-ui-mood-radar-hxw5vhXc.js → vue-ui-mood-radar-Cknw3hKt.js} +7 -7
  54. package/dist/{vue-ui-nested-donuts-SCEIJRnl.js → vue-ui-nested-donuts-C85ZFJ_q.js} +503 -501
  55. package/dist/{vue-ui-onion-xkpaiVLl.js → vue-ui-onion-C9cZNyC3.js} +7 -7
  56. package/dist/{vue-ui-parallel-coordinate-plot-DP8c7Zy2.js → vue-ui-parallel-coordinate-plot-D7H2zhCF.js} +8 -8
  57. package/dist/{vue-ui-quadrant-YoAP5U9i.js → vue-ui-quadrant-Cfvu8-h1.js} +8 -8
  58. package/dist/{vue-ui-quick-chart-QQd0jAgp.js → vue-ui-quick-chart-B3d2FDBP.js} +265 -263
  59. package/dist/{vue-ui-radar-2aBWeu33.js → vue-ui-radar-CQcjyxwQ.js} +7 -7
  60. package/dist/{vue-ui-rating-cevrLC7m.js → vue-ui-rating-DEDPYi2F.js} +2 -2
  61. package/dist/{vue-ui-relation-circle-pfHEqPqz.js → vue-ui-relation-circle-swVQdvQX.js} +6 -6
  62. package/dist/{vue-ui-ridgeline-8Fi_HR1k.js → vue-ui-ridgeline-DU85JJKL.js} +8 -8
  63. package/dist/{vue-ui-rings-CqBfRCcH.js → vue-ui-rings-CwVJAUv8.js} +8 -8
  64. package/dist/{vue-ui-scatter-BslmJ4rg.js → vue-ui-scatter-Dqltdynp.js} +8 -8
  65. package/dist/{vue-ui-skeleton-DXITY4Wb.js → vue-ui-skeleton-C8QYEKxX.js} +3 -3
  66. package/dist/{vue-ui-smiley-2m2GnNUB.js → vue-ui-smiley-BiPXfmqf.js} +2 -2
  67. package/dist/{vue-ui-spark-trend-Bpp-odIP.js → vue-ui-spark-trend-DkyWiTg0.js} +3 -3
  68. package/dist/{vue-ui-sparkbar-Dqen9icZ.js → vue-ui-sparkbar-CEjHYHRg.js} +3 -3
  69. package/dist/{vue-ui-sparkgauge-C9Dlt6iV.js → vue-ui-sparkgauge-CqsLMGbd.js} +3 -3
  70. package/dist/{vue-ui-sparkhistogram-D-MlMk-Q.js → vue-ui-sparkhistogram-BQeOmWdJ.js} +4 -4
  71. package/dist/{vue-ui-sparkline-BZA1s4pf.js → vue-ui-sparkline-BzskaXWk.js} +3 -3
  72. package/dist/{vue-ui-sparkstackbar-BB-tBLQd.js → vue-ui-sparkstackbar-WMpYFqmu.js} +3 -3
  73. package/dist/{vue-ui-stackbar-DEcZ471x.js → vue-ui-stackbar-BvA1pWBy.js} +328 -329
  74. package/dist/{vue-ui-strip-plot-BNPYL2hl.js → vue-ui-strip-plot-sPsAx0ly.js} +7 -7
  75. package/dist/{vue-ui-table-BDn61l1T.js → vue-ui-table-DFIQk2V5.js} +3 -3
  76. package/dist/{vue-ui-table-heatmap-DcVDM0D7.js → vue-ui-table-heatmap-DP9OWEX0.js} +5 -5
  77. package/dist/{vue-ui-table-sparkline-CpF2AiH0.js → vue-ui-table-sparkline-DQBQeejJ.js} +4 -4
  78. package/dist/{vue-ui-thermometer-DW90pE_h.js → vue-ui-thermometer-BfPYbE4s.js} +6 -6
  79. package/dist/{vue-ui-timer-DnzpNY0x.js → vue-ui-timer-B7vfnEvV.js} +5 -5
  80. package/dist/{vue-ui-tiremarks-CNHI4MuH.js → vue-ui-tiremarks-BBSUpVrJ.js} +6 -6
  81. package/dist/{vue-ui-treemap-CWWLDBEO.js → vue-ui-treemap-BKrRAwDR.js} +8 -8
  82. package/dist/{vue-ui-vertical-bar-B2GiFfDO.js → vue-ui-vertical-bar-BcaY2dnD.js} +9 -9
  83. package/dist/{vue-ui-waffle-CsyXZFOd.js → vue-ui-waffle-CBPTLkE9.js} +8 -8
  84. package/dist/{vue-ui-wheel-DOrEgq2T.js → vue-ui-wheel-CzCd72Xa.js} +6 -6
  85. package/dist/{vue-ui-word-cloud-CUEMogkJ.js → vue-ui-word-cloud-DQrrAfUw.js} +6 -6
  86. package/dist/{vue-ui-world-C2xiB-yS.js → vue-ui-world-CSnvYru5.js} +6 -6
  87. package/dist/{vue-ui-xy-cahWUi-P.js → vue-ui-xy-D1ZyohhW.js} +274 -268
  88. package/dist/{vue-ui-xy-canvas-BzTkP8HC.js → vue-ui-xy-canvas-CQWhSrqq.js} +251 -252
  89. package/package.json +1 -1
  90. package/dist/vue-ui-donut-evolution-CZ2mtt3z.js +0 -1034
@@ -1,13 +1,13 @@
1
- import { defineAsyncComponent as Be, useSlots as Nt, getCurrentInstance as Vt, ref as w, computed as $, onMounted as Ba, toRefs as Pt, watchEffect as Ht, onBeforeUnmount as Ya, watch as Ql, createElementBlock as i, openBlock as u, normalizeStyle as z, normalizeClass as Ue, createBlock as Me, createCommentVNode as d, createVNode as xl, unref as v, createSlots as Rt, withCtx as ue, renderSlot as q, normalizeProps as Ze, guardReactiveProps as Je, createElementVNode as g, Fragment as h, renderList as y, toDisplayString as ee, mergeProps as jl, withDirectives as Bt, vModelCheckbox as Yt, createTextVNode as Ft, nextTick as bl } from "vue";
2
- import { u as Et, c as ea, e as la, A as Wt, a5 as Ye, b as Xt, D as ml, ab as Ke, d as Gt, p as Dt, ac as zl, aa as R, ad as qt, v as T, ae as Fa, V as Ea, af as Wa, U as Xa, ag as Ut, ah as Ga, ai as Da, i as re, x as Zt, y as Jt, _ as qa, R as ze, f as xe, w as Qe, s as we, a8 as X, L as Kt, F as Fe, aj as Cl, I as Qt, ak as Ee, C as Ne, t as jt, a as eo, o as Ua, q as lo, r as ao, E as ol } from "./index-gToq10k7.js";
3
- import { u as aa } from "./useNestedProp-gmapANmc.js";
1
+ import { defineAsyncComponent as Be, useSlots as Nt, getCurrentInstance as Vt, ref as w, computed as $, onMounted as Ba, toRefs as Pt, watchEffect as Ht, onBeforeUnmount as Ya, watch as Kl, createElementBlock as i, openBlock as u, normalizeStyle as z, normalizeClass as Ue, createBlock as Ae, createCommentVNode as d, createVNode as xl, unref as v, createSlots as Rt, withCtx as ue, renderSlot as q, normalizeProps as Ze, guardReactiveProps as Je, createElementVNode as g, Fragment as h, renderList as y, toDisplayString as le, mergeProps as Ql, withDirectives as Bt, vModelCheckbox as Yt, createTextVNode as Ft, nextTick as jl } from "vue";
2
+ import { u as Et, c as ea, e as la, A as Wt, a5 as Ye, b as Xt, D as bl, ab as Ke, d as Gt, p as Dt, ac as Ml, aa as R, ad as qt, v as T, ae as Fa, V as Ea, af as Wa, U as Xa, ag as Ut, ah as Ga, ai as Da, i as re, x as Zt, y as Jt, _ as qa, R as Me, f as xe, w as Qe, s as we, a8 as X, L as Kt, F as Fe, aj as zl, I as Qt, ak as Ee, C as Oe, t as jt, a as eo, o as Ua, q as lo, r as ao, E as ol } from "./index-DwurWOmm.js";
3
+ import { u as aa } from "./useNestedProp-CFAjw-uI.js";
4
4
  import { u as to } from "./useTimeLabels-DFkUfjfs.js";
5
5
  import { u as oo } from "./useTimeLabelCollider-V7AOiPLB.js";
6
- import { S as so } from "./Slicer-CoD6AOHL.js";
7
- import uo from "./Title-IaxR8U-N.js";
8
- import { _ as Il } from "./Shape-XBUldhbb.js";
9
- import ro from "./img-B3U0-8wy.js";
10
- import { u as io } from "./usePrinter-CbZEI2_c.js";
6
+ import { S as so } from "./Slicer-DVW32UTi.js";
7
+ import uo from "./Title-CGN9QiYI.js";
8
+ import { _ as Cl } from "./Shape-CQVlnhqo.js";
9
+ import ro from "./img-ChuzqrF3.js";
10
+ import { u as io } from "./usePrinter-BvsDO5CU.js";
11
11
  import { u as no, B as co } from "./BaseScanner-DIK2NTdp.js";
12
12
  import { t as vo } from "./useResponsive-DfdjqQps.js";
13
13
  import { _ as ho } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -72,8 +72,8 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
72
72
  }
73
73
  },
74
74
  emits: ["selectTimeLabel", "selectX", "selectLegend"],
75
- setup(Tl, { expose: Za, emit: Ja }) {
76
- const m = Tl, Ka = Be(() => import("./DataTable-6ZKiedr4.js")), Qa = Be(() => import("./Tooltip-DCh0ZmS5.js")), ja = Be(() => import("./UserOptions-J_zxxPnc.js")), et = Be(() => import("./BaseIcon-CIPCGWyZ.js")), lt = Be(() => import("./vue-ui-table-sparkline-CpF2AiH0.js")), at = Be(() => import("./vue-ui-accordion-DLihDfed.js")), tt = Be(() => import("./PackageVersion-DF_M_33r.js")), ot = Be(() => import("./PenAndPaper-i2SC47RS.js")), Ol = Ja, ta = Nt(), st = Vt(), { vue_ui_xy: Nl } = Et(), je = w(null), sl = w(null), Se = w(null), el = w(null), ul = w(null), rl = w(null), ut = w(null), Vl = w(null), Pl = w(null), ll = w(null), Hl = w(null), We = w(null), Rl = w(null), Bl = w(0), M = w(null), oa = w(!0), ve = w(600), ae = w(1e3), yl = w("0 0 1000 600"), rt = w({ x: 0, y: 0 }), il = w({ line: "line", bar: "bar", plot: "plot" }), pl = w(!1), al = w(!1), sa = w(!1), k = w(null), Xe = w(null), te = w([]), U = w(ea()), ua = w(0), ra = w(0), ia = w(0), nl = w(!0), Yl = w(0), O = w(null), na = w(!1), Fl = w(!0), kl = w(!0), be = w(null), Ce = w({}), _l = w(null), it = $(() => ({
75
+ setup(Il, { expose: Za, emit: Ja }) {
76
+ const m = Il, Ka = Be(() => import("./DataTable-BtWOpycK.js")), Qa = Be(() => import("./Tooltip-mMwokTkO.js")), ja = Be(() => import("./UserOptions-DYn2297n.js")), et = Be(() => import("./BaseIcon-CNk8ZQxC.js")), lt = Be(() => import("./vue-ui-table-sparkline-DQBQeejJ.js")), at = Be(() => import("./vue-ui-accordion-C7ba8AVe.js")), tt = Be(() => import("./PackageVersion-BcAEQLLi.js")), ot = Be(() => import("./PenAndPaper-CmO7bEfi.js")), Tl = Ja, ta = Nt(), st = Vt(), { vue_ui_xy: Ol } = Et(), je = w(null), sl = w(null), Ne = w(null), el = w(null), ul = w(null), rl = w(null), ut = w(null), Nl = w(null), Vl = w(null), ll = w(null), Pl = w(null), We = w(null), Hl = w(null), Rl = w(0), M = w(null), oa = w(!0), ve = w(600), ae = w(1e3), ml = w("0 0 1000 600"), rt = w({ x: 0, y: 0 }), il = w({ line: "line", bar: "bar", plot: "plot" }), yl = w(!1), al = w(!1), sa = w(!1), k = w(null), Xe = w(null), te = w([]), U = w(ea()), ua = w(0), ra = w(0), ia = w(0), nl = w(!0), Bl = w(0), O = w(null), na = w(!1), Yl = w(!0), pl = w(!0), be = w(null), ze = w({}), kl = w(null), it = $(() => ({
77
77
  height: ve.value,
78
78
  width: ae.value
79
79
  })), nt = m.config.downsample && m.config.downsample.threshold ? m.config.downsample.threshold : 500, f = w({
@@ -87,7 +87,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
87
87
  yAxis: 12,
88
88
  dataLabels: 20,
89
89
  plotLabels: 10
90
- }), $e = w({ plot: 3, line: 3 });
90
+ }), Se = w({ plot: 3, line: 3 });
91
91
  Ba(() => {
92
92
  m.dataset.length && m.dataset.forEach((a, c) => {
93
93
  [null, void 0].includes(a.series) && la({
@@ -99,17 +99,17 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
99
99
  });
100
100
  });
101
101
  });
102
- function El() {
102
+ function Fl() {
103
103
  if (!Object.keys(m.config || {}).length)
104
- return Nl;
104
+ return Ol;
105
105
  const a = aa({
106
106
  userConfig: m.config,
107
- defaultConfig: Nl
107
+ defaultConfig: Ol
108
108
  });
109
- return m.config && Ne(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 && Ne(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 && Ne(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 && Ne(m.config, "chart.zoom.startIndex") ? a.chart.zoom.startIndex = m.config.chart.zoom.startIndex : a.chart.zoom.startIndex = null, m.config && Ne(m.config, "chart.zoom.endIndex") ? a.chart.zoom.endIndex = m.config.chart.zoom.endIndex : a.chart.zoom.endIndex = null, m.config && Ne(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) => aa({
110
- defaultConfig: Nl.chart.annotations[0],
109
+ return m.config && Oe(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 && Oe(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 && Oe(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 && Oe(m.config, "chart.zoom.startIndex") ? a.chart.zoom.startIndex = m.config.chart.zoom.startIndex : a.chart.zoom.startIndex = null, m.config && Oe(m.config, "chart.zoom.endIndex") ? a.chart.zoom.endIndex = m.config.chart.zoom.endIndex : a.chart.zoom.endIndex = null, m.config && Oe(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) => aa({
110
+ defaultConfig: Ol.chart.annotations[0],
111
111
  userConfig: c
112
- })) : a.chart.annotations = [], m.config && Ne(m.config, "chart.grid.position") && m.config.chart.grid.position === "start" && m.dataset.length && m.dataset.some((c) => c.type === "bar") && (a.chart.grid.position = "middle", Ne(m.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), m.config && Ne(m.config, "chart.grid.labels.yAxis.serieNameFormatter") ? a.chart.grid.labels.yAxis.serieNameFormatter = m.config.chart.grid.labels.yAxis.serieNameFormatter : a.chart.grid.labels.yAxis.serieNameFormatter = null, a.theme ? {
112
+ })) : a.chart.annotations = [], m.config && Oe(m.config, "chart.grid.position") && m.config.chart.grid.position === "start" && m.dataset.length && m.dataset.some((c) => c.type === "bar") && (a.chart.grid.position = "middle", Oe(m.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), m.config && Oe(m.config, "chart.grid.labels.yAxis.serieNameFormatter") ? a.chart.grid.labels.yAxis.serieNameFormatter = m.config.chart.grid.labels.yAxis.serieNameFormatter : a.chart.grid.labels.yAxis.serieNameFormatter = null, a.theme ? {
113
113
  ...aa({
114
114
  userConfig: eo.vue_ui_xy[a.theme] || m.config,
115
115
  defaultConfig: a
@@ -117,20 +117,20 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
117
117
  customPalette: jt[a.theme] || m.palette
118
118
  } : a;
119
119
  }
120
- const Wl = $({
120
+ const El = $({
121
121
  get() {
122
122
  return !!m.dataset && m.dataset.length;
123
123
  },
124
124
  set(a) {
125
125
  return a;
126
126
  }
127
- }), l = w(El()), { loading: Xl, FINAL_DATASET: me, manualLoading: wl } = no({
127
+ }), l = w(Fl()), { loading: Wl, FINAL_DATASET: me, manualLoading: _l } = no({
128
128
  ...Pt(m),
129
129
  FINAL_CONFIG: l,
130
- prepareConfig: El,
130
+ prepareConfig: Fl,
131
131
  callback: () => {
132
132
  Promise.resolve().then(async () => {
133
- await Kl();
133
+ await Jl();
134
134
  });
135
135
  },
136
136
  skeletonDataset: [
@@ -209,16 +209,16 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
209
209
  }), Ve = $({
210
210
  get: () => Math.max(...me.value.map((a) => Ye({ data: a.series, threshold: nt }).length)),
211
211
  set: (a) => a
212
- }), S = w({ start: 0, end: Ve.value }), { isPrinting: Gl, isImaging: ca, generatePdf: va, generateImage: da } = io({
212
+ }), S = w({ start: 0, end: Ve.value }), { isPrinting: Xl, isImaging: ca, generatePdf: va, generateImage: da } = io({
213
213
  elementId: `vue-ui-xy_${U.value}`,
214
214
  fileName: l.value.chart.title.text || "vue-ui-xy",
215
215
  options: l.value.chart.userOptions.print
216
- }), ct = w(!1), ha = $(() => Xt(l.value.customPalette)), Sl = $(() => l.value.chart.grid.labels.yAxis.scaleMax ? l.value.chart.grid.labels.yAxis.scaleMax : Math.max(...Ie.value.filter((a) => !te.value.includes(a.id)).map((a) => Math.max(...a.series)))), Dl = $(() => {
216
+ }), ct = w(!1), ha = $(() => Xt(l.value.customPalette)), wl = $(() => l.value.chart.grid.labels.yAxis.scaleMax ? l.value.chart.grid.labels.yAxis.scaleMax : Math.max(...Ce.value.filter((a) => !te.value.includes(a.id)).map((a) => Math.max(...a.series)))), Gl = $(() => {
217
217
  if (l.value.chart.grid.labels.yAxis.scaleMin !== null)
218
218
  return l.value.chart.grid.labels.yAxis.scaleMin;
219
- const a = Math.min(...Ie.value.filter((c) => !te.value.includes(c.id)).map((c) => Math.min(...c.series)));
219
+ const a = Math.min(...Ce.value.filter((c) => !te.value.includes(c.id)).map((c) => Math.min(...c.series)));
220
220
  return a > 0 ? 0 : a;
221
- }), ye = $(() => l.value.chart.grid.labels.yAxis.useNiceScale ? ml(Dl.value, Sl.value < 0 ? 0 : Sl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps) : Ke(Dl.value, Sl.value < 0 ? 0 : Sl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps)), cl = $(() => [null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) ? ye.value.min >= 0 ? 0 : Math.abs(ye.value.min) : -ye.value.min), Ie = $(() => oa.value ? me.value.map((a, c) => {
221
+ }), ye = $(() => l.value.chart.grid.labels.yAxis.useNiceScale ? bl(Gl.value, wl.value < 0 ? 0 : wl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps) : Ke(Gl.value, wl.value < 0 ? 0 : wl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps)), cl = $(() => [null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) ? ye.value.min >= 0 ? 0 : Math.abs(ye.value.min) : -ye.value.min), Ce = $(() => oa.value ? me.value.map((a, c) => {
222
222
  const e = Ye({
223
223
  data: a.series,
224
224
  threshold: l.value.downsample.threshold
@@ -226,34 +226,34 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
226
226
  return {
227
227
  ...a,
228
228
  slotAbsoluteIndex: c,
229
- series: e.map((t) => zl(t) ? t : null).slice(S.value.start, S.value.end),
229
+ series: e.map((t) => Ml(t) ? t : null).slice(S.value.start, S.value.end),
230
230
  color: Gt(a.color ? a.color : ha.value[c] ? ha.value[c] : Dt[c]),
231
231
  id: s,
232
232
  scaleLabel: a.scaleLabel || s
233
233
  };
234
- }) : me.value), Te = $(() => Ie.value.map((a, c) => ({
234
+ }) : me.value), Ie = $(() => Ce.value.map((a, c) => ({
235
235
  absoluteIndex: c,
236
236
  ...a,
237
237
  series: a.series.map((e) => e + cl.value),
238
238
  absoluteValues: a.series,
239
239
  segregate: () => $a(a),
240
240
  isSegregated: te.value.includes(a.id)
241
- }))), pe = $(() => Ie.value.map((a, c) => ({
241
+ }))), pe = $(() => Ce.value.map((a, c) => ({
242
242
  ...a,
243
243
  series: a.series.map((e) => e + cl.value),
244
244
  absoluteValues: a.series
245
245
  })).filter((a) => !te.value.includes(a.id)));
246
246
  function vt() {
247
247
  let a = 0;
248
- Hl.value && (a = Array.from(Hl.value.querySelectorAll("text")).reduce((t, r) => {
248
+ Pl.value && (a = Array.from(Pl.value.querySelectorAll("text")).reduce((t, r) => {
249
249
  const o = r.getComputedTextLength();
250
250
  return (o > t ? o : t) + l.value.chart.grid.labels.yAxis.scaleValueOffsetX;
251
251
  }, 0));
252
- const c = Pl.value ? Pl.value.getBoundingClientRect().width + l.value.chart.grid.labels.axis.yLabelOffsetX + x.value.yAxis : 0, e = l.value.chart.grid.labels.yAxis.crosshairSize;
252
+ const c = Vl.value ? Vl.value.getBoundingClientRect().width + l.value.chart.grid.labels.axis.yLabelOffsetX + x.value.yAxis : 0, e = l.value.chart.grid.labels.yAxis.crosshairSize;
253
253
  return a + c + e;
254
254
  }
255
- const ql = w(0), dt = vo((a) => {
256
- ql.value = a;
255
+ const Dl = w(0), dt = vo((a) => {
256
+ Dl.value = a;
257
257
  }, 100);
258
258
  Ht((a) => {
259
259
  const c = ll.value;
@@ -263,13 +263,13 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
263
263
  });
264
264
  e.observe(c), a(() => e.disconnect());
265
265
  }), Ya(() => {
266
- ql.value = 0;
266
+ Dl.value = 0;
267
267
  });
268
268
  const fa = $(() => {
269
269
  let a = 0;
270
- Vl.value && (a = Vl.value.getBBox().height);
270
+ Nl.value && (a = Nl.value.getBBox().height);
271
271
  let c = 0;
272
- return ll.value && (c = ql.value), a + c + x.value.xAxis;
272
+ return ll.value && (c = Dl.value), a + c + x.value.xAxis;
273
273
  }), ht = $(() => me.value.some((a) => a.useProgression)), n = $(() => {
274
274
  let a = 0;
275
275
  const c = 36;
@@ -303,41 +303,41 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
303
303
  showOnlyAtModulo: a,
304
304
  showOnlyFirstAndLast: c,
305
305
  modulo: e
306
- } = l.value.chart.grid.labels.xAxisLabels, s = le.value.length ? Math.min(e, [...new Set(le.value.map((r) => r.text))].length) : e, t = Math.floor((S.value.end - S.value.start) / s);
307
- return le.value.map((r, o) => {
306
+ } = l.value.chart.grid.labels.xAxisLabels, s = J.value.length ? Math.min(e, [...new Set(J.value.map((r) => r.text))].length) : e, t = Math.floor((S.value.end - S.value.start) / s);
307
+ return J.value.map((r, o) => {
308
308
  if (!r) return null;
309
- const B = a && b.value <= s, F = !c && !a, E = c && !a && (o === 0 || o === le.value.length - 1), L = c && !a && k.value === o, C = !c && a && o % t === 0;
309
+ const B = a && b.value <= s, F = !c && !a, E = c && !a && (o === 0 || o === J.value.length - 1), L = c && !a && k.value === o, C = !c && a && o % t === 0;
310
310
  if (!(B || F || E || L || C))
311
311
  return null;
312
- const Y = n.value.width / b.value, _ = n.value.left + Y * o + Y / 2, N = l.value.chart.grid.labels.xAxis.crosshairSize, A = l.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero, J = A ? ie.value - (ie.value === n.value.bottom ? 0 : N / 2) : n.value.bottom, oe = A ? ie.value + N / (ie.value === n.value.bottom ? 1 : 2) : n.value.bottom + N;
313
- return `M${_},${J} L${_},${oe}`;
312
+ const Y = n.value.width / b.value, _ = n.value.left + Y * o + Y / 2, N = l.value.chart.grid.labels.xAxis.crosshairSize, A = l.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero, K = A ? ie.value - (ie.value === n.value.bottom ? 0 : N / 2) : n.value.bottom, oe = A ? ie.value + N / (ie.value === n.value.bottom ? 1 : 2) : n.value.bottom + N;
313
+ return `M${_},${K} L${_},${oe}`;
314
314
  }).filter((r) => r !== null).join(" ");
315
315
  });
316
316
  function ga() {
317
317
  return !!st?.vnode.props?.onSelectTimeLabel;
318
318
  }
319
319
  function xt(a, c, e) {
320
- if (!_l.value) {
320
+ if (!kl.value) {
321
321
  const s = document.createElement("canvas");
322
- _l.value = s.getContext("2d");
322
+ kl.value = s.getContext("2d");
323
323
  }
324
- return _l.value.font = `normal ${a}px sans-serif`, _l.value;
324
+ return kl.value.font = `normal ${a}px sans-serif`, kl.value;
325
325
  }
326
326
  function xa() {
327
327
  const a = je.value.querySelectorAll(".vue-ui-xy-tag");
328
328
  a.length && Array.from(a).forEach((c) => c.style.opacity = "0");
329
329
  }
330
- function $l(a, c, e, s, t) {
331
- e && (Ce.value[`${a}_${c}_${s}_${t}`] = e);
330
+ function Sl(a, c, e, s, t) {
331
+ e && (ze.value[`${a}_${c}_${s}_${t}`] = e);
332
332
  }
333
- const Ul = w(!1);
333
+ const ql = w(!1);
334
334
  async function ba(a = !1) {
335
- await bl(), Ul.value = a, na.value && (kl.value = a);
335
+ await jl(), ql.value = a, na.value && (pl.value = a);
336
336
  }
337
- function Zl() {
338
- pl.value = !pl.value;
337
+ function Ul() {
338
+ yl.value = !yl.value;
339
339
  }
340
- const le = $(() => {
340
+ const J = $(() => {
341
341
  const a = Math.max(...me.value.map((c) => Ye({ data: c.series, threshold: l.value.downsample.threshold }).length));
342
342
  return to({
343
343
  values: l.value.chart.grid.labels.xAxisLabels.values,
@@ -346,9 +346,9 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
346
346
  start: S.value.start,
347
347
  end: S.value.end
348
348
  });
349
- }), Ll = $(() => {
349
+ }), $l = $(() => {
350
350
  const a = l.value.chart.grid.labels.xAxisLabels.modulo;
351
- return le.value.length ? Math.min(a, [...new Set(le.value.map((c) => c.text))].length) : a;
351
+ return J.value.length ? Math.min(a, [...new Set(J.value.map((c) => c.text))].length) : a;
352
352
  });
353
353
  function ma(a, c) {
354
354
  const e = pe.value.map((s) => ({
@@ -361,7 +361,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
361
361
  prefix: s.prefix || l.value.chart.labels.prefix,
362
362
  suffix: s.suffix || l.value.chart.labels.suffix
363
363
  }));
364
- Ol("selectTimeLabel", {
364
+ Tl("selectTimeLabel", {
365
365
  datapoint: e,
366
366
  absoluteIndex: a.absoluteIndex,
367
367
  label: a.text
@@ -374,11 +374,11 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
374
374
  function ya() {
375
375
  f.value.isStacked = !f.value.isStacked, f.value.isStacked ? f.value.useIndividualScale = !0 : f.value.useIndividualScale = l.value.chart.grid.labels.yAxis.useIndividualScale;
376
376
  }
377
- function Jl(a) {
377
+ function Zl(a) {
378
378
  hl.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`));
379
379
  }
380
380
  function mt(a, c) {
381
- let e = Array(a).fill(0);
381
+ let e = Array(Math.abs(a)).fill(0);
382
382
  for (let s = 0; s < c.length && s < a; s += 1)
383
383
  e[s] = c[s];
384
384
  return e;
@@ -387,14 +387,20 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
387
387
  const c = Math.max(...me.value.map((e) => Ye({ data: e.series, threshold: l.value.downsample.threshold }).length));
388
388
  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;
389
389
  }
390
- async function Kl() {
391
- (l.value.chart.zoom.startIndex !== null || l.value.chart.zoom.endIndex !== null) && Se.value ? (l.value.chart.zoom.startIndex !== null && (await bl(), await bl(), Se.value.setStartValue(l.value.chart.zoom.startIndex)), l.value.chart.zoom.endIndex !== null && (await bl(), await bl(), Se.value.setEndValue(yt(l.value.chart.zoom.endIndex + 1)))) : (S.value = {
392
- start: 0,
393
- end: Math.max(...me.value.map((a) => Ye({ data: a.series, threshold: l.value.downsample.threshold }).length))
394
- }, Bl.value += 1);
390
+ async function Jl() {
391
+ await jl(), await jl();
392
+ const { startIndex: a, endIndex: c } = l.value.chart.zoom, e = Ne.value, s = Math.max(
393
+ ...me.value.map(
394
+ (t) => Ye({
395
+ data: t.series,
396
+ threshold: l.value.downsample.threshold
397
+ }).length
398
+ )
399
+ );
400
+ (a != null || c != null) && e ? (a != null && e.setStartValue(a), c != null && e.setEndValue(yt(c + 1))) : (S.value = { start: 0, end: s }, Rl.value += 1);
395
401
  }
396
402
  function pt() {
397
- Kl();
403
+ Jl();
398
404
  }
399
405
  function fe(a) {
400
406
  return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(a);
@@ -405,21 +411,21 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
405
411
  }
406
412
  const ie = $(() => isNaN(Ge(cl.value)) ? n.value.bottom : n.value.bottom - n.value.height * Ge(cl.value));
407
413
  function ka(a) {
408
- const c = ![null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) && l.value.chart.grid.labels.yAxis.scaleMin > 0 && Dl.value >= 0 ? n.value.bottom : ie.value;
414
+ const c = ![null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) && l.value.chart.grid.labels.yAxis.scaleMin > 0 && Gl.value >= 0 ? n.value.bottom : ie.value;
409
415
  return a.value >= 0 ? T(c - a.y <= 0 ? 1e-5 : c - a.y) : T(a.y - ie.value <= 0 ? 1e-5 : a.y - ie.value);
410
416
  }
411
417
  function _a(a) {
412
418
  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);
413
419
  }
414
420
  const Z = $(() => ({
415
- bar: n.value.width / b.value / Ie.value.filter((a) => a.type === "bar").filter((a) => !te.value.includes(a.id)).length,
421
+ bar: n.value.width / b.value / Ce.value.filter((a) => a.type === "bar").filter((a) => !te.value.includes(a.id)).length,
416
422
  plot: n.value.width / b.value,
417
423
  line: n.value.width / b.value
418
424
  }));
419
425
  function ke() {
420
426
  return f.value.useIndividualScale && f.value.isStacked ? Z.value.line - n.value.width / b.value * 0.1 : Z.value.bar;
421
427
  }
422
- function Al(a) {
428
+ function Ll(a) {
423
429
  return f.value.useIndividualScale && f.value.isStacked ? a.x + n.value.width / b.value * 0.05 : a.x + Z.value.bar / 2;
424
430
  }
425
431
  function wa(a) {
@@ -429,7 +435,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
429
435
  return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(a.zeroPosition) ? 0 : a.zeroPosition;
430
436
  }
431
437
  function kt(a) {
432
- Ol(
438
+ Tl(
433
439
  "selectX",
434
440
  {
435
441
  dataset: pe.value.map((c) => ({
@@ -444,7 +450,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
444
450
  );
445
451
  }
446
452
  function _t() {
447
- return Te.value.map((a) => ({
453
+ return Ie.value.map((a) => ({
448
454
  values: a.absoluteValues,
449
455
  color: a.color,
450
456
  name: a.name,
@@ -467,15 +473,15 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
467
473
  if (te.value.includes(a.id))
468
474
  te.value = te.value.filter((c) => c !== a.id);
469
475
  else {
470
- if (te.value.length + 1 === Ie.value.length) return;
476
+ if (te.value.length + 1 === Ce.value.length) return;
471
477
  te.value.push(a.id);
472
478
  }
473
- Ol("selectLegend", pe.value.map((c) => ({
479
+ Tl("selectLegend", pe.value.map((c) => ({
474
480
  name: c.name,
475
481
  values: c.absoluteValues,
476
482
  color: c.color,
477
483
  type: c.type
478
- }))), Yl.value += 1;
484
+ }))), Bl.value += 1;
479
485
  }
480
486
  const St = $(() => {
481
487
  const a = l.value.chart.title.text || "Chart visualization", c = l.value.chart.title.subtitle.text || "";
@@ -520,7 +526,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
520
526
  fontFamily: l.value.chart.fontFamily,
521
527
  prefix: l.value.chart.labels.prefix,
522
528
  suffix: l.value.chart.labels.suffix,
523
- colNames: le.value.map((a) => a.text),
529
+ colNames: J.value.map((a) => a.text),
524
530
  thead: {
525
531
  backgroundColor: l.value.table.th.backgroundColor,
526
532
  color: l.value.table.th.color,
@@ -534,7 +540,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
534
540
  userOptions: {
535
541
  show: !1
536
542
  }
537
- })), G = $(() => l.value.chart.grid.position === "middle" ? 0 : n.value.width / b.value / 2), De = $(() => qt(Te.value.filter((a) => !te.value.includes(a.id)))), p = $(() => {
543
+ })), G = $(() => l.value.chart.grid.position === "middle" ? 0 : n.value.width / b.value / 2), De = $(() => qt(Ie.value.filter((a) => !te.value.includes(a.id)))), p = $(() => {
538
544
  const a = Object.groupBy(De.value, (e) => e.scaleLabel), c = {};
539
545
  for (const [e, s] of Object.entries(a)) {
540
546
  const t = s.flatMap((r) => r.absoluteValues);
@@ -546,9 +552,9 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
546
552
  }
547
553
  return c;
548
554
  }), Ct = $(() => {
549
- const a = Ie.value.filter((c) => c.type === "bar").filter((c) => !te.value.includes(c.id)).length;
550
- return n.value.width / b.value / a - Oe.value * a;
551
- }), Oe = $(() => Z.value.line * l.value.bar.periodGap), It = $(() => {
555
+ const a = Ce.value.filter((c) => c.type === "bar").filter((c) => !te.value.includes(c.id)).length;
556
+ return n.value.width / b.value / a - Te.value * a;
557
+ }), Te = $(() => Z.value.line * l.value.bar.periodGap), It = $(() => {
552
558
  if (!l.value.chart.zoom.minimap.show) return [];
553
559
  const a = At.value.filter((t) => !te.value.includes(t.id)), c = Math.max(...a.map((t) => t.series.length)), e = [];
554
560
  for (let t = 0; t < c; t += 1)
@@ -582,23 +588,23 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
582
588
  return t - C * r;
583
589
  };
584
590
  return c.map((L) => {
585
- const { yAxis: { yTop: C, yBottom: Y, label: _ } } = L, N = C != null && Y != null && C !== Y, A = C == null ? null : E(C), J = Y == null ? null : E(Y), oe = xt(_.fontSize);
591
+ const { yAxis: { yTop: C, yBottom: Y, label: _ } } = L, N = C != null && Y != null && C !== Y, A = C == null ? null : E(C), K = Y == null ? null : E(Y), oe = xt(_.fontSize);
586
592
  oe.font = `${_.fontSize}px sans-serif`;
587
- const D = oe.measureText(_.text).width, ge = _.fontSize, Ae = (_.position === "start" ? e + _.padding.left : s - _.padding.right) + _.offsetX, de = (A != null && J != null ? Math.min(A, J) : A ?? J) - _.fontSize / 3 + _.offsetY - _.padding.top;
593
+ const D = oe.measureText(_.text).width, ge = _.fontSize, Le = (_.position === "start" ? e + _.padding.left : s - _.padding.right) + _.offsetX, de = (A != null && K != null ? Math.min(A, K) : A ?? K) - _.fontSize / 3 + _.offsetY - _.padding.top;
588
594
  let P;
589
- _.textAnchor === "middle" ? P = Ae - D / 2 - _.padding.left : _.textAnchor === "end" ? P = Ae - D - _.padding.right : P = Ae - _.padding.left;
595
+ _.textAnchor === "middle" ? P = Le - D / 2 - _.padding.left : _.textAnchor === "end" ? P = Le - D - _.padding.right : P = Le - _.padding.left;
590
596
  const H = de - ge * 0.75 - _.padding.top;
591
597
  return {
592
- show: ![A, J, H].includes(NaN),
598
+ show: ![A, K, H].includes(NaN),
593
599
  id: `annotation_y_${ea()}`,
594
600
  hasArea: N,
595
- areaHeight: N ? Math.abs(A - J) : 0,
601
+ areaHeight: N ? Math.abs(A - K) : 0,
596
602
  yTop: A,
597
- yBottom: J,
603
+ yBottom: K,
598
604
  config: L.yAxis,
599
605
  x1: e,
600
606
  x2: s,
601
- _text: { x: Ae, y: de },
607
+ _text: { x: Le, y: de },
602
608
  _box: {
603
609
  x: P,
604
610
  y: H,
@@ -615,7 +621,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
615
621
  }), Pe = $(() => {
616
622
  const a = De.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, r = n.value.height - t;
617
623
  return a.filter((o) => o.type === "bar").map((o, B) => {
618
- Jl(o);
624
+ Zl(o);
619
625
  const F = p.value[o.scaleLabel].min, E = p.value[o.scaleLabel].max;
620
626
  o.absoluteValues.filter((V) => ![null, void 0].includes(V)).map((V) => (V - F) / (E - F));
621
627
  const L = {
@@ -624,55 +630,55 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
624
630
  }, C = {
625
631
  max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
626
632
  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)))
627
- }, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ? ml(C.min, C.max === C.min ? C.max * _ : C.max, Y) : Ke(C.min, C.max === C.min ? C.max * _ : C.max, Y), A = l.value.chart.grid.labels.yAxis.useNiceScale ? ml(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * _ : L.valueMax, Y) : Ke(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * _ : L.valueMax, Y), J = N.min >= 0 ? 0 : Math.abs(N.min), oe = 0, D = N.max + J, ge = A.max + Math.abs(oe), Ae = o.stackIndex, tl = c - 1 - Ae, de = s ? 1 - o.cumulatedStackRatio : 0, P = s ? r * de + e * tl : 0, H = s ? r * o.stackRatio : n.value.height, K = n.value.bottom - P - H * J / D, he = n.value.bottom - P - H * oe / ge, ne = Te.value.filter((V) => V.type === "bar").filter((V) => !te.value.includes(V.id)).length, fl = o.series.map((V, j) => {
628
- const Re = f.value.useIndividualScale ? (o.absoluteValues[j] + J) / D : Ge(V), qe = f.value.useIndividualScale && f.value.isStacked ? n.value.left + n.value.width / b.value * j : n.value.left + Z.value.bar * B + Z.value.bar * j * ne - Ct.value / 2 - B * Oe.value;
633
+ }, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ? bl(C.min, C.max === C.min ? C.max * _ : C.max, Y) : Ke(C.min, C.max === C.min ? C.max * _ : C.max, Y), A = l.value.chart.grid.labels.yAxis.useNiceScale ? bl(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * _ : L.valueMax, Y) : Ke(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * _ : L.valueMax, Y), K = N.min >= 0 ? 0 : Math.abs(N.min), oe = 0, D = N.max + K, ge = A.max + Math.abs(oe), Le = o.stackIndex, tl = c - 1 - Le, de = s ? 1 - o.cumulatedStackRatio : 0, P = s ? r * de + e * tl : 0, H = s ? r * o.stackRatio : n.value.height, Q = n.value.bottom - P - H * K / D, he = n.value.bottom - P - H * oe / ge, ne = Ie.value.filter((V) => V.type === "bar").filter((V) => !te.value.includes(V.id)).length, fl = o.series.map((V, ee) => {
634
+ const Re = f.value.useIndividualScale ? (o.absoluteValues[ee] + K) / D : Ge(V), qe = f.value.useIndividualScale && f.value.isStacked ? n.value.left + n.value.width / b.value * ee : n.value.left + Z.value.bar * B + Z.value.bar * ee * ne - Ct.value / 2 - B * Te.value;
629
635
  return {
630
636
  yOffset: T(P),
631
637
  individualHeight: T(H),
632
638
  x: T(qe),
633
639
  y: n.value.bottom - P - H * Re,
634
- value: o.absoluteValues[j],
635
- zeroPosition: T(K),
640
+ value: o.absoluteValues[ee],
641
+ zeroPosition: T(Q),
636
642
  individualMax: T(D),
637
- comment: o.comments && o.comments.slice(S.value.start, S.value.end)[j] || ""
643
+ comment: o.comments && o.comments.slice(S.value.start, S.value.end)[ee] || ""
638
644
  };
639
- }), ce = o.absoluteValues.map((V) => A.min >= 0 ? (V - Math.abs(A.min)) / (A.max - Math.abs(A.min)) : (V + Math.abs(A.min)) / (A.max + Math.abs(A.min))), He = o.series.map((V, j) => {
640
- const Re = f.value.useIndividualScale && f.value.isStacked ? n.value.left + n.value.width / b.value * j : n.value.left - Z.value.bar / 2 + Z.value.bar * B + Z.value.bar * j * Te.value.filter((qe) => qe.type === "bar").filter((qe) => !te.value.includes(qe.id)).length;
645
+ }), ce = o.absoluteValues.map((V) => A.min >= 0 ? (V - Math.abs(A.min)) / (A.max - Math.abs(A.min)) : (V + Math.abs(A.min)) / (A.max + Math.abs(A.min))), He = o.series.map((V, ee) => {
646
+ const Re = f.value.useIndividualScale && f.value.isStacked ? n.value.left + n.value.width / b.value * ee : n.value.left - Z.value.bar / 2 + Z.value.bar * B + Z.value.bar * ee * Ie.value.filter((qe) => qe.type === "bar").filter((qe) => !te.value.includes(qe.id)).length;
641
647
  return {
642
648
  yOffset: T(P),
643
649
  individualHeight: T(H),
644
650
  x: T(Re),
645
- y: T(n.value.bottom - T(P) - (T(H) * ce[j] || 0)),
646
- value: o.absoluteValues[j],
647
- zeroPosition: T(K),
651
+ y: T(n.value.bottom - T(P) - (T(H) * ce[ee] || 0)),
652
+ value: o.absoluteValues[ee],
653
+ zeroPosition: T(Q),
648
654
  individualMax: T(D),
649
- comment: o.comments && o.comments.slice(S.value.start, S.value.end)[j] || ""
655
+ comment: o.comments && o.comments.slice(S.value.start, S.value.end)[ee] || ""
650
656
  };
651
657
  }), W = N.ticks.map((V) => ({
652
- y: V >= 0 ? K - H * (V / D) : K + H * Math.abs(V) / D,
658
+ y: V >= 0 ? Q - H * (V / D) : Q + H * Math.abs(V) / D,
653
659
  value: V,
654
660
  prefix: o.prefix || l.value.chart.labels.prefix,
655
661
  suffix: o.suffix || l.value.chart.labels.suffix,
656
662
  datapoint: o
657
- })), Q = A.ticks.map((V) => {
658
- const j = (V - A.min) / (A.max - A.min);
663
+ })), j = A.ticks.map((V) => {
664
+ const ee = (V - A.min) / (A.max - A.min);
659
665
  return {
660
- y: V >= 0 ? he - H * j : he + H * j,
666
+ y: V >= 0 ? he - H * ee : he + H * ee,
661
667
  value: V,
662
668
  prefix: o.prefix || l.value.chart.labels.prefix,
663
669
  suffix: o.suffix || l.value.chart.labels.suffix,
664
670
  datapoint: o
665
671
  };
666
672
  });
667
- 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 ? Q : W, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? he : K, p.value[o.scaleLabel].individualMax = o.autoScaling ? ge : 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 = Q, p.value[o.scaleLabel].unique = De.value.filter((V) => V.scaleLabel === o.scaleLabel).length === 1, {
673
+ 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 ? j : W, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? he : Q, p.value[o.scaleLabel].individualMax = o.autoScaling ? ge : 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 = j, p.value[o.scaleLabel].unique = De.value.filter((V) => V.scaleLabel === o.scaleLabel).length === 1, {
668
674
  ...o,
669
675
  yOffset: P,
670
- autoScaleYLabels: Q,
676
+ autoScaleYLabels: j,
671
677
  individualHeight: H,
672
- scaleYLabels: o.autoScaling ? Q : W,
678
+ scaleYLabels: o.autoScaling ? j : W,
673
679
  individualScale: o.autoScaling ? A : N,
674
680
  individualMax: o.autoScaling ? ge : D,
675
- zeroPosition: o.autoScaling ? he : K,
681
+ zeroPosition: o.autoScaling ? he : Q,
676
682
  plots: o.autoScaling ? He : fl,
677
683
  groupId: p.value[o.scaleLabel].groupId
678
684
  };
@@ -680,7 +686,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
680
686
  }), _e = $(() => {
681
687
  const a = De.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, r = n.value.height - t;
682
688
  return a.filter((o) => o.type === "line").map((o, B) => {
683
- Jl(o);
689
+ Zl(o);
684
690
  const F = p.value[o.scaleLabel].min, E = p.value[o.scaleLabel].max;
685
691
  o.absoluteValues.filter((I) => ![null, void 0].includes(I)).map((I) => (I - F) / (E - F));
686
692
  const L = {
@@ -689,8 +695,8 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
689
695
  }, C = {
690
696
  max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
691
697
  min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
692
- }, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ? ml(C.min, C.max === C.min ? C.max * _ : C.max, Y) : Ke(C.min, C.max === C.min ? C.max * _ : C.max, Y), A = l.value.chart.grid.labels.yAxis.useNiceScale ? ml(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * _ : L.valueMax, Y) : Ke(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * _ : L.valueMax, Y), J = N.min >= 0 ? 0 : Math.abs(N.min), oe = 0, D = N.max + Math.abs(J), ge = A.max + Math.abs(oe), Ae = o.stackIndex, tl = c - 1 - Ae, de = s ? 1 - o.cumulatedStackRatio : 0, P = s ? r * de + e * tl : 0, H = s ? r * o.stackRatio : n.value.height, K = n.value.bottom - P - H * J / D, he = n.value.bottom - P - H * oe / ge, ne = o.series.map((I, se) => {
693
- const Ot = f.value.useIndividualScale ? (o.absoluteValues[se] + Math.abs(J)) / D : Ge(I);
698
+ }, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ? bl(C.min, C.max === C.min ? C.max * _ : C.max, Y) : Ke(C.min, C.max === C.min ? C.max * _ : C.max, Y), A = l.value.chart.grid.labels.yAxis.useNiceScale ? bl(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * _ : L.valueMax, Y) : Ke(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * _ : L.valueMax, Y), K = N.min >= 0 ? 0 : Math.abs(N.min), oe = 0, D = N.max + Math.abs(K), ge = A.max + Math.abs(oe), Le = o.stackIndex, tl = c - 1 - Le, de = s ? 1 - o.cumulatedStackRatio : 0, P = s ? r * de + e * tl : 0, H = s ? r * o.stackRatio : n.value.height, Q = n.value.bottom - P - H * K / D, he = n.value.bottom - P - H * oe / ge, ne = o.series.map((I, se) => {
699
+ const Ot = f.value.useIndividualScale ? (o.absoluteValues[se] + Math.abs(K)) / D : Ge(I);
694
700
  return {
695
701
  x: T(n.value.left + Z.value.line / 2 + Z.value.line * se),
696
702
  y: T(n.value.bottom - P - H * Ot),
@@ -699,7 +705,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
699
705
  };
700
706
  }), fl = o.absoluteValues.map((I) => A.min >= 0 ? (I - Math.abs(A.min)) / (A.max - Math.abs(A.min)) : (I + Math.abs(A.min)) / (A.max + Math.abs(A.min))), ce = o.series.map((I, se) => [void 0, null].includes(o.absoluteValues[se]) ? {
701
707
  x: T(n.value.left + Z.value.line / 2 + Z.value.line * se),
702
- y: K,
708
+ y: Q,
703
709
  value: o.absoluteValues[se],
704
710
  comment: o.comments && o.comments.slice(S.value.start, S.value.end)[se] || ""
705
711
  } : {
@@ -707,8 +713,8 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
707
713
  y: T(n.value.bottom - P - (H * fl[se] || 0)),
708
714
  value: o.absoluteValues[se],
709
715
  comment: o.comments && o.comments.slice(S.value.start, S.value.end)[se] || ""
710
- }), He = l.value.line.cutNullValues ? Fa(ne) : Ea(ne.filter((I) => I.value !== null)), W = l.value.line.cutNullValues ? Fa(ce) : Ea(ce.filter((I) => I.value !== null)), Q = l.value.line.cutNullValues ? Wa(ne) : Xa(ne.filter((I) => I.value !== null)), V = l.value.line.cutNullValues ? Wa(ce) : Xa(ce.filter((I) => I.value !== null)), j = N.ticks.map((I) => ({
711
- y: I >= 0 ? K - H * (I / D) : K + H * Math.abs(I) / D,
716
+ }), He = l.value.line.cutNullValues ? Fa(ne) : Ea(ne.filter((I) => I.value !== null)), W = l.value.line.cutNullValues ? Fa(ce) : Ea(ce.filter((I) => I.value !== null)), j = l.value.line.cutNullValues ? Wa(ne) : Xa(ne.filter((I) => I.value !== null)), V = l.value.line.cutNullValues ? Wa(ce) : Xa(ce.filter((I) => I.value !== null)), ee = N.ticks.map((I) => ({
717
+ y: I >= 0 ? Q - H * (I / D) : Q + H * Math.abs(I) / D,
712
718
  value: I,
713
719
  prefix: o.prefix || l.value.chart.labels.prefix,
714
720
  suffix: o.suffix || l.value.chart.labels.suffix,
@@ -723,17 +729,17 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
723
729
  datapoint: o
724
730
  };
725
731
  });
726
- 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 ? Re : j, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? he : K, p.value[o.scaleLabel].individualMax = o.autoScaling ? ge : 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 = Re, p.value[o.scaleLabel].unique = De.value.filter((I) => I.scaleLabel === o.scaleLabel).length === 1;
727
- const qe = f.value.useIndividualScale ? o.autoScaling ? he : K : ie.value, gl = Math.max(Math.max(o.autoScaling ? he : j.at(-1) ? j.at(-1).y : 0, n.value.top), qe);
732
+ 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 ? Re : ee, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? he : Q, p.value[o.scaleLabel].individualMax = o.autoScaling ? ge : 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 = Re, p.value[o.scaleLabel].unique = De.value.filter((I) => I.scaleLabel === o.scaleLabel).length === 1;
733
+ const qe = f.value.useIndividualScale ? o.autoScaling ? he : Q : ie.value, gl = Math.max(Math.max(o.autoScaling ? he : ee.at(-1) ? ee.at(-1).y : 0, n.value.top), qe);
728
734
  return {
729
735
  ...o,
730
736
  yOffset: P,
731
737
  autoScaleYLabels: Re,
732
738
  individualHeight: H,
733
- scaleYLabels: o.autoScaling ? Re : j,
739
+ scaleYLabels: o.autoScaling ? Re : ee,
734
740
  individualScale: o.autoScaling ? A : N,
735
741
  individualMax: o.autoScaling ? ge : D,
736
- zeroPosition: o.autoScaling ? he : K,
742
+ zeroPosition: o.autoScaling ? he : Q,
737
743
  curve: o.autoScaling ? W : He,
738
744
  plots: o.autoScaling ? ce : ne,
739
745
  area: o.useArea ? f.value.useIndividualScale ? l.value.line.cutNullValues ? Ga(
@@ -748,14 +754,14 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
748
754
  gl,
749
755
  l.value.line.cutNullValues
750
756
  ) : [],
751
- straight: o.autoScaling ? V : Q,
757
+ straight: o.autoScaling ? V : j,
752
758
  groupId: p.value[o.scaleLabel].groupId
753
759
  };
754
760
  });
755
- }), Le = $(() => {
761
+ }), $e = $(() => {
756
762
  const a = De.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, r = n.value.height - t;
757
763
  return a.filter((o) => o.type === "plot").map((o) => {
758
- Jl(o);
764
+ Zl(o);
759
765
  const B = p.value[o.scaleLabel].min, F = p.value[o.scaleLabel].max;
760
766
  o.absoluteValues.filter((W) => ![null, void 0].includes(W)).map((W) => (W - B) / (F - B));
761
767
  const E = {
@@ -764,19 +770,19 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
764
770
  }, L = {
765
771
  max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
766
772
  min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
767
- }, C = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, Y = 1.0000001, _ = Ke(L.min, L.max === L.min ? L.max * Y : L.max, C), N = Ke(E.valueMin, E.valueMax === E.valueMin ? E.valueMax * Y : E.valueMax, C), A = _.min >= 0 ? 0 : Math.abs(_.min), J = 0, oe = _.max + A, D = N.max + Math.abs(J), ge = o.stackIndex, Ae = c - 1 - ge, tl = s ? 1 - o.cumulatedStackRatio : 0, de = s ? r * tl + e * Ae : 0, P = s ? r * o.stackRatio : n.value.height, H = n.value.bottom - de - P * A / oe, K = n.value.bottom - de - P * J / D, he = o.series.map((W, Q) => {
768
- const V = f.value.useIndividualScale ? (o.absoluteValues[Q] + Math.abs(A)) / oe : Ge(W);
773
+ }, C = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, Y = 1.0000001, _ = Ke(L.min, L.max === L.min ? L.max * Y : L.max, C), N = Ke(E.valueMin, E.valueMax === E.valueMin ? E.valueMax * Y : E.valueMax, C), A = _.min >= 0 ? 0 : Math.abs(_.min), K = 0, oe = _.max + A, D = N.max + Math.abs(K), ge = o.stackIndex, Le = c - 1 - ge, tl = s ? 1 - o.cumulatedStackRatio : 0, de = s ? r * tl + e * Le : 0, P = s ? r * o.stackRatio : n.value.height, H = n.value.bottom - de - P * A / oe, Q = n.value.bottom - de - P * K / D, he = o.series.map((W, j) => {
774
+ const V = f.value.useIndividualScale ? (o.absoluteValues[j] + Math.abs(A)) / oe : Ge(W);
769
775
  return {
770
- x: T(n.value.left + Z.value.plot / 2 + Z.value.plot * Q),
776
+ x: T(n.value.left + Z.value.plot / 2 + Z.value.plot * j),
771
777
  y: T(n.value.bottom - de - P * V),
772
- value: o.absoluteValues[Q],
773
- comment: o.comments && o.comments.slice(S.value.start, S.value.end)[Q] || ""
778
+ value: o.absoluteValues[j],
779
+ comment: o.comments && o.comments.slice(S.value.start, S.value.end)[j] || ""
774
780
  };
775
- }), 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))), fl = o.series.map((W, Q) => ({
776
- x: T(n.value.left + Z.value.plot / 2 + Z.value.plot * Q),
777
- y: T(n.value.bottom - de - (P * ne[Q] || 0)),
778
- value: o.absoluteValues[Q],
779
- comment: o.comments && o.comments.slice(S.value.start, S.value.end)[Q] || ""
781
+ }), 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))), fl = o.series.map((W, j) => ({
782
+ x: T(n.value.left + Z.value.plot / 2 + Z.value.plot * j),
783
+ y: T(n.value.bottom - de - (P * ne[j] || 0)),
784
+ value: o.absoluteValues[j],
785
+ comment: o.comments && o.comments.slice(S.value.start, S.value.end)[j] || ""
780
786
  })), ce = _.ticks.map((W) => ({
781
787
  y: W >= 0 ? H - P * (W / oe) : H + P * Math.abs(W) / oe,
782
788
  value: W,
@@ -784,16 +790,16 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
784
790
  suffix: o.suffix || l.value.chart.labels.suffix,
785
791
  datapoint: o
786
792
  })), He = N.ticks.map((W) => {
787
- const Q = (W - N.min) / (N.max - N.min);
793
+ const j = (W - N.min) / (N.max - N.min);
788
794
  return {
789
- y: W >= 0 ? K - P * Q : K + P * Q,
795
+ y: W >= 0 ? Q - P * j : Q + P * j,
790
796
  value: W,
791
797
  prefix: o.prefix || l.value.chart.labels.prefix,
792
798
  suffix: o.suffix || l.value.chart.labels.suffix,
793
799
  datapoint: o
794
800
  };
795
801
  });
796
- 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 ? He : ce, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? K : H, p.value[o.scaleLabel].individualMax = o.autoScaling ? D : oe, p.value[o.scaleLabel].scaleLabel = o.scaleLabel, p.value[o.scaleLabel].id = o.id, p.value[o.scaleLabel].yOffset = de, p.value[o.scaleLabel].individualHeight = P, p.value[o.scaleLabel].autoScaleYLabels = He, p.value[o.scaleLabel].unique = De.value.filter((W) => W.scaleLabel === o.scaleLabel).length === 1, {
802
+ 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 ? He : ce, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? Q : H, p.value[o.scaleLabel].individualMax = o.autoScaling ? D : oe, p.value[o.scaleLabel].scaleLabel = o.scaleLabel, p.value[o.scaleLabel].id = o.id, p.value[o.scaleLabel].yOffset = de, p.value[o.scaleLabel].individualHeight = P, p.value[o.scaleLabel].autoScaleYLabels = He, p.value[o.scaleLabel].unique = De.value.filter((W) => W.scaleLabel === o.scaleLabel).length === 1, {
797
803
  ...o,
798
804
  yOffset: de,
799
805
  autoScaleYLabels: He,
@@ -801,7 +807,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
801
807
  scaleYLabels: o.autoScaling ? He : ce,
802
808
  individualScale: o.autoScaling ? N : _,
803
809
  individualMax: o.autoScaling ? D : oe,
804
- zeroPosition: o.autoScaling ? K : H,
810
+ zeroPosition: o.autoScaling ? Q : H,
805
811
  plots: o.autoScaling ? fl : he,
806
812
  groupId: p.value[o.scaleLabel].groupId
807
813
  };
@@ -830,7 +836,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
830
836
  id: r.id,
831
837
  yOffset: r.yOffset || 0,
832
838
  individualHeight: r.individualHeight || n.value.height
833
- })), e = Le.value.map((r) => ({
839
+ })), e = $e.value.map((r) => ({
834
840
  name: r.name,
835
841
  color: r.color,
836
842
  scale: r.individualScale,
@@ -872,41 +878,41 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
872
878
  }), za = $(() => ({
873
879
  datapoint: vl.value,
874
880
  seriesIndex: k.value,
875
- series: Te.value,
881
+ series: Ie.value,
876
882
  bars: Pe.value,
877
883
  lines: _e.value,
878
- plots: Le.value,
884
+ plots: $e.value,
879
885
  config: l.value
880
886
  })), Tt = $(() => {
881
- let a = "", c = vl.value.map((t) => t.value).filter((t) => zl(t) && t !== null).reduce((t, r) => Math.abs(t) + Math.abs(r), 0);
882
- const e = le.value[k.value], s = l.value.chart.tooltip.customFormat;
887
+ let a = "", c = vl.value.map((t) => t.value).filter((t) => Ml(t) && t !== null).reduce((t, r) => Math.abs(t) + Math.abs(r), 0);
888
+ const e = J.value[k.value], s = l.value.chart.tooltip.customFormat;
883
889
  return Zt(s) && Jt(() => s({
884
890
  absoluteIndex: k.value + S.value.start,
885
891
  seriesIndex: k.value,
886
892
  datapoint: vl.value,
887
- series: Te.value,
893
+ series: Ie.value,
888
894
  bars: Pe.value,
889
895
  lines: _e.value,
890
- plots: Le.value,
896
+ plots: $e.value,
891
897
  config: l.value
892
898
  })) ? s({
893
899
  absoluteIndex: k.value + S.value.start,
894
900
  seriesIndex: k.value,
895
901
  datapoint: vl.value,
896
- series: Te.value,
902
+ series: Ie.value,
897
903
  bars: Pe.value,
898
904
  lines: _e.value,
899
- plots: Le.value,
905
+ plots: $e.value,
900
906
  config: l.value
901
907
  }) : (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>`), vl.value.forEach((t) => {
902
- if (zl(t.value)) {
908
+ if (Ml(t.value)) {
903
909
  let r = "", o = "";
904
910
  switch (il.value[t.type]) {
905
911
  case "bar":
906
912
  r = `<svg viewBox="0 0 40 40" height="14" width="14">${ta.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="${ta.pattern ? `url(#pattern_${U.value}_${t.slotAbsoluteIndex}` : t.color}" /></svg>`;
907
913
  break;
908
914
  case "line":
909
- !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="${ze({ 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="${ze({ 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="${ze({ 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="${ze({ 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="${ze({ 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="${qa({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), r = `<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>`;
915
+ !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="${Me({ 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="${Me({ 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="${Me({ 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="${Me({ 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="${Me({ 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="${qa({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), r = `<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>`;
910
916
  break;
911
917
  case "plot":
912
918
  if (!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape)) {
@@ -918,23 +924,23 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
918
924
  break;
919
925
  }
920
926
  if (t.shape === "triangle") {
921
- r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${ze({ 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>`;
927
+ r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Me({ 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>`;
922
928
  break;
923
929
  }
924
930
  if (t.shape === "square") {
925
- r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${ze({ 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>`;
931
+ r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Me({ 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>`;
926
932
  break;
927
933
  }
928
934
  if (t.shape === "diamond") {
929
- r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${ze({ 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>`;
935
+ r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Me({ 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>`;
930
936
  break;
931
937
  }
932
938
  if (t.shape === "pentagon") {
933
- r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${ze({ 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>`;
939
+ r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Me({ 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>`;
934
940
  break;
935
941
  }
936
942
  if (t.shape === "hexagon") {
937
- r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${ze({ 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>`;
943
+ r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Me({ 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>`;
938
944
  break;
939
945
  }
940
946
  }
@@ -956,19 +962,19 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
956
962
  }
957
963
  }), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${l.value.chart.tooltip.color}">${a}</div>`);
958
964
  }), Ca = $(() => {
959
- if (Ie.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
965
+ if (Ce.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
960
966
  const a = pe.value.map((e) => ({
961
967
  label: e.name,
962
968
  color: e.color,
963
969
  type: e.type
964
970
  })), c = [];
965
- return le.value.forEach((e, s) => {
971
+ return J.value.forEach((e, s) => {
966
972
  const t = [e.text];
967
973
  pe.value.forEach((r) => {
968
974
  t.push(fe(r.absoluteValues[s]) ? Number(r.absoluteValues[s].toFixed(l.value.table.rounding)) : "");
969
975
  }), c.push(t);
970
976
  }), { head: a, body: c };
971
- }), Ml = $(() => {
977
+ }), Al = $(() => {
972
978
  const a = l.value.table.showSum;
973
979
  let c = [""].concat(pe.value.map((r) => r.name));
974
980
  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>'));
@@ -977,7 +983,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
977
983
  const o = pe.value.map((B) => B.absoluteValues[r] ?? 0).reduce((B, F) => B + F, 0);
978
984
  e.push(
979
985
  [
980
- le.value[r].text ?? "-"
986
+ J.value[r].text ?? "-"
981
987
  ].concat(pe.value.map(
982
988
  (B) => re(
983
989
  B.type === "line" ? l.value.line.labels.formatter : B.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
@@ -1028,7 +1034,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1028
1034
  }
1029
1035
  function Ha() {
1030
1036
  if (!l.value.responsiveProportionalSizing) {
1031
- 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, $e.value.plot = l.value.plot.radius, $e.value.line = l.value.line.radius;
1037
+ 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, Se.value.plot = l.value.plot.radius, Se.value.line = l.value.line.radius;
1032
1038
  return;
1033
1039
  }
1034
1040
  x.value.dataLabels = ol({
@@ -1055,13 +1061,13 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1055
1061
  source: l.value.chart.labels.fontSize,
1056
1062
  threshold: 10,
1057
1063
  fallback: 10
1058
- }), $e.value.plot = ol({
1064
+ }), Se.value.plot = ol({
1059
1065
  relator: ae.value,
1060
1066
  adjuster: 800,
1061
1067
  source: l.value.plot.radius,
1062
1068
  threshold: 1,
1063
1069
  fallback: 1
1064
- }), $e.value.line = ol({
1070
+ }), Se.value.line = ol({
1065
1071
  relator: ae.value,
1066
1072
  adjuster: 800,
1067
1073
  source: l.value.line.radius,
@@ -1075,21 +1081,21 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1075
1081
  componentName: "VueUiXy",
1076
1082
  type: "dataset",
1077
1083
  debug: hl.value
1078
- }), wl.value = !0) : m.dataset.forEach((c, e) => {
1084
+ }), _l.value = !0) : m.dataset.forEach((c, e) => {
1079
1085
  [null, void 0].includes(c.name) && (la({
1080
1086
  componentName: "VueUiXy",
1081
1087
  type: "datasetSerieAttribute",
1082
1088
  property: "name (string)",
1083
1089
  index: e,
1084
1090
  debug: hl.value
1085
- }), wl.value = !0);
1091
+ }), _l.value = !0);
1086
1092
  }), hl.value && m.dataset.forEach((c) => {
1087
1093
  c.series.forEach((e, s) => {
1088
- zl(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
1094
+ Ml(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
1089
1095
  -----> The serie '${c.name}' contains the value '${e}' at index ${s}.
1090
1096
  '${e}' was converted to null to allow the chart to display.`);
1091
1097
  });
1092
- }), Ua(m.dataset) || (wl.value = l.value.loading), na.value = l.value.chart.userOptions.showOnChartHover, Fl.value = l.value.chart.userOptions.keepStateOnChartLeave, kl.value = !l.value.chart.userOptions.showOnChartHover, f.value = {
1098
+ }), Ua(m.dataset) || (_l.value = l.value.loading), na.value = l.value.chart.userOptions.showOnChartHover, Yl.value = l.value.chart.userOptions.keepStateOnChartLeave, pl.value = !l.value.chart.userOptions.showOnChartHover, f.value = {
1093
1099
  dataLabels: {
1094
1100
  show: !0
1095
1101
  },
@@ -1101,55 +1107,55 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1101
1107
  const a = 12;
1102
1108
  if (l.value.responsive) {
1103
1109
  const e = je.value.parentNode;
1104
- We.value && (We.value.unobserve(Rl.value), We.value.disconnect());
1110
+ We.value && (We.value.unobserve(Hl.value), We.value.disconnect());
1105
1111
  const { height: s, width: t } = e.getBoundingClientRect();
1106
1112
  let r = null, o = 0;
1107
1113
  l.value.chart.title.show && sl.value && (r = sl.value, o = r.getBoundingClientRect().height);
1108
1114
  let B = null, F = 0;
1109
- l.value.chart.zoom.show && Ve.value > 6 && Wl.value && Se.value && Se.value.$el && (B = Se.value.$el, F = B.getBoundingClientRect().height);
1115
+ l.value.chart.zoom.show && Ve.value > 6 && El.value && Ne.value && Ne.value.$el && (B = Ne.value.$el, F = B.getBoundingClientRect().height);
1110
1116
  let E = null, L = 0;
1111
1117
  l.value.chart.legend.show && el.value && (E = el.value, L = E.getBoundingClientRect().height);
1112
1118
  let C = 0;
1113
1119
  ul.value && (C = ul.value.getBoundingClientRect().height);
1114
1120
  let Y = 0;
1115
- rl.value && (Y = rl.value.getBoundingClientRect().height), ve.value = s - o - L - F - C - Y - a, ae.value = t, yl.value = `0 0 ${ae.value < 0 ? 10 : ae.value} ${ve.value < 0 ? 10 : ve.value}`, Ha();
1121
+ rl.value && (Y = rl.value.getBoundingClientRect().height), ve.value = s - o - L - F - C - Y - a, ae.value = t, ml.value = `0 0 ${ae.value < 0 ? 10 : ae.value} ${ve.value < 0 ? 10 : ve.value}`, Ha();
1116
1122
  const _ = new ResizeObserver((N) => {
1117
1123
  for (const A of N)
1118
- l.value.chart.title.show && sl.value ? o = sl.value.getBoundingClientRect().height : o = 0, Se.value && Se.value.$el ? F = Se.value.$el.getBoundingClientRect().height : F = 0, el.value ? L = el.value.getBoundingClientRect().height : L = 0, ul.value ? C = ul.value.getBoundingClientRect().height : C = 0, rl.value ? Y = rl.value.getBoundingClientRect().height : Y = 0, requestAnimationFrame(() => {
1119
- ve.value = A.contentRect.height - o - L - F - C - Y - a, ae.value = A.contentBoxSize[0].inlineSize, yl.value = `0 0 ${ae.value < 0 ? 10 : ae.value} ${ve.value < 0 ? 10 : ve.value}`, Ha();
1124
+ l.value.chart.title.show && sl.value ? o = sl.value.getBoundingClientRect().height : o = 0, Ne.value && Ne.value.$el ? F = Ne.value.$el.getBoundingClientRect().height : F = 0, el.value ? L = el.value.getBoundingClientRect().height : L = 0, ul.value ? C = ul.value.getBoundingClientRect().height : C = 0, rl.value ? Y = rl.value.getBoundingClientRect().height : Y = 0, requestAnimationFrame(() => {
1125
+ ve.value = A.contentRect.height - o - L - F - C - Y - a, ae.value = A.contentBoxSize[0].inlineSize, ml.value = `0 0 ${ae.value < 0 ? 10 : ae.value} ${ve.value < 0 ? 10 : ve.value}`, Ha();
1120
1126
  });
1121
1127
  });
1122
- We.value = _, Rl.value = e, _.observe(e);
1128
+ We.value = _, Hl.value = e, _.observe(e);
1123
1129
  } else
1124
- ve.value = l.value.chart.height, ae.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, $e.value.plot = l.value.plot.radius, $e.value.line = l.value.line.radius, yl.value = `0 0 ${ae.value} ${ve.value}`;
1130
+ ve.value = l.value.chart.height, ae.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, Se.value.plot = l.value.plot.radius, Se.value.line = l.value.line.radius, ml.value = `0 0 ${ae.value} ${ve.value}`;
1125
1131
  }
1126
1132
  return Ba(() => {
1127
- Ra(), Kl(), document.addEventListener("mousemove", (a) => {
1133
+ Ra(), Jl(), document.addEventListener("mousemove", (a) => {
1128
1134
  rt.value = {
1129
1135
  x: a.clientX,
1130
1136
  y: a.clientY
1131
1137
  };
1132
1138
  }), document.addEventListener("scroll", xa);
1133
1139
  }), Ya(() => {
1134
- document.removeEventListener("scroll", xa), We.value && (We.value.unobserve(Rl.value), We.value.disconnect());
1140
+ document.removeEventListener("scroll", xa), We.value && (We.value.unobserve(Hl.value), We.value.disconnect());
1135
1141
  }), oo({
1136
1142
  timeLabelsEls: ll,
1137
- timeLabels: le,
1143
+ timeLabels: J,
1138
1144
  slicer: S,
1139
1145
  configRef: l,
1140
1146
  rotationPath: ["chart", "grid", "labels", "xAxisLabels", "rotation"],
1141
1147
  autoRotatePath: ["chart", "grid", "labels", "xAxisLabels", "autoRotate"],
1142
1148
  isAutoSize: ct
1143
- }), Ql(() => m.dataset, (a) => {
1144
- Array.isArray(a) && a.length > 0 && (wl.value = !1), Ve.value = Math.max(...me.value.map((c) => Ye({
1149
+ }), Kl(() => m.dataset, (a) => {
1150
+ Array.isArray(a) && a.length > 0 && (_l.value = !1), Ve.value = Math.max(...me.value.map((c) => Ye({
1145
1151
  data: c.series,
1146
1152
  threshold: l.value.downsample.threshold
1147
1153
  }).length)), S.value = {
1148
1154
  start: 0,
1149
1155
  end: Ve.value
1150
- }, Bl.value += 1, Yl.value += 1;
1151
- }, { deep: !0 }), Ql(() => m.config, (a) => {
1152
- Xl.value || (l.value = El()), Ra(), ia.value += 1, ra.value += 1, f.value = {
1156
+ }, Rl.value += 1, Bl.value += 1;
1157
+ }, { deep: !0 }), Kl(() => m.config, (a) => {
1158
+ Wl.value || (l.value = Fl()), Ra(), ia.value += 1, ra.value += 1, f.value = {
1153
1159
  dataLabels: {
1154
1160
  show: !0
1155
1161
  },
@@ -1158,7 +1164,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1158
1164
  isStacked: l.value.chart.grid.labels.yAxis.stacked,
1159
1165
  useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
1160
1166
  };
1161
- }, { deep: !0 }), Ql(l, () => {
1167
+ }, { deep: !0 }), Kl(l, () => {
1162
1168
  f.value = {
1163
1169
  dataLabels: {
1164
1170
  show: !0
@@ -1178,7 +1184,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1178
1184
  toggleTable: Oa,
1179
1185
  toggleLabels: Na,
1180
1186
  toggleTooltip: Va,
1181
- toggleAnnotator: Zl,
1187
+ toggleAnnotator: Ul,
1182
1188
  toggleFullscreen: Pa
1183
1189
  }), (a, c) => (u(), i("div", {
1184
1190
  id: `vue-ui-xy_${U.value}`,
@@ -1189,13 +1195,13 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1189
1195
  onMouseenter: c[7] || (c[7] = () => ba(!0)),
1190
1196
  onMouseleave: c[8] || (c[8] = () => ba(!1))
1191
1197
  }, [
1192
- l.value.chart.userOptions.buttons.annotator && be.value ? (u(), Me(v(ot), {
1198
+ l.value.chart.userOptions.buttons.annotator && be.value ? (u(), Ae(v(ot), {
1193
1199
  key: 0,
1194
1200
  svgRef: be.value,
1195
1201
  backgroundColor: l.value.chart.backgroundColor,
1196
1202
  color: l.value.chart.color,
1197
- active: pl.value,
1198
- onClose: Zl
1203
+ active: yl.value,
1204
+ onClose: Ul
1199
1205
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
1200
1206
  $t.value ? (u(), i("div", {
1201
1207
  key: 1,
@@ -1211,7 +1217,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1211
1217
  class: "vue-ui-xy-title",
1212
1218
  style: z(`font-family:${l.value.chart.fontFamily}`)
1213
1219
  }, [
1214
- (u(), Me(uo, {
1220
+ (u(), Ae(uo, {
1215
1221
  key: `title_${ia.value}`,
1216
1222
  config: {
1217
1223
  title: {
@@ -1225,12 +1231,12 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1225
1231
  }
1226
1232
  }, null, 8, ["config"]))
1227
1233
  ], 4)) : d("", !0),
1228
- l.value.chart.userOptions.show && (Fl.value || kl.value) ? (u(), Me(v(ja), {
1234
+ l.value.chart.userOptions.show && (Yl.value || pl.value) ? (u(), Ae(v(ja), {
1229
1235
  ref: "defails",
1230
1236
  key: `user_options_${ua.value}`,
1231
1237
  backgroundColor: l.value.chart.backgroundColor,
1232
1238
  color: l.value.chart.color,
1233
- isPrinting: v(Gl),
1239
+ isPrinting: v(Xl),
1234
1240
  isImaging: v(ca),
1235
1241
  uid: U.value,
1236
1242
  hasTooltip: l.value.chart.userOptions.buttons.tooltip && l.value.chart.tooltip.show,
@@ -1239,7 +1245,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1239
1245
  hasImg: l.value.chart.userOptions.buttons.img,
1240
1246
  hasLabel: l.value.chart.userOptions.buttons.labels,
1241
1247
  hasTable: l.value.chart.userOptions.buttons.table,
1242
- hasStack: Tl.dataset.length > 1 && l.value.chart.userOptions.buttons.stack,
1248
+ hasStack: Il.dataset.length > 1 && l.value.chart.userOptions.buttons.stack,
1243
1249
  hasFullscreen: l.value.chart.userOptions.buttons.fullscreen,
1244
1250
  isStacked: f.value.isStacked,
1245
1251
  isFullscreen: al.value,
@@ -1248,7 +1254,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1248
1254
  isTooltip: f.value.showTooltip,
1249
1255
  titles: { ...l.value.chart.userOptions.buttonTitles },
1250
1256
  hasAnnotator: l.value.chart.userOptions.buttons.annotator,
1251
- isAnnotation: pl.value,
1257
+ isAnnotation: yl.value,
1252
1258
  callbacks: l.value.chart.userOptions.callbacks,
1253
1259
  printScale: l.value.chart.userOptions.print.scale,
1254
1260
  onToggleFullscreen: Pa,
@@ -1259,9 +1265,9 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1259
1265
  onToggleLabels: Na,
1260
1266
  onToggleStack: ya,
1261
1267
  onToggleTooltip: Va,
1262
- onToggleAnnotator: Zl,
1268
+ onToggleAnnotator: Ul,
1263
1269
  style: z({
1264
- visibility: Fl.value ? kl.value ? "visible" : "hidden" : "visible"
1270
+ visibility: Yl.value ? pl.value ? "visible" : "hidden" : "visible"
1265
1271
  })
1266
1272
  }, Rt({ _: 2 }, [
1267
1273
  a.$slots.menuIcon ? {
@@ -1341,7 +1347,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1341
1347
  xmlns: "http://www.w3.org/2000/svg",
1342
1348
  class: Ue([{ "vue-data-ui-fullscreen--on": al.value, "vue-data-ui-fulscreen--off": !al.value }, "vue-ui-xy-svg vue-data-ui-svg"]),
1343
1349
  width: "100%",
1344
- viewBox: yl.value,
1350
+ viewBox: ml.value,
1345
1351
  style: z({
1346
1352
  background: "transparent",
1347
1353
  color: l.value.chart.color,
@@ -1487,7 +1493,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1487
1493
  }, null, 8, Po)
1488
1494
  ], 8, Oo)
1489
1495
  ]))), 128)),
1490
- (u(!0), i(h, null, y(Le.value, (e, s) => (u(), i("defs", {
1496
+ (u(!0), i(h, null, y($e.value, (e, s) => (u(), i("defs", {
1491
1497
  key: `def_plot_${s}`
1492
1498
  }, [
1493
1499
  g("radialGradient", {
@@ -1574,12 +1580,12 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1574
1580
  }, [
1575
1581
  g("div", {
1576
1582
  style: z(`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"}`)
1577
- }, ee(e.caption.text), 5)
1583
+ }, le(e.caption.text), 5)
1578
1584
  ], 12, qo)) : d("", !0)
1579
1585
  ]))), 256))
1580
1586
  ], 64)) : d("", !0)
1581
1587
  ]))), 256)),
1582
- Ul.value ? (u(), i("g", Uo, [
1588
+ ql.value ? (u(), i("g", Uo, [
1583
1589
  (u(!0), i(h, null, y(b.value, (e, s) => (u(), i("g", {
1584
1590
  key: `tooltip_trap_highlighter_${s}`
1585
1591
  }, [
@@ -1602,22 +1608,22 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1602
1608
  }, [
1603
1609
  fe(t.value) ? (u(), i("rect", {
1604
1610
  key: 0,
1605
- x: Al(t),
1611
+ x: Ll(t),
1606
1612
  y: f.value.useIndividualScale ? Sa(t) : wa(t),
1607
1613
  height: f.value.useIndividualScale ? Math.abs(_a(t)) : Math.abs(ka(t)),
1608
- width: ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Oe.value) < 0 ? 1e-5 : ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Oe.value),
1614
+ width: ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Te.value) < 0 ? 1e-5 : ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Te.value),
1609
1615
  rx: l.value.bar.borderRadius,
1610
1616
  fill: l.value.bar.useGradient ? t.value >= 0 ? `url(#rectGradient_pos_${s}_${U.value})` : `url(#rectGradient_neg_${s}_${U.value})` : e.color,
1611
1617
  stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
1612
1618
  "stroke-width": l.value.bar.border.strokeWidth,
1613
- style: z(`${v(Xl) ? "transition:none !important" : ""}`)
1619
+ style: z(`${v(Wl) ? "transition:none !important" : ""}`)
1614
1620
  }, null, 12, Jo)) : d("", !0),
1615
1621
  fe(t.value) && a.$slots.pattern ? (u(), i("rect", {
1616
1622
  key: 1,
1617
- x: Al(t),
1623
+ x: Ll(t),
1618
1624
  y: f.value.useIndividualScale ? Sa(t) : wa(t),
1619
1625
  height: f.value.useIndividualScale ? Math.abs(_a(t)) : Math.abs(ka(t)),
1620
- width: ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Oe.value) < 0 ? 1e-5 : ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Oe.value),
1626
+ width: ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Te.value) < 0 ? 1e-5 : ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Te.value),
1621
1627
  rx: l.value.bar.borderRadius,
1622
1628
  fill: `url(#pattern_${U.value}_${e.slotAbsoluteIndex})`,
1623
1629
  stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
@@ -1627,8 +1633,8 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1627
1633
  key: 2,
1628
1634
  style: { overflow: "visible" },
1629
1635
  height: "12",
1630
- width: (ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Oe.value) < 0 ? 1e-5 : ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Oe.value) / 2) + l.value.chart.comments.width,
1631
- x: Al(t) - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
1636
+ width: (ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Te.value) < 0 ? 1e-5 : ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Te.value) / 2) + l.value.chart.comments.width,
1637
+ x: Ll(t) - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
1632
1638
  y: v(T)(t.y) + l.value.chart.comments.offsetY + 6
1633
1639
  }, [
1634
1640
  q(a.$slots, "plot-comment", {
@@ -1670,7 +1676,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1670
1676
  y: v(X)(e.plots).y2 - 6,
1671
1677
  "font-size": x.value.plotLabels,
1672
1678
  fill: e.color
1673
- }, ee(v(xe)({
1679
+ }, le(v(xe)({
1674
1680
  v: v(X)(e.plots).trend * 100,
1675
1681
  s: "%",
1676
1682
  r: 2
@@ -1718,7 +1724,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1718
1724
  l.value.chart.grid.labels.show ? (u(), i("g", {
1719
1725
  key: 5,
1720
1726
  ref_key: "scaleLabels",
1721
- ref: Hl
1727
+ ref: Pl
1722
1728
  }, [
1723
1729
  f.value.useIndividualScale ? (u(), i(h, { key: 0 }, [
1724
1730
  (u(!0), i(h, null, y(dl.value, (e) => (u(), i("g", null, [
@@ -1741,7 +1747,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1741
1747
  "font-size": x.value.dataLabels * 0.8,
1742
1748
  "text-anchor": "middle",
1743
1749
  transform: `translate(${e.x - x.value.dataLabels * 0.8 / 2 + G.value}, ${f.value.isStacked ? n.value.bottom - e.yOffset - e.individualHeight / 2 : n.value.top + n.value.height / 2}) rotate(-90)`
1744
- }, ee(e.name) + " " + ee(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
1750
+ }, le(e.name) + " " + le(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
1745
1751
  ${e.scaleLabel}` : ""), 9, ns),
1746
1752
  (u(!0), i(h, null, y(e.yLabels, (s, t) => (u(), i(h, null, [
1747
1753
  l.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), i("line", {
@@ -1762,7 +1768,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1762
1768
  "font-size": x.value.dataLabels,
1763
1769
  "text-anchor": "end",
1764
1770
  fill: e.color
1765
- }, ee(v(re)(
1771
+ }, le(v(re)(
1766
1772
  l.value.chart.grid.labels.yAxis.formatter,
1767
1773
  s.value,
1768
1774
  v(xe)({
@@ -1795,7 +1801,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1795
1801
  "font-size": x.value.dataLabels,
1796
1802
  "text-anchor": "end",
1797
1803
  fill: l.value.chart.grid.labels.color
1798
- }, ee(fe(e.value) ? v(re)(
1804
+ }, le(fe(e.value) ? v(re)(
1799
1805
  l.value.chart.grid.labels.yAxis.formatter,
1800
1806
  e.value,
1801
1807
  v(xe)({
@@ -1807,7 +1813,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1807
1813
  ) : ""), 9, hs)) : d("", !0)
1808
1814
  ]))), 128))
1809
1815
  ], 512)) : d("", !0),
1810
- (u(!0), i(h, null, y(Le.value, (e, s) => (u(), i("g", {
1816
+ (u(!0), i(h, null, y($e.value, (e, s) => (u(), i("g", {
1811
1817
  key: `serie_plot_${s}`,
1812
1818
  class: Ue(`serie_plot_${s}`),
1813
1819
  style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
@@ -1815,12 +1821,12 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1815
1821
  (u(!0), i(h, null, y(e.plots, (t, r) => (u(), i("g", {
1816
1822
  key: `circle_plot_${s}_${r}`
1817
1823
  }, [
1818
- t && fe(t.value) ? (u(), Me(Il, {
1824
+ t && fe(t.value) ? (u(), Ae(Cl, {
1819
1825
  key: 0,
1820
1826
  shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
1821
1827
  color: l.value.plot.useGradient ? `url(#plotGradient_${s}_${U.value})` : l.value.plot.dot.useSerieColor ? e.color : l.value.plot.dot.fill,
1822
1828
  plot: { x: v(T)(t.x), y: v(T)(t.y) },
1823
- radius: k.value !== null && k.value === r || O.value !== null && O.value === r ? ($e.value.plot || 6) * 1.5 : $e.value.plot || 6,
1829
+ radius: k.value !== null && k.value === r || O.value !== null && O.value === r ? (Se.value.plot || 6) * 1.5 : Se.value.plot || 6,
1824
1830
  stroke: l.value.plot.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
1825
1831
  strokeWidth: l.value.plot.dot.strokeWidth
1826
1832
  }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : d("", !0),
@@ -1873,7 +1879,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1873
1879
  y: v(X)(e.plots).y2 - 6,
1874
1880
  "font-size": x.value.plotLabels,
1875
1881
  fill: e.color
1876
- }, ee(v(xe)({
1882
+ }, le(v(xe)({
1877
1883
  v: v(X)(e.plots).trend * 100,
1878
1884
  s: "%",
1879
1885
  r: 2
@@ -1904,7 +1910,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1904
1910
  }, null, 8, _s)) : d("", !0)
1905
1911
  ], 6))), 128)),
1906
1912
  a.$slots.pattern ? (u(), i("defs", ws, [
1907
- (u(!0), i(h, null, y(Ie.value, (e, s) => q(a.$slots, "pattern", jl({
1913
+ (u(!0), i(h, null, y(Ce.value, (e, s) => q(a.$slots, "pattern", Ql({
1908
1914
  key: `serie_pattern_slot_${s}`
1909
1915
  }, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${U.value}_${s}` }), void 0, !0)), 128))
1910
1916
  ])) : d("", !0),
@@ -1959,12 +1965,12 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
1959
1965
  (u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
1960
1966
  key: `circle_line_${s}_${r}`
1961
1967
  }, [
1962
- !La.value.linePlot && t && fe(t.value) || La.value.linePlot && t && fe(t.value) && (k.value !== null && k.value === r || O.value !== null && O.value === r) ? (u(), Me(Il, {
1968
+ !La.value.linePlot && t && fe(t.value) || La.value.linePlot && t && fe(t.value) && (k.value !== null && k.value === r || O.value !== null && O.value === r) ? (u(), Ae(Cl, {
1963
1969
  key: 0,
1964
1970
  shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
1965
1971
  color: l.value.line.useGradient ? `url(#lineGradient_${s}_${U.value})` : l.value.line.dot.useSerieColor ? e.color : l.value.line.dot.fill,
1966
1972
  plot: { x: v(T)(t.x), y: v(T)(t.y) },
1967
- radius: k.value !== null && k.value === r || O.value !== null && O.value === r ? ($e.value.line || 6) * 1.5 : $e.value.line || 6,
1973
+ radius: k.value !== null && k.value === r || O.value !== null && O.value === r ? (Se.value.line || 6) * 1.5 : Se.value.line || 6,
1968
1974
  stroke: l.value.line.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
1969
1975
  strokeWidth: l.value.line.dot.strokeWidth
1970
1976
  }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : d("", !0),
@@ -2017,7 +2023,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2017
2023
  y: v(X)(e.plots).y2 - 6,
2018
2024
  "font-size": x.value.plotLabels,
2019
2025
  fill: e.color
2020
- }, ee(v(xe)({
2026
+ }, le(v(xe)({
2021
2027
  v: v(X)(e.plots).trend * 100,
2022
2028
  s: "%",
2023
2029
  r: 2
@@ -2033,13 +2039,13 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2033
2039
  }, [
2034
2040
  t && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || k.value !== null && k.value === r || O.value !== null && O.value === r) && l.value.bar.labels.show ? (u(), i("text", {
2035
2041
  key: 0,
2036
- x: f.value.useIndividualScale && f.value.isStacked ? t.x + Z.value.line / 2 : Al(t) + ke() / 2 - Oe.value / 2,
2042
+ x: f.value.useIndividualScale && f.value.isStacked ? t.x + Z.value.line / 2 : Ll(t) + ke() / 2 - Te.value / 2,
2037
2043
  y: v(T)(t.y) + (t.value >= 0 ? l.value.bar.labels.offsetY : -l.value.bar.labels.offsetY * 3),
2038
2044
  "text-anchor": "middle",
2039
2045
  "font-size": x.value.plotLabels,
2040
2046
  fill: l.value.bar.labels.color,
2041
2047
  style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2042
- }, ee(fe(t.value) ? v(re)(
2048
+ }, le(fe(t.value) ? v(re)(
2043
2049
  l.value.bar.labels.formatter,
2044
2050
  t.value,
2045
2051
  v(xe)({
@@ -2062,7 +2068,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2062
2068
  fill: l.value.bar.serieName.useSerieColor ? e.color : l.value.bar.serieName.color,
2063
2069
  "font-weight": l.value.bar.serieName.bold ? "bold" : "normal",
2064
2070
  style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2065
- }, ee(l.value.bar.serieName.useAbbreviation ? v(Kt)({
2071
+ }, le(l.value.bar.serieName.useAbbreviation ? v(Kt)({
2066
2072
  source: e.name,
2067
2073
  length: l.value.bar.serieName.abbreviationSize
2068
2074
  }) : e.name), 13, Ys)) : d("", !0)
@@ -2070,7 +2076,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2070
2076
  ], 64))), 128))
2071
2077
  ])) : d("", !0),
2072
2078
  l.value.plot.labels.show && f.value.dataLabels.show ? (u(), i("g", Fs, [
2073
- (u(!0), i(h, null, y(Le.value, (e, s) => (u(), i(h, {
2079
+ (u(!0), i(h, null, y($e.value, (e, s) => (u(), i(h, {
2074
2080
  key: `xLabel_plot_${s}`
2075
2081
  }, [
2076
2082
  (u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
@@ -2084,7 +2090,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2084
2090
  "font-size": x.value.plotLabels,
2085
2091
  fill: l.value.plot.labels.color,
2086
2092
  style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2087
- }, ee(fe(t.value) ? v(re)(
2093
+ }, le(fe(t.value) ? v(re)(
2088
2094
  l.value.plot.labels.formatter,
2089
2095
  t.value,
2090
2096
  v(xe)({
@@ -2101,7 +2107,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2101
2107
  ], 64))), 128))
2102
2108
  ], 64))), 128))
2103
2109
  ])) : (u(), i("g", Ws, [
2104
- (u(!0), i(h, null, y(Le.value, (e, s) => (u(), i(h, {
2110
+ (u(!0), i(h, null, y($e.value, (e, s) => (u(), i(h, {
2105
2111
  key: `xLabel_plot_${s}`
2106
2112
  }, [
2107
2113
  (u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
@@ -2184,7 +2190,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2184
2190
  "font-size": x.value.plotLabels,
2185
2191
  fill: l.value.line.labels.color,
2186
2192
  style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2187
- }, ee(fe(t.value) ? v(re)(
2193
+ }, le(fe(t.value) ? v(re)(
2188
2194
  l.value.line.labels.formatter,
2189
2195
  t.value,
2190
2196
  v(xe)({
@@ -2282,7 +2288,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2282
2288
  "font-size": x.value.plotLabels,
2283
2289
  "text-anchor": "end",
2284
2290
  fill: e.color,
2285
- innerHTML: v(Cl)({
2291
+ innerHTML: v(zl)({
2286
2292
  content: e.name,
2287
2293
  fontSize: x.value.plotLabels,
2288
2294
  fill: e.color,
@@ -2299,7 +2305,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2299
2305
  "font-size": x.value.plotLabels,
2300
2306
  "text-anchor": "start",
2301
2307
  fill: e.color,
2302
- innerHTML: v(Cl)({
2308
+ innerHTML: v(zl)({
2303
2309
  content: e.name,
2304
2310
  fontSize: x.value.plotLabels,
2305
2311
  fill: e.color,
@@ -2311,7 +2317,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2311
2317
  }, null, 12, ou)) : d("", !0)
2312
2318
  ], 64))), 128))
2313
2319
  ], 64))), 128)),
2314
- (u(!0), i(h, null, y(Le.value, (e, s) => (u(), i(h, {
2320
+ (u(!0), i(h, null, y($e.value, (e, s) => (u(), i(h, {
2315
2321
  key: `xLabel_plot_${s}`
2316
2322
  }, [
2317
2323
  (u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
@@ -2324,7 +2330,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2324
2330
  "font-size": x.value.plotLabels,
2325
2331
  "text-anchor": "end",
2326
2332
  fill: e.color,
2327
- innerHTML: v(Cl)({
2333
+ innerHTML: v(zl)({
2328
2334
  content: e.name,
2329
2335
  fontSize: x.value.plotLabels,
2330
2336
  fill: e.color,
@@ -2341,7 +2347,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2341
2347
  "font-size": x.value.plotLabels,
2342
2348
  "text-anchor": "start",
2343
2349
  fill: e.color,
2344
- innerHTML: v(Cl)({
2350
+ innerHTML: v(zl)({
2345
2351
  content: e.name,
2346
2352
  fontSize: x.value.plotLabels,
2347
2353
  fill: e.color,
@@ -2388,30 +2394,30 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2388
2394
  l.value.chart.grid.labels.axis.yLabel && !f.value.useIndividualScale ? (u(), i("text", {
2389
2395
  key: 0,
2390
2396
  ref_key: "yAxisLabel",
2391
- ref: Pl,
2397
+ ref: Vl,
2392
2398
  "font-size": x.value.yAxis,
2393
2399
  fill: l.value.chart.grid.labels.color,
2394
2400
  transform: `translate(${l.value.chart.grid.labels.axis.fontSize}, ${n.value.top + n.value.height / 2}) rotate(-90)`,
2395
2401
  "text-anchor": "middle",
2396
2402
  style: { transition: "none" }
2397
- }, ee(l.value.chart.grid.labels.axis.yLabel), 9, vu)) : d("", !0),
2403
+ }, le(l.value.chart.grid.labels.axis.yLabel), 9, vu)) : d("", !0),
2398
2404
  l.value.chart.grid.labels.axis.xLabel ? (u(), i("text", {
2399
2405
  key: 1,
2400
2406
  ref_key: "xAxisLabel",
2401
- ref: Vl,
2407
+ ref: Nl,
2402
2408
  "text-anchor": "middle",
2403
2409
  x: ae.value / 2,
2404
2410
  y: ve.value - 3,
2405
2411
  "font-size": x.value.yAxis,
2406
2412
  fill: l.value.chart.grid.labels.color
2407
- }, ee(l.value.chart.grid.labels.axis.xLabel), 9, du)) : d("", !0)
2413
+ }, le(l.value.chart.grid.labels.axis.xLabel), 9, du)) : d("", !0)
2408
2414
  ]),
2409
2415
  l.value.chart.grid.labels.xAxisLabels.show ? (u(), i("g", {
2410
2416
  key: 13,
2411
2417
  ref_key: "timeLabelsEls",
2412
2418
  ref: ll
2413
2419
  }, [
2414
- a.$slots["time-label"] ? (u(!0), i(h, { key: 0 }, y(le.value, (e, s) => q(a.$slots, "time-label", jl({
2420
+ a.$slots["time-label"] ? (u(!0), i(h, { key: 0 }, y(J.value, (e, s) => q(a.$slots, "time-label", Ql({
2415
2421
  key: `time_label_${s}`,
2416
2422
  ref_for: !0
2417
2423
  }, {
@@ -2423,11 +2429,11 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2423
2429
  absoluteIndex: e.absoluteIndex,
2424
2430
  content: e.text,
2425
2431
  textAnchor: l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2426
- show: e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= Ll.value || 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 === le.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && k.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) / Ll.value) === 0
2427
- }), void 0, !0)), 128)) : (u(!0), i(h, { key: 1 }, y(le.value, (e, s) => (u(), i("g", {
2432
+ show: e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= $l.value || 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 === J.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && k.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) === 0
2433
+ }), void 0, !0)), 128)) : (u(!0), i(h, { key: 1 }, y(J.value, (e, s) => (u(), i("g", {
2428
2434
  key: `time_label_${s}`
2429
2435
  }, [
2430
- e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= Ll.value || 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 === le.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && k.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) / Ll.value) === 0 ? (u(), i(h, { key: 0 }, [
2436
+ e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= $l.value || 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 === J.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && k.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) === 0 ? (u(), i(h, { key: 0 }, [
2431
2437
  String(e.text).includes(`
2432
2438
  `) ? (u(), i("text", {
2433
2439
  key: 1,
@@ -2457,7 +2463,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2457
2463
  cursor: ga() ? "pointer" : "default"
2458
2464
  }),
2459
2465
  onClick: () => ma(e, s)
2460
- }, ee(e.text || ""), 13, hu))
2466
+ }, le(e.text || ""), 13, hu))
2461
2467
  ], 64)) : d("", !0)
2462
2468
  ]))), 128))
2463
2469
  ], 512)) : d("", !0),
@@ -2498,7 +2504,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2498
2504
  fill: v(we)(e.config.area.fill, e.config.area.opacity),
2499
2505
  style: { animation: "none !important" }
2500
2506
  }, null, 8, mu)) : d("", !0),
2501
- e.config.label.text && e.show && isFinite(e._box.y) ? (u(), i("rect", jl({
2507
+ e.config.label.text && e.show && isFinite(e._box.y) ? (u(), i("rect", Ql({
2502
2508
  key: 3,
2503
2509
  class: "vue-ui-xy-annotation-label-box"
2504
2510
  }, { ref_for: !0 }, e._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : d("", !0),
@@ -2511,10 +2517,10 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2511
2517
  "font-size": e.config.label.fontSize,
2512
2518
  fill: e.config.label.color,
2513
2519
  "text-anchor": e.config.label.textAnchor
2514
- }, ee(e.config.label.text), 9, yu)) : d("", !0)
2520
+ }, le(e.config.label.text), 9, yu)) : d("", !0)
2515
2521
  ]))), 128))
2516
2522
  ])) : d("", !0),
2517
- Ul.value ? (u(), i("g", pu, [
2523
+ ql.value ? (u(), i("g", pu, [
2518
2524
  (u(!0), i(h, null, y(b.value, (e, s) => (u(), i("rect", {
2519
2525
  key: `tooltip_trap_${s}`,
2520
2526
  x: n.value.left + n.value.width / b.value * s,
@@ -2538,7 +2544,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2538
2544
  g("div", {
2539
2545
  class: "vue-ui-xy-time-tag",
2540
2546
  style: z(`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`)
2541
- }, ee(le.value[(k.value !== null ? k.value : 0) || (O.value !== null ? O.value : 0)].text || (k.value !== null ? k.value : 0) || (O.value !== null ? O.value : 0)), 5)
2547
+ }, le(J.value[(k.value !== null ? k.value : 0) || (O.value !== null ? O.value : 0)].text || (k.value !== null ? k.value : 0) || (O.value !== null ? O.value : 0)), 5)
2542
2548
  ], 8, wu)),
2543
2549
  g("circle", {
2544
2550
  cx: n.value.left + n.value.width / b.value * ((k.value !== null ? k.value : 0) || (O.value !== null ? O.value : 0)) + n.value.width / b.value / 2,
@@ -2552,7 +2558,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2552
2558
  ], 512)
2553
2559
  ], 14, go)),
2554
2560
  a.$slots.watermark ? (u(), i("div", $u, [
2555
- q(a.$slots, "watermark", Ze(Je({ isPrinting: v(Gl) || v(ca) })), void 0, !0)
2561
+ q(a.$slots, "watermark", Ze(Je({ isPrinting: v(Xl) || v(ca) })), void 0, !0)
2556
2562
  ])) : d("", !0),
2557
2563
  (u(!0), i(h, null, y(_e.value, (e, s) => (u(), i(h, {
2558
2564
  key: `tag_line_${s}`
@@ -2563,7 +2569,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2563
2569
  [O.value, k.value, Xe.value].includes(r) && e.useTag && e.useTag === "end" && l.value.line.tag.followValue ? (u(), i("div", {
2564
2570
  key: 0,
2565
2571
  ref_for: !0,
2566
- ref: (o) => $l(s, r, o, "right", "line"),
2572
+ ref: (o) => Sl(s, r, o, "right", "line"),
2567
2573
  class: "vue-ui-xy-tag",
2568
2574
  "data-tag": "right",
2569
2575
  style: z({
@@ -2572,14 +2578,14 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2572
2578
  svgElement: be.value,
2573
2579
  x: n.value.right + l.value.line.tag.fontSize / 1.5,
2574
2580
  y: t.y,
2575
- element: Ce.value[`${s}_${r}_right_line`],
2581
+ element: ze.value[`${s}_${r}_right_line`],
2576
2582
  position: "right"
2577
2583
  }).top + "px",
2578
2584
  left: v(Ee)({
2579
2585
  svgElement: be.value,
2580
2586
  x: n.value.right + l.value.line.tag.fontSize / 1.5,
2581
2587
  y: t.y,
2582
- element: Ce.value[`${s}_${r}_right_line`],
2588
+ element: ze.value[`${s}_${r}_right_line`],
2583
2589
  position: "right"
2584
2590
  }).left + "px",
2585
2591
  height: "fit-content",
@@ -2615,7 +2621,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2615
2621
  [O.value, k.value, Xe.value].includes(r) && e.useTag && e.useTag === "start" && l.value.line.tag.followValue ? (u(), i("div", {
2616
2622
  key: 1,
2617
2623
  ref_for: !0,
2618
- ref: (o) => $l(s, r, o, "left", "line"),
2624
+ ref: (o) => Sl(s, r, o, "left", "line"),
2619
2625
  class: "vue-ui-xy-tag",
2620
2626
  "data-tag": "left",
2621
2627
  style: z({
@@ -2624,14 +2630,14 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2624
2630
  svgElement: be.value,
2625
2631
  x: n.value.left - l.value.line.tag.fontSize / 1.5,
2626
2632
  y: t.y,
2627
- element: Ce.value[`${s}_${r}_left_line`],
2633
+ element: ze.value[`${s}_${r}_left_line`],
2628
2634
  position: "left"
2629
2635
  }).top + "px",
2630
2636
  left: v(Ee)({
2631
2637
  svgElement: be.value,
2632
2638
  x: n.value.left - l.value.line.tag.fontSize / 1.5,
2633
2639
  y: t.y,
2634
- element: Ce.value[`${s}_${r}_left_line`],
2640
+ element: ze.value[`${s}_${r}_left_line`],
2635
2641
  position: "left"
2636
2642
  }).left + "px",
2637
2643
  height: "fit-content",
@@ -2666,7 +2672,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2666
2672
  ], 4)) : d("", !0)
2667
2673
  ], 64))), 128))
2668
2674
  ], 64))), 128)),
2669
- (u(!0), i(h, null, y(Le.value, (e, s) => (u(), i(h, {
2675
+ (u(!0), i(h, null, y($e.value, (e, s) => (u(), i(h, {
2670
2676
  key: `tag_plot_${s}`
2671
2677
  }, [
2672
2678
  (u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
@@ -2675,7 +2681,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2675
2681
  [O.value, k.value, Xe.value].includes(r) && e.useTag && e.useTag === "end" && l.value.plot.tag.followValue ? (u(), i("div", {
2676
2682
  key: 0,
2677
2683
  ref_for: !0,
2678
- ref: (o) => $l(s, r, o, "right", "plot"),
2684
+ ref: (o) => Sl(s, r, o, "right", "plot"),
2679
2685
  class: "vue-ui-xy-tag",
2680
2686
  "data-tag": "right",
2681
2687
  style: z({
@@ -2684,14 +2690,14 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2684
2690
  svgElement: be.value,
2685
2691
  x: n.value.right + l.value.plot.tag.fontSize / 1.5,
2686
2692
  y: t.y,
2687
- element: Ce.value[`${s}_${r}_right_plot`],
2693
+ element: ze.value[`${s}_${r}_right_plot`],
2688
2694
  position: "right"
2689
2695
  }).top + "px",
2690
2696
  left: v(Ee)({
2691
2697
  svgElement: be.value,
2692
2698
  x: n.value.right + l.value.plot.tag.fontSize / 1.5,
2693
2699
  y: t.y,
2694
- element: Ce.value[`${s}_${r}_right_plot`],
2700
+ element: ze.value[`${s}_${r}_right_plot`],
2695
2701
  position: "right"
2696
2702
  }).left + "px",
2697
2703
  height: "fit-content",
@@ -2727,7 +2733,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2727
2733
  [O.value, k.value, Xe.value].includes(r) && e.useTag && e.useTag === "start" && l.value.plot.tag.followValue ? (u(), i("div", {
2728
2734
  key: 1,
2729
2735
  ref_for: !0,
2730
- ref: (o) => $l(s, r, o, "left", "plot"),
2736
+ ref: (o) => Sl(s, r, o, "left", "plot"),
2731
2737
  class: "vue-ui-xy-tag",
2732
2738
  "data-tag": "left",
2733
2739
  style: z({
@@ -2736,14 +2742,14 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2736
2742
  svgElement: be.value,
2737
2743
  x: n.value.left - l.value.plot.tag.fontSize / 1.5,
2738
2744
  y: t.y,
2739
- element: Ce.value[`${s}_${r}_left_plot`],
2745
+ element: ze.value[`${s}_${r}_left_plot`],
2740
2746
  position: "left"
2741
2747
  }).top + "px",
2742
2748
  left: v(Ee)({
2743
2749
  svgElement: be.value,
2744
2750
  x: n.value.left - l.value.plot.tag.fontSize / 1.5,
2745
2751
  y: t.y,
2746
- element: Ce.value[`${s}_${r}_left_plot`],
2752
+ element: ze.value[`${s}_${r}_left_plot`],
2747
2753
  position: "left"
2748
2754
  }).left + "px",
2749
2755
  height: "fit-content",
@@ -2778,15 +2784,15 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2778
2784
  ], 4)) : d("", !0)
2779
2785
  ], 64))), 128))
2780
2786
  ], 64))), 128)),
2781
- l.value.chart.zoom.show && Ve.value > 6 && Wl.value ? (u(), Me(so, {
2787
+ l.value.chart.zoom.show && Ve.value > 6 && El.value ? (u(), Ae(so, {
2782
2788
  ref_key: "chartSlicer",
2783
- ref: Se,
2784
- key: `slicer_${Bl.value}`,
2789
+ ref: Ne,
2790
+ key: `slicer_${Rl.value}`,
2785
2791
  background: l.value.chart.zoom.color,
2786
2792
  fontSize: l.value.chart.zoom.fontSize,
2787
2793
  useResetSlot: l.value.chart.zoom.useResetSlot,
2788
- labelLeft: le.value[0].text,
2789
- labelRight: le.value.at(-1).text,
2794
+ labelLeft: J.value[0] ? J.value[0].text : "",
2795
+ labelRight: J.value.at(-1) ? J.value.at(-1).text : "",
2790
2796
  textColor: l.value.chart.color,
2791
2797
  inputColor: l.value.chart.zoom.color,
2792
2798
  selectColor: l.value.chart.zoom.highlightColor,
@@ -2809,7 +2815,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2809
2815
  end: S.value.end,
2810
2816
  "onUpdate:end": c[3] || (c[3] = (e) => S.value.end = e),
2811
2817
  refreshStartPoint: l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex : 0,
2812
- refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...Tl.dataset.map((e) => v(Ye)({ data: e.series, threshold: l.value.downsample.threshold }).length)),
2818
+ refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...Il.dataset.map((e) => v(Ye)({ data: e.series, threshold: l.value.downsample.threshold }).length)),
2813
2819
  enableRangeHandles: l.value.chart.zoom.enableRangeHandles,
2814
2820
  enableSelectionDrag: l.value.chart.zoom.enableSelectionDrag,
2815
2821
  onReset: pt,
@@ -2827,7 +2833,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2827
2833
  class: "vue-ui-xy-legend",
2828
2834
  style: z(`font-size:${l.value.chart.legend.fontSize}px`)
2829
2835
  }, [
2830
- (u(!0), i(h, null, y(Te.value, (e, s) => (u(), i("div", {
2836
+ (u(!0), i(h, null, y(Ie.value, (e, s) => (u(), i("div", {
2831
2837
  key: `div_legend_item_${s}`,
2832
2838
  onClick: (t) => $a(e),
2833
2839
  class: Ue({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": te.value.includes(e.id) })
@@ -2843,7 +2849,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2843
2849
  width: "20",
2844
2850
  fill: e.color
2845
2851
  }, null, 8, Yu),
2846
- xl(Il, {
2852
+ xl(Cl, {
2847
2853
  plot: { x: 10, y: 9 },
2848
2854
  radius: 4,
2849
2855
  color: e.color,
@@ -2873,7 +2879,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2873
2879
  fill: a.$slots.pattern ? `url(#pattern_${U.value}_${e.slotAbsoluteIndex})` : e.color
2874
2880
  }, null, 8, Wu)) : d("", !0)
2875
2881
  ])) : (u(), i("svg", Xu, [
2876
- xl(Il, {
2882
+ xl(Cl, {
2877
2883
  plot: { x: 6, y: 6 },
2878
2884
  radius: 5,
2879
2885
  color: e.color,
@@ -2882,14 +2888,14 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2882
2888
  ])),
2883
2889
  g("span", {
2884
2890
  style: z(`color:${l.value.chart.legend.color}`)
2885
- }, ee(e.name), 5)
2891
+ }, le(e.name), 5)
2886
2892
  ], 10, Ru))), 128))
2887
2893
  ], 4)) : (u(), i("div", {
2888
2894
  key: 7,
2889
2895
  ref_key: "chartLegend",
2890
2896
  ref: el
2891
2897
  }, [
2892
- q(a.$slots, "legend", { legend: Te.value }, void 0, !0)
2898
+ q(a.$slots, "legend", { legend: Ie.value }, void 0, !0)
2893
2899
  ], 512)),
2894
2900
  a.$slots.source ? (u(), i("div", {
2895
2901
  key: 8,
@@ -2923,7 +2929,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2923
2929
  ]),
2924
2930
  _: 3
2925
2931
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
2926
- Wl.value ? (u(), Me(v(at), {
2932
+ El.value ? (u(), Ae(v(at), {
2927
2933
  key: 9,
2928
2934
  hideDetails: "",
2929
2935
  config: {
@@ -2941,7 +2947,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2941
2947
  }, {
2942
2948
  content: ue(() => [
2943
2949
  g("div", {
2944
- style: z(`${v(Gl) ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
2950
+ style: z(`${v(Xl) ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
2945
2951
  }, [
2946
2952
  g("div", Gu, [
2947
2953
  Bt(g("input", {
@@ -2961,16 +2967,16 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2961
2967
  }, null, 8, ["stroke"])
2962
2968
  ])
2963
2969
  ]),
2964
- nl.value ? (u(), Me(v(lt), {
2965
- key: `sparkline_${Yl.value}`,
2970
+ nl.value ? (u(), Ae(v(lt), {
2971
+ key: `sparkline_${Bl.value}`,
2966
2972
  dataset: Mt.value,
2967
2973
  config: zt.value
2968
- }, null, 8, ["dataset", "config"])) : (u(), Me(v(Ka), {
2974
+ }, null, 8, ["dataset", "config"])) : (u(), Ae(v(Ka), {
2969
2975
  key: `table_${ra.value}`,
2970
- colNames: Ml.value.colNames,
2971
- head: Ml.value.head,
2972
- body: Ml.value.body,
2973
- config: Ml.value.config,
2976
+ colNames: Al.value.colNames,
2977
+ head: Al.value.head,
2978
+ body: Al.value.body,
2979
+ config: Al.value.config,
2974
2980
  title: `${l.value.chart.title.text}${l.value.chart.title.subtitle.text ? ` : ${l.value.chart.title.subtitle.text}` : ""}`,
2975
2981
  onClose: c[6] || (c[6] = (e) => f.value.showTable = !1)
2976
2982
  }, {
@@ -2978,7 +2984,7 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2978
2984
  g("div", { innerHTML: e }, null, 8, Du)
2979
2985
  ]),
2980
2986
  td: ue(({ td: e }) => [
2981
- Ft(ee(isNaN(Number(e)) ? e : v(xe)({
2987
+ Ft(le(isNaN(Number(e)) ? e : v(xe)({
2982
2988
  p: l.value.chart.labels.prefix,
2983
2989
  v: e,
2984
2990
  s: l.value.chart.labels.suffix,
@@ -2991,10 +2997,10 @@ const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "hei
2991
2997
  ]),
2992
2998
  _: 1
2993
2999
  }, 8, ["config"])) : d("", !0),
2994
- v(Xl) ? (u(), Me(co, { key: 10 })) : d("", !0)
3000
+ v(Wl) ? (u(), Ae(co, { key: 10 })) : d("", !0)
2995
3001
  ], 46, fo));
2996
3002
  }
2997
- }, rr = /* @__PURE__ */ ho(qu, [["__scopeId", "data-v-0fb9d3a1"]]);
3003
+ }, rr = /* @__PURE__ */ ho(qu, [["__scopeId", "data-v-892e299f"]]);
2998
3004
  export {
2999
3005
  rr as default
3000
3006
  };