vue-data-ui 2.13.0 → 2.13.1

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 (87) hide show
  1. package/dist/{Arrow-B2y3GYgv.js → Arrow-DkQ7YpEa.js} +1 -1
  2. package/dist/{BaseDraggableDialog-B3CZVeze.js → BaseDraggableDialog-BhmQ8pEq.js} +2 -2
  3. package/dist/{BaseIcon-P7wV92Er.js → BaseIcon-BfuPFs8T.js} +1 -1
  4. package/dist/{ColorPicker-C7b6TR_9.js → ColorPicker-BdtsaeeP.js} +2 -2
  5. package/dist/{DataTable-DBkfb6pd.js → DataTable-YYJ-yyLu.js} +2 -2
  6. package/dist/{Legend-DcDRW3Xd.js → Legend-g_KCAYVt.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-DYA_rF1x.js → NonSvgPenAndPaper-pVF9pAiU.js} +3 -3
  8. package/dist/{PackageVersion-C5fpg4GN.js → PackageVersion-BRa0E-Tl.js} +1 -1
  9. package/dist/{PenAndPaper-BRkuVFb4.js → PenAndPaper-BMzxjn_J.js} +3 -3
  10. package/dist/{Shape-CnD-h_98.js → Shape-Q_D8wuyt.js} +1 -1
  11. package/dist/{Slicer-CxdgZOQ7.js → Slicer-BGlJdxcw.js} +2 -2
  12. package/dist/{SparkTooltip-BIAMOmfJ.js → SparkTooltip-B6WNh8Fj.js} +1 -1
  13. package/dist/{Title-DoWqzga-.js → Title-CNIn3gob.js} +1 -1
  14. package/dist/{Tooltip-DYCBNM-_.js → Tooltip-TKMv0Pl-.js} +1 -1
  15. package/dist/{UserOptions-B3q-xfQV.js → UserOptions-D5gbyeqU.js} +2 -2
  16. package/dist/{dom-to-png-4VVH9Qna.js → dom-to-png-Dr-cJuZz.js} +1 -1
  17. package/dist/{img-Dy6IrSzX.js → img-B7q7dUf_.js} +1 -1
  18. package/dist/{index-BXbyT0Qn.js → index-BZQim6fG.js} +1 -1
  19. package/dist/{pdf-ZrUvUcH9.js → pdf-BD9-5FCa.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/{useNestedProp-DVZpeH84.js → useNestedProp-uucfkRLS.js} +1 -1
  22. package/dist/{usePrinter-aKh5-HcK.js → usePrinter-RRIjzPPf.js} +2 -2
  23. package/dist/{vue-data-ui-DUHiuRmY.js → vue-data-ui-Cn2TOaYQ.js} +63 -63
  24. package/dist/vue-data-ui.js +1 -1
  25. package/dist/{vue-ui-3d-bar-C3cqHCNp.js → vue-ui-3d-bar-p9HDKMEc.js} +5 -5
  26. package/dist/{vue-ui-accordion-CXsjHe1y.js → vue-ui-accordion-CgfdUzIB.js} +3 -3
  27. package/dist/{vue-ui-age-pyramid-B2EpIzV9.js → vue-ui-age-pyramid-BBtUCUmw.js} +5 -5
  28. package/dist/{vue-ui-annotator-Czvbjx_j.js → vue-ui-annotator-BqFIgXPN.js} +2 -2
  29. package/dist/{vue-ui-bullet-ClY1tgTT.js → vue-ui-bullet-BxyMa1GR.js} +6 -6
  30. package/dist/{vue-ui-candlestick-BQ1RVdoH.js → vue-ui-candlestick-DhCAyh2w.js} +6 -6
  31. package/dist/{vue-ui-carousel-table-UQjCOJJV.js → vue-ui-carousel-table-CQCXm5Nx.js} +4 -4
  32. package/dist/{vue-ui-chestnut-DmEa8kef.js → vue-ui-chestnut-DwU2fbwg.js} +4 -4
  33. package/dist/{vue-ui-chord-CEDZ-UcP.js → vue-ui-chord-CdIKnzix.js} +7 -7
  34. package/dist/{vue-ui-circle-pack-Bx_mLhCR.js → vue-ui-circle-pack-S7XXJhmp.js} +5 -5
  35. package/dist/{vue-ui-cursor-D27qwk90.js → vue-ui-cursor-BLlCNFMO.js} +2 -2
  36. package/dist/{vue-ui-dashboard-DKsYxh6J.js → vue-ui-dashboard-BubRviXL.js} +62 -62
  37. package/dist/{vue-ui-digits-CdDTbIAN.js → vue-ui-digits-C2i9qwQ-.js} +2 -2
  38. package/dist/{vue-ui-donut-DS-DfHIm.js → vue-ui-donut-eZVcWiU0.js} +7 -7
  39. package/dist/{vue-ui-donut-evolution-XMEmv1DK.js → vue-ui-donut-evolution-fjPFuNUi.js} +7 -7
  40. package/dist/{vue-ui-dumbbell-DAm5A4u3.js → vue-ui-dumbbell-BYnvSsU0.js} +6 -6
  41. package/dist/{vue-ui-flow-CTbmqqmV.js → vue-ui-flow-CT4Wpq-k.js} +6 -6
  42. package/dist/{vue-ui-funnel-CihunDsZ.js → vue-ui-funnel-Cyd8PsfJ.js} +5 -5
  43. package/dist/{vue-ui-galaxy-CJHycmpt.js → vue-ui-galaxy-Bn5ehmc8.js} +4 -4
  44. package/dist/{vue-ui-gauge-Bsc9wIKK.js → vue-ui-gauge-DPZiZILN.js} +5 -5
  45. package/dist/{vue-ui-gizmo-D6AciZZe.js → vue-ui-gizmo-DpAAC-YA.js} +3 -3
  46. package/dist/{vue-ui-heatmap-in5WwNRr.js → vue-ui-heatmap-DwWuJ6tP.js} +6 -6
  47. package/dist/{vue-ui-history-plot-C9IEmAmm.js → vue-ui-history-plot-B8L0p4Kb.js} +6 -6
  48. package/dist/{vue-ui-kpi-fDPWRpRZ.js → vue-ui-kpi-db48bQHM.js} +3 -3
  49. package/dist/{vue-ui-mini-loader-BeJRaP7N.js → vue-ui-mini-loader-GfKEECT7.js} +2 -2
  50. package/dist/{vue-ui-molecule-BJbwA0F6.js → vue-ui-molecule-BAdDmM2z.js} +4 -4
  51. package/dist/{vue-ui-mood-radar--YEOJ6q6.js → vue-ui-mood-radar--iKTd1_J.js} +6 -6
  52. package/dist/{vue-ui-nested-donuts-BswKH0D6.js → vue-ui-nested-donuts-BlqnJ09C.js} +6 -6
  53. package/dist/{vue-ui-onion-BAw8X4iu.js → vue-ui-onion-ocji5Uen.js} +6 -6
  54. package/dist/{vue-ui-parallel-coordinate-plot-CYkzOe_Q.js → vue-ui-parallel-coordinate-plot-CxNWFvu2.js} +7 -7
  55. package/dist/{vue-ui-quadrant-BupqUnMn.js → vue-ui-quadrant-8vLXpbm2.js} +7 -7
  56. package/dist/{vue-ui-quick-chart-BzpDL6CR.js → vue-ui-quick-chart-Dr1AMOIx.js} +5 -5
  57. package/dist/{vue-ui-radar-zPrbIZv5.js → vue-ui-radar-CCqmaelN.js} +6 -6
  58. package/dist/{vue-ui-rating-DqCOz2LB.js → vue-ui-rating-R7WvjZWR.js} +2 -2
  59. package/dist/{vue-ui-relation-circle-DQp_zboM.js → vue-ui-relation-circle-CmEMFMxW.js} +5 -5
  60. package/dist/{vue-ui-ridgeline-DoJfX7Ii.js → vue-ui-ridgeline-LvPBPrxv.js} +7 -7
  61. package/dist/{vue-ui-rings-Bk4QJYsW.js → vue-ui-rings-D2bW3v_E.js} +7 -7
  62. package/dist/{vue-ui-scatter-RxF0N8Zj.js → vue-ui-scatter-IfMt2ZDu.js} +7 -7
  63. package/dist/{vue-ui-skeleton-Fxr752Oi.js → vue-ui-skeleton-BmsERVg2.js} +3 -3
  64. package/dist/{vue-ui-smiley-CNScIHKI.js → vue-ui-smiley-VyI_i1wG.js} +2 -2
  65. package/dist/{vue-ui-spark-trend-CyMzdoJ9.js → vue-ui-spark-trend-Dlnhwyg2.js} +3 -3
  66. package/dist/{vue-ui-sparkbar-DMTRPWwC.js → vue-ui-sparkbar-CQgnl6zN.js} +3 -3
  67. package/dist/{vue-ui-sparkgauge-itAGdTj_.js → vue-ui-sparkgauge-Do9F7iI4.js} +3 -3
  68. package/dist/{vue-ui-sparkhistogram-CZx5cF_r.js → vue-ui-sparkhistogram-bDHfyinw.js} +4 -4
  69. package/dist/{vue-ui-sparkline-POYMl6cO.js → vue-ui-sparkline-DIifly3S.js} +3 -3
  70. package/dist/{vue-ui-sparkstackbar-C0EE8xrA.js → vue-ui-sparkstackbar-9m0bTPs3.js} +3 -3
  71. package/dist/{vue-ui-stackbar-B6ytrTFL.js → vue-ui-stackbar-ChMYr6rV.js} +8 -8
  72. package/dist/{vue-ui-strip-plot-u39z36tT.js → vue-ui-strip-plot-CvXJDWx2.js} +6 -6
  73. package/dist/{vue-ui-table-Cvmrm0sZ.js → vue-ui-table-UUa5krMd.js} +3 -3
  74. package/dist/{vue-ui-table-heatmap-BOFRFilm.js → vue-ui-table-heatmap-BPIh36KA.js} +5 -5
  75. package/dist/{vue-ui-table-sparkline-CMhk8rpj.js → vue-ui-table-sparkline-CHozVChW.js} +4 -4
  76. package/dist/{vue-ui-thermometer-Cxznchnu.js → vue-ui-thermometer-4nMaydme.js} +5 -5
  77. package/dist/{vue-ui-timer-Du0Cskiy.js → vue-ui-timer-GRlx3coZ.js} +5 -5
  78. package/dist/{vue-ui-tiremarks-BzC40iBw.js → vue-ui-tiremarks-BRGlPAmX.js} +5 -5
  79. package/dist/{vue-ui-treemap-D5Nk7usb.js → vue-ui-treemap-CXwpJpg9.js} +7 -7
  80. package/dist/{vue-ui-vertical-bar-BivMp4WH.js → vue-ui-vertical-bar-Cb1kBSz1.js} +8 -8
  81. package/dist/{vue-ui-waffle-DI0Ul1Tb.js → vue-ui-waffle-DcuxawEG.js} +7 -7
  82. package/dist/{vue-ui-wheel-BfHsxhQq.js → vue-ui-wheel-DQS3KHbb.js} +5 -5
  83. package/dist/{vue-ui-word-cloud-ytYbdQKa.js → vue-ui-word-cloud-mV2B5wM5.js} +5 -5
  84. package/dist/{vue-ui-world-CiYvMEKb.js → vue-ui-world-CTIuQodw.js} +5 -5
  85. package/dist/{vue-ui-xy-DxgCkZEV.js → vue-ui-xy-BSI9-Dne.js} +731 -720
  86. package/dist/{vue-ui-xy-canvas-R0tICTKy.js → vue-ui-xy-canvas-BrmoHvTC.js} +7 -7
  87. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
- import { Q as H, Z, a7 as te, a8 as j, a9 as le, aa as re, ab as ie, ac as ae, ad as se, c as Q, A as ne, F as ce, w as oe, s as he, o as ue, a1 as de, ae as ge, x as fe, C as Ie, y as Ne, a6 as me, e as xe, r as be, f as $, af as Fe, T as _e, U as ye, q as Ae, b as Le, z as Ce, d as Se, ag as ke, v as we, ah as Oe, D as Ge, a4 as ve, ai as pe, i as Me, G as ze, K as Te, u as Pe, p as Ve, B as Re, a as He, t as De } from "./index-BXbyT0Qn.js";
2
- import { u as Be } from "./useMouse-AicQS8Vf.js";
3
- import { u as J } from "./useNestedProp-DVZpeH84.js";
4
- import { defineAsyncComponent as W, resolveComponent as R, createElementBlock as a, openBlock as i, normalizeStyle as y, normalizeClass as E, createBlock as B, createCommentVNode as u, createVNode as U, createSlots as We, withCtx as V, renderSlot as G, normalizeProps as Y, guardReactiveProps as q, createElementVNode as f, Fragment as g, renderList as N, toDisplayString as T, mergeProps as K, withDirectives as Ee, vModelCheckbox as Ye, createTextVNode as qe } from "vue";
5
- import { S as Xe } from "./Slicer-CxdgZOQ7.js";
6
- import Ue from "./Title-DoWqzga-.js";
7
- import { _ as Ze } from "./Shape-CnD-h_98.js";
1
+ import { Q as H, Z, a7 as te, a8 as j, a9 as le, aa as re, ab as ae, ac as ie, ad as se, c as Q, A as ne, F as ce, w as oe, s as he, o as ue, a1 as de, ae as ge, x as fe, C as Ie, y as Ne, a6 as xe, e as me, r as be, f as $, af as Fe, T as _e, U as ye, q as Ae, b as Le, z as Ce, d as Se, ag as ke, v as we, ah as Oe, D as Ge, a4 as ve, ai as pe, i as Me, G as ze, K as Te, u as Pe, p as Ve, B as Re, a as He, t as De } from "./index-BZQim6fG.js";
2
+ import { u as We } from "./useMouse-AicQS8Vf.js";
3
+ import { u as J } from "./useNestedProp-uucfkRLS.js";
4
+ import { defineAsyncComponent as B, resolveComponent as R, createElementBlock as i, openBlock as a, normalizeStyle as y, normalizeClass as E, createBlock as W, createCommentVNode as u, createVNode as U, createSlots as Be, withCtx as V, renderSlot as p, normalizeProps as Y, guardReactiveProps as q, createElementVNode as f, Fragment as d, renderList as I, toDisplayString as T, mergeProps as K, withDirectives as Ee, vModelCheckbox as Ye, createTextVNode as qe } from "vue";
5
+ import { S as Xe } from "./Slicer-BGlJdxcw.js";
6
+ import Ue from "./Title-CNIn3gob.js";
7
+ import { _ as Ze } from "./Shape-Q_D8wuyt.js";
8
8
  import { _ as Je } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  const Ke = Q(), Qe = {
10
10
  name: "vue-ui-xy",
@@ -28,28 +28,28 @@ const Ke = Q(), Qe = {
28
28
  Title: Ue,
29
29
  // Must be ready in responsive mode
30
30
  Shape: Ze,
31
- DataTable: W(() => import("./DataTable-DBkfb6pd.js")),
32
- Tooltip: W(() => import("./Tooltip-DYCBNM-_.js")),
33
- UserOptions: W(() => import("./UserOptions-B3q-xfQV.js")),
34
- BaseIcon: W(() => import("./BaseIcon-P7wV92Er.js")),
35
- TableSparkline: W(() => import("./vue-ui-table-sparkline-CMhk8rpj.js")),
36
- Skeleton: W(() => import("./vue-ui-skeleton-Fxr752Oi.js")),
37
- Accordion: W(() => import("./vue-ui-accordion-CXsjHe1y.js")),
38
- PackageVersion: W(() => import("./PackageVersion-C5fpg4GN.js")),
39
- PenAndPaper: W(() => import("./PenAndPaper-BRkuVFb4.js"))
31
+ DataTable: B(() => import("./DataTable-YYJ-yyLu.js")),
32
+ Tooltip: B(() => import("./Tooltip-TKMv0Pl-.js")),
33
+ UserOptions: B(() => import("./UserOptions-D5gbyeqU.js")),
34
+ BaseIcon: B(() => import("./BaseIcon-BfuPFs8T.js")),
35
+ TableSparkline: B(() => import("./vue-ui-table-sparkline-CHozVChW.js")),
36
+ Skeleton: B(() => import("./vue-ui-skeleton-BmsERVg2.js")),
37
+ Accordion: B(() => import("./vue-ui-accordion-CgfdUzIB.js")),
38
+ PackageVersion: B(() => import("./PackageVersion-BRa0E-Tl.js")),
39
+ PenAndPaper: B(() => import("./PenAndPaper-BMzxjn_J.js"))
40
40
  },
41
41
  data() {
42
- this.dataset.forEach((d, r) => {
43
- [null, void 0].includes(d.series) && this.error({
42
+ this.dataset.forEach((g, r) => {
43
+ [null, void 0].includes(g.series) && this.error({
44
44
  componentName: "VueUiXy",
45
45
  type: "datasetSerieAttribute",
46
46
  property: "series (number[])",
47
47
  index: r
48
48
  });
49
49
  });
50
- const t = this.config.downsample && this.config.downsample.threshold ? this.config.downsample.threshold : 500, s = Math.max(...this.dataset.map((d) => this.largestTriangleThreeBucketsArray({ data: d.series, threshold: t }).length)), o = {
50
+ const t = this.config.downsample && this.config.downsample.threshold ? this.config.downsample.threshold : 500, n = Math.max(...this.dataset.map((g) => this.largestTriangleThreeBucketsArray({ data: g.series, threshold: t }).length)), o = {
51
51
  start: 0,
52
- end: s
52
+ end: n
53
53
  };
54
54
  return {
55
55
  resizeObserver: null,
@@ -102,7 +102,7 @@ const Ke = Q(), Qe = {
102
102
  titleStep: 0,
103
103
  slicer: o,
104
104
  __to__: null,
105
- maxX: s,
105
+ maxX: n,
106
106
  showSparklineTable: !0,
107
107
  segregateStep: 0,
108
108
  sliderId: Ke,
@@ -127,7 +127,7 @@ const Ke = Q(), Qe = {
127
127
  },
128
128
  watch: {
129
129
  dataset: {
130
- handler(t, s) {
130
+ handler(t, n) {
131
131
  this.maxX = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({
132
132
  data: o.series,
133
133
  threshold: this.FINAL_CONFIG.downsample.threshold
@@ -139,7 +139,7 @@ const Ke = Q(), Qe = {
139
139
  deep: !0
140
140
  },
141
141
  config: {
142
- handler(t, s) {
142
+ handler(t, n) {
143
143
  this.FINAL_CONFIG = this.prepareConfig(), this.prepareChart(), this.titleStep += 1, this.tableStep += 1, this.mutableConfig = {
144
144
  dataLabels: {
145
145
  show: !0
@@ -155,8 +155,8 @@ const Ke = Q(), Qe = {
155
155
  },
156
156
  computed: {
157
157
  chartAriaLabel() {
158
- const t = this.FINAL_CONFIG.chart.title.text || "Chart visualization", s = this.FINAL_CONFIG.chart.title.subtitle.text || "";
159
- return `${t}. ${s}`;
158
+ const t = this.FINAL_CONFIG.chart.title.text || "Chart visualization", n = this.FINAL_CONFIG.chart.title.subtitle.text || "";
159
+ return `${t}. ${n}`;
160
160
  },
161
161
  optimize() {
162
162
  return {
@@ -168,11 +168,11 @@ const Ke = Q(), Qe = {
168
168
  },
169
169
  minimap() {
170
170
  if (!this.FINAL_CONFIG.chart.zoom.minimap.show) return [];
171
- const t = this.datasetWithIds.filter((r) => !this.segregatedSeries.includes(r.id)), s = Math.max(...t.map((r) => r.series.length)), o = [];
172
- for (let r = 0; r < s; r += 1)
173
- o.push(t.map((e) => e.series[r] || 0).reduce((e, m) => (e || 0) + (m || 0), 0));
174
- const d = Math.min(...o);
175
- return o.map((r) => r + (d < 0 ? Math.abs(d) : 0));
171
+ const t = this.datasetWithIds.filter((r) => !this.segregatedSeries.includes(r.id)), n = Math.max(...t.map((r) => r.series.length)), o = [];
172
+ for (let r = 0; r < n; r += 1)
173
+ o.push(t.map((e) => e.series[r] || 0).reduce((e, b) => (e || 0) + (b || 0), 0));
174
+ const g = Math.min(...o);
175
+ return o.map((r) => r + (g < 0 ? Math.abs(g) : 0));
176
176
  },
177
177
  customPalette() {
178
178
  return this.convertCustomPalette(this.FINAL_CONFIG.customPalette);
@@ -196,7 +196,7 @@ const Ke = Q(), Qe = {
196
196
  yOffset: e.yOffset || 0,
197
197
  individualHeight: e.individualHeight || this.drawingArea.height,
198
198
  autoScaleYLabels: e.autoScaleYLabels
199
- })), s = this.barSet.map((e) => ({
199
+ })), n = this.barSet.map((e) => ({
200
200
  name: e.name,
201
201
  color: e.color,
202
202
  scale: e.individualScale,
@@ -219,8 +219,8 @@ const Ke = Q(), Qe = {
219
219
  id: e.id,
220
220
  yOffset: e.yOffset || 0,
221
221
  individualHeight: e.individualHeight || this.drawingArea.height
222
- })), d = this.mutableConfig.useIndividualScale && !this.mutableConfig.isStacked ? Object.values(this.scaleGroups) : [...t, ...s, ...o], r = d.flatMap((e) => e).length;
223
- return d.flatMap((e, m) => ({
222
+ })), g = this.mutableConfig.useIndividualScale && !this.mutableConfig.isStacked ? Object.values(this.scaleGroups) : [...t, ...n, ...o], r = g.flatMap((e) => e).length;
223
+ return g.flatMap((e, b) => ({
224
224
  unique: e.unique,
225
225
  id: e.id,
226
226
  groupId: e.groupId,
@@ -230,10 +230,10 @@ const Ke = Q(), Qe = {
230
230
  scale: e.scale,
231
231
  yOffset: e.yOffset,
232
232
  individualHeight: e.individualHeight,
233
- x: this.mutableConfig.isStacked ? this.drawingArea.left : this.drawingArea.left / r * (m + 1),
234
- yLabels: e.scaleYLabels || e.scale.ticks.map((b) => ({
235
- y: b >= 0 ? e.zero - e.individualHeight * (b / e.max) : e.zero + e.individualHeight * Math.abs(b) / e.max,
236
- value: b
233
+ x: this.mutableConfig.isStacked ? this.drawingArea.left : this.drawingArea.left / r * (b + 1),
234
+ yLabels: e.scaleYLabels || e.scale.ticks.map((m) => ({
235
+ y: m >= 0 ? e.zero - e.individualHeight * (m / e.max) : e.zero + e.individualHeight * Math.abs(m) / e.max,
236
+ value: m
237
237
  }))
238
238
  }));
239
239
  },
@@ -257,9 +257,9 @@ const Ke = Q(), Qe = {
257
257
  },
258
258
  highlightAreas() {
259
259
  if (Array.isArray(this.FINAL_CONFIG.chart.highlightArea))
260
- return this.FINAL_CONFIG.chart.highlightArea.map((s) => ({
261
- ...s,
262
- span: s.from === s.to ? 1 : s.to < s.from ? 0 : s.to - s.from + 1
260
+ return this.FINAL_CONFIG.chart.highlightArea.map((n) => ({
261
+ ...n,
262
+ span: n.from === n.to ? 1 : n.to < n.from ? 0 : n.to - n.from + 1
263
263
  }));
264
264
  const t = this.FINAL_CONFIG.chart.highlightArea;
265
265
  return [{ ...t, span: t.from === t.to ? 1 : t.to < t.from ? 0 : t.to - t.from + 1 }];
@@ -274,33 +274,33 @@ const Ke = Q(), Qe = {
274
274
  return this.niceScale.max + this.relativeZero;
275
275
  },
276
276
  datasetWithIds() {
277
- return this.useSafeValues ? this.dataset.map((t, s) => ({
277
+ return this.useSafeValues ? this.dataset.map((t, n) => ({
278
278
  ...t,
279
279
  series: this.largestTriangleThreeBucketsArray({
280
280
  data: t.series,
281
281
  threshold: this.FINAL_CONFIG.downsample.threshold
282
282
  }),
283
- id: `uniqueId_${s}`
283
+ id: `uniqueId_${n}`
284
284
  })) : this.dataset;
285
285
  },
286
286
  safeDataset() {
287
- return this.useSafeValues ? this.dataset.map((t, s) => {
287
+ return this.useSafeValues ? this.dataset.map((t, n) => {
288
288
  const o = this.largestTriangleThreeBucketsArray({
289
289
  data: t.series,
290
290
  threshold: this.FINAL_CONFIG.downsample.threshold
291
- }), d = `uniqueId_${s}`;
291
+ }), g = `uniqueId_${n}`;
292
292
  return {
293
293
  ...t,
294
- slotAbsoluteIndex: s,
294
+ slotAbsoluteIndex: n,
295
295
  series: o.map((r) => this.isSafeValue(r) ? r : null).slice(this.slicer.start, this.slicer.end),
296
- color: this.convertColorToHex(t.color ? t.color : this.customPalette[s] ? this.customPalette[s] : this.palette[s]),
297
- id: d,
298
- scaleLabel: t.scaleLabel || d
296
+ color: this.convertColorToHex(t.color ? t.color : this.customPalette[n] ? this.customPalette[n] : this.palette[n]),
297
+ id: g,
298
+ scaleLabel: t.scaleLabel || g
299
299
  };
300
300
  }) : this.dataset;
301
301
  },
302
302
  relativeDataset() {
303
- return this.safeDataset.map((t, s) => ({
303
+ return this.safeDataset.map((t, n) => ({
304
304
  ...t,
305
305
  series: t.series.map((o) => o + this.relativeZero),
306
306
  absoluteValues: t.series
@@ -308,12 +308,12 @@ const Ke = Q(), Qe = {
308
308
  },
309
309
  tableSparklineDataset() {
310
310
  return this.relativeDataset.map((t) => {
311
- const s = t.absoluteValues.map((o) => [void 0, null].includes(o) ? 0 : o);
311
+ const n = t.absoluteValues.map((o) => [void 0, null].includes(o) ? 0 : o);
312
312
  return {
313
313
  id: t.id,
314
314
  name: t.name,
315
315
  color: t.color,
316
- values: this.fillArray(this.maxSeries, s)
316
+ values: this.fillArray(this.maxSeries, n)
317
317
  };
318
318
  });
319
319
  },
@@ -344,8 +344,8 @@ const Ke = Q(), Qe = {
344
344
  };
345
345
  },
346
346
  absoluteDataset() {
347
- return this.safeDataset.map((t, s) => ({
348
- absoluteIndex: s,
347
+ return this.safeDataset.map((t, n) => ({
348
+ absoluteIndex: n,
349
349
  ...t,
350
350
  series: t.series.map((o) => o + this.relativeZero),
351
351
  absoluteValues: t.series,
@@ -360,77 +360,77 @@ const Ke = Q(), Qe = {
360
360
  return this.assignStackRatios(this.absoluteDataset.filter((t) => !this.segregatedSeries.includes(t.id)));
361
361
  },
362
362
  scaleGroups() {
363
- const t = Object.groupBy(this.activeSeriesWithStackRatios, (o) => o.scaleLabel), s = {};
364
- for (const [o, d] of Object.entries(t)) {
365
- const r = d.flatMap((e) => e.absoluteValues);
366
- s[o] = {
363
+ const t = Object.groupBy(this.activeSeriesWithStackRatios, (o) => o.scaleLabel), n = {};
364
+ for (const [o, g] of Object.entries(t)) {
365
+ const r = g.flatMap((e) => e.absoluteValues);
366
+ n[o] = {
367
367
  min: Math.min(...r) || 0,
368
368
  max: Math.max(...r) || 1,
369
369
  groupId: `scale_group_${this.createUid()}`
370
370
  };
371
371
  }
372
- return s;
372
+ return n;
373
373
  },
374
374
  barSet() {
375
- return this.activeSeriesWithStackRatios.filter((t) => t.type === "bar").map((t, s) => {
375
+ return this.activeSeriesWithStackRatios.filter((t) => t.type === "bar").map((t, n) => {
376
376
  this.checkAutoScaleError(t);
377
- const o = this.scaleGroups[t.scaleLabel].min, d = this.scaleGroups[t.scaleLabel].max;
378
- t.absoluteValues.filter((A) => ![null, void 0].includes(A)).map((A) => (A - o) / (d - o));
377
+ const o = this.scaleGroups[t.scaleLabel].min, g = this.scaleGroups[t.scaleLabel].max;
378
+ t.absoluteValues.filter((L) => ![null, void 0].includes(L)).map((L) => (L - o) / (g - o));
379
379
  const r = {
380
380
  valueMin: o,
381
- valueMax: d < 0 ? 0 : d
381
+ valueMax: g < 0 ? 0 : g
382
382
  }, e = {
383
383
  max: t.scaleMax || Math.max(...t.absoluteValues) || 1,
384
- min: t.scaleMin || Math.min(...t.absoluteValues.filter((A) => ![void 0, null].includes(A))) > 0 ? 0 : Math.min(...t.absoluteValues.filter((A) => ![null, void 0].includes(A)))
385
- }, m = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, b = 1.0000001, x = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(e.min, e.max === e.min ? e.max * b : e.max, m) : this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * b : e.max, m), I = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(r.valueMin, r.valueMax === r.valueMin ? r.valueMax * b : r.valueMax, m) : this.calculateNiceScaleWithExactExtremes(r.valueMin, r.valueMax === r.valueMin ? r.valueMax * b : r.valueMax, m), v = x.min >= 0 ? 0 : Math.abs(x.min), S = 0, k = x.max + v, O = I.max + Math.abs(S), F = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, C = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, w = this.drawingArea.bottom - F - C * v / k, p = this.drawingArea.bottom - F - C * S / O, l = this.absoluteDataset.filter((A) => A.type === "bar").filter((A) => !this.segregatedSeries.includes(A.id)).length, c = t.series.map((A, z) => {
386
- const X = this.mutableConfig.useIndividualScale ? (t.absoluteValues[z] + v) / k : this.ratioToMax(A), D = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * z : this.drawingArea.left + this.slot.bar * s + this.slot.bar * z * l - this.barSlot / 2 - s * this.barPeriodGap;
384
+ min: t.scaleMin || Math.min(...t.absoluteValues.filter((L) => ![void 0, null].includes(L))) > 0 ? 0 : Math.min(...t.absoluteValues.filter((L) => ![null, void 0].includes(L)))
385
+ }, b = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, m = 1.0000001, x = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(e.min, e.max === e.min ? e.max * m : e.max, b) : this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * m : e.max, b), S = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(r.valueMin, r.valueMax === r.valueMin ? r.valueMax * m : r.valueMax, b) : this.calculateNiceScaleWithExactExtremes(r.valueMin, r.valueMax === r.valueMin ? r.valueMax * m : r.valueMax, b), k = x.min >= 0 ? 0 : Math.abs(x.min), w = 0, O = x.max + k, N = S.max + Math.abs(w), F = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, C = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, G = this.drawingArea.bottom - F - C * k / O, M = this.drawingArea.bottom - F - C * w / N, l = this.absoluteDataset.filter((L) => L.type === "bar").filter((L) => !this.segregatedSeries.includes(L.id)).length, c = t.series.map((L, z) => {
386
+ const X = this.mutableConfig.useIndividualScale ? (t.absoluteValues[z] + k) / O : this.ratioToMax(L), D = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * z : this.drawingArea.left + this.slot.bar * n + this.slot.bar * z * l - this.barSlot / 2 - n * this.barPeriodGap;
387
387
  return {
388
388
  yOffset: this.checkNaN(F),
389
389
  individualHeight: this.checkNaN(C),
390
390
  x: this.checkNaN(D),
391
391
  y: this.drawingArea.bottom - F - C * X,
392
392
  value: t.absoluteValues[z],
393
- zeroPosition: this.checkNaN(w),
394
- individualMax: this.checkNaN(k),
393
+ zeroPosition: this.checkNaN(G),
394
+ individualMax: this.checkNaN(O),
395
395
  comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[z] || ""
396
396
  };
397
- }), n = t.absoluteValues.map((A) => I.min >= 0 ? (A - Math.abs(I.min)) / (I.max - Math.abs(I.min)) : (A + Math.abs(I.min)) / (I.max + Math.abs(I.min))), h = t.series.map((A, z) => {
398
- const X = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * z : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar * s + this.slot.bar * z * this.absoluteDataset.filter((D) => D.type === "bar").filter((D) => !this.segregatedSeries.includes(D.id)).length;
397
+ }), s = t.absoluteValues.map((L) => S.min >= 0 ? (L - Math.abs(S.min)) / (S.max - Math.abs(S.min)) : (L + Math.abs(S.min)) / (S.max + Math.abs(S.min))), h = t.series.map((L, z) => {
398
+ const X = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * z : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar * n + this.slot.bar * z * this.absoluteDataset.filter((D) => D.type === "bar").filter((D) => !this.segregatedSeries.includes(D.id)).length;
399
399
  return {
400
400
  yOffset: this.checkNaN(F),
401
401
  individualHeight: this.checkNaN(C),
402
402
  x: this.checkNaN(X),
403
- y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(F) - (this.checkNaN(C) * n[z] || 0)),
403
+ y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(F) - (this.checkNaN(C) * s[z] || 0)),
404
404
  value: t.absoluteValues[z],
405
- zeroPosition: this.checkNaN(w),
406
- individualMax: this.checkNaN(k),
405
+ zeroPosition: this.checkNaN(G),
406
+ individualMax: this.checkNaN(O),
407
407
  comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[z] || ""
408
408
  };
409
- }), L = x.ticks.map((A) => ({
410
- y: A >= 0 ? w - C * (A / k) : w + C * Math.abs(A) / k,
411
- value: A,
409
+ }), A = x.ticks.map((L) => ({
410
+ y: L >= 0 ? G - C * (L / O) : G + C * Math.abs(L) / O,
411
+ value: L,
412
412
  prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
413
413
  suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
414
414
  datapoint: t
415
- })), M = I.ticks.map((A) => {
416
- const z = (A - I.min) / (I.max - I.min);
415
+ })), v = S.ticks.map((L) => {
416
+ const z = (L - S.min) / (S.max - S.min);
417
417
  return {
418
- y: A >= 0 ? p - C * z : p + C * z,
419
- value: A,
418
+ y: L >= 0 ? M - C * z : M + C * z,
419
+ value: L,
420
420
  prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
421
421
  suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
422
422
  datapoint: t
423
423
  };
424
424
  });
425
- return this.scaleGroups[t.scaleLabel].name = t.name, this.scaleGroups[t.scaleLabel].groupName = t.scaleLabel, this.scaleGroups[t.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || t.color, this.scaleGroups[t.scaleLabel].color = t.color, this.scaleGroups[t.scaleLabel].scaleYLabels = t.autoScaling ? M : L, this.scaleGroups[t.scaleLabel].zeroPosition = t.autoScaling ? p : w, this.scaleGroups[t.scaleLabel].individualMax = t.autoScaling ? O : k, this.scaleGroups[t.scaleLabel].scaleLabel = t.scaleLabel, this.scaleGroups[t.scaleLabel].id = t.id, this.scaleGroups[t.scaleLabel].yOffset = F, this.scaleGroups[t.scaleLabel].individualHeight = C, this.scaleGroups[t.scaleLabel].autoScaleYLabels = M, this.scaleGroups[t.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((A) => A.scaleLabel === t.scaleLabel).length === 1, {
425
+ return this.scaleGroups[t.scaleLabel].name = t.name, this.scaleGroups[t.scaleLabel].groupName = t.scaleLabel, this.scaleGroups[t.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || t.color, this.scaleGroups[t.scaleLabel].color = t.color, this.scaleGroups[t.scaleLabel].scaleYLabels = t.autoScaling ? v : A, this.scaleGroups[t.scaleLabel].zeroPosition = t.autoScaling ? M : G, this.scaleGroups[t.scaleLabel].individualMax = t.autoScaling ? N : O, this.scaleGroups[t.scaleLabel].scaleLabel = t.scaleLabel, this.scaleGroups[t.scaleLabel].id = t.id, this.scaleGroups[t.scaleLabel].yOffset = F, this.scaleGroups[t.scaleLabel].individualHeight = C, this.scaleGroups[t.scaleLabel].autoScaleYLabels = v, this.scaleGroups[t.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((L) => L.scaleLabel === t.scaleLabel).length === 1, {
426
426
  ...t,
427
427
  yOffset: F,
428
- autoScaleYLabels: M,
428
+ autoScaleYLabels: v,
429
429
  individualHeight: C,
430
- scaleYLabels: t.autoScaling ? M : L,
431
- individualScale: t.autoScaling ? I : x,
432
- individualMax: t.autoScaling ? O : k,
433
- zeroPosition: t.autoScaling ? p : w,
430
+ scaleYLabels: t.autoScaling ? v : A,
431
+ individualScale: t.autoScaling ? S : x,
432
+ individualMax: t.autoScaling ? N : O,
433
+ zeroPosition: t.autoScaling ? M : G,
434
434
  plots: t.autoScaling ? h : c,
435
435
  groupId: this.scaleGroups[t.scaleLabel].groupId
436
436
  };
@@ -439,19 +439,19 @@ const Ke = Q(), Qe = {
439
439
  lineSet() {
440
440
  return this.activeSeriesWithStackRatios.filter((t) => t.type === "line").map((t) => {
441
441
  this.checkAutoScaleError(t);
442
- const s = this.scaleGroups[t.scaleLabel].min, o = this.scaleGroups[t.scaleLabel].max;
443
- t.absoluteValues.filter((_) => ![null, void 0].includes(_)).map((_) => (_ - s) / (o - s));
444
- const d = {
445
- valueMin: s,
442
+ const n = this.scaleGroups[t.scaleLabel].min, o = this.scaleGroups[t.scaleLabel].max;
443
+ t.absoluteValues.filter((_) => ![null, void 0].includes(_)).map((_) => (_ - n) / (o - n));
444
+ const g = {
445
+ valueMin: n,
446
446
  valueMax: o
447
447
  }, r = {
448
448
  max: t.scaleMax || Math.max(...t.absoluteValues) || 1,
449
449
  min: t.scaleMin || (Math.min(...t.absoluteValues) > 0 ? 0 : Math.min(...t.absoluteValues))
450
- }, e = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, m = 1.0000001, b = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(r.min, r.max === r.min ? r.max * m : r.max, e) : this.calculateNiceScaleWithExactExtremes(r.min, r.max === r.min ? r.max * m : r.max, e), x = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(d.valueMin, d.valueMax === d.valueMin ? d.valueMax * m : d.valueMax, e) : this.calculateNiceScaleWithExactExtremes(d.valueMin, d.valueMax === d.valueMin ? d.valueMax * m : d.valueMax, e), I = b.min >= 0 ? 0 : Math.abs(b.min), v = 0, S = b.max + Math.abs(I), k = x.max + Math.abs(v), O = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, F = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - O - F * I / S, w = this.drawingArea.bottom - O - F * v / k, p = t.series.map((_, P) => {
451
- const ee = this.mutableConfig.useIndividualScale ? (t.absoluteValues[P] + Math.abs(I)) / S : this.ratioToMax(_);
450
+ }, e = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, b = 1.0000001, m = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(r.min, r.max === r.min ? r.max * b : r.max, e) : this.calculateNiceScaleWithExactExtremes(r.min, r.max === r.min ? r.max * b : r.max, e), x = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(g.valueMin, g.valueMax === g.valueMin ? g.valueMax * b : g.valueMax, e) : this.calculateNiceScaleWithExactExtremes(g.valueMin, g.valueMax === g.valueMin ? g.valueMax * b : g.valueMax, e), S = m.min >= 0 ? 0 : Math.abs(m.min), k = 0, w = m.max + Math.abs(S), O = x.max + Math.abs(k), N = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, F = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - N - F * S / w, G = this.drawingArea.bottom - N - F * k / O, M = t.series.map((_, P) => {
451
+ const ee = this.mutableConfig.useIndividualScale ? (t.absoluteValues[P] + Math.abs(S)) / w : this.ratioToMax(_);
452
452
  return {
453
453
  x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * P),
454
- y: this.checkNaN(this.drawingArea.bottom - O - F * ee),
454
+ y: this.checkNaN(this.drawingArea.bottom - N - F * ee),
455
455
  value: t.absoluteValues[P],
456
456
  comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[P] || ""
457
457
  };
@@ -462,11 +462,11 @@ const Ke = Q(), Qe = {
462
462
  comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[P] || ""
463
463
  } : {
464
464
  x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * P),
465
- y: this.checkNaN(this.drawingArea.bottom - O - (F * l[P] || 0)),
465
+ y: this.checkNaN(this.drawingArea.bottom - N - (F * l[P] || 0)),
466
466
  value: t.absoluteValues[P],
467
467
  comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[P] || ""
468
- }), n = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(p) : this.createSmoothPath(p.filter((_) => _.value !== null)), h = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(c) : this.createSmoothPath(c.filter((_) => _.value !== null)), L = this.FINAL_CONFIG.line.cutNullValues ? this.createStraightPathWithCuts(p) : this.createStraightPath(p.filter((_) => _.value !== null)), M = this.FINAL_CONFIG.line.cutNullValues ? this.createStraightPathWithCuts(c) : this.createStraightPath(c.filter((_) => _.value !== null)), A = b.ticks.map((_) => ({
469
- y: _ >= 0 ? C - F * (_ / S) : C + F * Math.abs(_) / S,
468
+ }), s = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(M) : this.createSmoothPath(M.filter((_) => _.value !== null)), h = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(c) : this.createSmoothPath(c.filter((_) => _.value !== null)), A = this.FINAL_CONFIG.line.cutNullValues ? this.createStraightPathWithCuts(M) : this.createStraightPath(M.filter((_) => _.value !== null)), v = this.FINAL_CONFIG.line.cutNullValues ? this.createStraightPathWithCuts(c) : this.createStraightPath(c.filter((_) => _.value !== null)), L = m.ticks.map((_) => ({
469
+ y: _ >= 0 ? C - F * (_ / w) : C + F * Math.abs(_) / w,
470
470
  value: _,
471
471
  prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
472
472
  suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
@@ -474,39 +474,39 @@ const Ke = Q(), Qe = {
474
474
  })), z = x.ticks.map((_) => {
475
475
  const P = (_ - x.min) / (x.max - x.min);
476
476
  return {
477
- y: _ >= 0 ? w - F * P : w + F * P,
477
+ y: _ >= 0 ? G - F * P : G + F * P,
478
478
  value: _,
479
479
  prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
480
480
  suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
481
481
  datapoint: t
482
482
  };
483
483
  });
484
- this.scaleGroups[t.scaleLabel].name = t.name, this.scaleGroups[t.scaleLabel].groupName = t.scaleLabel, this.scaleGroups[t.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || t.color, this.scaleGroups[t.scaleLabel].color = t.color, this.scaleGroups[t.scaleLabel].scaleYLabels = t.autoScaling ? z : A, this.scaleGroups[t.scaleLabel].zeroPosition = t.autoScaling ? w : C, this.scaleGroups[t.scaleLabel].individualMax = t.autoScaling ? k : S, this.scaleGroups[t.scaleLabel].scaleLabel = t.scaleLabel, this.scaleGroups[t.scaleLabel].id = t.id, this.scaleGroups[t.scaleLabel].yOffset = O, this.scaleGroups[t.scaleLabel].individualHeight = F, this.scaleGroups[t.scaleLabel].autoScaleYLabels = z, this.scaleGroups[t.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((_) => _.scaleLabel === t.scaleLabel).length === 1;
485
- const X = this.mutableConfig.useIndividualScale ? t.autoScaling ? w : C : this.zero, D = Math.max(Math.max(t.autoScaling ? w : A.at(-1).y, this.drawingArea.top), X);
484
+ this.scaleGroups[t.scaleLabel].name = t.name, this.scaleGroups[t.scaleLabel].groupName = t.scaleLabel, this.scaleGroups[t.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || t.color, this.scaleGroups[t.scaleLabel].color = t.color, this.scaleGroups[t.scaleLabel].scaleYLabels = t.autoScaling ? z : L, this.scaleGroups[t.scaleLabel].zeroPosition = t.autoScaling ? G : C, this.scaleGroups[t.scaleLabel].individualMax = t.autoScaling ? O : w, this.scaleGroups[t.scaleLabel].scaleLabel = t.scaleLabel, this.scaleGroups[t.scaleLabel].id = t.id, this.scaleGroups[t.scaleLabel].yOffset = N, this.scaleGroups[t.scaleLabel].individualHeight = F, this.scaleGroups[t.scaleLabel].autoScaleYLabels = z, this.scaleGroups[t.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((_) => _.scaleLabel === t.scaleLabel).length === 1;
485
+ const X = this.mutableConfig.useIndividualScale ? t.autoScaling ? G : C : this.zero, D = Math.max(Math.max(t.autoScaling ? G : L.at(-1).y, this.drawingArea.top), X);
486
486
  return {
487
487
  ...t,
488
- yOffset: O,
488
+ yOffset: N,
489
489
  autoScaleYLabels: z,
490
490
  individualHeight: F,
491
- scaleYLabels: t.autoScaling ? z : A,
492
- individualScale: t.autoScaling ? x : b,
493
- individualMax: t.autoScaling ? k : S,
494
- zeroPosition: t.autoScaling ? w : C,
495
- curve: t.autoScaling ? h : n,
496
- plots: t.autoScaling ? c : p,
491
+ scaleYLabels: t.autoScaling ? z : L,
492
+ individualScale: t.autoScaling ? x : m,
493
+ individualMax: t.autoScaling ? O : w,
494
+ zeroPosition: t.autoScaling ? G : C,
495
+ curve: t.autoScaling ? h : s,
496
+ plots: t.autoScaling ? c : M,
497
497
  area: t.useArea ? this.mutableConfig.useIndividualScale ? this.FINAL_CONFIG.line.cutNullValues ? this.createIndividualAreaWithCuts(
498
- t.autoScaling ? c : p,
498
+ t.autoScaling ? c : M,
499
499
  D
500
500
  ) : this.createIndividualArea(
501
- t.autoScaling ? c.filter((_) => _.value !== null) : p.filter((_) => _.value !== null),
501
+ t.autoScaling ? c.filter((_) => _.value !== null) : M.filter((_) => _.value !== null),
502
502
  D
503
- ) : this.createIndividualArea(p.filter((_) => _.value !== null), D) : "",
503
+ ) : this.createIndividualArea(M.filter((_) => _.value !== null), D) : "",
504
504
  curveAreas: t.useArea ? j(
505
- t.autoScaling ? this.FINAL_CONFIG.line.cutNullValues ? c : c.filter((_) => _.value !== null) : this.FINAL_CONFIG.line.cutNullValues ? p : p.filter((_) => _.value !== null),
505
+ t.autoScaling ? this.FINAL_CONFIG.line.cutNullValues ? c : c.filter((_) => _.value !== null) : this.FINAL_CONFIG.line.cutNullValues ? M : M.filter((_) => _.value !== null),
506
506
  D,
507
507
  this.FINAL_CONFIG.line.cutNullValues
508
508
  ) : [],
509
- straight: t.autoScaling ? M : L,
509
+ straight: t.autoScaling ? v : A,
510
510
  groupId: this.scaleGroups[t.scaleLabel].groupId
511
511
  };
512
512
  });
@@ -514,66 +514,66 @@ const Ke = Q(), Qe = {
514
514
  plotSet() {
515
515
  return this.activeSeriesWithStackRatios.filter((t) => t.type === "plot").map((t) => {
516
516
  this.checkAutoScaleError(t);
517
- const s = this.scaleGroups[t.scaleLabel].min, o = this.scaleGroups[t.scaleLabel].max;
518
- t.absoluteValues.filter((L) => ![null, void 0].includes(L)).map((L) => (L - s) / (o - s));
519
- const d = {
520
- valueMin: s,
517
+ const n = this.scaleGroups[t.scaleLabel].min, o = this.scaleGroups[t.scaleLabel].max;
518
+ t.absoluteValues.filter((A) => ![null, void 0].includes(A)).map((A) => (A - n) / (o - n));
519
+ const g = {
520
+ valueMin: n,
521
521
  valueMax: o
522
522
  }, r = {
523
523
  max: t.scaleMax || Math.max(...t.absoluteValues) || 1,
524
524
  min: t.scaleMin || Math.min(...t.absoluteValues) > 0 ? 0 : Math.min(...t.absoluteValues)
525
- }, e = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, m = 1.0000001, b = this.calculateNiceScaleWithExactExtremes(r.min, r.max === r.min ? r.max * m : r.max, e), x = this.calculateNiceScaleWithExactExtremes(d.valueMin, d.valueMax === d.valueMin ? d.valueMax * m : d.valueMax, e), I = b.min >= 0 ? 0 : Math.abs(b.min), v = 0, S = b.max + I, k = x.max + Math.abs(v), O = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, F = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - O - F * I / S, w = this.drawingArea.bottom - O - F * v / k, p = t.series.map((L, M) => {
526
- const A = this.mutableConfig.useIndividualScale ? (t.absoluteValues[M] + Math.abs(I)) / S : this.ratioToMax(L);
525
+ }, e = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, b = 1.0000001, m = this.calculateNiceScaleWithExactExtremes(r.min, r.max === r.min ? r.max * b : r.max, e), x = this.calculateNiceScaleWithExactExtremes(g.valueMin, g.valueMax === g.valueMin ? g.valueMax * b : g.valueMax, e), S = m.min >= 0 ? 0 : Math.abs(m.min), k = 0, w = m.max + S, O = x.max + Math.abs(k), N = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, F = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - N - F * S / w, G = this.drawingArea.bottom - N - F * k / O, M = t.series.map((A, v) => {
526
+ const L = this.mutableConfig.useIndividualScale ? (t.absoluteValues[v] + Math.abs(S)) / w : this.ratioToMax(A);
527
527
  return {
528
- x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * M),
529
- y: this.checkNaN(this.drawingArea.bottom - O - F * A),
530
- value: t.absoluteValues[M],
531
- comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[M] || ""
528
+ x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * v),
529
+ y: this.checkNaN(this.drawingArea.bottom - N - F * L),
530
+ value: t.absoluteValues[v],
531
+ comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[v] || ""
532
532
  };
533
- }), l = t.absoluteValues.map((L) => x.min >= 0 ? (L - Math.abs(x.min)) / (x.max - Math.abs(x.min)) : (L + Math.abs(x.min)) / (x.max + Math.abs(x.min))), c = t.series.map((L, M) => ({
534
- x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * M),
535
- y: this.checkNaN(this.drawingArea.bottom - O - (F * l[M] || 0)),
536
- value: t.absoluteValues[M],
537
- comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[M] || ""
538
- })), n = b.ticks.map((L) => ({
539
- y: L >= 0 ? C - F * (L / S) : C + F * Math.abs(L) / S,
540
- value: L,
533
+ }), l = t.absoluteValues.map((A) => x.min >= 0 ? (A - Math.abs(x.min)) / (x.max - Math.abs(x.min)) : (A + Math.abs(x.min)) / (x.max + Math.abs(x.min))), c = t.series.map((A, v) => ({
534
+ x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * v),
535
+ y: this.checkNaN(this.drawingArea.bottom - N - (F * l[v] || 0)),
536
+ value: t.absoluteValues[v],
537
+ comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[v] || ""
538
+ })), s = m.ticks.map((A) => ({
539
+ y: A >= 0 ? C - F * (A / w) : C + F * Math.abs(A) / w,
540
+ value: A,
541
541
  prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
542
542
  suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
543
543
  datapoint: t
544
- })), h = x.ticks.map((L) => {
545
- const M = (L - x.min) / (x.max - x.min);
544
+ })), h = x.ticks.map((A) => {
545
+ const v = (A - x.min) / (x.max - x.min);
546
546
  return {
547
- y: L >= 0 ? w - F * M : w + F * M,
548
- value: L,
547
+ y: A >= 0 ? G - F * v : G + F * v,
548
+ value: A,
549
549
  prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
550
550
  suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
551
551
  datapoint: t
552
552
  };
553
553
  });
554
- return this.scaleGroups[t.scaleLabel].name = t.name, this.scaleGroups[t.scaleLabel].groupName = t.scaleLabel, this.scaleGroups[t.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || t.color, this.scaleGroups[t.scaleLabel].color = t.color, this.scaleGroups[t.scaleLabel].scaleYLabels = t.autoScaling ? h : n, this.scaleGroups[t.scaleLabel].zeroPosition = t.autoScaling ? w : C, this.scaleGroups[t.scaleLabel].individualMax = t.autoScaling ? k : S, this.scaleGroups[t.scaleLabel].scaleLabel = t.scaleLabel, this.scaleGroups[t.scaleLabel].id = t.id, this.scaleGroups[t.scaleLabel].yOffset = O, this.scaleGroups[t.scaleLabel].individualHeight = F, this.scaleGroups[t.scaleLabel].autoScaleYLabels = h, this.scaleGroups[t.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((L) => L.scaleLabel === t.scaleLabel).length === 1, {
554
+ return this.scaleGroups[t.scaleLabel].name = t.name, this.scaleGroups[t.scaleLabel].groupName = t.scaleLabel, this.scaleGroups[t.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || t.color, this.scaleGroups[t.scaleLabel].color = t.color, this.scaleGroups[t.scaleLabel].scaleYLabels = t.autoScaling ? h : s, this.scaleGroups[t.scaleLabel].zeroPosition = t.autoScaling ? G : C, this.scaleGroups[t.scaleLabel].individualMax = t.autoScaling ? O : w, this.scaleGroups[t.scaleLabel].scaleLabel = t.scaleLabel, this.scaleGroups[t.scaleLabel].id = t.id, this.scaleGroups[t.scaleLabel].yOffset = N, this.scaleGroups[t.scaleLabel].individualHeight = F, this.scaleGroups[t.scaleLabel].autoScaleYLabels = h, this.scaleGroups[t.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((A) => A.scaleLabel === t.scaleLabel).length === 1, {
555
555
  ...t,
556
- yOffset: O,
556
+ yOffset: N,
557
557
  autoScaleYLabels: h,
558
558
  individualHeight: F,
559
- scaleYLabels: t.autoScaling ? h : n,
560
- individualScale: t.autoScaling ? x : b,
561
- individualMax: t.autoScaling ? k : S,
562
- zeroPosition: t.autoScaling ? w : C,
563
- plots: t.autoScaling ? c : p,
559
+ scaleYLabels: t.autoScaling ? h : s,
560
+ individualScale: t.autoScaling ? x : m,
561
+ individualMax: t.autoScaling ? O : w,
562
+ zeroPosition: t.autoScaling ? G : C,
563
+ plots: t.autoScaling ? c : M,
564
564
  groupId: this.scaleGroups[t.scaleLabel].groupId
565
565
  };
566
566
  });
567
567
  },
568
568
  drawingArea() {
569
- function t(d) {
569
+ function t(g) {
570
570
  const r = /* @__PURE__ */ new Set();
571
- return d.forEach((e) => {
572
- const m = e.scaleLabel || "__noScaleLabel__";
573
- r.add(m);
571
+ return g.forEach((e) => {
572
+ const b = e.scaleLabel || "__noScaleLabel__";
573
+ r.add(b);
574
574
  }), r.size;
575
575
  }
576
- const s = t(this.absoluteDataset.filter((d) => !this.segregatedSeries.includes(d.id))), o = this.mutableConfig.useIndividualScale && this.FINAL_CONFIG.chart.grid.labels.show ? s * (this.mutableConfig.isStacked ? 0 : this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth) : 0;
576
+ const n = t(this.absoluteDataset.filter((g) => !this.segregatedSeries.includes(g.id))), o = this.mutableConfig.useIndividualScale && this.FINAL_CONFIG.chart.grid.labels.show ? n * (this.mutableConfig.isStacked ? 0 : this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth) : 0;
577
577
  return {
578
578
  top: this.FINAL_CONFIG.chart.padding.top,
579
579
  right: this.width - this.FINAL_CONFIG.chart.padding.right,
@@ -589,7 +589,7 @@ const Ke = Q(), Qe = {
589
589
  min() {
590
590
  if (this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin !== null)
591
591
  return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin;
592
- const t = Math.min(...this.safeDataset.filter((s) => !this.segregatedSeries.includes(s.id)).map((s) => Math.min(...s.series)));
592
+ const t = Math.min(...this.safeDataset.filter((n) => !this.segregatedSeries.includes(n.id)).map((n) => Math.min(...n.series)));
593
593
  return t > 0 ? 0 : t;
594
594
  },
595
595
  niceScale() {
@@ -599,13 +599,13 @@ const Ke = Q(), Qe = {
599
599
  return this.slicer.end - this.slicer.start;
600
600
  },
601
601
  timeLabels() {
602
- const t = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length)), s = [];
602
+ const t = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length)), n = [];
603
603
  for (let o = 0; o < t; o += 1)
604
- s.push({
604
+ n.push({
605
605
  text: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[o] || String(o),
606
606
  absoluteIndex: o
607
607
  });
608
- return s.slice(this.slicer.start, this.slicer.end);
608
+ return n.slice(this.slicer.start, this.slicer.end);
609
609
  },
610
610
  slot() {
611
611
  return {
@@ -615,7 +615,7 @@ const Ke = Q(), Qe = {
615
615
  };
616
616
  },
617
617
  barSlot() {
618
- const t = this.safeDataset.filter((s) => s.type === "bar").filter((s) => !this.segregatedSeries.includes(s.id)).length;
618
+ const t = this.safeDataset.filter((n) => n.type === "bar").filter((n) => !this.segregatedSeries.includes(n.id)).length;
619
619
  return this.drawingArea.width / this.maxSeries / t - this.barPeriodGap * t;
620
620
  },
621
621
  barPeriodGap() {
@@ -630,39 +630,39 @@ const Ke = Q(), Qe = {
630
630
  label: o.name,
631
631
  color: o.color,
632
632
  type: o.type
633
- })), s = [];
634
- return this.timeLabels.forEach((o, d) => {
633
+ })), n = [];
634
+ return this.timeLabels.forEach((o, g) => {
635
635
  const r = [o.text];
636
636
  this.relativeDataset.forEach((e) => {
637
- r.push(this.canShowValue(e.absoluteValues[d]) ? Number(e.absoluteValues[d].toFixed(this.FINAL_CONFIG.table.rounding)) : "");
638
- }), s.push(r);
639
- }), { head: t, body: s };
637
+ r.push(this.canShowValue(e.absoluteValues[g]) ? Number(e.absoluteValues[g].toFixed(this.FINAL_CONFIG.table.rounding)) : "");
638
+ }), n.push(r);
639
+ }), { head: t, body: n };
640
640
  },
641
641
  dataTable() {
642
642
  const t = this.FINAL_CONFIG.table.showSum;
643
- let s = [""].concat(this.relativeDataset.map((e) => e.name));
644
- t && (s = s.concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'));
643
+ let n = [""].concat(this.relativeDataset.map((e) => e.name));
644
+ t && (n = n.concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'));
645
645
  let o = [];
646
646
  for (let e = 0; e < this.maxSeries; e += 1) {
647
- const m = this.relativeDataset.map((b) => b.absoluteValues[e] ?? 0).reduce((b, x) => b + x, 0);
647
+ const b = this.relativeDataset.map((m) => m.absoluteValues[e] ?? 0).reduce((m, x) => m + x, 0);
648
648
  o.push(
649
649
  [
650
650
  this.timeLabels[e].text ?? "-"
651
651
  ].concat(this.relativeDataset.map(
652
- (b) => this.applyDataLabel(
653
- b.type === "line" ? this.FINAL_CONFIG.line.labels.formatter : b.type === "bar" ? this.FINAL_CONFIG.bar.labels.formatter : this.FINAL_CONFIG.plot.labels.formatter,
654
- b.absoluteValues[e] ?? 0,
652
+ (m) => this.applyDataLabel(
653
+ m.type === "line" ? this.FINAL_CONFIG.line.labels.formatter : m.type === "bar" ? this.FINAL_CONFIG.bar.labels.formatter : this.FINAL_CONFIG.plot.labels.formatter,
654
+ m.absoluteValues[e] ?? 0,
655
655
  this.dataLabel({
656
- p: b.prefix || this.FINAL_CONFIG.chart.labels.prefix,
657
- v: b.absoluteValues[e] ?? 0,
658
- s: b.suffix || this.FINAL_CONFIG.chart.labels.suffix,
656
+ p: m.prefix || this.FINAL_CONFIG.chart.labels.prefix,
657
+ v: m.absoluteValues[e] ?? 0,
658
+ s: m.suffix || this.FINAL_CONFIG.chart.labels.suffix,
659
659
  r: this.FINAL_CONFIG.table.rounding
660
660
  })
661
661
  )
662
- )).concat(t ? (m ?? 0).toFixed(this.FINAL_CONFIG.table.rounding) : [])
662
+ )).concat(t ? (b ?? 0).toFixed(this.FINAL_CONFIG.table.rounding) : [])
663
663
  );
664
664
  }
665
- const d = {
665
+ const g = {
666
666
  th: {
667
667
  backgroundColor: this.FINAL_CONFIG.table.th.backgroundColor,
668
668
  color: this.FINAL_CONFIG.table.th.color,
@@ -675,7 +675,7 @@ const Ke = Q(), Qe = {
675
675
  },
676
676
  breakpoint: this.FINAL_CONFIG.table.responsiveBreakpoint
677
677
  }, r = [this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map((e) => e.name)).concat(this.FINAL_CONFIG.table.columnNames.total);
678
- return { head: s, body: o, config: d, colNames: r };
678
+ return { head: n, body: o, config: g, colNames: r };
679
679
  },
680
680
  dataTooltipSlot() {
681
681
  return {
@@ -695,16 +695,16 @@ const Ke = Q(), Qe = {
695
695
  name: t.name,
696
696
  color: t.color,
697
697
  type: t.type,
698
- value: t.absoluteValues.find((s, o) => o === this.selectedSerieIndex),
698
+ value: t.absoluteValues.find((n, o) => o === this.selectedSerieIndex),
699
699
  comments: t.comments || [],
700
700
  prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
701
701
  suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix
702
702
  }));
703
703
  },
704
704
  tooltipContent() {
705
- let t = "", s = this.selectedSeries.map((r) => r.value).filter((r) => this.isSafeValue(r) && r !== null).reduce((r, e) => Math.abs(r) + Math.abs(e), 0);
706
- const o = this.timeLabels[this.selectedSerieIndex], d = this.FINAL_CONFIG.chart.tooltip.customFormat;
707
- return this.isFunction(d) && this.functionReturnsString(() => d({
705
+ let t = "", n = this.selectedSeries.map((r) => r.value).filter((r) => this.isSafeValue(r) && r !== null).reduce((r, e) => Math.abs(r) + Math.abs(e), 0);
706
+ const o = this.timeLabels[this.selectedSerieIndex], g = this.FINAL_CONFIG.chart.tooltip.customFormat;
707
+ return this.isFunction(g) && this.functionReturnsString(() => g({
708
708
  seriesIndex: this.selectedSerieIndex,
709
709
  datapoint: this.selectedSeries,
710
710
  series: this.absoluteDataset,
@@ -712,7 +712,7 @@ const Ke = Q(), Qe = {
712
712
  lines: this.lineSet,
713
713
  plots: this.plotSet,
714
714
  config: this.FINAL_CONFIG
715
- })) ? d({
715
+ })) ? g({
716
716
  seriesIndex: this.selectedSerieIndex,
717
717
  datapoint: this.selectedSeries,
718
718
  series: this.absoluteDataset,
@@ -722,13 +722,13 @@ const Ke = Q(), Qe = {
722
722
  config: this.FINAL_CONFIG
723
723
  }) : (o && o.text && this.FINAL_CONFIG.chart.tooltip.showTimeLabel && (t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${o.text}</div>`), this.selectedSeries.forEach((r) => {
724
724
  if (this.isSafeValue(r.value)) {
725
- let e = "", m = "";
725
+ let e = "", b = "";
726
726
  switch (this.icons[r.type]) {
727
727
  case "bar":
728
728
  e = `<svg viewBox="0 0 40 40" height="14" width="14">${this.$slots.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${r.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${this.$slots.pattern ? `url(#pattern_${this.uniqueId}_${r.slotAbsoluteIndex}` : r.color}" /></svg>`;
729
729
  break;
730
730
  case "line":
731
- !r.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(r.shape) ? m = `<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${r.color}" />` : r.shape === "triangle" ? m = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : r.shape === "square" ? m = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : r.shape === "diamond" ? m = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : r.shape === "pentagon" ? m = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : r.shape === "hexagon" ? m = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : r.shape === "star" && (m = `<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${r.color}" points="${Z({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), e = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${r.color}" />${m}</svg>`;
731
+ !r.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(r.shape) ? b = `<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${r.color}" />` : r.shape === "triangle" ? b = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : r.shape === "square" ? b = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : r.shape === "diamond" ? b = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : r.shape === "pentagon" ? b = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : r.shape === "hexagon" ? b = `<path d="${H({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : r.shape === "star" && (b = `<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${r.color}" points="${Z({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), e = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${r.color}" />${b}</svg>`;
732
732
  break;
733
733
  case "plot":
734
734
  if (!r.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(r.shape)) {
@@ -771,7 +771,7 @@ const Ke = Q(), Qe = {
771
771
  }),
772
772
  { datapoint: r }
773
773
  ) : ""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage ? `(${$({
774
- v: this.checkNaN(Math.abs(r.value) / s * 100),
774
+ v: this.checkNaN(Math.abs(r.value) / n * 100),
775
775
  s: "%",
776
776
  r: this.FINAL_CONFIG.chart.tooltip.roundingPercentage
777
777
  })})` : ""}</div>`, this.FINAL_CONFIG.chart.comments.showInTooltip && r.comments.length && r.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex] && (t += `<div class="vue-data-ui-tooltip-comment" style="background:${r.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${r.color}">${r.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex]}</div>`);
@@ -797,38 +797,42 @@ const Ke = Q(), Qe = {
797
797
  },
798
798
  annotationsY() {
799
799
  const t = this.FINAL_CONFIG.chart.annotations;
800
- if (!t.length || t.every((m) => !m.show) || t.every((m) => m.yAxis.yTop === null && m.yAxis.yBottom === null))
801
- return [];
802
- const s = t.filter((m) => m.show && (m.yAxis.yTop != null || m.yAxis.yBottom != null));
803
- if (!s.length) return [];
804
- const { bottom: o, height: d, left: r, right: e } = this.drawingArea;
805
- return s.map((m) => {
806
- const { yTop: b, yBottom: x, label: I } = m.yAxis, v = b != null && x != null && Math.abs(b - x) > 0, S = b == null ? null : o - d * this.ratioToMax(b), k = x == null ? null : o - d * this.ratioToMax(x), O = this.getTextMeasurer(I.fontSize);
807
- O.font = `${I.fontSize}px sans-serif`;
808
- const F = O.measureText(I.text).width, C = I.fontSize, w = (I.position === "start" ? r + I.padding.left : e - I.padding.right) + I.offsetX, l = (S != null && k != null ? Math.min(S, k) : S ?? k) - I.fontSize / 3 + I.offsetY - I.padding.top;
809
- let c;
810
- I.textAnchor === "middle" ? c = w - F / 2 - I.padding.left : I.textAnchor === "end" ? c = w - F - I.padding.right : c = w - I.padding.left;
811
- const n = l - C * 0.75 - I.padding.top;
800
+ if (!Array.isArray(t) || t.every((k) => !k.show)) return [];
801
+ const n = t.filter(
802
+ (k) => k.show && (k.yAxis.yTop != null || k.yAxis.yBottom != null)
803
+ );
804
+ if (!n.length) return [];
805
+ const { left: o, right: g } = this.drawingArea, r = this.zero, e = this.drawingArea.height, b = this.niceScale.min, x = this.niceScale.max - b, S = (k) => {
806
+ const w = (k - 0) / x;
807
+ return r - w * e;
808
+ };
809
+ return n.map((k) => {
810
+ const { yAxis: { yTop: w, yBottom: O, label: N } } = k, F = w != null && O != null && w !== O, C = w == null ? null : S(w), G = O == null ? null : S(O), M = this.getTextMeasurer(N.fontSize);
811
+ M.font = `${N.fontSize}px sans-serif`;
812
+ const l = M.measureText(N.text).width, c = N.fontSize, s = (N.position === "start" ? o + N.padding.left : g - N.padding.right) + N.offsetX, A = (C != null && G != null ? Math.min(C, G) : C ?? G) - N.fontSize / 3 + N.offsetY - N.padding.top;
813
+ let v;
814
+ N.textAnchor === "middle" ? v = s - l / 2 - N.padding.left : N.textAnchor === "end" ? v = s - l - N.padding.right : v = s - N.padding.left;
815
+ const L = A - c * 0.75 - N.padding.top;
812
816
  return {
813
817
  id: `annotation_y_${this.createUid()}`,
814
- hasArea: v,
815
- areaHeight: v ? Math.abs(S - k) : 0,
816
- yTop: S,
817
- yBottom: k,
818
- config: m.yAxis,
819
- x1: r,
820
- x2: e,
821
- _text: { x: w, y: l },
818
+ hasArea: F,
819
+ areaHeight: F ? Math.abs(C - G) : 0,
820
+ yTop: C,
821
+ yBottom: G,
822
+ config: k.yAxis,
823
+ x1: o,
824
+ x2: g,
825
+ _text: { x: s, y: A },
822
826
  _box: {
823
- x: c,
824
- y: n,
825
- width: F + (I.padding.left + I.padding.right),
826
- height: C + I.padding.top + I.padding.bottom,
827
- fill: I.backgroundColor,
828
- stroke: I.border.stroke,
829
- rx: I.border.rx,
830
- ry: I.border.ry,
831
- strokeWidth: I.border.strokeWidth
827
+ x: v,
828
+ y: L,
829
+ width: l + N.padding.left + N.padding.right,
830
+ height: c + N.padding.top + N.padding.bottom,
831
+ fill: N.backgroundColor,
832
+ stroke: N.border.stroke,
833
+ rx: N.border.rx,
834
+ ry: N.border.ry,
835
+ strokeWidth: N.border.strokeWidth
832
836
  }
833
837
  };
834
838
  });
@@ -864,8 +868,8 @@ const Ke = Q(), Qe = {
864
868
  createTSpans: Fe,
865
869
  dataLabel: $,
866
870
  downloadCsv: be,
867
- error: xe,
868
- forceValidValue: me,
871
+ error: me,
872
+ forceValidValue: xe,
869
873
  functionReturnsString: Ne,
870
874
  hasDeepProperty: Ie,
871
875
  isFunction: fe,
@@ -876,29 +880,29 @@ const Ke = Q(), Qe = {
876
880
  shiftHue: oe,
877
881
  translateSize: ce,
878
882
  treeShake: ne,
879
- useMouse: Be,
883
+ useMouse: We,
880
884
  useNestedProp: J,
881
885
  createUid: Q,
882
886
  placeXYTag: se,
883
- createSmoothPathWithCuts: ae,
884
- createStraightPathWithCuts: ie,
887
+ createSmoothPathWithCuts: ie,
888
+ createStraightPathWithCuts: ae,
885
889
  createAreaWithCuts: re,
886
890
  createIndividualAreaWithCuts: le,
887
891
  createSmoothAreaSegments: j,
888
892
  createIndividualArea: te,
889
- getTextMeasurer(t, s, o) {
893
+ getTextMeasurer(t, n, o) {
890
894
  if (!this._textMeasurer) {
891
- const d = document.createElement("canvas");
892
- this._textMeasurer = d.getContext("2d");
895
+ const g = document.createElement("canvas");
896
+ this._textMeasurer = g.getContext("2d");
893
897
  }
894
- return this._textMeasurer.font = `${o || "normal"} ${t}px ${s || "sans-serif"}`, this._textMeasurer;
898
+ return this._textMeasurer.font = `${o || "normal"} ${t}px ${n || "sans-serif"}`, this._textMeasurer;
895
899
  },
896
900
  hideTags() {
897
901
  const t = document.querySelectorAll(".vue-ui-xy-tag");
898
- t.length && Array.from(t).forEach((s) => s.style.opacity = "0");
902
+ t.length && Array.from(t).forEach((n) => n.style.opacity = "0");
899
903
  },
900
- setTagRef(t, s, o, d, r) {
901
- o && (this.tagRefs[`${t}_${s}_${d}_${r}`] = o);
904
+ setTagRef(t, n, o, g, r) {
905
+ o && (this.tagRefs[`${t}_${n}_${g}_${r}`] = o);
902
906
  },
903
907
  setUserOptionsVisibility(t = !1) {
904
908
  this.showUserOptionsOnChartHover && (this.userOptionsVisible = t);
@@ -906,16 +910,16 @@ const Ke = Q(), Qe = {
906
910
  toggleAnnotator() {
907
911
  this.isAnnotator = !this.isAnnotator;
908
912
  },
909
- selectTimeLabel(t, s) {
910
- const o = this.relativeDataset.map((d) => ({
911
- shape: d.shape || null,
912
- name: d.name,
913
- color: d.color,
914
- type: d.type,
915
- value: d.absoluteValues.find((r, e) => e === s),
916
- comments: d.comments || [],
917
- prefix: d.prefix || this.FINAL_CONFIG.chart.labels.prefix,
918
- suffix: d.suffix || this.FINAL_CONFIG.chart.labels.suffix
913
+ selectTimeLabel(t, n) {
914
+ const o = this.relativeDataset.map((g) => ({
915
+ shape: g.shape || null,
916
+ name: g.name,
917
+ color: g.color,
918
+ type: g.type,
919
+ value: g.absoluteValues.find((r, e) => e === n),
920
+ comments: g.comments || [],
921
+ prefix: g.prefix || this.FINAL_CONFIG.chart.labels.prefix,
922
+ suffix: g.suffix || this.FINAL_CONFIG.chart.labels.suffix
919
923
  }));
920
924
  this.$emit("selectTimeLabel", {
921
925
  datapoint: o,
@@ -924,9 +928,9 @@ const Ke = Q(), Qe = {
924
928
  });
925
929
  },
926
930
  getHighlightAreaPosition(t) {
927
- const s = this.drawingArea.left + this.drawingArea.width / this.maxSeries * (t.from - this.slicer.start), o = this.drawingArea.width / (this.slicer.end - this.slicer.start) * t.span < 0 ? 1e-5 : this.drawingArea.width / (this.slicer.end - this.slicer.start) * t.span;
931
+ const n = this.drawingArea.left + this.drawingArea.width / this.maxSeries * (t.from - this.slicer.start), o = this.drawingArea.width / (this.slicer.end - this.slicer.start) * t.span < 0 ? 1e-5 : this.drawingArea.width / (this.slicer.end - this.slicer.start) * t.span;
928
932
  return {
929
- x: s < this.drawingArea.left ? this.drawingArea.left : s,
933
+ x: n < this.drawingArea.left ? this.drawingArea.left : n,
930
934
  width: o
931
935
  };
932
936
  },
@@ -934,37 +938,37 @@ const Ke = Q(), Qe = {
934
938
  const t = Pe().vue_ui_xy;
935
939
  if (!Object.keys(this.config || {}).length)
936
940
  return t;
937
- const s = this.useNestedProp({
941
+ const n = this.useNestedProp({
938
942
  userConfig: this.config,
939
943
  defaultConfig: t
940
944
  });
941
- return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ? s.chart.highlightArea = this.config.chart.highlightArea : s.chart.highlightArea = [this.config.chart.highlightArea]), this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMin") ? s.chart.grid.labels.yAxis.scaleMin = this.config.chart.grid.labels.yAxis.scaleMin : s.chart.grid.labels.yAxis.scaleMin = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMax") ? s.chart.grid.labels.yAxis.scaleMax = this.config.chart.grid.labels.yAxis.scaleMax : s.chart.grid.labels.yAxis.scaleMax = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.startIndex") ? s.chart.zoom.startIndex = this.config.chart.zoom.startIndex : s.chart.zoom.startIndex = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.endIndex") ? s.chart.zoom.endIndex = this.config.chart.zoom.endIndex : s.chart.zoom.endIndex = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.groupColor") ? s.chart.grid.labels.yAxis.groupColor = this.config.chart.grid.labels.yAxis.groupColor : s.chart.grid.labels.yAxis.groupColor = null, this.config && Array.isArray(this.config.chart.annotations) && this.config.chart.annotations.length && (s.chart.annotations = this.config.chart.annotations.map((o) => J({
945
+ return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ? n.chart.highlightArea = this.config.chart.highlightArea : n.chart.highlightArea = [this.config.chart.highlightArea]), this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMin") ? n.chart.grid.labels.yAxis.scaleMin = this.config.chart.grid.labels.yAxis.scaleMin : n.chart.grid.labels.yAxis.scaleMin = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMax") ? n.chart.grid.labels.yAxis.scaleMax = this.config.chart.grid.labels.yAxis.scaleMax : n.chart.grid.labels.yAxis.scaleMax = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.startIndex") ? n.chart.zoom.startIndex = this.config.chart.zoom.startIndex : n.chart.zoom.startIndex = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.endIndex") ? n.chart.zoom.endIndex = this.config.chart.zoom.endIndex : n.chart.zoom.endIndex = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.groupColor") ? n.chart.grid.labels.yAxis.groupColor = this.config.chart.grid.labels.yAxis.groupColor : n.chart.grid.labels.yAxis.groupColor = null, this.config && Array.isArray(this.config.chart.annotations) && this.config.chart.annotations.length && (n.chart.annotations = this.config.chart.annotations.map((o) => J({
942
946
  defaultConfig: t.chart.annotations[0],
943
947
  userConfig: o
944
- }))), s.theme ? {
948
+ }))), n.theme ? {
945
949
  ...J({
946
- userConfig: this.themes.vue_ui_xy[s.theme] || this.config,
947
- defaultConfig: s
950
+ userConfig: this.themes.vue_ui_xy[n.theme] || this.config,
951
+ defaultConfig: n
948
952
  }),
949
- customPalette: this.themePalettes[s.theme] || this.palette
950
- } : s;
953
+ customPalette: this.themePalettes[n.theme] || this.palette
954
+ } : n;
951
955
  },
952
956
  prepareChart() {
953
957
  if (this.objectIsEmpty(this.dataset) ? this.error({
954
958
  componentName: "VueUiXy",
955
959
  type: "dataset"
956
- }) : this.dataset.forEach((t, s) => {
960
+ }) : this.dataset.forEach((t, n) => {
957
961
  [null, void 0].includes(t.name) && this.error({
958
962
  componentName: "VueUiXy",
959
963
  type: "datasetSerieAttribute",
960
964
  property: "name (string)",
961
- index: s
965
+ index: n
962
966
  });
963
967
  }), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((t) => {
964
- t.series.forEach((s, o) => {
965
- this.isSafeValue(s) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
966
- -----> The serie '${t.name}' contains the value '${s}' at index ${o}.
967
- '${s}' was converted to null to allow the chart to display.`);
968
+ t.series.forEach((n, o) => {
969
+ this.isSafeValue(n) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
970
+ -----> The serie '${t.name}' contains the value '${n}' at index ${o}.
971
+ '${n}' was converted to null to allow the chart to display.`);
968
972
  });
969
973
  }), this.showUserOptionsOnChartHover = this.FINAL_CONFIG.chart.userOptions.showOnChartHover, this.keepUserOptionState = this.FINAL_CONFIG.chart.userOptions.keepStateOnChartLeave, this.userOptionsVisible = !this.FINAL_CONFIG.chart.userOptions.showOnChartHover, this.mutableConfig = {
970
974
  dataLabels: {
@@ -975,26 +979,26 @@ const Ke = Q(), Qe = {
975
979
  isStacked: this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,
976
980
  useIndividualScale: this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale
977
981
  }, this.FINAL_CONFIG.responsive) {
978
- const s = this.$refs.chart.parentNode;
982
+ const n = this.$refs.chart.parentNode;
979
983
  this.resizeObserver && (this.resizeObserver.unobserve(this.observedEl), this.resizeObserver.disconnect());
980
- const { height: o, width: d } = s.getBoundingClientRect();
984
+ const { height: o, width: g } = n.getBoundingClientRect();
981
985
  let r = null, e = 0;
982
986
  this.FINAL_CONFIG.chart.title.show && (r = this.$refs.chartTitle, e = r.getBoundingClientRect().height);
983
- let m = null, b = 0;
984
- this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (m = this.$refs.chartSlicer.$el, b = m.getBoundingClientRect().height);
985
- let x = null, I = 0;
986
- this.FINAL_CONFIG.chart.legend.show && (x = this.$refs.chartLegend, I = x.getBoundingClientRect().height);
987
- let v = 0;
988
- this.$refs.source && (v = this.$refs.source.getBoundingClientRect().height);
989
- let S = 0;
990
- this.$refs.noTitle && (S = this.$refs.noTitle.getBoundingClientRect().height), this.height = o - e - I - b - v - S, this.width = d, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
991
- const k = new ResizeObserver((O) => {
992
- for (const F of O)
993
- this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (b = this.$refs.chartSlicer.$el.getBoundingClientRect().height), this.$refs.chartLegend && (I = this.$refs.chartLegend.getBoundingClientRect().height), this.$refs.source && (v = this.$refs.source.getBoundingClientRect().height), requestAnimationFrame(() => {
994
- this.height = F.contentBoxSize[0].blockSize - e - I - b - v - 24, this.width = F.contentBoxSize[0].inlineSize, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
987
+ let b = null, m = 0;
988
+ this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (b = this.$refs.chartSlicer.$el, m = b.getBoundingClientRect().height);
989
+ let x = null, S = 0;
990
+ this.FINAL_CONFIG.chart.legend.show && (x = this.$refs.chartLegend, S = x.getBoundingClientRect().height);
991
+ let k = 0;
992
+ this.$refs.source && (k = this.$refs.source.getBoundingClientRect().height);
993
+ let w = 0;
994
+ this.$refs.noTitle && (w = this.$refs.noTitle.getBoundingClientRect().height), this.height = o - e - S - m - k - w, this.width = g, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
995
+ const O = new ResizeObserver((N) => {
996
+ for (const F of N)
997
+ this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (m = this.$refs.chartSlicer.$el.getBoundingClientRect().height), this.$refs.chartLegend && (S = this.$refs.chartLegend.getBoundingClientRect().height), this.$refs.source && (k = this.$refs.source.getBoundingClientRect().height), requestAnimationFrame(() => {
998
+ this.height = F.contentBoxSize[0].blockSize - e - S - m - k - 24, this.width = F.contentBoxSize[0].inlineSize, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
995
999
  });
996
1000
  });
997
- this.resizeObserver = k, this.observedEl = s, k.observe(s);
1001
+ this.resizeObserver = O, this.observedEl = n, O.observe(n);
998
1002
  } else
999
1003
  this.height = this.FINAL_CONFIG.chart.height, this.width = this.FINAL_CONFIG.chart.width, this.viewBox = `0 0 ${this.width} ${this.height}`, this.fontSizes.dataLabels = this.FINAL_CONFIG.chart.grid.labels.fontSize, this.fontSizes.yAxis = this.FINAL_CONFIG.chart.grid.labels.axis.fontSize, this.fontSizes.xAxis = this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.fontSize, this.fontSizes.plotLabels = this.FINAL_CONFIG.chart.labels.fontSize, this.plotRadii.plot = this.FINAL_CONFIG.plot.radius, this.plotRadii.line = this.FINAL_CONFIG.line.radius;
1000
1004
  },
@@ -1055,19 +1059,19 @@ const Ke = Q(), Qe = {
1055
1059
  checkAutoScaleError(t) {
1056
1060
  t.autoScaling && (this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${t.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${t.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
1057
1061
  },
1058
- createArea(t, s) {
1062
+ createArea(t, n) {
1059
1063
  if (!t[0]) return [-10, -10, "", -10, -10];
1060
- const o = { x: t[0].x, y: s }, d = { x: t.at(-1).x, y: s }, r = [];
1064
+ const o = { x: t[0].x, y: n }, g = { x: t.at(-1).x, y: n }, r = [];
1061
1065
  return t.forEach((e) => {
1062
1066
  r.push(`${e.x},${e.y} `);
1063
- }), [o.x, o.y, ...r, d.x, d.y].toString();
1067
+ }), [o.x, o.y, ...r, g.x, g.y].toString();
1064
1068
  },
1065
1069
  createStar: Z,
1066
1070
  createPolygonPath: H,
1067
- fillArray(t, s) {
1071
+ fillArray(t, n) {
1068
1072
  let o = Array(t).fill(0);
1069
- for (let d = 0; d < s.length && d < t; d += 1)
1070
- o[d] = s[d];
1073
+ for (let g = 0; g < n.length && g < t; g += 1)
1074
+ o[g] = n[g];
1071
1075
  return o;
1072
1076
  },
1073
1077
  async setupSlicer() {
@@ -1080,12 +1084,12 @@ const Ke = Q(), Qe = {
1080
1084
  this.setupSlicer();
1081
1085
  },
1082
1086
  validSlicerEnd(t) {
1083
- const s = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length));
1084
- return t > s ? s : t < 0 || this.FINAL_CONFIG.chart.zoom.startIndex !== null && t < this.FINAL_CONFIG.chart.zoom.startIndex ? this.FINAL_CONFIG.chart.zoom.startIndex !== null ? this.FINAL_CONFIG.chart.zoom.startIndex + 1 : 1 : t;
1087
+ const n = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length));
1088
+ return t > n ? n : t < 0 || this.FINAL_CONFIG.chart.zoom.startIndex !== null && t < this.FINAL_CONFIG.chart.zoom.startIndex ? this.FINAL_CONFIG.chart.zoom.startIndex !== null ? this.FINAL_CONFIG.chart.zoom.startIndex + 1 : 1 : t;
1085
1089
  },
1086
1090
  calcRectHeight(t) {
1087
- const s = ![null, void 0].includes(this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin) && this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin > 0 && this.min >= 0 ? this.drawingArea.bottom : this.zero;
1088
- return t.value >= 0 ? this.checkNaN(s - t.y <= 0 ? 1e-5 : s - t.y) : this.checkNaN(t.y - this.zero <= 0 ? 1e-5 : t.y - this.zero);
1091
+ const n = ![null, void 0].includes(this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin) && this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin > 0 && this.min >= 0 ? this.drawingArea.bottom : this.zero;
1092
+ return t.value >= 0 ? this.checkNaN(n - t.y <= 0 ? 1e-5 : n - t.y) : this.checkNaN(t.y - this.zero <= 0 ? 1e-5 : t.y - this.zero);
1089
1093
  },
1090
1094
  calcIndividualHeight(t) {
1091
1095
  return t.value >= 0 ? this.checkNaN(t.zeroPosition - t.y <= 0 ? 1e-5 : t.zeroPosition - t.y) : this.checkNaN(t.y - t.zeroPosition <= 0 ? 1e-5 : t.zeroPosition - t.y);
@@ -1105,11 +1109,11 @@ const Ke = Q(), Qe = {
1105
1109
  canShowValue(t) {
1106
1110
  return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(t);
1107
1111
  },
1108
- findClosestValue(t, s) {
1109
- let o = s[0], d = Math.abs(t - s[0]);
1110
- for (let r = 1; r < s.length; r += 1) {
1111
- const e = Math.abs(t - s[r]);
1112
- e < d && s[r] < t && (o = s[r], d = e);
1112
+ findClosestValue(t, n) {
1113
+ let o = n[0], g = Math.abs(t - n[0]);
1114
+ for (let r = 1; r < n.length; r += 1) {
1115
+ const e = Math.abs(t - n[r]);
1116
+ e < g && n[r] < t && (o = n[r], g = e);
1113
1117
  }
1114
1118
  return o;
1115
1119
  },
@@ -1120,11 +1124,11 @@ const Ke = Q(), Qe = {
1120
1124
  this.$emit(
1121
1125
  "selectX",
1122
1126
  {
1123
- dataset: this.relativeDataset.map((s) => ({
1124
- name: s.name,
1125
- value: [null, void 0, NaN].includes(s.absoluteValues[t]) ? null : s.absoluteValues[t],
1126
- color: s.color,
1127
- type: s.type
1127
+ dataset: this.relativeDataset.map((n) => ({
1128
+ name: n.name,
1129
+ value: [null, void 0, NaN].includes(n.absoluteValues[t]) ? null : n.absoluteValues[t],
1130
+ color: n.color,
1131
+ type: n.type
1128
1132
  })),
1129
1133
  index: t,
1130
1134
  indexLabel: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[t]
@@ -1141,20 +1145,20 @@ const Ke = Q(), Qe = {
1141
1145
  },
1142
1146
  segregate(t) {
1143
1147
  if (this.segregatedSeries.includes(t.id))
1144
- this.segregatedSeries = this.segregatedSeries.filter((s) => s !== t.id);
1148
+ this.segregatedSeries = this.segregatedSeries.filter((n) => n !== t.id);
1145
1149
  else {
1146
1150
  if (this.segregatedSeries.length + 1 === this.safeDataset.length) return;
1147
1151
  this.segregatedSeries.push(t.id);
1148
1152
  }
1149
- this.$emit("selectLegend", this.relativeDataset.map((s) => ({
1150
- name: s.name,
1151
- values: s.absoluteValues,
1152
- color: s.color,
1153
- type: s.type
1153
+ this.$emit("selectLegend", this.relativeDataset.map((n) => ({
1154
+ name: n.name,
1155
+ values: n.absoluteValues,
1156
+ color: n.color,
1157
+ type: n.type
1154
1158
  }))), this.segregateStep += 1;
1155
1159
  },
1156
- toggleTooltipVisibility(t, s = null) {
1157
- this.isTooltip = t, t ? this.selectedSerieIndex = s : this.selectedSerieIndex = null;
1160
+ toggleTooltipVisibility(t, n = null) {
1161
+ this.isTooltip = t, t ? this.selectedSerieIndex = n : this.selectedSerieIndex = null;
1158
1162
  },
1159
1163
  toggleFullscreen(t) {
1160
1164
  this.isFullscreen = t, this.step += 1;
@@ -1165,7 +1169,7 @@ const Ke = Q(), Qe = {
1165
1169
  async generatePdf() {
1166
1170
  this.showSpinnerPdf(), clearTimeout(this.__to__), this.isPrinting = !0, this.__to__ = setTimeout(async () => {
1167
1171
  try {
1168
- const { default: t } = await import("./pdf-ZrUvUcH9.js");
1172
+ const { default: t } = await import("./pdf-BD9-5FCa.js");
1169
1173
  await t({
1170
1174
  domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
1171
1175
  fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
@@ -1179,7 +1183,7 @@ const Ke = Q(), Qe = {
1179
1183
  }, 100);
1180
1184
  },
1181
1185
  generateCsv(t = null) {
1182
- const s = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], o = ["", ...this.table.head.map((m) => m.label)], d = this.table.body, r = s.concat([o]).concat(d), e = this.createCsvContent(r);
1186
+ const n = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], o = ["", ...this.table.head.map((b) => b.label)], g = this.table.body, r = n.concat([o]).concat(g), e = this.createCsvContent(r);
1183
1187
  t ? t(e) : this.downloadCsv({ csvContent: e, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
1184
1188
  },
1185
1189
  showSpinnerImage() {
@@ -1188,7 +1192,7 @@ const Ke = Q(), Qe = {
1188
1192
  async generateImage() {
1189
1193
  this.showSpinnerImage(), clearTimeout(this.__to__), this.isImaging = !0, this.__to__ = setTimeout(async () => {
1190
1194
  try {
1191
- const { default: t } = await import("./img-Dy6IrSzX.js");
1195
+ const { default: t } = await import("./img-B7q7dUf_.js");
1192
1196
  await t({
1193
1197
  domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
1194
1198
  fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
@@ -1208,69 +1212,69 @@ const Ke = Q(), Qe = {
1208
1212
  ref: "noTitle",
1209
1213
  class: "vue-data-ui-no-title-space",
1210
1214
  style: "height:36px; width: 100%; background:transparent"
1211
- }, et = ["viewBox", "aria-label"], tt = ["x", "y", "width", "height"], lt = { key: 1 }, rt = { class: "vue-ui-xy-grid" }, it = ["stroke", "x1", "x2", "y1", "y2"], at = ["stroke", "x1", "x2", "y1", "y2"], st = { key: 1 }, nt = ["x1", "x2", "y1", "y2", "stroke"], ct = ["x1", "x2", "y1", "y2", "stroke"], ot = ["x1", "x2", "y1", "y2", "stroke"], ht = { key: 3 }, ut = ["x1", "x2", "y1", "y2", "stroke"], dt = ["id"], gt = ["stop-color"], ft = ["stop-color"], It = ["stop-color"], Nt = ["id"], mt = ["stop-color"], xt = ["stop-color"], bt = ["stop-color"], Ft = ["id"], _t = ["stop-color"], yt = ["stop-color"], At = ["id"], Lt = ["stop-color"], Ct = ["stop-color"], St = ["id"], kt = ["stop-color"], wt = ["stop-color"], Ot = ["x", "y", "height", "width", "fill"], Gt = ["x", "y", "width"], vt = ["x", "y", "height", "width", "fill"], pt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Mt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], zt = ["width", "x", "y"], Tt = { key: 0 }, Pt = ["id"], Vt = ["fill"], Rt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Ht = ["x", "y", "font-size", "fill"], Dt = ["stroke", "x1", "x2", "y1", "y2"], Bt = { key: 2 }, Wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Et = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Yt = { key: 4 }, qt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Xt = ["fill", "font-size", "transform"], Ut = ["x1", "x2", "y1", "y2", "stroke"], Zt = ["x", "y", "font-size", "fill"], Jt = ["x1", "x2", "y1", "y2", "stroke"], Kt = ["x", "y", "font-size", "fill"], Qt = ["width", "x", "y"], jt = { style: { width: "100%" } }, $t = { key: 0 }, el = ["id"], tl = ["fill"], ll = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], rl = ["x", "y", "font-size", "fill"], il = ["d", "stroke", "stroke-width", "stroke-dasharray"], al = ["d", "stroke", "stroke-width", "stroke-dasharray"], sl = { key: 5 }, nl = { key: 0 }, cl = ["d", "fill"], ol = ["d", "fill"], hl = ["d", "fill"], ul = ["d", "fill"], dl = ["d", "stroke", "stroke-width", "stroke-dasharray"], gl = ["d", "stroke", "stroke-width", "stroke-dasharray"], fl = ["width", "x", "y"], Il = { style: { width: "100%" } }, Nl = { key: 3 }, ml = ["id"], xl = ["fill"], bl = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Fl = ["x", "y", "font-size", "fill"], _l = { key: 6 }, yl = ["x", "y", "font-size", "fill"], Al = ["x", "y", "font-size", "fill", "font-weight"], Ll = { key: 7 }, Cl = ["x", "y", "font-size", "fill"], Sl = { key: 8 }, kl = ["x", "y"], wl = ["innerHTML"], Ol = ["x", "y"], Gl = ["innerHTML"], vl = ["x1", "x2", "y1", "y2", "stroke"], pl = { key: 9 }, Ml = ["x", "y", "font-size", "fill"], zl = { key: 10 }, Tl = ["x", "y"], Pl = ["innerHTML"], Vl = ["x", "y"], Rl = ["innerHTML"], Hl = ["x1", "x2", "y1", "y2", "stroke"], Dl = ["x", "y", "font-size", "fill", "innerHTML"], Bl = ["x", "y", "font-size", "fill", "innerHTML"], Wl = ["x", "y", "font-size", "fill", "innerHTML"], El = ["x", "y", "font-size", "fill", "innerHTML"], Yl = ["id"], ql = ["stop-color"], Xl = ["stop-color"], Ul = ["x", "y", "width", "height", "fill", "onMouseenter"], Zl = ["font-size", "fill", "transform"], Jl = ["x", "y", "font-size", "fill"], Kl = { key: 12 }, Ql = ["y1", "y2", "x1", "x2", "stroke"], jl = ["text-anchor", "font-size", "fill", "transform", "onClick"], $l = { key: 13 }, er = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], tr = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], lr = ["y", "x", "width", "height", "fill"], rr = ["id", "x", "y", "font-size", "fill", "text-anchor"], ir = ["x", "y", "height", "width", "onMouseenter", "onClick"], ar = {
1215
+ }, et = ["viewBox", "aria-label"], tt = ["x", "y", "width", "height"], lt = { key: 1 }, rt = { class: "vue-ui-xy-grid" }, at = ["stroke", "x1", "x2", "y1", "y2"], it = ["stroke", "x1", "x2", "y1", "y2"], st = { key: 1 }, nt = ["x1", "x2", "y1", "y2", "stroke"], ct = ["x1", "x2", "y1", "y2", "stroke"], ot = ["x1", "x2", "y1", "y2", "stroke"], ht = { key: 3 }, ut = ["x1", "x2", "y1", "y2", "stroke"], dt = { key: 4 }, gt = ["y1", "y2", "x1", "x2", "stroke"], ft = ["id"], It = ["stop-color"], Nt = ["stop-color"], xt = ["stop-color"], mt = ["id"], bt = ["stop-color"], Ft = ["stop-color"], _t = ["stop-color"], yt = ["id"], At = ["stop-color"], Lt = ["stop-color"], Ct = ["id"], St = ["stop-color"], kt = ["stop-color"], wt = ["id"], Ot = ["stop-color"], Gt = ["stop-color"], vt = ["x", "y", "height", "width", "fill"], pt = ["x", "y", "width"], Mt = ["x", "y", "height", "width", "fill"], zt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Tt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Pt = ["width", "x", "y"], Vt = { key: 0 }, Rt = ["id"], Ht = ["fill"], Dt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Wt = ["x", "y", "font-size", "fill"], Bt = ["stroke", "x1", "x2", "y1", "y2"], Et = { key: 2 }, Yt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], qt = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Xt = { key: 4 }, Ut = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Zt = ["fill", "font-size", "transform"], Jt = ["x1", "x2", "y1", "y2", "stroke"], Kt = ["x", "y", "font-size", "fill"], Qt = ["x1", "x2", "y1", "y2", "stroke"], jt = ["x", "y", "font-size", "fill"], $t = ["width", "x", "y"], el = { style: { width: "100%" } }, tl = { key: 0 }, ll = ["id"], rl = ["fill"], al = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], il = ["x", "y", "font-size", "fill"], sl = ["d", "stroke", "stroke-width", "stroke-dasharray"], nl = ["d", "stroke", "stroke-width", "stroke-dasharray"], cl = { key: 5 }, ol = { key: 0 }, hl = ["d", "fill"], ul = ["d", "fill"], dl = ["d", "fill"], gl = ["d", "fill"], fl = ["d", "stroke", "stroke-width", "stroke-dasharray"], Il = ["d", "stroke", "stroke-width", "stroke-dasharray"], Nl = ["width", "x", "y"], xl = { style: { width: "100%" } }, ml = { key: 3 }, bl = ["id"], Fl = ["fill"], _l = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], yl = ["x", "y", "font-size", "fill"], Al = { key: 6 }, Ll = ["x", "y", "font-size", "fill"], Cl = ["x", "y", "font-size", "fill", "font-weight"], Sl = { key: 7 }, kl = ["x", "y", "font-size", "fill"], wl = { key: 8 }, Ol = ["x", "y"], Gl = ["innerHTML"], vl = ["x", "y"], pl = ["innerHTML"], Ml = ["x1", "x2", "y1", "y2", "stroke"], zl = { key: 9 }, Tl = ["x", "y", "font-size", "fill"], Pl = { key: 10 }, Vl = ["x", "y"], Rl = ["innerHTML"], Hl = ["x", "y"], Dl = ["innerHTML"], Wl = ["x1", "x2", "y1", "y2", "stroke"], Bl = ["x", "y", "font-size", "fill", "innerHTML"], El = ["x", "y", "font-size", "fill", "innerHTML"], Yl = ["x", "y", "font-size", "fill", "innerHTML"], ql = ["x", "y", "font-size", "fill", "innerHTML"], Xl = ["id"], Ul = ["stop-color"], Zl = ["stop-color"], Jl = ["x", "y", "width", "height", "fill", "onMouseenter"], Kl = ["font-size", "fill", "transform"], Ql = ["x", "y", "font-size", "fill"], jl = { key: 12 }, $l = ["text-anchor", "font-size", "fill", "transform", "onClick"], er = { key: 13 }, tr = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], lr = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], rr = ["y", "x", "width", "height", "fill"], ar = ["id", "x", "y", "font-size", "fill", "text-anchor"], ir = ["x", "y", "height", "width", "onMouseenter", "onClick"], sr = {
1212
1216
  key: 14,
1213
1217
  style: { "pointer-events": "none" }
1214
- }, sr = ["x", "y"], nr = ["cx", "cy", "r", "fill"], cr = {
1218
+ }, nr = ["x", "y"], cr = ["cx", "cy", "r", "fill"], or = {
1215
1219
  key: 5,
1216
1220
  class: "vue-data-ui-watermark"
1217
- }, or = {
1221
+ }, hr = {
1218
1222
  class: "vue-ui-xy-tag-arrow",
1219
1223
  height: "20",
1220
1224
  viewBox: "0 0 10 20",
1221
1225
  style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
1222
- }, hr = ["fill"], ur = ["innerHTML"], dr = {
1226
+ }, ur = ["fill"], dr = ["innerHTML"], gr = {
1223
1227
  class: "vue-ui-xy-tag-arrow",
1224
1228
  height: "100%",
1225
1229
  viewBox: "0 0 10 20",
1226
1230
  style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
1227
- }, gr = ["fill"], fr = ["innerHTML"], Ir = {
1231
+ }, fr = ["fill"], Ir = ["innerHTML"], Nr = {
1228
1232
  class: "vue-ui-xy-tag-arrow",
1229
1233
  height: "20",
1230
1234
  viewBox: "0 0 10 20",
1231
1235
  style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
1232
- }, Nr = ["fill"], mr = ["innerHTML"], xr = {
1236
+ }, xr = ["fill"], mr = ["innerHTML"], br = {
1233
1237
  class: "vue-ui-xy-tag-arrow",
1234
1238
  height: "100%",
1235
1239
  viewBox: "0 0 10 20",
1236
1240
  style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
1237
- }, br = ["fill"], Fr = ["innerHTML"], _r = ["onClick"], yr = {
1241
+ }, Fr = ["fill"], _r = ["innerHTML"], yr = ["onClick"], Ar = {
1238
1242
  key: 0,
1239
1243
  viewBox: "0 0 20 12",
1240
1244
  height: "14",
1241
1245
  width: "20"
1242
- }, Ar = ["stroke", "fill"], Lr = {
1246
+ }, Lr = ["stroke", "fill"], Cr = {
1243
1247
  key: 1,
1244
1248
  viewBox: "0 0 40 40",
1245
1249
  height: "14",
1246
1250
  width: "14"
1247
- }, Cr = ["fill"], Sr = ["fill"], kr = {
1251
+ }, Sr = ["fill"], kr = ["fill"], wr = {
1248
1252
  key: 2,
1249
1253
  viewBox: "0 0 12 12",
1250
1254
  height: "14",
1251
1255
  width: "14"
1252
- }, wr = {
1256
+ }, Or = {
1253
1257
  key: 9,
1254
1258
  ref: "chartLegend"
1255
- }, Or = {
1259
+ }, Gr = {
1256
1260
  key: 10,
1257
1261
  ref: "source",
1258
1262
  dir: "auto"
1259
- }, Gr = {
1263
+ }, vr = {
1260
1264
  style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
1261
1265
  "data-dom-to-png-ignore": ""
1262
- }, vr = ["innerHTML"];
1263
- function pr(t, s, o, d, r, e) {
1264
- const m = R("PenAndPaper"), b = R("Title"), x = R("UserOptions"), I = R("PackageVersion"), v = R("Shape"), S = R("Skeleton"), k = R("Slicer"), O = R("Tooltip"), F = R("BaseIcon"), C = R("TableSparkline"), w = R("DataTable"), p = R("Accordion");
1265
- return i(), a("div", {
1266
+ }, pr = ["innerHTML"];
1267
+ function Mr(t, n, o, g, r, e) {
1268
+ const b = R("PenAndPaper"), m = R("Title"), x = R("UserOptions"), S = R("PackageVersion"), k = R("Shape"), w = R("Skeleton"), O = R("Slicer"), N = R("Tooltip"), F = R("BaseIcon"), C = R("TableSparkline"), G = R("DataTable"), M = R("Accordion");
1269
+ return a(), i("div", {
1266
1270
  id: `vue-ui-xy_${r.uniqueId}`,
1267
1271
  class: E(`vue-ui-xy ${r.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
1268
1272
  ref: "chart",
1269
1273
  style: y(`background:${e.FINAL_CONFIG.chart.backgroundColor}; color:${e.FINAL_CONFIG.chart.color};width:100%;font-family:${e.FINAL_CONFIG.chart.fontFamily};${e.FINAL_CONFIG.responsive ? "height: 100%" : ""}`),
1270
- onMouseenter: s[7] || (s[7] = () => e.setUserOptionsVisibility(!0)),
1271
- onMouseleave: s[8] || (s[8] = () => e.setUserOptionsVisibility(!1))
1274
+ onMouseenter: n[7] || (n[7] = () => e.setUserOptionsVisibility(!0)),
1275
+ onMouseleave: n[8] || (n[8] = () => e.setUserOptionsVisibility(!1))
1272
1276
  }, [
1273
- e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (i(), B(m, {
1277
+ e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (a(), W(b, {
1274
1278
  key: 0,
1275
1279
  svgRef: r.svgRef,
1276
1280
  backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
@@ -1278,14 +1282,14 @@ function pr(t, s, o, d, r, e) {
1278
1282
  active: r.isAnnotator,
1279
1283
  onClose: e.toggleAnnotator
1280
1284
  }, null, 8, ["svgRef", "backgroundColor", "color", "active", "onClose"])) : u("", !0),
1281
- e.hasOptionsNoTitle ? (i(), a("div", $e, null, 512)) : u("", !0),
1282
- e.FINAL_CONFIG.chart.title.show ? (i(), a("div", {
1285
+ e.hasOptionsNoTitle ? (a(), i("div", $e, null, 512)) : u("", !0),
1286
+ e.FINAL_CONFIG.chart.title.show ? (a(), i("div", {
1283
1287
  key: 2,
1284
1288
  ref: "chartTitle",
1285
1289
  class: "vue-ui-xy-title",
1286
1290
  style: y(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
1287
1291
  }, [
1288
- (i(), B(b, {
1292
+ (a(), W(m, {
1289
1293
  key: `title_${r.titleStep}`,
1290
1294
  config: {
1291
1295
  title: {
@@ -1299,7 +1303,7 @@ function pr(t, s, o, d, r, e) {
1299
1303
  }
1300
1304
  }, null, 8, ["config"]))
1301
1305
  ], 4)) : u("", !0),
1302
- e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (r.keepUserOptionState || r.userOptionsVisible) ? (i(), B(x, {
1306
+ e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (r.keepUserOptionState || r.userOptionsVisible) ? (a(), W(x, {
1303
1307
  ref: "defails",
1304
1308
  key: `user_options_${r.step}`,
1305
1309
  backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
@@ -1336,79 +1340,79 @@ function pr(t, s, o, d, r, e) {
1336
1340
  style: y({
1337
1341
  visibility: r.keepUserOptionState ? r.userOptionsVisible ? "visible" : "hidden" : "visible"
1338
1342
  })
1339
- }, We({ _: 2 }, [
1343
+ }, Be({ _: 2 }, [
1340
1344
  t.$slots.menuIcon ? {
1341
1345
  name: "menuIcon",
1342
1346
  fn: V(({ isOpen: l, color: c }) => [
1343
- G(t.$slots, "menuIcon", Y(q({ isOpen: l, color: c })), void 0, !0)
1347
+ p(t.$slots, "menuIcon", Y(q({ isOpen: l, color: c })), void 0, !0)
1344
1348
  ]),
1345
1349
  key: "0"
1346
1350
  } : void 0,
1347
1351
  t.$slots.optionTooltip ? {
1348
1352
  name: "optionTooltip",
1349
1353
  fn: V(() => [
1350
- G(t.$slots, "optionTooltip", {}, void 0, !0)
1354
+ p(t.$slots, "optionTooltip", {}, void 0, !0)
1351
1355
  ]),
1352
1356
  key: "1"
1353
1357
  } : void 0,
1354
1358
  t.$slots.optionPdf ? {
1355
1359
  name: "optionPdf",
1356
1360
  fn: V(() => [
1357
- G(t.$slots, "optionPdf", {}, void 0, !0)
1361
+ p(t.$slots, "optionPdf", {}, void 0, !0)
1358
1362
  ]),
1359
1363
  key: "2"
1360
1364
  } : void 0,
1361
1365
  t.$slots.optionCsv ? {
1362
1366
  name: "optionCsv",
1363
1367
  fn: V(() => [
1364
- G(t.$slots, "optionCsv", {}, void 0, !0)
1368
+ p(t.$slots, "optionCsv", {}, void 0, !0)
1365
1369
  ]),
1366
1370
  key: "3"
1367
1371
  } : void 0,
1368
1372
  t.$slots.optionImg ? {
1369
1373
  name: "optionImg",
1370
1374
  fn: V(() => [
1371
- G(t.$slots, "optionImg", {}, void 0, !0)
1375
+ p(t.$slots, "optionImg", {}, void 0, !0)
1372
1376
  ]),
1373
1377
  key: "4"
1374
1378
  } : void 0,
1375
1379
  t.$slots.optionTable ? {
1376
1380
  name: "optionTable",
1377
1381
  fn: V(() => [
1378
- G(t.$slots, "optionTable", {}, void 0, !0)
1382
+ p(t.$slots, "optionTable", {}, void 0, !0)
1379
1383
  ]),
1380
1384
  key: "5"
1381
1385
  } : void 0,
1382
1386
  t.$slots.optionLabels ? {
1383
1387
  name: "optionLabels",
1384
1388
  fn: V(() => [
1385
- G(t.$slots, "optionLabels", {}, void 0, !0)
1389
+ p(t.$slots, "optionLabels", {}, void 0, !0)
1386
1390
  ]),
1387
1391
  key: "6"
1388
1392
  } : void 0,
1389
1393
  t.$slots.optionStack ? {
1390
1394
  name: "optionStack",
1391
1395
  fn: V(() => [
1392
- G(t.$slots, "optionStack", {}, void 0, !0)
1396
+ p(t.$slots, "optionStack", {}, void 0, !0)
1393
1397
  ]),
1394
1398
  key: "7"
1395
1399
  } : void 0,
1396
1400
  t.$slots.optionFullscreen ? {
1397
1401
  name: "optionFullscreen",
1398
1402
  fn: V(({ toggleFullscreen: l, isFullscreen: c }) => [
1399
- G(t.$slots, "optionFullscreen", Y(q({ toggleFullscreen: l, isFullscreen: c })), void 0, !0)
1403
+ p(t.$slots, "optionFullscreen", Y(q({ toggleFullscreen: l, isFullscreen: c })), void 0, !0)
1400
1404
  ]),
1401
1405
  key: "8"
1402
1406
  } : void 0,
1403
1407
  t.$slots.optionAnnotator ? {
1404
1408
  name: "optionAnnotator",
1405
1409
  fn: V(({ toggleAnnotator: l, isAnnotator: c }) => [
1406
- G(t.$slots, "optionAnnotator", Y(q({ toggleAnnotator: l, isAnnotator: c })), void 0, !0)
1410
+ p(t.$slots, "optionAnnotator", Y(q({ toggleAnnotator: l, isAnnotator: c })), void 0, !0)
1407
1411
  ]),
1408
1412
  key: "9"
1409
1413
  } : void 0
1410
1414
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "onToggleFullscreen", "onGeneratePdf", "onGenerateCsv", "onGenerateImage", "onToggleTable", "onToggleLabels", "onToggleStack", "onToggleTooltip", "onToggleAnnotator", "style"])) : u("", !0),
1411
- e.isDataset ? (i(), a("svg", {
1415
+ e.isDataset ? (a(), i("svg", {
1412
1416
  key: 4,
1413
1417
  ref: "svgRef",
1414
1418
  xmlns: "http://www.w3.org/2000/svg",
@@ -1420,8 +1424,8 @@ function pr(t, s, o, d, r, e) {
1420
1424
  role: "img",
1421
1425
  "aria-live": "polite"
1422
1426
  }, [
1423
- U(I),
1424
- t.$slots["chart-background"] ? (i(), a("foreignObject", {
1427
+ U(S),
1428
+ t.$slots["chart-background"] ? (a(), i("foreignObject", {
1425
1429
  key: 0,
1426
1430
  x: e.drawingArea.left + e.xPadding < 0 ? 0 : e.drawingArea.left + e.xPadding,
1427
1431
  y: e.drawingArea.top,
@@ -1431,11 +1435,11 @@ function pr(t, s, o, d, r, e) {
1431
1435
  pointerEvents: "none"
1432
1436
  }
1433
1437
  }, [
1434
- G(t.$slots, "chart-background", {}, void 0, !0)
1438
+ p(t.$slots, "chart-background", {}, void 0, !0)
1435
1439
  ], 8, tt)) : u("", !0),
1436
- e.maxSeries > 0 ? (i(), a("g", lt, [
1440
+ e.maxSeries > 0 ? (a(), i("g", lt, [
1437
1441
  f("g", rt, [
1438
- e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (i(), a("line", {
1442
+ e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (a(), i("line", {
1439
1443
  key: 0,
1440
1444
  stroke: e.FINAL_CONFIG.chart.grid.stroke,
1441
1445
  "stroke-width": "1",
@@ -1445,9 +1449,9 @@ function pr(t, s, o, d, r, e) {
1445
1449
  y2: e.forceValidValue(e.drawingArea.bottom),
1446
1450
  "stroke-linecap": "round",
1447
1451
  style: { animation: "none !important" }
1448
- }, null, 8, it)) : u("", !0),
1449
- r.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (i(!0), a(g, { key: 2 }, N(e.allScales, (l) => (i(), a("g", null, [
1450
- l.id === r.selectedScale && l.yLabels.length ? (i(!0), a(g, { key: 0 }, N(l.yLabels, (c) => (i(), a("line", {
1452
+ }, null, 8, at)) : u("", !0),
1453
+ r.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(!0), i(d, { key: 2 }, I(e.allScales, (l) => (a(), i("g", null, [
1454
+ l.id === r.selectedScale && l.yLabels.length ? (a(!0), i(d, { key: 0 }, I(l.yLabels, (c) => (a(), i("line", {
1451
1455
  x1: e.drawingArea.left + e.xPadding,
1452
1456
  x2: e.drawingArea.right - e.xPadding,
1453
1457
  y1: e.forceValidValue(c.y),
@@ -1456,7 +1460,7 @@ function pr(t, s, o, d, r, e) {
1456
1460
  "stroke-width": 0.5,
1457
1461
  "stroke-linecap": "round",
1458
1462
  style: { animation: "none !important" }
1459
- }, null, 8, ct))), 256)) : l.yLabels.length ? (i(!0), a(g, { key: 1 }, N(l.yLabels, (c) => (i(), a("line", {
1463
+ }, null, 8, ct))), 256)) : l.yLabels.length ? (a(!0), i(d, { key: 1 }, I(l.yLabels, (c) => (a(), i("line", {
1460
1464
  x1: e.drawingArea.left + e.xPadding,
1461
1465
  x2: e.drawingArea.right - e.xPadding,
1462
1466
  y1: e.forceValidValue(c.y),
@@ -1466,8 +1470,8 @@ function pr(t, s, o, d, r, e) {
1466
1470
  "stroke-linecap": "round",
1467
1471
  style: { animation: "none !important" }
1468
1472
  }, null, 8, ot))), 256)) : u("", !0)
1469
- ]))), 256)) : u("", !0) : (i(), a(g, { key: 1 }, [
1470
- e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (i(), a("line", {
1473
+ ]))), 256)) : u("", !0) : (a(), i(d, { key: 1 }, [
1474
+ e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (a(), i("line", {
1471
1475
  key: 0,
1472
1476
  stroke: e.FINAL_CONFIG.chart.grid.stroke,
1473
1477
  "stroke-width": "1",
@@ -1477,9 +1481,9 @@ function pr(t, s, o, d, r, e) {
1477
1481
  y2: e.forceValidValue(e.drawingArea.bottom),
1478
1482
  "stroke-linecap": "round",
1479
1483
  style: { animation: "none !important" }
1480
- }, null, 8, at)) : u("", !0),
1481
- e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (i(), a("g", st, [
1482
- (i(!0), a(g, null, N(e.yLabels, (l) => (i(), a("line", {
1484
+ }, null, 8, it)) : u("", !0),
1485
+ e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(), i("g", st, [
1486
+ (a(!0), i(d, null, I(e.yLabels, (l) => (a(), i("line", {
1483
1487
  x1: e.drawingArea.left + e.xPadding,
1484
1488
  x2: e.drawingArea.right - e.xPadding,
1485
1489
  y1: e.forceValidValue(l.y),
@@ -1491,8 +1495,8 @@ function pr(t, s, o, d, r, e) {
1491
1495
  }, null, 8, nt))), 256))
1492
1496
  ])) : u("", !0)
1493
1497
  ], 64)),
1494
- e.FINAL_CONFIG.chart.grid.showVerticalLines ? (i(), a("g", ht, [
1495
- (i(!0), a(g, null, N(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (l, c) => (i(), a("line", {
1498
+ e.FINAL_CONFIG.chart.grid.showVerticalLines ? (a(), i("g", ht, [
1499
+ (a(!0), i(d, null, I(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (l, c) => (a(), i("line", {
1496
1500
  key: `grid_vertical_line_${c}`,
1497
1501
  x1: e.drawingArea.width / e.maxSeries * c + e.drawingArea.left + e.xPadding,
1498
1502
  x2: e.drawingArea.width / e.maxSeries * c + e.drawingArea.left + e.xPadding,
@@ -1502,9 +1506,28 @@ function pr(t, s, o, d, r, e) {
1502
1506
  stroke: e.FINAL_CONFIG.chart.grid.stroke,
1503
1507
  style: { animation: "none !important" }
1504
1508
  }, null, 8, ut))), 128))
1509
+ ])) : u("", !0),
1510
+ e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (a(), i("g", dt, [
1511
+ (a(!0), i(d, null, I(e.timeLabels, (l, c) => (a(), i("g", {
1512
+ key: `time_label_${c}`
1513
+ }, [
1514
+ l && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (c === 0 || c === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && r.selectedSerieIndex === c && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && c % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (a(), i(d, { key: 0 }, [
1515
+ e.FINAL_CONFIG.chart.grid.labels.xAxis.showCrosshairs ? (a(), i("line", {
1516
+ key: 0,
1517
+ y1: e.drawingArea.bottom,
1518
+ y2: e.drawingArea.bottom + e.FINAL_CONFIG.chart.grid.labels.xAxis.crosshairSize,
1519
+ x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + e.drawingArea.width / e.maxSeries / 2,
1520
+ x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + e.drawingArea.width / e.maxSeries / 2,
1521
+ stroke: e.FINAL_CONFIG.chart.grid.stroke,
1522
+ "stroke-width": 1,
1523
+ "stroke-linecap": "round",
1524
+ style: { animation: "none !important " }
1525
+ }, null, 8, gt)) : u("", !0)
1526
+ ], 64)) : u("", !0)
1527
+ ]))), 128))
1505
1528
  ])) : u("", !0)
1506
1529
  ]),
1507
- (i(!0), a(g, null, N(e.barSet, (l, c) => (i(), a("defs", {
1530
+ (a(!0), i(d, null, I(e.barSet, (l, c) => (a(), i("defs", {
1508
1531
  key: `def_rect_${c}`
1509
1532
  }, [
1510
1533
  f("linearGradient", {
@@ -1515,16 +1538,16 @@ function pr(t, s, o, d, r, e) {
1515
1538
  f("stop", {
1516
1539
  offset: "0%",
1517
1540
  "stop-color": l.color
1518
- }, null, 8, gt),
1541
+ }, null, 8, It),
1519
1542
  f("stop", {
1520
1543
  offset: "62%",
1521
1544
  "stop-color": `${e.shiftHue(l.color, 0.02)}`
1522
- }, null, 8, ft),
1545
+ }, null, 8, Nt),
1523
1546
  f("stop", {
1524
1547
  offset: "100%",
1525
1548
  "stop-color": `${e.shiftHue(l.color, 0.05)}`
1526
- }, null, 8, It)
1527
- ], 8, dt),
1549
+ }, null, 8, xt)
1550
+ ], 8, ft),
1528
1551
  f("linearGradient", {
1529
1552
  id: `rectGradient_neg_${c}_${r.uniqueId}`,
1530
1553
  x2: "0%",
@@ -1533,18 +1556,18 @@ function pr(t, s, o, d, r, e) {
1533
1556
  f("stop", {
1534
1557
  offset: "0%",
1535
1558
  "stop-color": `${e.shiftHue(l.color, 0.05)}`
1536
- }, null, 8, mt),
1559
+ }, null, 8, bt),
1537
1560
  f("stop", {
1538
1561
  offset: "38%",
1539
1562
  "stop-color": `${e.shiftHue(l.color, 0.02)}`
1540
- }, null, 8, xt),
1563
+ }, null, 8, Ft),
1541
1564
  f("stop", {
1542
1565
  offset: "100%",
1543
1566
  "stop-color": l.color
1544
- }, null, 8, bt)
1545
- ], 8, Nt)
1567
+ }, null, 8, _t)
1568
+ ], 8, mt)
1546
1569
  ]))), 128)),
1547
- (i(!0), a(g, null, N(e.plotSet, (l, c) => (i(), a("defs", {
1570
+ (a(!0), i(d, null, I(e.plotSet, (l, c) => (a(), i("defs", {
1548
1571
  key: `def_plot_${c}`
1549
1572
  }, [
1550
1573
  f("radialGradient", {
@@ -1558,14 +1581,14 @@ function pr(t, s, o, d, r, e) {
1558
1581
  f("stop", {
1559
1582
  offset: "0%",
1560
1583
  "stop-color": `${e.shiftHue(l.color, 0.05)}`
1561
- }, null, 8, _t),
1584
+ }, null, 8, At),
1562
1585
  f("stop", {
1563
1586
  offset: "100%",
1564
1587
  "stop-color": l.color
1565
- }, null, 8, yt)
1566
- ], 8, Ft)
1588
+ }, null, 8, Lt)
1589
+ ], 8, yt)
1567
1590
  ]))), 128)),
1568
- (i(!0), a(g, null, N(e.lineSet, (l, c) => (i(), a("defs", {
1591
+ (a(!0), i(d, null, I(e.lineSet, (l, c) => (a(), i("defs", {
1569
1592
  key: `def_line_${c}`
1570
1593
  }, [
1571
1594
  f("radialGradient", {
@@ -1579,12 +1602,12 @@ function pr(t, s, o, d, r, e) {
1579
1602
  f("stop", {
1580
1603
  offset: "0%",
1581
1604
  "stop-color": `${e.shiftHue(l.color, 0.05)}`
1582
- }, null, 8, Lt),
1605
+ }, null, 8, St),
1583
1606
  f("stop", {
1584
1607
  offset: "100%",
1585
1608
  "stop-color": l.color
1586
- }, null, 8, Ct)
1587
- ], 8, At),
1609
+ }, null, 8, kt)
1610
+ ], 8, Ct),
1588
1611
  f("linearGradient", {
1589
1612
  id: `areaGradient_${c}_${r.uniqueId}`,
1590
1613
  x1: "0%",
@@ -1595,29 +1618,29 @@ function pr(t, s, o, d, r, e) {
1595
1618
  f("stop", {
1596
1619
  offset: "0%",
1597
1620
  "stop-color": `${e.setOpacity(e.shiftHue(l.color, 0.03), e.FINAL_CONFIG.line.area.opacity)}`
1598
- }, null, 8, kt),
1621
+ }, null, 8, Ot),
1599
1622
  f("stop", {
1600
1623
  offset: "100%",
1601
1624
  "stop-color": `${e.setOpacity(l.color, e.FINAL_CONFIG.line.area.opacity)}`
1602
- }, null, 8, wt)
1603
- ], 8, St)
1625
+ }, null, 8, Gt)
1626
+ ], 8, wt)
1604
1627
  ]))), 128)),
1605
- (i(!0), a(g, null, N(e.highlightAreas, (l) => (i(), a("g", null, [
1606
- l.show ? (i(!0), a(g, { key: 0 }, N(l.span, (c, n) => (i(), a("g", null, [
1628
+ (a(!0), i(d, null, I(e.highlightAreas, (l) => (a(), i("g", null, [
1629
+ l.show ? (a(!0), i(d, { key: 0 }, I(l.span, (c, s) => (a(), i("g", null, [
1607
1630
  f("rect", {
1608
1631
  style: y({
1609
1632
  transition: "none",
1610
- opacity: l.from + n >= r.slicer.start && l.from + n <= r.slicer.end - 1 ? 1 : 0
1633
+ opacity: l.from + s >= r.slicer.start && l.from + s <= r.slicer.end - 1 ? 1 : 0
1611
1634
  }),
1612
- x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (l.from + n - r.slicer.start),
1635
+ x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (l.from + s - r.slicer.start),
1613
1636
  y: e.drawingArea.top,
1614
1637
  height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
1615
1638
  width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
1616
1639
  fill: e.setOpacity(l.color, l.opacity)
1617
- }, null, 12, Ot),
1618
- l.caption.text && n === 0 ? (i(), a("foreignObject", {
1640
+ }, null, 12, vt),
1641
+ l.caption.text && s === 0 ? (a(), i("foreignObject", {
1619
1642
  key: 0,
1620
- x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (l.from + n - r.slicer.start) - (l.caption.width === "auto" ? 0 : l.caption.width / 2 - e.drawingArea.width / e.maxSeries * l.span / 2),
1643
+ x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (l.from + s - r.slicer.start) - (l.caption.width === "auto" ? 0 : l.caption.width / 2 - e.drawingArea.width / e.maxSeries * l.span / 2),
1621
1644
  y: e.drawingArea.top + l.caption.offsetY,
1622
1645
  style: y({
1623
1646
  overflow: "visible",
@@ -1629,11 +1652,11 @@ function pr(t, s, o, d, r, e) {
1629
1652
  f("div", {
1630
1653
  style: y(`padding:${l.caption.padding}px;text-align:${l.caption.textAlign};font-size:${l.caption.fontSize}px;color:${l.caption.color};font-weight:${l.caption.bold ? "bold" : "normal"}`)
1631
1654
  }, T(l.caption.text), 5)
1632
- ], 12, Gt)) : u("", !0)
1655
+ ], 12, pt)) : u("", !0)
1633
1656
  ]))), 256)) : u("", !0)
1634
1657
  ]))), 256)),
1635
1658
  f("g", null, [
1636
- (i(!0), a(g, null, N(e.maxSeries, (l, c) => (i(), a("g", {
1659
+ (a(!0), i(d, null, I(e.maxSeries, (l, c) => (a(), i("g", {
1637
1660
  key: `tooltip_trap_highlighter_${c}`
1638
1661
  }, [
1639
1662
  f("rect", {
@@ -1642,53 +1665,53 @@ function pr(t, s, o, d, r, e) {
1642
1665
  height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
1643
1666
  width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
1644
1667
  fill: [r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(c) ? e.setOpacity(e.FINAL_CONFIG.chart.highlighter.color, e.FINAL_CONFIG.chart.highlighter.opacity) : "transparent"
1645
- }, null, 8, vt)
1668
+ }, null, 8, Mt)
1646
1669
  ]))), 128))
1647
1670
  ]),
1648
- e.barSet.length ? (i(!0), a(g, { key: 0 }, N(e.barSet, (l, c) => (i(), a("g", {
1671
+ e.barSet.length ? (a(!0), i(d, { key: 0 }, I(e.barSet, (l, c) => (a(), i("g", {
1649
1672
  key: `serie_bar_${c}`,
1650
1673
  class: E(`serie_bar_${c}`),
1651
1674
  style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1652
1675
  }, [
1653
- (i(!0), a(g, null, N(l.plots, (n, h) => (i(), a("g", {
1676
+ (a(!0), i(d, null, I(l.plots, (s, h) => (a(), i("g", {
1654
1677
  key: `bar_plot_${c}_${h}`
1655
1678
  }, [
1656
- e.canShowValue(n.value) ? (i(), a("rect", {
1679
+ e.canShowValue(s.value) ? (a(), i("rect", {
1657
1680
  key: 0,
1658
- x: e.calcRectX(n),
1659
- y: r.mutableConfig.useIndividualScale ? e.calcIndividualRectY(n) : e.calcRectY(n),
1660
- height: r.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(n)) : Math.abs(e.calcRectHeight(n)),
1681
+ x: e.calcRectX(s),
1682
+ y: r.mutableConfig.useIndividualScale ? e.calcIndividualRectY(s) : e.calcRectY(s),
1683
+ height: r.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(s)) : Math.abs(e.calcRectHeight(s)),
1661
1684
  width: e.calcRectWidth() - (r.mutableConfig.useIndividualScale && r.mutableConfig.isStacked ? 0 : e.barPeriodGap) < 0 ? 1e-5 : e.calcRectWidth() - (r.mutableConfig.useIndividualScale && r.mutableConfig.isStacked ? 0 : e.barPeriodGap),
1662
1685
  rx: e.FINAL_CONFIG.bar.borderRadius,
1663
- fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${c}_${r.uniqueId})` : `url(#rectGradient_neg_${c}_${r.uniqueId})` : l.color,
1686
+ fill: e.FINAL_CONFIG.bar.useGradient ? s.value >= 0 ? `url(#rectGradient_pos_${c}_${r.uniqueId})` : `url(#rectGradient_neg_${c}_${r.uniqueId})` : l.color,
1664
1687
  stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? l.color : e.FINAL_CONFIG.bar.border.stroke,
1665
1688
  "stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
1666
- }, null, 8, pt)) : u("", !0),
1667
- e.canShowValue(n.value) && t.$slots.pattern ? (i(), a("rect", {
1689
+ }, null, 8, zt)) : u("", !0),
1690
+ e.canShowValue(s.value) && t.$slots.pattern ? (a(), i("rect", {
1668
1691
  key: 1,
1669
- x: e.calcRectX(n),
1670
- y: r.mutableConfig.useIndividualScale ? e.calcIndividualRectY(n) : e.calcRectY(n),
1671
- height: r.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(n)) : Math.abs(e.calcRectHeight(n)),
1692
+ x: e.calcRectX(s),
1693
+ y: r.mutableConfig.useIndividualScale ? e.calcIndividualRectY(s) : e.calcRectY(s),
1694
+ height: r.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(s)) : Math.abs(e.calcRectHeight(s)),
1672
1695
  width: e.calcRectWidth() - (r.mutableConfig.useIndividualScale && r.mutableConfig.isStacked ? 0 : e.barPeriodGap) < 0 ? 1e-5 : e.calcRectWidth() - (r.mutableConfig.useIndividualScale && r.mutableConfig.isStacked ? 0 : e.barPeriodGap),
1673
1696
  rx: e.FINAL_CONFIG.bar.borderRadius,
1674
1697
  fill: `url(#pattern_${r.uniqueId}_${l.slotAbsoluteIndex})`,
1675
1698
  stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? l.color : e.FINAL_CONFIG.bar.border.stroke,
1676
1699
  "stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
1677
- }, null, 8, Mt)) : u("", !0),
1678
- n.comment && e.FINAL_CONFIG.chart.comments.show ? (i(), a("foreignObject", {
1700
+ }, null, 8, Tt)) : u("", !0),
1701
+ s.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), i("foreignObject", {
1679
1702
  key: 2,
1680
1703
  style: { overflow: "visible" },
1681
1704
  height: "12",
1682
1705
  width: (e.calcRectWidth() - (r.mutableConfig.useIndividualScale && r.mutableConfig.isStacked ? 0 : e.barPeriodGap) < 0 ? 1e-5 : e.calcRectWidth() - (r.mutableConfig.useIndividualScale && r.mutableConfig.isStacked ? 0 : e.barPeriodGap) / 2) + e.FINAL_CONFIG.chart.comments.width,
1683
- x: e.calcRectX(n) - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
1684
- y: e.checkNaN(n.y) + e.FINAL_CONFIG.chart.comments.offsetY + 6
1706
+ x: e.calcRectX(s) - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
1707
+ y: e.checkNaN(s.y) + e.FINAL_CONFIG.chart.comments.offsetY + 6
1685
1708
  }, [
1686
- G(t.$slots, "plot-comment", {
1687
- plot: { ...n, color: l.color, seriesIndex: c, datapointIndex: h }
1709
+ p(t.$slots, "plot-comment", {
1710
+ plot: { ...s, color: l.color, seriesIndex: c, datapointIndex: h }
1688
1711
  }, void 0, !0)
1689
- ], 8, zt)) : u("", !0)
1712
+ ], 8, Pt)) : u("", !0)
1690
1713
  ]))), 128)),
1691
- Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(e.calcLinearProgression(l.plots).trend) ? (i(), a("g", Tt, [
1714
+ Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(e.calcLinearProgression(l.plots).trend) ? (a(), i("g", Vt, [
1692
1715
  f("defs", null, [
1693
1716
  f("marker", {
1694
1717
  id: `bar_arrow_${c}`,
@@ -1701,10 +1724,10 @@ function pr(t, s, o, d, r, e) {
1701
1724
  f("polygon", {
1702
1725
  points: `0 0, 7 ${7 / 2}, 0 7`,
1703
1726
  fill: l.color
1704
- }, null, 8, Vt)
1705
- ], 8, Pt)
1727
+ }, null, 8, Ht)
1728
+ ], 8, Rt)
1706
1729
  ]),
1707
- l.plots.length > 1 ? (i(), a("line", {
1730
+ l.plots.length > 1 ? (a(), i("line", {
1708
1731
  key: 0,
1709
1732
  x1: e.calcLinearProgression(l.plots).x1 + e.calcRectWidth(),
1710
1733
  x2: e.calcLinearProgression(l.plots).x2 + e.calcRectWidth(),
@@ -1714,8 +1737,8 @@ function pr(t, s, o, d, r, e) {
1714
1737
  stroke: l.color,
1715
1738
  "stroke-dasharray": 2,
1716
1739
  "marker-end": `url(#bar_arrow_${c})`
1717
- }, null, 8, Rt)) : u("", !0),
1718
- l.plots.length > 1 ? (i(), a("text", {
1740
+ }, null, 8, Dt)) : u("", !0),
1741
+ l.plots.length > 1 ? (a(), i("text", {
1719
1742
  key: 1,
1720
1743
  "text-anchor": "middle",
1721
1744
  x: e.calcLinearProgression(l.plots).x2 + e.calcRectWidth(),
@@ -1726,10 +1749,10 @@ function pr(t, s, o, d, r, e) {
1726
1749
  v: e.calcLinearProgression(l.plots).trend * 100,
1727
1750
  s: "%",
1728
1751
  r: 2
1729
- })), 9, Ht)) : u("", !0)
1752
+ })), 9, Wt)) : u("", !0)
1730
1753
  ])) : u("", !0)
1731
1754
  ], 6))), 128)) : u("", !0),
1732
- !r.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (i(), a("line", {
1755
+ !r.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (a(), i("line", {
1733
1756
  key: 1,
1734
1757
  stroke: e.FINAL_CONFIG.chart.grid.stroke,
1735
1758
  "stroke-width": "1",
@@ -1739,8 +1762,8 @@ function pr(t, s, o, d, r, e) {
1739
1762
  y2: e.forceValidValue(e.zero),
1740
1763
  "stroke-linecap": "round",
1741
1764
  style: { animation: "none !important" }
1742
- }, null, 8, Dt)) : u("", !0),
1743
- e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(r.selectedSerieIndex) || ![null, void 0].includes(r.selectedMinimapIndex)) ? (i(), a("g", Bt, [
1765
+ }, null, 8, Bt)) : u("", !0),
1766
+ e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(r.selectedSerieIndex) || ![null, void 0].includes(r.selectedMinimapIndex)) ? (a(), i("g", Et, [
1744
1767
  f("line", {
1745
1768
  x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((r.selectedSerieIndex !== null ? r.selectedSerieIndex : 0) || (r.selectedMinimapIndex !== null ? r.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
1746
1769
  x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((r.selectedSerieIndex !== null ? r.selectedSerieIndex : 0) || (r.selectedMinimapIndex !== null ? r.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
@@ -1751,9 +1774,9 @@ function pr(t, s, o, d, r, e) {
1751
1774
  "stroke-dasharray": e.FINAL_CONFIG.chart.highlighter.lineDasharray,
1752
1775
  "stroke-linecap": "round",
1753
1776
  style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
1754
- }, null, 8, Wt)
1777
+ }, null, 8, Yt)
1755
1778
  ])) : u("", !0),
1756
- e.FINAL_CONFIG.chart.grid.frame.show ? (i(), a("rect", {
1779
+ e.FINAL_CONFIG.chart.grid.frame.show ? (a(), i("rect", {
1757
1780
  key: 3,
1758
1781
  style: { pointerEvents: "none", transition: "none", animation: "none !important" },
1759
1782
  x: e.drawingArea.left + e.xPadding < 0 ? 0 : e.drawingArea.left + e.xPadding,
@@ -1766,10 +1789,10 @@ function pr(t, s, o, d, r, e) {
1766
1789
  "stroke-linecap": e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,
1767
1790
  "stroke-linejoin": e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,
1768
1791
  "stroke-dasharray": e.FINAL_CONFIG.chart.grid.frame.strokeDasharray
1769
- }, null, 8, Et)) : u("", !0),
1770
- e.FINAL_CONFIG.chart.grid.labels.show ? (i(), a("g", Yt, [
1771
- r.mutableConfig.useIndividualScale ? (i(), a(g, { key: 0 }, [
1772
- (i(!0), a(g, null, N(e.allScales, (l) => (i(), a("g", null, [
1792
+ }, null, 8, qt)) : u("", !0),
1793
+ e.FINAL_CONFIG.chart.grid.labels.show ? (a(), i("g", Xt, [
1794
+ r.mutableConfig.useIndividualScale ? (a(), i(d, { key: 0 }, [
1795
+ (a(!0), i(d, null, I(e.allScales, (l) => (a(), i("g", null, [
1773
1796
  f("line", {
1774
1797
  x1: l.x + e.xPadding,
1775
1798
  x2: l.x + e.xPadding,
@@ -1779,9 +1802,9 @@ function pr(t, s, o, d, r, e) {
1779
1802
  "stroke-width": e.FINAL_CONFIG.chart.grid.stroke,
1780
1803
  "stroke-linecap": "round",
1781
1804
  style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
1782
- }, null, 12, qt)
1805
+ }, null, 12, Ut)
1783
1806
  ]))), 256)),
1784
- (i(!0), a(g, null, N(e.allScales, (l) => (i(), a("g", {
1807
+ (a(!0), i(d, null, I(e.allScales, (l) => (a(), i("g", {
1785
1808
  style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
1786
1809
  }, [
1787
1810
  f("text", {
@@ -1789,9 +1812,9 @@ function pr(t, s, o, d, r, e) {
1789
1812
  "font-size": r.fontSizes.dataLabels,
1790
1813
  "text-anchor": "middle",
1791
1814
  transform: `translate(${l.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + 5 + e.xPadding + e.FINAL_CONFIG.chart.grid.labels.yAxis.scaleLabelOffsetX}, ${r.mutableConfig.isStacked ? e.drawingArea.bottom - l.yOffset - l.individualHeight / 2 : e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`
1792
- }, T(l.name) + " " + T(l.scaleLabel && l.unique && l.scaleLabel !== l.id ? `- ${l.scaleLabel}` : ""), 9, Xt),
1793
- (i(!0), a(g, null, N(l.yLabels, (c, n) => (i(), a(g, null, [
1794
- e.FINAL_CONFIG.chart.grid.labels.yAxis.showCrosshairs ? (i(), a("line", {
1815
+ }, T(l.name) + " " + T(l.scaleLabel && l.unique && l.scaleLabel !== l.id ? `- ${l.scaleLabel}` : ""), 9, Zt),
1816
+ (a(!0), i(d, null, I(l.yLabels, (c, s) => (a(), i(d, null, [
1817
+ e.FINAL_CONFIG.chart.grid.labels.yAxis.showCrosshairs ? (a(), i("line", {
1795
1818
  key: 0,
1796
1819
  x1: l.x + 3 + e.xPadding - e.FINAL_CONFIG.chart.grid.labels.yAxis.crosshairSize,
1797
1820
  x2: l.x + e.xPadding,
@@ -1801,9 +1824,9 @@ function pr(t, s, o, d, r, e) {
1801
1824
  "stroke-width": 1,
1802
1825
  "stroke-linecap": "round",
1803
1826
  style: { animation: "none !important" }
1804
- }, null, 8, Ut)) : u("", !0)
1827
+ }, null, 8, Jt)) : u("", !0)
1805
1828
  ], 64))), 256)),
1806
- (i(!0), a(g, null, N(l.yLabels, (c, n) => (i(), a("text", {
1829
+ (a(!0), i(d, null, I(l.yLabels, (c, s) => (a(), i("text", {
1807
1830
  x: l.x - 5 + e.xPadding + e.FINAL_CONFIG.chart.grid.labels.yAxis.scaleValueOffsetX,
1808
1831
  y: e.forceValidValue(c.y) + r.fontSizes.dataLabels / 3,
1809
1832
  "font-size": r.fontSizes.dataLabels,
@@ -1818,13 +1841,13 @@ function pr(t, s, o, d, r, e) {
1818
1841
  s: c.suffix,
1819
1842
  r: 1
1820
1843
  }),
1821
- { datapoint: c.datapoint, seriesIndex: n }
1822
- )), 9, Zt))), 256))
1844
+ { datapoint: c.datapoint, seriesIndex: s }
1845
+ )), 9, Kt))), 256))
1823
1846
  ], 4))), 256))
1824
- ], 64)) : (i(!0), a(g, { key: 1 }, N(e.yLabels, (l, c) => (i(), a("g", {
1847
+ ], 64)) : (a(!0), i(d, { key: 1 }, I(e.yLabels, (l, c) => (a(), i("g", {
1825
1848
  key: `yLabel_${c}`
1826
1849
  }, [
1827
- e.canShowValue(l) && l.value >= e.niceScale.min && l.value <= e.niceScale.max && e.FINAL_CONFIG.chart.grid.labels.yAxis.showCrosshairs ? (i(), a("line", {
1850
+ e.canShowValue(l) && l.value >= e.niceScale.min && l.value <= e.niceScale.max && e.FINAL_CONFIG.chart.grid.labels.yAxis.showCrosshairs ? (a(), i("line", {
1828
1851
  key: 0,
1829
1852
  x1: e.drawingArea.left + e.xPadding,
1830
1853
  x2: e.drawingArea.left - e.FINAL_CONFIG.chart.grid.labels.yAxis.crosshairSize + e.xPadding,
@@ -1834,8 +1857,8 @@ function pr(t, s, o, d, r, e) {
1834
1857
  "stroke-width": "1",
1835
1858
  "stroke-linecap": "round",
1836
1859
  style: { animation: "none !important" }
1837
- }, null, 8, Jt)) : u("", !0),
1838
- l.value >= e.niceScale.min && l.value <= e.niceScale.max ? (i(), a("text", {
1860
+ }, null, 8, Qt)) : u("", !0),
1861
+ l.value >= e.niceScale.min && l.value <= e.niceScale.max ? (a(), i("text", {
1839
1862
  key: 1,
1840
1863
  x: e.drawingArea.left - 7 + e.xPadding,
1841
1864
  y: e.checkNaN(l.y + r.fontSizes.dataLabels / 3),
@@ -1851,42 +1874,42 @@ function pr(t, s, o, d, r, e) {
1851
1874
  s: l.suffix,
1852
1875
  r: 1
1853
1876
  })
1854
- ) : ""), 9, Kt)) : u("", !0)
1877
+ ) : ""), 9, jt)) : u("", !0)
1855
1878
  ]))), 128))
1856
1879
  ])) : u("", !0),
1857
- (i(!0), a(g, null, N(e.plotSet, (l, c) => (i(), a("g", {
1880
+ (a(!0), i(d, null, I(e.plotSet, (l, c) => (a(), i("g", {
1858
1881
  key: `serie_plot_${c}`,
1859
1882
  class: E(`serie_plot_${c}`),
1860
1883
  style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1861
1884
  }, [
1862
- (i(!0), a(g, null, N(l.plots, (n, h) => (i(), a("g", {
1885
+ (a(!0), i(d, null, I(l.plots, (s, h) => (a(), i("g", {
1863
1886
  key: `circle_plot_${c}_${h}`
1864
1887
  }, [
1865
- n && e.canShowValue(n.value) ? (i(), B(v, {
1888
+ s && e.canShowValue(s.value) ? (a(), W(k, {
1866
1889
  key: 0,
1867
1890
  shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(l.shape) ? l.shape : "circle",
1868
1891
  color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${c}_${r.uniqueId})` : e.FINAL_CONFIG.plot.dot.useSerieColor ? l.color : e.FINAL_CONFIG.plot.dot.fill,
1869
- plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
1892
+ plot: { x: e.checkNaN(s.x), y: e.checkNaN(s.y) },
1870
1893
  radius: r.selectedSerieIndex !== null && r.selectedSerieIndex === h || r.selectedMinimapIndex !== null && r.selectedMinimapIndex === h ? (r.plotRadii.plot || 6) * 1.5 : r.plotRadii.plot || 6,
1871
1894
  stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : l.color,
1872
1895
  strokeWidth: e.FINAL_CONFIG.plot.dot.strokeWidth
1873
1896
  }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : u("", !0),
1874
- n.comment && e.FINAL_CONFIG.chart.comments.show ? (i(), a("foreignObject", {
1897
+ s.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), i("foreignObject", {
1875
1898
  key: 1,
1876
1899
  style: { overflow: "visible" },
1877
1900
  height: "12",
1878
1901
  width: e.FINAL_CONFIG.chart.comments.width,
1879
- x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
1880
- y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
1902
+ x: s.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
1903
+ y: s.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
1881
1904
  }, [
1882
- f("div", jt, [
1883
- G(t.$slots, "plot-comment", {
1884
- plot: { ...n, color: l.color, seriesIndex: c, datapointIndex: h }
1905
+ f("div", el, [
1906
+ p(t.$slots, "plot-comment", {
1907
+ plot: { ...s, color: l.color, seriesIndex: c, datapointIndex: h }
1885
1908
  }, void 0, !0)
1886
1909
  ])
1887
- ], 8, Qt)) : u("", !0)
1910
+ ], 8, $t)) : u("", !0)
1888
1911
  ]))), 128)),
1889
- Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(e.calcLinearProgression(l.plots).trend) ? (i(), a("g", $t, [
1912
+ Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(e.calcLinearProgression(l.plots).trend) ? (a(), i("g", tl, [
1890
1913
  f("defs", null, [
1891
1914
  f("marker", {
1892
1915
  id: `plot_arrow_${c}`,
@@ -1899,10 +1922,10 @@ function pr(t, s, o, d, r, e) {
1899
1922
  f("polygon", {
1900
1923
  points: `0 0, 7 ${7 / 2}, 0 7`,
1901
1924
  fill: l.color
1902
- }, null, 8, tl)
1903
- ], 8, el)
1925
+ }, null, 8, rl)
1926
+ ], 8, ll)
1904
1927
  ]),
1905
- l.plots.length > 1 ? (i(), a("line", {
1928
+ l.plots.length > 1 ? (a(), i("line", {
1906
1929
  key: 0,
1907
1930
  x1: e.calcLinearProgression(l.plots).x1,
1908
1931
  x2: e.calcLinearProgression(l.plots).x2,
@@ -1912,8 +1935,8 @@ function pr(t, s, o, d, r, e) {
1912
1935
  stroke: l.color,
1913
1936
  "stroke-dasharray": 2,
1914
1937
  "marker-end": `url(#plot_arrow_${c})`
1915
- }, null, 8, ll)) : u("", !0),
1916
- l.plots.length > 1 ? (i(), a("text", {
1938
+ }, null, 8, al)) : u("", !0),
1939
+ l.plots.length > 1 ? (a(), i("text", {
1917
1940
  key: 1,
1918
1941
  "text-anchor": "middle",
1919
1942
  x: e.calcLinearProgression(l.plots).x2,
@@ -1924,22 +1947,22 @@ function pr(t, s, o, d, r, e) {
1924
1947
  v: e.calcLinearProgression(l.plots).trend * 100,
1925
1948
  s: "%",
1926
1949
  r: 2
1927
- })), 9, rl)) : u("", !0)
1950
+ })), 9, il)) : u("", !0)
1928
1951
  ])) : u("", !0)
1929
1952
  ], 6))), 128)),
1930
- (i(!0), a(g, null, N(e.lineSet, (l, c) => (i(), a("g", {
1953
+ (a(!0), i(d, null, I(e.lineSet, (l, c) => (a(), i("g", {
1931
1954
  key: `serie_line_${c}`,
1932
1955
  class: E(`serie_line_${c}`),
1933
1956
  style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1934
1957
  }, [
1935
- l.smooth && l.plots.length > 1 ? (i(), a("path", {
1958
+ l.smooth && l.plots.length > 1 ? (a(), i("path", {
1936
1959
  key: 0,
1937
1960
  d: `M${l.curve}`,
1938
1961
  stroke: e.FINAL_CONFIG.chart.backgroundColor,
1939
1962
  "stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
1940
1963
  "stroke-dasharray": l.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
1941
1964
  fill: "none"
1942
- }, null, 8, il)) : l.plots.length > 1 ? (i(), a("path", {
1965
+ }, null, 8, sl)) : l.plots.length > 1 ? (a(), i("path", {
1943
1966
  key: 1,
1944
1967
  d: `M${l.straight}`,
1945
1968
  stroke: e.FINAL_CONFIG.chart.backgroundColor,
@@ -1948,42 +1971,42 @@ function pr(t, s, o, d, r, e) {
1948
1971
  fill: "none",
1949
1972
  "stroke-linecap": "round",
1950
1973
  "stroke-linejoin": "round"
1951
- }, null, 8, al)) : u("", !0)
1974
+ }, null, 8, nl)) : u("", !0)
1952
1975
  ], 6))), 128)),
1953
- t.$slots.pattern ? (i(), a("defs", sl, [
1954
- (i(!0), a(g, null, N(e.safeDataset, (l, c) => G(t.$slots, "pattern", K({
1976
+ t.$slots.pattern ? (a(), i("defs", cl, [
1977
+ (a(!0), i(d, null, I(e.safeDataset, (l, c) => p(t.$slots, "pattern", K({
1955
1978
  key: `serie_pattern_slot_${c}`
1956
1979
  }, { ref_for: !0 }, { ...l, seriesIndex: l.slotAbsoluteIndex, patternId: `pattern_${r.uniqueId}_${c}` }), void 0, !0)), 128))
1957
1980
  ])) : u("", !0),
1958
- (i(!0), a(g, null, N(e.lineSet, (l, c) => (i(), a("g", {
1981
+ (a(!0), i(d, null, I(e.lineSet, (l, c) => (a(), i("g", {
1959
1982
  key: `serie_line_${c}`,
1960
1983
  class: E(`serie_line_${c}`),
1961
1984
  style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1962
1985
  }, [
1963
- l.useArea && l.plots.length > 1 ? (i(), a("g", nl, [
1964
- l.smooth ? (i(!0), a(g, { key: 0 }, N(l.curveAreas, (n, h) => (i(), a(g, { key: h }, [
1986
+ l.useArea && l.plots.length > 1 ? (a(), i("g", ol, [
1987
+ l.smooth ? (a(!0), i(d, { key: 0 }, I(l.curveAreas, (s, h) => (a(), i(d, { key: h }, [
1965
1988
  f("path", {
1966
- d: n,
1989
+ d: s,
1967
1990
  fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${c}_${r.uniqueId})` : e.setOpacity(l.color, e.FINAL_CONFIG.line.area.opacity)
1968
- }, null, 8, cl),
1969
- t.$slots.pattern ? (i(), a("path", {
1991
+ }, null, 8, hl),
1992
+ t.$slots.pattern ? (a(), i("path", {
1970
1993
  key: 0,
1971
- d: n,
1994
+ d: s,
1972
1995
  fill: `url(#pattern_${r.uniqueId}_${l.slotAbsoluteIndex})`
1973
- }, null, 8, ol)) : u("", !0)
1974
- ], 64))), 128)) : (i(!0), a(g, { key: 1 }, N(l.area.split(";"), (n, h) => (i(), a(g, { key: h }, [
1996
+ }, null, 8, ul)) : u("", !0)
1997
+ ], 64))), 128)) : (a(!0), i(d, { key: 1 }, I(l.area.split(";"), (s, h) => (a(), i(d, { key: h }, [
1975
1998
  f("path", {
1976
- d: `M${n}Z`,
1999
+ d: `M${s}Z`,
1977
2000
  fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${c}_${r.uniqueId})` : e.setOpacity(l.color, e.FINAL_CONFIG.line.area.opacity)
1978
- }, null, 8, hl),
1979
- t.$slots.pattern ? (i(), a("path", {
2001
+ }, null, 8, dl),
2002
+ t.$slots.pattern ? (a(), i("path", {
1980
2003
  key: 0,
1981
- d: `M${n}Z`,
2004
+ d: `M${s}Z`,
1982
2005
  fill: `url(#pattern_${r.uniqueId}_${l.slotAbsoluteIndex})`
1983
- }, null, 8, ul)) : u("", !0)
2006
+ }, null, 8, gl)) : u("", !0)
1984
2007
  ], 64))), 128))
1985
2008
  ])) : u("", !0),
1986
- l.smooth && l.plots.length > 1 ? (i(), a("path", {
2009
+ l.smooth && l.plots.length > 1 ? (a(), i("path", {
1987
2010
  key: 1,
1988
2011
  d: `M${l.curve}`,
1989
2012
  stroke: l.color,
@@ -1991,7 +2014,7 @@ function pr(t, s, o, d, r, e) {
1991
2014
  "stroke-dasharray": l.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
1992
2015
  fill: "none",
1993
2016
  "stroke-linecap": "round"
1994
- }, null, 8, dl)) : l.plots.length > 1 ? (i(), a("path", {
2017
+ }, null, 8, fl)) : l.plots.length > 1 ? (a(), i("path", {
1995
2018
  key: 2,
1996
2019
  d: `M${l.straight}`,
1997
2020
  stroke: l.color,
@@ -2000,35 +2023,35 @@ function pr(t, s, o, d, r, e) {
2000
2023
  fill: "none",
2001
2024
  "stroke-linecap": "round",
2002
2025
  "stroke-linejoin": "round"
2003
- }, null, 8, gl)) : u("", !0),
2004
- (i(!0), a(g, null, N(l.plots, (n, h) => (i(), a(g, {
2026
+ }, null, 8, Il)) : u("", !0),
2027
+ (a(!0), i(d, null, I(l.plots, (s, h) => (a(), i(d, {
2005
2028
  key: `circle_line_${c}_${h}`
2006
2029
  }, [
2007
- !e.optimize.linePlot && n && e.canShowValue(n.value) || e.optimize.linePlot && n && e.canShowValue(n.value) && (r.selectedSerieIndex !== null && r.selectedSerieIndex === h || r.selectedMinimapIndex !== null && r.selectedMinimapIndex === h) ? (i(), B(v, {
2030
+ !e.optimize.linePlot && s && e.canShowValue(s.value) || e.optimize.linePlot && s && e.canShowValue(s.value) && (r.selectedSerieIndex !== null && r.selectedSerieIndex === h || r.selectedMinimapIndex !== null && r.selectedMinimapIndex === h) ? (a(), W(k, {
2008
2031
  key: 0,
2009
2032
  shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(l.shape) ? l.shape : "circle",
2010
2033
  color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${c}_${r.uniqueId})` : e.FINAL_CONFIG.line.dot.useSerieColor ? l.color : e.FINAL_CONFIG.line.dot.fill,
2011
- plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
2034
+ plot: { x: e.checkNaN(s.x), y: e.checkNaN(s.y) },
2012
2035
  radius: r.selectedSerieIndex !== null && r.selectedSerieIndex === h || r.selectedMinimapIndex !== null && r.selectedMinimapIndex === h ? (r.plotRadii.line || 6) * 1.5 : r.plotRadii.line || 6,
2013
2036
  stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : l.color,
2014
2037
  strokeWidth: e.FINAL_CONFIG.line.dot.strokeWidth
2015
2038
  }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : u("", !0),
2016
- n.comment && e.FINAL_CONFIG.chart.comments.show ? (i(), a("foreignObject", {
2039
+ s.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), i("foreignObject", {
2017
2040
  key: 1,
2018
2041
  style: { overflow: "visible" },
2019
2042
  height: "12",
2020
2043
  width: e.FINAL_CONFIG.chart.comments.width,
2021
- x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
2022
- y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
2044
+ x: s.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
2045
+ y: s.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
2023
2046
  }, [
2024
- f("div", Il, [
2025
- G(t.$slots, "plot-comment", {
2026
- plot: { ...n, color: l.color, seriesIndex: c, datapointIndex: h }
2047
+ f("div", xl, [
2048
+ p(t.$slots, "plot-comment", {
2049
+ plot: { ...s, color: l.color, seriesIndex: c, datapointIndex: h }
2027
2050
  }, void 0, !0)
2028
2051
  ])
2029
- ], 8, fl)) : u("", !0)
2052
+ ], 8, Nl)) : u("", !0)
2030
2053
  ], 64))), 128)),
2031
- Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(e.calcLinearProgression(l.plots).trend) ? (i(), a("g", Nl, [
2054
+ Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(e.calcLinearProgression(l.plots).trend) ? (a(), i("g", ml, [
2032
2055
  f("defs", null, [
2033
2056
  f("marker", {
2034
2057
  id: `line_arrow_${c}`,
@@ -2041,10 +2064,10 @@ function pr(t, s, o, d, r, e) {
2041
2064
  f("polygon", {
2042
2065
  points: `0 0, 7 ${7 / 2}, 0 7`,
2043
2066
  fill: l.color
2044
- }, null, 8, xl)
2045
- ], 8, ml)
2067
+ }, null, 8, Fl)
2068
+ ], 8, bl)
2046
2069
  ]),
2047
- l.plots.length > 1 ? (i(), a("line", {
2070
+ l.plots.length > 1 ? (a(), i("line", {
2048
2071
  key: 0,
2049
2072
  x1: e.calcLinearProgression(l.plots).x1,
2050
2073
  x2: e.calcLinearProgression(l.plots).x2,
@@ -2054,8 +2077,8 @@ function pr(t, s, o, d, r, e) {
2054
2077
  stroke: l.color,
2055
2078
  "stroke-dasharray": 2,
2056
2079
  "marker-end": `url(#line_arrow_${c})`
2057
- }, null, 8, bl)) : u("", !0),
2058
- l.plots.length > 1 ? (i(), a("text", {
2080
+ }, null, 8, _l)) : u("", !0),
2081
+ l.plots.length > 1 ? (a(), i("text", {
2059
2082
  key: 1,
2060
2083
  "text-anchor": "middle",
2061
2084
  x: e.calcLinearProgression(l.plots).x2,
@@ -2066,107 +2089,107 @@ function pr(t, s, o, d, r, e) {
2066
2089
  v: e.calcLinearProgression(l.plots).trend * 100,
2067
2090
  s: "%",
2068
2091
  r: 2
2069
- })), 9, Fl)) : u("", !0)
2092
+ })), 9, yl)) : u("", !0)
2070
2093
  ])) : u("", !0)
2071
2094
  ], 6))), 128)),
2072
- (e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && r.mutableConfig.dataLabels.show ? (i(), a("g", _l, [
2073
- (i(!0), a(g, null, N(e.barSet, (l, c) => (i(), a(g, {
2095
+ (e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && r.mutableConfig.dataLabels.show ? (a(), i("g", Al, [
2096
+ (a(!0), i(d, null, I(e.barSet, (l, c) => (a(), i(d, {
2074
2097
  key: `xLabel_bar_${c}`
2075
2098
  }, [
2076
- (i(!0), a(g, null, N(l.plots, (n, h) => (i(), a(g, {
2099
+ (a(!0), i(d, null, I(l.plots, (s, h) => (a(), i(d, {
2077
2100
  key: `xLabel_bar_${c}_${h}`
2078
2101
  }, [
2079
- n && (!Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || r.selectedSerieIndex !== null && r.selectedSerieIndex === h || r.selectedMinimapIndex !== null && r.selectedMinimapIndex === h) && e.FINAL_CONFIG.bar.labels.show ? (i(), a("text", {
2102
+ s && (!Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || r.selectedSerieIndex !== null && r.selectedSerieIndex === h || r.selectedMinimapIndex !== null && r.selectedMinimapIndex === h) && e.FINAL_CONFIG.bar.labels.show ? (a(), i("text", {
2080
2103
  key: 0,
2081
- x: r.mutableConfig.useIndividualScale && r.mutableConfig.isStacked ? n.x + e.slot.line / 2 : e.calcRectX(n) + e.calcRectWidth() / 2 - e.barPeriodGap / 2,
2082
- y: e.checkNaN(n.y) + (n.value >= 0 ? e.FINAL_CONFIG.bar.labels.offsetY : -e.FINAL_CONFIG.bar.labels.offsetY * 3),
2104
+ x: r.mutableConfig.useIndividualScale && r.mutableConfig.isStacked ? s.x + e.slot.line / 2 : e.calcRectX(s) + e.calcRectWidth() / 2 - e.barPeriodGap / 2,
2105
+ y: e.checkNaN(s.y) + (s.value >= 0 ? e.FINAL_CONFIG.bar.labels.offsetY : -e.FINAL_CONFIG.bar.labels.offsetY * 3),
2083
2106
  "text-anchor": "middle",
2084
2107
  "font-size": r.fontSizes.plotLabels,
2085
2108
  fill: e.FINAL_CONFIG.bar.labels.color,
2086
2109
  style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2087
- }, T(e.canShowValue(n.value) ? e.applyDataLabel(
2110
+ }, T(e.canShowValue(s.value) ? e.applyDataLabel(
2088
2111
  e.FINAL_CONFIG.bar.labels.formatter,
2089
- n.value,
2112
+ s.value,
2090
2113
  e.dataLabel({
2091
2114
  p: l.prefix || e.FINAL_CONFIG.chart.labels.prefix,
2092
- v: n.value,
2115
+ v: s.value,
2093
2116
  s: l.suffix || e.FINAL_CONFIG.chart.labels.suffix,
2094
2117
  r: e.FINAL_CONFIG.bar.labels.rounding
2095
2118
  }),
2096
2119
  {
2097
- datapoint: n,
2120
+ datapoint: s,
2098
2121
  serie: l
2099
2122
  }
2100
- ) : ""), 13, yl)) : u("", !0),
2101
- n && e.FINAL_CONFIG.bar.serieName.show ? (i(), a("text", {
2123
+ ) : ""), 13, Ll)) : u("", !0),
2124
+ s && e.FINAL_CONFIG.bar.serieName.show ? (a(), i("text", {
2102
2125
  key: 1,
2103
- x: r.mutableConfig.useIndividualScale && r.mutableConfig.isStacked ? n.x + e.slot.line / 2 : n.x + e.calcRectWidth() * 1.1,
2104
- y: n.y + (n.value > 0 ? e.FINAL_CONFIG.bar.serieName.offsetY : -e.FINAL_CONFIG.bar.serieName.offsetY * 3),
2126
+ x: r.mutableConfig.useIndividualScale && r.mutableConfig.isStacked ? s.x + e.slot.line / 2 : s.x + e.calcRectWidth() * 1.1,
2127
+ y: s.y + (s.value > 0 ? e.FINAL_CONFIG.bar.serieName.offsetY : -e.FINAL_CONFIG.bar.serieName.offsetY * 3),
2105
2128
  "text-anchor": "middle",
2106
2129
  "font-size": r.fontSizes.plotLabels,
2107
2130
  fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? l.color : e.FINAL_CONFIG.bar.serieName.color,
2108
2131
  "font-weight": e.FINAL_CONFIG.bar.serieName.bold ? "bold" : "normal",
2109
2132
  style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2110
- }, T(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: l.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : l.name), 13, Al)) : u("", !0)
2133
+ }, T(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: l.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : l.name), 13, Cl)) : u("", !0)
2111
2134
  ], 64))), 128))
2112
2135
  ], 64))), 128))
2113
2136
  ])) : u("", !0),
2114
- e.FINAL_CONFIG.plot.labels.show && r.mutableConfig.dataLabels.show ? (i(), a("g", Ll, [
2115
- (i(!0), a(g, null, N(e.plotSet, (l, c) => (i(), a(g, {
2137
+ e.FINAL_CONFIG.plot.labels.show && r.mutableConfig.dataLabels.show ? (a(), i("g", Sl, [
2138
+ (a(!0), i(d, null, I(e.plotSet, (l, c) => (a(), i(d, {
2116
2139
  key: `xLabel_plot_${c}`
2117
2140
  }, [
2118
- (i(!0), a(g, null, N(l.plots, (n, h) => (i(), a(g, {
2141
+ (a(!0), i(d, null, I(l.plots, (s, h) => (a(), i(d, {
2119
2142
  key: `xLabel_plot_${c}_${h}`
2120
2143
  }, [
2121
- n && !Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || r.selectedSerieIndex !== null && r.selectedSerieIndex === h || r.selectedMinimapIndex !== null && r.selectedMinimapIndex === h ? (i(), a("text", {
2144
+ s && !Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || r.selectedSerieIndex !== null && r.selectedSerieIndex === h || r.selectedMinimapIndex !== null && r.selectedMinimapIndex === h ? (a(), i("text", {
2122
2145
  key: 0,
2123
- x: n.x,
2124
- y: n.y + e.FINAL_CONFIG.plot.labels.offsetY,
2146
+ x: s.x,
2147
+ y: s.y + e.FINAL_CONFIG.plot.labels.offsetY,
2125
2148
  "text-anchor": "middle",
2126
2149
  "font-size": r.fontSizes.plotLabels,
2127
2150
  fill: e.FINAL_CONFIG.plot.labels.color,
2128
2151
  style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2129
- }, T(e.canShowValue(n.value) ? e.applyDataLabel(
2152
+ }, T(e.canShowValue(s.value) ? e.applyDataLabel(
2130
2153
  e.FINAL_CONFIG.plot.labels.formatter,
2131
- n.value,
2154
+ s.value,
2132
2155
  e.dataLabel({
2133
2156
  p: l.prefix || e.FINAL_CONFIG.chart.labels.prefix,
2134
- v: n.value,
2157
+ v: s.value,
2135
2158
  s: l.suffix || e.FINAL_CONFIG.chart.labels.suffix,
2136
2159
  r: e.FINAL_CONFIG.plot.labels.rounding
2137
2160
  }),
2138
2161
  {
2139
- datapoint: n,
2162
+ datapoint: s,
2140
2163
  serie: l
2141
2164
  }
2142
- ) : ""), 13, Cl)) : u("", !0)
2165
+ ) : ""), 13, kl)) : u("", !0)
2143
2166
  ], 64))), 128))
2144
2167
  ], 64))), 128))
2145
- ])) : (i(), a("g", Sl, [
2146
- (i(!0), a(g, null, N(e.plotSet, (l, c) => (i(), a(g, {
2168
+ ])) : (a(), i("g", wl, [
2169
+ (a(!0), i(d, null, I(e.plotSet, (l, c) => (a(), i(d, {
2147
2170
  key: `xLabel_plot_${c}`
2148
2171
  }, [
2149
- (i(!0), a(g, null, N(l.plots, (n, h) => (i(), a(g, {
2172
+ (a(!0), i(d, null, I(l.plots, (s, h) => (a(), i(d, {
2150
2173
  key: `xLabel_plot_${c}_${h}`
2151
2174
  }, [
2152
- e.FINAL_CONFIG.plot.tag.followValue ? (i(), a(g, { key: 1 }, [
2153
- [r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(h) && l.useTag ? (i(), a("line", {
2175
+ e.FINAL_CONFIG.plot.tag.followValue ? (a(), i(d, { key: 1 }, [
2176
+ [r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(h) && l.useTag ? (a(), i("line", {
2154
2177
  key: 0,
2155
2178
  class: "vue-ui-xy-tag-plot",
2156
2179
  x1: e.drawingArea.left,
2157
2180
  x2: e.drawingArea.right,
2158
- y1: n.y,
2159
- y2: n.y,
2181
+ y1: s.y,
2182
+ y2: s.y,
2160
2183
  "stroke-width": 1,
2161
2184
  "stroke-linecap": "round",
2162
2185
  "stroke-dasharray": "2",
2163
2186
  stroke: l.color
2164
- }, null, 8, vl)) : u("", !0)
2165
- ], 64)) : (i(), a(g, { key: 0 }, [
2166
- n && h === 0 && l.useTag && l.useTag === "start" ? (i(), a("foreignObject", {
2187
+ }, null, 8, Ml)) : u("", !0)
2188
+ ], 64)) : (a(), i(d, { key: 0 }, [
2189
+ s && h === 0 && l.useTag && l.useTag === "start" ? (a(), i("foreignObject", {
2167
2190
  key: 0,
2168
- x: n.x,
2169
- y: n.y - 20,
2191
+ x: s.x,
2192
+ y: s.y - 20,
2170
2193
  height: 24,
2171
2194
  width: "150",
2172
2195
  style: y(`overflow: visible; opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
@@ -2175,20 +2198,20 @@ function pr(t, s, o, d, r, e) {
2175
2198
  style: y(`padding: 3px; background:${e.setOpacity(l.color, 80)};color:${e.adaptColorToBackground(l.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`),
2176
2199
  innerHTML: e.applyDataLabel(
2177
2200
  e.FINAL_CONFIG.plot.tag.formatter,
2178
- n.value,
2201
+ s.value,
2179
2202
  l.name,
2180
2203
  {
2181
- datapoint: n,
2204
+ datapoint: s,
2182
2205
  seriesIndex: h,
2183
2206
  serieName: l.name
2184
2207
  }
2185
2208
  )
2186
- }, null, 12, wl)
2187
- ], 12, kl)) : u("", !0),
2188
- n && h === l.plots.length - 1 && l.useTag && l.useTag === "end" ? (i(), a("foreignObject", {
2209
+ }, null, 12, Gl)
2210
+ ], 12, Ol)) : u("", !0),
2211
+ s && h === l.plots.length - 1 && l.useTag && l.useTag === "end" ? (a(), i("foreignObject", {
2189
2212
  key: 1,
2190
- x: n.x - l.name.length * (r.fontSizes.plotLabels / 2),
2191
- y: n.y - 20,
2213
+ x: s.x - l.name.length * (r.fontSizes.plotLabels / 2),
2214
+ y: s.y - 20,
2192
2215
  height: 24,
2193
2216
  width: "150",
2194
2217
  style: y(`overflow: visible; opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
@@ -2197,76 +2220,76 @@ function pr(t, s, o, d, r, e) {
2197
2220
  style: y(`padding: 3px; background:${e.setOpacity(l.color, 80)};color:${e.adaptColorToBackground(l.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`),
2198
2221
  innerHTML: e.applyDataLabel(
2199
2222
  e.FINAL_CONFIG.plot.tag.formatter,
2200
- n.value,
2223
+ s.value,
2201
2224
  l.name,
2202
2225
  {
2203
- datapoint: n,
2226
+ datapoint: s,
2204
2227
  seriesIndex: h,
2205
2228
  serieName: l.name
2206
2229
  }
2207
2230
  )
2208
- }, null, 12, Gl)
2209
- ], 12, Ol)) : u("", !0)
2231
+ }, null, 12, pl)
2232
+ ], 12, vl)) : u("", !0)
2210
2233
  ], 64))
2211
2234
  ], 64))), 128))
2212
2235
  ], 64))), 128))
2213
2236
  ])),
2214
- e.FINAL_CONFIG.line.labels.show && r.mutableConfig.dataLabels.show ? (i(), a("g", pl, [
2215
- (i(!0), a(g, null, N(e.lineSet, (l, c) => (i(), a(g, {
2237
+ e.FINAL_CONFIG.line.labels.show && r.mutableConfig.dataLabels.show ? (a(), i("g", zl, [
2238
+ (a(!0), i(d, null, I(e.lineSet, (l, c) => (a(), i(d, {
2216
2239
  key: `xLabel_line_${c}`
2217
2240
  }, [
2218
- (i(!0), a(g, null, N(l.plots, (n, h) => (i(), a(g, {
2241
+ (a(!0), i(d, null, I(l.plots, (s, h) => (a(), i(d, {
2219
2242
  key: `xLabel_line_${c}_${h}`
2220
2243
  }, [
2221
- n && !Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || r.selectedSerieIndex !== null && r.selectedSerieIndex === h || r.selectedMinimapIndex !== null && r.selectedMinimapIndex === h ? (i(), a("text", {
2244
+ s && !Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || r.selectedSerieIndex !== null && r.selectedSerieIndex === h || r.selectedMinimapIndex !== null && r.selectedMinimapIndex === h ? (a(), i("text", {
2222
2245
  key: 0,
2223
- x: n.x,
2224
- y: n.y + (n.value >= 0 ? e.FINAL_CONFIG.line.labels.offsetY : -e.FINAL_CONFIG.line.labels.offsetY * 3),
2246
+ x: s.x,
2247
+ y: s.y + (s.value >= 0 ? e.FINAL_CONFIG.line.labels.offsetY : -e.FINAL_CONFIG.line.labels.offsetY * 3),
2225
2248
  "text-anchor": "middle",
2226
2249
  "font-size": r.fontSizes.plotLabels,
2227
2250
  fill: e.FINAL_CONFIG.line.labels.color,
2228
2251
  style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2229
- }, T(e.canShowValue(n.value) ? e.applyDataLabel(
2252
+ }, T(e.canShowValue(s.value) ? e.applyDataLabel(
2230
2253
  e.FINAL_CONFIG.line.labels.formatter,
2231
- n.value,
2254
+ s.value,
2232
2255
  e.dataLabel({
2233
2256
  p: l.prefix || e.FINAL_CONFIG.chart.labels.prefix,
2234
- v: n.value,
2257
+ v: s.value,
2235
2258
  s: l.suffix || e.FINAL_CONFIG.chart.labels.suffix,
2236
2259
  r: e.FINAL_CONFIG.line.labels.rounding
2237
2260
  }),
2238
2261
  {
2239
- datapoint: n,
2262
+ datapoint: s,
2240
2263
  serie: l
2241
2264
  }
2242
- ) : ""), 13, Ml)) : u("", !0)
2265
+ ) : ""), 13, Tl)) : u("", !0)
2243
2266
  ], 64))), 128))
2244
2267
  ], 64))), 128))
2245
- ])) : (i(), a("g", zl, [
2246
- (i(!0), a(g, null, N(e.lineSet, (l, c) => (i(), a(g, {
2268
+ ])) : (a(), i("g", Pl, [
2269
+ (a(!0), i(d, null, I(e.lineSet, (l, c) => (a(), i(d, {
2247
2270
  key: `xLabel_line_${c}`
2248
2271
  }, [
2249
- (i(!0), a(g, null, N(l.plots, (n, h) => (i(), a(g, {
2272
+ (a(!0), i(d, null, I(l.plots, (s, h) => (a(), i(d, {
2250
2273
  key: `xLabel_line_${c}_${h}`
2251
2274
  }, [
2252
- e.FINAL_CONFIG.line.tag.followValue ? (i(), a(g, { key: 1 }, [
2253
- [r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(h) && l.useTag ? (i(), a("line", {
2275
+ e.FINAL_CONFIG.line.tag.followValue ? (a(), i(d, { key: 1 }, [
2276
+ [r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(h) && l.useTag ? (a(), i("line", {
2254
2277
  key: 0,
2255
2278
  class: "vue-ui-xy-tag-line",
2256
2279
  x1: e.drawingArea.left,
2257
2280
  x2: e.drawingArea.right,
2258
- y1: n.y,
2259
- y2: n.y,
2281
+ y1: s.y,
2282
+ y2: s.y,
2260
2283
  "stroke-width": 1,
2261
2284
  "stroke-linecap": "round",
2262
2285
  "stroke-dasharray": "2",
2263
2286
  stroke: l.color
2264
- }, null, 8, Hl)) : u("", !0)
2265
- ], 64)) : (i(), a(g, { key: 0 }, [
2266
- n && h === 0 && l.useTag && l.useTag === "start" ? (i(), a("foreignObject", {
2287
+ }, null, 8, Wl)) : u("", !0)
2288
+ ], 64)) : (a(), i(d, { key: 0 }, [
2289
+ s && h === 0 && l.useTag && l.useTag === "start" ? (a(), i("foreignObject", {
2267
2290
  key: 0,
2268
- x: n.x,
2269
- y: n.y - 20,
2291
+ x: s.x,
2292
+ y: s.y - 20,
2270
2293
  height: 24,
2271
2294
  width: "150",
2272
2295
  style: y(`overflow: visible; opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
@@ -2275,20 +2298,20 @@ function pr(t, s, o, d, r, e) {
2275
2298
  style: y(`padding: 3px; background:${e.setOpacity(l.color, 80)};color:${e.adaptColorToBackground(l.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`),
2276
2299
  innerHTML: e.applyDataLabel(
2277
2300
  e.FINAL_CONFIG.line.tag.formatter,
2278
- n.value,
2301
+ s.value,
2279
2302
  l.name,
2280
2303
  {
2281
- datapoint: n,
2304
+ datapoint: s,
2282
2305
  seriesIndex: h,
2283
2306
  serieName: l.name
2284
2307
  }
2285
2308
  )
2286
- }, null, 12, Pl)
2287
- ], 12, Tl)) : u("", !0),
2288
- n && h === l.plots.length - 1 && l.useTag && l.useTag === "end" ? (i(), a("foreignObject", {
2309
+ }, null, 12, Rl)
2310
+ ], 12, Vl)) : u("", !0),
2311
+ s && h === l.plots.length - 1 && l.useTag && l.useTag === "end" ? (a(), i("foreignObject", {
2289
2312
  key: 1,
2290
- x: n.x,
2291
- y: n.y - 20,
2313
+ x: s.x,
2314
+ y: s.y - 20,
2292
2315
  height: 24,
2293
2316
  width: "150",
2294
2317
  style: y(`overflow: visible; opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
@@ -2297,30 +2320,30 @@ function pr(t, s, o, d, r, e) {
2297
2320
  style: y(`padding: 3px; background:${e.setOpacity(l.color, 80)};color:${e.adaptColorToBackground(l.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`),
2298
2321
  innerHTML: e.applyDataLabel(
2299
2322
  e.FINAL_CONFIG.line.tag.formatter,
2300
- n.value,
2323
+ s.value,
2301
2324
  l.name,
2302
2325
  {
2303
- datapoint: n,
2326
+ datapoint: s,
2304
2327
  seriesIndex: h,
2305
2328
  serieName: l.name
2306
2329
  }
2307
2330
  )
2308
- }, null, 12, Rl)
2309
- ], 12, Vl)) : u("", !0)
2331
+ }, null, 12, Dl)
2332
+ ], 12, Hl)) : u("", !0)
2310
2333
  ], 64))
2311
2334
  ], 64))), 128))
2312
2335
  ], 64))), 128))
2313
2336
  ])),
2314
- (i(!0), a(g, null, N(e.lineSet, (l, c) => (i(), a(g, {
2337
+ (a(!0), i(d, null, I(e.lineSet, (l, c) => (a(), i(d, {
2315
2338
  key: `xLabel_line_${c}`
2316
2339
  }, [
2317
- (i(!0), a(g, null, N(l.plots, (n, h) => (i(), a(g, {
2340
+ (a(!0), i(d, null, I(l.plots, (s, h) => (a(), i(d, {
2318
2341
  key: `xLabel_line_${c}_${h}`
2319
2342
  }, [
2320
- n && h === 0 && l.showSerieName && l.showSerieName === "start" ? (i(), a("text", {
2343
+ s && h === 0 && l.showSerieName && l.showSerieName === "start" ? (a(), i("text", {
2321
2344
  key: 0,
2322
- x: n.x - r.fontSizes.plotLabels,
2323
- y: n.y,
2345
+ x: s.x - r.fontSizes.plotLabels,
2346
+ y: s.y,
2324
2347
  "font-size": r.fontSizes.plotLabels,
2325
2348
  "text-anchor": "end",
2326
2349
  fill: l.color,
@@ -2328,16 +2351,16 @@ function pr(t, s, o, d, r, e) {
2328
2351
  content: l.name,
2329
2352
  fontSize: r.fontSizes.plotLabels,
2330
2353
  fill: l.color,
2331
- x: n.x - r.fontSizes.plotLabels,
2332
- y: n.y,
2354
+ x: s.x - r.fontSizes.plotLabels,
2355
+ y: s.y,
2333
2356
  maxWords: 2
2334
2357
  }),
2335
2358
  style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2336
- }, null, 12, Dl)) : u("", !0),
2337
- n && h === l.plots.length - 1 && l.showSerieName && l.showSerieName === "end" ? (i(), a("text", {
2359
+ }, null, 12, Bl)) : u("", !0),
2360
+ s && h === l.plots.length - 1 && l.showSerieName && l.showSerieName === "end" ? (a(), i("text", {
2338
2361
  key: 1,
2339
- x: n.x + r.fontSizes.plotLabels,
2340
- y: n.y,
2362
+ x: s.x + r.fontSizes.plotLabels,
2363
+ y: s.y,
2341
2364
  "font-size": r.fontSizes.plotLabels,
2342
2365
  "text-anchor": "start",
2343
2366
  fill: l.color,
@@ -2345,24 +2368,24 @@ function pr(t, s, o, d, r, e) {
2345
2368
  content: l.name,
2346
2369
  fontSize: r.fontSizes.plotLabels,
2347
2370
  fill: l.color,
2348
- x: n.x + r.fontSizes.plotLabels,
2349
- y: n.y,
2371
+ x: s.x + r.fontSizes.plotLabels,
2372
+ y: s.y,
2350
2373
  maxWords: 2
2351
2374
  }),
2352
2375
  style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2353
- }, null, 12, Bl)) : u("", !0)
2376
+ }, null, 12, El)) : u("", !0)
2354
2377
  ], 64))), 128))
2355
2378
  ], 64))), 128)),
2356
- (i(!0), a(g, null, N(e.plotSet, (l, c) => (i(), a(g, {
2379
+ (a(!0), i(d, null, I(e.plotSet, (l, c) => (a(), i(d, {
2357
2380
  key: `xLabel_plot_${c}`
2358
2381
  }, [
2359
- (i(!0), a(g, null, N(l.plots, (n, h) => (i(), a(g, {
2382
+ (a(!0), i(d, null, I(l.plots, (s, h) => (a(), i(d, {
2360
2383
  key: `xLabel_plot_${c}_${h}`
2361
2384
  }, [
2362
- n && h === 0 && l.showSerieName && l.showSerieName === "start" ? (i(), a("text", {
2385
+ s && h === 0 && l.showSerieName && l.showSerieName === "start" ? (a(), i("text", {
2363
2386
  key: 0,
2364
- x: n.x - r.fontSizes.plotLabels,
2365
- y: n.y,
2387
+ x: s.x - r.fontSizes.plotLabels,
2388
+ y: s.y,
2366
2389
  "font-size": r.fontSizes.plotLabels,
2367
2390
  "text-anchor": "end",
2368
2391
  fill: l.color,
@@ -2370,16 +2393,16 @@ function pr(t, s, o, d, r, e) {
2370
2393
  content: l.name,
2371
2394
  fontSize: r.fontSizes.plotLabels,
2372
2395
  fill: l.color,
2373
- x: n.x - r.fontSizes.plotLabels,
2374
- y: n.y,
2396
+ x: s.x - r.fontSizes.plotLabels,
2397
+ y: s.y,
2375
2398
  maxWords: 2
2376
2399
  }),
2377
2400
  style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2378
- }, null, 12, Wl)) : u("", !0),
2379
- n && h === l.plots.length - 1 && l.showSerieName && l.showSerieName === "end" ? (i(), a("text", {
2401
+ }, null, 12, Yl)) : u("", !0),
2402
+ s && h === l.plots.length - 1 && l.showSerieName && l.showSerieName === "end" ? (a(), i("text", {
2380
2403
  key: 1,
2381
- x: n.x + r.fontSizes.plotLabels,
2382
- y: n.y,
2404
+ x: s.x + r.fontSizes.plotLabels,
2405
+ y: s.y,
2383
2406
  "font-size": r.fontSizes.plotLabels,
2384
2407
  "text-anchor": "start",
2385
2408
  fill: l.color,
@@ -2387,17 +2410,17 @@ function pr(t, s, o, d, r, e) {
2387
2410
  content: l.name,
2388
2411
  fontSize: r.fontSizes.plotLabels,
2389
2412
  fill: l.color,
2390
- x: n.x + r.fontSizes.plotLabels,
2391
- y: n.y,
2413
+ x: s.x + r.fontSizes.plotLabels,
2414
+ y: s.y,
2392
2415
  maxWords: 2
2393
2416
  }),
2394
2417
  style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2395
- }, null, 12, El)) : u("", !0)
2418
+ }, null, 12, ql)) : u("", !0)
2396
2419
  ], 64))), 128))
2397
2420
  ], 64))), 128)),
2398
- r.mutableConfig.useIndividualScale && !r.mutableConfig.isStacked ? (i(), a(g, { key: 11 }, [
2421
+ r.mutableConfig.useIndividualScale && !r.mutableConfig.isStacked ? (a(), i(d, { key: 11 }, [
2399
2422
  f("defs", null, [
2400
- (i(!0), a(g, null, N(e.allScales, (l, c) => (i(), a("linearGradient", {
2423
+ (a(!0), i(d, null, I(e.allScales, (l, c) => (a(), i("linearGradient", {
2401
2424
  id: `individual_scale_gradient_${r.uniqueId}_${c}`,
2402
2425
  x1: "0%",
2403
2426
  x2: "100%",
@@ -2408,44 +2431,44 @@ function pr(t, s, o, d, r, e) {
2408
2431
  offset: "0%",
2409
2432
  "stop-color": e.FINAL_CONFIG.chart.backgroundColor,
2410
2433
  "stop-opacity": "0"
2411
- }, null, 8, ql),
2434
+ }, null, 8, Ul),
2412
2435
  f("stop", {
2413
2436
  offset: "100%",
2414
2437
  "stop-color": l.color,
2415
2438
  "stop-opacity": "0.2"
2416
- }, null, 8, Xl)
2417
- ], 8, Yl))), 256))
2439
+ }, null, 8, Zl)
2440
+ ], 8, Xl))), 256))
2418
2441
  ]),
2419
- (i(!0), a(g, null, N(e.allScales, (l, c) => (i(), a("rect", {
2442
+ (a(!0), i(d, null, I(e.allScales, (l, c) => (a(), i("rect", {
2420
2443
  x: l.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + e.xPadding,
2421
2444
  y: e.drawingArea.top,
2422
2445
  width: e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
2423
2446
  height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
2424
2447
  fill: r.selectedScale === l.groupId ? `url(#individual_scale_gradient_${r.uniqueId}_${c})` : "transparent",
2425
- onMouseenter: (n) => r.selectedScale = l.groupId,
2426
- onMouseleave: s[0] || (s[0] = (n) => r.selectedScale = null)
2427
- }, null, 40, Ul))), 256))
2448
+ onMouseenter: (s) => r.selectedScale = l.groupId,
2449
+ onMouseleave: n[0] || (n[0] = (s) => r.selectedScale = null)
2450
+ }, null, 40, Jl))), 256))
2428
2451
  ], 64)) : u("", !0),
2429
2452
  f("g", null, [
2430
- e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !r.mutableConfig.useIndividualScale ? (i(), a("text", {
2453
+ e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !r.mutableConfig.useIndividualScale ? (a(), i("text", {
2431
2454
  key: 0,
2432
2455
  "font-size": r.fontSizes.yAxis,
2433
2456
  fill: e.FINAL_CONFIG.chart.grid.labels.color,
2434
2457
  transform: `translate(${r.fontSizes.yAxis + e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`,
2435
2458
  "text-anchor": "middle",
2436
2459
  style: { transition: "none" }
2437
- }, T(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, Zl)) : u("", !0),
2438
- e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (i(), a("text", {
2460
+ }, T(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, Kl)) : u("", !0),
2461
+ e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (a(), i("text", {
2439
2462
  key: 1,
2440
2463
  "text-anchor": "middle",
2441
2464
  x: r.width / 2,
2442
2465
  y: e.drawingArea.bottom + r.fontSizes.yAxis + r.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,
2443
2466
  "font-size": r.fontSizes.yAxis,
2444
2467
  fill: e.FINAL_CONFIG.chart.grid.labels.color
2445
- }, T(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, Jl)) : u("", !0)
2468
+ }, T(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, Ql)) : u("", !0)
2446
2469
  ]),
2447
- e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (i(), a("g", Kl, [
2448
- t.$slots["time-label"] ? (i(!0), a(g, { key: 0 }, N(e.timeLabels, (l, c) => G(t.$slots, "time-label", K({
2470
+ e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (a(), i("g", jl, [
2471
+ t.$slots["time-label"] ? (a(!0), i(d, { key: 0 }, I(e.timeLabels, (l, c) => p(t.$slots, "time-label", K({
2449
2472
  key: `time_label_${c}`,
2450
2473
  ref_for: !0
2451
2474
  }, {
@@ -2458,39 +2481,27 @@ function pr(t, s, o, d, r, e) {
2458
2481
  content: l.text,
2459
2482
  textAnchor: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2460
2483
  show: l && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (c === 0 || c === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && r.selectedSerieIndex === c && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && c % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0
2461
- }), void 0, !0)), 128)) : (i(!0), a(g, { key: 1 }, N(e.timeLabels, (l, c) => (i(), a("g", {
2484
+ }), void 0, !0)), 128)) : (a(!0), i(d, { key: 1 }, I(e.timeLabels, (l, c) => (a(), i("g", {
2462
2485
  key: `time_label_${c}`
2463
2486
  }, [
2464
- l && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (c === 0 || c === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && r.selectedSerieIndex === c && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && c % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (i(), a(g, { key: 0 }, [
2465
- e.FINAL_CONFIG.chart.grid.labels.xAxis.showCrosshairs ? (i(), a("line", {
2466
- key: 0,
2467
- y1: e.drawingArea.bottom,
2468
- y2: e.drawingArea.bottom + e.FINAL_CONFIG.chart.grid.labels.xAxis.crosshairSize,
2469
- x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + e.drawingArea.width / e.maxSeries / 2,
2470
- x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + e.drawingArea.width / e.maxSeries / 2,
2471
- stroke: e.FINAL_CONFIG.chart.grid.stroke,
2472
- "stroke-width": 1,
2473
- "stroke-linecap": "round",
2474
- style: { animation: "none !important " }
2475
- }, null, 8, Ql)) : u("", !0),
2476
- f("text", {
2477
- "text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2478
- "font-size": r.fontSizes.xAxis,
2479
- fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
2480
- transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom + r.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,
2481
- style: {
2482
- cursor: "pointer"
2483
- },
2484
- onClick: () => e.selectTimeLabel(l, c)
2485
- }, T(l.text || ""), 9, jl)
2486
- ], 64)) : u("", !0)
2487
+ l && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (c === 0 || c === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && r.selectedSerieIndex === c && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && c % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (a(), i("text", {
2488
+ key: 0,
2489
+ "text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2490
+ "font-size": r.fontSizes.xAxis,
2491
+ fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
2492
+ transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom + r.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,
2493
+ style: {
2494
+ cursor: "pointer"
2495
+ },
2496
+ onClick: () => e.selectTimeLabel(l, c)
2497
+ }, T(l.text || ""), 9, $l)) : u("", !0)
2487
2498
  ]))), 128))
2488
2499
  ])) : u("", !0),
2489
- e.annotationsY.length && !r.mutableConfig.isStacked ? (i(), a("g", $l, [
2490
- (i(!0), a(g, null, N(e.annotationsY, (l) => (i(), a("g", {
2500
+ e.annotationsY.length && !r.mutableConfig.isStacked ? (a(), i("g", er, [
2501
+ (a(!0), i(d, null, I(e.annotationsY, (l) => (a(), i("g", {
2491
2502
  key: l.uid
2492
2503
  }, [
2493
- l.yTop ? (i(), a("line", {
2504
+ l.yTop ? (a(), i("line", {
2494
2505
  key: 0,
2495
2506
  x1: l.x1,
2496
2507
  y1: l.yTop,
@@ -2501,8 +2512,8 @@ function pr(t, s, o, d, r, e) {
2501
2512
  "stroke-dasharray": l.config.line.strokeDasharray,
2502
2513
  "stroke-linecap": "round",
2503
2514
  style: { animation: "none !important" }
2504
- }, null, 8, er)) : u("", !0),
2505
- l.yBottom ? (i(), a("line", {
2515
+ }, null, 8, tr)) : u("", !0),
2516
+ l.yBottom ? (a(), i("line", {
2506
2517
  key: 1,
2507
2518
  x1: l.x1,
2508
2519
  y1: l.yBottom,
@@ -2513,8 +2524,8 @@ function pr(t, s, o, d, r, e) {
2513
2524
  "stroke-dasharray": l.config.line.strokeDasharray,
2514
2525
  "stroke-linecap": "round",
2515
2526
  style: { animation: "none !important" }
2516
- }, null, 8, tr)) : u("", !0),
2517
- l.hasArea ? (i(), a("rect", {
2527
+ }, null, 8, lr)) : u("", !0),
2528
+ l.hasArea ? (a(), i("rect", {
2518
2529
  key: 2,
2519
2530
  y: Math.min(l.yTop, l.yBottom),
2520
2531
  x: l.x1,
@@ -2522,12 +2533,12 @@ function pr(t, s, o, d, r, e) {
2522
2533
  height: l.areaHeight,
2523
2534
  fill: e.setOpacity(l.config.area.fill, l.config.area.opacity),
2524
2535
  style: { animation: "none !important" }
2525
- }, null, 8, lr)) : u("", !0),
2526
- l.config.label.text ? (i(), a("rect", K({
2536
+ }, null, 8, rr)) : u("", !0),
2537
+ l.config.label.text ? (a(), i("rect", K({
2527
2538
  key: 3,
2528
2539
  class: "vue-ui-xy-annotation-label-box"
2529
2540
  }, { ref_for: !0 }, l._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : u("", !0),
2530
- l.config.label.text ? (i(), a("text", {
2541
+ l.config.label.text ? (a(), i("text", {
2531
2542
  key: 4,
2532
2543
  id: l.id,
2533
2544
  class: "vue-ui-xy-annotation-label",
@@ -2536,24 +2547,24 @@ function pr(t, s, o, d, r, e) {
2536
2547
  "font-size": l.config.label.fontSize,
2537
2548
  fill: l.config.label.color,
2538
2549
  "text-anchor": l.config.label.textAnchor
2539
- }, T(l.config.label.text), 9, rr)) : u("", !0)
2550
+ }, T(l.config.label.text), 9, ar)) : u("", !0)
2540
2551
  ]))), 128))
2541
2552
  ])) : u("", !0),
2542
2553
  f("g", null, [
2543
- (i(!0), a(g, null, N(e.maxSeries, (l, c) => (i(), a("rect", {
2554
+ (a(!0), i(d, null, I(e.maxSeries, (l, c) => (a(), i("rect", {
2544
2555
  key: `tooltip_trap_${c}`,
2545
2556
  x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * c,
2546
2557
  y: e.drawingArea.top,
2547
2558
  height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
2548
2559
  width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
2549
2560
  fill: "transparent",
2550
- onMouseenter: (n) => e.toggleTooltipVisibility(!0, c),
2551
- onMouseleave: s[1] || (s[1] = (n) => e.toggleTooltipVisibility(!1)),
2552
- onClick: (n) => e.selectX(c)
2561
+ onMouseenter: (s) => e.toggleTooltipVisibility(!0, c),
2562
+ onMouseleave: n[1] || (n[1] = (s) => e.toggleTooltipVisibility(!1)),
2563
+ onClick: (s) => e.selectX(c)
2553
2564
  }, null, 40, ir))), 128))
2554
2565
  ]),
2555
- e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(r.selectedSerieIndex) || ![null, void 0].includes(r.selectedMinimapIndex)) ? (i(), a("g", ar, [
2556
- (i(), a("foreignObject", {
2566
+ e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(r.selectedSerieIndex) || ![null, void 0].includes(r.selectedMinimapIndex)) ? (a(), i("g", sr, [
2567
+ (a(), i("foreignObject", {
2557
2568
  x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((r.selectedSerieIndex !== null ? r.selectedSerieIndex : 0) || (r.selectedMinimapIndex !== null ? r.selectedMinimapIndex : 0)) - 100 + e.drawingArea.width / e.maxSeries / 2,
2558
2569
  y: e.drawingArea.bottom,
2559
2570
  width: "200",
@@ -2564,30 +2575,30 @@ function pr(t, s, o, d, r, e) {
2564
2575
  class: "vue-ui-xy-time-tag",
2565
2576
  style: y(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${e.FINAL_CONFIG.chart.timeTag.backgroundColor};color:${e.FINAL_CONFIG.chart.timeTag.color};font-size:${e.FINAL_CONFIG.chart.timeTag.fontSize}px`)
2566
2577
  }, T(e.timeLabels[(r.selectedSerieIndex !== null ? r.selectedSerieIndex : 0) || (r.selectedMinimapIndex !== null ? r.selectedMinimapIndex : 0)].text || (r.selectedSerieIndex !== null ? r.selectedSerieIndex : 0) || (r.selectedMinimapIndex !== null ? r.selectedMinimapIndex : 0)), 5)
2567
- ], 8, sr)),
2578
+ ], 8, nr)),
2568
2579
  f("circle", {
2569
2580
  cx: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((r.selectedSerieIndex !== null ? r.selectedSerieIndex : 0) || (r.selectedMinimapIndex !== null ? r.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
2570
2581
  cy: e.drawingArea.bottom,
2571
2582
  r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
2572
2583
  fill: e.FINAL_CONFIG.chart.timeTag.circleMarker.color
2573
- }, null, 8, nr)
2584
+ }, null, 8, cr)
2574
2585
  ])) : u("", !0)
2575
2586
  ])) : u("", !0),
2576
- G(t.$slots, "svg", { svg: e.svg }, void 0, !0)
2587
+ p(t.$slots, "svg", { svg: e.svg }, void 0, !0)
2577
2588
  ], 14, et)) : u("", !0),
2578
- t.$slots.watermark ? (i(), a("div", cr, [
2579
- G(t.$slots, "watermark", Y(q({ isPrinting: r.isPrinting || r.isImaging })), void 0, !0)
2589
+ t.$slots.watermark ? (a(), i("div", or, [
2590
+ p(t.$slots, "watermark", Y(q({ isPrinting: r.isPrinting || r.isImaging })), void 0, !0)
2580
2591
  ])) : u("", !0),
2581
- (i(!0), a(g, null, N(e.lineSet, (l, c) => (i(), a(g, {
2592
+ (a(!0), i(d, null, I(e.lineSet, (l, c) => (a(), i(d, {
2582
2593
  key: `tag_line_${c}`
2583
2594
  }, [
2584
- (i(!0), a(g, null, N(l.plots, (n, h) => (i(), a(g, {
2595
+ (a(!0), i(d, null, I(l.plots, (s, h) => (a(), i(d, {
2585
2596
  key: `tag_line_${c}_${h}`
2586
2597
  }, [
2587
- [r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(h) && l.useTag && l.useTag === "end" && e.FINAL_CONFIG.line.tag.followValue ? (i(), a("div", {
2598
+ [r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(h) && l.useTag && l.useTag === "end" && e.FINAL_CONFIG.line.tag.followValue ? (a(), i("div", {
2588
2599
  key: 0,
2589
2600
  ref_for: !0,
2590
- ref: (L) => e.setTagRef(c, h, L, "right", "line"),
2601
+ ref: (A) => e.setTagRef(c, h, A, "right", "line"),
2591
2602
  class: "vue-ui-xy-tag",
2592
2603
  "data-tag": "right",
2593
2604
  style: y({
@@ -2595,14 +2606,14 @@ function pr(t, s, o, d, r, e) {
2595
2606
  top: e.placeXYTag({
2596
2607
  svgElement: r.svgRef,
2597
2608
  x: e.drawingArea.right + e.FINAL_CONFIG.line.tag.fontSize / 1.5,
2598
- y: n.y,
2609
+ y: s.y,
2599
2610
  element: r.tagRefs[`${c}_${h}_right_line`],
2600
2611
  position: "right"
2601
2612
  }).top + "px",
2602
2613
  left: e.placeXYTag({
2603
2614
  svgElement: r.svgRef,
2604
2615
  x: e.drawingArea.right + e.FINAL_CONFIG.line.tag.fontSize / 1.5,
2605
- y: n.y,
2616
+ y: s.y,
2606
2617
  element: r.tagRefs[`${c}_${h}_right_line`],
2607
2618
  position: "right"
2608
2619
  }).left + "px",
@@ -2615,31 +2626,31 @@ function pr(t, s, o, d, r, e) {
2615
2626
  opacity: 1
2616
2627
  })
2617
2628
  }, [
2618
- (i(), a("svg", or, [
2629
+ (a(), i("svg", hr, [
2619
2630
  f("path", {
2620
2631
  d: "M 0,10 10,0 10,20 Z",
2621
2632
  fill: l.color,
2622
2633
  stroke: "none"
2623
- }, null, 8, hr)
2634
+ }, null, 8, ur)
2624
2635
  ])),
2625
2636
  f("div", {
2626
2637
  class: "vue-ui-xy-tag-content",
2627
2638
  innerHTML: e.applyDataLabel(
2628
2639
  e.FINAL_CONFIG.line.tag.formatter,
2629
- n.value,
2640
+ s.value,
2630
2641
  l.name,
2631
2642
  {
2632
- datapoint: n,
2643
+ datapoint: s,
2633
2644
  seriesIndex: h,
2634
2645
  serieName: l.name
2635
2646
  }
2636
2647
  )
2637
- }, null, 8, ur)
2648
+ }, null, 8, dr)
2638
2649
  ], 4)) : u("", !0),
2639
- [r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(h) && l.useTag && l.useTag === "start" && e.FINAL_CONFIG.line.tag.followValue ? (i(), a("div", {
2650
+ [r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(h) && l.useTag && l.useTag === "start" && e.FINAL_CONFIG.line.tag.followValue ? (a(), i("div", {
2640
2651
  key: 1,
2641
2652
  ref_for: !0,
2642
- ref: (L) => e.setTagRef(c, h, L, "left", "line"),
2653
+ ref: (A) => e.setTagRef(c, h, A, "left", "line"),
2643
2654
  class: "vue-ui-xy-tag",
2644
2655
  "data-tag": "left",
2645
2656
  style: y({
@@ -2647,14 +2658,14 @@ function pr(t, s, o, d, r, e) {
2647
2658
  top: e.placeXYTag({
2648
2659
  svgElement: r.svgRef,
2649
2660
  x: e.drawingArea.left - e.FINAL_CONFIG.line.tag.fontSize / 1.5,
2650
- y: n.y,
2661
+ y: s.y,
2651
2662
  element: r.tagRefs[`${c}_${h}_left_line`],
2652
2663
  position: "left"
2653
2664
  }).top + "px",
2654
2665
  left: e.placeXYTag({
2655
2666
  svgElement: r.svgRef,
2656
2667
  x: e.drawingArea.left - e.FINAL_CONFIG.line.tag.fontSize / 1.5,
2657
- y: n.y,
2668
+ y: s.y,
2658
2669
  element: r.tagRefs[`${c}_${h}_left_line`],
2659
2670
  position: "left"
2660
2671
  }).left + "px",
@@ -2667,39 +2678,39 @@ function pr(t, s, o, d, r, e) {
2667
2678
  opacity: 1
2668
2679
  })
2669
2680
  }, [
2670
- (i(), a("svg", dr, [
2681
+ (a(), i("svg", gr, [
2671
2682
  f("path", {
2672
2683
  d: "M 0,0 10,10 0,20 Z",
2673
2684
  fill: l.color,
2674
2685
  stroke: "none"
2675
- }, null, 8, gr)
2686
+ }, null, 8, fr)
2676
2687
  ])),
2677
2688
  f("div", {
2678
2689
  class: "vue-ui-xy-tag-content",
2679
2690
  innerHTML: e.applyDataLabel(
2680
2691
  e.FINAL_CONFIG.line.tag.formatter,
2681
- n.value,
2692
+ s.value,
2682
2693
  l.name,
2683
2694
  {
2684
- datapoint: n,
2695
+ datapoint: s,
2685
2696
  seriesIndex: h,
2686
2697
  serieName: l.name
2687
2698
  }
2688
2699
  )
2689
- }, null, 8, fr)
2700
+ }, null, 8, Ir)
2690
2701
  ], 4)) : u("", !0)
2691
2702
  ], 64))), 128))
2692
2703
  ], 64))), 128)),
2693
- (i(!0), a(g, null, N(e.plotSet, (l, c) => (i(), a(g, {
2704
+ (a(!0), i(d, null, I(e.plotSet, (l, c) => (a(), i(d, {
2694
2705
  key: `tag_plot_${c}`
2695
2706
  }, [
2696
- (i(!0), a(g, null, N(l.plots, (n, h) => (i(), a(g, {
2707
+ (a(!0), i(d, null, I(l.plots, (s, h) => (a(), i(d, {
2697
2708
  key: `tag_plot_${c}_${h}`
2698
2709
  }, [
2699
- [r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(h) && l.useTag && l.useTag === "end" && e.FINAL_CONFIG.plot.tag.followValue ? (i(), a("div", {
2710
+ [r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(h) && l.useTag && l.useTag === "end" && e.FINAL_CONFIG.plot.tag.followValue ? (a(), i("div", {
2700
2711
  key: 0,
2701
2712
  ref_for: !0,
2702
- ref: (L) => e.setTagRef(c, h, L, "right", "plot"),
2713
+ ref: (A) => e.setTagRef(c, h, A, "right", "plot"),
2703
2714
  class: "vue-ui-xy-tag",
2704
2715
  "data-tag": "right",
2705
2716
  style: y({
@@ -2707,14 +2718,14 @@ function pr(t, s, o, d, r, e) {
2707
2718
  top: e.placeXYTag({
2708
2719
  svgElement: r.svgRef,
2709
2720
  x: e.drawingArea.right + e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
2710
- y: n.y,
2721
+ y: s.y,
2711
2722
  element: r.tagRefs[`${c}_${h}_right_plot`],
2712
2723
  position: "right"
2713
2724
  }).top + "px",
2714
2725
  left: e.placeXYTag({
2715
2726
  svgElement: r.svgRef,
2716
2727
  x: e.drawingArea.right + e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
2717
- y: n.y,
2728
+ y: s.y,
2718
2729
  element: r.tagRefs[`${c}_${h}_right_plot`],
2719
2730
  position: "right"
2720
2731
  }).left + "px",
@@ -2727,31 +2738,31 @@ function pr(t, s, o, d, r, e) {
2727
2738
  opacity: 1
2728
2739
  })
2729
2740
  }, [
2730
- (i(), a("svg", Ir, [
2741
+ (a(), i("svg", Nr, [
2731
2742
  f("path", {
2732
2743
  d: "M 0,10 10,0 10,20 Z",
2733
2744
  fill: l.color,
2734
2745
  stroke: "none"
2735
- }, null, 8, Nr)
2746
+ }, null, 8, xr)
2736
2747
  ])),
2737
2748
  f("div", {
2738
2749
  class: "vue-ui-xy-tag-content",
2739
2750
  innerHTML: e.applyDataLabel(
2740
2751
  e.FINAL_CONFIG.plot.tag.formatter,
2741
- n.value,
2752
+ s.value,
2742
2753
  l.name,
2743
2754
  {
2744
- datapoint: n,
2755
+ datapoint: s,
2745
2756
  seriesIndex: h,
2746
2757
  serieName: l.name
2747
2758
  }
2748
2759
  )
2749
2760
  }, null, 8, mr)
2750
2761
  ], 4)) : u("", !0),
2751
- [r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(h) && l.useTag && l.useTag === "start" && e.FINAL_CONFIG.plot.tag.followValue ? (i(), a("div", {
2762
+ [r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(h) && l.useTag && l.useTag === "start" && e.FINAL_CONFIG.plot.tag.followValue ? (a(), i("div", {
2752
2763
  key: 1,
2753
2764
  ref_for: !0,
2754
- ref: (L) => e.setTagRef(c, h, L, "left", "plot"),
2765
+ ref: (A) => e.setTagRef(c, h, A, "left", "plot"),
2755
2766
  class: "vue-ui-xy-tag",
2756
2767
  "data-tag": "left",
2757
2768
  style: y({
@@ -2759,14 +2770,14 @@ function pr(t, s, o, d, r, e) {
2759
2770
  top: e.placeXYTag({
2760
2771
  svgElement: r.svgRef,
2761
2772
  x: e.drawingArea.left - e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
2762
- y: n.y,
2773
+ y: s.y,
2763
2774
  element: r.tagRefs[`${c}_${h}_left_plot`],
2764
2775
  position: "left"
2765
2776
  }).top + "px",
2766
2777
  left: e.placeXYTag({
2767
2778
  svgElement: r.svgRef,
2768
2779
  x: e.drawingArea.left - e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
2769
- y: n.y,
2780
+ y: s.y,
2770
2781
  element: r.tagRefs[`${c}_${h}_left_plot`],
2771
2782
  position: "left"
2772
2783
  }).left + "px",
@@ -2779,30 +2790,30 @@ function pr(t, s, o, d, r, e) {
2779
2790
  opacity: 1
2780
2791
  })
2781
2792
  }, [
2782
- (i(), a("svg", xr, [
2793
+ (a(), i("svg", br, [
2783
2794
  f("path", {
2784
2795
  d: "M 0,0 10,10 0,20 Z",
2785
2796
  fill: l.color,
2786
2797
  stroke: "none"
2787
- }, null, 8, br)
2798
+ }, null, 8, Fr)
2788
2799
  ])),
2789
2800
  f("div", {
2790
2801
  class: "vue-ui-xy-tag-content",
2791
2802
  innerHTML: e.applyDataLabel(
2792
2803
  e.FINAL_CONFIG.plot.tag.formatter,
2793
- n.value,
2804
+ s.value,
2794
2805
  l.name,
2795
2806
  {
2796
- datapoint: n,
2807
+ datapoint: s,
2797
2808
  seriesIndex: h,
2798
2809
  serieName: l.name
2799
2810
  }
2800
2811
  )
2801
- }, null, 8, Fr)
2812
+ }, null, 8, _r)
2802
2813
  ], 4)) : u("", !0)
2803
2814
  ], 64))), 128))
2804
2815
  ], 64))), 128)),
2805
- e.isDataset ? u("", !0) : (i(), B(S, {
2816
+ e.isDataset ? u("", !0) : (a(), W(w, {
2806
2817
  key: 6,
2807
2818
  config: {
2808
2819
  type: "line",
@@ -2820,7 +2831,7 @@ function pr(t, s, o, d, r, e) {
2820
2831
  }
2821
2832
  }
2822
2833
  }, null, 8, ["config"])),
2823
- e.FINAL_CONFIG.chart.zoom.show && r.maxX > 6 && e.isDataset ? (i(), B(k, {
2834
+ e.FINAL_CONFIG.chart.zoom.show && r.maxX > 6 && e.isDataset ? (a(), W(O, {
2824
2835
  ref: "chartSlicer",
2825
2836
  key: `slicer_${r.slicerStep}`,
2826
2837
  background: e.FINAL_CONFIG.chart.zoom.color,
@@ -2846,9 +2857,9 @@ function pr(t, s, o, d, r, e) {
2846
2857
  valueStart: r.slicer.start,
2847
2858
  valueEnd: r.slicer.end,
2848
2859
  start: r.slicer.start,
2849
- "onUpdate:start": s[2] || (s[2] = (l) => r.slicer.start = l),
2860
+ "onUpdate:start": n[2] || (n[2] = (l) => r.slicer.start = l),
2850
2861
  end: r.slicer.end,
2851
- "onUpdate:end": s[3] || (s[3] = (l) => r.slicer.end = l),
2862
+ "onUpdate:end": n[3] || (n[3] = (l) => r.slicer.end = l),
2852
2863
  refreshStartPoint: e.FINAL_CONFIG.chart.zoom.startIndex !== null ? e.FINAL_CONFIG.chart.zoom.startIndex : 0,
2853
2864
  refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...o.dataset.map((l) => e.largestTriangleThreeBucketsArray({ data: l.series, threshold: e.FINAL_CONFIG.downsample.threshold }).length)),
2854
2865
  enableRangeHandles: e.FINAL_CONFIG.chart.zoom.enableRangeHandles,
@@ -2857,22 +2868,22 @@ function pr(t, s, o, d, r, e) {
2857
2868
  onTrapMouse: e.selectMinimapIndex
2858
2869
  }, {
2859
2870
  "reset-action": V(({ reset: l }) => [
2860
- G(t.$slots, "reset-action", Y(q({ reset: l })), void 0, !0)
2871
+ p(t.$slots, "reset-action", Y(q({ reset: l })), void 0, !0)
2861
2872
  ]),
2862
2873
  _: 3
2863
2874
  }, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "onReset", "onTrapMouse"])) : u("", !0),
2864
- e.FINAL_CONFIG.chart.legend.show ? (i(), a("div", {
2875
+ e.FINAL_CONFIG.chart.legend.show ? (a(), i("div", {
2865
2876
  key: 8,
2866
2877
  ref: "chartLegend",
2867
2878
  class: "vue-ui-xy-legend",
2868
2879
  style: y(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
2869
2880
  }, [
2870
- (i(!0), a(g, null, N(e.absoluteDataset, (l, c) => (i(), a("div", {
2881
+ (a(!0), i(d, null, I(e.absoluteDataset, (l, c) => (a(), i("div", {
2871
2882
  key: `div_legend_item_${c}`,
2872
- onClick: (n) => e.segregate(l),
2883
+ onClick: (s) => e.segregate(l),
2873
2884
  class: E({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": r.segregatedSeries.includes(l.id) })
2874
2885
  }, [
2875
- r.icons[l.type] === "line" ? (i(), a("svg", yr, [
2886
+ r.icons[l.type] === "line" ? (a(), i("svg", Ar, [
2876
2887
  f("rect", {
2877
2888
  x: "0",
2878
2889
  y: "7.5",
@@ -2882,8 +2893,8 @@ function pr(t, s, o, d, r, e) {
2882
2893
  height: "3",
2883
2894
  width: "20",
2884
2895
  fill: l.color
2885
- }, null, 8, Ar),
2886
- U(v, {
2896
+ }, null, 8, Lr),
2897
+ U(k, {
2887
2898
  plot: { x: 10, y: 9 },
2888
2899
  radius: 4,
2889
2900
  color: l.color,
@@ -2891,8 +2902,8 @@ function pr(t, s, o, d, r, e) {
2891
2902
  stroke: e.FINAL_CONFIG.chart.backgroundColor,
2892
2903
  strokeWidth: 0.5
2893
2904
  }, null, 8, ["color", "shape", "stroke"])
2894
- ])) : r.icons[l.type] === "bar" ? (i(), a("svg", Lr, [
2895
- r.icons[l.type] === "bar" && t.$slots.pattern ? (i(), a("rect", {
2905
+ ])) : r.icons[l.type] === "bar" ? (a(), i("svg", Cr, [
2906
+ r.icons[l.type] === "bar" && t.$slots.pattern ? (a(), i("rect", {
2896
2907
  key: 0,
2897
2908
  x: "0",
2898
2909
  y: "0",
@@ -2901,8 +2912,8 @@ function pr(t, s, o, d, r, e) {
2901
2912
  width: "40",
2902
2913
  stroke: "none",
2903
2914
  fill: l.color
2904
- }, null, 8, Cr)) : u("", !0),
2905
- r.icons[l.type] === "bar" ? (i(), a("rect", {
2915
+ }, null, 8, Sr)) : u("", !0),
2916
+ r.icons[l.type] === "bar" ? (a(), i("rect", {
2906
2917
  key: 1,
2907
2918
  x: "0",
2908
2919
  y: "0",
@@ -2911,9 +2922,9 @@ function pr(t, s, o, d, r, e) {
2911
2922
  width: "40",
2912
2923
  stroke: "none",
2913
2924
  fill: t.$slots.pattern ? `url(#pattern_${r.uniqueId}_${l.slotAbsoluteIndex})` : l.color
2914
- }, null, 8, Sr)) : u("", !0)
2915
- ])) : (i(), a("svg", kr, [
2916
- U(v, {
2925
+ }, null, 8, kr)) : u("", !0)
2926
+ ])) : (a(), i("svg", wr, [
2927
+ U(k, {
2917
2928
  plot: { x: 6, y: 6 },
2918
2929
  radius: 5,
2919
2930
  color: l.color,
@@ -2923,14 +2934,14 @@ function pr(t, s, o, d, r, e) {
2923
2934
  f("span", {
2924
2935
  style: y(`color:${e.FINAL_CONFIG.chart.legend.color}`)
2925
2936
  }, T(l.name), 5)
2926
- ], 10, _r))), 128))
2927
- ], 4)) : (i(), a("div", wr, [
2928
- G(t.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
2937
+ ], 10, yr))), 128))
2938
+ ], 4)) : (a(), i("div", Or, [
2939
+ p(t.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
2929
2940
  ], 512)),
2930
- t.$slots.source ? (i(), a("div", Or, [
2931
- G(t.$slots, "source", {}, void 0, !0)
2941
+ t.$slots.source ? (a(), i("div", Gr, [
2942
+ p(t.$slots, "source", {}, void 0, !0)
2932
2943
  ], 512)) : u("", !0),
2933
- U(O, {
2944
+ U(N, {
2934
2945
  show: r.mutableConfig.showTooltip && r.isTooltip,
2935
2946
  backgroundColor: e.FINAL_CONFIG.chart.tooltip.backgroundColor,
2936
2947
  color: e.FINAL_CONFIG.chart.tooltip.color,
@@ -2947,14 +2958,14 @@ function pr(t, s, o, d, r, e) {
2947
2958
  isCustom: e.FINAL_CONFIG.chart.tooltip.customFormat && typeof e.FINAL_CONFIG.chart.tooltip.customFormat == "function"
2948
2959
  }, {
2949
2960
  "tooltip-before": V(() => [
2950
- G(t.$slots, "tooltip-before", Y(q({ ...e.dataTooltipSlot })), void 0, !0)
2961
+ p(t.$slots, "tooltip-before", Y(q({ ...e.dataTooltipSlot })), void 0, !0)
2951
2962
  ]),
2952
2963
  "tooltip-after": V(() => [
2953
- G(t.$slots, "tooltip-after", Y(q({ ...e.dataTooltipSlot })), void 0, !0)
2964
+ p(t.$slots, "tooltip-after", Y(q({ ...e.dataTooltipSlot })), void 0, !0)
2954
2965
  ]),
2955
2966
  _: 3
2956
2967
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
2957
- e.isDataset ? (i(), B(p, {
2968
+ e.isDataset ? (a(), W(M, {
2958
2969
  key: 11,
2959
2970
  hideDetails: "",
2960
2971
  config: {
@@ -2974,15 +2985,15 @@ function pr(t, s, o, d, r, e) {
2974
2985
  f("div", {
2975
2986
  style: y(`${r.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
2976
2987
  }, [
2977
- f("div", Gr, [
2988
+ f("div", vr, [
2978
2989
  Ee(f("input", {
2979
2990
  type: "checkbox",
2980
- "onUpdate:modelValue": s[4] || (s[4] = (l) => r.showSparklineTable = l)
2991
+ "onUpdate:modelValue": n[4] || (n[4] = (l) => r.showSparklineTable = l)
2981
2992
  }, null, 512), [
2982
2993
  [Ye, r.showSparklineTable]
2983
2994
  ]),
2984
2995
  f("div", {
2985
- onClick: s[5] || (s[5] = (l) => r.showSparklineTable = !r.showSparklineTable),
2996
+ onClick: n[5] || (n[5] = (l) => r.showSparklineTable = !r.showSparklineTable),
2986
2997
  style: { cursor: "pointer" }
2987
2998
  }, [
2988
2999
  U(F, {
@@ -2992,21 +3003,21 @@ function pr(t, s, o, d, r, e) {
2992
3003
  }, null, 8, ["stroke"])
2993
3004
  ])
2994
3005
  ]),
2995
- r.showSparklineTable ? (i(), B(C, {
3006
+ r.showSparklineTable ? (a(), W(C, {
2996
3007
  key: `sparkline_${r.segregateStep}`,
2997
3008
  dataset: e.tableSparklineDataset,
2998
3009
  config: e.tableSparklineConfig
2999
- }, null, 8, ["dataset", "config"])) : (i(), B(w, {
3010
+ }, null, 8, ["dataset", "config"])) : (a(), W(G, {
3000
3011
  key: `table_${r.tableStep}`,
3001
3012
  colNames: e.dataTable.colNames,
3002
3013
  head: e.dataTable.head,
3003
3014
  body: e.dataTable.body,
3004
3015
  config: e.dataTable.config,
3005
3016
  title: `${e.FINAL_CONFIG.chart.title.text}${e.FINAL_CONFIG.chart.title.subtitle.text ? ` : ${e.FINAL_CONFIG.chart.title.subtitle.text}` : ""}`,
3006
- onClose: s[6] || (s[6] = (l) => r.mutableConfig.showTable = !1)
3017
+ onClose: n[6] || (n[6] = (l) => r.mutableConfig.showTable = !1)
3007
3018
  }, {
3008
3019
  th: V(({ th: l }) => [
3009
- f("div", { innerHTML: l }, null, 8, vr)
3020
+ f("div", { innerHTML: l }, null, 8, pr)
3010
3021
  ]),
3011
3022
  td: V(({ td: l }) => [
3012
3023
  qe(T(isNaN(Number(l)) ? l : e.dataLabel({
@@ -3024,7 +3035,7 @@ function pr(t, s, o, d, r, e) {
3024
3035
  }, 8, ["config"])) : u("", !0)
3025
3036
  ], 46, je);
3026
3037
  }
3027
- const Br = /* @__PURE__ */ Je(Qe, [["render", pr], ["__scopeId", "data-v-d3870d39"]]);
3038
+ const Br = /* @__PURE__ */ Je(Qe, [["render", Mr], ["__scopeId", "data-v-43789c9c"]]);
3028
3039
  export {
3029
3040
  Br as default
3030
3041
  };