vue-data-ui 3.0.0-next.0 → 3.0.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/README.md +92 -66
  2. package/dist/{Arrow-CzFtSJ1v.js → Arrow-BKKETqRi.js} +1 -1
  3. package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-Duz4Bd3A.js} +2 -2
  4. package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BAHAKjob.js} +1 -1
  5. package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-oPTO1J9Q.js} +2 -2
  6. package/dist/{DataTable-BBbOgI-a.js → DataTable-vByThHdN.js} +2 -2
  7. package/dist/{Legend-Q4bOb-Nf.js → Legend-CIElSUHU.js} +11 -11
  8. package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CsY6Bf4e.js} +3 -3
  9. package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-B0wGS6pw.js} +1 -1
  10. package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-7o0xS-d4.js} +32 -32
  11. package/dist/{Shape-DbsLJ-SE.js → Shape-Blrp5ZfP.js} +1 -1
  12. package/dist/{Slicer-DZEFp2GU.js → Slicer-CcM8hzCn.js} +2 -2
  13. package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-iaouYun8.js} +1 -1
  14. package/dist/{Title-D29apS4l.js → Title-CWxjC3bE.js} +1 -1
  15. package/dist/{Tooltip-hVZUY_s5.js → Tooltip-Cq9HywcX.js} +1 -1
  16. package/dist/{UserOptions-Bdit7AWO.js → UserOptions-BEBaPSlU.js} +137 -129
  17. package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-CrAOuxmd.js} +1 -1
  18. package/dist/img-D3JvqNF8.js +33 -0
  19. package/dist/{index-DMqAxz7R.js → index-BSa4GlHG.js} +30 -8
  20. package/dist/pdf-DROWzopj.js +58 -0
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1018 -166
  23. package/dist/types/vue-data-ui.d.ts +1018 -166
  24. package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-uR74_CFG.js} +1 -1
  25. package/dist/{usePrinter-COkTjv6C.js → usePrinter-j3g1L2nh.js} +2 -2
  26. package/dist/vue-data-ui-BzMRz9Un.js +314 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-BAOGEe-m.js} +261 -245
  29. package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DzF-SPaZ.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-BRdQ44O4.js} +233 -217
  31. package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-mjIKrhYa.js} +2 -2
  32. package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-CLYmLvSB.js} +172 -156
  33. package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-BFLmoEEN.js} +271 -254
  34. package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-V89TMa5p.js} +17 -16
  35. package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-C7eNjkFo.js} +418 -402
  36. package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-BuYDLE7K.js} +256 -240
  37. package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CCMbsOpk.js} +234 -218
  38. package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-BrKIImfp.js} +2 -2
  39. package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-WMKjx3iE.js} +62 -62
  40. package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-BoYPIuXn.js} +2 -2
  41. package/dist/vue-ui-donut-DJVqqXEb.js +1338 -0
  42. package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-DSG8NUG0.js} +370 -357
  43. package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-BMveoLd_.js} +216 -200
  44. package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-Dnsik-8f.js} +217 -201
  45. package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-CQ0nHCvy.js} +213 -197
  46. package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-D5L31IXm.js} +215 -202
  47. package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-BnuDe4Wj.js} +220 -204
  48. package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DYYw-JEs.js} +3 -3
  49. package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-9KJYiKzE.js} +244 -224
  50. package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-QOaVWh5L.js} +268 -252
  51. package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-EtTBwHGS.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CRnUCpsm.js} +2 -2
  53. package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-Bfk3Vhbi.js} +204 -188
  54. package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-BfRkWvgp.js} +206 -190
  55. package/dist/vue-ui-nested-donuts-Ck9Zm1UU.js +1177 -0
  56. package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-DF7Z21x-.js} +196 -180
  57. package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-JVogg7k5.js} +194 -178
  58. package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-DpFjMZoK.js} +321 -305
  59. package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-NfXEFkoL.js} +347 -331
  60. package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-Dg8UovnR.js} +193 -177
  61. package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-D3cpdLRt.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-BZTTPLCi.js} +188 -172
  63. package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-CtY_J3hk.js} +212 -196
  64. package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BiA-bRgU.js} +223 -210
  65. package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-C3sCChYD.js} +288 -273
  66. package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-DY48gQ96.js} +3 -3
  67. package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DopwmgcY.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-DO7P-2x8.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-mqLbTvAg.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-CdfZYUAZ.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DAy--kFA.js} +4 -4
  72. package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-KkG0FnmI.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-LDRannBB.js} +3 -3
  74. package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-Bys4yWs_.js} +497 -474
  75. package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-DUBqioS2.js} +241 -225
  76. package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-CPWgP-71.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DfrMVDEE.js} +26 -25
  78. package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-CNC7Lp0t.js} +8 -7
  79. package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-Bby5nWIi.js} +170 -154
  80. package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-ym9etXUy.js} +5 -5
  81. package/dist/vue-ui-tiremarks-C0V_XedF.js +358 -0
  82. package/dist/vue-ui-treemap-B5k0NEO3.js +965 -0
  83. package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DRmHFEMu.js} +335 -319
  84. package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-DrEQsTIO.js} +234 -221
  85. package/dist/vue-ui-wheel-BOTBLBOr.js +352 -0
  86. package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-Btay9XOs.js} +249 -233
  87. package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-zBvIXrWH.js} +239 -223
  88. package/dist/{vue-ui-xy-C_OUyzTC.js → vue-ui-xy-C7uPPKm9.js} +700 -686
  89. package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-CDjYeEkq.js} +447 -431
  90. package/package.json +1 -1
  91. package/dist/img-BeMVTwmF.js +0 -20
  92. package/dist/pdf-DPxOdzfi.js +0 -51
  93. package/dist/vue-data-ui-nceqWRts.js +0 -301
  94. package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
  95. package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
  96. package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
  97. package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
  98. package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
@@ -1,13 +1,14 @@
1
- import { R as q, _ as ie, a8 as ue, a9 as ce, aa as de, ab as ge, ac as fe, ad as Ie, ae as xe, c as ne, A as Ne, E as me, w as be, s as Fe, o as _e, a2 as Ae, af as ye, x as Le, C as Ce, y as Se, a7 as ke, e as we, r as Oe, f as oe, I as Ge, ag as ve, U as pe, V as ze, q as Me, b as Te, z as Pe, d as Ve, ah as Re, v as He, ai as Be, D as De, a5 as We, aj as Ee, i as Ye, F as Xe, L as qe, u as Ue, p as Ze, B as Je, a as Ke, t as Qe } from "./index-DMqAxz7R.js";
1
+ import { R as q, _ as re, a8 as ue, a9 as ce, aa as de, ab as ge, ac as fe, ad as Ie, ae as xe, c as ne, A as Ne, E as me, w as be, s as Fe, o as _e, a2 as ye, af as Ae, x as Le, C as Ce, y as Se, a7 as we, e as ke, r as Oe, f as oe, I as Ge, ag as ve, U as pe, V as ze, q as Me, b as Te, z as Pe, d as Ve, ah as Re, v as Be, ai as He, D as De, a5 as We, aj as Ee, i as Ye, F as Xe, L as qe, u as Ue, p as Ze, B as Je, a as Ke, t as Qe } from "./index-BSa4GlHG.js";
2
2
  import { u as je } from "./useMouse-AicQS8Vf.js";
3
- import { u as re } from "./useNestedProp-YgN3FV_8.js";
3
+ import { u as ae } from "./useNestedProp-uR74_CFG.js";
4
4
  import { u as $e } from "./useTimeLabels-Mrr0jrpL.js";
5
- import { defineAsyncComponent as Z, resolveComponent as X, createElementBlock as s, openBlock as r, normalizeStyle as _, normalizeClass as j, createBlock as U, createCommentVNode as u, createVNode as le, createSlots as et, withCtx as D, renderSlot as G, normalizeProps as $, guardReactiveProps as ee, createElementVNode as I, Fragment as d, renderList as x, toDisplayString as V, mergeProps as se, withDirectives as tt, vModelCheckbox as lt, createTextVNode as at } from "vue";
6
- import { S as it } from "./Slicer-DZEFp2GU.js";
7
- import rt from "./Title-D29apS4l.js";
8
- import { _ as st } from "./Shape-DbsLJ-SE.js";
9
- import { _ as nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- const ct = ne(), ot = {
5
+ import { defineAsyncComponent as Z, resolveComponent as X, createElementBlock as s, openBlock as a, normalizeStyle as _, normalizeClass as j, createBlock as U, createCommentVNode as u, createVNode as le, createSlots as et, withCtx as D, renderSlot as G, normalizeProps as $, guardReactiveProps as ee, createElementVNode as I, Fragment as d, renderList as x, toDisplayString as V, mergeProps as se, withDirectives as tt, vModelCheckbox as lt, createTextVNode as it } from "vue";
6
+ import { S as rt } from "./Slicer-CcM8hzCn.js";
7
+ import at from "./Title-CWxjC3bE.js";
8
+ import { _ as st } from "./Shape-Blrp5ZfP.js";
9
+ import nt from "./img-D3JvqNF8.js";
10
+ import { _ as ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ const ot = ne(), ht = {
11
12
  name: "vue-ui-xy",
12
13
  props: {
13
14
  config: {
@@ -24,20 +25,20 @@ const ct = ne(), ot = {
24
25
  }
25
26
  },
26
27
  components: {
27
- Slicer: it,
28
+ Slicer: rt,
28
29
  // Must be ready in responsive mode
29
- Title: rt,
30
+ Title: at,
30
31
  // Must be ready in responsive mode
31
32
  Shape: st,
32
- DataTable: Z(() => import("./DataTable-BBbOgI-a.js")),
33
- Tooltip: Z(() => import("./Tooltip-hVZUY_s5.js")),
34
- UserOptions: Z(() => import("./UserOptions-Bdit7AWO.js")),
35
- BaseIcon: Z(() => import("./BaseIcon-DoDjTdD5.js")),
36
- TableSparkline: Z(() => import("./vue-ui-table-sparkline-DkOaHx5L.js")),
37
- Skeleton: Z(() => import("./vue-ui-skeleton-CjN2ZdgT.js")),
38
- Accordion: Z(() => import("./vue-ui-accordion-P6eFHGQp.js")),
39
- PackageVersion: Z(() => import("./PackageVersion-D0VPY8-5.js")),
40
- PenAndPaper: Z(() => import("./PenAndPaper-DhBJsnob.js"))
33
+ DataTable: Z(() => import("./DataTable-vByThHdN.js")),
34
+ Tooltip: Z(() => import("./Tooltip-Cq9HywcX.js")),
35
+ UserOptions: Z(() => import("./UserOptions-BEBaPSlU.js")),
36
+ BaseIcon: Z(() => import("./BaseIcon-BAHAKjob.js")),
37
+ TableSparkline: Z(() => import("./vue-ui-table-sparkline-CNC7Lp0t.js")),
38
+ Skeleton: Z(() => import("./vue-ui-skeleton-DY48gQ96.js")),
39
+ Accordion: Z(() => import("./vue-ui-accordion-DzF-SPaZ.js")),
40
+ PackageVersion: Z(() => import("./PackageVersion-B0wGS6pw.js")),
41
+ PenAndPaper: Z(() => import("./PenAndPaper-7o0xS-d4.js"))
41
42
  },
42
43
  data() {
43
44
  this.dataset.forEach((f, l) => {
@@ -48,7 +49,7 @@ const ct = ne(), ot = {
48
49
  index: l
49
50
  });
50
51
  });
51
- const a = this.config.downsample && this.config.downsample.threshold ? this.config.downsample.threshold : 500, n = Math.max(...this.dataset.map((f) => this.largestTriangleThreeBucketsArray({ data: f.series, threshold: a }).length)), h = {
52
+ const i = this.config.downsample && this.config.downsample.threshold ? this.config.downsample.threshold : 500, n = Math.max(...this.dataset.map((f) => this.largestTriangleThreeBucketsArray({ data: f.series, threshold: i }).length)), h = {
52
53
  start: 0,
53
54
  end: n
54
55
  };
@@ -106,7 +107,7 @@ const ct = ne(), ot = {
106
107
  maxX: n,
107
108
  showSparklineTable: !0,
108
109
  segregateStep: 0,
109
- sliderId: ct,
110
+ sliderId: ot,
110
111
  fontSizes: {
111
112
  xAxis: 18,
112
113
  yAxis: 12,
@@ -130,12 +131,12 @@ const ct = ne(), ot = {
130
131
  },
131
132
  watch: {
132
133
  "mutableConfig.isStacked": {
133
- async handler(a) {
134
+ async handler(i) {
134
135
  await this.$nextTick(), this.setViewBox(), this.forceResizeObserver();
135
136
  }
136
137
  },
137
138
  dataset: {
138
- handler(a, n) {
139
+ handler(i, n) {
139
140
  this.maxX = Math.max(...this.dataset.map((h) => this.largestTriangleThreeBucketsArray({
140
141
  data: h.series,
141
142
  threshold: this.FINAL_CONFIG.downsample.threshold
@@ -147,7 +148,7 @@ const ct = ne(), ot = {
147
148
  deep: !0
148
149
  },
149
150
  config: {
150
- handler(a, n) {
151
+ handler(i, n) {
151
152
  this.FINAL_CONFIG = this.prepareConfig(), this.prepareChart(), this.titleStep += 1, this.tableStep += 1, this.mutableConfig = {
152
153
  dataLabels: {
153
154
  show: !0
@@ -163,15 +164,15 @@ const ct = ne(), ot = {
163
164
  },
164
165
  computed: {
165
166
  viewBoxParts() {
166
- const [a, n, h, f] = this.viewBox.split(" ").map(Number);
167
- return { x: a, y: n, width: h, height: f };
167
+ const [i, n, h, f] = this.viewBox.split(" ").map(Number);
168
+ return { x: i, y: n, width: h, height: f };
168
169
  },
169
170
  locale() {
170
171
  return this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.formatter.locale;
171
172
  },
172
173
  chartAriaLabel() {
173
- const a = this.FINAL_CONFIG.chart.title.text || "Chart visualization", n = this.FINAL_CONFIG.chart.title.subtitle.text || "";
174
- return `${a}. ${n}`;
174
+ const i = this.FINAL_CONFIG.chart.title.text || "Chart visualization", n = this.FINAL_CONFIG.chart.title.subtitle.text || "";
175
+ return `${i}. ${n}`;
175
176
  },
176
177
  optimize() {
177
178
  return {
@@ -183,9 +184,9 @@ const ct = ne(), ot = {
183
184
  },
184
185
  minimap() {
185
186
  if (!this.FINAL_CONFIG.chart.zoom.minimap.show) return [];
186
- const a = this.datasetWithIds.filter((l) => !this.segregatedSeries.includes(l.id)), n = Math.max(...a.map((l) => l.series.length)), h = [];
187
+ const i = this.datasetWithIds.filter((l) => !this.segregatedSeries.includes(l.id)), n = Math.max(...i.map((l) => l.series.length)), h = [];
187
188
  for (let l = 0; l < n; l += 1)
188
- h.push(a.map((e) => e.series[l] || 0).reduce((e, i) => (e || 0) + (i || 0), 0));
189
+ h.push(i.map((e) => e.series[l] || 0).reduce((e, r) => (e || 0) + (r || 0), 0));
189
190
  const f = Math.min(...h);
190
191
  return h.map((l) => l + (f < 0 ? Math.abs(f) : 0));
191
192
  },
@@ -199,7 +200,7 @@ const ct = ne(), ot = {
199
200
  return this.FINAL_CONFIG.chart.zoom.color;
200
201
  },
201
202
  allScales() {
202
- const a = this.lineSet.map((l) => ({
203
+ const i = this.lineSet.map((l) => ({
203
204
  name: l.name,
204
205
  color: l.color,
205
206
  scale: l.individualScale,
@@ -234,7 +235,7 @@ const ct = ne(), ot = {
234
235
  id: l.id,
235
236
  yOffset: l.yOffset || 0,
236
237
  individualHeight: l.individualHeight || this.drawingArea.height
237
- })), f = this.mutableConfig.useIndividualScale && !this.mutableConfig.isStacked ? Object.values(this.scaleGroups) : [...a, ...n, ...h];
238
+ })), f = this.mutableConfig.useIndividualScale && !this.mutableConfig.isStacked ? Object.values(this.scaleGroups) : [...i, ...n, ...h];
238
239
  return f.flatMap((l) => l).length, f.flatMap((l, e) => ({
239
240
  unique: l.unique,
240
241
  id: l.id,
@@ -246,9 +247,9 @@ const ct = ne(), ot = {
246
247
  yOffset: l.yOffset,
247
248
  individualHeight: l.individualHeight,
248
249
  x: this.mutableConfig.isStacked ? this.drawingArea.left : this.drawingArea.left - e * (this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + this.fontSizes.dataLabels * 2),
249
- yLabels: l.scaleYLabels || l.scale.ticks.map((i) => ({
250
- y: i >= 0 ? l.zero - l.individualHeight * (i / l.max) : l.zero + l.individualHeight * Math.abs(i) / l.max,
251
- value: i
250
+ yLabels: l.scaleYLabels || l.scale.ticks.map((r) => ({
251
+ y: r >= 0 ? l.zero - l.individualHeight * (r / l.max) : l.zero + l.individualHeight * Math.abs(r) / l.max,
252
+ value: r
252
253
  }))
253
254
  }));
254
255
  },
@@ -256,19 +257,19 @@ const ct = ne(), ot = {
256
257
  return !!this.dataset && this.dataset.length;
257
258
  },
258
259
  chartFont() {
259
- const a = document.getElementById(`vue-ui-xy_${this.uniqueId}`);
260
- return window.getComputedStyle(a, null).getPropertyValue("font-family");
260
+ const i = document.getElementById(`vue-ui-xy_${this.uniqueId}`);
261
+ return window.getComputedStyle(i, null).getPropertyValue("font-family");
261
262
  },
262
263
  FINAL_CONFIG: {
263
264
  get: function() {
264
265
  return this.prepareConfig();
265
266
  },
266
- set: function(a) {
267
- return a;
267
+ set: function(i) {
268
+ return i;
268
269
  }
269
270
  },
270
271
  hasHighlightArea() {
271
- return Array.isArray(this.FINAL_CONFIG.chart.highlightArea) ? this.FINAL_CONFIG.chart.highlightArea.some((a) => a.show) : this.FINAL_CONFIG.chart.highlightArea && this.FINAL_CONFIG.chart.highlightArea.show;
272
+ return Array.isArray(this.FINAL_CONFIG.chart.highlightArea) ? this.FINAL_CONFIG.chart.highlightArea.some((i) => i.show) : this.FINAL_CONFIG.chart.highlightArea && this.FINAL_CONFIG.chart.highlightArea.show;
272
273
  },
273
274
  highlightAreas() {
274
275
  if (Array.isArray(this.FINAL_CONFIG.chart.highlightArea))
@@ -276,8 +277,8 @@ const ct = ne(), ot = {
276
277
  ...n,
277
278
  span: n.from === n.to ? 1 : n.to < n.from ? 0 : n.to - n.from + 1
278
279
  }));
279
- const a = this.FINAL_CONFIG.chart.highlightArea;
280
- return [{ ...a, span: a.from === a.to ? 1 : a.to < a.from ? 0 : a.to - a.from + 1 }];
280
+ const i = this.FINAL_CONFIG.chart.highlightArea;
281
+ return [{ ...i, span: i.from === i.to ? 1 : i.to < i.from ? 0 : i.to - i.from + 1 }];
281
282
  },
282
283
  xPadding() {
283
284
  return this.FINAL_CONFIG.chart.grid.position === "middle" ? 0 : this.drawingArea.width / this.maxSeries / 2;
@@ -289,45 +290,45 @@ const ct = ne(), ot = {
289
290
  return this.niceScale.max + this.relativeZero;
290
291
  },
291
292
  datasetWithIds() {
292
- return this.useSafeValues ? this.dataset.map((a, n) => ({
293
- ...a,
293
+ return this.useSafeValues ? this.dataset.map((i, n) => ({
294
+ ...i,
294
295
  series: this.largestTriangleThreeBucketsArray({
295
- data: a.series,
296
+ data: i.series,
296
297
  threshold: this.FINAL_CONFIG.downsample.threshold
297
298
  }),
298
299
  id: `uniqueId_${n}`
299
300
  })) : this.dataset;
300
301
  },
301
302
  safeDataset() {
302
- return this.useSafeValues ? this.dataset.map((a, n) => {
303
+ return this.useSafeValues ? this.dataset.map((i, n) => {
303
304
  const h = this.largestTriangleThreeBucketsArray({
304
- data: a.series,
305
+ data: i.series,
305
306
  threshold: this.FINAL_CONFIG.downsample.threshold
306
307
  }), f = `uniqueId_${n}`;
307
308
  return {
308
- ...a,
309
+ ...i,
309
310
  slotAbsoluteIndex: n,
310
311
  series: h.map((l) => this.isSafeValue(l) ? l : null).slice(this.slicer.start, this.slicer.end),
311
- color: this.convertColorToHex(a.color ? a.color : this.customPalette[n] ? this.customPalette[n] : this.palette[n]),
312
+ color: this.convertColorToHex(i.color ? i.color : this.customPalette[n] ? this.customPalette[n] : this.palette[n]),
312
313
  id: f,
313
- scaleLabel: a.scaleLabel || f
314
+ scaleLabel: i.scaleLabel || f
314
315
  };
315
316
  }) : this.dataset;
316
317
  },
317
318
  relativeDataset() {
318
- return this.safeDataset.map((a, n) => ({
319
- ...a,
320
- series: a.series.map((h) => h + this.relativeZero),
321
- absoluteValues: a.series
322
- })).filter((a) => !this.segregatedSeries.includes(a.id));
319
+ return this.safeDataset.map((i, n) => ({
320
+ ...i,
321
+ series: i.series.map((h) => h + this.relativeZero),
322
+ absoluteValues: i.series
323
+ })).filter((i) => !this.segregatedSeries.includes(i.id));
323
324
  },
324
325
  tableSparklineDataset() {
325
- return this.relativeDataset.map((a) => {
326
- const n = a.absoluteValues.map((h) => [void 0, null].includes(h) ? 0 : h);
326
+ return this.relativeDataset.map((i) => {
327
+ const n = i.absoluteValues.map((h) => [void 0, null].includes(h) ? 0 : h);
327
328
  return {
328
- id: a.id,
329
- name: a.name,
330
- color: a.color,
329
+ id: i.id,
330
+ name: i.name,
331
+ color: i.color,
331
332
  values: this.fillArray(this.maxSeries, n)
332
333
  };
333
334
  });
@@ -342,7 +343,7 @@ const ct = ne(), ot = {
342
343
  fontFamily: this.FINAL_CONFIG.chart.fontFamily,
343
344
  prefix: this.FINAL_CONFIG.chart.labels.prefix,
344
345
  suffix: this.FINAL_CONFIG.chart.labels.suffix,
345
- colNames: this.timeLabels.map((a) => a.text),
346
+ colNames: this.timeLabels.map((i) => i.text),
346
347
  thead: {
347
348
  backgroundColor: this.FINAL_CONFIG.table.th.backgroundColor,
348
349
  color: this.FINAL_CONFIG.table.th.color,
@@ -359,24 +360,24 @@ const ct = ne(), ot = {
359
360
  };
360
361
  },
361
362
  absoluteDataset() {
362
- return this.safeDataset.map((a, n) => ({
363
+ return this.safeDataset.map((i, n) => ({
363
364
  absoluteIndex: n,
364
- ...a,
365
- series: a.series.map((h) => h + this.relativeZero),
366
- absoluteValues: a.series,
367
- segregate: () => this.segregate(a),
368
- isSegregated: this.segregatedSeries.includes(a.id)
365
+ ...i,
366
+ series: i.series.map((h) => h + this.relativeZero),
367
+ absoluteValues: i.series,
368
+ segregate: () => this.segregate(i),
369
+ isSegregated: this.segregatedSeries.includes(i.id)
369
370
  }));
370
371
  },
371
372
  activeSeriesLength() {
372
373
  return this.absoluteDataset.length;
373
374
  },
374
375
  activeSeriesWithStackRatios() {
375
- return this.assignStackRatios(this.absoluteDataset.filter((a) => !this.segregatedSeries.includes(a.id)));
376
+ return this.assignStackRatios(this.absoluteDataset.filter((i) => !this.segregatedSeries.includes(i.id)));
376
377
  },
377
378
  scaleGroups() {
378
- const a = Object.groupBy(this.activeSeriesWithStackRatios, (h) => h.scaleLabel), n = {};
379
- for (const [h, f] of Object.entries(a)) {
379
+ const i = Object.groupBy(this.activeSeriesWithStackRatios, (h) => h.scaleLabel), n = {};
380
+ for (const [h, f] of Object.entries(i)) {
380
381
  const l = f.flatMap((e) => e.absoluteValues);
381
382
  n[h] = {
382
383
  min: Math.min(...l) || 0,
@@ -387,211 +388,211 @@ const ct = ne(), ot = {
387
388
  return n;
388
389
  },
389
390
  barSet() {
390
- const a = this.activeSeriesWithStackRatios.filter((i) => ["bar", "line", "plot"].includes(i.type)), n = a.length, h = this.FINAL_CONFIG.chart.grid.labels.yAxis.gap, f = this.mutableConfig.isStacked, l = f ? h * (n - 1) : 0, e = this.drawingArea.height - l;
391
- return a.filter((i) => i.type === "bar").map((i, k) => {
392
- this.checkAutoScaleError(i);
393
- const z = this.scaleGroups[i.scaleLabel].min, O = this.scaleGroups[i.scaleLabel].max;
394
- i.absoluteValues.filter((L) => ![null, void 0].includes(L)).map((L) => (L - z) / (O - z));
391
+ const i = this.activeSeriesWithStackRatios.filter((r) => ["bar", "line", "plot"].includes(r.type)), n = i.length, h = this.FINAL_CONFIG.chart.grid.labels.yAxis.gap, f = this.mutableConfig.isStacked, l = f ? h * (n - 1) : 0, e = this.drawingArea.height - l;
392
+ return i.filter((r) => r.type === "bar").map((r, w) => {
393
+ this.checkAutoScaleError(r);
394
+ const z = this.scaleGroups[r.scaleLabel].min, O = this.scaleGroups[r.scaleLabel].max;
395
+ r.absoluteValues.filter((L) => ![null, void 0].includes(L)).map((L) => (L - z) / (O - z));
395
396
  const N = {
396
397
  valueMin: z,
397
398
  valueMax: O < 0 ? 0 : O
398
399
  }, F = {
399
- max: i.scaleMax || Math.max(...i.absoluteValues) || 1,
400
- min: i.scaleMin || Math.min(...i.absoluteValues.filter((L) => ![void 0, null].includes(L))) > 0 ? 0 : Math.min(...i.absoluteValues.filter((L) => ![null, void 0].includes(L)))
401
- }, v = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, m = 1.0000001, y = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(F.min, F.max === F.min ? F.max * m : F.max, v) : this.calculateNiceScaleWithExactExtremes(F.min, F.max === F.min ? F.max * m : F.max, v), b = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v) : this.calculateNiceScaleWithExactExtremes(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v), M = y.min >= 0 ? 0 : Math.abs(y.min), H = 0, t = y.max + M, o = b.max + Math.abs(H), c = i.stackIndex, g = n - 1 - c, p = f ? 1 - i.cumulatedStackRatio : 0, C = f ? e * p + h * g : 0, S = f ? e * i.stackRatio : this.drawingArea.height, T = this.drawingArea.bottom - C - S * M / t, Y = this.drawingArea.bottom - C - S * H / o, W = this.absoluteDataset.filter((L) => L.type === "bar").filter((L) => !this.segregatedSeries.includes(L.id)).length, te = i.series.map((L, R) => {
402
- const K = this.mutableConfig.useIndividualScale ? (i.absoluteValues[R] + M) / t : this.ratioToMax(L), Q = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * R : this.drawingArea.left + this.slot.bar * k + this.slot.bar * R * W - this.barSlot / 2 - k * this.barPeriodGap;
400
+ max: r.scaleMax || Math.max(...r.absoluteValues) || 1,
401
+ min: r.scaleMin || Math.min(...r.absoluteValues.filter((L) => ![void 0, null].includes(L))) > 0 ? 0 : Math.min(...r.absoluteValues.filter((L) => ![null, void 0].includes(L)))
402
+ }, v = r.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, m = 1.0000001, A = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(F.min, F.max === F.min ? F.max * m : F.max, v) : this.calculateNiceScaleWithExactExtremes(F.min, F.max === F.min ? F.max * m : F.max, v), b = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v) : this.calculateNiceScaleWithExactExtremes(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v), M = A.min >= 0 ? 0 : Math.abs(A.min), B = 0, t = A.max + M, o = b.max + Math.abs(B), c = r.stackIndex, g = n - 1 - c, p = f ? 1 - r.cumulatedStackRatio : 0, C = f ? e * p + h * g : 0, S = f ? e * r.stackRatio : this.drawingArea.height, T = this.drawingArea.bottom - C - S * M / t, Y = this.drawingArea.bottom - C - S * B / o, W = this.absoluteDataset.filter((L) => L.type === "bar").filter((L) => !this.segregatedSeries.includes(L.id)).length, te = r.series.map((L, R) => {
403
+ const K = this.mutableConfig.useIndividualScale ? (r.absoluteValues[R] + M) / t : this.ratioToMax(L), Q = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * R : this.drawingArea.left + this.slot.bar * w + this.slot.bar * R * W - this.barSlot / 2 - w * this.barPeriodGap;
403
404
  return {
404
405
  yOffset: this.checkNaN(C),
405
406
  individualHeight: this.checkNaN(S),
406
407
  x: this.checkNaN(Q),
407
408
  y: this.drawingArea.bottom - C - S * K,
408
- value: i.absoluteValues[R],
409
+ value: r.absoluteValues[R],
409
410
  zeroPosition: this.checkNaN(T),
410
411
  individualMax: this.checkNaN(t),
411
- comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[R] || ""
412
+ comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[R] || ""
412
413
  };
413
- }), E = i.absoluteValues.map((L) => b.min >= 0 ? (L - Math.abs(b.min)) / (b.max - Math.abs(b.min)) : (L + Math.abs(b.min)) / (b.max + Math.abs(b.min))), J = i.series.map((L, R) => {
414
- const K = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * R : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar * k + this.slot.bar * R * this.absoluteDataset.filter((Q) => Q.type === "bar").filter((Q) => !this.segregatedSeries.includes(Q.id)).length;
414
+ }), E = r.absoluteValues.map((L) => b.min >= 0 ? (L - Math.abs(b.min)) / (b.max - Math.abs(b.min)) : (L + Math.abs(b.min)) / (b.max + Math.abs(b.min))), J = r.series.map((L, R) => {
415
+ const K = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * R : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar * w + this.slot.bar * R * this.absoluteDataset.filter((Q) => Q.type === "bar").filter((Q) => !this.segregatedSeries.includes(Q.id)).length;
415
416
  return {
416
417
  yOffset: this.checkNaN(C),
417
418
  individualHeight: this.checkNaN(S),
418
419
  x: this.checkNaN(K),
419
420
  y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(C) - (this.checkNaN(S) * E[R] || 0)),
420
- value: i.absoluteValues[R],
421
+ value: r.absoluteValues[R],
421
422
  zeroPosition: this.checkNaN(T),
422
423
  individualMax: this.checkNaN(t),
423
- comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[R] || ""
424
+ comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[R] || ""
424
425
  };
425
- }), w = y.ticks.map((L) => ({
426
+ }), k = A.ticks.map((L) => ({
426
427
  y: L >= 0 ? T - S * (L / t) : T + S * Math.abs(L) / t,
427
428
  value: L,
428
- prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
429
- suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
430
- datapoint: i
429
+ prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
430
+ suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
431
+ datapoint: r
431
432
  })), P = b.ticks.map((L) => {
432
433
  const R = (L - b.min) / (b.max - b.min);
433
434
  return {
434
435
  y: L >= 0 ? Y - S * R : Y + S * R,
435
436
  value: L,
436
- prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
437
- suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
438
- datapoint: i
437
+ prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
438
+ suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
439
+ datapoint: r
439
440
  };
440
441
  });
441
- return this.scaleGroups[i.scaleLabel].name = i.name, this.scaleGroups[i.scaleLabel].groupName = i.scaleLabel, this.scaleGroups[i.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || i.color, this.scaleGroups[i.scaleLabel].color = i.color, this.scaleGroups[i.scaleLabel].scaleYLabels = i.autoScaling ? P : w, this.scaleGroups[i.scaleLabel].zeroPosition = i.autoScaling ? Y : T, this.scaleGroups[i.scaleLabel].individualMax = i.autoScaling ? o : t, this.scaleGroups[i.scaleLabel].scaleLabel = i.scaleLabel, this.scaleGroups[i.scaleLabel].id = i.id, this.scaleGroups[i.scaleLabel].yOffset = C, this.scaleGroups[i.scaleLabel].individualHeight = S, this.scaleGroups[i.scaleLabel].autoScaleYLabels = P, this.scaleGroups[i.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((L) => L.scaleLabel === i.scaleLabel).length === 1, {
442
- ...i,
442
+ return this.scaleGroups[r.scaleLabel].name = r.name, this.scaleGroups[r.scaleLabel].groupName = r.scaleLabel, this.scaleGroups[r.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || r.color, this.scaleGroups[r.scaleLabel].color = r.color, this.scaleGroups[r.scaleLabel].scaleYLabels = r.autoScaling ? P : k, this.scaleGroups[r.scaleLabel].zeroPosition = r.autoScaling ? Y : T, this.scaleGroups[r.scaleLabel].individualMax = r.autoScaling ? o : t, this.scaleGroups[r.scaleLabel].scaleLabel = r.scaleLabel, this.scaleGroups[r.scaleLabel].id = r.id, this.scaleGroups[r.scaleLabel].yOffset = C, this.scaleGroups[r.scaleLabel].individualHeight = S, this.scaleGroups[r.scaleLabel].autoScaleYLabels = P, this.scaleGroups[r.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((L) => L.scaleLabel === r.scaleLabel).length === 1, {
443
+ ...r,
443
444
  yOffset: C,
444
445
  autoScaleYLabels: P,
445
446
  individualHeight: S,
446
- scaleYLabels: i.autoScaling ? P : w,
447
- individualScale: i.autoScaling ? b : y,
448
- individualMax: i.autoScaling ? o : t,
449
- zeroPosition: i.autoScaling ? Y : T,
450
- plots: i.autoScaling ? J : te,
451
- groupId: this.scaleGroups[i.scaleLabel].groupId
447
+ scaleYLabels: r.autoScaling ? P : k,
448
+ individualScale: r.autoScaling ? b : A,
449
+ individualMax: r.autoScaling ? o : t,
450
+ zeroPosition: r.autoScaling ? Y : T,
451
+ plots: r.autoScaling ? J : te,
452
+ groupId: this.scaleGroups[r.scaleLabel].groupId
452
453
  };
453
454
  });
454
455
  },
455
456
  lineSet() {
456
- const a = this.activeSeriesWithStackRatios.filter((i) => ["bar", "line", "plot"].includes(i.type)), n = a.length, h = this.FINAL_CONFIG.chart.grid.labels.yAxis.gap, f = this.mutableConfig.isStacked, l = f ? h * (n - 1) : 0, e = this.drawingArea.height - l;
457
- return a.filter((i) => i.type === "line").map((i, k) => {
458
- this.checkAutoScaleError(i);
459
- const z = this.scaleGroups[i.scaleLabel].min, O = this.scaleGroups[i.scaleLabel].max;
460
- i.absoluteValues.filter((A) => ![null, void 0].includes(A)).map((A) => (A - z) / (O - z));
457
+ const i = this.activeSeriesWithStackRatios.filter((r) => ["bar", "line", "plot"].includes(r.type)), n = i.length, h = this.FINAL_CONFIG.chart.grid.labels.yAxis.gap, f = this.mutableConfig.isStacked, l = f ? h * (n - 1) : 0, e = this.drawingArea.height - l;
458
+ return i.filter((r) => r.type === "line").map((r, w) => {
459
+ this.checkAutoScaleError(r);
460
+ const z = this.scaleGroups[r.scaleLabel].min, O = this.scaleGroups[r.scaleLabel].max;
461
+ r.absoluteValues.filter((y) => ![null, void 0].includes(y)).map((y) => (y - z) / (O - z));
461
462
  const N = {
462
463
  valueMin: z,
463
464
  valueMax: O
464
465
  }, F = {
465
- max: i.scaleMax || Math.max(...i.absoluteValues) || 1,
466
- min: i.scaleMin || (Math.min(...i.absoluteValues) > 0 ? 0 : Math.min(...i.absoluteValues))
467
- }, v = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, m = 1.0000001, y = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(F.min, F.max === F.min ? F.max * m : F.max, v) : this.calculateNiceScaleWithExactExtremes(F.min, F.max === F.min ? F.max * m : F.max, v), b = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v) : this.calculateNiceScaleWithExactExtremes(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v), M = y.min >= 0 ? 0 : Math.abs(y.min), H = 0, t = y.max + Math.abs(M), o = b.max + Math.abs(H), c = i.stackIndex, g = n - 1 - c, p = f ? 1 - i.cumulatedStackRatio : 0, C = f ? e * p + h * g : 0, S = f ? e * i.stackRatio : this.drawingArea.height, T = this.drawingArea.bottom - C - S * M / t, Y = this.drawingArea.bottom - C - S * H / o, W = i.series.map((A, B) => {
468
- const he = this.mutableConfig.useIndividualScale ? (i.absoluteValues[B] + Math.abs(M)) / t : this.ratioToMax(A);
466
+ max: r.scaleMax || Math.max(...r.absoluteValues) || 1,
467
+ min: r.scaleMin || (Math.min(...r.absoluteValues) > 0 ? 0 : Math.min(...r.absoluteValues))
468
+ }, v = r.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, m = 1.0000001, A = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(F.min, F.max === F.min ? F.max * m : F.max, v) : this.calculateNiceScaleWithExactExtremes(F.min, F.max === F.min ? F.max * m : F.max, v), b = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v) : this.calculateNiceScaleWithExactExtremes(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v), M = A.min >= 0 ? 0 : Math.abs(A.min), B = 0, t = A.max + Math.abs(M), o = b.max + Math.abs(B), c = r.stackIndex, g = n - 1 - c, p = f ? 1 - r.cumulatedStackRatio : 0, C = f ? e * p + h * g : 0, S = f ? e * r.stackRatio : this.drawingArea.height, T = this.drawingArea.bottom - C - S * M / t, Y = this.drawingArea.bottom - C - S * B / o, W = r.series.map((y, H) => {
469
+ const he = this.mutableConfig.useIndividualScale ? (r.absoluteValues[H] + Math.abs(M)) / t : this.ratioToMax(y);
469
470
  return {
470
- x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * B),
471
+ x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * H),
471
472
  y: this.checkNaN(this.drawingArea.bottom - C - S * he),
472
- value: i.absoluteValues[B],
473
- comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[B] || ""
473
+ value: r.absoluteValues[H],
474
+ comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[H] || ""
474
475
  };
475
- }), te = i.absoluteValues.map((A) => b.min >= 0 ? (A - Math.abs(b.min)) / (b.max - Math.abs(b.min)) : (A + Math.abs(b.min)) / (b.max + Math.abs(b.min))), E = i.series.map((A, B) => [void 0, null].includes(i.absoluteValues[B]) ? {
476
- x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * B),
476
+ }), te = r.absoluteValues.map((y) => b.min >= 0 ? (y - Math.abs(b.min)) / (b.max - Math.abs(b.min)) : (y + Math.abs(b.min)) / (b.max + Math.abs(b.min))), E = r.series.map((y, H) => [void 0, null].includes(r.absoluteValues[H]) ? {
477
+ x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * H),
477
478
  y: T,
478
- value: i.absoluteValues[B],
479
- comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[B] || ""
479
+ value: r.absoluteValues[H],
480
+ comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[H] || ""
480
481
  } : {
481
- x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * B),
482
- y: this.checkNaN(this.drawingArea.bottom - C - (S * te[B] || 0)),
483
- value: i.absoluteValues[B],
484
- comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[B] || ""
485
- }), J = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(W) : this.createSmoothPath(W.filter((A) => A.value !== null)), w = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(E) : this.createSmoothPath(E.filter((A) => A.value !== null)), P = this.FINAL_CONFIG.line.cutNullValues ? this.createStraightPathWithCuts(W) : this.createStraightPath(W.filter((A) => A.value !== null)), L = this.FINAL_CONFIG.line.cutNullValues ? this.createStraightPathWithCuts(E) : this.createStraightPath(E.filter((A) => A.value !== null)), R = y.ticks.map((A) => ({
486
- y: A >= 0 ? T - S * (A / t) : T + S * Math.abs(A) / t,
487
- value: A,
488
- prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
489
- suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
490
- datapoint: i
491
- })), K = b.ticks.map((A) => {
492
- const B = (A - b.min) / (b.max - b.min);
482
+ x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * H),
483
+ y: this.checkNaN(this.drawingArea.bottom - C - (S * te[H] || 0)),
484
+ value: r.absoluteValues[H],
485
+ comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[H] || ""
486
+ }), J = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(W) : this.createSmoothPath(W.filter((y) => y.value !== null)), k = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(E) : this.createSmoothPath(E.filter((y) => y.value !== null)), P = this.FINAL_CONFIG.line.cutNullValues ? this.createStraightPathWithCuts(W) : this.createStraightPath(W.filter((y) => y.value !== null)), L = this.FINAL_CONFIG.line.cutNullValues ? this.createStraightPathWithCuts(E) : this.createStraightPath(E.filter((y) => y.value !== null)), R = A.ticks.map((y) => ({
487
+ y: y >= 0 ? T - S * (y / t) : T + S * Math.abs(y) / t,
488
+ value: y,
489
+ prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
490
+ suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
491
+ datapoint: r
492
+ })), K = b.ticks.map((y) => {
493
+ const H = (y - b.min) / (b.max - b.min);
493
494
  return {
494
- y: A >= 0 ? Y - S * B : Y + S * B,
495
- value: A,
496
- prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
497
- suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
498
- datapoint: i
495
+ y: y >= 0 ? Y - S * H : Y + S * H,
496
+ value: y,
497
+ prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
498
+ suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
499
+ datapoint: r
499
500
  };
500
501
  });
501
- this.scaleGroups[i.scaleLabel].name = i.name, this.scaleGroups[i.scaleLabel].groupName = i.scaleLabel, this.scaleGroups[i.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || i.color, this.scaleGroups[i.scaleLabel].color = i.color, this.scaleGroups[i.scaleLabel].scaleYLabels = i.autoScaling ? K : R, this.scaleGroups[i.scaleLabel].zeroPosition = i.autoScaling ? Y : T, this.scaleGroups[i.scaleLabel].individualMax = i.autoScaling ? o : t, this.scaleGroups[i.scaleLabel].scaleLabel = i.scaleLabel, this.scaleGroups[i.scaleLabel].id = i.id, this.scaleGroups[i.scaleLabel].yOffset = C, this.scaleGroups[i.scaleLabel].individualHeight = S, this.scaleGroups[i.scaleLabel].autoScaleYLabels = K, this.scaleGroups[i.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((A) => A.scaleLabel === i.scaleLabel).length === 1;
502
- const Q = this.mutableConfig.useIndividualScale ? i.autoScaling ? Y : T : this.zero, ae = Math.max(Math.max(i.autoScaling ? Y : R.at(-1).y || 0, this.drawingArea.top), Q);
502
+ this.scaleGroups[r.scaleLabel].name = r.name, this.scaleGroups[r.scaleLabel].groupName = r.scaleLabel, this.scaleGroups[r.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || r.color, this.scaleGroups[r.scaleLabel].color = r.color, this.scaleGroups[r.scaleLabel].scaleYLabels = r.autoScaling ? K : R, this.scaleGroups[r.scaleLabel].zeroPosition = r.autoScaling ? Y : T, this.scaleGroups[r.scaleLabel].individualMax = r.autoScaling ? o : t, this.scaleGroups[r.scaleLabel].scaleLabel = r.scaleLabel, this.scaleGroups[r.scaleLabel].id = r.id, this.scaleGroups[r.scaleLabel].yOffset = C, this.scaleGroups[r.scaleLabel].individualHeight = S, this.scaleGroups[r.scaleLabel].autoScaleYLabels = K, this.scaleGroups[r.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((y) => y.scaleLabel === r.scaleLabel).length === 1;
503
+ const Q = this.mutableConfig.useIndividualScale ? r.autoScaling ? Y : T : this.zero, ie = Math.max(Math.max(r.autoScaling ? Y : R.at(-1).y || 0, this.drawingArea.top), Q);
503
504
  return {
504
- ...i,
505
+ ...r,
505
506
  yOffset: C,
506
507
  autoScaleYLabels: K,
507
508
  individualHeight: S,
508
- scaleYLabels: i.autoScaling ? K : R,
509
- individualScale: i.autoScaling ? b : y,
510
- individualMax: i.autoScaling ? o : t,
511
- zeroPosition: i.autoScaling ? Y : T,
512
- curve: i.autoScaling ? w : J,
513
- plots: i.autoScaling ? E : W,
514
- area: i.useArea ? this.mutableConfig.useIndividualScale ? this.FINAL_CONFIG.line.cutNullValues ? this.createIndividualAreaWithCuts(
515
- i.autoScaling ? E : W,
516
- ae
509
+ scaleYLabels: r.autoScaling ? K : R,
510
+ individualScale: r.autoScaling ? b : A,
511
+ individualMax: r.autoScaling ? o : t,
512
+ zeroPosition: r.autoScaling ? Y : T,
513
+ curve: r.autoScaling ? k : J,
514
+ plots: r.autoScaling ? E : W,
515
+ area: r.useArea ? this.mutableConfig.useIndividualScale ? this.FINAL_CONFIG.line.cutNullValues ? this.createIndividualAreaWithCuts(
516
+ r.autoScaling ? E : W,
517
+ ie
517
518
  ) : this.createIndividualArea(
518
- i.autoScaling ? E.filter((A) => A.value !== null) : W.filter((A) => A.value !== null),
519
- ae
520
- ) : this.createIndividualArea(W.filter((A) => A.value !== null), ae) : "",
521
- curveAreas: i.useArea ? ce(
522
- i.autoScaling ? this.FINAL_CONFIG.line.cutNullValues ? E : E.filter((A) => A.value !== null) : this.FINAL_CONFIG.line.cutNullValues ? W : W.filter((A) => A.value !== null),
523
- ae,
519
+ r.autoScaling ? E.filter((y) => y.value !== null) : W.filter((y) => y.value !== null),
520
+ ie
521
+ ) : this.createIndividualArea(W.filter((y) => y.value !== null), ie) : "",
522
+ curveAreas: r.useArea ? ce(
523
+ r.autoScaling ? this.FINAL_CONFIG.line.cutNullValues ? E : E.filter((y) => y.value !== null) : this.FINAL_CONFIG.line.cutNullValues ? W : W.filter((y) => y.value !== null),
524
+ ie,
524
525
  this.FINAL_CONFIG.line.cutNullValues
525
526
  ) : [],
526
- straight: i.autoScaling ? L : P,
527
- groupId: this.scaleGroups[i.scaleLabel].groupId
527
+ straight: r.autoScaling ? L : P,
528
+ groupId: this.scaleGroups[r.scaleLabel].groupId
528
529
  };
529
530
  });
530
531
  },
531
532
  plotSet() {
532
- const a = this.activeSeriesWithStackRatios.filter((i) => ["bar", "line", "plot"].includes(i.type)), n = a.length, h = this.FINAL_CONFIG.chart.grid.labels.yAxis.gap, f = this.mutableConfig.isStacked, l = f ? h * (n - 1) : 0, e = this.drawingArea.height - l;
533
- return a.filter((i) => i.type === "plot").map((i) => {
534
- this.checkAutoScaleError(i);
535
- const k = this.scaleGroups[i.scaleLabel].min, z = this.scaleGroups[i.scaleLabel].max;
536
- i.absoluteValues.filter((w) => ![null, void 0].includes(w)).map((w) => (w - k) / (z - k));
533
+ const i = this.activeSeriesWithStackRatios.filter((r) => ["bar", "line", "plot"].includes(r.type)), n = i.length, h = this.FINAL_CONFIG.chart.grid.labels.yAxis.gap, f = this.mutableConfig.isStacked, l = f ? h * (n - 1) : 0, e = this.drawingArea.height - l;
534
+ return i.filter((r) => r.type === "plot").map((r) => {
535
+ this.checkAutoScaleError(r);
536
+ const w = this.scaleGroups[r.scaleLabel].min, z = this.scaleGroups[r.scaleLabel].max;
537
+ r.absoluteValues.filter((k) => ![null, void 0].includes(k)).map((k) => (k - w) / (z - w));
537
538
  const O = {
538
- valueMin: k,
539
+ valueMin: w,
539
540
  valueMax: z
540
541
  }, N = {
541
- max: i.scaleMax || Math.max(...i.absoluteValues) || 1,
542
- min: i.scaleMin || Math.min(...i.absoluteValues) > 0 ? 0 : Math.min(...i.absoluteValues)
543
- }, F = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, v = 1.0000001, m = this.calculateNiceScaleWithExactExtremes(N.min, N.max === N.min ? N.max * v : N.max, F), y = this.calculateNiceScaleWithExactExtremes(O.valueMin, O.valueMax === O.valueMin ? O.valueMax * v : O.valueMax, F), b = m.min >= 0 ? 0 : Math.abs(m.min), M = 0, H = m.max + b, t = y.max + Math.abs(M), o = i.stackIndex, c = n - 1 - o, g = f ? 1 - i.cumulatedStackRatio : 0, p = f ? e * g + h * c : 0, C = f ? e * i.stackRatio : this.drawingArea.height, S = this.drawingArea.bottom - p - C * b / H, T = this.drawingArea.bottom - p - C * M / t, Y = i.series.map((w, P) => {
544
- const L = this.mutableConfig.useIndividualScale ? (i.absoluteValues[P] + Math.abs(b)) / H : this.ratioToMax(w);
542
+ max: r.scaleMax || Math.max(...r.absoluteValues) || 1,
543
+ min: r.scaleMin || Math.min(...r.absoluteValues) > 0 ? 0 : Math.min(...r.absoluteValues)
544
+ }, F = r.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, v = 1.0000001, m = this.calculateNiceScaleWithExactExtremes(N.min, N.max === N.min ? N.max * v : N.max, F), A = this.calculateNiceScaleWithExactExtremes(O.valueMin, O.valueMax === O.valueMin ? O.valueMax * v : O.valueMax, F), b = m.min >= 0 ? 0 : Math.abs(m.min), M = 0, B = m.max + b, t = A.max + Math.abs(M), o = r.stackIndex, c = n - 1 - o, g = f ? 1 - r.cumulatedStackRatio : 0, p = f ? e * g + h * c : 0, C = f ? e * r.stackRatio : this.drawingArea.height, S = this.drawingArea.bottom - p - C * b / B, T = this.drawingArea.bottom - p - C * M / t, Y = r.series.map((k, P) => {
545
+ const L = this.mutableConfig.useIndividualScale ? (r.absoluteValues[P] + Math.abs(b)) / B : this.ratioToMax(k);
545
546
  return {
546
547
  x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * P),
547
548
  y: this.checkNaN(this.drawingArea.bottom - p - C * L),
548
- value: i.absoluteValues[P],
549
- comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[P] || ""
549
+ value: r.absoluteValues[P],
550
+ comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[P] || ""
550
551
  };
551
- }), W = i.absoluteValues.map((w) => y.min >= 0 ? (w - Math.abs(y.min)) / (y.max - Math.abs(y.min)) : (w + Math.abs(y.min)) / (y.max + Math.abs(y.min))), te = i.series.map((w, P) => ({
552
+ }), W = r.absoluteValues.map((k) => A.min >= 0 ? (k - Math.abs(A.min)) / (A.max - Math.abs(A.min)) : (k + Math.abs(A.min)) / (A.max + Math.abs(A.min))), te = r.series.map((k, P) => ({
552
553
  x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * P),
553
554
  y: this.checkNaN(this.drawingArea.bottom - p - (C * W[P] || 0)),
554
- value: i.absoluteValues[P],
555
- comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[P] || ""
556
- })), E = m.ticks.map((w) => ({
557
- y: w >= 0 ? S - C * (w / H) : S + C * Math.abs(w) / H,
558
- value: w,
559
- prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
560
- suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
561
- datapoint: i
562
- })), J = y.ticks.map((w) => {
563
- const P = (w - y.min) / (y.max - y.min);
555
+ value: r.absoluteValues[P],
556
+ comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[P] || ""
557
+ })), E = m.ticks.map((k) => ({
558
+ y: k >= 0 ? S - C * (k / B) : S + C * Math.abs(k) / B,
559
+ value: k,
560
+ prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
561
+ suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
562
+ datapoint: r
563
+ })), J = A.ticks.map((k) => {
564
+ const P = (k - A.min) / (A.max - A.min);
564
565
  return {
565
- y: w >= 0 ? T - C * P : T + C * P,
566
- value: w,
567
- prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
568
- suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
569
- datapoint: i
566
+ y: k >= 0 ? T - C * P : T + C * P,
567
+ value: k,
568
+ prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
569
+ suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
570
+ datapoint: r
570
571
  };
571
572
  });
572
- return this.scaleGroups[i.scaleLabel].name = i.name, this.scaleGroups[i.scaleLabel].groupName = i.scaleLabel, this.scaleGroups[i.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || i.color, this.scaleGroups[i.scaleLabel].color = i.color, this.scaleGroups[i.scaleLabel].scaleYLabels = i.autoScaling ? J : E, this.scaleGroups[i.scaleLabel].zeroPosition = i.autoScaling ? T : S, this.scaleGroups[i.scaleLabel].individualMax = i.autoScaling ? t : H, this.scaleGroups[i.scaleLabel].scaleLabel = i.scaleLabel, this.scaleGroups[i.scaleLabel].id = i.id, this.scaleGroups[i.scaleLabel].yOffset = p, this.scaleGroups[i.scaleLabel].individualHeight = C, this.scaleGroups[i.scaleLabel].autoScaleYLabels = J, this.scaleGroups[i.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((w) => w.scaleLabel === i.scaleLabel).length === 1, {
573
- ...i,
573
+ return this.scaleGroups[r.scaleLabel].name = r.name, this.scaleGroups[r.scaleLabel].groupName = r.scaleLabel, this.scaleGroups[r.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || r.color, this.scaleGroups[r.scaleLabel].color = r.color, this.scaleGroups[r.scaleLabel].scaleYLabels = r.autoScaling ? J : E, this.scaleGroups[r.scaleLabel].zeroPosition = r.autoScaling ? T : S, this.scaleGroups[r.scaleLabel].individualMax = r.autoScaling ? t : B, this.scaleGroups[r.scaleLabel].scaleLabel = r.scaleLabel, this.scaleGroups[r.scaleLabel].id = r.id, this.scaleGroups[r.scaleLabel].yOffset = p, this.scaleGroups[r.scaleLabel].individualHeight = C, this.scaleGroups[r.scaleLabel].autoScaleYLabels = J, this.scaleGroups[r.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((k) => k.scaleLabel === r.scaleLabel).length === 1, {
574
+ ...r,
574
575
  yOffset: p,
575
576
  autoScaleYLabels: J,
576
577
  individualHeight: C,
577
- scaleYLabels: i.autoScaling ? J : E,
578
- individualScale: i.autoScaling ? y : m,
579
- individualMax: i.autoScaling ? t : H,
580
- zeroPosition: i.autoScaling ? T : S,
581
- plots: i.autoScaling ? te : Y,
582
- groupId: this.scaleGroups[i.scaleLabel].groupId
578
+ scaleYLabels: r.autoScaling ? J : E,
579
+ individualScale: r.autoScaling ? A : m,
580
+ individualMax: r.autoScaling ? t : B,
581
+ zeroPosition: r.autoScaling ? T : S,
582
+ plots: r.autoScaling ? te : Y,
583
+ groupId: this.scaleGroups[r.scaleLabel].groupId
583
584
  };
584
585
  });
585
586
  },
586
587
  drawingArea() {
587
- function a(f) {
588
+ function i(f) {
588
589
  const l = /* @__PURE__ */ new Set();
589
590
  return f.forEach((e) => {
590
- const i = e.scaleLabel || "__noScaleLabel__";
591
- l.add(i);
591
+ const r = e.scaleLabel || "__noScaleLabel__";
592
+ l.add(r);
592
593
  }), l.size;
593
594
  }
594
- const n = a(this.absoluteDataset.filter((f) => !this.segregatedSeries.includes(f.id))), h = this.mutableConfig.useIndividualScale && this.FINAL_CONFIG.chart.grid.labels.show ? n * (this.mutableConfig.isStacked ? 0 : this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth) : 0;
595
+ const n = i(this.absoluteDataset.filter((f) => !this.segregatedSeries.includes(f.id))), h = this.mutableConfig.useIndividualScale && this.FINAL_CONFIG.chart.grid.labels.show ? n * (this.mutableConfig.isStacked ? 0 : this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth) : 0;
595
596
  return {
596
597
  top: 0,
597
598
  right: this.width,
@@ -602,13 +603,13 @@ const ct = ne(), ot = {
602
603
  };
603
604
  },
604
605
  max() {
605
- return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax ? this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax : Math.max(...this.safeDataset.filter((a) => !this.segregatedSeries.includes(a.id)).map((a) => Math.max(...a.series)));
606
+ return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax ? this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax : Math.max(...this.safeDataset.filter((i) => !this.segregatedSeries.includes(i.id)).map((i) => Math.max(...i.series)));
606
607
  },
607
608
  min() {
608
609
  if (this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin !== null)
609
610
  return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin;
610
- const a = Math.min(...this.safeDataset.filter((n) => !this.segregatedSeries.includes(n.id)).map((n) => Math.min(...n.series)));
611
- return a > 0 ? 0 : a;
611
+ const i = Math.min(...this.safeDataset.filter((n) => !this.segregatedSeries.includes(n.id)).map((n) => Math.min(...n.series)));
612
+ return i > 0 ? 0 : i;
612
613
  },
613
614
  niceScale() {
614
615
  return this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(this.min, this.max < 0 ? 0 : this.max, this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps) : this.calculateNiceScaleWithExactExtremes(this.min, this.max < 0 ? 0 : this.max, this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps);
@@ -617,10 +618,10 @@ const ct = ne(), ot = {
617
618
  return this.slicer.end - this.slicer.start;
618
619
  },
619
620
  timeLabels() {
620
- const a = Math.max(...this.dataset.map((n) => this.largestTriangleThreeBucketsArray({ data: n.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length));
621
+ const i = Math.max(...this.dataset.map((n) => this.largestTriangleThreeBucketsArray({ data: n.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length));
621
622
  return $e({
622
623
  values: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values,
623
- maxDatapoints: a,
624
+ maxDatapoints: i,
624
625
  formatter: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.datetimeFormatter,
625
626
  start: this.slicer.start,
626
627
  end: this.slicer.end
@@ -628,24 +629,24 @@ const ct = ne(), ot = {
628
629
  },
629
630
  slot() {
630
631
  return {
631
- bar: this.drawingArea.width / this.maxSeries / this.safeDataset.filter((a) => a.type === "bar").filter((a) => !this.segregatedSeries.includes(a.id)).length,
632
+ bar: this.drawingArea.width / this.maxSeries / this.safeDataset.filter((i) => i.type === "bar").filter((i) => !this.segregatedSeries.includes(i.id)).length,
632
633
  plot: this.drawingArea.width / this.maxSeries,
633
634
  line: this.drawingArea.width / this.maxSeries
634
635
  };
635
636
  },
636
637
  barSlot() {
637
- const a = this.safeDataset.filter((n) => n.type === "bar").filter((n) => !this.segregatedSeries.includes(n.id)).length;
638
- return this.drawingArea.width / this.maxSeries / a - this.barPeriodGap * a;
638
+ const i = this.safeDataset.filter((n) => n.type === "bar").filter((n) => !this.segregatedSeries.includes(n.id)).length;
639
+ return this.drawingArea.width / this.maxSeries / i - this.barPeriodGap * i;
639
640
  },
640
641
  barPeriodGap() {
641
642
  return this.slot.line * this.FINAL_CONFIG.bar.periodGap;
642
643
  },
643
644
  maxSlot() {
644
- return Math.max(...Object.values(this.slot).filter((a) => a !== 1 / 0));
645
+ return Math.max(...Object.values(this.slot).filter((i) => i !== 1 / 0));
645
646
  },
646
647
  table() {
647
648
  if (this.safeDataset.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
648
- const a = this.relativeDataset.map((h) => ({
649
+ const i = this.relativeDataset.map((h) => ({
649
650
  label: h.name,
650
651
  color: h.color,
651
652
  type: h.type
@@ -655,30 +656,30 @@ const ct = ne(), ot = {
655
656
  this.relativeDataset.forEach((e) => {
656
657
  l.push(this.canShowValue(e.absoluteValues[f]) ? Number(e.absoluteValues[f].toFixed(this.FINAL_CONFIG.table.rounding)) : "");
657
658
  }), n.push(l);
658
- }), { head: a, body: n };
659
+ }), { head: i, body: n };
659
660
  },
660
661
  dataTable() {
661
- const a = this.FINAL_CONFIG.table.showSum;
662
+ const i = this.FINAL_CONFIG.table.showSum;
662
663
  let n = [""].concat(this.relativeDataset.map((e) => e.name));
663
- a && (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>'));
664
+ i && (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>'));
664
665
  let h = [];
665
666
  for (let e = 0; e < this.maxSeries; e += 1) {
666
- const i = this.relativeDataset.map((k) => k.absoluteValues[e] ?? 0).reduce((k, z) => k + z, 0);
667
+ const r = this.relativeDataset.map((w) => w.absoluteValues[e] ?? 0).reduce((w, z) => w + z, 0);
667
668
  h.push(
668
669
  [
669
670
  this.timeLabels[e].text ?? "-"
670
671
  ].concat(this.relativeDataset.map(
671
- (k) => this.applyDataLabel(
672
- k.type === "line" ? this.FINAL_CONFIG.line.labels.formatter : k.type === "bar" ? this.FINAL_CONFIG.bar.labels.formatter : this.FINAL_CONFIG.plot.labels.formatter,
673
- k.absoluteValues[e] ?? 0,
672
+ (w) => this.applyDataLabel(
673
+ w.type === "line" ? this.FINAL_CONFIG.line.labels.formatter : w.type === "bar" ? this.FINAL_CONFIG.bar.labels.formatter : this.FINAL_CONFIG.plot.labels.formatter,
674
+ w.absoluteValues[e] ?? 0,
674
675
  this.dataLabel({
675
- p: k.prefix || this.FINAL_CONFIG.chart.labels.prefix,
676
- v: k.absoluteValues[e] ?? 0,
677
- s: k.suffix || this.FINAL_CONFIG.chart.labels.suffix,
676
+ p: w.prefix || this.FINAL_CONFIG.chart.labels.prefix,
677
+ v: w.absoluteValues[e] ?? 0,
678
+ s: w.suffix || this.FINAL_CONFIG.chart.labels.suffix,
678
679
  r: this.FINAL_CONFIG.table.rounding
679
680
  })
680
681
  )
681
- )).concat(a ? (i ?? 0).toFixed(this.FINAL_CONFIG.table.rounding) : [])
682
+ )).concat(i ? (r ?? 0).toFixed(this.FINAL_CONFIG.table.rounding) : [])
682
683
  );
683
684
  }
684
685
  const f = {
@@ -708,20 +709,20 @@ const ct = ne(), ot = {
708
709
  };
709
710
  },
710
711
  selectedSeries() {
711
- return this.relativeDataset.map((a) => ({
712
- slotAbsoluteIndex: a.slotAbsoluteIndex,
713
- shape: a.shape || null,
714
- name: a.name,
715
- color: a.color,
716
- type: a.type,
717
- value: a.absoluteValues.find((n, h) => h === this.selectedSerieIndex),
718
- comments: a.comments || [],
719
- prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
720
- suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix
712
+ return this.relativeDataset.map((i) => ({
713
+ slotAbsoluteIndex: i.slotAbsoluteIndex,
714
+ shape: i.shape || null,
715
+ name: i.name,
716
+ color: i.color,
717
+ type: i.type,
718
+ value: i.absoluteValues.find((n, h) => h === this.selectedSerieIndex),
719
+ comments: i.comments || [],
720
+ prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
721
+ suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix
721
722
  }));
722
723
  },
723
724
  tooltipContent() {
724
- let a = "", n = this.selectedSeries.map((l) => l.value).filter((l) => this.isSafeValue(l) && l !== null).reduce((l, e) => Math.abs(l) + Math.abs(e), 0);
725
+ let i = "", n = this.selectedSeries.map((l) => l.value).filter((l) => this.isSafeValue(l) && l !== null).reduce((l, e) => Math.abs(l) + Math.abs(e), 0);
725
726
  const h = this.timeLabels[this.selectedSerieIndex], f = this.FINAL_CONFIG.chart.tooltip.customFormat;
726
727
  return this.isFunction(f) && this.functionReturnsString(() => f({
727
728
  seriesIndex: this.selectedSerieIndex,
@@ -739,15 +740,15 @@ const ct = ne(), ot = {
739
740
  lines: this.lineSet,
740
741
  plots: this.plotSet,
741
742
  config: this.FINAL_CONFIG
742
- }) : (h && h.text && this.FINAL_CONFIG.chart.tooltip.showTimeLabel && (a += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${h.text}</div>`), this.selectedSeries.forEach((l) => {
743
+ }) : (h && h.text && this.FINAL_CONFIG.chart.tooltip.showTimeLabel && (i += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${h.text}</div>`), this.selectedSeries.forEach((l) => {
743
744
  if (this.isSafeValue(l.value)) {
744
- let e = "", i = "";
745
+ let e = "", r = "";
745
746
  switch (this.icons[l.type]) {
746
747
  case "bar":
747
748
  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="${l.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${this.$slots.pattern ? `url(#pattern_${this.uniqueId}_${l.slotAbsoluteIndex}` : l.color}" /></svg>`;
748
749
  break;
749
750
  case "line":
750
- !l.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(l.shape) ? i = `<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${l.color}" />` : l.shape === "triangle" ? i = `<path d="${q({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "square" ? i = `<path d="${q({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "diamond" ? i = `<path d="${q({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "pentagon" ? i = `<path d="${q({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "hexagon" ? i = `<path d="${q({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "star" && (i = `<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${l.color}" points="${ie({ 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="${l.color}" />${i}</svg>`;
751
+ !l.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(l.shape) ? r = `<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${l.color}" />` : l.shape === "triangle" ? r = `<path d="${q({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "square" ? r = `<path d="${q({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "diamond" ? r = `<path d="${q({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "pentagon" ? r = `<path d="${q({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "hexagon" ? r = `<path d="${q({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : l.shape === "star" && (r = `<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${l.color}" points="${re({ 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="${l.color}" />${r}</svg>`;
751
752
  break;
752
753
  case "plot":
753
754
  if (!l.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(l.shape)) {
@@ -755,7 +756,7 @@ const ct = ne(), ot = {
755
756
  break;
756
757
  }
757
758
  if (l.shape === "star") {
758
- e = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${l.color}" points="${ie({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
759
+ e = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${l.color}" points="${re({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
759
760
  break;
760
761
  }
761
762
  if (l.shape === "triangle") {
@@ -779,7 +780,7 @@ const ct = ne(), ot = {
779
780
  break;
780
781
  }
781
782
  }
782
- a += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${e}</div> ${l.name}: <b>${this.FINAL_CONFIG.chart.tooltip.showValue ? this.applyDataLabel(
783
+ i += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${e}</div> ${l.name}: <b>${this.FINAL_CONFIG.chart.tooltip.showValue ? this.applyDataLabel(
783
784
  l.type === "line" ? this.FINAL_CONFIG.line.labels.formatter : l.type === "bar" ? this.FINAL_CONFIG.bar.labels.formatter : this.FINAL_CONFIG.plot.labels.formatter,
784
785
  l.value,
785
786
  this.dataLabel({
@@ -793,9 +794,9 @@ const ct = ne(), ot = {
793
794
  v: this.checkNaN(Math.abs(l.value) / n * 100),
794
795
  s: "%",
795
796
  r: this.FINAL_CONFIG.chart.tooltip.roundingPercentage
796
- })})` : ""}</div>`, this.FINAL_CONFIG.chart.comments.showInTooltip && l.comments.length && l.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex] && (a += `<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${l.color}">${l.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex]}</div>`);
797
+ })})` : ""}</div>`, this.FINAL_CONFIG.chart.comments.showInTooltip && l.comments.length && l.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex] && (i += `<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${l.color}">${l.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex]}</div>`);
797
798
  }
798
- }), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${this.FINAL_CONFIG.chart.tooltip.color}">${a}</div>`);
799
+ }), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${this.FINAL_CONFIG.chart.tooltip.color}">${i}</div>`);
799
800
  },
800
801
  svg() {
801
802
  return {
@@ -804,9 +805,9 @@ const ct = ne(), ot = {
804
805
  };
805
806
  },
806
807
  yLabels() {
807
- return this.niceScale.ticks.map((a) => ({
808
- y: a >= 0 ? this.zero - this.drawingArea.height * this.ratioToMax(a) : this.zero + this.drawingArea.height * this.ratioToMax(Math.abs(a)),
809
- value: a,
808
+ return this.niceScale.ticks.map((i) => ({
809
+ y: i >= 0 ? this.zero - this.drawingArea.height * this.ratioToMax(i) : this.zero + this.drawingArea.height * this.ratioToMax(Math.abs(i)),
810
+ value: i,
810
811
  prefix: this.FINAL_CONFIG.chart.labels.prefix,
811
812
  suffix: this.FINAL_CONFIG.chart.labels.suffix
812
813
  }));
@@ -815,28 +816,28 @@ const ct = ne(), ot = {
815
816
  return isNaN(this.ratioToMax(this.relativeZero)) ? this.drawingArea.bottom : this.drawingArea.bottom - this.drawingArea.height * this.ratioToMax(this.relativeZero);
816
817
  },
817
818
  annotationsY() {
818
- const a = this.FINAL_CONFIG.chart.annotations;
819
- if (!a || !Array.isArray(a) || a.every((N) => !N.show)) return [];
820
- const n = a.filter(
819
+ const i = this.FINAL_CONFIG.chart.annotations;
820
+ if (!i || !Array.isArray(i) || i.every((N) => !N.show)) return [];
821
+ const n = i.filter(
821
822
  (N) => N.show && (N.yAxis.yTop != null || N.yAxis.yBottom != null)
822
823
  );
823
824
  if (!n.length) return [];
824
- const { left: h, right: f } = this.drawingArea, l = this.zero, e = this.drawingArea.height, i = this.niceScale.min, z = this.niceScale.max - i, O = (N) => {
825
+ const { left: h, right: f } = this.drawingArea, l = this.zero, e = this.drawingArea.height, r = this.niceScale.min, z = this.niceScale.max - r, O = (N) => {
825
826
  const F = (N - 0) / z;
826
827
  return l - F * e;
827
828
  };
828
829
  return n.map((N) => {
829
- const { yAxis: { yTop: F, yBottom: v, label: m } } = N, y = F != null && v != null && F !== v, b = F == null ? null : O(F), M = v == null ? null : O(v), H = this.getTextMeasurer(m.fontSize);
830
- H.font = `${m.fontSize}px sans-serif`;
831
- const t = H.measureText(m.text).width, o = m.fontSize, c = (m.position === "start" ? h + m.padding.left : f - m.padding.right) + m.offsetX, p = (b != null && M != null ? Math.min(b, M) : b ?? M) - m.fontSize / 3 + m.offsetY - m.padding.top;
830
+ const { yAxis: { yTop: F, yBottom: v, label: m } } = N, A = F != null && v != null && F !== v, b = F == null ? null : O(F), M = v == null ? null : O(v), B = this.getTextMeasurer(m.fontSize);
831
+ B.font = `${m.fontSize}px sans-serif`;
832
+ const t = B.measureText(m.text).width, o = m.fontSize, c = (m.position === "start" ? h + m.padding.left : f - m.padding.right) + m.offsetX, p = (b != null && M != null ? Math.min(b, M) : b ?? M) - m.fontSize / 3 + m.offsetY - m.padding.top;
832
833
  let C;
833
834
  m.textAnchor === "middle" ? C = c - t / 2 - m.padding.left : m.textAnchor === "end" ? C = c - t - m.padding.right : C = c - m.padding.left;
834
835
  const S = p - o * 0.75 - m.padding.top;
835
836
  return {
836
837
  show: ![b, M, S].includes(NaN),
837
838
  id: `annotation_y_${this.createUid()}`,
838
- hasArea: y,
839
- areaHeight: y ? Math.abs(b - M) : 0,
839
+ hasArea: A,
840
+ areaHeight: A ? Math.abs(b - M) : 0,
840
841
  yTop: b,
841
842
  yBottom: M,
842
843
  config: N.yAxis,
@@ -859,10 +860,10 @@ const ct = ne(), ot = {
859
860
  }
860
861
  },
861
862
  mounted() {
862
- this.svgRef = this.$refs.svgRef, this.prepareChart(), this.setupSlicer(), document.addEventListener("mousemove", (a) => {
863
+ this.svgRef = this.$refs.svgRef, this.prepareChart(), this.setupSlicer(), document.addEventListener("mousemove", (i) => {
863
864
  this.clientPosition = {
864
- x: a.clientX,
865
- y: a.clientY
865
+ x: i.clientX,
866
+ y: i.clientY
866
867
  };
867
868
  }), document.addEventListener("scroll", this.hideTags);
868
869
  },
@@ -876,8 +877,8 @@ const ct = ne(), ot = {
876
877
  assignStackRatios: Ee,
877
878
  calcLinearProgression: We,
878
879
  calculateNiceScale: De,
879
- calculateNiceScaleWithExactExtremes: Be,
880
- checkNaN: He,
880
+ calculateNiceScaleWithExactExtremes: He,
881
+ checkNaN: Be,
881
882
  closestDecimal: Re,
882
883
  convertColorToHex: Ve,
883
884
  convertConfigColors: Pe,
@@ -889,20 +890,20 @@ const ct = ne(), ot = {
889
890
  createTSpansFromLineBreaksOnX: Ge,
890
891
  dataLabel: oe,
891
892
  downloadCsv: Oe,
892
- error: we,
893
- forceValidValue: ke,
893
+ error: ke,
894
+ forceValidValue: we,
894
895
  functionReturnsString: Se,
895
896
  hasDeepProperty: Ce,
896
897
  isFunction: Le,
897
- isSafeValue: ye,
898
- largestTriangleThreeBucketsArray: Ae,
898
+ isSafeValue: Ae,
899
+ largestTriangleThreeBucketsArray: ye,
899
900
  objectIsEmpty: _e,
900
901
  setOpacity: Fe,
901
902
  shiftHue: be,
902
903
  translateSize: me,
903
904
  treeShake: Ne,
904
905
  useMouse: je,
905
- useNestedProp: re,
906
+ useNestedProp: ae,
906
907
  createUid: ne,
907
908
  placeXYTag: xe,
908
909
  createSmoothPathWithCuts: Ie,
@@ -913,9 +914,9 @@ const ct = ne(), ot = {
913
914
  createIndividualArea: ue,
914
915
  forceResizeObserver() {
915
916
  if (!this.FINAL_CONFIG.responsive) return;
916
- const a = this.$refs.chart;
917
- if (a) {
918
- const n = a.parentNode;
917
+ const i = this.$refs.chart;
918
+ if (i) {
919
+ const n = i.parentNode;
919
920
  if (n) {
920
921
  const h = n.getBoundingClientRect().width;
921
922
  n.style.width = h - 0.1 + "px", setTimeout(() => {
@@ -926,49 +927,49 @@ const ct = ne(), ot = {
926
927
  },
927
928
  async setViewBox() {
928
929
  await this.$nextTick();
929
- const a = this.$refs.G;
930
- if (!a) return;
931
- const { x: n, y: h, width: f, height: l } = a.getBBox();
930
+ const i = this.$refs.G;
931
+ if (!i) return;
932
+ const { x: n, y: h, width: f, height: l } = i.getBBox();
932
933
  this.setYAxisLabel(), this.setXAxisLabel(), await this.$nextTick();
933
- const e = a.getBBox();
934
+ const e = i.getBBox();
934
935
  this.viewBox = `${e.x - this.FINAL_CONFIG.chart.padding.left} ${e.y - this.fontSizes.plotLabels - this.FINAL_CONFIG.chart.padding.top} ${e.width + this.FINAL_CONFIG.chart.padding.left + this.FINAL_CONFIG.chart.padding.right} ${e.height + this.fontSizes.plotLabels + this.FINAL_CONFIG.chart.padding.top + this.FINAL_CONFIG.chart.padding.bottom}`, await this.$nextTick(), this.$refs.chart.classList.remove("no-transition");
935
936
  },
936
937
  async setYAxisLabel() {
937
- const a = this.$refs.yAxisLabel;
938
- a && (await this.$nextTick(), a.setAttribute("transform", `translate(${this.viewBoxParts.x + this.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX + this.fontSizes.yAxis}, ${this.drawingArea.top + this.drawingArea.height / 2}) rotate(-90)`));
938
+ const i = this.$refs.yAxisLabel;
939
+ i && (await this.$nextTick(), i.setAttribute("transform", `translate(${this.viewBoxParts.x + this.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX + this.fontSizes.yAxis}, ${this.drawingArea.top + this.drawingArea.height / 2}) rotate(-90)`));
939
940
  },
940
941
  async setXAxisLabel() {
941
- const a = this.$refs.xAxisLabel;
942
- if (!a) return;
942
+ const i = this.$refs.xAxisLabel;
943
+ if (!i) return;
943
944
  await this.$nextTick();
944
945
  const n = this.$refs.timeLabels;
945
946
  let h = this.drawingArea.bottom;
946
- n && (h += n.getBBox().height), a.setAttribute("y", h + this.fontSizes.xAxis * 1.3 + this.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY);
947
+ n && (h += n.getBBox().height), i.setAttribute("y", h + this.fontSizes.xAxis * 1.3 + this.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY);
947
948
  },
948
949
  usesSelectTimeLabelEvent() {
949
950
  return !!this.$.vnode.props?.onSelectTimeLabel;
950
951
  },
951
- getTextMeasurer(a, n, h) {
952
+ getTextMeasurer(i, n, h) {
952
953
  if (!this._textMeasurer) {
953
954
  const f = document.createElement("canvas");
954
955
  this._textMeasurer = f.getContext("2d");
955
956
  }
956
- return this._textMeasurer.font = `${h || "normal"} ${a}px ${n || "sans-serif"}`, this._textMeasurer;
957
+ return this._textMeasurer.font = `${h || "normal"} ${i}px ${n || "sans-serif"}`, this._textMeasurer;
957
958
  },
958
959
  hideTags() {
959
- const a = document.querySelectorAll(".vue-ui-xy-tag");
960
- a.length && Array.from(a).forEach((n) => n.style.opacity = "0");
960
+ const i = document.querySelectorAll(".vue-ui-xy-tag");
961
+ i.length && Array.from(i).forEach((n) => n.style.opacity = "0");
961
962
  },
962
- setTagRef(a, n, h, f, l) {
963
- h && (this.tagRefs[`${a}_${n}_${f}_${l}`] = h);
963
+ setTagRef(i, n, h, f, l) {
964
+ h && (this.tagRefs[`${i}_${n}_${f}_${l}`] = h);
964
965
  },
965
- setUserOptionsVisibility(a = !1) {
966
- this.showUserOptionsOnChartHover && (this.userOptionsVisible = a);
966
+ setUserOptionsVisibility(i = !1) {
967
+ this.showUserOptionsOnChartHover && (this.userOptionsVisible = i);
967
968
  },
968
969
  toggleAnnotator() {
969
970
  this.isAnnotator = !this.isAnnotator;
970
971
  },
971
- selectTimeLabel(a, n) {
972
+ selectTimeLabel(i, n) {
972
973
  const h = this.relativeDataset.map((f) => ({
973
974
  shape: f.shape || null,
974
975
  name: f.name,
@@ -981,30 +982,30 @@ const ct = ne(), ot = {
981
982
  }));
982
983
  this.$emit("selectTimeLabel", {
983
984
  datapoint: h,
984
- absoluteIndex: a.absoluteIndex,
985
- label: a.text
985
+ absoluteIndex: i.absoluteIndex,
986
+ label: i.text
986
987
  });
987
988
  },
988
- getHighlightAreaPosition(a) {
989
- const n = this.drawingArea.left + this.drawingArea.width / this.maxSeries * (a.from - this.slicer.start), h = this.drawingArea.width / (this.slicer.end - this.slicer.start) * a.span < 0 ? 1e-5 : this.drawingArea.width / (this.slicer.end - this.slicer.start) * a.span;
989
+ getHighlightAreaPosition(i) {
990
+ const n = this.drawingArea.left + this.drawingArea.width / this.maxSeries * (i.from - this.slicer.start), h = this.drawingArea.width / (this.slicer.end - this.slicer.start) * i.span < 0 ? 1e-5 : this.drawingArea.width / (this.slicer.end - this.slicer.start) * i.span;
990
991
  return {
991
992
  x: n < this.drawingArea.left ? this.drawingArea.left : n,
992
993
  width: h
993
994
  };
994
995
  },
995
996
  prepareConfig() {
996
- const a = Ue().vue_ui_xy;
997
+ const i = Ue().vue_ui_xy;
997
998
  if (!Object.keys(this.config || {}).length)
998
- return a;
999
+ return i;
999
1000
  const n = this.useNestedProp({
1000
1001
  userConfig: this.config,
1001
- defaultConfig: a
1002
+ defaultConfig: i
1002
1003
  });
1003
- 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 && this.config.chart.annotations && Array.isArray(this.config.chart.annotations) && this.config.chart.annotations.length ? n.chart.annotations = this.config.chart.annotations.map((h) => re({
1004
- defaultConfig: a.chart.annotations[0],
1004
+ 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 && this.config.chart.annotations && Array.isArray(this.config.chart.annotations) && this.config.chart.annotations.length ? n.chart.annotations = this.config.chart.annotations.map((h) => ae({
1005
+ defaultConfig: i.chart.annotations[0],
1005
1006
  userConfig: h
1006
1007
  })) : n.chart.annotations = [], n.theme ? {
1007
- ...re({
1008
+ ...ae({
1008
1009
  userConfig: this.themes.vue_ui_xy[n.theme] || this.config,
1009
1010
  defaultConfig: n
1010
1011
  }),
@@ -1015,17 +1016,17 @@ const ct = ne(), ot = {
1015
1016
  if (this.objectIsEmpty(this.dataset) ? this.error({
1016
1017
  componentName: "VueUiXy",
1017
1018
  type: "dataset"
1018
- }) : this.dataset.forEach((a, n) => {
1019
- [null, void 0].includes(a.name) && this.error({
1019
+ }) : this.dataset.forEach((i, n) => {
1020
+ [null, void 0].includes(i.name) && this.error({
1020
1021
  componentName: "VueUiXy",
1021
1022
  type: "datasetSerieAttribute",
1022
1023
  property: "name (string)",
1023
1024
  index: n
1024
1025
  });
1025
- }), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((a) => {
1026
- a.series.forEach((n, h) => {
1026
+ }), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((i) => {
1027
+ i.series.forEach((n, h) => {
1027
1028
  this.isSafeValue(n) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
1028
- -----> The serie '${a.name}' contains the value '${n}' at index ${h}.
1029
+ -----> The serie '${i.name}' contains the value '${n}' at index ${h}.
1029
1030
  '${n}' was converted to null to allow the chart to display.`);
1030
1031
  });
1031
1032
  }), 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 = {
@@ -1042,26 +1043,26 @@ const ct = ne(), ot = {
1042
1043
  const { height: h, width: f } = n.getBoundingClientRect();
1043
1044
  let l = null, e = 0;
1044
1045
  this.FINAL_CONFIG.chart.title.show && this.$refs.chartTitle && (l = this.$refs.chartTitle, e = l.getBoundingClientRect().height);
1045
- let i = null, k = 0;
1046
- this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (i = this.$refs.chartSlicer.$el, k = i.getBoundingClientRect().height);
1046
+ let r = null, w = 0;
1047
+ this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (r = this.$refs.chartSlicer.$el, w = r.getBoundingClientRect().height);
1047
1048
  let z = null, O = 0;
1048
1049
  this.FINAL_CONFIG.chart.legend.show && this.$refs.chartLegend && (z = this.$refs.chartLegend, O = z.getBoundingClientRect().height);
1049
1050
  let N = 0;
1050
1051
  this.$refs.source && (N = this.$refs.source.getBoundingClientRect().height);
1051
1052
  let F = 0;
1052
- this.$refs.noTitle && (F = this.$refs.noTitle.getBoundingClientRect().height), this.height = h - e - O - k - N - F, this.width = f, this.setViewBox(0, 0, Math.max(10, this.width), Math.max(10, this.height)), this.convertSizes();
1053
+ this.$refs.noTitle && (F = this.$refs.noTitle.getBoundingClientRect().height), this.height = h - e - O - w - N - F, this.width = f, this.setViewBox(0, 0, Math.max(10, this.width), Math.max(10, this.height)), this.convertSizes();
1053
1054
  const v = new ResizeObserver((m) => {
1054
- for (const y of m)
1055
- this.FINAL_CONFIG.chart.title.show && this.$refs.chartTitle ? e = this.$refs.chartTitle.getBoundingClientRect().height : e = 0, this.$refs.chartSlicer && this.$refs.chartSlicer.$el ? k = this.$refs.chartSlicer.$el.getBoundingClientRect().height : k = 0, this.$refs.chartLegend ? O = this.$refs.chartLegend.getBoundingClientRect().height : O = 0, this.$refs.source ? N = this.$refs.source.getBoundingClientRect().height : N = 0, this.$refs.noTitle ? F = this.$refs.noTitle.getBoundingClientRect().height : F = 0, this.$refs.chart.classList.add("no-transition"), requestAnimationFrame(() => {
1056
- this.height = y.contentRect.height - e - O - k - N - F - 48, this.remainingHeight = y.contentRect.height - this.height, this.width = y.contentBoxSize[0].inlineSize, this.svgAspectRatio = this.width / this.remainingHeight, this.setViewBox(0, 0, Math.max(10, this.width), Math.max(10, this.height)), this.convertSizes();
1055
+ for (const A of m)
1056
+ this.FINAL_CONFIG.chart.title.show && this.$refs.chartTitle ? e = this.$refs.chartTitle.getBoundingClientRect().height : e = 0, this.$refs.chartSlicer && this.$refs.chartSlicer.$el ? w = this.$refs.chartSlicer.$el.getBoundingClientRect().height : w = 0, this.$refs.chartLegend ? O = this.$refs.chartLegend.getBoundingClientRect().height : O = 0, this.$refs.source ? N = this.$refs.source.getBoundingClientRect().height : N = 0, this.$refs.noTitle ? F = this.$refs.noTitle.getBoundingClientRect().height : F = 0, this.$refs.chart.classList.add("no-transition"), requestAnimationFrame(() => {
1057
+ this.height = A.contentRect.height - e - O - w - N - F - 48, this.remainingHeight = A.contentRect.height - this.height, this.width = A.contentBoxSize[0].inlineSize, this.svgAspectRatio = this.width / this.remainingHeight, this.setViewBox(0, 0, Math.max(10, this.width), Math.max(10, this.height)), this.convertSizes();
1057
1058
  });
1058
1059
  });
1059
1060
  this.resizeObserver = v, this.observedEl = n, v.observe(n);
1060
1061
  } else
1061
1062
  this.height = this.FINAL_CONFIG.chart.height, this.width = this.FINAL_CONFIG.chart.width, this.setViewBox(0, 0, Math.max(10, this.width), Math.max(10, 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;
1062
1063
  },
1063
- selectMinimapIndex(a) {
1064
- this.selectedMinimapIndex = a;
1064
+ selectMinimapIndex(i) {
1065
+ this.selectedMinimapIndex = i;
1065
1066
  },
1066
1067
  convertSizes() {
1067
1068
  if (!this.FINAL_CONFIG.responsiveProportionalSizing) {
@@ -1118,99 +1119,111 @@ const ct = ne(), ot = {
1118
1119
  toggleTooltip() {
1119
1120
  this.mutableConfig.showTooltip = !this.mutableConfig.showTooltip;
1120
1121
  },
1121
- checkAutoScaleError(a) {
1122
- a.autoScaling && (this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
1122
+ checkAutoScaleError(i) {
1123
+ i.autoScaling && (this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${i.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${i.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
1123
1124
  },
1124
- createArea(a, n) {
1125
- if (!a[0]) return [-10, -10, "", -10, -10];
1126
- const h = { x: a[0].x, y: n }, f = { x: a.at(-1).x, y: n }, l = [];
1127
- return a.forEach((e) => {
1125
+ createArea(i, n) {
1126
+ if (!i[0]) return [-10, -10, "", -10, -10];
1127
+ const h = { x: i[0].x, y: n }, f = { x: i.at(-1).x, y: n }, l = [];
1128
+ return i.forEach((e) => {
1128
1129
  l.push(`${e.x},${e.y} `);
1129
1130
  }), [h.x, h.y, ...l, f.x, f.y].toString();
1130
1131
  },
1131
- createStar: ie,
1132
+ createStar: re,
1132
1133
  createPolygonPath: q,
1133
- fillArray(a, n) {
1134
- let h = Array(a).fill(0);
1135
- for (let f = 0; f < n.length && f < a; f += 1)
1134
+ fillArray(i, n) {
1135
+ let h = Array(i).fill(0);
1136
+ for (let f = 0; f < n.length && f < i; f += 1)
1136
1137
  h[f] = n[f];
1137
1138
  return h;
1138
1139
  },
1139
1140
  async setupSlicer() {
1140
1141
  (this.FINAL_CONFIG.chart.zoom.startIndex !== null || this.FINAL_CONFIG.chart.zoom.endIndex !== null) && this.$refs.chartSlicer ? (this.FINAL_CONFIG.chart.zoom.startIndex !== null && (await this.$nextTick(), await this.$nextTick(), this.$refs.chartSlicer.setStartValue(this.FINAL_CONFIG.chart.zoom.startIndex)), this.FINAL_CONFIG.chart.zoom.endIndex !== null && (await this.$nextTick(), await this.$nextTick(), this.$refs.chartSlicer.setEndValue(this.validSlicerEnd(this.FINAL_CONFIG.chart.zoom.endIndex + 1)))) : (this.slicer = {
1141
1142
  start: 0,
1142
- end: Math.max(...this.dataset.map((a) => this.largestTriangleThreeBucketsArray({ data: a.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length))
1143
+ end: Math.max(...this.dataset.map((i) => this.largestTriangleThreeBucketsArray({ data: i.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length))
1143
1144
  }, this.slicerStep += 1);
1144
1145
  },
1145
1146
  refreshSlicer() {
1146
1147
  this.setupSlicer();
1147
1148
  },
1148
- validSlicerEnd(a) {
1149
+ validSlicerEnd(i) {
1149
1150
  const n = Math.max(...this.dataset.map((h) => this.largestTriangleThreeBucketsArray({ data: h.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length));
1150
- return a > n ? n : a < 0 || this.FINAL_CONFIG.chart.zoom.startIndex !== null && a < this.FINAL_CONFIG.chart.zoom.startIndex ? this.FINAL_CONFIG.chart.zoom.startIndex !== null ? this.FINAL_CONFIG.chart.zoom.startIndex + 1 : 1 : a;
1151
+ return i > n ? n : i < 0 || this.FINAL_CONFIG.chart.zoom.startIndex !== null && i < this.FINAL_CONFIG.chart.zoom.startIndex ? this.FINAL_CONFIG.chart.zoom.startIndex !== null ? this.FINAL_CONFIG.chart.zoom.startIndex + 1 : 1 : i;
1151
1152
  },
1152
- calcRectHeight(a) {
1153
+ calcRectHeight(i) {
1153
1154
  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;
1154
- return a.value >= 0 ? this.checkNaN(n - a.y <= 0 ? 1e-5 : n - a.y) : this.checkNaN(a.y - this.zero <= 0 ? 1e-5 : a.y - this.zero);
1155
+ return i.value >= 0 ? this.checkNaN(n - i.y <= 0 ? 1e-5 : n - i.y) : this.checkNaN(i.y - this.zero <= 0 ? 1e-5 : i.y - this.zero);
1155
1156
  },
1156
- calcIndividualHeight(a) {
1157
- return a.value >= 0 ? this.checkNaN(a.zeroPosition - a.y <= 0 ? 1e-5 : a.zeroPosition - a.y) : this.checkNaN(a.y - a.zeroPosition <= 0 ? 1e-5 : a.zeroPosition - a.y);
1157
+ calcIndividualHeight(i) {
1158
+ return i.value >= 0 ? this.checkNaN(i.zeroPosition - i.y <= 0 ? 1e-5 : i.zeroPosition - i.y) : this.checkNaN(i.y - i.zeroPosition <= 0 ? 1e-5 : i.zeroPosition - i.y);
1158
1159
  },
1159
1160
  calcRectWidth() {
1160
1161
  return this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.slot.line - this.drawingArea.width / this.maxSeries * 0.1 : this.slot.bar;
1161
1162
  },
1162
- calcRectX(a) {
1163
- return this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? a.x + this.drawingArea.width / this.maxSeries * 0.05 : a.x + this.slot.bar / 2;
1163
+ calcRectX(i) {
1164
+ return this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? i.x + this.drawingArea.width / this.maxSeries * 0.05 : i.x + this.slot.bar / 2;
1164
1165
  },
1165
- calcRectY(a) {
1166
- return a.value >= 0 ? a.y : this.zero;
1166
+ calcRectY(i) {
1167
+ return i.value >= 0 ? i.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(this.zero) ? this.drawingArea.bottom : this.zero;
1167
1168
  },
1168
- calcIndividualRectY(a) {
1169
- return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(a.zeroPosition) ? 0 : a.zeroPosition;
1169
+ calcIndividualRectY(i) {
1170
+ return i.value >= 0 ? i.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(i.zeroPosition) ? 0 : i.zeroPosition;
1170
1171
  },
1171
- canShowValue(a) {
1172
- return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(a);
1172
+ canShowValue(i) {
1173
+ return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(i);
1173
1174
  },
1174
- findClosestValue(a, n) {
1175
- let h = n[0], f = Math.abs(a - n[0]);
1175
+ findClosestValue(i, n) {
1176
+ let h = n[0], f = Math.abs(i - n[0]);
1176
1177
  for (let l = 1; l < n.length; l += 1) {
1177
- const e = Math.abs(a - n[l]);
1178
- e < f && n[l] < a && (h = n[l], f = e);
1178
+ const e = Math.abs(i - n[l]);
1179
+ e < f && n[l] < i && (h = n[l], f = e);
1179
1180
  }
1180
1181
  return h;
1181
1182
  },
1182
- ratioToMax(a) {
1183
- return a / (this.canShowValue(this.absoluteMax) ? this.absoluteMax : 1);
1183
+ ratioToMax(i) {
1184
+ return i / (this.canShowValue(this.absoluteMax) ? this.absoluteMax : 1);
1184
1185
  },
1185
- selectX(a) {
1186
+ selectX(i) {
1186
1187
  this.$emit(
1187
1188
  "selectX",
1188
1189
  {
1189
1190
  dataset: this.relativeDataset.map((n) => ({
1190
1191
  name: n.name,
1191
- value: [null, void 0, NaN].includes(n.absoluteValues[a]) ? null : n.absoluteValues[a],
1192
+ value: [null, void 0, NaN].includes(n.absoluteValues[i]) ? null : n.absoluteValues[i],
1192
1193
  color: n.color,
1193
1194
  type: n.type
1194
1195
  })),
1195
- index: a,
1196
- indexLabel: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[a]
1196
+ index: i,
1197
+ indexLabel: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[i]
1197
1198
  }
1198
1199
  );
1199
1200
  },
1200
1201
  getData() {
1201
- return this.absoluteDataset.map((a) => ({
1202
- values: a.absoluteValues,
1203
- color: a.color,
1204
- name: a.name,
1205
- type: a.type
1202
+ return this.absoluteDataset.map((i) => ({
1203
+ values: i.absoluteValues,
1204
+ color: i.color,
1205
+ name: i.name,
1206
+ type: i.type
1206
1207
  }));
1207
1208
  },
1208
- segregate(a) {
1209
- if (this.segregatedSeries.includes(a.id))
1210
- this.segregatedSeries = this.segregatedSeries.filter((n) => n !== a.id);
1209
+ async getImage({ scale: i = 2 } = {}) {
1210
+ if (!this.$refs.chart) return;
1211
+ const { width: n, height: h } = this.$refs.chart.getBoundingClientRect(), f = n / h, { imageUri: l, base64: e } = await nt({ domElement: this.$refs.chart, base64: !0, img: !0, scale: i });
1212
+ return {
1213
+ imageUri: l,
1214
+ base64: e,
1215
+ title: this.FINAL_CONFIG.chart.title.text,
1216
+ width: n,
1217
+ height: h,
1218
+ aspectRatio: f
1219
+ };
1220
+ },
1221
+ segregate(i) {
1222
+ if (this.segregatedSeries.includes(i.id))
1223
+ this.segregatedSeries = this.segregatedSeries.filter((n) => n !== i.id);
1211
1224
  else {
1212
1225
  if (this.segregatedSeries.length + 1 === this.safeDataset.length) return;
1213
- this.segregatedSeries.push(a.id);
1226
+ this.segregatedSeries.push(i.id);
1214
1227
  }
1215
1228
  this.$emit("selectLegend", this.relativeDataset.map((n) => ({
1216
1229
  name: n.name,
@@ -1219,11 +1232,11 @@ const ct = ne(), ot = {
1219
1232
  type: n.type
1220
1233
  }))), this.segregateStep += 1;
1221
1234
  },
1222
- toggleTooltipVisibility(a, n = null) {
1223
- this.isTooltip = a, a ? this.selectedSerieIndex = n : this.selectedSerieIndex = null;
1235
+ toggleTooltipVisibility(i, n = null) {
1236
+ this.isTooltip = i, i ? this.selectedSerieIndex = n : this.selectedSerieIndex = null;
1224
1237
  },
1225
- toggleFullscreen(a) {
1226
- this.isFullscreen = a, this.step += 1;
1238
+ toggleFullscreen(i) {
1239
+ this.isFullscreen = i, this.step += 1;
1227
1240
  },
1228
1241
  showSpinnerPdf() {
1229
1242
  this.isPrinting = !0;
@@ -1231,22 +1244,22 @@ const ct = ne(), ot = {
1231
1244
  async generatePdf() {
1232
1245
  this.showSpinnerPdf(), clearTimeout(this.__to__), this.isPrinting = !0, this.__to__ = setTimeout(async () => {
1233
1246
  try {
1234
- const { default: a } = await import("./pdf-DPxOdzfi.js");
1235
- await a({
1247
+ const { default: i } = await import("./pdf-DROWzopj.js");
1248
+ await i({
1236
1249
  domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
1237
1250
  fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
1238
1251
  options: this.FINAL_CONFIG.chart.userOptions.print
1239
1252
  });
1240
- } catch (a) {
1241
- console.error("Error generating PDF:", a);
1253
+ } catch (i) {
1254
+ console.error("Error generating PDF:", i);
1242
1255
  } finally {
1243
1256
  this.isPrinting = !1;
1244
1257
  }
1245
1258
  }, 100);
1246
1259
  },
1247
- generateCsv(a = null) {
1248
- const n = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], h = ["", ...this.table.head.map((i) => i.label)], f = this.table.body, l = n.concat([h]).concat(f), e = this.createCsvContent(l);
1249
- a ? a(e) : this.downloadCsv({ csvContent: e, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
1260
+ generateCsv(i = null) {
1261
+ const n = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], h = ["", ...this.table.head.map((r) => r.label)], f = this.table.body, l = n.concat([h]).concat(f), e = this.createCsvContent(l);
1262
+ i ? i(e) : this.downloadCsv({ csvContent: e, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
1250
1263
  },
1251
1264
  showSpinnerImage() {
1252
1265
  this.isImaging = !0;
@@ -1254,87 +1267,87 @@ const ct = ne(), ot = {
1254
1267
  async generateImage() {
1255
1268
  this.showSpinnerImage(), clearTimeout(this.__to__), this.isImaging = !0, this.__to__ = setTimeout(async () => {
1256
1269
  try {
1257
- const { default: a } = await import("./img-BeMVTwmF.js");
1258
- await a({
1270
+ const { default: i } = await import("./img-D3JvqNF8.js");
1271
+ await i({
1259
1272
  domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
1260
1273
  fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
1261
1274
  format: "png",
1262
1275
  options: this.FINAL_CONFIG.chart.userOptions.print
1263
1276
  });
1264
- } catch (a) {
1265
- console.error("Error generating image:", a);
1277
+ } catch (i) {
1278
+ console.error("Error generating image:", i);
1266
1279
  } finally {
1267
1280
  this.isImaging = !1;
1268
1281
  }
1269
1282
  }, 100);
1270
1283
  }
1271
1284
  }
1272
- }, ht = ["id"], ut = {
1285
+ }, ut = ["id"], dt = {
1273
1286
  key: 1,
1274
1287
  ref: "noTitle",
1275
1288
  class: "vue-data-ui-no-title-space",
1276
1289
  style: "height:36px; width: 100%; background:transparent"
1277
- }, dt = ["viewBox", "aria-label"], gt = { ref: "G" }, ft = ["x", "y", "width", "height"], It = { key: 1 }, xt = { class: "vue-ui-xy-grid" }, Nt = ["stroke", "x1", "x2", "y1", "y2"], mt = ["stroke", "x1", "x2", "y1", "y2"], bt = { key: 1 }, Ft = ["x1", "x2", "y1", "y2", "stroke"], _t = ["x1", "x2", "y1", "y2", "stroke"], At = ["x1", "x2", "y1", "y2", "stroke"], yt = { key: 3 }, Lt = ["x1", "x2", "y1", "y2", "stroke"], Ct = { key: 4 }, St = ["y1", "y2", "x1", "x2", "stroke"], kt = ["id"], wt = ["stop-color"], Ot = ["stop-color"], Gt = ["stop-color"], vt = ["id"], pt = ["stop-color"], zt = ["stop-color"], Mt = ["stop-color"], Tt = ["id"], Pt = ["stop-color"], Vt = ["stop-color"], Rt = ["id"], Ht = ["stop-color"], Bt = ["stop-color"], Dt = ["id"], Wt = ["stop-color"], Et = ["stop-color"], Yt = ["x", "y", "height", "width", "fill"], Xt = ["x", "y", "width"], qt = ["x", "y", "height", "width", "fill"], Ut = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Zt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Jt = ["width", "x", "y"], Kt = { key: 0 }, Qt = ["id"], jt = ["fill"], $t = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], el = ["x", "y", "font-size", "fill"], tl = ["stroke", "x1", "x2", "y1", "y2"], ll = { key: 2 }, al = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], il = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], rl = {
1290
+ }, gt = ["viewBox", "aria-label"], ft = { ref: "G" }, It = ["x", "y", "width", "height"], xt = { key: 1 }, Nt = { class: "vue-ui-xy-grid" }, mt = ["stroke", "x1", "x2", "y1", "y2"], bt = ["stroke", "x1", "x2", "y1", "y2"], Ft = { key: 1 }, _t = ["x1", "x2", "y1", "y2", "stroke"], yt = ["x1", "x2", "y1", "y2", "stroke"], At = ["x1", "x2", "y1", "y2", "stroke"], Lt = { key: 3 }, Ct = ["x1", "x2", "y1", "y2", "stroke"], St = { key: 4 }, wt = ["y1", "y2", "x1", "x2", "stroke"], kt = ["id"], Ot = ["stop-color"], Gt = ["stop-color"], vt = ["stop-color"], pt = ["id"], zt = ["stop-color"], Mt = ["stop-color"], Tt = ["stop-color"], Pt = ["id"], Vt = ["stop-color"], Rt = ["stop-color"], Bt = ["id"], Ht = ["stop-color"], Dt = ["stop-color"], Wt = ["id"], Et = ["stop-color"], Yt = ["stop-color"], Xt = ["x", "y", "height", "width", "fill"], qt = ["x", "y", "width"], Ut = ["x", "y", "height", "width", "fill"], Zt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Jt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Kt = ["width", "x", "y"], Qt = { key: 0 }, jt = ["id"], $t = ["fill"], el = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], tl = ["x", "y", "font-size", "fill"], ll = ["stroke", "x1", "x2", "y1", "y2"], il = { key: 2 }, rl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], al = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], sl = {
1278
1291
  key: 4,
1279
1292
  ref: "scaleLabels"
1280
- }, sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], nl = ["fill", "font-size", "transform"], cl = ["x1", "x2", "y1", "y2", "stroke"], ol = ["x", "y", "font-size", "fill"], hl = ["x1", "x2", "y1", "y2", "stroke"], ul = ["x", "y", "font-size", "fill"], dl = ["width", "x", "y"], gl = { style: { width: "100%" } }, fl = { key: 0 }, Il = ["id"], xl = ["fill"], Nl = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ml = ["x", "y", "font-size", "fill"], bl = ["d", "stroke", "stroke-width", "stroke-dasharray"], Fl = ["d", "stroke", "stroke-width", "stroke-dasharray"], _l = { key: 5 }, Al = { key: 0 }, yl = ["d", "fill"], Ll = ["d", "fill"], Cl = ["d", "fill"], Sl = ["d", "fill"], kl = ["d", "stroke", "stroke-width", "stroke-dasharray"], wl = ["d", "stroke", "stroke-width", "stroke-dasharray"], Ol = ["width", "x", "y"], Gl = { style: { width: "100%" } }, vl = { key: 3 }, pl = ["id"], zl = ["fill"], Ml = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Tl = ["x", "y", "font-size", "fill"], Pl = { key: 6 }, Vl = ["x", "y", "font-size", "fill"], Rl = ["x", "y", "font-size", "fill", "font-weight"], Hl = { key: 7 }, Bl = ["x", "y", "font-size", "fill"], Dl = { key: 8 }, Wl = ["x", "y"], El = ["innerHTML"], Yl = ["x", "y"], Xl = ["innerHTML"], ql = ["x1", "x2", "y1", "y2", "stroke"], Ul = { key: 9 }, Zl = ["x", "y", "font-size", "fill"], Jl = { key: 10 }, Kl = ["x", "y"], Ql = ["innerHTML"], jl = ["x", "y"], $l = ["innerHTML"], ea = ["x1", "x2", "y1", "y2", "stroke"], ta = ["x", "y", "font-size", "fill", "innerHTML"], la = ["x", "y", "font-size", "fill", "innerHTML"], aa = ["x", "y", "font-size", "fill", "innerHTML"], ia = ["x", "y", "font-size", "fill", "innerHTML"], ra = ["id"], sa = ["stop-color"], na = ["stop-color"], ca = ["x", "y", "width", "height", "fill", "onMouseenter"], oa = ["font-size", "fill"], ha = ["x", "font-size", "fill"], ua = {
1293
+ }, nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], cl = ["fill", "font-size", "transform"], ol = ["x1", "x2", "y1", "y2", "stroke"], hl = ["x", "y", "font-size", "fill"], ul = ["x1", "x2", "y1", "y2", "stroke"], dl = ["x", "y", "font-size", "fill"], gl = ["width", "x", "y"], fl = { style: { width: "100%" } }, Il = { key: 0 }, xl = ["id"], Nl = ["fill"], ml = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], bl = ["x", "y", "font-size", "fill"], Fl = ["d", "stroke", "stroke-width", "stroke-dasharray"], _l = ["d", "stroke", "stroke-width", "stroke-dasharray"], yl = { key: 5 }, Al = { key: 0 }, Ll = ["d", "fill"], Cl = ["d", "fill"], Sl = ["d", "fill"], wl = ["d", "fill"], kl = ["d", "stroke", "stroke-width", "stroke-dasharray"], Ol = ["d", "stroke", "stroke-width", "stroke-dasharray"], Gl = ["width", "x", "y"], vl = { style: { width: "100%" } }, pl = { key: 3 }, zl = ["id"], Ml = ["fill"], Tl = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Pl = ["x", "y", "font-size", "fill"], Vl = { key: 6 }, Rl = ["x", "y", "font-size", "fill"], Bl = ["x", "y", "font-size", "fill", "font-weight"], Hl = { key: 7 }, Dl = ["x", "y", "font-size", "fill"], Wl = { key: 8 }, El = ["x", "y"], Yl = ["innerHTML"], Xl = ["x", "y"], ql = ["innerHTML"], Ul = ["x1", "x2", "y1", "y2", "stroke"], Zl = { key: 9 }, Jl = ["x", "y", "font-size", "fill"], Kl = { key: 10 }, Ql = ["x", "y"], jl = ["innerHTML"], $l = ["x", "y"], ei = ["innerHTML"], ti = ["x1", "x2", "y1", "y2", "stroke"], li = ["x", "y", "font-size", "fill", "innerHTML"], ii = ["x", "y", "font-size", "fill", "innerHTML"], ri = ["x", "y", "font-size", "fill", "innerHTML"], ai = ["x", "y", "font-size", "fill", "innerHTML"], si = ["id"], ni = ["stop-color"], ci = ["stop-color"], oi = ["x", "y", "width", "height", "fill", "onMouseenter"], hi = ["font-size", "fill"], ui = ["x", "font-size", "fill"], di = {
1281
1294
  key: 12,
1282
1295
  ref: "timeLabels"
1283
- }, da = ["text-anchor", "font-size", "fill", "transform", "onClick"], ga = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], fa = { key: 13 }, Ia = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], xa = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Na = ["y", "x", "width", "height", "fill"], ma = ["id", "x", "y", "font-size", "fill", "text-anchor"], ba = ["x", "y", "height", "width", "onMouseenter", "onClick"], Fa = {
1296
+ }, gi = ["text-anchor", "font-size", "fill", "transform", "onClick"], fi = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], Ii = { key: 13 }, xi = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ni = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], mi = ["y", "x", "width", "height", "fill"], bi = ["id", "x", "y", "font-size", "fill", "text-anchor"], Fi = ["x", "y", "height", "width", "onMouseenter", "onClick"], _i = {
1284
1297
  key: 14,
1285
1298
  style: { "pointer-events": "none" }
1286
- }, _a = ["x", "y"], Aa = ["cx", "cy", "r", "fill"], ya = {
1299
+ }, yi = ["x", "y"], Ai = ["cx", "cy", "r", "fill"], Li = {
1287
1300
  key: 5,
1288
1301
  class: "vue-data-ui-watermark"
1289
- }, La = {
1302
+ }, Ci = {
1290
1303
  class: "vue-ui-xy-tag-arrow",
1291
1304
  height: "20",
1292
1305
  viewBox: "0 0 10 20",
1293
1306
  style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
1294
- }, Ca = ["fill"], Sa = ["innerHTML"], ka = {
1307
+ }, Si = ["fill"], wi = ["innerHTML"], ki = {
1295
1308
  class: "vue-ui-xy-tag-arrow",
1296
1309
  height: "100%",
1297
1310
  viewBox: "0 0 10 20",
1298
1311
  style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
1299
- }, wa = ["fill"], Oa = ["innerHTML"], Ga = {
1312
+ }, Oi = ["fill"], Gi = ["innerHTML"], vi = {
1300
1313
  class: "vue-ui-xy-tag-arrow",
1301
1314
  height: "20",
1302
1315
  viewBox: "0 0 10 20",
1303
1316
  style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
1304
- }, va = ["fill"], pa = ["innerHTML"], za = {
1317
+ }, pi = ["fill"], zi = ["innerHTML"], Mi = {
1305
1318
  class: "vue-ui-xy-tag-arrow",
1306
1319
  height: "100%",
1307
1320
  viewBox: "0 0 10 20",
1308
1321
  style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
1309
- }, Ma = ["fill"], Ta = ["innerHTML"], Pa = ["onClick"], Va = {
1322
+ }, Ti = ["fill"], Pi = ["innerHTML"], Vi = ["onClick"], Ri = {
1310
1323
  key: 0,
1311
1324
  viewBox: "0 0 20 12",
1312
1325
  height: "14",
1313
1326
  width: "20"
1314
- }, Ra = ["stroke", "fill"], Ha = {
1327
+ }, Bi = ["stroke", "fill"], Hi = {
1315
1328
  key: 1,
1316
1329
  viewBox: "0 0 40 40",
1317
1330
  height: "14",
1318
1331
  width: "14"
1319
- }, Ba = ["fill"], Da = ["fill"], Wa = {
1332
+ }, Di = ["fill"], Wi = ["fill"], Ei = {
1320
1333
  key: 2,
1321
1334
  viewBox: "0 0 12 12",
1322
1335
  height: "14",
1323
1336
  width: "14"
1324
- }, Ea = {
1337
+ }, Yi = {
1325
1338
  key: 9,
1326
1339
  ref: "chartLegend"
1327
- }, Ya = {
1340
+ }, Xi = {
1328
1341
  key: 10,
1329
1342
  ref: "source",
1330
1343
  dir: "auto"
1331
- }, Xa = {
1344
+ }, qi = {
1332
1345
  style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
1333
1346
  "data-dom-to-png-ignore": ""
1334
- }, qa = ["innerHTML"];
1335
- function Ua(a, n, h, f, l, e) {
1336
- const i = X("PenAndPaper"), k = X("Title"), z = X("UserOptions"), O = X("PackageVersion"), N = X("Shape"), F = X("Skeleton"), v = X("Slicer"), m = X("Tooltip"), y = X("BaseIcon"), b = X("TableSparkline"), M = X("DataTable"), H = X("Accordion");
1337
- return r(), s("div", {
1347
+ }, Ui = ["innerHTML"];
1348
+ function Zi(i, n, h, f, l, e) {
1349
+ const r = X("PenAndPaper"), w = X("Title"), z = X("UserOptions"), O = X("PackageVersion"), N = X("Shape"), F = X("Skeleton"), v = X("Slicer"), m = X("Tooltip"), A = X("BaseIcon"), b = X("TableSparkline"), M = X("DataTable"), B = X("Accordion");
1350
+ return a(), s("div", {
1338
1351
  id: `vue-ui-xy_${l.uniqueId}`,
1339
1352
  class: j(`vue-ui-xy ${l.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
1340
1353
  ref: "chart",
@@ -1342,7 +1355,7 @@ function Ua(a, n, h, f, l, e) {
1342
1355
  onMouseenter: n[7] || (n[7] = () => e.setUserOptionsVisibility(!0)),
1343
1356
  onMouseleave: n[8] || (n[8] = () => e.setUserOptionsVisibility(!1))
1344
1357
  }, [
1345
- e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (r(), U(i, {
1358
+ e.FINAL_CONFIG.chart.userOptions.buttons.annotator && l.svgRef ? (a(), U(r, {
1346
1359
  key: 0,
1347
1360
  svgRef: l.svgRef,
1348
1361
  backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
@@ -1350,14 +1363,14 @@ function Ua(a, n, h, f, l, e) {
1350
1363
  active: l.isAnnotator,
1351
1364
  onClose: e.toggleAnnotator
1352
1365
  }, null, 8, ["svgRef", "backgroundColor", "color", "active", "onClose"])) : u("", !0),
1353
- e.hasOptionsNoTitle ? (r(), s("div", ut, null, 512)) : u("", !0),
1354
- e.FINAL_CONFIG.chart.title.show ? (r(), s("div", {
1366
+ e.hasOptionsNoTitle ? (a(), s("div", dt, null, 512)) : u("", !0),
1367
+ e.FINAL_CONFIG.chart.title.show ? (a(), s("div", {
1355
1368
  key: 2,
1356
1369
  ref: "chartTitle",
1357
1370
  class: "vue-ui-xy-title",
1358
1371
  style: _(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
1359
1372
  }, [
1360
- (r(), U(k, {
1373
+ (a(), U(w, {
1361
1374
  key: `title_${l.titleStep}`,
1362
1375
  config: {
1363
1376
  title: {
@@ -1371,7 +1384,7 @@ function Ua(a, n, h, f, l, e) {
1371
1384
  }
1372
1385
  }, null, 8, ["config"]))
1373
1386
  ], 4)) : u("", !0),
1374
- e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (l.keepUserOptionState || l.userOptionsVisible) ? (r(), U(z, {
1387
+ e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (l.keepUserOptionState || l.userOptionsVisible) ? (a(), U(z, {
1375
1388
  ref: "defails",
1376
1389
  key: `user_options_${l.step}`,
1377
1390
  backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
@@ -1389,13 +1402,14 @@ function Ua(a, n, h, f, l, e) {
1389
1402
  hasFullscreen: e.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,
1390
1403
  isStacked: l.mutableConfig.isStacked,
1391
1404
  isFullscreen: l.isFullscreen,
1392
- chartElement: a.$refs.chart,
1405
+ chartElement: i.$refs.chart,
1393
1406
  position: e.FINAL_CONFIG.chart.userOptions.position,
1394
1407
  isTooltip: l.mutableConfig.showTooltip,
1395
1408
  titles: { ...e.FINAL_CONFIG.chart.userOptions.buttonTitles },
1396
1409
  hasAnnotator: e.FINAL_CONFIG.chart.userOptions.buttons.annotator,
1397
1410
  isAnnotation: l.isAnnotator,
1398
1411
  callbacks: e.FINAL_CONFIG.chart.userOptions.callbacks,
1412
+ printScale: e.FINAL_CONFIG.chart.userOptions.print.scale,
1399
1413
  onToggleFullscreen: e.toggleFullscreen,
1400
1414
  onGeneratePdf: e.generatePdf,
1401
1415
  onGenerateCsv: e.generateCsv,
@@ -1409,78 +1423,78 @@ function Ua(a, n, h, f, l, e) {
1409
1423
  visibility: l.keepUserOptionState ? l.userOptionsVisible ? "visible" : "hidden" : "visible"
1410
1424
  })
1411
1425
  }, et({ _: 2 }, [
1412
- a.$slots.menuIcon ? {
1426
+ i.$slots.menuIcon ? {
1413
1427
  name: "menuIcon",
1414
1428
  fn: D(({ isOpen: t, color: o }) => [
1415
- G(a.$slots, "menuIcon", $(ee({ isOpen: t, color: o })), void 0, !0)
1429
+ G(i.$slots, "menuIcon", $(ee({ isOpen: t, color: o })), void 0, !0)
1416
1430
  ]),
1417
1431
  key: "0"
1418
1432
  } : void 0,
1419
- a.$slots.optionTooltip ? {
1433
+ i.$slots.optionTooltip ? {
1420
1434
  name: "optionTooltip",
1421
1435
  fn: D(() => [
1422
- G(a.$slots, "optionTooltip", {}, void 0, !0)
1436
+ G(i.$slots, "optionTooltip", {}, void 0, !0)
1423
1437
  ]),
1424
1438
  key: "1"
1425
1439
  } : void 0,
1426
- a.$slots.optionPdf ? {
1440
+ i.$slots.optionPdf ? {
1427
1441
  name: "optionPdf",
1428
1442
  fn: D(() => [
1429
- G(a.$slots, "optionPdf", {}, void 0, !0)
1443
+ G(i.$slots, "optionPdf", {}, void 0, !0)
1430
1444
  ]),
1431
1445
  key: "2"
1432
1446
  } : void 0,
1433
- a.$slots.optionCsv ? {
1447
+ i.$slots.optionCsv ? {
1434
1448
  name: "optionCsv",
1435
1449
  fn: D(() => [
1436
- G(a.$slots, "optionCsv", {}, void 0, !0)
1450
+ G(i.$slots, "optionCsv", {}, void 0, !0)
1437
1451
  ]),
1438
1452
  key: "3"
1439
1453
  } : void 0,
1440
- a.$slots.optionImg ? {
1454
+ i.$slots.optionImg ? {
1441
1455
  name: "optionImg",
1442
1456
  fn: D(() => [
1443
- G(a.$slots, "optionImg", {}, void 0, !0)
1457
+ G(i.$slots, "optionImg", {}, void 0, !0)
1444
1458
  ]),
1445
1459
  key: "4"
1446
1460
  } : void 0,
1447
- a.$slots.optionTable ? {
1461
+ i.$slots.optionTable ? {
1448
1462
  name: "optionTable",
1449
1463
  fn: D(() => [
1450
- G(a.$slots, "optionTable", {}, void 0, !0)
1464
+ G(i.$slots, "optionTable", {}, void 0, !0)
1451
1465
  ]),
1452
1466
  key: "5"
1453
1467
  } : void 0,
1454
- a.$slots.optionLabels ? {
1468
+ i.$slots.optionLabels ? {
1455
1469
  name: "optionLabels",
1456
1470
  fn: D(() => [
1457
- G(a.$slots, "optionLabels", {}, void 0, !0)
1471
+ G(i.$slots, "optionLabels", {}, void 0, !0)
1458
1472
  ]),
1459
1473
  key: "6"
1460
1474
  } : void 0,
1461
- a.$slots.optionStack ? {
1475
+ i.$slots.optionStack ? {
1462
1476
  name: "optionStack",
1463
1477
  fn: D(() => [
1464
- G(a.$slots, "optionStack", {}, void 0, !0)
1478
+ G(i.$slots, "optionStack", {}, void 0, !0)
1465
1479
  ]),
1466
1480
  key: "7"
1467
1481
  } : void 0,
1468
- a.$slots.optionFullscreen ? {
1482
+ i.$slots.optionFullscreen ? {
1469
1483
  name: "optionFullscreen",
1470
1484
  fn: D(({ toggleFullscreen: t, isFullscreen: o }) => [
1471
- G(a.$slots, "optionFullscreen", $(ee({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
1485
+ G(i.$slots, "optionFullscreen", $(ee({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
1472
1486
  ]),
1473
1487
  key: "8"
1474
1488
  } : void 0,
1475
- a.$slots.optionAnnotator ? {
1489
+ i.$slots.optionAnnotator ? {
1476
1490
  name: "optionAnnotator",
1477
1491
  fn: D(({ toggleAnnotator: t, isAnnotator: o }) => [
1478
- G(a.$slots, "optionAnnotator", $(ee({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
1492
+ G(i.$slots, "optionAnnotator", $(ee({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
1479
1493
  ]),
1480
1494
  key: "9"
1481
1495
  } : void 0
1482
- ]), 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),
1483
- e.isDataset ? (r(), s("svg", {
1496
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onToggleFullscreen", "onGeneratePdf", "onGenerateCsv", "onGenerateImage", "onToggleTable", "onToggleLabels", "onToggleStack", "onToggleTooltip", "onToggleAnnotator", "style"])) : u("", !0),
1497
+ e.isDataset ? (a(), s("svg", {
1484
1498
  key: 4,
1485
1499
  ref: "svgRef",
1486
1500
  xmlns: "http://www.w3.org/2000/svg",
@@ -1492,9 +1506,9 @@ function Ua(a, n, h, f, l, e) {
1492
1506
  "aria-live": "polite",
1493
1507
  preserveAspectRatio: "xMidYMid"
1494
1508
  }, [
1495
- I("g", gt, [
1509
+ I("g", ft, [
1496
1510
  le(O),
1497
- a.$slots["chart-background"] ? (r(), s("foreignObject", {
1511
+ i.$slots["chart-background"] ? (a(), s("foreignObject", {
1498
1512
  key: 0,
1499
1513
  x: e.drawingArea.left + e.xPadding < 0 ? 0 : e.drawingArea.left + e.xPadding,
1500
1514
  y: e.drawingArea.top,
@@ -1504,11 +1518,11 @@ function Ua(a, n, h, f, l, e) {
1504
1518
  pointerEvents: "none"
1505
1519
  }
1506
1520
  }, [
1507
- G(a.$slots, "chart-background", {}, void 0, !0)
1508
- ], 8, ft)) : u("", !0),
1509
- e.maxSeries > 0 ? (r(), s("g", It, [
1510
- I("g", xt, [
1511
- e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (r(), s("line", {
1521
+ G(i.$slots, "chart-background", {}, void 0, !0)
1522
+ ], 8, It)) : u("", !0),
1523
+ e.maxSeries > 0 ? (a(), s("g", xt, [
1524
+ I("g", Nt, [
1525
+ e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (a(), s("line", {
1512
1526
  key: 0,
1513
1527
  stroke: e.FINAL_CONFIG.chart.grid.stroke,
1514
1528
  "stroke-width": "1",
@@ -1518,9 +1532,9 @@ function Ua(a, n, h, f, l, e) {
1518
1532
  y2: e.forceValidValue(e.drawingArea.bottom),
1519
1533
  "stroke-linecap": "round",
1520
1534
  style: { animation: "none !important" }
1521
- }, null, 8, Nt)) : u("", !0),
1522
- l.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (r(!0), s(d, { key: 2 }, x(e.allScales, (t) => (r(), s("g", null, [
1523
- t.id === l.selectedScale && t.yLabels.length ? (r(!0), s(d, { key: 0 }, x(t.yLabels, (o) => (r(), s("line", {
1535
+ }, null, 8, mt)) : u("", !0),
1536
+ l.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(!0), s(d, { key: 2 }, x(e.allScales, (t) => (a(), s("g", null, [
1537
+ t.id === l.selectedScale && t.yLabels.length ? (a(!0), s(d, { key: 0 }, x(t.yLabels, (o) => (a(), s("line", {
1524
1538
  x1: e.drawingArea.left + e.xPadding,
1525
1539
  x2: e.drawingArea.right - e.xPadding,
1526
1540
  y1: e.forceValidValue(o.y),
@@ -1529,7 +1543,7 @@ function Ua(a, n, h, f, l, e) {
1529
1543
  "stroke-width": 0.5,
1530
1544
  "stroke-linecap": "round",
1531
1545
  style: { animation: "none !important" }
1532
- }, null, 8, _t))), 256)) : t.yLabels.length ? (r(!0), s(d, { key: 1 }, x(t.yLabels, (o) => (r(), s("line", {
1546
+ }, null, 8, yt))), 256)) : t.yLabels.length ? (a(!0), s(d, { key: 1 }, x(t.yLabels, (o) => (a(), s("line", {
1533
1547
  x1: e.drawingArea.left + e.xPadding,
1534
1548
  x2: e.drawingArea.right - e.xPadding,
1535
1549
  y1: e.forceValidValue(o.y),
@@ -1539,8 +1553,8 @@ function Ua(a, n, h, f, l, e) {
1539
1553
  "stroke-linecap": "round",
1540
1554
  style: { animation: "none !important" }
1541
1555
  }, null, 8, At))), 256)) : u("", !0)
1542
- ]))), 256)) : u("", !0) : (r(), s(d, { key: 1 }, [
1543
- e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (r(), s("line", {
1556
+ ]))), 256)) : u("", !0) : (a(), s(d, { key: 1 }, [
1557
+ e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (a(), s("line", {
1544
1558
  key: 0,
1545
1559
  stroke: e.FINAL_CONFIG.chart.grid.stroke,
1546
1560
  "stroke-width": "1",
@@ -1550,9 +1564,9 @@ function Ua(a, n, h, f, l, e) {
1550
1564
  y2: e.forceValidValue(e.drawingArea.bottom),
1551
1565
  "stroke-linecap": "round",
1552
1566
  style: { animation: "none !important" }
1553
- }, null, 8, mt)) : u("", !0),
1554
- e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (r(), s("g", bt, [
1555
- (r(!0), s(d, null, x(e.yLabels, (t) => (r(), s("line", {
1567
+ }, null, 8, bt)) : u("", !0),
1568
+ e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(), s("g", Ft, [
1569
+ (a(!0), s(d, null, x(e.yLabels, (t) => (a(), s("line", {
1556
1570
  x1: e.drawingArea.left + e.xPadding,
1557
1571
  x2: e.drawingArea.right - e.xPadding,
1558
1572
  y1: e.forceValidValue(t.y),
@@ -1561,11 +1575,11 @@ function Ua(a, n, h, f, l, e) {
1561
1575
  "stroke-width": 0.5,
1562
1576
  "stroke-linecap": "round",
1563
1577
  style: { animation: "none !important" }
1564
- }, null, 8, Ft))), 256))
1578
+ }, null, 8, _t))), 256))
1565
1579
  ])) : u("", !0)
1566
1580
  ], 64)),
1567
- e.FINAL_CONFIG.chart.grid.showVerticalLines ? (r(), s("g", yt, [
1568
- (r(!0), s(d, null, x(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (t, o) => (r(), s("line", {
1581
+ e.FINAL_CONFIG.chart.grid.showVerticalLines ? (a(), s("g", Lt, [
1582
+ (a(!0), s(d, null, x(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (t, o) => (a(), s("line", {
1569
1583
  key: `grid_vertical_line_${o}`,
1570
1584
  x1: e.drawingArea.width / e.maxSeries * o + e.drawingArea.left + e.xPadding,
1571
1585
  x2: e.drawingArea.width / e.maxSeries * o + e.drawingArea.left + e.xPadding,
@@ -1574,14 +1588,14 @@ function Ua(a, n, h, f, l, e) {
1574
1588
  "stroke-width": "0.5",
1575
1589
  stroke: e.FINAL_CONFIG.chart.grid.stroke,
1576
1590
  style: { animation: "none !important" }
1577
- }, null, 8, Lt))), 128))
1591
+ }, null, 8, Ct))), 128))
1578
1592
  ])) : u("", !0),
1579
- e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (r(), s("g", Ct, [
1580
- (r(!0), s(d, null, x(e.timeLabels, (t, o) => (r(), s("g", {
1593
+ e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (a(), s("g", St, [
1594
+ (a(!0), s(d, null, x(e.timeLabels, (t, o) => (a(), s("g", {
1581
1595
  key: `time_label_${o}`
1582
1596
  }, [
1583
- t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (o === 0 || o === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.selectedSerieIndex === o && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && o % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (r(), s(d, { key: 0 }, [
1584
- e.FINAL_CONFIG.chart.grid.labels.xAxis.showCrosshairs ? (r(), s("line", {
1597
+ t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (o === 0 || o === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.selectedSerieIndex === o && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && o % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (a(), s(d, { key: 0 }, [
1598
+ e.FINAL_CONFIG.chart.grid.labels.xAxis.showCrosshairs ? (a(), s("line", {
1585
1599
  key: 0,
1586
1600
  y1: e.FINAL_CONFIG.chart.grid.labels.xAxis.crosshairsAlwaysAtZero ? e.zero - (e.zero === e.drawingArea.bottom ? 0 : e.FINAL_CONFIG.chart.grid.labels.xAxis.crosshairSize / 2) : e.drawingArea.bottom,
1587
1601
  y2: e.FINAL_CONFIG.chart.grid.labels.xAxis.crosshairsAlwaysAtZero ? e.zero + e.FINAL_CONFIG.chart.grid.labels.xAxis.crosshairSize / (e.zero === e.drawingArea.bottom ? 1 : 2) : e.drawingArea.bottom + e.FINAL_CONFIG.chart.grid.labels.xAxis.crosshairSize,
@@ -1591,12 +1605,12 @@ function Ua(a, n, h, f, l, e) {
1591
1605
  "stroke-width": 1,
1592
1606
  "stroke-linecap": "round",
1593
1607
  style: { animation: "none !important" }
1594
- }, null, 8, St)) : u("", !0)
1608
+ }, null, 8, wt)) : u("", !0)
1595
1609
  ], 64)) : u("", !0)
1596
1610
  ]))), 128))
1597
1611
  ])) : u("", !0)
1598
1612
  ]),
1599
- (r(!0), s(d, null, x(e.barSet, (t, o) => (r(), s("defs", {
1613
+ (a(!0), s(d, null, x(e.barSet, (t, o) => (a(), s("defs", {
1600
1614
  key: `def_rect_${o}`
1601
1615
  }, [
1602
1616
  I("linearGradient", {
@@ -1607,15 +1621,15 @@ function Ua(a, n, h, f, l, e) {
1607
1621
  I("stop", {
1608
1622
  offset: "0%",
1609
1623
  "stop-color": t.color
1610
- }, null, 8, wt),
1624
+ }, null, 8, Ot),
1611
1625
  I("stop", {
1612
1626
  offset: "62%",
1613
1627
  "stop-color": `${e.shiftHue(t.color, 0.02)}`
1614
- }, null, 8, Ot),
1628
+ }, null, 8, Gt),
1615
1629
  I("stop", {
1616
1630
  offset: "100%",
1617
1631
  "stop-color": `${e.shiftHue(t.color, 0.05)}`
1618
- }, null, 8, Gt)
1632
+ }, null, 8, vt)
1619
1633
  ], 8, kt),
1620
1634
  I("linearGradient", {
1621
1635
  id: `rectGradient_neg_${o}_${l.uniqueId}`,
@@ -1625,18 +1639,18 @@ function Ua(a, n, h, f, l, e) {
1625
1639
  I("stop", {
1626
1640
  offset: "0%",
1627
1641
  "stop-color": `${e.shiftHue(t.color, 0.05)}`
1628
- }, null, 8, pt),
1642
+ }, null, 8, zt),
1629
1643
  I("stop", {
1630
1644
  offset: "38%",
1631
1645
  "stop-color": `${e.shiftHue(t.color, 0.02)}`
1632
- }, null, 8, zt),
1646
+ }, null, 8, Mt),
1633
1647
  I("stop", {
1634
1648
  offset: "100%",
1635
1649
  "stop-color": t.color
1636
- }, null, 8, Mt)
1637
- ], 8, vt)
1650
+ }, null, 8, Tt)
1651
+ ], 8, pt)
1638
1652
  ]))), 128)),
1639
- (r(!0), s(d, null, x(e.plotSet, (t, o) => (r(), s("defs", {
1653
+ (a(!0), s(d, null, x(e.plotSet, (t, o) => (a(), s("defs", {
1640
1654
  key: `def_plot_${o}`
1641
1655
  }, [
1642
1656
  I("radialGradient", {
@@ -1650,14 +1664,14 @@ function Ua(a, n, h, f, l, e) {
1650
1664
  I("stop", {
1651
1665
  offset: "0%",
1652
1666
  "stop-color": `${e.shiftHue(t.color, 0.05)}`
1653
- }, null, 8, Pt),
1667
+ }, null, 8, Vt),
1654
1668
  I("stop", {
1655
1669
  offset: "100%",
1656
1670
  "stop-color": t.color
1657
- }, null, 8, Vt)
1658
- ], 8, Tt)
1671
+ }, null, 8, Rt)
1672
+ ], 8, Pt)
1659
1673
  ]))), 128)),
1660
- (r(!0), s(d, null, x(e.lineSet, (t, o) => (r(), s("defs", {
1674
+ (a(!0), s(d, null, x(e.lineSet, (t, o) => (a(), s("defs", {
1661
1675
  key: `def_line_${o}`
1662
1676
  }, [
1663
1677
  I("radialGradient", {
@@ -1675,8 +1689,8 @@ function Ua(a, n, h, f, l, e) {
1675
1689
  I("stop", {
1676
1690
  offset: "100%",
1677
1691
  "stop-color": t.color
1678
- }, null, 8, Bt)
1679
- ], 8, Rt),
1692
+ }, null, 8, Dt)
1693
+ ], 8, Bt),
1680
1694
  I("linearGradient", {
1681
1695
  id: `areaGradient_${o}_${l.uniqueId}`,
1682
1696
  x1: "0%",
@@ -1687,16 +1701,16 @@ function Ua(a, n, h, f, l, e) {
1687
1701
  I("stop", {
1688
1702
  offset: "0%",
1689
1703
  "stop-color": `${e.setOpacity(e.shiftHue(t.color, 0.03), e.FINAL_CONFIG.line.area.opacity)}`
1690
- }, null, 8, Wt),
1704
+ }, null, 8, Et),
1691
1705
  I("stop", {
1692
1706
  offset: "100%",
1693
1707
  "stop-color": `${e.setOpacity(t.color, e.FINAL_CONFIG.line.area.opacity)}`
1694
- }, null, 8, Et)
1695
- ], 8, Dt)
1708
+ }, null, 8, Yt)
1709
+ ], 8, Wt)
1696
1710
  ]))), 128)),
1697
- (r(!0), s(d, null, x(e.highlightAreas, (t) => (r(), s("g", null, [
1698
- t.show ? (r(), s(d, { key: 0 }, [
1699
- (r(!0), s(d, null, x(t.span, (o, c) => (r(), s("g", null, [
1711
+ (a(!0), s(d, null, x(e.highlightAreas, (t) => (a(), s("g", null, [
1712
+ t.show ? (a(), s(d, { key: 0 }, [
1713
+ (a(!0), s(d, null, x(t.span, (o, c) => (a(), s("g", null, [
1700
1714
  I("rect", {
1701
1715
  style: _({
1702
1716
  transition: "none",
@@ -1707,10 +1721,10 @@ function Ua(a, n, h, f, l, e) {
1707
1721
  height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
1708
1722
  width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
1709
1723
  fill: e.setOpacity(t.color, t.opacity)
1710
- }, null, 12, Yt)
1724
+ }, null, 12, Xt)
1711
1725
  ]))), 256)),
1712
- (r(!0), s(d, null, x(t.span, (o, c) => (r(), s("g", null, [
1713
- t.caption.text && c === 0 ? (r(), s("foreignObject", {
1726
+ (a(!0), s(d, null, x(t.span, (o, c) => (a(), s("g", null, [
1727
+ t.caption.text && c === 0 ? (a(), s("foreignObject", {
1714
1728
  key: 0,
1715
1729
  x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (t.from + c - l.slicer.start) - (t.caption.width === "auto" ? 0 : t.caption.width / 2 - e.drawingArea.width / e.maxSeries * t.span / 2),
1716
1730
  y: e.drawingArea.top + t.caption.offsetY,
@@ -1724,12 +1738,12 @@ function Ua(a, n, h, f, l, e) {
1724
1738
  I("div", {
1725
1739
  style: _(`padding:${t.caption.padding}px;text-align:${t.caption.textAlign};font-size:${t.caption.fontSize}px;color:${t.caption.color};font-weight:${t.caption.bold ? "bold" : "normal"}`)
1726
1740
  }, V(t.caption.text), 5)
1727
- ], 12, Xt)) : u("", !0)
1741
+ ], 12, qt)) : u("", !0)
1728
1742
  ]))), 256))
1729
1743
  ], 64)) : u("", !0)
1730
1744
  ]))), 256)),
1731
1745
  I("g", null, [
1732
- (r(!0), s(d, null, x(e.maxSeries, (t, o) => (r(), s("g", {
1746
+ (a(!0), s(d, null, x(e.maxSeries, (t, o) => (a(), s("g", {
1733
1747
  key: `tooltip_trap_highlighter_${o}`
1734
1748
  }, [
1735
1749
  I("rect", {
@@ -1738,18 +1752,18 @@ function Ua(a, n, h, f, l, e) {
1738
1752
  height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
1739
1753
  width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
1740
1754
  fill: [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(o) ? e.setOpacity(e.FINAL_CONFIG.chart.highlighter.color, e.FINAL_CONFIG.chart.highlighter.opacity) : "transparent"
1741
- }, null, 8, qt)
1755
+ }, null, 8, Ut)
1742
1756
  ]))), 128))
1743
1757
  ]),
1744
- e.barSet.length ? (r(!0), s(d, { key: 0 }, x(e.barSet, (t, o) => (r(), s("g", {
1758
+ e.barSet.length ? (a(!0), s(d, { key: 0 }, x(e.barSet, (t, o) => (a(), s("g", {
1745
1759
  key: `serie_bar_${o}`,
1746
1760
  class: j(`serie_bar_${o}`),
1747
1761
  style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1748
1762
  }, [
1749
- (r(!0), s(d, null, x(t.plots, (c, g) => (r(), s("g", {
1763
+ (a(!0), s(d, null, x(t.plots, (c, g) => (a(), s("g", {
1750
1764
  key: `bar_plot_${o}_${g}`
1751
1765
  }, [
1752
- e.canShowValue(c.value) ? (r(), s("rect", {
1766
+ e.canShowValue(c.value) ? (a(), s("rect", {
1753
1767
  key: 0,
1754
1768
  x: e.calcRectX(c),
1755
1769
  y: l.mutableConfig.useIndividualScale ? e.calcIndividualRectY(c) : e.calcRectY(c),
@@ -1759,8 +1773,8 @@ function Ua(a, n, h, f, l, e) {
1759
1773
  fill: e.FINAL_CONFIG.bar.useGradient ? c.value >= 0 ? `url(#rectGradient_pos_${o}_${l.uniqueId})` : `url(#rectGradient_neg_${o}_${l.uniqueId})` : t.color,
1760
1774
  stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? t.color : e.FINAL_CONFIG.bar.border.stroke,
1761
1775
  "stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
1762
- }, null, 8, Ut)) : u("", !0),
1763
- e.canShowValue(c.value) && a.$slots.pattern ? (r(), s("rect", {
1776
+ }, null, 8, Zt)) : u("", !0),
1777
+ e.canShowValue(c.value) && i.$slots.pattern ? (a(), s("rect", {
1764
1778
  key: 1,
1765
1779
  x: e.calcRectX(c),
1766
1780
  y: l.mutableConfig.useIndividualScale ? e.calcIndividualRectY(c) : e.calcRectY(c),
@@ -1770,8 +1784,8 @@ function Ua(a, n, h, f, l, e) {
1770
1784
  fill: `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})`,
1771
1785
  stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? t.color : e.FINAL_CONFIG.bar.border.stroke,
1772
1786
  "stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
1773
- }, null, 8, Zt)) : u("", !0),
1774
- c.comment && e.FINAL_CONFIG.chart.comments.show ? (r(), s("foreignObject", {
1787
+ }, null, 8, Jt)) : u("", !0),
1788
+ c.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), s("foreignObject", {
1775
1789
  key: 2,
1776
1790
  style: { overflow: "visible" },
1777
1791
  height: "12",
@@ -1779,12 +1793,12 @@ function Ua(a, n, h, f, l, e) {
1779
1793
  x: e.calcRectX(c) - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
1780
1794
  y: e.checkNaN(c.y) + e.FINAL_CONFIG.chart.comments.offsetY + 6
1781
1795
  }, [
1782
- G(a.$slots, "plot-comment", {
1796
+ G(i.$slots, "plot-comment", {
1783
1797
  plot: { ...c, color: t.color, seriesIndex: o, datapointIndex: g }
1784
1798
  }, void 0, !0)
1785
- ], 8, Jt)) : u("", !0)
1799
+ ], 8, Kt)) : u("", !0)
1786
1800
  ]))), 128)),
1787
- Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (r(), s("g", Kt, [
1801
+ Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (a(), s("g", Qt, [
1788
1802
  I("defs", null, [
1789
1803
  I("marker", {
1790
1804
  id: `bar_arrow_${o}`,
@@ -1797,10 +1811,10 @@ function Ua(a, n, h, f, l, e) {
1797
1811
  I("polygon", {
1798
1812
  points: `0 0, 7 ${7 / 2}, 0 7`,
1799
1813
  fill: t.color
1800
- }, null, 8, jt)
1801
- ], 8, Qt)
1814
+ }, null, 8, $t)
1815
+ ], 8, jt)
1802
1816
  ]),
1803
- t.plots.length > 1 ? (r(), s("line", {
1817
+ t.plots.length > 1 ? (a(), s("line", {
1804
1818
  key: 0,
1805
1819
  x1: e.calcLinearProgression(t.plots).x1 + e.calcRectWidth(),
1806
1820
  x2: e.calcLinearProgression(t.plots).x2 + e.calcRectWidth(),
@@ -1810,8 +1824,8 @@ function Ua(a, n, h, f, l, e) {
1810
1824
  stroke: t.color,
1811
1825
  "stroke-dasharray": 2,
1812
1826
  "marker-end": `url(#bar_arrow_${o})`
1813
- }, null, 8, $t)) : u("", !0),
1814
- t.plots.length > 1 ? (r(), s("text", {
1827
+ }, null, 8, el)) : u("", !0),
1828
+ t.plots.length > 1 ? (a(), s("text", {
1815
1829
  key: 1,
1816
1830
  "text-anchor": "middle",
1817
1831
  x: e.calcLinearProgression(t.plots).x2 + e.calcRectWidth(),
@@ -1822,10 +1836,10 @@ function Ua(a, n, h, f, l, e) {
1822
1836
  v: e.calcLinearProgression(t.plots).trend * 100,
1823
1837
  s: "%",
1824
1838
  r: 2
1825
- })), 9, el)) : u("", !0)
1839
+ })), 9, tl)) : u("", !0)
1826
1840
  ])) : u("", !0)
1827
1841
  ], 6))), 128)) : u("", !0),
1828
- !l.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (r(), s("line", {
1842
+ !l.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (a(), s("line", {
1829
1843
  key: 1,
1830
1844
  stroke: e.FINAL_CONFIG.chart.grid.stroke,
1831
1845
  "stroke-width": "1",
@@ -1835,8 +1849,8 @@ function Ua(a, n, h, f, l, e) {
1835
1849
  y2: e.forceValidValue(e.zero),
1836
1850
  "stroke-linecap": "round",
1837
1851
  style: { animation: "none !important" }
1838
- }, null, 8, tl)) : u("", !0),
1839
- e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (r(), s("g", ll, [
1852
+ }, null, 8, ll)) : u("", !0),
1853
+ e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (a(), s("g", il, [
1840
1854
  I("line", {
1841
1855
  x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
1842
1856
  x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
@@ -1847,9 +1861,9 @@ function Ua(a, n, h, f, l, e) {
1847
1861
  "stroke-dasharray": e.FINAL_CONFIG.chart.highlighter.lineDasharray,
1848
1862
  "stroke-linecap": "round",
1849
1863
  style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
1850
- }, null, 8, al)
1864
+ }, null, 8, rl)
1851
1865
  ])) : u("", !0),
1852
- e.FINAL_CONFIG.chart.grid.frame.show ? (r(), s("rect", {
1866
+ e.FINAL_CONFIG.chart.grid.frame.show ? (a(), s("rect", {
1853
1867
  key: 3,
1854
1868
  style: { pointerEvents: "none", transition: "none", animation: "none !important" },
1855
1869
  x: e.drawingArea.left + e.xPadding < 0 ? 0 : e.drawingArea.left + e.xPadding,
@@ -1862,10 +1876,10 @@ function Ua(a, n, h, f, l, e) {
1862
1876
  "stroke-linecap": e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,
1863
1877
  "stroke-linejoin": e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,
1864
1878
  "stroke-dasharray": e.FINAL_CONFIG.chart.grid.frame.strokeDasharray
1865
- }, null, 8, il)) : u("", !0),
1866
- e.FINAL_CONFIG.chart.grid.labels.show ? (r(), s("g", rl, [
1867
- l.mutableConfig.useIndividualScale ? (r(), s(d, { key: 0 }, [
1868
- (r(!0), s(d, null, x(e.allScales, (t) => (r(), s("g", null, [
1879
+ }, null, 8, al)) : u("", !0),
1880
+ e.FINAL_CONFIG.chart.grid.labels.show ? (a(), s("g", sl, [
1881
+ l.mutableConfig.useIndividualScale ? (a(), s(d, { key: 0 }, [
1882
+ (a(!0), s(d, null, x(e.allScales, (t) => (a(), s("g", null, [
1869
1883
  I("line", {
1870
1884
  x1: t.x + e.xPadding,
1871
1885
  x2: t.x + e.xPadding,
@@ -1875,9 +1889,9 @@ function Ua(a, n, h, f, l, e) {
1875
1889
  "stroke-width": e.FINAL_CONFIG.chart.grid.stroke,
1876
1890
  "stroke-linecap": "round",
1877
1891
  style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
1878
- }, null, 12, sl)
1892
+ }, null, 12, nl)
1879
1893
  ]))), 256)),
1880
- (r(!0), s(d, null, x(e.allScales, (t) => (r(), s("g", {
1894
+ (a(!0), s(d, null, x(e.allScales, (t) => (a(), s("g", {
1881
1895
  style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
1882
1896
  }, [
1883
1897
  I("text", {
@@ -1885,9 +1899,9 @@ function Ua(a, n, h, f, l, e) {
1885
1899
  "font-size": l.fontSizes.dataLabels,
1886
1900
  "text-anchor": "middle",
1887
1901
  transform: `translate(${t.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + 5 + e.xPadding + e.FINAL_CONFIG.chart.grid.labels.yAxis.scaleLabelOffsetX}, ${l.mutableConfig.isStacked ? e.drawingArea.bottom - t.yOffset - t.individualHeight / 2 : e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`
1888
- }, V(t.name) + " " + V(t.scaleLabel && t.unique && t.scaleLabel !== t.id ? `- ${t.scaleLabel}` : ""), 9, nl),
1889
- (r(!0), s(d, null, x(t.yLabels, (o, c) => (r(), s(d, null, [
1890
- e.FINAL_CONFIG.chart.grid.labels.yAxis.showCrosshairs ? (r(), s("line", {
1902
+ }, V(t.name) + " " + V(t.scaleLabel && t.unique && t.scaleLabel !== t.id ? `- ${t.scaleLabel}` : ""), 9, cl),
1903
+ (a(!0), s(d, null, x(t.yLabels, (o, c) => (a(), s(d, null, [
1904
+ e.FINAL_CONFIG.chart.grid.labels.yAxis.showCrosshairs ? (a(), s("line", {
1891
1905
  key: 0,
1892
1906
  x1: t.x + 3 + e.xPadding - e.FINAL_CONFIG.chart.grid.labels.yAxis.crosshairSize,
1893
1907
  x2: t.x + e.xPadding,
@@ -1897,9 +1911,9 @@ function Ua(a, n, h, f, l, e) {
1897
1911
  "stroke-width": 1,
1898
1912
  "stroke-linecap": "round",
1899
1913
  style: { animation: "none !important" }
1900
- }, null, 8, cl)) : u("", !0)
1914
+ }, null, 8, ol)) : u("", !0)
1901
1915
  ], 64))), 256)),
1902
- (r(!0), s(d, null, x(t.yLabels, (o, c) => (r(), s("text", {
1916
+ (a(!0), s(d, null, x(t.yLabels, (o, c) => (a(), s("text", {
1903
1917
  x: t.x - l.fontSizes.dataLabels / 2 + e.xPadding + e.FINAL_CONFIG.chart.grid.labels.yAxis.scaleValueOffsetX,
1904
1918
  y: e.forceValidValue(o.y) + l.fontSizes.dataLabels / 3,
1905
1919
  "font-size": l.fontSizes.dataLabels,
@@ -1915,12 +1929,12 @@ function Ua(a, n, h, f, l, e) {
1915
1929
  r: 1
1916
1930
  }),
1917
1931
  { datapoint: o.datapoint, seriesIndex: c }
1918
- )), 9, ol))), 256))
1932
+ )), 9, hl))), 256))
1919
1933
  ], 4))), 256))
1920
- ], 64)) : (r(!0), s(d, { key: 1 }, x(e.yLabels, (t, o) => (r(), s("g", {
1934
+ ], 64)) : (a(!0), s(d, { key: 1 }, x(e.yLabels, (t, o) => (a(), s("g", {
1921
1935
  key: `yLabel_${o}`
1922
1936
  }, [
1923
- e.canShowValue(t) && t.value >= e.niceScale.min && t.value <= e.niceScale.max && e.FINAL_CONFIG.chart.grid.labels.yAxis.showCrosshairs ? (r(), s("line", {
1937
+ e.canShowValue(t) && t.value >= e.niceScale.min && t.value <= e.niceScale.max && e.FINAL_CONFIG.chart.grid.labels.yAxis.showCrosshairs ? (a(), s("line", {
1924
1938
  key: 0,
1925
1939
  x1: e.drawingArea.left + e.xPadding,
1926
1940
  x2: e.drawingArea.left - e.FINAL_CONFIG.chart.grid.labels.yAxis.crosshairSize + e.xPadding,
@@ -1930,8 +1944,8 @@ function Ua(a, n, h, f, l, e) {
1930
1944
  "stroke-width": "1",
1931
1945
  "stroke-linecap": "round",
1932
1946
  style: { animation: "none !important" }
1933
- }, null, 8, hl)) : u("", !0),
1934
- t.value >= e.niceScale.min && t.value <= e.niceScale.max ? (r(), s("text", {
1947
+ }, null, 8, ul)) : u("", !0),
1948
+ t.value >= e.niceScale.min && t.value <= e.niceScale.max ? (a(), s("text", {
1935
1949
  key: 1,
1936
1950
  x: e.drawingArea.left - 7 + e.xPadding,
1937
1951
  y: e.checkNaN(t.y + l.fontSizes.dataLabels / 3),
@@ -1947,18 +1961,18 @@ function Ua(a, n, h, f, l, e) {
1947
1961
  s: t.suffix,
1948
1962
  r: 1
1949
1963
  })
1950
- ) : ""), 9, ul)) : u("", !0)
1964
+ ) : ""), 9, dl)) : u("", !0)
1951
1965
  ]))), 128))
1952
1966
  ], 512)) : u("", !0),
1953
- (r(!0), s(d, null, x(e.plotSet, (t, o) => (r(), s("g", {
1967
+ (a(!0), s(d, null, x(e.plotSet, (t, o) => (a(), s("g", {
1954
1968
  key: `serie_plot_${o}`,
1955
1969
  class: j(`serie_plot_${o}`),
1956
1970
  style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1957
1971
  }, [
1958
- (r(!0), s(d, null, x(t.plots, (c, g) => (r(), s("g", {
1972
+ (a(!0), s(d, null, x(t.plots, (c, g) => (a(), s("g", {
1959
1973
  key: `circle_plot_${o}_${g}`
1960
1974
  }, [
1961
- c && e.canShowValue(c.value) ? (r(), U(N, {
1975
+ c && e.canShowValue(c.value) ? (a(), U(N, {
1962
1976
  key: 0,
1963
1977
  shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(t.shape) ? t.shape : "circle",
1964
1978
  color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${o}_${l.uniqueId})` : e.FINAL_CONFIG.plot.dot.useSerieColor ? t.color : e.FINAL_CONFIG.plot.dot.fill,
@@ -1967,7 +1981,7 @@ function Ua(a, n, h, f, l, e) {
1967
1981
  stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : t.color,
1968
1982
  strokeWidth: e.FINAL_CONFIG.plot.dot.strokeWidth
1969
1983
  }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : u("", !0),
1970
- c.comment && e.FINAL_CONFIG.chart.comments.show ? (r(), s("foreignObject", {
1984
+ c.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), s("foreignObject", {
1971
1985
  key: 1,
1972
1986
  style: { overflow: "visible" },
1973
1987
  height: "12",
@@ -1975,14 +1989,14 @@ function Ua(a, n, h, f, l, e) {
1975
1989
  x: c.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
1976
1990
  y: c.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
1977
1991
  }, [
1978
- I("div", gl, [
1979
- G(a.$slots, "plot-comment", {
1992
+ I("div", fl, [
1993
+ G(i.$slots, "plot-comment", {
1980
1994
  plot: { ...c, color: t.color, seriesIndex: o, datapointIndex: g }
1981
1995
  }, void 0, !0)
1982
1996
  ])
1983
- ], 8, dl)) : u("", !0)
1997
+ ], 8, gl)) : u("", !0)
1984
1998
  ]))), 128)),
1985
- Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (r(), s("g", fl, [
1999
+ Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (a(), s("g", Il, [
1986
2000
  I("defs", null, [
1987
2001
  I("marker", {
1988
2002
  id: `plot_arrow_${o}`,
@@ -1995,10 +2009,10 @@ function Ua(a, n, h, f, l, e) {
1995
2009
  I("polygon", {
1996
2010
  points: `0 0, 7 ${7 / 2}, 0 7`,
1997
2011
  fill: t.color
1998
- }, null, 8, xl)
1999
- ], 8, Il)
2012
+ }, null, 8, Nl)
2013
+ ], 8, xl)
2000
2014
  ]),
2001
- t.plots.length > 1 ? (r(), s("line", {
2015
+ t.plots.length > 1 ? (a(), s("line", {
2002
2016
  key: 0,
2003
2017
  x1: e.calcLinearProgression(t.plots).x1,
2004
2018
  x2: e.calcLinearProgression(t.plots).x2,
@@ -2008,8 +2022,8 @@ function Ua(a, n, h, f, l, e) {
2008
2022
  stroke: t.color,
2009
2023
  "stroke-dasharray": 2,
2010
2024
  "marker-end": `url(#plot_arrow_${o})`
2011
- }, null, 8, Nl)) : u("", !0),
2012
- t.plots.length > 1 ? (r(), s("text", {
2025
+ }, null, 8, ml)) : u("", !0),
2026
+ t.plots.length > 1 ? (a(), s("text", {
2013
2027
  key: 1,
2014
2028
  "text-anchor": "middle",
2015
2029
  x: e.calcLinearProgression(t.plots).x2,
@@ -2020,22 +2034,22 @@ function Ua(a, n, h, f, l, e) {
2020
2034
  v: e.calcLinearProgression(t.plots).trend * 100,
2021
2035
  s: "%",
2022
2036
  r: 2
2023
- })), 9, ml)) : u("", !0)
2037
+ })), 9, bl)) : u("", !0)
2024
2038
  ])) : u("", !0)
2025
2039
  ], 6))), 128)),
2026
- (r(!0), s(d, null, x(e.lineSet, (t, o) => (r(), s("g", {
2040
+ (a(!0), s(d, null, x(e.lineSet, (t, o) => (a(), s("g", {
2027
2041
  key: `serie_line_${o}`,
2028
2042
  class: j(`serie_line_${o}`),
2029
2043
  style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2030
2044
  }, [
2031
- t.smooth && t.plots.length > 1 && t.curve ? (r(), s("path", {
2045
+ t.smooth && t.plots.length > 1 && t.curve ? (a(), s("path", {
2032
2046
  key: 0,
2033
2047
  d: `M${t.curve}`,
2034
2048
  stroke: e.FINAL_CONFIG.chart.backgroundColor,
2035
2049
  "stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
2036
2050
  "stroke-dasharray": t.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
2037
2051
  fill: "none"
2038
- }, null, 8, bl)) : t.plots.length > 1 && t.straight ? (r(), s("path", {
2052
+ }, null, 8, Fl)) : t.plots.length > 1 && t.straight ? (a(), s("path", {
2039
2053
  key: 1,
2040
2054
  d: `M${t.straight}`,
2041
2055
  stroke: e.FINAL_CONFIG.chart.backgroundColor,
@@ -2044,42 +2058,42 @@ function Ua(a, n, h, f, l, e) {
2044
2058
  fill: "none",
2045
2059
  "stroke-linecap": "round",
2046
2060
  "stroke-linejoin": "round"
2047
- }, null, 8, Fl)) : u("", !0)
2061
+ }, null, 8, _l)) : u("", !0)
2048
2062
  ], 6))), 128)),
2049
- a.$slots.pattern ? (r(), s("defs", _l, [
2050
- (r(!0), s(d, null, x(e.safeDataset, (t, o) => G(a.$slots, "pattern", se({
2063
+ i.$slots.pattern ? (a(), s("defs", yl, [
2064
+ (a(!0), s(d, null, x(e.safeDataset, (t, o) => G(i.$slots, "pattern", se({
2051
2065
  key: `serie_pattern_slot_${o}`
2052
2066
  }, { ref_for: !0 }, { ...t, seriesIndex: t.slotAbsoluteIndex, patternId: `pattern_${l.uniqueId}_${o}` }), void 0, !0)), 128))
2053
2067
  ])) : u("", !0),
2054
- (r(!0), s(d, null, x(e.lineSet, (t, o) => (r(), s("g", {
2068
+ (a(!0), s(d, null, x(e.lineSet, (t, o) => (a(), s("g", {
2055
2069
  key: `serie_line_${o}`,
2056
2070
  class: j(`serie_line_${o}`),
2057
2071
  style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2058
2072
  }, [
2059
- t.useArea && t.plots.length > 1 ? (r(), s("g", Al, [
2060
- t.smooth ? (r(!0), s(d, { key: 0 }, x(t.curveAreas, (c, g) => (r(), s(d, { key: g }, [
2073
+ t.useArea && t.plots.length > 1 ? (a(), s("g", Al, [
2074
+ t.smooth ? (a(!0), s(d, { key: 0 }, x(t.curveAreas, (c, g) => (a(), s(d, { key: g }, [
2061
2075
  I("path", {
2062
2076
  d: c,
2063
2077
  fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${o}_${l.uniqueId})` : e.setOpacity(t.color, e.FINAL_CONFIG.line.area.opacity)
2064
- }, null, 8, yl),
2065
- a.$slots.pattern ? (r(), s("path", {
2078
+ }, null, 8, Ll),
2079
+ i.$slots.pattern ? (a(), s("path", {
2066
2080
  key: 0,
2067
2081
  d: c,
2068
2082
  fill: `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})`
2069
- }, null, 8, Ll)) : u("", !0)
2070
- ], 64))), 128)) : (r(!0), s(d, { key: 1 }, x(t.area.split(";"), (c, g) => (r(), s(d, { key: g }, [
2083
+ }, null, 8, Cl)) : u("", !0)
2084
+ ], 64))), 128)) : (a(!0), s(d, { key: 1 }, x(t.area.split(";"), (c, g) => (a(), s(d, { key: g }, [
2071
2085
  I("path", {
2072
2086
  d: `M${c}Z`,
2073
2087
  fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${o}_${l.uniqueId})` : e.setOpacity(t.color, e.FINAL_CONFIG.line.area.opacity)
2074
- }, null, 8, Cl),
2075
- a.$slots.pattern ? (r(), s("path", {
2088
+ }, null, 8, Sl),
2089
+ i.$slots.pattern ? (a(), s("path", {
2076
2090
  key: 0,
2077
2091
  d: `M${c}Z`,
2078
2092
  fill: `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})`
2079
- }, null, 8, Sl)) : u("", !0)
2093
+ }, null, 8, wl)) : u("", !0)
2080
2094
  ], 64))), 128))
2081
2095
  ])) : u("", !0),
2082
- t.smooth && t.plots.length > 1 && t.curve ? (r(), s("path", {
2096
+ t.smooth && t.plots.length > 1 && t.curve ? (a(), s("path", {
2083
2097
  key: 1,
2084
2098
  d: `M${t.curve}`,
2085
2099
  stroke: t.color,
@@ -2087,7 +2101,7 @@ function Ua(a, n, h, f, l, e) {
2087
2101
  "stroke-dasharray": t.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
2088
2102
  fill: "none",
2089
2103
  "stroke-linecap": "round"
2090
- }, null, 8, kl)) : t.plots.length > 1 && t.straight ? (r(), s("path", {
2104
+ }, null, 8, kl)) : t.plots.length > 1 && t.straight ? (a(), s("path", {
2091
2105
  key: 2,
2092
2106
  d: `M${t.straight}`,
2093
2107
  stroke: t.color,
@@ -2096,11 +2110,11 @@ function Ua(a, n, h, f, l, e) {
2096
2110
  fill: "none",
2097
2111
  "stroke-linecap": "round",
2098
2112
  "stroke-linejoin": "round"
2099
- }, null, 8, wl)) : u("", !0),
2100
- (r(!0), s(d, null, x(t.plots, (c, g) => (r(), s(d, {
2113
+ }, null, 8, Ol)) : u("", !0),
2114
+ (a(!0), s(d, null, x(t.plots, (c, g) => (a(), s(d, {
2101
2115
  key: `circle_line_${o}_${g}`
2102
2116
  }, [
2103
- !e.optimize.linePlot && c && e.canShowValue(c.value) || e.optimize.linePlot && c && e.canShowValue(c.value) && (l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g) ? (r(), U(N, {
2117
+ !e.optimize.linePlot && c && e.canShowValue(c.value) || e.optimize.linePlot && c && e.canShowValue(c.value) && (l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g) ? (a(), U(N, {
2104
2118
  key: 0,
2105
2119
  shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(t.shape) ? t.shape : "circle",
2106
2120
  color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${o}_${l.uniqueId})` : e.FINAL_CONFIG.line.dot.useSerieColor ? t.color : e.FINAL_CONFIG.line.dot.fill,
@@ -2109,7 +2123,7 @@ function Ua(a, n, h, f, l, e) {
2109
2123
  stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : t.color,
2110
2124
  strokeWidth: e.FINAL_CONFIG.line.dot.strokeWidth
2111
2125
  }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : u("", !0),
2112
- c.comment && e.FINAL_CONFIG.chart.comments.show ? (r(), s("foreignObject", {
2126
+ c.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), s("foreignObject", {
2113
2127
  key: 1,
2114
2128
  style: { overflow: "visible" },
2115
2129
  height: "12",
@@ -2117,14 +2131,14 @@ function Ua(a, n, h, f, l, e) {
2117
2131
  x: c.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
2118
2132
  y: c.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
2119
2133
  }, [
2120
- I("div", Gl, [
2121
- G(a.$slots, "plot-comment", {
2134
+ I("div", vl, [
2135
+ G(i.$slots, "plot-comment", {
2122
2136
  plot: { ...c, color: t.color, seriesIndex: o, datapointIndex: g }
2123
2137
  }, void 0, !0)
2124
2138
  ])
2125
- ], 8, Ol)) : u("", !0)
2139
+ ], 8, Gl)) : u("", !0)
2126
2140
  ], 64))), 128)),
2127
- Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (r(), s("g", vl, [
2141
+ Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (a(), s("g", pl, [
2128
2142
  I("defs", null, [
2129
2143
  I("marker", {
2130
2144
  id: `line_arrow_${o}`,
@@ -2137,10 +2151,10 @@ function Ua(a, n, h, f, l, e) {
2137
2151
  I("polygon", {
2138
2152
  points: `0 0, 7 ${7 / 2}, 0 7`,
2139
2153
  fill: t.color
2140
- }, null, 8, zl)
2141
- ], 8, pl)
2154
+ }, null, 8, Ml)
2155
+ ], 8, zl)
2142
2156
  ]),
2143
- t.plots.length > 1 ? (r(), s("line", {
2157
+ t.plots.length > 1 ? (a(), s("line", {
2144
2158
  key: 0,
2145
2159
  x1: e.calcLinearProgression(t.plots).x1,
2146
2160
  x2: e.calcLinearProgression(t.plots).x2,
@@ -2150,8 +2164,8 @@ function Ua(a, n, h, f, l, e) {
2150
2164
  stroke: t.color,
2151
2165
  "stroke-dasharray": 2,
2152
2166
  "marker-end": `url(#line_arrow_${o})`
2153
- }, null, 8, Ml)) : u("", !0),
2154
- t.plots.length > 1 ? (r(), s("text", {
2167
+ }, null, 8, Tl)) : u("", !0),
2168
+ t.plots.length > 1 ? (a(), s("text", {
2155
2169
  key: 1,
2156
2170
  "text-anchor": "middle",
2157
2171
  x: e.calcLinearProgression(t.plots).x2,
@@ -2162,17 +2176,17 @@ function Ua(a, n, h, f, l, e) {
2162
2176
  v: e.calcLinearProgression(t.plots).trend * 100,
2163
2177
  s: "%",
2164
2178
  r: 2
2165
- })), 9, Tl)) : u("", !0)
2179
+ })), 9, Pl)) : u("", !0)
2166
2180
  ])) : u("", !0)
2167
2181
  ], 6))), 128)),
2168
- (e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && l.mutableConfig.dataLabels.show ? (r(), s("g", Pl, [
2169
- (r(!0), s(d, null, x(e.barSet, (t, o) => (r(), s(d, {
2182
+ (e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && l.mutableConfig.dataLabels.show ? (a(), s("g", Vl, [
2183
+ (a(!0), s(d, null, x(e.barSet, (t, o) => (a(), s(d, {
2170
2184
  key: `xLabel_bar_${o}`
2171
2185
  }, [
2172
- (r(!0), s(d, null, x(t.plots, (c, g) => (r(), s(d, {
2186
+ (a(!0), s(d, null, x(t.plots, (c, g) => (a(), s(d, {
2173
2187
  key: `xLabel_bar_${o}_${g}`
2174
2188
  }, [
2175
- c && (!Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g) && e.FINAL_CONFIG.bar.labels.show ? (r(), s("text", {
2189
+ c && (!Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g) && e.FINAL_CONFIG.bar.labels.show ? (a(), s("text", {
2176
2190
  key: 0,
2177
2191
  x: l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? c.x + e.slot.line / 2 : e.calcRectX(c) + e.calcRectWidth() / 2 - e.barPeriodGap / 2,
2178
2192
  y: e.checkNaN(c.y) + (c.value >= 0 ? e.FINAL_CONFIG.bar.labels.offsetY : -e.FINAL_CONFIG.bar.labels.offsetY * 3),
@@ -2193,8 +2207,8 @@ function Ua(a, n, h, f, l, e) {
2193
2207
  datapoint: c,
2194
2208
  serie: t
2195
2209
  }
2196
- ) : ""), 13, Vl)) : u("", !0),
2197
- c && e.FINAL_CONFIG.bar.serieName.show ? (r(), s("text", {
2210
+ ) : ""), 13, Rl)) : u("", !0),
2211
+ c && e.FINAL_CONFIG.bar.serieName.show ? (a(), s("text", {
2198
2212
  key: 1,
2199
2213
  x: l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? c.x + e.slot.line / 2 : c.x + e.calcRectWidth() * 1.1,
2200
2214
  y: c.y + (c.value > 0 ? e.FINAL_CONFIG.bar.serieName.offsetY : -e.FINAL_CONFIG.bar.serieName.offsetY * 3),
@@ -2203,18 +2217,18 @@ function Ua(a, n, h, f, l, e) {
2203
2217
  fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? t.color : e.FINAL_CONFIG.bar.serieName.color,
2204
2218
  "font-weight": e.FINAL_CONFIG.bar.serieName.bold ? "bold" : "normal",
2205
2219
  style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2206
- }, V(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: t.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : t.name), 13, Rl)) : u("", !0)
2220
+ }, V(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: t.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : t.name), 13, Bl)) : u("", !0)
2207
2221
  ], 64))), 128))
2208
2222
  ], 64))), 128))
2209
2223
  ])) : u("", !0),
2210
- e.FINAL_CONFIG.plot.labels.show && l.mutableConfig.dataLabels.show ? (r(), s("g", Hl, [
2211
- (r(!0), s(d, null, x(e.plotSet, (t, o) => (r(), s(d, {
2224
+ e.FINAL_CONFIG.plot.labels.show && l.mutableConfig.dataLabels.show ? (a(), s("g", Hl, [
2225
+ (a(!0), s(d, null, x(e.plotSet, (t, o) => (a(), s(d, {
2212
2226
  key: `xLabel_plot_${o}`
2213
2227
  }, [
2214
- (r(!0), s(d, null, x(t.plots, (c, g) => (r(), s(d, {
2228
+ (a(!0), s(d, null, x(t.plots, (c, g) => (a(), s(d, {
2215
2229
  key: `xLabel_plot_${o}_${g}`
2216
2230
  }, [
2217
- c && !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g ? (r(), s("text", {
2231
+ c && !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g ? (a(), s("text", {
2218
2232
  key: 0,
2219
2233
  x: c.x,
2220
2234
  y: c.y + e.FINAL_CONFIG.plot.labels.offsetY,
@@ -2235,18 +2249,18 @@ function Ua(a, n, h, f, l, e) {
2235
2249
  datapoint: c,
2236
2250
  serie: t
2237
2251
  }
2238
- ) : ""), 13, Bl)) : u("", !0)
2252
+ ) : ""), 13, Dl)) : u("", !0)
2239
2253
  ], 64))), 128))
2240
2254
  ], 64))), 128))
2241
- ])) : (r(), s("g", Dl, [
2242
- (r(!0), s(d, null, x(e.plotSet, (t, o) => (r(), s(d, {
2255
+ ])) : (a(), s("g", Wl, [
2256
+ (a(!0), s(d, null, x(e.plotSet, (t, o) => (a(), s(d, {
2243
2257
  key: `xLabel_plot_${o}`
2244
2258
  }, [
2245
- (r(!0), s(d, null, x(t.plots, (c, g) => (r(), s(d, {
2259
+ (a(!0), s(d, null, x(t.plots, (c, g) => (a(), s(d, {
2246
2260
  key: `xLabel_plot_${o}_${g}`
2247
2261
  }, [
2248
- e.FINAL_CONFIG.plot.tag.followValue ? (r(), s(d, { key: 1 }, [
2249
- [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag ? (r(), s("line", {
2262
+ e.FINAL_CONFIG.plot.tag.followValue ? (a(), s(d, { key: 1 }, [
2263
+ [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag ? (a(), s("line", {
2250
2264
  key: 0,
2251
2265
  class: "vue-ui-xy-tag-plot",
2252
2266
  x1: e.drawingArea.left,
@@ -2257,9 +2271,9 @@ function Ua(a, n, h, f, l, e) {
2257
2271
  "stroke-linecap": "round",
2258
2272
  "stroke-dasharray": "2",
2259
2273
  stroke: t.color
2260
- }, null, 8, ql)) : u("", !0)
2261
- ], 64)) : (r(), s(d, { key: 0 }, [
2262
- c && g === 0 && t.useTag && t.useTag === "start" ? (r(), s("foreignObject", {
2274
+ }, null, 8, Ul)) : u("", !0)
2275
+ ], 64)) : (a(), s(d, { key: 0 }, [
2276
+ c && g === 0 && t.useTag && t.useTag === "start" ? (a(), s("foreignObject", {
2263
2277
  key: 0,
2264
2278
  x: c.x,
2265
2279
  y: c.y - 20,
@@ -2279,9 +2293,9 @@ function Ua(a, n, h, f, l, e) {
2279
2293
  serieName: t.name
2280
2294
  }
2281
2295
  )
2282
- }, null, 12, El)
2283
- ], 12, Wl)) : u("", !0),
2284
- c && g === t.plots.length - 1 && t.useTag && t.useTag === "end" ? (r(), s("foreignObject", {
2296
+ }, null, 12, Yl)
2297
+ ], 12, El)) : u("", !0),
2298
+ c && g === t.plots.length - 1 && t.useTag && t.useTag === "end" ? (a(), s("foreignObject", {
2285
2299
  key: 1,
2286
2300
  x: c.x - t.name.length * (l.fontSizes.plotLabels / 2),
2287
2301
  y: c.y - 20,
@@ -2301,20 +2315,20 @@ function Ua(a, n, h, f, l, e) {
2301
2315
  serieName: t.name
2302
2316
  }
2303
2317
  )
2304
- }, null, 12, Xl)
2305
- ], 12, Yl)) : u("", !0)
2318
+ }, null, 12, ql)
2319
+ ], 12, Xl)) : u("", !0)
2306
2320
  ], 64))
2307
2321
  ], 64))), 128))
2308
2322
  ], 64))), 128))
2309
2323
  ])),
2310
- e.FINAL_CONFIG.line.labels.show && l.mutableConfig.dataLabels.show ? (r(), s("g", Ul, [
2311
- (r(!0), s(d, null, x(e.lineSet, (t, o) => (r(), s(d, {
2324
+ e.FINAL_CONFIG.line.labels.show && l.mutableConfig.dataLabels.show ? (a(), s("g", Zl, [
2325
+ (a(!0), s(d, null, x(e.lineSet, (t, o) => (a(), s(d, {
2312
2326
  key: `xLabel_line_${o}`
2313
2327
  }, [
2314
- (r(!0), s(d, null, x(t.plots, (c, g) => (r(), s(d, {
2328
+ (a(!0), s(d, null, x(t.plots, (c, g) => (a(), s(d, {
2315
2329
  key: `xLabel_line_${o}_${g}`
2316
2330
  }, [
2317
- c && !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g ? (r(), s("text", {
2331
+ c && !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g ? (a(), s("text", {
2318
2332
  key: 0,
2319
2333
  x: c.x,
2320
2334
  y: c.y + (c.value >= 0 ? e.FINAL_CONFIG.line.labels.offsetY : -e.FINAL_CONFIG.line.labels.offsetY * 3),
@@ -2335,18 +2349,18 @@ function Ua(a, n, h, f, l, e) {
2335
2349
  datapoint: c,
2336
2350
  serie: t
2337
2351
  }
2338
- ) : ""), 13, Zl)) : u("", !0)
2352
+ ) : ""), 13, Jl)) : u("", !0)
2339
2353
  ], 64))), 128))
2340
2354
  ], 64))), 128))
2341
- ])) : (r(), s("g", Jl, [
2342
- (r(!0), s(d, null, x(e.lineSet, (t, o) => (r(), s(d, {
2355
+ ])) : (a(), s("g", Kl, [
2356
+ (a(!0), s(d, null, x(e.lineSet, (t, o) => (a(), s(d, {
2343
2357
  key: `xLabel_line_${o}`
2344
2358
  }, [
2345
- (r(!0), s(d, null, x(t.plots, (c, g) => (r(), s(d, {
2359
+ (a(!0), s(d, null, x(t.plots, (c, g) => (a(), s(d, {
2346
2360
  key: `xLabel_line_${o}_${g}`
2347
2361
  }, [
2348
- e.FINAL_CONFIG.line.tag.followValue ? (r(), s(d, { key: 1 }, [
2349
- [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag ? (r(), s("line", {
2362
+ e.FINAL_CONFIG.line.tag.followValue ? (a(), s(d, { key: 1 }, [
2363
+ [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag ? (a(), s("line", {
2350
2364
  key: 0,
2351
2365
  class: "vue-ui-xy-tag-line",
2352
2366
  x1: e.drawingArea.left,
@@ -2357,9 +2371,9 @@ function Ua(a, n, h, f, l, e) {
2357
2371
  "stroke-linecap": "round",
2358
2372
  "stroke-dasharray": "2",
2359
2373
  stroke: t.color
2360
- }, null, 8, ea)) : u("", !0)
2361
- ], 64)) : (r(), s(d, { key: 0 }, [
2362
- c && g === 0 && t.useTag && t.useTag === "start" ? (r(), s("foreignObject", {
2374
+ }, null, 8, ti)) : u("", !0)
2375
+ ], 64)) : (a(), s(d, { key: 0 }, [
2376
+ c && g === 0 && t.useTag && t.useTag === "start" ? (a(), s("foreignObject", {
2363
2377
  key: 0,
2364
2378
  x: c.x,
2365
2379
  y: c.y - 20,
@@ -2379,9 +2393,9 @@ function Ua(a, n, h, f, l, e) {
2379
2393
  serieName: t.name
2380
2394
  }
2381
2395
  )
2382
- }, null, 12, Ql)
2383
- ], 12, Kl)) : u("", !0),
2384
- c && g === t.plots.length - 1 && t.useTag && t.useTag === "end" ? (r(), s("foreignObject", {
2396
+ }, null, 12, jl)
2397
+ ], 12, Ql)) : u("", !0),
2398
+ c && g === t.plots.length - 1 && t.useTag && t.useTag === "end" ? (a(), s("foreignObject", {
2385
2399
  key: 1,
2386
2400
  x: c.x,
2387
2401
  y: c.y - 20,
@@ -2401,19 +2415,19 @@ function Ua(a, n, h, f, l, e) {
2401
2415
  serieName: t.name
2402
2416
  }
2403
2417
  )
2404
- }, null, 12, $l)
2405
- ], 12, jl)) : u("", !0)
2418
+ }, null, 12, ei)
2419
+ ], 12, $l)) : u("", !0)
2406
2420
  ], 64))
2407
2421
  ], 64))), 128))
2408
2422
  ], 64))), 128))
2409
2423
  ])),
2410
- (r(!0), s(d, null, x(e.lineSet, (t, o) => (r(), s(d, {
2424
+ (a(!0), s(d, null, x(e.lineSet, (t, o) => (a(), s(d, {
2411
2425
  key: `xLabel_line_${o}`
2412
2426
  }, [
2413
- (r(!0), s(d, null, x(t.plots, (c, g) => (r(), s(d, {
2427
+ (a(!0), s(d, null, x(t.plots, (c, g) => (a(), s(d, {
2414
2428
  key: `xLabel_line_${o}_${g}`
2415
2429
  }, [
2416
- c && g === 0 && t.showSerieName && t.showSerieName === "start" ? (r(), s("text", {
2430
+ c && g === 0 && t.showSerieName && t.showSerieName === "start" ? (a(), s("text", {
2417
2431
  key: 0,
2418
2432
  x: c.x - l.fontSizes.plotLabels,
2419
2433
  y: c.y,
@@ -2429,8 +2443,8 @@ function Ua(a, n, h, f, l, e) {
2429
2443
  maxWords: 2
2430
2444
  }),
2431
2445
  style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2432
- }, null, 12, ta)) : u("", !0),
2433
- c && g === t.plots.length - 1 && t.showSerieName && t.showSerieName === "end" ? (r(), s("text", {
2446
+ }, null, 12, li)) : u("", !0),
2447
+ c && g === t.plots.length - 1 && t.showSerieName && t.showSerieName === "end" ? (a(), s("text", {
2434
2448
  key: 1,
2435
2449
  x: c.x + l.fontSizes.plotLabels,
2436
2450
  y: c.y,
@@ -2446,16 +2460,16 @@ function Ua(a, n, h, f, l, e) {
2446
2460
  maxWords: 2
2447
2461
  }),
2448
2462
  style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2449
- }, null, 12, la)) : u("", !0)
2463
+ }, null, 12, ii)) : u("", !0)
2450
2464
  ], 64))), 128))
2451
2465
  ], 64))), 128)),
2452
- (r(!0), s(d, null, x(e.plotSet, (t, o) => (r(), s(d, {
2466
+ (a(!0), s(d, null, x(e.plotSet, (t, o) => (a(), s(d, {
2453
2467
  key: `xLabel_plot_${o}`
2454
2468
  }, [
2455
- (r(!0), s(d, null, x(t.plots, (c, g) => (r(), s(d, {
2469
+ (a(!0), s(d, null, x(t.plots, (c, g) => (a(), s(d, {
2456
2470
  key: `xLabel_plot_${o}_${g}`
2457
2471
  }, [
2458
- c && g === 0 && t.showSerieName && t.showSerieName === "start" ? (r(), s("text", {
2472
+ c && g === 0 && t.showSerieName && t.showSerieName === "start" ? (a(), s("text", {
2459
2473
  key: 0,
2460
2474
  x: c.x - l.fontSizes.plotLabels,
2461
2475
  y: c.y,
@@ -2471,8 +2485,8 @@ function Ua(a, n, h, f, l, e) {
2471
2485
  maxWords: 2
2472
2486
  }),
2473
2487
  style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2474
- }, null, 12, aa)) : u("", !0),
2475
- c && g === t.plots.length - 1 && t.showSerieName && t.showSerieName === "end" ? (r(), s("text", {
2488
+ }, null, 12, ri)) : u("", !0),
2489
+ c && g === t.plots.length - 1 && t.showSerieName && t.showSerieName === "end" ? (a(), s("text", {
2476
2490
  key: 1,
2477
2491
  x: c.x + l.fontSizes.plotLabels,
2478
2492
  y: c.y,
@@ -2488,12 +2502,12 @@ function Ua(a, n, h, f, l, e) {
2488
2502
  maxWords: 2
2489
2503
  }),
2490
2504
  style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2491
- }, null, 12, ia)) : u("", !0)
2505
+ }, null, 12, ai)) : u("", !0)
2492
2506
  ], 64))), 128))
2493
2507
  ], 64))), 128)),
2494
- l.mutableConfig.useIndividualScale && !l.mutableConfig.isStacked ? (r(), s(d, { key: 11 }, [
2508
+ l.mutableConfig.useIndividualScale && !l.mutableConfig.isStacked ? (a(), s(d, { key: 11 }, [
2495
2509
  I("defs", null, [
2496
- (r(!0), s(d, null, x(e.allScales, (t, o) => (r(), s("linearGradient", {
2510
+ (a(!0), s(d, null, x(e.allScales, (t, o) => (a(), s("linearGradient", {
2497
2511
  id: `individual_scale_gradient_${l.uniqueId}_${o}`,
2498
2512
  x1: "0%",
2499
2513
  x2: "100%",
@@ -2504,15 +2518,15 @@ function Ua(a, n, h, f, l, e) {
2504
2518
  offset: "0%",
2505
2519
  "stop-color": e.FINAL_CONFIG.chart.backgroundColor,
2506
2520
  "stop-opacity": "0"
2507
- }, null, 8, sa),
2521
+ }, null, 8, ni),
2508
2522
  I("stop", {
2509
2523
  offset: "100%",
2510
2524
  "stop-color": t.color,
2511
2525
  "stop-opacity": "0.2"
2512
- }, null, 8, na)
2513
- ], 8, ra))), 256))
2526
+ }, null, 8, ci)
2527
+ ], 8, si))), 256))
2514
2528
  ]),
2515
- (r(!0), s(d, null, x(e.allScales, (t, o) => (r(), s("rect", {
2529
+ (a(!0), s(d, null, x(e.allScales, (t, o) => (a(), s("rect", {
2516
2530
  x: t.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + e.xPadding,
2517
2531
  y: e.drawingArea.top,
2518
2532
  width: e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
@@ -2520,28 +2534,28 @@ function Ua(a, n, h, f, l, e) {
2520
2534
  fill: l.selectedScale === t.groupId ? `url(#individual_scale_gradient_${l.uniqueId}_${o})` : "transparent",
2521
2535
  onMouseenter: (c) => l.selectedScale = t.groupId,
2522
2536
  onMouseleave: n[0] || (n[0] = (c) => l.selectedScale = null)
2523
- }, null, 40, ca))), 256))
2537
+ }, null, 40, oi))), 256))
2524
2538
  ], 64)) : u("", !0),
2525
2539
  I("g", null, [
2526
- e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !l.mutableConfig.useIndividualScale ? (r(), s("text", {
2540
+ e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !l.mutableConfig.useIndividualScale ? (a(), s("text", {
2527
2541
  key: 0,
2528
2542
  ref: "yAxisLabel",
2529
2543
  "font-size": l.fontSizes.yAxis,
2530
2544
  fill: e.FINAL_CONFIG.chart.grid.labels.color,
2531
2545
  "text-anchor": "middle",
2532
2546
  style: { transition: "none" }
2533
- }, V(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, oa)) : u("", !0),
2534
- e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (r(), s("text", {
2547
+ }, V(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, hi)) : u("", !0),
2548
+ e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (a(), s("text", {
2535
2549
  key: 1,
2536
2550
  ref: "xAxisLabel",
2537
2551
  "text-anchor": "middle",
2538
2552
  x: e.viewBoxParts.width / 2 - Math.abs(e.viewBoxParts.x),
2539
2553
  "font-size": l.fontSizes.yAxis,
2540
2554
  fill: e.FINAL_CONFIG.chart.grid.labels.color
2541
- }, V(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, ha)) : u("", !0)
2555
+ }, V(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, ui)) : u("", !0)
2542
2556
  ]),
2543
- e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (r(), s("g", ua, [
2544
- a.$slots["time-label"] ? (r(!0), s(d, { key: 0 }, x(e.timeLabels, (t, o) => G(a.$slots, "time-label", se({
2557
+ e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (a(), s("g", di, [
2558
+ i.$slots["time-label"] ? (a(!0), s(d, { key: 0 }, x(e.timeLabels, (t, o) => G(i.$slots, "time-label", se({
2545
2559
  key: `time_label_${o}`,
2546
2560
  ref_for: !0
2547
2561
  }, {
@@ -2554,12 +2568,12 @@ function Ua(a, n, h, f, l, e) {
2554
2568
  content: t.text,
2555
2569
  textAnchor: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2556
2570
  show: t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (o === 0 || o === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.selectedSerieIndex === o && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && o % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0
2557
- }), void 0, !0)), 128)) : (r(!0), s(d, { key: 1 }, x(e.timeLabels, (t, o) => (r(), s("g", {
2571
+ }), void 0, !0)), 128)) : (a(!0), s(d, { key: 1 }, x(e.timeLabels, (t, o) => (a(), s("g", {
2558
2572
  key: `time_label_${o}`
2559
2573
  }, [
2560
- t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (o === 0 || o === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.selectedSerieIndex === o && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && o % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (r(), s(d, { key: 0 }, [
2574
+ t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (o === 0 || o === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.selectedSerieIndex === o && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && o % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (a(), s(d, { key: 0 }, [
2561
2575
  String(t.text).includes(`
2562
- `) ? (r(), s("text", {
2576
+ `) ? (a(), s("text", {
2563
2577
  key: 1,
2564
2578
  "text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2565
2579
  "font-size": l.fontSizes.xAxis,
@@ -2576,7 +2590,7 @@ function Ua(a, n, h, f, l, e) {
2576
2590
  y: 0
2577
2591
  }),
2578
2592
  onClick: () => e.selectTimeLabel(t, o)
2579
- }, null, 12, ga)) : (r(), s("text", {
2593
+ }, null, 12, fi)) : (a(), s("text", {
2580
2594
  key: 0,
2581
2595
  "text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2582
2596
  "font-size": l.fontSizes.xAxis,
@@ -2586,15 +2600,15 @@ function Ua(a, n, h, f, l, e) {
2586
2600
  cursor: e.usesSelectTimeLabelEvent() ? "pointer" : "default"
2587
2601
  }),
2588
2602
  onClick: () => e.selectTimeLabel(t, o)
2589
- }, V(t.text || ""), 13, da))
2603
+ }, V(t.text || ""), 13, gi))
2590
2604
  ], 64)) : u("", !0)
2591
2605
  ]))), 128))
2592
2606
  ], 512)) : u("", !0),
2593
- e.annotationsY.length && !l.mutableConfig.isStacked ? (r(), s("g", fa, [
2594
- (r(!0), s(d, null, x(e.annotationsY, (t) => (r(), s("g", {
2607
+ e.annotationsY.length && !l.mutableConfig.isStacked ? (a(), s("g", Ii, [
2608
+ (a(!0), s(d, null, x(e.annotationsY, (t) => (a(), s("g", {
2595
2609
  key: t.uid
2596
2610
  }, [
2597
- t.yTop && t.show ? (r(), s("line", {
2611
+ t.yTop && t.show && isFinite(t.yTop) ? (a(), s("line", {
2598
2612
  key: 0,
2599
2613
  x1: t.x1,
2600
2614
  y1: t.yTop,
@@ -2605,8 +2619,8 @@ function Ua(a, n, h, f, l, e) {
2605
2619
  "stroke-dasharray": t.config.line.strokeDasharray,
2606
2620
  "stroke-linecap": "round",
2607
2621
  style: { animation: "none !important" }
2608
- }, null, 8, Ia)) : u("", !0),
2609
- t.yBottom && t.show ? (r(), s("line", {
2622
+ }, null, 8, xi)) : u("", !0),
2623
+ t.yBottom && t.show && isFinite(t.yBottom) ? (a(), s("line", {
2610
2624
  key: 1,
2611
2625
  x1: t.x1,
2612
2626
  y1: t.yBottom,
@@ -2617,8 +2631,8 @@ function Ua(a, n, h, f, l, e) {
2617
2631
  "stroke-dasharray": t.config.line.strokeDasharray,
2618
2632
  "stroke-linecap": "round",
2619
2633
  style: { animation: "none !important" }
2620
- }, null, 8, xa)) : u("", !0),
2621
- t.hasArea && t.show ? (r(), s("rect", {
2634
+ }, null, 8, Ni)) : u("", !0),
2635
+ t.hasArea && t.show && isFinite(t.yTop) && isFinite(t.yBottom) ? (a(), s("rect", {
2622
2636
  key: 2,
2623
2637
  y: Math.min(t.yTop, t.yBottom),
2624
2638
  x: t.x1,
@@ -2626,12 +2640,12 @@ function Ua(a, n, h, f, l, e) {
2626
2640
  height: e.checkNaN(t.areaHeight, 0),
2627
2641
  fill: e.setOpacity(t.config.area.fill, t.config.area.opacity),
2628
2642
  style: { animation: "none !important" }
2629
- }, null, 8, Na)) : u("", !0),
2630
- t.config.label.text && t.show ? (r(), s("rect", se({
2643
+ }, null, 8, mi)) : u("", !0),
2644
+ t.config.label.text && t.show && isFinite(t._box.y) ? (a(), s("rect", se({
2631
2645
  key: 3,
2632
2646
  class: "vue-ui-xy-annotation-label-box"
2633
2647
  }, { ref_for: !0 }, t._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : u("", !0),
2634
- t.config.label.text && t.show ? (r(), s("text", {
2648
+ t.config.label.text && t.show && isFinite(t._text.y) ? (a(), s("text", {
2635
2649
  key: 4,
2636
2650
  id: t.id,
2637
2651
  class: "vue-ui-xy-annotation-label",
@@ -2640,11 +2654,11 @@ function Ua(a, n, h, f, l, e) {
2640
2654
  "font-size": t.config.label.fontSize,
2641
2655
  fill: t.config.label.color,
2642
2656
  "text-anchor": t.config.label.textAnchor
2643
- }, V(t.config.label.text), 9, ma)) : u("", !0)
2657
+ }, V(t.config.label.text), 9, bi)) : u("", !0)
2644
2658
  ]))), 128))
2645
2659
  ])) : u("", !0),
2646
2660
  I("g", null, [
2647
- (r(!0), s(d, null, x(e.maxSeries, (t, o) => (r(), s("rect", {
2661
+ (a(!0), s(d, null, x(e.maxSeries, (t, o) => (a(), s("rect", {
2648
2662
  key: `tooltip_trap_${o}`,
2649
2663
  x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * o,
2650
2664
  y: e.drawingArea.top,
@@ -2654,10 +2668,10 @@ function Ua(a, n, h, f, l, e) {
2654
2668
  onMouseenter: (c) => e.toggleTooltipVisibility(!0, o),
2655
2669
  onMouseleave: n[1] || (n[1] = (c) => e.toggleTooltipVisibility(!1)),
2656
2670
  onClick: (c) => e.selectX(o)
2657
- }, null, 40, ba))), 128))
2671
+ }, null, 40, Fi))), 128))
2658
2672
  ]),
2659
- e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (r(), s("g", Fa, [
2660
- (r(), s("foreignObject", {
2673
+ e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (a(), s("g", _i, [
2674
+ (a(), s("foreignObject", {
2661
2675
  x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)) - 100 + e.drawingArea.width / e.maxSeries / 2,
2662
2676
  y: e.drawingArea.bottom,
2663
2677
  width: "200",
@@ -2668,28 +2682,28 @@ function Ua(a, n, h, f, l, e) {
2668
2682
  class: "vue-ui-xy-time-tag",
2669
2683
  style: _(`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`)
2670
2684
  }, V(e.timeLabels[(l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)].text || (l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)), 5)
2671
- ], 8, _a)),
2685
+ ], 8, yi)),
2672
2686
  I("circle", {
2673
2687
  cx: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
2674
2688
  cy: e.drawingArea.bottom,
2675
2689
  r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
2676
2690
  fill: e.FINAL_CONFIG.chart.timeTag.circleMarker.color
2677
- }, null, 8, Aa)
2691
+ }, null, 8, Ai)
2678
2692
  ])) : u("", !0)
2679
2693
  ])) : u("", !0),
2680
- G(a.$slots, "svg", { svg: e.svg }, void 0, !0)
2694
+ G(i.$slots, "svg", { svg: e.svg }, void 0, !0)
2681
2695
  ], 512)
2682
- ], 14, dt)) : u("", !0),
2683
- a.$slots.watermark ? (r(), s("div", ya, [
2684
- G(a.$slots, "watermark", $(ee({ isPrinting: l.isPrinting || l.isImaging })), void 0, !0)
2696
+ ], 14, gt)) : u("", !0),
2697
+ i.$slots.watermark ? (a(), s("div", Li, [
2698
+ G(i.$slots, "watermark", $(ee({ isPrinting: l.isPrinting || l.isImaging })), void 0, !0)
2685
2699
  ])) : u("", !0),
2686
- (r(!0), s(d, null, x(e.lineSet, (t, o) => (r(), s(d, {
2700
+ (a(!0), s(d, null, x(e.lineSet, (t, o) => (a(), s(d, {
2687
2701
  key: `tag_line_${o}`
2688
2702
  }, [
2689
- (r(!0), s(d, null, x(t.plots, (c, g) => (r(), s(d, {
2703
+ (a(!0), s(d, null, x(t.plots, (c, g) => (a(), s(d, {
2690
2704
  key: `tag_line_${o}_${g}`
2691
2705
  }, [
2692
- [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "end" && e.FINAL_CONFIG.line.tag.followValue ? (r(), s("div", {
2706
+ [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "end" && e.FINAL_CONFIG.line.tag.followValue ? (a(), s("div", {
2693
2707
  key: 0,
2694
2708
  ref_for: !0,
2695
2709
  ref: (p) => e.setTagRef(o, g, p, "right", "line"),
@@ -2720,12 +2734,12 @@ function Ua(a, n, h, f, l, e) {
2720
2734
  opacity: 1
2721
2735
  })
2722
2736
  }, [
2723
- (r(), s("svg", La, [
2737
+ (a(), s("svg", Ci, [
2724
2738
  I("path", {
2725
2739
  d: "M 0,10 10,0 10,20 Z",
2726
2740
  fill: t.color,
2727
2741
  stroke: "none"
2728
- }, null, 8, Ca)
2742
+ }, null, 8, Si)
2729
2743
  ])),
2730
2744
  I("div", {
2731
2745
  class: "vue-ui-xy-tag-content",
@@ -2739,9 +2753,9 @@ function Ua(a, n, h, f, l, e) {
2739
2753
  serieName: t.name
2740
2754
  }
2741
2755
  )
2742
- }, null, 8, Sa)
2756
+ }, null, 8, wi)
2743
2757
  ], 4)) : u("", !0),
2744
- [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "start" && e.FINAL_CONFIG.line.tag.followValue ? (r(), s("div", {
2758
+ [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "start" && e.FINAL_CONFIG.line.tag.followValue ? (a(), s("div", {
2745
2759
  key: 1,
2746
2760
  ref_for: !0,
2747
2761
  ref: (p) => e.setTagRef(o, g, p, "left", "line"),
@@ -2772,12 +2786,12 @@ function Ua(a, n, h, f, l, e) {
2772
2786
  opacity: 1
2773
2787
  })
2774
2788
  }, [
2775
- (r(), s("svg", ka, [
2789
+ (a(), s("svg", ki, [
2776
2790
  I("path", {
2777
2791
  d: "M 0,0 10,10 0,20 Z",
2778
2792
  fill: t.color,
2779
2793
  stroke: "none"
2780
- }, null, 8, wa)
2794
+ }, null, 8, Oi)
2781
2795
  ])),
2782
2796
  I("div", {
2783
2797
  class: "vue-ui-xy-tag-content",
@@ -2791,17 +2805,17 @@ function Ua(a, n, h, f, l, e) {
2791
2805
  serieName: t.name
2792
2806
  }
2793
2807
  )
2794
- }, null, 8, Oa)
2808
+ }, null, 8, Gi)
2795
2809
  ], 4)) : u("", !0)
2796
2810
  ], 64))), 128))
2797
2811
  ], 64))), 128)),
2798
- (r(!0), s(d, null, x(e.plotSet, (t, o) => (r(), s(d, {
2812
+ (a(!0), s(d, null, x(e.plotSet, (t, o) => (a(), s(d, {
2799
2813
  key: `tag_plot_${o}`
2800
2814
  }, [
2801
- (r(!0), s(d, null, x(t.plots, (c, g) => (r(), s(d, {
2815
+ (a(!0), s(d, null, x(t.plots, (c, g) => (a(), s(d, {
2802
2816
  key: `tag_plot_${o}_${g}`
2803
2817
  }, [
2804
- [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "end" && e.FINAL_CONFIG.plot.tag.followValue ? (r(), s("div", {
2818
+ [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "end" && e.FINAL_CONFIG.plot.tag.followValue ? (a(), s("div", {
2805
2819
  key: 0,
2806
2820
  ref_for: !0,
2807
2821
  ref: (p) => e.setTagRef(o, g, p, "right", "plot"),
@@ -2832,12 +2846,12 @@ function Ua(a, n, h, f, l, e) {
2832
2846
  opacity: 1
2833
2847
  })
2834
2848
  }, [
2835
- (r(), s("svg", Ga, [
2849
+ (a(), s("svg", vi, [
2836
2850
  I("path", {
2837
2851
  d: "M 0,10 10,0 10,20 Z",
2838
2852
  fill: t.color,
2839
2853
  stroke: "none"
2840
- }, null, 8, va)
2854
+ }, null, 8, pi)
2841
2855
  ])),
2842
2856
  I("div", {
2843
2857
  class: "vue-ui-xy-tag-content",
@@ -2851,9 +2865,9 @@ function Ua(a, n, h, f, l, e) {
2851
2865
  serieName: t.name
2852
2866
  }
2853
2867
  )
2854
- }, null, 8, pa)
2868
+ }, null, 8, zi)
2855
2869
  ], 4)) : u("", !0),
2856
- [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "start" && e.FINAL_CONFIG.plot.tag.followValue ? (r(), s("div", {
2870
+ [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "start" && e.FINAL_CONFIG.plot.tag.followValue ? (a(), s("div", {
2857
2871
  key: 1,
2858
2872
  ref_for: !0,
2859
2873
  ref: (p) => e.setTagRef(o, g, p, "left", "plot"),
@@ -2884,12 +2898,12 @@ function Ua(a, n, h, f, l, e) {
2884
2898
  opacity: 1
2885
2899
  })
2886
2900
  }, [
2887
- (r(), s("svg", za, [
2901
+ (a(), s("svg", Mi, [
2888
2902
  I("path", {
2889
2903
  d: "M 0,0 10,10 0,20 Z",
2890
2904
  fill: t.color,
2891
2905
  stroke: "none"
2892
- }, null, 8, Ma)
2906
+ }, null, 8, Ti)
2893
2907
  ])),
2894
2908
  I("div", {
2895
2909
  class: "vue-ui-xy-tag-content",
@@ -2903,11 +2917,11 @@ function Ua(a, n, h, f, l, e) {
2903
2917
  serieName: t.name
2904
2918
  }
2905
2919
  )
2906
- }, null, 8, Ta)
2920
+ }, null, 8, Pi)
2907
2921
  ], 4)) : u("", !0)
2908
2922
  ], 64))), 128))
2909
2923
  ], 64))), 128)),
2910
- e.isDataset ? u("", !0) : (r(), U(F, {
2924
+ e.isDataset ? u("", !0) : (a(), U(F, {
2911
2925
  key: 6,
2912
2926
  config: {
2913
2927
  type: "line",
@@ -2925,7 +2939,7 @@ function Ua(a, n, h, f, l, e) {
2925
2939
  }
2926
2940
  }
2927
2941
  }, null, 8, ["config"])),
2928
- e.FINAL_CONFIG.chart.zoom.show && l.maxX > 6 && e.isDataset ? (r(), U(v, {
2942
+ e.FINAL_CONFIG.chart.zoom.show && l.maxX > 6 && e.isDataset ? (a(), U(v, {
2929
2943
  ref: "chartSlicer",
2930
2944
  key: `slicer_${l.slicerStep}`,
2931
2945
  background: e.FINAL_CONFIG.chart.zoom.color,
@@ -2962,22 +2976,22 @@ function Ua(a, n, h, f, l, e) {
2962
2976
  onTrapMouse: e.selectMinimapIndex
2963
2977
  }, {
2964
2978
  "reset-action": D(({ reset: t }) => [
2965
- G(a.$slots, "reset-action", $(ee({ reset: t })), void 0, !0)
2979
+ G(i.$slots, "reset-action", $(ee({ reset: t })), void 0, !0)
2966
2980
  ]),
2967
2981
  _: 3
2968
2982
  }, 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),
2969
- e.FINAL_CONFIG.chart.legend.show ? (r(), s("div", {
2983
+ e.FINAL_CONFIG.chart.legend.show ? (a(), s("div", {
2970
2984
  key: 8,
2971
2985
  ref: "chartLegend",
2972
2986
  class: "vue-ui-xy-legend",
2973
2987
  style: _(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
2974
2988
  }, [
2975
- (r(!0), s(d, null, x(e.absoluteDataset, (t, o) => (r(), s("div", {
2989
+ (a(!0), s(d, null, x(e.absoluteDataset, (t, o) => (a(), s("div", {
2976
2990
  key: `div_legend_item_${o}`,
2977
2991
  onClick: (c) => e.segregate(t),
2978
2992
  class: j({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": l.segregatedSeries.includes(t.id) })
2979
2993
  }, [
2980
- l.icons[t.type] === "line" ? (r(), s("svg", Va, [
2994
+ l.icons[t.type] === "line" ? (a(), s("svg", Ri, [
2981
2995
  I("rect", {
2982
2996
  x: "0",
2983
2997
  y: "7.5",
@@ -2987,7 +3001,7 @@ function Ua(a, n, h, f, l, e) {
2987
3001
  height: "3",
2988
3002
  width: "20",
2989
3003
  fill: t.color
2990
- }, null, 8, Ra),
3004
+ }, null, 8, Bi),
2991
3005
  le(N, {
2992
3006
  plot: { x: 10, y: 9 },
2993
3007
  radius: 4,
@@ -2996,8 +3010,8 @@ function Ua(a, n, h, f, l, e) {
2996
3010
  stroke: e.FINAL_CONFIG.chart.backgroundColor,
2997
3011
  strokeWidth: 0.5
2998
3012
  }, null, 8, ["color", "shape", "stroke"])
2999
- ])) : l.icons[t.type] === "bar" ? (r(), s("svg", Ha, [
3000
- l.icons[t.type] === "bar" && a.$slots.pattern ? (r(), s("rect", {
3013
+ ])) : l.icons[t.type] === "bar" ? (a(), s("svg", Hi, [
3014
+ l.icons[t.type] === "bar" && i.$slots.pattern ? (a(), s("rect", {
3001
3015
  key: 0,
3002
3016
  x: "0",
3003
3017
  y: "0",
@@ -3006,8 +3020,8 @@ function Ua(a, n, h, f, l, e) {
3006
3020
  width: "40",
3007
3021
  stroke: "none",
3008
3022
  fill: t.color
3009
- }, null, 8, Ba)) : u("", !0),
3010
- l.icons[t.type] === "bar" ? (r(), s("rect", {
3023
+ }, null, 8, Di)) : u("", !0),
3024
+ l.icons[t.type] === "bar" ? (a(), s("rect", {
3011
3025
  key: 1,
3012
3026
  x: "0",
3013
3027
  y: "0",
@@ -3015,9 +3029,9 @@ function Ua(a, n, h, f, l, e) {
3015
3029
  height: "40",
3016
3030
  width: "40",
3017
3031
  stroke: "none",
3018
- fill: a.$slots.pattern ? `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})` : t.color
3019
- }, null, 8, Da)) : u("", !0)
3020
- ])) : (r(), s("svg", Wa, [
3032
+ fill: i.$slots.pattern ? `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})` : t.color
3033
+ }, null, 8, Wi)) : u("", !0)
3034
+ ])) : (a(), s("svg", Ei, [
3021
3035
  le(N, {
3022
3036
  plot: { x: 6, y: 6 },
3023
3037
  radius: 5,
@@ -3028,12 +3042,12 @@ function Ua(a, n, h, f, l, e) {
3028
3042
  I("span", {
3029
3043
  style: _(`color:${e.FINAL_CONFIG.chart.legend.color}`)
3030
3044
  }, V(t.name), 5)
3031
- ], 10, Pa))), 128))
3032
- ], 4)) : (r(), s("div", Ea, [
3033
- G(a.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
3045
+ ], 10, Vi))), 128))
3046
+ ], 4)) : (a(), s("div", Yi, [
3047
+ G(i.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
3034
3048
  ], 512)),
3035
- a.$slots.source ? (r(), s("div", Ya, [
3036
- G(a.$slots, "source", {}, void 0, !0)
3049
+ i.$slots.source ? (a(), s("div", Xi, [
3050
+ G(i.$slots, "source", {}, void 0, !0)
3037
3051
  ], 512)) : u("", !0),
3038
3052
  le(m, {
3039
3053
  show: l.mutableConfig.showTooltip && l.isTooltip,
@@ -3046,20 +3060,20 @@ function Ua(a, n, h, f, l, e) {
3046
3060
  backgroundOpacity: e.FINAL_CONFIG.chart.tooltip.backgroundOpacity,
3047
3061
  position: e.FINAL_CONFIG.chart.tooltip.position,
3048
3062
  offsetY: e.FINAL_CONFIG.chart.tooltip.offsetY,
3049
- parent: a.$refs.chart,
3063
+ parent: i.$refs.chart,
3050
3064
  content: e.tooltipContent,
3051
3065
  isFullscreen: l.isFullscreen,
3052
3066
  isCustom: e.FINAL_CONFIG.chart.tooltip.customFormat && typeof e.FINAL_CONFIG.chart.tooltip.customFormat == "function"
3053
3067
  }, {
3054
3068
  "tooltip-before": D(() => [
3055
- G(a.$slots, "tooltip-before", $(ee({ ...e.dataTooltipSlot })), void 0, !0)
3069
+ G(i.$slots, "tooltip-before", $(ee({ ...e.dataTooltipSlot })), void 0, !0)
3056
3070
  ]),
3057
3071
  "tooltip-after": D(() => [
3058
- G(a.$slots, "tooltip-after", $(ee({ ...e.dataTooltipSlot })), void 0, !0)
3072
+ G(i.$slots, "tooltip-after", $(ee({ ...e.dataTooltipSlot })), void 0, !0)
3059
3073
  ]),
3060
3074
  _: 3
3061
3075
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
3062
- e.isDataset ? (r(), U(H, {
3076
+ e.isDataset ? (a(), U(B, {
3063
3077
  key: 11,
3064
3078
  hideDetails: "",
3065
3079
  config: {
@@ -3079,7 +3093,7 @@ function Ua(a, n, h, f, l, e) {
3079
3093
  I("div", {
3080
3094
  style: _(`${l.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
3081
3095
  }, [
3082
- I("div", Xa, [
3096
+ I("div", qi, [
3083
3097
  tt(I("input", {
3084
3098
  type: "checkbox",
3085
3099
  "onUpdate:modelValue": n[4] || (n[4] = (t) => l.showSparklineTable = t)
@@ -3090,18 +3104,18 @@ function Ua(a, n, h, f, l, e) {
3090
3104
  onClick: n[5] || (n[5] = (t) => l.showSparklineTable = !l.showSparklineTable),
3091
3105
  style: { cursor: "pointer" }
3092
3106
  }, [
3093
- le(y, {
3107
+ le(A, {
3094
3108
  name: "chartLine",
3095
3109
  size: 20,
3096
3110
  stroke: e.FINAL_CONFIG.chart.color
3097
3111
  }, null, 8, ["stroke"])
3098
3112
  ])
3099
3113
  ]),
3100
- l.showSparklineTable ? (r(), U(b, {
3114
+ l.showSparklineTable ? (a(), U(b, {
3101
3115
  key: `sparkline_${l.segregateStep}`,
3102
3116
  dataset: e.tableSparklineDataset,
3103
3117
  config: e.tableSparklineConfig
3104
- }, null, 8, ["dataset", "config"])) : (r(), U(M, {
3118
+ }, null, 8, ["dataset", "config"])) : (a(), U(M, {
3105
3119
  key: `table_${l.tableStep}`,
3106
3120
  colNames: e.dataTable.colNames,
3107
3121
  head: e.dataTable.head,
@@ -3111,10 +3125,10 @@ function Ua(a, n, h, f, l, e) {
3111
3125
  onClose: n[6] || (n[6] = (t) => l.mutableConfig.showTable = !1)
3112
3126
  }, {
3113
3127
  th: D(({ th: t }) => [
3114
- I("div", { innerHTML: t }, null, 8, qa)
3128
+ I("div", { innerHTML: t }, null, 8, Ui)
3115
3129
  ]),
3116
3130
  td: D(({ td: t }) => [
3117
- at(V(isNaN(Number(t)) ? t : e.dataLabel({
3131
+ it(V(isNaN(Number(t)) ? t : e.dataLabel({
3118
3132
  p: e.FINAL_CONFIG.chart.labels.prefix,
3119
3133
  v: t,
3120
3134
  s: e.FINAL_CONFIG.chart.labels.suffix,
@@ -3127,9 +3141,9 @@ function Ua(a, n, h, f, l, e) {
3127
3141
  ]),
3128
3142
  _: 1
3129
3143
  }, 8, ["config"])) : u("", !0)
3130
- ], 46, ht);
3144
+ ], 46, ut);
3131
3145
  }
3132
- const ai = /* @__PURE__ */ nt(ot, [["render", Ua], ["__scopeId", "data-v-55e7021c"]]);
3146
+ const ar = /* @__PURE__ */ ct(ht, [["render", Zi], ["__scopeId", "data-v-e3c8cee0"]]);
3133
3147
  export {
3134
- ai as default
3148
+ ar as default
3135
3149
  };