vue-data-ui 2.13.0 → 2.13.2

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-CqhOEqnz.js} +1 -1
  2. package/dist/{BaseDraggableDialog-B3CZVeze.js → BaseDraggableDialog-C34_fLFI.js} +2 -2
  3. package/dist/{BaseIcon-P7wV92Er.js → BaseIcon-CTZeyzAf.js} +1 -1
  4. package/dist/{ColorPicker-C7b6TR_9.js → ColorPicker-6uiOHFNG.js} +2 -2
  5. package/dist/{DataTable-DBkfb6pd.js → DataTable-DbzdhEzX.js} +2 -2
  6. package/dist/{Legend-DcDRW3Xd.js → Legend-_n08whaF.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-DYA_rF1x.js → NonSvgPenAndPaper-CDcIzMfy.js} +3 -3
  8. package/dist/{PackageVersion-C5fpg4GN.js → PackageVersion-DevZv-uJ.js} +1 -1
  9. package/dist/{PenAndPaper-BRkuVFb4.js → PenAndPaper-C2sT3SZe.js} +3 -3
  10. package/dist/{Shape-CnD-h_98.js → Shape-DwoWXD-e.js} +1 -1
  11. package/dist/{Slicer-CxdgZOQ7.js → Slicer-BR4waLWk.js} +2 -2
  12. package/dist/{SparkTooltip-BIAMOmfJ.js → SparkTooltip-2E5_HbSK.js} +1 -1
  13. package/dist/{Title-DoWqzga-.js → Title-Bkcittcw.js} +1 -1
  14. package/dist/{Tooltip-DYCBNM-_.js → Tooltip-yS8Ztd0D.js} +1 -1
  15. package/dist/{UserOptions-B3q-xfQV.js → UserOptions-CiNpxbcc.js} +2 -2
  16. package/dist/{dom-to-png-4VVH9Qna.js → dom-to-png-D2exTd1G.js} +1 -1
  17. package/dist/{img-Dy6IrSzX.js → img-BKt5vQFJ.js} +1 -1
  18. package/dist/{index-BXbyT0Qn.js → index-C35igoc0.js} +1 -1
  19. package/dist/{pdf-ZrUvUcH9.js → pdf-DmMK97Iz.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/{useNestedProp-DVZpeH84.js → useNestedProp-DShrXp8W.js} +1 -1
  22. package/dist/{usePrinter-aKh5-HcK.js → usePrinter-QICuxVCk.js} +2 -2
  23. package/dist/{vue-data-ui-DUHiuRmY.js → vue-data-ui-CjeQCk3E.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-C-KtOFZG.js} +5 -5
  26. package/dist/{vue-ui-accordion-CXsjHe1y.js → vue-ui-accordion-Cukacz7d.js} +3 -3
  27. package/dist/{vue-ui-age-pyramid-B2EpIzV9.js → vue-ui-age-pyramid-CP_H3jhV.js} +5 -5
  28. package/dist/{vue-ui-annotator-Czvbjx_j.js → vue-ui-annotator-CAXGYGyl.js} +2 -2
  29. package/dist/{vue-ui-bullet-ClY1tgTT.js → vue-ui-bullet-CKqp83rn.js} +6 -6
  30. package/dist/{vue-ui-candlestick-BQ1RVdoH.js → vue-ui-candlestick-DKrtC1dN.js} +6 -6
  31. package/dist/{vue-ui-carousel-table-UQjCOJJV.js → vue-ui-carousel-table-D8Ov2-ly.js} +4 -4
  32. package/dist/{vue-ui-chestnut-DmEa8kef.js → vue-ui-chestnut-Dr1dZRYS.js} +4 -4
  33. package/dist/{vue-ui-chord-CEDZ-UcP.js → vue-ui-chord-dEzvs-Qz.js} +7 -7
  34. package/dist/{vue-ui-circle-pack-Bx_mLhCR.js → vue-ui-circle-pack-DGfTgCwZ.js} +5 -5
  35. package/dist/{vue-ui-cursor-D27qwk90.js → vue-ui-cursor-Btrq3OtD.js} +2 -2
  36. package/dist/{vue-ui-dashboard-DKsYxh6J.js → vue-ui-dashboard-CHGkE8o8.js} +62 -62
  37. package/dist/{vue-ui-digits-CdDTbIAN.js → vue-ui-digits-Dv9Xnke_.js} +2 -2
  38. package/dist/{vue-ui-donut-DS-DfHIm.js → vue-ui-donut-COKzmqMi.js} +7 -7
  39. package/dist/{vue-ui-donut-evolution-XMEmv1DK.js → vue-ui-donut-evolution-NyRE7yGH.js} +7 -7
  40. package/dist/{vue-ui-dumbbell-DAm5A4u3.js → vue-ui-dumbbell-CTrj1H8q.js} +6 -6
  41. package/dist/{vue-ui-flow-CTbmqqmV.js → vue-ui-flow-B3izHcUd.js} +6 -6
  42. package/dist/{vue-ui-funnel-CihunDsZ.js → vue-ui-funnel-B6euMVSM.js} +5 -5
  43. package/dist/{vue-ui-galaxy-CJHycmpt.js → vue-ui-galaxy-CK0hqxn2.js} +4 -4
  44. package/dist/{vue-ui-gauge-Bsc9wIKK.js → vue-ui-gauge-C7L51CXf.js} +5 -5
  45. package/dist/{vue-ui-gizmo-D6AciZZe.js → vue-ui-gizmo-xTTxrKCy.js} +3 -3
  46. package/dist/{vue-ui-heatmap-in5WwNRr.js → vue-ui-heatmap-BtgTkO0E.js} +6 -6
  47. package/dist/{vue-ui-history-plot-C9IEmAmm.js → vue-ui-history-plot-BQIhsdfs.js} +6 -6
  48. package/dist/{vue-ui-kpi-fDPWRpRZ.js → vue-ui-kpi-B54Gg1Ed.js} +3 -3
  49. package/dist/{vue-ui-mini-loader-BeJRaP7N.js → vue-ui-mini-loader-BpzQX_VJ.js} +2 -2
  50. package/dist/{vue-ui-molecule-BJbwA0F6.js → vue-ui-molecule-DxRUNFJ2.js} +4 -4
  51. package/dist/{vue-ui-mood-radar--YEOJ6q6.js → vue-ui-mood-radar-1CXbT7H6.js} +6 -6
  52. package/dist/{vue-ui-nested-donuts-BswKH0D6.js → vue-ui-nested-donuts-DAOU1XGB.js} +6 -6
  53. package/dist/{vue-ui-onion-BAw8X4iu.js → vue-ui-onion-DxUfdthn.js} +6 -6
  54. package/dist/{vue-ui-parallel-coordinate-plot-CYkzOe_Q.js → vue-ui-parallel-coordinate-plot-CNS7mv3F.js} +7 -7
  55. package/dist/{vue-ui-quadrant-BupqUnMn.js → vue-ui-quadrant-CGyif3nZ.js} +7 -7
  56. package/dist/{vue-ui-quick-chart-BzpDL6CR.js → vue-ui-quick-chart-DC87BRCi.js} +5 -5
  57. package/dist/{vue-ui-radar-zPrbIZv5.js → vue-ui-radar-DQDLhNCA.js} +6 -6
  58. package/dist/{vue-ui-rating-DqCOz2LB.js → vue-ui-rating-BusNiebo.js} +2 -2
  59. package/dist/{vue-ui-relation-circle-DQp_zboM.js → vue-ui-relation-circle-C_0LwmiP.js} +5 -5
  60. package/dist/{vue-ui-ridgeline-DoJfX7Ii.js → vue-ui-ridgeline--7z-nwxr.js} +7 -7
  61. package/dist/{vue-ui-rings-Bk4QJYsW.js → vue-ui-rings-xaoreTsV.js} +7 -7
  62. package/dist/{vue-ui-scatter-RxF0N8Zj.js → vue-ui-scatter-udX9eLwo.js} +7 -7
  63. package/dist/{vue-ui-skeleton-Fxr752Oi.js → vue-ui-skeleton-C-zsFGbj.js} +3 -3
  64. package/dist/{vue-ui-smiley-CNScIHKI.js → vue-ui-smiley-DsVDC_1E.js} +2 -2
  65. package/dist/{vue-ui-spark-trend-CyMzdoJ9.js → vue-ui-spark-trend-SoS2Cg_e.js} +3 -3
  66. package/dist/{vue-ui-sparkbar-DMTRPWwC.js → vue-ui-sparkbar-C_wOidcV.js} +3 -3
  67. package/dist/{vue-ui-sparkgauge-itAGdTj_.js → vue-ui-sparkgauge-D6elW9Ca.js} +3 -3
  68. package/dist/{vue-ui-sparkhistogram-CZx5cF_r.js → vue-ui-sparkhistogram-SNe86la6.js} +4 -4
  69. package/dist/{vue-ui-sparkline-POYMl6cO.js → vue-ui-sparkline-Rlm1RHLc.js} +3 -3
  70. package/dist/{vue-ui-sparkstackbar-C0EE8xrA.js → vue-ui-sparkstackbar-mXvQpO2C.js} +3 -3
  71. package/dist/{vue-ui-stackbar-B6ytrTFL.js → vue-ui-stackbar-OzFpDrff.js} +8 -8
  72. package/dist/{vue-ui-strip-plot-u39z36tT.js → vue-ui-strip-plot-CTnD72ji.js} +6 -6
  73. package/dist/{vue-ui-table-Cvmrm0sZ.js → vue-ui-table-DcZ9qgLd.js} +3 -3
  74. package/dist/{vue-ui-table-heatmap-BOFRFilm.js → vue-ui-table-heatmap-BnBnasfN.js} +5 -5
  75. package/dist/{vue-ui-table-sparkline-CMhk8rpj.js → vue-ui-table-sparkline-DFiJAD-I.js} +4 -4
  76. package/dist/{vue-ui-thermometer-Cxznchnu.js → vue-ui-thermometer-Ciu3J7ev.js} +5 -5
  77. package/dist/{vue-ui-timer-Du0Cskiy.js → vue-ui-timer-B3rhdrQj.js} +5 -5
  78. package/dist/{vue-ui-tiremarks-BzC40iBw.js → vue-ui-tiremarks-CSAUDShh.js} +5 -5
  79. package/dist/{vue-ui-treemap-D5Nk7usb.js → vue-ui-treemap-BHqBsvs3.js} +7 -7
  80. package/dist/{vue-ui-vertical-bar-BivMp4WH.js → vue-ui-vertical-bar-WVBnF7u_.js} +8 -8
  81. package/dist/{vue-ui-waffle-DI0Ul1Tb.js → vue-ui-waffle-B1Y7kajg.js} +7 -7
  82. package/dist/{vue-ui-wheel-BfHsxhQq.js → vue-ui-wheel-DhSaAm8M.js} +5 -5
  83. package/dist/{vue-ui-word-cloud-ytYbdQKa.js → vue-ui-word-cloud-BS9KB2pX.js} +5 -5
  84. package/dist/{vue-ui-world-CiYvMEKb.js → vue-ui-world-EaD-PssM.js} +5 -5
  85. package/dist/{vue-ui-xy-DxgCkZEV.js → vue-ui-xy-DZdsEJcN.js} +763 -751
  86. package/dist/{vue-ui-xy-canvas-R0tICTKy.js → vue-ui-xy-canvas-7RzNplNY.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-C35igoc0.js";
2
+ import { u as We } from "./useMouse-AicQS8Vf.js";
3
+ import { u as J } from "./useNestedProp-DShrXp8W.js";
4
+ import { defineAsyncComponent as B, resolveComponent as R, createElementBlock as i, openBlock as a, normalizeStyle as A, 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-BR4waLWk.js";
6
+ import Ue from "./Title-Bkcittcw.js";
7
+ import { _ as Ze } from "./Shape-DwoWXD-e.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-DbzdhEzX.js")),
32
+ Tooltip: B(() => import("./Tooltip-yS8Ztd0D.js")),
33
+ UserOptions: B(() => import("./UserOptions-CiNpxbcc.js")),
34
+ BaseIcon: B(() => import("./BaseIcon-CTZeyzAf.js")),
35
+ TableSparkline: B(() => import("./vue-ui-table-sparkline-DFiJAD-I.js")),
36
+ Skeleton: B(() => import("./vue-ui-skeleton-C-zsFGbj.js")),
37
+ Accordion: B(() => import("./vue-ui-accordion-Cukacz7d.js")),
38
+ PackageVersion: B(() => import("./PackageVersion-DevZv-uJ.js")),
39
+ PenAndPaper: B(() => import("./PenAndPaper-C2sT3SZe.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((y) => ![null, void 0].includes(y)).map((y) => (y - 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((y) => ![void 0, null].includes(y))) > 0 ? 0 : Math.min(...t.absoluteValues.filter((y) => ![null, void 0].includes(y)))
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, G = 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, O = this.drawingArea.bottom - F - C * k / G, M = this.drawingArea.bottom - F - C * w / N, l = this.absoluteDataset.filter((y) => y.type === "bar").filter((y) => !this.segregatedSeries.includes(y.id)).length, c = t.series.map((y, z) => {
386
+ const X = this.mutableConfig.useIndividualScale ? (t.absoluteValues[z] + k) / G : this.ratioToMax(y), 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(O),
394
+ individualMax: this.checkNaN(G),
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((y) => S.min >= 0 ? (y - Math.abs(S.min)) / (S.max - Math.abs(S.min)) : (y + Math.abs(S.min)) / (S.max + Math.abs(S.min))), h = t.series.map((y, 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(O),
406
+ individualMax: this.checkNaN(G),
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
+ }), L = x.ticks.map((y) => ({
410
+ y: y >= 0 ? O - C * (y / G) : O + C * Math.abs(y) / G,
411
+ value: y,
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((y) => {
416
+ const z = (y - S.min) / (S.max - S.min);
417
417
  return {
418
- y: A >= 0 ? p - C * z : p + C * z,
419
- value: A,
418
+ y: y >= 0 ? M - C * z : M + C * z,
419
+ value: y,
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 : L, this.scaleGroups[t.scaleLabel].zeroPosition = t.autoScaling ? M : O, this.scaleGroups[t.scaleLabel].individualMax = t.autoScaling ? N : G, 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((y) => y.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 : L,
431
+ individualScale: t.autoScaling ? S : x,
432
+ individualMax: t.autoScaling ? N : G,
433
+ zeroPosition: t.autoScaling ? M : O,
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), G = 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, O = this.drawingArea.bottom - N - F * k / G, 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)), L = 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)), y = 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 ? O - F * P : O + 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 : y, this.scaleGroups[t.scaleLabel].zeroPosition = t.autoScaling ? O : C, this.scaleGroups[t.scaleLabel].individualMax = t.autoScaling ? G : 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 ? O : C : this.zero, D = Math.max(Math.max(t.autoScaling ? O : y.at(-1).y || 0, 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 : y,
492
+ individualScale: t.autoScaling ? x : m,
493
+ individualMax: t.autoScaling ? G : w,
494
+ zeroPosition: t.autoScaling ? O : 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 : L,
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((L) => ![null, void 0].includes(L)).map((L) => (L - 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, G = 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, O = this.drawingArea.bottom - N - F * k / G, M = t.series.map((L, v) => {
526
+ const y = this.mutableConfig.useIndividualScale ? (t.absoluteValues[v] + Math.abs(S)) / w : this.ratioToMax(L);
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 * y),
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,
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, 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((L) => ({
539
+ y: L >= 0 ? C - F * (L / w) : C + F * Math.abs(L) / w,
540
540
  value: L,
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
544
  })), h = x.ticks.map((L) => {
545
- const M = (L - x.min) / (x.max - x.min);
545
+ const v = (L - x.min) / (x.max - x.min);
546
546
  return {
547
- y: L >= 0 ? w - F * M : w + F * M,
547
+ y: L >= 0 ? O - F * v : O + F * v,
548
548
  value: L,
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 ? O : C, this.scaleGroups[t.scaleLabel].individualMax = t.autoScaling ? G : 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((L) => L.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 ? G : w,
562
+ zeroPosition: t.autoScaling ? O : 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,43 @@ 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: G, label: N } } = k, F = w != null && G != null && w !== G, C = w == null ? null : S(w), O = G == null ? null : S(G), 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, L = (C != null && O != null ? Math.min(C, O) : C ?? O) - 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 y = L - c * 0.75 - N.padding.top;
812
816
  return {
817
+ show: ![C, O, y].includes(NaN),
813
818
  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 },
819
+ hasArea: F,
820
+ areaHeight: F ? Math.abs(C - O) : 0,
821
+ yTop: C,
822
+ yBottom: O,
823
+ config: k.yAxis,
824
+ x1: o,
825
+ x2: g,
826
+ _text: { x: s, y: L },
822
827
  _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
828
+ x: v,
829
+ y,
830
+ width: l + N.padding.left + N.padding.right,
831
+ height: c + N.padding.top + N.padding.bottom,
832
+ fill: N.backgroundColor,
833
+ stroke: N.border.stroke,
834
+ rx: N.border.rx,
835
+ ry: N.border.ry,
836
+ strokeWidth: N.border.strokeWidth
832
837
  }
833
838
  };
834
839
  });
@@ -864,8 +869,8 @@ const Ke = Q(), Qe = {
864
869
  createTSpans: Fe,
865
870
  dataLabel: $,
866
871
  downloadCsv: be,
867
- error: xe,
868
- forceValidValue: me,
872
+ error: me,
873
+ forceValidValue: xe,
869
874
  functionReturnsString: Ne,
870
875
  hasDeepProperty: Ie,
871
876
  isFunction: fe,
@@ -876,29 +881,29 @@ const Ke = Q(), Qe = {
876
881
  shiftHue: oe,
877
882
  translateSize: ce,
878
883
  treeShake: ne,
879
- useMouse: Be,
884
+ useMouse: We,
880
885
  useNestedProp: J,
881
886
  createUid: Q,
882
887
  placeXYTag: se,
883
- createSmoothPathWithCuts: ae,
884
- createStraightPathWithCuts: ie,
888
+ createSmoothPathWithCuts: ie,
889
+ createStraightPathWithCuts: ae,
885
890
  createAreaWithCuts: re,
886
891
  createIndividualAreaWithCuts: le,
887
892
  createSmoothAreaSegments: j,
888
893
  createIndividualArea: te,
889
- getTextMeasurer(t, s, o) {
894
+ getTextMeasurer(t, n, o) {
890
895
  if (!this._textMeasurer) {
891
- const d = document.createElement("canvas");
892
- this._textMeasurer = d.getContext("2d");
896
+ const g = document.createElement("canvas");
897
+ this._textMeasurer = g.getContext("2d");
893
898
  }
894
- return this._textMeasurer.font = `${o || "normal"} ${t}px ${s || "sans-serif"}`, this._textMeasurer;
899
+ return this._textMeasurer.font = `${o || "normal"} ${t}px ${n || "sans-serif"}`, this._textMeasurer;
895
900
  },
896
901
  hideTags() {
897
902
  const t = document.querySelectorAll(".vue-ui-xy-tag");
898
- t.length && Array.from(t).forEach((s) => s.style.opacity = "0");
903
+ t.length && Array.from(t).forEach((n) => n.style.opacity = "0");
899
904
  },
900
- setTagRef(t, s, o, d, r) {
901
- o && (this.tagRefs[`${t}_${s}_${d}_${r}`] = o);
905
+ setTagRef(t, n, o, g, r) {
906
+ o && (this.tagRefs[`${t}_${n}_${g}_${r}`] = o);
902
907
  },
903
908
  setUserOptionsVisibility(t = !1) {
904
909
  this.showUserOptionsOnChartHover && (this.userOptionsVisible = t);
@@ -906,16 +911,16 @@ const Ke = Q(), Qe = {
906
911
  toggleAnnotator() {
907
912
  this.isAnnotator = !this.isAnnotator;
908
913
  },
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
914
+ selectTimeLabel(t, n) {
915
+ const o = this.relativeDataset.map((g) => ({
916
+ shape: g.shape || null,
917
+ name: g.name,
918
+ color: g.color,
919
+ type: g.type,
920
+ value: g.absoluteValues.find((r, e) => e === n),
921
+ comments: g.comments || [],
922
+ prefix: g.prefix || this.FINAL_CONFIG.chart.labels.prefix,
923
+ suffix: g.suffix || this.FINAL_CONFIG.chart.labels.suffix
919
924
  }));
920
925
  this.$emit("selectTimeLabel", {
921
926
  datapoint: o,
@@ -924,9 +929,9 @@ const Ke = Q(), Qe = {
924
929
  });
925
930
  },
926
931
  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;
932
+ 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
933
  return {
929
- x: s < this.drawingArea.left ? this.drawingArea.left : s,
934
+ x: n < this.drawingArea.left ? this.drawingArea.left : n,
930
935
  width: o
931
936
  };
932
937
  },
@@ -934,37 +939,37 @@ const Ke = Q(), Qe = {
934
939
  const t = Pe().vue_ui_xy;
935
940
  if (!Object.keys(this.config || {}).length)
936
941
  return t;
937
- const s = this.useNestedProp({
942
+ const n = this.useNestedProp({
938
943
  userConfig: this.config,
939
944
  defaultConfig: t
940
945
  });
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({
946
+ 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
947
  defaultConfig: t.chart.annotations[0],
943
948
  userConfig: o
944
- }))), s.theme ? {
949
+ }))), n.theme ? {
945
950
  ...J({
946
- userConfig: this.themes.vue_ui_xy[s.theme] || this.config,
947
- defaultConfig: s
951
+ userConfig: this.themes.vue_ui_xy[n.theme] || this.config,
952
+ defaultConfig: n
948
953
  }),
949
- customPalette: this.themePalettes[s.theme] || this.palette
950
- } : s;
954
+ customPalette: this.themePalettes[n.theme] || this.palette
955
+ } : n;
951
956
  },
952
957
  prepareChart() {
953
958
  if (this.objectIsEmpty(this.dataset) ? this.error({
954
959
  componentName: "VueUiXy",
955
960
  type: "dataset"
956
- }) : this.dataset.forEach((t, s) => {
961
+ }) : this.dataset.forEach((t, n) => {
957
962
  [null, void 0].includes(t.name) && this.error({
958
963
  componentName: "VueUiXy",
959
964
  type: "datasetSerieAttribute",
960
965
  property: "name (string)",
961
- index: s
966
+ index: n
962
967
  });
963
968
  }), 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.`);
969
+ t.series.forEach((n, o) => {
970
+ this.isSafeValue(n) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
971
+ -----> The serie '${t.name}' contains the value '${n}' at index ${o}.
972
+ '${n}' was converted to null to allow the chart to display.`);
968
973
  });
969
974
  }), 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
975
  dataLabels: {
@@ -975,26 +980,26 @@ const Ke = Q(), Qe = {
975
980
  isStacked: this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,
976
981
  useIndividualScale: this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale
977
982
  }, this.FINAL_CONFIG.responsive) {
978
- const s = this.$refs.chart.parentNode;
983
+ const n = this.$refs.chart.parentNode;
979
984
  this.resizeObserver && (this.resizeObserver.unobserve(this.observedEl), this.resizeObserver.disconnect());
980
- const { height: o, width: d } = s.getBoundingClientRect();
985
+ const { height: o, width: g } = n.getBoundingClientRect();
981
986
  let r = null, e = 0;
982
987
  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();
988
+ let b = null, m = 0;
989
+ this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (b = this.$refs.chartSlicer.$el, m = b.getBoundingClientRect().height);
990
+ let x = null, S = 0;
991
+ this.FINAL_CONFIG.chart.legend.show && (x = this.$refs.chartLegend, S = x.getBoundingClientRect().height);
992
+ let k = 0;
993
+ this.$refs.source && (k = this.$refs.source.getBoundingClientRect().height);
994
+ let w = 0;
995
+ 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();
996
+ const G = new ResizeObserver((N) => {
997
+ for (const F of N)
998
+ 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(() => {
999
+ 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
1000
  });
996
1001
  });
997
- this.resizeObserver = k, this.observedEl = s, k.observe(s);
1002
+ this.resizeObserver = G, this.observedEl = n, G.observe(n);
998
1003
  } else
999
1004
  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
1005
  },
@@ -1055,19 +1060,19 @@ const Ke = Q(), Qe = {
1055
1060
  checkAutoScaleError(t) {
1056
1061
  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
1062
  },
1058
- createArea(t, s) {
1063
+ createArea(t, n) {
1059
1064
  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 = [];
1065
+ const o = { x: t[0].x, y: n }, g = { x: t.at(-1).x, y: n }, r = [];
1061
1066
  return t.forEach((e) => {
1062
1067
  r.push(`${e.x},${e.y} `);
1063
- }), [o.x, o.y, ...r, d.x, d.y].toString();
1068
+ }), [o.x, o.y, ...r, g.x, g.y].toString();
1064
1069
  },
1065
1070
  createStar: Z,
1066
1071
  createPolygonPath: H,
1067
- fillArray(t, s) {
1072
+ fillArray(t, n) {
1068
1073
  let o = Array(t).fill(0);
1069
- for (let d = 0; d < s.length && d < t; d += 1)
1070
- o[d] = s[d];
1074
+ for (let g = 0; g < n.length && g < t; g += 1)
1075
+ o[g] = n[g];
1071
1076
  return o;
1072
1077
  },
1073
1078
  async setupSlicer() {
@@ -1080,12 +1085,12 @@ const Ke = Q(), Qe = {
1080
1085
  this.setupSlicer();
1081
1086
  },
1082
1087
  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;
1088
+ const n = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length));
1089
+ 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
1090
  },
1086
1091
  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);
1092
+ 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;
1093
+ 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
1094
  },
1090
1095
  calcIndividualHeight(t) {
1091
1096
  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 +1110,11 @@ const Ke = Q(), Qe = {
1105
1110
  canShowValue(t) {
1106
1111
  return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(t);
1107
1112
  },
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);
1113
+ findClosestValue(t, n) {
1114
+ let o = n[0], g = Math.abs(t - n[0]);
1115
+ for (let r = 1; r < n.length; r += 1) {
1116
+ const e = Math.abs(t - n[r]);
1117
+ e < g && n[r] < t && (o = n[r], g = e);
1113
1118
  }
1114
1119
  return o;
1115
1120
  },
@@ -1120,11 +1125,11 @@ const Ke = Q(), Qe = {
1120
1125
  this.$emit(
1121
1126
  "selectX",
1122
1127
  {
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
1128
+ dataset: this.relativeDataset.map((n) => ({
1129
+ name: n.name,
1130
+ value: [null, void 0, NaN].includes(n.absoluteValues[t]) ? null : n.absoluteValues[t],
1131
+ color: n.color,
1132
+ type: n.type
1128
1133
  })),
1129
1134
  index: t,
1130
1135
  indexLabel: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[t]
@@ -1141,20 +1146,20 @@ const Ke = Q(), Qe = {
1141
1146
  },
1142
1147
  segregate(t) {
1143
1148
  if (this.segregatedSeries.includes(t.id))
1144
- this.segregatedSeries = this.segregatedSeries.filter((s) => s !== t.id);
1149
+ this.segregatedSeries = this.segregatedSeries.filter((n) => n !== t.id);
1145
1150
  else {
1146
1151
  if (this.segregatedSeries.length + 1 === this.safeDataset.length) return;
1147
1152
  this.segregatedSeries.push(t.id);
1148
1153
  }
1149
- this.$emit("selectLegend", this.relativeDataset.map((s) => ({
1150
- name: s.name,
1151
- values: s.absoluteValues,
1152
- color: s.color,
1153
- type: s.type
1154
+ this.$emit("selectLegend", this.relativeDataset.map((n) => ({
1155
+ name: n.name,
1156
+ values: n.absoluteValues,
1157
+ color: n.color,
1158
+ type: n.type
1154
1159
  }))), this.segregateStep += 1;
1155
1160
  },
1156
- toggleTooltipVisibility(t, s = null) {
1157
- this.isTooltip = t, t ? this.selectedSerieIndex = s : this.selectedSerieIndex = null;
1161
+ toggleTooltipVisibility(t, n = null) {
1162
+ this.isTooltip = t, t ? this.selectedSerieIndex = n : this.selectedSerieIndex = null;
1158
1163
  },
1159
1164
  toggleFullscreen(t) {
1160
1165
  this.isFullscreen = t, this.step += 1;
@@ -1165,7 +1170,7 @@ const Ke = Q(), Qe = {
1165
1170
  async generatePdf() {
1166
1171
  this.showSpinnerPdf(), clearTimeout(this.__to__), this.isPrinting = !0, this.__to__ = setTimeout(async () => {
1167
1172
  try {
1168
- const { default: t } = await import("./pdf-ZrUvUcH9.js");
1173
+ const { default: t } = await import("./pdf-DmMK97Iz.js");
1169
1174
  await t({
1170
1175
  domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
1171
1176
  fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
@@ -1179,7 +1184,7 @@ const Ke = Q(), Qe = {
1179
1184
  }, 100);
1180
1185
  },
1181
1186
  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);
1187
+ 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
1188
  t ? t(e) : this.downloadCsv({ csvContent: e, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
1184
1189
  },
1185
1190
  showSpinnerImage() {
@@ -1188,7 +1193,7 @@ const Ke = Q(), Qe = {
1188
1193
  async generateImage() {
1189
1194
  this.showSpinnerImage(), clearTimeout(this.__to__), this.isImaging = !0, this.__to__ = setTimeout(async () => {
1190
1195
  try {
1191
- const { default: t } = await import("./img-Dy6IrSzX.js");
1196
+ const { default: t } = await import("./img-BKt5vQFJ.js");
1192
1197
  await t({
1193
1198
  domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
1194
1199
  fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
@@ -1208,69 +1213,69 @@ const Ke = Q(), Qe = {
1208
1213
  ref: "noTitle",
1209
1214
  class: "vue-data-ui-no-title-space",
1210
1215
  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 = {
1216
+ }, 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
1217
  key: 14,
1213
1218
  style: { "pointer-events": "none" }
1214
- }, sr = ["x", "y"], nr = ["cx", "cy", "r", "fill"], cr = {
1219
+ }, nr = ["x", "y"], cr = ["cx", "cy", "r", "fill"], or = {
1215
1220
  key: 5,
1216
1221
  class: "vue-data-ui-watermark"
1217
- }, or = {
1222
+ }, hr = {
1218
1223
  class: "vue-ui-xy-tag-arrow",
1219
1224
  height: "20",
1220
1225
  viewBox: "0 0 10 20",
1221
1226
  style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
1222
- }, hr = ["fill"], ur = ["innerHTML"], dr = {
1227
+ }, ur = ["fill"], dr = ["innerHTML"], gr = {
1223
1228
  class: "vue-ui-xy-tag-arrow",
1224
1229
  height: "100%",
1225
1230
  viewBox: "0 0 10 20",
1226
1231
  style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
1227
- }, gr = ["fill"], fr = ["innerHTML"], Ir = {
1232
+ }, fr = ["fill"], Ir = ["innerHTML"], Nr = {
1228
1233
  class: "vue-ui-xy-tag-arrow",
1229
1234
  height: "20",
1230
1235
  viewBox: "0 0 10 20",
1231
1236
  style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
1232
- }, Nr = ["fill"], mr = ["innerHTML"], xr = {
1237
+ }, xr = ["fill"], mr = ["innerHTML"], br = {
1233
1238
  class: "vue-ui-xy-tag-arrow",
1234
1239
  height: "100%",
1235
1240
  viewBox: "0 0 10 20",
1236
1241
  style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
1237
- }, br = ["fill"], Fr = ["innerHTML"], _r = ["onClick"], yr = {
1242
+ }, Fr = ["fill"], _r = ["innerHTML"], yr = ["onClick"], Ar = {
1238
1243
  key: 0,
1239
1244
  viewBox: "0 0 20 12",
1240
1245
  height: "14",
1241
1246
  width: "20"
1242
- }, Ar = ["stroke", "fill"], Lr = {
1247
+ }, Lr = ["stroke", "fill"], Cr = {
1243
1248
  key: 1,
1244
1249
  viewBox: "0 0 40 40",
1245
1250
  height: "14",
1246
1251
  width: "14"
1247
- }, Cr = ["fill"], Sr = ["fill"], kr = {
1252
+ }, Sr = ["fill"], kr = ["fill"], wr = {
1248
1253
  key: 2,
1249
1254
  viewBox: "0 0 12 12",
1250
1255
  height: "14",
1251
1256
  width: "14"
1252
- }, wr = {
1257
+ }, Or = {
1253
1258
  key: 9,
1254
1259
  ref: "chartLegend"
1255
- }, Or = {
1260
+ }, Gr = {
1256
1261
  key: 10,
1257
1262
  ref: "source",
1258
1263
  dir: "auto"
1259
- }, Gr = {
1264
+ }, vr = {
1260
1265
  style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
1261
1266
  "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", {
1267
+ }, pr = ["innerHTML"];
1268
+ function Mr(t, n, o, g, r, e) {
1269
+ const b = R("PenAndPaper"), m = R("Title"), x = R("UserOptions"), S = R("PackageVersion"), k = R("Shape"), w = R("Skeleton"), G = R("Slicer"), N = R("Tooltip"), F = R("BaseIcon"), C = R("TableSparkline"), O = R("DataTable"), M = R("Accordion");
1270
+ return a(), i("div", {
1266
1271
  id: `vue-ui-xy_${r.uniqueId}`,
1267
1272
  class: E(`vue-ui-xy ${r.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
1268
1273
  ref: "chart",
1269
- 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
+ style: A(`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%" : ""}`),
1275
+ onMouseenter: n[7] || (n[7] = () => e.setUserOptionsVisibility(!0)),
1276
+ onMouseleave: n[8] || (n[8] = () => e.setUserOptionsVisibility(!1))
1272
1277
  }, [
1273
- e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (i(), B(m, {
1278
+ e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (a(), W(b, {
1274
1279
  key: 0,
1275
1280
  svgRef: r.svgRef,
1276
1281
  backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
@@ -1278,14 +1283,14 @@ function pr(t, s, o, d, r, e) {
1278
1283
  active: r.isAnnotator,
1279
1284
  onClose: e.toggleAnnotator
1280
1285
  }, 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", {
1286
+ e.hasOptionsNoTitle ? (a(), i("div", $e, null, 512)) : u("", !0),
1287
+ e.FINAL_CONFIG.chart.title.show ? (a(), i("div", {
1283
1288
  key: 2,
1284
1289
  ref: "chartTitle",
1285
1290
  class: "vue-ui-xy-title",
1286
- style: y(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
1291
+ style: A(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
1287
1292
  }, [
1288
- (i(), B(b, {
1293
+ (a(), W(m, {
1289
1294
  key: `title_${r.titleStep}`,
1290
1295
  config: {
1291
1296
  title: {
@@ -1299,7 +1304,7 @@ function pr(t, s, o, d, r, e) {
1299
1304
  }
1300
1305
  }, null, 8, ["config"]))
1301
1306
  ], 4)) : u("", !0),
1302
- e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (r.keepUserOptionState || r.userOptionsVisible) ? (i(), B(x, {
1307
+ e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (r.keepUserOptionState || r.userOptionsVisible) ? (a(), W(x, {
1303
1308
  ref: "defails",
1304
1309
  key: `user_options_${r.step}`,
1305
1310
  backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
@@ -1333,95 +1338,95 @@ function pr(t, s, o, d, r, e) {
1333
1338
  onToggleStack: e.toggleStack,
1334
1339
  onToggleTooltip: e.toggleTooltip,
1335
1340
  onToggleAnnotator: e.toggleAnnotator,
1336
- style: y({
1341
+ style: A({
1337
1342
  visibility: r.keepUserOptionState ? r.userOptionsVisible ? "visible" : "hidden" : "visible"
1338
1343
  })
1339
- }, We({ _: 2 }, [
1344
+ }, Be({ _: 2 }, [
1340
1345
  t.$slots.menuIcon ? {
1341
1346
  name: "menuIcon",
1342
1347
  fn: V(({ isOpen: l, color: c }) => [
1343
- G(t.$slots, "menuIcon", Y(q({ isOpen: l, color: c })), void 0, !0)
1348
+ p(t.$slots, "menuIcon", Y(q({ isOpen: l, color: c })), void 0, !0)
1344
1349
  ]),
1345
1350
  key: "0"
1346
1351
  } : void 0,
1347
1352
  t.$slots.optionTooltip ? {
1348
1353
  name: "optionTooltip",
1349
1354
  fn: V(() => [
1350
- G(t.$slots, "optionTooltip", {}, void 0, !0)
1355
+ p(t.$slots, "optionTooltip", {}, void 0, !0)
1351
1356
  ]),
1352
1357
  key: "1"
1353
1358
  } : void 0,
1354
1359
  t.$slots.optionPdf ? {
1355
1360
  name: "optionPdf",
1356
1361
  fn: V(() => [
1357
- G(t.$slots, "optionPdf", {}, void 0, !0)
1362
+ p(t.$slots, "optionPdf", {}, void 0, !0)
1358
1363
  ]),
1359
1364
  key: "2"
1360
1365
  } : void 0,
1361
1366
  t.$slots.optionCsv ? {
1362
1367
  name: "optionCsv",
1363
1368
  fn: V(() => [
1364
- G(t.$slots, "optionCsv", {}, void 0, !0)
1369
+ p(t.$slots, "optionCsv", {}, void 0, !0)
1365
1370
  ]),
1366
1371
  key: "3"
1367
1372
  } : void 0,
1368
1373
  t.$slots.optionImg ? {
1369
1374
  name: "optionImg",
1370
1375
  fn: V(() => [
1371
- G(t.$slots, "optionImg", {}, void 0, !0)
1376
+ p(t.$slots, "optionImg", {}, void 0, !0)
1372
1377
  ]),
1373
1378
  key: "4"
1374
1379
  } : void 0,
1375
1380
  t.$slots.optionTable ? {
1376
1381
  name: "optionTable",
1377
1382
  fn: V(() => [
1378
- G(t.$slots, "optionTable", {}, void 0, !0)
1383
+ p(t.$slots, "optionTable", {}, void 0, !0)
1379
1384
  ]),
1380
1385
  key: "5"
1381
1386
  } : void 0,
1382
1387
  t.$slots.optionLabels ? {
1383
1388
  name: "optionLabels",
1384
1389
  fn: V(() => [
1385
- G(t.$slots, "optionLabels", {}, void 0, !0)
1390
+ p(t.$slots, "optionLabels", {}, void 0, !0)
1386
1391
  ]),
1387
1392
  key: "6"
1388
1393
  } : void 0,
1389
1394
  t.$slots.optionStack ? {
1390
1395
  name: "optionStack",
1391
1396
  fn: V(() => [
1392
- G(t.$slots, "optionStack", {}, void 0, !0)
1397
+ p(t.$slots, "optionStack", {}, void 0, !0)
1393
1398
  ]),
1394
1399
  key: "7"
1395
1400
  } : void 0,
1396
1401
  t.$slots.optionFullscreen ? {
1397
1402
  name: "optionFullscreen",
1398
1403
  fn: V(({ toggleFullscreen: l, isFullscreen: c }) => [
1399
- G(t.$slots, "optionFullscreen", Y(q({ toggleFullscreen: l, isFullscreen: c })), void 0, !0)
1404
+ p(t.$slots, "optionFullscreen", Y(q({ toggleFullscreen: l, isFullscreen: c })), void 0, !0)
1400
1405
  ]),
1401
1406
  key: "8"
1402
1407
  } : void 0,
1403
1408
  t.$slots.optionAnnotator ? {
1404
1409
  name: "optionAnnotator",
1405
1410
  fn: V(({ toggleAnnotator: l, isAnnotator: c }) => [
1406
- G(t.$slots, "optionAnnotator", Y(q({ toggleAnnotator: l, isAnnotator: c })), void 0, !0)
1411
+ p(t.$slots, "optionAnnotator", Y(q({ toggleAnnotator: l, isAnnotator: c })), void 0, !0)
1407
1412
  ]),
1408
1413
  key: "9"
1409
1414
  } : void 0
1410
1415
  ]), 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", {
1416
+ e.isDataset ? (a(), i("svg", {
1412
1417
  key: 4,
1413
1418
  ref: "svgRef",
1414
1419
  xmlns: "http://www.w3.org/2000/svg",
1415
1420
  class: E([{ "vue-data-ui-fullscreen--on": r.isFullscreen, "vue-data-ui-fulscreen--off": !r.isFullscreen }, "vue-ui-xy-svg"]),
1416
1421
  width: "100%",
1417
1422
  viewBox: r.viewBox,
1418
- style: y(`background: transparent; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`),
1423
+ style: A(`background: transparent; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`),
1419
1424
  "aria-label": e.chartAriaLabel,
1420
1425
  role: "img",
1421
1426
  "aria-live": "polite"
1422
1427
  }, [
1423
- U(I),
1424
- t.$slots["chart-background"] ? (i(), a("foreignObject", {
1428
+ U(S),
1429
+ t.$slots["chart-background"] ? (a(), i("foreignObject", {
1425
1430
  key: 0,
1426
1431
  x: e.drawingArea.left + e.xPadding < 0 ? 0 : e.drawingArea.left + e.xPadding,
1427
1432
  y: e.drawingArea.top,
@@ -1431,11 +1436,11 @@ function pr(t, s, o, d, r, e) {
1431
1436
  pointerEvents: "none"
1432
1437
  }
1433
1438
  }, [
1434
- G(t.$slots, "chart-background", {}, void 0, !0)
1439
+ p(t.$slots, "chart-background", {}, void 0, !0)
1435
1440
  ], 8, tt)) : u("", !0),
1436
- e.maxSeries > 0 ? (i(), a("g", lt, [
1441
+ e.maxSeries > 0 ? (a(), i("g", lt, [
1437
1442
  f("g", rt, [
1438
- e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (i(), a("line", {
1443
+ e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (a(), i("line", {
1439
1444
  key: 0,
1440
1445
  stroke: e.FINAL_CONFIG.chart.grid.stroke,
1441
1446
  "stroke-width": "1",
@@ -1445,9 +1450,9 @@ function pr(t, s, o, d, r, e) {
1445
1450
  y2: e.forceValidValue(e.drawingArea.bottom),
1446
1451
  "stroke-linecap": "round",
1447
1452
  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", {
1453
+ }, null, 8, at)) : u("", !0),
1454
+ r.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(!0), i(d, { key: 2 }, I(e.allScales, (l) => (a(), i("g", null, [
1455
+ l.id === r.selectedScale && l.yLabels.length ? (a(!0), i(d, { key: 0 }, I(l.yLabels, (c) => (a(), i("line", {
1451
1456
  x1: e.drawingArea.left + e.xPadding,
1452
1457
  x2: e.drawingArea.right - e.xPadding,
1453
1458
  y1: e.forceValidValue(c.y),
@@ -1456,7 +1461,7 @@ function pr(t, s, o, d, r, e) {
1456
1461
  "stroke-width": 0.5,
1457
1462
  "stroke-linecap": "round",
1458
1463
  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", {
1464
+ }, null, 8, ct))), 256)) : l.yLabels.length ? (a(!0), i(d, { key: 1 }, I(l.yLabels, (c) => (a(), i("line", {
1460
1465
  x1: e.drawingArea.left + e.xPadding,
1461
1466
  x2: e.drawingArea.right - e.xPadding,
1462
1467
  y1: e.forceValidValue(c.y),
@@ -1466,8 +1471,8 @@ function pr(t, s, o, d, r, e) {
1466
1471
  "stroke-linecap": "round",
1467
1472
  style: { animation: "none !important" }
1468
1473
  }, 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", {
1474
+ ]))), 256)) : u("", !0) : (a(), i(d, { key: 1 }, [
1475
+ e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (a(), i("line", {
1471
1476
  key: 0,
1472
1477
  stroke: e.FINAL_CONFIG.chart.grid.stroke,
1473
1478
  "stroke-width": "1",
@@ -1477,9 +1482,9 @@ function pr(t, s, o, d, r, e) {
1477
1482
  y2: e.forceValidValue(e.drawingArea.bottom),
1478
1483
  "stroke-linecap": "round",
1479
1484
  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", {
1485
+ }, null, 8, it)) : u("", !0),
1486
+ e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(), i("g", st, [
1487
+ (a(!0), i(d, null, I(e.yLabels, (l) => (a(), i("line", {
1483
1488
  x1: e.drawingArea.left + e.xPadding,
1484
1489
  x2: e.drawingArea.right - e.xPadding,
1485
1490
  y1: e.forceValidValue(l.y),
@@ -1491,8 +1496,8 @@ function pr(t, s, o, d, r, e) {
1491
1496
  }, null, 8, nt))), 256))
1492
1497
  ])) : u("", !0)
1493
1498
  ], 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", {
1499
+ e.FINAL_CONFIG.chart.grid.showVerticalLines ? (a(), i("g", ht, [
1500
+ (a(!0), i(d, null, I(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (l, c) => (a(), i("line", {
1496
1501
  key: `grid_vertical_line_${c}`,
1497
1502
  x1: e.drawingArea.width / e.maxSeries * c + e.drawingArea.left + e.xPadding,
1498
1503
  x2: e.drawingArea.width / e.maxSeries * c + e.drawingArea.left + e.xPadding,
@@ -1502,9 +1507,28 @@ function pr(t, s, o, d, r, e) {
1502
1507
  stroke: e.FINAL_CONFIG.chart.grid.stroke,
1503
1508
  style: { animation: "none !important" }
1504
1509
  }, null, 8, ut))), 128))
1510
+ ])) : u("", !0),
1511
+ e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (a(), i("g", dt, [
1512
+ (a(!0), i(d, null, I(e.timeLabels, (l, c) => (a(), i("g", {
1513
+ key: `time_label_${c}`
1514
+ }, [
1515
+ 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 }, [
1516
+ e.FINAL_CONFIG.chart.grid.labels.xAxis.showCrosshairs ? (a(), i("line", {
1517
+ key: 0,
1518
+ y1: e.drawingArea.bottom,
1519
+ y2: e.drawingArea.bottom + e.FINAL_CONFIG.chart.grid.labels.xAxis.crosshairSize,
1520
+ x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + e.drawingArea.width / e.maxSeries / 2,
1521
+ x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + e.drawingArea.width / e.maxSeries / 2,
1522
+ stroke: e.FINAL_CONFIG.chart.grid.stroke,
1523
+ "stroke-width": 1,
1524
+ "stroke-linecap": "round",
1525
+ style: { animation: "none !important " }
1526
+ }, null, 8, gt)) : u("", !0)
1527
+ ], 64)) : u("", !0)
1528
+ ]))), 128))
1505
1529
  ])) : u("", !0)
1506
1530
  ]),
1507
- (i(!0), a(g, null, N(e.barSet, (l, c) => (i(), a("defs", {
1531
+ (a(!0), i(d, null, I(e.barSet, (l, c) => (a(), i("defs", {
1508
1532
  key: `def_rect_${c}`
1509
1533
  }, [
1510
1534
  f("linearGradient", {
@@ -1515,16 +1539,16 @@ function pr(t, s, o, d, r, e) {
1515
1539
  f("stop", {
1516
1540
  offset: "0%",
1517
1541
  "stop-color": l.color
1518
- }, null, 8, gt),
1542
+ }, null, 8, It),
1519
1543
  f("stop", {
1520
1544
  offset: "62%",
1521
1545
  "stop-color": `${e.shiftHue(l.color, 0.02)}`
1522
- }, null, 8, ft),
1546
+ }, null, 8, Nt),
1523
1547
  f("stop", {
1524
1548
  offset: "100%",
1525
1549
  "stop-color": `${e.shiftHue(l.color, 0.05)}`
1526
- }, null, 8, It)
1527
- ], 8, dt),
1550
+ }, null, 8, xt)
1551
+ ], 8, ft),
1528
1552
  f("linearGradient", {
1529
1553
  id: `rectGradient_neg_${c}_${r.uniqueId}`,
1530
1554
  x2: "0%",
@@ -1533,18 +1557,18 @@ function pr(t, s, o, d, r, e) {
1533
1557
  f("stop", {
1534
1558
  offset: "0%",
1535
1559
  "stop-color": `${e.shiftHue(l.color, 0.05)}`
1536
- }, null, 8, mt),
1560
+ }, null, 8, bt),
1537
1561
  f("stop", {
1538
1562
  offset: "38%",
1539
1563
  "stop-color": `${e.shiftHue(l.color, 0.02)}`
1540
- }, null, 8, xt),
1564
+ }, null, 8, Ft),
1541
1565
  f("stop", {
1542
1566
  offset: "100%",
1543
1567
  "stop-color": l.color
1544
- }, null, 8, bt)
1545
- ], 8, Nt)
1568
+ }, null, 8, _t)
1569
+ ], 8, mt)
1546
1570
  ]))), 128)),
1547
- (i(!0), a(g, null, N(e.plotSet, (l, c) => (i(), a("defs", {
1571
+ (a(!0), i(d, null, I(e.plotSet, (l, c) => (a(), i("defs", {
1548
1572
  key: `def_plot_${c}`
1549
1573
  }, [
1550
1574
  f("radialGradient", {
@@ -1558,14 +1582,14 @@ function pr(t, s, o, d, r, e) {
1558
1582
  f("stop", {
1559
1583
  offset: "0%",
1560
1584
  "stop-color": `${e.shiftHue(l.color, 0.05)}`
1561
- }, null, 8, _t),
1585
+ }, null, 8, At),
1562
1586
  f("stop", {
1563
1587
  offset: "100%",
1564
1588
  "stop-color": l.color
1565
- }, null, 8, yt)
1566
- ], 8, Ft)
1589
+ }, null, 8, Lt)
1590
+ ], 8, yt)
1567
1591
  ]))), 128)),
1568
- (i(!0), a(g, null, N(e.lineSet, (l, c) => (i(), a("defs", {
1592
+ (a(!0), i(d, null, I(e.lineSet, (l, c) => (a(), i("defs", {
1569
1593
  key: `def_line_${c}`
1570
1594
  }, [
1571
1595
  f("radialGradient", {
@@ -1579,12 +1603,12 @@ function pr(t, s, o, d, r, e) {
1579
1603
  f("stop", {
1580
1604
  offset: "0%",
1581
1605
  "stop-color": `${e.shiftHue(l.color, 0.05)}`
1582
- }, null, 8, Lt),
1606
+ }, null, 8, St),
1583
1607
  f("stop", {
1584
1608
  offset: "100%",
1585
1609
  "stop-color": l.color
1586
- }, null, 8, Ct)
1587
- ], 8, At),
1610
+ }, null, 8, kt)
1611
+ ], 8, Ct),
1588
1612
  f("linearGradient", {
1589
1613
  id: `areaGradient_${c}_${r.uniqueId}`,
1590
1614
  x1: "0%",
@@ -1595,31 +1619,31 @@ function pr(t, s, o, d, r, e) {
1595
1619
  f("stop", {
1596
1620
  offset: "0%",
1597
1621
  "stop-color": `${e.setOpacity(e.shiftHue(l.color, 0.03), e.FINAL_CONFIG.line.area.opacity)}`
1598
- }, null, 8, kt),
1622
+ }, null, 8, Ot),
1599
1623
  f("stop", {
1600
1624
  offset: "100%",
1601
1625
  "stop-color": `${e.setOpacity(l.color, e.FINAL_CONFIG.line.area.opacity)}`
1602
- }, null, 8, wt)
1603
- ], 8, St)
1626
+ }, null, 8, Gt)
1627
+ ], 8, wt)
1604
1628
  ]))), 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, [
1629
+ (a(!0), i(d, null, I(e.highlightAreas, (l) => (a(), i("g", null, [
1630
+ l.show ? (a(!0), i(d, { key: 0 }, I(l.span, (c, s) => (a(), i("g", null, [
1607
1631
  f("rect", {
1608
- style: y({
1632
+ style: A({
1609
1633
  transition: "none",
1610
- opacity: l.from + n >= r.slicer.start && l.from + n <= r.slicer.end - 1 ? 1 : 0
1634
+ opacity: l.from + s >= r.slicer.start && l.from + s <= r.slicer.end - 1 ? 1 : 0
1611
1635
  }),
1612
- x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (l.from + n - r.slicer.start),
1636
+ x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (l.from + s - r.slicer.start),
1613
1637
  y: e.drawingArea.top,
1614
1638
  height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
1615
1639
  width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
1616
1640
  fill: e.setOpacity(l.color, l.opacity)
1617
- }, null, 12, Ot),
1618
- l.caption.text && n === 0 ? (i(), a("foreignObject", {
1641
+ }, null, 12, vt),
1642
+ l.caption.text && s === 0 ? (a(), i("foreignObject", {
1619
1643
  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),
1644
+ 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
1645
  y: e.drawingArea.top + l.caption.offsetY,
1622
- style: y({
1646
+ style: A({
1623
1647
  overflow: "visible",
1624
1648
  opacity: l.to >= r.slicer.start && l.from < r.slicer.end ? 1 : 0
1625
1649
  }),
@@ -1627,13 +1651,13 @@ function pr(t, s, o, d, r, e) {
1627
1651
  width: l.caption.width === "auto" ? e.drawingArea.width / e.maxSeries * l.span : l.caption.width
1628
1652
  }, [
1629
1653
  f("div", {
1630
- 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"}`)
1654
+ style: A(`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
1655
  }, T(l.caption.text), 5)
1632
- ], 12, Gt)) : u("", !0)
1656
+ ], 12, pt)) : u("", !0)
1633
1657
  ]))), 256)) : u("", !0)
1634
1658
  ]))), 256)),
1635
1659
  f("g", null, [
1636
- (i(!0), a(g, null, N(e.maxSeries, (l, c) => (i(), a("g", {
1660
+ (a(!0), i(d, null, I(e.maxSeries, (l, c) => (a(), i("g", {
1637
1661
  key: `tooltip_trap_highlighter_${c}`
1638
1662
  }, [
1639
1663
  f("rect", {
@@ -1642,53 +1666,53 @@ function pr(t, s, o, d, r, e) {
1642
1666
  height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
1643
1667
  width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
1644
1668
  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)
1669
+ }, null, 8, Mt)
1646
1670
  ]))), 128))
1647
1671
  ]),
1648
- e.barSet.length ? (i(!0), a(g, { key: 0 }, N(e.barSet, (l, c) => (i(), a("g", {
1672
+ e.barSet.length ? (a(!0), i(d, { key: 0 }, I(e.barSet, (l, c) => (a(), i("g", {
1649
1673
  key: `serie_bar_${c}`,
1650
1674
  class: E(`serie_bar_${c}`),
1651
- style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1675
+ style: A(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1652
1676
  }, [
1653
- (i(!0), a(g, null, N(l.plots, (n, h) => (i(), a("g", {
1677
+ (a(!0), i(d, null, I(l.plots, (s, h) => (a(), i("g", {
1654
1678
  key: `bar_plot_${c}_${h}`
1655
1679
  }, [
1656
- e.canShowValue(n.value) ? (i(), a("rect", {
1680
+ e.canShowValue(s.value) ? (a(), i("rect", {
1657
1681
  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)),
1682
+ x: e.calcRectX(s),
1683
+ y: r.mutableConfig.useIndividualScale ? e.calcIndividualRectY(s) : e.calcRectY(s),
1684
+ height: r.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(s)) : Math.abs(e.calcRectHeight(s)),
1661
1685
  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
1686
  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,
1687
+ fill: e.FINAL_CONFIG.bar.useGradient ? s.value >= 0 ? `url(#rectGradient_pos_${c}_${r.uniqueId})` : `url(#rectGradient_neg_${c}_${r.uniqueId})` : l.color,
1664
1688
  stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? l.color : e.FINAL_CONFIG.bar.border.stroke,
1665
1689
  "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", {
1690
+ }, null, 8, zt)) : u("", !0),
1691
+ e.canShowValue(s.value) && t.$slots.pattern ? (a(), i("rect", {
1668
1692
  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)),
1693
+ x: e.calcRectX(s),
1694
+ y: r.mutableConfig.useIndividualScale ? e.calcIndividualRectY(s) : e.calcRectY(s),
1695
+ height: r.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(s)) : Math.abs(e.calcRectHeight(s)),
1672
1696
  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
1697
  rx: e.FINAL_CONFIG.bar.borderRadius,
1674
1698
  fill: `url(#pattern_${r.uniqueId}_${l.slotAbsoluteIndex})`,
1675
1699
  stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? l.color : e.FINAL_CONFIG.bar.border.stroke,
1676
1700
  "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", {
1701
+ }, null, 8, Tt)) : u("", !0),
1702
+ s.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), i("foreignObject", {
1679
1703
  key: 2,
1680
1704
  style: { overflow: "visible" },
1681
1705
  height: "12",
1682
1706
  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
1707
+ x: e.calcRectX(s) - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
1708
+ y: e.checkNaN(s.y) + e.FINAL_CONFIG.chart.comments.offsetY + 6
1685
1709
  }, [
1686
- G(t.$slots, "plot-comment", {
1687
- plot: { ...n, color: l.color, seriesIndex: c, datapointIndex: h }
1710
+ p(t.$slots, "plot-comment", {
1711
+ plot: { ...s, color: l.color, seriesIndex: c, datapointIndex: h }
1688
1712
  }, void 0, !0)
1689
- ], 8, zt)) : u("", !0)
1713
+ ], 8, Pt)) : u("", !0)
1690
1714
  ]))), 128)),
1691
- Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(e.calcLinearProgression(l.plots).trend) ? (i(), a("g", Tt, [
1715
+ Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(e.calcLinearProgression(l.plots).trend) ? (a(), i("g", Vt, [
1692
1716
  f("defs", null, [
1693
1717
  f("marker", {
1694
1718
  id: `bar_arrow_${c}`,
@@ -1701,10 +1725,10 @@ function pr(t, s, o, d, r, e) {
1701
1725
  f("polygon", {
1702
1726
  points: `0 0, 7 ${7 / 2}, 0 7`,
1703
1727
  fill: l.color
1704
- }, null, 8, Vt)
1705
- ], 8, Pt)
1728
+ }, null, 8, Ht)
1729
+ ], 8, Rt)
1706
1730
  ]),
1707
- l.plots.length > 1 ? (i(), a("line", {
1731
+ l.plots.length > 1 ? (a(), i("line", {
1708
1732
  key: 0,
1709
1733
  x1: e.calcLinearProgression(l.plots).x1 + e.calcRectWidth(),
1710
1734
  x2: e.calcLinearProgression(l.plots).x2 + e.calcRectWidth(),
@@ -1714,8 +1738,8 @@ function pr(t, s, o, d, r, e) {
1714
1738
  stroke: l.color,
1715
1739
  "stroke-dasharray": 2,
1716
1740
  "marker-end": `url(#bar_arrow_${c})`
1717
- }, null, 8, Rt)) : u("", !0),
1718
- l.plots.length > 1 ? (i(), a("text", {
1741
+ }, null, 8, Dt)) : u("", !0),
1742
+ l.plots.length > 1 ? (a(), i("text", {
1719
1743
  key: 1,
1720
1744
  "text-anchor": "middle",
1721
1745
  x: e.calcLinearProgression(l.plots).x2 + e.calcRectWidth(),
@@ -1726,10 +1750,10 @@ function pr(t, s, o, d, r, e) {
1726
1750
  v: e.calcLinearProgression(l.plots).trend * 100,
1727
1751
  s: "%",
1728
1752
  r: 2
1729
- })), 9, Ht)) : u("", !0)
1753
+ })), 9, Wt)) : u("", !0)
1730
1754
  ])) : u("", !0)
1731
1755
  ], 6))), 128)) : u("", !0),
1732
- !r.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (i(), a("line", {
1756
+ !r.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (a(), i("line", {
1733
1757
  key: 1,
1734
1758
  stroke: e.FINAL_CONFIG.chart.grid.stroke,
1735
1759
  "stroke-width": "1",
@@ -1739,8 +1763,8 @@ function pr(t, s, o, d, r, e) {
1739
1763
  y2: e.forceValidValue(e.zero),
1740
1764
  "stroke-linecap": "round",
1741
1765
  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, [
1766
+ }, null, 8, Bt)) : u("", !0),
1767
+ e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(r.selectedSerieIndex) || ![null, void 0].includes(r.selectedMinimapIndex)) ? (a(), i("g", Et, [
1744
1768
  f("line", {
1745
1769
  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
1770
  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 +1775,9 @@ function pr(t, s, o, d, r, e) {
1751
1775
  "stroke-dasharray": e.FINAL_CONFIG.chart.highlighter.lineDasharray,
1752
1776
  "stroke-linecap": "round",
1753
1777
  style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
1754
- }, null, 8, Wt)
1778
+ }, null, 8, Yt)
1755
1779
  ])) : u("", !0),
1756
- e.FINAL_CONFIG.chart.grid.frame.show ? (i(), a("rect", {
1780
+ e.FINAL_CONFIG.chart.grid.frame.show ? (a(), i("rect", {
1757
1781
  key: 3,
1758
1782
  style: { pointerEvents: "none", transition: "none", animation: "none !important" },
1759
1783
  x: e.drawingArea.left + e.xPadding < 0 ? 0 : e.drawingArea.left + e.xPadding,
@@ -1766,10 +1790,10 @@ function pr(t, s, o, d, r, e) {
1766
1790
  "stroke-linecap": e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,
1767
1791
  "stroke-linejoin": e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,
1768
1792
  "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, [
1793
+ }, null, 8, qt)) : u("", !0),
1794
+ e.FINAL_CONFIG.chart.grid.labels.show ? (a(), i("g", Xt, [
1795
+ r.mutableConfig.useIndividualScale ? (a(), i(d, { key: 0 }, [
1796
+ (a(!0), i(d, null, I(e.allScales, (l) => (a(), i("g", null, [
1773
1797
  f("line", {
1774
1798
  x1: l.x + e.xPadding,
1775
1799
  x2: l.x + e.xPadding,
@@ -1778,20 +1802,20 @@ function pr(t, s, o, d, r, e) {
1778
1802
  stroke: l.color,
1779
1803
  "stroke-width": e.FINAL_CONFIG.chart.grid.stroke,
1780
1804
  "stroke-linecap": "round",
1781
- 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
+ style: A(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
1806
+ }, null, 12, Ut)
1783
1807
  ]))), 256)),
1784
- (i(!0), a(g, null, N(e.allScales, (l) => (i(), a("g", {
1785
- style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
1808
+ (a(!0), i(d, null, I(e.allScales, (l) => (a(), i("g", {
1809
+ style: A(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
1786
1810
  }, [
1787
1811
  f("text", {
1788
1812
  fill: l.color,
1789
1813
  "font-size": r.fontSizes.dataLabels,
1790
1814
  "text-anchor": "middle",
1791
1815
  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", {
1816
+ }, T(l.name) + " " + T(l.scaleLabel && l.unique && l.scaleLabel !== l.id ? `- ${l.scaleLabel}` : ""), 9, Zt),
1817
+ (a(!0), i(d, null, I(l.yLabels, (c, s) => (a(), i(d, null, [
1818
+ e.FINAL_CONFIG.chart.grid.labels.yAxis.showCrosshairs ? (a(), i("line", {
1795
1819
  key: 0,
1796
1820
  x1: l.x + 3 + e.xPadding - e.FINAL_CONFIG.chart.grid.labels.yAxis.crosshairSize,
1797
1821
  x2: l.x + e.xPadding,
@@ -1801,9 +1825,9 @@ function pr(t, s, o, d, r, e) {
1801
1825
  "stroke-width": 1,
1802
1826
  "stroke-linecap": "round",
1803
1827
  style: { animation: "none !important" }
1804
- }, null, 8, Ut)) : u("", !0)
1828
+ }, null, 8, Jt)) : u("", !0)
1805
1829
  ], 64))), 256)),
1806
- (i(!0), a(g, null, N(l.yLabels, (c, n) => (i(), a("text", {
1830
+ (a(!0), i(d, null, I(l.yLabels, (c, s) => (a(), i("text", {
1807
1831
  x: l.x - 5 + e.xPadding + e.FINAL_CONFIG.chart.grid.labels.yAxis.scaleValueOffsetX,
1808
1832
  y: e.forceValidValue(c.y) + r.fontSizes.dataLabels / 3,
1809
1833
  "font-size": r.fontSizes.dataLabels,
@@ -1818,13 +1842,13 @@ function pr(t, s, o, d, r, e) {
1818
1842
  s: c.suffix,
1819
1843
  r: 1
1820
1844
  }),
1821
- { datapoint: c.datapoint, seriesIndex: n }
1822
- )), 9, Zt))), 256))
1845
+ { datapoint: c.datapoint, seriesIndex: s }
1846
+ )), 9, Kt))), 256))
1823
1847
  ], 4))), 256))
1824
- ], 64)) : (i(!0), a(g, { key: 1 }, N(e.yLabels, (l, c) => (i(), a("g", {
1848
+ ], 64)) : (a(!0), i(d, { key: 1 }, I(e.yLabels, (l, c) => (a(), i("g", {
1825
1849
  key: `yLabel_${c}`
1826
1850
  }, [
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", {
1851
+ 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
1852
  key: 0,
1829
1853
  x1: e.drawingArea.left + e.xPadding,
1830
1854
  x2: e.drawingArea.left - e.FINAL_CONFIG.chart.grid.labels.yAxis.crosshairSize + e.xPadding,
@@ -1834,8 +1858,8 @@ function pr(t, s, o, d, r, e) {
1834
1858
  "stroke-width": "1",
1835
1859
  "stroke-linecap": "round",
1836
1860
  style: { animation: "none !important" }
1837
- }, null, 8, Jt)) : u("", !0),
1838
- l.value >= e.niceScale.min && l.value <= e.niceScale.max ? (i(), a("text", {
1861
+ }, null, 8, Qt)) : u("", !0),
1862
+ l.value >= e.niceScale.min && l.value <= e.niceScale.max ? (a(), i("text", {
1839
1863
  key: 1,
1840
1864
  x: e.drawingArea.left - 7 + e.xPadding,
1841
1865
  y: e.checkNaN(l.y + r.fontSizes.dataLabels / 3),
@@ -1851,42 +1875,42 @@ function pr(t, s, o, d, r, e) {
1851
1875
  s: l.suffix,
1852
1876
  r: 1
1853
1877
  })
1854
- ) : ""), 9, Kt)) : u("", !0)
1878
+ ) : ""), 9, jt)) : u("", !0)
1855
1879
  ]))), 128))
1856
1880
  ])) : u("", !0),
1857
- (i(!0), a(g, null, N(e.plotSet, (l, c) => (i(), a("g", {
1881
+ (a(!0), i(d, null, I(e.plotSet, (l, c) => (a(), i("g", {
1858
1882
  key: `serie_plot_${c}`,
1859
1883
  class: E(`serie_plot_${c}`),
1860
- style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1884
+ style: A(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1861
1885
  }, [
1862
- (i(!0), a(g, null, N(l.plots, (n, h) => (i(), a("g", {
1886
+ (a(!0), i(d, null, I(l.plots, (s, h) => (a(), i("g", {
1863
1887
  key: `circle_plot_${c}_${h}`
1864
1888
  }, [
1865
- n && e.canShowValue(n.value) ? (i(), B(v, {
1889
+ s && e.canShowValue(s.value) ? (a(), W(k, {
1866
1890
  key: 0,
1867
1891
  shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(l.shape) ? l.shape : "circle",
1868
1892
  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) },
1893
+ plot: { x: e.checkNaN(s.x), y: e.checkNaN(s.y) },
1870
1894
  radius: r.selectedSerieIndex !== null && r.selectedSerieIndex === h || r.selectedMinimapIndex !== null && r.selectedMinimapIndex === h ? (r.plotRadii.plot || 6) * 1.5 : r.plotRadii.plot || 6,
1871
1895
  stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : l.color,
1872
1896
  strokeWidth: e.FINAL_CONFIG.plot.dot.strokeWidth
1873
1897
  }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : u("", !0),
1874
- n.comment && e.FINAL_CONFIG.chart.comments.show ? (i(), a("foreignObject", {
1898
+ s.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), i("foreignObject", {
1875
1899
  key: 1,
1876
1900
  style: { overflow: "visible" },
1877
1901
  height: "12",
1878
1902
  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
1903
+ x: s.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
1904
+ y: s.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
1881
1905
  }, [
1882
- f("div", jt, [
1883
- G(t.$slots, "plot-comment", {
1884
- plot: { ...n, color: l.color, seriesIndex: c, datapointIndex: h }
1906
+ f("div", el, [
1907
+ p(t.$slots, "plot-comment", {
1908
+ plot: { ...s, color: l.color, seriesIndex: c, datapointIndex: h }
1885
1909
  }, void 0, !0)
1886
1910
  ])
1887
- ], 8, Qt)) : u("", !0)
1911
+ ], 8, $t)) : u("", !0)
1888
1912
  ]))), 128)),
1889
- Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(e.calcLinearProgression(l.plots).trend) ? (i(), a("g", $t, [
1913
+ Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(e.calcLinearProgression(l.plots).trend) ? (a(), i("g", tl, [
1890
1914
  f("defs", null, [
1891
1915
  f("marker", {
1892
1916
  id: `plot_arrow_${c}`,
@@ -1899,10 +1923,10 @@ function pr(t, s, o, d, r, e) {
1899
1923
  f("polygon", {
1900
1924
  points: `0 0, 7 ${7 / 2}, 0 7`,
1901
1925
  fill: l.color
1902
- }, null, 8, tl)
1903
- ], 8, el)
1926
+ }, null, 8, rl)
1927
+ ], 8, ll)
1904
1928
  ]),
1905
- l.plots.length > 1 ? (i(), a("line", {
1929
+ l.plots.length > 1 ? (a(), i("line", {
1906
1930
  key: 0,
1907
1931
  x1: e.calcLinearProgression(l.plots).x1,
1908
1932
  x2: e.calcLinearProgression(l.plots).x2,
@@ -1912,8 +1936,8 @@ function pr(t, s, o, d, r, e) {
1912
1936
  stroke: l.color,
1913
1937
  "stroke-dasharray": 2,
1914
1938
  "marker-end": `url(#plot_arrow_${c})`
1915
- }, null, 8, ll)) : u("", !0),
1916
- l.plots.length > 1 ? (i(), a("text", {
1939
+ }, null, 8, al)) : u("", !0),
1940
+ l.plots.length > 1 ? (a(), i("text", {
1917
1941
  key: 1,
1918
1942
  "text-anchor": "middle",
1919
1943
  x: e.calcLinearProgression(l.plots).x2,
@@ -1924,22 +1948,22 @@ function pr(t, s, o, d, r, e) {
1924
1948
  v: e.calcLinearProgression(l.plots).trend * 100,
1925
1949
  s: "%",
1926
1950
  r: 2
1927
- })), 9, rl)) : u("", !0)
1951
+ })), 9, il)) : u("", !0)
1928
1952
  ])) : u("", !0)
1929
1953
  ], 6))), 128)),
1930
- (i(!0), a(g, null, N(e.lineSet, (l, c) => (i(), a("g", {
1954
+ (a(!0), i(d, null, I(e.lineSet, (l, c) => (a(), i("g", {
1931
1955
  key: `serie_line_${c}`,
1932
1956
  class: E(`serie_line_${c}`),
1933
- style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1957
+ style: A(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1934
1958
  }, [
1935
- l.smooth && l.plots.length > 1 ? (i(), a("path", {
1959
+ l.smooth && l.plots.length > 1 ? (a(), i("path", {
1936
1960
  key: 0,
1937
1961
  d: `M${l.curve}`,
1938
1962
  stroke: e.FINAL_CONFIG.chart.backgroundColor,
1939
1963
  "stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
1940
1964
  "stroke-dasharray": l.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
1941
1965
  fill: "none"
1942
- }, null, 8, il)) : l.plots.length > 1 ? (i(), a("path", {
1966
+ }, null, 8, sl)) : l.plots.length > 1 ? (a(), i("path", {
1943
1967
  key: 1,
1944
1968
  d: `M${l.straight}`,
1945
1969
  stroke: e.FINAL_CONFIG.chart.backgroundColor,
@@ -1948,42 +1972,42 @@ function pr(t, s, o, d, r, e) {
1948
1972
  fill: "none",
1949
1973
  "stroke-linecap": "round",
1950
1974
  "stroke-linejoin": "round"
1951
- }, null, 8, al)) : u("", !0)
1975
+ }, null, 8, nl)) : u("", !0)
1952
1976
  ], 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({
1977
+ t.$slots.pattern ? (a(), i("defs", cl, [
1978
+ (a(!0), i(d, null, I(e.safeDataset, (l, c) => p(t.$slots, "pattern", K({
1955
1979
  key: `serie_pattern_slot_${c}`
1956
1980
  }, { ref_for: !0 }, { ...l, seriesIndex: l.slotAbsoluteIndex, patternId: `pattern_${r.uniqueId}_${c}` }), void 0, !0)), 128))
1957
1981
  ])) : u("", !0),
1958
- (i(!0), a(g, null, N(e.lineSet, (l, c) => (i(), a("g", {
1982
+ (a(!0), i(d, null, I(e.lineSet, (l, c) => (a(), i("g", {
1959
1983
  key: `serie_line_${c}`,
1960
1984
  class: E(`serie_line_${c}`),
1961
- style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1985
+ style: A(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1962
1986
  }, [
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 }, [
1987
+ l.useArea && l.plots.length > 1 ? (a(), i("g", ol, [
1988
+ l.smooth ? (a(!0), i(d, { key: 0 }, I(l.curveAreas, (s, h) => (a(), i(d, { key: h }, [
1965
1989
  f("path", {
1966
- d: n,
1990
+ d: s,
1967
1991
  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", {
1992
+ }, null, 8, hl),
1993
+ t.$slots.pattern ? (a(), i("path", {
1970
1994
  key: 0,
1971
- d: n,
1995
+ d: s,
1972
1996
  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 }, [
1997
+ }, null, 8, ul)) : u("", !0)
1998
+ ], 64))), 128)) : (a(!0), i(d, { key: 1 }, I(l.area.split(";"), (s, h) => (a(), i(d, { key: h }, [
1975
1999
  f("path", {
1976
- d: `M${n}Z`,
2000
+ d: `M${s}Z`,
1977
2001
  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", {
2002
+ }, null, 8, dl),
2003
+ t.$slots.pattern ? (a(), i("path", {
1980
2004
  key: 0,
1981
- d: `M${n}Z`,
2005
+ d: `M${s}Z`,
1982
2006
  fill: `url(#pattern_${r.uniqueId}_${l.slotAbsoluteIndex})`
1983
- }, null, 8, ul)) : u("", !0)
2007
+ }, null, 8, gl)) : u("", !0)
1984
2008
  ], 64))), 128))
1985
2009
  ])) : u("", !0),
1986
- l.smooth && l.plots.length > 1 ? (i(), a("path", {
2010
+ l.smooth && l.plots.length > 1 ? (a(), i("path", {
1987
2011
  key: 1,
1988
2012
  d: `M${l.curve}`,
1989
2013
  stroke: l.color,
@@ -1991,7 +2015,7 @@ function pr(t, s, o, d, r, e) {
1991
2015
  "stroke-dasharray": l.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
1992
2016
  fill: "none",
1993
2017
  "stroke-linecap": "round"
1994
- }, null, 8, dl)) : l.plots.length > 1 ? (i(), a("path", {
2018
+ }, null, 8, fl)) : l.plots.length > 1 ? (a(), i("path", {
1995
2019
  key: 2,
1996
2020
  d: `M${l.straight}`,
1997
2021
  stroke: l.color,
@@ -2000,35 +2024,35 @@ function pr(t, s, o, d, r, e) {
2000
2024
  fill: "none",
2001
2025
  "stroke-linecap": "round",
2002
2026
  "stroke-linejoin": "round"
2003
- }, null, 8, gl)) : u("", !0),
2004
- (i(!0), a(g, null, N(l.plots, (n, h) => (i(), a(g, {
2027
+ }, null, 8, Il)) : u("", !0),
2028
+ (a(!0), i(d, null, I(l.plots, (s, h) => (a(), i(d, {
2005
2029
  key: `circle_line_${c}_${h}`
2006
2030
  }, [
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, {
2031
+ !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
2032
  key: 0,
2009
2033
  shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(l.shape) ? l.shape : "circle",
2010
2034
  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) },
2035
+ plot: { x: e.checkNaN(s.x), y: e.checkNaN(s.y) },
2012
2036
  radius: r.selectedSerieIndex !== null && r.selectedSerieIndex === h || r.selectedMinimapIndex !== null && r.selectedMinimapIndex === h ? (r.plotRadii.line || 6) * 1.5 : r.plotRadii.line || 6,
2013
2037
  stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : l.color,
2014
2038
  strokeWidth: e.FINAL_CONFIG.line.dot.strokeWidth
2015
2039
  }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : u("", !0),
2016
- n.comment && e.FINAL_CONFIG.chart.comments.show ? (i(), a("foreignObject", {
2040
+ s.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), i("foreignObject", {
2017
2041
  key: 1,
2018
2042
  style: { overflow: "visible" },
2019
2043
  height: "12",
2020
2044
  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
2045
+ x: s.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
2046
+ y: s.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
2023
2047
  }, [
2024
- f("div", Il, [
2025
- G(t.$slots, "plot-comment", {
2026
- plot: { ...n, color: l.color, seriesIndex: c, datapointIndex: h }
2048
+ f("div", xl, [
2049
+ p(t.$slots, "plot-comment", {
2050
+ plot: { ...s, color: l.color, seriesIndex: c, datapointIndex: h }
2027
2051
  }, void 0, !0)
2028
2052
  ])
2029
- ], 8, fl)) : u("", !0)
2053
+ ], 8, Nl)) : u("", !0)
2030
2054
  ], 64))), 128)),
2031
- Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(e.calcLinearProgression(l.plots).trend) ? (i(), a("g", Nl, [
2055
+ Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(e.calcLinearProgression(l.plots).trend) ? (a(), i("g", ml, [
2032
2056
  f("defs", null, [
2033
2057
  f("marker", {
2034
2058
  id: `line_arrow_${c}`,
@@ -2041,10 +2065,10 @@ function pr(t, s, o, d, r, e) {
2041
2065
  f("polygon", {
2042
2066
  points: `0 0, 7 ${7 / 2}, 0 7`,
2043
2067
  fill: l.color
2044
- }, null, 8, xl)
2045
- ], 8, ml)
2068
+ }, null, 8, Fl)
2069
+ ], 8, bl)
2046
2070
  ]),
2047
- l.plots.length > 1 ? (i(), a("line", {
2071
+ l.plots.length > 1 ? (a(), i("line", {
2048
2072
  key: 0,
2049
2073
  x1: e.calcLinearProgression(l.plots).x1,
2050
2074
  x2: e.calcLinearProgression(l.plots).x2,
@@ -2054,8 +2078,8 @@ function pr(t, s, o, d, r, e) {
2054
2078
  stroke: l.color,
2055
2079
  "stroke-dasharray": 2,
2056
2080
  "marker-end": `url(#line_arrow_${c})`
2057
- }, null, 8, bl)) : u("", !0),
2058
- l.plots.length > 1 ? (i(), a("text", {
2081
+ }, null, 8, _l)) : u("", !0),
2082
+ l.plots.length > 1 ? (a(), i("text", {
2059
2083
  key: 1,
2060
2084
  "text-anchor": "middle",
2061
2085
  x: e.calcLinearProgression(l.plots).x2,
@@ -2066,261 +2090,261 @@ function pr(t, s, o, d, r, e) {
2066
2090
  v: e.calcLinearProgression(l.plots).trend * 100,
2067
2091
  s: "%",
2068
2092
  r: 2
2069
- })), 9, Fl)) : u("", !0)
2093
+ })), 9, yl)) : u("", !0)
2070
2094
  ])) : u("", !0)
2071
2095
  ], 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, {
2096
+ (e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && r.mutableConfig.dataLabels.show ? (a(), i("g", Al, [
2097
+ (a(!0), i(d, null, I(e.barSet, (l, c) => (a(), i(d, {
2074
2098
  key: `xLabel_bar_${c}`
2075
2099
  }, [
2076
- (i(!0), a(g, null, N(l.plots, (n, h) => (i(), a(g, {
2100
+ (a(!0), i(d, null, I(l.plots, (s, h) => (a(), i(d, {
2077
2101
  key: `xLabel_bar_${c}_${h}`
2078
2102
  }, [
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", {
2103
+ 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
2104
  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),
2105
+ x: r.mutableConfig.useIndividualScale && r.mutableConfig.isStacked ? s.x + e.slot.line / 2 : e.calcRectX(s) + e.calcRectWidth() / 2 - e.barPeriodGap / 2,
2106
+ y: e.checkNaN(s.y) + (s.value >= 0 ? e.FINAL_CONFIG.bar.labels.offsetY : -e.FINAL_CONFIG.bar.labels.offsetY * 3),
2083
2107
  "text-anchor": "middle",
2084
2108
  "font-size": r.fontSizes.plotLabels,
2085
2109
  fill: e.FINAL_CONFIG.bar.labels.color,
2086
- 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
+ style: A(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2111
+ }, T(e.canShowValue(s.value) ? e.applyDataLabel(
2088
2112
  e.FINAL_CONFIG.bar.labels.formatter,
2089
- n.value,
2113
+ s.value,
2090
2114
  e.dataLabel({
2091
2115
  p: l.prefix || e.FINAL_CONFIG.chart.labels.prefix,
2092
- v: n.value,
2116
+ v: s.value,
2093
2117
  s: l.suffix || e.FINAL_CONFIG.chart.labels.suffix,
2094
2118
  r: e.FINAL_CONFIG.bar.labels.rounding
2095
2119
  }),
2096
2120
  {
2097
- datapoint: n,
2121
+ datapoint: s,
2098
2122
  serie: l
2099
2123
  }
2100
- ) : ""), 13, yl)) : u("", !0),
2101
- n && e.FINAL_CONFIG.bar.serieName.show ? (i(), a("text", {
2124
+ ) : ""), 13, Ll)) : u("", !0),
2125
+ s && e.FINAL_CONFIG.bar.serieName.show ? (a(), i("text", {
2102
2126
  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),
2127
+ x: r.mutableConfig.useIndividualScale && r.mutableConfig.isStacked ? s.x + e.slot.line / 2 : s.x + e.calcRectWidth() * 1.1,
2128
+ y: s.y + (s.value > 0 ? e.FINAL_CONFIG.bar.serieName.offsetY : -e.FINAL_CONFIG.bar.serieName.offsetY * 3),
2105
2129
  "text-anchor": "middle",
2106
2130
  "font-size": r.fontSizes.plotLabels,
2107
2131
  fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? l.color : e.FINAL_CONFIG.bar.serieName.color,
2108
2132
  "font-weight": e.FINAL_CONFIG.bar.serieName.bold ? "bold" : "normal",
2109
- 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
+ style: A(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2134
+ }, 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
2135
  ], 64))), 128))
2112
2136
  ], 64))), 128))
2113
2137
  ])) : 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, {
2138
+ e.FINAL_CONFIG.plot.labels.show && r.mutableConfig.dataLabels.show ? (a(), i("g", Sl, [
2139
+ (a(!0), i(d, null, I(e.plotSet, (l, c) => (a(), i(d, {
2116
2140
  key: `xLabel_plot_${c}`
2117
2141
  }, [
2118
- (i(!0), a(g, null, N(l.plots, (n, h) => (i(), a(g, {
2142
+ (a(!0), i(d, null, I(l.plots, (s, h) => (a(), i(d, {
2119
2143
  key: `xLabel_plot_${c}_${h}`
2120
2144
  }, [
2121
- n && !Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || r.selectedSerieIndex !== null && r.selectedSerieIndex === h || r.selectedMinimapIndex !== null && r.selectedMinimapIndex === h ? (i(), a("text", {
2145
+ s && !Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || r.selectedSerieIndex !== null && r.selectedSerieIndex === h || r.selectedMinimapIndex !== null && r.selectedMinimapIndex === h ? (a(), i("text", {
2122
2146
  key: 0,
2123
- x: n.x,
2124
- y: n.y + e.FINAL_CONFIG.plot.labels.offsetY,
2147
+ x: s.x,
2148
+ y: s.y + e.FINAL_CONFIG.plot.labels.offsetY,
2125
2149
  "text-anchor": "middle",
2126
2150
  "font-size": r.fontSizes.plotLabels,
2127
2151
  fill: e.FINAL_CONFIG.plot.labels.color,
2128
- 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
+ style: A(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2153
+ }, T(e.canShowValue(s.value) ? e.applyDataLabel(
2130
2154
  e.FINAL_CONFIG.plot.labels.formatter,
2131
- n.value,
2155
+ s.value,
2132
2156
  e.dataLabel({
2133
2157
  p: l.prefix || e.FINAL_CONFIG.chart.labels.prefix,
2134
- v: n.value,
2158
+ v: s.value,
2135
2159
  s: l.suffix || e.FINAL_CONFIG.chart.labels.suffix,
2136
2160
  r: e.FINAL_CONFIG.plot.labels.rounding
2137
2161
  }),
2138
2162
  {
2139
- datapoint: n,
2163
+ datapoint: s,
2140
2164
  serie: l
2141
2165
  }
2142
- ) : ""), 13, Cl)) : u("", !0)
2166
+ ) : ""), 13, kl)) : u("", !0)
2143
2167
  ], 64))), 128))
2144
2168
  ], 64))), 128))
2145
- ])) : (i(), a("g", Sl, [
2146
- (i(!0), a(g, null, N(e.plotSet, (l, c) => (i(), a(g, {
2169
+ ])) : (a(), i("g", wl, [
2170
+ (a(!0), i(d, null, I(e.plotSet, (l, c) => (a(), i(d, {
2147
2171
  key: `xLabel_plot_${c}`
2148
2172
  }, [
2149
- (i(!0), a(g, null, N(l.plots, (n, h) => (i(), a(g, {
2173
+ (a(!0), i(d, null, I(l.plots, (s, h) => (a(), i(d, {
2150
2174
  key: `xLabel_plot_${c}_${h}`
2151
2175
  }, [
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", {
2176
+ e.FINAL_CONFIG.plot.tag.followValue ? (a(), i(d, { key: 1 }, [
2177
+ [r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(h) && l.useTag ? (a(), i("line", {
2154
2178
  key: 0,
2155
2179
  class: "vue-ui-xy-tag-plot",
2156
2180
  x1: e.drawingArea.left,
2157
2181
  x2: e.drawingArea.right,
2158
- y1: n.y,
2159
- y2: n.y,
2182
+ y1: s.y,
2183
+ y2: s.y,
2160
2184
  "stroke-width": 1,
2161
2185
  "stroke-linecap": "round",
2162
2186
  "stroke-dasharray": "2",
2163
2187
  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", {
2188
+ }, null, 8, Ml)) : u("", !0)
2189
+ ], 64)) : (a(), i(d, { key: 0 }, [
2190
+ s && h === 0 && l.useTag && l.useTag === "start" ? (a(), i("foreignObject", {
2167
2191
  key: 0,
2168
- x: n.x,
2169
- y: n.y - 20,
2192
+ x: s.x,
2193
+ y: s.y - 20,
2170
2194
  height: 24,
2171
2195
  width: "150",
2172
- style: y(`overflow: visible; opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2196
+ style: A(`overflow: visible; opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2173
2197
  }, [
2174
2198
  f("div", {
2175
- 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;`),
2199
+ style: A(`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
2200
  innerHTML: e.applyDataLabel(
2177
2201
  e.FINAL_CONFIG.plot.tag.formatter,
2178
- n.value,
2202
+ s.value,
2179
2203
  l.name,
2180
2204
  {
2181
- datapoint: n,
2205
+ datapoint: s,
2182
2206
  seriesIndex: h,
2183
2207
  serieName: l.name
2184
2208
  }
2185
2209
  )
2186
- }, null, 12, wl)
2187
- ], 12, kl)) : u("", !0),
2188
- n && h === l.plots.length - 1 && l.useTag && l.useTag === "end" ? (i(), a("foreignObject", {
2210
+ }, null, 12, Gl)
2211
+ ], 12, Ol)) : u("", !0),
2212
+ s && h === l.plots.length - 1 && l.useTag && l.useTag === "end" ? (a(), i("foreignObject", {
2189
2213
  key: 1,
2190
- x: n.x - l.name.length * (r.fontSizes.plotLabels / 2),
2191
- y: n.y - 20,
2214
+ x: s.x - l.name.length * (r.fontSizes.plotLabels / 2),
2215
+ y: s.y - 20,
2192
2216
  height: 24,
2193
2217
  width: "150",
2194
- style: y(`overflow: visible; opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2218
+ style: A(`overflow: visible; opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2195
2219
  }, [
2196
2220
  f("div", {
2197
- 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;`),
2221
+ style: A(`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
2222
  innerHTML: e.applyDataLabel(
2199
2223
  e.FINAL_CONFIG.plot.tag.formatter,
2200
- n.value,
2224
+ s.value,
2201
2225
  l.name,
2202
2226
  {
2203
- datapoint: n,
2227
+ datapoint: s,
2204
2228
  seriesIndex: h,
2205
2229
  serieName: l.name
2206
2230
  }
2207
2231
  )
2208
- }, null, 12, Gl)
2209
- ], 12, Ol)) : u("", !0)
2232
+ }, null, 12, pl)
2233
+ ], 12, vl)) : u("", !0)
2210
2234
  ], 64))
2211
2235
  ], 64))), 128))
2212
2236
  ], 64))), 128))
2213
2237
  ])),
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, {
2238
+ e.FINAL_CONFIG.line.labels.show && r.mutableConfig.dataLabels.show ? (a(), i("g", zl, [
2239
+ (a(!0), i(d, null, I(e.lineSet, (l, c) => (a(), i(d, {
2216
2240
  key: `xLabel_line_${c}`
2217
2241
  }, [
2218
- (i(!0), a(g, null, N(l.plots, (n, h) => (i(), a(g, {
2242
+ (a(!0), i(d, null, I(l.plots, (s, h) => (a(), i(d, {
2219
2243
  key: `xLabel_line_${c}_${h}`
2220
2244
  }, [
2221
- n && !Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || r.selectedSerieIndex !== null && r.selectedSerieIndex === h || r.selectedMinimapIndex !== null && r.selectedMinimapIndex === h ? (i(), a("text", {
2245
+ s && !Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || r.selectedSerieIndex !== null && r.selectedSerieIndex === h || r.selectedMinimapIndex !== null && r.selectedMinimapIndex === h ? (a(), i("text", {
2222
2246
  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),
2247
+ x: s.x,
2248
+ y: s.y + (s.value >= 0 ? e.FINAL_CONFIG.line.labels.offsetY : -e.FINAL_CONFIG.line.labels.offsetY * 3),
2225
2249
  "text-anchor": "middle",
2226
2250
  "font-size": r.fontSizes.plotLabels,
2227
2251
  fill: e.FINAL_CONFIG.line.labels.color,
2228
- 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
+ style: A(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2253
+ }, T(e.canShowValue(s.value) ? e.applyDataLabel(
2230
2254
  e.FINAL_CONFIG.line.labels.formatter,
2231
- n.value,
2255
+ s.value,
2232
2256
  e.dataLabel({
2233
2257
  p: l.prefix || e.FINAL_CONFIG.chart.labels.prefix,
2234
- v: n.value,
2258
+ v: s.value,
2235
2259
  s: l.suffix || e.FINAL_CONFIG.chart.labels.suffix,
2236
2260
  r: e.FINAL_CONFIG.line.labels.rounding
2237
2261
  }),
2238
2262
  {
2239
- datapoint: n,
2263
+ datapoint: s,
2240
2264
  serie: l
2241
2265
  }
2242
- ) : ""), 13, Ml)) : u("", !0)
2266
+ ) : ""), 13, Tl)) : u("", !0)
2243
2267
  ], 64))), 128))
2244
2268
  ], 64))), 128))
2245
- ])) : (i(), a("g", zl, [
2246
- (i(!0), a(g, null, N(e.lineSet, (l, c) => (i(), a(g, {
2269
+ ])) : (a(), i("g", Pl, [
2270
+ (a(!0), i(d, null, I(e.lineSet, (l, c) => (a(), i(d, {
2247
2271
  key: `xLabel_line_${c}`
2248
2272
  }, [
2249
- (i(!0), a(g, null, N(l.plots, (n, h) => (i(), a(g, {
2273
+ (a(!0), i(d, null, I(l.plots, (s, h) => (a(), i(d, {
2250
2274
  key: `xLabel_line_${c}_${h}`
2251
2275
  }, [
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", {
2276
+ e.FINAL_CONFIG.line.tag.followValue ? (a(), i(d, { key: 1 }, [
2277
+ [r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(h) && l.useTag ? (a(), i("line", {
2254
2278
  key: 0,
2255
2279
  class: "vue-ui-xy-tag-line",
2256
2280
  x1: e.drawingArea.left,
2257
2281
  x2: e.drawingArea.right,
2258
- y1: n.y,
2259
- y2: n.y,
2282
+ y1: s.y,
2283
+ y2: s.y,
2260
2284
  "stroke-width": 1,
2261
2285
  "stroke-linecap": "round",
2262
2286
  "stroke-dasharray": "2",
2263
2287
  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", {
2288
+ }, null, 8, Wl)) : u("", !0)
2289
+ ], 64)) : (a(), i(d, { key: 0 }, [
2290
+ s && h === 0 && l.useTag && l.useTag === "start" ? (a(), i("foreignObject", {
2267
2291
  key: 0,
2268
- x: n.x,
2269
- y: n.y - 20,
2292
+ x: s.x,
2293
+ y: s.y - 20,
2270
2294
  height: 24,
2271
2295
  width: "150",
2272
- style: y(`overflow: visible; opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2296
+ style: A(`overflow: visible; opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2273
2297
  }, [
2274
2298
  f("div", {
2275
- 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;`),
2299
+ style: A(`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
2300
  innerHTML: e.applyDataLabel(
2277
2301
  e.FINAL_CONFIG.line.tag.formatter,
2278
- n.value,
2302
+ s.value,
2279
2303
  l.name,
2280
2304
  {
2281
- datapoint: n,
2305
+ datapoint: s,
2282
2306
  seriesIndex: h,
2283
2307
  serieName: l.name
2284
2308
  }
2285
2309
  )
2286
- }, null, 12, Pl)
2287
- ], 12, Tl)) : u("", !0),
2288
- n && h === l.plots.length - 1 && l.useTag && l.useTag === "end" ? (i(), a("foreignObject", {
2310
+ }, null, 12, Rl)
2311
+ ], 12, Vl)) : u("", !0),
2312
+ s && h === l.plots.length - 1 && l.useTag && l.useTag === "end" ? (a(), i("foreignObject", {
2289
2313
  key: 1,
2290
- x: n.x,
2291
- y: n.y - 20,
2314
+ x: s.x,
2315
+ y: s.y - 20,
2292
2316
  height: 24,
2293
2317
  width: "150",
2294
- style: y(`overflow: visible; opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2318
+ style: A(`overflow: visible; opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2295
2319
  }, [
2296
2320
  f("div", {
2297
- 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;`),
2321
+ style: A(`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
2322
  innerHTML: e.applyDataLabel(
2299
2323
  e.FINAL_CONFIG.line.tag.formatter,
2300
- n.value,
2324
+ s.value,
2301
2325
  l.name,
2302
2326
  {
2303
- datapoint: n,
2327
+ datapoint: s,
2304
2328
  seriesIndex: h,
2305
2329
  serieName: l.name
2306
2330
  }
2307
2331
  )
2308
- }, null, 12, Rl)
2309
- ], 12, Vl)) : u("", !0)
2332
+ }, null, 12, Dl)
2333
+ ], 12, Hl)) : u("", !0)
2310
2334
  ], 64))
2311
2335
  ], 64))), 128))
2312
2336
  ], 64))), 128))
2313
2337
  ])),
2314
- (i(!0), a(g, null, N(e.lineSet, (l, c) => (i(), a(g, {
2338
+ (a(!0), i(d, null, I(e.lineSet, (l, c) => (a(), i(d, {
2315
2339
  key: `xLabel_line_${c}`
2316
2340
  }, [
2317
- (i(!0), a(g, null, N(l.plots, (n, h) => (i(), a(g, {
2341
+ (a(!0), i(d, null, I(l.plots, (s, h) => (a(), i(d, {
2318
2342
  key: `xLabel_line_${c}_${h}`
2319
2343
  }, [
2320
- n && h === 0 && l.showSerieName && l.showSerieName === "start" ? (i(), a("text", {
2344
+ s && h === 0 && l.showSerieName && l.showSerieName === "start" ? (a(), i("text", {
2321
2345
  key: 0,
2322
- x: n.x - r.fontSizes.plotLabels,
2323
- y: n.y,
2346
+ x: s.x - r.fontSizes.plotLabels,
2347
+ y: s.y,
2324
2348
  "font-size": r.fontSizes.plotLabels,
2325
2349
  "text-anchor": "end",
2326
2350
  fill: l.color,
@@ -2328,16 +2352,16 @@ function pr(t, s, o, d, r, e) {
2328
2352
  content: l.name,
2329
2353
  fontSize: r.fontSizes.plotLabels,
2330
2354
  fill: l.color,
2331
- x: n.x - r.fontSizes.plotLabels,
2332
- y: n.y,
2355
+ x: s.x - r.fontSizes.plotLabels,
2356
+ y: s.y,
2333
2357
  maxWords: 2
2334
2358
  }),
2335
- 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
+ style: A(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2360
+ }, null, 12, Bl)) : u("", !0),
2361
+ s && h === l.plots.length - 1 && l.showSerieName && l.showSerieName === "end" ? (a(), i("text", {
2338
2362
  key: 1,
2339
- x: n.x + r.fontSizes.plotLabels,
2340
- y: n.y,
2363
+ x: s.x + r.fontSizes.plotLabels,
2364
+ y: s.y,
2341
2365
  "font-size": r.fontSizes.plotLabels,
2342
2366
  "text-anchor": "start",
2343
2367
  fill: l.color,
@@ -2345,24 +2369,24 @@ function pr(t, s, o, d, r, e) {
2345
2369
  content: l.name,
2346
2370
  fontSize: r.fontSizes.plotLabels,
2347
2371
  fill: l.color,
2348
- x: n.x + r.fontSizes.plotLabels,
2349
- y: n.y,
2372
+ x: s.x + r.fontSizes.plotLabels,
2373
+ y: s.y,
2350
2374
  maxWords: 2
2351
2375
  }),
2352
- 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
+ style: A(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2377
+ }, null, 12, El)) : u("", !0)
2354
2378
  ], 64))), 128))
2355
2379
  ], 64))), 128)),
2356
- (i(!0), a(g, null, N(e.plotSet, (l, c) => (i(), a(g, {
2380
+ (a(!0), i(d, null, I(e.plotSet, (l, c) => (a(), i(d, {
2357
2381
  key: `xLabel_plot_${c}`
2358
2382
  }, [
2359
- (i(!0), a(g, null, N(l.plots, (n, h) => (i(), a(g, {
2383
+ (a(!0), i(d, null, I(l.plots, (s, h) => (a(), i(d, {
2360
2384
  key: `xLabel_plot_${c}_${h}`
2361
2385
  }, [
2362
- n && h === 0 && l.showSerieName && l.showSerieName === "start" ? (i(), a("text", {
2386
+ s && h === 0 && l.showSerieName && l.showSerieName === "start" ? (a(), i("text", {
2363
2387
  key: 0,
2364
- x: n.x - r.fontSizes.plotLabels,
2365
- y: n.y,
2388
+ x: s.x - r.fontSizes.plotLabels,
2389
+ y: s.y,
2366
2390
  "font-size": r.fontSizes.plotLabels,
2367
2391
  "text-anchor": "end",
2368
2392
  fill: l.color,
@@ -2370,16 +2394,16 @@ function pr(t, s, o, d, r, e) {
2370
2394
  content: l.name,
2371
2395
  fontSize: r.fontSizes.plotLabels,
2372
2396
  fill: l.color,
2373
- x: n.x - r.fontSizes.plotLabels,
2374
- y: n.y,
2397
+ x: s.x - r.fontSizes.plotLabels,
2398
+ y: s.y,
2375
2399
  maxWords: 2
2376
2400
  }),
2377
- 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
+ style: A(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2402
+ }, null, 12, Yl)) : u("", !0),
2403
+ s && h === l.plots.length - 1 && l.showSerieName && l.showSerieName === "end" ? (a(), i("text", {
2380
2404
  key: 1,
2381
- x: n.x + r.fontSizes.plotLabels,
2382
- y: n.y,
2405
+ x: s.x + r.fontSizes.plotLabels,
2406
+ y: s.y,
2383
2407
  "font-size": r.fontSizes.plotLabels,
2384
2408
  "text-anchor": "start",
2385
2409
  fill: l.color,
@@ -2387,17 +2411,17 @@ function pr(t, s, o, d, r, e) {
2387
2411
  content: l.name,
2388
2412
  fontSize: r.fontSizes.plotLabels,
2389
2413
  fill: l.color,
2390
- x: n.x + r.fontSizes.plotLabels,
2391
- y: n.y,
2414
+ x: s.x + r.fontSizes.plotLabels,
2415
+ y: s.y,
2392
2416
  maxWords: 2
2393
2417
  }),
2394
- 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
+ style: A(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2419
+ }, null, 12, ql)) : u("", !0)
2396
2420
  ], 64))), 128))
2397
2421
  ], 64))), 128)),
2398
- r.mutableConfig.useIndividualScale && !r.mutableConfig.isStacked ? (i(), a(g, { key: 11 }, [
2422
+ r.mutableConfig.useIndividualScale && !r.mutableConfig.isStacked ? (a(), i(d, { key: 11 }, [
2399
2423
  f("defs", null, [
2400
- (i(!0), a(g, null, N(e.allScales, (l, c) => (i(), a("linearGradient", {
2424
+ (a(!0), i(d, null, I(e.allScales, (l, c) => (a(), i("linearGradient", {
2401
2425
  id: `individual_scale_gradient_${r.uniqueId}_${c}`,
2402
2426
  x1: "0%",
2403
2427
  x2: "100%",
@@ -2408,44 +2432,44 @@ function pr(t, s, o, d, r, e) {
2408
2432
  offset: "0%",
2409
2433
  "stop-color": e.FINAL_CONFIG.chart.backgroundColor,
2410
2434
  "stop-opacity": "0"
2411
- }, null, 8, ql),
2435
+ }, null, 8, Ul),
2412
2436
  f("stop", {
2413
2437
  offset: "100%",
2414
2438
  "stop-color": l.color,
2415
2439
  "stop-opacity": "0.2"
2416
- }, null, 8, Xl)
2417
- ], 8, Yl))), 256))
2440
+ }, null, 8, Zl)
2441
+ ], 8, Xl))), 256))
2418
2442
  ]),
2419
- (i(!0), a(g, null, N(e.allScales, (l, c) => (i(), a("rect", {
2443
+ (a(!0), i(d, null, I(e.allScales, (l, c) => (a(), i("rect", {
2420
2444
  x: l.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + e.xPadding,
2421
2445
  y: e.drawingArea.top,
2422
2446
  width: e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
2423
2447
  height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
2424
2448
  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))
2449
+ onMouseenter: (s) => r.selectedScale = l.groupId,
2450
+ onMouseleave: n[0] || (n[0] = (s) => r.selectedScale = null)
2451
+ }, null, 40, Jl))), 256))
2428
2452
  ], 64)) : u("", !0),
2429
2453
  f("g", null, [
2430
- e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !r.mutableConfig.useIndividualScale ? (i(), a("text", {
2454
+ e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !r.mutableConfig.useIndividualScale ? (a(), i("text", {
2431
2455
  key: 0,
2432
2456
  "font-size": r.fontSizes.yAxis,
2433
2457
  fill: e.FINAL_CONFIG.chart.grid.labels.color,
2434
2458
  transform: `translate(${r.fontSizes.yAxis + e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`,
2435
2459
  "text-anchor": "middle",
2436
2460
  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", {
2461
+ }, T(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, Kl)) : u("", !0),
2462
+ e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (a(), i("text", {
2439
2463
  key: 1,
2440
2464
  "text-anchor": "middle",
2441
2465
  x: r.width / 2,
2442
2466
  y: e.drawingArea.bottom + r.fontSizes.yAxis + r.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,
2443
2467
  "font-size": r.fontSizes.yAxis,
2444
2468
  fill: e.FINAL_CONFIG.chart.grid.labels.color
2445
- }, T(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, Jl)) : u("", !0)
2469
+ }, T(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, Ql)) : u("", !0)
2446
2470
  ]),
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({
2471
+ e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (a(), i("g", jl, [
2472
+ t.$slots["time-label"] ? (a(!0), i(d, { key: 0 }, I(e.timeLabels, (l, c) => p(t.$slots, "time-label", K({
2449
2473
  key: `time_label_${c}`,
2450
2474
  ref_for: !0
2451
2475
  }, {
@@ -2458,39 +2482,27 @@ function pr(t, s, o, d, r, e) {
2458
2482
  content: l.text,
2459
2483
  textAnchor: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2460
2484
  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", {
2485
+ }), void 0, !0)), 128)) : (a(!0), i(d, { key: 1 }, I(e.timeLabels, (l, c) => (a(), i("g", {
2462
2486
  key: `time_label_${c}`
2463
2487
  }, [
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)
2488
+ 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", {
2489
+ key: 0,
2490
+ "text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2491
+ "font-size": r.fontSizes.xAxis,
2492
+ fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
2493
+ 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})`,
2494
+ style: {
2495
+ cursor: "pointer"
2496
+ },
2497
+ onClick: () => e.selectTimeLabel(l, c)
2498
+ }, T(l.text || ""), 9, $l)) : u("", !0)
2487
2499
  ]))), 128))
2488
2500
  ])) : 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", {
2501
+ e.annotationsY.length && !r.mutableConfig.isStacked ? (a(), i("g", er, [
2502
+ (a(!0), i(d, null, I(e.annotationsY, (l) => (a(), i("g", {
2491
2503
  key: l.uid
2492
2504
  }, [
2493
- l.yTop ? (i(), a("line", {
2505
+ l.yTop && l.show ? (a(), i("line", {
2494
2506
  key: 0,
2495
2507
  x1: l.x1,
2496
2508
  y1: l.yTop,
@@ -2501,8 +2513,8 @@ function pr(t, s, o, d, r, e) {
2501
2513
  "stroke-dasharray": l.config.line.strokeDasharray,
2502
2514
  "stroke-linecap": "round",
2503
2515
  style: { animation: "none !important" }
2504
- }, null, 8, er)) : u("", !0),
2505
- l.yBottom ? (i(), a("line", {
2516
+ }, null, 8, tr)) : u("", !0),
2517
+ l.yBottom && l.show ? (a(), i("line", {
2506
2518
  key: 1,
2507
2519
  x1: l.x1,
2508
2520
  y1: l.yBottom,
@@ -2513,21 +2525,21 @@ function pr(t, s, o, d, r, e) {
2513
2525
  "stroke-dasharray": l.config.line.strokeDasharray,
2514
2526
  "stroke-linecap": "round",
2515
2527
  style: { animation: "none !important" }
2516
- }, null, 8, tr)) : u("", !0),
2517
- l.hasArea ? (i(), a("rect", {
2528
+ }, null, 8, lr)) : u("", !0),
2529
+ l.hasArea && l.show ? (a(), i("rect", {
2518
2530
  key: 2,
2519
2531
  y: Math.min(l.yTop, l.yBottom),
2520
2532
  x: l.x1,
2521
2533
  width: e.drawingArea.width,
2522
- height: l.areaHeight,
2534
+ height: e.checkNaN(l.areaHeight, 0),
2523
2535
  fill: e.setOpacity(l.config.area.fill, l.config.area.opacity),
2524
2536
  style: { animation: "none !important" }
2525
- }, null, 8, lr)) : u("", !0),
2526
- l.config.label.text ? (i(), a("rect", K({
2537
+ }, null, 8, rr)) : u("", !0),
2538
+ l.config.label.text && l.show ? (a(), i("rect", K({
2527
2539
  key: 3,
2528
2540
  class: "vue-ui-xy-annotation-label-box"
2529
2541
  }, { ref_for: !0 }, l._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : u("", !0),
2530
- l.config.label.text ? (i(), a("text", {
2542
+ l.config.label.text && l.show ? (a(), i("text", {
2531
2543
  key: 4,
2532
2544
  id: l.id,
2533
2545
  class: "vue-ui-xy-annotation-label",
@@ -2536,24 +2548,24 @@ function pr(t, s, o, d, r, e) {
2536
2548
  "font-size": l.config.label.fontSize,
2537
2549
  fill: l.config.label.color,
2538
2550
  "text-anchor": l.config.label.textAnchor
2539
- }, T(l.config.label.text), 9, rr)) : u("", !0)
2551
+ }, T(l.config.label.text), 9, ar)) : u("", !0)
2540
2552
  ]))), 128))
2541
2553
  ])) : u("", !0),
2542
2554
  f("g", null, [
2543
- (i(!0), a(g, null, N(e.maxSeries, (l, c) => (i(), a("rect", {
2555
+ (a(!0), i(d, null, I(e.maxSeries, (l, c) => (a(), i("rect", {
2544
2556
  key: `tooltip_trap_${c}`,
2545
2557
  x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * c,
2546
2558
  y: e.drawingArea.top,
2547
2559
  height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
2548
2560
  width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
2549
2561
  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)
2562
+ onMouseenter: (s) => e.toggleTooltipVisibility(!0, c),
2563
+ onMouseleave: n[1] || (n[1] = (s) => e.toggleTooltipVisibility(!1)),
2564
+ onClick: (s) => e.selectX(c)
2553
2565
  }, null, 40, ir))), 128))
2554
2566
  ]),
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", {
2567
+ e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(r.selectedSerieIndex) || ![null, void 0].includes(r.selectedMinimapIndex)) ? (a(), i("g", sr, [
2568
+ (a(), i("foreignObject", {
2557
2569
  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
2570
  y: e.drawingArea.bottom,
2559
2571
  width: "200",
@@ -2562,47 +2574,47 @@ function pr(t, s, o, d, r, e) {
2562
2574
  }, [
2563
2575
  f("div", {
2564
2576
  class: "vue-ui-xy-time-tag",
2565
- 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`)
2577
+ style: A(`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
2578
  }, 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)),
2579
+ ], 8, nr)),
2568
2580
  f("circle", {
2569
2581
  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
2582
  cy: e.drawingArea.bottom,
2571
2583
  r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
2572
2584
  fill: e.FINAL_CONFIG.chart.timeTag.circleMarker.color
2573
- }, null, 8, nr)
2585
+ }, null, 8, cr)
2574
2586
  ])) : u("", !0)
2575
2587
  ])) : u("", !0),
2576
- G(t.$slots, "svg", { svg: e.svg }, void 0, !0)
2588
+ p(t.$slots, "svg", { svg: e.svg }, void 0, !0)
2577
2589
  ], 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)
2590
+ t.$slots.watermark ? (a(), i("div", or, [
2591
+ p(t.$slots, "watermark", Y(q({ isPrinting: r.isPrinting || r.isImaging })), void 0, !0)
2580
2592
  ])) : u("", !0),
2581
- (i(!0), a(g, null, N(e.lineSet, (l, c) => (i(), a(g, {
2593
+ (a(!0), i(d, null, I(e.lineSet, (l, c) => (a(), i(d, {
2582
2594
  key: `tag_line_${c}`
2583
2595
  }, [
2584
- (i(!0), a(g, null, N(l.plots, (n, h) => (i(), a(g, {
2596
+ (a(!0), i(d, null, I(l.plots, (s, h) => (a(), i(d, {
2585
2597
  key: `tag_line_${c}_${h}`
2586
2598
  }, [
2587
- [r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(h) && l.useTag && l.useTag === "end" && e.FINAL_CONFIG.line.tag.followValue ? (i(), a("div", {
2599
+ [r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(h) && l.useTag && l.useTag === "end" && e.FINAL_CONFIG.line.tag.followValue ? (a(), i("div", {
2588
2600
  key: 0,
2589
2601
  ref_for: !0,
2590
2602
  ref: (L) => e.setTagRef(c, h, L, "right", "line"),
2591
2603
  class: "vue-ui-xy-tag",
2592
2604
  "data-tag": "right",
2593
- style: y({
2605
+ style: A({
2594
2606
  position: "fixed",
2595
2607
  top: e.placeXYTag({
2596
2608
  svgElement: r.svgRef,
2597
2609
  x: e.drawingArea.right + e.FINAL_CONFIG.line.tag.fontSize / 1.5,
2598
- y: n.y,
2610
+ y: s.y,
2599
2611
  element: r.tagRefs[`${c}_${h}_right_line`],
2600
2612
  position: "right"
2601
2613
  }).top + "px",
2602
2614
  left: e.placeXYTag({
2603
2615
  svgElement: r.svgRef,
2604
2616
  x: e.drawingArea.right + e.FINAL_CONFIG.line.tag.fontSize / 1.5,
2605
- y: n.y,
2617
+ y: s.y,
2606
2618
  element: r.tagRefs[`${c}_${h}_right_line`],
2607
2619
  position: "right"
2608
2620
  }).left + "px",
@@ -2615,46 +2627,46 @@ function pr(t, s, o, d, r, e) {
2615
2627
  opacity: 1
2616
2628
  })
2617
2629
  }, [
2618
- (i(), a("svg", or, [
2630
+ (a(), i("svg", hr, [
2619
2631
  f("path", {
2620
2632
  d: "M 0,10 10,0 10,20 Z",
2621
2633
  fill: l.color,
2622
2634
  stroke: "none"
2623
- }, null, 8, hr)
2635
+ }, null, 8, ur)
2624
2636
  ])),
2625
2637
  f("div", {
2626
2638
  class: "vue-ui-xy-tag-content",
2627
2639
  innerHTML: e.applyDataLabel(
2628
2640
  e.FINAL_CONFIG.line.tag.formatter,
2629
- n.value,
2641
+ s.value,
2630
2642
  l.name,
2631
2643
  {
2632
- datapoint: n,
2644
+ datapoint: s,
2633
2645
  seriesIndex: h,
2634
2646
  serieName: l.name
2635
2647
  }
2636
2648
  )
2637
- }, null, 8, ur)
2649
+ }, null, 8, dr)
2638
2650
  ], 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", {
2651
+ [r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(h) && l.useTag && l.useTag === "start" && e.FINAL_CONFIG.line.tag.followValue ? (a(), i("div", {
2640
2652
  key: 1,
2641
2653
  ref_for: !0,
2642
2654
  ref: (L) => e.setTagRef(c, h, L, "left", "line"),
2643
2655
  class: "vue-ui-xy-tag",
2644
2656
  "data-tag": "left",
2645
- style: y({
2657
+ style: A({
2646
2658
  position: "fixed",
2647
2659
  top: e.placeXYTag({
2648
2660
  svgElement: r.svgRef,
2649
2661
  x: e.drawingArea.left - e.FINAL_CONFIG.line.tag.fontSize / 1.5,
2650
- y: n.y,
2662
+ y: s.y,
2651
2663
  element: r.tagRefs[`${c}_${h}_left_line`],
2652
2664
  position: "left"
2653
2665
  }).top + "px",
2654
2666
  left: e.placeXYTag({
2655
2667
  svgElement: r.svgRef,
2656
2668
  x: e.drawingArea.left - e.FINAL_CONFIG.line.tag.fontSize / 1.5,
2657
- y: n.y,
2669
+ y: s.y,
2658
2670
  element: r.tagRefs[`${c}_${h}_left_line`],
2659
2671
  position: "left"
2660
2672
  }).left + "px",
@@ -2667,54 +2679,54 @@ function pr(t, s, o, d, r, e) {
2667
2679
  opacity: 1
2668
2680
  })
2669
2681
  }, [
2670
- (i(), a("svg", dr, [
2682
+ (a(), i("svg", gr, [
2671
2683
  f("path", {
2672
2684
  d: "M 0,0 10,10 0,20 Z",
2673
2685
  fill: l.color,
2674
2686
  stroke: "none"
2675
- }, null, 8, gr)
2687
+ }, null, 8, fr)
2676
2688
  ])),
2677
2689
  f("div", {
2678
2690
  class: "vue-ui-xy-tag-content",
2679
2691
  innerHTML: e.applyDataLabel(
2680
2692
  e.FINAL_CONFIG.line.tag.formatter,
2681
- n.value,
2693
+ s.value,
2682
2694
  l.name,
2683
2695
  {
2684
- datapoint: n,
2696
+ datapoint: s,
2685
2697
  seriesIndex: h,
2686
2698
  serieName: l.name
2687
2699
  }
2688
2700
  )
2689
- }, null, 8, fr)
2701
+ }, null, 8, Ir)
2690
2702
  ], 4)) : u("", !0)
2691
2703
  ], 64))), 128))
2692
2704
  ], 64))), 128)),
2693
- (i(!0), a(g, null, N(e.plotSet, (l, c) => (i(), a(g, {
2705
+ (a(!0), i(d, null, I(e.plotSet, (l, c) => (a(), i(d, {
2694
2706
  key: `tag_plot_${c}`
2695
2707
  }, [
2696
- (i(!0), a(g, null, N(l.plots, (n, h) => (i(), a(g, {
2708
+ (a(!0), i(d, null, I(l.plots, (s, h) => (a(), i(d, {
2697
2709
  key: `tag_plot_${c}_${h}`
2698
2710
  }, [
2699
- [r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(h) && l.useTag && l.useTag === "end" && e.FINAL_CONFIG.plot.tag.followValue ? (i(), a("div", {
2711
+ [r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(h) && l.useTag && l.useTag === "end" && e.FINAL_CONFIG.plot.tag.followValue ? (a(), i("div", {
2700
2712
  key: 0,
2701
2713
  ref_for: !0,
2702
2714
  ref: (L) => e.setTagRef(c, h, L, "right", "plot"),
2703
2715
  class: "vue-ui-xy-tag",
2704
2716
  "data-tag": "right",
2705
- style: y({
2717
+ style: A({
2706
2718
  position: "fixed",
2707
2719
  top: e.placeXYTag({
2708
2720
  svgElement: r.svgRef,
2709
2721
  x: e.drawingArea.right + e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
2710
- y: n.y,
2722
+ y: s.y,
2711
2723
  element: r.tagRefs[`${c}_${h}_right_plot`],
2712
2724
  position: "right"
2713
2725
  }).top + "px",
2714
2726
  left: e.placeXYTag({
2715
2727
  svgElement: r.svgRef,
2716
2728
  x: e.drawingArea.right + e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
2717
- y: n.y,
2729
+ y: s.y,
2718
2730
  element: r.tagRefs[`${c}_${h}_right_plot`],
2719
2731
  position: "right"
2720
2732
  }).left + "px",
@@ -2727,46 +2739,46 @@ function pr(t, s, o, d, r, e) {
2727
2739
  opacity: 1
2728
2740
  })
2729
2741
  }, [
2730
- (i(), a("svg", Ir, [
2742
+ (a(), i("svg", Nr, [
2731
2743
  f("path", {
2732
2744
  d: "M 0,10 10,0 10,20 Z",
2733
2745
  fill: l.color,
2734
2746
  stroke: "none"
2735
- }, null, 8, Nr)
2747
+ }, null, 8, xr)
2736
2748
  ])),
2737
2749
  f("div", {
2738
2750
  class: "vue-ui-xy-tag-content",
2739
2751
  innerHTML: e.applyDataLabel(
2740
2752
  e.FINAL_CONFIG.plot.tag.formatter,
2741
- n.value,
2753
+ s.value,
2742
2754
  l.name,
2743
2755
  {
2744
- datapoint: n,
2756
+ datapoint: s,
2745
2757
  seriesIndex: h,
2746
2758
  serieName: l.name
2747
2759
  }
2748
2760
  )
2749
2761
  }, null, 8, mr)
2750
2762
  ], 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", {
2763
+ [r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(h) && l.useTag && l.useTag === "start" && e.FINAL_CONFIG.plot.tag.followValue ? (a(), i("div", {
2752
2764
  key: 1,
2753
2765
  ref_for: !0,
2754
2766
  ref: (L) => e.setTagRef(c, h, L, "left", "plot"),
2755
2767
  class: "vue-ui-xy-tag",
2756
2768
  "data-tag": "left",
2757
- style: y({
2769
+ style: A({
2758
2770
  position: "fixed",
2759
2771
  top: e.placeXYTag({
2760
2772
  svgElement: r.svgRef,
2761
2773
  x: e.drawingArea.left - e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
2762
- y: n.y,
2774
+ y: s.y,
2763
2775
  element: r.tagRefs[`${c}_${h}_left_plot`],
2764
2776
  position: "left"
2765
2777
  }).top + "px",
2766
2778
  left: e.placeXYTag({
2767
2779
  svgElement: r.svgRef,
2768
2780
  x: e.drawingArea.left - e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
2769
- y: n.y,
2781
+ y: s.y,
2770
2782
  element: r.tagRefs[`${c}_${h}_left_plot`],
2771
2783
  position: "left"
2772
2784
  }).left + "px",
@@ -2779,30 +2791,30 @@ function pr(t, s, o, d, r, e) {
2779
2791
  opacity: 1
2780
2792
  })
2781
2793
  }, [
2782
- (i(), a("svg", xr, [
2794
+ (a(), i("svg", br, [
2783
2795
  f("path", {
2784
2796
  d: "M 0,0 10,10 0,20 Z",
2785
2797
  fill: l.color,
2786
2798
  stroke: "none"
2787
- }, null, 8, br)
2799
+ }, null, 8, Fr)
2788
2800
  ])),
2789
2801
  f("div", {
2790
2802
  class: "vue-ui-xy-tag-content",
2791
2803
  innerHTML: e.applyDataLabel(
2792
2804
  e.FINAL_CONFIG.plot.tag.formatter,
2793
- n.value,
2805
+ s.value,
2794
2806
  l.name,
2795
2807
  {
2796
- datapoint: n,
2808
+ datapoint: s,
2797
2809
  seriesIndex: h,
2798
2810
  serieName: l.name
2799
2811
  }
2800
2812
  )
2801
- }, null, 8, Fr)
2813
+ }, null, 8, _r)
2802
2814
  ], 4)) : u("", !0)
2803
2815
  ], 64))), 128))
2804
2816
  ], 64))), 128)),
2805
- e.isDataset ? u("", !0) : (i(), B(S, {
2817
+ e.isDataset ? u("", !0) : (a(), W(w, {
2806
2818
  key: 6,
2807
2819
  config: {
2808
2820
  type: "line",
@@ -2820,7 +2832,7 @@ function pr(t, s, o, d, r, e) {
2820
2832
  }
2821
2833
  }
2822
2834
  }, null, 8, ["config"])),
2823
- e.FINAL_CONFIG.chart.zoom.show && r.maxX > 6 && e.isDataset ? (i(), B(k, {
2835
+ e.FINAL_CONFIG.chart.zoom.show && r.maxX > 6 && e.isDataset ? (a(), W(G, {
2824
2836
  ref: "chartSlicer",
2825
2837
  key: `slicer_${r.slicerStep}`,
2826
2838
  background: e.FINAL_CONFIG.chart.zoom.color,
@@ -2846,9 +2858,9 @@ function pr(t, s, o, d, r, e) {
2846
2858
  valueStart: r.slicer.start,
2847
2859
  valueEnd: r.slicer.end,
2848
2860
  start: r.slicer.start,
2849
- "onUpdate:start": s[2] || (s[2] = (l) => r.slicer.start = l),
2861
+ "onUpdate:start": n[2] || (n[2] = (l) => r.slicer.start = l),
2850
2862
  end: r.slicer.end,
2851
- "onUpdate:end": s[3] || (s[3] = (l) => r.slicer.end = l),
2863
+ "onUpdate:end": n[3] || (n[3] = (l) => r.slicer.end = l),
2852
2864
  refreshStartPoint: e.FINAL_CONFIG.chart.zoom.startIndex !== null ? e.FINAL_CONFIG.chart.zoom.startIndex : 0,
2853
2865
  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
2866
  enableRangeHandles: e.FINAL_CONFIG.chart.zoom.enableRangeHandles,
@@ -2857,22 +2869,22 @@ function pr(t, s, o, d, r, e) {
2857
2869
  onTrapMouse: e.selectMinimapIndex
2858
2870
  }, {
2859
2871
  "reset-action": V(({ reset: l }) => [
2860
- G(t.$slots, "reset-action", Y(q({ reset: l })), void 0, !0)
2872
+ p(t.$slots, "reset-action", Y(q({ reset: l })), void 0, !0)
2861
2873
  ]),
2862
2874
  _: 3
2863
2875
  }, 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", {
2876
+ e.FINAL_CONFIG.chart.legend.show ? (a(), i("div", {
2865
2877
  key: 8,
2866
2878
  ref: "chartLegend",
2867
2879
  class: "vue-ui-xy-legend",
2868
- style: y(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
2880
+ style: A(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
2869
2881
  }, [
2870
- (i(!0), a(g, null, N(e.absoluteDataset, (l, c) => (i(), a("div", {
2882
+ (a(!0), i(d, null, I(e.absoluteDataset, (l, c) => (a(), i("div", {
2871
2883
  key: `div_legend_item_${c}`,
2872
- onClick: (n) => e.segregate(l),
2884
+ onClick: (s) => e.segregate(l),
2873
2885
  class: E({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": r.segregatedSeries.includes(l.id) })
2874
2886
  }, [
2875
- r.icons[l.type] === "line" ? (i(), a("svg", yr, [
2887
+ r.icons[l.type] === "line" ? (a(), i("svg", Ar, [
2876
2888
  f("rect", {
2877
2889
  x: "0",
2878
2890
  y: "7.5",
@@ -2882,8 +2894,8 @@ function pr(t, s, o, d, r, e) {
2882
2894
  height: "3",
2883
2895
  width: "20",
2884
2896
  fill: l.color
2885
- }, null, 8, Ar),
2886
- U(v, {
2897
+ }, null, 8, Lr),
2898
+ U(k, {
2887
2899
  plot: { x: 10, y: 9 },
2888
2900
  radius: 4,
2889
2901
  color: l.color,
@@ -2891,8 +2903,8 @@ function pr(t, s, o, d, r, e) {
2891
2903
  stroke: e.FINAL_CONFIG.chart.backgroundColor,
2892
2904
  strokeWidth: 0.5
2893
2905
  }, 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", {
2906
+ ])) : r.icons[l.type] === "bar" ? (a(), i("svg", Cr, [
2907
+ r.icons[l.type] === "bar" && t.$slots.pattern ? (a(), i("rect", {
2896
2908
  key: 0,
2897
2909
  x: "0",
2898
2910
  y: "0",
@@ -2901,8 +2913,8 @@ function pr(t, s, o, d, r, e) {
2901
2913
  width: "40",
2902
2914
  stroke: "none",
2903
2915
  fill: l.color
2904
- }, null, 8, Cr)) : u("", !0),
2905
- r.icons[l.type] === "bar" ? (i(), a("rect", {
2916
+ }, null, 8, Sr)) : u("", !0),
2917
+ r.icons[l.type] === "bar" ? (a(), i("rect", {
2906
2918
  key: 1,
2907
2919
  x: "0",
2908
2920
  y: "0",
@@ -2911,9 +2923,9 @@ function pr(t, s, o, d, r, e) {
2911
2923
  width: "40",
2912
2924
  stroke: "none",
2913
2925
  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, {
2926
+ }, null, 8, kr)) : u("", !0)
2927
+ ])) : (a(), i("svg", wr, [
2928
+ U(k, {
2917
2929
  plot: { x: 6, y: 6 },
2918
2930
  radius: 5,
2919
2931
  color: l.color,
@@ -2921,16 +2933,16 @@ function pr(t, s, o, d, r, e) {
2921
2933
  }, null, 8, ["color", "shape"])
2922
2934
  ])),
2923
2935
  f("span", {
2924
- style: y(`color:${e.FINAL_CONFIG.chart.legend.color}`)
2936
+ style: A(`color:${e.FINAL_CONFIG.chart.legend.color}`)
2925
2937
  }, 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)
2938
+ ], 10, yr))), 128))
2939
+ ], 4)) : (a(), i("div", Or, [
2940
+ p(t.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
2929
2941
  ], 512)),
2930
- t.$slots.source ? (i(), a("div", Or, [
2931
- G(t.$slots, "source", {}, void 0, !0)
2942
+ t.$slots.source ? (a(), i("div", Gr, [
2943
+ p(t.$slots, "source", {}, void 0, !0)
2932
2944
  ], 512)) : u("", !0),
2933
- U(O, {
2945
+ U(N, {
2934
2946
  show: r.mutableConfig.showTooltip && r.isTooltip,
2935
2947
  backgroundColor: e.FINAL_CONFIG.chart.tooltip.backgroundColor,
2936
2948
  color: e.FINAL_CONFIG.chart.tooltip.color,
@@ -2947,14 +2959,14 @@ function pr(t, s, o, d, r, e) {
2947
2959
  isCustom: e.FINAL_CONFIG.chart.tooltip.customFormat && typeof e.FINAL_CONFIG.chart.tooltip.customFormat == "function"
2948
2960
  }, {
2949
2961
  "tooltip-before": V(() => [
2950
- G(t.$slots, "tooltip-before", Y(q({ ...e.dataTooltipSlot })), void 0, !0)
2962
+ p(t.$slots, "tooltip-before", Y(q({ ...e.dataTooltipSlot })), void 0, !0)
2951
2963
  ]),
2952
2964
  "tooltip-after": V(() => [
2953
- G(t.$slots, "tooltip-after", Y(q({ ...e.dataTooltipSlot })), void 0, !0)
2965
+ p(t.$slots, "tooltip-after", Y(q({ ...e.dataTooltipSlot })), void 0, !0)
2954
2966
  ]),
2955
2967
  _: 3
2956
2968
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
2957
- e.isDataset ? (i(), B(p, {
2969
+ e.isDataset ? (a(), W(M, {
2958
2970
  key: 11,
2959
2971
  hideDetails: "",
2960
2972
  config: {
@@ -2972,17 +2984,17 @@ function pr(t, s, o, d, r, e) {
2972
2984
  }, {
2973
2985
  content: V(() => [
2974
2986
  f("div", {
2975
- style: y(`${r.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
2987
+ style: A(`${r.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
2976
2988
  }, [
2977
- f("div", Gr, [
2989
+ f("div", vr, [
2978
2990
  Ee(f("input", {
2979
2991
  type: "checkbox",
2980
- "onUpdate:modelValue": s[4] || (s[4] = (l) => r.showSparklineTable = l)
2992
+ "onUpdate:modelValue": n[4] || (n[4] = (l) => r.showSparklineTable = l)
2981
2993
  }, null, 512), [
2982
2994
  [Ye, r.showSparklineTable]
2983
2995
  ]),
2984
2996
  f("div", {
2985
- onClick: s[5] || (s[5] = (l) => r.showSparklineTable = !r.showSparklineTable),
2997
+ onClick: n[5] || (n[5] = (l) => r.showSparklineTable = !r.showSparklineTable),
2986
2998
  style: { cursor: "pointer" }
2987
2999
  }, [
2988
3000
  U(F, {
@@ -2992,21 +3004,21 @@ function pr(t, s, o, d, r, e) {
2992
3004
  }, null, 8, ["stroke"])
2993
3005
  ])
2994
3006
  ]),
2995
- r.showSparklineTable ? (i(), B(C, {
3007
+ r.showSparklineTable ? (a(), W(C, {
2996
3008
  key: `sparkline_${r.segregateStep}`,
2997
3009
  dataset: e.tableSparklineDataset,
2998
3010
  config: e.tableSparklineConfig
2999
- }, null, 8, ["dataset", "config"])) : (i(), B(w, {
3011
+ }, null, 8, ["dataset", "config"])) : (a(), W(O, {
3000
3012
  key: `table_${r.tableStep}`,
3001
3013
  colNames: e.dataTable.colNames,
3002
3014
  head: e.dataTable.head,
3003
3015
  body: e.dataTable.body,
3004
3016
  config: e.dataTable.config,
3005
3017
  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)
3018
+ onClose: n[6] || (n[6] = (l) => r.mutableConfig.showTable = !1)
3007
3019
  }, {
3008
3020
  th: V(({ th: l }) => [
3009
- f("div", { innerHTML: l }, null, 8, vr)
3021
+ f("div", { innerHTML: l }, null, 8, pr)
3010
3022
  ]),
3011
3023
  td: V(({ td: l }) => [
3012
3024
  qe(T(isNaN(Number(l)) ? l : e.dataLabel({
@@ -3024,7 +3036,7 @@ function pr(t, s, o, d, r, e) {
3024
3036
  }, 8, ["config"])) : u("", !0)
3025
3037
  ], 46, je);
3026
3038
  }
3027
- const Br = /* @__PURE__ */ Je(Qe, [["render", pr], ["__scopeId", "data-v-d3870d39"]]);
3039
+ const Br = /* @__PURE__ */ Je(Qe, [["render", Mr], ["__scopeId", "data-v-df7f718b"]]);
3028
3040
  export {
3029
3041
  Br as default
3030
3042
  };